/* =====================================================================
   Kezar Falls Mill, Heritage Editorial design system
   A woolen mill on the Ossipee River, reborn.
   Palette: paper & ink, mill-brick red, pine green.
   Type: Fraunces (display) · Newsreader (reading) · IBM Plex Mono (meta)
   ===================================================================== */

:root {
  /* Paper & ink */
  --paper:      #f3ecdf;
  --paper-2:    #ece2cf;   /* alt section */
  --paper-3:    #e4d8c1;   /* deeper card */
  --ink:        #241d15;
  --ink-soft:   #574b3b;
  --ink-faint:  #8a7c66;

  /* Accents */
  --brick:      #9e3b23;
  --brick-deep: #7c2c18;
  --brick-tint: #c9a58f;
  --pine:       #253429;
  --pine-2:     #1c281f;
  --pine-soft:  #3c4e41;
  --brass:      #a9812f;

  /* Lines */
  --line:       rgba(36,29,21,.16);
  --line-2:     rgba(36,29,21,.28);
  --line-paper: rgba(243,236,223,.22);

  /* Type, 19th-century American industrial voice:
     Besley (Clarendon slab) · Big Shoulders (condensed gothic signage) · Libre Caslon (book face) */
  --display: "Besley", "Clarendon", Georgia, serif;
  --body:    "Libre Caslon Text", Georgia, serif;
  --sans:    "Big Shoulders Text", "Arial Narrow", sans-serif;
  /* label face */
  --mono:    var(--sans);

  /* Metrics */
  --pad: clamp(1.25rem, 5vw, 5.5rem);
  --maxw: 1340px;
  --readw: 720px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ------------------------------------------------------------------ reset */
*, *::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(--body);
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: clamp(1.02rem, .55vw + .9rem, 1.18rem);
  line-height: 1.62;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(120% 90% at 100% 0%, rgba(158,59,35,.05), transparent 55%),
    radial-gradient(120% 90% at 0% 100%, rgba(37,52,41,.06), transparent 55%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* faint paper grain, tiled on the (scrolling) body so there's no fixed compositing layer */
body {
  background-image:
    radial-gradient(120% 90% at 100% 0%, rgba(158,59,35,.05), transparent 55%),
    radial-gradient(120% 90% at 0% 100%, rgba(37,52,41,.06), transparent 55%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.03'/%3E%3C/svg%3E");
  background-attachment: scroll;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--brick); color: var(--paper); }

/* ------------------------------------------------------------------ type */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -.015em;
  text-wrap: balance;
}
p { text-wrap: pretty; }
em, i { font-style: italic; }

.eyebrow {
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--brick);
  display: inline-flex;
  align-items: center;
  gap: .9em;
}
.eyebrow::before {
  content: "";
  width: 2.2em;
  height: 1px;
  background: currentColor;
  opacity: .65;
}
.eyebrow::after { display: none; }
.eyebrow.no-rule::before { display: none; }

/* 19th-century print rules */
.scotch { border: 0; height: 7px; border-top: 3px solid var(--ink); border-bottom: 1px solid var(--ink); background: transparent; }
.scotch--thin { height: 5px; border-top-width: 1px; }
.folio {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--body); font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft);
}

/* ------------------------------------------------------------------ layout */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(3.5rem, 9vw, 8rem); position: relative; z-index: 2; }
.section--tight { padding-block: clamp(2.5rem, 6vw, 5rem); }
.rule { height: 1px; background: var(--line); border: 0; }

/* ------------------------------------------------------------------ header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 30px -22px rgba(36,29,21,.55); }
.site-header__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: .85rem var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand { display: inline-flex; align-items: center; gap: .7rem; }
.brand__mark { width: 38px; height: 38px; flex: none; color: var(--brick); }
.brand__name {
  font-family: var(--display);
  font-size: 1.28rem;
  font-weight: 500;
  letter-spacing: -.01em;
  line-height: 1;
}
.brand__sub {
  display: block;
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: .3em;
}

/* nav */
.nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2.1rem); }
.nav__list { list-style: none; display: flex; align-items: center; gap: clamp(1rem, 2vw, 2.1rem); padding: 0; }
.nav__link {
  font-family: var(--mono);
  font-size: .9rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-block: .4rem;
  position: relative;
  transition: color .25s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -.1rem;
  width: 100%;
  height: 1px;
  background: var(--brick);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--ink); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }

