/* EVO ART (PVT) LTD — site styles. No inline styles anywhere, so the CSP can stay strict. */

/* ---------- Fonts (self-hosted) ---------- */
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 200; font-display: swap; src: url('../fonts/jost-latin-200-normal.woff2') format('woff2'); }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 300; font-display: swap; src: url('../fonts/jost-latin-300-normal.woff2') format('woff2'); }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/jost-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/jost-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2'); }

/* ---------- Tokens ---------- */
:root {
  --bg: #0A0A0A;
  --fg: #F5F5F3;
  --muted: #B5B5B0;
  --soft: #C9C9C4;
  --dim: #8C8C88;
  --dim2: #9A9A96;
  --faint: #6E6E6A;
  --ink2: #3C3C39;
  --line: rgba(245,245,243,0.14);
  --line-soft: rgba(245,245,243,0.10);
  --line-dark: rgba(10,10,10,0.16);
  --gx: clamp(20px, 5vw, 48px);
  --sy: clamp(96px, 14vw, 170px);
  --sans: 'Jost', Helvetica, Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --ease-out: cubic-bezier(.16,1,.3,1);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  color: var(--fg); font-family: var(--sans); font-weight: 300;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
::selection { background: var(--fg); color: var(--bg); }
a { color: var(--fg); text-decoration: none; }
a:hover { color: var(--soft); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 1px solid var(--fg); outline-offset: 4px; }
img { max-width: 100%; }
h1, h2, h3, p { margin: 0; }
.site { background: var(--bg); color: var(--fg); overflow-x: clip; min-height: 100vh; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--fg); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.skip:focus { left: 12px; color: var(--bg); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- Type helpers ---------- */
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; font-weight: 400; }
.mono-n { font-family: var(--mono); font-size: 11px; color: var(--faint); }
.c-dim { color: var(--dim); }
.c-dim2 { color: var(--dim2); }
.c-faint { color: var(--faint); }
.c-muted { color: var(--muted); }
.c-soft { color: var(--soft); }
.lead { font-size: clamp(16px, 1.4vw, 19px); line-height: 1.7; color: var(--muted); text-wrap: pretty; }
.body { font-size: clamp(16px, 1.4vw, 18px); line-height: 1.75; color: var(--muted); text-wrap: pretty; }
.display { font-weight: 200; line-height: .9; letter-spacing: -.05em; }

/* Split-line heading reveal */
.lines > span { display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
.lines > span > span { display: block; }
.js-anim [data-line] { transform: translateY(110%); }
.js-anim [data-reveal] { opacity: 0; }

/* ---------- Header / nav ---------- */
.hdr {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 22px var(--gx); padding-top: max(22px, env(safe-area-inset-top));
  mix-blend-mode: difference;
}
.hdr { transition: transform .6s var(--ease-out); }
html.hdr-hide:not(.nav-open) .hdr:not(:focus-within) { transform: translateY(-120%); }
.brand { position: relative; z-index: 2; font-size: 18px; letter-spacing: .34em; font-weight: 400; color: var(--fg); }
.burger {
  position: relative; z-index: 2; display: none; align-items: center;
  background: transparent; border: 1px solid rgba(245,245,243,0.4); color: var(--fg);
  border-radius: 999px; padding: 11px 18px; min-height: 44px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; cursor: pointer;
}
.nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 38px); font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; }
.nav a { color: var(--fg); }
.nav a[aria-current="page"] { border-bottom: 1px solid var(--fg); padding-bottom: 4px; }
.nav .pill { color: var(--bg); background: var(--fg); padding: 11px 20px; border-radius: 999px; border-bottom: 0; }
.nav .pill[aria-current="page"] { color: var(--fg); background: transparent; border: 1px solid rgba(245,245,243,0.5); padding: 10px 20px; }
.nav-extra { display: none; }

