/* ============================================================
   MERIDIAN — Indoor climate, engineered.
   Thermal-precision design system
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Thermal palette */
  --ember:        #FF6A2B;
  --ember-soft:   color-mix(in oklab, var(--ember), white 26%);
  --ember-deep:   color-mix(in oklab, var(--ember), black 20%);
  --ice:          #57C7E8;
  --ice-soft:     color-mix(in oklab, var(--ice), white 30%);
  --ice-deep:     color-mix(in oklab, var(--ice), black 18%);

  /* Dark canvas (instrument) */
  --bg:           #0A0B0D;
  --bg-2:         #0E1014;
  --surface:      #14171C;
  --surface-2:    #1B1F26;
  --hairline:     rgba(255,255,255,0.09);
  --hairline-2:   rgba(255,255,255,0.05);

  /* Light canvas (comfort) */
  --paper:        #F4F1EB;
  --paper-2:      #ECE7DD;
  --ink:          #15171B;
  --ink-2:        #3A3D44;
  --ink-3:        #6B6E76;
  --line-ink:     rgba(20,22,26,0.12);
  --line-ink-2:   rgba(20,22,26,0.07);

  /* On-dark text */
  --on-dark:      #F3F1EC;
  --on-dark-2:    rgba(243,241,236,0.62);
  --on-dark-3:    rgba(243,241,236,0.40);

  /* Type */
  --font-display: 'Schibsted Grotesk', sans-serif;
  --font-body:    'Hanken Grotesk', sans-serif;
  --font-mono:    'Spline Sans Mono', monospace;

  /* Motion */
  --ease:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-2:  cubic-bezier(0.65, 0, 0.35, 1);

  /* Layout */
  --pad: clamp(20px, 5vw, 88px);
  --maxw: 1320px;
  --radius: 18px;
}

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

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--on-dark);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

::selection { background: var(--ember); color: #fff; }

img { display: block; max-width: 100%; }

/* ---------- Reusable ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }

.mono {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  font-weight: 500;
}

.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 12px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--on-dark-2);
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: linear-gradient(90deg, var(--ember), var(--ice));
}
.eyebrow.dark { color: var(--ink-3); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

p { text-wrap: pretty; }

a { color: inherit; text-decoration: none; }

.btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 24px;
  border-radius: 100px;
  transition: transform .4s var(--ease), background .3s var(--ease), box-shadow .4s var(--ease), color .3s;
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--ember);
  color: #fff;
  box-shadow: 0 10px 30px -8px rgba(255,106,43,0.55);
}
.btn-primary:hover { background: var(--ember-soft); box-shadow: 0 16px 40px -8px rgba(255,106,43,0.65); }

.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: var(--on-dark);
  border: 1px solid var(--hairline);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); }

.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #25282e; }

.btn .arr { transition: transform .4s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 18px var(--pad);
  display: flex; align-items: center; justify-content: space-between;
  transition: background .5s var(--ease), backdrop-filter .5s, border-color .5s, padding .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10,11,13,0.72);
  backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--hairline-2);
  padding-top: 12px; padding-bottom: 12px;
}
.brand { display: flex; align-items: center; gap: 11px; z-index: 2; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-name {
  font-family: var(--font-display); font-weight: 700;
  font-size: 19px; letter-spacing: -0.02em; color: var(--on-dark);
}
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  font-size: 14.5px; font-weight: 500; color: var(--on-dark-2);
  transition: color .25s; position: relative;
}
.nav-links a:hover { color: var(--on-dark); }
.nav-right { display: flex; align-items: center; gap: 18px; }
.nav-phone {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.02em;
  color: var(--on-dark);
}
.nav-phone .dot { width: 7px; height: 7px; border-radius: 50%; background: #38d27a; box-shadow: 0 0 0 0 rgba(56,210,122,0.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(56,210,122,0.5)} 70%{box-shadow:0 0 0 7px rgba(56,210,122,0)} 100%{box-shadow:0 0 0 0 rgba(56,210,122,0)} }
.nav-toggle { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  padding: 120px var(--pad) 60px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 88% 30%, rgba(255,106,43,0.16), transparent 55%),
    radial-gradient(90% 80% at 8% 75%, rgba(87,199,232,0.13), transparent 60%),
    var(--bg);
}
#airflow {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}
.hero-grid-overlay {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--hairline-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--hairline-2) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 100% at 50% 40%, #000 30%, transparent 80%);
  opacity: 0.6;
}
.hero-noise { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.04; mix-blend-mode: overlay; }

.hero-copy { position: relative; z-index: 3; max-width: 620px; }

.hero h1 {
  font-size: clamp(44px, 6.6vw, 92px);
  margin: 26px 0 0;
  letter-spacing: -0.035em;
}
.hero h1 .grad {
  background: linear-gradient(100deg, var(--ice-soft), var(--ice) 30%, #fff 55%, var(--ember-soft) 78%, var(--ember));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub {
  margin-top: 26px; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.55;
  color: var(--on-dark-2); max-width: 480px;
}
.hero-cta { margin-top: 36px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.hero-trust {
  margin-top: 40px; display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
}
.hero-trust .ht-item { display: flex; align-items: center; gap: 9px; color: var(--on-dark-2); font-size: 13.5px; }
.hero-trust .ht-item svg { width: 17px; height: 17px; color: var(--ice); flex: none; }
.hero-trust .sep { width: 1px; height: 16px; background: var(--hairline); }

/* dial / instrument */
.instrument {
  position: relative; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  min-height: 460px;
}
.dial-stage { position: relative; width: min(440px, 78vw); aspect-ratio: 1; }
.dial-svg { width: 100%; height: 100%; overflow: visible; touch-action: none; cursor: grab; }
.dial-svg:active { cursor: grabbing; }
.dial-center {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; pointer-events: none; text-align: center;
}
.dial-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--on-dark-3); }
.dial-temp {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(72px, 12vw, 112px); line-height: 0.9; letter-spacing: -0.04em;
  display: flex; align-items: flex-start; color: var(--on-dark);
  font-variant-numeric: tabular-nums;
}
.dial-temp .deg { font-size: 0.38em; margin-top: 0.32em; color: var(--on-dark-2); }
.dial-state { margin-top: 8px; font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; transition: color .4s; }
.dial-hint {
  position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--on-dark-3); display: flex; align-items: center; gap: 7px;
  transition: opacity .4s;
}
.dial-hint svg { width: 13px; height: 13px; }

