:root {
  /* Direction A: warm paper, charcoal, sandstone. Archivo headings, Inter body, Instrument Serif for captions only. */
  --paper: #FBF8F3;
  --sand: #EFE6D8;
  --ink: #1C1F1D;
  --body-ink: #45433F;
  --muted: #5C5A55;
  --rule: #E4DACB;
  --accent: #7A4F0E;
  --night: #141614;
  --head: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --caption: "Instrument Serif", Georgia, serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.65 var(--text); }
img { max-width: 100%; display: block; }
a { color: var(--accent); }
a:hover { color: #4E3209; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--head); font-weight: 800; margin: 0; letter-spacing: -0.015em; line-height: 1.08; text-wrap: balance; color: var(--ink); }
h1 { font-size: clamp(38px, 5.4vw, 60px); letter-spacing: -0.02em; line-height: 1.02; }
h2 { font-size: clamp(30px, 3.8vw, 44px); }
h3 { font-size: 20px; font-weight: 700; line-height: 1.25; }
p { margin: 0; color: var(--body-ink); max-width: 64ch; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.big { font-size: 19px; }
figcaption { font: italic 18px/1.4 var(--caption); color: var(--muted); }

/* header */
.site-head { border-bottom: 1px solid var(--rule); background: var(--paper); }
.site-head .wrap { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand .mark { width: 40px; height: 40px; background: var(--ink); color: var(--sand); display: grid; place-items: center; font: 800 14px/1 var(--head); letter-spacing: 0.04em; border-radius: 4px; }
.brand b { font: 800 20px/1.1 var(--head); display: block; letter-spacing: -0.01em; }
.brand small { font-size: 12px; color: var(--muted); }
.site-head nav { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; font-size: 15px; }
.site-head nav a { color: var(--ink); text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.site-head nav a:hover { border-bottom-color: var(--rule); color: var(--ink); }
.site-head nav a[aria-current="page"] { border-bottom-color: var(--accent); }
.site-head nav a.btn { border: 0; padding: 12px 20px; }
@media (max-width: 760px) { .site-head nav { gap: 14px; font-size: 14px; } .site-head nav a.btn { display: none; } }

/* buttons */
.btn { display: inline-block; background: var(--ink); color: var(--paper) !important; text-decoration: none; padding: 16px 26px; border-radius: 4px; font-weight: 600; font-size: 16px; border: 0; font-family: var(--text); cursor: pointer; }
.btn:hover { background: #33372F; }
.btn-line { display: inline-block; border: 1px solid var(--ink); color: var(--ink); text-decoration: none; padding: 15px 25px; border-radius: 4px; font-weight: 600; font-size: 16px; }
.btn-line:hover { background: var(--sand); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* sections */
.sec { padding: 96px 0; }
.sec.tight { padding: 72px 0; }
.sec.sand { background: var(--sand); }
.page-intro { padding: 72px 0 48px; border-bottom: 1px solid var(--rule); }
.page-intro .stack { max-width: 760px; }

/* home hero */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; padding: 80px 0 72px; }
.hero-pics { display: grid; gap: 12px; }
.hero-pics > img { width: 100%; height: 420px; object-fit: cover; border-radius: 6px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pair div { position: relative; }
.pair img { width: 100%; height: 140px; object-fit: cover; border-radius: 6px; }
.chip { position: absolute; left: 10px; top: 10px; font-size: 12px; font-weight: 600; padding: 4px 8px; border-radius: 3px; background: var(--paper); color: var(--ink); }
.chip.dark { background: var(--ink); color: var(--paper); }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; padding-top: 48px; } .hero-pics > img { height: 300px; } }

/* fact band */
.band { background: var(--ink); color: var(--sand); }
.band .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-top: 36px; padding-bottom: 36px; }
.band b { display: block; font: 800 30px/1.1 var(--head); color: var(--paper); }
.band span { font-size: 14px; color: #CFC6B8; }
@media (max-width: 760px) { .band .wrap { grid-template-columns: 1fr 1fr; } }

/* split layouts */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.split.center { align-items: center; }
.split.wide-left { grid-template-columns: 1.3fr 1fr; }
@media (max-width: 900px) { .split, .split.wide-left { grid-template-columns: 1fr; gap: 36px; } }

/* steps as a numbered list, not cards */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; border-top: 1px solid var(--rule); }
.steps li { counter-increment: s; display: grid; grid-template-columns: 80px 1fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--rule); }
.steps li::before { content: "0" counter(s); font: 800 28px/1 var(--head); color: var(--accent); }
.steps li .stack { gap: 8px; }
@media (max-width: 560px) { .steps li { grid-template-columns: 1fr; gap: 8px; } }

/* deal sheet */
.sheet { background: #fff; border: 1px solid var(--rule); border-radius: 6px; padding: 32px; display: flex; flex-direction: column; gap: 4px; font-variant-numeric: tabular-nums; }
.sheet .note { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.sheet .line { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid #EEE6DA; font-size: 17px; }
.sheet .line b { font-weight: 600; white-space: nowrap; }
.sheet .line.total { border-bottom: 0; font: 800 19px/1.3 var(--head); }
.shares { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.shares div { border-radius: 4px; padding: 16px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.shares div:first-child { background: var(--ink); color: var(--sand); }
.shares div:last-child { background: var(--sand); }
.shares b { font: 800 26px/1.1 var(--head); }

/* project feature */
.feature-img { width: 100%; height: 460px; object-fit: cover; border-radius: 6px; }
.ba { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 6px; background: var(--rule); --pos: 50%; user-select: none; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba .after { clip-path: inset(0 0 0 var(--pos)); }
.ba .line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1px; background: var(--paper); pointer-events: none; }
.ba .knob { position: absolute; top: 50%; left: var(--pos); transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%; background: var(--paper); border: 1px solid var(--rule); display: grid; place-items: center; pointer-events: none; }
.ba .knob svg { width: 20px; height: 20px; }
.ba input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba .chip.r { left: auto; right: 10px; }
.ba:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; }

.case { display: grid; gap: 28px; padding: 56px 0; border-top: 1px solid var(--rule); }
.case:first-of-type { border-top: 0; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 15px; color: var(--muted); }
.facts strong { color: var(--ink); font-weight: 600; }

.mosaic { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.mosaic figure { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.mosaic img { width: 100%; height: 280px; object-fit: cover; border-radius: 6px; }
.m4 { grid-column: span 4; } .m5 { grid-column: span 5; } .m7 { grid-column: span 7; } .m6 { grid-column: span 6; } .m8 { grid-column: span 8; }
.mosaic .tall img { height: 400px; }
@media (max-width: 760px) { .mosaic { grid-template-columns: 1fr; } .mosaic figure { grid-column: auto; } .mosaic img, .mosaic .tall img { height: 240px; } }

.aside-note { border-left: 3px solid var(--accent); padding: 4px 0 4px 18px; font-size: 15px; color: var(--muted); max-width: 70ch; }
.todo { background: #F6E7C8; color: var(--ink); padding: 1px 5px; border-radius: 3px; font-size: 0.92em; }

/* faq */
.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); padding: 20px 0; }
.faq summary { cursor: pointer; font: 700 19px/1.35 var(--head); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 500; color: var(--accent); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 12px; }

/* people */
.person { display: grid; grid-template-columns: 160px 1fr; gap: 28px; padding: 36px 0; border-top: 1px solid var(--rule); }
.person .ph { width: 160px; height: 200px; border-radius: 6px; background: var(--sand); display: grid; place-items: center; font: 800 44px/1 var(--head); color: #CBBBA2; }
@media (max-width: 560px) { .person { grid-template-columns: 1fr; } }

/* contact */
form { background: #fff; border: 1px solid var(--rule); border-radius: 6px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
input, select, textarea { min-height: 46px; border: 1px solid #CFC2AE; border-radius: 4px; padding: 10px 12px; font: 400 15px/1.4 var(--text); background: #fff; color: var(--ink); width: 100%; }
textarea { min-height: 120px; resize: vertical; }
.form-msg { font-size: 14px; color: var(--muted); }
.direct dl { margin: 0; display: grid; gap: 18px; }
.direct dt { font-size: 13px; color: var(--muted); }
.direct dd { margin: 2px 0 0; font: 700 20px/1.3 var(--head); }

/* closing CTA + footer */
.cta { background: var(--ink); color: var(--sand); }
.cta .wrap { padding-top: 80px; padding-bottom: 80px; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; }
.cta h2 { color: var(--paper); max-width: 18ch; }
.cta p { color: #CFC6B8; }
.cta .btn { background: var(--paper); color: var(--ink) !important; }
.cta .btn:hover { background: var(--sand); }
footer { background: var(--night); color: #BDB5A8; font-size: 13px; }
footer .wrap { padding-top: 40px; padding-bottom: 40px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
footer b { color: var(--paper); font: 800 16px/1.2 var(--head); display: block; margin-bottom: 8px; }
footer a { color: #BDB5A8; text-decoration: none; display: block; padding: 3px 0; }
footer a:hover { color: var(--paper); }
footer .legal { grid-column: 1 / -1; border-top: 1px solid #2A2D29; padding-top: 20px; }
@media (max-width: 760px) { footer .wrap { grid-template-columns: 1fr; } }
