/* ==========================================================
   NDigital — main stylesheet
   Editorial-tech: ink + warm white, one cobalt accent.
   ========================================================== */

@font-face { font-family: "Geist"; src: url("../assets/fonts/geist-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../assets/fonts/geist-mono-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../assets/fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../assets/fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --ink: #0a0c10;
  --ink-2: #11141b;
  --ink-3: #1a1e28;
  --paper: #f6f4ef;
  --paper-2: #ece9e2;
  --paper-3: #e2ded5;
  --grey: #686c75;
  --grey-d: #9ba1ad;
  --cobalt: #2a50ff;
  --cobalt-d: #1f3fd6;
  --cobalt-l: #7391ff;
  --line-l: rgba(10, 12, 16, 0.13);
  --line-d: rgba(255, 255, 255, 0.13);

  --font-sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(20px, 4.4vw, 56px);
  --maxw: 1320px;
  --section: clamp(88px, 11vw, 168px);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-sans); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; border-radius: 2px; }
.on-dark :focus-visible, .section--dark :focus-visible { outline-color: var(--cobalt-l); }
::selection { background: var(--cobalt); color: #fff; }

.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 4px; transition: top 0.2s; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.section { padding-block: var(--section); position: relative; }
.section--dark { background: var(--ink); color: #f1f1ee; --line: var(--line-d); --muted: var(--grey-d); --accent-text: var(--cobalt-l); }
.section--light { --line: var(--line-l); --muted: var(--grey); --accent-text: var(--cobalt); }
.section--paper2 { background: var(--paper-2); }

/* ---------- type ---------- */
.mono { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; color: var(--muted, var(--grey)); }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: 0.6; }
.display, .h2 {
  font-weight: 600; letter-spacing: -0.04em; line-height: 0.98; text-wrap: balance;
}
.display { font-size: clamp(2.75rem, 0.9rem + 4.5vw, 5.75rem); }
.h2 { font-size: clamp(2.25rem, 1rem + 3.9vw, 4.75rem); line-height: 1.01; }
.display em, .h2 em, .serif-i {
  font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.015em;
  font-size: 1.07em; line-height: 0.9; color: var(--accent-text, var(--cobalt-l));
}
.lead { font-size: clamp(1.0625rem, 0.98rem + 0.4vw, 1.3125rem); line-height: 1.55; color: var(--muted, var(--grey)); max-width: 38em; text-wrap: pretty; }
.measure { max-width: 34em; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--ink); --fg: #fff;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 54px; padding: 0 28px; border-radius: 4px; background: var(--bg); color: var(--fg);
  font-weight: 550; font-size: 0.9688rem; letter-spacing: -0.005em; white-space: nowrap; overflow: hidden; isolation: isolate;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background-color 0.3s;
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255, 255, 255, 0.14); transform: translateY(101%); transition: transform 0.45s var(--ease); }
.btn:hover::before { transform: none; }
.btn .arr { width: 18px; height: 12px; flex: none; transition: transform 0.35s var(--ease); }
.btn:hover .arr { transform: translateX(5px); }
.btn:active { transform: scale(0.985); }
.btn--accent { --bg: var(--cobalt); box-shadow: 0 10px 30px -10px rgba(42, 80, 255, 0.55); }
.btn--accent:hover { box-shadow: 0 14px 38px -10px rgba(42, 80, 255, 0.75); }
.btn--ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1px currentColor; border: 0; }
.btn--ghost { box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 32%, transparent); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px currentColor; }
.btn--light { --bg: var(--paper); --fg: var(--ink); }
.btn--light::before { background: rgba(10, 12, 16, 0.08); }
.btn--sm { min-height: 42px; padding: 0 20px; font-size: 0.9rem; }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 550; font-size: 0.97rem; padding-bottom: 3px; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size 0.4s var(--ease), gap 0.3s var(--ease); }
.link-arrow:hover { gap: 16px; }
.link-arrow .arr { width: 18px; height: 12px; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; color: #f4f3ef;
}
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(10, 12, 16, 0.82); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 1px 0 var(--line-d); opacity: 0; transition: opacity 0.4s; }
.site-header.is-scrolled::before { opacity: 1; }
html.modal-open { overflow: hidden; }
.site-header__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); transition: height 0.4s var(--ease); }
.site-header.is-scrolled .site-header__in { height: 62px; }
.wordmark { display: inline-flex; align-items: baseline; font-weight: 650; font-size: 1.4rem; letter-spacing: -0.045em; line-height: 1; position: relative; z-index: 2; }
.wordmark i { width: 6px; height: 6px; margin-left: 3px; background: var(--cobalt-l); display: inline-block; transition: transform 0.5s var(--ease); }
.wordmark:hover i { transform: translateY(-4px) rotate(90deg); }
.nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); }
.nav ul { display: flex; gap: clamp(18px, 2.6vw, 38px); }
.nav a:not(.btn) { position: relative; font-size: 0.94rem; color: rgba(244, 243, 239, 0.78); padding: 8px 0; transition: color 0.25s; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease); }
.nav a:not(.btn):hover, .nav a[aria-current] { color: #fff; }
.nav a:not(.btn):hover::after, .nav a[aria-current]::after { transform: scaleX(1); transform-origin: left; }
.menu-btn { display: none; position: relative; z-index: 2; width: 44px; height: 44px; margin-right: -10px; }
.menu-btn span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: #fff; transition: transform 0.45s var(--ease), top 0.45s var(--ease), opacity 0.2s; }
.menu-btn span:nth-child(1) { top: 17px; } .menu-btn span:nth-child(2) { top: 26px; }
.menu-open .menu-btn span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }

.mobile-menu { display: none; }

