/* Wigwam Architects — site styles */
:root {
  --ink: #1d1e20;
  --ink-soft: #3a3b3e;
  --muted: #6d6c68;
  --line: #e2ded6;
  --paper: #ffffff;
  --stone: #f5f2ec;
  --sand: #e9e3d8;
  --accent: #5e6b58;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 10vw, 128px);
  --radius: 2px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(40px, 6.4vw, 76px); }
h2 { font-size: clamp(30px, 4vw, 48px); }
h3 { font-size: clamp(21px, 2vw, 25px); font-weight: 500; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.section { padding: var(--section) 0; }
.section-stone { background: var(--stone); }
.section-dark { background: var(--ink); color: #f1eee8; }
.section-dark .muted { color: #b9b5ad; }
.eyebrow { font: 500 12px/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin: 0 0 18px; }
.section-dark .eyebrow { color: #b8c2b1; }
.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.6; color: var(--ink-soft); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.plain { list-style: none; margin: 0; padding: 0; }
.plain li { margin: 0 0 8px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* Buttons */
.btn { display: inline-block; font: 500 13px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; padding: 18px 30px; border: 1px solid var(--ink); background: var(--ink); color: #fff; border-radius: var(--radius); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn:hover { background: transparent; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: transparent; color: #fff; }
.btn-sm { padding: 12px 18px; font-size: 12px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: background .3s, border-color .3s, color .3s; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 84px; }
/* The logo's lettering needs ~160px of width to stay legible; below that it blurs. */
.logo { display: block; width: 160px; color: var(--ink); }
@media (max-width: 820px) { .logo { width: 132px; } }
.logo svg { width: 100%; height: auto; display: block; }
.site-nav { display: flex; align-items: center; gap: 34px; }
.site-nav a:not(.btn) { font-size: 14px; letter-spacing: .06em; text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; }
.site-nav a[aria-current="page"] { border-bottom-color: currentColor; }
.scrolled .site-header { border-bottom-color: var(--line); }
/* Transparent header over the hero */
.has-hero .site-header { position: fixed; left: 0; right: 0; background: transparent; backdrop-filter: none; color: #fff; }
.has-hero .site-header .logo { color: #fff; }
.has-hero .site-header .btn { background: transparent; border-color: rgba(255,255,255,.8); color: #fff; }
.has-hero .site-header .btn:hover { background: #fff; color: var(--ink); }
.has-hero.scrolled .site-header { background: rgba(255,255,255,.95); backdrop-filter: saturate(1.4) blur(10px); color: var(--ink); border-bottom-color: var(--line); }
.has-hero.scrolled .site-header .logo { color: var(--ink); }
.has-hero.scrolled .site-header .btn { background: var(--ink); border-color: var(--ink); color: #fff; }
.nav-toggle { display: none; }

@media (max-width: 820px) {
  .nav-toggle { display: grid; gap: 7px; place-content: center; width: 44px; height: 44px; background: none; border: 0; color: inherit; cursor: pointer; }
  .nav-toggle span { display: block; width: 24px; height: 1.5px; background: currentColor; transition: transform .25s; }
  .nav-open .nav-toggle span:first-child { transform: translateY(4.25px) rotate(45deg); }
  .nav-open .nav-toggle span:last-child { transform: translateY(-4.25px) rotate(-45deg); }
  .site-nav { position: fixed; inset: 84px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 28px; background: #fff; color: var(--ink); border-bottom: 1px solid var(--line); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; }
  .site-nav a:not(.btn) { font-size: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--line); color: var(--accent); }
  .site-nav .btn { margin-top: 20px; text-align: center; }
  .has-hero .site-header .site-nav .btn { background: var(--ink); border-color: var(--ink); color: #fff; }
  .nav-open .site-nav { opacity: 1; transform: none; visibility: visible; }
  .nav-open .site-header { background: #fff; color: var(--ink); }
  .nav-open .site-header .logo { color: var(--ink); }
}

/* Hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; background: #2a2b2a; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,20,20,.45) 0%, rgba(20,20,20,.15) 35%, rgba(20,20,20,.65) 100%); }
.hero-content { position: relative; z-index: 1; padding-top: 140px; padding-bottom: clamp(56px, 9vw, 112px); }
.hero h1 { max-width: 17ch; margin-bottom: 24px; hyphens: manual; }
.hero .lede { color: rgba(255,255,255,.9); max-width: 40ch; }
.hero .eyebrow { color: rgba(255,255,255,.85); }
.hero-short { min-height: 72vh; }

/* Grids & cards */
.grid { display: grid; gap: clamp(24px, 3vw, 40px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .grid-2, .grid-4 { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.split-media.wide img { aspect-ratio: 4 / 3; }
.split.reverse .split-media { order: 2; }
.split.top { align-items: start; }
.split-media.sticky { position: sticky; top: 110px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.reverse .split-media { order: 0; } .split-media.sticky { position: static; } }

.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.cred { border-top: 1px solid var(--ink); padding-top: 28px; }
.cred img { width: 72px; height: 72px; object-fit: contain; margin-bottom: 20px; mix-blend-mode: multiply; }
.cred p { color: var(--ink-soft); margin: 0; }

.pillar img { width: 56px; height: 56px; object-fit: contain; margin-bottom: 24px; mix-blend-mode: multiply; }
.pillar p { color: var(--ink-soft); font-size: 16px; }
.pillar { padding-top: 28px; border-top: 1px solid var(--line); }

.quote { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 3.2vw, 40px); line-height: 1.3; max-width: 22ch; margin: 0; }

/* Fit criteria */
.fit { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 96px); }
@media (max-width: 860px) { .fit { grid-template-columns: 1fr; } }
.criteria { margin: 0; }
.criteria div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.criteria div:first-child { border-top: 1px solid var(--line); }
.criteria dt { font: 500 12px/1.9 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.criteria dd { margin: 0; }
.criteria .not dd { color: var(--muted); }
@media (max-width: 520px) { .criteria div { grid-template-columns: 1fr; gap: 4px; } }

/* Process steps */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 64px 1fr; gap: 8px 20px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.steps li:first-child { border-top: 1px solid var(--line); }
.steps li::before { content: counter(step, decimal-leading-zero); font: 400 28px/1 var(--serif); color: var(--accent); grid-row: span 3; }
.steps h3 { margin: 0; }
.steps p { margin: 0; color: var(--ink-soft); }
.steps .deliverable { font-size: 14px; color: var(--muted); }
.steps .deliverable strong { font-weight: 500; color: var(--ink); }
.section-dark .steps li, .section-dark .steps li:first-child { border-color: rgba(255,255,255,.14); }
.section-dark .steps p { color: #d3cfc7; }
.section-dark .steps .deliverable, .section-dark .steps .deliverable strong { color: #b9b5ad; }

.checklist { list-style: none; padding: 0; margin: 0 0 24px; }
.checklist li { position: relative; padding: 14px 0 14px 32px; border-bottom: 1px solid var(--line); }
.checklist li::before { content: ""; position: absolute; left: 2px; top: 23px; width: 14px; height: 7px; border-left: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent); transform: rotate(-45deg); }
.checklist strong { font-weight: 600; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding: 22px 0; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 26px/1 var(--serif); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 40px 24px 0; color: var(--ink-soft); }

/* Forms */
.form-wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 96px); }
@media (max-width: 860px) { .form-wrap { grid-template-columns: 1fr; } }
.form { display: grid; gap: 22px; }
.field label, .field legend { display: block; font: 500 12px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; padding: 0; }
.field input[type=text], .field input[type=email], .field textarea { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1px solid #cfcac1; border-radius: var(--radius); padding: 14px 16px; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(94,107,88,.18); }
fieldset.field { border: 0; margin: 0; padding: 0; }
.choices { display: grid; gap: 10px; }
.choices.two { grid-template-columns: 1fr 1fr; }
@media (max-width: 520px) { .choices.two { grid-template-columns: 1fr; } }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: block; padding: 13px 16px; border: 1px solid #cfcac1; border-radius: var(--radius); background: #fff; cursor: pointer; font-size: 15px; transition: border-color .15s, background .15s; }
.choice input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 14px; color: var(--muted); margin: 0; }
.form-status { display: none; padding: 16px 18px; border: 1px solid var(--line); background: #fff; }
.form-status.show { display: block; }
.form-status.ok { border-color: var(--accent); }
.form-status.err { border-color: #a04a3a; color: #7d2e20; }
.req { color: var(--accent); }

/* CTA band */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 18ch; margin-left: auto; margin-right: auto; }

/* Journal */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 32px; }
@media (max-width: 960px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .post-grid { grid-template-columns: 1fr; } }
.post-card a { text-decoration: none; display: block; }
.post-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 20px; transition: opacity .25s; }
.post-card a:hover img { opacity: .85; }
.post-card h3 { margin-bottom: 10px; }
.post-card p { color: var(--ink-soft); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.meta { font: 500 12px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.meta span + span::before { content: "·"; margin: 0 8px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 48px; }
.filters button { font: 500 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; padding: 11px 16px; border: 1px solid #cfcac1; background: #fff; color: var(--ink); border-radius: 999px; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.article-head { padding: clamp(48px, 7vw, 96px) 0 40px; }
.article-head h1 { font-size: clamp(34px, 5vw, 58px); max-width: 20ch; }
.article-hero img { width: 100%; max-height: 640px; aspect-ratio: 16 / 9; object-fit: cover; }
.prose { font-size: 18px; line-height: 1.75; padding: clamp(40px, 6vw, 72px) 0 var(--section); }
.prose h2 { font-size: clamp(25px, 2.6vw, 32px); margin: 1.8em 0 .6em; }
.prose h3 { margin: 1.6em 0 .5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .55em; }
.prose li > ul, .prose li > ol { margin-top: .55em; }
.prose a { color: var(--accent); word-break: break-word; }
.prose em { color: var(--ink-soft); }
.prose .excerpt { font-size: 21px; color: var(--ink-soft); border-left: 2px solid var(--accent); padding-left: 22px; margin-bottom: 2em; }
.disclaimer { font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 24px; margin-top: 48px; }
.back { font-size: 14px; letter-spacing: .06em; text-decoration: none; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; border-top: 1px solid var(--line); padding-top: 32px; }
.post-nav a { text-decoration: none; }
.post-nav .next { text-align: right; }
.post-nav small { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }

/* Experience: project cards and track-record figures */
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 32px; }
@media (max-width: 960px) { .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .work-grid { grid-template-columns: 1fr; } }
.work-card img, .work-card-plate { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 20px; background: var(--sand); }
.work-card-plate { display: flex; align-items: flex-end; padding: 22px; background: var(--ink); color: #f1eee8; }
.work-card-plate span { font: 400 34px/1 var(--serif); }
.work-card h3 { margin-bottom: 10px; }
.work-card p:not(.meta) { color: var(--ink-soft); font-size: 15px; }
.work-card .meta { display: flex; flex-wrap: wrap; row-gap: 4px; }
mark.todo { background: #f3d9a4; color: #5b3b06; padding: 0 4px; border-radius: 2px; }
.attribution { font-size: 15px; color: var(--muted); border-left: 2px solid var(--accent); padding-left: 16px; margin-top: 8px; }
.section-dark .attribution { color: #b9b5ad; border-left-color: #b8c2b1; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-bottom: 32px; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr; gap: 20px; } }
.stat { border-top: 1px solid rgba(255,255,255,.18); padding-top: 22px; }
.stat strong { display: block; font: 400 clamp(44px, 5vw, 64px)/1 var(--serif); margin-bottom: 10px; }
.stat span { color: #d3cfc7; }

/* Footer */
.site-footer { background: var(--ink); color: #e9e5de; padding: 72px 0 32px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .muted { color: #a9a59e; }
.site-footer .eyebrow { color: #a9a59e; }
.logo-footer { color: #fff; width: 180px; margin-bottom: 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.12); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
.footer-base { padding-top: 32px; display: grid; gap: 12px; }
.footer-base p { max-width: 900px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .reveal { opacity: 1; transform: none; transition: none; } }
.no-js .reveal { opacity: 1; transform: none; }
