/* ============================================================================
   LONGEVITY PROPERTIES — DESIGN SYSTEM
   Concept: "The Measured Ground" — the vernacular of architectural drawings
   and land survey (dimension lines, tick marks, mono annotations) used to
   label real scale. Palette: premium black & gold — warm black, champagne
   ivory, deep gold (light) / bright gold (dark).

   You normally don't need to edit this file to change wording — edit the
   text on the .html pages, or site.js for the menu/footer. Edit here only to
   restyle. Design tokens (colours, fonts, spacing) live at the very top.
   ==========================================================================*/

/* ---- 1. Fonts ------------------------------------------------------------ */
@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,500;9..144,600&family=Hanken+Grotesk:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap");

/* ---- 2. Design tokens ---------------------------------------------------- */
:root {
  /* Colour — premium black & gold.
     (The --jade* token names are legacy; they now hold the GOLD accent so the
     whole site rethemes from these lines. --jade = deep gold for light
     backgrounds, --jade-tint = bright gold for dark backgrounds.) */
  --ink:        #0f0e0b;   /* rich warm black */
  --ink-2:      #1a1712;   /* warm charcoal — cards on dark */
  --ink-3:      #272016;
  --limestone:  #ece7db;   /* warm champagne-ivory — light background */
  --paper:      #f4efe4;   /* raised cards on light */
  --paper-2:    #fbf8f0;
  --jade:       #7a5f18;   /* PRIMARY accent — deep gold (legible on ivory) */
  --jade-2:     #574212;   /* darker gold — gradients / button hover */
  --jade-tint:  #d9bd6b;   /* bright gold — accent on black */
  --jade-soft:  #ece0c2;   /* pale gold tint */
  --brass:      #c39a52;   /* secondary bronze-gold */
  --muted:      #6f695b;   /* secondary text on light (warm grey) */
  --muted-ink:  #a49a85;   /* secondary text on dark (warm grey) */
  --line:       #d2ccbc;   /* hairline on light */
  --line-ink:   rgba(236,231,219,0.14);

  /* Type */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Hanken Grotesk", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --mono:  "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Scale (fluid) */
  --step--1: clamp(0.78rem, 0.74rem + 0.2vw, 0.88rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.1rem);
  --step-1:  clamp(1.25rem, 1.16rem + 0.45vw, 1.5rem);
  --step-2:  clamp(1.6rem, 1.42rem + 0.9vw, 2.2rem);
  --step-3:  clamp(2.1rem, 1.7rem + 2vw, 3.4rem);
  --step-4:  clamp(2.9rem, 2.1rem + 3.9vw, 5.6rem);
  --step-5:  clamp(3.6rem, 2.2rem + 6.6vw, 8rem);

  /* Space & layout */
  --gutter: clamp(1.25rem, 0.8rem + 2.2vw, 3rem);
  --measure: 68ch;
  --maxw: 1280px;
  --radius: 4px;
  --nav-h: 74px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- 3. Reset & base ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--limestone);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
:focus-visible { outline: 2px solid var(--jade); outline-offset: 3px; border-radius: 2px; }

.mono {
  font-family: var(--mono);
  font-size: var(--step--1);
  letter-spacing: 0.02em;
}

/* ---- 4. Layout helpers --------------------------------------------------- */
.wrap { width: min(100% - var(--gutter) * 2, var(--maxw)); margin-inline: auto; }
.section { padding-block: clamp(4rem, 3rem + 6vw, 8.5rem); position: relative; }
.section--tight { padding-block: clamp(2.75rem, 2rem + 4vw, 5rem); }

.bg-ink { background: var(--ink); color: var(--limestone); }
.bg-ink h1, .bg-ink h2, .bg-ink h3 { color: var(--paper-2); }
.bg-paper { background: var(--paper); }

