/* ==========================================================================
   Ananya Asthana — public site
   Tokens (colours, fonts, radius) are injected from Admin → Theme.
   ========================================================================== */

:root {
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --gutter: clamp(16px, 4vw, 56px);
  --header-h: 76px;
  --line: color-mix(in srgb, var(--text) 12%, transparent);
  --line-strong: color-mix(in srgb, var(--text) 24%, transparent);
  --glass: color-mix(in srgb, var(--surface) 62%, transparent);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  transition: background-color .6s var(--ease-out), color .6s var(--ease-out);
}
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1480px; margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 999; background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; }

/* --- Typography ---------------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 0 0 22px; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.eyebrow .sep { opacity: .4; }
.eyebrow .idx { color: var(--accent); font-family: var(--f-serif); font-style: italic; font-size: 15px; letter-spacing: 0; text-transform: none; }
.label { margin: 0 0 14px; font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
em { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--accent); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; flex: none; }
.dot--live { background: #3BD16F; box-shadow: 0 0 0 0 rgba(59, 209, 111, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(59, 209, 111, 0); } 100% { box-shadow: 0 0 0 0 rgba(59, 209, 111, 0); } }

/* Split-text primitives */
.split-char, .split-word { display: inline-block; will-change: transform; }
.split-mask { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.split-space { display: inline-block; width: .26em; }

/* --- Buttons -------------------------------------------------------------- */
.btn {
  --h: 54px;
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  height: var(--h); padding: 0 26px; border-radius: 999px; overflow: hidden; isolation: isolate;
  font-weight: 600; font-size: 15px; letter-spacing: .01em; white-space: nowrap;
  transition: color .45s var(--ease-out), border-color .45s var(--ease-out);
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease-out); }
.btn:hover svg { transform: rotate(-45deg); }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; transform: translateY(101%); transition: transform .55s var(--ease-out); }
.btn:hover::before { transform: translateY(0); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent::before { background: var(--text); }
.btn--accent:hover { color: var(--bg); }
.btn--ghost { border: 1px solid var(--line-strong); }
.btn--ghost::before { background: var(--text); }
.btn--ghost:hover { color: var(--bg); }
.btn--sm { --h: 44px; padding: 0 18px; font-size: 14px; }

.icon-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); transition: background .3s, border-color .3s; }
.icon-btn:hover { background: var(--surface); }
.icon-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
[data-theme="light"] .theme-toggle svg circle { fill: currentColor; }

/* --- Header + dock nav (sandeepp-style floating pill) -------------------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 60; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 var(--gutter);
  transition: transform .6s var(--ease-out);
}
.site-header.is-hidden { transform: translateY(-110%); }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.brand__mark { font-family: var(--f-display); font-size: 30px; line-height: 1; font-weight: 800; letter-spacing: -.01em; text-transform: uppercase; }
@keyframes spin { to { transform: rotate(1turn); } }
.brand__name { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; opacity: .8; }

.dock {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: flex; gap: 2px; padding: 6px;
  background: var(--glass); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  border-radius: 999px;
}
.dock__link { position: relative; z-index: 1; padding: 9px 17px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--muted); transition: color .3s; }
.dock__link:hover, .dock__link.is-active { color: var(--text); }
.dock__pill { position: absolute; z-index: 0; top: 6px; height: calc(100% - 12px); left: 0; width: 0; border-radius: 999px; background: color-mix(in srgb, var(--text) 10%, transparent); transition: transform .5s var(--ease-out), width .5s var(--ease-out), opacity .3s; opacity: 0; }
.site-header__tools { display: flex; align-items: center; gap: 10px; }

.menu-toggle { display: none; width: 46px; height: 46px; border-radius: 50%; background: var(--text); position: relative; }
.menu-toggle span { position: absolute; left: 14px; right: 14px; height: 2px; background: var(--bg); border-radius: 2px; transition: transform .45s var(--ease-out), top .45s var(--ease-out); }
.menu-toggle span:first-child { top: 18px; }
.menu-toggle span:last-child { top: 26px; }
.menu-open .menu-toggle span:first-child { top: 22px; transform: rotate(45deg); }
.menu-open .menu-toggle span:last-child { top: 22px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 55; display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
  background: var(--bg); clip-path: circle(0 at calc(100% - 46px) 38px);
  transition: clip-path .8s var(--ease-in-out), visibility 0s .8s; visibility: hidden;
}
.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 46px) 38px); visibility: visible; transition: clip-path .8s var(--ease-in-out); }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu__link { display: flex; align-items: baseline; gap: 14px; font-family: var(--f-display); font-size: clamp(46px, 14vw, 84px); line-height: 1; font-weight: 800; text-transform: uppercase; padding: 6px 0; border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(40px); transition: opacity .6s, transform .8s var(--ease-out); }
.mobile-menu__link small { font-family: var(--f-body); font-size: 12px; font-weight: 500; color: var(--accent); }
.menu-open .mobile-menu__link { opacity: 1; transform: none; transition-delay: calc(.25s + var(--i) * .06s); }
.mobile-menu__foot { display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.mobile-menu__cta { align-self: flex-start; margin-bottom: 8px; }
.mobile-menu__foot .socials { display: flex; flex-wrap: wrap; gap: 16px; color: var(--muted); }

/* --- 3D orb canvas -------------------------------------------------------- */
.orb-canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh; z-index: 0; pointer-events: none; }
.orb-fallback { display: none; }
.no-webgl .orb-fallback {
  display: block; position: fixed; z-index: 0; pointer-events: none;
  width: min(62vw, 560px); aspect-ratio: 1; right: 6vw; top: 18vh; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--accent-3), transparent 45%), radial-gradient(circle at 70% 65%, var(--accent-2), transparent 55%), var(--accent);
  filter: blur(6px) saturate(1.2); opacity: .9;
}
.page, .site-footer { position: relative; z-index: 1; }

/* --- Hero ----------------------------------------------------------------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; padding: calc(var(--header-h) + 40px) 0 clamp(36px, 7vh, 80px); overflow: hidden; }
.hero__inner { position: relative; z-index: 2; }
.hero__title {
  margin: 0; font-family: var(--f-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(76px, 17.5vw, 290px); line-height: .82; letter-spacing: -.025em;
  display: flex; flex-direction: column;
}
.hero__line { display: block; }
.hero__line--outline { color: transparent; -webkit-text-stroke: 1.5px var(--text); padding-left: clamp(30px, 11vw, 220px); }
.hero__foot { display: grid; grid-template-columns: minmax(0, 520px) auto; justify-content: space-between; align-items: end; gap: 28px; margin-top: clamp(24px, 4vh, 48px); }
.hero__sub { margin: 0; font-size: clamp(16px, 1.35vw, 20px); line-height: 1.55; color: color-mix(in srgb, var(--text) 82%, transparent); }
.hero__actions { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.hero__role { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.hero__tags { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; z-index: 1; pointer-events: none; }
.float-tag {
  position: absolute; padding: 9px 16px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  background: var(--glass); border: 1px solid var(--line-strong);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); white-space: nowrap;
}
.float-tag::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: middle; }
.float-tag--1 { top: 22%; right: 34%; }
.float-tag--2 { top: 34%; right: 6%; }
.float-tag--2::before { background: var(--accent-2); }
.float-tag--3 { top: 56%; right: 28%; }
.float-tag--3::before { background: var(--accent-3); }
.float-tag--4 { top: 15%; right: 10%; }

.scroll-hint { position: absolute; right: var(--gutter); bottom: 28px; z-index: 2; display: flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); writing-mode: vertical-rl; }
.scroll-hint i { width: 1px; height: 56px; background: var(--line-strong); position: relative; overflow: hidden; }
.scroll-hint i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--accent); animation: drip 1.8s var(--ease-in-out) infinite; }
@keyframes drip { to { top: 100%; } }

/* --- Manifesto (scroll highlight, jorisbrianti-style) --------------------- */
.manifesto { padding: 0; }
.manifesto__text { margin: 0; max-width: 1180px; font-size: clamp(30px, 4.6vw, 74px); line-height: 1.08; font-weight: 600; letter-spacing: -.025em; }
.manifesto__text .hl-word { opacity: .14; transition: none; }
.manifesto__text em { font-size: 1.06em; }

/* --- Marquees ------------------------------------------------------------- */
.marquees { overflow: hidden; }
.marquee { display: flex; overflow: hidden; padding: 6px 0; border-top: 1px solid var(--line); }
.marquee:last-child { border-bottom: 1px solid var(--line); }
.marquee__track { display: flex; align-items: center; flex: none; will-change: transform; }
.marquee__item { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: clamp(54px, 10vw, 168px); line-height: 1; letter-spacing: -.015em; padding: 0 .18em; white-space: nowrap; }
.marquee__sep { color: var(--accent); font-size: clamp(28px, 4.5vw, 72px); padding: 0 .3em; display: inline-block; }
.marquee--outline .marquee__item { color: transparent; -webkit-text-stroke: 1.2px var(--text); }
.marquee--outline .marquee__sep { color: var(--accent-2); }

/* --- Footer --------------------------------------------------------------- */
.site-footer { padding: clamp(100px, 16vh, 200px) 0 0; overflow: hidden; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 75%, transparent); -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px); }
.footer-title { margin: 0 0 24px; font-size: clamp(30px, 4.2vw, 64px); line-height: 1.05; letter-spacing: -.025em; font-weight: 600; max-width: 900px; }
.giant-mail { display: inline-flex; align-items: center; gap: .2em; max-width: 100%; font-size: clamp(22px, 5.4vw, 112px); font-weight: 600; letter-spacing: -.04em; line-height: 1.05; padding: .1em 0; position: relative; }
.giant-mail__text { overflow-wrap: break-word; min-width: 0; }
.giant-mail::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .7s var(--ease-out); }
.giant-mail:hover::after { transform: scaleX(1); transform-origin: left; }
.giant-mail__arrow { color: var(--accent); transition: transform .6s var(--ease-out); flex: none; }
.giant-mail:hover .giant-mail__arrow { transform: rotate(45deg); }
.footer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: clamp(60px, 10vh, 110px); padding-top: 34px; border-top: 1px solid var(--line); }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-links a { position: relative; transition: color .3s; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 44px 0 20px; font-size: 13px; color: var(--muted); }
.to-top:hover { color: var(--text); }
.footer-wordmark { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; white-space: nowrap; font-size: 15.5vw; line-height: .78; letter-spacing: -.03em; text-align: center; color: transparent; -webkit-text-stroke: 1px var(--line-strong); user-select: none; margin-bottom: -1.5vw; }

