/* chris-teng.com — motion.css
   Everything the animated redesign adds on top of site.css: the page wipe, the custom
   cursor, the full-screen menu, the homepage scroll story around the Three.js processor,
   dark heroes on the pages that carry the processor, reveal states, and the reduced-motion
   and no-WebGL fallbacks. site.css is untouched apart from loading this file after it. */

:root {
  --stage-h: 40vh;                 /* mobile: height of the sticky processor stage */
  --glass: rgba(255, 255, 255, .045);
  --glass-line: rgba(255, 255, 255, .12);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- utilities ---------- */
.js .split-word { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; margin-bottom: -.08em; }
.js .split-word > span { display: inline-block; will-change: transform; }

/* ---------- page wipe (transition between pages) ---------- */
.wipe { position: fixed; inset: 0; z-index: 80; pointer-events: none; }
.wipe__yellow, .wipe__ink {
  position: absolute; inset: 0;
  transform: translateX(-101%);
}
.wipe__yellow { background: var(--yellow); }
.wipe__ink { background: var(--ink); }
html.is-leaving .wipe__yellow { transform: translateX(0); transition: transform .5s var(--ease-out); }
html.is-leaving .wipe__ink { transform: translateX(0); transition: transform .5s var(--ease-out) .08s; }
html.is-entering .wipe__yellow, html.is-entering .wipe__ink { transform: translateX(0); transition: none; }
html.is-revealing .wipe__ink { transform: translateX(101%); transition: transform .62s var(--ease-out); }
html.is-revealing .wipe__yellow { transform: translateX(101%); transition: transform .62s var(--ease-out) .09s; }
/* safety net: if the script that reveals the page never runs, the panels leave on their own */
@keyframes wipe-out { to { transform: translateX(101%); } }
html.is-entering .wipe__ink { animation: wipe-out .6s var(--ease-out) 1.6s forwards; }
html.is-entering .wipe__yellow { animation: wipe-out .6s var(--ease-out) 1.7s forwards; }

/* ---------- custom cursor (desktop with a fine pointer only) ---------- */
.cursor { display: none; }
html.has-cursor, html.has-cursor a, html.has-cursor button, html.has-cursor label, html.has-cursor summary { cursor: none; }
html.has-cursor input, html.has-cursor textarea, html.has-cursor select { cursor: auto; }
html.has-cursor .cursor {
  display: block; position: fixed; left: 0; top: 0; z-index: 90;
  pointer-events: none; mix-blend-mode: difference;
  opacity: 0; transition: opacity .25s ease;
}
html.has-cursor .cursor.is-on { opacity: 1; }
.cursor__dot {
  position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%;
  background: #fff;
}
.cursor__ring {
  position: absolute; left: -19px; top: -19px; width: 38px; height: 38px; border-radius: 50%;
  border: 1.5px solid #fff;
  display: grid; place-items: center;
  transition: width .3s var(--ease-out), height .3s var(--ease-out), left .3s var(--ease-out), top .3s var(--ease-out), background-color .3s ease, border-color .3s ease;
}
.cursor__label {
  font: 400 11px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: #000;
  opacity: 0; transition: opacity .2s ease;
}
.cursor.is-link .cursor__ring { left: -27px; top: -27px; width: 54px; height: 54px; }
.cursor.is-view .cursor__ring { left: -38px; top: -38px; width: 76px; height: 76px; background: #fff; border-color: #fff; }
.cursor.is-view .cursor__label { opacity: 1; }
.cursor.is-view .cursor__dot { opacity: 0; }
.cursor.is-press .cursor__ring { transform: scale(.85); }
.cursor.is-text .cursor__ring { opacity: 0; }

/* ---------- menu: full-viewport overlay on charcoal ---------- */
.overlay {
  background: var(--ink);
  color: var(--white);
  flex-direction: column;
}
.overlay__fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .5; }
.overlay__inner {
  position: relative; z-index: 1;
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin: auto; padding: 110px 0 60px;
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px 48px; align-items: end;
}
.overlay ul { margin: 0; padding: 0; text-align: left; }
.overlay__nav li + li { margin-top: 2px; }
.overlay__nav a {
  display: flex; align-items: baseline; gap: 22px;
  font: 400 clamp(34px, 4.6vw, 62px)/1.12 var(--display);
  letter-spacing: .01em; text-transform: uppercase; text-decoration: none;
  color: var(--white);
  transition: color .25s ease, transform .35s var(--ease-out);
}
.overlay__nav a:hover, .overlay__nav a:focus-visible { color: var(--yellow); transform: translateX(10px); }
.overlay__nav a[aria-current="page"] { color: var(--yellow); }
.overlay__n { font: 400 13px/1 var(--display); letter-spacing: .12em; color: var(--text-on-dark); min-width: 2.2em; }
.overlay__nav a:hover .overlay__n, .overlay__nav a[aria-current="page"] .overlay__n { color: var(--yellow); }
.overlay__aside { font-size: 15px; line-height: 26px; color: var(--text-on-dark); }
.overlay__aside p + p { margin-top: 14px; }
.overlay__eyebrow { font: 400 12px/1.6 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); }
.overlay__phone { font: 400 26px/32px var(--display); color: var(--white); }
.overlay .overlay__phone a { color: var(--white); text-decoration: none; letter-spacing: 0; text-transform: none; font: inherit; }
.overlay .overlay__phone a:hover { color: var(--yellow); }
.overlay__aside .social { margin-top: 18px; }
.overlay__aside .social a { color: var(--text-on-dark); }
.overlay__aside .social a:hover { color: var(--yellow); }
.menu-toggle[aria-expanded="true"] { background: var(--yellow); color: #000; }
@media (max-width: 900px) {
  .overlay__inner { grid-template-columns: minmax(0, 1fr); gap: 36px; padding: 90px 0 48px; align-items: start; }
  .overlay__nav a { font-size: clamp(30px, 8.6vw, 44px); gap: 14px; }
  .overlay__phone { font-size: 22px; line-height: 28px; }
}

/* ---------- hero (home) ---------- */
.hero--photo { position: relative; isolation: isolate; overflow: hidden; }
.hero--photo .hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background: var(--paper) url("../img/chris-teng-hero.jpg") 65% 0 / cover no-repeat;
  transform-origin: 70% 40%;
}
.js .hero--photo { background-image: none; }
.hero__copy { position: relative; z-index: 2; }
.hero__hud {
  margin: clamp(26px, 3vw, 44px) 0 0; padding: 14px 0 0; list-style: none;
  display: flex; flex-wrap: wrap; gap: 8px 28px;
  border-top: 1px solid rgba(17, 17, 19, .14);
  font: 400 11.5px/1.5 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--ink);
}
.hero__hud li { position: relative; padding-left: 14px; }
.hero__hud li::before { content: ""; position: absolute; left: 0; top: 6px; width: 6px; height: 6px; background: var(--yellow); outline: 1px solid rgba(17, 17, 19, .35); }
.hero__hud strong { font-weight: 400; color: var(--blue); }
.hero__scroll {
  position: absolute; z-index: 2; left: min(11.46vw, 165px); bottom: 34px;
  display: flex; align-items: center; gap: 12px;
  font: 400 11px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--ink);
}
.hero__scroll i { display: block; width: 44px; height: 1px; background: var(--ink); overflow: hidden; position: relative; }
.hero__scroll i::after { content: ""; position: absolute; inset: 0; background: var(--yellow); transform: translateX(-100%); animation: hero-scroll-line 2.4s ease-in-out infinite; }
@keyframes hero-scroll-line { 0% { transform: translateX(-100%); } 50% { transform: translateX(0); } 100% { transform: translateX(100%); } }
@media (max-width: 900px) {
  .hero--photo .hero__bg { display: none; }
  .js .hero--photo { background: var(--paper); }
  .hero__scroll { display: none; }
  .hero__hud { margin-top: 26px; gap: 6px 20px; font-size: 11px; }
  .hero__photo { position: relative; overflow: hidden; }
}

