/* Effects layer from the 2026 website review (fx.js drives it). Loaded after site.css.
   Everything here degrades to the plain site: without JS, without GSAP, or with reduced motion. */

:root {
  --ice-strong: #9cc8e2;     /* ice blue that reads on black */
  --ice-deep: #4f86a8;       /* ice blue that reads on the light sections */
  --soft-ease: cubic-bezier(.16, 1, .3, 1);   /* the "soft-close hinge": quick to start, long to settle */
  --soft-dur: 1s;
}

/* Smooth scrolling is Lenis's job when it is running. */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---- Opening: the loader hands over slowly, the hero arrives about a second later ---- */
.has-loader .loader { transition: opacity 1.2s var(--soft-ease), filter 1.2s var(--soft-ease), transform 1.4s var(--soft-ease), visibility 0s 1.4s; }
.loader.is-out { filter: blur(10px); transform: scale(1.04); }
.hero .line > span { transition-duration: 1.3s; transition-timing-function: var(--soft-ease); }
.has-loader .hero .line > span { transition-delay: .9s; }
.has-loader .hero .line:nth-child(2) > span { transition-delay: 1s; }
.hero-widget, .hero-buzz, .hero-foot, .scroll-cue { opacity: 0; transform: translateY(14px); transition: opacity 1.2s var(--soft-ease), transform 1.2s var(--soft-ease); }
.has-loader .hero-widget, .has-loader .hero-buzz, .has-loader .hero-foot, .has-loader .scroll-cue { transition-delay: 1.1s; }
.hero.is-in .hero-widget, .hero.is-in .hero-buzz, .hero.is-in .hero-foot, .hero.is-in .scroll-cue, html:not(.js) .hero :is(.hero-widget, .hero-buzz, .hero-foot, .scroll-cue) { opacity: 1; transform: none; }
/* With the effects on, the widget makes its own entrance (fx.js): no CSS transition to drag behind it. */
.fx-on .hero-widget { transition: none; }
.hero-widget.hw-pending { opacity: 0 !important; }

/* ---- Hero: black, a cursor-lit pixel field, the live Malé strip, buzzwords, scroll cue ---- */
.hero.dark { --hero-accent: var(--accent-hi); }
.hero-pixels { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero .hero-light { opacity: .9; }
.hero-horizon { background: linear-gradient(90deg, rgba(var(--accent-rgb),.55), rgba(156,200,226,.35) 55%, transparent) !important; }

.hero-top { align-items: flex-start; }
/* The Malé widget: a small dark card with a live dot. --hw-glow (fx.js) lights its edge red on impact. */
.hero-widget { position: relative; z-index: 3; padding: 13px 18px 15px; border-radius: 16px; border: 1px solid rgba(156,200,226,.2);
  background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.015) 60%), rgba(16,17,20,.78);
  box-shadow: 0 0 0 1px rgba(234,68,88, calc(var(--hw-glow, 0) * .9)), 0 0 calc(var(--hw-glow, 0) * 44px) rgba(234,68,88, calc(var(--hw-glow, 0) * .5)), 0 26px 60px -26px rgba(0,0,0,.85), inset 0 1px 0 rgba(255,255,255,.06);
  will-change: transform; }
.hw-head { display: flex; align-items: center; gap: 8px; margin-bottom: 11px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.07); font-size: 10px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: rgba(var(--light-rgb), .6); }
.hw-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-hi); animation: hwLive 2s ease-out infinite; }
@keyframes hwLive { 0% { box-shadow: 0 0 0 0 rgba(234,68,88,.6); } 70%, 100% { box-shadow: 0 0 0 7px rgba(234,68,88,0); } }
.hw-sep { opacity: .45; }
.hw-geo { color: rgba(var(--light-rgb), .5); letter-spacing: .12em; font-variant-numeric: tabular-nums; text-transform: none; }
.hero-info dd.hw-date { display: grid; gap: 4px; }
.hw-day { font-size: 11.5px; font-weight: 400; letter-spacing: .06em; color: rgba(var(--light-rgb), .55); }
.hw-ring { position: fixed; z-index: 4; border-radius: 18px; border: 1px solid #9cc8e2; pointer-events: none; }
.hw-ring.red { border-color: var(--accent-hi); }
.hero-info { display: flex; flex-wrap: wrap; gap: 10px clamp(20px, 2.6vw, 40px); margin: 0; font-size: 13px; line-height: 1.25; }
.hero-info div { display: grid; gap: 6px; }
.hero-info dt { font-size: 10.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--ice-strong); opacity: .8; }
.hero-info dd { margin: 0; color: var(--hero-fg); font-weight: 500; letter-spacing: .02em; white-space: nowrap; }