/* dropdown */
.nav__item--has-menu { position: relative; }
.nav__menu {
  position: absolute;
  top: calc(100% + .4rem);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 230px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 24px 50px -28px rgba(36,29,21,.5);
  padding: .5rem;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}
.nav__item--has-menu:hover .nav__menu,
.nav__item--has-menu:focus-within .nav__menu {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.nav__menu li a {
  display: flex; align-items: baseline; gap: .7rem;
  padding: .6rem .75rem;
  font-family: var(--body);
  font-size: 1rem;
  color: var(--ink-soft);
  transition: background .2s, color .2s;
}
.nav__menu li a:hover { background: var(--paper-3); color: var(--ink); }
.nav__menu .idx { font-family: var(--mono); font-size: .68rem; color: var(--brick); letter-spacing: .1em; }

.nav__link--menu { display: inline-flex; align-items: center; gap: .4rem; cursor: pointer; }
.nav__link--menu .caret { width: .5rem; height: .5rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-1px); }

/* mobile nav toggle */
.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  align-items: center; justify-content: center;
  border-radius: 2px;
}
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  content: ""; display: block; width: 20px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease), opacity .2s;
}
.nav__toggle span::before { transform: translateY(-6px); }
.nav__toggle span::after  { transform: translateY(4.5px); }
body.nav-open .nav__toggle span { background: transparent; }
body.nav-open .nav__toggle span::before { transform: rotate(45deg); }
body.nav-open .nav__toggle span::after  { transform: rotate(-45deg) translateY(-1.5px); }

/* ------------------------------------------------------------------ buttons */
.btn {
  --bg: var(--brick); --fg: var(--paper);
  display: inline-flex; align-items: center; gap: .8em;
  font-family: var(--sans);
  font-weight: 600;
  font-size: .88rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: 1.1em 2em;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--bg);
  position: relative;
  overflow: hidden;
  transition: color .3s var(--ease), border-color .3s var(--ease);
  cursor: pointer;
}
.btn::after {
  content: ""; position: absolute; inset: 0; background: var(--ink);
  transform: translateY(101%); transition: transform .4s var(--ease); z-index: 0;
}
.btn > * { position: relative; z-index: 1; }
.btn span { position: relative; z-index: 1; }
.btn:hover::after { transform: translateY(0); }
.btn:hover { border-color: var(--ink); }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.btn--ghost { --bg: transparent; --fg: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { --fg: var(--paper); }
.btn--on-dark { --bg: var(--brick); --fg: var(--paper); }
.btn--ghost.btn--on-dark { --bg: transparent; --fg: var(--paper); border-color: var(--line-paper); }
.btn--ghost.btn--on-dark::after { background: var(--paper); }
.btn--ghost.btn--on-dark:hover { --fg: var(--pine); border-color: var(--paper); }

/* text link */
.tlink {
  font-family: var(--sans); font-weight: 600; font-size: .86rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--brick); display: inline-flex; align-items: center; gap: .6em; padding-bottom: .3em;
  border-bottom: 1px solid var(--brick); transition: color .25s, border-color .25s;
}
.tlink:hover { color: var(--ink); border-color: var(--ink); }

/* ------------------------------------------------------------------ hero (home), broadside */
.bhero { position: relative; z-index: 2; padding-top: clamp(1.2rem, 3vw, 2.4rem); }

