/* TriuneDigi — Stage 1 brand layer: preloader, the mark, the hero.
   Loaded after main.css. Transform and opacity only; never shadow, filter,
   width, height, top or left. Every hidden start state is gated behind
   html.js so the page is readable with scripts off. */

/* ── Preloader ──────────────────────────────────────────────────────────
   Only ever shown when JS is running, so no-JS visitors see the page at
   once. First visit per session; main.js removes it on real readiness. */
.preloader { display: none; }

html.js .preloader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 26px;
  background: var(--color-base);
  transition: opacity 0.45s var(--ease);
}
html.js .preloader[hidden] { display: none; }
.preloader.is-done { opacity: 0; pointer-events: none; }

.pl-lockup { display: flex; align-items: center; gap: 14px; }
.pl-mark { width: 56px; height: 56px; display: block; flex: 0 0 auto; }
.pl-word {
  display: flex;
  overflow: hidden;
  font-size: clamp(26px, 6vw, 34px);
  font-weight: 800;
  letter-spacing: -0.032em;
  line-height: 1.1;
}
.pl-word span { display: inline-block; }
.pl-word .d { color: var(--color-accent); }

.pl-bar {
  width: min(190px, 48vw);
  height: 2px;
  border-radius: 2px;
  background: var(--color-border);
  overflow: hidden;
}
/* scaleX, not width — the fill tracks real readiness, set from main.js */
.pl-fill {
  display: block;
  height: 100%;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s linear;
}

/* The 2.4 s opening. Frame draws, bar wipes, dot pops, the word rises. */
.preloader .fr,
.preloader .bar,
.preloader .dt { transform-box: fill-box; }
.preloader .fr {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: pl-draw 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.preloader .bar {
  transform-origin: left center;
  transform: scaleX(0);
  animation: pl-wipe 0.5s cubic-bezier(0.2, 0.7, 0.3, 1) 0.55s forwards;
}
.preloader .dt {
  transform-origin: center;
  transform: scale(0);
  animation: pl-pop 0.4s cubic-bezier(0.3, 1.4, 0.5, 1) 0.7s forwards;
}
.preloader .pl-word span {
  transform: translateY(112%);
  animation: pl-rise 0.55s cubic-bezier(0.2, 0.8, 0.25, 1) forwards;
}
.preloader .pl-word .t { animation-delay: 0.9s; }
.preloader .pl-word .d { animation-delay: 1s; }

@keyframes pl-draw { to { stroke-dashoffset: 0; } }
@keyframes pl-wipe { to { transform: scaleX(1); } }
@keyframes pl-pop  { to { transform: scale(1); } }
@keyframes pl-rise { to { transform: translateY(0); } }

/* ── The mark in the nav ───────────────────────────────────────────────── */
.nav-mark { width: 34px; height: 34px; display: block; flex: 0 0 auto; }
.nav-logo { display: inline-flex; align-items: center; gap: 10px; }
.nav-wordmark {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-text);
}
.nav-wordmark i { font-style: normal; color: var(--color-accent); }

/* Hover replays the frame draw — desktop pointers only, 0.6 s. */
@media (hover: hover) and (pointer: fine) {
  .nav-logo:hover .nav-mark .fr,
  .nav-logo:focus-visible .nav-mark .fr {
    animation: pl-draw 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .nav-mark .fr { stroke-dasharray: 100; }
}

/* ── Mobile sheet: contact details at the bottom, where a thumb reaches ── */
.menu-contact {
  margin-top: 26px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text-muted);
}
.menu-contact a { color: var(--color-text); font-weight: 600; }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero { padding: 132px 0 84px; }
.hero-in {
  margin-inline: auto;
  max-width: 1200px;
  padding-inline: max(24px, env(safe-area-inset-left, 0px)) max(24px, env(safe-area-inset-right, 0px));
  display: grid;
  gap: 52px;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
}
.hero-chip {
  display: inline-flex;
  align-items: center;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 11px;
  border: 1px solid var(--color-border-strong);
  border-radius: 100px;
  padding: 6px 11px;
}
.hero-h1 { margin: 18px 0 0; }
/* The one sky highlight on the screen. Wipes in from the left on load. */
.mark-under {
  position: relative;
  display: inline-block;
}
/* The rule paints inside the span and the text sits on top of it, so no
   negative z-index is needed — that would drop it behind the page itself. */