/* --- Placeholder & 404 ---------------------------------------------------- */
.soon { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header-h) + 40px) 0 80px; }
.soon__title { margin: 0 0 24px; font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: clamp(64px, 13vw, 220px); line-height: .85; letter-spacing: -.02em; }
.soon__title--xl { font-size: clamp(120px, 30vw, 460px); }
.soon__text { max-width: 520px; margin: 0 0 32px; color: color-mix(in srgb, var(--text) 80%, transparent); font-size: clamp(16px, 1.3vw, 19px); }

/* --- Preloader (particle burst → word) -------------------------------- */
.preloader { position: fixed; inset: 0; z-index: 100; background: var(--bg); display: grid; place-items: center; }
.preloader__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.preloader__meta { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 28px; display: flex; justify-content: space-between; align-items: flex-end; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.preloader__count { font-family: var(--f-display); font-size: clamp(48px, 9vw, 120px); line-height: .8; letter-spacing: -.02em; color: var(--text); font-weight: 800; }
html:not(.js) .preloader, .preloader.is-done { display: none; }

/* --- Page transition: circle wipe from the click point -------------------- */
.curtain { position: fixed; inset: 0; z-index: 90; pointer-events: none; }
.curtain__ring, .curtain__fill { position: absolute; inset: 0; clip-path: circle(0px at 50% 50%); will-change: clip-path; }
.curtain__ring { background: var(--accent); }
.curtain__fill { background: var(--bg); }
/* Arriving via a transition: hide until the entrance animation runs (CSS fallback after 1.5s). */
.is-entering .site-header, .is-entering .page { opacity: 0; animation: anp-show 0s 1.5s forwards; }
@keyframes anp-show { to { opacity: 1; } }

/* --- Click sparkles ------------------------------------------------------ */
.spark { position: fixed; z-index: 130; pointer-events: none; line-height: 1; transform-origin: center; translate: -50% -50%; will-change: transform, opacity; text-shadow: 0 0 10px currentColor; }
.spark-ring { position: fixed; z-index: 129; pointer-events: none; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; border: 2px solid; will-change: transform, opacity; }

/* --- Film grain ----------------------------------------------------------- */
.has-grain::after {
  content: ""; position: fixed; inset: -50%; z-index: 110; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
[data-theme="light"] .has-grain::after, [data-theme="light"].has-grain::after { opacity: .05; }
@keyframes grain { 0%,100% { transform: translate(0,0); } 20% { transform: translate(-6%,4%); } 40% { transform: translate(5%,-7%); } 60% { transform: translate(-3%,8%); } 80% { transform: translate(8%,2%); } }

/* Elements animated by JS start hidden only when JS runs */
.js [data-reveal] { opacity: 0; }
.js.reduced-motion [data-reveal] { opacity: 1; }


/* ==========================================================================
   Phase 2 · page sections
   ========================================================================== */
.sec { position: relative; padding: clamp(90px, 15vh, 190px) 0; }
.sec--hero { padding: 0; }
.sec--marquee, .sec--clients { padding: clamp(40px, 8vh, 90px) 0; }
.sec--work:has(.rail) { padding: 0; }
.sec-head { margin-bottom: clamp(36px, 6vh, 70px); max-width: 980px; }
.sec-title { margin: 0; font-size: clamp(36px, 5.4vw, 88px); line-height: 1; letter-spacing: -.035em; font-weight: 600; }
.lead { font-size: clamp(16px, 1.3vw, 19px); color: color-mix(in srgb, var(--text) 80%, transparent); max-width: 520px; margin: -20px 0 32px; }
.center-row { display: flex; justify-content: center; margin: 54px 0 0; }
.row-btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.hero__avatar { position: absolute; z-index: 1; right: 6vw; bottom: 0; height: min(78vh, 760px); width: auto; object-fit: contain; pointer-events: none; filter: drop-shadow(0 30px 60px rgba(0,0,0,.35)); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); border-top: 1px solid var(--line); }
.stat-item { padding: 34px 28px 10px 0; border-right: 1px solid var(--line); }
.stat-item + .stat-item { padding-left: 28px; }
.stat-item:last-child { border-right: 0; }
.stat-item__num { font-family: var(--f-display); font-weight: 800; font-size: clamp(76px, 11vw, 190px); line-height: .85; letter-spacing: -.02em; display: flex; align-items: flex-start; }
.stat-item__num sup { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: .32em; color: var(--accent); margin: .25em 0 0 .08em; letter-spacing: 0; }
.stat-item__label { margin: 18px 0 0; color: var(--muted); max-width: 240px; }

/* Expertise rows + cursor trail */
.xp { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.xp__item { border-bottom: 1px solid var(--line); }
.xp__row { position: relative; display: grid; grid-template-columns: 70px minmax(0, 1fr) minmax(0, 320px) 60px; align-items: center; gap: 24px; padding: clamp(18px, 3vh, 34px) var(--gutter); overflow: hidden; isolation: isolate; }
.xp__row::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent); transform: scaleY(0); transform-origin: bottom; transition: transform .7s var(--ease-out); }
.xp__row:hover::before, .xp__row:focus-visible::before { transform: scaleY(1); transform-origin: top; }
.xp__num { font-family: var(--f-serif); font-style: italic; font-size: 20px; color: var(--muted); transition: color .4s; }
.xp__title { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: clamp(44px, 7.5vw, 128px); line-height: .9; letter-spacing: -.01em; overflow: hidden; display: block; }
.xp__title-inner { display: inline-block; position: relative; transition: transform .7s var(--ease-out); }
.xp__title-inner::after { content: attr(data-text); position: absolute; left: 0; top: 100%; font-family: var(--f-serif); font-style: italic; font-weight: 400; text-transform: none; }
.xp__row:hover .xp__title-inner { transform: translateY(-100%); }
.xp__text { color: var(--muted); font-size: 14.5px; transition: color .4s; }
.xp__arrow { font-size: 34px; justify-self: end; transition: transform .6s var(--ease-out); }
.xp__row:hover .xp__num, .xp__row:hover .xp__text { color: rgba(255,255,255,.85); }
.xp__row:hover { color: #fff; }
.xp__row:hover .xp__arrow { transform: rotate(45deg); }
.trail-img { position: fixed; left: 0; top: 0; z-index: 70; width: clamp(160px, 18vw, 280px); aspect-ratio: 4 / 5; object-fit: cover; border-radius: calc(var(--radius) * .7); pointer-events: none; box-shadow: 0 30px 60px rgba(0,0,0,.35); will-change: transform, opacity; }

/* Project cards */
.pcard { position: relative; display: block; flex: none; width: clamp(280px, 34vw, 520px); color: inherit; transform-style: preserve-3d; perspective: 1000px; }
.pcard__media { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--pc); transform: translateZ(0); }
.pcard__media img, .pcard__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out), opacity .5s; }
.pcard__hover, .pcard__media video { opacity: 0; }
.pcard:hover .pcard__hover, .pcard:hover .pcard__media video { opacity: 1; }
.pcard:hover .pcard__media img { transform: scale(1.06); }
.pcard__fallback { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 25% 20%, color-mix(in srgb, var(--pc) 40%, #fff), transparent 45%), radial-gradient(circle at 80% 85%, color-mix(in srgb, var(--pc) 60%, #000), transparent 55%), var(--pc); }
.pcard__fallback b { font-family: var(--f-display); font-weight: 800; font-size: clamp(160px, 22vw, 360px); line-height: .8; color: rgba(255,255,255,.18); transition: transform 1.2s var(--ease-out); }
.pcard:hover .pcard__fallback b { transform: scale(1.12) rotate(-6deg); }
.pcard__meta { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; padding: 18px 4px 0; }
.pcard__idx { grid-row: span 2; font-family: var(--f-serif); font-style: italic; color: var(--accent); font-size: 18px; }
.pcard__title { font-size: clamp(18px, 1.5vw, 23px); font-weight: 600; letter-spacing: -.01em; }
.pcard__info { color: var(--muted); font-size: 13.5px; }
.pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 60px) clamp(18px, 3vw, 40px); }
.pgrid .pcard { width: 100%; }
.pgrid .pcard:nth-child(even) { margin-top: 90px; }

/* Rail (horizontal, pinned) */
.rail__pin { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--header-h) + 10px) 0 40px; overflow: hidden; }
.rail__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.rail__head .sec-head { margin-bottom: 30px; }
.rail__head .btn { margin-bottom: 34px; }
.rail__track { display: flex; gap: clamp(18px, 2.4vw, 40px); padding: 0 var(--gutter); width: max-content; will-change: transform; }
.rail__track .pcard { width: clamp(220px, min(28vw, 44vh), 440px); }
.rail__more { width: clamp(200px, min(22vw, 40vh), 340px); }
.rail__more { flex: none; width: clamp(220px, 22vw, 340px); aspect-ratio: 4 / 5; border-radius: var(--radius); border: 1px dashed var(--line-strong); display: grid; place-content: center; gap: 14px; text-align: center; font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: clamp(30px, 3vw, 48px); line-height: 1; transition: background .5s, color .5s; }
.rail__more i { font-style: normal; color: var(--accent); }
.rail__more:hover { background: var(--accent); color: #fff; }
.rail__more:hover i { color: #fff; }
.rail__progress { margin: 34px var(--gutter) 0; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.rail__progress span { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }

/* Book spines (Sabrina-style stack) */
.spines { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.spine { width: var(--w); transform: rotate(var(--tilt)); }
.spine:nth-child(even) { margin-left: auto; }
.spine__body { position: relative; display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 20px 26px; border-radius: 10px 16px 16px 10px; background: var(--pc); color: #fff; overflow: hidden; box-shadow: inset 6px 0 0 rgba(0,0,0,.18), 0 12px 30px rgba(0,0,0,.2); transition: transform .7s var(--ease-out), box-shadow .5s; }
.spine__body:hover { transform: translateX(28px) scale(1.01); box-shadow: inset 6px 0 0 rgba(0,0,0,.18), 0 24px 50px rgba(0,0,0,.35); }
.spine:nth-child(even) .spine__body:hover { transform: translateX(-28px) scale(1.01); }
.spine__num { font-family: var(--f-display); font-weight: 800; font-size: 34px; line-height: 1; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 8px; background: rgba(255,255,255,.92); color: var(--pc); }
.spine__title { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: clamp(28px, 3.6vw, 58px); line-height: 1; letter-spacing: -.005em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spine__meta { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; opacity: .85; text-align: right; }
.spine__band { position: absolute; top: 0; bottom: 0; right: 88px; width: 10px; background: rgba(255,255,255,.35); }
.spine-peek { position: fixed; left: 0; top: 0; z-index: 70; width: clamp(200px, 20vw, 300px); aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; pointer-events: none; opacity: 0; transform: scale(.6); box-shadow: 0 30px 70px rgba(0,0,0,.4); }
.spine-peek img { width: 100%; height: 100%; object-fit: cover; }

/* Showreel */
.reel { padding: 0 var(--gutter); }
.reel__frame { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; max-height: 88vh; border-radius: var(--radius); overflow: hidden; background: var(--surface); clip-path: inset(0 12% 0 12% round var(--radius)); will-change: clip-path; }
.reel__frame video, .reel__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel__frame:disabled { cursor: default; }
.reel__placeholder { position: absolute; inset: 0; display: flex; justify-content: space-between; align-items: flex-end; padding: clamp(20px, 3vw, 44px); font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: clamp(48px, 9vw, 160px); line-height: .85; color: #fff;
  background: radial-gradient(circle at 20% 20%, var(--accent-3), transparent 40%), radial-gradient(circle at 80% 70%, var(--accent-2), transparent 50%), var(--accent); background-size: 160% 160%; animation: reelbg 10s ease-in-out infinite alternate; }
@keyframes reelbg { to { background-position: 100% 100%; } }
.reel__play { position: absolute; left: 50%; top: 50%; width: clamp(80px, 9vw, 130px); aspect-ratio: 1; margin: calc(clamp(80px, 9vw, 130px) / -2) 0 0 calc(clamp(80px, 9vw, 130px) / -2); border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.14); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,.35); transition: transform .6s var(--ease-out), background .4s; }
.reel__play svg { width: 34%; fill: #fff; margin-left: 6%; }
.reel__frame:hover .reel__play { transform: scale(1.12); background: var(--accent); }
.reel__caption { text-align: center; color: var(--muted); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin: 22px 0 0; }
/* Value cards with 3D tilt */
.vcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 18px; perspective: 1200px; }
.vcard { position: relative; padding: clamp(26px, 3vw, 42px); min-height: 320px; display: flex; flex-direction: column; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--line); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); overflow: hidden; transform-style: preserve-3d; will-change: transform; }
.vcard__num { font-family: var(--f-display); font-weight: 800; font-size: 76px; line-height: .9; color: transparent; -webkit-text-stroke: 1.2px var(--accent); transform: translateZ(40px); }
.vcard__title { margin: auto 0 10px; font-size: clamp(22px, 2vw, 30px); letter-spacing: -.02em; font-weight: 600; transform: translateZ(30px); }
.vcard__text { margin: 0; color: var(--muted); transform: translateZ(20px); }
.vcard__glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%); opacity: 0; transition: opacity .4s; }
.vcard:hover .vcard__glow { opacity: 1; }

