/* ============================================================
   MS AGENCY — SITE v5 (approved motion home + full site)
   The Magnetto composition in the MS language: wordmark left,
   the founder centre on the Liquid Field, his subline right,
   pill nav bottom-centre. Motion is the subject of this page:
   the settled launch grammar (halo → character resolves →
   silhouette sheen → split-and-reform wordmark → spring stop →
   sparkles → furniture), a living idle (field breath, cursor
   light on his silhouette, two-depth parallax, presence breath),
   and a designed scroll-out (three rates + light sweep + wipe).
   Tokens: house motion library + settled spec. Transform and
   opacity only; every entrance has its numbers from the spec.
   Identity: #FF5400 · #000000 · #272727 · #D4D4D4 · #FFFFFF
   ============================================================ */

@font-face {
  font-family: "Clash Display";
  src: url("fonts/ClashDisplay-300.ttf") format("truetype");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Clash Display";
  src: url("fonts/ClashDisplay-400.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Clash Display";
  src: url("fonts/ClashDisplay-500.ttf") format("truetype");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Clash Display";
  src: url("fonts/ClashDisplay-600.ttf") format("truetype");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Clash Display";
  src: url("fonts/ClashDisplay-700.ttf") format("truetype");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --orange: #FF5400;
  --black: #000000;
  --charcoal: #272727;
  --silver: #D4D4D4;
  --white: #FFFFFF;
  --margin: clamp(24px, 6vw, 96px);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-hero: cubic-bezier(0.22, 1, 0.36, 1);
  /* settled-spec easings */
  --quint: cubic-bezier(0.22, 1, 0.36, 1);
  --quart: cubic-bezier(0.165, 0.84, 0.44, 1);
  --sheet: cubic-bezier(0.32, 0.72, 0, 1);
  --spring: cubic-bezier(0.3, 1.3, 0.4, 1);
  /* THE settled liquid glass (spec global tokens) */
  --glass-bg: linear-gradient(155deg, rgba(46,46,56,.92), rgba(13,13,17,.95) 58%);
  --glass-border: 1px solid rgba(255,255,255,.11);
  --glass-shadow: 0 28px 50px rgba(0,0,0,.62), inset 0 1px 0 rgba(255,255,255,.14), inset 0 -14px 26px rgba(0,0,0,.38);
  --font: "Clash Display", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --hair: rgba(212, 212, 212, 0.14);
  --ease-inout: cubic-bezier(0.77, 0, 0.175, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; overflow-x: clip; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--orange); color: var(--black); }
img { user-select: none; }

a:focus-visible, button:focus-visible {
  outline: 1px solid var(--silver);
  outline-offset: 5px;
}

/* ---------- the field (fixed, behind everything) ---------- */

#field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  background:
    radial-gradient(120% 90% at 78% 8%, #17181c 0%, #0a0a0c 42%, #000000 78%);
}

.grain {
  position: fixed;
  z-index: 3;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- the pointer's warm light ----------
   A large soft orange glow (92vmin across) that rides over the
   field and follows the pointer with a spring lag — home.js owns
   its transform/opacity. Screen blend, so it brightens the liquid
   metal exactly where the visitor's hand is. */
.cursor-glow {
  position: fixed;
  left: 0; top: 0;
  z-index: 1;
  width: 92vmin; height: 92vmin;
  margin: -46vmin 0 0 -46vmin;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle,
    rgba(255,176,96,0.34) 0%, rgba(255,84,0,0.18) 38%, rgba(255,84,0,0) 68%);
  mix-blend-mode: screen;
  opacity: 0;
  will-change: transform, opacity;
}

/* ---------- top furniture ---------- */

.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 20;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 22px var(--margin);
  pointer-events: none;
  animation: topIn 0.8s var(--ease-out) 1.85s backwards;
}
.topbar > * { pointer-events: auto; }
.topbar {
  transition: background 0.35s ease, backdrop-filter 0.35s ease,
              -webkit-backdrop-filter 0.35s ease, padding 0.35s ease;
}
.topbar.scrolled {
  background: linear-gradient(155deg, rgba(46,46,56,.72), rgba(13,13,17,.82) 58%);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  border-bottom: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 18px 40px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.10);
  padding-top: 14px;
  padding-bottom: 14px;
}
@keyframes topIn {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.top-logo { display: block; line-height: 0; }
.top-logo img { height: 30px; width: auto; display: block; }

/* ---------- sound pill — settled rail pill (4) + toggle glow (5) ----------
   A 42px circle. Pressed (sound ON) it expands to a pill (.6s quint);
   the orange end-cap grows gradually (.95s quint) and the metallic
   thumb settles on its spring. Static glow only — the page's ONE
   moving glow lives on the Contact button. */
.sound-pill {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: 42px;
  height: 42px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  color: #A9A9B1;
  cursor: pointer;
  overflow: hidden;
  transition: width .6s var(--quint), background .35s ease, color .3s ease,
              box-shadow .5s ease, border-color .3s ease;
}
.sound-pill:hover { color: var(--white); }
.sound-pill:active { transform: scale(0.97); }
.sound-cap {
  position: absolute;
  left: 4px; top: 50%;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 35%, #FFC38F, #FF5400 55%, #B33E00);
  transform: translateY(-50%) scale(.5);
  opacity: 0;
  transition: transform .95s var(--quint), opacity .95s var(--quint);
}
.sound-icon { position: relative; z-index: 1; display: inline-flex; flex: 0 0 auto; }
.sound-icon .sound-wave { opacity: .22; transition: opacity .3s ease; }
.sound-label {
  position: relative; z-index: 1;
  font-weight: 500; font-size: 11px;
  letter-spacing: .18em; text-transform: uppercase;
  white-space: nowrap;
  opacity: 0; transform: translateX(-5px);
  transition: opacity .3s ease .18s, transform .3s ease .18s;
}
.sound-thumb {
  position: relative; z-index: 1;
  flex: 0 0 auto;
  width: 14px; height: 14px;
  margin-left: auto;
  border-radius: 50%;
  background: linear-gradient(165deg, #F7F7F9, #CDD0D6 40%, #878B94 76%, #B4B8C0);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.7), 0 2px 6px rgba(0,0,0,.45);
  opacity: 0;
  transform: translateX(-16px);
  transition: transform .6s var(--spring), opacity .25s ease;
}
.sound-pill[aria-pressed="true"] {
  width: 142px;
  background: linear-gradient(150deg, rgba(255,106,10,.30), rgba(204,67,0,.24));
  border-color: rgba(255,255,255,.22);
  color: var(--white);
  box-shadow: 0 0 22px rgba(255,84,0,.25);
}
.sound-pill[aria-pressed="true"] .sound-cap { transform: translateY(-50%) scale(1); opacity: .85; }
.sound-pill[aria-pressed="true"] .sound-icon .sound-wave { opacity: 1; }
.sound-pill[aria-pressed="true"] .sound-label { opacity: 1; transform: translateX(0); }
.sound-pill[aria-pressed="true"] .sound-thumb { opacity: 1; transform: translateX(0); }

/* ============================================================
   HERO — sticky inside a 190dvh wrap: scrolling runs the
   designed transition (home.js): the wordmark leaves fast,
   the paragraph next, the founder lingers — a light sweep
   crosses mid-way — and the placeholder wipes in beneath.
   ============================================================ */

.hero-wrap {
  position: relative;
  z-index: 5;
  height: 190dvh;
}

.hero {
  position: sticky;
  top: 0;
  height: 100dvh;
  min-height: 560px;
  overflow: hidden;
}

.hero .scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.32) 0%, rgba(0,0,0,0) 18%),
    linear-gradient(0deg, rgba(0,0,0,0.30) 0%, rgba(0,0,0,0) 22%),
    linear-gradient(90deg, rgba(0,0,0,0.30) 0%, rgba(0,0,0,0) 40%);
}

/* ---------- the halo — launch beat: rises behind him, breathes ---------- */

.halo-pos {
  position: absolute;
  z-index: 1;
  left: 60.5%;
  bottom: -22dvh;
  width: 78dvh;
  height: 78dvh;
  transform: translateX(-50%);
  pointer-events: none;
}
.hero-halo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(closest-side,
    rgba(255,84,0,0.34) 0%, rgba(178,48,0,0.13) 46%, rgba(0,0,0,0) 72%);
  filter: blur(46px);
  animation: haloIn 1.1s ease-out 0.15s backwards,
             haloPulse 4.6s ease-in-out 1.35s infinite;
  will-change: transform, opacity;
}
@keyframes haloIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes haloPulse {
  0%, 100% { transform: scale(1);    opacity: 0.88; }
  50%      { transform: scale(1.07); opacity: 1; }
}

