/* ==========================================================
   Vaeleen Digital — design system
   One serif family (Newsreader) for display and body, set
   heavier than usual so it stays readable over the 3D scene.
   ========================================================== */

@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader-opsz.woff2") format("woff2-variations"), url("/assets/fonts/newsreader-opsz.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader-opsz-italic.woff2") format("woff2-variations"), url("/assets/fonts/newsreader-opsz-italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #070913;
  --ink-2: #0d1022;
  --cream: #f6efe3;
  --dim: rgba(246, 239, 227, 0.8);
  --faint: rgba(246, 239, 227, 0.58);
  --line: rgba(246, 239, 227, 0.18);
  --line-strong: rgba(246, 239, 227, 0.36);
  --blush: #f3c9d3;
  --verm: #ec6347;
  --glass: rgba(8, 10, 26, 0.76);
  --glass-strong: rgba(7, 9, 22, 0.86);
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --wrap: 1240px;
  --pad: clamp(1.25rem, 4.4vw, 3.25rem);
  --radius: 4px;
  --ease: cubic-bezier(0.22, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--ink); }
body {
  margin: 0;
  min-height: 100vh;
  background: transparent;
  color: var(--cream);
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 430;
  font-size: clamp(1.1rem, 0.35vw + 1.02rem, 1.26rem);
  line-height: 1.62;
  letter-spacing: 0.002em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1.1em; text-shadow: 0 1px 14px rgba(4, 6, 16, 0.55); }
.panel p, .btn, .stat p { text-shadow: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.04; letter-spacing: -0.018em; text-wrap: balance; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--blush); color: var(--ink); }