.mark-under::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.06em;
  height: 0.26em;
  background: var(--sky);
  transform-origin: left center;
}
.mark-under > span {
  position: relative;
  z-index: 1;
}
html.js .mark-under::after { transform: scaleX(0); }
.hero-body {
  margin: 20px 0 0;
  max-width: 46ch;
  font-size: 18px;
  line-height: 1.62;
  color: #2B4A60;
}
.hero-ctas { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-proof-label { margin: 38px 0 0; color: var(--color-text-muted); }
.hero-proof {
  margin: 9px 0 0;
  font-size: 14.5px;
  font-weight: 600;
  color: #2B4A60;
}

/* The window. CSS and SVG, nothing streamed or rendered in 3D. */
.hero-art {
  border: 1px solid var(--color-border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--color-surface);
  will-change: transform;
}
.hero-art-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 9px 11px;
  background: var(--color-base);
  border-bottom: 1px solid var(--color-border);
}
.hero-art-bar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-border-strong);
  display: block;
}
.hero-art-url {
  margin-inline-start: 6px;
  height: 15px;
  flex: 1;
  max-width: 120px;
  border-radius: 8px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}
.hero-art-body { padding: 18px; }
.hero-art-title { margin: 7px 0 0; font-size: 21px; font-weight: 800; letter-spacing: -0.025em; }
.hero-chart { display: flex; align-items: flex-end; gap: 7px; height: 76px; margin-top: 16px; }
.hero-chart span { flex: 1; border-radius: 4px 4px 0 0; background: var(--mist); display: block; }
.hero-chart span.hi { background: var(--sky); }
.hero-chart span.top { background: var(--coral); }
.hero-art-rule { height: 1px; background: var(--color-border); margin: 14px 0; }
.hero-art-row { display: flex; align-items: center; gap: 10px; }
.hero-art-ic {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--butter);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.hero-art-ic svg { width: 17px; height: 17px; display: block; }
.hero-art-tag {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 11px;
  font-weight: 700;
  background: var(--amber);
  color: var(--color-text);
  border-radius: 100px;
  padding: 7px 10px;
}

/* Reveal start states. Gated behind html.js so no-JS sees finished content,
   and driven by a CSS transition rather than by a library: if the animation
   frame callback never runs - a background tab, a throttled webview, a blocked
   CDN - the transition still settles and the hero is still readable. main.js
   adds html.hero-revealed on a timeout, which runs whatever happens to rAF.
   NB: that class must never share a name with a class used on an element, or
   <html> inherits that element's layout. It did, once: .hero-in. */
html.js .hero-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
html.js.hero-revealed .hero-reveal { opacity: 1; transform: none; }

/* The stagger, as transition delays - 0.07 s apart, in document order */
html.js .hero-copy > .hero-reveal:nth-child(1) { transition-delay: 0s; }
html.js .hero-copy > .hero-reveal:nth-child(2) { transition-delay: 0.07s; }
html.js .hero-copy > .hero-reveal:nth-child(3) { transition-delay: 0.14s; }
html.js .hero-copy > .hero-reveal:nth-child(4) { transition-delay: 0.21s; }
html.js .hero-copy > .hero-reveal:nth-child(5) { transition-delay: 0.28s; }
html.js .hero-art { transition-delay: 0.14s; }

@media (max-width: 900px) {
  .hero { padding: 104px 0 56px; }
  .hero-in { grid-template-columns: 1fr; gap: 32px; }
  .hero-body { font-size: 16px; max-width: none; }
  .hero-ctas { display: grid; gap: 10px; }
  .hero-ctas .btn { width: 100%; }
  .hero-proof { line-height: 1.8; }
}

/* ── Low-end and reduced motion ─────────────────────────────────────────
   Set by main.js on <= 4 cores, <= 2 GB, or prefers-reduced-motion. */
@media (prefers-reduced-motion: reduce) {
  .preloader .fr, .preloader .bar, .preloader .dt, .preloader .pl-word span {
    animation: none;
    stroke-dashoffset: 0;
    transform: none;
  }
  html.js .hero-reveal { opacity: 1; transform: none; transition: none; }
  html.js .mark-under::after { transform: scaleX(1); }
}
html.low-end .hero-art { animation: none !important; transform: none !important; }

/* ── Fixes to inherited behaviour ───────────────────────────────────────── */

