/* ============================================================
   ARCHISCALING LLC | DESIGN SYSTEM v2
   Palette: Architcept brand tokens (warm dark + brass)
     canvas #0E0E12 / surface #16161D / ink #F4F2EC / muted #9C9CA8
     accent brass #C6A15B / soft gold #E4C98A / line #26262F
   Type: Fraunces (display serif) + Inter (body)
   Motif: architectural blueprint grid
   ============================================================ */

:root {
  --canvas:       #0E0E12;
  --surface:      #16161D;
  --surface-2:    #1C1C25;
  --ink:          #F4F2EC;
  --muted:        #9C9CA8;
  --brand:        #C6A15B;   /* brass accent */
  --brand-dark:   #E4C98A;   /* soft gold, text accents on dark */
  --brand-soft:   rgba(198, 161, 91, 0.12);
  --line:         #26262F;

  /* light-theme tokens (used by the no-grid sections) */
  --lt-canvas:    #FFFFFF;
  --lt-surface-2: #F7F5EF;   /* warm off-white card fill */
  --lt-ink:       #1A1813;
  --lt-muted:     #6B6A72;
  --lt-line:      #E4E1D8;

  /* legacy aliases (kept for inline styles) */
  --ink-soft:     var(--muted);
  --paper:        var(--surface);
  --white:        var(--surface-2);
  --dark-bg:      #0B0B0F;
  --dark-line:    var(--line);

  --radius:       16px;
  --font-display: "Bodoni MT", "Bodoni Moda", "Fraunces", Georgia, serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--brand); color: #14120A; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Layout helpers ---------- */
.container { width: min(1140px, 92%); margin: 0 auto; }
.section { padding: 88px 0; }
.section--paper { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--dark { background: var(--canvas); color: var(--ink); }

/* Blueprint grid motif (faint graph paper) */
.blueprint { position: relative; overflow: hidden; }
.blueprint::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(198,161,91,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(198,161,91,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

/* ---------- Typography ---------- */
h1, h2, h3, .display { font-family: var(--font-display); line-height: 1.08; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.7rem, 5.5vw, 4.3rem); font-weight: 600; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 600; margin-bottom: 18px; }
h3 { font-size: 1.3rem; font-weight: 600; line-height: 1.25; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--brand-dark); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--brand); }

.lede { font-size: 1rem; color: var(--muted); max-width: 60ch; line-height: 1.7; }
.muted { color: var(--muted); }

/* inline text links inside body copy (e.g. the Architcept mention) */
.link--inline { font-weight: 600; color: var(--brand-dark); transition: filter 0.15s ease; }
.link--inline:hover { filter: brightness(1.12); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
  padding: 13px 28px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: all 0.2s ease; letter-spacing: 0.01em;
}
.btn--primary { background: var(--brand); color: #14120A; }
.btn--primary:hover { background: var(--brand-dark); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(198,161,91,0.25); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand-dark); transform: translateY(-1px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(14, 14, 18, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.nav__logo img { height: 38px; width: auto; }
.nav__links { display: flex; gap: 34px; list-style: none; align-items: center; }
.nav__links a {
  font-family: var(--font-body); font-size: 0.92rem; font-weight: 500;
  color: var(--muted); transition: color 0.15s ease; position: relative; padding: 6px 0;
}
.nav__links a:hover, .nav__links a.active { color: var(--ink); }
/* active underline for text links only (never under the pill CTA) */
.nav__links a.active:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--brand);
}
.nav__cta { margin-left: 8px; padding: 10px 22px !important; }
/* keep the CTA label dark on its brass fill (beats .nav__links a + hover/active) */
.nav__links a.nav__cta,
.nav__links a.nav__cta:hover,
.nav__links a.nav__cta.active { color: #14120A; }

/* Mobile nav */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; z-index: 110; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: all 0.25s ease; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav__links {
    position: fixed; inset: 0; background: rgba(14, 14, 18, 0.98);
    flex-direction: column; justify-content: center; gap: 30px;
    transform: translateX(100%); visibility: hidden;
    transition: transform 0.3s ease, visibility 0s linear 0.3s;
  }
  .nav__links.open { transform: translateX(0); visibility: visible; transition: transform 0.3s ease; }
  .nav__links a { font-size: 1.3rem; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--dark-bg); color: var(--ink);
  padding: 120px 0 110px; position: relative; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(198,161,91,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(198,161,91,0.05) 1px, transparent 1px);
  background-size: 56px 56px;
}
.hero::after {
  content: ""; position: absolute; top: -200px; right: -200px; width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(198,161,91,0.13) 0%, transparent 65%);
}
.hero .container { position: relative; z-index: 2; }

