/* Self-hosted variable fonts (SIL OFL 1.1 — see fonts/LICENSE.txt) */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/Archivo-Variable.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Newsreader";
  src: url("../fonts/Newsreader-Variable.ttf") format("truetype-variations");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Newsreader";
  src: url("../fonts/Newsreader-Italic-Variable.ttf") format("truetype-variations");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

/* ==========================================================================
   Madrone — institutional editorial design system
   Type: Archivo (display/UI) + Newsreader (prose)
   Palette: stone paper, near-black ink, deep evergreen, copper accent
   ========================================================================== */

:root {
  --paper: #f6f5f0;
  --paper-2: #efeee7;
  --ink: #141a15;
  --ever: #17352b;
  --ever-2: #1d4234;
  --ever-deep: #0f2119;
  --copper: #a8542e;
  --copper-2: #8c4222;
  --stone: #5c665c;
  --line: #d9dbd1;
  --line-dark: rgba(246, 245, 240, 0.16);
  --cream: #e9dfc8;
  --sans: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --max: 1240px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--copper); text-decoration: none; }
a:hover { color: var(--copper-2); }

h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 620;
  letter-spacing: -0.022em;
  line-height: 1.04;
  color: var(--ink);
  text-wrap: balance;
}

.container { max-width: var(--max); margin: 0 auto; padding: 0 32px; }

section { padding: 110px 0; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 26px;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--copper);
}

.section-head.center .eyebrow { justify-content: center; }

.lead {
  font-size: 1.3rem;
  line-height: 1.55;
  color: var(--stone);
  max-width: 34em;
}

.section-head { max-width: 780px; margin-bottom: 64px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  margin-bottom: 20px;
}