/* Screen-reader-only text that survives the Tailwind CLI swap in Stage 2 */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Nav hides on the way down, returns on the way up — transform, not top */
.site-nav.is-hidden { transform: translateY(-100%); }

/* The sky rule under "more customers" wipes in from the left */
html.js .mark-under::after { transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.3, 1); }
html.js .mark-under.is-lit::after { transform: scaleX(1); }

/* These two used to animate width. scaleX costs nothing to composite. */
.rule, .process-line-fill { transform-origin: left center; }
.process-line-fill { width: 100%; transform: scaleX(0); }

/* The window's idle float. Added after the reveal finishes so it cannot
   fight the reveal's transform, and paused while off-screen. */
@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.hero-art.is-float {
  animation: hero-float 6s ease-in-out infinite;
  animation-play-state: paused;
}
.hero-art.is-float.is-visible { animation-play-state: running; }
@media (prefers-reduced-motion: reduce) {
  .hero-art.is-float { animation: none; }
}

/* ───────────────────────────────────────────────────────────────────────
   Stage 2 — sections 03 to 10.
   ─────────────────────────────────────────────────────────────────────── */

/* Section rhythm. The old 120px top and bottom was a lot of nothing on a
   phone, where the whole viewport is 800px tall. */
.sec { padding-block: 96px; }
@media (max-width: 760px) { .sec { padding-block: 56px; } }

.shead { max-width: 56ch; margin-bottom: 44px; }
.shead .label { display: block; margin-bottom: 13px; }
.shead p { margin-top: 14px; font-size: 17px; line-height: 1.62; color: #2B4A60; }
@media (max-width: 760px) { .shead { margin-bottom: 28px; } }

/* Hover lift: transform only. The shadow is a pseudo-element fading its
   opacity, never an animated box-shadow, which repaints on every frame. */
.card, .project-card, .why-card { position: relative; transition: transform 0.26s var(--ease); }
.card::after, .project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 18px 44px -26px rgba(18, 44, 64, 0.5);
  opacity: 0;
  transition: opacity 0.26s var(--ease);
  pointer-events: none;
}
.card:hover, .project-card:hover,
.card:focus-within, .project-card:focus-within { transform: translateY(-4px); box-shadow: none; }
.card:hover::after, .project-card:hover::after,
.card:focus-within::after, .project-card:focus-within::after { opacity: 1; }
.why-card:hover { transform: none; box-shadow: none; }

/* Mono pills lost JetBrains Mono along with the rest of the site */
.pill-type { font-family: ui-monospace, 'SF Mono', Menlo, monospace; }

/* ── 03 What we build ─────────────────────────────────────────────────── */
.svc-ic {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--color-text);
}
.svc-ic svg { width: 21px; height: 21px; }
.svc-ic.t-mist { background: var(--mist); }
.svc-ic.t-butter { background: var(--butter); }
.svc-ic.t-sky { background: var(--sky); }
.svc-ic.t-cream { background: var(--cream); }
.card { padding: 24px; border-radius: 18px; }

/* ── 04 Projects ──────────────────────────────────────────────────────── */
/* Every card is white now. The only colour is inside the screenshot frame,
   and the navy #1A1A2E TriuneTrades panel is gone. */
.shot {
  border: 1px solid var(--color-border);
  border-radius: 13px;
  overflow: hidden;
  background: var(--color-surface);
}
.shot-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 7px 9px;
  background: var(--color-base);
  border-bottom: 1px solid var(--color-border);
}
.shot-bar i { width: 6px; height: 6px; border-radius: 50%; background: var(--color-border-strong); display: block; }
.shot-bar span { margin-inline-start: 5px; height: 12px; flex: 1; max-width: 96px; border-radius: 6px; background: var(--color-surface); border: 1px solid var(--color-border); }
/* .shot-img itself is styled in the motion layer below: it is a tall capture
   that slides inside .shot-view, so it must NOT be boxed to 16/10 here. */
