/* =====================================================================
   AUREN — Digital Design Studio
   Dark, editorial, monochrome with optional accent. Schibsted Grotesk
   for display + JetBrains Mono for labels.
   ===================================================================== */

:root {
  /* surfaces */
  --bg: #0A0A0B;
  --bg-1: #0E0E10;
  --bg-2: #141417;
  --bg-3: #1A1A1E;
  --card: #0F0F12;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);

  /* ink */
  --ink: #F4F3F0;
  --ink-soft: #B7B7B2;
  --ink-mute: #76766F;
  --ink-faint: #494946;

  /* accent (toggleable via tweaks) */
  --accent: #F4F3F0;
  --accent-ink: #0A0A0B;
  --accent-soft: rgba(244, 243, 240, 0.12);

  /* type */
  --sans: "Schibsted Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* metrics */
  --pad: clamp(20px, 5vw, 88px);
  --maxw: 1320px;
  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

::selection { background: var(--accent); color: var(--accent-ink); }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { display: block; max-width: 100%; }

/* scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #26262b; border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #34343a; }

/* =========================== layout =========================== */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }
.section { position: relative; padding-block: clamp(72px, 11vw, 168px); scroll-margin-top: 110px; }
.divline { height: 1px; background: var(--line); width: 100%; }

/* shared eyebrow / section label */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-mute);
}
.eyebrow .tag {
  color: var(--accent); border: 1px solid var(--line-strong);
  border-radius: 100px; padding: 3px 9px; font-size: 11px;
  background: var(--accent-soft);
}

/* big section headline with italic accent words */
.headline {
  font-weight: 600; line-height: 0.98; letter-spacing: -0.03em;
  font-size: clamp(38px, 6.4vw, 92px); text-wrap: balance;
}
.headline em { font-style: italic; font-weight: 500; }
.headline .mut { color: var(--ink-mute); }

.lede { color: var(--ink-soft); font-size: clamp(16px, 1.4vw, 19px); max-width: 56ch; text-wrap: pretty; }

/* =========================== buttons =========================== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 500; letter-spacing: -0.01em;
  padding: 14px 22px; border-radius: 100px;
  transition: transform 0.4s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s;
  will-change: transform;
}
.btn .ar { transition: transform 0.45s var(--ease); }
.btn:hover .ar { transform: translate(3px, -3px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--ink); }
.btn-ghost:hover { background: rgba(255,255,255,0.05); border-color: var(--ink-mute); }
.btn-sm { padding: 11px 16px; font-size: 14px; }

/* link-arrow */
.linka { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 500;
  border-bottom: 1px solid var(--line-strong); padding-bottom: 3px; transition: gap 0.3s var(--ease), border-color 0.3s; }
.linka:hover { gap: 12px; border-color: var(--ink); }

/* =========================== nav =========================== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 80;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad);
  transition: background 0.4s var(--ease), backdrop-filter 0.4s, border-color 0.4s, padding 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.solid {
  background: rgba(10, 10, 11, 0.72); backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line); padding-block: 13px;
}
.nav-logo { display: inline-flex; align-items: center; font-weight: 600; font-size: 20px; line-height: 1; }
.nav-logo .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); display: inline-block; }
.logo-word { font-family: "Arimo", "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: 700; letter-spacing: -0.01em; text-transform: uppercase; }
.logo-dot { color: var(--ink); }
.logo-img { display: block; width: auto; }
.nav .logo-img { transform: translateY(5px); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { font-size: 14px; color: var(--ink-soft); padding: 8px 14px; border-radius: 100px; transition: color 0.25s, background 0.25s; }
.nav-links a:hover { color: var(--ink); background: rgba(255,255,255,0.05); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); align-items: center; justify-content: center; }
.nav-burger span { display: block; width: 18px; height: 1.5px; background: var(--ink); position: relative; transition: transform 0.35s var(--ease), opacity 0.2s; }
.nav-burger span::before, .nav-burger span::after { content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: var(--ink); transition: transform 0.35s var(--ease); }
.nav-burger span::before { top: -6px; }
.nav-burger span::after { top: 6px; }
.nav-burger.open span { background: transparent; }
.nav-burger.open span::before { transform: translateY(6px) rotate(45deg); }
.nav-burger.open span::after { transform: translateY(-6px) rotate(-45deg); }

/* mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 75; background: rgba(8,8,9,0.97); backdrop-filter: blur(20px);
  display: flex; flex-direction: column; justify-content: center; padding: var(--pad);
  opacity: 0; pointer-events: none; transition: opacity 0.4s var(--ease); }
.drawer.open { opacity: 1; pointer-events: auto; }
.drawer a { font-size: clamp(34px, 9vw, 56px); font-weight: 600; letter-spacing: -0.03em; padding: 10px 0;
  border-bottom: 1px solid var(--line); display: flex; align-items: baseline; gap: 16px; color: var(--ink); }
.drawer a .n { font-family: var(--mono); font-size: 13px; color: var(--ink-mute); font-weight: 400; }

/* =========================== hero =========================== */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end;
  padding-bottom: clamp(28px, 4vw, 56px); padding-top: 140px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 70% 0%, rgba(255,255,255,0.05), transparent 55%),
              linear-gradient(180deg, rgba(10,10,11,0.2) 0%, rgba(10,10,11,0.55) 55%, var(--bg) 100%); }
