/*
Theme Name: Durant Digital Agency
Theme URI: https://durant-da.com
Author: Durant Digital Agency
Author URI: https://durant-da.com
Description: Custom classic WordPress theme for Durant Digital Agency. Requires ACF Pro and WP Mail SMTP.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Proprietary
Text Domain: durant
*/

/* === Durant Digital Agency — Homepage Styles === */
:root {
  --ink: #021427;          /* Prussian Blue */
  --ink-2: #0a2240;
  --ink-3: #143461;
  --grey: #767474;
  --grey-2: #B5B3B3;
  --grey-3: #E6E5E5;
  --grey-4: #F4F4F2;
  --bg: #FFFFFF;
  --bg-tint: #FAFAF8;
  --accent: oklch(72% 0.14 235);     /* electric blue, low chroma */
  --accent-soft: oklch(94% 0.04 235);
  --line: rgba(2, 20, 39, 0.08);
  --line-2: rgba(2, 20, 39, 0.14);
  --shadow-sm: 0 1px 2px rgba(2,20,39,0.04), 0 1px 1px rgba(2,20,39,0.03);
  --shadow-md: 0 8px 24px -8px rgba(2,20,39,0.10), 0 2px 6px rgba(2,20,39,0.04);
  --shadow-lg: 0 24px 60px -20px rgba(2,20,39,0.20), 0 8px 20px -8px rgba(2,20,39,0.06);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1280px;
  --pad: clamp(20px, 4vw, 64px);
  --font: 'Poppins', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}
body { overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

/* Layout */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}
.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.section-tight { padding: clamp(56px, 8vw, 96px) 0; }

/* Eyebrow */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
  font-weight: 500;
}
.eyebrow::before {
  content: ""; width: 18px; height: 1px; background: var(--ink); display: inline-block;
}
.eyebrow.on-dark { color: var(--grey-2); }
.eyebrow.on-dark::before { background: var(--accent); }

/* Type */
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; color: var(--ink); }
h1 { font-size: clamp(44px, 7.4vw, 96px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.02; }
h2 { font-size: clamp(34px, 4.6vw, 60px); letter-spacing: -0.025em; line-height: 1.12; }
h3 { font-size: clamp(22px, 2vw, 28px); letter-spacing: -0.02em; line-height: 1.15; }
h4 { font-size: 18px; letter-spacing: -0.01em; line-height: 1.3; }
p { margin: 0; line-height: 1.55; color: var(--ink); }
.lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--grey); line-height: 1.55; max-width: 56ch; }
.body { color: var(--grey); line-height: 1.65; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 24px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.005em;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
  position: relative;
  white-space: nowrap;
}
.btn .arrow {
  display: inline-flex; width: 22px; height: 22px;
  border-radius: 999px; align-items: center; justify-content: center;
  transition: transform .3s ease;
}
.btn:hover .arrow { transform: translateX(3px); }

.btn-primary {
  background: var(--ink); color: #fff;
}
.btn-primary .arrow { background: rgba(255,255,255,0.14); }
.btn-primary:hover { background: var(--ink-2); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-ghost {
  color: var(--ink); border: 1px solid var(--line-2);
  background: rgba(255,255,255,0.6); backdrop-filter: blur(10px);
}
.btn-ghost:hover { border-color: var(--ink); background: #fff; }

.btn-light {
  background: #fff; color: var(--ink);
}
.btn-light:hover { transform: translateY(-1px); box-shadow: 0 12px 30px -10px rgba(0,0,0,0.4); }

.btn-sm { padding: 11px 18px; font-size: 14px; }

/* Nav */
.nav-wrap {
  position: fixed; top: 36px; left: 0; right: 0;
  z-index: 50;
  pointer-events: none;
  transition: top .3s ease;
}
.nav {
  pointer-events: auto;
  margin: 0 auto;
  max-width: 1180px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px 12px 22px;
  border-radius: 999px;
  background: rgba(255,255,255,0.78);
  backdrop-filter: saturate(140%) blur(16px);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  border: 1px solid var(--line);
  box-shadow: 0 4px 14px -8px rgba(2,20,39,0.10);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.01em; }
.brand .logomark {
  width: 36px; height: 36px; border-radius: 9px; background: var(--ink);
  display: grid; place-items: center; color: #fff;
  font-weight: 700; font-size: 16px; letter-spacing: -0.04em;
  flex-shrink: 0;
  background-image: url("assets/img/durant-icon.png");
  background-size: 72%;
  background-repeat: no-repeat;
  background-position: center;
  font-size: 0;
  color: transparent;
}
.brand .name { display: flex; flex-direction: column; line-height: 1; }
.brand .name b { font-weight: 600; font-size: 15px; letter-spacing: 0.01em; }
.brand .name span { font-size: 10px; color: var(--grey); letter-spacing: 0.18em; text-transform: uppercase; margin-top: 3px; }
.nav .brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.01em; }
.nav .brand .logomark {
  width: 36px; height: 36px; border-radius: 9px; background: var(--ink);
  background-image: url("assets/img/durant-icon.png");
  background-size: 72%;
  background-repeat: no-repeat;
  background-position: center;
  font-size: 0;
  color: transparent;
}
.nav .brand .name { display: flex; flex-direction: column; line-height: 1; }
.nav .brand .name b { font-weight: 600; font-size: 15px; letter-spacing: 0.01em; }
.nav .brand .name span { font-size: 10px; color: var(--grey); letter-spacing: 0.18em; text-transform: uppercase; margin-top: 3px; }
.nav-links { display: flex; gap: 6px; }
.nav-links a {
  padding: 9px 14px; font-size: 14px; color: var(--ink); border-radius: 999px;
  transition: background .2s ease, color .2s ease;
}
.nav-links a:hover { background: rgba(2,20,39,0.05); }
.nav-cta { display: flex; align-items: center; gap: 8px; }

/* Burger button */
.nav-burger {
  display: none;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: rgba(2,20,39,0.05);
  align-items: center; justify-content: center;
  flex-direction: column;
  gap: 5px;
  transition: background .2s ease;
}
.nav-burger:hover { background: rgba(2,20,39,0.1); }
.nav-burger .bar {
  width: 18px; height: 1.6px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
  transform-origin: center;
}
.nav-burger.open .bar:nth-child(1) { transform: translateY(3.3px) rotate(45deg); }
.nav-burger.open .bar:nth-child(2) { opacity: 0; }
.nav-burger.open .bar:nth-child(3) { transform: translateY(-3.3px) rotate(-45deg); }

/* Mobile drawer */
.nav-drawer {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(2, 20, 39, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.nav-drawer.open { opacity: 1; pointer-events: auto; }
.nav-drawer-panel {
  position: absolute;
  top: 12px; right: 12px; left: 12px;
  background: #fff;
  border-radius: 22px;
  padding: 24px 24px 32px;
  box-shadow: var(--shadow-lg);
  transform: translateY(-20px);
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
  display: flex; flex-direction: column;
  gap: 8px;
}
.nav-drawer.open .nav-drawer-panel { transform: translateY(0); }
.nav-drawer-head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}
.nav-drawer-close {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--grey-4);
  display: grid; place-items: center;
  font-size: 22px; line-height: 1;
}
.nav-drawer a.drawer-link {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 8px;
  border-bottom: 1px solid var(--line);
  font-size: 22px; font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
  transition: padding .2s ease, color .2s ease;
}
.nav-drawer a.drawer-link:hover { padding-left: 16px; color: oklch(40% 0.10 250); }
.nav-drawer a.drawer-link .arrow-tail { font-family: var(--mono); font-size: 14px; color: var(--grey); }
.nav-drawer .drawer-cta {
  margin-top: 24px;
  display: flex; flex-direction: column; gap: 12px;
}

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
  .nav-cta .btn-primary { display: none; }
}