/* Flip clock: each digit is a small card; on change the old digit folds away and blurs, the new one drops in. */
.clock-face { display: inline-flex; align-items: center; gap: 2px; font-size: 15px; font-variant-numeric: tabular-nums; }
.hero-info dd.clock { margin-top: -3px; }
.flip { position: relative; display: inline-block; width: .72em; height: 1.3em; perspective: 120px; }
.flip b { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 500; border-radius: 3px; background: rgba(255,255,255,.06); box-shadow: inset 0 -1px 0 rgba(255,255,255,.06), inset 0 1px 0 rgba(0,0,0,.4); backface-visibility: hidden; transform-origin: 50% 50%; }
.flip b::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0,0,0,.45); }
.clock-colon { width: .34em; text-align: center; animation: colon 2s steps(1) infinite; color: var(--accent-hi); }
@keyframes colon { 50% { opacity: .25; } }

.hero-buzz { display: flex; align-items: baseline; gap: 14px; margin-bottom: -8px; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; }
.hero-buzz-k { color: var(--hero-muted); }
.hero-buzz-k::after { content: ""; display: inline-block; width: 28px; height: 1px; margin-left: 14px; vertical-align: middle; background: var(--ice-strong); }
.hero-buzz-w { color: var(--ice-strong); font-weight: 500; min-width: 18ch; }

.scroll-cue { position: absolute; left: 50%; bottom: clamp(18px, 3.5vh, 34px); translate: -50% 0; z-index: 2; display: grid; justify-items: center; gap: 10px; color: var(--hero-muted); font-size: 10.5px; letter-spacing: .32em; text-indent: .32em; text-transform: uppercase; text-decoration: none; }
.scroll-cue i { position: relative; width: 1px; height: 46px; overflow: hidden; background: rgba(255,255,255,.14); }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 46%; background: linear-gradient(var(--ice-strong), var(--accent-hi)); animation: cue 2.2s var(--soft-ease) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 100% { transform: translateY(220%); } }
.scroll-cue:hover { color: var(--hero-fg); }
/* fx.js hides the cue when the buttons reach down to it (short or narrow laptop screens). */
.hero.is-in .scroll-cue.cue-off { opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; }
/* ---- The first screen holds everything up to the two buttons, on every screen size ---- */
/* Laptops: the headline is sized by the screen's height as well as its width, and the gaps tighten on short screens. */
.hero-tag { font-size: clamp(36px, min(4.9vw, 8.2vh), 82px); }
.hero-copy { gap: clamp(20px, 3.4vh, 44px); }
.hero { padding-bottom: clamp(40px, 7vh, 96px); }

/* Phones and tablets: brand and a one-line widget on top, the copy anchored to the bottom of the screen, and the 3D H
   in whatever room is left between them (site.js sizes it; if there is no room it shrinks, never the buttons). */
@media (max-width: 900px) {
  .hero { grid-template-rows: auto minmax(0, 1fr) auto; align-content: stretch; padding-top: 84px; padding-bottom: max(22px, env(safe-area-inset-bottom)); }
  .hero-copy { align-self: end; margin-top: 0; gap: 16px; }
  .hero-top { gap: 12px; }
  .hero-tag { font-size: clamp(29px, min(8.6vw, 6.3svh), 50px); line-height: 1.06; }
  .hero-foot { gap: 16px; }
  .hero-lede { font-size: 15px; line-height: 1.5; }
  .hero .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
  .hero .row .btn { min-width: 0; padding: 0 12px; height: 50px; font-size: 14px; justify-content: center; text-align: center; white-space: nowrap; }
  .scroll-cue { display: none; }
  .hero-buzz { font-size: 11px; gap: 10px; margin-bottom: -4px; }
  .hero-buzz-k::after { width: 16px; margin-left: 10px; }
  /* The widget as a one-line pill: live dot, time, weather. */
  .hero-widget { display: flex; align-items: center; gap: 14px; padding: 9px 14px; border-radius: 12px; }
  .hw-head { margin: 0; padding: 0; border: 0; font-size: 9.5px; gap: 6px; }
  .hw-head .hw-sep, .hw-head .hw-city, .hw-head .hw-geo { display: none; }
  .hero-info { display: flex; align-items: center; gap: 14px; font-size: 13px; }
  .hero-info dt { display: none; }
  .hero-info > div:nth-child(1) { display: none; }
  .hero-info dd.clock { margin-top: 0; }
  .clock-face { font-size: 14px; }
}
@media (max-width: 900px) and (max-height: 700px) {
  .hero-buzz { display: none; }
}
@media (max-width: 380px) {
  .hero .row .btn { font-size: 13px; padding: 0 8px; }
}
/* Laptops: the H sits a little lower and never taller than the room under the widget. */
@media (min-width: 901px) {
  .hero-mark { top: calc(50% + 34px); height: min(54svh, calc(100svh - 290px)); }
}