:focus-visible { outline: 2px solid var(--verm); outline-offset: 3px; border-radius: 2px; }
.skip-link { position: fixed; left: 1rem; top: -4rem; z-index: 200; background: var(--cream); color: var(--ink); padding: 0.6rem 1rem; font-weight: 600; }
.skip-link:focus { top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 3D backdrop ---------- */
#scene { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh; z-index: -3; display: block; opacity: 0; transition: opacity 1.4s var(--ease); background: #12163a; }
html.scene-on #scene { opacity: 1; }
.backdrop-fallback { position: fixed; inset: 0; z-index: -4; background: radial-gradient(120% 70% at 20% 100%, #c58a7a 0%, rgba(197, 138, 122, 0) 55%), linear-gradient(180deg, #0a1132 0%, #38407a 55%, #8a82a8 100%); }
html.no-webgl #scene { display: none; }
.veil {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(130% 100% at 50% 40%, rgba(5, 7, 18, 0) 38%, rgba(5, 7, 18, 0.5) 100%),
    linear-gradient(180deg, rgba(5, 7, 18, 0.42) 0%, rgba(5, 7, 18, 0.1) 26%, rgba(5, 7, 18, 0.1) 62%, rgba(5, 7, 18, 0.5) 100%);
}
.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- Layout ---------- */
.wrap { width: min(100% - var(--pad) * 2, var(--wrap)); margin-inline: auto; }
.section { position: relative; padding-block: clamp(5rem, 14vh, 10rem); }
.section--tall { min-height: 100vh; display: flex; align-items: center; }
.stack > * + * { margin-top: 1.4rem; }

.kicker {
  display: inline-flex; align-items: center; gap: 0.8rem;
  font-size: 0.8rem; font-weight: 640; letter-spacing: 0.2em; text-transform: uppercase; color: var(--blush);
}
.kicker::before { content: ""; width: 2.2rem; height: 1px; background: currentColor; opacity: 0.8; }

.display { font-size: clamp(2.9rem, 8.2vw, 7.4rem); font-weight: 490; line-height: 0.95; letter-spacing: -0.026em; }
.title { font-size: clamp(2.1rem, 4.6vw, 4rem); font-weight: 500; line-height: 1.02; }
.lede { font-size: clamp(1.24rem, 1.1vw + 1rem, 1.6rem); line-height: 1.5; color: var(--dim); max-width: 38ch; font-weight: 440; }
em, .em { font-style: italic; font-weight: 450; }
.glow { text-shadow: 0 2px 36px rgba(4, 6, 16, 0.55), 0 1px 3px rgba(4, 6, 16, 0.35); }

.panel {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 2.6vw, 2.4rem);
}
.panel--strong { background: var(--glass-strong); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 52px; padding: 0.8rem 1.7rem;
  font-weight: 620; font-size: 1rem; letter-spacing: 0.04em;
  border: 1px solid var(--cream); border-radius: 2px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease), border-color 0.3s;
}
.btn-primary { background: var(--cream); color: var(--ink); }
.btn-primary:hover { background: #fff; transform: translateY(-2px); }
.btn-ghost { background: rgba(7, 9, 22, 0.35); }
.btn-ghost:hover { background: var(--cream); color: var(--ink); }
.btn[disabled] { opacity: 0.6; cursor: wait; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }
.arrow-link { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; font-weight: 620; border-bottom: 1px solid var(--line-strong); padding-block: 0.2rem; }
.arrow-link:hover { border-color: var(--cream); }

/* ---------- Header ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 90; transition: background 0.4s var(--ease), border-color 0.4s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(7, 9, 22, 0.84); border-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; min-height: 74px; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; font-size: 1.35rem; font-weight: 560; letter-spacing: -0.01em; min-height: 44px; }
.brand img { width: 30px; height: 30px; filter: brightness(0) invert(1); }
.nav-links { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2.1rem); }
.nav-links a:not(.btn) { position: relative; display: inline-flex; align-items: center; min-height: 44px; font-size: 1.02rem; font-weight: 540; color: var(--dim); transition: color 0.25s; }
.nav-links a:not(.btn):hover, .nav-links a[aria-current="page"] { color: var(--cream); }
.nav-links a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; background: var(--cream); }
.nav-links .btn { min-height: 44px; padding: 0.45rem 1.2rem; font-size: 0.95rem; }
.burger { display: none; width: 48px; height: 48px; background: none; border: 1px solid var(--line-strong); border-radius: 2px; position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--cream); transition: transform 0.3s var(--ease), opacity 0.2s; }
.burger span:nth-child(1) { top: 17px; } .burger span:nth-child(2) { top: 23px; } .burger span:nth-child(3) { top: 29px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 85; background: rgba(6, 8, 20, 0.96);
  display: flex; flex-direction: column; justify-content: center; gap: 0.2rem; padding: 6rem var(--pad) 3rem;
  opacity: 0; visibility: hidden; transition: opacity 0.35s var(--ease), visibility 0s linear 0.35s;
}
.mobile-menu.open { opacity: 1; visibility: visible; transition: opacity 0.35s var(--ease); }
.mobile-menu a { font-size: clamp(2rem, 9vw, 3rem); font-weight: 500; padding: 0.55rem 0; border-bottom: 1px solid var(--line); min-height: 56px; }
.mobile-menu a[aria-current="page"] { font-style: italic; color: var(--blush); }

/* ---------- Hero ---------- */
.hero { min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; padding-top: 8rem; padding-bottom: clamp(3rem, 9vh, 6rem); }
.hero--page { min-height: 86vh; min-height: 86svh; }
.hero .display { max-width: 15ch; }
.hero .lede { margin-top: 1.8rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 2.2rem; margin-bottom: 2rem; color: var(--dim); font-size: 0.95rem; font-weight: 520; letter-spacing: 0.06em; }
.scroll-cue { position: absolute; right: var(--pad); bottom: 2.2rem; display: flex; align-items: center; gap: 0.8rem; font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim); writing-mode: vertical-rl; }
.scroll-cue::after { content: ""; width: 1px; height: 64px; background: linear-gradient(var(--cream), transparent); animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

.eco-line { position: fixed; z-index: 1; }

/* ---------- Statement / stats ---------- */
.statement { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(2rem, 6vw, 6rem); align-items: end; }
.statement .big { font-size: clamp(1.9rem, 3.6vw, 3.2rem); font-weight: 480; line-height: 1.12; letter-spacing: -0.015em; }
.statement .big em { color: var(--blush); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--glass-strong); padding: clamp(1.3rem, 3vw, 2.4rem); }
.stat .fig { font-size: clamp(2.6rem, 5.6vw, 4.8rem); font-weight: 480; line-height: 1; letter-spacing: -0.03em; }
.stat .fig small { font-size: 0.45em; font-style: italic; margin-left: 0.1em; }
.stat .cap { margin-top: 0.7rem; color: var(--dim); font-size: 0.98rem; }

.pull { max-width: 22ch; font-size: clamp(2rem, 4.2vw, 3.8rem); font-weight: 470; font-style: italic; line-height: 1.1; letter-spacing: -0.015em; }
.pull-by { margin-top: 1.6rem; font-size: 0.9rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--dim); font-weight: 600; }