/* Ambient navy blobs (positioned per-section) */
.bg-blob {
  position: absolute;
  width: 720px; height: 720px;
  border-radius: 50%;
  filter: blur(var(--blob-blur, 80px));
  pointer-events: none;
  z-index: 0;
  opacity: var(--blob-opacity, 0.85);
  transition: opacity .4s ease, filter .4s ease;
}
.bg-blob-blue {
  background: radial-gradient(circle, oklch(78% 0.07 240 / 0.55), oklch(85% 0.05 240 / 0.25) 45%, transparent 70%);
}
.bg-blob-deep {
  background: radial-gradient(circle, oklch(72% 0.08 245 / 0.50), oklch(82% 0.06 240 / 0.22) 45%, transparent 70%);
}
.bg-blob-soft {
  background: radial-gradient(circle, oklch(85% 0.05 240 / 0.45), transparent 70%);
}

/* Physics-driven floating blob layer */
.physics-blob {
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  filter: blur(var(--blob-blur, 80px));
  pointer-events: none;
  z-index: 1;
  opacity: var(--blob-opacity, 0.85);
  will-change: transform;
  transform: translate3d(-9999px,-9999px,0);
  mix-blend-mode: multiply;
}
.physics-blob.b1 { background: radial-gradient(circle, oklch(78% 0.07 240 / 0.55), oklch(85% 0.05 240 / 0.20) 45%, transparent 70%); }
.physics-blob.b2 { background: radial-gradient(circle, oklch(72% 0.08 245 / 0.55), oklch(82% 0.06 240 / 0.22) 45%, transparent 70%); }
.physics-blob.b3 { background: radial-gradient(circle, oklch(85% 0.05 240 / 0.55), oklch(90% 0.04 235 / 0.20) 45%, transparent 70%); }
.physics-blob.b4 { background: radial-gradient(circle, oklch(74% 0.10 250 / 0.45), oklch(85% 0.06 245 / 0.18) 45%, transparent 70%); }
@media (hover: none) { .physics-blob { display: none; } }
@media (prefers-reduced-motion: reduce) { .physics-blob { display: none; } }

section { position: relative; }
section > .container { position: relative; z-index: 2; }

/* === Hero === */
.hero {
  position: relative;
  padding: 200px 0 140px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 1100px 700px at 18% -10%, oklch(40% 0.10 250 / 0.55), transparent 60%),
    radial-gradient(ellipse 1000px 600px at 85% 30%, oklch(35% 0.10 250 / 0.45), transparent 60%),
    radial-gradient(ellipse 900px 500px at 50% 110%, oklch(50% 0.10 245 / 0.40), transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--bg-tint) 100%);
}
.hero-orb {
  position: absolute;
  width: 720px; height: 720px;
  left: 50%; top: 60%;
  transform: translate(-50%, -50%);
  filter: blur(80px);
  opacity: 0.55;
  background: conic-gradient(from 90deg, oklch(72% 0.14 235 / 0.5), oklch(86% 0.10 200 / 0.5), oklch(78% 0.12 260 / 0.45), oklch(72% 0.14 235 / 0.5));
  border-radius: 50%;
  pointer-events: none;
  animation: orb 20s linear infinite;
  will-change: transform;
  contain: layout style paint;
}
.hero-orb-2 {
  width: 540px; height: 540px;
  left: 18%; top: 30%;
  background: conic-gradient(from 180deg, oklch(38% 0.10 250 / 0.55), oklch(50% 0.10 245 / 0.45), oklch(28% 0.09 250 / 0.55));
  filter: blur(70px);
  opacity: 0.55;
  animation-duration: 28s;
  animation-direction: reverse;
}
@keyframes orb {
  0% { transform: translate(-50%, -50%) rotate(0deg) scale(1); }
  50% { transform: translate(-50%, -50%) rotate(180deg) scale(1.06); }
  100% { transform: translate(-50%, -50%) rotate(360deg) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-orb, .hero-orb-2 { animation: none; }
}
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(2,20,39,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(2,20,39,0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
}
.hero-inner {
  position: relative;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 32px;
}
.hero h1 .accent {
  background: linear-gradient(120deg, var(--ink) 30%, oklch(50% 0.10 235) 60%, var(--ink) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 6px 6px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  font-size: 13px; color: var(--grey);
  font-weight: 500;
}
.hero-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,0.18); }
.hero-pill .badge { background: var(--ink); color: #fff; padding: 4px 10px; border-radius: 999px; font-size: 11px; }

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* Marquee credibility */
.cred-strip {
  border-block: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-tint), oklch(96% 0.02 245));
  padding: 32px 0;
  overflow: hidden;
  position: relative;
}
.cred-strip::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 600px 200px at 20% 50%, oklch(40% 0.10 250 / 0.18), transparent 70%),
    radial-gradient(ellipse 500px 200px at 80% 50%, oklch(35% 0.10 250 / 0.15), transparent 70%);
  pointer-events: none;
}
.cred-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 36px; align-items: center; }
.cred-grid .cred-label { font-family: var(--mono); font-size: 12px; text-transform: uppercase; color: var(--grey); letter-spacing: 0.14em; line-height: 1.5; }
.marquee { overflow: hidden; mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 56px; animation: marquee 32s linear infinite; width: max-content; }
.marquee-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 16px; font-weight: 500; color: var(--ink);
  white-space: nowrap;
}
.marquee-item .glyph {
  width: 22px; height: 22px; display: grid; place-items: center;
  border-radius: 6px; background: var(--ink); color: #fff; font-family: var(--mono); font-size: 11px; font-weight: 600;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}
@media (max-width: 720px) { .cred-grid { grid-template-columns: 1fr; gap: 16px; } }

/* Section heading */
.sec-head { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; margin-bottom: 64px; align-items: end; }
.sec-head .left { display: flex; flex-direction: column; gap: 16px; }
.sec-head .right { color: var(--grey); font-size: 17px; line-height: 1.6; max-width: 56ch; }
@media (max-width: 800px) { .sec-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 40px; } }