/* two-column hero: copy left, animated drafting sheet right */
.hero__inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { max-width: 18ch; margin: 0 0 24px; text-align: left; }
.hero h1 em { font-style: normal; color: var(--brand-dark); }
.hero p.lede { color: rgba(244,242,236,0.72); margin: 0 0 38px; max-width: 52ch; text-align: left; }
.hero__actions { display: flex; justify-content: flex-start; gap: 16px; flex-wrap: wrap; }

/* one-shot entrance for the copy column */
.hero__copy > * { animation: hero-rise 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) both; }
.hero__copy > *:nth-child(1) { animation-delay: 0.05s; }
.hero__copy > *:nth-child(2) { animation-delay: 0.15s; }
.hero__copy > *:nth-child(3) { animation-delay: 0.25s; }
.hero__copy > *:nth-child(4) { animation-delay: 0.35s; }
@keyframes hero-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Hero drafting sheet (animated SVG, pure CSS loop) ---------- */
.hero__visual { position: relative; animation: hero-fadein 0.9s ease 0.45s both, hero-float 7s ease-in-out 1.6s infinite; }
@keyframes hero-fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes hero-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.hero__visual::before {
  content: ""; position: absolute; top: 50%; left: 50%; width: 130%; height: 130%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(198,161,91,0.10) 0%, transparent 62%);
  animation: glow-pulse 6s ease-in-out infinite;
}
@keyframes glow-pulse { 0%, 100% { opacity: 0.7; } 50% { opacity: 1; } }
.hero__visual svg { position: relative; width: 100%; height: auto; display: block; }
.hero__visual text { font-family: var(--font-body); }

.sv-frame { stroke: var(--line); stroke-width: 1; }
.sv-frame--in { stroke: rgba(198,161,91,0.35); }
.sv-tag { fill: rgba(244,242,236,0.45); font-size: 9px; letter-spacing: 0.22em; }
.sv-dim { fill: var(--muted); font-size: 10px; letter-spacing: 0.06em; }
.sv-room { fill: rgba(244,242,236,0.38); font-size: 9px; letter-spacing: 0.2em; }
.sv-north { fill: var(--muted); font-size: 8px; letter-spacing: 0.1em; }

.hp-wall-tr, .hp-wall-br, .hp-wall-bl, .hp-wall-l { stroke: var(--brand-dark); stroke-width: 2.2; stroke-linejoin: round; }
.hp-int-v, .hp-int-h { stroke: var(--brand); stroke-width: 1.6; opacity: 0.75; }
.hp-doors path, .hp-windows path { stroke: var(--brand); stroke-width: 1.5; }
.hp-dimline { stroke: var(--muted); stroke-width: 1; }
.hp-dimtext path { stroke: var(--muted); stroke-width: 1; }
.hp-rooms circle { stroke: var(--brand); stroke-width: 1.2; }
.hp-rooms path { fill: var(--brand-dark); }

.hp-sheet rect { stroke: rgba(198,161,91,0.5); stroke-width: 1; }
.hp-sdraw-1, .hp-sdraw-2, .hp-sdraw-3 { stroke: var(--brand); stroke-width: 1.2; }
.sv-sheetlabel { fill: var(--brand-dark); font-size: 10px; font-weight: 600; letter-spacing: 0.08em; }