/* ---------- wordmark block (left) ---------- */

.wordmark-block {
  position: absolute;
  z-index: 2;
  left: var(--margin);
  top: 32%;
  will-change: transform, opacity, filter;
}
.wordmark {
  position: relative;
  font-weight: 600;
  font-size: clamp(4.2rem, 7.6vw, 8.4rem);
  line-height: 0.95;
  letter-spacing: -0.015em;
  color: var(--white);
  text-shadow: 0 4px 60px rgba(0,0,0,0.5);
  white-space: nowrap;
}
.wordmark .split-main {
  display: inline-block;
  animation: wordForm 1s var(--quint) 0.95s backwards;
}
@keyframes wordForm {
  from { transform: translateY(14px); filter: blur(12px); }
  to   { transform: translateY(0);    filter: blur(0); }
}
.wordmark::before, .wordmark::after {
  content: attr(data-text);
  position: absolute;
  left: 0; top: 0;
  pointer-events: none;
  opacity: 0; /* the keyframes own them only while converging */
  animation: layerConverge 1s var(--quint) 0.95s backwards;
}
.wordmark::before { color: rgba(212,212,212,0.55); --lx: -0.045em; --ly: -0.030em; }
.wordmark::after  { color: rgba(255,84,0,0.38);    --lx:  0.045em; --ly:  0.030em; }
@keyframes layerConverge {
  0%   { transform: translate(var(--lx), var(--ly)); opacity: 1; }
  70%  { opacity: 1; }
  100% { transform: translate(0, 0); opacity: 0; }
}
/* the hero's single static orange spend — pops last, on the spring,
   then keeps a strong slow pulse (scale + warm bloom) forever */
.wordmark .accent {
  font-style: normal;
  color: var(--orange);
  display: inline-block;
  animation: stopPop 0.55s var(--spring) 1.72s backwards,
             stopPulse 3.6s cubic-bezier(0.37, 0, 0.24, 1) 2.45s infinite;
}
@keyframes stopPop {
  from { transform: scale(0.35); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}
@keyframes stopPulse {
  0%, 100% { transform: scale(1);    filter: drop-shadow(0 0 0 rgba(255,84,0,0)); }
  50%      { transform: scale(1.13); filter: drop-shadow(0 0 10px rgba(255,84,0,0.7)); }
}
/* a sheen band sweeps across the wordmark every ~5s — an identical
   glyph overlay, gradient-clipped to the letterforms, so only the
   moving highlight shows and the white text beneath stays itself */
.wordmark-sheen {
  position: absolute;
  inset: 0;
  pointer-events: none;
  color: transparent;
  background: linear-gradient(100deg,
    rgba(255,255,255,0) 42%, rgba(255,244,224,0.5) 50%, rgba(255,255,255,0) 58%);
  background-size: 220% 100%;
  background-position: 130% 0;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
          background-clip: text;
  opacity: 0;
  animation: wordSheen 6.5s ease-in-out 2.6s infinite;
}
@keyframes wordSheen {
  0%   { background-position: 130% 0;  opacity: 0; }
  3%   { opacity: 1; }
  26%  { background-position: -30% 0;  opacity: 1; }
  30%  { opacity: 0; }
  100% { background-position: -30% 0;  opacity: 0; }
}
.studio-line {
  margin-top: 20px;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--silver);
  animation: lineIn 0.7s var(--quint) 1.28s backwards;
}
@keyframes lineIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- the founder, centre — cropped at the bottom edge ---------- */

.figure-pos {
  position: absolute;
  z-index: 3;
  left: 60.5%;
  bottom: 0;
  width: min(37vw, 68dvh);
  aspect-ratio: 1406 / 1805;
  transform: translateX(-50%);
  pointer-events: none;
}
.figure {
  position: absolute;
  inset: 0;
  transform-origin: 50% 96%;
  --wx: 62%;
  --wy: 24%;
  --wash: 0.35;
  --sheen-x: -45%;
  --sheen: 0;
  will-change: transform, opacity;
}
.figure-form {
  position: absolute;
  inset: 0;
  z-index: 1; /* the orbit's far arc passes behind this layer (site-d7) */
  animation: figureForm 1.15s var(--quart) 0.30s backwards;
  will-change: transform, filter;
}
@keyframes figureForm {
  from { transform: scale(0.955); filter: brightness(0.25); }
  to   { transform: scale(1);     filter: brightness(1); }
}
.figure-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
/* the field's own light washes over him — masked by his silhouette,
   so the light lives on the man, never on a rectangle */
.figure-wash, .figure-sheen {
  position: absolute;
  inset: 0;
  pointer-events: none;
  -webkit-mask-image: url("assets/portrait-founder.png");
  -webkit-mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
          mask-image: url("assets/portrait-founder.png");
          mask-size: 100% 100%;
          mask-repeat: no-repeat;
}
.figure-wash {
  opacity: var(--wash);
  mix-blend-mode: soft-light;
  background: radial-gradient(circle 58% at var(--wx) var(--wy),
    rgba(255,255,255,0.95) 0%, rgba(255,255,255,0) 70%);
}
.figure-sheen {
  opacity: var(--sheen);
  background: linear-gradient(100deg,
    rgba(255,255,255,0) 42%, rgba(255,255,255,0.20) 50%, rgba(255,255,255,0) 58%);
  transform: translateX(var(--sheen-x));
}

/* ---------- the Mindly orbit (site-d7) — glass cards around his head ----------
   A wide, flat elliptical band fitted to the figure box: home.js
   places every card each frame (position, tangent lean, depth
   scale, front/back z), so the cards read as one rotating ring —
   thumbnails and labelled glass chips trading the front arc.
   Cards wait invisible (opacity 0) until the driver owns them. */