/* About */
.about .sec-head { grid-template-columns: 2.2fr 1fr; align-items: start; }
.about .sec-head .left h2 { max-width: 22ch; }
.about .sec-head .right { padding-top: 12px; }
@media (max-width: 800px) {
  .about .sec-head { grid-template-columns: 1fr; }
  .about .sec-head .left h2 { max-width: none; }
}
.about {
  background:
    radial-gradient(ellipse 900px 600px at 100% 30%, oklch(45% 0.10 250 / 0.45), transparent 65%),
    radial-gradient(ellipse 700px 500px at 0% 80%, oklch(50% 0.10 245 / 0.35), transparent 65%),
    #fff;
  overflow: hidden;
}

/* Principles panel */
.principles {
  position: relative;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.85), rgba(255,255,255,0.6));
  border: 1px solid var(--line);
  padding: 28px;
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-md);
}
.principles-glow {
  position: absolute;
  width: 380px; height: 380px;
  right: -120px; top: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, oklch(38% 0.10 250 / 0.6), transparent 65%);
  filter: blur(40px);
  pointer-events: none;
}
.principles-head {
  display: flex; justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  position: relative; z-index: 2;
}
.principles-list {
  display: flex; flex-direction: column;
  position: relative; z-index: 2;
}
.pr-item {
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 18px; align-items: center;
  padding: 22px 4px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: padding .3s ease;
}
.pr-item:last-child { border-bottom: 0; }
.pr-item:hover { padding-left: 14px; padding-right: 0; }
.pr-k { font-family: var(--mono); font-size: 12px; color: var(--grey); letter-spacing: 0.1em; }
.pr-t { font-size: 17px; font-weight: 500; color: var(--ink); letter-spacing: -0.01em; }
.pr-d { font-size: 13px; color: var(--grey); margin-top: 2px; }
.pr-arrow {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--grey-4); display: grid; place-items: center;
  color: var(--ink);
  transition: background .25s ease, transform .25s ease;
}
.pr-item:hover .pr-arrow { background: var(--ink); color: #fff; transform: translateX(4px); }
.about-layout { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
@media (max-width: 900px) { .about-layout { grid-template-columns: 1fr; gap: 32px; } }
.about-copy h2 { margin-bottom: 20px; }
.about-copy p { color: var(--grey); font-size: 17px; line-height: 1.65; }
.about-copy p + p { margin-top: 16px; }

/* Services */
.services {
  background:
    radial-gradient(ellipse 900px 600px at 90% 10%, oklch(40% 0.10 250 / 0.32), transparent 65%),
    radial-gradient(ellipse 700px 500px at 5% 90%, oklch(35% 0.10 250 / 0.28), transparent 65%),
    var(--bg-tint);
  overflow: hidden;
}
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
}
@media (max-width: 900px) { .services-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .services-grid { grid-template-columns: 1fr; } }
.service-card {
  background: #fff;
  padding: 36px 32px 28px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: background .35s ease;
  display: flex; flex-direction: column; gap: 18px;
  min-height: 260px;
  text-decoration: none;
  color: inherit;
}
.service-card:hover { background: var(--ink); }
.service-card:hover * { color: #fff; }
.service-card:hover .svc-num { color: rgba(255,255,255,0.5); }
.service-card:hover .svc-arrow { background: rgba(255,255,255,0.12); color: #fff; transform: translate(4px,-4px); }
.service-card:hover .svc-icon path,
.service-card:hover .svc-icon circle,
.service-card:hover .svc-icon rect,
.service-card:hover .svc-icon line { stroke: #fff; }
.svc-top { display: flex; align-items: flex-start; justify-content: space-between; }
.svc-num { font-family: var(--mono); font-size: 12px; color: var(--grey); letter-spacing: 0.1em; }
.svc-arrow {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--grey-4);
  transition: transform .35s ease, background .35s ease, color .35s ease;
}
.svc-icon { width: 36px; height: 36px; }
.svc-icon path, .svc-icon circle, .svc-icon rect, .svc-icon line { stroke: var(--ink); stroke-width: 1.4; fill: none; transition: stroke .35s ease; }
.service-card h3 { font-weight: 500; font-size: 24px; }
.service-card p { color: var(--grey); font-size: 14px; line-height: 1.55; }
.svc-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 16px; }
.svc-tag {
  font-family: var(--mono); font-size: 11px;
  padding: 4px 9px; border-radius: 999px;
  background: rgba(2,20,39,0.05); color: var(--grey);
  letter-spacing: 0.04em;
}
.service-card:hover .svc-tag { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7); }

/* Process */
.process {
  background:
    radial-gradient(ellipse 800px 500px at 50% 0%, oklch(45% 0.10 250 / 0.20), transparent 65%),
    #fff;
  overflow: hidden;
}
.process-rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  padding-top: 32px;
}
.process-rail::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px;
  height: 1px; background: var(--ink); width: 0%;
  transition: width 1.4s cubic-bezier(.2,.8,.2,1);
}
.process-rail.in-view::before { width: 100%; }
@media (max-width: 900px) { .process-rail { grid-template-columns: repeat(2,1fr); gap: 24px 16px; } }
@media (max-width: 540px) { .process-rail { grid-template-columns: 1fr; } }
.process-step {
  padding: 0 18px 0 0;
  display: flex; flex-direction: column; gap: 10px;
  position: relative;
}
.process-step::before {
  content: ""; position: absolute; left: 0; top: -34px;
  width: 8px; height: 8px; background: var(--ink); border-radius: 50%;
  transform: scale(0); transition: transform .4s ease;
  transition-delay: var(--d, 0s);
}
.process-rail.in-view .process-step::before { transform: scale(1); }
.process-step .num { font-family: var(--mono); font-size: 12px; color: var(--grey); letter-spacing: 0.1em; }
.process-step h3 { font-size: 22px; font-weight: 500; }
.process-step p { color: var(--grey); font-size: 14px; line-height: 1.55; }

