/* =========================================================
   PPF Studios — website styles · v2 "Glass"
   Depth, gloss and light that reacts to the cursor.
   ========================================================= */

:root {
  /* Brand palette */
  --frost: #F5F8F9;
  --mist: #DCE5E9;
  --glass: #BFCED5;
  --silver: #AEB8BD;
  --slate: #6B7C85;
  --ink: #0E1A22;

  /* Derived */
  --slate-text: #56656D;
  --slate-text-on-mist: #4D5A62;
  --ink-2: #13222B;
  --ink-3: #1B2C36;
  --line: rgba(14, 26, 34, .10);
  --line-light: rgba(245, 248, 249, .14);
  --on-ink: rgba(245, 248, 249, .74);

  --font: "Jost", "Futura", "Avenir Next", system-ui, sans-serif;
  --radius: 20px;
  --radius-sm: 10px;
  --container: 1220px;
  --measure: 34em;
  --header-h: 78px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  --shadow-1: 0 1px 2px rgba(14, 26, 34, .06), 0 8px 24px -12px rgba(14, 26, 34, .18);
  --shadow-2: 0 2px 6px rgba(14, 26, 34, .06), 0 30px 60px -28px rgba(14, 26, 34, .35);
  --shadow-3: 0 4px 10px rgba(14, 26, 34, .08), 0 50px 90px -40px rgba(14, 26, 34, .55);
  interpolate-size: allow-keywords;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--frost); color: var(--ink); font: 400 17px/1.65 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 300; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

.container { width: min(var(--container), 100% - 48px); margin-inline: auto; }
.narrow { width: min(860px, 100% - 48px); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: var(--frost); padding: 10px 16px; border-radius: var(--radius-sm); z-index: 100; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--slate); outline-offset: 3px; border-radius: 4px; }
.dark :focus-visible { outline-color: var(--glass); }

/* ---------- Type ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--slate-text); margin-bottom: 20px; }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .6; }
.dark .eyebrow { color: var(--glass); }
h1 { font-size: clamp(48px, 6.6vw, 96px); line-height: 1; letter-spacing: -.025em; }
h2 { font-size: clamp(34px, 3.9vw, 56px); line-height: 1.06; letter-spacing: -.02em; }
h3 { font-size: 21px; font-weight: 500; letter-spacing: 0; line-height: 1.3; }
.lede { font-size: clamp(18px, 1.45vw, 20px); color: var(--slate-text); max-width: var(--measure); }
.small { font-size: 15px; }
.gloss-text {
  background: linear-gradient(180deg, #FFFFFF 10%, #CFDCE2 60%, #9FB6C1 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Placeholder marker: anything the owner still has to supply */
.need { display: inline-block; font: 500 12px/1.4 var(--font); letter-spacing: .01em; background: #FFF1A8; color: #4A3B00; border: 1px dashed #C9A800; padding: 2px 8px; border-radius: 4px; vertical-align: middle; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  font: 500 13px/1 var(--font); letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
  padding: 18px 28px; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, color .3s, border-color .3s;
}
.btn::after { /* sheen sweep */
  content: ""; position: absolute; inset: -2px; z-index: -1; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .55) 48%, transparent 66%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .arrow { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn-ink {
  color: var(--frost);
  background: linear-gradient(180deg, #2A3E4A 0%, #0E1A22 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), inset 0 -1px 0 rgba(0, 0, 0, .4), 0 12px 28px -12px rgba(14, 26, 34, .7);
}
.btn-ink::after { background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .22) 48%, transparent 66%); }
.btn-ink:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 18px 38px -14px rgba(14, 26, 34, .8); }

