:root {
  /* Figma palette */
  --bg: #00110a;
  --ink: #eee0cb;
  --cream: #eee0cb;
  --cream-26: rgba(238, 224, 203, 0.26);
  --black-62: rgba(0, 0, 0, 0.62);
  --gold: #ffd397;
  --gold-2: #e9b877;
  --muted: rgba(238, 224, 203, 0.62);
  --line: rgba(238, 224, 203, 0.12);
  --glass: rgba(255, 255, 255, 0.06);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Outfit", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
/* while the intro plays, only the hero exists — nothing else can show through */
body.is-loading main > :not(.hero) { visibility: hidden; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--gold); color: #0b0f0c; }

/* ---------- Stage ---------- */
#stage {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  display: block; z-index: 0;
}
.vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse at 50% 55%, transparent 60%, rgba(0, 8, 5, 0.3) 100%);
}
.grain {
  position: fixed; inset: -50%; z-index: 2; pointer-events: none; opacity: 0.035;
  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>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 50; background: var(--bg);
  display: grid; place-content: center; justify-items: center; gap: 22px;
  pointer-events: none;
}
.loader-logo { width: 229px; clip-path: inset(0 100% 0 0); filter: drop-shadow(0 0 18px rgba(240, 201, 146, 0.25)); }
.loader-logo img { display: block; width: 100%; height: auto; }
.loader-count { font-family: var(--serif); font-size: 13px; color: var(--muted); letter-spacing: 0.2em; }
.skip {
  position: fixed; right: 28px; bottom: 26px; pointer-events: auto;
  background: none; border: 1px solid var(--line); color: var(--muted);
  font: 400 12px var(--sans); letter-spacing: 0.12em; text-transform: uppercase;
  padding: 10px 16px; border-radius: 99px; cursor: pointer; transition: 0.3s;
}
.skip:hover { color: var(--ink); border-color: var(--muted); }