/* Placeholder until the real 1440x900 WebP shots are dropped in */
.shot-stub { aspect-ratio: 16 / 10; padding: 14px; display: grid; gap: 7px; align-content: start; }
.shot-stub b { height: 44px; border-radius: 7px; display: block; }
.shot-stub i { height: 8px; border-radius: 4px; background: rgba(18, 44, 64, 0.2); display: block; }
.shot-stub u { height: 6px; border-radius: 4px; background: var(--color-border); display: block; }
.proj-flag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 100px;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.proj-flag.live { background: var(--sky); color: var(--color-text); }
.proj-flag.concept { background: transparent; color: var(--color-text-muted); border: 1px solid var(--color-border-strong); }
.filter-row { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-chip {
  padding: 7px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--color-border-strong);
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.filter-chip[aria-current="true"] { background: var(--color-accent); color: #fff; border-color: transparent; }
.filter-chip:hover { border-color: var(--color-accent); }

/* ── 05 Why us — the mist band, in place of the one dark section ───────── */
.band-mist { background: var(--mist); }
.band-mist .shead p, .band-mist p { color: #20405A; }
.band-mist .label { color: #2A4C66; }
.why-card {
  padding: 19px;
  border-radius: 16px;
  background: var(--color-surface);
  border: 0;
}
.why-card .why-ic {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--color-base);
  color: var(--color-accent);
  display: grid;
  place-items: center;
}
.why-card h3 { margin-top: 12px; }
.why-card p { color: var(--color-text-muted); }

/* ── 07 Reviews ───────────────────────────────────────────────────────── */
.rev-panel {
  background: var(--butter);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  display: grid;
  justify-items: center;
}
@media (max-width: 760px) { .rev-panel { padding: 24px; border-radius: 16px; } }
.rev-panel h3 { font-size: clamp(18px, 3vw, 21px); max-width: 34ch; }
.rev-panel p { margin-top: 11px; max-width: 48ch; font-size: 15px; color: #6A5A2A; }
.stars { display: inline-flex; gap: 2px; color: var(--color-accent); }
.stars svg { width: 15px; height: 15px; display: block; }
.rev-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 1fr);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
}
.rev-row > * { scroll-snap-align: start; }
@media (max-width: 760px) { .rev-row { grid-auto-columns: minmax(240px, 85%); } }
.rev-card blockquote { margin: 11px 0 0; font-size: 15px; line-height: 1.65; color: #2B4A60; }
.rev-card cite { display: block; margin-top: 13px; font-style: normal; font-size: 13.5px; font-weight: 700; }
.rev-card cite span { display: block; font-weight: 500; color: var(--color-text-muted); }
.rev-form-wrap { margin-top: 18px; }
.rev-form-wrap summary {
  cursor: pointer;
  display: inline-flex;
  list-style: none;
  font-weight: 700;
  font-size: 15px;
  color: var(--color-accent);
}
.rev-form-wrap summary::-webkit-details-marker { display: none; }
.rating-set { display: flex; gap: 10px; flex-wrap: wrap; }
.rating-set label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 13px;
  border-radius: 100px;
  border: 1px solid var(--color-border-strong);
  font-size: 14px;
  cursor: pointer;
}
.rating-set input { accent-color: var(--color-accent); }
.rating-set input:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }

/* ── 08 FAQ ───────────────────────────────────────────────────────────── */
/* Plain details/summary. No JavaScript, and no animated height - that is the
   one thing guaranteed to stutter on a cheap phone. */
.faq-list { display: grid; gap: 9px; }
.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
}
.faq-item summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 21px;
  cursor: pointer;
  list-style: none;
  min-height: 44px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible { outline: 2px solid var(--color-accent); outline-offset: -2px; border-radius: 14px; }
.faq-sign { margin-inline-start: auto; flex: 0 0 auto; position: relative; width: 15px; height: 15px; }
.faq-sign::before, .faq-sign::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 6.5px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-accent);
}
.faq-sign::after { transform: rotate(90deg); transition: transform 0.22s var(--ease); }
.faq-item[open] .faq-sign::after { transform: rotate(0deg); }
.faq-item > p { margin: 0; padding: 0 21px 19px; font-size: 14.5px; line-height: 1.7; color: var(--color-text-muted); max-width: 64ch; }
@media (max-width: 760px) {
  .faq-item summary { padding: 15px 16px; font-size: 15.5px; }
  .faq-item > p { padding: 0 16px 16px; font-size: 13.5px; }
}

/* ── 09 Contact ───────────────────────────────────────────────────────── */
.contact-row { display: flex; gap: 13px; align-items: flex-start; }
.contact-row .k { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 12px; letter-spacing: 0.06em; color: var(--color-text-muted); }
.contact-row .v { font-size: 15.5px; font-weight: 600; }
.contact-row address { font-style: normal; font-size: 15px; font-weight: 500; line-height: 1.5; max-width: 26ch; }