/* ---- 5. Typography ------------------------------------------------------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.04; letter-spacing: -0.015em; }
.display { font-size: var(--step-4); font-weight: 300; }
.h1 { font-size: var(--step-3); }
.h2 { font-size: var(--step-2); }
.lead { font-size: var(--step-1); line-height: 1.5; color: var(--muted); max-width: 46ch; font-weight: 400; }
.bg-ink .lead { color: var(--muted-ink); }
p { max-width: var(--measure); }
strong { font-weight: 600; }
em { font-style: italic; }

/* Eyebrow — a measured section label with a tick */
.eyebrow {
  font-family: var(--mono);
  font-size: var(--step--1);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--jade);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  margin-bottom: 1.4rem;
}
.bg-ink .eyebrow { color: var(--jade-tint); }
.eyebrow::before {
  content: "";
  width: 2.4rem; height: 1px;
  background: currentColor;
  flex: none;
}
.eyebrow[data-index]::after {
  content: attr(data-index);
  color: var(--muted);
  letter-spacing: 0.1em;
}
.bg-ink .eyebrow[data-index]::after { color: var(--muted-ink); }

/* ---- 6. Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-family: var(--mono);
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.95em 1.6em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: transform 0.4s var(--ease), background 0.3s, color 0.3s, border-color 0.3s;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn__arrow { transition: transform 0.4s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn--primary { background: var(--jade); color: #f4faf7; }
.btn--primary:hover { background: var(--jade-2); }
.btn--ghost { border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.bg-ink .btn--ghost { border-color: var(--line-ink); color: var(--limestone); }
.bg-ink .btn--ghost:hover { border-color: var(--limestone); }
.btn--light { background: var(--paper-2); color: var(--ink); }
.btn--light:hover { background: #fff; }

/* Text link with animated underline */
.link {
  font-family: var(--mono); font-size: var(--step--1);
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--jade); display: inline-flex; align-items: center; gap: 0.5em;
  padding-bottom: 3px; position: relative;
}
.bg-ink .link { color: var(--jade-tint); }
.link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.link:hover::after { transform: scaleX(1); }
.link:hover .btn__arrow { transform: translateX(4px); }

/* ============================================================================
   7. NAVIGATION  (markup injected by site.js)
   ==========================================================================*/
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--limestone) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.4s, border-color 0.4s, height 0.4s var(--ease);
}
.nav--scrolled { background: color-mix(in srgb, var(--limestone) 94%, transparent); border-color: var(--line); height: 62px; }
.nav--dark { background: color-mix(in srgb, var(--ink) 70%, transparent); border-color: var(--line-ink); }
.nav--dark.nav--scrolled { background: color-mix(in srgb, var(--ink) 92%, transparent); }

.nav__inner {
  width: min(100% - var(--gutter) * 2, var(--maxw));
  margin-inline: auto; height: 100%;
  display: flex; align-items: center; gap: 2rem;
}
.nav__skip {
  position: absolute; left: 1rem; top: -100%;
  background: var(--jade); color: #fff; padding: 0.6em 1em; border-radius: var(--radius);
  font-family: var(--mono); font-size: var(--step--1); z-index: 5;
}
.nav__skip:focus { top: 0.6rem; }

.brand { display: inline-flex; align-items: center; gap: 0.7rem; margin-right: auto; }
.brand__logo { height: 38px; width: auto; display: block; }
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand__mark rect { fill: var(--ink); }
.nav--dark .brand__mark rect { fill: var(--limestone); }
.brand__mark--accent { fill: var(--brass) !important; }
.brand__word { display: flex; flex-direction: column; line-height: 1; }
.brand__word-1 { font-family: var(--serif); font-size: 1.32rem; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); }
.nav--dark .brand__word-1 { color: var(--limestone); }
.brand__word-2 {
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.34em;
  text-transform: uppercase; color: var(--muted); margin-top: 3px; padding-left: 2px;
}
.nav--dark .brand__word-2 { color: var(--muted-ink); }

.nav__list { list-style: none; padding: 0; display: flex; gap: 1.9rem; }
.nav__link {
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink); position: relative; padding: 0.4em 0;
  transition: color 0.3s;
}
.nav--dark .nav__link { color: var(--limestone); }
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%;
  background: var(--jade); transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--jade); }