@media (max-width: 880px) {
  :root { --header-h: 68px; }
  .menu-btn { display: block; }
  .nav { display: none; }
  .mobile-menu {
    display: flex; flex-direction: column; justify-content: space-between; position: fixed; inset: 0; z-index: 1;
    padding: calc(var(--header-h) + 28px) var(--gutter) 32px; background: var(--ink); color: #fff;
    clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path 0.7s var(--ease), visibility 0s 0.7s;
    overflow-y: auto;
  }
  .menu-open .mobile-menu { clip-path: inset(0); visibility: visible; transition: clip-path 0.7s var(--ease), visibility 0s; }
  .mobile-menu ul { display: grid; }
  .mobile-menu li { border-bottom: 1px solid var(--line-d); overflow: hidden; }
  .mobile-menu li a { display: flex; align-items: baseline; justify-content: space-between; padding: 18px 0; font-size: clamp(2rem, 9vw, 2.9rem); font-weight: 600; letter-spacing: -0.04em; transform: translateY(110%); transition: transform 0.7s var(--ease); }
  .mobile-menu li a small { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; color: var(--grey-d); font-weight: 400; }
  .menu-open .mobile-menu li a { transform: none; }
  .menu-open .mobile-menu li:nth-child(1) a { transition-delay: 0.12s; } .menu-open .mobile-menu li:nth-child(2) a { transition-delay: 0.17s; }
  .menu-open .mobile-menu li:nth-child(3) a { transition-delay: 0.22s; } .menu-open .mobile-menu li:nth-child(4) a { transition-delay: 0.27s; }
  .menu-open .mobile-menu li:nth-child(5) a { transition-delay: 0.32s; }
  .mobile-menu__foot { display: grid; gap: 18px; margin-top: 32px; opacity: 0; transition: opacity 0.5s 0.4s; }
  .menu-open .mobile-menu__foot { opacity: 1; }
  .mobile-menu__foot a.mail { color: var(--grey-d); font-size: 0.95rem; }
  .menu-open { overflow: hidden; }
}

/* ---------- hero ---------- */
.hero { position: relative; background: var(--ink); color: #f4f3ef; --muted: var(--grey-d); --accent-text: var(--cobalt-l); overflow: clip; padding: calc(var(--header-h) + clamp(40px, 7vw, 96px)) 0 clamp(70px, 9vw, 130px); }
.hero__lines { position: absolute; inset: 0 var(--gutter); max-width: var(--maxw); margin-inline: auto; pointer-events: none; background: repeating-linear-gradient(to right, var(--line-d) 0 1px, transparent 1px calc(100% / 6)); opacity: 0.55; -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent 100%); mask-image: linear-gradient(to bottom, #000 40%, transparent 100%); }
.hero::after { content: ""; position: absolute; right: -12%; top: 6%; width: 52vw; height: 52vw; max-width: 780px; max-height: 780px; background: radial-gradient(closest-side, rgba(42, 80, 255, 0.22), transparent); pointer-events: none; }
.hero__in { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr); gap: clamp(32px, 5vw, 84px); align-items: center; }
.hero__copy { padding-block: 12px; }
.hero .eyebrow { color: var(--cobalt-l); margin-bottom: clamp(22px, 3vw, 34px); }
.hero .lead { margin-top: clamp(22px, 2.6vw, 34px); max-width: 30em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(30px, 3.4vw, 46px); }
.hero__note { margin-top: clamp(36px, 5vw, 64px); color: var(--grey-d); max-width: 40ch; line-height: 1.7; }

.hv { position: relative; width: 100%; aspect-ratio: 1 / 0.96; container-type: inline-size; }
.hv .bw__bar { height: 4.7cqw; padding: 0 1.8cqw; gap: 0.9cqw; }
.hv .bw__bar i { width: 1.45cqw; height: 1.45cqw; }
.hv .bw__url { height: 2.9cqw; font-size: 1.5cqw; line-height: 2.9cqw; border-radius: 0.8cqw; transform: translateX(-2.2cqw); }
.hv .bw { border-radius: 1.4cqw; }
.hv__item { position: absolute; will-change: transform; }
.hv__item .bw, .hv__item .ph { transition: transform 0.7s var(--ease); }
.hv__b { left: 43%; top: 0; width: 57%; z-index: 1; }
.hv__a { left: 0; top: 22%; width: 55%; z-index: 2; }
.hv__c { left: 27%; top: 45%; width: 73%; z-index: 3; }
.hv__d { left: 0; top: 54%; width: 20%; z-index: 4; }
.hv .bw { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 40px 80px -24px rgba(0, 0, 0, 0.8); }
.hv__cap { position: absolute; right: 0; bottom: -34px; color: var(--grey-d); font-size: 0.68rem; }

@media (max-width: 960px) {
  .hero__in { grid-template-columns: 1fr; }
  .hv { margin-top: 12px; margin-bottom: 36px; }
}

/* load-in choreography (only when JS is present) */
.js .hv__item { opacity: 0; transform: translateY(40px) scale(0.98); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.js .is-loaded .hv__item { opacity: 1; transform: none; }
.js .is-loaded .hv__b { transition-delay: 0.35s; } .js .is-loaded .hv__a { transition-delay: 0.5s; }
.js .is-loaded .hv__c { transition-delay: 0.65s; } .js .is-loaded .hv__d { transition-delay: 0.85s; }
.js .fade-up { opacity: 0; transform: translateY(22px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.js .is-loaded .fade-up, .js .fade-up.is-in { opacity: 1; transform: none; }

/* split-word mask reveals */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.06em 0.05em 0.14em; margin: -0.06em -0.05em -0.14em; }
.w > span { display: inline-block; }
.js [data-split] .w > span { transform: translateY(112%); transition: transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 55ms + var(--base, 0s)); }
.js [data-split].is-in .w > span { transform: none; }

/* ---------- credibility strip ---------- */
.cred { background: var(--paper); border-bottom: 1px solid var(--line-l); }
.cred__list { display: grid; grid-template-columns: repeat(4, 1fr); }
.cred__item { padding: clamp(26px, 3vw, 40px) clamp(18px, 2.4vw, 36px); border-left: 1px solid var(--line-l); }
.cred__item:first-child { border-left: 0; padding-left: 0; }
.cred__item .mono { color: var(--cobalt); }
.cred__item h3 { margin-top: 14px; font-size: clamp(1.1rem, 0.95rem + 0.5vw, 1.4rem); font-weight: 600; letter-spacing: -0.025em; line-height: 1.2; }
.cred__item p { margin-top: 8px; color: var(--grey); font-size: 0.94rem; line-height: 1.5; max-width: 22em; }
@media (max-width: 900px) {
  .cred__list { grid-template-columns: 1fr 1fr; }
  .cred__item:nth-child(3) { border-left: 0; padding-left: 0; }
  .cred__item:nth-child(n+3) { border-top: 1px solid var(--line-l); }
}
@media (max-width: 520px) {
  .cred__list { grid-template-columns: 1fr; }
  .cred__item { border-left: 0; padding-left: 0; padding-block: 22px; }
  .cred__item + .cred__item { border-top: 1px solid var(--line-l); }
}

/* ---------- section header ---------- */
.sec-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(24px, 5vw, 80px); align-items: end; }
.sec-head .eyebrow { margin-bottom: 26px; }
.sec-head--stack { grid-template-columns: 1fr; }
@media (max-width: 860px) { .sec-head { grid-template-columns: 1fr; align-items: start; } }

/* ==========================================================
   Selected work
   ========================================================== */
.work { padding-bottom: 0; overflow-x: clip; --line: var(--line-l); --muted: var(--grey); --accent-text: var(--cobalt); }
.work__head { padding-bottom: clamp(56px, 8vw, 110px); }
.work__note { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line-l); color: var(--grey); font-size: 0.9rem; line-height: 1.55; max-width: 36em; }
.work__note b { color: var(--ink); font-weight: 600; }