.hero-grid { display: var(--hero-grid-display, block); position: absolute; inset: 0; z-index: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(100% 70% at 50% 30%, #000 30%, transparent 75%); opacity: 0.5; }
.hero-noise { position: absolute; inset: 0; z-index: 1; opacity: 0.5; mix-blend-mode: overlay; pointer-events: none; }

/* hero aura — slow, monochrome breathing glow */
.hero-aura { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  mask-image: radial-gradient(110% 85% at 50% 25%, #000 35%, transparent 80%); }
.hero-aura .aura { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55;
  will-change: transform, opacity; }
.hero-aura .a1 { width: 46vw; height: 46vw; left: 8%; top: -12%;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.10), transparent 62%);
  animation: auraDrift1 24s var(--ease) infinite alternate; }
.hero-aura .a2 { width: 38vw; height: 38vw; right: 6%; top: 2%;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.07), transparent 60%);
  animation: auraDrift2 30s var(--ease) infinite alternate; }
@keyframes auraDrift1 {
  0%   { transform: translate3d(0, 0, 0) scale(1); opacity: 0.45; }
  100% { transform: translate3d(7vw, 5vh, 0) scale(1.18); opacity: 0.7; }
}
@keyframes auraDrift2 {
  0%   { transform: translate3d(0, 0, 0) scale(1.1); opacity: 0.35; }
  100% { transform: translate3d(-6vw, 4vh, 0) scale(0.9); opacity: 0.6; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-aura .aura { animation: none; }
}
.hero-inner { position: relative; z-index: 3; width: 100%; }
.hero h1 { font-weight: 600; letter-spacing: -0.045em; line-height: 0.92;
  font-size: clamp(36px, 6.6vw, 108px); text-wrap: balance; margin: 22px 0 0; }
.hero h1 em { font-style: italic; font-weight: 500; }
.hero-sub { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px; margin-top: clamp(26px, 4vw, 48px); }
.hero-sub p { max-width: 42ch; color: var(--ink-soft); font-size: clamp(16px, 1.5vw, 20px); }
.hero-actions { display: flex; align-items: center; gap: 14px; }
.hero-scroll { position: absolute; bottom: 28px; right: var(--pad); z-index: 3; font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mute);
  display: flex; align-items: center; gap: 10px; }
.hero-scroll .ln { width: 40px; height: 1px; background: var(--line-strong); position: relative; overflow: hidden; }
.hero-scroll .ln::after { content:""; position:absolute; inset:0; width: 40%; background: var(--accent); animation: slide 2.2s var(--ease) infinite; }
@keyframes slide { 0%{transform:translateX(-100%)} 100%{transform:translateX(250%)} }

/* hero treatment B (split) */
.hero.tB .hero-inner { display: grid; grid-template-columns: 1.3fr 0.9fr; gap: 40px; align-items: end; }
.hero.tB .hero-side { display: flex; flex-direction: column; gap: 16px; align-self: end; }
.hero.tB .hero-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: rgba(15,15,18,0.5); backdrop-filter: blur(8px); }

/* hero treatment C (centered) */
.hero.tC { justify-content: center; text-align: center; align-items: center; }
.hero.tC .hero-sub { justify-content: center; flex-direction: column; align-items: center; text-align: center; }
.hero.tC .hero-inner { max-width: 1100px; margin: 0 auto; }
.hero.tC h1 { font-size: clamp(46px, 8.2vw, 132px); }