.nav--dark .nav__link[aria-current="page"] { color: var(--jade-tint); }

.nav__cta {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.7em 1.3em; border: 1px solid var(--ink); border-radius: var(--radius);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.nav__cta:hover { background: var(--jade); border-color: var(--jade); color: #fff; }
.nav--dark .nav__cta { border-color: var(--line-ink); color: var(--limestone); }
.nav--dark .nav__cta:hover { background: var(--jade); border-color: var(--jade); }

.nav__toggle { display: none; width: 44px; height: 44px; position: relative; margin-left: auto; }
.nav__toggle span {
  position: absolute; left: 11px; width: 22px; height: 1.6px; background: var(--ink);
  transition: transform 0.35s var(--ease), opacity 0.2s;
}
.nav--dark .nav__toggle span { background: var(--limestone); }
.nav__toggle span:nth-child(1) { top: 16px; }
.nav__toggle span:nth-child(2) { top: 22px; }
.nav__toggle span:nth-child(3) { top: 28px; }
.nav--open .nav__toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav--open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav--open .nav__toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav__drawer {
  /* NB: .nav has backdrop-filter, which makes it the containing block for this
     fixed child — so use an explicit viewport-based height, not bottom:0. */
  position: fixed; top: var(--nav-h); left: 0; right: 0;
  height: calc(100vh - var(--nav-h)); z-index: 1; overflow-y: auto;
  background: var(--limestone);
  padding: 2rem var(--gutter); transform: translateY(-8px); opacity: 0;
  transition: opacity 0.35s, transform 0.35s var(--ease);
}
.nav--open .nav__drawer { opacity: 1; transform: translateY(0); }
.nav--dark .nav__drawer { background: var(--ink); }
.nav__list--drawer { flex-direction: column; gap: 0; }
.nav__list--drawer li { border-bottom: 1px solid var(--line); }
.nav--dark .nav__list--drawer li { border-color: var(--line-ink); }
.nav__list--drawer .nav__link { display: block; padding: 1.15rem 0; font-size: 1rem; }
.nav__link--cta { color: var(--jade) !important; }

.nav__progress { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: transparent; }
.nav__progress span { display: block; height: 100%; width: 0; background: var(--jade); transition: width 0.1s linear; }

/* Narrow desktop / tablet: collapse the inline nav to the hamburger + drawer
   so the links can't wrap and the CTA can't clip. (The mobile site handles
   phones; this covers a desktop browser narrowed below ~900px.) */
@media (max-width: 900px) {
  .nav__menu, .nav__cta { display: none; }
  .nav__toggle { display: block; }
}

/* ============================================================================
   8. HERO
   ==========================================================================*/
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  background: var(--ink); color: var(--limestone); overflow: hidden;
  padding-top: var(--nav-h);
}
/* Parallax "rising strata" layers */
.hero__strata { position: absolute; inset: 0; z-index: 0; }
.hero__strata span {
  position: absolute; left: -5%; width: 110%; height: 34%;
  background: linear-gradient(180deg, transparent, rgba(201,161,74,0.14));
}
.hero__strata span:nth-child(1) { bottom: 0; }
.hero__strata span:nth-child(2) { bottom: 26%; height: 26%; opacity: 0.7; }
.hero__strata span:nth-child(3) { bottom: 52%; height: 22%; opacity: 0.5; }
.hero__grid {
  display: none;   /* grid lines removed from the hero per request */
  position: absolute; inset: 0; z-index: 0; opacity: 0.5;
  background-image:
    linear-gradient(rgba(232,231,225,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232,231,225,0.045) 1px, transparent 1px);
  background-size: clamp(48px, 7vw, 96px) clamp(48px, 7vw, 96px);
  -webkit-mask-image: radial-gradient(120% 100% at 70% 20%, #000 30%, transparent 78%);
          mask-image: radial-gradient(120% 100% at 70% 20%, #000 30%, transparent 78%);
}
.hero__glow {
  position: absolute; z-index: 0; width: 60vw; height: 60vw; right: -10vw; top: -12vw;
  background: radial-gradient(circle, rgba(201,161,74,0.42), transparent 62%);
  filter: blur(10px);
}
.hero__photo {
  position: absolute; z-index: 0; inset: 0 0 0 auto; width: 46%;
  background-size: cover; background-position: center;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 55%);
          mask-image: linear-gradient(90deg, transparent, #000 55%);
  opacity: 0.5; mix-blend-mode: luminosity; filter: sepia(0.35) brightness(0.9);
}
.hero__inner { position: relative; z-index: 2; padding-bottom: clamp(3rem, 6vh, 6rem); }
/* Ghost button sits on the dark hero — give it light treatment */
.hero .btn--ghost { border-color: var(--line-ink); color: var(--limestone); }
.hero .btn--ghost:hover { border-color: var(--limestone); }
.hero__eyebrow { color: var(--jade-tint); }
.hero__title { font-size: var(--step-5); font-weight: 300; line-height: 0.98; letter-spacing: -0.025em; max-width: 15ch; }
.hero__title em { font-style: italic; color: var(--brass); }
.hero__meta { display: flex; flex-wrap: wrap; gap: 2rem 3.5rem; align-items: flex-end; margin-top: clamp(2.5rem, 5vh, 4rem); }
.hero__lead { max-width: 40ch; color: var(--muted-ink); font-size: var(--step-1); }
.hero__scroll {
  position: absolute; left: var(--gutter); bottom: 1.4rem; z-index: 3;
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted-ink); display: flex; align-items: center; gap: 0.7rem;
}
.hero__scroll::before { content: ""; width: 1px; height: 34px; background: linear-gradient(var(--jade-tint), transparent); animation: scrollpulse 2.4s var(--ease) infinite; }
@keyframes scrollpulse { 0%,100% { transform: scaleY(0.4); transform-origin: top; opacity: 0.4; } 50% { transform: scaleY(1); opacity: 1; } }

/* ============================================================================
   9. DIMENSION-LINE STAT BLOCK  — the signature element
   ==========================================================================*/
.stats { display: grid; gap: clamp(1.5rem, 1rem + 2.5vw, 3.5rem); grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.stat { position: relative; padding-top: 1.5rem; }
.stat__dim {
  position: absolute; top: 0; left: 0; width: 100%; height: 1px;
  background: currentColor; opacity: 0.28;
  transform: scaleX(0); transform-origin: left;
  transition: transform 1s var(--ease);
}
.stat__dim::before, .stat__dim::after {
  content: ""; position: absolute; top: -4px; width: 1px; height: 9px; background: currentColor;
}
.stat__dim::before { left: 0; }
.stat__dim::after  { right: 0; }
.is-visible .stat__dim { transform: scaleX(1); }
.stat__num { font-family: var(--serif); font-size: var(--step-3); font-weight: 400; line-height: 1; letter-spacing: -0.02em; display: flex; align-items: baseline; gap: 0.1em; }
.stat__num .u { font-size: 0.5em; color: var(--jade); font-family: var(--sans); font-weight: 600; }
.bg-ink .stat__num .u { color: var(--jade-tint); }
.stat__label { font-family: var(--mono); font-size: var(--step--1); letter-spacing: 0.03em; color: var(--muted); margin-top: 0.7rem; max-width: 24ch; }
.bg-ink .stat__label { color: var(--muted-ink); }

/* ============================================================================
   10. SECTION HEADERS / MEASURED DIVIDER
   ==========================================================================*/
.sec-head { display: grid; grid-template-columns: 1fr; gap: 1.4rem; margin-bottom: clamp(2.5rem, 4vw, 4.5rem); max-width: 62ch; }
.sec-head--split { grid-template-columns: 1.2fr 1fr; gap: 2rem 4rem; max-width: none; align-items: end; }
@media (max-width: 760px) { .sec-head--split { grid-template-columns: 1fr; } }

.rule { display: flex; align-items: center; gap: 1rem; color: var(--muted); font-family: var(--mono); font-size: var(--step--1); letter-spacing: 0.1em; }
.rule::before, .rule::after { content: ""; height: 1px; background: var(--line); }
.rule::before { width: 12px; }
.rule::after { flex: 1; }
.bg-ink .rule { color: var(--muted-ink); }
.bg-ink .rule::before, .bg-ink .rule::after { background: var(--line-ink); }

/* ============================================================================
   11. CARDS
   ==========================================================================*/
.grid { display: grid; gap: clamp(1.25rem, 1rem + 1.5vw, 2rem); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
@media (max-width: 900px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--2, .grid--3 { grid-template-columns: 1fr; } }

.card {
  position: relative; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(1.5rem, 1rem + 1.5vw, 2.4rem);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s;
  overflow: hidden;
}
.card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(120% 120% at 100% 0%, rgba(201,161,74,0.06), transparent 55%);
  transition: opacity 0.5s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -30px rgba(15,14,11,0.45); border-color: color-mix(in srgb, var(--jade) 40%, var(--line)); }
.card:hover::after { opacity: 1; }
.card__index { font-family: var(--mono); font-size: var(--step--1); color: var(--jade); letter-spacing: 0.08em; }
.card__title { font-family: var(--serif); font-size: var(--step-1); margin: 0.9rem 0 0.6rem; line-height: 1.1; }
.card__body { color: var(--muted); font-size: var(--step-0); }
.card__body p { max-width: 42ch; }

.bg-ink .card { background: var(--ink-2); border-color: var(--line-ink); }
.bg-ink .card__body { color: var(--muted-ink); }
.bg-ink .card__title { color: var(--paper-2); }

/* A card whose "image" is a CSS-drawn architectural plate */
.plate { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: var(--ink); }
.plate__grid {
  position: absolute; inset: 0; opacity: 0.5;
  background-image: linear-gradient(rgba(232,231,225,0.09) 1px, transparent 1px), linear-gradient(90deg, rgba(232,231,225,0.09) 1px, transparent 1px);
  background-size: 26px 26px;
}
.plate__mass { position: absolute; inset: auto 0 0 0; }
.plate__mass span { position: absolute; bottom: 0; background: linear-gradient(180deg, var(--jade-2), var(--ink)); border: 1px solid rgba(201,161,74,0.4); border-bottom: none; }
.plate__tag { position: absolute; left: 1rem; top: 1rem; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--jade-tint); }
.plate__scale { position: absolute; right: 1rem; bottom: 1rem; font-family: var(--mono); font-size: 0.62rem; color: var(--muted-ink); display: flex; align-items: center; gap: 0.5rem; }
.plate__scale::before { content: ""; width: 30px; height: 1px; background: var(--muted-ink); position: relative; }

/* Photo plate — a real image, warmed to the gold palette, with label gradient */
.plate--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: sepia(0.5) saturate(0.82) brightness(0.9) contrast(1.05); transition: transform 0.7s var(--ease); }
.card:hover .plate--photo img { transform: scale(1.04); }
.plate--photo::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(15,14,11,0.5) 0%, transparent 34%, transparent 52%, rgba(15,14,11,0.74) 100%), linear-gradient(120deg, rgba(122,95,24,0.16), transparent 55%); }
.plate--photo .plate__tag, .plate--photo .plate__scale { z-index: 2; }
.plate--photo .plate__scale { color: var(--paper-2); }
.plate--photo .plate__scale::before { background: var(--paper-2); }