/* backdrop variant, full-bleed photograph behind the broadside type */
.bhero--backdrop {
  padding: 0;
  color: var(--paper);
  isolation: isolate;
  position: relative;
  display: grid;
}
.bhero__bg {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: sepia(.25) saturate(.78) contrast(1.02) brightness(.92);
}
.bhero--backdrop::after { /* ink wash so paper-colored type stays legible */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(rgba(20,16,11,.66), rgba(20,16,11,.5) 34%, rgba(20,16,11,.72) 72%, rgba(24,19,13,.9)),
    radial-gradient(110% 85% at 32% 72%, rgba(20,16,11,.5), transparent 68%);
  box-shadow: inset 0 0 0 1px rgba(243,236,223,.14), inset 0 0 120px rgba(20,16,11,.5);
}
.bhero__inner {
  grid-area: 1 / 1; z-index: 2;
  width: 100%; max-width: var(--maxw); margin-inline: auto;
  padding: clamp(1.2rem, 2.5vw, 2rem) var(--pad) clamp(1.6rem, 3.5vw, 2.4rem);
  min-height: min(calc(100vh - 90px), 880px);
  display: flex; flex-direction: column; justify-content: space-between; gap: clamp(1.4rem, 3vw, 2.2rem);
}
.bhero--backdrop .scotch { border-color: rgba(243,236,223,.75); }
.bhero--backdrop .folio { color: rgba(243,236,223,.85); }
.bhero--backdrop .bhero__the { color: rgba(243,236,223,.8); }
.bhero--backdrop .bhero__the::before, .bhero--backdrop .bhero__the::after { color: var(--brick-tint); }
.bhero--backdrop .bhero__title { color: var(--paper); text-shadow: 0 2px 30px rgba(20,16,11,.45); }
.bhero--backdrop .bhero__title .row2 em { color: #e2bb9e; }
.bhero--backdrop .bhero__deck { color: rgba(243,236,223,.85); }
.bhero--backdrop .plate-cap { color: rgba(243,236,223,.7); border-top: 1px solid rgba(243,236,223,.25); padding-top: 1rem; }
.bhero--backdrop .plate-cap b { color: var(--paper); }

/* ---- asymmetric hero composition (bottom-left) ---- */
.bhero__topline {
  display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  font-family: var(--sans); font-weight: 500; font-size: .82rem; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(243,236,223,.8);
  border-bottom: 1px solid rgba(243,236,223,.28);
  padding-bottom: .9rem;
}
.bhero__bottom { max-width: 1060px; text-align: left; }
.bhero__h {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.5rem, 6.2vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -.01em;
  color: var(--paper);
  text-shadow: 0 2px 26px rgba(20,16,11,.65);
  text-wrap: balance;
}
/* lead-in plate set INSIDE the h1 so it locks to the title, painted-sign panel, own line above */
.bhero__h .lead-in {
  display: table;
  font-family: var(--sans); font-weight: 700;
  font-size: clamp(.84rem, 1.05vw, 1rem);
  letter-spacing: .3em; text-transform: uppercase;
  color: var(--paper);
  background: var(--brick);
  padding: .62em 1.1em .55em 1.25em;
  margin-bottom: .8em;
  box-shadow: 0 10px 30px -12px rgba(0,0,0,.6);
  text-shadow: none;
}
/* variant: plate sits on its own line BELOW the headline */
.bhero__h .lead-in--below { display: table; margin-top: 1.1em; margin-bottom: 0; }
.bhero__h em { font-style: italic; color: #ecc9a8; }
.bhero__program {
  font-family: var(--sans); font-weight: 500; font-size: clamp(.86rem, .35vw + .76rem, 1.02rem);
  letter-spacing: .12em; text-transform: uppercase; line-height: 1.85;
  color: rgba(247,241,229,.96); max-width: 78ch; margin-top: 1.3rem;
  text-shadow: 0 1px 10px rgba(20,16,11,.75);
}
.bhero__program b { color: #fff; font-weight: 700; }
.bhero__program .sep { color: #d99c72; padding-inline: .45em; }
.bhero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 1.8rem; margin-top: 1.6rem; }
.bhero__cta .tlink { color: rgba(243,236,223,.9); border-color: rgba(243,236,223,.5); }
.bhero__cta .tlink:hover { color: var(--paper); border-color: var(--paper); }

/* ---- marquee strip ---- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--paper-2); position: relative; z-index: 2; }
.marquee__track {
  display: flex; align-items: center; gap: 2.6rem; width: max-content;
  padding-block: 1rem; padding-inline: 1.3rem;
  font-family: var(--sans); font-weight: 500; font-size: .86rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink-soft);
  animation: mq 46s linear infinite;
}
.marquee__track .dot { color: var(--brick); font-size: .8em; }
@keyframes mq { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* ---- inline stat line ---- */
.statline { display: flex; flex-wrap: wrap; gap: 2rem 0; }
.statline > div { border-left: 1px solid var(--line-2); padding-inline: clamp(1.4rem, 3vw, 2.6rem); }
.statline > div:first-child { border-left: 0; padding-left: 0; }
.statline .n { font-family: var(--display); font-size: clamp(2.4rem, 4.5vw, 3.8rem); line-height: 1; letter-spacing: -.03em; }
.statline .n sup { font-size: .45em; color: var(--brick); }
.statline .l { font-family: var(--sans); font-weight: 500; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-faint); margin-top: .6rem; }

/* ---- editorial building rows ---- */
.brows { border-bottom: 1px solid var(--line-2); }
.brow {
  position: relative;
  display: grid; gap: 1.2rem 2.5rem;
  padding-block: clamp(1.8rem, 4vw, 3rem);
  border-top: 1px solid var(--line-2);
  align-items: center;
}
@media (min-width: 900px) {
  .brow { grid-template-columns: 72px 1.15fr .85fr; }
  .brow--rev { grid-template-columns: 72px .85fr 1.15fr; }
  .brow--rev .brow__media { order: -1; grid-column: 2; }
  .brow--rev .brow__body { grid-column: 3; }
  .brow--rev .brow__idx { grid-column: 1; grid-row: 1; }
}
.brow__idx {
  font-family: var(--sans); font-weight: 500; font-size: .88rem; letter-spacing: .12em;
  color: var(--ink-faint); align-self: start; padding-top: .5rem;
}
.brow__idx::after { content: ""; display: block; width: 26px; height: 1px; background: var(--brick); margin-top: .7rem; }
.brow__name { font-family: var(--display); font-weight: 600; font-size: clamp(1.8rem, 3.6vw, 3rem); letter-spacing: -.02em; line-height: 1.02; transition: color .3s var(--ease); }
.brow:hover .brow__name { color: var(--brick); }
.brow__desc { color: var(--ink-soft); max-width: 54ch; margin-top: .9rem; }
.brow__meta {
  display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; margin-top: 1.1rem;
  font-family: var(--sans); font-weight: 500; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint);
}
.brow__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-3); }
.brow__media img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.12) saturate(.9) contrast(1.02); transition: transform .8s var(--ease); }
.brow:hover .brow__media img { transform: scale(1.045); }
.brow__link { position: absolute; inset: 0; z-index: 3; }
.bhero__mast { display: grid; gap: .55rem; margin-bottom: clamp(1.6rem, 4vw, 3rem); }
.bhero__center { text-align: center; }
.bhero__the {
  font-family: var(--body); font-weight: 500; font-size: clamp(.8rem, 1.2vw, 1rem);
  letter-spacing: .55em; text-transform: uppercase; color: var(--ink-soft);
  display: flex; align-items: center; justify-content: center; gap: 1.2em;
}
.bhero__the::before, .bhero__the::after { content: "✳"; color: var(--brick); font-size: .8em; letter-spacing: 0; }
.bhero__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.8rem, 10vw, 8.5rem);
  line-height: .92;
  letter-spacing: -.015em;
  text-transform: uppercase;
  margin-top: .4rem;
}
.bhero__title .row2 { display: block; font-size: .42em; letter-spacing: .12em; font-weight: 400; margin-top: .32em; }
.bhero__title .row2 em { font-style: italic; text-transform: none; letter-spacing: 0; color: var(--brick); font-weight: 500; font-size: 1.12em; }
.bhero__deck {
  font-size: clamp(1.02rem, .7vw + .85rem, 1.3rem); color: var(--ink-soft); line-height: 1.55;
  max-width: 58ch; margin: 1.2rem auto 0; text-align: center; font-style: italic;
}
.bhero__actions { display: flex; flex-wrap: wrap; gap: 1.1rem 1.6rem; align-items: center; justify-content: center; margin-top: 1.5rem; }