/* ---- Ice blue in the black and red system ---- */
.marquee svg { color: var(--ice-strong); }
.dark .eyebrow::before, .hero .eyebrow::before { background: var(--ice-strong); }
.svc-n { color: var(--ice-deep); }
.work-head h2 em { color: var(--ice-strong); opacity: .78; }
.scale-track { background: rgba(156,200,226,.55); }

/* ---- Edges: text dissolves just before it reaches the top or bottom of the screen (fx.js sets --fade) ---- */
.edge { opacity: var(--fade, 1); }

/* ---- The ruler (route.js): indents, a wider hit strip, the section name on hover ---- */
.scale-hit { position: absolute; left: calc(var(--x, -10px) - 22px); top: calc(var(--top, 0px) - 12px); width: 44px; height: calc(var(--len, 0px) + 24px); cursor: pointer; }
.scale.live .scale-hit { pointer-events: auto; }
.scale-minor { position: absolute; left: calc(var(--x, -10px) - 3px); width: 7px; height: 1px; background: rgba(var(--grey-rgb), .38); transform-origin: right center; transform: scaleX(calc(1 + var(--k, 0) * 1.6)); transition: transform .35s var(--soft-ease), background .3s; }
.scale-minor.mid { left: calc(var(--x, -10px) - 4px); width: 9px; }
.scale-minor.on { background: rgba(var(--accent-rgb), .5); }
.scale-label { position: absolute; right: calc(100vw - var(--x, 0px) + 22px); transform: translateY(-50%); padding: 6px 10px; border-radius: 999px; font: 500 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; color: var(--light); background: rgba(var(--dark-rgb), .86); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; transition: opacity .25s, top .25s var(--soft-ease); pointer-events: none; }
.scale.hover .scale-label:not(:empty) { opacity: 1; }
.scale.hover .scale-tick { transform: scaleX(1.9); }

/* ---- Headings: the key word (the <em>) comes in letter by letter ---- */
.kw-char { display: inline-block; }   /* no permanent will-change: dozens of idle layers cost memory on phones */

/* "Before you ask": the letters fill in as you scroll */
.h-fill .fill-char { color: rgba(var(--dark-rgb), .14); transition: none; }

/* ---- Annotations: drawn marks on key words ---- */
.note { position: relative; white-space: nowrap; }
.note svg { position: absolute; overflow: visible; pointer-events: none; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.note[data-note="underline"] svg { left: -2%; bottom: -.32em; width: 104%; height: .5em; stroke: var(--accent); stroke-width: 2.4; }
.note[data-note="circle"] svg { left: -7%; top: -26%; width: 114%; height: 152%; stroke: var(--ice-deep); stroke-width: 1.8; }
.note[data-note="highlight"] { isolation: isolate; }
.note[data-note="highlight"] svg { left: -1.5%; top: 8%; width: 103%; height: 92%; z-index: -1; stroke: none; }
.note[data-note="highlight"] svg rect { fill: rgba(156,200,226,.28); }
.dark .note[data-note="highlight"] svg rect { fill: rgba(var(--accent-rgb), .38); }

/* ---- Smoothness: cheap stand-ins for effects that repaint large areas every frame ---- */
/* Our approach: the sheet underneath dims through an overlay's opacity (site.js sets --dim), not a filter. */
.sheet::after { content: ""; position: absolute; inset: 0; z-index: 5; border-radius: inherit; background: #000; opacity: var(--dim, 0); pointer-events: none; }
/* The services list's frosted glass would have to re-blur behind every tilting row: a solid panel instead. */
.fx-on .svc-list { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--bg); }
/* The questions section's ice tint is a layer whose opacity fx.js scrubs (no background repaint). */
.faq-sec { position: relative; isolation: isolate; }
.faq-sec::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #e2edf4; opacity: var(--ice, 0); pointer-events: none; will-change: opacity; }

/* ---- Services: rows tilt up out of the page as they arrive; smooth open and close ---- */
.svc-list { perspective: 1400px; }
.svc { transform-origin: 50% 100%; }
.svc-body, .faq details p { overflow: hidden; }
.fx-on .svc[open] .svc-body, .fx-on .faq details[open] p { animation: none; }

/* ---- Work: the dark section rises on a wave; the screenshot story (fx.js) ---- */
.work { position: relative; overflow: visible; }
.wave { position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); width: 100%; height: clamp(60px, 9vw, 160px); fill: var(--dark); pointer-events: none; }
.work-cycle { color: var(--ice-strong); white-space: nowrap; }
/* With the effects on, fx.js drives the frame: the stylesheet's own scroll animation (site.css) and the hover zoom's
   transition would fight it every frame, so both are off. */