.hp-stamp rect { stroke: var(--brand-dark); stroke-width: 1.4; fill: rgba(198,161,91,0.08); }
.hp-stamp text { fill: var(--brand-dark); font-size: 9px; font-weight: 700; letter-spacing: 0.08em; }
.hp-stamp { transform-box: fill-box; transform-origin: center; }

/* drafting pen crosshair (only shown where offset-path is supported) */
.hp-pen { display: none; }
.hp-pen-glow { fill: rgba(198,161,91,0.25); }
.hp-pen-dot { fill: var(--brand-dark); }
.hp-pen path { stroke: var(--brand); stroke-width: 1; }
@supports (offset-path: path("M0 0 H1")) {
  .hp-pen {
    display: block;
    offset-path: path("M100 84 L420 84 L420 272 L236 272 M100 272 L184 272 M100 84 L100 272 M260 150 L260 272 M260 180 L274 180 M326 180 L420 180");
    offset-rotate: 0deg;
    animation: kf-pen 8s linear infinite;
  }
}

/* draw-on strokes (pathLength=1 normalizes every path to a 0..1 dash) */
.hp-draw { stroke-dasharray: 1; }
.hp-sheet { transform-box: fill-box; transform-origin: center; }

/* one shared 8s cycle. The pen crosshair leads each wall stroke (its
   offset-distance keyframes are synced to the per-segment draw windows),
   details fade in, then the set scales into three stamped sheets.
   Hold, fade out, loop. */
.hp-wall-tr    { animation: kf-wall-tr 8s linear infinite; }
.hp-wall-br    { animation: kf-wall-br 8s linear infinite; }
.hp-wall-bl    { animation: kf-wall-bl 8s linear infinite; }
.hp-wall-l     { animation: kf-wall-l 8s linear infinite; }
.hp-int-v      { animation: kf-int-v 8s linear infinite; }
.hp-int-h      { animation: kf-int-h 8s linear infinite; }
.hp-dimline    { animation: kf-dimline 8s linear infinite; }
.hp-doors      { animation: kf-doors 8s ease infinite; }
.hp-windows    { animation: kf-windows 8s ease infinite; }
.hp-rooms      { animation: kf-rooms 8s ease infinite; }
.hp-dimtext    { animation: kf-dimtext 8s ease infinite; }
.hp-sheet-1    { animation: kf-sheet-1 8s ease infinite; }
.hp-sdraw-1    { animation: kf-sdraw-1 8s linear infinite; }
.hp-stamp-1    { animation: kf-stamp-1 8s ease infinite; }
.hp-sheet-2    { animation: kf-sheet-2 8s ease infinite; }
.hp-sdraw-2    { animation: kf-sdraw-2 8s linear infinite; }
.hp-stamp-2    { animation: kf-stamp-2 8s ease infinite; }
.hp-sheet-3    { animation: kf-sheet-3 8s ease infinite; }
.hp-sdraw-3    { animation: kf-sdraw-3 8s linear infinite; }
.hp-stamp-3    { animation: kf-stamp-3 8s ease infinite; }