.btn-frost {
  color: var(--ink);
  background: linear-gradient(180deg, #FFFFFF 0%, #DCE5E9 100%);
  box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(14, 26, 34, .12), 0 14px 34px -14px rgba(159, 182, 193, .75);
}
.btn-frost:hover { box-shadow: inset 0 1px 0 #fff, 0 20px 44px -14px rgba(191, 206, 213, .9); }

.btn-ghost {
  color: var(--frost); border-color: rgba(245, 248, 249, .28);
  background: rgba(255, 255, 255, .06);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.btn-ghost:hover { border-color: rgba(245, 248, 249, .6); background: rgba(255, 255, 255, .12); }
.btn-line { color: var(--ink); border-color: rgba(14, 26, 34, .25); background: rgba(255, 255, 255, .5); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn-line:hover { border-color: var(--ink); background: #fff; }
.btn-sm { padding: 15px 22px; font-size: 12px; }
.btn-block { width: 100%; }

.text-link { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; opacity: .85; transition: opacity .2s, gap .3s var(--ease); }
.text-link:hover { opacity: 1; gap: 12px; }

/* ---------- Glass surfaces ---------- */
.glass {
  position: relative; isolation: isolate; overflow: hidden;
  background: linear-gradient(150deg, rgba(255, 255, 255, .92) 0%, rgba(255, 255, 255, .62) 100%);
  -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, .95);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 #fff, var(--shadow-2);
}
.glass-dark {
  position: relative; isolation: isolate; overflow: hidden;
  background: linear-gradient(150deg, rgba(255, 255, 255, .09) 0%, rgba(255, 255, 255, .025) 100%);
  -webkit-backdrop-filter: blur(20px) saturate(1.3); backdrop-filter: blur(20px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 40px 80px -50px rgba(0, 0, 0, .8);
}
/* Cursor-following glare (set by JS on [data-glare]) */
[data-glare]::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -20%), rgba(255, 255, 255, .95), transparent 45%);
  opacity: 0; transition: opacity .4s;
}
.glass-dark[data-glare]::before { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -20%), rgba(191, 206, 213, .22), transparent 50%); }
[data-glare]:hover::before { opacity: 1; }
/* Touch screens have no cursor: main.js slides the glare as the card scrolls under a fixed "light" */
[data-glare].glare-on::before { opacity: .6; transition: none; }
/* Hover lift */
.lift { transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s; }
.lift:hover { box-shadow: inset 0 1px 0 #fff, var(--shadow-3); }
.glass-dark.lift:hover { border-color: rgba(255, 255, 255, .2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 50px 90px -40px rgba(0, 0, 0, .9); }

/* Soft colour fields behind glass so the blur has something to catch */
.aura { position: relative; isolation: isolate; }
.aura, .section-mist { --slate-text: var(--slate-text-on-mist); }
.aura::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 50% at 8% 20%, rgba(159, 182, 193, .45), transparent 70%),
    radial-gradient(35% 45% at 92% 40%, rgba(191, 206, 213, .55), transparent 70%),
    radial-gradient(45% 40% at 50% 100%, rgba(174, 184, 189, .35), transparent 70%);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  transition: background .4s, border-color .4s, color .4s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(245, 248, 249, .72);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  border-color: var(--line);
}
.site-header.on-dark { color: var(--frost); }
.site-header.on-dark.scrolled { background: rgba(14, 26, 34, .55); border-color: var(--line-light); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { position: relative; display: block; padding-block: 8px; }
.brand img { height: 34px; width: auto; transition: opacity .35s; }
.brand .logo-light { position: absolute; inset: 8px auto auto 0; opacity: 0; }
.on-dark .brand .logo-dark { opacity: 0; }
.on-dark .brand .logo-light { opacity: 1; }
.nav-list { display: flex; align-items: center; gap: 30px; }
.nav-list a:not(.btn) { position: relative; display: inline-block; padding-block: 8px; font-size: 15px; text-decoration: none; opacity: .82; transition: opacity .2s; }
.nav-list a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav-list a:not(.btn):hover { opacity: 1; }
.nav-list a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }
.nav-list a[aria-current="page"] { opacity: 1; }
.nav-list a[aria-current="page"]::after { transform: scaleX(1); }
.on-dark .nav-cta .btn-ink { color: var(--ink); background: linear-gradient(180deg, #fff, #DCE5E9); box-shadow: inset 0 1px 0 #fff, 0 10px 26px -12px rgba(159, 182, 193, .8); }
.nav-cta .btn { transition-property: transform, box-shadow; }
.nav-toggle { display: none; }

/* ---------- Dark sections + spotlight ---------- */
.dark { background: var(--ink); color: var(--frost); position: relative; isolation: isolate; overflow: hidden; overflow: clip; }
.dark p { color: var(--on-ink); }
.dark .lede { color: var(--on-ink); }
[data-spotlight] { --sx: 70%; --sy: 30%; }
[data-spotlight]::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(640px circle at var(--sx) var(--sy), rgba(191, 206, 213, .11), transparent 60%);
}
.grid-lines::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 80px 80px;
  -webkit-mask-image: radial-gradient(70% 70% at 70% 40%, #000, transparent 75%); mask-image: radial-gradient(70% 70% at 70% 40%, #000, transparent 75%);
}

/* ---------- Hero ---------- */
.hero { padding: calc(var(--header-h) + 64px) 0 0; }
.hero-glow { position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(900px 620px at 78% 36%, rgba(159, 182, 193, .26), transparent 62%),
    radial-gradient(700px 520px at 0% 100%, rgba(107, 124, 133, .22), transparent 60%),
    linear-gradient(180deg, #0E1A22 0%, #0B151B 100%);
}
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 28px; }
.hero .lede { margin-bottom: 38px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.hero-aside { margin-top: 30px; font-size: 15px; color: var(--on-ink); }
.hero-aside a { color: var(--frost); }

/* 3D glass stage */
.stage { position: relative; perspective: 1400px; justify-self: end; width: 100%; max-width: 580px; }
.stage-inner { position: relative; aspect-ratio: 1 / 1.02; transform-style: preserve-3d; transform: rotateX(var(--rx, 6deg)) rotateY(var(--ry, -10deg)); transition: transform .9s var(--ease); }
.stage-surface, .stage-film { position: absolute; width: 76%; height: 76%; border-radius: 22px; }
.stage-surface {
  left: 0; bottom: 0; overflow: hidden; background: #16262F;
  transform: translateZ(0);
  box-shadow: 0 60px 120px -50px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .06);
}
.slide { position: absolute; inset: 0; opacity: 0; transform: scale(1.06); transition: opacity 1s var(--ease), transform 1.6s var(--ease); }
.slide.is-active { opacity: 1; transform: none; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.stage-film {
  right: 0; top: 0; transform: translateZ(70px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .26) 0%, rgba(255, 255, 255, .05) 30%, rgba(255, 255, 255, 0) 52%, rgba(255, 255, 255, .07) 100%),
    rgba(191, 206, 213, .09);
  -webkit-backdrop-filter: blur(1px) saturate(1.3) brightness(1.05); backdrop-filter: blur(1px) saturate(1.3) brightness(1.05);
  border: 1px solid rgba(255, 255, 255, .42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 0 40px rgba(191, 206, 213, .12), 0 40px 80px -40px rgba(0, 0, 0, .6);
  overflow: hidden;
}
.stage-film::before { /* specular highlight that follows the cursor */
  content: ""; position: absolute; inset: -20%;
  background: radial-gradient(closest-side at var(--gx, 30%) var(--gy, 25%), rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 70%);
  mix-blend-mode: soft-light;
}
.stage-film::after { /* moving glint */
  content: ""; position: absolute; top: -40%; bottom: -40%; width: 30%; left: -40%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .28), transparent);
  transform: skewX(-18deg); animation: glint 7s var(--ease) infinite 1.5s;
}
@keyframes glint { 0%, 70% { left: -40%; } 100% { left: 130%; } }
.tag-chip {
  position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--frost);
  padding: 8px 12px; border-radius: 999px;
  background: rgba(14, 26, 34, .62); border: 1px solid rgba(255, 255, 255, .18);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.tag-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--glass); box-shadow: 0 0 10px var(--glass); }