.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 11px 6px 10px; border: 1px solid currentColor; border-radius: 99px; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; opacity: 0.88; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cobalt); }
.proj { position: relative; padding-block: clamp(56px, 8vw, 120px); }
.proj + .proj { border-top: 1px solid var(--line-l); }
.proj h3 { font-weight: 600; letter-spacing: -0.04em; line-height: 1; text-wrap: balance; }
.proj__num { color: var(--cobalt); }
.proj__tags { display: flex; flex-wrap: wrap; gap: 8px 8px; margin-top: 22px; }
.proj__tags li { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 10px; border: 1px solid var(--line); border-radius: 2px; color: var(--muted); }
.proj p.rationale { color: var(--muted); font-size: 1.04rem; line-height: 1.65; text-wrap: pretty; }

/* previews are links that open the dialog */
.pv-trigger { position: relative; display: block; cursor: zoom-in; border-radius: 10px; -webkit-tap-highlight-color: transparent; }
.pv-trigger .bw, .pv-trigger .ph { transition: transform 0.8s var(--ease), box-shadow 0.8s var(--ease); }
.pv-trigger .hero-img, .pv-trigger .mk-hero__media img { transition: transform 1.4s var(--ease); }
.pv-trigger:hover .bw, .pv-trigger:focus-visible .bw { transform: translateY(-8px); }
.pv-trigger:hover .ph, .pv-trigger:focus-visible .ph { transform: translateY(-8px) rotate(-0.6deg); }
.pv-trigger:hover .mk-hero__media img { transform: scale(1.04); }
.pv-trigger.pv--phone:hover .mk-hero__media img { transform: scale(1.02); }
.pv-pill { position: absolute; z-index: 6; left: 50%; top: 50%; display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 99px; background: #fff; color: var(--ink); font-size: 0.85rem; font-weight: 600; white-space: nowrap; box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.45); opacity: 0; transform: translate(-50%, -40%) scale(0.92); transition: opacity 0.35s, transform 0.5s var(--ease); pointer-events: none; }
.pv-pill svg { width: 14px; height: 14px; }
.pv-trigger:hover .pv-pill, .pv-trigger:focus-visible .pv-pill { opacity: 1; transform: translate(-50%, -50%) scale(1); }
@media (hover: none) { .pv-pill { display: none; } }

/* 1 — wide horizontal */
.proj--wide .proj__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: clamp(28px, 4vw, 48px); }
.proj--wide .proj__top > div { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.proj--wide .proj__stage { position: relative; padding: clamp(20px, 5vw, 72px) clamp(14px, 5vw, 72px) clamp(40px, 7vw, 100px); background: var(--paper-2); }
.proj--wide .proj__stage::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(to right, var(--line-l) 0 1px, transparent 1px calc(100% / 8)); opacity: 0.6; pointer-events: none; }
.proj--wide .pv--desk { width: 88%; position: relative; z-index: 1; }
.proj--wide .pv--phone { position: absolute; z-index: 2; right: clamp(14px, 5vw, 72px); bottom: clamp(24px, 4vw, 56px); width: 17%; }
.proj--wide .proj__info { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 80px); padding-top: clamp(32px, 4vw, 56px); align-items: start; }
.proj--wide h3 { font-size: clamp(2.1rem, 1.2rem + 3.2vw, 4.2rem); }
.proj--wide .proj__info > div:last-child { display: grid; gap: 22px; justify-items: start; }
@media (max-width: 860px) { .proj--wide .proj__info { grid-template-columns: 1fr; } .proj--wide .pv--desk { width: 100%; } .proj--wide .pv--phone { width: 24%; right: 20px; bottom: 14px; } .proj--wide .proj__stage { padding: 18px 14px 56px; } }

/* 2 — asymmetrical split */
.proj--split { background: transparent; }
.proj--split .proj__grid { display: grid; grid-template-columns: minmax(0, 4.6fr) minmax(0, 7.4fr); gap: clamp(28px, 5vw, 88px); align-items: center; }
.proj--split .proj__text { display: grid; gap: 22px; align-content: start; }
.proj--split .proj__text .meta { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; }
.proj--split h3 { font-size: clamp(2rem, 1.2rem + 2.7vw, 3.6rem); }
.proj--split .proj__stage { position: relative; margin-right: calc(-1 * var(--gutter)); padding: 0 0 clamp(36px, 7vw, 90px) clamp(36px, 8vw, 110px); }
.proj--split .pv--desk { width: 100%; }
.proj--split .pv--phone { position: absolute; left: 0; bottom: 0; width: clamp(96px, 19%, 190px); z-index: 2; }
.proj--split .proj__stage::after { content: ""; position: absolute; z-index: -1; right: -40px; top: -30px; width: 60%; height: 80%; background: var(--paper-3); }
.proj--split { isolation: isolate; }
@media (max-width: 960px) { .proj--split .proj__grid { grid-template-columns: 1fr; } .proj--split .proj__stage { margin-right: 0; padding-left: 0; padding-bottom: 60px; } .proj--split .pv--phone { left: -4px; width: 26%; } .proj--split .proj__stage::after { right: -10px; } }