/* entrance states: hidden until the script animates them in, with a safety net
   that shows everything after 3s even if a script failed to load */
.js .hero .eyebrow, .js .hero h1, .js .hero .hero__actions, .js .hero .hero__meta, .js .hero .hero__hud, .js .hero__scroll {
  opacity: 0;
  animation: ct-safety 1ms 3s forwards;
}
@keyframes ct-safety { to { opacity: 1; } }
.js.no-anim .hero .eyebrow, .js.no-anim .hero h1, .js.no-anim .hero .hero__actions, .js.no-anim .hero .hero__meta,
.js.no-anim .hero .hero__hud, .js.no-anim .hero__scroll { opacity: 1; animation: none; }

/* ---------- the story: processor stage plus the sections that drive it ---------- */
.story {
  position: relative;
  background: var(--slab) url("../img/slab-pattern.png") 100% 0 no-repeat;
  color: var(--text-on-dark);
}
.story__stage canvas { display: block; width: 100%; height: 100%; }
.js .story__stage { opacity: 0; transition: opacity 1.3s ease .25s; }
.story__stage.is-ready, .no-webgl .story__stage, .no-anim .story__stage { opacity: 1; }
.story__fallback { display: none; }
.no-webgl .story__fallback { display: grid; place-items: center; position: absolute; inset: 0; }
.no-webgl .story__stage canvas { display: none; }
.story__fallback svg { width: min(52vw, 520px); height: auto; opacity: .9; }
@media (min-width: 901px) {
  .no-webgl .story__fallback { justify-items: end; padding-right: 7vw; }
  .story__fallback svg { width: min(30vw, 440px); }
}
.story__sec { position: relative; z-index: 1; }
.story__col { max-width: 560px; min-width: 0; }
.story__col--wide { max-width: 680px; }
.story__sec .label { margin-bottom: 22px; }
.story__sec .more { margin-top: 28px; }
.story__sec .cta-row .more { margin-top: 0; }
.statement--xl { font-size: clamp(30px, 3.2vw, 44px); line-height: 1.12; }
.statement--hero { font-size: clamp(38px, 5vw, 74px); line-height: 1.02; letter-spacing: -.01em; }
.story__sec p.story__text { margin-top: 20px; font-size: 17px; line-height: 29px; max-width: 520px; }