.orbit {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.orbit-ringline {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 24%;
  width: 170%;
  height: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 50%;
  opacity: 0;
  animation: orbitIn 1.2s ease-out 2.5s forwards;
}
@keyframes orbitIn { from { opacity: 0; } to { opacity: 1; } }
.orbit-card {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  will-change: transform, opacity;
  border-radius: 16px;
  box-shadow: 0 18px 34px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.22);
}
.oc-thumb {
  width: 136px;
  height: 92px;
  overflow: hidden;
  background: #101013;
}
.oc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.oc-tag {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(8,8,10,0.5);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.18);
}
.oc-glass {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 148px;
  height: 64px;
  padding: 0 14px;
  background: linear-gradient(135deg, rgba(255,255,255,0.16), rgba(255,255,255,0.05));
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
          backdrop-filter: blur(12px) saturate(1.3);
  border: 1px solid rgba(255,255,255,0.22);
  color: var(--white);
}
.oc-ic {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(255,84,0,0.18);
  color: #FFB98A;
}
.oc-ic svg { width: 17px; height: 17px; }
.oc-tx { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.oc-tx b { font-size: 12.5px; font-weight: 600; letter-spacing: 0.01em; white-space: nowrap; }
.oc-tx i { font-style: normal; font-size: 10.5px; color: rgba(235,235,240,0.62); white-space: nowrap; }

/* ---------- sparkles — entrance beat, pop at his highlights ---------- */

.spark {
  position: absolute;
  z-index: 4;
  width: 22px; height: 22px;
  fill: #FFF4DC;
  filter: drop-shadow(0 0 7px rgba(255,84,0,0.8));
  opacity: 0;
  pointer-events: none;
  animation: sparkPop 0.55s ease-out backwards;
}
.spark.s1 { left: 68%;   top: 12dvh; animation-delay: 1.45s; }
.spark.s2 { left: 76.5%; top: 34dvh; width: 15px; height: 15px; animation-delay: 1.68s; }
.spark.s3 { left: 47%;   top: 50dvh; width: 13px; height: 13px; animation-delay: 1.92s; }
@keyframes sparkPop {
  0%   { transform: scale(0) rotate(0deg);    opacity: 0; }
  45%  { transform: scale(1) rotate(20deg);   opacity: 1; }
  100% { transform: scale(0) rotate(45deg);   opacity: 0; }
}

/* ---------- floating chrome shapes — the Alex clip's playfulness ----------
   Faceted silver with specular hits and a soft under-glow; never
   flat colour. The outer layer is home.js's (parallax depth +
   scroll exit), the middle pops in on the spring with a small
   overshoot, the inner bobs and sways forever — slow, offset
   phases, so the edges of the home feel alive but never busy. */

.shape {
  position: absolute;
  z-index: 4;
  pointer-events: none;
  will-change: transform, opacity;
  filter: drop-shadow(0 14px 22px rgba(0,0,0,0.55)) drop-shadow(0 0 18px rgba(255,255,255,0.06));
}
.shape svg { display: block; width: 100%; height: 100%; }
.shape-pop { position: relative; width: 100%; height: 100%; animation: shapePop 0.65s var(--spring) backwards; }
@keyframes shapePop {
  from { transform: scale(0.4) rotate(-14deg); opacity: 0; }
  to   { transform: scale(1) rotate(0deg);     opacity: 1; }
}
/* a soft glint sweeps each shape now and then — a feathered light
   band (transparent edges, screen blend) so it reads as a specular
   pass over the chrome, never as a rectangle */
.shape-pop::after {
  content: "";
  position: absolute;
  inset: -30%;
  pointer-events: none;
  background: linear-gradient(105deg,
    rgba(255,255,255,0) 26%, rgba(255,255,255,0.22) 50%, rgba(255,255,255,0) 74%);
  mix-blend-mode: screen;
  transform: translateX(-140%);
  animation: shapeGlint 9s ease-in-out infinite;
}
@keyframes shapeGlint {
  0%   { transform: translateX(-140%); }
  13%  { transform: translateX(140%); }
  100% { transform: translateX(140%); }
}
/* continuous float — BIG drift (±16–20px per axis, ±8–12° of slow
   rotation), each shape on its own period and phase, so the edges
   of the home are unmistakably alive at a glance */
.shape-bob { width: 100%; height: 100%; animation: shapeBobFlower 6.4s ease-in-out infinite; }
@keyframes shapeBobFlower {
  0%, 100% { transform: translate(-8px, -19px) rotate(-8deg); }
  50%      { transform: translate(10px, 19px)  rotate(9deg); }
}
@keyframes shapeBobGem {
  0%, 100% { transform: translate(14px, -16px) rotate(11deg); }
  50%      { transform: translate(-15px, 17px) rotate(-9deg); }
}
@keyframes shapeBobRing {
  0%, 100% { transform: translate(-13px, 18px) rotate(-12deg); }
  50%      { transform: translate(15px, -20px) rotate(10deg); }
}
.shape-flower { left: 3.2vw; top: 55%; width: 84px; height: 84px; }
.shape-flower .shape-pop { animation-delay: 1.55s; }
.shape-flower .shape-pop::after { animation-duration: 12s; animation-delay: 3s; }
.shape-flower .shape-bob { animation-name: shapeBobFlower; animation-duration: 6.4s; }
.shape-gem { right: 3.6vw; top: 13%; width: 72px; height: 72px; }
.shape-gem .shape-pop { animation-delay: 1.72s; }
.shape-gem .shape-pop::after { animation-duration: 14s; animation-delay: 6.5s; }
.shape-gem .shape-bob { animation-name: shapeBobGem; animation-duration: 5.8s; animation-delay: -2.2s; }
.shape-ring { right: 2.8vw; top: 57%; width: 58px; height: 58px; }
.shape-ring .shape-pop { animation-delay: 1.88s; }
.shape-ring .shape-pop::after { animation-duration: 16s; animation-delay: 8.5s; }
.shape-ring .shape-bob { animation-name: shapeBobRing; animation-duration: 8.6s; animation-delay: -4s; }

/* ---------- the transition's light sweep (home.js drives the vars) ---------- */

.hero-sweep {
  position: absolute;
  z-index: 4;
  inset: -12% -35%;
  pointer-events: none;
  opacity: var(--sweep-o, 0);
  background: linear-gradient(100deg,
    rgba(255,255,255,0) 40%, rgba(255,255,255,0.13) 50%, rgba(255,255,255,0) 60%);
  transform: translateX(var(--sweep-x, -55%));
}

/* ---------- the small paragraph (right) ---------- */

.hero-para {
  position: absolute;
  z-index: 4;
  right: var(--margin);
  top: 31%;
  width: min(260px, 23vw);
  font-size: 15.5px;
  font-weight: 400;
  line-height: 1.62;
  color: #C7C7CD;
  will-change: transform, opacity, filter;
}
.para-in {
  display: block;
  animation: paraForm 0.8s var(--quint) 1.32s backwards;
}
@keyframes paraForm {
  from { opacity: 0; transform: translateY(12px); filter: blur(8px); }
  to   { opacity: 1; transform: translateY(0);    filter: blur(0); }
}

/* ============================================================
   PILL NAV — floating, bottom-centre. Settled glass; a glass
   indicator glides between links (rail grammar); CONTACT is
   magnetic and carries the page's ONE traveling glow (item 1,
   spec construction: two masked conic layers, 6.5s lap).
   ============================================================ */

.pill-nav {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 30;
}
.pill {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px;
  border-radius: 999px;
  background: var(--glass-bg);
  border: var(--glass-border);
  box-shadow: var(--glass-shadow);
  animation: pillIn 0.75s var(--sheet) 1.68s backwards;
}
@keyframes pillIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.pill-chip {
  flex: 0 0 auto;
  width: 38px; height: 38px;
  margin-right: 4px;
  border-radius: 12px;
  overflow: hidden;
  line-height: 0;
  transition: transform 0.15s var(--ease-out);
}
.pill-chip:active { transform: scale(0.94); }
.pill-chip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pill-ind {
  position: absolute;
  z-index: 0;
  top: 6px; bottom: 6px;
  left: 0;
  width: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.07);
  opacity: 0;
  transition: transform 0.5s var(--quint), width 0.5s var(--quint), opacity 0.3s ease;
  pointer-events: none;
}
.pill-link {
  position: relative;
  z-index: 1;
  padding: 10px 13px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--silver);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.25s ease, transform 0.15s var(--ease-out);
}
.pill-link:hover, .pill-link.active { color: var(--white); }
.pill-contact.active {
  background: #1B1B21;
  border-color: rgba(255,255,255,0.34);
}
.pill-link:active { transform: scale(0.97); }