.bhero__plate { position: relative; margin-top: clamp(1.8rem, 4.5vw, 3.4rem); }
.bhero__plate img {
  width: 100%; height: clamp(340px, 60vh, 660px); object-fit: cover;
  filter: sepia(.22) saturate(.82) contrast(1.04) brightness(1.01);
}
.bhero__plate::after { /* subtle ink vignette so type reads as printed on the plate */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(36,29,21,.35), inset 0 0 90px rgba(36,29,21,.18);
}
.plate-frame { border: 1px solid var(--line-2); padding: clamp(.5rem, 1.2vw, .9rem); background: var(--paper-2); }
.plate-cap {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding-top: .8rem;
  font-family: var(--sans); font-size: .84rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft);
}
.plate-cap b { font-weight: 500; color: var(--ink); }

/* legacy aliases still used on interior pages */
.hero__figure { position: relative; margin-top: clamp(1.5rem, 4vw, 3rem); }
.hero__figure img { width: 100%; height: clamp(340px, 62vh, 680px); object-fit: cover; filter: sepia(.16) saturate(.88) contrast(1.03); }
.hero__figure::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(36,29,21,.3), inset 0 0 80px rgba(36,29,21,.15);
}
.hero__figcap {
  position: absolute; left: 0; bottom: 0;
  background: var(--pine); color: var(--paper);
  font-family: var(--sans); font-weight: 500; font-size: .84rem; letter-spacing: .2em; text-transform: uppercase;
  padding: .75rem 1.2rem;
}