/* ============================================================================
   12. PROJECT LIST TABLE
   ==========================================================================*/
.ptable { width: 100%; border-collapse: collapse; font-size: var(--step-0); }
.ptable thead th {
  text-align: left; font-family: var(--mono); font-size: var(--step--1); font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
  padding: 0 1rem 1rem 0; border-bottom: 1px solid var(--ink);
}
.ptable td { padding: 1.15rem 1rem 1.15rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.ptable tbody tr { transition: background 0.3s; }
.ptable tbody tr:hover { background: color-mix(in srgb, var(--jade) 6%, transparent); }
.ptable .p-name { font-family: var(--serif); font-size: var(--step-1); }
.ptable .p-val { font-family: var(--mono); white-space: nowrap; }
.tag { display: inline-flex; align-items: center; gap: 0.45em; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.3em 0.7em; border-radius: 20px; border: 1px solid var(--line); color: var(--muted); }
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.tag--on { color: var(--jade); border-color: color-mix(in srgb, var(--jade) 40%, var(--line)); }
.tag--on::before { background: var(--jade); box-shadow: 0 0 0 3px color-mix(in srgb, var(--jade) 18%, transparent); }
.tag--done { color: var(--brass); border-color: color-mix(in srgb, var(--brass) 45%, var(--line)); }
.tag--done::before { background: var(--brass); }
.ptable-wrap { overflow-x: auto; }
@media (max-width: 680px) {
  .ptable, .ptable thead, .ptable tbody, .ptable tr, .ptable td { display: block; width: 100%; }
  .ptable thead { display: none; }
  .ptable tr { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; margin-bottom: 1rem; }
  .ptable td { border: none; padding: 0.35rem 0; }
  .ptable td::before { content: attr(data-label); font-family: var(--mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); display: block; }
}

/* ============================================================================
   13. FEATURE / SPLIT SECTIONS
   ==========================================================================*/
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 1rem + 5vw, 6rem); align-items: center; }
.split--reverse .split__media { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--reverse .split__media { order: 0; } }