@media (max-width: 819px) {
  .js .burger { display: flex; }
  .nav {
    position: fixed; inset: 0; z-index: 1; background: var(--bg);
    flex-direction: column; justify-content: center; align-items: flex-start; gap: 14px;
    padding: 110px 28px max(48px, env(safe-area-inset-bottom)); max-height: 100dvh; overflow-y: auto;
    clip-path: inset(0 0 100% 0); visibility: hidden;
    transition: clip-path .8s cubic-bezier(.76,0,.24,1), visibility 0s linear .8s;
  }
  html:not(.js) .nav { display: none; }
  .nav a, .nav .pill, .nav .pill[aria-current="page"] {
    font-family: var(--sans); font-size: clamp(34px, 10vw, 48px); font-weight: 200; letter-spacing: -.025em;
    text-transform: none; background: transparent; color: var(--fg); border: 0; border-radius: 0; padding: 0; line-height: 1.1;
    opacity: 0; transform: translateY(30px);
    transition: opacity .6s var(--ease-out), transform .8s var(--ease-out);
  }
  .nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 8px; }
  .nav-extra {
    display: flex; flex-direction: column; gap: 14px; margin-top: 30px; padding-top: 26px; width: 100%;
    border-top: 1px solid var(--line);
    opacity: 0; transition: opacity .6s ease;
  }
  .nav .nav-extra a { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); opacity: 1; transform: none; padding: 6px 0; }
  .nav .nav-extra a.lower { text-transform: none; letter-spacing: .06em; }
  html.nav-open { overflow: hidden; }
  html.nav-open .hdr { mix-blend-mode: normal; }
  html.nav-open .nav { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .8s cubic-bezier(.76,0,.24,1), visibility 0s; }
  html.nav-open .nav > a { opacity: 1; transform: none; }
  html.nav-open .nav > a:nth-child(1) { transition-delay: 280ms; }
  html.nav-open .nav > a:nth-child(2) { transition-delay: 350ms; }
  html.nav-open .nav > a:nth-child(3) { transition-delay: 420ms; }
  html.nav-open .nav > a:nth-child(4) { transition-delay: 490ms; }
  html.nav-open .nav-extra { opacity: 1; transition-delay: 600ms; }
}

/* ---------- Buttons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 18px 28px; border-radius: 999px; border: 1px solid transparent;
  font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer;
}
.btn-lg { padding: 20px 32px; }
.btn-solid { background: var(--fg); color: var(--bg); }
.btn-solid:hover { color: var(--bg); background: #fff; }
.btn-ghost { border-color: rgba(245,245,243,0.3); color: var(--fg); background: transparent; }
.btn-dark { background: var(--bg); color: var(--fg); }
.btn-dark:hover { color: var(--fg); background: #1c1c1b; }
.light .btn-dark, .light .btn-dark:hover { color: var(--fg); }
.light .btn-ghost-dark { color: var(--bg); }
.btn-ghost-dark { border-color: rgba(10,10,10,0.3); color: var(--bg); background: transparent; }
.btn-ghost-dark:hover { color: var(--bg); border-color: var(--bg); }
.btn svg { width: 16px; height: 16px; margin-right: 10px; flex: none; }

/* ---------- Layout ---------- */
.sec { padding: var(--sy) var(--gx); }
.sec-tight-top { padding-top: 0; }
.bt { border-top: 1px solid var(--line-soft); }
.light { background: var(--fg); color: var(--bg); }
.light a { color: var(--bg); }
.light .lead, .light .body { color: var(--ink2); }
.row { display: flex; flex-wrap: wrap; gap: clamp(28px, 5vw, 64px); align-items: flex-start; }
.row-label { flex: 0 0 200px; padding-top: 14px; color: var(--dim); }
.light .row-label { color: var(--faint); }
.row-body { flex: 1 1 460px; min-width: 0; }
.stack { display: flex; flex-direction: column; }
.canvas-fill { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.6s ease; }
.text-link { display: inline-flex; align-items: center; gap: 14px; margin-top: 44px; font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; border-bottom: 1px solid rgba(10,10,10,0.3); padding-bottom: 8px; }
.crumb { display: flex; gap: 10px; color: var(--dim); }
.crumb a { color: var(--dim); }
.crumb span:last-child { color: var(--fg); }

/* ---------- Page hero (inner pages) ---------- */
.phero { min-height: 100svh; padding: 104px var(--gx) clamp(32px, 6vh, 64px); display: flex; flex-wrap: wrap; align-items: flex-end; gap: 24px 48px; }
.phero-copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: clamp(24px, 4vh, 40px); padding-bottom: 12px; }
.phero-art { flex: 1 1 340px; align-self: stretch; position: relative; min-height: clamp(280px, 44vw, 600px); }
.phero .lead { max-width: 600px; }