.stage-surface .tag-chip { left: 18px; bottom: 18px; }
.stage-film .tag-chip { right: 18px; top: 18px; }

.stage-switch { display: flex; gap: 8px; margin-top: 34px; justify-content: flex-end; flex-wrap: wrap; }
.stage-switch button {
  position: relative; overflow: hidden; cursor: pointer;
  font-size: 13px; letter-spacing: .06em; padding: 11px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .14); color: var(--on-ink);
  transition: background .3s, color .3s, border-color .3s;
}
.stage-switch button:hover { color: var(--frost); border-color: rgba(255, 255, 255, .3); }
.stage-switch button[aria-pressed="true"] { color: var(--frost); background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .32); }
.stage-switch button .bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--glass); transform: scaleX(0); transform-origin: left; }
.stage-switch button[aria-pressed="true"] .bar { animation: fill var(--slide-ms, 4200ms) linear forwards; }
.stage.paused .stage-switch button .bar { animation-play-state: paused; }
@keyframes fill { to { transform: scaleX(1); } }

.proof-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 80px; padding-bottom: 72px; }
.proof { padding: 24px 26px; font-size: 15px; }
.proof strong { display: block; color: var(--frost); font-weight: 500; font-size: 16px; margin-bottom: 4px; }
.proof span { display: block; max-width: var(--measure); color: var(--on-ink); }