/* stats strip */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); margin-top: clamp(36px, 5vw, 64px); }
.stat { padding: 26px 4px 4px; text-align: left; display: flex; flex-direction: column; align-items: flex-start; }
.stat .v { font-size: clamp(30px, 4vw, 50px); font-weight: 600; letter-spacing: -0.03em; display: flex; align-items: baseline; gap: 8px; }
.stat .v small { font-size: 0.5em; color: var(--accent); font-weight: 500; }
.stat .l { color: var(--ink-mute); font-size: 13px; margin-top: 6px; font-family: var(--mono); letter-spacing: 0.02em; text-align: left; }
.stats .stat + .stat { border-left: 1px solid var(--line); padding-left: 26px; }

/* =========================== work =========================== */
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(38px, 5vw, 64px); }
.sec-head .left { display: flex; flex-direction: column; gap: 18px; }

.work-list { border-top: 1px solid var(--line); }
.work-row { position: relative; display: grid; grid-template-columns: 56px 1fr auto auto; align-items: center; gap: 24px;
  padding: clamp(22px, 3vw, 38px) 8px; border-bottom: 1px solid var(--line); cursor: pointer;
  transition: padding-left 0.5s var(--ease), background 0.4s; }
.work-row:hover { padding-left: 24px; background: linear-gradient(90deg, rgba(255,255,255,0.025), transparent 60%); }
.work-row .wn { font-family: var(--mono); font-size: 13px; color: var(--ink-mute); }
.work-row .wt { font-size: clamp(26px, 3.6vw, 52px); font-weight: 600; letter-spacing: -0.03em; transition: color 0.3s; }
.work-row:hover .wt { color: #fff; }
.work-row .wmeta { color: var(--ink-mute); font-family: var(--mono); font-size: 13px; white-space: nowrap; }
.work-row .wyear { color: var(--ink-mute); font-family: var(--mono); font-size: 13px; }
.work-row .wgo { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center; transition: background 0.35s, color 0.35s, transform 0.45s var(--ease); }
.work-row:hover .wgo { background: var(--accent); color: var(--accent-ink); transform: rotate(45deg); }

/* floating preview that follows cursor */
.work-preview { position: fixed; z-index: 60; width: 320px; height: 220px; border-radius: 12px; overflow: hidden;
  pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(0.85); transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  box-shadow: 0 30px 70px rgba(0,0,0,0.6); border: 1px solid var(--line-strong); }
.work-preview.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* =========================== services =========================== */
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.svc { background: var(--bg-1); padding: clamp(28px, 3.4vw, 48px); position: relative; overflow: hidden; transition: background 0.4s; min-height: 320px; display: flex; flex-direction: column; }
.svc::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.45s var(--ease);
  background: radial-gradient(120% 80% at 50% -10%, var(--accent-soft), transparent 60%); box-shadow: inset 0 1px 0 0 var(--accent); }
.svc:hover { background: var(--bg-2); }
.svc:hover::before { opacity: 1; }
.svc-bignum { position: absolute; top: clamp(24px,2.8vw,38px); right: clamp(28px,3.4vw,48px); font-family: var(--mono); font-weight: 500;
  font-size: clamp(38px, 4.4vw, 60px); line-height: 0.8; letter-spacing: -0.03em; color: transparent;
  -webkit-text-stroke: 1px var(--line-strong); pointer-events: none; transition: -webkit-text-stroke-color 0.45s; }
.svc:hover .svc-bignum { -webkit-text-stroke-color: var(--accent); }
.svc-icon { width: 56px; height: 56px; border-radius: 12px; border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center; color: var(--accent); margin-bottom: 26px;
  background: var(--accent-soft); transition: transform 0.5s var(--ease), background 0.4s, border-color 0.4s; }
.svc:hover .svc-icon { transform: rotate(-8deg) translateY(-3px); border-color: var(--accent); }
.svc h3 { font-size: clamp(24px, 2.5vw, 34px); font-weight: 600; letter-spacing: -0.02em; margin: 0 0 12px; transition: color 0.35s; }
.svc:hover h3 { color: var(--accent); }
.svc p { color: var(--ink-soft); max-width: 42ch; }
.svc .svc-tags { margin-top: auto; padding-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.svc .svc-tags span { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 100px; padding: 6px 12px 6px 8px; transition: border-color 0.3s, color 0.3s; }
.svc .svc-tags .ti { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 5px; border: 1px solid var(--line); color: var(--accent); flex-shrink: 0; }
.svc:hover .svc-tags span { border-color: var(--accent); color: var(--ink); }
.svc:hover .svc-tags .ti { border-color: var(--accent); background: var(--accent-soft); }
.svc .svc-go { position: absolute; bottom: clamp(28px,3.4vw,48px); right: clamp(28px,3.4vw,48px); width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--ink-mute);
  transition: transform 0.45s var(--ease), background 0.35s, color 0.35s, border-color 0.35s; }