@property --a { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes glowLap { to { --a: 360deg; } }
.pill-contact {
  position: relative;
  z-index: 1;
  margin-left: 6px;
  padding: 11px 20px;
  border-radius: 999px;
  background: #0B0B0E;
  border: 1px solid rgba(255,255,255,0.16);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  will-change: transform;
}
.pill-contact::before, .pill-contact::after {
  content: "";
  position: absolute;
  border-radius: inherit;
  background: conic-gradient(from var(--a),
    transparent 0 52%, rgba(255,84,0,.55) 68%, rgba(255,196,130,1) 82%,
    rgba(255,240,214,1) 88%, rgba(255,84,0,.55) 95%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
  pointer-events: none;
  animation: glowLap 6.5s linear infinite;
}
.pill-contact::before { inset: 0; padding: 1.6px; opacity: 1; }
.pill-contact::after  { inset: -3px; padding: 4px; filter: blur(7px); opacity: .75; }

/* ---------- smaller screens ---------- */

@media (max-width: 1100px) {
  .wordmark { font-size: 10.5vw; }
  /* in-between band: the name prints over the hair edge rather
     than disappearing behind it */
  .wordmark-block { z-index: 4; }
  .hero-para { z-index: 5; }
  .figure-pos { left: 58.5%; width: min(48vw, 66dvh); }
  .halo-pos { left: 58.5%; }
  .hero-para { width: 235px; font-size: 14.5px; }
  .shape-flower { width: 68px; height: 68px; }
  .shape-gem { width: 58px; height: 58px; }
  .shape-ring { width: 46px; height: 46px; }
}

@media (max-width: 760px) {
  .topbar { padding: 16px 20px; }
  .top-logo img { height: 24px; }
  .hero { min-height: 520px; }
  .wordmark-block { left: 24px; top: 10.5%; }
  .wordmark { font-size: 15.2vw; }
  .studio-line { margin-top: 12px; font-size: 10.5px; letter-spacing: 0.3em; }
  .hero-para {
    left: 24px; right: auto;
    top: 29.5%;
    width: min(248px, 64vw);
    font-size: 14px;
  }
  .figure-pos { left: 50%; width: min(94vw, 60dvh); }
  .halo-pos { left: 50%; width: 70dvh; height: 70dvh; bottom: -16dvh; }
  .shape-flower { left: 4vw; top: 46%; width: 46px; height: 46px; }
  .shape-gem { right: 5vw; top: 20.5%; width: 42px; height: 42px; }
  .shape-ring { display: none; }
  .pill-nav { bottom: 14px; }
  .pill { padding: 5px; gap: 0; }
  .pill-ind { top: 5px; bottom: 5px; }
  .pill-chip { width: 32px; height: 32px; border-radius: 10px; margin-right: 2px; }
  .pill-link { padding: 8px 9px; font-size: 11.5px; }
  .pill-link.opt { display: none; }
  .pill-contact { margin-left: 4px; padding: 9px 15px; font-size: 12px; }
}

/* ---------- reduced motion (site-d7): the showpiece plays on ----------
   The founder's ruling: this site IS its motion, so the media
   query no longer switches anything off — every layer runs on
   every device, whatever the setting says. Only instant anchor
   jumps remain, as the one nod to the preference. */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ============================================================
   CONTENT SECTIONS — one field, many signatures.
   Reveal states are armed only when JS runs (html.js), so the
   page is fully legible without it.
   ============================================================ */

.section {
  position: relative;
  z-index: 5;
  padding: clamp(96px, 15vh, 168px) var(--margin);
  border-top: 1px solid rgba(212, 212, 212, 0.07);
}

.sec-head { margin-bottom: clamp(40px, 7vh, 72px); }

.sec-eyebrow {
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.sec-eyebrow::after {
  content: "";
  height: 1px;
  width: 64px;
  background: rgba(212, 212, 212, 0.25);
}
.sec-no { color: var(--white); }

.sec-title {
  position: relative;
  font-weight: 600;
  font-size: clamp(2.4rem, 5.6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--white);
}
/* SPLIT-AND-REFORM (settled text grammar): two ghost layers — silver
   and orange — start split off the word and converge into it while
   the solid word sharpens out of a blur. Armed by the head's .in. */
.sec-title .split-main { display: block; }
.sec-title::before, .sec-title::after {
  content: attr(data-text);
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  pointer-events: none;
  opacity: 0;
}
html.js .sec-head .sec-eyebrow {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .6s var(--ease-out) .05s, transform .6s var(--ease-out) .05s;
}
html.js .sec-head.in .sec-eyebrow { opacity: 1; transform: translateY(0); }
html.js .sec-head .split-main {
  filter: blur(9px);
  transform: translateY(10px);
  transition: filter .9s var(--quint), transform .9s var(--quint);
}
html.js .sec-head .sec-title::before {
  color: rgba(212,212,212,.55);
  opacity: .8;
  transform: translate(-0.05em, -0.035em);
  transition: transform .9s var(--quint), opacity .45s ease .42s;
}
html.js .sec-head .sec-title::after {
  color: rgba(255,84,0,.38);
  opacity: .7;
  transform: translate(0.05em, 0.035em);
  transition: transform .9s var(--quint), opacity .45s ease .42s;
}
html.js .sec-head.in .split-main { filter: blur(0); transform: translateY(0); }
html.js .sec-head.in .sec-title::before,
html.js .sec-head.in .sec-title::after { transform: translate(0, 0); opacity: 0; }

/* --- the hero→About transition lands here: a clip wipe (sections
       morph tempo, 1.05s quint) reveals the whole About block --- */
html.js .about-wipe {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.05s var(--quint);
}
html.js .about-wipe.in { clip-path: inset(0 0 0% 0); }

/* --- signature: RESOLVE (About text, Reels, Contact) — type sharpens out of a blur --- */
html.js [data-reveal="resolve"] {
  opacity: 0;
  transform: translateY(14px);
  filter: blur(6px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out), filter 0.7s var(--ease-out);
}
html.js [data-reveal="resolve"].in { opacity: 1; transform: translateY(0); filter: blur(0); }

/* --- signature: CLIP (covers) — the frame un-clips while the image settles --- */
html.js [data-reveal="clip"] .cover-media {
  clip-path: inset(10% 5% 10% 5% round 20px);
  transition: clip-path 0.9s var(--ease-out);
}
html.js [data-reveal="clip"] .cover-media img {
  transform: scale(1.07);
  transition: transform 1.1s var(--ease-out);
}
html.js [data-reveal="clip"].in .cover-media { clip-path: inset(0% 0% 0% 0% round 20px); }
html.js [data-reveal="clip"].in .cover-media img { transform: scale(1.02); }

/* --- signature: SHEEN (About portrait) — a curtain lifts, one light pass --- */
.about-portrait { position: relative; }
/* the clip lives on the IMG, not the observed figure: Chrome's
   IntersectionObserver counts an element's own clip-path against its
   intersection, so a fully clipped target would never fire .in */
html.js [data-reveal="sheen"] img {
  clip-path: inset(0 0 100% 0 round 22px);
  transition: clip-path 1s var(--ease-out);
}
html.js [data-reveal="sheen"].in img { clip-path: inset(0 0 0% 0 round 22px); }
[data-reveal="sheen"]::after {
  content: "";
  position: absolute;
  inset: -10% -30%;
  background: linear-gradient(100deg, rgba(255,255,255,0) 42%, rgba(255,255,255,0.14) 50%, rgba(255,255,255,0) 58%);
  transform: translateX(-70%);
  pointer-events: none;
}
html.js [data-reveal="sheen"].in::after {
  transform: translateX(70%);
  transition: transform 1.4s var(--ease-inout) 0.35s;
}

/* --- signature: TIMELINE (Experience) — a rule draws itself, rows follow --- */
html.js [data-reveal="timeline"] .timeline-line {
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 1.15s var(--ease-inout) 0.15s;
}
html.js [data-reveal="timeline"].in .timeline-line { transform: scaleY(1); }
html.js [data-reveal="timeline"] .tl-row {
  opacity: 0;
  transform: translateX(-14px);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}
html.js [data-reveal="timeline"].in .tl-row { opacity: 1; transform: translateX(0); }
html.js [data-reveal="timeline"].in .tl-row:nth-child(2) { transition-delay: 0.25s; }
html.js [data-reveal="timeline"].in .tl-row:nth-child(3) { transition-delay: 0.37s; }
html.js [data-reveal="timeline"].in .tl-row:nth-child(4) { transition-delay: 0.49s; }
html.js [data-reveal="timeline"].in .tl-row:nth-child(5) { transition-delay: 0.61s; }

/* --- signature: TYPEWRITER (tagline) — the MS Superior panel's adopted
       element (item 6): the verbatim tagline types in, trailed by the
       glowing orange block cursor (1s blink). JS drives the text;
       without JS the full line simply stands. --- */
.tw-cursor {
  display: inline-block;
  width: 0.52em;
  height: 0.88em;
  margin-left: 0.1em;
  vertical-align: -0.06em;
  background: var(--orange);
  box-shadow: 0 0 18px rgba(255,84,0,.55);
  opacity: 0;
}
.tagline.typing .tw-cursor, .tagline.done .tw-cursor {
  opacity: 1;
  animation: cursorBlink 1s steps(1) infinite;
}
@keyframes cursorBlink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0; } }

/* --- signature: SLIDE (Contact rows) — rows arrive along their hairlines --- */
html.js [data-reveal="slide"] {
  opacity: 0;
  transform: translateX(-18px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
html.js [data-reveal="slide"].in { opacity: 1; transform: translateX(0); }
html.js .contact-rows [data-reveal="slide"]:nth-child(2) { transition-delay: 0.1s; }
html.js .contact-rows [data-reveal="slide"]:nth-child(3) { transition-delay: 0.2s; }

/* --- signature: LIGHT WAVE (Clients grids) — one sweep of light per grid, staggered --- */
.clients-grid { position: relative; }
.clients-grid::after {
  content: "";
  position: absolute;
  inset: -10% -25%;
  background: linear-gradient(100deg, rgba(255,255,255,0) 44%, rgba(255,255,255,0.13) 50%, rgba(255,255,255,0) 56%);
  transform: translateX(-75%);
  pointer-events: none;
}
html.js [data-sheen] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}
html.js [data-sheen].in { opacity: 1; transform: translateY(0); }
html.js [data-sheen].in::after {
  transform: translateX(75%);
  transition: transform 1.3s var(--ease-inout) 0.3s;
}
html.js .clients-grids [data-sheen]:nth-child(2) { transition-delay: 0.12s; }
html.js .clients-grids [data-sheen]:nth-child(3) { transition-delay: 0.24s; }
html.js .clients-grids [data-sheen]:nth-child(2).in::after { transition-delay: 0.5s; }
html.js .clients-grids [data-sheen]:nth-child(3).in::after { transition-delay: 0.7s; }

/* ---------- shared media frames ---------- */

.cover-media {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background: #0c0c0e;
  box-shadow: inset 0 0 0 1px rgba(212, 212, 212, 0.08);
}
.cover-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  will-change: transform;
}

/* ---------- ABOUT ---------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(230px, 330px) 1fr;
  gap: clamp(36px, 5vw, 84px);
  align-items: start;
}
.about-portrait {
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 815 / 840;
  background: #0c0c0e;
  box-shadow: inset 0 0 0 1px rgba(212, 212, 212, 0.1);
}
.about-portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-slogan {
  margin-top: 22px;
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  color: var(--silver);
}
.about-lede {
  font-weight: 500;
  font-size: clamp(1.35rem, 2.3vw, 1.95rem);
  line-height: 1.45;
  max-width: 44ch;
}
.about-body {
  margin-top: 24px;
  color: #CFCFCF;
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 52ch;
}
.about-block { margin-top: 46px; }
.mini-head {
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 8px;
}
.hair-list { list-style: none; }
.hair-list li {
  padding: 11px 0;
  border-top: 1px solid var(--hair);
  font-weight: 500;
  font-size: 1.05rem;
}
.hair-list li:last-child { border-bottom: 1px solid var(--hair); }

.timeline { position: relative; padding-left: 24px; margin-top: 10px; }
.timeline-line {
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, rgba(212,212,212,0.55), rgba(212,212,212,0.12));
}
.tl-row {
  display: grid;
  grid-template-columns: 148px 1fr auto;
  gap: 18px;
  align-items: baseline;
  padding: 15px 0;
  border-top: 1px solid var(--hair);
}
.tl-row:last-child { border-bottom: 1px solid var(--hair); }
.tl-period { color: var(--silver); font-size: 0.95rem; white-space: nowrap; }
.tl-role { font-weight: 500; font-size: 1.08rem; }
.tl-org {
  color: var(--silver);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tagline {
  margin-top: clamp(70px, 11vh, 120px);
  text-align: center;
  font-weight: 600;
  font-size: clamp(1.45rem, 4.1vw, 3.3rem);
  line-height: 1.15;
  color: var(--white);
}

/* ---------- WORK ---------- */

/* --- TABS CASCADE (settled item 3): the rail tabs overlap and tilt
       away from the selected one (rotateY ∓11deg, scale −0.04/distance,
       brightness →.6, blur .45px/distance); the selected lifts, lights
       its orange dot, and carries the traveling glow. Switch = 620ms
       quint; site.js re-stacks z-index at the midpoint (300ms) and
       crossfades the content panel through a 6px blur. --- */
.work-rail {
  display: flex;
  overflow-x: auto;
  padding: 14px 6px 18px;
  margin-bottom: 22px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  perspective: 1100px;
}
.work-rail::-webkit-scrollbar { display: none; }
.rail-btn {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-left: -14px;
  padding: 12px 22px 12px 27px;
  border: var(--glass-border);
  border-radius: 999px;
  background: linear-gradient(155deg, rgba(46,46,56,.88), rgba(13,13,17,.94) 58%);
  box-shadow: 0 14px 30px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.10);
  color: var(--silver);
  font-family: var(--font);
  font-weight: 500;
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  will-change: transform, filter;
  transition: transform .62s var(--quint), filter .62s var(--quint),
              color .25s ease, border-color .25s ease;
}
.rail-btn:first-child { margin-left: 0; }
.rail-btn:hover { color: var(--white); }
.rail-btn:active { scale: 0.97; }
.rail-btn .tab-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  transition: background .3s ease, box-shadow .3s ease;
}
.rail-btn[aria-selected="true"] { color: var(--white); }
.rail-btn[aria-selected="true"] .tab-dot {
  background: var(--orange);
  box-shadow: 0 0 10px rgba(255,84,0,.9);
}
/* the traveling glow (item 1), spec construction — core + halo.
   It runs ONLY while Work is the live view (site.js gates .glow-live):
   one moving glow per view, site-wide. */
