:root {
  --bg: #000;
  --green: #afff00;
  --accent-glow: rgb(175 255 0 / .32);
  --text: #fff;
  --panel: #101010;
  --muted: #b3b3b3;
}
body, .work, .services, .about, footer { background-color: #000; }
.header, .header.scrolled { background-color: rgb(0 0 0 / .68); }
.menu-panel { background-color: rgb(0 0 0 / .96); }
.motion-control, dialog { background-color: #171717; }
.hero h1 span, .project-copy h4 { color: var(--green); }
.hero-glow {
  background: var(--green);
  /* Keep the neon as a small pool low on the right rather than a wash across the hero. */
  mask-image: radial-gradient(ellipse 54% 32% at 78% 115%, black 8%, #0009 30%, #0003 52%, transparent 76%);
}
/* The left caption now sits on the dark side of the hero, so it needs a light tone. */
.hero-bottom > span { color: #8f9a91; }
.hero-halo { background: radial-gradient(ellipse at center, var(--accent-glow), transparent 66%); }

.round-link, .work .visual-arrow { box-shadow: 0 0 16px var(--accent-glow); }
.method-tile[aria-expanded=true] .method-art { filter: drop-shadow(0 0 3px var(--accent-glow)); }
.hero h1 span { text-shadow: 0 0 .32em var(--accent-glow); }
@media (max-width: 760px) {
  .hero-glow { mask-image: radial-gradient(ellipse 100% 28% at 70% 114%, black 10%, #0008 40%, transparent 78%); }
}
.work .section-intro { margin-bottom: clamp(75px, 11vw, 170px); }
/* Services follow straight on from the work section, so trim the gap above and below its intro. */
.services .section-intro { margin-bottom: clamp(40px, 5vw, 80px); }
.work .tags span { background: #191919; border: 0; color: var(--green); }
.work .project-visual {
  background: #151515;
  aspect-ratio: 1.42;
  height: auto;
  border: 0;
  padding: 0;
  box-shadow: 0 0 64px rgb(255 255 255 / .09);
}
.work-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .85s cubic-bezier(.22,1,.36,1);
}
.project-visual:is(:hover,:focus-visible) .work-image { transform: scale(1.055); }
.work .visual-arrow { background: var(--green); color: #000; }
.service-card { border-color: #262626; }
.service-card .service-number { display: none; }
.service-card h3 { line-height: 1.02; }
.service-card h3 .service-line {
  display: block;
  overflow: hidden;
  color: white;
  padding-bottom: .07em;
}
.service-card h3 .accent { color: var(--green); }
.service-line > span {
  display: inline-block;
  transition: transform .8s cubic-bezier(.22,1,.36,1);
}
.js-ready .service-card:not(.visible) .service-line > span { transform: translateY(110%); }
.service-line.accent > span { transition-delay: .09s; }
.service-card li, .service-card .service-arrow { color: var(--green); }
.service-card .service-sculpture { color: rgb(175 255 0 / .27); }

.services .section-intro { margin-inline: auto; text-align: center; }
.services .section-intro p { margin-inline: auto; }
.service-mesh { width: 100%; height: 100%; display: block; }
.service-film { display: none; }
@media (min-width: 761px) {
  .section.services { padding-inline: 0; padding-top: 70px; }
  .services .section-intro { padding-inline: 5%; }
  /* Each card stays pinned for half a screen of scrolling (was 1.2 screens), so the page
     never feels stuck on an almost empty black view. */
  .service-scene { position: relative; height: 150vh; }
  .service-card {
    position: sticky;
    top: 0;
    height: 100vh;
    min-height: 0;
    background: black;
    border: 0;
    padding: 0 4%;
    /* Heading, then images directly beneath it: the image row starts a fixed gap below the
       two-line heading instead of being pinned to the bottom of the screen. */
    --svc-size: clamp(54px,7vw,132px);
    --svc-top: max(13vh, 100px);
    --film-top: calc(var(--svc-top) + var(--svc-size) * 2.25 + clamp(28px, 4vh, 56px));
    /* Large images (about 40% of the screen width each), never taller than the space left
       below the heading. The strip is wider than the screen, so it slides past as you scroll. */
    --img-h: max(160px, min(27.6vw, calc(100vh - var(--film-top) - 5vh)));
    --img-w: calc(var(--img-h) * 1.45);
    --strip: calc(var(--img-w) * 3 + 5vw);
    /* Slide from off-screen right until the last image's right edge reaches the margin. */
    --film-from: 100vw;
    --film-to: min(0px, calc(92vw - var(--strip)));
  }
  /* The middle card slides the other way: in from the left, ending on its first image. */
  .service-experience { --film-from: calc(-8vw - var(--strip)); --film-to: 0px; }
  /* Heading and list sit at the top of the card, so they appear as soon as the card scrolls in. */
  .service-card h3 { grid-area: auto; position: absolute; left: 4%; top: var(--svc-top); bottom: auto; margin: 0; font-size: var(--svc-size); }
  .service-card ul { grid-area: auto; position: absolute; right: 6%; top: max(15%, 112px); bottom: auto; padding: 0; margin: 0; }
  .service-card .service-arrow { top: calc(var(--film-top) - 64px); bottom: auto; }
  .service-card .service-sculpture {
    left: 50%; top: 54%; width: min(47vw,78vh); height: auto; aspect-ratio: 1;
    scale: 1; translate: -50% -50%; transform: rotate(var(--sculpture-turn,0deg));
    z-index: 0; pointer-events: none;
  }
  .service-film {
    display: flex; gap: 2.5vw; position: absolute; top: var(--film-top); bottom: auto; left: 0; width: 100%;
    justify-content: flex-start; padding-left: 4vw; box-sizing: border-box; pointer-events: none;
    /* --film-p is the scroll progress through the card (0 to 1), set by motion.js. */
    transform: translate3d(calc(var(--film-from) + (var(--film-to) - var(--film-from)) * var(--film-p, 0)), 0, 0);
  }
  .service-film > span { display: block; flex: none; width: var(--img-w); height: var(--img-h); overflow: hidden; border-radius: 10px; }
  .service-film img { width: 100%; height: 100%; object-fit: cover; }
  .motion-paused .service-scene { height: auto; }
  /* Without motion the strip can't slide, so the three images shrink to fit side by side. */
  .motion-paused .service-film { transform: none; justify-content: center; padding-left: 0; }
  .motion-paused .service-film > span { width: 29vw; height: auto; aspect-ratio: 1.45; }
}
@media (prefers-reduced-motion: reduce) {
  .service-scene { height: auto; }
  .service-film { transform: none; justify-content: center; padding-left: 0; }
  .service-film > span { width: 29vw; height: auto; aspect-ratio: 1.45; }
}

.method-section { background: #000; padding: clamp(85px,9vw,170px) 7%; }
.method-heading { text-align: center; margin: auto; max-width: 48rem; }
.method-heading h2 { font-size: clamp(40px,4.2vw,80px); line-height: 1.06; margin: .35em 0; }
.method-heading h2 span, .method-note h3 { color: var(--green); }
.method-heading p { max-width: 56ch; margin: auto; color: #ccc; }
.method-row { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 2.5vw; position: relative; margin-top: clamp(64px,10vw,180px); }
.method-tile { position: relative; width: 100%; aspect-ratio: 1; display: grid; place-items: center; color: #aaa; border: 1px solid #242424; border-radius: 5px; cursor: pointer; background: repeating-linear-gradient(90deg, transparent 0 calc(20% - 1px),#101010 20%),repeating-linear-gradient(0deg,#030303 0 calc(20% - 1px),#121212 20%); transition: opacity .32s,color .32s; }
.method-art { width: 98%; height: 98%; overflow: visible; }
.method-art g { transform-origin: 100px 100px; animation: method-flex 4s ease-in-out var(--phase) infinite alternate paused; }
.method-item:nth-child(2) .method-art g { animation-name: method-orbit; }
.method-item:nth-child(3) .method-art g { animation-name: method-ripple; animation-duration: 1.8s; }
.method-item:nth-child(4) .method-art g { animation-name: method-rays; animation-duration: 2.4s; }
.method-tile[aria-expanded=true] .method-art g { animation-play-state: running; }
@keyframes method-flex { to { transform: rotate(7deg) scale(.94); } }
@keyframes method-orbit { to { transform: rotate(40deg); } }
@keyframes method-ripple { to { transform: scale(1.055); } }
@keyframes method-rays { to { transform: rotate(4deg) scale(.96); } }
.method-row.inspecting .method-tile[aria-expanded=false] { opacity: .12; }
.method-tile[aria-expanded=true] { color: var(--green); }
.method-note { position: absolute; left: 54%; right: 1%; top: 50%; transform: translateY(-50%); pointer-events: none; z-index: 1; opacity: 0; visibility: hidden; transition: opacity 150ms ease-out, visibility 0s 150ms; }
.method-note[aria-hidden=false] { opacity: 1; visibility: visible; transition: opacity 300ms ease-out 55ms, visibility 0s; }
.method-item:nth-child(1) .method-note { left: 28%; right: 28%; }
.method-item:nth-child(n+3) .method-note { left: 9%; right: 53%; }
.method-item:last-child .method-note { left: 33%; right: 27%; }
.method-note h3 { font-size: .88rem; text-transform: uppercase; margin: 0 0 .75em; }
.method-note p { color: #eee; margin: 0; max-width: 48ch; line-height: 1.45; }
@media (max-width: 760px) {
  .method-row { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px 16px; align-items: start; }
  .method-note[aria-hidden=true] { display: none; }
  .method-item .method-note { position: static; transform: none; padding-top: 12px; }
}
.motion-paused .method-art g { animation-play-state: paused !important; }
.motion-paused .method-note, .motion-paused .method-tile { transition: none; }
@media (prefers-reduced-motion: reduce) {
  .method-art g { animation: none; }
  .method-note, .method-note[aria-hidden=false], .method-tile { transition: none; }
}

/* Body text: paragraphs without their own size get 2px over what they inherit.
   Rules that set a size on p, li or blockquote already include the extra 2px. */
:where(p, li, blockquote) { font-size: calc(1em + 2px); }

/* Bolder text on every button and button-style link. */
button, .button, .text-link, .floating-contact { font-weight: 500; }

/* Friendlier type: the last monospace "code" lettering switches to the site font. */
.menu-inner > a span, .avatar, .dialog-detail p { font-family: Annam, Arial, sans-serif; }

/* Larger footer text (about 3px up across the board). */
.footer-top p { font-size: 18px; }
.footer-top > div > a:not(.brand), .footer-top > div > span:not(.eyebrow) { font-size: 15px; }
.footer-top .eyebrow { font-size: 11px; }
.footer-bottom { font-size: 12px; }
@media (max-width: 760px) {
  .footer-top > div > a:not(.brand), .footer-top > div > span:not(.eyebrow) { font-size: 13px; }
  .footer-bottom { font-size: 10px; }
}
/* On phones the bottom-left caption sits on the green glow again, so it needs the dark tone. */
@media (max-width: 760px) { .hero-bottom > span { color: #263b1a; } }

/* Six-arm Annam mark: menu button icon and footer wordmark. */
.menu-icon { display: grid; place-items: center; line-height: 1; }
.menu-icon svg { display: block; width: 18px; height: 18px; color: var(--green); }
.footer-wordmark > span svg { display: inline-block; width: .62em; height: .62em; vertical-align: .05em; }

/* Buttons: bigger, bold text (2px up across the board). */
button, .button, .text-link, .floating-contact { font-weight: 700; }
.button { font-size: 15px; }
.text-link { font-size: 15px; }
.floating-contact { font-size: 14px; }
.menu-button { font-size: 16px; }
@media (max-width: 420px) { .button { font-size: 14px; } }
/* Industries strip separators: the six-arm mark, sized to the old ✳. */
.tech-track b { display: inline-grid; place-items: center; color: var(--green); }
.tech-track b svg { width: .9em; height: .9em; }
/* The company name in the hero intro, in brand green like "forward." in the headline. */
.hero-name { color: var(--green); font-weight: 500; }
/* With the smaller glow, both hero footer captions sit on dark at every size, so they need
   a light tone (this overrides the earlier dark-on-green rules). */
.hero-bottom > span, .hero-bottom a { color: #8f9a91; }
