/* Bilkis & Co. — site styles
   Change the brand colors here and they update everywhere. */
:root {
  --paper: #F5F2EC;      /* warm off-white background */
  --paper-2: #EBE6DC;    /* slightly darker panels */
  --ink: #1F1E1C;        /* near-black text */
  --ink-soft: #5E5A53;   /* secondary text */
  --line: #D6D0C4;       /* hairline dividers */
  --pop: #16201F;        /* deep green accent (same as the dark sections) */
  --pop-dark: #2E413E;   /* lighter green for hovers */

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --brand: "Archivo", "Helvetica Neue", Arial, sans-serif;  /* logo font, stand-in for Seabass */
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--pop); outline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper); padding: 10px 16px; z-index: 100;
}
.skip:focus { left: 16px; top: 16px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 68px; gap: 24px;
}
.wordmark {
  font-family: var(--brand);
  font-stretch: 125%;
  font-size: 1.2rem; font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none; white-space: nowrap;
}
.amp { color: var(--pop); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  text-decoration: none; font-size: 0.92rem;
  padding: 4px 0; border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--pop); }
.nav .btn { border-bottom: 0; padding: 9px 18px; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--ink);
  border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 0.85rem;
  color: var(--ink); cursor: pointer;
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; font-size: 1.05rem; width: 100%; }
  .nav .btn { margin-top: 8px; width: auto; padding: 12px 22px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: var(--paper);
  border-radius: 999px; padding: 10px 20px;
  text-decoration: none; font-size: 0.92rem; font-weight: 500;
  transition: background .2s ease;
}
.btn:hover { background: var(--pop-dark); }
.btn-pop { background: var(--pop); color: #fff; }
.btn-pop:hover { background: var(--pop-dark); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

/* ---------- Type ---------- */
.eyebrow {
  font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-soft); margin: 0 0 16px;
  display: flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--pop);
}
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.05; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(2.6rem, 7vw, 5.6rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
h1 em, h2 em { color: var(--pop); }
.lede { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: var(--ink-soft); max-width: 40ch; }
p { margin: 0 0 1em; }

/* Placeholder text — shows clearly where info is still needed */
.ph {
  background: #FFF1C9; outline: 1px dashed #C9A227;
  padding: 0 4px; border-radius: 3px; color: var(--ink);
}

/* ---------- Sections ---------- */
section { padding: clamp(56px, 9vw, 120px) 0; }
.rule { border-top: 1px solid var(--line); }

.hero { padding-top: clamp(48px, 8vw, 104px); }
.hero h1 { max-width: 14ch; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.territory {
  display: flex; flex-wrap: wrap; gap: 10px 28px;
  margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line);
  font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase;
}
.territory span { display: inline-flex; align-items: center; gap: 10px; }
.territory span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--pop); }


figure { margin: 0; }
figcaption {
  font-size: 0.75rem; color: var(--ink-soft); margin-top: 8px;
  letter-spacing: 0.04em;
}

/* Split panels, two columns divided by a hairline */
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.split > * { padding: clamp(28px, 4vw, 56px); }
.split > * + * { border-left: 1px solid var(--line); }
@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; }
  .split > * + * { border-left: 0; border-top: 1px solid var(--line); }
}

.section-head {
  display: flex; justify-content: space-between; align-items: end;
  gap: 24px; flex-wrap: wrap; margin-bottom: clamp(32px, 5vw, 56px);
}
.section-head h2 { max-width: 18ch; }

/* Brand cards */
.brand-cards { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 3vw, 32px); }
.brand-card { text-decoration: none; display: block; }
.brand-card img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; transition: transform .5s ease; }
.brand-card .img { overflow: hidden; }
.brand-card:hover img { transform: scale(1.03); }
.brand-card h3 { margin: 20px 0 8px; display: flex; justify-content: space-between; align-items: baseline; }
.brand-card h3 .arrow { color: var(--pop); font-family: var(--sans); font-size: 1.2rem; }
.brand-card p { color: var(--ink-soft); max-width: 44ch; }
@media (max-width: 640px) { .brand-cards { grid-template-columns: 1fr; } }