.rail-btn[aria-selected="true"]::before,
.rail-btn[aria-selected="true"]::after {
  content: "";
  position: absolute;
  border-radius: inherit;
  background: conic-gradient(from var(--a),
    transparent 0 52%, rgba(255,84,0,.55) 68%, rgba(255,196,130,1) 82%,
    rgba(255,240,214,1) 88%, rgba(255,84,0,.55) 95%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
  opacity: 0;
  pointer-events: none;
}
.rail-btn[aria-selected="true"]::before { inset: 0; padding: 1.6px; }
.rail-btn[aria-selected="true"]::after  { inset: -3px; padding: 4px; filter: blur(7px); }
.work-rail.glow-live .rail-btn[aria-selected="true"]::before {
  opacity: 1; animation: glowLap 6.5s linear infinite;
}
.work-rail.glow-live .rail-btn[aria-selected="true"]::after {
  opacity: .75; animation: glowLap 6.5s linear infinite;
}

.work-stage { position: relative; }

/* --- THINKING PILL (settled item 10): pure-black notch pill; a tiny
       pixel pattern cycles beside the action text while the stage
       swaps. It appears only for a real swap, then rests. --- */
.think-pill {
  position: absolute;
  top: 12px; left: 50%;
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 17px;
  border-radius: 999px;
  background: #000;
  box-shadow: 0 12px 30px rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.08);
  opacity: 0;
  transform: translate(-50%, -8px);
  pointer-events: none;
  transition: opacity .25s ease, transform .3s var(--ease-out);
}
.think-pill.show { opacity: 1; transform: translate(-50%, 0); }
.think-dots { display: grid; grid-template-columns: repeat(4, 4px); gap: 3px; }
.think-dots i {
  width: 4px; height: 4px;
  background: #A7A7A7;
  animation: thinkCycle 1.2s steps(1) infinite;
}
.think-dots i:nth-child(2) { animation-delay: .18s; }
.think-dots i:nth-child(3) { animation-delay: .36s; }
.think-dots i:nth-child(4) { animation-delay: .54s; }
@keyframes thinkCycle {
  0%, 100% { opacity: .25; } 30% { opacity: 1; background: #FF5400; } 60% { opacity: .5; }
}
.think-text {
  font-size: 11px; font-weight: 500;
  letter-spacing: .24em; text-transform: uppercase;
  color: var(--silver);
}

/* --- STACKS (settled item 2): the covers as a depth cascade in the
       settled glass — per-depth translateY +10px, scale −0.045,
       brightness 1/.82/.66, blur 0/.6/1.2px. One 980ms easeOutQuart
       glide per switch (site.js); discrete rhythm, no drift. --- */
.work-stack {
  position: relative;
  aspect-ratio: 1105 / 622;
  margin-bottom: 26px;
  cursor: pointer;
  outline-offset: 6px;
}
.stack-card {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  overflow: hidden;
  background: var(--glass-bg);
  border: var(--glass-border);
  box-shadow: var(--glass-shadow);
  will-change: transform, filter, opacity;
  transition: transform .98s var(--quart), filter .98s var(--quart);
}
.stack-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.stack-card.d0 { z-index: 3; transform: translateY(0) scale(1); filter: brightness(1) blur(0); }
.stack-card.d1 { z-index: 2; transform: translateY(10px) scale(.955); filter: brightness(.82) blur(.6px); }
.stack-card.d2 { z-index: 1; transform: translateY(20px) scale(.91); filter: brightness(.66) blur(1.2px); }
.stack-card.no-trans { transition: none; }

.cover-cap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-top: 15px;
  color: var(--silver);
  font-size: 0.98rem;
  transition: opacity .3s var(--quint), filter .3s var(--quint);
}
/* the tabs content crossfade: panel blurs 6px→0 across the switch */
.work-grid, .cover-cap { transition: opacity .62s var(--quint), filter .62s var(--quint); }
.work-grid.swap, .cover-cap.swap { opacity: 0; filter: blur(6px); }
.cover-count {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}
.work-item {
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  background: #0c0c0e;
  aspect-ratio: 1105 / 623;
  box-shadow: inset 0 0 0 1px rgba(212, 212, 212, 0.07);
}
.work-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease-out);
}
.work-item:hover img { transform: scale(1.045); }
.work-item figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
}
/* the swap-in: items un-clip in a quick stagger, images settle from a breath larger */
html.js .work-item {
  clip-path: inset(0 0 100% 0 round 14px);
  transition: clip-path 0.6s var(--ease-out);
}
html.js .work-item.play { clip-path: inset(0 0 0% 0 round 14px); }
html.js .work-item img { transform: scale(1.09); transition: transform 0.9s var(--ease-out); }
html.js .work-item.play img { transform: scale(1); }
html.js .work-item.play:hover img { transform: scale(1.045); }

/* --- SKELETONS (settled loaders, item 20, as shimmer): a settled-glass
       tile with a soft sweep stands exactly where the image will land,
       only while that image actually loads; it crossfades out on load. --- */
.skel {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(155deg, rgba(46,46,56,.55), rgba(13,13,17,.85) 58%);
  overflow: hidden;
  transition: opacity .3s ease;
  pointer-events: none;
}
.skel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(255,255,255,0) 30%, rgba(255,255,255,.07) 50%, rgba(255,255,255,0) 70%);
  transform: translateX(-100%);
  animation: skelSweep 1.4s var(--ease-inout) infinite;
}
@keyframes skelSweep { to { transform: translateX(100%); } }
figure.loaded > .skel { opacity: 0; }
.work-item figcaption { z-index: 3; }