/* ---------- Work grid ---------- */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem; margin-bottom: clamp(2rem, 5vw, 4rem); flex-wrap: wrap; }
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.4rem, 3.2vw, 3rem) clamp(1.2rem, 3vw, 2.6rem); }
.work-tile { display: block; }
.work-tile:nth-child(even) { margin-top: clamp(2rem, 8vw, 7rem); }
.work-tile .frame { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-2); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7); }
.work-tile img { width: 100%; aspect-ratio: 1600 / 950; object-fit: cover; transition: transform 1.1s var(--ease); }
.work-tile:hover img { transform: scale(1.04); }
.work-tile .cap { display: flex; align-items: baseline; gap: 0.9rem; margin-top: 1rem; }
.work-tile .no { font-size: 0.85rem; color: var(--faint); font-weight: 600; letter-spacing: 0.12em; }
.work-tile .nm { font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-weight: 520; letter-spacing: -0.01em; }
.work-tile .sec { display: block; margin-top: 0.15rem; color: var(--dim); font-size: 0.98rem; }

/* ---------- Process ---------- */
.process { display: grid; gap: 0; }
.step { display: grid; grid-template-columns: 5rem minmax(0, 1fr); gap: 1.5rem; padding: 1.9rem 0; border-top: 1px solid var(--line-strong); }
.step:last-child { border-bottom: 1px solid var(--line-strong); }
.step .n { font-size: 1.1rem; font-weight: 560; color: var(--blush); font-style: italic; padding-top: 0.5rem; }
.step h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.step p { margin: 0.6rem 0 0; color: var(--dim); max-width: 52ch; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-auto-flow: column; grid-auto-columns: min(86vw, 390px); gap: 1rem; overflow-x: auto; padding: 0.4rem var(--pad) 1.4rem; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.quote-card { scroll-snap-align: start; display: flex; flex-direction: column; justify-content: space-between; gap: 1.6rem; min-height: 100%; }
.quote-card p { font-size: 1.14rem; line-height: 1.5; margin: 0; }
.quote-card .by { font-size: 0.95rem; color: var(--dim); }
.quote-card .by strong { display: block; color: var(--cream); font-size: 1.08rem; font-weight: 600; }
.stars { color: #f2cf8a; letter-spacing: 0.2em; font-size: 0.9rem; }

/* ---------- CTA ---------- */
.cta { text-align: center; }
.cta .title { max-width: 18ch; margin-inline: auto; font-size: clamp(2.4rem, 6.2vw, 5.6rem); }
.cta p { max-width: 46ch; margin: 1.6rem auto 0; color: var(--dim); font-size: 1.25rem; }
.cta .btn-row { justify-content: center; }
.mark { font-style: italic; background-image: linear-gradient(var(--verm), var(--verm)); background-repeat: no-repeat; background-size: 100% 2px; background-position: 0 92%; padding-bottom: 0.04em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* ---------- Case studies ---------- */
.case { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 5rem); padding-block: clamp(3rem, 8vh, 6rem); border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.case-info { align-self: start; position: sticky; top: 110px; }
.case-no { font-size: 0.85rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--blush); font-weight: 640; }
.case-info h2 { font-size: clamp(2.2rem, 4.2vw, 3.8rem); margin: 0.6rem 0 0.5rem; }
.case-sector { color: var(--dim); }
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.3rem 0; }
.tag { border: 1px solid var(--line-strong); padding: 0.18rem 0.75rem; border-radius: 99px; font-size: 0.88rem; color: var(--dim); font-weight: 520; background: rgba(7, 9, 22, 0.4); }
.gallery { position: relative; margin-bottom: 2rem; }
.gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-2); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7); }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track img { flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 1600 / 950; object-fit: cover; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; display: grid; place-items: center; background: rgba(7, 9, 22, 0.7); border: 1px solid var(--line-strong); border-radius: 50%; font-size: 1.3rem; transition: background 0.25s, color 0.25s; }
.gallery-nav:hover { background: var(--cream); color: var(--ink); }
.gallery-nav.prev { left: 0.8rem; } .gallery-nav.next { right: 0.8rem; }
.gallery-count { position: absolute; right: 0.9rem; bottom: 0.8rem; font-size: 0.85rem; background: rgba(7, 9, 22, 0.7); padding: 0.1rem 0.7rem; border-radius: 99px; letter-spacing: 0.1em; }
.case-body p { color: var(--dim); max-width: 60ch; }
.case-quote { margin: 1.8rem 0; padding: 0.2rem 0 0.2rem 1.5rem; border-left: 2px solid var(--verm); font-size: clamp(1.35rem, 2vw, 1.8rem); font-style: italic; line-height: 1.34; color: var(--cream); font-weight: 460; }
.case-quote cite { display: block; margin-top: 0.7rem; font-size: 0.85rem; font-style: normal; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); font-weight: 620; }
.live { display: inline-flex; margin-top: 0.4rem; }