.outside-chip {
  position: absolute; top: 4%; left: -2%; z-index: 4;
  background: rgba(20,23,28,0.7); backdrop-filter: blur(10px);
  border: 1px solid var(--hairline); border-radius: 14px;
  padding: 11px 15px; display: flex; align-items: center; gap: 12px;
  box-shadow: 0 18px 40px -20px rgba(0,0,0,0.7);
}
.outside-chip .oc-temp { font-family: var(--font-display); font-weight: 700; font-size: 24px; letter-spacing: -0.02em; }
.outside-chip .oc-meta { line-height: 1.3; }
.outside-chip .oc-meta .l1 { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--on-dark-3); }
.outside-chip .oc-meta .l2 { font-size: 12.5px; color: var(--on-dark-2); }

.delta-chip {
  position: absolute; bottom: 6%; right: -1%; z-index: 4;
  background: rgba(20,23,28,0.7); backdrop-filter: blur(10px);
  border: 1px solid var(--hairline); border-radius: 14px;
  padding: 11px 16px; box-shadow: 0 18px 40px -20px rgba(0,0,0,0.7);
}
.delta-chip .l1 { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--on-dark-3); margin-bottom: 3px; }
.delta-chip .l2 { font-size: 13px; color: var(--on-dark); display: flex; align-items: center; gap: 7px; }
.delta-chip .pill { font-family: var(--font-mono); font-size: 11px; padding: 2px 8px; border-radius: 100px; background: rgba(56,210,122,0.16); color: #5fe39a; }

.scroll-cue {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 4;
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--on-dark-3);
}
.scroll-cue .track { width: 1px; height: 38px; background: linear-gradient(var(--on-dark-3), transparent); position: relative; overflow: hidden; }
.scroll-cue .track::after { content:""; position:absolute; top:0; left:0; width:100%; height:40%; background: var(--ice); animation: scrolldown 2.2s var(--ease) infinite; }
@keyframes scrolldown { 0%{transform:translateY(-100%)} 100%{transform:translateY(250%)} }