.figure { position: relative; border-radius: var(--radius); overflow: hidden; }
.figure img { width: 100%; height: 100%; object-fit: cover; }
.figure__cap { position: absolute; left: 1rem; bottom: 1rem; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.06em; color: #fff; background: rgba(15,14,11,0.55); backdrop-filter: blur(4px); padding: 0.4em 0.7em; border-radius: 3px; }

/* Tall framed photo (About) — warmed toward the gold palette + corner labels */
.figure--tall { aspect-ratio: 4 / 5; border: 1px solid var(--line); }
.figure--tall img { filter: sepia(0.5) saturate(0.85) brightness(0.92) contrast(1.04); }
.figure--tall::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(15,14,11,0.4) 0%, transparent 28%, transparent 60%, rgba(15,14,11,0.66) 100%),
    linear-gradient(120deg, rgba(122,95,24,0.14), transparent 55%);
}
.figure__tag { position: absolute; z-index: 2; left: 1rem; top: 1rem; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--jade-tint); }
.figure__scale { position: absolute; z-index: 2; right: 1rem; bottom: 1rem; font-family: var(--mono); font-size: 0.62rem; color: var(--paper-2); display: flex; align-items: center; gap: 0.5rem; }
.figure__scale::before { content: ""; width: 30px; height: 1px; background: currentColor; }