.svc:hover .svc-go { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); transform: rotate(45deg); }

/* =========================== process (sticky stack) =========================== */
.proc-stack { display: flex; flex-direction: column; gap: clamp(24px, 4vw, 60px); padding-bottom: 8vh; }
.proc-card {
  position: sticky;
  top: calc(96px + var(--i) * 16px);
  display: grid; grid-template-columns: 0.62fr 1fr; align-items: stretch;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--bg-1); min-height: clamp(320px, 42vh, 440px);
  box-shadow: 0 -8px 40px rgba(0,0,0,0.5);
  transition: border-color 0.4s;
}
.proc-card:hover { border-color: var(--line-strong); }
.proc-img { position: relative; min-height: 260px; border-right: 1px solid var(--line); }
.proc-art { position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  background: linear-gradient(160deg, var(--bg-2), var(--bg-1)); }
.proc-body { padding: clamp(28px, 4vw, 64px); display: flex; flex-direction: column; justify-content: center; }
.proc-body .step { font-family: var(--mono); font-size: 14px; color: var(--ink-mute); margin-bottom: 22px; }
.proc-body .step .step-n { color: var(--accent); letter-spacing: 0.08em; }
.proc-body h3 { font-size: clamp(30px, 4vw, 56px); font-weight: 600; letter-spacing: -0.03em; margin: 0 0 18px; }
.proc-body p { color: var(--ink-soft); margin-bottom: 28px; max-width: 44ch; font-size: clamp(16px, 1.3vw, 18px); }
.proc-chips { display: flex; flex-wrap: wrap; gap: 18px; }
.proc-chips span { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 9px; }
.proc-chips span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

/* =========================== studio =========================== */
.studio-hero { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 21/9; }
.studio-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px,4vw,72px); align-items: center; margin-top: clamp(40px,5vw,72px); }
.studio-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 32px; }
.studio-meta .cell { background: var(--bg-1); padding: 22px; }
.studio-meta .cell .k { font-family: var(--mono); font-size: 12px; color: var(--ink-mute); text-transform: uppercase; letter-spacing: 0.05em; }
.studio-meta .cell .vv { font-size: clamp(22px,2.4vw,30px); font-weight: 600; letter-spacing: -0.02em; margin-top: 8px; }
.studio-photo { aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; position: relative;
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 80% at 70% 10%, rgba(255,255,255,0.06), transparent 60%),
    repeating-linear-gradient(135deg, #16161a 0 14px, #101013 14px 28px); }
.studio-coords { position: absolute; left: 20px; bottom: 20px; z-index: 3; font-family: var(--mono); font-size: 12px; color: var(--ink-soft);
  background: rgba(10,10,11,0.6); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 100px; padding: 8px 14px; }
.studio-badge { position: absolute; right: 20px; top: 20px; z-index: 3; font-family: var(--mono); font-size: 12px; color: var(--ink-soft);
  background: rgba(10,10,11,0.6); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 100px; padding: 8px 14px; }

/* =========================== contact =========================== */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(28px, 4vw, 72px); }
.contact-info .channels { display: flex; flex-direction: column; gap: 2px; margin-top: 36px; border-top: 1px solid var(--line); }
.channel { display: flex; align-items: center; justify-content: space-between; padding: 20px 4px; border-bottom: 1px solid var(--line); transition: padding-left 0.4s var(--ease); }
.channel:hover { padding-left: 12px; }
.channel .ck { font-family: var(--mono); font-size: 12px; color: var(--ink-mute); text-transform: uppercase; letter-spacing: 0.05em; }
.channel .cv { font-size: clamp(17px, 1.8vw, 22px); font-weight: 500; letter-spacing: -0.01em; }
.contact-badges { display: flex; gap: 10px; margin-top: 28px; flex-wrap: wrap; }
.pill { font-family: var(--mono); font-size: 12px; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 100px; padding: 8px 14px; display: inline-flex; gap: 8px; align-items: center; }
.pill .gd { width: 7px; height: 7px; border-radius: 50%; background: #61d480; box-shadow: 0 0 0 0 rgba(97,212,128,0.5); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(97,212,128,0.5)} 70%{box-shadow:0 0 0 8px rgba(97,212,128,0)} 100%{box-shadow:0 0 0 0 rgba(97,212,128,0)} }

.form-card { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 44px); background: var(--bg-1); }
.form-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.form-head .ft { font-size: clamp(22px,2.2vw,30px); font-weight: 600; letter-spacing: -0.02em; }
.form-head .ft em { font-style: italic; font-weight: 500; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--mono); font-size: 12px; color: var(--ink-mute); text-transform: uppercase; letter-spacing: 0.04em; }
.field label .opt { color: var(--ink-faint); text-transform: none; }
.field input, .field textarea {
  background: var(--bg-3); border: 1px solid var(--line); border-radius: 10px; padding: 13px 15px;
  color: var(--ink); font-family: var(--sans); font-size: 15px; transition: border-color 0.25s, background 0.25s; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink-mute); background: #1f1f24; }