@keyframes kf-wall-tr    { 0%, 4%  { stroke-dashoffset: 1; } 24% { stroke-dashoffset: 0; } 93% { opacity: 1; } 98%, 100% { opacity: 0; } }
@keyframes kf-wall-br    { 0%, 24% { stroke-dashoffset: 1; } 32% { stroke-dashoffset: 0; } 93% { opacity: 1; } 98%, 100% { opacity: 0; } }
@keyframes kf-wall-bl    { 0%, 32% { stroke-dashoffset: 1; } 40% { stroke-dashoffset: 0; } 93% { opacity: 1; } 98%, 100% { opacity: 0; } }
@keyframes kf-wall-l     { 0%, 40% { stroke-dashoffset: 1; } 48% { stroke-dashoffset: 0; } 93% { opacity: 1; } 98%, 100% { opacity: 0; } }
@keyframes kf-int-v      { 0%, 48%   { stroke-dashoffset: 1; } 54.4% { stroke-dashoffset: 0; } 93% { opacity: 1; } 98%, 100% { opacity: 0; } }
@keyframes kf-int-h      { 0%, 54.4% { stroke-dashoffset: 1; } 58%   { stroke-dashoffset: 0; } 93% { opacity: 1; } 98%, 100% { opacity: 0; } }
@keyframes kf-doors      { 0%, 58% { opacity: 0; } 66% { opacity: 1; } 93% { opacity: 1; } 98%, 100% { opacity: 0; } }
@keyframes kf-windows    { 0%, 60% { opacity: 0; } 68% { opacity: 1; } 93% { opacity: 1; } 98%, 100% { opacity: 0; } }
@keyframes kf-dimline    { 0%, 62% { stroke-dashoffset: 1; } 72% { stroke-dashoffset: 0; } 93% { opacity: 1; } 98%, 100% { opacity: 0; } }
@keyframes kf-rooms      { 0%, 64% { opacity: 0; } 72% { opacity: 1; } 93% { opacity: 1; } 98%, 100% { opacity: 0; } }
@keyframes kf-dimtext    { 0%, 68% { opacity: 0; } 74% { opacity: 1; } 93% { opacity: 1; } 98%, 100% { opacity: 0; } }

/* sheet frames fade in, their mini-drawings trace on, then the QC stamp slams down */
@keyframes kf-sheet-1    { 0%, 70% { opacity: 0; transform: translateY(8px) scale(0.96); } 73% { opacity: 1; transform: none; } 93% { opacity: 1; } 98%, 100% { opacity: 0; } }
@keyframes kf-sdraw-1    { 0%, 73% { stroke-dashoffset: 1; } 77% { stroke-dashoffset: 0; } 93% { opacity: 1; } 98%, 100% { opacity: 0; } }
@keyframes kf-stamp-1    { 0%, 77% { opacity: 0; transform: scale(1.8); } 79% { opacity: 1; transform: scale(0.94); } 80% { transform: scale(1); } 93% { opacity: 1; } 98%, 100% { opacity: 0; } }
@keyframes kf-sheet-2    { 0%, 74% { opacity: 0; transform: translateY(8px) scale(0.96); } 77% { opacity: 1; transform: none; } 93% { opacity: 1; } 98%, 100% { opacity: 0; } }
@keyframes kf-sdraw-2    { 0%, 77% { stroke-dashoffset: 1; } 81% { stroke-dashoffset: 0; } 93% { opacity: 1; } 98%, 100% { opacity: 0; } }
@keyframes kf-stamp-2    { 0%, 81% { opacity: 0; transform: scale(1.8); } 83% { opacity: 1; transform: scale(0.94); } 84% { transform: scale(1); } 93% { opacity: 1; } 98%, 100% { opacity: 0; } }
@keyframes kf-sheet-3    { 0%, 78% { opacity: 0; transform: translateY(8px) scale(0.96); } 81% { opacity: 1; transform: none; } 93% { opacity: 1; } 98%, 100% { opacity: 0; } }
@keyframes kf-sdraw-3    { 0%, 81% { stroke-dashoffset: 1; } 85% { stroke-dashoffset: 0; } 93% { opacity: 1; } 98%, 100% { opacity: 0; } }
@keyframes kf-stamp-3    { 0%, 85% { opacity: 0; transform: scale(1.8); } 87% { opacity: 1; transform: scale(0.94); } 88% { transform: scale(1); } 93% { opacity: 1; } 98%, 100% { opacity: 0; } }

/* pen crosshair travel, synced to the wall draw windows above
   (cumulative path lengths 508 / 692 / 776 / 964 / 1086 / 1100 / 1194) */
@keyframes kf-pen {
  0%, 4%    { offset-distance: 0%; opacity: 0; }
  5%        { opacity: 1; }
  24%       { offset-distance: 42.55%; }
  32%       { offset-distance: 57.96%; }
  40%       { offset-distance: 64.99%; }
  48%       { offset-distance: 80.74%; }
  54.4%     { offset-distance: 90.95%; }
  58%       { offset-distance: 100%; opacity: 1; }
  61%, 100% { offset-distance: 100%; opacity: 0; }
}