/* ---------- Home hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: 104px var(--gx) clamp(28px, 5vh, 48px); overflow: hidden; }
.hero-fade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,10,0) 35%, rgba(10,10,10,0.9) 100%); pointer-events: none; }
.hero-meta { position: relative; display: flex; flex-wrap: wrap; gap: 10px 32px; letter-spacing: .22em; color: var(--dim2); margin-bottom: clamp(20px, 3vh, 32px); }
.hero h1 { position: relative; font-size: clamp(56px, 10.6vw, 180px); line-height: .9; font-weight: 200; letter-spacing: -.045em; }
.hero-foot { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: clamp(24px, 3.4vh, 36px); margin-top: clamp(24px, 4vh, 44px); max-width: 620px; }
.hero-foot .lead { max-width: 52ch; line-height: 1.65; }
.hero-cue { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--dim); font-size: 10px; letter-spacing: .2em; }
.hero-cue::after { content: ''; width: 1px; height: 34px; background: linear-gradient(var(--dim), transparent); animation: cue 2.2s var(--ease-out) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hero-cue::after { animation: none; } }

/* ---------- Marquee ---------- */
.marquee { border-top: 1px solid rgba(245,245,243,0.12); border-bottom: 1px solid rgba(245,245,243,0.12); padding: clamp(18px, 3vw, 30px) 0; overflow: hidden; }
.marquee-track { display: flex; width: max-content; will-change: transform; }
.marquee-item { display: flex; align-items: center; gap: clamp(24px, 4vw, 56px); padding-right: clamp(24px, 4vw, 56px); font-size: clamp(30px, 5vw, 72px); font-weight: 200; letter-spacing: -.03em; white-space: nowrap; }
.marquee-item::after { content: ''; width: clamp(8px, 1vw, 12px); height: clamp(8px, 1vw, 12px); border-radius: 50%; background: var(--fg); }

/* ---------- Headings ---------- */
.h-statement { font-size: clamp(34px, 4.8vw, 72px); line-height: 1.04; font-weight: 200; letter-spacing: -.032em; text-wrap: pretty; }
.h-huge { font-size: clamp(54px, 11vw, 170px); line-height: .9; font-weight: 200; letter-spacing: -.05em; }
.h-section { font-size: clamp(36px, 5.4vw, 84px); line-height: .98; font-weight: 200; letter-spacing: -.04em; }
.h-mid { font-size: clamp(30px, 4.2vw, 60px); line-height: 1.06; font-weight: 200; letter-spacing: -.03em; max-width: 20ch; text-wrap: pretty; }
.h-cta { font-size: clamp(44px, 8vw, 128px); line-height: .95; font-weight: 200; letter-spacing: -.045em; max-width: 12ch; text-wrap: balance; }


/* ---------- Home: who we are — editorial word + drip sculpture ---------- */
.who {
  --ink: #0A0A0A; --paper: #E7E7E4;
  position: relative; min-height: max(100svh, 760px); overflow: hidden; color: var(--ink);
  background: radial-gradient(120% 90% at 50% 45%, #F1F1EE 0%, var(--paper) 55%, #D9D9D5 100%);
}
.who a { color: var(--ink); }
.who-stage { position: absolute; inset: 0; }
.who-word {
  position: absolute; left: 0; right: 0; top: 56%; transform: translateY(-50%); z-index: 1; margin: 0;
  text-align: center; font-size: clamp(72px, 15.4vw, 260px); font-weight: 300; line-height: 1; letter-spacing: .06em;
  color: var(--ink); white-space: nowrap; user-select: none;
}
.who-stage .canvas-fill { z-index: 2; }

/* Outlined, faded mirror reflection under a line of text */
.mirror { position: relative; }
.mirror::after {
  content: attr(data-text); position: absolute; left: 0; top: 100%; width: 100%;
  transform: scaleY(-1); transform-origin: center; white-space: nowrap; color: inherit;
  opacity: .28; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 15%, rgba(0,0,0,.9) 100%); mask-image: linear-gradient(to bottom, transparent 15%, rgba(0,0,0,.9) 100%);
}