.field.err input, .field.err textarea { border-color: #d4615a; background: rgba(212,97,90,0.06); }
.field .msg { font-size: 12px; color: #d4615a; font-family: var(--mono); }
.field textarea { resize: vertical; min-height: 96px; }
.hp { position: absolute; left: -9999px; opacity: 0; }
.consent { display: flex; align-items: flex-start; gap: 12px; margin-top: 18px; }
.consent input { margin-top: 3px; accent-color: var(--accent); width: 16px; height: 16px; flex-shrink: 0; }
.consent label { font-size: 13px; color: var(--ink-mute); }
.consent a { color: var(--ink-soft); border-bottom: 1px solid var(--line-strong); }
.form-submit { margin-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.form-success { text-align: center; padding: 40px 20px; }
.form-success .ok { width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--line-strong); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }

/* =========================== founder =========================== */
.founder-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(28px,4vw,64px); align-items: center; }
.founder-photo { aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; position: relative; }
.founder-cap { position: absolute; left: 18px; bottom: 18px; z-index: 3; font-family: var(--mono); font-size: 12px; color: var(--ink-soft);
  font-style: italic; background: rgba(10,10,11,0.55); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 100px; padding: 7px 13px; }
.founder-roles { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0; }
.founder-roles span { font-family: var(--mono); font-size: 12px; border: 1px solid var(--line-strong); border-radius: 100px; padding: 6px 13px; color: var(--ink-soft); }
.minigrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 28px; }
.minigrid .mc { background: var(--bg-1); padding: 18px; }
.minigrid .mc .mv { font-size: clamp(22px,2.4vw,32px); font-weight: 600; letter-spacing: -0.02em; }
.minigrid .mc .ml { font-family: var(--mono); font-size: 11px; color: var(--ink-mute); margin-top: 6px; text-transform: uppercase; letter-spacing: 0.04em; }

/* =========================== results =========================== */
.results-top { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.results-top .rc { background: var(--bg-1); padding: clamp(26px,3vw,42px); }
.results-top .rc .rv { font-size: clamp(34px,4.6vw,62px); font-weight: 600; letter-spacing: -0.03em; }
.results-top .rc .rl { color: var(--ink-mute); font-family: var(--mono); font-size: 13px; margin-top: 8px; }
.results-bottom { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px,3vw,48px); margin-top: clamp(28px,4vw,56px); }
.feat-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feat { background: var(--bg-1); padding: 22px 24px; display: flex; gap: 16px; align-items: flex-start; transition: background 0.3s; }
.feat:hover { background: var(--bg-2); }
.feat .fk { font-family: var(--mono); font-size: 13px; color: var(--accent); min-width: 24px; }
.feat .ft2 { font-weight: 600; letter-spacing: -0.01em; }
.feat .fd { color: var(--ink-mute); font-size: 14px; }

/* lighthouse */
.lh-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.lh { background: var(--bg-1); padding: 26px 18px; text-align: center; }
.lh .ring { width: 88px; height: 88px; margin: 0 auto 14px; position: relative; }
.lh .ring svg { transform: rotate(-90deg); }
.lh .ring .num { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 26px; letter-spacing: -0.02em; }
.lh .lhl { font-family: var(--mono); font-size: 12px; color: var(--ink-mute); text-transform: uppercase; letter-spacing: 0.04em; }