/* ---------- CLIENTS ---------- */

.clients-cover .cover-media,
.clients-closing .cover-media { aspect-ratio: 1280 / 722; }
.clients-grids { display: grid; gap: 18px; margin-top: 18px; }
.clients-grid {
  border-radius: 16px;
  overflow: hidden;
  background: #0c0c0e;
  box-shadow: inset 0 0 0 1px rgba(212, 212, 212, 0.07);
}
.clients-grid img { width: 100%; display: block; }
.clients-closing { margin-top: 18px; }
.clients-closing figcaption {
  margin-top: 18px;
  font-weight: 500;
  font-size: clamp(1.25rem, 2.4vw, 1.85rem);
  color: var(--white);
}

/* ---------- LOGOFOLIO ---------- */

.logofo-cover .cover-media { aspect-ratio: 1280 / 721; }
.logo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 18px;
}
.logo-tile {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #0c0c0e;
  aspect-ratio: 1280 / 721;
  box-shadow: inset 0 0 0 1px rgba(212, 212, 212, 0.07);
  transition: transform 0.3s var(--ease-out);
}
.logo-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.logo-tile:hover { transform: translateY(-4px); }
/* diagonal cascade — delay is set inline by site.js as (row + col) x 40ms */
html.js .logo-tile {
  opacity: 0;
  transform: translateY(12px) scale(0.965);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}
html.js .logo-tile.in { opacity: 1; transform: translateY(0) scale(1); }
html.js .logo-tile.in:hover { transform: translateY(-4px); }

/* ---------- PRINT — two rows drifting against each other ---------- */

.print-rows {
  display: grid;
  gap: 18px;
  margin-left: calc(var(--margin) * -1);
  margin-right: calc(var(--margin) * -1);
}
.print-row { overflow: hidden; }
.print-track {
  display: flex;
  gap: 18px;
  width: max-content;
  padding: 0 9px;
  will-change: transform;
}
.print-item {
  flex: 0 0 auto;
  width: min(500px, 76vw);
  aspect-ratio: 1280 / 721;
  border-radius: 14px;
  overflow: hidden;
  background: #0c0c0e;
  box-shadow: inset 0 0 0 1px rgba(212, 212, 212, 0.07);
}
.print-item img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- REELS ---------- */

.reels-body { display: flex; }
/* --- COMPOSER THINKING GLOW (settled item 15): two large soft blobs
       orbit SLOWLY (~17s/lap, opposite phases) BEHIND the pill, light
       spilling over its edges; the pill itself stays dark and still.
       Colours per the owner's own ruling for this element: orange +
       blue-tinted grey #8CA3C3. --- */
.reels-cta-wrap { position: relative; display: inline-flex; }
.blob-orbit {
  position: absolute;
  left: 50%; top: 50%;
  width: 0; height: 0;
  z-index: 0;
  animation: blobSpin 17s linear infinite;
  pointer-events: none;
}
.blob-orbit.b { animation-delay: -8.5s; }
.blob {
  position: absolute;
  width: 250px; height: 150px;
  border-radius: 50%;
  filter: blur(34px);
  transform: translate(105px, -50%);
}
.blob-a { background: rgba(255,84,0,.50); }
.blob-b { background: rgba(140,163,195,.42); }
@keyframes blobSpin { to { transform: rotate(360deg); } }
.reels-cta { position: relative; z-index: 1; }
.reels-cta {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 24px 38px;
  border-radius: 999px;
  border: 1px solid rgba(212, 212, 212, 0.28);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  will-change: transform;
}
.reels-cta-arrow { color: var(--orange); font-size: 1.15em; line-height: 1; }

/* ---------- CONTACT ---------- */

.contact-mail {
  display: inline-block;
  position: relative;
  font-weight: 600;
  font-size: clamp(1.9rem, 6.2vw, 5.2rem);
  letter-spacing: -0.01em;
  line-height: 1.05;
  color: var(--white);
  text-decoration: none;
  will-change: transform;
}
.contact-mail::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}
.contact-mail:hover::after { transform: scaleX(1); }

.contact-rows { margin-top: 58px; border-bottom: 1px solid var(--hair); }
.contact-row {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 18px;
  align-items: baseline;
  padding: 19px 0;
  border-top: 1px solid var(--hair);
}
.contact-key {
  color: var(--silver);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.contact-row a, .contact-row p {
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--white);
  text-decoration: none;
}
.contact-row a { transition: color 0.25s ease; }
.contact-row a:hover { color: var(--silver); }

/* THE TRAVELING GLOW (settled item 1 — the spec construction, exactly:
   two masked conic layers, core padding 1.6px + halo inset −3px,
   padding 4px, blur 7px, opacity .75; the angle laps in 6.5s).
   On this CTA it runs ONLY while Contact is the live view — one
   moving glow per view, site-wide (site.js gates .glow-live). */