/* ---------- Sections ---------- */
.section { padding: 128px 0; position: relative; }
.section-tight { padding: 96px 0; }
.section-mist { background: linear-gradient(180deg, #E4EBEE 0%, var(--mist) 100%); }
.section-head { max-width: 760px; margin-bottom: 60px; }
.section-head h2 { margin-bottom: 18px; }
.section-head p:not(.eyebrow) { color: var(--slate-text); font-size: 18px; max-width: var(--measure); }
.dark .section-head p:not(.eyebrow) { color: var(--on-ink); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }

/* ---------- Tabs ---------- */
.tabs { display: inline-flex; gap: 6px; padding: 6px; border-radius: 999px; margin-bottom: 40px; }
.tab {
  cursor: pointer; border: 0; background: transparent; padding: 12px 22px; border-radius: 999px;
  font-size: 15px; color: var(--slate-text); transition: color .3s, background .3s, box-shadow .3s;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--frost); background: linear-gradient(180deg, #2A3E4A, #0E1A22); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 8px 20px -10px rgba(14, 26, 34, .7); }
.tab-panel { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.tab-panel[hidden] { display: none; }
.js .tab-panel:not([hidden]) { animation: panel-in .7s var(--ease); }
@keyframes panel-in { from { opacity: 0; transform: translateY(12px); } }
.panel-title { font-size: clamp(28px, 2.7vw, 40px); font-weight: 300; letter-spacing: -.015em; line-height: 1.12; margin-bottom: 22px; }
.tab-panel p { color: var(--slate-text); max-width: var(--measure); }
.tab-panel .note { font-size: 15px; border-left: 2px solid var(--glass); padding-left: 14px; margin-top: 20px; }

/* ---------- Before / after slider ---------- */
.compare-frame { padding: 10px; margin: 0; }
.compare { position: relative; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; --pos: 50%; user-select: none; background: #16262F; }
.compare-layer { position: absolute; inset: 0; }
.compare-layer img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.compare-after { clip-path: inset(0 0 0 var(--pos)); }
.compare-layer img.sheen { opacity: .45; mix-blend-mode: screen; }
.compare .tag-chip { top: 16px; bottom: auto; }
.compare-before .tag-chip { left: 16px; }
.compare-after .tag-chip { right: 16px; }
.compare-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 0; pointer-events: none; z-index: 3; }
.compare-handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: linear-gradient(180deg, rgba(255, 255, 255, .2), #fff 20%, #fff 80%, rgba(255, 255, 255, .2)); box-shadow: 0 0 18px rgba(191, 206, 213, .9); }
.compare-knob {
  position: absolute; top: 50%; left: 0; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(160deg, rgba(255, 255, 255, .95), rgba(220, 229, 233, .8));
  border: 1px solid #fff;
  box-shadow: inset 0 1px 0 #fff, 0 10px 30px -8px rgba(0, 0, 0, .55), 0 0 0 6px rgba(255, 255, 255, .18);
  transition: transform .3s var(--ease);
}
.compare-knob svg { width: 22px; height: 22px; color: var(--ink); }
.compare:hover .compare-knob, .compare.dragging .compare-knob { transform: scale(1.08); }
.compare-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 4; -webkit-appearance: none; appearance: none; }
.compare-range:focus-visible ~ .compare-handle .compare-knob { outline: 2px solid var(--slate); outline-offset: 4px; }
.compare-caption { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--slate-text); padding: 12px 6px 2px; }
.compare-caption span:last-child { text-align: right; }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service { padding: 34px 32px 30px; display: flex; flex-direction: column; }
.service-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 26px;
  background: linear-gradient(160deg, #fff, #DCE5E9); border: 1px solid #fff;
  box-shadow: inset 0 1px 0 #fff, 0 10px 20px -10px rgba(14, 26, 34, .35);
}
.service-icon svg { width: 26px; height: 26px; color: var(--ink); }
.service h3 { margin-bottom: 12px; }
.service p { color: var(--slate-text); font-size: 16px; }
.service > p:not(.service-where) { margin-bottom: 22px; }
.service .service-where { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; letter-spacing: .04em; color: var(--slate-text); }
.service-cta { justify-content: space-between; }
.service-cta h3 { font-weight: 400; font-size: 26px; margin-bottom: 12px; }

/* ---------- Clients ---------- */
.clients { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.client { padding: 40px 38px; }
.client h3 { font-size: 28px; font-weight: 300; margin-bottom: 14px; color: var(--frost); }
.client p { max-width: var(--measure); }
.client-kicker { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--glass); margin-bottom: 18px; display: block; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tags li { font-size: 13px; padding: 7px 14px; border-radius: 99px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); color: var(--frost); }
.client-trade { background: linear-gradient(150deg, rgba(191, 206, 213, .22), rgba(191, 206, 213, .06)); border-color: rgba(191, 206, 213, .35); }

/* Client card photos */
.client-img { position: relative; margin: -40px -38px 30px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; }
.client-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.2s var(--ease), filter .6s; filter: saturate(.92); }
.client-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 26, 34, 0) 45%, rgba(14, 26, 34, .55) 100%); }
.client:hover .client-img img { transform: scale(1.07); filter: saturate(1.05); }
@media (max-width: 560px) { .client-img { margin: -32px -26px 24px; } }