.fx-on .work-shot { animation: none; }
.work-stage { position: relative; height: 100vh; height: 100svh; display: grid; align-items: center; padding: 96px 0 28px; }
.work-stage > * { grid-area: 1 / 1; }
.work-stage .work-head { margin-bottom: 0; }
/* The frame and its tab bar fit the screen: 16:10 pages, under the navbar, with room for the tabs. */
.work-stage .gcar { justify-self: center; width: min(100%, calc((100svh - 96px - 28px - 34px - 84px) * 1.6)); }

/* ---- The carousel: the site page by page in a browser frame ---- */
.gcar { position: relative; }
.gcar-frame { display: block; outline: none; touch-action: pan-y; -webkit-user-select: none; user-select: none; cursor: grab; }
.gcar-frame:active { cursor: grabbing; }
.gcar-frame:focus-visible { box-shadow: 0 0 0 2px var(--ice-strong), 0 60px 120px -60px rgba(0,0,0,.7); }
.gcar-url { position: absolute; z-index: 3; top: 7px; left: 50%; translate: -50% 0; display: flex; align-items: center; height: 20px; padding: 0 14px; border-radius: 999px; font-size: 11.5px; letter-spacing: .02em; white-space: nowrap; color: rgba(var(--light-rgb), .5); background: rgba(255,255,255,.06); }
.gcar-url b { font-weight: 500; color: var(--light); }
.gcar-track { position: relative; overflow: hidden; background: var(--char-2); }
.gcar-slide { margin: 0; }
.gcar .gcar-slide img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: none; }
.gcar .work-shot:hover img { transform: none; }
.gcar .work-tag { z-index: 4; text-decoration: none; transition: background .3s, border-color .3s; }
.gcar .work-tag:hover { background: rgba(var(--dark-rgb), .85); border-color: rgba(var(--light-rgb), .35); }
.gcar-soft { position: absolute; inset: 0; z-index: 1; filter: blur(26px) saturate(1.15); transform: scale(1.1); pointer-events: none; }
/* Live (fx.js): one page at a time, stacked; only the one on show (and the one arriving) is drawn. */
.gcar.is-live .gcar-track { aspect-ratio: 16 / 10; }
.gcar.is-live .gcar-slide { position: absolute; inset: 0; overflow: hidden; visibility: hidden; will-change: transform; }
.gcar.is-live .gcar-slide.is-on { visibility: visible; }
/* Without the script: the pages as a plain gallery. */
.gcar:not(.is-live) .gcar-track { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 8px; }
.gcar:not(.is-live) .gcar-slide img { aspect-ratio: 16 / 10; height: auto; }
.gcar:not(.is-live) .gcar-bar, .gcar:not(.is-live) .gcar-url { display: none; }