/* about + numbers */
.story__sec--about { padding: 120px 0 90px; }
.facts--story { margin-top: 70px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 32px; }
.facts--story .num { position: relative; padding-top: 26px; font-size: clamp(60px, 6.4vw, 104px); line-height: .96; letter-spacing: -.02em; }
.facts--story .unit { top: 2px; font-size: 20px; }
.facts--story .cap { max-width: 250px; margin-top: 14px; }
.facts--story li { padding-top: 22px; border-top: 1px solid var(--slab-line); position: relative; }
.facts--story li::before { content: ""; position: absolute; left: 0; top: -1px; width: 0; height: 1px; background: var(--yellow); transition: width .6s var(--ease-out); }
.facts--story li.is-lit::before { width: 100%; }

/* pinned panels (desktop) */
.story__sticky { position: relative; }

/* services: an interactive system instead of three cards in a row */
.svc-steps {
  margin: 0 0 26px; padding: 0; list-style: none;
  display: flex; gap: 18px;
}
.svc-steps li {
  display: flex; align-items: center; gap: 10px;
  font: 400 13px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--text-on-dark);
  transition: color .3s ease;
}
.svc-steps li i { display: block; width: 34px; height: 1px; background: var(--slab-line); position: relative; overflow: hidden; }
.svc-steps li i::after { content: ""; position: absolute; inset: 0; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease-out); }
.svc-steps li.is-active { color: var(--white); }
.svc-steps li.is-active i::after, .svc-steps li.is-done i::after { transform: scaleX(1); }
.svc-cards { position: relative; }
.svc-card {
  position: relative;
  padding: 30px 32px 32px;
  background: var(--glass); border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .8);
  transform-style: preserve-3d;
}
.svc-card::before {
  content: ""; position: absolute; inset: -1px; pointer-events: none;
  background: linear-gradient(135deg, rgba(252, 220, 49, .35), transparent 38%, transparent 62%, rgba(91, 120, 255, .22));
  opacity: 0; transition: opacity .4s ease;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; padding: 1px;
}
.svc-card:hover::before, .svc-card.is-active::before { opacity: 1; }
.svc-card__n { display: block; font: 400 13px/1 var(--display); letter-spacing: .14em; color: var(--yellow); }
.svc-card h3 { margin-top: 14px; font-size: 28px; line-height: 34px; color: var(--white); }
.svc-card p { margin-top: 14px; font-size: 16px; line-height: 27px; }
.svc-card .more { margin-top: 22px; }
.svc-layers { margin: 26px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.svc-layers li {
  padding: 6px 12px; border: 1px solid var(--slab-line);
  font: 400 11px/1.4 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--text-on-dark);
  transition: color .4s ease, border-color .4s ease, background-color .4s ease;
}
.svc-layers li.is-lit { color: #000; background: var(--yellow); border-color: var(--yellow); }
.svc-layers li.is-half { color: var(--white); border-color: rgba(252, 220, 49, .6); }
@media (min-width: 901px) {
  .story__sec--services .story__col { max-width: 520px; }
  .svc-cards { min-height: 360px; }
  .svc-card { position: absolute; left: 0; top: 0; width: 100%; opacity: 0; visibility: hidden; }
  .svc-card.is-active { position: relative; opacity: 1; visibility: visible; }
}

/* recruit · train · manage */
.rtm { margin: 0; padding: 0; list-style: none; counter-reset: rtm; position: relative; }
.rtm::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--slab-line); }
.rtm::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: var(--rail, 0%); background: var(--yellow); }
.rtm li { position: relative; padding: 0 0 36px 34px; counter-increment: rtm; }
.rtm li::before {
  content: ""; position: absolute; left: -5px; top: 18px; width: 11px; height: 11px;
  background: var(--slab); border: 1px solid var(--slab-line);
  transition: background-color .4s ease, border-color .4s ease, box-shadow .4s ease;
}
.rtm li.is-active::before, .rtm li.is-done::before { background: var(--yellow); border-color: var(--yellow); }
.rtm li.is-active::before { box-shadow: 0 0 0 6px rgba(252, 220, 49, .18); }
.rtm__word {
  display: block;
  font: 400 clamp(34px, 3.6vw, 48px)/1.05 var(--display); text-transform: uppercase; letter-spacing: .02em;
  color: var(--text-on-dark); transition: color .4s ease, transform .5s var(--ease-out);
}
.rtm li.is-active .rtm__word, .rtm li.is-done .rtm__word { color: var(--white); }
.rtm li.is-active .rtm__word { transform: translateX(6px); }
.rtm li p { margin-top: 10px; max-width: 460px; font-size: 16px; line-height: 27px; opacity: .55; transition: opacity .4s ease; }
.rtm li.is-active p { opacity: 1; }
.rtm__final {
  margin-top: 10px; padding-top: 28px; border-top: 1px solid var(--slab-line);
  font: 400 clamp(30px, 3.3vw, 44px)/1.08 var(--display); text-transform: uppercase; color: var(--yellow);
}
.rtm__final span { display: block; }
.rtm__final .sub { display: block; margin-top: 12px; font: 400 15px/24px var(--body); text-transform: none; color: var(--text-on-dark); }