/* ============================================================
   MARQUEE / ticker
   ============================================================ */
.ticker {
  border-block: 1px solid var(--hairline-2);
  background: var(--bg-2);
  padding: 18px 0; overflow: hidden; position: relative;
}
.ticker-track { display: flex; gap: 52px; width: max-content; animation: marquee 38s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { display: flex; align-items: center; gap: 14px; font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.08em; color: var(--on-dark-2); text-transform: uppercase; }
.ticker-item b { color: var(--on-dark); font-weight: 500; }
.ticker-item .star { color: var(--ember); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   TRUST / METRICS  (dark)
   ============================================================ */
.metrics { padding: clamp(64px, 9vw, 130px) 0; background: var(--bg); }
.metrics-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--hairline); border-radius: var(--radius); overflow: hidden;
  background: var(--surface);
}
.metric { padding: 36px 34px; border-right: 1px solid var(--hairline); position: relative; overflow: hidden; }
.metric:last-child { border-right: none; }
.metric .mnum { font-family: var(--font-display); font-weight: 700; font-size: clamp(40px, 4.6vw, 60px); letter-spacing: -0.03em; line-height: 1; display: flex; align-items: baseline; gap: 2px; }
.metric .mnum .u { font-size: 0.42em; color: var(--ember); margin-left: 2px; }
.metric .mlabel { margin-top: 14px; font-size: 14.5px; color: var(--on-dark-2); line-height: 1.4; }
.metric .mtag { position: absolute; top: 20px; right: 22px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.15em; color: var(--on-dark-3); text-transform: uppercase; }
.metric::after { content:""; position:absolute; left:0; bottom:0; height:2px; width:0; background: linear-gradient(90deg, var(--ember), var(--ice)); transition: width .7s var(--ease); }
.metric.in::after { width: 100%; }

/* ============================================================
   SERVICES  (light)
   ============================================================ */
.services {
  background: var(--paper); color: var(--ink);
  padding: clamp(72px, 11vw, 160px) 0;
  border-radius: 36px 36px 0 0; position: relative; z-index: 2;
  margin-top: -24px;
}
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 56px; }
.sec-head h2 { font-size: clamp(34px, 4.6vw, 62px); color: var(--ink); }
.sec-head .sh-sub { color: var(--ink-3); max-width: 360px; font-size: 16px; line-height: 1.55; }