/* Portfolio */
.portfolio {
  background:
    radial-gradient(ellipse 800px 500px at 0% 30%, oklch(40% 0.10 250 / 0.30), transparent 65%),
    radial-gradient(ellipse 700px 500px at 100% 80%, oklch(45% 0.10 250 / 0.28), transparent 65%),
    var(--bg-tint);
  overflow: hidden;
}
.port-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 200px;
  gap: 16px;
}
.port-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  border: 1px solid var(--line);
  transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s ease;
  text-decoration: none;
  display: block;
}
.port-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.port-cover { position: absolute; inset: 0; transition: transform .6s ease; }
.port-item:hover .port-cover { transform: scale(1.04); }
.port-tag { position: absolute; top: 16px; left: 16px; font-family: var(--mono); font-size: 11px; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,0.85); color: var(--ink); backdrop-filter: blur(8px); z-index: 2; letter-spacing: 0.06em; text-transform: uppercase; }
.port-meta {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 18px 20px;
  background: linear-gradient(180deg, transparent, rgba(2,20,39,0.85));
  color: #fff;
  display: flex; align-items: flex-end; justify-content: space-between;
  transform: translateY(40%);
  opacity: 0;
  transition: transform .4s ease, opacity .4s ease;
}
.port-item:hover .port-meta { transform: translateY(0); opacity: 1; }
.port-meta h4 { color: #fff; font-weight: 500; font-size: 18px; }
.port-meta .sub { font-size: 13px; color: rgba(255,255,255,0.7); font-family: var(--mono); margin-top: 2px; }
.port-meta .view { font-size: 13px; padding: 8px 14px; background: rgba(255,255,255,0.14); border-radius: 999px; backdrop-filter: blur(6px); }

.port-1 { grid-column: span 4; grid-row: span 2; }
.port-2 { grid-column: span 2; grid-row: span 2; }
.port-3 { grid-column: span 2; grid-row: span 2; }
.port-4 { grid-column: span 2; grid-row: span 2; }
.port-5 { grid-column: span 2; grid-row: span 2; }
@media (max-width: 900px) {
  .port-grid { grid-template-columns: repeat(2,1fr); grid-auto-rows: 220px; }
  .port-1, .port-2, .port-3, .port-4, .port-5 { grid-column: span 1; grid-row: span 1; }
}
@media (max-width: 640px) {
  /* Single column on phones — half-width cards crop the headline text. */
  .port-grid { grid-template-columns: 1fr; grid-auto-rows: 260px; gap: 12px; }

  /* Tighten decorative cover content so the headline isn't clipped. */
  .cover { padding: 16px; }
  .cover h3 { font-size: 20px; max-width: 92%; }
  .cover .meta { font-size: 10px; }
  .port-tag { font-size: 10px; top: 12px; left: 12px; padding: 4px 9px; }

  /* No :hover on touch — always show the case name + CTA so visitors
     know which case study they're tapping. */
  .port-meta {
    transform: translateY(0);
    opacity: 1;
    padding: 14px 16px;
    background: linear-gradient(180deg, transparent, rgba(2,20,39,0.92) 55%);
  }
  .port-meta h4 { font-size: 16px; }
  .port-meta .sub { font-size: 12px; }
  .port-meta .view { font-size: 11px; padding: 6px 10px; }
}

/* Mock cover styles */
.cover {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 22px;
}
.cover.real-estate { background: linear-gradient(135deg, #1a3556, #021427); color: #fff; }
.cover.real-estate .skyline {
  position: absolute; left: 0; right: 0; bottom: 0; height: 70%;
  background:
    linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.4) 100%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.06) 0 12px, transparent 12px 28px);
  mask-image: linear-gradient(180deg, transparent, #000);
}
.cover.fitness { background: linear-gradient(135deg, oklch(70% 0.16 30), oklch(45% 0.12 25)); color: #fff; }
.cover.saas { background: #fff; color: var(--ink); }
.cover.saas .ui-mock { display: flex; flex-direction: column; gap: 6px; margin-top: auto; }
.cover.saas .ui-row { height: 8px; border-radius: 4px; background: var(--grey-4); }
.cover.saas .ui-row.fill { background: var(--ink); }
.cover.saas .ui-row.short { width: 60%; }
.cover.saas .ui-row.tiny { width: 30%; }
.cover.local { background: linear-gradient(135deg, oklch(82% 0.10 90), oklch(68% 0.10 80)); color: var(--ink); }
.cover.brand { background: linear-gradient(135deg, oklch(95% 0.02 235), #fff); color: var(--ink); border: 1px solid var(--line); }
.cover h3 { font-size: 28px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.05; max-width: 80%; }
.cover .meta { font-family: var(--mono); font-size: 11px; opacity: 0.7; letter-spacing: 0.1em; text-transform: uppercase; }

/* Testimonials */
.test {
  background:
    radial-gradient(ellipse 800px 500px at 100% 0%, oklch(40% 0.10 250 / 0.24), transparent 65%),
    radial-gradient(ellipse 700px 400px at 0% 100%, oklch(35% 0.10 250 / 0.20), transparent 65%),
    #fff;
  overflow: hidden;
}
.test-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .test-grid { grid-template-columns: 1fr; } }
.test-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  background: #fff;
  display: flex; flex-direction: column; gap: 24px;
  transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}
.test-card:hover { border-color: var(--line-2); box-shadow: var(--shadow-md); }
.test-card .quote { font-size: 18px; line-height: 1.5; letter-spacing: -0.01em; color: var(--ink); font-weight: 400; flex: 1; }
.test-card .quote::before { content: "\201C"; font-size: 64px; line-height: 0.6; display: block; color: var(--ink); opacity: 0.15; margin-bottom: 6px; font-family: 'Poppins'; }
.test-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em;
  color: var(--ink); opacity: 0.7; transition: opacity .2s, gap .2s;
}
.test-link:hover { opacity: 1; gap: 10px; }
.test-author { display: flex; align-items: center; gap: 12px; }
.test-avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; color: #fff; font-size: 14px; letter-spacing: -0.02em; }
.test-info b { display: block; font-size: 14px; font-weight: 500; }
.test-info span { font-size: 12px; color: var(--grey); }
.test-result { font-family: var(--mono); font-size: 12px; padding: 6px 10px; background: var(--grey-4); color: var(--ink); border-radius: 999px; align-self: flex-start; letter-spacing: 0.04em; }

/* CTA — bright variant */
.cta-bright {
  position: relative;
  overflow: hidden;
  padding: clamp(96px, 12vw, 160px) 0;
  background:
    radial-gradient(ellipse 1100px 700px at 18% 40%, oklch(38% 0.10 250 / 0.55), transparent 65%),
    radial-gradient(ellipse 900px 600px at 90% 80%, oklch(30% 0.09 250 / 0.50), transparent 65%),
    linear-gradient(180deg, var(--bg-tint) 0%, #fff 100%);
}
.cta-blob-1 { left: -8%; top: -10%; opacity: 0.85; }
.cta-blob-2 { right: -12%; bottom: -10%; opacity: 0.85; }
.cta-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: center; position: relative; z-index: 2; }
@media (max-width: 900px) { .cta-grid { grid-template-columns: 1fr; gap: 40px; } }
.cta-bright h2 { color: var(--ink); font-size: clamp(38px, 5.6vw, 76px); }
.cta-bright h2 .em { font-style: italic; font-weight: 300; color: var(--ink); }
.cta-actions { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; }
.cta-card-bright {
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-md);
}
.cta-card-bright h3 { color: var(--ink); font-size: 14px; font-weight: 500; letter-spacing: 0; }
.cta-card-bright .checks { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.cta-card-bright .check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink); line-height: 1.5; }
.cta-card-bright .check svg { flex: 0 0 auto; margin-top: 2px; color: oklch(55% 0.14 235); }
.cta-card-bright .divider { height: 1px; background: var(--line); margin: 24px 0; }
.cta-card-bright .meta-row { display: flex; justify-content: space-between; font-size: 12px; color: var(--grey); font-family: var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.cta-card-bright .meta-row b { color: var(--ink); font-weight: 500; }

/* Footer */
.footer { background: #fff; border-top: 1px solid var(--line); padding: 80px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 48px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--grey); font-weight: 500; font-family: var(--mono); margin-bottom: 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer ul a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.footer .brand-block { max-width: 320px; }
.footer .brand-block p { font-size: 14px; color: var(--grey); margin-top: 16px; line-height: 1.55; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 32px; margin-top: 56px; border-top: 1px solid var(--line); font-size: 13px; color: var(--grey); }
.footer-bottom .legal { display: flex; gap: 18px; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Modal */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(2,20,39,0.6);
  backdrop-filter: blur(8px);
  display: grid; place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.modal-backdrop.open { opacity: 1; pointer-events: auto; }
.modal {
  width: 100%; max-width: 920px;
  height: 90vh;
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  transform: translateY(16px);
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
  box-shadow: 0 60px 120px -40px rgba(2,20,39,0.4);
  position: relative;
}
.modal-backdrop.open .modal { transform: translateY(0); }
@media (max-width: 800px) {
  /* Edge-to-edge sheet on phone — gives the form room and avoids the
     "stuck mid-scroll" trap caused by nested scrollable elements. */
  .modal-backdrop { padding: 0; align-items: stretch; }
  .modal {
    grid-template-columns: 1fr;
    width: 100%; max-width: 100%;
    height: 100vh; height: 100dvh; max-height: 100vh; max-height: 100dvh;
    border-radius: 0;
    overflow: hidden;        /* outer never scrolls — only modal-body does */
    transform: none;         /* no rise-on-open on mobile, just fade */
  }
  /* Specificity must beat the base `.modal-side { display: flex }` rule
     declared later in this file; `.modal > .modal-side` does that. */
  .modal > .modal-side { display: none !important; }
  .modal > .modal-body {
    padding: 56px 18px 24px; /* top room for the close X; tighter sides */
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  /* Calendar — bigger touch targets on narrow widths */
  .modal-body .cal-grid .day,
  .modal-body .cal-grid .head,
  .modal-body .cal-grid .cal-empty { padding: 8px 0; font-size: 13px; }
  .modal-body .times { grid-template-columns: repeat(3, 1fr); }

  /* iOS Safari auto-zooms when input font-size < 16px. Bumping to 16px
     prevents the zoom-in on tap (which then left the user stuck zoomed). */
  .modal-body .form-row input,
  .modal-body .form-row textarea,
  .contact-modal .form-row input,
  .contact-modal .form-row textarea { font-size: 16px; }
}
.modal-side { background: var(--ink); color: #fff; padding: 36px; display: flex; flex-direction: column; gap: 16px; position: relative; overflow: hidden; }
.modal-side::after { content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(135deg, #000 30%, transparent 80%);
}
.modal-side > * { position: relative; z-index: 2; }
.modal-side h3 { color: #fff; font-size: 26px; font-weight: 500; }
.modal-side p { color: rgba(255,255,255,0.7); font-size: 14px; line-height: 1.55; }
.modal-side .modal-checks { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.modal-side .modal-checks .c { display: flex; gap: 10px; font-size: 13px; color: rgba(255,255,255,0.85); }
.modal-side .modal-checks svg { color: var(--accent); flex: 0 0 auto; }
.modal-body { padding: 28px 32px; overflow-y: auto; min-height: 0; }
.modal-close { position: absolute; top: 16px; right: 16px; z-index: 5; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.95); display: grid; place-items: center; transition: background .2s ease; }
.modal-close:hover { background: #fff; }

/* Steps */
.booking-step { display: none; }
.booking-step.active { display: flex; flex-direction: column; gap: 14px; }
.booking-success { display: none; }

/* Progress dots */
.modal-progress { display: flex; gap: 4px; margin-bottom: 18px; }
.modal-progress .dot { width: 24px; height: 4px; border-radius: 2px; background: var(--grey-3); transition: background .3s ease; }
.modal-progress .dot.active { background: var(--ink); }

/* Top-of-step nav bar (always visible, no scroll needed) */
.bk-top-nav { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--line); }

/* Form rows */
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-size: 11px; color: var(--grey); text-transform: uppercase; letter-spacing: 0.1em; font-family: var(--mono); }
.form-row input, .form-row textarea {
  padding: 11px 14px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  font: inherit; font-size: 14px;
  color: var(--ink);
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
  width: 100%;
}
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(2,20,39,0.08);
}
.form-row .form-error { font-size: 11px; color: oklch(50% 0.18 25); font-family: var(--mono); }

/* Service checkboxes */
.choice-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 6px; }
.choice { padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; cursor: pointer; font-size: 13px; display: flex; align-items: center; gap: 9px; transition: border-color .2s ease, background .2s ease; user-select: none; }
.choice:hover { border-color: var(--ink); }
.choice.active { border-color: var(--ink); background: rgba(2,20,39,0.04); }
.choice .check { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; flex-shrink: 0; transition: border-color .2s, background .2s; }
.choice.active .check { border-color: var(--ink); background: var(--ink); }
.choice.active .check::after { content: ""; width: 5px; height: 5px; background: #fff; border-radius: 50%; }

/* Actions row */
.modal-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.modal-skip { background: none; border: 0; color: var(--grey); font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; padding: 6px 0; align-self: center; transition: color .2s; }
.modal-skip:hover { color: var(--ink); }

/* Calendar */
.cal-nav { display: flex; justify-content: space-between; align-items: center; }
.cal-nav .cal-label { font-weight: 600; font-size: 15px; }
.cal-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 3px; margin-top: 6px; }
.cal-grid .head { font-size: 10px; color: var(--grey); text-align: center; padding: 4px 0; font-family: var(--mono); }
.cal-grid .day { text-align: center; padding: 7px 0; border-radius: 6px; font-size: 13px; cursor: pointer; transition: background .2s ease, color .2s ease; border: 1px solid transparent; }
.cal-grid .day:hover:not(.disabled) { background: var(--grey-4); }
.cal-grid .day.disabled { color: var(--grey-2); cursor: not-allowed; }
.cal-grid .day.active { background: var(--ink); color: #fff; }
.times { display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; margin-top: 10px; }
.time-slot { padding: 8px 4px; text-align: center; font-size: 12px; border: 1px solid var(--line-2); border-radius: 8px; cursor: pointer; font-family: var(--mono); transition: border-color .2s ease, background .2s ease, color .2s ease; }
.time-slot:hover { border-color: var(--ink); }
.time-slot.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.tz-note { font-size: 11px; font-family: var(--mono); color: var(--grey); text-align: center; letter-spacing: 0.06em; text-transform: uppercase; margin-top: 6px; }

/* Success state */
.success { text-align: center; padding: 32px 16px; }
.success .check-circle { width: 72px; height: 72px; border-radius: 50%; background: oklch(94% 0.06 150); margin: 0 auto 24px; display: grid; place-items: center; color: oklch(50% 0.15 150); }
.success h3 { font-size: 28px; margin-bottom: 12px; }
.success p { color: var(--grey); line-height: 1.6; }

/* Contact modal */
.contact-modal {
  position: relative;
  background: #fff;
  border-radius: 22px;
  width: min(560px, calc(100vw - 32px));
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 32px 80px -20px rgba(2,20,39,0.30), 0 12px 32px -8px rgba(2,20,39,0.10);
  border: 1px solid var(--line);
  transform: translateY(20px);
  opacity: 0;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .35s ease;
}
.modal-backdrop.contact-backdrop.open .contact-modal { transform: translateY(0); opacity: 1; }
.contact-body { padding: 44px 44px 40px; display: flex; flex-direction: column; gap: 18px; }
.contact-title { font-size: clamp(28px, 3.4vw, 38px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; margin-top: 4px; }
.contact-sub { color: var(--grey); font-size: 16px; line-height: 1.55; max-width: 46ch; margin-bottom: 6px; }
.contact-actions {
  display: flex; align-items: center; justify-content: flex-end; gap: 16px;
  margin-top: 8px; flex-wrap: wrap;
}
.contact-mailto {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--grey);
  border-bottom: 1px solid transparent; padding-bottom: 2px;
  transition: color .2s, border-color .2s;
}
.contact-mailto:hover { color: var(--ink); border-bottom-color: var(--ink); }
.contact-success { padding: 56px 44px; text-align: center; }
@media (max-width: 800px) {
  /* Edge-to-edge sheet on phone — same treatment as the booking modal so
     the contact form has full viewport height and a single scroll surface. */
  .contact-modal {
    width: 100%;
    max-width: 100%;
    height: 100vh; height: 100dvh;
    max-height: 100vh; max-height: 100dvh;
    min-height: 100vh; min-height: 100dvh;
    border-radius: 0;
    border: 0;
    transform: none;
  }
  .contact-body { padding: 56px 18px 24px; }
  .contact-success { padding: 56px 18px 24px; }
  .contact-actions { flex-direction: column-reverse; align-items: stretch; }
  .contact-actions .btn { width: 100%; justify-content: center; }
  .contact-mailto { text-align: center; }
}

/* Breadcrumb */
.breadcrumb {
  font-family: var(--mono); font-size: 12px;
  color: var(--grey); letter-spacing: 0.1em; text-transform: uppercase;
  display: flex; gap: 8px; margin-bottom: 28px; flex-wrap: wrap;
}
.breadcrumb a { color: var(--grey); transition: color .2s ease; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb .sep { color: var(--grey-2); }

/* 404 page */
.error-404 {
  min-height: 60vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: clamp(120px, 16vw, 200px) 0 clamp(80px, 10vw, 120px);
}
.error-404 .code { font-family: var(--mono); font-size: 13px; color: var(--grey); letter-spacing: 0.1em; margin-bottom: 24px; }
.error-404 h1 { font-size: clamp(40px, 6vw, 80px); margin-bottom: 20px; }
.error-404 p { color: var(--grey); font-size: 18px; margin-bottom: 36px; }

/* ── Build modal ─────────────────────────────────────────────────── */
.build-backdrop {
  overflow-y: auto;
  align-items: flex-start;
  padding: clamp(16px, 4vh, 48px) 16px;
}
.build-backdrop .modal {
  display: flex;
  flex-direction: column;
  grid-template-columns: none;
  width: 100%;
  max-width: 820px;
  height: auto;
  max-height: none;
  background: #faf7f0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: auto;
}

.build-modal .modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: background .2s ease;
}
.build-modal .modal-close:hover { background: rgba(255,255,255,0.18); }

/* Top bar — dark Prussian Blue */
.build-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--ink);
  color: #fff;
  padding: 18px 28px;
  gap: 16px;
}
.build-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.build-brand .logomark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background-color: rgba(255,255,255,0.06);
  background-size: 72%;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}
.build-brand .name {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.build-brand .name b {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.build-brand .name span {
  font-size: 9.5px;
  font-family: var(--mono);
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-top: 3px;
}
.build-strap {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
}
.build-strap .dot-sep { color: var(--accent); margin: 0 4px; }

/* Stepper tabs */
.build-stepper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.build-step-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--grey);
  border-right: 1px solid var(--line);
  transition: all .25s ease;
}
.build-step-tab:last-child { border-right: none; }
.build-step-tab .num {
  display: inline-flex;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: var(--grey-3);
  color: var(--grey);
  align-items: center;
  justify-content: center;
  font-weight: 600;
  flex-shrink: 0;
}
.build-step-tab.complete { color: var(--ink); }
.build-step-tab.complete .num {
  background: var(--accent-soft);
  color: var(--ink);
}
.build-step-tab.active {
  color: #fff;
  background: var(--ink);
}
.build-step-tab.active .num {
  background: var(--accent);
  color: var(--ink);
}

/* Body */
.build-body {
  padding: 36px clamp(20px, 4vw, 40px) 0;
  background: #faf7f0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}
.build-step { display: none; }
.build-step.active { display: block; }

.build-step-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 10px;
}
.build-step-title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 8px;
  line-height: 1.05;
}
.build-step-sub {
  color: var(--grey);
  font-size: 14.5px;
  line-height: 1.5;
  margin: 0 0 28px;
  max-width: 60ch;
}

.build-field-label {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 10px;
  font-weight: 500;
}
.build-field-label .req { color: var(--accent); }
.build-field-label .optional { color: var(--grey-2); font-weight: 400; }
.optional { color: var(--grey-2); font-weight: 400; }
.req { color: var(--accent); }

/* Choice card grids (Step 1) */
.build-card-grid {
  display: grid;
  gap: 12px;
}
.build-card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.build-card-grid-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) {
  .build-card-grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.build-card {
  border: 1.5px solid var(--line-2);
  background: #fff;
  border-radius: var(--radius);
  padding: 18px 16px;
  text-align: left;
  cursor: pointer;
  transition: all .2s ease;
  font-family: var(--font);
  color: var(--ink);
}
.build-card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}
.build-card.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 1px var(--accent);
}
.build-card-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
  text-transform: uppercase;
}
.build-card-sub {
  font-size: 12px;
  color: var(--grey);
  font-family: var(--mono);
  letter-spacing: 0.04em;
}
.build-card-sm {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 16px 12px;
}