/* data + ai */
.pipe { margin: 0 0 34px; padding: 0; list-style: none; position: relative; display: grid; gap: 0; }
.pipe::before { content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 1px; background: var(--slab-line); }
.pipe::after { content: ""; position: absolute; left: 7px; top: 10px; width: 1px; height: var(--rail, 0%); max-height: calc(100% - 20px); background: var(--yellow); }
.pipe li { position: relative; display: grid; grid-template-columns: 30px 150px minmax(0, 1fr); gap: 0 14px; align-items: baseline; padding: 9px 0; }
.pipe li::before {
  content: ""; position: relative; top: -1px; justify-self: start; width: 15px; height: 15px;
  background: var(--slab); border: 1px solid var(--slab-line);
  transition: background-color .35s ease, border-color .35s ease, transform .35s var(--ease-out);
}
.pipe li.is-lit::before { background: var(--yellow); border-color: var(--yellow); transform: rotate(45deg) scale(.8); }
.pipe__name { font: 400 16px/24px var(--display); text-transform: uppercase; letter-spacing: .06em; color: var(--text-on-dark); transition: color .35s ease; }
.pipe li.is-lit .pipe__name { color: var(--white); }
.pipe li span:last-child { font-size: 14px; line-height: 22px; color: var(--text-on-dark); opacity: .7; }
.pipe li.is-lit span:last-child { opacity: 1; }
.pipe li.pipe--sign .pipe__name { color: var(--yellow); }
.mantra { margin: 0; font: 400 clamp(32px, 3.7vw, 50px)/1.08 var(--display); text-transform: uppercase; color: var(--white); }
.mantra span { display: block; opacity: .22; transition: opacity .45s ease, transform .5s var(--ease-out); transform: translateX(-10px); }
.mantra span.is-on { opacity: 1; transform: none; }
.mantra--sign { margin-top: 22px; }
.mantra--sign span { display: inline-block; padding: 2px 10px; background: var(--yellow); color: #000; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.mantra--sign span.is-on { opacity: 1; }

/* industries */
.story__sec--industries { padding: 120px 0 100px; }
.ind-list { margin: 0; padding: 0; list-style: none; }
.ind-list li { border-top: 1px solid var(--slab-line); }
.ind-list li:last-child { border-bottom: 1px solid var(--slab-line); }
.ind-list a {
  display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 4px 20px; align-items: baseline;
  padding: 26px 0 24px; text-decoration: none; color: var(--text-on-dark);
}
.ind-list .ind-n { font: 400 13px/1 var(--display); letter-spacing: .12em; color: var(--text-on-dark); transition: color .3s ease; }
.ind-list .ind-w {
  display: block;
  font: 400 clamp(32px, 3.6vw, 52px)/1.02 var(--display); text-transform: uppercase; letter-spacing: -.005em;
  color: var(--text-on-dark); transition: color .35s ease, transform .5s var(--ease-out);
}
.ind-list p { grid-column: 2; margin-top: 8px; max-width: 520px; font-size: 15px; line-height: 25px; opacity: .55; transition: opacity .35s ease; }
.ind-list li.is-active .ind-w, .ind-list a:hover .ind-w, .ind-list a:focus-visible .ind-w { color: var(--white); transform: translateX(8px); }
.ind-list li.is-active .ind-n, .ind-list a:hover .ind-n { color: var(--yellow); }
.ind-list li.is-active p, .ind-list a:hover p { opacity: 1; }

/* approach: the circuit path */
.path { margin: 30px 0 0; padding: 0; list-style: none; position: relative; counter-reset: path; }
.path::before { content: ""; position: absolute; left: 9px; top: 12px; bottom: 12px; width: 1px; background: var(--slab-line); }
.path::after { content: ""; position: absolute; left: 9px; top: 12px; width: 1px; height: var(--rail, 0%); max-height: calc(100% - 24px); background: var(--yellow); }
.path li { position: relative; padding: 0 0 20px 40px; counter-increment: path; }
.path li:last-child { padding-bottom: 0; }
.path li::before {
  content: ""; position: absolute; left: 3px; top: 8px; width: 13px; height: 13px; border-radius: 50%;
  background: var(--slab); border: 1px solid var(--slab-line);
  transition: background-color .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.path li.is-lit::before { background: var(--yellow); border-color: var(--yellow); box-shadow: 0 0 0 5px rgba(252, 220, 49, .16); }
.path__word { display: block; font: 400 clamp(22px, 2.2vw, 30px)/1.1 var(--display); text-transform: uppercase; color: var(--text-on-dark); transition: color .35s ease; }
.path li.is-lit .path__word { color: var(--white); }
.path li span:last-child { display: block; margin-top: 4px; font-size: 14px; line-height: 22px; opacity: .65; }
.path li:last-child .path__word { color: var(--yellow); }

/* connect: the conclusion */
.story__sec--connect { padding: 150px 0 160px; }
.story__sec--connect .cta-row { margin-top: 40px; }
.connect__line { margin-top: 26px; max-width: 520px; font-size: 18px; line-height: 30px; color: var(--white); }

/* desktop: fixed, full-viewport canvas above the content; the content keeps to the left column */
@media (min-width: 901px) {
  .story__stage { position: fixed; inset: 0; z-index: 30; pointer-events: none; }
  .story__sec--services, .story__sec--rtm, .story__sec--data { min-height: 300vh; }
  .story__sticky { position: sticky; top: 0; min-height: 100vh; display: flex; align-items: center; padding: 60px 0; }
  .story__sticky .wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); }
  .story__sec--approach { padding: 140px 0 120px; }
}
@media (min-width: 901px) and (max-height: 760px) {
  .svc-card { padding: 22px 24px; }
  .svc-card h3 { font-size: 24px; line-height: 30px; }
  .rtm li { padding-bottom: 24px; }
  .rtm__word { font-size: 32px; }
  .mantra { font-size: 32px; }
}
/* mobile: the stage sticks to the top at 40vh and the sections scroll beneath it */
@media (max-width: 900px) {
  .story__stage {
    position: -webkit-sticky; position: sticky; top: 0; z-index: 5;
    height: var(--stage-h); overflow: hidden;
    background: var(--slab) url("../img/slab-pattern.png") 100% 0 / auto 60% no-repeat;
  }
  .story__stage::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 36px; pointer-events: none;
    background: linear-gradient(rgba(39, 39, 42, 0), var(--slab));
  }
  .story__fallback svg { width: 56vw; }
  .story__sec { padding: 54px 0 64px; }
  .story__sec--about { padding: 54px 0 64px; }
  .story__col { max-width: none; }
  .facts--story { margin-top: 44px; gap: 36px 20px; }
  .facts--story .num { font-size: clamp(50px, 14vw, 72px); }
  .svc-card + .svc-card { margin-top: 18px; }
  .svc-steps { display: none; }
  .story__sec--industries { padding: 54px 0 64px; }
  .ind-list a { grid-template-columns: 40px minmax(0, 1fr); padding: 20px 0 18px; }
  .ind-list .ind-w { font-size: clamp(24px, 7.2vw, 40px); overflow-wrap: anywhere; }
  .ind-list .ind-w, .ind-list li.is-active .ind-w { transform: none; }
  .story__sec--connect { padding: 70px 0 90px; }
  .statement--hero { font-size: clamp(34px, 9.6vw, 50px); }
  .pipe li { grid-template-columns: 26px minmax(0, 1fr); }
  .pipe li span:last-child { grid-column: 2; }
  .rtm__final { font-size: clamp(26px, 7.6vw, 36px); }
}