.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.svc {
  background: #fff; border: 1px solid var(--line-ink-2); border-radius: 20px;
  padding: 28px 26px 30px; position: relative; overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s;
  min-height: 320px; display: flex; flex-direction: column;
}
.svc:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(20,22,26,0.28); border-color: transparent; }
.svc .svc-ic { width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 22px; transition: transform .5s var(--ease); }
.svc:hover .svc-ic { transform: scale(1.08) rotate(-3deg); }
.svc .svc-ic svg { width: 26px; height: 26px; }
.svc h3 { font-size: 22px; color: var(--ink); letter-spacing: -0.02em; }
.svc p { margin-top: 11px; color: var(--ink-3); font-size: 14.5px; line-height: 1.5; flex: 1; }
.svc .svc-foot { margin-top: 20px; display: flex; align-items: center; justify-content: space-between; }
.svc .svc-link { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); display: flex; align-items: center; gap: 7px; transition: gap .3s; }
.svc:hover .svc-link { gap: 11px; }
.svc .svc-num { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }
.svc::before { content:""; position:absolute; inset:0 0 auto 0; height:3px; transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.svc:hover::before { transform: scaleX(1); }
.svc.heat .svc-ic { background: linear-gradient(135deg, #FFE6D6, #FFD0B5); color: var(--ember-deep); }
.svc.heat::before { background: var(--ember); }
.svc.cool .svc-ic { background: linear-gradient(135deg, #DCF1F8, #C2E8F4); color: var(--ice-deep); }
.svc.cool::before { background: var(--ice); }
.svc.air .svc-ic { background: linear-gradient(135deg, #E2F2E4, #CDEBD2); color: #2f9b54; }
.svc.air::before { background: #38b566; }
.svc.smart .svc-ic { background: linear-gradient(135deg, #EBE6F7, #DCD3F0); color: #6a4fb3; }
.svc.smart::before { background: #7a5fc4; }

/* ============================================================
   COMFORT STUDIO (interactive room)  light
   ============================================================ */
.studio { background: var(--paper); color: var(--ink); padding: 0 0 clamp(72px, 11vw, 150px); }
.studio-inner {
  background: var(--bg); color: var(--on-dark);
  border-radius: 28px; overflow: hidden;
  display: grid; grid-template-columns: 0.92fr 1.08fr;
  position: relative; border: 1px solid var(--hairline);
}
.studio-copy { padding: clamp(36px, 5vw, 68px); display: flex; flex-direction: column; justify-content: center; }
.studio-copy h2 { font-size: clamp(30px, 3.6vw, 50px); margin: 22px 0 0; }
.studio-copy h2 .grad { background: linear-gradient(100deg, var(--ice), var(--ember)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.studio-copy p { margin-top: 20px; color: var(--on-dark-2); font-size: 16px; line-height: 1.6; max-width: 440px; }

.zones { margin-top: 34px; display: flex; flex-direction: column; gap: 10px; }
.zone-row { display: grid; grid-template-columns: 130px 1fr 56px; align-items: center; gap: 16px; }
.zone-row .zn { font-size: 14.5px; color: var(--on-dark); display: flex; align-items: center; gap: 9px; }
.zone-row .zn .zd { width: 8px; height: 8px; border-radius: 50%; }
.zone-row input[type=range] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--ice), var(--ember)); outline: none; cursor: pointer;
}
.zone-row input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 3px solid var(--ink); box-shadow: 0 3px 10px rgba(0,0,0,0.4); cursor: grab;
  transition: transform .2s;
}
.zone-row input[type=range]::-webkit-slider-thumb:active { transform: scale(1.18); cursor: grabbing; }
.zone-row input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid var(--ink); cursor: grab; }
.zone-row .zv { font-family: var(--font-mono); font-size: 14px; text-align: right; font-variant-numeric: tabular-nums; }

.studio-viz { position: relative; min-height: 480px; overflow: hidden; background: var(--bg-2); }
#roomcanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.studio-readout {
  position: absolute; top: 22px; right: 22px; z-index: 3;
  background: rgba(10,11,13,0.55); backdrop-filter: blur(10px);
  border: 1px solid var(--hairline); border-radius: 14px; padding: 14px 18px; min-width: 150px;
}
.studio-readout .sr-l { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--on-dark-3); }
.studio-readout .sr-score { font-family: var(--font-display); font-weight: 700; font-size: 44px; letter-spacing: -0.03em; line-height: 1; margin-top: 4px; display: flex; align-items: baseline; gap: 4px; }
.studio-readout .sr-score .u { font-size: 0.4em; color: var(--on-dark-2); }
.studio-readout .sr-bar { margin-top: 12px; height: 4px; border-radius: 4px; background: rgba(255,255,255,0.12); overflow: hidden; }
.studio-readout .sr-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--ice), var(--ember)); transition: width .5s var(--ease); }
.studio-readout .sr-note { margin-top: 10px; font-size: 12px; color: var(--on-dark-2); }

/* ============================================================
   PROCESS  (dark)
   ============================================================ */
.process { background: var(--bg); padding: clamp(72px, 11vw, 150px) 0; }
.process .sec-head h2 { color: var(--on-dark); }
.proc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 56px; border-top: 1px solid var(--hairline); }
.proc-step { padding: 32px 28px 36px; border-right: 1px solid var(--hairline); position: relative; }
.proc-step:last-child { border-right: none; }
.proc-step .ps-num { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.15em; color: var(--ember); }
.proc-step h3 { font-size: 23px; margin-top: 18px; color: var(--on-dark); }
.proc-step p { margin-top: 12px; color: var(--on-dark-2); font-size: 14.5px; line-height: 1.55; }
.proc-step .ps-dot { position: absolute; top: -5px; left: 28px; width: 9px; height: 9px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 0 4px var(--bg), 0 0 16px var(--ember); }

/* ============================================================
   PRICING / GUARANTEE band
   ============================================================ */
.promise { background: var(--bg); padding: 0 0 clamp(72px, 11vw, 150px); }
.promise-card {
  position: relative; overflow: hidden; border-radius: 28px;
  background:
    radial-gradient(120% 120% at 85% 15%, rgba(255,106,43,0.25), transparent 50%),
    radial-gradient(110% 120% at 10% 90%, rgba(87,199,232,0.18), transparent 55%),
    var(--surface);
  border: 1px solid var(--hairline);
  padding: clamp(40px, 6vw, 84px);
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center;
}
.promise-card h2 { font-size: clamp(30px, 4vw, 56px); }
.promise-card p { margin-top: 20px; color: var(--on-dark-2); font-size: 17px; line-height: 1.6; max-width: 460px; }
.promise-list { display: flex; flex-direction: column; gap: 14px; }
.promise-list li { list-style: none; display: flex; align-items: flex-start; gap: 13px; font-size: 15.5px; color: var(--on-dark); }
.promise-list li svg { width: 22px; height: 22px; color: var(--ice); flex: none; margin-top: 1px; }

/* ============================================================
   REVIEWS  (light)
   ============================================================ */
.reviews { background: var(--paper); color: var(--ink); padding: clamp(72px, 11vw, 150px) 0; }
.rev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 52px; }
.rev {
  background: #fff; border: 1px solid var(--line-ink-2); border-radius: 20px; padding: 30px 28px;
  display: flex; flex-direction: column;
}
.rev .stars { display: flex; gap: 3px; color: var(--ember); margin-bottom: 18px; }
.rev .stars svg { width: 16px; height: 16px; }
.rev .rq { font-family: var(--font-display); font-weight: 500; font-size: 19px; line-height: 1.4; letter-spacing: -0.01em; color: var(--ink); flex: 1; }
.rev .rauthor { margin-top: 24px; display: flex; align-items: center; gap: 12px; }
.rev .ravatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 16px; color: #fff; }
.rev .rname { font-weight: 600; font-size: 14.5px; color: var(--ink); }
.rev .rmeta { font-size: 12.5px; color: var(--ink-3); font-family: var(--font-mono); }

.rev-foot { margin-top: 36px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.rev-foot .rf-badge { display: flex; align-items: center; gap: 11px; padding: 12px 18px; background: #fff; border: 1px solid var(--line-ink-2); border-radius: 100px; }
.rev-foot .rf-badge .rf-score { font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.rev-foot .rf-badge .rf-stars { color: var(--ember); display: flex; gap: 2px; }
.rev-foot .rf-badge .rf-stars svg { width: 14px; height: 14px; }
.rev-foot .rf-badge small { color: var(--ink-3); font-size: 12.5px; }

/* ============================================================
   FINAL CTA  (dark)
   ============================================================ */
.cta {
  position: relative; overflow: hidden;
  background: var(--bg); padding: clamp(80px, 12vw, 170px) 0;
  text-align: center;
}
.cta #ctacanvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0.8; }
.cta .wrap { position: relative; z-index: 2; }
.cta h2 { font-size: clamp(40px, 7vw, 100px); letter-spacing: -0.04em; }
.cta h2 .grad { background: linear-gradient(100deg, var(--ice), #fff 50%, var(--ember)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cta p { margin: 24px auto 0; max-width: 480px; color: var(--on-dark-2); font-size: 18px; line-height: 1.55; }
.cta-row { margin-top: 40px; display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.cta-fine { margin-top: 26px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em; color: var(--on-dark-3); text-transform: uppercase; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--bg-2); border-top: 1px solid var(--hairline-2); padding: 72px 0 36px; }
.foot-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid var(--hairline-2); }
.foot-brand .brand { margin-bottom: 20px; }
.foot-brand p { color: var(--on-dark-2); font-size: 14.5px; line-height: 1.6; max-width: 300px; }
.foot-brand .foot-cert { margin-top: 22px; display: flex; gap: 10px; flex-wrap: wrap; }
.foot-brand .foot-cert span { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-dark-2); border: 1px solid var(--hairline); padding: 6px 11px; border-radius: 100px; }
.foot-col h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--on-dark-3); font-weight: 500; margin-bottom: 18px; }
.foot-col a { display: block; color: var(--on-dark-2); font-size: 14.5px; margin-bottom: 12px; transition: color .25s; }
.foot-col a:hover { color: var(--on-dark); }
.foot-bottom { padding-top: 28px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot-bottom .fb-l { font-size: 13px; color: var(--on-dark-3); }
.foot-bottom .fb-r { display: flex; gap: 22px; }
.foot-bottom .fb-r a { font-size: 13px; color: var(--on-dark-3); }

/* ============================================================
   TEAM / AUTHORITY  (light)
   ============================================================ */
.team { background: var(--paper); color: var(--ink); padding: clamp(72px, 11vw, 150px) 0; }
.team .sec-head h2 { color: var(--ink); }

/* shared portrait placeholder */
.portrait {
  position: relative; overflow: hidden;
  background: linear-gradient(158deg, var(--p1, #2E9CC4), var(--p2, #E0673A));
}
.portrait::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(110% 80% at 50% 6%, rgba(255,255,255,0.28), transparent 56%),
    linear-gradient(to top, rgba(10,11,13,0.34), transparent 52%);
}
.portrait .sil {
  position: absolute; left: 50%; bottom: -1%; transform: translateX(-50%);
  width: 72%; color: rgba(255,255,255,0.9); z-index: 0;
}
.portrait img.photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 22%; z-index: 0;
}
.portrait::after {
  z-index: 1;
}
.portrait .ptag {
  position: absolute; left: 16px; bottom: 14px; z-index: 2;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; color: rgba(255,255,255,0.92);
  display: flex; align-items: center; gap: 8px;
}
.portrait .ptag .pd { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }

/* founder feature */
.founder {
  margin-top: 56px;
  display: grid; grid-template-columns: 0.74fr 1.26fr;
  background: #fff; border: 1px solid var(--line-ink-2);
  border-radius: 24px; overflow: hidden;
  box-shadow: 0 40px 80px -50px rgba(20,22,26,0.3);
}
.founder-portrait { position: relative; min-height: 460px; }
.founder-portrait .sil { width: 62%; }
.founder-body { padding: clamp(34px, 4vw, 60px); display: flex; flex-direction: column; justify-content: center; }
.founder-q {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(21px, 2.3vw, 31px); line-height: 1.32; letter-spacing: -0.018em;
  color: var(--ink); margin-top: 22px; text-wrap: pretty;
}
.founder-q .hl {
  background: linear-gradient(transparent 62%, rgba(255,106,43,0.22) 0);
  padding: 0 2px;
}
.founder-sign { margin-top: 34px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.founder-sign .sig { width: 132px; height: 40px; color: var(--ink); flex: none; }
.founder-name { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; color: var(--ink); }
.founder-title { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-3); margin-top: 5px; }
.founder-certs { margin-top: 26px; display: flex; gap: 8px; flex-wrap: wrap; }

.chip {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-2);
  border: 1px solid var(--line-ink); padding: 6px 10px; border-radius: 100px;
  white-space: nowrap;
}

/* team grid */
.team-lead { margin-top: 64px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.team-lead h3 { font-size: clamp(22px, 2.4vw, 30px); color: var(--ink); letter-spacing: -0.02em; }
.team-lead p { color: var(--ink-3); font-size: 15px; max-width: 380px; line-height: 1.5; }
.team-grid { margin-top: 28px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tcard {
  background: #fff; border: 1px solid var(--line-ink-2); border-radius: 20px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s;
}
.tcard:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(20,22,26,0.28); border-color: transparent; }
.tcard .portrait { aspect-ratio: 1 / 1; }
.tcard-body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.tcard h4 { font-family: var(--font-display); font-size: 19px; color: var(--ink); letter-spacing: -0.015em; }
.tcard .role { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-top: 7px; }
.tcard .certs { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.tcard .tenure { margin-top: auto; padding-top: 18px; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); }
.tcard .tenure b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.tcard .tenure svg { width: 15px; height: 15px; color: var(--ink-3); flex: none; }

/* credentials, explained */
.creds { margin-top: 72px; }
.creds-top { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; }
.creds-top .ct-line { flex: 1; height: 1px; background: var(--line-ink); }
.creds-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: #fff; border: 1px solid var(--line-ink); border-radius: 20px; overflow: hidden;
}
.cred { padding: 30px 30px 32px; border-right: 1px solid var(--line-ink); border-bottom: 1px solid var(--line-ink); position: relative; }
.cred:nth-child(3n) { border-right: none; }
.cred:nth-child(n+4) { border-bottom: none; }
.cred .ci { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--paper-2); color: var(--ink); margin-bottom: 18px; }
.cred .ci svg { width: 21px; height: 21px; }
.cred h4 { font-family: var(--font-display); font-size: 17.5px; color: var(--ink); letter-spacing: -0.015em; }
.cred p { margin-top: 9px; font-size: 13.5px; color: var(--ink-3); line-height: 1.55; }
.cred .ck { margin-top: 14px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ember-deep); }