/* ---------- Cards / grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.6rem); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.6rem); }
.card h3 { font-size: clamp(1.5rem, 2vw, 1.9rem); margin-bottom: 0.7rem; }
.card p { color: var(--dim); font-size: 1.04rem; }
.card .no { display: block; font-size: 0.85rem; letter-spacing: 0.16em; font-weight: 640; color: var(--blush); margin-bottom: 0.9rem; font-style: italic; }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 1rem 0 0; }
.chips li { font-size: 0.86rem; padding: 0.12rem 0.65rem; border: 1px solid var(--line); border-radius: 99px; color: var(--dim); }

.addons { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.addon { background: var(--glass-strong); padding: 1.6rem; display: flex; flex-direction: column; gap: 0.7rem; }
.addon.in-cart { background: rgba(40, 20, 34, 0.82); box-shadow: inset 0 0 0 1px var(--blush); }
.addon-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.addon h3 { font-size: 1.4rem; }
.addon .no { font-size: 0.85rem; color: var(--faint); font-style: italic; }
.addon p { color: var(--dim); font-size: 1rem; margin: 0; }
.addon ul { display: flex; flex-wrap: wrap; gap: 0.3rem 0.4rem; }
.addon li { font-size: 0.82rem; color: var(--faint); }
.addon li:not(:last-child)::after { content: " ·"; }
.addon-foot { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.addon-foot span { font-size: 0.9rem; color: var(--faint); font-style: italic; }
.add-btn { min-height: 44px; padding: 0.4rem 1.1rem; background: transparent; border: 1px solid var(--line-strong); border-radius: 2px; font-weight: 600; font-size: 0.95rem; transition: background 0.25s, color 0.25s, border-color 0.25s; }
.add-btn:hover { background: var(--cream); color: var(--ink); }
.add-btn[aria-pressed="true"] { background: var(--blush); color: var(--ink); border-color: var(--blush); }

.pkgs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.6rem); align-items: stretch; }
.pkg { display: flex; flex-direction: column; position: relative; }
.pkg.pop { background: var(--glass-strong); border-color: var(--blush); }
.pkg .badge { position: absolute; top: -1px; right: 1.4rem; background: var(--blush); color: var(--ink); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; padding: 0.3rem 0.8rem; }
.pkg h3 { font-size: 2rem; }
.price { font-size: clamp(3.2rem, 5vw, 4.6rem); font-weight: 480; line-height: 1; letter-spacing: -0.03em; margin: 0.8rem 0 0.2rem; }
.price sup { font-size: 0.42em; vertical-align: 0.9em; margin-right: 0.08em; font-style: italic; }
.pkg .once { color: var(--dim); font-size: 0.95rem; font-style: italic; margin-bottom: 1.4rem; }
.pkg ul { margin-bottom: 1.8rem; }
.pkg li { padding: 0.62rem 0 0.62rem 1.7rem; border-top: 1px solid var(--line); position: relative; font-size: 1.02rem; }
.pkg li::before { content: ""; position: absolute; left: 0.2rem; top: 1.05rem; width: 0.6rem; height: 0.32rem; border-left: 1.5px solid var(--blush); border-bottom: 1.5px solid var(--blush); transform: rotate(-45deg); }
.pkg .btn { margin-top: auto; }

/* ---------- FAQ ---------- */
.faq details { border-top: 1px solid var(--line-strong); }
.faq details:last-child { border-bottom: 1px solid var(--line-strong); }
.faq summary { list-style: none; cursor: pointer; padding: 1.35rem 3rem 1.35rem 0; font-size: clamp(1.25rem, 1.8vw, 1.6rem); font-weight: 520; position: relative; min-height: 56px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.3rem; top: 50%; transform: translateY(-50%); font-size: 1.8rem; font-weight: 300; transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq .ans { padding: 0 0 1.6rem; color: var(--dim); max-width: 62ch; }
.faq .ans p { margin: 0; }

/* ---------- Team ---------- */
.person h3 { font-size: clamp(1.9rem, 3vw, 2.6rem); margin: 0.5rem 0 1rem; }
.person p { color: var(--dim); font-size: 1.04rem; }
.person .role { display: inline-block; font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 650; color: var(--blush); }

/* ---------- Big numbers (promise) ---------- */
.bignums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.bignums > div { background: var(--glass-strong); padding: clamp(1.4rem, 3vw, 2.4rem); }
.bignums .fig { font-size: clamp(3rem, 7vw, 6rem); font-weight: 470; line-height: 0.95; letter-spacing: -0.03em; }
.bignums .cap { margin-top: 0.6rem; color: var(--dim); }

/* ---------- Form ---------- */
.form-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.checklist li { padding: 1.3rem 0; border-top: 1px solid var(--line-strong); display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; }
.checklist li:last-child { border-bottom: 1px solid var(--line-strong); }
.checklist .n { font-style: italic; color: var(--blush); font-weight: 560; }
.checklist h3 { font-size: 1.5rem; }
.checklist p { margin: 0.3rem 0 0; color: var(--dim); font-size: 1.02rem; }
.field { margin-bottom: 1.3rem; }
.field label { display: block; margin-bottom: 0.4rem; font-size: 0.95rem; font-weight: 600; letter-spacing: 0.03em; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1.05rem; color: var(--cream); background: rgba(246, 239, 227, 0.07);
  border: 1px solid var(--line-strong); border-radius: 2px; padding: 0.85rem 1rem; min-height: 52px;
  transition: border-color 0.25s, background 0.25s;
}
.field select option { color: #111; }
.field textarea { min-height: 140px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blush); background: rgba(246, 239, 227, 0.12); }
.field .hint { margin-top: 0.4rem; font-size: 0.9rem; color: var(--faint); }
.field.invalid input, .field.invalid textarea { border-color: var(--verm); }
.field .err { display: none; margin-top: 0.4rem; color: #ffa08f; font-size: 0.92rem; }
.field.invalid .err { display: block; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 0.92rem; color: var(--faint); margin-top: 1rem; }
.form-note a { text-decoration: underline; text-underline-offset: 3px; }
.form-ok, .form-err { display: none; padding: 1rem 1.2rem; border-radius: 2px; margin-bottom: 1.2rem; }
.form-ok { border: 1px solid var(--blush); background: rgba(243, 201, 211, 0.12); }
.form-err { border: 1px solid var(--verm); background: rgba(236, 99, 71, 0.14); }
.form-ok.show, .form-err.show { display: block; }
.cart-summary { display: none; margin-bottom: 1.6rem; }
.cart-summary.show { display: block; }
.cart-summary h3 { font-size: 1.3rem; margin-bottom: 0.7rem; }
.cart-summary li { padding: 0.4rem 0; border-bottom: 1px solid var(--line); }

/* ---------- Enquiry basket (services/packages) ---------- */
.basket-fab { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 70; min-height: 54px; padding: 0.5rem 1.4rem; background: var(--cream); color: var(--ink); border: 0; border-radius: 99px; font-weight: 650; box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5); display: none; align-items: center; gap: 0.7rem; }
.basket-fab.show { display: inline-flex; }
.basket-fab .count { background: var(--ink); color: var(--cream); border-radius: 99px; min-width: 1.7rem; height: 1.7rem; display: grid; place-items: center; font-size: 0.9rem; }
.basket { position: fixed; right: 1.2rem; bottom: 5.4rem; z-index: 71; width: min(92vw, 380px); max-height: 70vh; overflow: auto; display: none; }
.basket.open { display: block; }
.basket h3 { font-size: 1.4rem; margin-bottom: 0.8rem; }
.basket li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.55rem 0; border-bottom: 1px solid var(--line); }
.basket li button { min-width: 44px; min-height: 44px; background: none; border: 0; font-size: 1.3rem; color: var(--dim); }
.basket .btn { width: 100%; margin-top: 1rem; }