/* ---------- dark hero on pages that carry the processor ---------- */
.hero--dark {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--ink); color: var(--white);
}
.hero--dark::before {
  content: ""; position: absolute; inset: 0; z-index: -2; opacity: .35;
  background:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 100% 72px,
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 72px 100%;
  -webkit-mask-image: radial-gradient(ellipse at 20% 60%, #000 20%, transparent 70%); mask-image: radial-gradient(ellipse at 20% 60%, #000 20%, transparent 70%);
}
.hero--dark .eyebrow { color: var(--yellow); }
.hero--dark h1 { color: var(--white); }
.hero--dark .hero__meta { color: var(--text-on-dark); }
.hero--dark .hero__copy { position: relative; z-index: 2; }
.hero--dark h1 { max-width: 11.5em; }
.hero__fx { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero--dark::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 140px; z-index: -1; pointer-events: none;
  background: linear-gradient(rgba(39, 39, 42, 0), var(--slab));
}
@media (min-width: 901px) {
  .hero--dark { min-height: min(78vh, 800px); display: flex; flex-direction: column; justify-content: center; padding: 170px 0 110px; }
  /* the header sits over the dark hero on desktop: white wordmark, yellow menu button */
  .has-dark-hero .site-header .logo img { filter: invert(1) brightness(1.4); }
  .has-dark-hero .menu-toggle { background: var(--yellow); color: #000; }
}
.hero__fx canvas { display: block; width: 100%; height: 100%; }
.no-webgl .hero__fx { display: none; }
@media (max-width: 900px) {
  .hero--dark { padding: 0 0 56px; background: var(--ink); }
  .hero--dark .hero__copy { max-width: none; padding-top: 28px; }
  .hero__fx { position: relative; height: 38vh; inset: auto; }
  .hero__fx::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40px; background: linear-gradient(rgba(17, 17, 19, 0), var(--ink)); }
}

/* industries page: large type and the environment panel */
.ind-layout { display: grid; grid-template-columns: minmax(0, 1fr) 40%; gap: 48px; align-items: start; }
.ind-layout .inds { min-width: 0; }
.ind-layout .ind { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 40px 0 44px; }
.ind-layout .ind__cols { gap: 20px 32px; }
.ind-panel { position: sticky; top: 0; height: 100vh; min-width: 0; }
.ind-panel canvas { display: block; width: 100%; height: 100%; }
.ind-panel__legend {
  position: absolute; left: 0; bottom: 48px;
  font: 400 12px/1.6 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--meta);
}
.ind-panel__legend strong { display: block; font-weight: 400; font-size: 20px; letter-spacing: .02em; color: var(--ink); }
.ind.is-active h2 { color: var(--ink); }
.band--rows .ind h2 { font-size: clamp(32px, 3.4vw, 46px); line-height: 1.05; text-transform: uppercase; transition: color .3s ease, transform .5s var(--ease-out); color: var(--meta); }
.band--rows .ind.is-active h2 { color: var(--ink); transform: translateX(6px); }
.no-webgl .ind-panel, .ind-panel.is-off { display: none; }
@media (max-width: 1100px) { .ind-layout { grid-template-columns: minmax(0, 1fr) 38%; gap: 32px; } }
@media (max-width: 900px) { .ind-layout { grid-template-columns: minmax(0, 1fr); } .ind-panel { display: none; } .band--rows .ind h2 { color: var(--ink); } }

