/* =========================================================
   Vago.ge
   mobile first · black / white / one blue
   ========================================================= */
:root {
  --bg: #000;
  --s1: #0a0a0c;
  --s2: #111114;
  --line: rgba(255, 255, 255, .08);
  --line2: rgba(255, 255, 255, .14);
  --tx: #f5f5f7;
  --tx2: #86868b;
  --tx3: #4a4a4f;
  --blue: #2f6bff;
  --blue2: #6b95ff;

  --r: 24px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --spring: cubic-bezier(.34, 1.4, .64, 1);
  --ff: "Noto Sans Georgian", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --fm: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;

  --gut: 20px;
  --tabh: 62px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --sec: 152px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); overflow-x: clip; scrollbar-gutter: stable; } /* locking scroll (menu, chat, sheet) never changes the page width */

body {
  font-family: var(--ff);
  background: var(--bg);
  color: var(--tx);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  -webkit-tap-highlight-color: transparent;
}
::selection { background: var(--blue); color: #fff; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
svg { display: block; }
em { font-style: normal; }
.mono { font-family: var(--fm); font-weight: 300; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut); }

/* ---------- motion primitives ---------- */
.fade { opacity: 0; transform: translateY(14px); }
.loaded .fade { animation: fadeUp 1.4s var(--ease) forwards; animation-delay: calc((var(--d, 0) - .7) * 1s); }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