/* Numbered "how we help" list */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.steps li { list-style: none; padding: 28px 28px 8px 0; }
.steps li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.steps .num { font-family: var(--serif); color: var(--pop); font-size: 1.1rem; display: block; margin-bottom: 18px; }
.steps h3 { font-size: 1.45rem; margin-bottom: 12px; }
.steps p { color: var(--ink-soft); font-size: 0.97rem; }
ol.steps { padding: 0; margin: 0; }
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 24px 0 4px; border-left: 0; border-top: 1px solid var(--line); }
  .steps li:first-child { border-top: 0; }
}


/* Brand detail page */
.brand { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.brand.flip .brand-media { order: 2; }
.brand-media { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.brand-media figure:first-child { grid-column: 1 / -1; }
.brand-media figure:first-child img { aspect-ratio: 4 / 3; }
.brand-media img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #fff; }
.brand-media img.contain { object-fit: contain; padding: 8%; }
.brand-copy { position: sticky; top: 100px; }
.brand-copy h2 { margin-bottom: 20px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 24px 0 28px; }
.tags li {
  list-style: none; font-size: 0.82rem; border: 1px solid var(--line);
  border-radius: 999px; padding: 5px 12px; background: var(--paper);
}
.facts { border-top: 1px solid var(--line); margin: 0 0 28px; }
.facts div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.facts dt { color: var(--ink-soft); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; padding-top: 3px; }
.facts dd { margin: 0; }
@media (max-width: 860px) {
  .brand, .brand.flip { grid-template-columns: 1fr; }
  .brand.flip .brand-media { order: 0; }
  .brand-copy { position: static; }
}
@media (max-width: 480px) { .facts div { grid-template-columns: 1fr; gap: 2px; } }

/* Projects grid */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filters button {
  font: inherit; font-size: 0.85rem; cursor: pointer;
  background: transparent; color: var(--ink);
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px;
}
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.5vw, 28px); }
.project img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--paper-2); }
.project .meta {
  display: flex; gap: 10px; margin-top: 14px;
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft);
}
.project .meta span + span::before { content: "·"; margin-right: 10px; color: var(--pop); }
.project h3 { font-size: 1.35rem; margin-top: 6px; }
.project p { font-size: 0.92rem; color: var(--ink-soft); margin-top: 6px; }
.project[hidden] { display: none; }
.project.empty .slot {
  aspect-ratio: 4 / 5; border: 1px dashed var(--line);
  display: grid; place-items: center; text-align: center; padding: 24px;
  color: var(--ink-soft); font-size: 0.9rem; background: var(--paper-2);
}
.project.empty .slot strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.5rem; color: var(--ink); margin-bottom: 6px; }
@media (max-width: 900px) { .projects { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .projects { grid-template-columns: 1fr; } }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 96px); }
.about-grid .big { font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.25; letter-spacing: -0.01em; }
.region-list { padding: 0; margin: 0; border-top: 1px solid var(--line); }
.region-list li {
  list-style: none; display: flex; justify-content: space-between; gap: 16px;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.region-list li strong { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; }
.region-list li span { color: var(--ink-soft); font-size: 0.9rem; text-align: right; }
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--deep, #16201F); color: var(--paper); padding: 72px 0 32px; }
.site-footer a { color: var(--paper); text-decoration: none; }
.site-footer a:hover { color: var(--pop-light); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-top .wordmark { font-size: 1.8rem; display: inline-block; margin-bottom: 12px; }
.footer-top h4 { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: #A29D93; font-weight: 500; margin: 0 0 14px; }
.footer-top ul { padding: 0; margin: 0; }
.footer-top li { list-style: none; margin-bottom: 8px; }
.footer-top p { color: #C9C4BA; max-width: 34ch; }
.footer-bottom {
  margin-top: 56px; padding-top: 20px; border-top: 1px solid #3A3835;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 0.8rem; color: #A29D93;
}
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr; } }

.contact-lines { font-size: clamp(1.2rem, 2.4vw, 1.6rem); font-family: var(--serif); line-height: 1.5; margin-top: 28px; }
.contact-lines a { text-decoration: none; border-bottom: 1px solid currentColor; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Scroll-in animation ----------
   main.js adds .reveal to sections' content and .in once it scrolls into view.
   Without JavaScript, or with "reduce motion" on, everything simply shows. */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.in { opacity: 1; transform: none; }
.js-motion .hero .wrap > :not(.in),
.js-motion .hero-slider:not(.in) { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Homepage hero slideshow ---------- */
.hero-slider { margin-top: clamp(40px, 6vw, 72px); }
.slides { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--paper-2); }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.2s ease; }
.slide.is-active { opacity: 1; z-index: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7s ease-out; }
.slide.is-active img { transform: scale(1); }
.slider-bar {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 24px;
  padding-top: 16px;
}
.slider-caption .meta {
  display: flex; gap: 10px;
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft);
}
.slider-caption .meta span + span::before { content: "·"; margin-right: 10px; color: var(--pop); }
.slider-title { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; margin: 4px 0 2px; }
.slider-credit { font-size: 0.85rem; color: var(--ink-soft); margin: 0; }
.slider-caption > * { transition: opacity .4s ease; }
.slider-caption.swap > * { opacity: 0; }
.slider-controls { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.slider-count { font-size: 0.8rem; letter-spacing: 0.08em; color: var(--ink-soft); margin-right: 8px; font-variant-numeric: tabular-nums; }
.slider-count .cur { color: var(--ink); }
.slider-btn {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: transparent; color: var(--ink);
  font: inherit; font-size: 0.95rem; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.slider-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.slider-btn { display: inline-grid; place-items: center; }
@media (max-width: 640px) {
  .slides { aspect-ratio: 4 / 3; }
  .slider-bar { flex-direction: column; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .slide, .slide img { transition: none; transform: none; }
}

/* ---------- Statement that fills in as you scroll ---------- */
.statement { padding: clamp(72px, 12vw, 160px) 0; }
.fill-text {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.9rem, 4.6vw, 3.9rem); line-height: 1.12; letter-spacing: -0.02em;
  max-width: 22ch; margin: 0;
}
.fill-text em { color: var(--pop); }
.fill-text .w { color: #CFC8BB; transition: color .35s ease; }
.fill-text .w.lit { color: var(--ink); }
.fill-text em .w.lit { color: var(--pop); }
@media (prefers-reduced-motion: reduce) {
  .fill-text .w { color: inherit; transition: none; }
}


/* ---------- Brand cards with text over the photo (homepage) ---------- */
.brand-card { position: relative; overflow: hidden; color: #fff; isolation: isolate; }
.brand-card .img { position: relative; }
.brand-card img { aspect-ratio: 4 / 5; }
.brand-card .img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,19,17,0) 35%, rgba(20,19,17,.55) 65%, rgba(20,19,17,.85) 100%);
}
.card-overlay {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: clamp(20px, 3vw, 36px);
}
.brand-card .card-overlay h3 { margin: 6px 0 10px; color: #fff; font-size: clamp(1.8rem, 3.2vw, 2.6rem); display: block; }
.brand-card .card-overlay p { color: rgba(255,255,255,.88); max-width: 40ch; margin-bottom: 18px; font-size: 0.97rem; }
.brand-card .card-overlay .card-kicker {
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,.8); margin: 0;
}
.card-cta {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(255,255,255,.7); border-radius: 999px; padding: 8px 18px;
  font-size: 0.88rem; font-weight: 500; transition: background .25s, color .25s, border-color .25s;
}
.brand-card:hover .card-cta, .brand-card:focus-visible .card-cta { background: var(--pop); border-color: var(--pop); color: #fff; }
@media (min-width: 900px) { .brand-card img { aspect-ratio: 1 / 1; } }

/* ---------- Alternating section colors ----------
   tone-sand = warm sand band, tone-dark = deep green band */
:root { --sand: #ECE5D7; --sand-line: #D9CFBD; --deep: #16201F; --pop-light: #E3D6BC; /* warm cream accent on dark backgrounds */ }
.tone-sand { background: var(--sand); --line: var(--sand-line); --paper-2: #E3DACA; }
.tone-dark {
  background: var(--deep); color: var(--paper);
  --ink: #F5F2EC; --ink-soft: #A8B3B0; --line: rgba(255,255,255,.14);
}
.tone-dark h1 em, .tone-dark h2 em, .tone-dark .fill-text em { color: var(--pop-light); }
.tone-dark .eyebrow::before, .tone-dark .steps .num { background-color: var(--pop-light); }
.tone-dark .steps .num { background: none; color: var(--pop-light); }
.tone-dark .region-list li span { color: var(--ink-soft); }
.tone-dark .fill-text .w { color: rgba(245,242,236,.2); }
.tone-dark .fill-text .w.lit { color: var(--paper); }
.tone-dark .fill-text em .w.lit { color: var(--pop-light); }
.tone-dark a { color: var(--pop-light); }
@media (prefers-reduced-motion: reduce) { .tone-dark .fill-text .w { color: inherit; } }

/* ---------- Page frame: left rail + right hairline (desktop only) ---------- */
.frame { display: none; }
@media (min-width: 900px) {
  :root { --rail: 44px; }
  body { padding-left: var(--rail); padding-right: 12px; }
  .frame { display: block; }
  .rail {
    position: fixed; top: 0; bottom: 0; left: 0; width: var(--rail); z-index: 60;
    background: var(--paper); border-right: 1px solid var(--line);
    display: flex; align-items: center; justify-content: center;
  }
  .rail span {
    writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap;
    font-family: var(--brand); font-stretch: 125%; font-weight: 700;
    font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft);
  }
  .frame-right {
    position: fixed; top: 0; bottom: 0; right: 12px; width: 0; z-index: 60;
    border-left: 1px solid var(--line); pointer-events: none;
  }
}

/* ---------- Small labels in the logo font + tighter headlines ----------
   Every small all-caps label uses the wide logo font (Archivo Expanded Bold). */
.eyebrow, .project .meta, .slider-caption .meta, .brand-card .card-overlay .card-kicker,
.territory, .facts dt, .footer-top h4 {
  font-family: var(--brand); font-stretch: 125%; font-weight: 700;
  font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase;
}
.territory { font-size: 0.7rem; letter-spacing: 0.14em; }
.facts dt { padding-top: 4px; }
h1 { letter-spacing: -0.03em; line-height: 1.02; }
h2 { letter-spacing: -0.025em; }
.fill-text { letter-spacing: -0.025em; }

/* ---------- Thin line under each section heading ----------
   Label, headline, hairline, then text. */
h2::after {
  content: ""; display: block;
  width: min(280px, 55%); height: 1px; margin-top: clamp(18px, 2.2vw, 26px);
  background: currentColor; opacity: .22;
}
.brand-copy h2 { margin-bottom: 24px; }


/* Faint line along the top of the footer */
.site-footer { border-top: 1px solid rgba(255,255,255,.12); }
.site-footer .amp { color: var(--pop-light); }

/* ---------- Numbered rows that open on click (How we work / Who we work with) ---------- */
.rows { border-top: 1px solid var(--line); }
.row { border-bottom: 1px solid var(--line); }
.row summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: 4.5rem 1fr 32px; align-items: baseline; gap: 12px;
  padding: clamp(20px, 2.6vw, 30px) 0;
}
.row summary::-webkit-details-marker { display: none; }
.row-num { font-family: var(--serif); font-style: italic; font-size: clamp(1rem, 1.6vw, 1.25rem); color: var(--ink-soft); }
.row-title {
  font-family: var(--serif); font-weight: 600; text-transform: uppercase;
  font-size: clamp(1.35rem, 3vw, 2.3rem); line-height: 1.1; letter-spacing: -0.01em;
  transition: color .2s ease;
}
.row summary:hover .row-title { color: var(--pop-dark); }
.row-icon { position: relative; width: 22px; height: 22px; justify-self: end; align-self: center; }
.row-icon::before, .row-icon::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: currentColor;
  transition: transform .35s ease;
}
.row-icon::after { transform: rotate(90deg); }
.row[open] .row-icon::before { transform: rotate(45deg); }
.row[open] .row-icon::after { transform: rotate(135deg); }
.row-body { padding: 0 0 clamp(22px, 3vw, 34px) calc(4.5rem + 12px); max-width: 64ch; }
.row-body p { color: var(--ink-soft); font-size: 1.05rem; margin: 0; }
.row[open] .row-body { animation: row-open .45s ease; }
@keyframes row-open { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) {
  .row summary { grid-template-columns: 2.6rem 1fr 24px; }
  .row-body { padding-left: calc(2.6rem + 12px); }
}
@media (prefers-reduced-motion: reduce) { .row[open] .row-body { animation: none; } .row-icon::before, .row-icon::after { transition: none; } }

/* ---------- Full-screen menu on phones ---------- */
.nav-extra { display: none; }
@media (max-width: 760px) {
  .nav {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    height: calc(100dvh - 68px); overflow-y: auto;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 24px var(--gutter) 40px; background: var(--paper); border-bottom: 0;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s;
  }
  .nav.open {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity .3s ease, transform .3s ease, visibility 0s;
  }
  .nav > a:not(.btn) {
    font-family: var(--serif); font-weight: 600; letter-spacing: -0.02em;
    font-size: clamp(2.2rem, 11vw, 3rem); line-height: 1.1;
    padding: 14px 0; border-bottom: 1px solid var(--line); width: 100%;
  }
  .nav > a:not(.btn)[aria-current="page"] { font-style: italic; border-bottom-color: var(--line); }
  .nav > a:not(.btn):hover { border-bottom-color: var(--line); color: var(--pop-dark); }
  .nav .btn { align-self: flex-start; margin-top: 28px; padding: 14px 26px; font-size: 1rem; }
  .nav-extra { display: block; margin-top: auto; padding-top: 36px; }
  .nav-extra a { display: block; font-size: 1.05rem; padding: 4px 0; border: 0; width: auto; }
  .nav-extra p {
    margin: 14px 0 0; color: var(--ink-soft);
    font-family: var(--brand); font-stretch: 125%; font-weight: 700;
    font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase;
  }
  html.menu-open { overflow: hidden; }
}
@media (max-width: 760px) and (prefers-reduced-motion: reduce) {
  .nav, .nav.open { transition: none; transform: none; }
}

/* ---------- Hamburger menu button (phones) ---------- */
.nav-toggle { border: 0; padding: 10px; margin-right: -10px; border-radius: 8px; background: transparent; }
.burger { position: relative; display: block; width: 26px; height: 18px; }
.burger span {
  position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: var(--ink);
  transition: transform .3s ease, opacity .2s ease, top .3s ease;
}
.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 8px; }
.burger span:nth-child(3) { top: 16px; }
.nav-toggle[aria-expanded="true"] .burger span:nth-child(1) { top: 8px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .burger span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .burger span:nth-child(3) { top: 8px; transform: rotate(-45deg); }
@media (prefers-reduced-motion: reduce) { .burger span { transition: none; } }

/* ---------- Brands page: two brands side by side, details lined up row by row ----------
   Each brand column shares the same rows (subgrid), so photos, names, descriptions,
   tags, and each fact (Best for / Finishes / ...) sit level with each other. */
.brand-col { scroll-margin-top: 90px; }
.brand-col .brand-media { margin-bottom: 28px; }
.brand-col .eyebrow { margin-bottom: 12px; }
.brand-col h2 { margin-bottom: 20px; }
.brand-col .tags { margin: 22px 0 26px; align-content: start; }
.brand-col .facts { margin: 0 0 28px; }
.brand-actions { margin-top: 0; }
.brand-col + .brand-col { margin-top: 72px; padding-top: 56px; border-top: 1px solid var(--line); }
@media (min-width: 900px) {
  .brand-compare {
    display: grid; grid-template-columns: 1fr 1fr;
    column-gap: clamp(32px, 5vw, 80px);
  }
  .brand-col {
    display: grid; grid-row: span 9; grid-template-rows: subgrid; row-gap: 0;
    align-content: start;
  }
  .brand-col + .brand-col { margin-top: 0; padding-top: 0; border-top: 0; }
  .brand-compare { position: relative; }
  .brand-compare::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; border-left: 1px solid var(--line); }
  .brand-col .facts { display: grid; grid-row: span 3; grid-template-rows: subgrid; }
  .brand-col .facts div { align-items: start; }
}

/* Hidden page heading (for search engines and screen readers) */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Homepage locations row: centered */
.territory { justify-content: center; text-align: center; }

/* Brands page: info first, then photos, then buttons */
.brands-compare-section { padding-top: clamp(48px, 7vw, 96px); }
.brand-col .brand-media { margin: 0 0 28px; }
.brand-col .facts { margin-bottom: 32px; }

/* About: compact "Where we work" band */
.territory-band { padding: clamp(44px, 6vw, 72px) 0; }
.territory-head {
  display: flex; justify-content: space-between; align-items: end; gap: 16px 48px; flex-wrap: wrap;
  margin-bottom: clamp(24px, 3vw, 36px);
}
.territory-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.territory-head .lede { font-size: 1rem; max-width: 38ch; margin: 0; }
.region-grid {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.region-grid li { padding: 16px 16px 4px 0; }
.region-grid li + li { padding-left: 16px; border-left: 1px solid var(--line); }
.region-grid strong { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.2rem; }
.region-grid span { display: block; font-size: 0.85rem; color: var(--ink-soft); margin-top: 2px; }
@media (max-width: 760px) {
  .region-grid { grid-template-columns: 1fr 1fr; }
  .region-grid li:nth-child(3) { padding-left: 0; border-left: 0; }
  .region-grid li:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 12px; }
}

/* ---------- Brands page: green title band ---------- */
.brands-title { padding: clamp(56px, 8vw, 104px) 0; }
.brands-title h1 { max-width: none; margin-bottom: 0; white-space: nowrap; font-size: clamp(1.9rem, 7.2vw, 5.4rem); }
.brands-compare-section { overflow-x: clip; }

/* Brand photos sit on the page background (no green strip) */
.brand-col .brand-media { margin: 4px 0 28px; }

/* Green title bands (Brands, Projects): the italic word matches the rest of the title */
.brands-title h1 em { color: inherit; }

/* Projects page title: one line, no intro text */
.hero-one-line { padding-bottom: clamp(40px, 6vw, 72px); }
.hero-one-line h1 { max-width: none; margin-bottom: 0; white-space: nowrap; font-size: clamp(1.9rem, 7.2vw, 5.4rem); }

/* About territory band: locations on one line, right-aligned beside "Where we work" */
.territory-band .territory-head { margin-bottom: 0; align-items: flex-end; }
.region-line {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 0;
  font-family: var(--serif); font-weight: 600; font-size: clamp(1.1rem, 1.7vw, 1.35rem);
}
.region-line li { white-space: nowrap; }
.region-line li + li::before { content: "·"; color: var(--pop-light); margin: 0 14px; }
@media (max-width: 760px) {
  .region-line { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
  .region-line li + li::before { content: none; }
}

/* Territory: the locations line sits level with the middle of "Where we work"
   (the bottom padding matches the thin line drawn under the heading) */
.territory-band .territory-head { align-items: center; }
.region-line { padding-bottom: calc(clamp(18px, 2.2vw, 26px) + 1px); }
@media (max-width: 760px) { .region-line { padding-bottom: 0; } }