/* Bordered "ledger" list with dimension ticks */
.ledger { list-style: none; padding: 0; }
.ledger li { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; padding: 1.3rem 0; border-top: 1px solid var(--line); }
.ledger li:last-child { border-bottom: 1px solid var(--line); }
.bg-ink .ledger li { border-color: var(--line-ink); }
.ledger .k { font-family: var(--mono); font-size: var(--step--1); color: var(--jade); letter-spacing: 0.06em; padding-top: 0.35rem; }
.bg-ink .ledger .k { color: var(--jade-tint); }
.ledger .t { font-family: var(--serif); font-size: var(--step-1); line-height: 1.15; }
.ledger .d { color: var(--muted); margin-top: 0.4rem; font-size: var(--step-0); }
.bg-ink .ledger .d { color: var(--muted-ink); }

/* ============================================================================
   14. LOGO MARQUEE (clients)
   ==========================================================================*/
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 3.5rem; width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { font-family: var(--serif); font-size: clamp(1.1rem, 1.6vw, 1.6rem); color: var(--muted); white-space: nowrap; opacity: 0.75; }
.bg-ink .marquee__item { color: var(--muted-ink); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; flex-wrap: wrap; } }

/* ============================================================================
   15. PARALLAX BAND
   ==========================================================================*/