[data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity 1.4s var(--ease), transform 1.4s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
[data-reveal].in { opacity: 1; transform: none; }

[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .04em 0 .14em; margin: -.04em 0 -.14em; }
[data-split] .w > span { display: inline-block; transform: translateY(108%); transition: transform 1.3s var(--ease); transition-delay: calc(var(--wi) * 55ms); }
[data-split].in .w > span { transform: none; }

/* ---------- HEADER : floating white ---------- */
.hdr {
  position: fixed; z-index: 60; left: 12px; right: 12px; top: calc(var(--safe-t) + 12px);
  display: flex; justify-content: center; pointer-events: none;
  opacity: 0; transform: translateY(-16px);
}
/* transition (not a filled animation) so the glass can blur what is behind it */
.hdr { transition: opacity 1.2s var(--ease) .15s, transform 1.2s var(--ease) .15s; }
.loaded .hdr { opacity: 1; transform: none; }
.hdr-in {
  pointer-events: auto; position: relative;
  width: 100%; max-width: 1200px; height: 56px;
  display: flex; align-items: center; gap: 12px;
  padding: 0 8px 0 18px;
  color: #fff;
  border-radius: 18px;
}
.logo { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.logo svg { width: 22px; height: 22px; }
.logo span { font-size: 14px; font-weight: 700; letter-spacing: .1em; }
.logo b { font-weight: 400; color: rgba(255,255,255,.55); }
.vmark path { fill: none; stroke-width: 4; stroke-linecap: round; }
.vmark .vl { stroke: #fff; transition: stroke .4s; }
.vmark .vr { stroke: var(--blue); }

.nav, .hdr-cta { display: none; }
.hdr-call {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: #fff; color: #0b0b0c; transition: transform .4s var(--spring), background .3s;
}
.hdr-call:active { transform: scale(.92); }
.hdr-call svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 26px; border-radius: 16px;
  font-size: 15px; font-weight: 500; white-space: nowrap;
  transition: transform .45s var(--spring), background .35s, color .35s, border-color .35s;
}
.btn:active { transform: scale(.97); }
.btn-light { background: #fff; color: #0b0b0c; }
.btn-light:hover { background: #e8e8ed; }
.btn-line { border: 1px solid var(--line2); color: var(--tx); }
.btn-line:hover { border-color: rgba(255,255,255,.4); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: #1f5bf0; }
.btn-wide { width: 100%; }

/* ---------- HERO ---------- */
.hero { position: relative; height: 80svh; min-height: 560px; overflow: hidden; }
.scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 2.4s var(--ease); }
.scene.ready { opacity: 1; }
.hero::before {
  display: none;
  content: ""; position: absolute; left: 50%; top: 34%; width: 120vw; height: 70vh; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(47,107,255,.16), transparent 70%);
  pointer-events: none;
}
.hero-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,0) 22%, rgba(0,0,0,.25) 40%, rgba(0,0,0,.82) 62%, #000 88%); }
.hero-in { position: absolute; left: 0; right: 0; bottom: 0; padding-bottom: 36px; }
h1 { font-size: clamp(30px, 8.4vw, 64px); font-weight: 500; line-height: 1.1; letter-spacing: -.045em; }
h1 em, h2 em { color: var(--tx2); }
/* "უძლებს": white text with a slow sheen of light passing through it */
.hero h1 em .w > span {
  color: transparent;
  background: linear-gradient(105deg, rgba(255,255,255,.62) 0%, rgba(255,255,255,.62) 38%, #fff 46%, #eaf1ff 50%, #fff 54%, rgba(255,255,255,.62) 62%, rgba(255,255,255,.62) 100%);
  background-size: 300% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text;
  animation: sheen 4.5s cubic-bezier(.45, 0, .25, 1) 2.2s infinite;
}
.hero h1 em { filter: drop-shadow(0 0 18px rgba(255,255,255,.18)); }
@keyframes sheen { 0% { background-position: 100% 0; } 55%, 100% { background-position: 0% 0; } }
.hero-side { margin-top: 24px; }
.hero-sub { color: var(--tx2); font-size: 15px; line-height: 1.65; max-width: 30em; }
.hero-btns { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ---------- STATEMENT ---------- */
.statement { padding-top: var(--sec); }
.statement { display: flex; flex-direction: column; align-items: center; text-align: center; }
.st-mark { width: 28px; height: 2px; border-radius: 2px; background: var(--blue); margin-bottom: 32px; }
.st { font-size: 18px; font-weight: 400; line-height: 1.75; letter-spacing: -.01em; max-width: 25em; }
.st .sw { color: #333338; transition: color .6s var(--ease); }
.st .sw.lit { color: var(--tx); }
.st em .sw.lit { color: var(--blue2); }

/* ---------- NUMBERS ---------- */
.nums { padding-top: calc(var(--sec) * .6); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 20px; }
.num { padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.num b { font-size: 44px; font-weight: 300; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.num i { font-style: normal; }
.num span { font-size: 13px; color: var(--tx2); }

/* ---------- SECTIONS ---------- */
.section { padding-top: var(--sec); scroll-margin-top: 40px; }
h2 { font-size: clamp(28px, 7.2vw, 56px); font-weight: 500; line-height: 1.12; letter-spacing: -.04em; margin-bottom: 44px; }

/* ---------- SERVICES ---------- */
.svc-list { border-radius: var(--r); background: var(--s1); border: 1px solid var(--line); overflow: hidden; }
.svc {
  position: relative; width: 100%; text-align: left;
  display: grid; grid-template-columns: 34px 1fr 28px; align-items: center; gap: 0 12px;
  padding: 20px 18px; transition: background .3s, opacity 1.4s var(--ease), transform 1.4s var(--ease);
}
.svc + .svc { border-top: 1px solid var(--line); }
.svc:active { background: rgba(255,255,255,.04); }
.svc-n { font-size: 11px; color: var(--tx3); }
.svc-t { font-size: 17px; font-weight: 500; letter-spacing: -.01em; }
.svc-d { grid-column: 2; font-size: 13px; color: var(--tx2); margin-top: 2px; }
.svc-a { grid-column: 3; grid-row: 1 / span 2; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; transition: background .4s var(--ease), transform .5s var(--ease), border-color .4s; }
.svc-a svg { width: 15px; height: 15px; fill: none; stroke: var(--tx2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s; }

/* ---------- PROCESS (pinned) ---------- */
.proc { position: relative; height: 420vh; margin-top: var(--sec); }
.proc-sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.proc-sticky::before { content: ""; position: absolute; left: 50%; top: 45%; width: 120vw; height: 70vh; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(47,107,255,.12), transparent 70%); pointer-events: none; }
.proc-ui { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding-top: calc(var(--safe-t) + 104px); padding-bottom: calc(var(--tabh) + var(--safe-b) + 36px); pointer-events: none; }
.proc-ui h2 { margin: 0; font-size: clamp(26px, 6.8vw, 48px); }
.proc-bottom { display: flex; flex-direction: column; gap: 22px; }
.proc-steps { position: relative; height: 128px; }
.ps { position: absolute; left: 0; right: 0; bottom: 0; opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .9s var(--ease); }
.ps.on { opacity: 1; transform: none; }
.ps .mono { font-size: 11px; color: var(--blue2); }
.ps h3 { margin-top: 8px; font-size: 22px; font-weight: 500; letter-spacing: -.02em; }
.ps p { margin-top: 6px; font-size: 14px; color: var(--tx2); max-width: 26em; }
.proc-prog { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; max-width: 420px; }
.proc-prog i { height: 2px; border-radius: 2px; background: rgba(255,255,255,.12); overflow: hidden; }
.proc-prog b { display: block; height: 100%; background: var(--tx); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- PROJECTS ---------- */
.projs {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 0 calc(-1 * var(--gut)); padding: 0 var(--gut) 4px; scroll-padding: 0 var(--gut);
  scrollbar-width: none;
}
.projs::-webkit-scrollbar { display: none; }
.pj { flex: 0 0 86%; scroll-snap-align: start; border-radius: var(--r); background: var(--s1); border: 1px solid var(--line); overflow: hidden; transition: border-color .5s var(--ease), opacity 1.4s var(--ease), transform 1.4s var(--ease); }
.pj-plan { aspect-ratio: 4 / 3; padding: 8%; }
.pj-plan svg { width: 100%; height: 100%; overflow: visible; }
.pj-meta { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding: 20px 22px 22px; border-top: 1px solid var(--line); }
.pj-meta h3 { font-size: 17px; font-weight: 500; letter-spacing: -.01em; }
.pj-meta span { font-size: 13px; color: var(--tx2); }
.pj-meta .mono { font-size: 11px; white-space: nowrap; }
.pl { stroke: rgba(255,255,255,.42); stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s var(--ease-io); transition-delay: calc(var(--k) * 70ms + .2s); }
.pl-out { stroke: rgba(255,255,255,.9); stroke-width: 1.6; }
.pl-fill { fill: rgba(47,107,255,.16); opacity: 0; transition: opacity 1.6s var(--ease) 1.4s; }
.pl-door { stroke: rgba(255,255,255,.28); stroke-width: 1; opacity: 0; transition: opacity 1s var(--ease) 1.8s; }
.pl-dim { stroke: rgba(255,255,255,.22); stroke-width: 1; opacity: 0; transition: opacity 1s var(--ease) 2s; }
.pl-t { fill: var(--tx2); font-family: var(--fm); font-size: 10px; letter-spacing: .04em; opacity: 0; transition: opacity 1s var(--ease) 2.1s; }
.pj.in .pl { stroke-dashoffset: 0; }
.pj.in .pl-fill, .pj.in .pl-door, .pj.in .pl-dim, .pj.in .pl-t { opacity: 1; }

/* ---------- CALCULATOR ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 1fr); border-radius: var(--r); background: var(--s1); border: 1px solid var(--line); overflow: hidden; }
.calc-in, .calc-out { padding: 24px 20px; min-width: 0; }
.calc-out { border-top: 1px solid var(--line); }
.field + .field, .field + .group { margin-top: 32px; }
.field > label { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: var(--tx2); margin-bottom: 14px; }
.val { color: var(--tx2); }
.val b { font-family: var(--fm); font-size: 22px; font-weight: 300; color: var(--tx); margin-right: 2px; }

.seg { position: relative; display: grid; grid-template-columns: repeat(var(--n), 1fr); padding: 3px; border-radius: 13px; background: rgba(255,255,255,.07); }
.seg-ind { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / var(--n)); border-radius: 10px; background: #fff; transform: translateX(calc(var(--i) * 100%)); transition: transform .55s var(--spring); }
.seg button { position: relative; z-index: 1; height: 36px; font-size: 12px; color: var(--tx2); transition: color .35s; white-space: nowrap; }
.seg button.on { color: #0b0b0c; font-weight: 500; }

input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; --v: 12.5%; }
input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 9px; background: linear-gradient(90deg, #fff var(--v), rgba(255,255,255,.12) var(--v)); }
input[type=range]::-moz-range-track { height: 4px; border-radius: 9px; background: rgba(255,255,255,.12); }
input[type=range]::-moz-range-progress { height: 4px; border-radius: 9px; background: #fff; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -11px; border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.6); transition: transform .35s var(--spring); }
input[type=range]:active::-webkit-slider-thumb { transform: scale(1.15); }
input[type=range]::-moz-range-thumb { width: 26px; height: 26px; border: 0; border-radius: 50%; background: #fff; }

.group { border-radius: 16px; border: 1px solid var(--line); overflow: hidden; }
.row-switch { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; }
.row-switch + .row-switch { border-top: 1px solid var(--line); }
.row-switch > span { flex: 1; display: flex; flex-direction: column; }
.row-switch b { font-size: 14px; font-weight: 500; }
.row-switch small { font-size: 12px; color: var(--tx2); }
.row-switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch { flex: none; position: relative; width: 51px; height: 31px; border-radius: 99px; background: rgba(255,255,255,.14); transition: background .35s var(--ease); }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0,0,0,.35); transition: transform .45s var(--spring); }
.row-switch input:checked + .switch { background: var(--blue); }
.row-switch input:checked + .switch::after { transform: translateX(20px); }
.row-switch input:focus-visible + .switch { outline: 2px solid var(--blue2); outline-offset: 2px; }

.total { display: flex; align-items: baseline; gap: 10px; font-size: clamp(48px, 14vw, 96px); font-weight: 300; letter-spacing: -.06em; line-height: 1; font-variant-numeric: tabular-nums; }
.total em { font-size: .4em; color: var(--tx2); letter-spacing: 0; }
.out-rows { margin: 28px 0; }
.out-rows div { display: flex; justify-content: space-between; padding: 13px 0; border-top: 1px solid var(--line); font-size: 13px; }
.out-rows span { color: var(--tx2); }
.out-rows b { font-weight: 400; }
.note { margin-top: 14px; font-size: 12px; color: var(--tx3); text-align: center; }

/* ---------- CONTACT ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.contact h2 { margin-bottom: 24px; }
.lead { color: var(--tx2); font-size: 16px; max-width: 26em; }
.c-list { margin-top: 40px; }
.c-list > * { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); transition: color .3s; }
.c-list span { font-size: 13px; color: var(--tx2); }
.c-list b { font-size: 15px; font-weight: 400; text-align: right; transition: color .3s; }
.c-list a:hover b { color: var(--blue2); }

.form { border-radius: var(--r); background: var(--s1); border: 1px solid var(--line); padding: 22px 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 9px 15px; border-radius: 12px; font-size: 13px; border: 1px solid var(--line2); color: var(--tx2); transition: all .35s var(--ease); }
.chips input:checked + span { background: #fff; border-color: #fff; color: #0b0b0c; }
.chips input:focus-visible + span { outline: 2px solid var(--blue2); outline-offset: 2px; }
.inputs { margin: 22px 0; display: grid; gap: 10px; }
.inp { position: relative; display: block; }
.inp input, .inp textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--tx);
  background: rgba(255,255,255,.035); border: 1px solid var(--line); border-radius: 14px;
  padding: 25px 16px 10px; outline: none; resize: none;
  transition: border-color .3s, background .3s;
}
.inp span { position: absolute; left: 17px; top: 17px; font-size: 15px; color: var(--tx3); pointer-events: none; transition: all .35s var(--ease); }
.inp input:focus, .inp textarea:focus { border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.05); }
.inp input:focus + span, .inp input:not(:placeholder-shown) + span,
.inp textarea:focus + span, .inp textarea:not(:placeholder-shown) + span { top: 8px; font-size: 11px; color: var(--tx2); }
.inp.err input { border-color: rgba(255,69,58,.7); animation: shake .45s; }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }

/* ---------- FOOTER ---------- */
.footer { margin-top: var(--sec); padding-top: 40px; padding-bottom: calc(var(--tabh) + var(--safe-b) + 40px); border-top: 1px solid var(--line); }
.foot-top { display: flex; flex-direction: column; gap: 28px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 14px; color: var(--tx2); }
.foot-nav a:hover { color: var(--tx); }
.foot-row { margin-top: 48px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--tx3); }

/* ---------- iOS TAB BAR ---------- */
.tabbar {
  position: fixed; left: 12px; right: 12px; bottom: calc(var(--safe-b) + 10px); z-index: 50;
  height: var(--tabh); display: grid; grid-template-columns: repeat(5, 1fr);
  border-radius: 24px; padding: 5px;
  opacity: 0; transform: translateY(30px);
}
.tabbar { transition: opacity 1.2s var(--ease) .5s, transform 1.2s var(--ease) .5s, background-color .4s 0s; }
.loaded .tabbar { opacity: 1; transform: none; }
.tab-ind { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc((100% - 10px) / 5); border-radius: 19px; background: rgba(255,255,255,.1); transform: translateX(calc(var(--t, 0) * 100%)); transition: transform .6s var(--spring); }
.tabbar a { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: rgba(255,255,255,.62); transition: color .3s, transform .35s var(--spring); }
.tabbar a:active { transform: scale(.88); }
.tabbar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tabbar span { font-size: 9.5px; font-weight: 500; }
.tabbar a.on { color: #fff; }
.tabbar a.on svg { stroke: var(--blue2); }
.tabbar span { letter-spacing: -.01em; }

/* ---------- SHEET ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 80; pointer-events: none; }
.sheet-bg { position: absolute; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; transition: opacity .5s var(--ease); }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 10px 22px calc(var(--safe-b) + 24px);
  border-radius: 28px 28px 0 0; background: #161618; border: 1px solid var(--line2); border-bottom: 0;
  transform: translateY(105%); transition: transform .6s cubic-bezier(.32, .72, 0, 1);
  max-height: 88vh; overflow: auto;
}
.sheet-wrap.open { pointer-events: auto; }
.sheet-wrap.open .sheet-bg { opacity: 1; }
.sheet-wrap.open .sheet { transform: translateY(0); }
.sheet.dragging { transition: none; }
.grabber { display: flex; justify-content: center; padding: 4px 0 18px; cursor: grab; touch-action: none; }
.grabber i { width: 38px; height: 5px; border-radius: 99px; background: rgba(255,255,255,.22); }
.sheet-x { position: absolute; top: 18px; right: 18px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); }
.sheet-x svg { width: 14px; height: 14px; fill: none; stroke: var(--tx2); stroke-width: 2; stroke-linecap: round; }
.sheet-n { font-size: 11px; color: var(--tx2); }
.sheet h3 { margin-top: 8px; font-size: 28px; font-weight: 500; letter-spacing: -.03em; }
.sheet p { margin-top: 10px; color: var(--tx2); font-size: 15px; line-height: 1.7; }
.sheet ul { list-style: none; margin: 24px 0; }
.sheet li { display: flex; align-items: center; gap: 12px; padding: 13px 0; font-size: 14px; border-top: 1px solid var(--line); }
.sheet li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--blue2); flex: none; }

/* ---------- TOAST ---------- */
.island {
  position: fixed; top: calc(var(--safe-t) + 80px); left: 50%; z-index: 90;
  display: flex; align-items: center; gap: 10px;
  height: 44px; padding: 0 18px 0 9px; max-width: calc(100% - 32px);
  border-radius: 999px; background: #fff; color: #0b0b0c;
  box-shadow: 0 20px 50px -10px rgba(0,0,0,.8);
  transform: translate(-50%, -20px) scale(.9); opacity: 0;
  transition: transform .7s var(--spring), opacity .4s; pointer-events: none;
}
.island.show { transform: translate(-50%, 0) scale(1); opacity: 1; }
.island-icon { width: 26px; height: 26px; border-radius: 50%; background: var(--blue); display: grid; place-items: center; flex: none; }
.island-icon svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; }
.island.show .island-icon svg { animation: tick .6s var(--ease) .3s forwards; }
@keyframes tick { to { stroke-dashoffset: 0; } }
.island-text { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }


/* ---------- clear glass (header + tab bar): flat, with a travelling light on the header rim ---------- */
.hdr-in, .tabbar {
  background: rgba(22,22,26,.34);
  backdrop-filter: blur(16px) saturate(170%);
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  box-shadow: 0 18px 44px -14px rgba(0,0,0,.6);
}
.hdr-in::before, .tabbar::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; padding: 1px;
  background: rgba(255,255,255,.13);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
/* the light is a big conic square spun with transform (GPU only), masked to a 1px ring */
.hdr-in > .rim {
  position: absolute; inset: 0; z-index: 0; border-radius: inherit; padding: 1px; overflow: hidden; pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.rim::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 1600px; height: 1600px; margin: -800px 0 0 -800px;
  background: conic-gradient(transparent 0deg 290deg, rgba(255,255,255,.3) 322deg, #fff 352deg, transparent 360deg);
  animation: rimspin 7s linear infinite; will-change: transform;
}
@keyframes rimspin { to { transform: rotate(360deg); } }
.hdr-in > *:not(.rim):not(.nav) { position: relative; z-index: 1; }
.hdr-in > .nav { z-index: 1; }
.tabbar > a { z-index: 1; }

/* ---------- mobile-only trims ---------- */
.d-only { display: none; }
.svc-d { display: none; }
.svc { padding: 19px 18px; }
.svc-a { grid-row: 1; }

/* ---------- INTRO ---------- */
.intro {
  position: fixed; inset: 0; z-index: 200; background: #000;
  display: grid; place-items: center;
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.1s cubic-bezier(.76, 0, .24, 1);
}
.intro.out { clip-path: inset(0 0 100% 0); }
.intro.gone { display: none; }
.intro-c { display: flex; flex-direction: column; align-items: center; gap: 22px; transition: transform 1.1s cubic-bezier(.76, 0, .24, 1), opacity .6s; }
.intro.out .intro-c { transform: translateY(-60px); opacity: 0; }
.intro-logo { width: 40px; height: 40px; }
.intro-logo { width: 48px; height: 48px; overflow: visible; }
.intro-logo path { stroke-dasharray: 17; stroke-dashoffset: 17; animation: vdraw .9s cubic-bezier(.65, 0, .35, 1) forwards; }
.intro-logo .vr { animation-delay: .32s; }
.intro-logo { animation: vglow 1.4s ease-in-out 1.1s infinite alternate; }
@keyframes vdraw { to { stroke-dashoffset: 0; } }
@keyframes vglow { from { filter: drop-shadow(0 0 0 rgba(47,107,255,0)); } to { filter: drop-shadow(0 0 10px rgba(47,107,255,.65)); } }
.intro-bar { width: 120px; height: 1px; background: rgba(255,255,255,.12); overflow: hidden; }
.intro-bar i { display: block; height: 100%; background: #fff; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.intro-n { font-size: 11px; color: var(--tx2); letter-spacing: .2em; }

/* ---------- hero scroll depth ---------- */
.hero .scene, .hero-in { will-change: transform, opacity; }

/* ---------- BEFORE / AFTER ---------- */
.ba {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden;
  background: #050507; border: 1px solid var(--line);
  touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: ew-resize;
}
.ba-after, .ba-before { position: absolute; inset: 0; }
.ba svg { width: 100%; height: 100%; display: block; }
.ba-before { clip-path: inset(0 50% 0 0); background: #030308; will-change: clip-path; }
.ba-handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 0; pointer-events: none; }
.ba-handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: -.5px; width: 1px; background: #fff; box-shadow: 0 0 18px rgba(107,149,255,.8); }
.ba-handle i { position: absolute; top: 50%; left: 0; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.5); transition: transform .4s var(--spring); }
.ba.drag .ba-handle i { transform: scale(1.12); }
.ba-handle svg { width: 18px; height: 18px; fill: none; stroke: #0b0b0c; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ba-tag { position: absolute; top: 16px; padding: 7px 12px; border-radius: 10px; font-size: 11.5px; font-weight: 500; pointer-events: none; transition: opacity .4s; }
.ba-tag-l { left: 16px; background: rgba(47,107,255,.18); color: var(--blue2); border: 1px solid rgba(107,149,255,.3); }
.ba-tag-r { right: 16px; background: rgba(255,255,255,.85); color: #0b0b0c; }
.ba-range { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; pointer-events: none; }
.ba-cap { display: flex; justify-content: space-between; margin-top: 18px; font-size: 12.5px; color: var(--tx2); }
.ba-cap .mono { font-size: 11px; }
/* blueprint strokes draw in */
.bp { fill: none; stroke: rgba(107,149,255,.75); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.bp-w { stroke: rgba(255,255,255,.75); }
.bp-f { stroke: rgba(107,149,255,.22); }
.bp-d { stroke: rgba(255,255,255,.35); stroke-dasharray: 5 5; }
.bp-t { fill: var(--blue2); font-family: var(--fm); font-size: 15px; letter-spacing: .06em; }
.bp-tw { fill: rgba(255,255,255,.55); }
.ba .draw { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.4s var(--ease-io); transition-delay: calc(var(--k, 0) * 60ms + .2s); }
.ba.in .draw { stroke-dashoffset: 0; }

/* ---------- WORDMARK ---------- */
.wordmark {
  margin-top: 72px; font-size: 17.4vw; line-height: .9; font-weight: 600; letter-spacing: -.06em; white-space: nowrap; text-align: center;
  background: linear-gradient(90deg, #fff 0, #fff var(--p, 0%), #141416 var(--p, 0%)) ; -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-left: -.04em;
}
.wordmark::selection { background: transparent; }

/* ---------- spotlight cards (desktop) ---------- */
.spot { position: relative; }
.spot::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0; opacity: 0; transition: opacity .5s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(107,149,255,.10), transparent 60%);
}
.spot:hover::before { opacity: 1; }
.spot > * { position: relative; z-index: 1; }


/* ---------- hero meta bar ---------- */
.hero-meta { display: none; position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; justify-content: space-between; align-items: center; padding-bottom: 36px; font-size: 12px; color: var(--tx2); pointer-events: none; }
.hero-meta > span { flex: 1; }
.hero-meta > span:last-child { display: flex; justify-content: flex-end; }
.hero-scroll { display: flex; justify-content: center; }
.hero-scroll i { position: relative; width: 1px; height: 40px; background: rgba(255,255,255,.12); overflow: hidden; }
.hero-scroll i::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 14px; background: #fff; animation: drip 2.2s var(--ease-io) infinite; }
@keyframes drip { from { transform: translateY(-14px); } to { transform: translateY(40px); } }
.hero-floor { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 9px; }
.hero-floor .mono { font-size: 11px; }
.hero-floor b { color: var(--tx); font-weight: 400; }
.hero-floor > i { width: 120px; height: 1px; background: rgba(255,255,255,.12); overflow: hidden; }
.hero-floor > i b { display: block; height: 100%; background: var(--blue2); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- after-room life ---------- */
.ba .mote { opacity: 0; animation: mote var(--mt) ease-in-out var(--md) infinite; }
@keyframes mote { 0%, 100% { opacity: 0; transform: translate(0, 0); } 30% { opacity: .7; } 50% { transform: translate(6px, -10px); opacity: .45; } 75% { opacity: .8; } }

/* ---------- HERO: photo ---------- */
.hero-photo { position: absolute; inset: 0; overflow: hidden; will-change: transform; }
.hp-in { position: absolute; inset: 0; transform: scale(1.12); opacity: 0; transition: transform 3.2s cubic-bezier(.2, .7, .1, 1), opacity 1.6s var(--ease); }
.hero-photo.in .hp-in { transform: scale(1.02); opacity: 1; }
.hp-in picture, .hp-in img, .hero-led, .hero-led-run { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hp-in img { object-fit: cover; object-position: 50% 50%; }
/* mobile: zoom out, the whole house sits in a band under the header */
.hero-photo { top: calc(var(--safe-t) + 70px); bottom: auto; height: min(84vw, 58%); -webkit-mask-image: linear-gradient(#000 72%, transparent); mask-image: linear-gradient(#000 72%, transparent); }

/* LED outline: draws in like the blueprint, then light runs along the edges */
.hero-led path { fill: none; stroke: #fff; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; }
.led-core path { stroke-width: 1.6; }
.led-h1 path { stroke-width: 4; opacity: .28; }
.led-h2 path { stroke-width: 9; opacity: .12; }
.led-h3 path { stroke-width: 16; opacity: .05; }
.hero-photo.in .hero-led path { animation: ledDraw 1.6s cubic-bezier(.65, 0, .35, 1) forwards; animation-delay: calc(1.4s + var(--i) * .16s); }
@keyframes ledDraw { to { stroke-dashoffset: 0; } }
.hero-led-run { pointer-events: none; }
.led-node circle { fill: #fff; opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(0); }
.led-node .halo { fill: rgba(255,255,255,.18); }
.hero-photo.in .led-node circle { animation: ledNode .6s var(--spring) forwards; animation-delay: calc(2.4s + var(--i) * .12s); }
@keyframes ledNode { to { opacity: 1; transform: scale(1); } }
.led-tag text { fill: #fff; font-family: var(--fm); font-size: 26px; letter-spacing: .06em; opacity: 0; }
.hero-photo.in .led-tag text { animation: ledTag 1s var(--ease) 3.2s forwards; }
@keyframes ledTag { to { opacity: .85; } }


/* ---------- section head + project rail controls ---------- */
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.pj-nav { display: none; gap: 10px; margin-bottom: 80px; }
.pj-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line2); display: grid; place-items: center; transition: background .3s, border-color .3s, opacity .3s, transform .4s var(--spring); }
.pj-btn svg { width: 18px; height: 18px; fill: none; stroke: var(--tx); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s; }
.pj-btn:hover:not(:disabled) { background: #fff; border-color: #fff; }
.pj-btn:hover:not(:disabled) svg { stroke: #0b0b0c; }
.pj-btn:active:not(:disabled) { transform: scale(.92); }
.pj-btn:disabled { opacity: .3; cursor: default; }
.pj-bar { display: none; margin-top: 40px; height: 2px; border-radius: 2px; background: rgba(255,255,255,.1); overflow: hidden; }
.pj-bar i { display: block; height: 100%; background: #fff; border-radius: 2px; transition: transform .25s linear; }

/* ---------- white services block: compact, black tiles ---------- */
.svc-sec { margin-top: var(--sec); padding: 56px 0 60px; background: #fff; color: #0b0b0c; border-radius: 28px; }
.svc-sec h2 { font-size: clamp(24px, 6vw, 36px); color: #0b0b0c; margin-bottom: 28px; }
.svc-sec .svc-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; background: none; border: 0; border-radius: 0; overflow: visible; }
.svc-sec .svc {
  display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; text-align: left; gap: 18px;
  min-height: 128px; padding: 16px; border-radius: 18px; background: #0b0b0c; color: #fff;
  transition: background .35s, opacity 1.4s var(--ease), transform 1.4s var(--ease);
}
.svc-sec .svc + .svc { border-top: 0; }
.svc-sec .svc::after { display: none; }
.svc-sec .svc { overflow: hidden; isolation: isolate; }
.svc-sec .svc::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,.5), rgba(0,0,0,.6) 45%, rgba(0,0,0,.9));
  transition: transform 1.2s var(--ease);
}
.svc-sec .svc:hover::before { transform: scale(1.06); }
.svc-sec .svc:active { opacity: .85; }
.svc-sec .svc-n { font-size: 11px; color: rgba(255,255,255,.7); }
.svc-sec .svc-t { font-size: 15px; font-weight: 500; line-height: 1.3; letter-spacing: -.01em; }
.svc-sec .svc-d { display: none; }
.svc-sec .svc-a { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(255,255,255,.16); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.svc-sec .svc-a svg { stroke: #fff; width: 14px; height: 14px; }

.svc-side { display: none; }
.btn-dark { background: #0b0b0c; color: #fff; }
.btn-dark:hover { background: var(--blue); }

/* ---------- light glass while over the white block ---------- */
.hdr-in { transition: background-color .4s, color .4s; }
.hdr.light .hdr-in, .tabbar.light { background: rgba(255,255,255,.6); color: #0b0b0c; }
.hdr.light .vmark .vl { stroke: #0b0b0c; }
.hdr.light .logo b { color: rgba(0,0,0,.45); }
.hdr.light .nav a { color: rgba(0,0,0,.55); }
.hdr.light .nav a:hover, .hdr.light .nav a.on { color: #0b0b0c; }
.hdr.light .nav-ind, .tabbar.light .tab-ind { background: rgba(0,0,0,.06); }
.hdr.light .hdr-cta, .hdr.light .hdr-call { background: #0b0b0c; color: #fff; }
.tabbar.light a { color: rgba(0,0,0,.55); }
.tabbar.light a.on { color: #0b0b0c; }
.tabbar.light a.on svg { stroke: var(--blue); }

/* ---------- skeleton (first paint) ---------- */
.hero { background: #0a0a0c; }
.sk { position: relative; display: block; overflow: hidden; border-radius: 12px; background: rgba(255,255,255,.07); }
.sk::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.1), transparent);
  animation: skel 1.3s ease-in-out infinite;
}
@keyframes skel { to { transform: translateX(100%); } }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.035) 50%, transparent 70%);
  background-size: 200% 100%; animation: skelbg 1.6s linear infinite;
  transition: opacity .8s var(--ease);
}
@keyframes skelbg { from { background-position: 150% 0; } to { background-position: -50% 0; } }
.hero-skel { position: absolute; left: 0; right: 0; bottom: 0; padding-bottom: 36px; z-index: 1; pointer-events: none; transition: opacity .6s var(--ease); }
.sk-h { width: 82%; height: 32px; margin-bottom: 12px; }
.sk-h2 { width: 56%; }
.sk-p { width: 90%; height: 12px; margin-top: 22px; border-radius: 6px; }
.sk-p + .sk-p { margin-top: 10px; }
.sk-p2 { width: 60%; }
.sk-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 28px; }
.sk-b { height: 52px; border-radius: 16px; }
.loaded .hero-skel, .loaded .hero::after { opacity: 0; }
.loaded .hero::after { animation: none; }
.loaded .hero-skel .sk::after { animation: none; }

/* service tiles shimmer until their photo is in */
.svc-sec .svc { background: #16161a; }
.svc-sec .svc::before { opacity: 0; transition: opacity .6s var(--ease), transform 1.2s var(--ease); }
.svc-sec .svc.ready::before { opacity: 1; background: linear-gradient(180deg, rgba(0,0,0,.5), rgba(0,0,0,.6) 45%, rgba(0,0,0,.9)), var(--img) center / cover no-repeat; }
.svc-sec .svc:not(.ready)::after {
  display: block; content: ""; position: absolute; inset: 0; z-index: -1; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent);
  animation: skel 1.3s ease-in-out infinite;
}

/* before/after: finished room is one cached image */
.ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- before/after: lighting states + controls ---------- */
.ba-after .ba-img { opacity: 0; transition: opacity .7s var(--ease); }
.ba-after .ba-img.on { opacity: 1; }
/* =========================================================
   TABLET
   ========================================================= */
@media (min-width: 700px) {
  :root { --gut: 40px; --sec: 200px; }
  .hero-btns { display: flex; }
  .nums { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pj { flex-basis: 60%; }
  .ba { aspect-ratio: 4 / 3; }
}

/* =========================================================
   DESKTOP: small elements, a lot of air
   ========================================================= */
@media (min-width: 1024px) {
  :root { --gut: clamp(56px, 7vw, 140px); --sec: clamp(220px, 24vh, 300px); }
  body { font-size: 14px; }
  .tabbar, .hdr-call { display: none; }

  .hdr { top: 20px; left: 24px; right: 24px; }
  .hdr-in { height: 58px; padding: 0 9px 0 22px; max-width: 1240px; }
  .logo span { font-size: 13px; }
  .nav { display: flex; position: absolute; left: 50%; transform: translateX(-50%); gap: 2px; }
  .nav a { position: relative; z-index: 1; padding: 8px 15px; font-size: 13px; color: rgba(255,255,255,.62); transition: color .3s; }
  .nav a:hover, .nav a.on { color: #fff; }
  .nav-ind { position: absolute; top: 0; bottom: 0; left: 0; width: 0; border-radius: 11px; background: rgba(255,255,255,.1); opacity: 0; transition: transform .6s var(--ease), width .6s var(--ease), opacity .35s; }
  .hdr-cta { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: 12px; background: #fff; color: #0b0b0c; font-size: 13px; font-weight: 500; transition: background .3s, color .3s; }
  .hdr-cta:hover { background: var(--blue); color: #fff; }

  .btn { height: 46px; padding: 0 24px; font-size: 13.5px; border-radius: 14px; }

  .hero { height: 100svh; min-height: 640px; }
  .hero-in { top: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding-top: 40px; padding-bottom: 0; }
  .hero-side { margin-top: 30px; max-width: 360px; }
  .hero-sub { font-size: 15px; }
  h1 { font-size: clamp(44px, 3.9vw, 72px); }
  .hero-btns { margin-top: 30px; }
  .hero-meta { display: flex; }
  .st { font-size: 21px; }
  .hero::before { left: 62%; top: 42%; width: 70vw; }
  .hero-shade { background: linear-gradient(180deg, rgba(0,0,0,.3), rgba(0,0,0,0) 25%, rgba(0,0,0,0) 60%, rgba(0,0,0,.9) 100%), linear-gradient(90deg, rgba(0,0,0,.78), rgba(0,0,0,.35) 45%, transparent 70%); }
  .hero-photo { top: 0; bottom: 0; height: auto; -webkit-mask-image: none; mask-image: none; }
  .hero-skel { top: 0; bottom: 0; display: flex; flex-direction: column; justify-content: center; padding-top: 40px; padding-bottom: 0; }
  .sk-h { width: 46%; height: 56px; margin-bottom: 16px; }
  .sk-h2 { width: 30%; }
  .sk-p { width: 24%; margin-top: 30px; }
  .sk-p2 { width: 18%; }
  .sk-btns { display: flex; margin-top: 30px; }
  .sk-b { width: 150px; height: 46px; border-radius: 14px; }

  .statement { display: flex; justify-content: center; }

  .nums { gap: 32px; }
  .num { padding-top: 28px; }
  .num b { font-size: clamp(56px, 5vw, 88px); font-weight: 200; }
  .num span { font-size: 12.5px; }

  h2 { font-size: clamp(38px, 3.3vw, 58px); margin-bottom: 80px; }

  /* services: editorial index */
  .svc-list { background: none; border: 0; border-radius: 0; border-bottom: 1px solid var(--line); overflow: visible; }
  .svc { grid-template-columns: 90px minmax(0, 1.1fr) minmax(0, 1fr) 44px; padding: 34px 0; gap: 0; border-top: 1px solid var(--line); transition: padding .6s var(--ease), opacity 1.4s var(--ease), transform 1.4s var(--ease); }
  .svc + .svc { border-top: 1px solid var(--line); }
  .svc::after { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--tx); transform: scaleX(0); transform-origin: 0 50%; transition: transform .9s var(--ease); }
  .svc:hover::after { transform: scaleX(1); }
  .svc:hover { padding-left: 14px; padding-right: 14px; background: none; }
  .svc-n { font-size: 11px; }
  .svc-t { font-size: clamp(20px, 1.7vw, 30px); font-weight: 400; letter-spacing: -.025em; }
  .svc-d { grid-column: 3; grid-row: 1; margin: 0; font-size: 13.5px; }
  .svc-a { grid-column: 4; grid-row: 1; width: 44px; height: 44px; border: 1px solid var(--line2); }
  .svc:hover .svc-a { background: #fff; border-color: #fff; transform: rotate(45deg); }
  .svc:hover .svc-a svg { stroke: #0b0b0c; }
  .svc-sec { margin-left: 24px; margin-right: 24px; padding: 88px 0 96px; border-radius: 36px; }
  .svc-sec .wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2fr); gap: 6vw; align-items: start; }
  .svc-intro { position: sticky; top: 120px; }
  .svc-sec h2 { font-size: clamp(30px, 2.4vw, 40px); margin: 0; }
  .svc-intro p.svc-side { display: block; margin-top: 20px; max-width: 22em; font-size: 14px; color: #6e6e73; }
  .svc-intro .btn.svc-side { display: inline-flex; margin-top: 32px; }
  .svc-sec .svc-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; border: 0; }
  .svc-sec .svc, .svc-sec .svc + .svc { min-height: 196px; padding: 24px; border: 0; border-radius: 22px; gap: 0; }
  .svc-sec .svc:hover { padding: 24px; }
  .svc-sec .svc-t { margin-top: auto; font-size: 18px; font-weight: 500; }
  .svc-sec .svc-d { display: block; margin-top: 6px; font-size: 12.5px; color: rgba(255,255,255,.72); }
  .svc-sec .svc-a { top: 18px; right: 18px; width: 38px; height: 38px; border: 0; }
  .svc-sec .svc:hover .svc-a { background: var(--blue); transform: rotate(45deg); }
  .svc-sec .svc:hover .svc-a svg { stroke: #fff; }

  /* process */
  .proc-ui { padding-top: 150px; padding-bottom: 72px; }
  .proc-ui h2 { font-size: clamp(34px, 3vw, 52px); }
  .proc-bottom { flex-direction: row; justify-content: space-between; align-items: flex-end; }
  .proc-steps { width: 400px; height: 140px; }
  .ps h3 { font-size: 26px; }
  .ps p { font-size: 13.5px; }
  .proc-prog { width: 300px; }

  /* projects */
  .projs { gap: 24px; margin: 0; padding: 0; scroll-padding: 0; cursor: grab; }
  .projs.drag { cursor: grabbing; scroll-snap-type: none; user-select: none; }
  .projs.drag .pj { pointer-events: none; }
  .pj { flex: 0 0 calc((100% - 48px) / 3); }
  .pj-nav { display: flex; }
  .pj-bar { display: block; }
  .pj:hover { border-color: rgba(255,255,255,.18); }
  .pj-plan { padding: 10%; }
  .pj-meta { padding: 26px 30px 28px; }
  .pj-meta h3 { font-size: 18px; }

  /* calc */
  .calc { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  .calc-in, .calc-out { padding: 56px; }
  .calc-out { border-top: 0; border-left: 1px solid var(--line); display: flex; flex-direction: column; justify-content: flex-end; }
  .total { font-size: clamp(64px, 6vw, 112px); font-weight: 200; }

  /* contact */
  .contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8vw; align-items: start; }
  .form { padding: 44px; }
  .inp input, .inp textarea { font-size: 14px; }
  .inp span { font-size: 14px; top: 18px; }

  .footer { padding-top: 56px; padding-bottom: 56px; }
  .foot-top { flex-direction: row; justify-content: space-between; align-items: center; }
  .foot-nav { font-size: 13px; }

  /* sheet → centered modal */
  .sheet { left: 50%; right: auto; bottom: 50%; width: 480px; border-radius: 26px; border-bottom: 1px solid var(--line2); padding: 40px 36px 36px; transform: translate(-50%, 54%) scale(.96); opacity: 0; transition: transform .6s var(--ease), opacity .4s; }
  .sheet-wrap.open .sheet { transform: translate(-50%, 50%) scale(1); opacity: 1; }
  .grabber { display: none; }

  .island { top: 96px; }

  .d-only { display: inline; }
  .svc-d { display: block; }
  .svc { padding: 34px 0; }
  .ba { aspect-ratio: 16 / 9; }
  .ba-cap { margin-top: 24px; }
  .wordmark { margin-top: 96px; font-size: clamp(96px, 9vw, 168px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  [data-reveal], .fade { opacity: 1; transform: none; }
}

/* off-screen sections keep their decorative loops paused (set by an IntersectionObserver) */
.off *, .off *::before, .off *::after { animation-play-state: paused !important; }

/* images are never draggable "ghosts" (before/after slider, hero, project rail) */
img { -webkit-user-drag: none; user-drag: none; }
.ba img, .ba svg { pointer-events: none; }

/* projects: pinned horizontal rail on desktop */
@media (min-width: 1024px) {
  .pj-pin { padding-top: 0; margin-top: calc(var(--sec) * .45); }
  .pj-sticky { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; padding-top: 60px; }
  .pj-pin .projs { scroll-snap-type: none; overflow-x: hidden; }
  .pj-pin .sec-head h2, .pj-pin .pj-nav { margin-bottom: 48px; }
}

/* =========================================================
   Services: kinetic type. Letters roll over and the word comes back
   filled with the service photo (background-clip: text).
   ========================================================= */
.svc-kin { padding: 52px 0 44px; }
.k-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.k-head h2 { margin: 0; font-size: clamp(24px, 6vw, 34px); }
.svc-lead { font-size: 13.5px; line-height: 1.55; color: #6e6e73; max-width: 24em; }
.svc-cta-btn { display: none; }
.k-list { border-top: 1px solid rgba(0,0,0,.08); }
.svc-kin .k-list .svc {
  position: relative; display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: 14px;
  width: 100%; min-height: 0; height: auto; padding: 12px 0; border-radius: 0; background: none; color: #0b0b0c; text-align: left;
  border-bottom: 1px solid rgba(0,0,0,.08); overflow: visible; cursor: pointer;
  transition: opacity .5s var(--ease), transform 1.2s var(--ease);
}
.svc-kin .k-list .svc + .svc { border-top: 0; }
.svc-kin .k-list .svc::before, .svc-kin .k-list .svc::after { display: none !important; content: none; }
.svc-kin .k-list .svc-n { position: static; flex: none; width: 24px; align-self: flex-start; margin-top: .9em; font-size: 10.5px; color: #a1a1a6; transition: color .3s; }
.k-word { position: relative; flex: 1; min-width: 0; display: block; font-size: clamp(28px, 8vw, 44px); font-weight: 500; line-height: 1.12; letter-spacing: -.035em; white-space: nowrap; }
.k-a, .k-b { display: block; overflow: hidden; padding: .16em 0 .26em; margin: -.16em 0 -.26em; }
.k-b { position: absolute; left: 0; top: 0; }
.k-word .l { display: inline-block; padding: .16em 0 .26em; margin: -.16em 0 -.26em; transition: transform .7s cubic-bezier(.7, 0, .2, 1); transition-delay: calc(var(--ci) * 22ms); }
.k-a .l { transform: none; }
.k-b .l { transform: translateY(140%); color: var(--blue); }
.k-side { flex: none; display: flex; align-items: center; gap: 18px; }
.svc-kin .k-list .svc-d { display: none; font-size: 13px; color: #8e8e93; opacity: 0; transform: translateX(-10px); transition: opacity .45s, transform .6s var(--ease); white-space: nowrap; }
.svc-kin .k-list .svc-a { position: static; flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: none; border: 1px solid rgba(0,0,0,.12); backdrop-filter: none; transition: background .35s, border-color .35s, transform .5s var(--ease); }
.svc-kin .k-list .svc-a svg { width: 13px; height: 13px; stroke: #0b0b0c; transition: stroke .3s; }
/* active row (hover on desktop, centre of the screen on phones) */
.k-list.has-on .svc:not(.on) { opacity: .28; }
.svc.on .k-a .l { transform: translateY(-140%); }
.svc.on .k-b .l { transform: none; }
.svc.on .svc-n { color: var(--blue); }
.svc.on .svc-d { opacity: 1; transform: none; }
.svc.on .svc-a { background: #0b0b0c; border-color: #0b0b0c; transform: rotate(45deg); }
.svc.on .svc-a svg { stroke: #fff; }
.k-cursor { display: none; }

@media (min-width: 1024px) {
  .svc-kin { padding: 76px 0 70px; }
  .svc-kin .wrap { display: block; }
  .k-head { flex-direction: row; justify-content: space-between; align-items: flex-end; margin-bottom: 28px; }
  .k-head h2 { font-size: clamp(30px, 2.4vw, 40px); }
  .k-head-r { display: flex; align-items: center; gap: 28px; }
  .k-head-r .svc-lead { text-align: right; max-width: 20em; font-size: 14px; }
  .svc-cta-btn { display: inline-flex; }
  .svc-kin .k-list .svc { padding: 10px 0; gap: 26px; cursor: none; }
  .svc-kin .k-list .svc-n { width: 34px; font-size: 11px; }
  .k-word { font-size: clamp(38px, 3.5vw, 58px); }
  .svc-kin .k-list .svc-d { display: block; }
  .svc-kin .k-list .svc-a { width: 40px; height: 40px; }
  .k-cursor {
    display: grid; place-items: center; position: fixed; left: 0; top: 0; z-index: 45; width: 92px; height: 92px; margin: -46px 0 0 -46px;
    border-radius: 50%; background: #0b0b0c; color: #fff; font-size: 12.5px; font-weight: 500; pointer-events: none;
    transform: translate3d(var(--cx, -200px), var(--cy, -200px), 0) scale(0); transition: transform .5s var(--ease);
  }
  .k-cursor.on { transform: translate3d(var(--cx), var(--cy), 0) scale(1); }
}

.hp-in picture.in-svg { visibility: hidden; }

/* before/after on the real photo */
.ba { aspect-ratio: 4 / 3; }
.bp-led { stroke: #ffd38a; stroke-width: 2; filter: drop-shadow(0 0 4px rgba(255,200,120,.8)); }
@media (min-width: 1024px) { .ba { aspect-ratio: 16 / 9; } }

.pj { cursor: pointer; }
.pj-all { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 18px; margin-right: 6px; border-radius: 999px; border: 1px solid var(--line2); font-size: 13px; transition: background .3s, color .3s, border-color .3s; }
.pj-all svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--spring); }
.pj-all:hover { background: #fff; color: #0b0b0c; border-color: #fff; }
.pj-all:hover svg { transform: translateX(3px); }
@media (max-width: 1023px) { .pj-nav { display: flex; margin-bottom: 0; } .pj-nav .pj-btn { display: none; } .pj-all { height: 40px; padding: 0 14px; } #projects .sec-head { align-items: flex-end; margin-bottom: 30px; } #projects .sec-head h2 { margin-bottom: 0; } }

/* =========================================================
   Mobile tab bar v2: home · services · [chat] · projects · menu
   ========================================================= */
.tabbar > button { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: rgba(255,255,255,.62); transition: color .3s, transform .35s var(--spring); }
.tabbar > button:active { transform: scale(.9); }
.tabbar > button > span:last-of-type { font-size: 9.5px; font-weight: 500; letter-spacing: -.01em; }
/* raised chat button in the middle */
.tb-chat-in {
  width: 50px; height: 50px; margin-top: -26px; margin-bottom: 1px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(120% 120% at 30% 20%, #5a8bff, var(--blue) 55%, #1d4fd6);
  box-shadow: 0 10px 26px -6px rgba(47,107,255,.75), 0 0 0 4px rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.18);
  transition: transform .45s var(--spring), box-shadow .3s;
}
.tb-chat-in svg { width: 24px; height: 24px; fill: #fff; stroke: none; }
.tb-chat:active .tb-chat-in { transform: scale(.9); }
.tb-chat > span:last-of-type { color: rgba(255,255,255,.85); }
.tb-dot { position: absolute; top: -22px; left: calc(50% + 12px); width: 11px; height: 11px; border-radius: 50%; background: #ff3b30; box-shadow: 0 0 0 2px #000; transition: transform .35s var(--spring); }
.tb-chat.seen .tb-dot { transform: scale(0); }
.tb-chat::before { content: ""; position: absolute; top: -26px; left: 50%; width: 50px; height: 50px; margin-left: -25px; border-radius: 50%; border: 2px solid rgba(107,149,255,.55); animation: va-ping 2.8s ease-out 4; pointer-events: none; }
.tb-chat.seen::before { display: none; }
@keyframes va-ping { 0% { transform: scale(1); opacity: .8; } 70%, 100% { transform: scale(1.55); opacity: 0; } }
/* menu button: two lines that become an x */
.tb-burger { position: relative; width: 22px; height: 22px; display: block; }
.tb-burger i { position: absolute; left: 3px; right: 3px; height: 1.6px; border-radius: 2px; background: currentColor; transition: transform .45s var(--ease), top .45s var(--ease); }
.tb-burger i:first-child { top: 8px; }
.tb-burger i:last-child { top: 14px; }
.tb-menu.open { color: #fff; }
.tb-menu.open .tb-burger i:first-child { top: 11px; transform: rotate(45deg); }
.tb-menu.open .tb-burger i:last-child { top: 11px; transform: rotate(-45deg); }
.tabbar.menu-open .tab-ind { transform: translateX(400%); }
.tabbar.menu-open > a.on { color: rgba(255,255,255,.62); }
.tabbar.menu-open > a.on svg { stroke: currentColor; }
.tabbar.light > button { color: rgba(0,0,0,.55); }
.tabbar.light .tb-chat > span:last-of-type { color: #0b0b0c; }
.tabbar.light .tb-chat-in { box-shadow: 0 10px 26px -6px rgba(47,107,255,.75), 0 0 0 4px rgba(255,255,255,.7); }
/* the floating chat bubble lives in the tab bar on phones */
@media (max-width: 1023px) { .va-fab, .va-hint { display: none !important; } }

/* =========================================================
   Full-screen menu
   ========================================================= */
.mnu {
  position: fixed; inset: 0; z-index: 48; display: flex; flex-direction: column;
  padding: calc(var(--safe-t) + 84px) var(--gut) calc(var(--tabh) + var(--safe-b) + 28px);
  background: rgba(4,5,9,.88); backdrop-filter: blur(26px) saturate(150%); -webkit-backdrop-filter: blur(26px) saturate(150%);
  clip-path: circle(0% at 90% 100%); visibility: hidden;
  transition: clip-path .7s cubic-bezier(.76, 0, .24, 1), visibility 0s .7s;
}
.mnu.open { clip-path: circle(150% at 90% 100%); visibility: visible; transition: clip-path .8s cubic-bezier(.76, 0, .24, 1), visibility 0s; }
.mnu-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.mnu-grid { position: absolute; inset: 0; background: linear-gradient(rgba(107,149,255,.08) 1px, transparent 1px) 0 0 / 100% 36px, linear-gradient(90deg, rgba(107,149,255,.08) 1px, transparent 1px) 0 0 / 36px 100%; -webkit-mask: radial-gradient(120% 80% at 80% 100%, #000, transparent 70%); mask: radial-gradient(120% 80% at 80% 100%, #000, transparent 70%); }
.mnu-glow { position: absolute; right: -30%; bottom: -20%; width: 90vw; height: 90vw; border-radius: 50%; background: radial-gradient(closest-side, rgba(47,107,255,.35), transparent); }
.mnu-top { display: none; } /* the floating header stays on top of the menu */
.mnu-top .logo span { font-size: 14px; }
.mnu-tag { font-size: 11px; color: var(--tx2); letter-spacing: .14em; }
.mnu-links { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.mnu-links a {
  display: grid; grid-template-columns: 34px 1fr 24px; align-items: center; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.07);
  opacity: 0; transform: translateY(26px); transition: opacity .5s var(--ease), transform .7s var(--ease), color .3s;
}
.mnu.open .mnu-links a { opacity: 1; transform: none; transition-delay: calc(.18s + var(--i) * .05s); }
.mnu-links .mono { font-size: 11px; color: var(--tx2); }
.mnu-links b { font-size: clamp(30px, 9vw, 44px); font-weight: 500; letter-spacing: -.035em; line-height: 1.15; }
.mnu-links svg { width: 20px; height: 20px; fill: none; stroke: rgba(255,255,255,.4); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .45s var(--ease), stroke .3s; }
.mnu-links a:active b, .mnu-links a.here b { color: var(--blue2); }
.mnu-links a.here .mono { color: var(--blue2); }
.mnu-links a:active svg { transform: rotate(45deg); stroke: var(--blue2); }
.mnu-foot { display: flex; flex-direction: column; gap: 14px; opacity: 0; transform: translateY(20px); transition: opacity .5s var(--ease), transform .7s var(--ease); }
.mnu.open .mnu-foot { opacity: 1; transform: none; transition-delay: .5s; }
.mnu-contacts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mnu-contacts a, .mnu-contacts button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 0; border-radius: 16px; font-size: 12px; color: var(--tx); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); }
.mnu-contacts svg { width: 20px; height: 20px; fill: none; stroke: var(--blue2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.mnu-copy { font-size: 10.5px; color: var(--tx3); text-align: center; }
@media (min-width: 1024px) { .mnu { display: none; } }

/* brand wordmark (assets/VAGO.svg) */
.logo .vlogo { display: block; width: auto; height: 15px; color: inherit; }
.logo { color: #fff; }
.hdr.light .logo { color: #0b0b0c; }
.footer .logo .vlogo { height: 18px; }
@media (min-width: 1024px) { .hdr .logo .vlogo { height: 16px; } }