/* stat row */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--paper); padding: clamp(1.4rem, 3vw, 2.2rem) clamp(1.1rem, 2vw, 1.6rem); }
.stat__num { font-family: var(--display); font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1; letter-spacing: -.03em; }
.stat__num sup { font-size: .5em; color: var(--brick); vertical-align: super; }
.stat__label { font-family: var(--mono); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); margin-top: .7rem; }

/* ------------------------------------------------------------------ section header */
.shead { display: grid; gap: 1.2rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
@media (min-width: 900px) { .shead--split { grid-template-columns: 1fr auto; align-items: end; } }
.shead__title { font-size: clamp(2rem, 4.5vw, 3.6rem); font-weight: 600; letter-spacing: -.02em; max-width: 18ch; }
.shead__lead { color: var(--ink-soft); max-width: 52ch; margin-top: .3rem; }
.count { font-family: var(--mono); font-size: .72rem; letter-spacing: .2em; color: var(--ink-faint); }

/* prose */
.prose { max-width: var(--readw); }
.prose p + p { margin-top: 1.15em; }
.prose p { color: var(--ink-soft); }
.prose .lead { font-size: 1.28em; line-height: 1.5; color: var(--ink); }
.prose h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); margin-top: 2em; margin-bottom: .5em; }
.dropcap::first-letter {
  font-family: var(--display); float: left; font-size: 4.2em; line-height: .74;
  padding-right: .12em; padding-top: .06em; color: var(--brick); font-weight: 400;
}