@property --a { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes glowLap { to { --a: 360deg; } }
.cta-glow {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 216px;
  margin-top: 52px;
  padding: 19px 40px;
  border-radius: 999px;
  background: #0a0a0c;
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  will-change: transform;
}
.cta-glow::before, .cta-glow::after {
  content: "";
  position: absolute;
  border-radius: inherit;
  background: conic-gradient(from var(--a),
    transparent 0 52%, rgba(255,84,0,.55) 68%, rgba(255,196,130,1) 82%,
    rgba(255,240,214,1) 88%, rgba(255,84,0,.55) 95%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
  opacity: 0;
  pointer-events: none;
}
.cta-glow::before { inset: 0; padding: 1.6px; }
.cta-glow::after  { inset: -3px; padding: 4px; filter: blur(7px); }
.cta-glow.glow-live::before { opacity: 1; animation: glowLap 6.5s linear infinite; }
.cta-glow.glow-live::after  { opacity: .75; animation: glowLap 6.5s linear infinite; }
/* stable-container state swap: label → drawn check (item 9's check
   draws itself, dashoffset → 0 in .55s) while the mail client opens */
.cta-label { transition: opacity .25s ease, transform .25s ease; }
.cta-check {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
}
.cta-check path { stroke-dasharray: 26; stroke-dashoffset: 26; }
.cta-glow.sent .cta-label { opacity: 0; transform: translateY(6px); }
.cta-glow.sent .cta-check { opacity: 1; }
.cta-glow.sent .cta-check path { animation: checkDraw .55s var(--ease-out) .1s forwards; }
@keyframes checkDraw { to { stroke-dashoffset: 0; } }

/* ---------- FOOTER ---------- */

.footer {
  position: relative;
  z-index: 5;
  border-top: 1px solid rgba(212, 212, 212, 0.07);
  padding: 56px var(--margin) 132px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  flex-wrap: wrap;
}
.foot-lockup { height: 34px; width: auto; display: block; }
.foot-slogan { font-weight: 500; letter-spacing: 0.05em; color: var(--white); }
.foot-loc {
  color: var(--silver);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

/* ---------- responsive (sections) ---------- */

@media (max-width: 1000px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
}


@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-portrait { max-width: 300px; }
  .tl-row { grid-template-columns: 118px 1fr; }
  .tl-org { display: none; }
  .contact-row { grid-template-columns: 1fr; gap: 6px; }
}

@media (max-width: 640px) {
  .sound-pill[aria-pressed="true"] { width: 42px; }
  .sound-pill[aria-pressed="true"] .sound-label,
  .sound-pill[aria-pressed="true"] .sound-thumb { display: none; }
  .work-grid { grid-template-columns: 1fr; }
  .rail-btn { margin-left: -10px; padding: 11px 17px 11px 22px; }
  .print-item { width: 82vw; }
  .footer { flex-direction: column; align-items: flex-start; }
}

/* ---------- reduced motion (site-d7): sections play on too ----------
   (See the hero block: nothing rests — the motion is the site.) */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ============================================================
   SITE-D6/D7 — THE HOME STAYS A SHOWPIECE; THE MOTION GOES EVERYWHERE
   1 · Home, continued (site-d7): the founder's bento — a quality
       statement, one glowing door to the work, one image door to
       the clients, one small door to About. Nothing else.
   2 · The living layer, site-wide: the pointer's warm glow hands
       off from the hero to a section-scoped twin (home.js drives
       both from one spring — one glow per view), a floating
       chrome accent lives in every section, every section title
       carries the wordmark's sheen sweep, and the work / logo
       cards carry the shapes' traveling glint.
   Amplitudes match the approved home exactly; transform + opacity
   only; the settled section animations underneath are untouched.
   ============================================================ */

/* ---------- 2a · the section glow — the hero glow's twin ----------
   Identical construction to .cursor-glow (it inherits it); home.js
   fades this one in as the hero's fades out on scroll, and it keeps
   spring-chasing the pointer through every section to the footer. */
.sec-glow { z-index: 2; }

/* ---------- 1 · HOME, CONTINUED (site-d7) — the founder's bento ---------- */

.bento {
  position: relative;
  z-index: 5;
  overflow: hidden;
  border-top: 1px solid rgba(212, 212, 212, 0.07);
  padding: clamp(96px, 15vh, 168px) var(--margin) clamp(104px, 16vh, 176px);
}

/* chrome accents at the edges — the hero's cast, visiting the
   statement. Same three-layer grammar (pop · bob · glint), armed
   by the same reveal engine: the life waits, paused, for .in */
.bento-shapes { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.bshape {
  position: absolute;
  pointer-events: none;
  filter: drop-shadow(0 14px 22px rgba(0,0,0,0.55)) drop-shadow(0 0 18px rgba(255,255,255,0.06));
}
.bshape svg { display: block; width: 100%; height: 100%; }
.bshape-ring { right: 4.5vw; top: 5%;    width: 74px; height: 74px; }
.bshape-gem  { left: 3.5vw;  bottom: 9%; width: 62px; height: 62px; }
.bshape-orb  { right: 13vw;  bottom: 5%; width: 44px; height: 44px; }
.bshape .shape-pop { animation-delay: 0.15s; }
.bshape-gem .shape-pop { animation-delay: 0.3s; }
.bshape-orb .shape-pop { animation-delay: 0.45s; }
/* a plain ball of the same liquid metal — CSS-lit, same key light */
.orb-ball {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FFFFFF, #C9CCD4 45%, #55575F 100%);
  box-shadow: inset -8px -10px 18px rgba(0,0,0,0.45);
}
.bento .shape-pop, .bento .shape-bob, .bento .shape-pop::after,
.sec-shapes .shape-pop, .sec-shapes .shape-bob, .sec-shapes .shape-pop::after {
  animation-play-state: paused;
}
.bento.in .shape-pop, .bento.in .shape-bob, .bento.in .shape-pop::after,
.sec-shapes.in .shape-pop, .sec-shapes.in .shape-bob, .sec-shapes.in .shape-pop::after {
  animation-play-state: running;
}

/* ---------- the statement — why MS, in type ----------
   Distribution does the persuading: a quiet silver confession,
   then the answer at full scale — "strategy" worn as an outline,
   "you." solid with the site's one orange stop, still pulsing.
   Words rise one by one out of clipped slots (the delays ride
   --i), then a sheen band crosses the whole block on a long
   cycle, the wordmark's own trick at statement scale. */
.bento-statement {
  position: relative;
  z-index: 2;
  max-width: 1150px;
  margin: 0 auto;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--white);
}
.bento-statement::after {
  content: "";
  position: absolute;
  inset: -8% -3%;
  pointer-events: none;
  background: linear-gradient(100deg,
    rgba(255,255,255,0) 42%, rgba(255,244,224,0.13) 50%, rgba(255,255,255,0) 58%);
  background-size: 240% 100%;
  background-position: 130% 0;
  background-repeat: no-repeat;
  mix-blend-mode: screen;
  opacity: 0;
  animation: stSheen 8.5s ease-in-out 2.2s infinite;
}
@keyframes stSheen {
  0%   { background-position: 130% 0;  opacity: 0; }
  4%   { opacity: 1; }
  30%  { background-position: -30% 0;  opacity: 1; }
  36%  { opacity: 0; }
  100% { background-position: -30% 0;  opacity: 0; }
}
.st-row { display: block; }
.st-r1 {
  font-size: clamp(1.25rem, 2.5vw, 2.05rem);
  font-weight: 500;
  color: var(--silver);
  margin-bottom: clamp(20px, 3.6vh, 36px);
}
.st-r2, .st-r3 {
  font-size: clamp(2.8rem, 7.2vw, 6.6rem);
  line-height: 1.04;
}
.st-strategy {
  color: transparent;
  -webkit-text-stroke: 2px rgba(255,255,255,0.9);
}
.bento-statement .accent {
  font-style: normal;
  color: var(--orange);
  -webkit-text-stroke: 0;
  display: inline-block;
  animation: stopPulse 3.6s cubic-bezier(0.37, 0, 0.24, 1) 2.45s infinite;
}
.bento-statement .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.13em;
  margin-bottom: -0.13em;
}
.bento-statement .wi {
  display: inline-block;
  transition: transform 0.85s var(--spring) calc(var(--i) * 60ms);
  will-change: transform;
}
html.js .bento-statement .wi { transform: translateY(114%); }
html.js .bento.in .bento-statement .wi { transform: translateY(0); }
.st-sub {
  display: block;
  margin-top: clamp(24px, 4.2vh, 42px);
  max-width: 580px;
  font-size: clamp(0.98rem, 1.35vw, 1.14rem);
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0.01em;
  color: var(--silver);
}
html.js .st-sub { opacity: 0; }
.bento.in .st-sub { animation: doorIn 1s var(--ease-out) 0.95s backwards; }

/* ---------- the doors — three only, three different gaits ----------
   Clients: the image itself moves (parallax drift + a blur-shift
   under the hand). Explore: the light moves (a chromatic aura
   turning and breathing behind the pill). About: the surface
   moves (a sideways spring entrance, an orange fill sweeping
   up on hover). Entrances are keyframed under .in, so hovers
   never fight them. */
.bento-row {
  position: relative;
  z-index: 2;
  max-width: 1150px;
  margin: clamp(52px, 9vh, 96px) auto 0;
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: clamp(16px, 2vw, 24px);
}
@keyframes doorIn {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes doorInR {
  from { opacity: 0; transform: translateX(38px); }
  to   { opacity: 1; transform: translateX(0); }
}
.tile-clients {
  position: relative;
  display: block;
  min-height: clamp(280px, 44vh, 400px);
  border-radius: 22px;
  overflow: hidden;
  background: #0c0c0e;
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(212,212,212,0.10), 0 30px 60px rgba(0,0,0,0.45);
  transition: box-shadow 0.5s ease;
}
.bento.in .tile-clients { animation: doorIn 0.95s var(--ease-out) 0.5s backwards; }
.tile-clients:hover {
  box-shadow: inset 0 0 0 1px rgba(212,212,212,0.2), 0 36px 70px rgba(0,0,0,0.55);
}
.tile-media { position: absolute; inset: 0; overflow: hidden; }
.tile-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.14);
  filter: saturate(0.92) contrast(1.04);
  transition: transform 1.4s var(--quint), filter 1s ease;
}
.tile-clients:hover .tile-media img {
  transform: scale(1.21) translate(-1.6%, -2.4%);
  filter: saturate(1.07) contrast(1.05) blur(0.7px);
}
/* the chromatic wash — warm light laid over the photograph,
   thickening as the hand arrives */
.tile-wash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(155deg,
    rgba(255,84,0,0.22) 0%, rgba(255,84,0,0) 44%,
    rgba(16,16,24,0.28) 76%, rgba(255,84,0,0.14) 100%);
  mix-blend-mode: overlay;
  opacity: 0.7;
  transition: opacity 0.8s ease;
}
.tile-clients:hover .tile-wash { opacity: 1; }
.tile-label {
  position: absolute;
  left: 18px; bottom: 18px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 19px;
  border-radius: 999px;
  background: rgba(9,9,11,0.44);
  -webkit-backdrop-filter: blur(14px) saturate(1.35);
          backdrop-filter: blur(14px) saturate(1.35);
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--white);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
}
.tile-arrow {
  display: inline-block;
  transition: transform 0.45s var(--spring);
}
.tile-clients:hover .tile-arrow,
.btn-explore:hover .tile-arrow,
.tile-about:hover .tile-arrow { transform: translateX(5px); }

.bento-side {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: clamp(16px, 2vw, 24px);
}
/* EXPLORE — the chromatic glow: a warm conic aura turning
   slowly behind the pill and breathing against it, with a hot
   rim at the edge. The pill itself stays black glass. */
