/* The mods index in lastres.ai's neon world: the same tokens, faces and
   list grammar as lastres.ai/work, self contained because this page is
   served by the mods Worker, not the Pages build. Fonts come from the
   site's own /fonts/fonts.css. */
:root {
  --bg: #000; --fg: #fff; --line: #2a2a12; --dim: #8f8f76; --body: #cbcbc4; --body-mute: #a2a298;
  --accent: #fcee0a; --accent2: #00f0ff;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Libre Franklin", system-ui, -apple-system, sans-serif;
  --display: "Chakra Petch", "Saira Condensed", system-ui, sans-serif;
  --gutter: 56px; --ease: .14s ease; --ease-smooth: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--sans); font-weight: 300; font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip;
}
a { color: inherit; text-decoration: none; transition: color var(--ease), border-color var(--ease), background-color var(--ease), box-shadow var(--ease); }
p, h1, h2, h3, dl, dd, figure { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--accent); color: #000; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: -.005em; line-height: .94; text-wrap: balance; }
h1 strong, h2 strong { font-weight: 700; color: var(--accent); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--fg); color: #000; padding: 12px 18px; font-family: var(--mono); font-size: 12px; z-index: 200; }
.skip:focus { left: 0; }

/* Nav: the site's fixed bar, menu in mono caps, the yellow cut corner button. */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; gap: 28px; padding: 18px var(--gutter) 30px;
  font-family: var(--mono); font-size: 13px; letter-spacing: .1em; text-transform: uppercase;
  background: linear-gradient(180deg, #000000f7, #000000eb 52%, #0000);
}
.wordmark { font-family: Inter, system-ui, -apple-system, sans-serif; font-weight: 600; font-size: 20px; line-height: 1; letter-spacing: -.06em; text-transform: lowercase; display: inline-flex; align-items: flex-start; }
.wordmark sup { font-size: .46em; line-height: 1; letter-spacing: 0; margin-left: .06em; position: relative; top: .1em; }
.nav__links { display: flex; gap: 22px; }
.nav__links a { color: var(--dim); }
.nav__links a:hover { color: var(--fg); }
.nav__links a[aria-current="true"] { color: var(--accent); }
.nav__cta {
  margin-left: auto; padding: 10px 18px; font-family: var(--display); font-weight: 700; color: #000; background: var(--accent);
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px));
}
.nav__cta:hover { box-shadow: 0 0 26px #fcee0a80; }

/* Labels, stats, buttons: the work page's own. */
.label { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent2); margin-bottom: 26px; }
.label::before { content: "/// "; color: var(--accent); }
.label span { color: var(--dim); }
.lede { font-size: 17px; line-height: 1.62; color: var(--body); max-width: 68ch; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 54px; padding-top: 34px; border-top: 1px solid var(--line); }
.stat__n { display: block; font-family: var(--display); font-weight: 700; font-size: 30px; letter-spacing: -.015em; line-height: 1; }
.stat__k { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--dim); text-transform: uppercase; margin-top: 8px; line-height: 1.5; }
.btn {
  display: inline-flex; align-items: center; padding: 14px 26px; font-family: var(--display); font-weight: 700; font-size: 13px;
  text-transform: uppercase; letter-spacing: .06em; line-height: 1;
  clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 13px, 100% 100%, 13px 100%, 0 calc(100% - 13px));
}
.btn--solid { background: var(--accent); color: #000; box-shadow: 0 0 26px #fcee0a59; }
.btn--solid:hover { box-shadow: 0 0 34px #fcee0a99; }
.btn--outline { border: 1px solid var(--line); color: var(--fg); clip-path: none; }
.btn--outline:hover { border-color: var(--accent); }

/* Page */
.hero { max-width: 980px; margin: 0 auto; padding: 150px var(--gutter) 90px; }
.hero h1 { font-size: clamp(38px, 5.6vw, 78px); margin-bottom: 26px; }
.list { max-width: 1560px; margin: 0 auto; padding: 0 var(--gutter); }
.group { padding: 40px 0 0; border-top: 1px solid var(--line); }
.group__l { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent2); }
.group__l::before { content: "/// "; color: var(--accent); }
.group__l span { color: var(--dim); }
.group__n { margin: 12px 0 0; font-size: 15px; line-height: 1.6; color: var(--dim); max-width: min(46ch, 100%); }
.case { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 0 60px; align-items: center; padding: 70px 0 110px; }
.case__body { min-width: 0; }
.case__i { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; color: var(--accent); margin-bottom: 20px; }
.case__i span { color: var(--dim); }
.case__c { font-size: clamp(30px, 4vw, 52px); margin-bottom: 14px; }
.case__t { font-size: 19px; line-height: 1.5; color: var(--body); max-width: min(44ch, 100%); }
.case__spec { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 30px 0 0; padding-top: 22px; border-top: 1px solid var(--line); }
.case__spec dt { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.case__spec dd { margin: 7px 0 0; font-size: 14px; line-height: 1.45; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; }
.metric__v { font-family: var(--display); font-weight: 700; font-size: clamp(26px, 2.6vw, 36px); letter-spacing: -.02em; line-height: 1; }
.metric__l { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin-top: 9px; line-height: 1.5; }
.case__cta { display: flex; align-items: center; gap: 18px 24px; flex-wrap: wrap; margin-top: 34px; }
.case__live { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.case__live:hover { color: var(--accent); }

/* Her stage: the boot frame from the homepage, four accent corners and a
   slow scan line, holding the sprite instead of the point cloud. */
.case__stage { position: relative; margin: 0 auto; width: min(100%, 520px); height: min(76vh, calc(min(100%, 520px) * 4 / 3)); padding: 28px 28px 60px; }
.case__stage i { position: absolute; width: 22px; height: 22px; border: 0 solid var(--accent); }
.case__stage i:nth-child(1) { left: 0; top: 0; border-width: 1px 0 0 1px; }
.case__stage i:nth-child(2) { right: 0; top: 0; border-width: 1px 1px 0 0; }
.case__stage i:nth-child(3) { left: 0; bottom: 0; border-width: 0 0 1px 1px; }
.case__stage i:nth-child(4) { right: 0; bottom: 0; border-width: 0 1px 1px 0; }
.case__stage .scan { position: absolute; left: 10px; right: 10px; top: 0; bottom: 0; pointer-events: none; }
.case__stage .scan::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--accent2); opacity: .55; box-shadow: 0 0 12px var(--accent2); animation: scan 2.6s cubic-bezier(.65, 0, .35, 1) infinite alternate; }
@keyframes scan { from { top: 0; } to { top: calc(100% - 1px); } }
.case__stage img { width: 100%; height: 100%; max-height: 100%; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 0 28px #fcee0a26); }
.case__stage figcaption { position: absolute; left: 28px; right: 28px; bottom: 20px; display: flex; justify-content: space-between; gap: 16px; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--dim); }
.case__stage figcaption span:first-child { color: var(--accent); }

.outro { max-width: 980px; margin: 0 auto; padding: 40px var(--gutter) 130px; border-top: 1px solid var(--line); }
.outro h2 { font-size: clamp(28px, 3.6vw, 46px); margin-bottom: 22px; }
.outro .lede { margin-bottom: 8px; }

.foot {
  display: flex; flex-wrap: wrap; gap: 16px 28px; justify-content: space-between; padding: 34px var(--gutter);
  border-top: 1px solid var(--line); font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim);
}
.foot ul { display: flex; flex-wrap: wrap; gap: 20px; }
.foot a:hover { color: var(--accent); }

@media (max-width: 1000px) {
  :root { --gutter: 32px; }
  .nav { gap: 18px; padding-bottom: 18px; background: #000000f0; }
  .nav__links { gap: 16px; }
  .case { grid-template-columns: minmax(0, 1fr); gap: 40px 0; }
  .case__stage { order: -1; width: min(100%, 360px); height: 480px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  :root { --gutter: 20px; }
  .nav { font-size: 11px; gap: 14px; }
  .nav__links { gap: 12px; }
  .nav__cta { padding: 9px 12px; }
  .hero { padding-top: 110px; }
  .hero h1 { font-size: clamp(34px, 10vw, 48px); }
  .case__spec, .metrics { grid-template-columns: 1fr 1fr; }
  .foot { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .case__stage .scan::after { animation: none; opacity: .3; }
}