/* ============================================================
   Reveal animation
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .001ms !important; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .metrics-grid, .svc-grid, .proc-grid { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(2), .proc-step:nth-child(2) { border-right: none; }
  .metric, .proc-step { border-bottom: 1px solid var(--hairline); }
  .rev-grid { grid-template-columns: 1fr; }
  .studio-inner, .promise-card { grid-template-columns: 1fr; }
  .studio-viz { min-height: 380px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .creds-grid { grid-template-columns: repeat(2, 1fr); }
  .cred:nth-child(3n) { border-right: 1px solid var(--line-ink); }
  .cred:nth-child(2n) { border-right: none; }
  .cred:nth-child(n+4) { border-bottom: 1px solid var(--line-ink); }
  .cred:nth-child(n+5) { border-bottom: none; }
  .founder { grid-template-columns: 1fr; }
  .founder-portrait { min-height: 0; aspect-ratio: 16 / 10; }
  .founder-portrait .sil { width: 40%; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .nav-links, .nav-phone span { display: none; }
  .nav-toggle { display: inline-flex; }
  .hero { grid-template-columns: 1fr; padding-top: 110px; gap: 10px; }
  .instrument { min-height: 380px; order: 2; }
  .hero-copy { order: 1; }
  .scroll-cue { display: none; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 16px; }
}
@media (max-width: 560px) {
  .metrics-grid, .svc-grid, .proc-grid { grid-template-columns: 1fr; }
  .metric, .proc-step { border-right: none; }
  .team-grid { grid-template-columns: 1fr; }
  .creds-grid { grid-template-columns: 1fr; }
  .cred { border-right: none !important; border-bottom: 1px solid var(--line-ink) !important; }
  .cred:last-child { border-bottom: none !important; }
  .founder-portrait { aspect-ratio: 4 / 3; }
  .foot-top { grid-template-columns: 1fr; }
  .hero-trust { gap: 12px; }
  .hero-trust .sep { display: none; }
  .outside-chip { left: 0; }
  .delta-chip { right: 0; }
  /* stack the comfort score BELOW the room canvas on phones so it doesn't overlay the rooms */
  .studio-viz { min-height: 0; display: flex; flex-direction: column; }
  #roomcanvas { position: static; width: 100%; height: 300px; flex: none; }
  .studio-readout {
    position: static; min-width: 0; margin: 0;
    border: 0; border-top: 1px solid var(--hairline); border-radius: 0;
    background: var(--bg); backdrop-filter: none;
    padding: 18px clamp(20px, 5vw, 26px);
  }
  /* shrink the menu toggle to a hamburger icon so logo + CTA + toggle fit on phones
     (keeps aria-label="Menu" for screen readers) */
  .nav-right { gap: 12px; }
  .nav-toggle {
    width: 44px; height: 40px; padding: 0; font-size: 0;
    position: relative; border-radius: 12px;
  }
  .nav-toggle::before {
    content: ""; position: absolute; inset: 0;
    background-image:
      linear-gradient(currentColor, currentColor),
      linear-gradient(currentColor, currentColor),
      linear-gradient(currentColor, currentColor);
    background-size: 18px 1.6px;
    background-repeat: no-repeat;
    background-position: center 14px, center 19px, center 24px;
  }
}