.alt-bg { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.green-bg { background: var(--ever); }
.green-bg h2, .green-bg h3 { color: #f2f1ea; }
.green-bg p { color: rgba(242, 241, 234, 0.78); }
.green-bg .eyebrow { color: var(--cream); }
.green-bg .eyebrow::before { background: var(--cream); }
.soft-bg { background: var(--paper-2); border-top: 1px solid var(--line); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 245, 240, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand { display: flex; align-items: center; gap: 14px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { height: 34px; width: auto; flex: none; }
.footer-brand .brand-mark { height: 30px; }

.brand-name {
  font-family: var(--sans);
  font-size: 1.35rem;
  font-weight: 680;
  letter-spacing: -0.01em;
  display: block;
  line-height: 1.1;
}

.brand-sub {
  display: block;
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stone);
  margin-top: 3px;
}

.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; }

.nav-links a {
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 540;
  letter-spacing: 0.01em;
  color: var(--ink);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--copper);
  border-bottom-color: var(--copper);
}

.nav-cta {
  background: var(--ever);
  color: var(--paper) !important;
  padding: 12px 24px !important;
  border-radius: 2px;
  border-bottom: none !important;
  font-weight: 600 !important;
}

.nav-cta:hover { background: var(--ever-2); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 17px 34px;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-primary { background: var(--copper); color: #fff; }
.btn-primary:hover { background: var(--copper-2); color: #fff; }

.btn-dark { background: var(--ever); color: var(--paper); }
.btn-dark:hover { background: var(--ever-2); color: var(--paper); }

.btn-ghost { border: 1px solid rgba(246, 245, 240, 0.5); color: #f2f1ea; }
.btn-ghost:hover { border-color: #f2f1ea; background: rgba(246, 245, 240, 0.08); color: #f2f1ea; }

.btn-row { display: flex; gap: 18px; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   Hero (light, editorial)
   -------------------------------------------------------------------------- */

.hero { padding: 120px 0 0; background: var(--paper); }

.hero h1 {
  font-size: clamp(3rem, 7.2vw, 5.6rem);
  font-weight: 660;
  max-width: 11.5em;
  margin-bottom: 34px;
}

.hero h1 em {
  font-style: normal;
  color: var(--copper);
}

.hero p {
  font-size: 1.35rem;
  line-height: 1.5;
  color: var(--stone);
  max-width: 33em;
  margin-bottom: 44px;
}

.hero .eyebrow { margin-bottom: 34px; }

.hero-band {
  margin-top: 96px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero-band img, .hero-band svg {
  width: 100%;
  height: clamp(300px, 44vw, 560px);
  object-fit: cover;
  display: block;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
}

.hero-facts > div {
  padding: 26px 32px;
  border-left: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone);
}

.hero-facts > div:first-child { border-left: none; padding-left: 0; }

/* --------------------------------------------------------------------------
   Sector / principle columns — ruled, no boxes
   -------------------------------------------------------------------------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 48px;
}

.card-grid.cols-5 { grid-template-columns: repeat(5, 1fr); gap: 30px; }
.card-grid.cols-5 .sector-card h3 { font-size: 1.1rem; }
.card-grid.cols-5 .sector-card p { font-size: 14.5px; }

@media (max-width: 1120px) {
  .card-grid.cols-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .card-grid.cols-5 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .card-grid.cols-5 { grid-template-columns: 1fr; }
}

.sector-card {
  border-top: 1px solid var(--ink);
  padding-top: 28px;
}

.sector-card .icon { margin-bottom: 22px; }
.sector-card .icon svg { width: 30px; height: 30px; stroke: var(--copper); }

.sector-card h3 {
  font-size: 1.25rem;
  font-weight: 640;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  line-height: 1.2;
}

.sector-card p { font-size: 16px; line-height: 1.62; color: var(--stone); }

/* --------------------------------------------------------------------------
   Project rows — numbered editorial portfolio
   -------------------------------------------------------------------------- */

.project-rows { display: grid; gap: 0; }

.project-row {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 56px;
  align-items: center;
  padding: 56px 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
}

.project-rows .project-row:last-child { border-bottom: 1px solid var(--line); }

.project-row:nth-child(even) .row-visual { order: 2; }
.project-row:nth-child(even) .row-text { order: 1; }

.row-visual {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--ever);
}

.row-visual img, .row-visual svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-row:hover .row-visual img { transform: scale(1.03); }

.row-num {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--copper);
  margin-bottom: 18px;
}

.row-text h3 {
  font-size: clamp(1.5rem, 2.5vw, 2.15rem);
  margin-bottom: 12px;
}

.row-loc {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 20px;
}

.row-text p { font-size: 17px; line-height: 1.62; color: var(--stone); margin-bottom: 26px; }

.row-link {
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 680;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--copper);
  border-bottom: 1px solid var(--copper);
  padding-bottom: 3px;
}

.project-row:hover .row-link { color: var(--copper-2); border-color: var(--copper-2); }

.row-status {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ever);
  border: 1px solid var(--ever);
  padding: 5px 12px;
  border-radius: 2px;
  margin-bottom: 20px;
}

/* --------------------------------------------------------------------------
   In-development — quiet ruled ledger
   -------------------------------------------------------------------------- */

.dev-list { border-top: 1px solid var(--ink); }

a.dev-item { color: inherit; }
a.dev-item:hover h3 { color: var(--copper); }

.dev-item {
  display: grid;
  grid-template-columns: 2.2fr 3fr 1.3fr;
  gap: 32px;
  align-items: baseline;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.dev-item h3 {
  font-size: 1.3rem;
  font-weight: 640;
}

.dev-item p { font-size: 16px; color: var(--stone); line-height: 1.6; }

.dev-status {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper);
  text-align: right;
}

/* --------------------------------------------------------------------------
   News ledger
   -------------------------------------------------------------------------- */

.news-list { border-top: 1px solid var(--ink); }

.news-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 40px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}

.news-date {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
  padding-top: 6px;
}

.news-item h3 { font-size: 1.45rem; margin-bottom: 10px; }
.news-item p { font-size: 16.5px; color: var(--stone); line-height: 1.62; max-width: 46em; }

.news-links { margin-top: 14px; display: flex; gap: 24px; flex-wrap: wrap; }

.news-links a {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 680;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--copper);
  border-bottom: 1px solid var(--copper);
  padding-bottom: 2px;
}

.news-tag {
  display: inline-block;
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone);
  border: 1px solid var(--line);
  padding: 3px 10px;
  border-radius: 2px;
  margin-bottom: 12px;
}

/* --------------------------------------------------------------------------
   Governance
   -------------------------------------------------------------------------- */

.doc-list { border-top: 1px solid var(--ink); }

.doc-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: baseline;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.doc-item h3 { font-size: 1.15rem; }
.doc-item p { font-size: 15px; color: var(--stone); margin-top: 6px; max-width: 42em; }

.doc-action {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Steps (the model)
   -------------------------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 48px;
}

.step { border-top: 1px solid var(--line-dark); padding-top: 26px; }

.green-bg .step { border-top-color: var(--line-dark); }
section:not(.green-bg) .step { border-top-color: var(--ink); }

.step .num {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--copper);
  margin-bottom: 16px;
}