@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; gap: 44px; }
  .hero h1, .hero p.lede { text-align: center; margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .hero__visual { max-width: 480px; width: 100%; margin: 0 auto; }
}

/* ---------- Stats bar ---------- */
.stats { border-top: 1px solid var(--line); margin-top: 70px; padding-top: 40px; position: relative; z-index: 2; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.stat .stat__num { font-family: var(--font-display); font-size: 2.3rem; font-weight: 600; color: var(--brand-dark); line-height: 1; }
.stat .stat__label { font-size: 0.85rem; color: rgba(156,156,168,0.9); margin-top: 8px; letter-spacing: 0.04em; text-transform: uppercase; }

/* ---------- Cards / grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.card {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; transition: all 0.25s ease; position: relative;
}
.card:hover { transform: translateY(-3px); border-color: rgba(198,161,91,0.55); box-shadow: 0 14px 34px rgba(0,0,0,0.35); }

.card__icon {
  width: 46px; height: 46px; border-radius: 10px; margin-bottom: 20px;
  background: var(--brand-soft); display: flex; align-items: center; justify-content: center;
}
.card__icon svg { width: 24px; height: 24px; stroke: var(--brand); fill: none; stroke-width: 1.8; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.95rem; color: var(--muted); line-height: 1.65; }

/* ---------- Process steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 48px; }
.step { border-top: 1px solid var(--line); padding-top: 22px; position: relative; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: var(--brand);
  display: block; margin-bottom: 12px; letter-spacing: 0.08em;
}
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { font-size: 0.9rem; color: var(--muted); line-height: 1.6; }

/* ---------- Split section (image/text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split__media {
  border-radius: var(--radius); overflow: hidden; position: relative;
  background: var(--surface-2); min-height: 380px; border: 1px solid var(--line);
}
.split__media::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(198,161,91,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(198,161,91,0.07) 1px, transparent 1px);
  background-size: 40px 40px;
}
.split__media .media-mark {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; font-size: 5rem; color: rgba(198,161,91,0.3); letter-spacing: -0.04em;
}
/* real photo fills the frame; monogram stays behind as fallback if it fails to load */
.split__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }

/* ---------- Checklist ---------- */
.checklist { list-style: none; margin-top: 24px; }
.checklist li { padding: 10px 0 10px 34px; position: relative; border-bottom: 1px solid var(--line); font-size: 0.98rem; color: rgba(244,242,236,0.85); }
.checklist li::before {
  content: ""; position: absolute; left: 4px; top: 16px; width: 12px; height: 7px;
  border-left: 2.5px solid var(--brand); border-bottom: 2.5px solid var(--brand); transform: rotate(-45deg);
}

/* ---------- Pricing / engagement ---------- */
.engagement { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 48px; }
.engagement .card { padding: 40px 36px; }
.engagement .price { font-family: var(--font-display); font-size: 2.6rem; font-weight: 600; color: var(--brand-dark); margin: 14px 0 4px; line-height: 1; }
.engagement .price small { font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0.02em; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 70px 0; text-align: center; position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(198,161,91,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(198,161,91,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}
.cta-band .container { position: relative; z-index: 2; }
.cta-band h2 { margin-bottom: 14px; color: var(--ink); }
.cta-band p { max-width: 52ch; margin: 0 auto 30px; font-weight: 400; color: var(--muted); }

/* ---------- Founder block ---------- */
.founder { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; align-items: start; }
.founder__photo {
  border-radius: var(--radius); background: var(--surface-2); min-height: 340px; position: relative; overflow: hidden; border: 1px solid var(--line);
}
.founder__photo::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(198,161,91,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(198,161,91,0.07) 1px, transparent 1px);
  background-size: 36px 36px;
}
.founder__photo .initials {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; font-size: 4.5rem; color: rgba(198,161,91,0.35);
}
/* real portrait fills the frame; initials stay behind as fallback if it fails to load.
   object-position anchors at the top so the head is never cropped off */
.founder__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; z-index: 1; }