/* Checkbox grid (Step 2) */
.build-check-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.build-check {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1.5px solid var(--line-2);
  background: #fff;
  border-radius: var(--radius);
  padding: 14px 16px;
  text-align: left;
  cursor: pointer;
  font-size: 14.5px;
  font-family: var(--font);
  color: var(--ink);
  transition: all .2s ease;
}
.build-check:hover { border-color: var(--accent); }
.build-check .check-box {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1.5px solid var(--line-2);
  background: #fff;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all .2s ease;
}
.build-check.active {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.build-check.active .check-box {
  background: var(--accent);
  border-color: var(--accent);
}
.build-check.active .check-box::after {
  content: '';
  width: 10px;
  height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px);
  position: absolute;
}

/* Inputs */
.build-modal .form-row {
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.build-modal input[type="text"],
.build-modal input[type="email"],
.build-modal input[type="tel"],
.build-modal textarea,
.build-modal .build-select {
  font-family: var(--font);
  font-size: 16px;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--line-2);
  padding: 10px 0 8px;
  outline: none;
  transition: border-color .2s ease;
  border-radius: 0;
}
.build-modal input:focus,
.build-modal textarea:focus,
.build-modal .build-select:focus {
  border-bottom-color: var(--accent);
}
.build-modal textarea {
  resize: vertical;
  min-height: 90px;
  padding-top: 12px;
}
.build-modal input::placeholder,
.build-modal textarea::placeholder {
  color: var(--grey-2);
}