/* ── 10 Footer ────────────────────────────────────────────────────────── */
/* Was #1A1A2E. Paper and one hairline rule, so the page ends as it opened. */
.site-foot { background: var(--color-base); color: var(--color-text); }
.site-foot .fcol-h {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.site-foot a { color: #2B4A60; transition: color 0.25s; }
.site-foot a:hover { color: var(--color-accent); }
.site-foot .fbot { border-top: 1px solid var(--color-border); color: var(--color-text-muted); }
.foot-link { transition: color 0.25s; }

/* ───────────────────────────────────────────────────────────────────────
   Motion layer. Everything here is transform or opacity, nothing animates
   layout, and every effect is switched off by prefers-reduced-motion or by
   html.low-end. The point is for the page to feel alive while still holding
   60fps on a cheap Android.
   ─────────────────────────────────────────────────────────────────────── */

/* ── Scroll progress, hairline, under the nav ──────────────────────────── */
.scroll-bar {
  position: absolute;
  inset-inline: 0;
  bottom: -1px;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}
html.low-end .scroll-bar { display: none; }

/* ── Word-by-word heading reveal ───────────────────────────────────────
   main.js wraps each word in .w > .wi. The mask is the .w box; the .wi
   slides inside it. padding/margin pair keeps descenders from being cut. */
.split .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.09em;
  margin-bottom: -0.09em;
}
.split .wi {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 0.62s cubic-bezier(0.2, 0.8, 0.25, 1);
  transition-delay: calc(var(--i, 0) * 38ms);
}
.split.in .wi { transform: none; }

/* ── Section reveal, for blocks that are not headings ──────────────────── */
.rise {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transition-delay: calc(var(--i, 0) * 60ms);
}
.rise.in { opacity: 1; transform: none; }

/* ── The eyebrow gets a dash that draws itself ─────────────────────────── */
.shead .label { display: inline-flex; align-items: center; gap: 10px; }
.shead .label::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--sky);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.5s var(--ease) 0.1s;
}
.shead .label.in::before { transform: scaleX(1); }

/* ── Project previews: the page scrolls while you hover ─────────────────
   The captures are 640x1300 and the window is 16:10, so the visible slice is
   about 31% of the image; -69% brings the bottom of the page into view.
   A transition, not an animation, so leaving the card eases it back. */
.shot-view {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
  background: var(--color-base);
}
.shot-img {
  width: 100%;
  height: auto;
  display: block;
  transform: translateY(0);
  transition: transform 5.5s cubic-bezier(0.33, 0, 0.3, 1);
  will-change: transform;
}
.project-card:hover .shot-img,
.project-card:focus-within .shot-img { transform: translateY(-69%); }
.shot { transition: border-color 0.3s var(--ease); }
.project-card:hover .shot { border-color: var(--steel); }

/* A quiet hint that the card does something, desktop pointers only */
.shot-hint {
  position: absolute;
  inset-block-end: 9px;
  inset-inline-end: 9px;
  z-index: 2;
  display: none;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 100px;
  background: rgba(18, 44, 64, 0.82);
  color: #fff;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .shot-hint { display: inline-flex; }
  .project-card:hover .shot-hint { opacity: 1; transform: none; }
}

/* ── Card micro-interactions ───────────────────────────────────────────── */
.svc-ic { transition: transform 0.3s cubic-bezier(0.3, 1.3, 0.5, 1); }
.card:hover .svc-ic { transform: translateY(-3px) rotate(-6deg); }
.why-card .why-ic { transition: transform 0.3s cubic-bezier(0.3, 1.3, 0.5, 1); }
.why-card:hover .why-ic { transform: scale(1.08) rotate(5deg); }
.tag, .filter-chip { transition: transform 0.22s var(--ease), background-color 0.22s, border-color 0.22s, color 0.22s; }
.tag:hover, .filter-chip:hover { transform: translateY(-2px); }

/* ── Nav link underline ────────────────────────────────────────────────── */
.nav-link { position: relative; }
.nav-link::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -5px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.3s var(--ease);
}
.nav-link:hover::after,
.nav-link:focus-visible::after { transform: scaleX(1); transform-origin: left center; }

