/* Granite & Pine Homes
   Palette: granite stone, white pine green, birch paper, lichen and ember accents */
:root {
  --paper: #f3f1ea;
  --paper-2: #e9e6dc;
  --stone: #c9c6bc;
  --granite: #2a2c2b;
  --granite-2: #4a4d4b;
  --pine: #1f3b2f;
  --pine-2: #2f5643;
  --lichen: #9fae8a;
  --ember: #b5562f;
  --ink: #1b1d1c;
  --muted: #5f625e;
  --line: rgba(27, 29, 28, .14);
  --radius: 2px;
  --max: 1320px;
  --pad: clamp(20px, 4vw, 56px);
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body {
  margin: 0; overflow-x: clip; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; line-height: 1.02; margin: 0; letter-spacing: -.015em; font-variation-settings: "opsz" 144, "SOFT" 30; }
h1 { font-size: clamp(48px, 9vw, 132px); }
h2 { font-size: clamp(36px, 5.4vw, 76px); }
h3 { font-size: clamp(24px, 2.4vw, 34px); line-height: 1.1; }
em { font-style: italic; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: inline-flex; gap: 10px; align-items: center; }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.lede { font-size: clamp(19px, 1.6vw, 23px); line-height: 1.5; color: var(--granite-2); max-width: 46ch; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--pine); color: #fff; padding: 10px 14px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 16px 24px; border: 1px solid var(--ink); background: transparent; color: var(--ink); font: 600 14px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .25s, color .25s; border-radius: var(--radius); }
.btn:hover { background: var(--ink); color: var(--paper); }
.btn .arr { transition: transform .25s; }
.btn:hover .arr { transform: translateX(4px); }
.btn--pine { background: var(--pine); border-color: var(--pine); color: var(--paper); }
.btn--pine:hover { background: var(--granite); border-color: var(--granite); }
.btn--light { border-color: var(--paper); color: var(--paper); }
.btn--light:hover { background: var(--paper); color: var(--pine); }

/* Header */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(243, 241, 234, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg { width: 34px; height: 34px; }
.brand-name { font-family: var(--display); font-size: 22px; line-height: 1; letter-spacing: -.01em; }
.brand-name small { display: block; font-family: var(--mono); font-size: 9.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.nav { display: flex; gap: 30px; align-items: center; }
.nav a { text-decoration: none; font-size: 14px; font-weight: 600; letter-spacing: .02em; position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--ember); transition: right .25s; }
.nav a:hover::after, .nav a[aria-current="page"]::after { right: 0; }
.nav .btn { padding: 12px 18px; font-size: 12px; }
.nav .btn::after { display: none; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); padding: 10px 12px; cursor: pointer; font: 600 12px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .site-head { backdrop-filter: none; background: var(--paper); }
  .nav { position: fixed; top: 76px; left: 0; right: 0; height: calc(100vh - 76px); background: var(--paper); flex-direction: column; align-items: flex-start; padding: 32px var(--pad); gap: 8px; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
  .nav.open { opacity: 1; visibility: visible; }
  .nav a { font-family: var(--display); font-size: 34px; font-weight: 400; }
  .nav .btn { font-family: var(--sans); font-size: 13px; margin-top: 20px; }
}

/* Hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; min-height: calc(100vh - 76px); max-height: 980px; }
.hero-copy { padding: clamp(48px, 8vw, 110px) var(--pad) 56px; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; max-width: calc(var(--max) * .55); margin-left: auto; width: 100%; }
.hero h1 .line { display: block; }
.hero h1 em { color: var(--pine-2); }
.hero-foot { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.hero-media { position: relative; background: var(--pine); min-height: 520px; }
.hero-media .media { position: absolute; inset: 0; }
.hero-tag { position: absolute; left: 24px; bottom: 24px; right: 24px; display: flex; justify-content: space-between; align-items: flex-end; color: var(--paper); font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; min-height: 0; max-height: none; } .hero-media { min-height: 115vw; } }

/* State strip */
.states { background: var(--granite); color: var(--paper); overflow: hidden; }
.states-track { display: flex; gap: 56px; padding: 22px 0; white-space: nowrap; animation: drift 42s linear infinite; width: max-content; }
.states-track span { font-family: var(--display); font-size: clamp(22px, 2.6vw, 34px); font-style: italic; display: inline-flex; align-items: center; gap: 56px; }
.states-track span::after { content: ""; width: 9px; height: 9px; background: var(--lichen); transform: rotate(45deg); }
@keyframes drift { to { transform: translateX(-50%); } }

/* Sections */
.section { padding: clamp(80px, 11vw, 160px) 0; border-bottom: 1px solid var(--line); }
.section--pine { background: var(--pine); color: var(--paper); }
.section--pine .eyebrow, .section--pine .lede { color: var(--lichen); }
.section--pine .lede { color: #dfe3d6; }
.section--stone { background: var(--paper-2); }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: clamp(48px, 6vw, 88px); }
.section-head h2 { max-width: 12ch; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }

/* Paths: three ways home */
.paths { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.path { padding: 36px 32px 40px 0; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 22px; text-decoration: none; }
.path + .path { padding-left: 32px; }
.path:last-child { border-right: 0; }
.path .num { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: .12em; }
.path .media { aspect-ratio: 4 / 5; }
.path h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.path h3 .arr { font-family: var(--sans); font-size: 22px; transition: transform .25s; }
.path:hover h3 .arr { transform: translateX(6px); }
.path p { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .paths { grid-template-columns: 1fr; } .path, .path + .path { padding: 32px 0; border-right: 0; border-bottom: 1px solid var(--line); } }

/* Media placeholders */
.media { position: relative; overflow: hidden; background: var(--stone); }
.media > img { width: 100%; height: 100%; object-fit: cover; }
.media > svg { width: 100%; height: 100%; }
.media .tag { position: absolute; top: 14px; left: 14px; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; background: rgba(243, 241, 234, .9); color: var(--ink); padding: 6px 9px; }

/* Editorial split */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split--rev { grid-template-columns: 7fr 5fr; }
.split--rev > :first-child { order: 2; }
.split .media { aspect-ratio: 5 / 4; }
@media (max-width: 860px) { .split, .split--rev { grid-template-columns: 1fr; } .split--rev > :first-child { order: 0; } }

/* Numbers / facts */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(243, 241, 234, .2); margin-top: 72px; }
.fact { padding: 28px 24px 0 0; }
.fact b { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(40px, 4.6vw, 64px); line-height: 1; margin-bottom: 10px; }
.fact span { font-size: 14px; color: #cfd5c6; }
@media (max-width: 860px) { .facts { grid-template-columns: repeat(2, 1fr); row-gap: 28px; } }

/* State map list */
.state-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.state { background: var(--paper); padding: 26px 22px 30px; display: flex; flex-direction: column; gap: 40px; min-height: 230px; transition: background .25s, color .25s; }
.state:hover { background: var(--pine); color: var(--paper); }
.state .abbr { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; }
.state h3 { font-size: 26px; }
.state p { font-size: 14px; margin: 0; opacity: .75; }
@media (max-width: 1100px) { .state-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .state-grid { grid-template-columns: repeat(2, 1fr); } .state { min-height: 180px; } }

/* Process */
.process { counter-reset: step; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-top: 1px solid var(--ink); }
.step { padding: 26px 24px 0 0; counter-increment: step; position: relative; }
.step::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--display); font-size: 56px; color: var(--ember); line-height: 1; margin-bottom: 20px; }
.step::after { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; background: var(--ink); border-radius: 50%; }
.step h4 { font-family: var(--sans); font-weight: 700; font-size: 17px; margin-bottom: 8px; letter-spacing: 0; }
.step p { font-size: 15px; color: var(--muted); }
@media (max-width: 960px) { .process { grid-template-columns: 1fr; border-top: 0; border-left: 1px solid var(--ink); } .step { padding: 0 0 36px 28px; } .step::after { left: -5px; top: 8px; } }

/* Collections / communities */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card { display: flex; flex-direction: column; gap: 16px; text-decoration: none; }
.card .media { aspect-ratio: 4 / 3; }
.card .meta { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.card h3 { font-size: 28px; }
.card p { color: var(--muted); font-size: 15px; margin: 0; }
.chip { display: inline-block; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; border: 1px solid var(--line); padding: 5px 8px; margin-right: 6px; }
.chip--pine { background: var(--pine); color: var(--paper); border-color: var(--pine); }
.chip--ember { background: var(--ember); color: #fff; border-color: var(--ember); }
@media (max-width: 960px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.filters button { font: 600 13px var(--sans); padding: 10px 16px; border: 1px solid var(--line); background: transparent; cursor: pointer; color: var(--ink); border-radius: 40px; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* Home types table */
.types { width: 100%; border-collapse: collapse; }
.types th, .types td { text-align: left; padding: 22px 16px 22px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.types th { font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.types td:first-child { font-family: var(--display); font-size: 28px; }
@media (max-width: 700px) { .types thead { display: none; } .types tr { display: block; border-bottom: 1px solid var(--line); padding: 18px 0; } .types td { display: block; border: 0; padding: 4px 0; } }

/* Principals */
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 32px; }
.person .media { aspect-ratio: 4 / 5; margin-bottom: 20px; }
.person .org { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ember); margin-bottom: 8px; }
.person h3 { margin-bottom: 6px; }
.person .role { color: var(--muted); font-size: 15px; margin-bottom: 14px; }
.person p.bio { font-size: 15px; }
.person .links { display: flex; gap: 14px; font-size: 13px; font-weight: 600; }
@media (max-width: 960px) { .people { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .people { grid-template-columns: 1fr; } }

/* Founding firms */
.firms { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.firm { padding: 40px 32px; border-right: 1px solid var(--line); }
.firm:last-child { border-right: 0; }
.firm h3 { margin: 18px 0 12px; }
.firm p { color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .firms { grid-template-columns: 1fr; } .firm { border-right: 0; border-bottom: 1px solid var(--line); } }

/* Quote */
.quote { font-family: var(--display); font-size: clamp(30px, 4vw, 56px); line-height: 1.15; max-width: 22ch; }
.quote::before { content: "\201C"; color: var(--ember); }
.quote::after { content: "\201D"; color: var(--ember); }

/* Social */
.social-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.social-grid .media { aspect-ratio: 1; }
@media (max-width: 860px) { .social-grid { grid-template-columns: repeat(3, 1fr); } }
.social-links { display: flex; flex-wrap: wrap; gap: 10px; }
.social-links a { display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px; border: 1px solid currentColor; text-decoration: none; font-size: 13px; font-weight: 600; }
.social-links svg { width: 18px; height: 18px; }

/* Forms */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; }
.form .full { grid-column: 1 / -1; }
.form label { display: flex; flex-direction: column; gap: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.form input, .form select, .form textarea { font: 400 17px var(--sans); color: var(--ink); padding: 14px 0; border: 0; border-bottom: 1px solid var(--ink); background: transparent; border-radius: 0; }
.form textarea { min-height: 130px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-bottom-color: var(--ember); }
.form fieldset { border: 0; padding: 0; margin: 0; }
.form legend { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills label { flex-direction: row; align-items: center; text-transform: none; letter-spacing: 0; font: 600 14px var(--sans); color: var(--ink); border: 1px solid var(--line); padding: 10px 14px; border-radius: 40px; cursor: pointer; }
.pills input { accent-color: var(--pine); margin: 0; }
.hp { position: absolute; left: -9999px; }
@media (max-width: 700px) { .form { grid-template-columns: 1fr; } }

/* CTA band */
.cta { background: var(--ember); color: #fff; padding: clamp(64px, 9vw, 120px) 0; }
.cta .wrap { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.cta h2 { max-width: 14ch; }

/* Page intro */
.intro { padding: clamp(64px, 10vw, 140px) 0 clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.intro h1 { font-size: clamp(48px, 8vw, 112px); max-width: 14ch; margin: 22px 0 28px; }
.crumbs { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.crumbs a { text-decoration: none; }

/* Footer */
.site-foot { background: var(--granite); color: #d9dad4; padding: 88px 0 36px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 64px; border-bottom: 1px solid rgba(255,255,255,.12); }
.site-foot h4 { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--lichen); margin-bottom: 18px; }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { color: #fff; }
.foot-big { font-family: var(--display); font-size: clamp(56px, 12vw, 190px); line-height: .9; color: var(--paper); letter-spacing: -.03em; margin: 56px 0 28px; }
.foot-big em { color: var(--lichen); }
.legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-size: 13px; color: #9a9c96; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }

/* Reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

.note { font-family: var(--mono); font-size: 12px; color: var(--muted); border-left: 2px solid var(--ember); padding-left: 12px; }
.mt-l { margin-top: clamp(40px, 5vw, 72px); }
.center { text-align: center; }

/* Gallery */
.gallery { columns: 3 280px; column-gap: 20px; }
.gallery figure { margin: 0 0 20px; break-inside: avoid; }
.gallery .media { background: var(--pine-2); }
.gallery figcaption { display: flex; gap: 12px; align-items: baseline; padding-top: 10px; font-size: 14px; color: #dfe3d6; }
.gallery figcaption span { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--lichen); }
.hero-media .media img { object-position: center 40%; }
.split .media img, .path .media img, .person .media img, .social-grid .media img { height: 100%; }