.build-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 28px;
}
.build-col-span { grid-column: 1 / -1; }

/* Calendar (step 4) */
.build-cal-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  align-items: start;
}
.build-cal-side .cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.build-cal-side .cal-label {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--ink);
  text-transform: uppercase;
  font-weight: 600;
}
.bd-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.bd-cal-grid .head {
  text-align: center;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--grey);
  letter-spacing: 0.1em;
  padding: 6px 0;
  text-transform: uppercase;
}
.bd-cal-grid .day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--ink);
  border-radius: 8px;
  cursor: pointer;
  transition: all .15s ease;
  border: 1px solid transparent;
}
.bd-cal-grid .day:not(.disabled):hover {
  background: #fff;
  border-color: var(--accent);
}
.bd-cal-grid .day.disabled {
  color: var(--grey-2);
  cursor: not-allowed;
  opacity: 0.5;
}
.bd-cal-grid .day.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.bd-cal-grid .cal-empty { aspect-ratio: 1; }

.build-time-side {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 16px;
}
.build-time-row {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}
.build-select {
  flex: 1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%23021427' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 18px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.build-tz-note {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--grey);
  letter-spacing: 0.04em;
  margin: 14px 0 0;
}
.build-slot-preview {
  margin-top: 14px;
  padding: 12px;
  border-radius: 8px;
  background: var(--accent-soft);
  font-size: 13px;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.4;
  min-height: 22px;
  display: none;
}
.build-slot-preview.filled { display: block; }
.build-step .modal-skip {
  display: block;
  margin: 20px auto 0;
  text-align: center;
}