/* =========================== faq =========================== */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { display: flex; align-items: center; gap: 20px; padding: clamp(20px,2.4vw,30px) 4px; cursor: pointer; transition: padding-left 0.4s var(--ease); width: 100%; text-align: left; }
.faq-q:hover { padding-left: 12px; }
.faq-q .fqn { font-family: var(--mono); font-size: 13px; color: var(--ink-mute); }
.faq-q .fqt { font-size: clamp(18px, 2vw, 26px); font-weight: 500; letter-spacing: -0.02em; flex: 1; }
.faq-q .fqi { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-strong); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background 0.3s, color 0.3s; position: relative; }
.faq-q .fqi::before, .faq-q .fqi::after { content: ""; position: absolute; background: currentColor; transition: transform 0.35s var(--ease), opacity 0.3s; }
.faq-q .fqi::before { width: 14px; height: 1.5px; }
.faq-q .fqi::after { width: 1.5px; height: 14px; }
.faq-item.open .fqi { background: var(--accent); color: var(--accent-ink); }
.faq-item.open .fqi::after { transform: scaleY(0); opacity: 0; }
.faq-a { overflow: hidden; height: 0; transition: height 0.45s var(--ease); }
.faq-a .inner { padding: 0 58px 28px; color: var(--ink-soft); max-width: 72ch; font-size: 15px; line-height: 1.6; }

/* =========================== footer =========================== */
.footer { border-top: 1px solid var(--line); padding-top: clamp(56px, 7vw, 100px); }
.footer-top { display: grid; grid-template-columns: 2.3fr 1fr 1fr 1fr; gap: clamp(24px,3vw,48px); padding-bottom: clamp(48px,6vw,80px); }
.footer-big { font-size: clamp(34px, 5vw, 72px); font-weight: 600; letter-spacing: -0.04em; line-height: 0.98; }
.footer-big em { font-style: italic; font-weight: 500; }
.footer-col h4 { font-family: var(--mono); font-size: 12px; color: var(--ink-mute); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 18px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { color: var(--ink-soft); font-size: 15px; transition: color 0.25s; display: inline-flex; align-items: center; gap: 6px; }
.footer-col a:hover { color: var(--ink); }
.footer-col.privacy-shift { transform: translateX(-22px); } /* desktop-only optical alignment nudge */
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 26px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.footer-bottom .fb-meta { font-family: var(--mono); font-size: 12px; color: var(--ink-mute); }

/* =========================== reveal animation =========================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.07s; }
.reveal.d2 { transition-delay: 0.14s; }
.reveal.d3 { transition-delay: 0.21s; }
.reveal.d4 { transition-delay: 0.28s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  * { animation-duration: 0.001ms !important; }
}

/* image placeholder (when no image-slot used / fallback) */
.ph { position: absolute; inset: 0; background:
  repeating-linear-gradient(135deg, #141417 0 12px, #101013 12px 24px);
  display: flex; align-items: center; justify-content: center; }
.ph .phl { font-family: var(--mono); font-size: 12px; color: var(--ink-mute); letter-spacing: 0.05em;
  border: 1px solid var(--line); border-radius: 100px; padding: 7px 14px; background: rgba(10,10,11,0.5); }

image-slot { display: block; width: 100%; height: 100%; position: absolute; inset: 0; }

/* Build illustration — floating top layer + pulsing node */
.bld-top { animation: bldFloat 4.6s ease-in-out infinite; will-change: transform; }
@keyframes bldFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.bld-dot { transform-box: fill-box; transform-origin: center; animation: bldPulse 2.6s ease-in-out infinite; }
@keyframes bldPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.22); } }

/* Launch & Care — growth graph build-in + living idle */
.lc-pt { opacity: 0; transform: scale(0); transform-box: fill-box; transform-origin: center; }
.lc-glow, .lc-line { stroke-dasharray: 100; stroke-dashoffset: 100; }
.lc-particle { offset-path: path("M70 240 C 180 232 250 150 410 56"); offset-rotate: 0deg;
  opacity: 0; filter: drop-shadow(0 0 4px var(--accent)); }
.lc-node { opacity: 0; }
.lc-ripple, .lc-ring, .lc-core, .lc-dash { transform-box: fill-box; transform-origin: center; }
.lc-ripple { opacity: 0; }