.green-bg .step .num { color: var(--cream); }

.step h3 { font-size: 1.2rem; margin-bottom: 12px; }
.step p { font-size: 15.5px; line-height: 1.62; }
section:not(.green-bg) .step p { color: var(--stone); }

/* --------------------------------------------------------------------------
   Two foundations
   -------------------------------------------------------------------------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }

.entity-card { border-top: 2px solid var(--ever); padding-top: 30px; }
.entity-card.health { border-top-color: var(--copper); }

.entity-tag {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 18px;
}

.entity-card h3 { font-size: 1.6rem; margin-bottom: 18px; }
.entity-card p { font-size: 16.5px; line-height: 1.65; color: var(--stone); margin-bottom: 14px; }

/* --------------------------------------------------------------------------
   Page hero (interior)
   -------------------------------------------------------------------------- */

.page-hero {
  background: var(--ever);
  padding: 100px 0 90px;
}

.page-hero h1 {
  color: #f2f1ea;
  font-size: clamp(2.4rem, 5vw, 4rem);
  margin-bottom: 24px;
  max-width: 16em;
}

.page-hero p {
  color: rgba(242, 241, 234, 0.75);
  font-size: 1.25rem;
  line-height: 1.55;
  max-width: 36em;
}

.page-hero .eyebrow { color: var(--cream); }
.page-hero .eyebrow::before { background: var(--cream); }

.breadcrumb {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.02em;
  margin-bottom: 22px;
  color: rgba(242, 241, 234, 0.6);
}

.breadcrumb a { color: rgba(242, 241, 234, 0.85); }
.breadcrumb a:hover { color: #fff; }

/* --------------------------------------------------------------------------
   Project detail pages
   -------------------------------------------------------------------------- */

.detail-hero-visual { margin-bottom: 72px; border-bottom: 1px solid var(--line); }

.detail-hero-visual img, .detail-hero-visual svg {
  width: 100%;
  height: clamp(280px, 42vw, 520px);
  object-fit: cover;
  display: block;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 80px;
  align-items: start;
}

.detail-main h2 {
  font-size: 1.75rem;
  margin: 48px 0 18px;
}

.detail-main h2:first-child { margin-top: 0; }
.detail-main p { margin-bottom: 18px; font-size: 17.5px; line-height: 1.68; color: #333b34; }
.detail-main ul { margin: 0 0 18px 20px; color: #333b34; }
.detail-main li { margin-bottom: 10px; font-size: 17px; line-height: 1.6; }

.fact-box {
  border: 1px solid var(--line);
  border-top: 2px solid var(--copper);
  background: var(--paper-2);
  padding: 34px 32px;
  position: sticky;
  top: 110px;
}

.fact-box h3 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 24px;
}

.fact-box dl { display: grid; gap: 18px; }
.fact-box dt {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 3px;
}
.fact-box dd { font-family: var(--sans); font-size: 15.5px; font-weight: 540; color: var(--ink); line-height: 1.45; }

.visual-note { font-size: 13px; color: var(--stone); margin-top: 10px; text-align: right; }

/* --------------------------------------------------------------------------
   Leadership
   -------------------------------------------------------------------------- */

.leader-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 48px;
}

.leader-card { border-top: 1px solid var(--ink); padding-top: 30px; }

.leader-photo {
  width: 116px;
  height: 116px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 28px;
  background: var(--paper-2);
}

.leader-photo img, .leader-photo svg { width: 100%; height: 100%; object-fit: cover; display: block; }

.leader-card h3 { font-size: 1.75rem; margin-bottom: 8px; }

.leader-title {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 22px;
}

.leader-card p { font-size: 16.5px; line-height: 1.66; color: var(--stone); }
.leader-card p + p { margin-top: 16px; }

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */

.cta-band {
  background: var(--ever);
  padding: 110px 0;
  text-align: left;
}

.cta-band h2 {
  color: #f2f1ea;
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  max-width: 15em;
  margin-bottom: 22px;
}

.cta-band p {
  color: rgba(242, 241, 234, 0.75);
  font-size: 1.25rem;
  line-height: 1.55;
  max-width: 34em;
  margin-bottom: 40px;
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px; align-items: start; }

.contact-card {
  border-top: 1px solid var(--ink);
  padding-top: 24px;
}

.contact-card + .contact-card { margin-top: 40px; }
.contact-card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.contact-card p { font-size: 16px; color: var(--stone); margin-bottom: 6px; line-height: 1.6; }


/* --------------------------------------------------------------------------
   Contact form
   -------------------------------------------------------------------------- */

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 2px solid var(--copper);
  padding: 40px 36px;
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; }
.field.full { grid-column: 1 / -1; }