/* ---------- work: enterprise case cards ---------- */
.case--card {
  position: relative; margin-top: 18px; padding: 34px 36px 36px;
  border: 1px solid var(--rule); background: var(--paper);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .4s ease;
}
.case--card:last-child { border-bottom: 1px solid var(--rule); }
.case--card::after {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px;
  background: linear-gradient(90deg, var(--yellow), var(--blue));
  transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out);
}
.case--card:hover { transform: translateY(-4px); box-shadow: 0 30px 50px -36px rgba(17, 17, 19, .45); border-color: rgba(17, 17, 19, .2); }
.case--card:hover::after, .case--card.is-in::after { transform: scaleX(1); }
.case__tags { margin: 0 0 14px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.case__tags li { padding: 4px 10px; border: 1px solid var(--rule); font: 400 11px/1.4 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--meta); }
.now--feature { position: relative; overflow: hidden; }
.now--feature::before {
  content: ""; position: absolute; right: -8%; top: -30%; width: 46%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 70%); pointer-events: none;
}
.now--feature > * { position: relative; }
.figs .fig { transition: color .3s ease; }
@media (max-width: 900px) { .case--card { padding: 26px 22px 28px; } }

/* ---------- insights listing ---------- */
.post { transition: transform .5s var(--ease-out); }
.post:hover { transform: translateX(6px); }
.post h2 a { background-image: linear-gradient(var(--yellow), var(--yellow)); background-size: 0 .35em; background-repeat: no-repeat; background-position: 0 88%; transition: background-size .45s var(--ease-out); }
.post:hover h2 a { background-size: 100% .35em; color: var(--ink); }
.post .more svg { transition: transform .35s var(--ease-out); }
.post:hover .more svg { transform: translateX(6px); }