.band { position: relative; overflow: hidden; background: var(--ink); color: var(--limestone); }
.band__bg { position: absolute; inset: -15% 0; background-size: cover; background-position: center; opacity: 0.28; will-change: transform; }
.band__veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,14,11,0.7), rgba(15,14,11,0.9)); }
.band__inner { position: relative; z-index: 2; }
.band .display, .band .h1 { max-width: 20ch; }

/* ============================================================================
   16. PAGE HEADER (interior pages)
   ==========================================================================*/
.phead { position: relative; background: var(--ink); color: var(--limestone); padding-top: calc(var(--nav-h) + clamp(3rem, 8vh, 6rem)); padding-bottom: clamp(3rem, 7vh, 5.5rem); overflow: hidden; }
.phead__grid {
  position: absolute; inset: 0; opacity: 0.4;
  background-image: linear-gradient(rgba(232,231,225,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(232,231,225,0.05) 1px, transparent 1px);
  background-size: 74px 74px;
  -webkit-mask-image: radial-gradient(100% 120% at 80% 0%, #000, transparent 70%);
          mask-image: radial-gradient(100% 120% at 80% 0%, #000, transparent 70%);
}
.phead__glow { position: absolute; right: -10vw; top: -20vw; width: 46vw; height: 46vw; background: radial-gradient(circle, rgba(201,161,74,0.4), transparent 62%); }
.phead__inner { position: relative; z-index: 2; }
.phead__crumb { font-family: var(--mono); font-size: var(--step--1); letter-spacing: 0.14em; text-transform: uppercase; color: var(--jade-tint); display: flex; gap: 0.6rem; margin-bottom: 1.6rem; }
.phead__crumb span { color: var(--muted-ink); }
.phead__title { font-size: var(--step-4); font-weight: 300; line-height: 1; max-width: 16ch; }
.phead__title em { font-style: italic; color: var(--brass); }
.phead__lead { color: var(--muted-ink); font-size: var(--step-1); max-width: 48ch; margin-top: 1.6rem; }

/* ============================================================================
   17. CONTACT
   ==========================================================================*/
.form { display: grid; gap: 1.4rem; }
/* Honeypot: off-screen for people, still present for bots to fill. */
.hp-field { position: absolute !important; left: -9999px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }
.field { display: grid; gap: 0.5rem; }
.field label { font-family: var(--mono); font-size: var(--step--1); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea, .field select {
  font-family: var(--sans); font-size: var(--step-0); color: var(--ink);
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0.9em 1em; transition: border-color 0.3s, box-shadow 0.3s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--jade); box-shadow: 0 0 0 3px color-mix(in srgb, var(--jade) 16%, transparent);
}
.field textarea { resize: vertical; min-height: 130px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.form__note { font-family: var(--mono); font-size: var(--step--1); color: var(--muted); }

.office { padding: 1.6rem 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr; gap: 1.4rem; }
.office:last-child { border-bottom: 1px solid var(--line); }
.office__city { font-family: var(--serif); font-size: var(--step-1); }
.office__role { font-family: var(--mono); font-size: var(--step--1); color: var(--jade); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 0.2rem; }
.office address { font-style: normal; color: var(--muted); margin-top: 0.7rem; line-height: 1.7; }
.office__phone { font-family: var(--mono); font-size: var(--step--1); color: var(--ink); display: inline-block; margin-top: 0.4rem; }

/* ============================================================================
   18. FOOTER  (markup injected by site.js)
   ==========================================================================*/
.foot { background: var(--ink); color: var(--muted-ink); padding: clamp(3.5rem, 5vw, 6rem) 0 2rem; position: relative; }
.foot::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 1px; background: linear-gradient(90deg, var(--jade), transparent 55%); }
.foot__inner { width: min(100% - var(--gutter) * 2, var(--maxw)); margin-inline: auto; }
.foot__top { display: grid; grid-template-columns: 1.6fr 1fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid var(--line-ink); }
@media (max-width: 720px) { .foot__top { grid-template-columns: 1fr; gap: 2rem; } }
.foot__logo { color: var(--limestone); font-size: var(--step-2); }
.foot__logo-img { height: 82px; width: auto; display: block; }
.foot__blurb { color: var(--muted-ink); margin: 1rem 0 1.4rem; max-width: 44ch; }
.foot__mail { font-family: var(--mono); font-size: var(--step--1); color: var(--jade-tint); border-bottom: 1px solid transparent; transition: border-color 0.3s; }
.foot__mail:hover { border-color: var(--jade-tint); }
.foot__heading { color: var(--muted); text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 1.2rem; }
.foot__nav ul { list-style: none; padding: 0; display: grid; gap: 0.7rem; }
.foot__nav a { font-family: var(--mono); font-size: var(--step--1); color: var(--muted-ink); transition: color 0.3s; }
.foot__nav a:hover, .foot__nav a[aria-current="page"] { color: var(--limestone); }
.foot__offices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; padding: 2.5rem 0; border-bottom: 1px solid var(--line-ink); }
@media (max-width: 820px) { .foot__offices { grid-template-columns: repeat(2, 1fr); gap: 2rem 1.5rem; } }
@media (max-width: 480px) { .foot__offices { grid-template-columns: 1fr; } }
.foot__office-city { font-family: var(--serif); font-size: var(--step-1); color: var(--limestone); }
.foot__office-role { color: var(--jade-tint); text-transform: uppercase; letter-spacing: 0.06em; margin: 0.15rem 0 0.7rem; }
.foot__office address { font-style: normal; font-size: var(--step--1); line-height: 1.7; }
.foot__phone { font-family: var(--mono); font-size: var(--step--1); color: var(--muted-ink); display: inline-block; margin-top: 0.5rem; }
.foot__base { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.8rem; }
.foot__base a { color: var(--jade-tint); }

/* ============================================================================
   19. SCROLL-REVEAL
   ==========================================================================*/
/* Reveal only hides when JS is active (html.js). Without JS, content shows.
   Note: the visible rule is gated under html.js too, so it out-specifies the
   hide rule (else the extra `html` type selector would keep it hidden). */
html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
html.js .reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .stat__dim { transform: scaleX(1); }
  .hero__scroll::before { animation: none; }
}

/* Pre-shell paint: hide injected regions until filled to avoid flash */
.nav:empty, [data-partial]:empty { min-height: 0; }

/* ============================================================================
   20. AWARD BLOCK (About) + TRACK-RECORD REGIONS + SMALL PLATE
   ==========================================================================*/
.award { max-width: 48ch; padding-top: 1.6rem; border-top: 1px solid var(--line-ink); }
.award__k { color: var(--jade-tint); text-transform: uppercase; letter-spacing: 0.14em; }
.award__t { font-family: var(--serif); font-size: var(--step-2); margin: 0.6rem 0 0.3rem; color: var(--paper-2); line-height: 1.1; }
.award__d { color: var(--muted-ink); font-family: var(--mono); font-size: var(--step--1); }

.regions { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(2rem, 1rem + 3vw, 3.5rem) clamp(2rem, 1rem + 4vw, 5rem); }
@media (max-width: 760px) { .regions { grid-template-columns: 1fr; } }
.region__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); padding-bottom: 0.8rem; }
.region__head h3 { font-size: var(--step-2); }
.region__count { color: var(--muted); }
.region .ledger { margin-top: 0.2rem; }
.region .ledger li:first-child { border-top: none; }
.region .ledger li:last-child { border-bottom: none; }

.plate--sm { aspect-ratio: 16 / 9; }

/* ---- utilities ---- */
.u-mt-s { margin-top: 1rem; } .u-mt-m { margin-top: 2rem; } .u-mt-l { margin-top: 3.5rem; }
.u-center { text-align: center; margin-inline: auto; }
.u-max { max-width: 60ch; }
.flex-btns { display: flex; flex-wrap: wrap; gap: 1rem; }