.who-tl { position: absolute; z-index: 3; left: var(--gx); top: max(92px, 11%); width: min(480px, 42vw); display: flex; flex-direction: column; gap: 14px; }
.who-label { color: #6E6E6A; }
.who-title { font-size: clamp(28px, 2.8vw, 46px); line-height: 1; font-weight: 400; letter-spacing: -.01em; text-transform: uppercase; margin-bottom: .75em; white-space: nowrap; }
.who-text { font-size: clamp(15px, 1.1vw, 17px); line-height: 1.6; color: #3C3C39; max-width: 36ch; }

.who-vert {
  position: absolute; z-index: 3; right: var(--gx); top: max(96px, 11%);
  writing-mode: vertical-rl; transform: rotate(180deg); font-size: clamp(22px, 2.3vw, 34px); font-weight: 400; letter-spacing: .04em; color: var(--ink);
}

.who-r { position: absolute; z-index: 3; right: var(--gx); bottom: max(100px, 11%); display: flex; flex-direction: column; align-items: flex-end; gap: clamp(14px, 2vw, 26px); text-align: right; }
.who-claim { font-size: clamp(18px, 1.7vw, 26px); font-weight: 400; letter-spacing: -.01em; }
.who-num { font-size: clamp(56px, 6vw, 96px); font-weight: 200; line-height: .9; letter-spacing: -.02em; }

.who-bl { position: absolute; z-index: 3; left: var(--gx); top: 72%; }
.who-btn { border: 1px solid var(--ink); color: var(--ink); background: transparent; font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; padding: 14px 34px; min-height: 46px; border-radius: 12px; }
.who a.who-btn:hover { background: var(--ink); color: var(--fg); }

.who-slash {
  position: absolute; z-index: 3; left: var(--gx); bottom: max(56px, 9%); margin: 0; white-space: nowrap;
  font-size: clamp(26px, 2.8vw, 44px); font-weight: 400; letter-spacing: .02em; word-spacing: .35em; color: var(--ink);
}

.who-scroll { position: absolute; z-index: 3; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 10px; letter-spacing: .14em; color: #3C3C39; text-transform: none; }
.who-scroll i { width: 7px; height: 7px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); }

@media (max-width: 819px) {
  .who { min-height: 0; display: flex; flex-direction: column; padding: 96px var(--gx) 56px; gap: 0; }
  .who-tl, .who-r, .who-bl { position: static; width: auto; }
  .who-slash { position: relative; left: auto; bottom: auto; align-self: flex-start; }
  .who-tl { order: 1; }
  .who-title { font-size: clamp(30px, 9vw, 44px); }
  .who-text { font-size: 15px; }
  .who-stage { order: 2; position: relative; inset: auto; height: clamp(360px, 115vw, 560px); margin: 8px calc(-1 * var(--gx)) 0; }
  .who-word { top: 50%; font-size: 17.5vw; letter-spacing: .03em; }
  .who-vert { display: none; }
  .who-r { order: 3; align-items: flex-start; text-align: left; flex-direction: row; justify-content: space-between; align-items: flex-end; margin-top: 8px; }
  .who-num { font-size: 64px; }
  .who-bl { order: 4; margin-top: 24px; }
  .who-btn { width: 100%; }
  .who-slash { order: 5; margin-top: 40px; font-size: 30px; }
  .who-scroll { display: none; }
}

/* ---------- Home: pillars (horizontal scroll) ---------- */
.pillars { position: relative; height: 420vh; }
.sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.pillars-top { position: absolute; left: 0; right: 0; top: 0; padding: 96px var(--gx) 0; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 16px; pointer-events: none; z-index: 1; }
.pillars-top h2 { font-size: clamp(17px, 1.6vw, 22px); line-height: 1.45; font-weight: 300; color: var(--muted); max-width: 440px; text-wrap: pretty; }
.pillars-top .stack { gap: 14px; }
.pillars-count { letter-spacing: .2em; }
.pillars-count span { color: var(--fg); }
.pillars-track { position: absolute; left: 0; top: 0; height: 100%; width: 400%; display: flex; will-change: transform; }
.pillar { flex: 0 0 25%; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 var(--gx) clamp(40px, 9vh, 96px); }
.pillar h3 { margin-top: 12px; font-size: clamp(54px, 10vw, 160px); font-weight: 200; line-height: .9; letter-spacing: -.05em; }
.pillar p { margin-top: 18px; max-width: 420px; font-size: clamp(16px, 1.4vw, 18px); line-height: 1.65; color: var(--muted); }
html:not(.js) .pillars { height: auto; }
html:not(.js) .pillars .sticky { position: static; height: auto; }
html:not(.js) .pillars-top { position: static; }
html:not(.js) .pillars-track { position: static; width: auto; flex-direction: column; }
html:not(.js) .pillar { height: auto; padding-top: 64px; }

/* ---------- Cards / grids ---------- */
.abc { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1px; margin-top: clamp(48px, 7vw, 80px); }
.abc > div { box-shadow: 0 0 0 1px var(--line-dark); padding: clamp(28px, 3vw, 40px) 30px; display: flex; flex-direction: column; gap: 40px; min-height: 150px; justify-content: space-between; }
.abc > div span:last-child { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; letter-spacing: -.02em; }
.abc > div.inv { background: var(--bg); color: var(--fg); }
.abc > div.inv .mono { color: var(--dim2); }

.vm { display: flex; flex-wrap: wrap; gap: 16px 48px; padding: clamp(32px, 4vw, 48px) 0; border-top: 1px solid var(--line); }
.vm:last-child { border-bottom: 1px solid var(--line); }
.vm .mono { flex: 0 0 140px; padding-top: 10px; color: var(--dim); }
.vm p { flex: 1 1 380px; font-size: clamp(24px, 2.8vw, 40px); line-height: 1.25; font-weight: 200; letter-spacing: -.022em; text-wrap: pretty; }

/* ---------- Home: Project 1000 ---------- */
.p1000 { position: relative; height: 280vh; }
.p1000 .sticky { display: flex; flex-direction: column; justify-content: space-between; padding: 96px var(--gx) max(104px, 9vh); }
.p1000-top { position: relative; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--dim); }
.p1000-foot { position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; }
.p1000-foot h2 { font-size: clamp(44px, 7vw, 110px); line-height: .92; font-weight: 200; letter-spacing: -.045em; }
.p1000-num { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.p1000-num [data-p1000-count] { font-size: clamp(56px, 9vw, 150px); line-height: .85; font-weight: 200; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
html:not(.js) .p1000 { height: auto; }
html:not(.js) .p1000 .sticky { position: static; height: auto; gap: 64px; }
.p1000-copy { display: flex; flex-wrap: wrap; gap: clamp(20px, 4vw, 48px); max-width: 1100px; margin-left: auto; border-top: 1px solid var(--line); padding-top: clamp(32px, 4vw, 48px); }
.p1000-copy > p { flex: 1 1 300px; }
.p1000-copy .big { font-size: clamp(20px, 2vw, 26px); line-height: 1.45; font-weight: 200; text-wrap: pretty; }

/* ---------- Home: philosophy ---------- */
.words { max-width: 1200px; font-size: clamp(36px, 6.4vw, 104px); line-height: 1.02; font-weight: 200; letter-spacing: -.04em; display: flex; flex-wrap: wrap; column-gap: .24em; }
.js .words span { opacity: .15; transition: opacity .25s linear; }
.phil-foot { display: flex; flex-wrap: wrap; gap: clamp(20px, 4vw, 48px); margin-top: clamp(48px, 7vw, 80px); max-width: 1100px; border-top: 1px solid var(--line); padding-top: clamp(28px, 4vw, 40px); }
.phil-foot p { flex: 1 1 280px; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.65; color: var(--muted); }

/* ---------- CTA ---------- */
.cta { padding: clamp(110px, 16vw, 200px) var(--gx); display: flex; flex-direction: column; align-items: center; text-align: center; gap: clamp(32px, 4vw, 48px); }
.cta .btns { justify-content: center; }

/* ---------- Services ---------- */
.svc-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 40px; margin-bottom: clamp(40px, 6vw, 72px); }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 1px; }
@media (min-width: 560px) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .svc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.svc-card { height: 100%; box-shadow: 0 0 0 1px var(--line); padding: 30px 28px 32px; display: flex; flex-direction: column; justify-content: space-between; gap: 36px; min-height: 260px; background: var(--bg); }
.svc-card-top { display: flex; justify-content: space-between; align-items: flex-start; }
.icon3d { width: 112px; height: 112px; }
.svc-card h3 { font-size: clamp(22px, 2vw, 26px); font-weight: 300; letter-spacing: -.015em; }
.list-lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-dark); }
.list-lines li { display: flex; align-items: baseline; gap: 22px; padding: clamp(20px, 2.6vw, 28px) 0; border-bottom: 1px solid var(--line-dark); }
.list-lines li span:last-child { font-size: clamp(22px, 2.6vw, 36px); font-weight: 200; letter-spacing: -.025em; }
.pos { display: flex; flex-wrap: wrap; gap: 1px; }
.pos > div { flex: 1 1 300px; box-shadow: 0 0 0 1px var(--line); padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; gap: 20px; }
.pos h3 { font-size: clamp(26px, 3vw, 40px); font-weight: 200; letter-spacing: -.025em; }