.gcar-bar { display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); margin-top: 18px; }
.gcar-tabs { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.gcar-tab { position: relative; display: grid; gap: 5px; padding: 12px 0 2px; border: 0; background: none; text-align: left; font: 500 13.5px/1.2 var(--sans); color: rgba(var(--light-rgb), .45); cursor: pointer; transition: color .4s; }
.gcar-tab-n { font-size: 10.5px; letter-spacing: .18em; color: var(--ice-strong); opacity: .65; transition: opacity .4s; }
.gcar-tab-bar { position: absolute; left: 0; right: 0; top: 0; height: 1px; overflow: hidden; background: rgba(var(--light-rgb), .16); }
.gcar-tab-bar > i { position: absolute; inset: 0; background: var(--accent-hi); transform-origin: 0 50%; transform: scaleX(0); }
.gcar-tab:hover, .gcar-tab.is-on { color: var(--light); }
.gcar-tab.is-on .gcar-tab-n { opacity: 1; }
.gcar-tab:focus-visible { outline: 1px solid var(--ice-strong); outline-offset: 4px; }
.gcar-btns { display: flex; gap: 8px; flex: none; }
.gcar-btn { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(var(--light-rgb), .22); background: transparent; color: var(--light); cursor: pointer; transition: background .3s, border-color .3s, color .3s; }
.gcar-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.gcar-btn:hover { background: var(--light); border-color: var(--light); color: var(--dark); }
@media (max-width: 760px) {
  .gcar-url { font-size: 10px; height: 18px; top: 8px; padding: 0 10px; max-width: 70%; overflow: hidden; }
  .gcar-tabs { display: flex; gap: 18px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
  .gcar-tabs::-webkit-scrollbar { display: none; }
  .gcar-tab { flex: 0 0 auto; min-width: 92px; scroll-snap-align: start; }
  .gcar-btns { display: none; }
}

/* ---- Founders: cards lean toward the pointer with a moving glare ---- */
.people { perspective: 900px; }
.face { position: relative; transform-style: preserve-3d; transition: transform .6s var(--soft-ease); }
.face::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255,255,255,.32), transparent 55%); opacity: 0; transition: opacity .4s; mix-blend-mode: soft-light; }
.people li:hover .face::after { opacity: 1; }

/* ---- Kinetic band: three words, every letter at its own speed ---- */
.kinetic { position: relative; overflow: hidden; padding: clamp(64px, 9vw, 140px) var(--gut); background: var(--bg); border-top: 1px solid var(--line); }
.kinetic-row { font: 500 clamp(64px, 14vw, 240px)/.86 var(--display); letter-spacing: -.055em; white-space: nowrap; color: var(--dark); }
.kinetic-row.kinetic-alt { text-align: right; color: transparent; -webkit-text-stroke: 1.5px var(--ice-deep); }
.kinetic-row:last-child { color: var(--accent); }
.kinetic .k-char { display: inline-block; will-change: transform; }

/* ---- FAQ: the light section warms to ice and back (fx.js scrubs the background) ---- */

/* ---- Toolkit ring ---- */
.ring-sec { background: #0a0a0b; color: var(--light); overflow: hidden; }
.ring-wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; align-items: center; }
.ring-wrap .sec-head { margin-bottom: 0; }
.ring-wrap .lead { color: var(--muted-dark); }
.ring-stage { position: relative; height: clamp(360px, 46vw, 620px); perspective: 1400px; mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent); -webkit-mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent); }
.ring { position: absolute; left: 50%; top: 50%; transform-style: preserve-3d; transform: rotateX(-14deg); }
.ring span { position: absolute; left: 0; top: 0; translate: -50% -50%; white-space: nowrap; font: 500 clamp(18px, 2vw, 30px)/1 var(--display); letter-spacing: -.02em; padding: 12px 20px; border-radius: 999px; border: 1px solid rgba(156,200,226,.28); background: rgba(255,255,255,.03); color: var(--light); backface-visibility: hidden; }
.ring span:nth-child(3n) { color: var(--accent-hi); border-color: rgba(var(--accent-rgb), .45); }
.ring span:nth-child(3n+1) { color: var(--ice-strong); }
@media (max-width: 960px) { .ring-wrap { grid-template-columns: 1fr; } .ring-stage { height: 340px; } }

/* ---- Email: letters roll over on hover ---- */
.roll { display: inline-flex; flex-wrap: wrap; }
.roll .r-char { position: relative; display: inline-block; overflow: hidden; vertical-align: bottom; }
.roll .r-char i { display: block; font-style: normal; transition: transform .6s var(--soft-ease); transition-delay: calc(var(--i) * 18ms); }
.roll .r-char i + i { position: absolute; left: 0; top: 100%; color: var(--accent-hi); }
a:hover .roll .r-char i { transform: translateY(-100%); }

/* ---- Footer word: letters drop in once, with a soft settle ---- */
.foot-word .f-char { display: inline-block; background: inherit; -webkit-background-clip: text; background-clip: text; }

/* ---- Contact: the big H is gone (logo.js fades it after the blast) ---- */

@media (prefers-reduced-motion: reduce) {
  .edge { filter: none; }
  .hero-widget, .hero-buzz, .hero-foot, .scroll-cue { opacity: 1; transform: none; transition: none; }
  .hw-dot { animation: none; }
  .scroll-cue i::after, .clock-colon { animation: none; }
}