/* ---------- Homes band ---------- */
.homes-band { display: grid; grid-template-columns: 1.1fr .9fr; align-items: stretch; padding: 0; }
.homes-band-copy { padding: 52px; }
.homes-band-copy h2 { font-size: clamp(30px, 3vw, 42px); margin-bottom: 16px; }
.homes-band-copy p { color: var(--slate-text); margin-bottom: 28px; max-width: var(--measure); }
.homes-band-art { position: relative; min-height: 300px; overflow: hidden; }
.homes-band-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.homes-band:hover .homes-band-art img { transform: scale(1.05); }
.homes-band-art .tag-chip { left: 20px; bottom: 20px; }

/* ---------- Process ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.steps::before { content: ""; position: absolute; left: 26px; right: 26px; top: 26px; height: 1px; background: linear-gradient(90deg, var(--ink), var(--glass)); transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease) .2s; }
.steps.in::before { transform: scaleX(1); }
html:not(.js) .steps::before { transform: scaleX(1); }
.step { position: relative; }
.step-num {
  position: relative; z-index: 1; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 26px;
  font-size: 18px; font-weight: 400; color: var(--ink);
  background: linear-gradient(160deg, #fff, #DCE5E9); border: 1px solid #fff;
  box-shadow: inset 0 1px 0 #fff, 0 10px 24px -10px rgba(14, 26, 34, .4);
}
.step h3 { margin-bottom: 10px; }
.step p { color: var(--slate-text); font-size: 16px; }

/* ---------- Area ---------- */
.split-area { align-items: center; }
.split-area h2 { margin-bottom: 18px; }
.split-area p { color: var(--slate-text); max-width: var(--measure); }
.area-list { display: flex; flex-wrap: wrap; gap: 10px; }
.area-list li { font-size: 16px; padding: 10px 18px; border-radius: 999px; background: rgba(255, 255, 255, .7); border: 1px solid #fff; box-shadow: var(--shadow-1); transition: transform .3s var(--ease), box-shadow .3s; }
.area-list li:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }

/* ---------- FAQ ---------- */
.faq { padding: 8px 34px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary { list-style: none; cursor: pointer; padding: 26px 56px 26px 0; position: relative; font-size: 20px; font-weight: 400; transition: color .2s; }
.faq summary:hover { color: var(--slate); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm {
  position: absolute; right: 0; top: 50%; width: 34px; height: 34px; margin-top: -17px; border-radius: 50%;
  background: linear-gradient(160deg, #fff, #DCE5E9); border: 1px solid #fff; box-shadow: 0 6px 14px -8px rgba(14, 26, 34, .4);
}
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px; background: var(--ink); transition: transform .35s var(--ease); }
.faq summary .pm::after { transform: rotate(90deg); }
.faq details[open] summary .pm::after { transform: rotate(0); }
.faq details::details-content { block-size: 0; overflow: hidden; transition: block-size .45s var(--ease), content-visibility .45s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
.faq details p { color: var(--slate-text); padding: 0 56px 26px 0; }

/* ---------- Diagrams (homes page) ---------- */
.diagrams { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 56px; }
.diagram { margin: 0; padding: 26px 26px 22px; }
.diagram svg { width: 100%; height: auto; }
.diagram figcaption { color: var(--slate-text); font-size: 15px; margin-top: 10px; }
.d-title { font: 500 16px var(--font); fill: var(--ink); }
.d-note { font: 400 12.5px var(--font); fill: var(--slate-text); }
.d-lead { stroke: var(--slate); stroke-width: 1; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: start; }
.contact-copy h2 { margin-bottom: 20px; }
.contact-copy p { max-width: var(--measure); }
@media (min-width: 861px) { .contact-copy { position: sticky; top: calc(var(--header-h) + 40px); } }
.contact-direct { margin: 40px 0 0; display: grid; gap: 12px; }
.contact-direct > div { padding: 16px 20px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); }
.contact-direct dt { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--glass); margin-bottom: 4px; }
.contact-direct dd { margin: 0; font-size: 18px; }

.form { padding: 40px; display: grid; gap: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span, .field legend { font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: rgba(245, 248, 249, .7); }
.field legend { margin-bottom: 10px; padding: 0; }
.field input, .field select, .field textarea {
  width: 100%; font: 400 16px/1.4 var(--font); color: var(--frost);
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 12px; padding: 14px 16px; transition: border-color .25s, background .25s, box-shadow .25s;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(245, 248, 249, .38); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--glass); background: rgba(255, 255, 255, .09); box-shadow: 0 0 0 4px rgba(191, 206, 213, .14), 0 0 24px -4px rgba(191, 206, 213, .35); }
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23BFCED5' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.field select option { color: var(--ink); }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.checks legend { grid-column: 1 / -1; }
.checks label { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--frost); cursor: pointer; padding: 11px 14px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .03); transition: border-color .25s, background .25s; }
.checks label:hover { border-color: rgba(255, 255, 255, .22); }
.checks label:has(input:checked) { border-color: var(--glass); background: rgba(191, 206, 213, .12); }
.checks input { width: 18px; height: 18px; accent-color: var(--glass); margin: 0; }
.form .btn { margin-top: 6px; padding: 20px 26px; }
.form .form-note { font-size: 13px; color: rgba(245, 248, 249, .55); margin: -6px 0 0; text-align: center; }
.hp { position: absolute; left: -9999px; }