/* ---------- Brand Lab ---------- */
.deliv { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 1px; }
.deliv > div { box-shadow: 0 0 0 1px var(--line-dark); padding: 26px 24px; display: flex; align-items: baseline; gap: 16px; min-height: 92px; }
.deliv > div span:last-child { font-size: clamp(17px, 1.5vw, 20px); letter-spacing: -.01em; }

.fw { position: relative; height: 640vh; }
.fw .sticky { display: flex; flex-direction: column; gap: clamp(12px, 2vh, 24px); padding: 92px var(--gx) clamp(24px, 4vh, 48px); }
.fw-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px 32px; }
.fw-head h2 { max-width: 34ch; font-size: clamp(16px, 1.5vw, 21px); line-height: 1.45; font-weight: 300; color: var(--muted); text-wrap: pretty; }
.fw-layout { flex: 1; min-height: 0; display: flex; gap: clamp(12px, 4vw, 56px); }
.fw-stage { flex: 1 1 55%; position: relative; min-height: 0; }
.fw-copy { flex: 1 1 45%; min-height: 0; display: flex; flex-direction: column; justify-content: center; gap: clamp(14px, 3vh, 28px); }
.fw-num { display: flex; align-items: baseline; gap: 14px; }
.fw-num [data-fw-num] { font-size: clamp(64px, 10vw, 150px); line-height: .85; font-weight: 200; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.fw-list { list-style: none; margin: 0; padding: 0; position: relative; min-height: clamp(120px, 20vh, 190px); }
.fw-item { position: absolute; left: 0; right: 0; top: 0; opacity: 0; transform: translateY(28px); transition: opacity .6s var(--ease-out), transform .8s var(--ease-out); display: flex; flex-direction: column; gap: 12px; }
.fw-item h3 { font-size: clamp(34px, 4.6vw, 68px); line-height: .98; font-weight: 200; letter-spacing: -.035em; }
.fw-item p { font-size: clamp(16px, 1.4vw, 19px); line-height: 1.6; color: var(--muted); }
.fw-bar { height: 1px; background: rgba(245,245,243,0.18); overflow: hidden; }
.fw-bar > div { height: 100%; background: var(--fg); transform-origin: left center; transform: scaleX(0); }
@media (max-width: 819px) {
  .fw-layout { flex-direction: column; }
  .fw-stage { flex: 0 0 40%; }
}
html:not(.js) .fw { height: auto; }
html:not(.js) .fw .sticky { position: static; height: auto; }
html:not(.js) .fw-stage, html:not(.js) .fw-num, html:not(.js) .fw-bar { display: none; }
html:not(.js) .fw-item { position: static; opacity: 1; transform: none; margin-bottom: 40px; }

.differ { display: flex; flex-wrap: wrap; gap: 40px; }
.differ > div { flex: 1 1 280px; display: flex; flex-direction: column; gap: 18px; }
.differ .q { font-size: clamp(28px, 3.6vw, 52px); line-height: 1.1; font-weight: 200; letter-spacing: -.03em; }
.instead { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.instead > div { padding: clamp(22px, 3vw, 30px) 0; border-bottom: 1px solid var(--line); font-size: clamp(18px, 1.8vw, 24px); color: var(--soft); }
.promise { max-width: 900px; font-size: clamp(28px, 4vw, 58px); line-height: 1.1; font-weight: 200; letter-spacing: -.032em; text-wrap: pretty; }
.slots { margin-top: 28px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 190px), 1fr)); gap: 1px; }
.slots > div { box-shadow: 0 0 0 1px var(--line); aspect-ratio: 1; display: flex; flex-direction: column; justify-content: space-between; padding: 20px; background-image: repeating-linear-gradient(135deg, rgba(245,245,243,0.04) 0px, rgba(245,245,243,0.04) 1px, transparent 1px, transparent 12px); }
.slots .mono-n { font-size: 10px; letter-spacing: .2em; }
.slots span:last-child { font-size: 15px; line-height: 1.35; color: var(--dim2); }