/* Success */
.build-success {
  text-align: center;
  padding: 60px 20px;
}
.build-success .check-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.build-success h3 {
  font-size: 28px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.build-success p {
  color: var(--grey);
  font-size: 15px;
  max-width: 50ch;
  margin: 0 auto 14px;
  line-height: 1.55;
}

/* Footer nav */
.build-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 36px -28px 0;
  margin: 36px calc(clamp(20px, 4vw, 40px) * -1) 0;
  padding: 18px clamp(20px, 4vw, 40px);
  background: #fff;
  border-top: 1px solid var(--line);
  gap: 12px;
}
.build-back, .build-cancel {
  background: none;
  border: none;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--grey);
  cursor: pointer;
  padding: 8px 4px;
  text-transform: uppercase;
}
.build-back:hover, .build-cancel:hover { color: var(--ink); }
.build-continue {
  font-family: var(--mono) !important;
  font-size: 12px !important;
  letter-spacing: 0.12em !important;
  padding: 12px 22px !important;
}

/* Mobile */
@media (max-width: 720px) {
  .build-modal { border-radius: var(--radius); margin-top: 16px; }
  .build-topbar { flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px 18px; }
  .build-strap { font-size: 9.5px; }
  .build-stepper { grid-template-columns: repeat(4, 1fr); }
  .build-step-tab { padding: 10px 6px; gap: 4px; flex-direction: column; align-items: center; text-align: center; }
  .build-step-tab .lbl { font-size: 9px; letter-spacing: 0.04em; }
  .build-step-tab .num { width: 20px; height: 20px; font-size: 11px; }
  .build-body { padding: 24px 18px 0; }
  .build-step-title { font-size: 22px; }
  .build-card-grid-3 { grid-template-columns: 1fr; }
  .build-2col { grid-template-columns: 1fr; gap: 0; }
  .build-cal-layout { grid-template-columns: 1fr; gap: 18px; }
  .build-check-grid { grid-template-columns: 1fr; }
  .build-footer { margin: 24px -18px 0; padding: 14px 18px; }
}