/* ---------- Footer ---------- */
.site-footer { background: #091217; color: var(--frost); padding: 80px 0 48px; position: relative; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.site-footer img { height: 32px; width: auto; }
.footer-tag { margin-top: 18px; color: var(--on-ink); }
.site-footer ul { display: grid; gap: 2px; }
.site-footer a { text-decoration: none; color: var(--on-ink); transition: color .2s; }
.site-footer ul a { display: inline-block; padding-block: 4px; }
.site-footer a:hover { color: var(--frost); }
.footer-meta { color: var(--on-ink); font-size: 15px; }
.footer-word { margin-top: 72px; font-size: clamp(40px, 13.5vw, 200px); font-weight: 300; letter-spacing: .12em; text-indent: .12em; line-height: .8; text-align: center; white-space: nowrap;
  background: linear-gradient(180deg, rgba(191, 206, 213, .24), rgba(191, 206, 213, 0)); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease), box-shadow .5s var(--ease), border-color .4s; transition-delay: calc(var(--d, 0) * 90ms); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.in.lift { transition: opacity .9s var(--ease), transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s; transition-delay: 0s; }
.js .stage .stage-film { opacity: 0; translate: 30px -30px; transition: opacity 1s ease .3s, translate 1.4s var(--ease) .3s; }
.js .stage.in .stage-film { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .stage .stage-film { opacity: 1; transform: none; translate: none; transition: none; }
  .stage-film::after, .stage-switch button .bar { animation: none !important; }
  .slide { transition: opacity .3s; transform: none; }
  .btn::after { display: none; }
}

/* ---------- Security film: exploded layer view ---------- */
.security-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.security-copy h2 { margin-bottom: 22px; }
.security-copy .lede { margin-bottom: 18px; }
.security-copy p { max-width: var(--measure); }
.security-copy .note { font-size: 15px; border-left: 2px solid var(--glass); padding-left: 14px; margin-top: 26px; color: rgba(245, 248, 249, .62); }
.layer-legend { list-style: none; margin: 30px 0 0; padding: 0; max-width: var(--measure); }
.layer-legend li { display: grid; grid-template-columns: 46px 1fr; gap: 6px; padding: 16px 12px 16px 0; border-top: 1px solid var(--line-light); transition: background .4s var(--ease); }
.layer-legend li:last-child { border-bottom: 1px solid var(--line-light); }
.ll-num { font-size: 12px; letter-spacing: .2em; color: var(--silver); padding: 5px 0 0 4px; transition: color .3s, text-shadow .3s; }
.layer-legend strong { display: block; font-weight: 400; font-size: 18px; color: var(--frost); margin-bottom: 2px; }
.layer-legend strong em { font-style: normal; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--glass); margin-left: 8px; }
.layer-legend li > div > span { color: var(--on-ink); font-size: 15px; }
.layer-legend li.is-hot { background: linear-gradient(90deg, rgba(159, 182, 193, .12), transparent 85%); }
.layer-legend li.is-hot .ll-num { color: var(--frost); text-shadow: 0 0 12px var(--glass); }