/* Toolkit orbit */
.toolkit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 6vw, 90px); align-items: center; }
.skill-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; max-width: 520px; }
.skill-bars li { display: grid; grid-template-columns: 1fr auto; gap: 8px; font-weight: 500; }
.skill-bars__val { font-family: var(--f-serif); font-style: italic; color: var(--muted); }
.skill-bars__track { grid-column: 1 / -1; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.skill-bars__track span { display: block; height: 100%; width: 100%; background: var(--c); transform-origin: left; transform: scaleX(var(--lvl)); }
.js .skill-bars__track span { transform: scaleX(0); }
.orbit { position: relative; aspect-ratio: 1; width: min(100%, 560px); justify-self: center; perspective: 1100px; cursor: grab; touch-action: pan-y; user-select: none; }
.orbit:active { cursor: grabbing; }
.orbit__ring { position: absolute; inset: 0; z-index: 1; transform-style: preserve-3d; transform: rotateX(-14deg) rotateY(0deg); }
.orbit__item { position: absolute; left: 50%; top: 50%; width: 110px; margin: -55px 0 0 -55px; display: grid; justify-items: center; gap: 8px;
  transform: rotateY(calc(360deg / var(--n) * var(--i))) translateZ(clamp(140px, 17vw, 230px)); transform-style: preserve-3d; backface-visibility: visible; }
.orbit__badge { width: 86px; height: 86px; border-radius: 24px; display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; font-size: 36px; color: #fff;
  background: linear-gradient(150deg, color-mix(in srgb, var(--c) 85%, #fff), color-mix(in srgb, var(--c) 70%, #000)); box-shadow: 0 18px 40px color-mix(in srgb, var(--c) 40%, transparent), inset 0 1px 0 rgba(255,255,255,.4); overflow: hidden; }
.orbit__badge img { width: 70%; height: 70%; object-fit: contain; }
.orbit__name { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.orbit__core { position: absolute; z-index: 0; left: 50%; top: 50%; transform: translate(-50%, -50%); opacity: .14; font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: clamp(40px, 5vw, 76px); line-height: 1; white-space: nowrap; }

/* Testimonials */
.quotes { position: relative; max-width: 1180px; }
.quotes__mark { position: absolute; left: -.04em; top: -.18em; font-family: var(--f-serif); font-size: clamp(160px, 22vw, 320px); line-height: 1; color: var(--accent); opacity: .9; pointer-events: none; }
.quotes__stage { display: grid; }
.quote { grid-area: 1 / 1; margin: 0; padding-top: clamp(60px, 8vw, 110px); visibility: hidden; }
.quote.is-active { visibility: visible; }
.quote__text { margin: 0; font-size: clamp(26px, 3.6vw, 56px); line-height: 1.12; letter-spacing: -.025em; font-weight: 500; }
.quote__by { display: flex; align-items: center; gap: 14px; margin-top: 34px; }
.quote__by img, .quote__avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; }
.quote__avatar { display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 700; font-size: 20px; }
.quote__by b { display: block; }
.quote__by small { color: var(--muted); font-size: 13px; }
.quotes__nav { display: flex; align-items: center; gap: 12px; margin-top: 44px; }
.quotes__count { font-family: var(--f-serif); font-style: italic; font-size: 18px; min-width: 80px; text-align: center; }
.quotes__progress { flex: 1; max-width: 240px; height: 2px; background: var(--line); margin-left: 12px; overflow: hidden; }
.quotes__progress span { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }

/* Client logos */
.logos { border: 0; padding: 10px 0; }
.logos .marquee__track { gap: clamp(40px, 6vw, 100px); padding-right: clamp(40px, 6vw, 100px); }
.logo { display: grid; place-items: center; height: 70px; flex: none; opacity: .6; filter: grayscale(1); transition: opacity .4s, filter .4s; }
.logo:hover { opacity: 1; filter: none; }
.logo img { max-height: 46px; width: auto; }
[data-theme="dark"] .logo img { filter: brightness(0) invert(1); }
.logo__word { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: clamp(26px, 3vw, 42px); letter-spacing: .01em; white-space: nowrap; }

/* About intro */
.about { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 110px); align-items: center; padding-top: calc(var(--header-h) + 20px); }
.about__media { position: relative; }
.about__portrait { margin: 0; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.about__portrait img, .about__second img, .about__portrait video, .about__second video { width: 100%; height: 118%; object-fit: cover; margin-top: -9%; }
.about__placeholder { width: 100%; height: 100%; display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: clamp(64px, 9vw, 140px); color: #fff;
  background: radial-gradient(circle at 25% 20%, var(--accent-3), transparent 45%), radial-gradient(circle at 75% 80%, var(--accent-2), transparent 55%), var(--accent); }
.about__second { position: absolute; width: 46%; aspect-ratio: 1; right: -12%; bottom: -10%; margin: 0; border-radius: var(--radius); overflow: hidden; border: 6px solid var(--bg); }
.about__title { margin: 0 0 30px; font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: clamp(64px, 9vw, 150px); line-height: .86; letter-spacing: -.02em; }
.about__title em { text-transform: none; font-size: .92em; }
.about__para { margin: 0 0 18px; font-size: clamp(16px, 1.3vw, 19.5px); color: color-mix(in srgb, var(--text) 84%, transparent); max-width: 640px; }
.about__copy .btn { margin-top: 16px; }

/* Facts */
.facts { margin: 0; border-top: 1px solid var(--line); }
.facts__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; padding-top: 6px; }
.facts dd { margin: 0; font-size: clamp(20px, 2.2vw, 34px); letter-spacing: -.02em; font-weight: 500; }

/* Photo band */
.band { overflow: hidden; padding: 20px 0; }
.band__track { display: flex; gap: clamp(14px, 2vw, 28px); width: max-content; padding: 0 var(--gutter); will-change: transform; }
.band__item { margin: 0; width: clamp(220px, 26vw, 420px); aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; transform: rotate(var(--r)); flex: none; }
.band__item img, .band__item video, .band__item iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }

/* Text + CTA */
.textblock { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(24px, 5vw, 80px); }
.textblock__body p { margin: 0 0 20px; font-size: clamp(17px, 1.4vw, 21px); color: color-mix(in srgb, var(--text) 84%, transparent); }
.cta { text-align: center; display: grid; justify-items: center; }
.cta__title { margin: 0 0 22px; max-width: 1150px; font-size: clamp(42px, 7vw, 120px); line-height: .98; letter-spacing: -.045em; font-weight: 600; }
.cta__text { margin: 0 0 44px; color: var(--muted); font-size: clamp(16px, 1.3vw, 19px); }
.cta__btn { width: clamp(150px, 15vw, 210px); aspect-ratio: 1; border-radius: 50%; display: grid; place-content: center; justify-items: center; gap: 8px; text-align: center; padding: 20px; background: var(--accent); color: #fff; font-weight: 700; font-size: 15px; line-height: 1.2; position: relative; isolation: isolate; overflow: hidden; }
.cta__btn::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 50%; background: var(--text); transform: scale(0); transition: transform .6s var(--ease-out); }
.cta__btn:hover { color: var(--bg); }
.cta__btn:hover::before { transform: scale(1); }
.cta__btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; transition: transform .6s var(--ease-out); }
.cta__btn:hover svg { transform: rotate(45deg); }

@media (max-width: 960px) {
  .xp__row { grid-template-columns: 44px minmax(0, 1fr) 40px; }
  .xp__text { grid-column: 2 / 3; grid-row: 2; }
  .xp__arrow { grid-row: 1; grid-column: 3; }
  .toolkit, .about, .textblock { grid-template-columns: 1fr; }
  .about__media { max-width: 440px; }
  .orbit { width: min(100%, 420px); }
}
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr; }
  .stat-item, .stat-item + .stat-item { border-right: 0; border-bottom: 1px solid var(--line); padding: 26px 0; }
  .pgrid { grid-template-columns: 1fr; }
  .pgrid .pcard:nth-child(even) { margin-top: 0; }
  .rail__pin { min-height: 0; padding: 0; }
  .rail__track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; scrollbar-width: none; }
  .rail__track::-webkit-scrollbar { display: none; }
  .rail__track .pcard, .rail__more { width: 78vw; scroll-snap-align: start; }
  .rail__progress { display: none; }
  .spine { width: 100%; transform: none; }
  .spine__body { grid-template-columns: 40px minmax(0, 1fr); padding: 16px 18px; }
  .spine__meta { grid-column: 2; text-align: left; }
  .spine__num { width: 36px; height: 36px; font-size: 26px; }
  .spine__band { display: none; }
  .reel__frame { clip-path: none; }
  .orbit__item { width: 80px; margin: -40px 0 0 -40px; }
  .orbit__badge { width: 62px; height: 62px; border-radius: 18px; font-size: 26px; }
  .orbit__name { font-size: 10px; }
    .about__second { right: -4%; }
  .facts__row { grid-template-columns: 1fr; gap: 4px; }
  .row-btns { justify-content: flex-start; }
  .hero__avatar { right: -10vw; height: 46vh; bottom: auto; top: 12vh; opacity: .9; }
}