@property --ca { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.btn-explore {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 23px 30px;
  border-radius: 999px;
  background: #0B0B0D;
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 0 0 1px rgba(255,150,60,0.28), 0 12px 36px rgba(255,84,0,0.20);
  color: var(--white);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: transform 0.5s var(--spring), box-shadow 0.5s ease;
}
.bento.in .btn-explore { animation: doorIn 0.9s var(--spring) 0.68s backwards; }
.btn-explore::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -4px;
  border-radius: inherit;
  background: conic-gradient(from var(--ca),
    #FF5400, #FFC46B, #FFF3D6, #FF8A3D, #C93300, #FF5400);
  filter: blur(15px) saturate(1.3);
  opacity: 0.55;
  animation: chromaTurn 9s linear infinite, chromaBreathe 4.2s ease-in-out infinite;
}
@keyframes chromaTurn { to { --ca: 360deg; } }
@keyframes chromaBreathe {
  0%, 100% { opacity: 0.45; transform: scale(1); }
  50%      { opacity: 0.78; transform: scale(1.04); }
}
.btn-explore:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 0 1px rgba(255,170,80,0.5), 0 18px 44px rgba(255,84,0,0.32);
}
/* ABOUT — the small tile: springs in from the side, then an
   orange fill sweeps up under the hand */
.tile-about {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 7px;
  padding: 24px;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(150deg, #17171B, #0B0B0D);
  box-shadow: inset 0 0 0 1px rgba(212,212,212,0.10);
  color: var(--white);
  text-decoration: none;
}
.bento.in .tile-about { animation: doorInR 0.9s var(--spring) 0.84s backwards; }
.tile-about::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(150deg, rgba(255,84,0,0.26), rgba(255,84,0,0.05));
  transform: translateY(101%);
  transition: transform 0.6s var(--quint);
}
.tile-about:hover::before { transform: translateY(0); }
/* THE IDENTITY BADGE — the About tile's own emblem, pure code:
   a ring of circular text turning slowly around the orange MS
   logo, an orange spark signing the circle a touch faster than
   the words. The logo itself sits perfectly still — only the
   chrome on its edges catches a slow travelling light. The
   badge is the tile's visual hero; the label sits below it
   as before. Placement (founder fix): the badge lives in a
   strip pinned clear of BOTH the tile's top edge and the
   label block below — it centres itself inside that free
   strip and shrinks to fit it, so it can never reach the
   top of the tile or touch "The art director" again. */
.tile-badge {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  top: 14px;
  bottom: 94px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.badge-float {
  position: relative;
  flex: none;
  height: min(178px, 100%);
  aspect-ratio: 1;
}
.badge-svg { position: relative; display: block; width: 100%; height: 100%; }
.badge-ring { fill: none; }
.badge-ring-outer { stroke: rgba(216,216,220,0.30); stroke-width: 1; }
.badge-ring-inner { stroke: rgba(255,84,0,0.55); stroke-width: 1; }
.badge-rotor {
  transform-box: view-box;
  transform-origin: center;
  animation: badgeSpin 24s linear infinite;
}
.badge-text {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
  fill: #D9D9DE;
}
/* THE LOGO — the brand's geometric M mark (alpha cropped from
   ms-logo-lockup.webp into ms-mark.png) rendered via CSS mask,
   so it stays razor sharp at any size. PLAIN, by founder order:
   one solid brand-orange fill, completely static — no glow,
   no chrome, no sweep, no shadow, no animation of any kind. */
.badge-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 35%;
  aspect-ratio: 173 / 152;
  transform: translate(-50%, -50%);
}
.badge-logo-layer {
  position: absolute;
  inset: 0;
  -webkit-mask-image: url("assets/ms-mark.png");
  mask-image: url("assets/ms-mark.png");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}
.badge-logo-mark {
  background: #FF5400;
}
.badge-spark-g {
  transform-box: view-box;
  transform-origin: center;
  animation: badgeSpin 19s linear infinite;
  filter: drop-shadow(0 0 5px rgba(255,84,0,0.85));
}
.badge-spark-g circle { fill: #FF5400; }
.badge-spark-t1 { opacity: 0.45; }
.badge-spark-t2 { opacity: 0.25; }
@keyframes badgeSpin { to { transform: rotate(360deg); } }
.tile-about-kicker {
  position: relative;
  z-index: 3;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--silver);
}
.tile-about-name {
  position: relative;
  z-index: 3;
  font-size: clamp(1.35rem, 2.1vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.tile-about .tile-arrow {
  position: absolute;
  z-index: 3;
  right: 22px;
  bottom: 26px;
  font-size: 19px;
}

/* ---------- 2b · a floating chrome accent in every section ----------
   Behind the content (the section's own stacking context keeps it
   over the field, under the words), small, at the edges — the
   hero's cast, visiting. Same pop / bob / glint layers. */
.sec-shapes {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.sshape {
  position: absolute;
  width: 62px; height: 62px;
  opacity: 0.8;
  pointer-events: none;
  filter: drop-shadow(0 12px 20px rgba(0,0,0,0.55)) drop-shadow(0 0 14px rgba(255,255,255,0.05));
}
.sshape svg { display: block; width: 100%; height: 100%; }
.sshape.pos-tr { right: 3.5vw; top: 44px; }
.sshape.pos-tl { left: 3.5vw;  top: 44px; }
.sshape.pos-bl { left: 3vw;   bottom: 48px; }
.sshape.pos-rm { right: 4vw;  top: 46%; width: 52px; height: 52px; }
.sec-shapes .shape-pop::after { animation-duration: 14s; animation-delay: 5s; }
.sb-flower { animation-name: shapeBobFlower; animation-duration: 7.4s; animation-delay: -1.2s; }
.sb-gem    { animation-name: shapeBobGem;    animation-duration: 6.8s; animation-delay: -2.6s; }
.sb-ring   { animation-name: shapeBobRing;   animation-duration: 9s;   animation-delay: -5s; }
.sb-orb    { animation-name: shapeBobFlower; animation-duration: 8.2s; animation-delay: -3.8s; }

/* ---------- 2c · the wordmark's sheen, on every section title ----------
   The hero construction exactly: an identical glyph overlay,
   gradient-clipped to the letterforms, sweeping once the head
   has landed, then every ~7.5s — only the light moves. */
.title-sheen {
  position: absolute;
  inset: 0;
  pointer-events: none;
  color: transparent;
  background: linear-gradient(100deg,
    rgba(255,255,255,0) 42%, rgba(255,244,224,0.5) 50%, rgba(255,255,255,0) 58%);
  background-size: 220% 100%;
  background-position: 130% 0;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
          background-clip: text;
  opacity: 0;
}
.sec-head.in .title-sheen { animation: titleSheen 7.5s ease-in-out 1.4s infinite; }
@keyframes titleSheen {
  0%   { background-position: 130% 0;  opacity: 0; }
  4%   { opacity: 1; }
  30%  { background-position: -30% 0;  opacity: 1; }
  34%  { opacity: 0; }
  100% { background-position: -30% 0;  opacity: 0; }
}

/* ---------- 2d · the shapes' glint, travelling over the cards ----------
   The same feathered band (screen blend, transparent edges) that
   sweeps the chrome shapes, now crossing the Work items and the
   Logofolio tiles on long offset cycles — a highlight that
   travels, never a flash. */
.work-item::after, .logo-tile::after {
  content: "";
  position: absolute;
  inset: -10% -30%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(100deg,
    rgba(255,255,255,0) 44%, rgba(255,255,255,0.13) 50%, rgba(255,255,255,0) 56%);
  mix-blend-mode: screen;
  transform: translateX(-140%);
  animation: cardGlint 12s ease-in-out infinite;
}
@keyframes cardGlint {
  0%   { transform: translateX(-140%); }
  12%  { transform: translateX(140%); }
  100% { transform: translateX(140%); }
}
.work-item:nth-child(3n+2)::after { animation-duration: 13.5s; animation-delay: 3.5s; }
.work-item:nth-child(3n)::after   { animation-duration: 11s;   animation-delay: 7s; }
.logo-tile:nth-child(3n+2)::after { animation-duration: 13s;   animation-delay: 4.5s; }
.logo-tile:nth-child(3n)::after   { animation-duration: 14.5s; animation-delay: 8.5s; }

/* ---------- d6 responsive ---------- */

@media (max-width: 760px) {
  .sshape { width: 44px; height: 44px; opacity: 0.65; }
  .sshape.pos-rm { width: 38px; height: 38px; }
  .bshape-ring { width: 46px; height: 46px; right: 5vw; }
  .bshape-gem  { width: 40px; height: 40px; }
  .bshape-orb  { width: 30px; height: 30px; }
  .bento-row { grid-template-columns: 1fr; }
  .tile-clients { min-height: 240px; }
  .bento-side { grid-template-rows: auto auto; }
  .tile-about { min-height: 224px; }
  /* the identity badge strip tightens a touch — it still
     centres in the free area and shrinks to fit, ring never
     clipped, label never touched */
  .tile-badge { top: 12px; bottom: 88px; }
  .oc-thumb { width: 108px; height: 74px; }
  .oc-glass { width: 126px; height: 56px; padding: 0 11px; }
}