/* Toolkit without motion: the ring lies flat as a wrapped list. */
.ring-flat .ring-stage { height: auto; perspective: none; mask-image: none; -webkit-mask-image: none; }
.ring-flat .ring { position: static; display: flex; flex-wrap: wrap; gap: 10px; transform: none; }
.ring-flat .ring span { position: static; translate: none; }

/* ---- Review comments, 22 Nov ---- */
/* "do you require?": rolling letters. Each letter is a two-high drum (the letter and a copy below it) in a window one
   line tall, with room left under it for descenders; fx.js rolls the drums up, from the middle letter outwards. */
.rt-word { white-space: nowrap; }
.rt-char { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .16em; margin-bottom: -.16em; }
.rt-in { position: relative; display: block; will-change: transform; }
.rt-in > span { display: block; }
.rt-in > span + span { position: absolute; left: 0; top: calc(100% + .16em); }

/* "Our Scope of Expertise": words keep their width while scrambling (fx.js). */
.hs-word { display: inline-block; white-space: nowrap; }

/* Carousel: grabbing while a page is being dragged. */
.gcar-frame.is-dragging, .gcar-frame.is-dragging * { cursor: grabbing; }
.gcar .gcar-slide img { -webkit-user-drag: none; }

/* Contact: the dot-and-streak field (fx.js) sits behind the copy. */
.contact .streaks { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

/* Our approach: white, then grey, then black. */
.s2 { background: rgb(168, 168, 165); color: var(--black); }
.s2 h2 .line:last-child > span > span { color: var(--soft); }
.s3 { background: var(--char); color: var(--white); }
.s3 h2 .line:last-child > span > span { color: var(--soft-dark); }

/* Founders: the dust layers each photo assembles from and crumbles into (fx.js). They sit over the photo, outside its
   rounded clip so the dust can drift past the edges. */
.people li { position: relative; }
.dust { position: absolute; z-index: 2; pointer-events: none; }
.dust canvas { position: absolute; inset: 0; width: 100%; height: 100%; will-change: transform, opacity; }
.face img { transition-property: filter, transform; }

/* About: Ghost Type. Letters keep their place while hidden; the caret takes no width, so nothing reflows. */
.gt-word { white-space: nowrap; }
.gt-char { display: inline-block; will-change: transform, filter, opacity; }
.gt-caret { position: relative; display: inline-block; width: 0; height: 1em; vertical-align: baseline; }
.gt-caret::after { content: ""; position: absolute; left: .02em; bottom: -.12em; width: .06em; height: .95em; background: currentColor; box-shadow: 0 0 12px rgba(234,68,88,.7); animation: gtBlink .9s steps(1) infinite; }
@keyframes gtBlink { 50% { opacity: 0; } }

/* The dust can drift past the photos' edges; keep it from widening the page (phones would let it scroll sideways). */
.about { overflow-x: clip; }
/* Phones: the ruler sits near the edge, so its touch strip reaches inward instead of past the screen. */
@media (max-width: 900px) { .scale-hit { left: calc(var(--x, -10px) - 32px); width: 38px; } }

/* Phones: an open service is a padded panel (the grey runs a little past the text on both sides), with a list sized
   for a phone rather than the desktop's. The text stays on the page gutter. */
@media (max-width: 900px) {
  .svc summary { padding-left: 16px; padding-right: 16px; margin: 0 -16px; }
  .svc-body { padding: 4px 16px 28px; margin: 0 -16px; gap: 20px; }
  .svc-body .ticks li { padding: 10px 0 10px 22px; font-size: 15.5px; line-height: 1.5; }
  .svc-body .ticks li::before { width: 10px; top: 1.32em; }
  .svc-body .ticks li:first-child { border-top: 0; }
}

/* Phones: the "… the full details" link is its own row well below the button: a hairline above, the words on the
   left, an arrow on the right, no underline. */
@media (max-width: 900px) {
  .svc-act { gap: 28px; padding-top: 8px; justify-items: stretch; }
  .svc-act .btn { justify-self: start; }
  .svc-more { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 56px; padding: 14px 0 0; border-top: 1px solid var(--line-2); font-size: 15px; line-height: 1.45; color: var(--black); text-decoration: none; text-wrap: balance; }
  .svc-more::after { content: "\2192"; flex: none; font-size: 17px; color: var(--red); transition: transform .25s; }
  .svc-more:active::after { transform: translateX(4px); }
}