/* ---------- Contact ---------- */
.chero { padding: 104px var(--gx) clamp(40px, 6vw, 72px); display: flex; flex-wrap: wrap; align-items: flex-end; gap: 24px 48px; }
.chero-copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: clamp(24px, 4vh, 36px); padding-top: clamp(24px, 6vh, 72px); }
.chero-art { flex: 0 1 380px; position: relative; height: clamp(220px, 30vw, 400px); min-width: 220px; }
.cgrid { padding: 0 var(--gx) clamp(96px, 12vw, 150px); display: flex; flex-wrap: wrap; gap: clamp(48px, 7vw, 96px); align-items: flex-start; }
.cdetails { font-style: normal; flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.cdetails > a, .cdetails > div { display: flex; flex-direction: column; gap: 10px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.cdetails > div:last-child { border-bottom: 0; }
.cdetails .v { font-size: clamp(22px, 2.6vw, 34px); font-weight: 200; letter-spacing: -.02em; overflow-wrap: anywhere; }
.cdetails .co { font-size: 18px; line-height: 1.6; color: var(--muted); }
.form { flex: 1.3 1 400px; min-width: 0; box-shadow: 0 0 0 1px var(--line); padding: clamp(24px, 4vw, 48px); display: flex; flex-direction: column; gap: 28px; }
.form-row { display: flex; flex-wrap: wrap; gap: 28px; }
.field { flex: 1 1 220px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field-label { font-family: var(--mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); }
.field input, .field textarea {
  font-family: var(--sans); font-weight: 300; background: transparent; border: 0; border-bottom: 1px solid rgba(245,245,243,0.25);
  color: var(--fg); font-size: 19px; padding: 12px 0; outline: none; border-radius: 0; width: 100%; -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { border-bottom-color: var(--fg); }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-bottom-color: #E8A0A0; }
.topics { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.topics legend { padding: 0; margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  padding: 12px 18px; min-height: 44px; border-radius: 999px; cursor: pointer; transition: all .25s;
  background: transparent; color: var(--soft); border: 1px solid rgba(245,245,243,0.25);
}
.chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.form-note { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; color: var(--dim); line-height: 1.6; }
.form-error { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: #E8A0A0; min-height: 1em; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.ftr { padding: clamp(64px, 9vw, 96px) var(--gx) 32px; padding-bottom: max(32px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: clamp(48px, 7vw, 80px); }
.ftr.bt { border-top: 1px solid var(--line-soft); }
.ftr-top { display: flex; flex-wrap: wrap; gap: 40px 64px; justify-content: space-between; align-items: flex-start; }
.ftr-logo { width: 170px; height: auto; display: block; color: var(--fg); overflow: visible; }
.ftr-cols { display: flex; flex-wrap: wrap; gap: 40px 72px; }
.ftr-col { display: flex; flex-direction: column; gap: 14px; }
.ftr-col.mono { letter-spacing: .16em; }
.ftr-col .head { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.ftr-col.contact { font-size: 16px; }
.ftr-word { font-size: clamp(64px, 25.6vw, 600px); line-height: .78; font-weight: 200; letter-spacing: -.035em; white-space: nowrap; margin-left: -.04em; }
.ftr-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid rgba(245,245,243,0.12); padding-top: 24px; font-family: var(--mono); font-size: 11px; letter-spacing: .16em; color: var(--faint); }

/* ---------- Floating WhatsApp ---------- */
.wa-fab {
  position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 75;
  width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--fg); color: var(--bg); box-shadow: 0 10px 30px rgba(0,0,0,.45), 0 0 0 1px rgba(10,10,10,.08);
  transition: transform .4s var(--ease-out);
}
.wa-fab:hover { color: var(--bg); transform: scale(1.06); }
.wa-fab svg { width: 28px; height: 28px; }
html.nav-open .wa-fab, html.fab-away .wa-fab { opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none; }
.wa-fab { transition: transform .4s var(--ease-out), opacity .3s ease; }

/* ---------- 404 ---------- */
.nf { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: 32px; padding: 104px var(--gx) 64px; }

/* ---------- Page-specific sizes & small utilities ---------- */
.h-page-services { font-size: clamp(52px, 9.6vw, 156px); }
.h-page-lab { font-size: clamp(56px, 11vw, 176px); line-height: .88; }
.h-page-contact { font-size: clamp(56px, 10vw, 160px); }
.h-lab { font-size: clamp(40px, 6vw, 92px); line-height: .94; font-weight: 200; letter-spacing: -.045em; }
.phero-art-lab { min-height: clamp(300px, 48vw, 640px); }
.gap-18 { gap: 18px; }
.gap-22 { gap: 22px; }
.gap-28 { gap: 28px; }
.gap-differ { gap: clamp(40px, 6vw, 64px); }
.flex-360 { flex: 1 1 360px; min-width: 0; }
.mt-lg { margin-top: clamp(32px, 4vw, 44px); }
.mt-32 { margin-top: 32px; }
.mw-620 { max-width: 620px; }
.mw-640 { max-width: 640px; }
.mb-deliv { margin-bottom: clamp(40px, 6vw, 64px); }
.ls-18 { letter-spacing: .18em; }
.light .row-body > .lead { margin-top: clamp(28px, 4vw, 44px); max-width: 680px; }
#phil-h { margin-bottom: clamp(32px, 5vw, 56px); }

/* ---------- Phones: home hero ---------- */
@media (max-width: 819px) {
  /* The hero may run past one screen: the 3D and headline own the first view, the actions follow with room to breathe. */
  .hero { justify-content: flex-start; min-height: 100svh; padding-top: max(84px, calc(env(safe-area-inset-top) + 72px)); padding-bottom: max(64px, calc(env(safe-area-inset-bottom) + 48px)); }
  .hero > .canvas-fill {
    position: relative; inset: auto; flex: 0 0 auto; height: clamp(300px, 48svh, 480px);
    width: calc(100% + 2 * var(--gx)); margin: 0 calc(-1 * var(--gx)) 32px;
  }
  .hero-fade { display: none; }
  .hero-meta { flex-direction: column; gap: 8px; font-size: 10px; margin-bottom: 22px; padding-left: 14px; border-left: 1px solid var(--line); }
  .hero h1 { font-size: clamp(54px, 16vw, 96px); }
  .hero-foot { margin-top: 32px; gap: 36px; }
  .hero-foot .lead { flex: 1 1 100%; max-width: none; font-size: 16px; line-height: 1.7; }
  .hero-foot .btns { width: 100%; gap: 14px; }
  .hero-foot .btn { flex: 1 1 100%; min-height: 54px; padding: 16px 24px; }
  .hero-cue { display: none; }
}
@media (max-width: 819px) and (max-height: 700px) {
  .hero > .canvas-fill { height: clamp(260px, 44svh, 360px); }
  .hero h1 { font-size: clamp(48px, 14vw, 80px); }
}

/* ---------- Phones: pinned scroll sections ---------- */
@media (max-width: 819px) {
  .pillars .canvas-fill { top: 24%; height: 36%; }
  .pillars-top { padding-top: 88px; }
  .pillars-top h2 { font-size: 16px; max-width: 32ch; }
  .pillar { padding-bottom: 104px; }
  .pillar h3 { font-size: clamp(46px, 13vw, 80px); }
  .pillar p { font-size: 16px; max-width: 30ch; }

  .p1000 .canvas-fill { top: 15%; height: 42%; }
  .p1000 .sticky { padding-top: 88px; padding-bottom: 104px; }
  .p1000-foot { flex-direction: column; align-items: stretch; gap: 18px; }
  .p1000-foot h2 { font-size: clamp(40px, 12vw, 64px); }
  .p1000-num { align-items: flex-start; border-top: 1px solid var(--line); padding-top: 16px; }
  .p1000-num [data-p1000-count] { font-size: clamp(64px, 20vw, 110px); }
}

/* ---------- Small screens ---------- */
@media (max-width: 560px) {
  .row-label { flex-basis: 100%; padding-top: 0; }
  .hero-foot .btns, .cta .btns, .form .btns { width: 100%; }
  .hero-foot .btns .btn, .cta .btns .btn, .form .btns .btn { flex: 1 1 100%; }
  .vm .mono { flex-basis: 100%; padding-top: 0; }
  .chero-art { min-width: 0; flex-basis: 100%; height: 220px; }
  .phero-art { min-height: 300px; }
  .svc-card { min-height: 220px; }
  .slots > div { padding: 14px; }
  .slots span:last-child { font-size: 14px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
  .nav, .nav a, .nav-extra { transition: none !important; }
}