/* ------------------------------------------------------------------ grounds cards */
.grounds { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 640px)  { .grounds { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grounds { grid-template-columns: repeat(3, 1fr); } }
.gcard {
  position: relative; background: var(--paper); display: flex; flex-direction: column;
  min-height: 360px; overflow: hidden; isolation: isolate;
}
.gcard__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.gcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); filter: saturate(.95); }
.gcard:hover .gcard__media img { transform: scale(1.05); }
.gcard__idx { position: absolute; top: 1rem; left: 1rem; font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; color: var(--paper); background: rgba(36,29,21,.55); padding: .3rem .55rem; backdrop-filter: blur(3px); }
.gcard__body { padding: 1.4rem 1.4rem 1.6rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.gcard__name { font-size: 1.55rem; letter-spacing: -.015em; }
.gcard__desc { font-size: .96rem; color: var(--ink-soft); line-height: 1.5; }
.gcard__foot { margin-top: auto; padding-top: 1rem; display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); border-top: 1px solid var(--line); }
.gcard__foot .go { color: var(--brick); transition: transform .3s var(--ease); }
.gcard:hover .gcard__foot .go { transform: translateX(4px); }
.gcard__link { position: absolute; inset: 0; z-index: 3; }

/* ------------------------------------------------------------------ feature split (alt vision blocks) */
.split { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1.05fr 1fr; } .split--rev > .split__media { order: 2; } }
.split__media img { width: 100%; height: clamp(300px, 44vw, 560px); object-fit: cover; }
.split__body { max-width: 46ch; }
.checklist { list-style: none; padding: 0; display: grid; gap: 1rem; margin-top: 1.5rem; }
.checklist li { display: grid; grid-template-columns: auto 1fr; gap: .9rem; align-items: start; color: var(--ink-soft); line-height: 1.45; }
.checklist .ci { color: var(--brick); font-family: var(--mono); font-size: .8rem; margin-top: .3em; }

/* ------------------------------------------------------------------ dark section (pine) */
.dark { background: var(--pine); color: var(--paper); position: relative; z-index: 2; }
.dark .eyebrow { color: var(--brick-tint); }
.dark .shead__lead, .dark .prose p { color: rgba(243,236,223,.72); }
.dark .rule { background: var(--line-paper); }
.dark a.tlink { color: var(--brick-tint); }

/* ------------------------------------------------------------------ CTA band */
.cta {
  background: var(--pine); color: var(--paper);
  position: relative; overflow: hidden; z-index: 2;
}
.cta__inner { display: grid; gap: 1.8rem; text-align: center; place-items: center; }
.cta__title { font-size: clamp(2.2rem, 5vw, 4.2rem); font-weight: 600; letter-spacing: -.02em; max-width: 20ch; }
.cta__title em { color: var(--brick-tint); }
.cta p { color: rgba(243,236,223,.75); max-width: 52ch; }
.cta__deco { position: absolute; inset: 0; opacity: .12; pointer-events: none;
  background-image: repeating-linear-gradient(90deg, transparent 0 78px, rgba(243,236,223,.5) 78px 79px); }

/* ------------------------------------------------------------------ gallery grid + lightbox */
.masonry { columns: 1; column-gap: 14px; }
@media (min-width: 560px)  { .masonry { columns: 2; } }
@media (min-width: 960px)  { .masonry { columns: 3; } }
@media (min-width: 1280px) { .masonry { columns: 4; } }
.tile { break-inside: avoid; margin-bottom: 14px; position: relative; cursor: zoom-in; overflow: hidden; background: var(--paper-3); }
.tile img { width: 100%; height: auto; transition: transform .7s var(--ease), filter .4s; filter: saturate(.94); }
.tile:hover img { transform: scale(1.04); filter: saturate(1.05); }
.tile__cap {
  position: absolute; inset: auto 0 0 0; padding: 1.4rem .9rem .8rem;
  font-family: var(--mono); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--paper);
  background: linear-gradient(transparent, rgba(28,22,15,.72));
  opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s;
}
.tile:hover .tile__cap { opacity: 1; transform: translateY(0); }