/* 3 — dark visual */
.proj--dark { background: var(--ink); color: #f1f1ee; --line: var(--line-d); --muted: var(--grey-d); --accent-text: var(--cobalt-l); border-top: 0 !important; overflow: hidden; }
.proj--dark::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(to right, var(--line-d) 0 1px, transparent 1px calc(100% / 12)); opacity: 0.35; -webkit-mask-image: linear-gradient(to bottom, #000, transparent 90%); mask-image: linear-gradient(to bottom, #000, transparent 90%); pointer-events: none; }
.proj--dark .proj__glow { position: absolute; left: 50%; top: 52%; width: min(1100px, 120vw); aspect-ratio: 1.6; transform: translate(-50%, -50%); background: radial-gradient(closest-side, color-mix(in srgb, var(--glow, #e0a88c) 40%, transparent), transparent); pointer-events: none; }
.proj--dark .proj__center { position: relative; text-align: center; display: grid; justify-items: center; gap: 22px; padding-bottom: clamp(36px, 5vw, 64px); }
.proj--dark h3 { font-size: clamp(2.4rem, 1rem + 5.2vw, 6rem); max-width: 12em; letter-spacing: -0.045em; }
.proj--dark h3 em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: #f0c2a9; }
.proj--dark .center-meta { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; justify-content: center; }
.proj--dark .proj__stage { position: relative; width: min(100%, 1060px); margin-inline: auto; }
.proj--dark .bw { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 60px 120px -30px rgba(0, 0, 0, 0.9); }
.proj--dark .proj__cols { position: relative; display: grid; grid-template-columns: 1fr 1.6fr auto; gap: clamp(24px, 5vw, 80px); margin-top: clamp(40px, 6vw, 80px); padding-top: 28px; border-top: 1px solid var(--line-d); align-items: start; }
.proj--dark .proj__cols .mono { color: var(--grey-d); }
@media (max-width: 860px) { .proj--dark .proj__cols { grid-template-columns: 1fr; } }

/* 4 — light editorial */
.proj--editorial { background: var(--paper); }
.proj--editorial .proj__grid { display: grid; grid-template-columns: minmax(0, 7.2fr) minmax(0, 4.8fr); gap: clamp(32px, 6vw, 110px); align-items: center; }
.proj--editorial .proj__stage { position: relative; padding-bottom: clamp(40px, 7vw, 100px); padding-right: clamp(0px, 4vw, 40px); }
.proj--editorial .pv--desk { width: 78%; margin-left: auto; }
.proj--editorial .pv--phone { position: absolute; left: 4%; bottom: 0; width: clamp(110px, 31%, 270px); z-index: 2; }
.proj--editorial .proj__stage::before { content: ""; position: absolute; left: 0; top: -22px; width: 54%; height: 70%; border: 1px solid var(--line-l); z-index: -1; }
.proj--editorial { isolation: isolate; }
.proj--editorial .proj__text { display: grid; gap: 26px; }
.proj--editorial h3 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(2.8rem, 1.4rem + 4.6vw, 5.6rem); letter-spacing: -0.02em; line-height: 0.92; }
.proj--editorial h3 em { color: var(--cobalt); }
.proj--editorial .notes { border-top: 1px solid var(--line-l); }
.proj--editorial .notes li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line-l); font-size: 0.96rem; line-height: 1.45; }
.proj--editorial .notes li span { font-family: var(--font-mono); font-size: 0.7rem; color: var(--cobalt); padding-top: 3px; }
.proj--editorial .notes-title { margin-bottom: 14px; color: var(--grey); }
@media (max-width: 960px) { .proj--editorial .proj__grid { grid-template-columns: 1fr; } .proj--editorial .proj__text { order: -1; } .proj--editorial .pv--desk { width: 86%; } }

/* ==========================================================
   Services
   ========================================================== */
.services { background: var(--paper-2); }
.services__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 7vw, 120px); align-items: start; }
.services__side { position: sticky; top: 110px; }
.services__side .eyebrow { margin-bottom: 26px; color: var(--grey); }
.services__side .lead { margin-top: 28px; }
.svc-list { border-top: 1px solid var(--line-l); counter-reset: svc; }
.svc { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 18px 20px; align-items: start; padding: clamp(26px, 3vw, 40px) 0; border-bottom: 1px solid var(--line-l); position: relative; transition: padding 0.5s var(--ease); }
.svc::before { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 100%; background: var(--cobalt); transform: scaleX(0); transform-origin: left; transition: transform 0.7s var(--ease); }
.svc:hover::before { transform: scaleX(1); }
.svc__n { font-family: var(--font-mono); font-size: 0.75rem; color: var(--cobalt); padding-top: 0.7em; letter-spacing: 0.08em; }
.svc h3 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.3rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.1; }
.svc p { margin-top: 10px; color: var(--grey); max-width: 34em; font-size: 1rem; line-height: 1.6; }
.svc__cta { align-self: center; justify-self: end; width: 46px; height: 46px; border: 1px solid var(--line-l); border-radius: 50%; display: grid; place-items: center; transition: background-color 0.35s, color 0.35s, border-color 0.35s, transform 0.5s var(--ease); }
.svc__cta svg { width: 16px; height: 16px; }
.svc:hover .svc__cta, .svc__cta:focus-visible { background: var(--cobalt); border-color: var(--cobalt); color: #fff; transform: rotate(-45deg); }
.svc__cta::after { content: ""; position: absolute; inset: 0; }
.svc-note { margin-top: 26px; color: var(--grey); font-size: 0.9rem; max-width: 36em; }
@media (max-width: 900px) { .services__in { grid-template-columns: 1fr; } .services__side { position: static; } .svc { grid-template-columns: 34px minmax(0, 1fr) auto; gap: 14px; } }

/* ==========================================================
   Before / after
   ========================================================== */
.compare { overflow: clip; }
.compare__intro { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(24px, 5vw, 80px); align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.compare__intro .eyebrow { margin-bottom: 26px; }
@media (max-width: 860px) { .compare__intro { grid-template-columns: 1fr; } }
.cmp { --pos: 50%; position: relative; }
.cmp__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.cmp__tabs { display: inline-flex; padding: 4px; border: 1px solid var(--line-d); border-radius: 99px; }
.cmp__tabs button { padding: 9px 18px; border-radius: 99px; font-size: 0.86rem; font-weight: 550; color: var(--grey-d); transition: background-color 0.3s, color 0.3s; }
.cmp__tabs button[aria-pressed="true"] { background: #f1f1ee; color: var(--ink); }
.cmp__hint { color: var(--grey-d); }
.cmp__stage { position: relative; }
.cmp__stage > .bw { max-width: 1140px; margin-inline: auto; }
.cmp__stage[hidden] { display: none; }
.cmp .bw { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 60px 120px -40px rgba(0, 0, 0, 0.8); }
.cmp__screen { position: relative; }
.cmp__layer { position: absolute; inset: 0; }
.cmp__before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.cmp__tag { position: absolute; z-index: 5; top: 14px; padding: 6px 11px; border-radius: 2px; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; pointer-events: none; transition: opacity 0.25s; }
.cmp__tag--b { left: 14px; background: #1a1a1a; color: #fff; }
.cmp__tag--a { right: 14px; background: var(--cobalt); color: #fff; }
.cmp__handle { position: absolute; z-index: 6; top: 0; bottom: 0; left: var(--pos); width: 0; pointer-events: none; }
.cmp__handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2); }
.cmp__knob { position: absolute; top: 50%; left: 0; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); transition: transform 0.3s var(--ease); }
.cmp__knob svg { width: 26px; height: 14px; }
.cmp__range { position: absolute; z-index: 7; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; background: transparent; touch-action: pan-y; }
.cmp__range::-webkit-slider-runnable-track { height: 100%; background: transparent; }
.cmp__range::-moz-range-track { height: 100%; background: transparent; }
.cmp__range::-webkit-slider-thumb { -webkit-appearance: none; width: 54px; height: 1000px; background: transparent; border: 0; }
.cmp__range::-moz-range-thumb { width: 54px; height: 1000px; background: transparent; border: 0; border-radius: 0; }
.cmp__range:focus-visible ~ .cmp__handle .cmp__knob { outline: 3px solid var(--cobalt-l); outline-offset: 4px; }
.cmp__range:active ~ .cmp__handle .cmp__knob { transform: scale(1.1); }
.cmp__phones { display: flex; justify-content: center; gap: clamp(20px, 6vw, 90px); flex-wrap: wrap; }
.cmp__phone { width: min(300px, 44%); min-width: 220px; text-align: center; }
.cmp__phone figcaption { margin-top: 18px; color: var(--grey-d); }
.cmp__phone .ph { box-shadow: 0 0 0 1.5px #3a3e4a, 0 0 0 3px #0a0b0f, 0 40px 80px -24px rgba(0, 0, 0, 0.9); }
.cmp__list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(24px, 6vw, 100px); margin-top: clamp(44px, 6vw, 80px); counter-reset: imp; }
.cmp__list li { display: grid; grid-template-columns: 40px 1fr; gap: 6px; padding: 20px 0; border-top: 1px solid var(--line-d); }
.cmp__list li span { font-family: var(--font-mono); font-size: 0.72rem; color: var(--cobalt-l); padding-top: 4px; }
.cmp__list h3 { font-size: 1.12rem; font-weight: 600; letter-spacing: -0.02em; }
.cmp__list p { color: var(--grey-d); font-size: 0.95rem; margin-top: 4px; line-height: 1.55; }
@media (max-width: 700px) { .cmp__list { grid-template-columns: 1fr; } .cmp__knob { width: 46px; height: 46px; margin: -23px 0 0 -23px; } .cmp__tag { top: 8px; font-size: 0.6rem; padding: 5px 8px; } .cmp__tag--b { left: 8px; } .cmp__tag--a { right: 8px; } }

/* "before" (deliberately dated) site */
.old { --px: calc(0.08333cqw); width: 100%; height: 100%; background: #c9d6d3 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Cpath d='M0 0h4v4H0zM4 4h4v4H4z' fill='%23bccac6'/%3E%3C/svg%3E"); font-family: "Times New Roman", Times, serif; color: #111; font-size: calc(var(--px) * 15); line-height: 1.25; overflow: hidden; pointer-events: none; user-select: none; }
.old { display: flex; flex-direction: column; }
.old__body { flex: 1; }
.old u { color: #0000ee; }
.old__top { background: linear-gradient(#3a4a8a, #19235a); color: #ffe45c; text-align: center; padding: calc(var(--px) * 14) 0 calc(var(--px) * 10); border-bottom: calc(var(--px) * 4) ridge #889; }
.old__top b { display: block; font-size: calc(var(--px) * 31); letter-spacing: 0.03em; text-shadow: 2px 2px #000; }
.old__top small { display: block; color: #fff; font-style: italic; font-size: calc(var(--px) * 14); margin-top: calc(var(--px) * 4); }
.old__body { display: flex; }
.old__side { flex: 0 0 22%; background: #9fb3ae; padding: calc(var(--px) * 12); border-right: calc(var(--px) * 3) groove #fff; display: grid; gap: calc(var(--px) * 8); align-content: start; font-size: calc(var(--px) * 13); }
.old__badge { margin-top: calc(var(--px) * 10); background: #ff0; border: calc(var(--px) * 2) dashed red; padding: calc(var(--px) * 6); text-align: center; font-weight: bold; color: #c00; font-size: calc(var(--px) * 12); }
.old__main { flex: 1; padding: calc(var(--px) * 14) calc(var(--px) * 18); background: #f2f2e6; }
.old__main h2 { color: #b00; font-size: calc(var(--px) * 24); text-align: center; margin: 0 0 calc(var(--px) * 8); text-decoration: underline; }
.old__main p { margin: calc(var(--px) * 6) 0; font-size: calc(var(--px) * 13); text-align: justify; }
.old__img { float: left; width: 28%; margin: 0 calc(var(--px) * 12) calc(var(--px) * 4) 0; border: calc(var(--px) * 3) outset #888; aspect-ratio: 4 / 3; height: auto; object-fit: cover; filter: blur(1.2px) saturate(0.45) contrast(0.75) brightness(0.92); image-rendering: pixelated; }
.old__ticker { margin: calc(var(--px) * 10) 0; background: #000; color: #0f0; font-family: "Courier New", monospace; font-size: calc(var(--px) * 12); padding: calc(var(--px) * 4); white-space: nowrap; overflow: hidden; }
.old__btn { display: inline-block; background: #ddd; border: calc(var(--px) * 2) outset #fff; padding: calc(var(--px) * 3) calc(var(--px) * 10); font-family: Arial, sans-serif; font-size: calc(var(--px) * 12); color: #000; }
.old__foot { background: #19235a; color: #aab; text-align: center; padding: calc(var(--px) * 8); font-size: calc(var(--px) * 10); }
.old__foot span { color: #889; }

/* ==========================================================
   Process
   ========================================================== */
.process__head { max-width: 920px; }
.process__head .eyebrow { margin-bottom: 26px; color: var(--grey); }
.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); margin-top: clamp(56px, 8vw, 110px); }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line-l); }
.step { position: relative; padding-top: 38px; }
.step::before { content: ""; position: absolute; left: 0; top: 0; height: 1px; width: calc(100% + clamp(20px, 3vw, 48px)); background: var(--cobalt); transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--ease) 0.15s; }
.step:last-child::before { width: 100%; }
.step::after { content: ""; position: absolute; left: 0; top: -5px; width: 11px; height: 11px; background: var(--paper); border: 1px solid var(--cobalt); border-radius: 50%; transition: background-color 0.5s 0.1s, transform 0.5s var(--ease) 0.1s; }
.step.is-in::before { transform: scaleX(1); }
.step.is-in::after { background: var(--cobalt); transform: scale(1.15); }
.step__n { font-size: clamp(3.4rem, 2rem + 4.4vw, 6.2rem); font-weight: 600; letter-spacing: -0.06em; line-height: 0.9; color: transparent; -webkit-text-stroke: 1px var(--ink); display: block; transition: color 0.8s 0.2s; }
.step.is-in .step__n { color: var(--ink); }
.step h3 { margin-top: 26px; font-size: 1.55rem; font-weight: 600; letter-spacing: -0.03em; }
.step p { margin-top: 10px; color: var(--grey); font-size: 1rem; line-height: 1.6; max-width: 22em; }
.process__note { margin-top: clamp(40px, 5vw, 64px); color: var(--grey); font-size: 0.94rem; max-width: 40em; padding-top: 18px; border-top: 1px solid var(--line-l); }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 0; padding-left: 34px; }
  .steps::before { left: 5px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .step { padding: 0 0 52px 0; }
  .step:last-child { padding-bottom: 0; }
  .step::before { left: -29px; top: 0; width: 1px; height: calc(100% + 0px); transform: scaleY(0); transform-origin: top; }
  .step:last-child::before { width: 1px; }
  .step.is-in::before { transform: scaleY(1); }
  .step::after { left: -34px; top: 8px; }
  .step__n { font-size: 3.4rem; }
  .step h3 { margin-top: 14px; }
}

/* ==========================================================
   Why NDigital
   ========================================================== */
.why { background: var(--paper-2); }
.why__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 7vw, 120px); }
.why__in .eyebrow { margin-bottom: 26px; color: var(--grey); }
.why__grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-l); border-left: 1px solid var(--line-l); align-self: start; }
.why__item { padding: clamp(28px, 3.4vw, 48px); border-right: 1px solid var(--line-l); border-bottom: 1px solid var(--line-l); background: transparent; transition: background-color 0.5s; }
.why__item:hover { background: rgba(255, 255, 255, 0.5); }
.why__item .mono { color: var(--cobalt); }
.why__item h3 { margin-top: clamp(34px, 5vw, 70px); font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.85rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.why__item p { margin-top: 12px; color: var(--grey); font-size: 0.98rem; line-height: 1.6; }
@media (max-width: 900px) { .why__in { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .why__grid { grid-template-columns: 1fr; } .why__item h3 { margin-top: 28px; } }

/* ==========================================================
   About
   ========================================================== */
.about__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(36px, 8vw, 140px); align-items: center; }
/* Founder portrait slot — replace the <div class="portrait__art"> with <img src="assets/img/founder.jpg" alt="..."> when ready */
.portrait { position: relative; aspect-ratio: 4 / 5; background: var(--ink); color: #fff; overflow: hidden; }
.portrait__art { position: absolute; inset: 0; display: grid; place-items: center; background: repeating-linear-gradient(to right, var(--line-d) 0 1px, transparent 1px 25%), repeating-linear-gradient(to bottom, var(--line-d) 0 1px, transparent 1px 20%); }
.portrait__art::after { content: ""; position: absolute; left: 50%; top: 50%; width: 80%; aspect-ratio: 1; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(42, 80, 255, 0.45), transparent); }
.portrait__n { position: relative; z-index: 1; font-family: var(--font-serif); font-style: italic; font-size: clamp(9rem, 22vw, 17rem); line-height: 1; color: #f4f3ef; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait figcaption { position: absolute; z-index: 2; left: 20px; right: 20px; bottom: 18px; display: flex; justify-content: space-between; color: var(--grey-d); }
.about__copy .eyebrow { margin-bottom: 26px; color: var(--grey); }
.about__copy .lead { margin-top: 30px; color: #2b2f38; font-size: clamp(1.125rem, 1rem + 0.6vw, 1.45rem); line-height: 1.55; }
.about__copy .btn { margin-top: 36px; }
@media (max-width: 860px) { .about__in { grid-template-columns: 1fr; } .portrait { aspect-ratio: 5 / 4; max-width: 560px; } }

/* ==========================================================
   The standard (testimonial placeholder)
   ========================================================== */
.standard__head { max-width: 980px; }
.standard__head .eyebrow { margin-bottom: 26px; }
.standard__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(52px, 7vw, 96px); border-top: 1px solid var(--line-d); }
.standard__item { padding: 30px clamp(16px, 2vw, 30px) 10px 0; }
.standard__item + .standard__item { border-left: 1px solid var(--line-d); padding-left: clamp(16px, 2vw, 30px); }
.standard__item b { display: block; font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: clamp(2rem, 1.4rem + 1.6vw, 3.1rem); line-height: 1; color: var(--cobalt-l); letter-spacing: -0.015em; }
.standard__item h3 { margin-top: 22px; font-size: 1.15rem; font-weight: 600; letter-spacing: -0.02em; }
.standard__item p { margin-top: 8px; color: var(--grey-d); font-size: 0.97rem; line-height: 1.6; }
@media (max-width: 900px) { .standard__list { grid-template-columns: 1fr 1fr; } .standard__item:nth-child(3) { border-left: 0; padding-left: 0; } .standard__item:nth-child(n+3) { border-top: 1px solid var(--line-d); margin-top: 26px; } }
@media (max-width: 520px) { .standard__list { grid-template-columns: 1fr; } .standard__item, .standard__item + .standard__item { border-left: 0; padding-left: 0; padding-block: 26px 14px; } .standard__item + .standard__item { border-top: 1px solid var(--line-d); margin-top: 0; } }

/* ==========================================================
   FAQ
   ========================================================== */
.faq__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 7vw, 120px); }
.faq__in .eyebrow { margin-bottom: 26px; color: var(--grey); }
.faq__list { border-top: 1px solid var(--line-l); }
.faq-item { border-bottom: 1px solid var(--line-l); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px; text-align: left; padding: 26px 0; font-size: clamp(1.1rem, 1rem + 0.5vw, 1.4rem); font-weight: 550; letter-spacing: -0.02em; line-height: 1.3; }
.faq-q .plus { position: relative; flex: none; width: 36px; height: 36px; border: 1px solid var(--line-l); border-radius: 50%; transition: background-color 0.35s, border-color 0.35s, transform 0.5s var(--ease); }
.faq-q .plus::before, .faq-q .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); transition: transform 0.45s var(--ease); }
.faq-q .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-q:hover .plus { border-color: var(--ink); }
.faq-q[aria-expanded="true"] .plus { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.faq-q[aria-expanded="true"] .plus::after { transform: translate(-50%, -50%) rotate(0); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.55s var(--ease); }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 60px 28px 0; color: var(--grey); max-width: 38em; opacity: 0; transform: translateY(-6px); transition: opacity 0.4s, transform 0.5s var(--ease); }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-item.is-open .faq-a p { opacity: 1; transform: none; transition-delay: 0.1s; }
@media (max-width: 900px) { .faq__in { grid-template-columns: 1fr; } .faq-a p { padding-right: 0; } }

/* ==========================================================
   Final CTA + footer
   ========================================================== */
.cta { padding-block: clamp(100px, 14vw, 220px); overflow: clip; text-align: left; }
.cta::before { content: ""; position: absolute; left: -10%; bottom: -40%; width: 70vw; aspect-ratio: 1; max-width: 1000px; background: radial-gradient(closest-side, rgba(42, 80, 255, 0.35), transparent); pointer-events: none; }
.cta .eyebrow { margin-bottom: 30px; color: var(--cobalt-l); }
.cta h2 { font-size: clamp(2.7rem, 0.8rem + 7.2vw, 8.4rem); line-height: 0.94; max-width: 11.5em; font-weight: 600; letter-spacing: -0.05em; text-wrap: balance; }
.cta__lower { position: relative; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(28px, 6vw, 100px); align-items: end; margin-top: clamp(40px, 6vw, 84px); }
.cta__btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.cta__mail { margin-top: 28px; color: var(--grey-d); font-size: 0.95rem; }
.cta__mail a { color: #fff; border-bottom: 1px solid var(--line-d); transition: border-color 0.3s; }
.cta__mail a:hover { border-color: #fff; }
@media (max-width: 860px) { .cta__lower { grid-template-columns: 1fr; } }

.site-footer { background: var(--ink); color: #f1f1ee; border-top: 1px solid var(--line-d); padding: clamp(56px, 7vw, 96px) 0 28px; --muted: var(--grey-d); }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr)); gap: clamp(28px, 4vw, 64px); }
.site-footer .wordmark { font-size: 1.9rem; }
.site-footer__about { margin-top: 18px; color: var(--grey-d); max-width: 26em; font-size: 0.97rem; }
.site-footer h4 { font-family: var(--font-mono); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey-d); margin-bottom: 18px; }
.site-footer li + li { margin-top: 10px; }
.site-footer li a { font-size: 0.97rem; color: #e6e6e1; transition: color 0.25s; }
.site-footer li a:hover { color: var(--cobalt-l); }
.site-footer__bar { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: clamp(48px, 6vw, 88px); padding-top: 22px; border-top: 1px solid var(--line-d); color: var(--grey-d); font-size: 0.85rem; }
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__grid > :first-child { grid-column: 1 / -1; } }

/* ==========================================================
   Preview dialog
   ========================================================== */
.pv-dialog { padding: 0; border: 0; background: transparent; width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; color: #f1f1ee; overflow: hidden; }
.pv-dialog::backdrop { background: rgba(6, 8, 12, 0.88); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.pv-dialog[open] { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); animation: dlg-in 0.5s var(--ease); }
.pv-dialog[open]::backdrop { animation: fade-in 0.5s; }
@keyframes dlg-in { from { opacity: 0; transform: translateY(24px) scale(0.985); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.pv { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; width: min(100%, 1400px); height: 100%; margin-inline: auto; padding: clamp(14px, 2.4vw, 28px) var(--gutter) clamp(14px, 2vw, 24px); gap: 18px; }
.pv__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.pv__title { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; min-width: 0; }
.pv__title h2 { font-size: clamp(1.15rem, 1rem + 0.6vw, 1.6rem); font-weight: 600; letter-spacing: -0.03em; }
.pv__title .mono { color: var(--grey-d); }
.pv__ctrl { display: flex; align-items: center; gap: 10px; }
.pv__toggle { display: inline-flex; padding: 3px; border: 1px solid var(--line-d); border-radius: 99px; }
.pv__toggle button { padding: 8px 16px; border-radius: 99px; font-size: 0.84rem; font-weight: 550; color: var(--grey-d); }
.pv__toggle button[aria-pressed="true"] { background: #f1f1ee; color: var(--ink); }
.pv__icon { width: 42px; height: 42px; border: 1px solid var(--line-d); border-radius: 50%; display: grid; place-items: center; transition: background-color 0.3s, color 0.3s; }
.pv__icon:hover { background: #f1f1ee; color: var(--ink); }
.pv__icon svg { width: 16px; height: 16px; }
.pv__stage { min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); justify-items: center; align-items: stretch; }
.pv__stage .bw--scroll { width: 100%; max-width: 1240px; }
.pv__stage .ph--scroll { aspect-ratio: 390 / 844; height: 100%; max-height: 100%; }
.pv__stage > * { animation: fade-in 0.5s var(--ease); }
.pv__foot { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 4fr) auto; gap: clamp(16px, 4vw, 56px); align-items: center; padding-top: 16px; border-top: 1px solid var(--line-d); }
.pv__foot p { color: var(--grey-d); font-size: 0.92rem; line-height: 1.5; }
.pv__foot .honest { font-size: 0.8rem; opacity: 0.85; }
@media (max-width: 860px) { .pv__foot { grid-template-columns: 1fr; gap: 12px; } .pv__foot .honest, .pv__foot .rat { display: none; } .pv { gap: 12px; } }

/* ==========================================================
   Page heads, contact, simple pages
   ========================================================== */
.page-head { background: var(--ink); color: #f4f3ef; padding: calc(var(--header-h) + clamp(56px, 9vw, 130px)) 0 clamp(60px, 8vw, 110px); position: relative; overflow: clip; --muted: var(--grey-d); --accent-text: var(--cobalt-l); }
.page-head .eyebrow { color: var(--cobalt-l); margin-bottom: 28px; }
.page-head .display { font-size: clamp(2.8rem, 0.8rem + 6.4vw, 7.2rem); max-width: 10em; }
.page-head .lead { margin-top: 28px; }
.contact { padding-block: clamp(56px, 8vw, 120px); }
.contact__in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(36px, 7vw, 120px); align-items: start; }
.contact__side { position: sticky; top: 100px; display: grid; gap: 34px; }
.contact__side h3 { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; color: var(--grey); margin-bottom: 10px; }
.contact__side p, .contact__side a { font-size: 1.05rem; }
.contact__side a.mail { font-size: clamp(1.1rem, 0.9rem + 0.8vw, 1.45rem); font-weight: 550; letter-spacing: -0.02em; border-bottom: 1px solid var(--cobalt); }
.contact__side ol { counter-reset: n; display: grid; gap: 12px; }
.contact__side ol li { counter-increment: n; display: grid; grid-template-columns: 30px 1fr; font-size: 0.98rem; color: #3a3f48; }
.contact__side ol li::before { content: "0" counter(n); font-family: var(--font-mono); font-size: 0.72rem; color: var(--cobalt); padding-top: 4px; }
@media (max-width: 900px) { .contact__in { grid-template-columns: 1fr; } .contact__side { position: static; order: 2; } }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 24px; padding: clamp(24px, 4vw, 52px); background: #fff; border: 1px solid var(--line-l); }
.field { display: grid; gap: 8px; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-size: 0.88rem; font-weight: 600; letter-spacing: -0.005em; padding: 0; }
.field .opt { font-weight: 400; color: var(--grey); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper); border: 1px solid var(--line-l); border-radius: 3px;
  padding: 15px 16px; min-height: 54px; transition: border-color 0.25s, box-shadow 0.25s, background-color 0.25s; -webkit-appearance: none; appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' fill='none' stroke='%230a0c10' stroke-width='1.6'%3E%3Cpath d='M1 1.5l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
.field textarea { min-height: 170px; resize: vertical; line-height: 1.55; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(10, 12, 16, 0.35); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--cobalt); background: #fff; box-shadow: 0 0 0 4px rgba(42, 80, 255, 0.14); }
.field [aria-invalid="true"] { border-color: #c4361d; background: #fff7f5; }
.field .err { display: none; color: #b02f18; font-size: 0.86rem; font-weight: 500; }
.field.has-error .err { display: block; }
.form__foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 20px 28px; flex-wrap: wrap; padding-top: 6px; }
.form__fine { color: var(--grey); font-size: 0.86rem; max-width: 30em; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { grid-column: 1 / -1; padding: 18px 20px; border: 1px solid var(--line-l); border-left: 3px solid var(--cobalt); background: var(--paper); font-size: 0.97rem; }
.form-status[hidden] { display: none; }
.form-status.is-error { border-left-color: #c4361d; }
.form-status a { text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.form-status .btn { margin-top: 14px; }
.form.is-sending .btn { opacity: 0.6; pointer-events: none; }
.form-success { padding: clamp(32px, 5vw, 64px); background: #fff; border: 1px solid var(--line-l); }
.form-success h2 { font-size: clamp(1.8rem, 1.2rem + 2vw, 3rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1.05; }
.form-success p { margin-top: 16px; color: var(--grey); max-width: 32em; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }

.simple { min-height: 100svh; display: grid; align-content: center; justify-items: start; gap: 22px; }
.simple .display { font-size: clamp(3rem, 1rem + 8vw, 9rem); }

/* ---------- scroll reveals (JS only) ---------- */
.js .reveal { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
  .js .reveal, .js .fade-up, .js .hv__item { opacity: 1 !important; transform: none !important; }
  .js [data-split] .w > span { transform: none !important; }
}
.form-status a.btn { text-decoration: none; }