/* ── Featured Insights (pinned blog posts) ──────────────────────── */
.featured-insights {
  margin: 32px 0 56px;
  padding: 28px;
  background: rgba(2, 20, 39, 0.03);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.featured-insights-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.featured-insights-hint {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey-2);
}
.featured-insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.featured-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md, 12px);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px -16px rgba(2, 20, 39, 0.18);
  border-color: var(--line-2);
}
.featured-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}
.featured-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.featured-card-media .placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}
.featured-pin {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--ink);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}
.featured-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 20px 22px;
}
.featured-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--grey-2);
}
.featured-card-meta .dot { color: var(--grey-2); }
.featured-card-body h3 {
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
  color: var(--ink);
}
.featured-card-excerpt {
  font-size: 14px;
  line-height: 1.55;
  color: var(--grey-1, #4a4a4a);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 900px) {
  .featured-insights { padding: 20px; }
  .featured-insights-grid { grid-template-columns: 1fr; }
}

/* ── Website pricing tiers ───────────────────────────────────────── */
.pricing-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: fit-content;
  margin: 0 auto 28px;
  padding: 10px 18px;
  background: rgba(2, 20, 39, 0.04);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}
.pricing-banner-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.04);
  animation: pricing-banner-pulse 2.4s ease-in-out infinite;
}
@keyframes pricing-banner-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.45; }
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 28px 28px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px -16px rgba(2,20,39,.18);
  border-color: var(--line-2);
}
.pricing-card-featured {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  transform: translateY(-14px);
  box-shadow: 0 26px 52px -18px rgba(2,20,39,.4);
}
.pricing-card-featured:hover { transform: translateY(-18px); }
.pricing-card-featured .pricing-name,
.pricing-card-featured .pricing-tagline,
.pricing-card-featured .pricing-amount .amount,
.pricing-card-featured .pricing-item span:not(.strike) { color: #fff; }
.pricing-card-featured .pricing-audience,
.pricing-card-featured .pricing-from,
.pricing-card-featured .pricing-note,
.pricing-card-featured .pricing-amount .currency { color: var(--grey-2); }
.pricing-card-featured .pricing-divider { background: rgba(255,255,255,.12); }
.pricing-card-featured .pricing-item .check { color: var(--accent); }
.pricing-card-featured .pricing-item-excluded .strike { color: rgba(255,255,255,.4); }

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 4px 12px -4px rgba(0,0,0,.2);
}

.pricing-head { margin-bottom: 14px; }
.pricing-name {
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0 0 8px;
  text-transform: uppercase;
}
.pricing-tagline {
  font-size: 14px;
  font-weight: 500;
  margin: 0 0 10px;
  color: var(--ink);
  line-height: 1.4;
}
.pricing-audience {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
  margin: 0;
  line-height: 1.5;
}

.pricing-divider {
  height: 1px;
  background: var(--line);
  margin: 6px 0 22px;
}

.pricing-price { margin-bottom: 22px; }
.pricing-from {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
}
.pricing-amount {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 6px 0 6px;
}
.pricing-amount .amount {
  font-size: clamp(32px, 3.4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink);
  line-height: 1;
}
.pricing-amount .currency {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--grey);
  letter-spacing: 0.06em;
}
.pricing-note {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--grey);
  letter-spacing: 0.04em;
}

.pricing-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}
.pricing-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.5;
}
.pricing-item .check {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--accent);
}
.pricing-item-excluded { padding-left: 24px; }
.pricing-item-excluded .strike {
  text-decoration: line-through;
  color: var(--grey-2);
}

.pricing-cta {
  width: 100%;
  justify-content: center;
  margin-top: auto;
}
.pricing-card-featured .pricing-cta {
  background: #fff;
  color: var(--ink);
}
.pricing-card-featured .pricing-cta:hover {
  background: var(--grey-4);
  transform: translateY(-1px);
}

/* Pricing section header — slightly tighter than .sec-head defaults */
.section.pricing { background: var(--grey-4); }
.section.pricing .pricing-foot {
  margin-top: 28px;
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--grey);
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 18px;
  }
  .pricing-card-featured {
    transform: none;
  }
  .pricing-card-featured:hover { transform: translateY(-4px); }
  .pricing-card { padding: 32px 22px 24px; }
}