.layers-wrap { display: flex; flex-direction: column; align-items: center; }
.layers { position: relative; width: 100%; max-width: 560px; perspective: 1600px; }
.layers-inner { position: relative; aspect-ratio: 1 / .9; transform-style: preserve-3d; transform: translateY(9%) rotateX(var(--rx, 58deg)) rotateZ(var(--rz, -38deg)); transition: transform 1s var(--ease); }
.layers-inner::before { /* soft floor shadow */
  content: ""; position: absolute; inset: 20% 16%; border-radius: 30px; background: rgba(0, 0, 0, .7); filter: blur(30px); transform: translateZ(-30px);
}
.layer { position: absolute; inset: 14% 12%; border-radius: 18px; transform: translateZ(calc(var(--z, 0px) + var(--lift, 0px))); transition: transform 1.1s var(--ease), box-shadow .4s, opacity .4s; }
.layer-glass { --z: 0px; }
.layer-film { --z: 7px; }
.layer-anchor { --z: 12px; }
.layers.is-exploded .layer-film { --z: 92px; }
.layers.is-exploded .layer-anchor { --z: 184px; }
.layer.is-hot { --lift: 22px; }
.layer-num { position: absolute; z-index: 2; left: 16px; top: 14px; font-size: 12px; letter-spacing: .2em; color: var(--frost); padding: 5px 9px; border-radius: 999px; background: rgba(14, 26, 34, .62); border: 1px solid rgba(255, 255, 255, .22); transition: background .3s, border-color .3s; }
.layer.is-hot .layer-num { background: rgba(191, 206, 213, .3); border-color: rgba(255, 255, 255, .6); }
.layer-glass { overflow: hidden; background: #16262F; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 40px 80px -40px rgba(0, 0, 0, .9); }
.layer-glass img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) brightness(.8); }
.layer-glass::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, .06) 100%); }
.layer-film { overflow: hidden;
  background: linear-gradient(145deg, rgba(255, 255, 255, .30) 0%, rgba(255, 255, 255, .06) 32%, rgba(255, 255, 255, 0) 55%, rgba(255, 255, 255, .10) 100%), rgba(159, 182, 193, .16);
  border: 1px solid rgba(255, 255, 255, .5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), inset 0 0 0 4px rgba(191, 206, 213, .14), 0 30px 60px -30px rgba(0, 0, 0, .6);
}
.layer-film.is-hot { box-shadow: inset 0 1px 0 #fff, inset 0 0 0 4px rgba(191, 206, 213, .3), 0 0 46px rgba(159, 182, 193, .55); }
.layer-film::after { content: ""; position: absolute; top: -40%; bottom: -40%; width: 30%; left: -40%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent); transform: skewX(-18deg); animation: glint 6s var(--ease) infinite 1s; }
.layer-anchor::before { /* brushed-metal frame */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 11px;
  background: linear-gradient(135deg, #FFFFFF 0%, #AEB8BD 28%, #6B7C85 52%, #DCE5E9 78%, #FFFFFF 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
}
.layer-anchor::after { /* attachment bead where film meets frame */
  content: ""; position: absolute; inset: 10px; border-radius: 9px; border: 2px solid rgba(191, 206, 213, .9);
  box-shadow: 0 0 14px rgba(159, 182, 193, .7), inset 0 0 14px rgba(159, 182, 193, .35); transition: box-shadow .4s;
}
.layer-anchor.is-hot::after { box-shadow: 0 0 26px rgba(191, 206, 213, 1), inset 0 0 22px rgba(159, 182, 193, .6); }
.layers-toggle { margin-top: 4px; font: 500 12px/1 var(--font); letter-spacing: .18em; text-transform: uppercase; color: var(--on-ink); padding: 15px 22px; border-radius: 999px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .16); cursor: pointer; transition: color .3s, background .3s, border-color .3s; }
.layers-toggle:hover { color: var(--frost); background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .32); }
.layers-toggle .lt-off, .layers-toggle[aria-pressed="true"] .lt-on { display: none; }
.layers-toggle[aria-pressed="true"] .lt-off { display: inline; }
@media (prefers-reduced-motion: reduce) {
  .layer, .layers-inner { transition: none; }
  .layer-film::after { animation: none; }
}