/* reading progress on an article */
.read-bar { position: fixed; left: 0; top: 0; z-index: 70; width: 100%; height: 3px; pointer-events: none; }
.read-bar i { display: block; height: 100%; width: 100%; background: var(--yellow); transform: scaleX(0); transform-origin: left; }

/* ---------- bio chapters ---------- */
.bio-chapters { position: sticky; top: 36vh; z-index: 2; height: 0; pointer-events: none; }
.bio-chapters__box { position: absolute; left: 0; width: 180px; }
.bio-chapters__n { font: 400 12px/1 var(--display); letter-spacing: .14em; color: var(--meta); }
.bio-chapters__w { margin-top: 8px; font: 400 19px/1.15 var(--display); letter-spacing: .04em; text-transform: uppercase; color: var(--ink); }
.bio-chapters__w span { display: block; }
.chapter-mark { display: none; }
.tl--chapter { display: block; padding: 10px 0 26px; }
.tl--chapter::before { display: none; }
.tl--chapter .chapter-mark {
  display: inline-flex; align-items: baseline; gap: 14px; margin-left: calc(50% + 25px);
  font: 400 13px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--meta);
}
.tl--chapter .chapter-mark strong { font-weight: 400; font-size: 22px; letter-spacing: .02em; color: var(--ink); }
.tl--chapter:nth-child(even) .chapter-mark { margin-left: 0; margin-right: calc(50% + 25px); float: right; }
.band--family { padding: 0 0 100px; }
.family { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.family__photo { position: relative; overflow: hidden; }
.family__photo img { width: 100%; height: auto; }
.family__text .label { color: var(--blue); }
.family__text h2 { margin-top: 18px; font-size: 34px; line-height: 40px; }
.family__text p { margin-top: 16px; font-size: 17px; line-height: 29px; }
.bio-chapters__box { left: calc(-1 * (100vw - var(--wrap)) / 2 + 28px); width: 136px; padding-top: 10px; border-top: 1px solid var(--ink); }
.band--family .tl--chapter { padding: 0; height: 0; }
@media (max-width: 1400px) { .bio-chapters { display: none; } }
@media (max-width: 900px) { .family { grid-template-columns: minmax(0, 1fr); gap: 32px; } .band--family { padding-bottom: 72px; } }
@media (max-width: 760px) {
  .tl--chapter .chapter-mark, .tl--chapter:nth-child(even) .chapter-mark { margin: 0 0 0 34px; float: none; }
}

/* ---------- services page: the three steps as a system ---------- */
.svc { transition: transform .5s var(--ease-out); }
.svc:hover h3 a { color: var(--yellow); }
.svc::before { transition: color .3s ease; }
.svc:hover::before { color: var(--white); }
.svc-system { margin-top: 26px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.svc-system a {
  position: relative; display: block; padding: 24px 24px 26px; min-height: 180px;
  background: var(--glass); border: 1px solid var(--glass-line); text-decoration: none; color: var(--text-on-dark);
  transition: transform .5s var(--ease-out), border-color .3s ease, background-color .3s ease;
}
.svc-system a:hover { transform: translateY(-6px); border-color: rgba(252, 220, 49, .55); background: rgba(252, 220, 49, .06); }
.svc-system .n { display: block; font: 400 13px/1 var(--display); letter-spacing: .14em; color: var(--yellow); }
.svc-system strong { display: block; margin-top: 46px; font: 400 22px/26px var(--display); color: var(--white); }
.svc-system span { display: block; margin-top: 8px; font-size: 14px; line-height: 22px; }
@media (max-width: 900px) { .svc-system { grid-template-columns: minmax(0, 1fr); } .svc-system a { min-height: 0; } .svc-system strong { margin-top: 22px; } }

/* ---------- approach page: circuit path diagram ---------- */
.circuit { margin: 36px 0 0; }
.circuit svg { width: 100%; height: auto; display: block; overflow: visible; }
.circuit .c-line { fill: none; stroke: var(--rule); stroke-width: 2; }
.circuit .c-fill { fill: none; stroke: var(--yellow); stroke-width: 2; }
.circuit .c-node { fill: var(--paper); stroke: var(--ink); stroke-width: 2; }
.circuit .c-node.is-lit { fill: var(--yellow); }
.circuit text { font: 400 13px var(--display); letter-spacing: .1em; text-transform: uppercase; fill: var(--ink); }
.circuit .c-sub { font: 500 11px var(--body); letter-spacing: 0; text-transform: none; fill: var(--meta); }
@media (max-width: 760px) { .circuit text { font-size: 15px; letter-spacing: .06em; } .circuit .c-sub { font-size: 12px; } }

/* ---------- generic motion polish ---------- */
.btn, .pill { will-change: transform; }
.press a .tile { transition: background-color .3s ease, transform .5s var(--ease-out); }
.press a:hover .tile { transform: translateY(-4px); }
.cards > li, .stages > li, .steps > li { transition: transform .5s var(--ease-out); }

/* ---------- reduced motion: everything readable immediately, no pins or scrubbing ---------- */
@media (prefers-reduced-motion: reduce) {
  .js .hero .eyebrow, .js .hero h1, .js .hero .hero__actions, .js .hero .hero__meta, .js .hero .hero__hud, .js .hero__scroll { opacity: 1; animation: none; }
  .hero__scroll i::after { animation: none; transform: none; }
  .story__sec--services, .story__sec--rtm, .story__sec--data { min-height: 0; padding: 110px 0; }
  .story__sticky { position: static; min-height: 0; display: block; padding: 0; }
  .svc-card { position: relative !important; opacity: 1 !important; visibility: visible !important; }
  .svc-card + .svc-card { margin-top: 18px; }
  .svc-steps { display: none; }
  .mantra span, .mantra--sign span { opacity: 1; transform: none; }
  .rtm li .rtm__word, .ind-list .ind-w, .path__word, .pipe__name { color: var(--white); }
  .rtm li p, .ind-list p { opacity: 1; }
  .rtm li::before, .path li::before, .pipe li::before { background: var(--yellow); border-color: var(--yellow); }
  .facts--story li::before { width: 100%; }
  .wipe, .cursor { display: none !important; }
  .ind-panel { height: auto; position: static; }
  .js .story__stage { opacity: 1; transition: none; }
  @media (max-width: 900px) { .story__stage { position: relative; } }
}