/* ---------- Legal / prose ---------- */
.prose { max-width: 70ch; }
.prose h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 2.6rem 0 0.8rem; }
.prose p, .prose li { color: var(--dim); }
.prose ul { list-style: disc; padding-left: 1.3rem; margin-bottom: 1.2rem; }
.prose a { text-decoration: underline; text-underline-offset: 3px; color: var(--cream); }

/* ---------- Footer ---------- */
.footer { position: relative; margin-top: 2rem; background: linear-gradient(180deg, rgba(5, 7, 18, 0), rgba(5, 7, 18, 0.82) 30%); padding-top: clamp(4rem, 10vh, 7rem); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid var(--line); }
.footer h3 { font-size: 0.82rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 650; color: var(--blush); margin-bottom: 1.1rem; }
.footer li a { display: inline-flex; align-items: center; min-height: 40px; color: var(--dim); transition: color 0.25s; }
.footer li a:hover { color: var(--cream); }
.footer .fdesc { color: var(--dim); max-width: 32ch; margin-top: 1rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding: 1.6rem 0 2.4rem; color: var(--faint); font-size: 0.95rem; }
.footer-bottom a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 404 ---------- */
.notfound { min-height: 100vh; display: grid; place-items: center; text-align: center; }
.notfound .display { max-width: none; font-size: clamp(5rem, 22vw, 16rem); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal[data-d="1"] { transition-delay: 0.1s; } .js .reveal[data-d="2"] { transition-delay: 0.2s; } .js .reveal[data-d="3"] { transition-delay: 0.3s; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .nav-links { display: none; }
  .burger { display: block; }
  .statement, .form-grid, .case { grid-template-columns: 1fr; }
  .case-info { position: static; }
  .pkgs, .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .work-grid { grid-template-columns: 1fr; }
  .work-tile:nth-child(even) { margin-top: 0; }
  .stats, .bignums { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .step { grid-template-columns: 3rem 1fr; gap: 0.8rem; }
  .scroll-cue { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero { padding-top: 6.5rem; }
  .btn-row .btn { flex: 1 1 100%; }
  .basket-fab { right: 0.8rem; bottom: 0.8rem; }
  .basket { right: 0.8rem; bottom: 4.8rem; }
  .gallery-nav { width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
@media (prefers-contrast: more) {
  :root { --glass: rgba(4, 5, 14, 0.88); --dim: #f6efe3; --faint: rgba(246, 239, 227, 0.85); }
}

/* legibility: soft dark wash behind long-form text */
.hero::before, .section::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(90% 70% at 25% 55%, rgba(5, 7, 18, 0.5), rgba(5, 7, 18, 0) 70%); }
@media (max-width: 700px) { .veil { background: linear-gradient(180deg, rgba(5, 7, 18, 0.5), rgba(5, 7, 18, 0.34) 40%, rgba(5, 7, 18, 0.6)); } }

/* case studies: glass panels so text is readable over any part of the scene */
.case-info, .case-body { background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.3rem, 2.4vw, 2.2rem); }
.case-body p, .case-body .case-quote { text-shadow: none; }
.case-body { color: var(--cream); }
.case-body > p { color: var(--cream); opacity: 0.92; }

#scene { will-change: opacity; transform: translateZ(0); }
.grain { display: none; }

/* ==========================================================
   Journal + scroll-driven build (Veyron feature)
   ========================================================== */
.byline { font-size: 0.95rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 620; color: var(--dim); }
.post-card { display: block; max-width: 62rem; padding: clamp(1.6rem, 4vw, 3rem); }
.post-card h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); margin: 0.9rem 0 1rem; }
.post-card p { color: var(--dim); max-width: 52ch; }
.post-card:hover .arrow-link { border-color: var(--cream); }

.article { margin-inline: auto; padding: clamp(1.6rem, 4vw, 3.2rem); }
.article h2 { margin-top: 2.4rem; }
.article > h2:first-child, .article > p:first-child { margin-top: 0; }
.article p { text-shadow: none; }
.article + .assembly, .assembly + .wrap { margin-top: 0; }
article.section > .wrap:first-child { margin-bottom: clamp(2rem, 6vh, 4rem); }
article.section > .wrap:last-child { margin-top: clamp(2rem, 6vh, 4rem); }

/* --- shared layer stack: every layer is 1920x1080 on one centre axis --- */
.asm-stack { position: relative; width: 100%; aspect-ratio: var(--ar, 16 / 9); }
.asm-layer {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; object-position: center;
  pointer-events: none; user-select: none; -webkit-user-drag: none;
  transform-origin: 50% 50%; backface-visibility: hidden;
}

/* --- assembly (sticky scrub; the section's height is the scroll distance) --- */
.assembly { position: relative; }
.asm-sticky { padding-block: 1rem; }
.asm-head { margin-bottom: 1.2rem; }
.asm-title { font-size: clamp(1.7rem, 3.4vw, 2.8rem); margin: 0.5rem 0; }
.asm-intro { color: var(--dim); max-width: 52ch; margin: 0; }
.asm-stage { position: relative; padding: clamp(0.5rem, 2vw, 1.5rem); overflow: hidden; }
.asm-stage .asm-stack { margin-inline: auto; width: min(100%, calc((100svh - 31rem) * var(--arn, 1.7778))); min-width: min(100%, 17rem); }
.asm-floor { display: none; position: absolute; left: 10%; right: 10%; bottom: 7%; height: 8%; background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0) 70%); filter: blur(6px); pointer-events: none; }
.asm-steps { display: grid; gap: 0.6rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.asm-steps li { display: grid; grid-template-columns: auto 1fr; gap: 0.1rem 0.8rem; padding: 0.7rem 0; border-top: 1px solid var(--line); color: var(--faint); }
.asm-n { font-variant-numeric: tabular-nums; font-weight: 620; letter-spacing: 0.12em; font-size: 0.85rem; grid-row: span 2; padding-top: 0.2rem; }
.asm-l { font-weight: 600; color: var(--cream); }
.asm-d { grid-column: 2; font-size: 0.98rem; color: var(--dim); }
.asm-cap { display: none; }
.asm-scrub { display: none; }

html.asm-on .assembly { height: calc(100vh + var(--n, 6) * 95vh); height: calc(100svh + var(--n, 6) * 95svh); }
html.asm-on .asm-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding-block: 5.2rem 1rem; }
html.asm-on .asm-head { margin-bottom: 0.8rem; }
html.asm-on .asm-intro { display: none; }
html.asm-on .asm-steps { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0.4rem; margin-top: 0.8rem; }
html.asm-on .asm-steps li { grid-template-columns: 1fr; padding: 0.55rem 0 0; transition: color 0.35s linear, border-color 0.35s linear; }
html.asm-on .asm-n { grid-row: auto; padding: 0; }
html.asm-on .asm-d { display: none; }
html.asm-on .asm-steps li.is-done, html.asm-on .asm-steps li.is-active { color: var(--cream); }
html.asm-on .asm-steps li.is-active { border-top-color: var(--verm); }
html.asm-on .asm-steps li:not(.is-done):not(.is-active) .asm-l { color: var(--faint); }
html.asm-on .asm-cap { display: grid; gap: 0.15rem; min-height: 3.6em; margin: 0.7rem 0 0; font-size: 1rem; color: var(--dim); text-shadow: none; }
html.asm-on .asm-cap b { color: var(--cream); letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.82rem; }
html.asm-on .asm-scrub { display: block; margin-top: 0.5rem; }
.asm-hint { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); font-weight: 620; text-shadow: none; }
.asm-hint em { font-style: normal; color: var(--faint); letter-spacing: 0.1em; transition: opacity 0.4s; }
.assembly.asm-used .asm-hint em { opacity: 0; }
.asm-track { position: relative; height: 34px; }
.asm-slider { -webkit-appearance: none; appearance: none; position: absolute; inset: 0; width: 100%; height: 34px; margin: 0; background: transparent; cursor: grab; touch-action: none; --p: 0%; }
.asm-slider:active { cursor: grabbing; }
.asm-slider::-webkit-slider-runnable-track { height: 3px; border-radius: 2px; background: linear-gradient(to right, var(--cream) var(--p), var(--line-strong) var(--p)); }
.asm-slider::-moz-range-track { height: 3px; border-radius: 2px; background: var(--line-strong); }
.asm-slider::-moz-range-progress { height: 3px; border-radius: 2px; background: var(--cream); }
.asm-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -12px; border-radius: 50%; background: var(--cream); border: 4px solid var(--ink); box-shadow: 0 0 0 1px var(--cream), 0 2px 10px rgba(0, 0, 0, 0.5); }
.asm-slider::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--cream); border: 4px solid var(--ink); box-shadow: 0 0 0 1px var(--cream); }
.asm-slider:focus-visible { outline: none; }
.asm-slider:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--verm); }
.asm-slider:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 3px var(--verm); }
.asm-ticks { position: absolute; left: 13px; right: 13px; top: 50%; height: 0; pointer-events: none; }
.asm-ticks i { position: absolute; top: -7px; width: 1px; height: 14px; background: var(--line-strong); }
@media (max-width: 760px) {
  html.asm-on .asm-l { display: none; }
  html.asm-on .asm-sticky { padding-top: 4.4rem; }
  html.asm-on .asm-intro { display: none; }
  .asm-stage .asm-stack { width: 100%; }
}
@media (max-height: 760px) and (min-width: 761px) { html.asm-on .asm-cap { display: none; } html.asm-on .asm-sticky { padding-top: 4.6rem; } .asm-stage .asm-stack { width: min(100%, calc((100svh - 26rem) * var(--arn, 1.7778))); } }
@media (min-width: 761px) { .asm-steps { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); } html.asm-on .asm-steps { grid-template-columns: none; grid-auto-columns: minmax(0, 1fr); } }