/* Services: the "not sure" card runs full width under the six films */
.services .service-cta { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 40px; }
.services .service-cta > div { max-width: 32em; }
.services .service-cta .btn { flex-shrink: 0; }
/* When the card would land in the last slot of a row anyway (homes page: five films), it fills that slot instead of leaving a gap */
.services > .service-cta:nth-child(6):last-child { grid-column: auto; flex-direction: column; align-items: flex-start; gap: 24px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .services { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 44px; }
  .steps::before { display: none; }
  .nav-list { gap: 22px; }
  .tab-panel { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; color: inherit; }
  .bars, .bars::before, .bars::after { display: block; width: 22px; height: 1.5px; background: currentColor; position: relative; transition: transform .25s, background .25s; }
  .bars::before, .bars::after { content: ""; position: absolute; left: 0; }
  .bars::before { top: -7px; }
  .bars::after { top: 7px; }
  .nav-toggle[aria-expanded="true"] .bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }
  .nav-list { position: fixed; left: 12px; right: 12px; top: calc(var(--header-h) - 6px); flex-direction: column; align-items: stretch; gap: 0; padding: 10px 22px 22px; display: none; color: var(--ink);
    background: rgba(245, 248, 249, .94); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border: 1px solid #fff; border-radius: 20px; box-shadow: var(--shadow-3); }
  .nav-list.open { display: flex; }
  .nav-list li a:not(.btn) { display: block; padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--line); }
  .nav-list li a:not(.btn)::after { display: none; }
  .nav-cta { margin-top: 18px; }
  .nav-cta .btn { width: 100%; }
  .on-dark .nav-cta .btn-ink { color: var(--frost); background: linear-gradient(180deg, #2A3E4A, #0E1A22); }
}

@media (max-width: 860px) {
  .hero { padding-top: calc(var(--header-h) + 36px); }
  .hero-grid, .split, .contact-grid, .clients, .homes-band, .diagrams { grid-template-columns: 1fr; }
  .hero-grid { gap: 56px; }
  .stage { justify-self: center; max-width: 460px; }
  .stage-switch { justify-content: center; }
  .proof-strip { gap: 12px; margin-top: 64px; }
  .proof { padding: 20px; }
  .section { padding: 92px 0; }
  .section-tight { padding: 72px 0; }
  .split, .contact-grid { gap: 36px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .homes-band-art { min-height: 220px; order: -1; }
  .homes-band-copy { padding: 36px 30px; }
  .tabs { display: flex; overflow-x: auto; max-width: 100%; }
  .tab { white-space: nowrap; padding: 11px 16px; }
}

@media (max-width: 720px) {
  .proof-strip { grid-template-columns: 1fr; }
  .proof { padding: 20px 22px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .container, .narrow { width: calc(100% - 36px); }
  .brand img { height: 28px; }
  .services, .steps { grid-template-columns: 1fr; }
  .field-row, .checks { grid-template-columns: 1fr; }
  .form { padding: 26px 20px; }
  .client { padding: 32px 26px; }
  .service { padding: 30px 26px 26px; }
  /* Icon beside the title, so six stacked cards scroll by faster */
  .service:not(.service-cta) { display: grid; grid-template-columns: 52px 1fr; column-gap: 16px; align-items: center; }
  .service:not(.service-cta) .service-icon { margin-bottom: 0; }
  .service:not(.service-cta) h3 { margin-bottom: 0; }
  .service:not(.service-cta) > p { grid-column: 1 / -1; }
  .service:not(.service-cta) > p:first-of-type { margin-top: 18px; }
  .faq { padding: 4px 22px; }
  .faq summary { font-size: 18px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .tabs { gap: 4px; }
  .tab { padding: 11px 10px; }
  .site-footer ul { gap: 0; }
  .site-footer ul a { display: block; padding-block: 9px; }
  .compare-knob { width: 46px; height: 46px; margin: -23px 0 0 -23px; }
  .tag-chip { letter-spacing: .12em; }
  .compare .tag-chip { padding: 6px 9px; }
  .compare-after .tag-chip { top: auto; bottom: 14px; }
}

@media (max-width: 960px) {
  /* One column: the diagram sits between the intro and the numbered list that explains it */
  .security-grid { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .security-copy .eyebrow { align-self: flex-start; }
  .security-copy { display: contents; }
  .layers-wrap { order: 1; margin: 8px 0 4px; }
  .layer-legend, .security-copy .note { order: 2; }
  .layers { max-width: 500px; }
}
@media (max-width: 560px) {
  .layers.is-exploded .layer-film { --z: 64px; }
  .layers.is-exploded .layer-anchor { --z: 128px; }
  .services .service-cta { flex-direction: column; align-items: flex-start; gap: 22px; }
}
/* Smallest phones: the three surface tabs fit without scrolling */
@media (max-width: 359px) {
  .tabs { gap: 2px; }
  .tab { font-size: 14px; padding-inline: 8px; }
}