.field label {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 8px;
}

.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 12px 14px;
}

.field select { font-family: var(--sans); font-size: 14.5px; }
.field textarea { min-height: 150px; resize: vertical; }

.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--copper);
  box-shadow: 0 0 0 3px rgba(168, 84, 46, 0.12);
}

.form-actions { margin-top: 28px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form-hint { font-size: 13.5px; color: var(--stone); }
.hp { position: absolute; left: -9999px; }

@media (max-width: 700px) {
  .form-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 30px 24px; }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--ever-deep);
  color: rgba(242, 241, 234, 0.72);
  padding: 80px 0 44px;
  font-size: 15px;
}

.site-footer p { font-family: var(--serif); line-height: 1.6; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 48px;
  margin-bottom: 56px;
}

.site-footer h4 {
  color: #f2f1ea;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.site-footer ul { list-style: none; font-family: var(--sans); font-size: 14.5px; }
.site-footer li { margin-bottom: 12px; }
.site-footer a { color: rgba(242, 241, 234, 0.72); }
.site-footer a:hover { color: #fff; }

.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.footer-brand .brand-name { color: #f2f1ea; }
.footer-brand .brand-sub { color: rgba(242, 241, 234, 0.5); }

.footer-legal {
  border-top: 1px solid var(--line-dark);
  padding-top: 30px;
  font-size: 13px;
  color: rgba(242, 241, 234, 0.5);
}

.footer-legal p { margin-bottom: 8px; }

/* --------------------------------------------------------------------------
   Legacy card classes (kept for compatibility, restyled)
   -------------------------------------------------------------------------- */

.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; }
.project-grid.featured { grid-template-columns: repeat(2, 1fr); }

.project-card { background: transparent; color: var(--ink); display: flex; flex-direction: column; }

.project-visual { aspect-ratio: 16 / 10; position: relative; overflow: hidden; background: var(--ever); }
.project-visual img, .project-visual svg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.project-card:hover .project-visual img { transform: scale(1.03); }

.project-status {
  position: absolute; top: 16px; left: 16px;
  background: var(--paper);
  color: var(--ever);
  font-family: var(--sans);
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 2px;
}

.project-status.pipeline { background: var(--ever); color: var(--paper); }

.project-body { padding: 24px 0 0; display: flex; flex-direction: column; flex: 1; }
.project-body h3 { font-size: 1.4rem; margin-bottom: 8px; }
.project-loc {
  font-family: var(--sans); font-size: 12px; font-weight: 650; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--stone); margin-bottom: 14px;
}
.project-body p { font-size: 16px; color: var(--stone); flex: 1; line-height: 1.6; }
.card-link {
  margin-top: 18px;
  font-family: var(--sans); font-size: 13px; font-weight: 680; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--copper);
}

.project-scroller {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(300px, 38vw, 430px);
  gap: 40px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 24px;
  scrollbar-color: var(--ever) var(--paper-2);
}
.project-scroller .project-card { scroll-snap-align: start; }
.scroller-hint {
  font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--stone); margin-bottom: 22px;
}

/* --------------------------------------------------------------------------
   Scroll reveal
   -------------------------------------------------------------------------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .row-visual img, .project-visual img { transition: none; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 960px) {
  .split, .contact-grid, .detail-layout { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .fact-box { position: static; }
  .project-grid.featured { grid-template-columns: 1fr; }

  .project-row { grid-template-columns: 1fr; gap: 28px; padding: 44px 0; }
  .project-row:nth-child(even) .row-visual { order: 0; }
  .project-row:nth-child(even) .row-text { order: 1; }

  .dev-item { grid-template-columns: 1fr; gap: 8px; }
  .dev-status { text-align: left; }

  .hero-facts { grid-template-columns: 1fr; }
  .hero-facts > div { border-left: none; padding-left: 0; padding-top: 16px; padding-bottom: 16px; border-top: 1px solid var(--line); }
  .hero-facts > div:first-child { border-top: none; }
}

@media (max-width: 760px) {
  section { padding: 72px 0; }
  .hero { padding: 72px 0 0; }
  .hero-band { margin-top: 56px; }

  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: 84px; left: 0; right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 32px 28px;
    border-bottom: 1px solid var(--line);
  }

  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-links .nav-cta { margin-top: 16px; text-align: center; }
}