/* ── An arrow that leans forward on hover ──────────────────────────────── */
.btn .arw {
  display: inline-block;
  margin-inline-start: 8px;
  transition: transform 0.26s cubic-bezier(0.3, 1.2, 0.5, 1);
}
.btn:hover .arw { transform: translateX(4px); }

/* ── FAQ row nudges on hover ───────────────────────────────────────────── */
.faq-item summary { transition: background-color 0.22s var(--ease); border-radius: 14px; }
.faq-item summary:hover { background: var(--color-base); }
.faq-item > p { animation: faq-in 0.32s var(--ease); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ── The hero chart draws itself once the hero has arrived ─────────────── */
.hero-chart span {
  transform: scaleY(0);
  transform-origin: bottom center;
  transition: transform 0.75s cubic-bezier(0.2, 0.8, 0.25, 1);
  transition-delay: calc(0.55s + var(--i, 0) * 70ms);
}
html.hero-revealed .hero-chart span { transform: scaleY(1); }

/* The enquiry row in the hero window pulses once, then stops */
html.hero-revealed .hero-art-tag {
  animation: tag-pop 0.5s cubic-bezier(0.3, 1.4, 0.5, 1) 1.5s both;
}
@keyframes tag-pop {
  0% { transform: scale(0.82); opacity: 0; }
  60% { transform: scale(1.06); }
  100% { transform: scale(1); opacity: 1; }
}

/* ── Reviews: the stars settle in ──────────────────────────────────────── */
.rev-card .stars svg { transition: transform 0.3s cubic-bezier(0.3, 1.3, 0.5, 1); }
.rev-card:hover .stars svg:nth-child(1) { transform: translateY(-2px) rotate(-8deg); }
.rev-card:hover .stars svg:nth-child(2) { transform: translateY(-3px); }
.rev-card:hover .stars svg:nth-child(3) { transform: translateY(-4px) rotate(6deg); }
.rev-card:hover .stars svg:nth-child(4) { transform: translateY(-3px); }
.rev-card:hover .stars svg:nth-child(5) { transform: translateY(-2px) rotate(8deg); }

/* ── Everything above, off ─────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .split .wi { transform: none; transition: none; }
  .rise { opacity: 1; transform: none; transition: none; }
  .shead .label::before { transform: scaleX(1); transition: none; }
  .shot-img { transition: none; }
  .project-card:hover .shot-img,
  .project-card:focus-within .shot-img { transform: none; }
  .hero-chart span { transform: scaleY(1); transition: none; }
  html.hero-revealed .hero-art-tag { animation: none; }
  .faq-item > p { animation: none; }
  .svc-ic, .why-card .why-ic, .btn .arw, .tag, .filter-chip, .rev-card .stars svg { transition: none; }
  .scroll-bar { display: none; }
}
html.low-end .shot-img { transition-duration: 0s; }
html.low-end .hero-chart span { transform: scaleY(1); transition: none; }

/* ───────────────────────────────────────────────────────────────────────
   Services — pick a thread. Rows on the left, one card at a time on the
   right. Without JavaScript every card is visible and stacked, so the
   content is never trapped behind an interaction.
   ─────────────────────────────────────────────────────────────────────── */
.sv-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
  gap: 36px;
  align-items: start;
}
@media (max-width: 900px) { .sv-grid { grid-template-columns: 1fr; gap: 22px; } }

.sv-list { list-style: none; margin: 0; padding: 0; border-block-start: 1px solid var(--color-border); }
.sv-item { border-block-end: 1px solid var(--color-border); }

.sv-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "for arrow" "title arrow";
  gap: 3px 16px;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 19px 4px;
  text-align: left;
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
  transition: padding-inline-start 0.32s var(--ease);
}
/* the coral marker that runs down the active row */
.sv-row::before {
  content: "";
  position: absolute;
  inset-block: 10px;
  inset-inline-start: 0;
  width: 3px;
  border-radius: 3px;
  background: var(--coral);
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 0.34s var(--ease);
}
.sv-row:hover, .sv-row.is-on { padding-inline-start: 18px; }
.sv-row.is-on::before { transform: scaleY(1); }
.sv-row:focus-visible { outline: 2px solid var(--color-accent); outline-offset: -3px; border-radius: 12px; }