/* uniform gallery grid variant */
.grid-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.grid-gallery .tile { aspect-ratio: 4/3; }
.grid-gallery .tile img { height: 100%; object-fit: cover; }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(20,15,10,.94); display: none; align-items: center; justify-content: center; padding: clamp(1rem, 4vw, 3rem); }
.lb.open { display: flex; }
.lb img { max-width: 100%; max-height: 84vh; object-fit: contain; box-shadow: 0 30px 80px -20px rgba(0,0,0,.6); }
.lb__cap { position: absolute; bottom: max(1rem, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(243,236,223,.8); }
.lb__btn { position: absolute; top: 1.2rem; background: none; border: 1px solid rgba(243,236,223,.3); color: var(--paper); width: 46px; height: 46px; cursor: pointer; font-size: 1.1rem; display: grid; place-items: center; transition: background .2s, border-color .2s; }
.lb__btn:hover { background: rgba(243,236,223,.12); border-color: var(--paper); }
.lb__close { right: 1.2rem; }
.lb__prev { left: 1.2rem; top: 50%; transform: translateY(-50%); }
.lb__next { right: 1.2rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px){ .lb__prev{left:.6rem} .lb__next{right:.6rem} }

/* ------------------------------------------------------------------ interior page hero */
.phero { position: relative; z-index: 2; padding-top: clamp(2rem, 5vw, 4rem); }
.phero__eyebrow { margin-bottom: 1.4rem; }
.phero__title { font-size: clamp(2.6rem, 7vw, 6rem); font-weight: 600; letter-spacing: -.025em; line-height: .96; }
.phero__title em { color: var(--brick); }
.phero__lead { color: var(--ink-soft); max-width: 56ch; font-size: clamp(1.05rem, .6vw + .9rem, 1.32rem); margin-top: 1.4rem; }
.crumbs { font-family: var(--mono); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); display: flex; gap: .6rem; align-items: center; margin-top: 2rem; }
.crumbs a:hover { color: var(--brick); }
.crumbs .sep { opacity: .5; }

/* building spec ledger */
.ledger { border: 1px solid var(--line); background: var(--paper-2); }
.ledger__row { display: grid; grid-template-columns: 1fr auto; gap: 1rem; padding: 1rem 1.4rem; border-bottom: 1px solid var(--line); align-items: baseline; }
.ledger__row:last-child { border-bottom: 0; }
.ledger__k { font-family: var(--mono); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); }
.ledger__v { font-family: var(--display); font-size: 1.35rem; letter-spacing: -.01em; text-align: right; }
.ledger__v small { font-family: var(--mono); font-size: .62rem; letter-spacing: .1em; color: var(--ink-faint); text-transform: uppercase; }

/* program pills */
.tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.tag { font-family: var(--sans); font-weight: 500; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); border: 1px solid var(--line-2); padding: .5rem .85rem; border-radius: 0; }

/* prev / next building nav */
.pn { display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
@media (min-width: 720px){ .pn { grid-template-columns: 1fr 1fr; } }
.pn a { background: var(--paper); padding: 1.6rem var(--pad); display: flex; flex-direction: column; gap: .3rem; transition: background .25s; }
.pn a:hover { background: var(--paper-3); }
.pn .dir { font-family: var(--mono); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--brick); }
.pn .to { font-family: var(--display); font-size: 1.5rem; }
.pn .pn--next { text-align: right; align-items: flex-end; }

/* ------------------------------------------------------------------ contact */
.contact-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 900px){ .contact-grid { grid-template-columns: .9fr 1.1fr; } }
.info-row { display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); align-items: start; }
.info-row:first-child { border-top: 1px solid var(--line); }
.info-row .ic { color: var(--brick); width: 22px; height: 22px; margin-top: .2rem; }
.info-row .k { font-family: var(--mono); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); }
.info-row .v { font-family: var(--display); font-size: 1.3rem; margin-top: .2rem; }
.info-row .v a:hover { color: var(--brick); }

.field { display: grid; gap: .5rem; margin-bottom: 1.2rem; }
.field label { font-family: var(--mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); }
.field input, .field textarea {
  font-family: var(--body); font-size: 1.05rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line-2); padding: .9rem 1rem; border-radius: 0;
  transition: border-color .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brick); }
.field--2 { display: grid; gap: 1.2rem; }
@media (min-width: 620px){ .field--2 { grid-template-columns: 1fr 1fr; } }