/* ---------- Cursor ---------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none;
  width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%;
  border: 1px solid rgba(240, 201, 146, 0.6);
  transition: width 0.35s var(--ease), height 0.35s var(--ease), margin 0.35s var(--ease), background 0.35s;
  mix-blend-mode: difference;
}
.cursor.is-hover { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(240, 201, 146, 0.15); }
@media (hover: none) { .cursor { display: none; } }

/* ---------- Nav ---------- */
.nav {
  position: fixed; z-index: 20; top: 24px; left: 50%;
  width: min(1320px, calc(100% - 32px)); transform: translateX(-50%);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 12px 14px 12px 32px; border-radius: 999px;
  background: linear-gradient(180deg, rgba(0, 17, 10, 0.5), rgba(0, 0, 0, 0.35));
  border: 1px solid rgba(238, 224, 203, 0.08);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  opacity: 0;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { display: block; height: 34px; width: auto; }
.nav-links { display: flex; gap: 54px; }
.nav-links a {
  position: relative; font-size: 16px; font-weight: 400; color: rgba(243, 233, 216, 0.88);
  padding: 6px 0; transition: color 0.3s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px;
  background: var(--cream); transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease);
}
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); transform-origin: left; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  font: 500 17px var(--sans); border-radius: 999px; white-space: nowrap;
  transition: background 0.4s, color 0.4s, box-shadow 0.4s;
}
.btn-cream { background: var(--cream); color: #121512; padding: 15px 26px 15px 30px; }
.btn-cream:hover { background: #fff6e6; box-shadow: 0 0 40px rgba(240, 201, 146, 0.35); }
.btn-mark { width: 24px; height: auto; filter: brightness(0) saturate(0); opacity: 0.88; }
.btn-glass {
  color: var(--cream); font-size: 18px; font-weight: 500; gap: 17px;
  height: 47px; padding: 0 28px 0 4px;
  background: var(--cream-26);
  border: 1px solid rgba(238, 224, 203, 0.18);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.btn-glass:hover { background: rgba(238, 224, 203, 0.34); box-shadow: 0 0 40px rgba(255, 211, 151, 0.16); }
.btn-arrow {
  width: 38px; height: 38px; border-radius: 50%; background: var(--bg);
  display: grid; place-items: center; overflow: hidden;
}
.btn-arrow svg { width: 20px; fill: none; stroke: var(--cream); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.5s var(--ease); }
.btn-glass:hover .btn-arrow svg { transform: translateX(3px); }
.btn-lg { font-size: clamp(18px, 2.4vw, 26px); padding: 22px 40px; }

.burger { display: none; }

/* ---------- Content ---------- */
main { position: relative; z-index: 5; }
section { min-height: 100vh; padding: 140px max(16px, 6vw) 100px; }

.eyebrow {
  font-size: 18px; letter-spacing: 0.02em; text-transform: uppercase; font-weight: 400; color: var(--ink);
}
.hero {
  position: relative; height: 100vh; padding: 0;
  text-align: center;
}
/* each row sits at its exact Figma y, scaled with the background (see layoutHero in main.js) */
.hero-row {
  position: absolute; left: 0; right: 0;
  top: calc(var(--poy, 0px) + var(--y) * var(--ps, 1) * 1px);
  transform: translateY(-50%);
  display: flex; justify-content: center;
}
.hero-cta { transform: translateY(-50%) scale(var(--bs, 1)); }
.hero .eyebrow { font-size: 18px; line-height: 1; letter-spacing: 0.01em; color: var(--cream); white-space: nowrap; }
.hero-title {
  font-family: var(--serif); font-weight: 300; color: var(--gold);
  font-size: 84px; line-height: 1; letter-spacing: 0.005em; white-space: nowrap;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  perspective: 600px;
}
.hero-title .ch {
  display: inline-block; color: var(--gold);
  will-change: transform, opacity, filter;
}
.hero-title .sp { display: inline-block; width: 0.28em; }
.scroll-hint {
  position: absolute; bottom: 28px; left: 0; right: 0; margin: 0 auto; width: fit-content;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; gap: 12px;
}
.scroll-hint span { width: 1px; height: 34px; background: linear-gradient(var(--cream), transparent); animation: drip 2s var(--ease) infinite; }
@keyframes drip { 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; } }

/* Panels */
.panel { display: flex; flex-direction: column; justify-content: center; }
.panel-head { max-width: 760px; margin-bottom: 64px; }
.panel .eyebrow { font-size: 13px; letter-spacing: 0.22em; color: var(--gold); margin-bottom: 18px; }
.display {
  font-family: var(--serif); font-weight: 300; line-height: 1.04;
  font-size: clamp(40px, 5.6vw, 86px); letter-spacing: -0.01em;
}
.display em { font-style: italic; color: var(--gold); }
.display.big { font-size: clamp(44px, 7vw, 112px); }
.lede { margin-top: 24px; font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 52ch; font-weight: 300; }

.gates {
  list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
}
.gates li {
  position: relative; padding: 34px 30px 38px; min-height: 210px;
  background: rgba(6, 11, 8, 0.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background 0.5s var(--ease);
  overflow: hidden;
}
.gates li::before {
  /* arch glow on hover */
  content: ""; position: absolute; left: 50%; bottom: -60%; width: 70%; aspect-ratio: 1 / 1.4;
  transform: translateX(-50%) translateY(30px); border-radius: 999px 999px 0 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(240, 201, 146, 0.28), transparent 70%);
  opacity: 0; transition: 0.7s var(--ease);
}
.gates li:hover { background: rgba(14, 22, 17, 0.8); }
.gates li:hover::before { opacity: 1; transform: translateX(-50%) translateY(0); }
.gates .num { font-family: var(--serif); font-size: 14px; color: var(--gold); letter-spacing: 0.1em; }
.gates h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; margin: 40px 0 10px; }
.gates p { color: var(--muted); font-weight: 300; line-height: 1.55; position: relative; }

.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.proj { display: block; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: rgba(6, 11, 8, 0.6); transform-style: preserve-3d; }
.proj-media {
  aspect-ratio: 4 / 5; border-radius: 999px 999px 0 0; margin: 14px 14px 0;
  background:
    var(--img, radial-gradient(ellipse at 50% 20%, hsl(var(--hue) 40% 38% / 0.9), transparent 60%)),
    linear-gradient(180deg, hsl(var(--hue) 22% 14%), #060a08);
  background-size: cover; background-position: center;
  transition: transform 0.8s var(--ease);
}
.proj:hover .proj-media { transform: scale(1.03); }
.proj-meta { display: flex; justify-content: space-between; align-items: baseline; padding: 20px 22px 22px; }
.proj-meta h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; }
.proj-meta span { color: var(--muted); font-size: 14px; }

.panel-center { align-items: center; text-align: center; }
.stats { display: flex; gap: clamp(32px, 8vw, 120px); margin-top: 70px; }
.stats strong { display: block; font-family: var(--serif); font-weight: 300; font-size: clamp(48px, 6vw, 84px); color: var(--gold); }
.stats span { color: var(--muted); font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; }

.contact .btn { margin-top: 56px; }
.foot {
  position: absolute; left: max(16px, 6vw); right: max(16px, 6vw); bottom: 28px;
  display: flex; justify-content: space-between; color: var(--muted); font-size: 14px;
}
.contact { position: relative; }
.foot a:hover { color: var(--ink); }

/* reveal helpers (JS sets initial state) */
.reveal-up { will-change: transform, opacity; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav-links { gap: 30px; }
  .gates, .projects { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav { padding: 10px 10px 10px 20px; top: 14px; }
  .nav > .btn { display: none; }
  .brand-logo { height: 26px; }
  .burger {
    display: grid; gap: 6px; place-content: center; width: 46px; height: 46px; border-radius: 50%;
    background: var(--cream); border: 0; cursor: pointer;
  }
  .burger i { display: block; width: 18px; height: 1.6px; background: #121512; transition: 0.4s var(--ease); }
  .burger[aria-expanded="true"] i:first-child { transform: translateY(3.8px) rotate(45deg); }
  .burger[aria-expanded="true"] i:last-child { transform: translateY(-3.8px) rotate(-45deg); }
  .nav-links {
    position: fixed; top: 74px; left: 0; right: 0; flex-direction: column; gap: 6px;
    padding: 22px; border-radius: 26px; background: rgba(8, 13, 10, 0.94); border: 1px solid var(--line);
    opacity: 0; pointer-events: none; transform: translateY(-10px); transition: 0.45s var(--ease);
  }
  .nav-links.open { opacity: 1; pointer-events: auto; transform: none; }
  .nav-links a { font-family: var(--serif); font-size: 30px; padding: 8px 0; }
  .nav-links a::after { display: none; }
  .gates, .projects { grid-template-columns: 1fr; }
  .stats { flex-direction: column; gap: 28px; }
  .foot { flex-direction: column; gap: 8px; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  .grain, .scroll-hint span { animation: none; }
}

/* =========================================================
   Figma sections — marquee · who we are · what we do
   ========================================================= */
:root { --dm: "DM Sans", "Outfit", system-ui, sans-serif; }

.kicker {
  font: 500 13px/1 var(--dm); letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--cream); margin-bottom: 18px;
}

/* Marquee band */
.marquee {
  position: relative; z-index: 5; overflow: hidden;
  background: var(--cream); color: var(--bg);
  padding: clamp(28px, 4vw, 52px) 0;
}
.mq-track { display: flex; width: max-content; will-change: transform; }
.mq-group { display: flex; align-items: center; flex-shrink: 0; }
.mq-word {
  font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 5.4vw, 78px); line-height: 1;
  letter-spacing: 0.01em; padding: 0 clamp(28px, 4.2vw, 64px); white-space: nowrap;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
}
.mq-mark { width: clamp(26px, 2.6vw, 38px); height: auto; filter: brightness(0) saturate(0); opacity: 0.9; }

/* Who we are */
.who {
  display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.45fr);
  gap: clamp(32px, 4vw, 64px); align-items: center;
  padding: 160px max(16px, 3vw) 160px;
  min-height: 100vh;
}
.who-title {
  font: 600 clamp(28px, 2.5vw, 38px)/1.25 var(--dm); color: var(--cream); letter-spacing: -0.005em;
}
.who-title em {
  display: inline-block; margin-top: 4px;
  font-family: var(--serif); font-style: normal; font-weight: 300; color: var(--gold);
  font-size: 1.02em; font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
}
.who-copy { font: 400 clamp(15px, 1.15vw, 17px)/1.6 var(--dm); color: var(--cream); margin-bottom: 26px; max-width: 64ch; }
.who-cols {
  display: grid; grid-template-columns: 1fr 1fr; margin-top: 46px;
}
.who-cols > div { padding-right: 40px; }
.who-cols > div + div { padding: 0 0 0 40px; border-left: 1px solid var(--line); }
.who-cols h3 {
  font-family: var(--serif); font-weight: 300; font-size: clamp(17px, 1.3vw, 20px); color: var(--gold);
  margin-bottom: 14px; font-variation-settings: "opsz" 144, "SOFT" 100;
}
.who-cols p { font: 400 13.5px/1.65 var(--dm); color: var(--muted); max-width: 42ch; }

/* What we do */
.what { align-items: center; text-align: center; padding: 140px max(16px, 3vw) 140px; }
.what-head { max-width: 760px; margin: 0 auto 64px; }
.what-title { font: 600 clamp(38px, 3.6vw, 54px)/1.12 var(--dm); color: var(--cream); letter-spacing: -0.01em; }
.what-title em {
  font-family: var(--serif); font-style: normal; font-weight: 300; color: var(--gold);
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
}
.what-copy { margin-top: 18px; font: 400 clamp(15px, 1.25vw, 18px)/1.55 var(--dm); color: var(--cream); }

.gate-cards {
  width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px 18px; text-align: left;
}
.gate-card {
  position: relative; overflow: hidden; min-height: 300px;
  padding: 34px 26px 32px; border-radius: 6px;
  background:
    linear-gradient(155deg, rgba(238, 224, 203, 0.075) 0%, rgba(238, 224, 203, 0.02) 38%, rgba(0, 0, 0, 0) 70%),
    rgba(0, 17, 10, 0.86);
  border: 1px solid rgba(238, 224, 203, 0.32);
  transition: border-color 0.5s var(--ease), transform 0.6s var(--ease);
}
.gate-card::before { /* an arch of light rises on hover, like a gate opening */
  content: ""; position: absolute; left: 50%; bottom: -60%; width: 60%; aspect-ratio: 1 / 1.4;
  transform: translate(-50%, 30px); border-radius: 999px 999px 0 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(255, 211, 151, 0.16), transparent 70%);
  opacity: 0; transition: 0.7s var(--ease); pointer-events: none;
}
.gate-card:hover { border-color: rgba(238, 224, 203, 0.6); transform: translateY(-4px); }
.gate-card:hover::before { opacity: 1; transform: translate(-50%, 0); }
.gc-icon {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 6px;
  background: #00110a; border: 1px solid rgba(238, 224, 203, 0.16);
}
.gc-icon svg, .step-icon svg { width: 24px; fill: none; stroke: var(--cream); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.gc-icon svg.fill, .step-icon svg.fill { fill: var(--cream); stroke: none; }
.gc-mark { width: 22px; height: auto; }
.gate-card h3 { margin: 52px 0 18px; font: 600 clamp(20px, 1.6vw, 24px)/1.2 var(--dm); color: var(--cream); }
.gate-card p { position: relative; font: 400 14px/1.45 var(--dm); color: rgba(238, 224, 203, 0.88); }

/* How we do — process */
.process { align-items: center; text-align: center; padding: 140px max(16px, 3vw); }
.steps { list-style: none; width: 100%; max-width: 1180px; display: grid; grid-template-columns: repeat(6, 1fr); }
.step { position: relative; display: flex; flex-direction: column; align-items: center; padding: 0 10px; }
.step-num { font: 500 14px/1 var(--dm); color: var(--cream); margin-bottom: 16px; }
.step-icon {
  position: relative; z-index: 1;
  display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%;
  background: #00110a; border: 1.5px solid rgba(238, 224, 203, 0.55);
  transition: border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.step-icon svg { width: 34px; }
.step:hover .step-icon { border-color: var(--gold); box-shadow: 0 0 34px rgba(255, 211, 151, 0.18); }
.step:not(:last-child)::after { /* dotted connector to the next step */
  content: ""; position: absolute; top: calc(14px + 16px + 46px); left: calc(50% + 54px); right: calc(-50% + 54px);
  border-top: 3px dotted rgba(238, 224, 203, 0.85);
  transform: scaleX(var(--draw, 1)); transform-origin: left center;
}
.step h3 { margin: 26px 0 12px; font: 600 clamp(18px, 1.45vw, 22px)/1.2 var(--dm); color: var(--gold); }
.step p { font: 400 14.5px/1.5 var(--dm); color: var(--cream); max-width: 17ch; }

/* projects now follow the centred Figma heading */
#projects .projects { width: 100%; text-align: left; }

@media (max-width: 1000px) {
  .who { grid-template-columns: 1fr; padding-top: 120px; padding-bottom: 120px; }
  .gate-cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 56px; }
  .step:nth-child(3n)::after { display: none; }
}
@media (max-width: 640px) {
  .who-cols { grid-template-columns: 1fr; gap: 28px; }
  .who-cols > div, .who-cols > div + div { padding: 0; border: 0; }
  .gate-cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
}

/* =========================================================
   Projects — "Work That Creates Real Impact."
   ========================================================= */
.projects-sec {
  min-height: 100vh; justify-content: center; align-items: center; text-align: center;
  padding: clamp(96px, 12vh, 130px) 0 clamp(28px, 4vh, 48px); overflow: hidden;
}
.projects-sec .what-head { margin-bottom: clamp(20px, 3.5vh, 44px); padding: 0 16px; }
.projects-sec .what-title { font-size: clamp(34px, 3.4vw, 52px); }

.proj-filters {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  margin: 0 auto clamp(22px, 4.5vh, 56px); padding: 0 16px;
}
.pf-btn {
  position: relative; background: none; border: 1px solid transparent; border-radius: 999px; cursor: pointer;
  font: 500 clamp(14px, 1.1vw, 16px)/1 var(--dm); color: var(--cream); padding: 12px clamp(14px, 1.3vw, 22px);
  transition: border-color 0.4s var(--ease), color 0.4s;
}
.pf-btn + .pf-btn::before { /* thin dividers between tabs */
  content: ""; position: absolute; left: -1px; top: 50%; height: 30px; width: 1px; transform: translateY(-50%);
  background: rgba(238, 224, 203, 0.25);
}
.pf-btn.is-active { border-color: var(--cream); padding-left: clamp(26px, 3vw, 46px); padding-right: clamp(26px, 3vw, 46px); font-size: clamp(16px, 1.3vw, 19px); }
.pf-btn.is-active::before, .pf-btn.is-active + .pf-btn::before { opacity: 0; }
.pf-btn:hover { color: var(--gold); }

.proj-viewport { width: 100%; position: relative; }
.proj-track {
  --cw: clamp(280px, min(31vw, 50vh), 480px);
  display: flex; gap: 22px; width: max-content;
  padding: 0 max(16px, 5.5vw); will-change: transform;
}
.proj-card {
  flex: 0 0 var(--cw); display: flex; flex-direction: column; text-align: left;
  border: 1px solid rgba(238, 224, 203, 0.32); border-radius: 8px; overflow: hidden;
  background:
    linear-gradient(160deg, rgba(238, 224, 203, 0.06) 0%, rgba(0, 0, 0, 0) 55%),
    rgba(0, 17, 10, 0.9);
  transition: border-color 0.5s var(--ease), transform 0.6s var(--ease);
}
.proj-card:hover { border-color: rgba(238, 224, 203, 0.65); transform: translateY(-6px); }
.proj-img { position: relative; aspect-ratio: 433 / 259; overflow: hidden; background: #0b1a12; }
.proj-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.proj-card:hover .proj-img img { transform: scale(1.05); }
.proj-tags { position: absolute; top: 14px; left: 14px; display: flex; gap: 8px; }
.proj-tags span {
  font: 400 13px/1 var(--dm); color: var(--cream); padding: 7px 16px; border-radius: 999px;
  border: 1px solid rgba(238, 224, 203, 0.75); background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.proj-ph {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  background: radial-gradient(ellipse at 50% 120%, rgba(255, 211, 151, 0.14), transparent 60%), #0b1a12;
  font: 400 12px/1.5 var(--dm); color: var(--muted);
}
.proj-body { padding: clamp(20px, 3vh, 34px) clamp(20px, 2vw, 32px) clamp(22px, 3.4vh, 38px); min-height: clamp(150px, 22vh, 220px); }
.proj-body h3 { font: 600 clamp(20px, 1.75vw, 27px)/1.2 var(--dm); color: var(--cream); margin-bottom: clamp(12px, 2.4vh, 26px); }
.proj-body p { font: 400 clamp(14px, 1.1vw, 16px)/1.4 var(--dm); color: rgba(238, 224, 203, 0.88); }
.proj-empty { font: 400 16px var(--dm); color: var(--muted); padding: 60px 0; }

.proj-progress {
  width: min(320px, 50vw); height: 2px; margin: clamp(22px, 4vh, 44px) auto 0;
  background: rgba(238, 224, 203, 0.15); border-radius: 2px; overflow: hidden;
}
.proj-progress span { display: block; height: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; }

/* phones / tablets: native swipe with snapping */
@media (max-width: 860px) {
  .proj-viewport { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .proj-viewport::-webkit-scrollbar { display: none; }
  .proj-track { --cw: min(82vw, 380px); }
  .proj-card { scroll-snap-align: center; }
  .pf-btn + .pf-btn::before { display: none; }
  .proj-filters { gap: 6px; }
  .pf-btn { border-color: rgba(238, 224, 203, 0.2); }
  .pf-btn.is-active { padding-left: 22px; padding-right: 22px; font-size: 15px; }
}
.proj-card[hidden], .proj-empty[hidden] { display: none; }

/* =========================================================
   Why NineGates — tiles stack up while pinned
   ========================================================= */
.why {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.78fr); gap: clamp(32px, 6vw, 110px);
  align-items: center; min-height: 100vh; padding: 120px max(16px, 5vw) 80px;
}
.why-left { align-self: start; padding-top: clamp(10px, 4vh, 40px); }
.why-title { font: 600 clamp(32px, 3vw, 46px)/1.15 var(--dm); color: var(--cream); letter-spacing: -0.01em; }
.why-title em {
  font-family: var(--serif); font-style: normal; font-weight: 300; color: var(--gold);
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
}
.why-copy { margin-top: 22px; font: 400 clamp(15px, 1.2vw, 18px)/1.55 var(--dm); color: var(--cream); max-width: 48ch; }

.why-right { position: relative; }
.why-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.why-tile {
  display: flex; align-items: center; gap: 22px;
  padding: 18px 26px; border-radius: 10px;
  /* same frosted glass as the FAQ tiles */
  background: linear-gradient(180deg, rgba(238, 224, 203, 0.075), rgba(238, 224, 203, 0.025));
  backdrop-filter: blur(18px) saturate(130%); -webkit-backdrop-filter: blur(18px) saturate(130%);
  border: 1px solid rgba(238, 224, 203, 0.14);
  box-shadow: inset 0 1px 0 rgba(238, 224, 203, 0.22), inset 1px 0 0 rgba(238, 224, 203, 0.08), 0 10px 30px rgba(0, 0, 0, 0.18);
  transition: border-color 0.5s var(--ease), background 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.why-tile:hover { background: linear-gradient(180deg, rgba(238, 224, 203, 0.1), rgba(238, 224, 203, 0.04)); }
.why-num { flex: 0 0 auto; width: 26px; font: 500 14px/1 var(--dm); color: var(--cream); transition: color 0.5s; }
.why-tile h3 { font: 600 clamp(16px, 1.25vw, 19px)/1.25 var(--dm); color: var(--cream); margin-bottom: 6px; }
.why-tile p { font: 400 clamp(13px, 0.95vw, 14px)/1.45 var(--dm); color: rgba(238, 224, 203, 0.82); }
.why-tile.is-current {
  border-color: rgba(255, 211, 151, 0.35);
  background: linear-gradient(180deg, rgba(238, 224, 203, 0.11), rgba(238, 224, 203, 0.04));
  box-shadow: inset 0 1px 0 rgba(238, 224, 203, 0.28), 0 0 40px rgba(255, 211, 151, 0.06), 0 10px 30px rgba(0, 0, 0, 0.18);
}
.why-tile.is-current .why-num { color: var(--gold); }

.why-line { position: absolute; left: -22px; top: 6px; bottom: 6px; width: 1px; background: rgba(238, 224, 203, 0.1); }
.why-line i { display: block; width: 100%; height: 100%; background: var(--gold); transform: scaleY(0); transform-origin: top; }

@media (max-width: 860px) {
  .why { grid-template-columns: 1fr; gap: 40px; padding-top: 110px; }
  .why-line { left: -10px; }
}

/* =========================================================
   Client testimonials — sized from the 1440×900 Figma frame (1px = 100vw/1440)
   ========================================================= */
.testi {
  --u: calc(100vw / 1440);
  position: relative; overflow: hidden; min-height: 100vh; justify-content: center;
  padding: calc(132 * var(--u)) 0 calc(56 * var(--u));
  background: var(--bg);
}
.testi-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.testi-bg img {
  position: absolute; inset: -24px; width: calc(100% + 48px); height: calc(100% + 48px); object-fit: cover; opacity: 0;
  object-position: 50% 50%; transform-origin: 50% 50%;
  /* the source is a small card image: keep it soft and dark so it reads as atmosphere, not pixels.
     With a 2000px+ background export, drop the blur to 0 for the sharp Figma look. */
  filter: blur(9px) saturate(0.9) brightness(0.5);
}
.testi-bg img.is-on { opacity: 1; }
.testi-bg::after { /* the Figma darkens the left (behind the heading) and lightly overall */
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 17, 10, 0.78) 0%, rgba(0, 17, 10, 0.5) 32%, rgba(0, 17, 10, 0.18) 60%, rgba(0, 17, 10, 0.25) 100%),
    linear-gradient(0deg, rgba(0, 17, 10, 0.35) 0%, transparent 35%);
}
.testi > *:not(.testi-bg) { position: relative; z-index: 1; }

.testi-top {
  display: grid; grid-template-columns: calc(526 * var(--u)) 1fr; align-items: center;
  padding-left: calc(72 * var(--u));
}
.testi .kicker { font-size: max(12px, calc(15 * var(--u))); margin-bottom: calc(22 * var(--u)); }
.testi-title { font: 600 max(32px, calc(46 * var(--u)))/1.24 var(--dm); color: var(--cream); letter-spacing: 0; }
.testi-title em {
  font-family: var(--serif); font-style: normal; font-weight: 300; color: var(--gold);
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
}
.testi-copy { margin-top: calc(26 * var(--u)); font: 400 max(15px, calc(20 * var(--u)))/1.45 var(--dm); color: var(--cream); max-width: calc(420 * var(--u)); }

.testi-feature { /* Figma Frame 632: 843×415, fill #00110A, stroke #EEE0CB 2% · 16px outside, clip content */
  display: grid; grid-template-columns: calc(325 * var(--u)) 1fr;
  min-height: max(340px, calc(415 * var(--u)));
  background: #00110a; overflow: hidden;
  border-radius: calc(94 * var(--u)) 0 0 0;
  box-shadow: 0 0 0 calc(16 * var(--u)) rgba(238, 224, 203, 0.02);
}
.tf-img { position: relative; overflow: hidden; background: #0b1a12; }
.tf-img img { position: absolute; inset: 0; width: 100%; height: 100%; }
/* whole photo always visible: the image fits inside the box, a blurred copy of itself fills around it */
.fit-fill { object-fit: cover; filter: blur(16px) brightness(0.55) saturate(0.9); transform: scale(1.15); }
.fit-main { object-fit: contain; object-position: 50% 50%; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.35)); }
.tf-panel {
  position: relative; display: flex; flex-direction: column;
  background: #00110a;
  padding: calc(40 * var(--u)) calc(66 * var(--u)) calc(40 * var(--u)) calc(56 * var(--u));
}
.tf-quote { width: max(26px, calc(34 * var(--u))); color: var(--cream); margin-bottom: calc(28 * var(--u)); flex: 0 0 auto; transform: rotate(180deg); }
.tf-quote-text {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: max(13px, calc(15 * var(--u))); line-height: 1.62;
  color: var(--cream); font-variation-settings: "opsz" 24;
}
.tf-text hr { width: calc(88 * var(--u)); border: 0; border-top: 1px solid rgba(238, 224, 203, 0.25); margin: calc(18 * var(--u)) 0 calc(18 * var(--u)); }
.tf-name { font: 600 max(16px, calc(20 * var(--u)))/1.2 var(--dm); color: var(--cream); }
.tf-company { margin-top: calc(8 * var(--u)); font: 400 max(12px, calc(13 * var(--u)))/1.3 var(--dm); color: rgba(238, 224, 203, 0.9); }
.tf-arrows { display: flex; gap: calc(30 * var(--u)); justify-content: flex-end; margin-top: auto; padding-top: calc(14 * var(--u)); flex: 0 0 auto; }

.arrow-btn {
  width: max(32px, calc(35 * var(--u))); height: max(32px, calc(35 * var(--u)));
  border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: transparent; border: 1px solid rgba(238, 224, 203, 0.85);
  transition: background 0.35s, transform 0.35s var(--ease);
}
.arrow-btn svg { width: 46%; fill: none; stroke: var(--cream); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.arrow-btn.arrow-next { background: var(--cream); border-color: var(--cream); }
.arrow-btn.arrow-next svg { stroke: #00110a; }
.arrow-btn:hover { transform: scale(1.08); }

.testi-thumbs {
  display: flex; gap: calc(20 * var(--u)); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: calc(62 * var(--u)) calc(50 * var(--u)) 2px;
}
.testi-thumbs::-webkit-scrollbar { display: none; }
.tt {
  flex: 0 0 calc((100% - 3 * 20 * var(--u)) / 4); scroll-snap-align: start;
  display: grid; grid-template-columns: 43.5% 1fr; align-items: center; text-align: left;
  height: calc(140 * var(--u)); min-height: 110px; border-radius: calc(10 * var(--u)); overflow: hidden; cursor: pointer;
  background: #00110a; border: 1.5px solid transparent; padding: 0;
  transition: border-color 0.45s var(--ease), transform 0.45s var(--ease);
}
.tt-media { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; padding: 0; }
.tt-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.tt > span:not(.tt-media) { display: block; padding: 0 calc(22 * var(--u)); }
.tt strong { display: block; font: 600 max(15px, calc(20 * var(--u)))/1.2 var(--dm); color: var(--cream); white-space: nowrap; }
.tt em { display: block; margin-top: calc(8 * var(--u)); font: 400 max(12px, calc(13 * var(--u)))/1.3 var(--dm); font-style: normal; color: rgba(238, 224, 203, 0.9); }
.tt:hover { transform: translateY(-3px); }
.tt.is-active { border-color: var(--cream); }

.testi-nav { display: flex; gap: calc(30 * var(--u)); justify-content: center; margin-top: calc(56 * var(--u)); }

@media (max-width: 960px) {
  .testi { --u: calc(100vw / 760); padding-top: 110px; }
  .testi-top { grid-template-columns: 1fr; padding-right: 16px; padding-left: 16px; gap: 32px; }
  .testi-feature { grid-template-columns: 1fr; height: auto; }
  .testi-feature { border-radius: 90px 0 0 0; }
  .tf-img { aspect-ratio: 16 / 11; }
  .tf-panel { padding: 32px 24px; }
  .tt { flex-basis: 78vw; height: 120px; }
  .testi-thumbs { padding: 36px 16px 2px; gap: 14px; }
}

/* =========================================================
   FAQ — frosted glass tiles over the glowing main gate
   ========================================================= */
.faq {
  display: grid; grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr); align-items: center;
  gap: clamp(32px, 5vw, 90px); min-height: 100vh; padding: 130px max(16px, 3.5vw) 100px max(16px, 6vw);
}
.faq-title { font: 600 clamp(36px, 3.4vw, 54px)/1.18 var(--dm); color: var(--cream); letter-spacing: -0.01em; }
.faq-title em {
  font-family: var(--serif); font-style: normal; font-weight: 300; color: var(--gold);
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
}
.faq-copy { margin-top: 22px; font: 400 clamp(16px, 1.35vw, 20px)/1.55 var(--dm); color: var(--cream); max-width: 34ch; }

.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  position: relative; border-radius: 10px; overflow: hidden;
  /* glass: frosted blur of the gate behind + a faint cream tint */
  background: linear-gradient(180deg, rgba(238, 224, 203, 0.075), rgba(238, 224, 203, 0.025));
  backdrop-filter: blur(18px) saturate(130%); -webkit-backdrop-filter: blur(18px) saturate(130%);
  border: 1px solid rgba(238, 224, 203, 0.14);
  box-shadow: inset 0 1px 0 rgba(238, 224, 203, 0.22), inset 1px 0 0 rgba(238, 224, 203, 0.08), 0 10px 30px rgba(0, 0, 0, 0.18);
  transition: background 0.45s var(--ease), border-color 0.45s var(--ease);
}
.faq-item:hover { background: linear-gradient(180deg, rgba(238, 224, 203, 0.1), rgba(238, 224, 203, 0.04)); }
.faq-item.is-open { border-color: rgba(255, 211, 151, 0.35); background: linear-gradient(180deg, rgba(238, 224, 203, 0.11), rgba(238, 224, 203, 0.04)); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; text-align: left;
  background: none; border: 0; cursor: pointer; color: var(--cream);
  font: 500 clamp(16px, 1.3vw, 20px)/1.35 var(--dm);
  padding: clamp(20px, 3.1vh, 30px) clamp(22px, 2.4vw, 46px);
}
.faq-q i { position: relative; flex: 0 0 auto; width: 16px; height: 16px; opacity: 0.7; transition: transform 0.5s var(--ease), opacity 0.3s; }
.faq-q i::before, .faq-q i::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -0.75px; background: var(--cream); border-radius: 2px;
}
.faq-q i::after { transform: rotate(90deg); transition: transform 0.5s var(--ease); }
.faq-item.is-open .faq-q i { transform: rotate(180deg); opacity: 1; }
.faq-item.is-open .faq-q i::after { transform: rotate(0deg); }
.faq-q:focus-visible { outline: 1px solid var(--gold); outline-offset: -4px; border-radius: 10px; }
.faq-a { height: 0; overflow: hidden; }
.faq-a p {
  padding: 0 clamp(22px, 2.4vw, 46px) clamp(20px, 3vh, 28px);
  font: 400 clamp(14px, 1.05vw, 16px)/1.6 var(--dm); color: rgba(238, 224, 203, 0.82); max-width: 70ch;
}