/* ---------- Careers ---------- */
.job-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; margin-top: 40px; background: var(--surface-2); }
.job-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.tag {
  display: inline-block; font-family: var(--font-body); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand-dark); margin-top: 12px; margin-right: 8px;
}

/* ---------- Contact form ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: start; }
.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-family: var(--font-body); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em; margin-bottom: 8px; color: rgba(244,242,236,0.75); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 13px 16px; border: 1px solid var(--line); border-radius: 8px;
  font-family: var(--font-body); font-size: 0.98rem; background: var(--canvas); color: var(--ink);
  transition: border-color 0.15s ease;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--brand); }
.form-field textarea { min-height: 130px; resize: vertical; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); color: rgba(244,242,236,0.55); padding: 64px 0 32px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 0.8fr 1fr 1.5fr; gap: 36px; margin-bottom: 48px; }
.site-footer h4 { font-family: var(--font-body); color: var(--ink); font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 10px; font-size: 0.92rem; }
.site-footer a:hover { color: var(--brand-dark); }
.footer-logo img { height: 34px; opacity: 0.95; margin-bottom: 16px; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 28px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.85rem; color: rgba(156,156,168,0.7); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--dark-bg); color: var(--ink); padding: 90px 0 70px; position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(198,161,91,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(198,161,91,0.05) 1px, transparent 1px);
  background-size: 56px 56px;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { max-width: 22ch; margin-bottom: 18px; }
.page-hero p.lede { color: rgba(244,242,236,0.7); }

/* ============================================================
   LIGHT THEME | applied to the no-grid sections only.
   Every grid section carries .blueprint, so scoping to
   .section:not(.blueprint) flips exactly the plain + paper
   sections to white while hero / page-hero / cta-band and all
   blueprint (grid) sections stay dark. No HTML edits needed.
   ============================================================ */
.section:not(.blueprint) { background: var(--lt-canvas); color: var(--lt-ink); border-color: var(--lt-line); }

/* headings + body copy on light */
.section:not(.blueprint) h1, .section:not(.blueprint) h2, .section:not(.blueprint) h3 { color: var(--lt-ink); }
.section:not(.blueprint) p, .section:not(.blueprint) li { color: var(--lt-muted); }
.section:not(.blueprint) strong { color: var(--lt-ink); font-weight: 600; }