.editorial { max-width: 62rem; margin: clamp(2rem, 6vh, 4rem) auto 0; font-size: 0.9rem; color: var(--faint); }
.editorial p { text-shadow: none; color: var(--dim); }
.editorial strong { color: var(--cream); }
.article-fig { margin: 1.8rem 0; }
.article-fig img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.article-fig figcaption { margin-top: 0.6rem; font-size: 0.9rem; color: var(--faint); }

.asm-note { margin: 0.6rem 0 0; font-size: 0.82rem; color: var(--faint); text-shadow: none; }
html.asm-on .asm-note { margin-top: 0.4rem; }
@media (max-width: 760px) { html.asm-on .asm-note { font-size: 0.74rem; line-height: 1.3; } }

/* ---------- Immersive view ---------- */
.immersive-btn { margin-top: 1.4rem; }
.immersive-btn .im-off { display: none; }
.immersive-exit, .read-bar { display: none; }
html.immersive .immersive-btn .im-on { display: none; }
html.immersive .immersive-btn .im-off { display: inline; }
html.immersive .nav, html.immersive .footer, html.immersive .mobile-menu, html.immersive .skip-link { display: none; }
html.immersive #scene { opacity: 0.32; }
html.immersive .veil { background: rgba(4, 5, 12, 0.8); }
html.immersive .hero--page { min-height: 70vh; min-height: 70svh; }
html.immersive .article { background: transparent; border-color: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; max-width: 46rem; font-size: 1.1em; padding-inline: 0; }
html.immersive .article h2 { margin-top: 3rem; }
html.immersive .editorial { max-width: 46rem; }
html.immersive.asm-on .asm-sticky { padding-top: 2rem; }
html.immersive .asm-stage .asm-stack { width: min(100%, calc((100svh - 25rem) * var(--arn, 1.7778))); }
html.immersive .immersive-exit { display: inline-flex; align-items: center; gap: 0.6rem; position: fixed; top: 1rem; right: 1rem; z-index: 90; min-height: 44px; padding: 0.4rem 1rem; border: 1px solid var(--line-strong); border-radius: 99px; background: var(--glass-strong); color: var(--cream); font-size: 0.92rem; font-weight: 580; }
html.immersive .immersive-exit:hover { border-color: var(--cream); }
html.immersive .read-bar { display: block; position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 91; background: transparent; pointer-events: none; }
html.immersive .read-bar i { display: block; height: 100%; background: var(--cream); transform-origin: 0 50%; transform: scaleX(0); }
@media (max-width: 760px) { html.immersive .article { padding-inline: 0.2rem; font-size: 1.04em; } }