@media (max-width: 900px) {
  .faq { grid-template-columns: 1fr; padding-top: 110px; }
}

/* =========================================================
   Start a project — positions in Figma px (frame 1440 wide, image cropped to 756 tall)
   ========================================================= */
.cta { --u: calc(100vw / 1440); position: relative; min-height: 0; padding: 0; background: var(--bg); }
.cta-stage { position: relative; width: 100%; aspect-ratio: 1440 / 756; overflow: hidden; }
.cta-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-glass { /* light frost over Figma's glass panel — keeps the cleaned area seamless */
  position: absolute; left: calc(164 * var(--u)); top: calc(259 * var(--u));
  width: calc(1114 * var(--u)); height: calc(247 * var(--u)); border-radius: calc(40 * var(--u));
  backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
}
.cta-text { position: absolute; left: calc(222 * var(--u)); top: calc(323 * var(--u)); }
.cta-title { font: 600 calc(48 * var(--u))/1.1 var(--dm); color: var(--cream); letter-spacing: -0.005em; white-space: nowrap; }
.cta-copy { margin-top: calc(10 * var(--u)); width: calc(440 * var(--u)); font: 400 calc(20 * var(--u))/1.45 var(--dm); color: var(--cream); }

/* the sliding button */
.cta-btn {
  --w: calc(323 * var(--u)); --h: calc(75 * var(--u)); --k: calc(60 * var(--u)); --pad: calc(7.5 * var(--u));
  --travel: calc(var(--w) - var(--k) - 2 * var(--pad));
  position: absolute; left: calc(837 * var(--u)); top: calc(345 * var(--u));
  width: var(--w); height: var(--h); border-radius: 999px; overflow: hidden;
  background: rgba(0, 17, 10, 0.3); border: 1px solid rgba(238, 224, 203, 0.32);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.cta-fill { /* cream that follows the knob */
  position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--k) + 2 * var(--pad) + var(--x, 0px));
  background: var(--cream); border-radius: 999px;
  transform: scaleX(var(--fs, 0)); transform-origin: left center; opacity: 0.96;
  transition: transform 0.5s var(--ease), width 0.5s var(--ease);
}
.cta-knob {
  position: absolute; left: var(--pad); top: 50%; width: var(--k); height: var(--k); margin-top: calc(var(--k) / -2);
  display: grid; place-items: center; border-radius: 50%; background: var(--cream); cursor: grab;
  transform: translateX(var(--x, 0px)); transition: transform 0.6s var(--ease), background 0.4s;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.cta-knob svg { width: 42%; fill: none; stroke: #00110a; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.4s; }
.cta-label {
  position: absolute; left: calc(100 * var(--u)); top: 50%; transform: translateY(-50%);
  font: 400 calc(21 * var(--u))/1 var(--dm); color: var(--cream); white-space: nowrap;
  transition: opacity 0.4s, transform 0.6s var(--ease);
}
.cta-btn.is-dragging .cta-knob, .cta-btn.is-dragging .cta-fill { transition: none; }
.cta-btn.is-dragging .cta-knob { cursor: grabbing; }
/* hover: a hint nudge + the cream starts to follow */
.cta-btn:hover:not(.is-dragging):not(.is-done) { --x: calc(14 * var(--u)); --fs: 1; }
.cta-btn:hover:not(.is-dragging):not(.is-done) .cta-knob svg { animation: nudge 1.2s var(--ease) infinite; }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(3px); } }
/* done: knob at the end, pill filled, label reads dark */
.cta-btn.is-done { --x: var(--travel); --fs: 1; }
.cta-btn.is-done .cta-knob { background: #00110a; }
.cta-btn.is-done .cta-knob svg { stroke: var(--cream); }
.cta-btn.is-done .cta-label, .cta-btn.is-dragging .cta-label { opacity: 0; transform: translate(12px, -50%); }

@media (max-width: 760px) {
  .cta { --u: 1px; }
  .cta-stage { aspect-ratio: auto; height: 560px; }
  .cta-bg { object-position: 52% 50%; }
  .cta-glass { left: 16px; right: 16px; width: auto; top: 140px; height: 280px; border-radius: 28px;
    background: rgba(238, 224, 203, 0.06); border: 1px solid rgba(238, 224, 203, 0.2); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
  .cta-text { left: 40px; right: 40px; top: 176px; }
  .cta-title { font-size: 34px; }
  .cta-copy { width: auto; font-size: 16px; }
  .cta-btn { left: 40px; top: 330px; --w: min(300px, calc(100vw - 80px)); --h: 64px; --k: 52px; --pad: 6px; }
  .cta-label { left: 82px; font-size: 18px; }
}

/* =========================================================
   Footer — frosted glass panel (Figma final, 1440 × 419)
   ========================================================= */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.site-foot { --u: min(1px, calc(100vw / 1440)); min-height: 0; padding: clamp(40px, 8vh, 90px) 0 0; }
.foot-glass {
  position: relative;
  display: grid; grid-template-columns: calc(510 * var(--u)) calc(211 * var(--u)) calc(219 * var(--u)) 1fr;
  padding: calc(52 * var(--u)) calc(90 * var(--u)) 0;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(180deg, rgba(238, 224, 203, 0.09), rgba(238, 224, 203, 0.035));
  backdrop-filter: blur(22px) saturate(130%); -webkit-backdrop-filter: blur(22px) saturate(130%);
  border: 1px solid rgba(238, 224, 203, 0.14); border-bottom: 0;
  box-shadow: inset 0 1px 0 rgba(238, 224, 203, 0.22), 0 -20px 60px rgba(0, 0, 0, 0.25);
}
.foot-logo img { display: block; width: calc(340 * var(--u)); min-width: 200px; height: auto; }
.foot-brand p { margin-top: calc(38 * var(--u)); max-width: 340px; font: 400 13.5px/1.75 var(--dm); color: rgba(238, 224, 203, 0.82); }
.foot-social { display: flex; gap: calc(38 * var(--u)); margin-top: calc(26 * var(--u)); }
.foot-social a { display: grid; place-items: center; width: 26px; height: 26px; transition: transform 0.35s var(--ease); }
.foot-social svg { width: 26px; fill: none; stroke: var(--cream); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.foot-social svg .dot { fill: var(--cream); stroke: none; }
.foot-social svg .x { stroke-width: 2.2; }
.foot-social a:hover { transform: translateY(-3px); }
.foot-social a:hover svg { stroke: var(--gold); }

.foot-col { display: flex; flex-direction: column; align-items: flex-start; gap: calc(26 * var(--u)); padding-top: 4px; }
.foot-col h3 { font: 600 16px/1 var(--dm); color: var(--cream); margin-bottom: calc(6 * var(--u)); }
.foot-col a, .foot-row { font: 400 16px/1.2 var(--dm); color: rgba(238, 224, 203, 0.82); transition: color 0.3s; }
.foot-col a:hover { color: var(--gold); }
.foot-touch { gap: calc(16 * var(--u)); }
.foot-row { display: inline-flex; align-items: center; gap: 16px; }
.foot-ic { flex: 0 0 auto; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #13261a; border: 1px solid rgba(238, 224, 203, 0.12); }
.foot-ic svg { width: 14px; fill: none; stroke: var(--cream); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.foot-sub { display: flex; gap: 6px; margin-top: calc(30 * var(--u)); width: min(276px, 100%); }
.foot-sub input[type="email"] {
  flex: 1; min-width: 0; height: 38px; padding: 0 16px; border-radius: 6px;
  font: 400 15px var(--dm); color: var(--cream);
  background: rgba(0, 17, 10, 0.35); border: 1px solid rgba(238, 224, 203, 0.18); outline: none;
  transition: border-color 0.3s;
}
.foot-sub input::placeholder { color: rgba(238, 224, 203, 0.5); }
.foot-sub input:focus { border-color: rgba(255, 211, 151, 0.6); }
.foot-sub button {
  flex: 0 0 44px; height: 38px; border-radius: 6px; border: 0; cursor: pointer; display: grid; place-items: center;
  background: var(--cream); transition: transform 0.3s var(--ease), background 0.3s;
}
.foot-sub button svg { width: 18px; }
.foot-sub button svg .fillp { fill: #00110a; stroke: none; }
.foot-sub button:hover { transform: translateX(2px); background: #fff4e4; }

.foot-bottom {
  grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  margin: calc(46 * var(--u)) calc(-50 * var(--u)) 0; padding: 14px 10px 22px;
  border-top: 1px solid rgba(238, 224, 203, 0.18);
  font: 400 12px var(--dm); color: rgba(238, 224, 203, 0.7);
}
.foot-tag { color: rgba(238, 224, 203, 0.45); }

@media (max-width: 1000px) {
  .foot-glass { grid-template-columns: 1fr 1fr; gap: 40px 24px; padding: 44px 28px 0; }
  .foot-brand, .foot-touch { grid-column: 1 / -1; }
  .foot-bottom { grid-template-columns: 1fr; gap: 6px; margin: 10px -10px 0; text-align: center; }
}

/* =========================================================
   Contact form — glass dialog
   ========================================================= */
.foot-msg { color: var(--gold) !important; font-weight: 500 !important; margin-bottom: 4px; }
.cf { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; }
.cf[hidden] { display: none; }
.cf-overlay { position: absolute; inset: 0; background: rgba(0, 8, 5, 0.62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.cf-panel {
  position: relative; width: min(1080px, 100%); max-height: calc(100vh - 32px); overflow: auto;
  display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.25fr);
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(238, 224, 203, 0.11), rgba(238, 224, 203, 0.035) 60%), rgba(0, 17, 10, 0.55);
  backdrop-filter: blur(26px) saturate(130%); -webkit-backdrop-filter: blur(26px) saturate(130%);
  border: 1px solid rgba(238, 224, 203, 0.16);
  box-shadow: inset 0 1px 0 rgba(238, 224, 203, 0.24), 0 40px 120px rgba(0, 0, 0, 0.5);
  scrollbar-width: thin;
}
.cf-close { position: absolute; top: 18px; right: 18px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  background: rgba(238, 224, 203, 0.08); border: 1px solid rgba(238, 224, 203, 0.2); transition: transform 0.4s var(--ease), background 0.3s; }
.cf-close i { position: absolute; left: 11px; right: 11px; top: 50%; height: 1.5px; background: var(--cream); }
.cf-close i:first-child { transform: rotate(45deg); }
.cf-close i:last-child { transform: rotate(-45deg); }
.cf-close:hover { transform: rotate(90deg); background: rgba(238, 224, 203, 0.16); }

.cf-side { padding: clamp(28px, 4vw, 52px); border-right: 1px solid rgba(238, 224, 203, 0.1); display: flex; flex-direction: column; }
.cf-side .kicker { color: var(--gold); }
.cf-title { font: 600 clamp(28px, 2.6vw, 40px)/1.15 var(--dm); color: var(--cream); }
.cf-title em { font-family: var(--serif); font-style: normal; font-weight: 300; color: var(--gold); font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1; }
.cf-lede { margin-top: 18px; font: 400 15.5px/1.6 var(--dm); color: rgba(238, 224, 203, 0.82); }
.cf-direct { list-style: none; margin-top: auto; padding-top: 32px; display: flex; flex-direction: column; gap: 14px; }
.cf-direct a { display: flex; align-items: center; gap: 14px; font: 400 15px/1.3 var(--dm); color: var(--cream); transition: color 0.3s; }
.cf-direct a:hover { color: var(--gold); }
.cf-direct small { display: block; margin-left: auto; color: rgba(238, 224, 203, 0.55); font-size: 13px; }
.cf-wa-link { padding: 12px 14px; border-radius: 12px; background: rgba(37, 211, 102, 0.08); border: 1px solid rgba(37, 211, 102, 0.25); }
.cf .foot-ic svg .f, .cf-send-ic svg .f { fill: currentColor; stroke: none; }

.cf-form { padding: clamp(28px, 4vw, 52px); padding-top: clamp(64px, 6vw, 72px); }
.cf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 14px; }
.cf-wide { grid-column: 1 / -1; }
.cf-field { display: flex; flex-direction: column; gap: 8px; }
.cf-field span { font: 500 13px/1 var(--dm); color: rgba(238, 224, 203, 0.78); letter-spacing: 0.01em; }
.cf-field input, .cf-field select, .cf-field textarea {
  width: 100%; padding: 13px 15px; border-radius: 10px;
  font: 400 15px/1.4 var(--dm); color: var(--cream);
  background: rgba(0, 17, 10, 0.45); border: 1px solid rgba(238, 224, 203, 0.16); outline: none;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.cf-field textarea { resize: vertical; min-height: 110px; }
.cf-field select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--cream) 50%), linear-gradient(135deg, var(--cream) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.cf-field select option { background: #0b1a12; color: var(--cream); }
.cf-field input::placeholder, .cf-field textarea::placeholder { color: rgba(238, 224, 203, 0.38); }
.cf-field input:focus, .cf-field select:focus, .cf-field textarea:focus {
  border-color: rgba(255, 211, 151, 0.6); box-shadow: 0 0 0 3px rgba(255, 211, 151, 0.12); background: rgba(0, 17, 10, 0.6);
}
.cf-field.is-invalid input, .cf-field.is-invalid select, .cf-field.is-invalid textarea { border-color: rgba(255, 140, 120, 0.75); }
.cf-error { margin-top: 14px; font: 400 14px var(--dm); color: #ffb4a3; }

.cf-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.cf-send {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 26px;
  border-radius: 999px; cursor: pointer; font: 500 16px var(--dm); transition: transform 0.35s var(--ease), box-shadow 0.35s, background 0.3s;
}
.cf-send-wa { flex: 1 1 220px; background: var(--cream); color: #00110a; border: 0; }
.cf-send-wa:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(255, 211, 151, 0.22); }
.cf-send-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #1f7a43; color: #fff; }
.cf-send-ic svg { width: 18px; fill: none; stroke: #fff; stroke-width: 1.5; }
.cf-send-mail { background: transparent; color: var(--cream); border: 1px solid rgba(238, 224, 203, 0.4); }
.cf-send-mail:hover { background: rgba(238, 224, 203, 0.08); }
.cf-note { margin-top: 14px; font: 400 12.5px var(--dm); color: rgba(238, 224, 203, 0.5); }

.cf-done { grid-column: 2; padding: clamp(40px, 5vw, 64px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 16px; }
.cf-done[hidden] { display: none; }
.cf-done-mark { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; border: 1px solid rgba(255, 211, 151, 0.5); box-shadow: 0 0 40px rgba(255, 211, 151, 0.15); }
.cf-done-mark img { width: 30px; }
.cf-done h3 { font: 600 30px/1.2 var(--dm); color: var(--cream); }
.cf-done p { font: 400 16px/1.6 var(--dm); color: rgba(238, 224, 203, 0.82); max-width: 42ch; }
.cf-done strong { color: var(--gold); font-weight: 500; }

@media (max-width: 860px) {
  .cf { padding: 0; align-items: end; }
  .cf-panel { grid-template-columns: 1fr; max-height: 92vh; border-radius: 22px 22px 0 0; }
  .cf-side { border-right: 0; border-bottom: 1px solid rgba(238, 224, 203, 0.1); padding-bottom: 24px; }
  .cf-direct { padding-top: 22px; }
  .cf-form { padding-top: 26px; }
  .cf-grid { grid-template-columns: 1fr; }
  .cf-done { grid-column: 1; }
}

/* Hero "Start a Project" — the arrow disc slides across like "Get In Touch" */
.btn-glass { position: relative; overflow: hidden; isolation: isolate; }
.btn-glass::before { /* cream that follows the disc */
  content: ""; position: absolute; z-index: -1; left: 0; top: 0; bottom: 0; width: 100%;
  background: var(--cream); border-radius: inherit;
  transform: scaleX(0); transform-origin: left center; transition: transform 0.65s var(--ease);
}
.btn-glass .btn-arrow { position: relative; z-index: 1; transition: transform 0.65s var(--ease), background 0.4s; }
.btn-glass > span:last-child { position: relative; transition: transform 0.65s var(--ease), color 0.4s; }
.btn-glass:hover::before, .btn-glass:focus-visible::before { transform: scaleX(1); }
.btn-glass:hover .btn-arrow, .btn-glass:focus-visible .btn-arrow { transform: translateX(var(--slide, 150px)); }
.btn-glass:hover > span:last-child, .btn-glass:focus-visible > span:last-child { transform: translateX(-46px); color: #00110a; }
.btn-glass:hover .btn-arrow svg { transform: none; animation: nudge 1.2s var(--ease) infinite; }