/* eyebrow keeps the brass accent (reads on both themes) */
.section:not(.blueprint) .eyebrow { color: #8A6D33; }

/* inline text links on light -> darker brass for contrast */
.section:not(.blueprint) .link--inline { color: #8A6D33; }

/* cards + job cards -> warm off-white with hairline border */
.section:not(.blueprint) .card,
.section:not(.blueprint) .job-card { background: var(--lt-surface-2); border-color: var(--lt-line); }
.section:not(.blueprint) .card:hover { box-shadow: 0 14px 34px rgba(26,24,19,0.10); }
.section:not(.blueprint) .card p { color: var(--lt-muted); }

/* media / founder photo placeholders */
.section:not(.blueprint) .split__media,
.section:not(.blueprint) .founder__photo { background: var(--lt-surface-2); border-color: var(--lt-line); }

/* checklist rows */
.section:not(.blueprint) .checklist li { color: rgba(26,24,19,0.85); border-bottom-color: var(--lt-line); }

/* tags on light cards -> darker brass for contrast */
.section:not(.blueprint) .tag { background: rgba(138,109,51,0.10); color: #8A6D33; }

/* engagement price (soft gold reads too faint on white) */
.section:not(.blueprint) .engagement .price { color: #8A6D33; }
.section:not(.blueprint) .engagement .price small { color: var(--lt-muted); }

/* ghost button on light (dark hairline + dark text) */
.section:not(.blueprint) .btn--ghost { border-color: #D7D3C8; color: var(--lt-ink); background: transparent; }
.section:not(.blueprint) .btn--ghost:hover { border-color: var(--brand); color: #8A6D33; }

/* contact form fields on light */
.section:not(.blueprint) .form-field label { color: rgba(26,24,19,0.75); }
.section:not(.blueprint) .form-field input,
.section:not(.blueprint) .form-field select,
.section:not(.blueprint) .form-field textarea { background: #FFFFFF; border-color: var(--lt-line); color: var(--lt-ink); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-3, .steps { grid-template-columns: repeat(2, 1fr); }
  .split, .founder, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .grid-3, .grid-2, .steps, .engagement { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Spacing utilities (replace former inline styles) ---------- */
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-10 { margin-bottom: 10px; }
.mb-16 { margin-bottom: 16px; }
.mb-18 { margin-bottom: 18px; }
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }
.mb-30 { margin-bottom: 30px; }
.mb-36 { margin-bottom: 36px; }
.mb-48 { margin-bottom: 48px; }

/* ---------- Component refinements (replace former inline styles) ---------- */
.footer-logo p { font-size: 0.9rem; max-width: 34ch; }
.center-cta { margin-top: 48px; text-align: center; }

.contact-intro h2 { font-size: 1.7rem; }
.card--sm { padding: 28px; }
.card--sm h3 { font-size: 1.05rem; margin-bottom: 8px; }
.card--sm p { font-size: 0.92rem; }

.quote-form { padding: 40px 36px; }
.quote-form > h3 { margin-bottom: 24px; font-size: 1.3rem; }
.form-grid { gap: 20px; }
.btn--block { width: 100%; justify-content: center; }
.form-note { font-size: 0.8rem; margin-top: 14px; text-align: center; }

.card--featured { border-color: var(--brand); }

.job-card__head h3 { font-size: 1.5rem; }
.job-section-title { font-size: 1rem; margin-bottom: 12px; }

/* <picture> wrappers for the webp photos (img rules above still apply) */
.split__media picture, .founder__photo picture { position: absolute; inset: 0; z-index: 1; }
.split__media picture img, .founder__photo picture img { width: 100%; height: 100%; object-fit: cover; }
.founder__photo picture img { object-position: top center; }

/* body scroll lock while the mobile menu is open */
body.no-scroll { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__copy > *, .hero__visual, .hero__visual::before { animation: none !important; opacity: 1 !important; transform: none !important; }
  /* freeze the drafting sheet in its finished state instead of looping */
  .hp-draw, .hp-doors, .hp-windows, .hp-rooms, .hp-dimtext,
  .hp-sheet-1, .hp-sdraw-1, .hp-stamp-1,
  .hp-sheet-2, .hp-sdraw-2, .hp-stamp-2,
  .hp-sheet-3, .hp-sdraw-3, .hp-stamp-3 {
    animation: none !important; opacity: 1 !important; stroke-dashoffset: 0 !important; transform: none !important;
  }
  .hp-pen { display: none !important; }
}

/* Honeypot anti-spam field on the quote form. Hidden from humans, visible to bots. */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

/* Inline validation errors on the quote form (toggled by js/main.js).
   The .section-prefixed variants override the paper-section base styles above. */
.field-error { display: none; color: #D32F2F; font-size: 0.85rem; font-weight: 600; margin: 6px 0 0; }
.form-field.has-error .field-error,
.section:not(.blueprint) .card .form-field.has-error p.field-error { display: block; color: #D32F2F; }
.form-field.has-error input, .form-field.has-error textarea, .form-field.has-error select,
.section:not(.blueprint) .form-field.has-error input,
.section:not(.blueprint) .form-field.has-error textarea,
.section:not(.blueprint) .form-field.has-error select { border-color: #D32F2F; background: #FDECEA; box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.18); }
.form-field.has-error input:focus, .form-field.has-error textarea:focus, .form-field.has-error select:focus { border-color: #D32F2F; }