.sv-for {
  grid-area: for;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.sv-title {
  grid-area: title;
  font-size: clamp(20px, 2.3vw, 27px);
  font-weight: 800;
  letter-spacing: -0.028em;
  line-height: 1.14;
  text-wrap: balance;
}
.sv-row.is-on .sv-title { color: var(--color-accent); }
.sv-arrow {
  grid-area: arrow;
  font-size: 19px;
  color: var(--color-accent);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.sv-row:hover .sv-arrow, .sv-row.is-on .sv-arrow { opacity: 1; transform: none; }

.sv-panel { position: relative; }
.sv-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 28px;
}
/* only JavaScript hides the inactive cards */
html.js .sv-card { display: none; }
html.js .sv-card.is-active { display: block; animation: sv-in 0.42s var(--ease); }
html:not(.js) .sv-card + .sv-card { margin-top: 14px; }
@keyframes sv-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.sv-card-h { margin-top: 16px; font-size: clamp(21px, 2.2vw, 25px); font-weight: 800; letter-spacing: -0.028em; }
.sv-card-p { margin-top: 9px; font-size: 15.5px; line-height: 1.65; color: var(--color-text-muted); }
.sv-points { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.sv-points li { position: relative; padding-inline-start: 26px; font-size: 14.5px; }
.sv-points li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.52em;
  width: 15px;
  height: 2px;
  border-radius: 2px;
  background: var(--peri);
}
.sv-cta {
  display: inline-flex;
  align-items: center;
  margin-top: 24px;
  font-weight: 700;
  font-size: 15px;
  color: var(--color-accent);
}
.sv-cta .arw { margin-inline-start: 8px; transition: transform 0.26s cubic-bezier(0.3, 1.2, 0.5, 1); }
.sv-cta:hover .arw { transform: translateX(4px); }

@media (max-width: 900px) {
  .sv-card { padding: 20px; }
  .sv-row { padding-block: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  html.js .sv-card.is-active { animation: none; }
  .sv-row, .sv-row::before, .sv-arrow { transition: none; }
}

/* icon chips in the new palette */
.svc-ic.t-peri { background: var(--peri); }
.svc-ic.t-coral { background: var(--coral); }
.svc-ic.t-mint { background: var(--mint); }

/* the accent word in a section heading */
.t-display .acc { font-style: normal; color: var(--color-accent); }

/* ── Project cards that play ────────────────────────────────────────────
   The clips are 960x600, which is exactly the 16:10 of the window, so the
   video needs no cropping. preload="none" means nothing is fetched until
   someone actually hovers or the card reaches the screen on a phone. */
.shot-vid {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--color-base);
}
.shot-view:has(.shot-vid) { aspect-ratio: auto; }
.play-dot {
  position: absolute;
  inset-block-end: 9px;
  inset-inline-end: 9px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 100px;
  background: rgba(30, 27, 75, 0.84);
  color: #fff;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.04em;
  transition: opacity 0.25s var(--ease);
}
.play-dot i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
  display: block;
}
.project-card.is-playing .play-dot { opacity: 0; }

/* ───────────────────────────────────────────────────────────────────────
   Grain and display type.
   A flat colour fill is the single thing that makes a page look generated.
   One fixed noise layer over everything fixes that for about 400 bytes, and
   costs nothing to composite because it never repaints.
   ─────────────────────────────────────────────────────────────────────── */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.16 0 0 0 0 0.10 0 0 0 0 0.05 0 0 0 .18 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
/* A cheap phone has better things to do with its fill rate */
html.low-end body::after { display: none; }

/* Headings carry the display face; running text stays Plus Jakarta, which is
   the more readable of the two at paragraph sizes. */
.t-hero,
.t-display,
.sv-title,
.sv-card-h,
.hero-art-title,
.nav-wordmark,
.pl-word,
.rev-panel h3,
.faq-item summary,
.site-foot .nav-wordmark {
  font-family: var(--font-display);
  letter-spacing: -0.035em;
}
/* Bricolage runs a little wider than Jakarta, so the big sizes come back down */
.t-hero { font-size: clamp(32px, 4.4vw, 52px); }
.sv-title { letter-spacing: -0.032em; }

/* The optical-size axis: tighter at display sizes, looser small */
.t-hero, .t-display { font-variation-settings: "opsz" 48; }
.sv-title, .sv-card-h, .faq-item summary { font-variation-settings: "opsz" 24; }