/* ==========================================================================
   Phase 3 · work, case studies, motion, playground
   ========================================================================== */
.empty-note { color: var(--muted); text-align: center; padding: 60px 0; font-family: var(--f-serif); font-style: italic; font-size: 22px; }

/* Page header */
.sec--page_header { padding-top: calc(var(--header-h) + clamp(60px, 12vh, 140px)); padding-bottom: clamp(40px, 8vh, 90px); }
.phead__title { margin: 0; font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: clamp(90px, 20vw, 340px); line-height: .8; letter-spacing: -.03em; display: flex; align-items: flex-start; gap: .04em; }
.phead__title em { text-transform: none; font-size: .9em; }
.phead__count { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: clamp(22px, 2.6vw, 42px); color: var(--accent); letter-spacing: 0; margin-top: .3em; }
.phead__intro { max-width: 620px; margin: 30px 0 0; font-size: clamp(17px, 1.5vw, 22px); color: color-mix(in srgb, var(--text) 80%, transparent); }

/* Work index */
.sec--work_index { padding-top: 0; }
.windex__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); position: sticky; top: 8px; z-index: 5; background: color-mix(in srgb, var(--bg) 82%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filter { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 14px; font-weight: 500; color: var(--muted); transition: background .35s, color .35s, border-color .35s; }
.filter sup { font-family: var(--f-serif); font-style: italic; font-size: .8em; margin-left: 2px; }
.filter:hover { color: var(--text); border-color: var(--text); }
.filter.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }
.viewswitch { display: flex; gap: 4px; padding: 4px; border-radius: 999px; border: 1px solid var(--line-strong); }
.viewswitch button { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); transition: background .3s, color .3s; }
.viewswitch button.is-active { background: var(--text); color: var(--bg); }
.viewswitch svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.windex__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(30px, 5vw, 80px) clamp(18px, 3vw, 44px); }
.witem { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 14px; align-content: start; }
.witem[hidden] { display: none; }
.witem__media { grid-column: 1 / -1; position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--pc); margin-bottom: 16px; }
.windex__grid .witem:nth-child(3n + 1) .witem__media { aspect-ratio: 4 / 5; }
.witem__media img, .witem__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out), opacity .5s; }
.witem__media video { opacity: 0; }
.witem:hover .witem__media video { opacity: 1; }
.witem:hover .witem__media img { transform: scale(1.05); }
.witem__idx { font-family: var(--f-serif); font-style: italic; color: var(--accent); font-size: 18px; grid-row: 2 / 4; }
.witem__title { font-size: clamp(20px, 1.9vw, 30px); font-weight: 600; letter-spacing: -.02em; }
.witem__cat { grid-column: 2; color: var(--muted); font-size: 14px; }
.witem__client { display: none; }
.witem__year { grid-row: 2; grid-column: 3; color: var(--muted); font-size: 14px; }
.witem__arrow { display: none; }
/* list view */
[data-view="list"] .windex__grid { grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line); }
[data-view="list"] .witem { grid-template-columns: 60px minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 1fr) 70px 40px; align-items: center; gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--line); position: relative; isolation: isolate; }
[data-view="list"] .witem::before { content: ""; position: absolute; inset: 0 calc(var(--gutter) * -1); z-index: -1; background: var(--pc); transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease-out); }
[data-view="list"] .witem:hover::before { transform: scaleY(1); transform-origin: top; }
[data-view="list"] .witem:hover { color: #fff; }
[data-view="list"] .witem:hover .witem__cat, [data-view="list"] .witem:hover .witem__year, [data-view="list"] .witem:hover .witem__client, [data-view="list"] .witem:hover .witem__idx { color: rgba(255,255,255,.85); }
[data-view="list"] .witem__media { display: none; }
[data-view="list"] .witem__idx { grid-row: auto; }
[data-view="list"] .witem__title { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: clamp(32px, 4.4vw, 72px); line-height: .95; letter-spacing: -.005em; }
[data-view="list"] .witem__cat, [data-view="list"] .witem__client, [data-view="list"] .witem__year { grid-row: auto; grid-column: auto; display: block; }
[data-view="list"] .witem__arrow { display: block; font-size: 28px; justify-self: end; transition: transform .5s var(--ease-out); }
[data-view="list"] .witem:hover .witem__arrow { transform: rotate(45deg); }

/* Case study */
.case-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 65; pointer-events: none; }
.case-progress span { display: block; height: 100%; background: var(--pc, var(--accent)); transform-origin: left; transform: scaleX(0); }
.case-hero { padding: calc(var(--header-h) + clamp(40px, 9vh, 110px)) 0 clamp(50px, 8vh, 90px); }
.case-back { display: flex; width: max-content; margin-bottom: 30px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); transition: color .3s, transform .4s var(--ease-out); }
.case-back:hover { color: var(--text); transform: translateX(-6px); }
.case-hero__title { margin: 0; font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: clamp(64px, 12vw, 210px); line-height: .84; letter-spacing: -.025em; max-width: 14ch; }
.case-hero__lockup { display: flex; align-items: center; gap: .4em; flex-wrap: wrap; margin: 26px 0 0; font-size: clamp(22px, 2.6vw, 40px); font-weight: 500; letter-spacing: -.02em; }
.case-hero__lockup i { font-family: var(--f-serif); color: var(--pc); font-size: 1.2em; }
.case-hero__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(30px, 6vw, 100px); margin-top: clamp(40px, 7vh, 80px); align-items: start; }
.case-hero__intro { margin: 0; font-size: clamp(18px, 1.6vw, 24px); line-height: 1.5; color: color-mix(in srgb, var(--text) 86%, transparent); }
.case-meta { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; }
.case-meta dt { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.case-meta dd { margin: 0; font-weight: 500; }
.case-meta a { color: var(--pc); }
.case-cover { margin: 0; position: relative; height: min(92vh, 980px); overflow: hidden; background: var(--pc); }
.case-cover__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.case-cover__fallback { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; padding: 4vw;
  background: radial-gradient(circle at 20% 20%, color-mix(in srgb, var(--pc) 45%, #fff), transparent 45%), radial-gradient(circle at 85% 85%, color-mix(in srgb, var(--pc) 55%, #000), transparent 55%), var(--pc); }
.case-cover__fallback b { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: clamp(60px, 13vw, 240px); line-height: .85; color: rgba(255,255,255,.16); text-align: center; }
.cblock { padding: clamp(60px, 11vh, 140px) 0; }
.cblock__caption, .cimg figcaption, .cmock figcaption, .ccompare figcaption { margin-top: 14px; color: var(--muted); font-size: 13.5px; }
.ctext { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(24px, 6vw, 100px); }
.ctext--center { grid-template-columns: 1fr; max-width: 820px; text-align: center; }
.ctext--wide { grid-template-columns: 1fr; }
.ctext__heading { margin: 0; font-size: clamp(30px, 3.6vw, 56px); line-height: 1.04; letter-spacing: -.03em; font-weight: 600; }
.ctext__statement { margin: 0 0 30px; font-size: clamp(34px, 5vw, 82px); line-height: 1.04; letter-spacing: -.035em; font-weight: 600; }
.ctext__body p { margin: 0 0 18px; font-size: clamp(17px, 1.35vw, 20px); color: color-mix(in srgb, var(--text) 84%, transparent); }
.cimg { margin: 0; }
.cimg--wide { padding: 0 var(--gutter); }
.cimg--contained { max-width: 1100px; margin: 0 auto; padding: 0 var(--gutter); }
.cimg__frame { display: block; width: 100%; overflow: hidden; border-radius: 0; position: relative; }
.cimg--wide .cimg__frame, .cimg--contained .cimg__frame, .cvideo__frame { border-radius: var(--radius); overflow: hidden; }
.cimg__frame img { width: 100%; height: auto; transform: scale(1.08); }
.cvideo__frame video, .cvideo__frame iframe { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; background: #000; }
.cimg--full .cvideo__frame { border-radius: 0; }
.cgal { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 22px); }
.cgal__item { display: block; border-radius: calc(var(--radius) * .7); overflow: hidden; }
.cgal__item img, .cgal__item video { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.cgal--grid .cgal__item { aspect-ratio: 1; }
.cgal__item:hover img { transform: scale(1.05); }
.cgal--masonry { display: block; columns: var(--cols); column-gap: clamp(10px, 1.6vw, 22px); }
.cgal--masonry .cgal__item { break-inside: avoid; margin-bottom: clamp(10px, 1.6vw, 22px); width: 100%; }
.cgal--masonry .cgal__item img { height: auto; }
.cgal-carousel { overflow: hidden; }
.cgal--carousel { display: flex; gap: 18px; overflow-x: auto; padding: 0 var(--gutter) 8px; scroll-snap-type: x proximity; scrollbar-width: none; cursor: grab; }
.cgal--carousel::-webkit-scrollbar { display: none; }
.cgal--carousel.is-grabbing { cursor: grabbing; scroll-snap-type: none; }
.cgal--carousel .cgal__item { flex: none; width: clamp(260px, 38vw, 600px); aspect-ratio: 4 / 3; scroll-snap-align: start; }
.cgal--carousel img { pointer-events: none; }
.csplit { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(30px, 6vw, 100px); align-items: center; }
.csplit--right .csplit__media { order: 2; }
.csplit__media { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.csplit__media img, .csplit__media video { width: 100%; height: 115%; object-fit: cover; margin-top: -7%; }
.csplit__copy p { font-size: clamp(17px, 1.35vw, 20px); color: color-mix(in srgb, var(--text) 84%, transparent); }
.compare { position: relative; border-radius: var(--radius); overflow: hidden; user-select: none; aspect-ratio: 16 / 10; background: var(--surface); }
.compare__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare__after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; pointer-events: none; }
.compare__handle i { position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: #fff; color: #111; display: grid; place-items: center; font-style: normal; font-size: 20px; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.compare__range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare__label { position: absolute; bottom: 16px; padding: 6px 12px; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; pointer-events: none; }
.compare__label--b { left: 16px; }
.compare__label--a { right: 16px; }
.cmock { margin: 0; }
.cmock__stage { margin: 0 var(--gutter); border-radius: var(--radius); background: var(--mbg); padding: clamp(40px, 7vw, 110px) clamp(20px, 5vw, 80px); display: flex; justify-content: center; align-items: center; gap: clamp(20px, 5vw, 70px); overflow: hidden; }
.device { position: relative; flex: none; }
.device__screen { overflow: hidden; background: #000; }
.device__screen img, .device__screen video { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.device--phone { width: clamp(180px, 22vw, 300px); aspect-ratio: 9 / 19.5; padding: 10px; border-radius: 44px; background: #111; box-shadow: inset 0 0 0 2px #333, 0 40px 80px rgba(0,0,0,.45); }
.device--phone .device__screen { height: 100%; border-radius: 34px; }
.device--phone::before { content: ""; position: absolute; top: 18px; left: 50%; width: 30%; height: 22px; margin-left: -15%; border-radius: 20px; background: #000; z-index: 2; }
.device--laptop { width: min(100%, 900px); }
.device--laptop .device__screen { aspect-ratio: 16 / 10; border: 12px solid #151515; border-bottom-width: 18px; border-radius: 18px 18px 0 0; box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.device__base { display: block; height: 16px; margin: 0 -7%; background: linear-gradient(#cfcfd4, #8d8d93); border-radius: 0 0 16px 16px; }
.device--browser { width: min(100%, 1000px); border-radius: 14px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.4); background: #1c1b20; }
.device__bar { display: flex; gap: 7px; padding: 12px 14px; background: #2a2930; }
.device__bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.device__bar i:nth-child(2) { background: #febc2e; }
.device__bar i:nth-child(3) { background: #28c840; }
.device--browser .device__screen { aspect-ratio: 16 / 9; }
.cquote blockquote { margin: 0; font-size: clamp(30px, 4.6vw, 76px); line-height: 1.06; letter-spacing: -.035em; font-weight: 600; max-width: 1200px; }
.cquote blockquote::before { content: "“"; display: block; font-family: var(--f-serif); color: var(--pc, var(--accent)); font-size: 1.6em; line-height: .6; margin-bottom: .1em; }
.cquote figcaption { margin-top: 26px; color: var(--muted); }
.cquote figcaption b { color: var(--text); }
.cpalette { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 0; border-radius: var(--radius); overflow: hidden; min-height: 300px; }
.swatch { position: relative; background: var(--c); display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 2px; padding: 20px; min-height: 300px; text-align: left; transition: flex-grow .6s var(--ease-out); }
.swatch__name { font-weight: 700; }
.swatch__hex { font-family: ui-monospace, Menlo, monospace; font-size: 13px; opacity: .8; }
.ctype { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(24px, 6vw, 90px); align-items: center; }
.ctype__sample { font-family: var(--f-display); font-weight: 800; font-size: clamp(160px, 26vw, 420px); line-height: .8; color: var(--pc, var(--accent)); }
.ctype__font { margin: 0 0 8px; font-size: clamp(32px, 4vw, 60px); letter-spacing: -.03em; font-weight: 600; }
.ctype__weights { color: var(--muted); margin: 0 0 18px; }
.ctype__alpha { font-size: clamp(18px, 1.8vw, 28px); line-height: 1.4; letter-spacing: .02em; margin: 0 0 18px; word-break: break-all; }
.ctype__note { color: var(--muted); }
.next-proj { padding: clamp(80px, 14vh, 160px) 0; border-top: 1px solid var(--line); }
.next-proj__link { position: relative; display: grid; justify-items: center; text-align: center; padding: 0 var(--gutter); }
.next-proj__title { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: clamp(56px, 11vw, 190px); line-height: .85; letter-spacing: -.02em; position: relative; z-index: 2; transition: color .5s; }
.next-proj__meta { margin-top: 16px; color: var(--muted); position: relative; z-index: 2; }
.next-proj__media { position: absolute; left: 50%; top: 50%; width: clamp(220px, 26vw, 420px); aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; transform: translate(-50%, -50%) scale(.6) rotate(-6deg); opacity: 0; z-index: 1; transition: transform .8s var(--ease-out), opacity .5s; }
.next-proj__media img, .next-proj__media .pcard__fallback { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.next-proj__link:hover .next-proj__media { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-3deg); }
.next-proj__link:hover .next-proj__title { color: transparent; -webkit-text-stroke: 1.5px var(--text); }

/* Motion reels */
.sec--reels { padding-top: 0; }
.reel-feature { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--surface); margin-bottom: clamp(40px, 7vh, 80px); text-align: left; color: #fff; }
.reel-feature__media video, .reel-feature__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel-feature__meta { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(20px, 3vw, 40px); display: grid; gap: 6px; background: linear-gradient(transparent, rgba(0,0,0,.7)); }
.reel-feature__meta b { font-size: clamp(24px, 3vw, 46px); letter-spacing: -.02em; }
.reel-feature__meta small { opacity: .8; }
.badge-pill { justify-self: start; padding: 5px 12px; border-radius: 999px; background: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.reel-feature:hover .reel__play { transform: scale(1.12); background: var(--accent); }
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: clamp(20px, 3vw, 40px) clamp(14px, 2vw, 26px); }
.vcardv { display: grid; gap: 6px; text-align: left; }
.vcardv__media { position: relative; aspect-ratio: 16 / 10; border-radius: calc(var(--radius) * .8); overflow: hidden; background: var(--surface); margin-bottom: 10px; }
.vcardv__media img, .vcardv__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .4s, transform 1s var(--ease-out); }
.vcardv__media video { opacity: 0; }
.vcardv:hover .vcardv__media video { opacity: 1; }
.vcardv:hover .vcardv__media img { transform: scale(1.05); }
.vcardv__dur { position: absolute; right: 10px; bottom: 10px; padding: 3px 9px; border-radius: 999px; background: rgba(0,0,0,.65); color: #fff; font-size: 12px; font-weight: 600; }
.vcardv__title { font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.vcardv__meta { color: var(--muted); font-size: 13.5px; }

/* Playground */
.sec--playground_grid { padding-top: 0; }
.masonry { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: clamp(12px, 1.8vw, 26px); align-items: start; }
.masonry__col { display: grid; gap: clamp(12px, 1.8vw, 26px); will-change: transform; }
.ptile { margin: 0; }
.ptile__btn { display: block; width: 100%; border-radius: calc(var(--radius) * .7); overflow: hidden; position: relative; }
.ptile__btn img, .ptile__btn video { width: 100%; height: auto; display: block; transition: transform 1.1s var(--ease-out); }
.ptile--tall .ptile__btn { aspect-ratio: 3 / 4.6; }
.ptile--wide .ptile__btn { aspect-ratio: 16 / 10; }
.ptile--tall img, .ptile--wide img, .ptile--tall video, .ptile--wide video { height: 100%; object-fit: cover; }
.ptile__btn:hover img, .ptile__btn:hover video { transform: scale(1.06); }
.ptile figcaption { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; margin-top: 10px; font-size: 13.5px; }
.ptile figcaption span { color: var(--muted); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: clamp(16px, 4vw, 60px); background: rgba(8,7,10,.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; transition: opacity .45s; }
.lightbox.is-open { opacity: 1; }
.lightbox__stage { width: 100%; height: 100%; display: grid; place-items: center; grid-template-rows: 1fr auto; gap: 14px; }
.lightbox__media { max-width: 100%; max-height: 100%; display: grid; place-items: center; min-height: 0; }
.lightbox__media--video { width: min(1400px, 100%); aspect-ratio: 16 / 9; height: auto; border-radius: 14px; overflow: hidden; background: #000; }
.lightbox__media video, .lightbox__media iframe { width: 100%; height: 100%; border: 0; display: block; }
.lightbox__media--image img { max-width: 100%; max-height: calc(100vh - 140px); width: auto; height: auto; border-radius: 10px; object-fit: contain; }
.lightbox__foot { display: flex; gap: 20px; justify-content: space-between; width: min(1400px, 100%); margin: 0; color: rgba(255,255,255,.75); font-size: 14px; }
.lightbox__close { position: absolute; top: 18px; right: 18px; width: 52px; height: 52px; border-radius: 50%; background: #fff; color: #000; font-size: 26px; display: grid; place-items: center; z-index: 2; }
.lightbox__nav { position: absolute; top: 50%; width: 56px; height: 56px; margin-top: -28px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 22px; display: grid; place-items: center; transition: background .3s; }
.lightbox__nav:hover { background: var(--accent); }
.lightbox__nav--prev { left: 18px; }
.lightbox__nav--next { right: 18px; }

@media (max-width: 960px) {
  .case-hero__grid, .ctext, .csplit, .ctype { grid-template-columns: 1fr; }
  .csplit--right .csplit__media { order: 0; }
  [data-view="list"] .witem { grid-template-columns: 40px minmax(0, 1fr) 30px; gap: 4px 12px; }
  [data-view="list"] .witem__client, [data-view="list"] .witem__year { display: none; }
  [data-view="list"] .witem__cat { grid-column: 2; grid-row: 2; }
  [data-view="list"] .witem__arrow { grid-column: 3; grid-row: 1; }
  .cpalette { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .swatch { min-height: 150px; }
}
@media (max-width: 760px) {
  .windex__grid { grid-template-columns: 1fr; }
  .windex__bar { position: static; }
  .filters { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
  .filter { flex: none; }
  .case-meta { grid-template-columns: 1fr 1fr; }
  .case-cover { height: 62vh; }
  .cgal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cgal--masonry { columns: 2; }
  .masonry { display: block; columns: 2; column-gap: 12px; }
  .masonry__col { display: contents; }
  .ptile { break-inside: avoid; margin-bottom: 12px; }
  .cmock__stage { flex-wrap: wrap; }
  .lightbox__nav { top: auto; bottom: 18px; margin: 0; }
}


/* ==========================================================================
   Phase 4 · journal, article, résumé, contact
   ========================================================================== */
.chip { display: inline-flex; align-items: center; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text); }
.phead__btn { margin-top: 30px; }

/* Journal */
.sec--posts_index { padding-top: 0; }
.journal__bar { margin-bottom: 44px; }
.search { display: flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 999px; padding: 4px 4px 4px 16px; }
.search input { border: 0; background: none; color: var(--text); font: inherit; width: 200px; outline: none; }
.search button { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--text); color: var(--bg); }
.search svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.journal__note { color: var(--muted); margin: -20px 0 30px; }
.journal__note a { color: var(--accent); }
.postgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(26px, 4vw, 54px) clamp(16px, 2.4vw, 32px); }
.postcard { display: grid; gap: 10px; align-content: start; }
.postcard__media { position: relative; aspect-ratio: 4 / 3; border-radius: calc(var(--radius) * .8); overflow: hidden; background: var(--surface); margin-bottom: 6px; }
.postcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.postcard:hover .postcard__media img { transform: scale(1.06); }
.postcard__fallback { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; font-size: 140px; color: rgba(255,255,255,.2);
  background: radial-gradient(circle at 20% 20%, var(--accent-3), transparent 45%), radial-gradient(circle at 80% 80%, var(--accent-2), transparent 55%), var(--accent); }
.postcard__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.postcard__title { font-size: clamp(19px, 1.6vw, 24px); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; transition: color .3s; }
.postcard:hover .postcard__title { color: var(--accent); }
.postcard__excerpt { color: color-mix(in srgb, var(--text) 75%, transparent); font-size: clamp(16px, 1.3vw, 19px); }
.postcard__more { font-size: 13px; font-weight: 600; color: var(--muted); transition: transform .5s var(--ease-out), color .3s; }
.postcard:hover .postcard__more { color: var(--text); transform: translateX(6px); }
.postcard--big { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); column-gap: clamp(24px, 4vw, 60px); align-items: center; margin-bottom: clamp(50px, 8vh, 90px); }
.postcard--big .postcard__media { grid-row: span 5; aspect-ratio: 16 / 11; margin: 0; }
.postcard--big .postcard__title { font-size: clamp(30px, 3.8vw, 58px); line-height: 1.02; letter-spacing: -.035em; }
.pager { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 70px; }
.pager__info { font-family: var(--f-serif); font-style: italic; font-size: 20px; }

/* Article */
.article__head { padding-top: calc(var(--header-h) + clamp(40px, 9vh, 110px)); max-width: 1100px; }
.article__head .eyebrow { gap: 12px; }
.article__title { margin: 0; font-size: clamp(40px, 6.6vw, 104px); line-height: .98; letter-spacing: -.045em; font-weight: 600; }
.article__lede { margin: 28px 0 0; max-width: 760px; font-size: clamp(18px, 1.7vw, 24px); color: color-mix(in srgb, var(--text) 80%, transparent); }
.article__cover { margin: clamp(40px, 7vh, 80px) auto 0; }
.article__cover > span { display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 8; }
.article__cover img { width: 100%; height: 118%; object-fit: cover; margin-top: -9%; }
.article__layout { display: grid; grid-template-columns: 240px minmax(0, 720px); justify-content: center; gap: clamp(30px, 6vw, 100px); padding-top: clamp(50px, 9vh, 100px); padding-bottom: 40px; }
.article__aside { position: sticky; top: calc(var(--header-h) + 20px); align-self: start; display: grid; gap: 34px; }
.toc ol { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 1px solid var(--line); display: grid; gap: 9px; }
.toc a { display: block; font-size: 13.5px; color: var(--muted); line-height: 1.35; transition: color .3s, transform .4s var(--ease-out); }
.toc a:hover { color: var(--text); }
.toc a.is-active { color: var(--accent); transform: translateX(4px); }
.toc__l3 { padding-left: 12px; }
.share__row { display: flex; gap: 8px; }
.share .icon-btn { font-size: 15px; font-weight: 700; }
.prose { font-size: clamp(17px, 1.25vw, 19.5px); line-height: 1.75; color: color-mix(in srgb, var(--text) 90%, transparent); min-width: 0; }
.prose > * { margin: 0 0 1.2em; }
.prose h2 { font-size: clamp(28px, 2.6vw, 40px); line-height: 1.1; letter-spacing: -.03em; font-weight: 600; margin: 1.9em 0 .6em; scroll-margin-top: 110px; color: var(--text); }
.prose h3 { font-size: clamp(21px, 1.8vw, 27px); line-height: 1.2; letter-spacing: -.02em; font-weight: 600; margin: 1.6em 0 .5em; scroll-margin-top: 110px; color: var(--text); }
.prose a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose blockquote { margin: 1.8em 0; padding: 0 0 0 26px; border-left: 3px solid var(--accent); font-family: var(--f-serif); font-style: italic; font-size: 1.45em; line-height: 1.35; color: var(--text); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--accent); }
.prose figure { margin: 2em 0; }
.prose img { width: 100%; height: auto; border-radius: calc(var(--radius) * .7); cursor: zoom-in; }
.prose figcaption { margin-top: 10px; font-size: 13.5px; color: var(--muted); text-align: center; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: calc(var(--radius) * .7); }
.prose hr { border: 0; height: 1px; background: var(--line-strong); margin: 3em 0; }
.prose code { font-family: ui-monospace, Menlo, monospace; font-size: .88em; padding: 2px 6px; border-radius: 6px; background: var(--surface); }
.prose pre { padding: 18px 20px; border-radius: 14px; background: var(--surface); overflow-x: auto; }
.prose mark { background: color-mix(in srgb, var(--accent-3) 45%, transparent); color: inherit; padding: 0 3px; border-radius: 3px; }
.article__tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding-bottom: 40px; }
.article__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-top: 30px; padding-bottom: 30px; border-top: 1px solid var(--line); }
.article__navlink { display: grid; gap: 6px; max-width: 460px; }
.article__navlink small { color: var(--muted); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.article__navlink b { font-size: clamp(18px, 1.6vw, 24px); letter-spacing: -.02em; font-weight: 600; transition: color .3s; }
.article__navlink:hover b { color: var(--accent); }
.article__navlink--next { justify-self: end; text-align: right; grid-column: 2; }

/* Timeline */
.tl { list-style: none; margin: 0; padding: 0 0 0 46px; position: relative; display: grid; gap: clamp(30px, 5vh, 54px); max-width: 1000px; }
.tl__line { position: absolute; left: 10px; top: 6px; bottom: 6px; width: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.tl__line span { display: block; width: 100%; height: 100%; background: var(--accent); transform-origin: top; transform: scaleY(0); }
.tl__item { position: relative; display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 20px; }
.tl__dot { position: absolute; left: -42px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line-strong); transition: background .4s, border-color .4s, transform .5s var(--ease-out); }
.tl__item.is-on .tl__dot { background: var(--accent); border-color: var(--accent); transform: scale(1.25); }
.tl__date { font-family: var(--f-serif); font-style: italic; font-size: 18px; color: var(--muted); padding-top: 2px; }
.tl__title { margin: 0; font-size: clamp(22px, 2.2vw, 32px); letter-spacing: -.025em; font-weight: 600; line-height: 1.15; }
.tl__org { margin: 6px 0 0; color: var(--muted); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.tl ul, .notebook ul { margin: 14px 0 0; padding-left: 1.1em; color: color-mix(in srgb, var(--text) 82%, transparent); }
.tl li::marker, .notebook li::marker { color: var(--accent); }

/* Notebook (Sabrina-style résumé page) */
.notebook { position: relative; padding: clamp(40px, 6vw, 80px) clamp(22px, 6vw, 90px) clamp(40px, 6vw, 70px) clamp(50px, 8vw, 120px); border-radius: 10px 24px 24px 10px; color: #1d1a20;
  background: repeating-linear-gradient(#FBF8F2 0 37px, #E6DFD3 37px 38px), #FBF8F2; box-shadow: 0 40px 80px rgba(0,0,0,.35), inset 14px 0 0 rgba(0,0,0,.04); }
.notebook::before { content: ""; position: absolute; top: 0; bottom: 0; left: clamp(32px, 5vw, 80px); width: 2px; background: color-mix(in srgb, var(--accent) 60%, transparent); }
.notebook__clip { position: absolute; top: -18px; right: 70px; width: 30px; height: 84px; border: 4px solid #C9A227; border-radius: 16px; transform: rotate(8deg); }
.notebook__tab { position: absolute; top: 40px; right: -14px; padding: 8px 16px; background: var(--accent); color: #fff; font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; border-radius: 6px 10px 10px 6px; box-shadow: 0 8px 20px rgba(0,0,0,.2); }
.notebook__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 38px; }
.nb-item { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 20px; }
.nb-item__date { font-family: var(--f-serif); font-style: italic; color: #6E6874; font-size: 18px; line-height: 38px; }
.nb-item__title { margin: 0; font-size: clamp(21px, 2vw, 28px); line-height: 38px; letter-spacing: -.02em; font-weight: 700; }
.nb-item__org { margin: 0; color: #6E6874; line-height: 38px; }
.nb-item__org a { color: var(--accent); }
.notebook ul { color: #3a3540; line-height: 38px; margin: 0; }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 110px); align-items: start; }
.sec--contact_form { padding-top: calc(var(--header-h) + clamp(40px, 8vh, 100px)); }
.contact__title { margin: 0; font-size: clamp(44px, 6.6vw, 110px); line-height: .96; letter-spacing: -.045em; font-weight: 600; }
.contact__details { margin: 40px 0 0; display: grid; gap: 20px; }
.contact__details dt { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.contact__details dd { margin: 0; font-size: clamp(17px, 1.4vw, 21px); }
.contact__details a:hover { color: var(--accent); }
.contact__socials { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.cform { position: relative; display: grid; gap: 22px; padding: clamp(24px, 3.4vw, 46px); border-radius: var(--radius); background: var(--glass); border: 1px solid var(--line); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.cform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.cfield { display: grid; gap: 6px; }
.cfield > span { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.cfield input, .cfield textarea { width: 100%; padding: 10px 0; border: 0; border-bottom: 1px solid var(--line-strong); background: none; color: var(--text); font: inherit; font-size: 18px; outline: none; border-radius: 0; transition: border-color .3s; resize: vertical; }
.cfield input:focus, .cfield textarea:focus { border-color: var(--accent); }
.cfield em { font-style: normal; font-size: 12.5px; color: var(--accent); min-height: 0; }
.cfield.has-error input, .cfield.has-error textarea { border-color: var(--accent); }
.chips { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { width: 100%; margin-bottom: 10px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.chip-opt input { position: absolute; opacity: 0; pointer-events: none; }
.chip-opt span { display: inline-block; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 14px; cursor: pointer; transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease-out); }
.chip-opt span:hover { border-color: var(--text); }
.chip-opt input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; transform: scale(1.04); }
.chip-opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.cform__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 22px; flex-wrap: wrap; }
.captcha-row { display: flex; align-items: center; gap: 10px; }
.captcha-row img { height: 46px; width: auto; border-radius: 10px; }
.captcha-row input { width: 110px; text-transform: uppercase; letter-spacing: .25em; font-weight: 700; }
.cform__send { width: 150px; }
.cform__send:disabled { opacity: .6; }
.cform__alert { margin: 0; padding: 12px 16px; border-radius: 12px; font-size: 14.5px; }
.cform__alert--error { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--text); }
.cform__alert--success { background: color-mix(in srgb, #3BD16F 16%, transparent); }
.cform__done { display: grid; justify-items: center; text-align: center; gap: 14px; padding: clamp(40px, 8vh, 80px) 10px; min-height: 420px; align-content: center; }
.cform__done h3 { margin: 6px 0 0; font-size: clamp(28px, 3.2vw, 44px); line-height: 1.05; letter-spacing: -.035em; font-weight: 600; }
.cform__done h3 em { font-size: 1.05em; }
.cform__done p { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.5; max-width: 440px; margin: 0; color: color-mix(in srgb, var(--text) 82%, transparent); }
.cform__done small { color: var(--muted); font-size: 13.5px; }
.cform__check { position: relative; width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; }
.cform__check svg { width: 42px; height: 42px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; }
.cform__done.is-shown .cform__check svg { animation: anp-tick .6s .25s cubic-bezier(.65, 0, .35, 1) forwards; }
.cform__check::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; }
.cform__done.is-shown .cform__check::after { animation: anp-ping 1.4s .2s ease-out; }
@keyframes anp-tick { to { stroke-dashoffset: 0; } }
@keyframes anp-ping { 0% { transform: scale(.8); opacity: .8; } 100% { transform: scale(1.5); opacity: 0; } }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

@media (max-width: 960px) {
  .postgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .postcard--big { grid-template-columns: 1fr; }
  .postcard--big .postcard__media { grid-row: auto; }
  .article__layout, .contact { grid-template-columns: 1fr; }
  .article__aside { position: static; order: 2; }
  .toc { display: none; }
  .tl__item, .nb-item { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 640px) {
  .postgrid { grid-template-columns: 1fr; }
  .cform__row { grid-template-columns: 1fr; }
  .search input { width: 140px; }
  .notebook__tab { right: 10px; top: -14px; }
  .article__nav { grid-template-columns: 1fr; }
  .article__navlink--next { grid-column: auto; }
}
@media print {
  .site-header, .site-footer, .orb-canvas, .cursor, .preloader, .curtain, .has-grain::after { display: none !important; }
  body { background: #fff; color: #000; }
  .notebook { box-shadow: none; }
}

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Protected phone number + reveal popup */
.phone-mask { display: inline-flex; align-items: center; gap: 10px; font: inherit; color: inherit; letter-spacing: .02em; }
.phone-mask small { padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); transition: background .3s, color .3s, border-color .3s; }
.phone-mask:hover small { background: var(--accent); border-color: var(--accent); color: #fff; }
.phone-mask.is-open { color: var(--accent); }
.pmodal { position: fixed; inset: 0; z-index: 96; display: grid; place-items: center; padding: 16px; background: rgba(8,7,10,.72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; transition: opacity .35s; }
.pmodal.is-open { opacity: 1; }
.pmodal__card { position: relative; width: min(420px, 100%); padding: 34px 30px 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: 0 40px 100px rgba(0,0,0,.5); text-align: center; transform: translateY(14px) scale(.97); transition: transform .5s var(--ease-out); }
.pmodal.is-open .pmodal__card { transform: none; }
.pmodal__card .eyebrow { justify-content: center; margin-bottom: 12px; }
.pmodal__x { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; font-size: 22px; color: var(--muted); }
.pmodal__x:hover { color: var(--text); background: color-mix(in srgb, var(--text) 8%, transparent); }
.pmodal__title { margin: 0 0 6px; font-size: 26px; letter-spacing: -.02em; font-weight: 600; }
.pmodal__text { margin: 0 0 20px; color: var(--muted); font-size: 14.5px; }
.pmodal__code { position: relative; margin: 0 auto 20px; width: 150px; height: 92px; border-radius: 18px; display: grid; place-items: center; overflow: hidden; user-select: none;
  background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--text) 6%, transparent) 0 6px, transparent 6px 12px), color-mix(in srgb, var(--accent) 12%, var(--bg)); border: 1px dashed var(--line-strong); }
.pmodal__code::after { content: ""; position: absolute; left: -10%; right: -10%; top: 52%; height: 2px; background: color-mix(in srgb, var(--accent) 70%, transparent); transform: rotate(-8deg); }
.pmodal__code span { font-family: var(--f-display); font-weight: 800; font-size: 64px; line-height: 1; letter-spacing: .08em; transform: rotate(var(--r1, -4deg)) skewX(-6deg); color: var(--text); }
.pmodal__form { display: flex; gap: 10px; justify-content: center; }
.pmodal__form input { width: 110px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--text); font: 700 22px/1 var(--f-body); text-align: center; letter-spacing: .2em; outline: none; }
.pmodal__form input:focus { border-color: var(--accent); }
.pmodal__form .btn { --h: 50px; }
.pmodal__err { min-height: 20px; margin: 12px 0 4px; color: var(--accent); font-size: 13.5px; }
.pmodal__new { font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.pmodal__new:hover { color: var(--text); }
.pmodal__phone { display: block; margin: 6px 0 22px; font-family: var(--f-display); font-weight: 800; font-size: clamp(34px, 8vw, 46px); letter-spacing: .02em; line-height: 1; }
.pmodal__actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }


/* ==========================================================================
   App case studies — screen flow, phone cards, app showcase
   ========================================================================== */
.cblock--screens { padding-top: clamp(40px, 7vh, 80px); padding-bottom: clamp(40px, 7vh, 80px); }
.appflow__box { background: var(--abg); color: var(--afg); border-radius: calc(var(--radius) * 1.3); padding: clamp(26px, 5vw, 70px); overflow: hidden; position: relative; isolation: isolate; }
.appflow__box::before { content: ""; position: absolute; z-index: -1; width: 60%; aspect-ratio: 1; right: -15%; top: -25%; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--pc, var(--accent)) 35%, transparent), transparent 65%); filter: blur(20px); }
.appflow__head { max-width: 760px; margin-bottom: clamp(30px, 5vw, 56px); }
.appflow__head .eyebrow { color: color-mix(in srgb, var(--afg) 60%, transparent); }
.appflow__title { margin: 0; font-size: clamp(30px, 3.6vw, 56px); line-height: 1.04; letter-spacing: -.035em; font-weight: 600; }
.appflow__intro { margin: 16px 0 0; font-size: clamp(16px, 1.3vw, 19px); color: color-mix(in srgb, var(--afg) 75%, transparent); }
.appflow__stage { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(30px, 6vw, 100px); align-items: center; }
.appflow--desktop .appflow__stage, .appflow--tablet .appflow__stage { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.adevice { position: relative; margin: 0 auto; }
.adevice--phone { width: clamp(220px, 24vw, 330px); aspect-ratio: 9 / 19.5; padding: 11px; border-radius: 48px; background: #0d0c10; box-shadow: inset 0 0 0 2px #2c2a31, 0 50px 90px rgba(0,0,0,.45); }
.adevice--phone::before { content: ""; position: absolute; z-index: 3; top: 20px; left: 50%; width: 30%; height: 24px; margin-left: -15%; border-radius: 20px; background: #000; }
.adevice--tablet { width: 100%; max-width: 640px; aspect-ratio: 4 / 3; padding: 14px; border-radius: 30px; background: #0d0c10; box-shadow: inset 0 0 0 2px #2c2a31, 0 50px 90px rgba(0,0,0,.45); }
.adevice--desktop { width: 100%; max-width: 820px; border-radius: 14px; overflow: hidden; background: #1c1b20; box-shadow: 0 50px 90px rgba(0,0,0,.45); }
.adevice__bar { display: flex; gap: 7px; padding: 12px 14px; background: #2a2930; }
.adevice__bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.adevice__bar i:nth-child(2) { background: #febc2e; }
.adevice__bar i:nth-child(3) { background: #28c840; }
.adevice__screen { position: relative; width: 100%; height: 100%; overflow: hidden; background: #000; }
.adevice--phone .adevice__screen { border-radius: 38px; }
.adevice--tablet .adevice__screen { border-radius: 18px; }
.adevice--desktop .adevice__screen { aspect-ratio: 16 / 10; }
.appflow__shot { position: absolute; inset: 0; display: block; width: 100%; height: 100%; opacity: 0; visibility: hidden; cursor: zoom-in; }
.appflow__shot.is-active { opacity: 1; visibility: visible; z-index: 2; }
.appflow__shot.is-leaving { opacity: 1; visibility: visible; z-index: 1; pointer-events: none; }
.appflow__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.appflow__count { margin: 0 0 18px; display: flex; align-items: baseline; gap: 8px; font-family: var(--f-display); font-weight: 800; }
.appflow__count b { font-size: clamp(56px, 6vw, 92px); line-height: .85; color: var(--pc, var(--accent)); }
.appflow__count span { font-size: 20px; opacity: .6; }
.appflow__panels { display: grid; min-height: 190px; }
.appflow__panel { grid-area: 1 / 1; visibility: hidden; opacity: 0; }
.appflow__panel.is-active { visibility: visible; opacity: 1; }
.appflow__label { display: inline-block; margin-bottom: 12px; padding: 5px 12px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--afg) 30%, transparent); font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.appflow__panel h3 { margin: 0 0 12px; font-size: clamp(24px, 2.4vw, 36px); line-height: 1.1; letter-spacing: -.03em; font-weight: 600; }
.appflow__panel p { margin: 0; max-width: 480px; font-size: clamp(16px, 1.25vw, 18.5px); line-height: 1.6; color: color-mix(in srgb, var(--afg) 78%, transparent); }
.appflow__nav { display: flex; align-items: center; gap: 10px; margin-top: 30px; }
.appflow__nav .icon-btn { color: var(--afg); border-color: color-mix(in srgb, var(--afg) 35%, transparent); }
.appflow__nav .icon-btn:hover { background: var(--pc, var(--accent)); border-color: var(--pc, var(--accent)); color: #fff; }
.appflow__bar { flex: 1; max-width: 260px; height: 3px; margin-left: 10px; border-radius: 3px; overflow: hidden; background: color-mix(in srgb, var(--afg) 18%, transparent); }
.appflow__bar span { display: block; height: 100%; background: var(--pc, var(--accent)); transform-origin: left; transition: transform .6s var(--ease-out); }
.appflow__thumbs { display: flex; gap: 12px; margin-top: clamp(30px, 5vw, 50px); overflow-x: auto; padding: 6px 2px 4px; scrollbar-width: none; cursor: grab; }
.appflow__thumbs::-webkit-scrollbar { display: none; }
.appflow__thumb { position: relative; flex: none; width: 74px; aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden; opacity: .45; outline: 2px solid transparent; outline-offset: 2px; transition: opacity .3s, outline-color .3s, transform .4s var(--ease-out); }
.appflow--desktop .appflow__thumb, .appflow--tablet .appflow__thumb { width: 120px; aspect-ratio: 16 / 10; }
.appflow__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; pointer-events: none; }
.appflow__thumb span { position: absolute; left: 6px; bottom: 5px; font-size: 10px; font-weight: 700; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.appflow__thumb:hover { opacity: .8; transform: translateY(-3px); }
.appflow__thumb.is-active { opacity: 1; outline-color: var(--pc, var(--accent)); }

/* App case-study header: three phones on the project colour */
.case-cover--app { display: grid; place-items: center; height: min(86vh, 820px);
  background: radial-gradient(circle at 25% 20%, color-mix(in srgb, var(--pc) 45%, #fff), transparent 45%), radial-gradient(circle at 80% 85%, color-mix(in srgb, var(--pc) 55%, #000), transparent 55%), var(--pc); }
.case-cover__phones { position: relative; width: 100%; height: 100%; }
.case-cover--app .app__phone { width: clamp(170px, 19vw, 280px); }
.case-cover--app .app__phone--0 { transform: translate(-50%, -50%) translateX(-78%) rotate(-9deg) scale(.88); }
.case-cover--app .app__phone--2 { transform: translate(-50%, -50%) translateX(78%) rotate(9deg) scale(.88); }

/* Phone-style project cards */
.pcard__media.is-phone, .witem__media.is-phone { display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--pc) 45%, #fff), transparent 50%), radial-gradient(circle at 80% 90%, color-mix(in srgb, var(--pc) 60%, #000), transparent 55%), var(--pc); }
.card-phone { position: relative; display: block; width: 46%; max-width: 230px; aspect-ratio: 9 / 19.5; padding: 6px; border-radius: 30px; background: #0d0c10; box-shadow: 0 30px 60px rgba(0,0,0,.4); transform: rotate(-6deg) translateY(10%); transition: transform .9s var(--ease-out); overflow: hidden; }
.card-phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 24px; position: static !important; }
.pcard:hover .card-phone, .witem:hover .card-phone { transform: rotate(0deg) translateY(4%) scale(1.04); }
.pcard:hover .pcard__media.is-phone img, .witem:hover .is-phone img { transform: none; }

/* App showcase (homepage) */
.apps { display: grid; gap: clamp(26px, 4vw, 50px); }
.app { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(20px, 4vw, 60px); align-items: center; padding: clamp(26px, 4vw, 54px); border-radius: calc(var(--radius) * 1.2); overflow: hidden; isolation: isolate; color: #fff;
  background: radial-gradient(circle at 85% 15%, color-mix(in srgb, var(--pc) 55%, #fff), transparent 45%), linear-gradient(135deg, color-mix(in srgb, var(--pc) 85%, #000), var(--pc)); min-height: 440px; }
.app--flip .app__copy { order: 2; }
.app__idx { display: block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .8; margin-bottom: 14px; }
.app__title { display: block; font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: clamp(54px, 7vw, 120px); line-height: .85; letter-spacing: -.01em; }
.app__sum { display: block; margin: 18px 0 18px; font-size: clamp(16px, 1.3vw, 20px); max-width: 420px; opacity: .92; }
.app__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 26px; }
.app__tags .chip { color: #fff; border-color: rgba(255,255,255,.45); }
.app__btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 999px; background: #fff; color: #141216; font-weight: 700; font-size: 14.5px; transition: transform .5s var(--ease-out); }
.app__btn i { font-style: normal; transition: transform .5s var(--ease-out); }
.app:hover .app__btn { transform: translateX(4px); }
.app:hover .app__btn i { transform: rotate(45deg); }
.app__phones { position: relative; height: clamp(320px, 34vw, 470px); }
.app__phone { position: absolute; top: 50%; left: 50%; width: clamp(130px, 13vw, 190px); aspect-ratio: 9 / 19.5; padding: 6px; border-radius: 28px; background: #0d0c10; box-shadow: 0 30px 60px rgba(0,0,0,.35); transition: transform .9s var(--ease-out); }
.app__phone--0 { transform: translate(-50%, -50%) translateX(-62%) rotate(-10deg) scale(.88); z-index: 1; }
.app__phone--1 { transform: translate(-50%, -50%); z-index: 3; }
.app__phone--2 { transform: translate(-50%, -50%) translateX(62%) rotate(10deg) scale(.88); z-index: 2; }
.app:hover .app__phone--0 { transform: translate(-50%, -50%) translateX(-82%) rotate(-14deg) scale(.9); }
.app:hover .app__phone--1 { transform: translate(-50%, -54%) scale(1.04); }
.app:hover .app__phone--2 { transform: translate(-50%, -50%) translateX(82%) rotate(14deg) scale(.9); }
.app__copy { display: block; color: inherit; }
a.app__phone { cursor: pointer; }
a.app__phone .app__screen { transition: box-shadow .4s, transform .5s var(--ease-out); }
a.app__phone:hover .app__screen, a.app__phone:focus-visible .app__screen { box-shadow: 0 0 0 3px #fff; }
.app__screen { display: block; width: 100%; height: 100%; border-radius: 22px; overflow: hidden; background: #fff; }
.app__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.app__ph { display: grid; align-content: start; gap: 8px; width: 100%; height: 100%; padding: 26px 12px; background: linear-gradient(180deg, #fff, #f1eef6); }
.app__ph b { font-family: var(--f-display); text-transform: uppercase; font-size: 20px; color: #141216; margin-bottom: 8px; }
.app__ph i { display: block; height: 34px; border-radius: 10px; background: color-mix(in srgb, var(--pc) 22%, #fff); }
.app__ph i:nth-of-type(2) { height: 90px; }
.card-phone .app__ph { border-radius: 24px; }

@media (max-width: 900px) {
  .appflow__stage, .appflow--desktop .appflow__stage, .appflow--tablet .appflow__stage { grid-template-columns: 1fr; }
  .appflow__info { text-align: center; }
  .appflow__panel p { margin: 0 auto; }
  .appflow__nav { justify-content: center; }
  .app { grid-template-columns: 1fr; min-height: 0; }
  .app--flip .app__copy { order: 0; }
  .app__phones { height: 340px; }
}

/* --- Responsive ----------------------------------------------------------- */
@media (max-width: 1080px) {
  .dock { display: none; }
  .menu-toggle { display: block; }
  .talk-btn { display: none; }
}
@media (max-width: 760px) {
  :root { --header-h: 68px; }
  .brand__name { display: none; }
  .hero { align-items: flex-end; }
  .hero__title { font-size: clamp(64px, 23vw, 140px); }
  .hero__line--outline { -webkit-text-stroke-width: 1.2px; padding-left: 0; }
  .hero__foot { grid-template-columns: 1fr; }
  .hero__actions { align-items: flex-start; }
  .float-tag { font-size: 10px; padding: 7px 12px; }
  .float-tag--1 { top: 18%; right: 46%; }
  .float-tag--2 { top: 26%; right: 4%; }
  .float-tag--3, .float-tag--4 { display: none; }
  .scroll-hint { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .has-grain::after { display: none; }
}

/* ===== No-crop rules (client feedback: show every image in its true proportions) ===== */
/* Project cards: "Show the whole image" sits the cover on the project colour instead of cropping it. */
.pcard__media.is-fit > img:not(.pcard__hover), .witem__media.is-fit > img { object-fit: contain; padding: clamp(10px, 1.6vw, 22px); }
.pcard__media.is-fit .pcard__hover { object-fit: contain; background: var(--pc); }
/* Case-study cover: whole image on the project colour, capped to the screen height. */
.case-cover--fit { height: auto; min-height: 0; display: grid; place-items: center; padding: clamp(18px, 4vw, 60px) var(--gutter); }
.case-cover--fit .case-cover__media { position: static; width: auto; height: auto; max-width: 100%; max-height: 86vh; object-fit: contain; border-radius: calc(var(--radius) * .6); }
/* Image block: no zoom-crop. */
.cimg__frame img { transform: none; }
/* Galleries: natural proportions. */
.cgal--grid { align-items: start; }
.cgal--grid .cgal__item { aspect-ratio: auto; }
.cgal__item img, .cgal__item video { height: auto; object-fit: contain; display: block; }
.cgal__item:hover img { transform: none; }
.cgal--carousel .cgal__item { width: auto; aspect-ratio: auto; height: clamp(260px, 52vh, 560px); }
.cgal--carousel .cgal__item img, .cgal--carousel .cgal__item video { width: auto; height: 100%; max-width: none; }
/* Image + text block. */
.csplit__media { aspect-ratio: auto; }
.csplit__media img, .csplit__media video { height: auto; margin-top: 0; object-fit: contain; display: block; }
/* Creatives band on the homepage: fixed height, natural width. */
.band__item { width: auto; aspect-ratio: auto; height: clamp(260px, 34vw, 500px); }
.band__item img, .band__item video { width: auto; height: 100%; object-fit: contain; }
.band__item iframe { width: calc(clamp(260px, 34vw, 500px) * 16 / 9); }
/* Playground tiles: never forced into tall/wide frames. */
.ptile--tall .ptile__btn, .ptile--wide .ptile__btn { aspect-ratio: auto; }
.ptile--tall img, .ptile--wide img, .ptile--tall video, .ptile--wide video { height: auto; object-fit: contain; }
.ptile__btn:hover img, .ptile__btn:hover video { transform: none; }
/* App screens: per-screen display. */
.appflow__shot--fit img { object-fit: contain; object-position: center; background: #000; }
.appflow__shot--fill img { object-fit: cover; object-position: top; }
.appflow__shot--scroll { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; cursor: ns-resize; }
.appflow__shot--scroll::-webkit-scrollbar { display: none; }
.appflow__shot--scroll img { height: auto; object-fit: initial; }
.appflow__thumb img { object-fit: contain; background: #000; }
/* Project outputs (Project images & files). */
.cfiles { columns: 2; column-gap: clamp(12px, 1.8vw, 24px); margin-top: 18px; }
.cfiles--one { columns: 1; max-width: 1100px; margin-inline: auto; }
.cfiles__item { display: block; width: 100%; margin: 0 0 clamp(12px, 1.8vw, 24px); break-inside: avoid; border-radius: calc(var(--radius) * .7); overflow: hidden; background: var(--surface); cursor: zoom-in; }
.cfiles__item img, .cfiles__item video { display: block; width: 100%; height: auto; }
.cfiles__item iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
@media (max-width: 760px) { .cfiles { columns: 1; } }