@keyframes lcPop { 0% { opacity: 0; transform: scale(0); } 70% { opacity: 1; transform: scale(1.4); } 100% { opacity: 1; transform: scale(1); } }
@keyframes lcBlink { 0%, 100% { opacity: 0.6; } 7% { opacity: 1; } 16% { opacity: 0.6; } }
@keyframes lcDraw { to { stroke-dashoffset: 0; } }
@keyframes lcFade { to { opacity: 1; } }
@keyframes lcRipple { 0% { opacity: 0.7; transform: scale(1); } 100% { opacity: 0; transform: scale(3.1); } }
@keyframes lcCorePulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.15); } }
@keyframes lcSpin { to { transform: rotate(360deg); } }
@keyframes lcTravel {
  0% { offset-distance: 0%; opacity: 0; }
  8% { opacity: 1; }
  88% { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}

/* play timeline (triggered on scroll-into-view) */
.lc-play .lc-pt { animation: lcPop 0.4s cubic-bezier(.34,1.56,.64,1) var(--d) forwards,
  lcBlink var(--bd, 6s) ease-in-out calc(var(--d) + 2.6s) infinite; }
.lc-play .lc-glow { animation: lcDraw 2.4s cubic-bezier(.4,0,.2,1) 0.7s forwards; }
.lc-play .lc-line { animation: lcDraw 2.4s cubic-bezier(.4,0,.2,1) 0.7s forwards; }
.lc-play .lc-node { animation: lcFade 0.4s ease 3.05s forwards; }
.lc-play .lc-ripple { animation: lcRipple 2.8s ease-out 3.15s infinite; }
.lc-play .lc-core { animation: lcCorePulse 2.5s ease-in-out 3.6s infinite; }
.lc-play .lc-dash { animation: lcSpin 16s linear 3.6s infinite; }
.lc-play .lc-particle { animation: lcTravel 4s linear 3.7s infinite; }

@media (prefers-reduced-motion: reduce) {
  .bld-top, .bld-dot { animation: none; }
  .lc-pt { opacity: 1; transform: none; }
  .lc-glow, .lc-line { stroke-dashoffset: 0; }
  .lc-node { opacity: 1; }
  .lc-particle { opacity: 0; }
}

/* =========================== legal pages =========================== */
.legal-head { position: relative; padding-top: clamp(140px, 16vw, 220px); padding-bottom: clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.legal-head .hero-grid { position: absolute; inset: 0; z-index: 0; }
.legal-head .wrap { position: relative; z-index: 1; }
.legal-title { font-weight: 600; line-height: 0.98; letter-spacing: -0.035em; font-size: clamp(44px, 7vw, 104px); text-wrap: balance; margin-top: 22px; }
.legal-title em { font-style: italic; font-weight: 500; }
.legal-meta { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 30px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-mute); }
.legal-meta .dotsep { width: 5px; height: 5px; border-radius: 50%; background: var(--ink-faint); align-self: center; }

.legal-layout { display: grid; grid-template-columns: 240px 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; padding-block: clamp(56px, 8vw, 104px); }
.legal-toc { position: sticky; top: 110px; }
.legal-toc h4 { font-family: var(--mono); font-size: 11px; color: var(--ink-mute); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.legal-toc ol { list-style: none; display: flex; flex-direction: column; gap: 2px; counter-reset: toc; }
.legal-toc a { display: flex; gap: 12px; align-items: baseline; padding: 7px 0; color: var(--ink-mute); font-size: 14px; transition: color 0.25s; border-bottom: 1px solid transparent; }
.legal-toc a::before { counter-increment: toc; content: counter(toc, decimal-leading-zero); font-family: var(--mono); font-size: 11px; color: var(--ink-faint); }
.legal-toc a:hover { color: var(--ink); }

.legal-body { max-width: 72ch; }
.legal-intro { color: var(--ink-soft); font-size: clamp(18px, 1.8vw, 22px); line-height: 1.5; letter-spacing: -0.01em; text-wrap: pretty; padding-bottom: clamp(36px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.legal-block { padding-block: clamp(34px, 4.5vw, 52px); border-bottom: 1px solid var(--line); scroll-margin-top: 100px; }
.legal-block:last-child { border-bottom: none; }
.legal-block > h2 { display: flex; align-items: baseline; gap: 16px; font-size: clamp(24px, 2.6vw, 34px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.05; margin-bottom: 22px; }
.legal-block > h2 .ix { font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--accent); padding-top: 4px; }
.legal-block h3 { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; margin: 28px 0 10px; }
.legal-block p { color: var(--ink-soft); font-size: 16px; line-height: 1.62; margin-bottom: 16px; text-wrap: pretty; }
.legal-block p:last-child { margin-bottom: 0; }
.legal-block a { color: var(--ink); border-bottom: 1px solid var(--line-strong); padding-bottom: 1px; transition: border-color 0.25s; }
.legal-block a:hover { border-color: var(--ink); }
.legal-block ul { list-style: none; display: flex; flex-direction: column; gap: 12px; margin: 6px 0 16px; }
.legal-block ul li { position: relative; padding-left: 26px; color: var(--ink-soft); font-size: 16px; line-height: 1.6; }
.legal-block ul li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 7px; height: 7px; border: 1px solid var(--ink-mute); border-radius: 2px; transform: rotate(45deg); }
.legal-block ul li strong { color: var(--ink); font-weight: 600; }
.legal-callout { margin-top: 22px; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.legal-callout p { margin-bottom: 0; font-size: 15px; }

@media (max-width: 880px) {
  .legal-layout { grid-template-columns: 1fr; gap: 8px; }
  .legal-toc { position: static; display: none; }
}

/* =========================== responsive =========================== */
@media (max-width: 1024px) {
  .hero.tB .hero-inner { grid-template-columns: 1fr; }
  .hero.tB .hero-side { flex-direction: row; flex-wrap: wrap; }
  .contact-grid, .founder-grid, .studio-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-big { grid-column: 1 / -1; }
  .footer-col.privacy-shift { transform: none; } /* drop desktop nudge once columns reflow */
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav .btn-primary { display: none; }
  .svc-grid, .results-top, .lh-grid, .results-bottom { grid-template-columns: 1fr; }
  /* keep the desktop sticky-stack on mobile: single column, smaller pin offset + stagger */
  .proc-card { grid-template-columns: 1fr; min-height: 0; position: sticky; top: calc(84px + var(--i) * 12px); }
  .proc-img { min-height: 170px; border-right: none; border-bottom: 1px solid var(--line); }
  .proc-stack { gap: 20px; }
  .minigrid { grid-template-columns: repeat(2, 1fr); }
  /* keep the 3 hero stats on one row like desktop (compacted to fit a phone) */
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stats .stat + .stat { border-left: 1px solid var(--line); border-top: none; padding-left: 12px; }
  .stat { padding: 16px 2px 2px; }
  .stat .v { font-size: clamp(19px, 6vw, 26px); gap: 4px; }
  .stat .v small { font-size: 0.46em; }
  .stat .l { font-size: 10px; margin-top: 5px; }
  .form-grid { grid-template-columns: 1fr; }
  .work-row { grid-template-columns: 32px 1fr auto; gap: 14px; }
  .work-row .wmeta { display: none; }
  /* logo/CTA on its own row, then the 3 link columns side-by-side like desktop */
  /* short Sitemap column gets less width; the two wider link columns get more */
  .footer-top { grid-template-columns: 0.66fr 1.12fr 1.22fr; gap: 12px; }
  .footer-top > :first-child { grid-column: 1 / -1; margin-bottom: 32px; } /* logo/CTA spans its own row; gap before the 3 columns */
  .footer-col h4 { margin-bottom: 14px; font-size: 11px; }
  .faq-a .inner { padding: 0 0 24px; }
  .work-preview { display: none; }
  /* comfortable touch targets for footer links on phones (>=44px) */
  .footer-col ul { gap: 6px; }
  .footer-col a { min-height: 44px; padding: 6px 0; font-size: 13px; line-height: 1.35; align-items: flex-start; }
  .footer-col a svg { display: none; } /* drop trailing ↗ arrows — they float oddly on wrapped links at this width */
  /* tighter vertical rhythm so sections don't feel stretched on a phone */
  .section { padding-block: 60px; }
  /* a hair more breathing room on the hero headline (was edge-to-edge) */
  .hero.tC h1 { font-size: clamp(36px, 11vw, 52px); line-height: 0.98; }
  /* let "ambitious brands." wrap on phones — forcing it onto one line overflowed narrow screens */
  .hero.tC h1 span { white-space: normal !important; }
  /* on phones: top-anchor the hero so content sits just under the nav (kills the big top gap); not full-height */
  .hero { min-height: auto; justify-content: flex-start; padding-top: 116px; padding-bottom: 56px; }
  /* slightly smaller header logo on mobile (overrides the inline height) */
  .nav .logo-img { height: 50px !important; }
  /* slightly smaller footer logo + Start-a-project button on mobile */
  .footer-top .logo-img { height: 64px !important; }
  .footer-top .btn-primary { padding: 11px 18px; font-size: 14px; margin-left: 14px !important; } /* nudge left so the button reads aligned with the logo */
}