/* ------------------------------------------------------------------ footer */
.site-footer { background: var(--pine-2); color: var(--paper); position: relative; z-index: 2; padding-block: clamp(3rem, 6vw, 5rem) 2rem; }
.footer-top { display: grid; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid var(--line-paper); }
@media (min-width: 820px){ .footer-top { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand .brand__name { color: var(--paper); }
.footer-brand p { color: rgba(243,236,223,.62); max-width: 34ch; margin-top: 1.2rem; font-size: .98rem; }
.fcol h4 { font-family: var(--mono); font-size: .82rem; letter-spacing: .2em; text-transform: uppercase; color: var(--brick-tint); font-weight: 500; margin-bottom: 1.1rem; }
.fcol ul { list-style: none; padding: 0; display: grid; gap: .6rem; }
.fcol a { color: rgba(243,236,223,.72); font-size: .98rem; transition: color .2s; }
.fcol a:hover { color: var(--paper); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; padding-top: 2rem; font-family: var(--mono); font-size: .78rem; letter-spacing: .1em; color: rgba(243,236,223,.5); text-transform: uppercase; }
.socials { display: flex; gap: .6rem; }
.socials a { width: 38px; height: 38px; border: 1px solid var(--line-paper); display: grid; place-items: center; color: rgba(243,236,223,.75); transition: background .2s, color .2s, border-color .2s; }
.socials a:hover { background: var(--brick); color: var(--paper); border-color: var(--brick); }
.socials svg { width: 16px; height: 16px; }

/* ------------------------------------------------------------------ reveal */
/* Gated behind .js so content is fully visible if JS is disabled or slow. */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal-delay="3"] { transition-delay: .24s; }
[data-reveal-delay="4"] { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) { .js [data-reveal] { opacity: 1; transform: none; transition: none; } }

/* to-top */
.totop { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 40; width: 48px; height: 48px; background: var(--ink); color: var(--paper); border: 0; cursor: pointer; display: grid; place-items: center; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .3s, transform .3s, background .2s; }
.totop.show { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { background: var(--brick); }

/* utilities */
.u-mt-2 { margin-top: 2rem; } .u-mt-3 { margin-top: 3rem; } .u-mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.muted { color: var(--ink-soft); }

/* ------------------------------------------------------------------ mobile nav */
@media (max-width: 1100px) {
  .nav__toggle { display: inline-flex; }
  .nav__list {
    position: fixed; inset: 0 0 0 auto; width: min(88vw, 380px);
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--paper); border-left: 1px solid var(--line);
    padding: 6rem var(--pad) 2rem; transform: translateX(100%);
    transition: transform .4s var(--ease); z-index: 45; overflow-y: auto;
    box-shadow: -30px 0 60px -30px rgba(36,29,21,.5);
  }
  body.nav-open .nav__list { transform: translateX(0); }
  .nav__list > li { width: 100%; border-bottom: 1px solid var(--line); }
  .nav__link { display: block; width: 100%; font-size: .95rem; padding: 1.1rem 0; letter-spacing: .1em; }
  .nav__link::after { display: none; }
  .nav__link--menu { display: flex; justify-content: space-between; align-items: center; }
  .nav__link--menu .caret { margin-right: .3rem; }
  .nav__menu {
    position: static; transform: none; opacity: 1; visibility: visible;
    box-shadow: none; border: 0; min-width: 0; padding: 0 0 .8rem .4rem;
    display: none; background: transparent;
    transition: none;
  }
  /* the desktop hover/focus rule must not re-apply its centering transform inside the panel */
  .nav__item--has-menu:hover .nav__menu,
  .nav__item--has-menu:focus-within .nav__menu { transform: none; }
  .nav__item--has-menu.open .nav__menu { display: block; }
  .nav__menu li a { padding: .55rem .5rem; font-size: 1.02rem; }
  .nav__item--has-menu.open .nav__link--menu .caret { transform: rotate(-135deg) translateY(2px); }
  body.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(28,22,15,.4); z-index: 44; }
}

@media (min-width: 1101px){ .nav__toggle { display: none; } }
