/* ─────────────────────────────────────────────────────────────────────────
   WESTERN EXTERIORS · design system
   warm-white canvas · muted bronze accent · graphite typography
   architectural grid · restrained motion
   ───────────────────────────────────────────────────────────────────────── */

:root {
  /* canvas + paper */
  --canvas: #F2EEE6;          /* warm linen white */
  --paper:  #ECE6DA;          /* slightly cooler stone */
  --paper-2:#E2DBCB;          /* card / surface */
  --stone:  #C9BFAB;          /* mid stone */
  --stone-2:#A89C84;          /* darker stone */

  /* ink + graphite */
  --ink:    #1E1C18;          /* deepest */
  --graphite: #2A2722;        /* primary type */
  --graphite-2: #4A463E;      /* secondary type */
  --graphite-3: #6B665B;      /* tertiary type */
  --graphite-4: #8E8779;      /* quiet labels */

  /* accent — muted bronze */
  --bronze: #876141;          /* primary bronze */
  --bronze-deep: #5E422C;     /* deep bronze for hover/dark */
  --bronze-soft: #B89373;     /* light bronze for veils */

  /* lines */
  --rule:   rgba(42, 39, 34, 0.14);
  --rule-2: rgba(42, 39, 34, 0.08);

  /* type */
  --sans: 'Geist', ui-sans-serif, -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --serif:'Instrument Serif', 'Source Serif 4', Georgia, serif;

  /* density — tweakable */
  --gutter: clamp(20px, 4vw, 56px);
  --section-y: clamp(96px, 12vw, 168px);
  --container: 1480px;

  /* motion */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  /* depth — used very sparingly */
  --lift-1: 0 1px 0 rgba(255,255,255,0.6) inset, 0 12px 32px -16px rgba(30,28,24,0.18);
  --lift-2: 0 1px 0 rgba(255,255,255,0.6) inset, 0 24px 64px -24px rgba(30,28,24,0.28);
}

/* density tweak */
[data-density="airy"] {
  --gutter: clamp(28px, 5vw, 72px);
  --section-y: clamp(128px, 16vw, 220px);
}
[data-density="standard"] {
  --gutter: clamp(20px, 4vw, 56px);
  --section-y: clamp(88px, 11vw, 148px);
}

/* ───────────────────────────── reset + base ───────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--canvas);
  color: var(--graphite);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
hr { border: 0; height: 1px; background: var(--rule); margin: 0; }
::selection { background: var(--bronze); color: var(--canvas); }

/* ─────────────────────────── typography scale ──────────────────────────── */

.wm {                                 /* wordmark — letterspaced */
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 13px;
}
.wm--lg { font-size: 15px; letter-spacing: 0.26em; }

.eyebrow {                             /* tiny label */
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--graphite-3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 18px; height: 1px;
  background: currentColor;
  opacity: .5;
}
.eyebrow--bare::before { display: none; }

.num {                                 /* numerical / index label */
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--graphite-4);
  font-variant-numeric: tabular-nums;
}

h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 400; }

.display {
  font-family: var(--sans);
  font-weight: 350;
  font-size: clamp(48px, 8.4vw, 148px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  color: var(--graphite);
  text-wrap: balance;
}
.display em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.headline {
  font-family: var(--sans);
  font-weight: 350;
  font-size: clamp(32px, 4.6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.028em;
  text-wrap: balance;
}
.headline em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
}

.title {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.018em;
}

.lede {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(18px, 1.45vw, 22px);
  line-height: 1.45;
  color: var(--graphite-2);
  letter-spacing: -0.005em;
  max-width: 60ch;
}

.body { color: var(--graphite-2); }
.muted { color: var(--graphite-3); }
.fine  { color: var(--graphite-4); font-size: 13px; }

/* ─────────────────────────── layout primitives ─────────────────────────── */

.wrap {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.section--tight { padding-top: calc(var(--section-y) * 0.6); padding-bottom: calc(var(--section-y) * 0.6); }

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(16px, 1.6vw, 28px);
  row-gap: clamp(24px, 3vw, 56px);
}
.col-span-3 { grid-column: span 3; }
.col-span-4 { grid-column: span 4; }
.col-span-5 { grid-column: span 5; }
.col-span-6 { grid-column: span 6; }
.col-span-7 { grid-column: span 7; }
.col-span-8 { grid-column: span 8; }
.col-span-9 { grid-column: span 9; }
.col-span-12 { grid-column: span 12; }
.col-start-2 { grid-column-start: 2; }
.col-start-3 { grid-column-start: 3; }
.col-start-7 { grid-column-start: 7; }
.col-start-8 { grid-column-start: 8; }

@media (max-width: 900px) {
  .grid-12 > [class*="col-span-"] { grid-column: 1 / -1; }
  .grid-12 > [class*="col-start-"] { grid-column-start: 1; }
}

.stack-1 > * + * { margin-top: 6px; }
.stack-2 > * + * { margin-top: 12px; }
.stack-3 > * + * { margin-top: 20px; }
.stack-4 > * + * { margin-top: 32px; }
.stack-5 > * + * { margin-top: 48px; }
.stack-6 > * + * { margin-top: 72px; }

/* ───────────────────────────────── nav ─────────────────────────────────── */

.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav[data-scrolled="true"] {
  background: rgba(242, 238, 230, 0.72);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
  backdrop-filter: saturate(140%) blur(18px);
  border-bottom-color: var(--rule-2);
}
.nav__row {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.nav__brand {
  display: flex; align-items: baseline; gap: 12px;
  color: var(--graphite);
}
.nav__brand .wm { font-size: 12.5px; }
.nav__brand .mark {
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--graphite-4);
  padding: 3px 6px;
  border: 1px solid var(--rule);
  border-radius: 2px;
}
.nav__links {
  display: flex; align-items: center; gap: clamp(20px, 2.2vw, 36px);
}
.nav__link {
  font-size: 13.5px;
  letter-spacing: -0.005em;
  color: var(--graphite-2);
  position: relative;
  padding: 4px 0;
}
.nav__link::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav__link:hover { color: var(--graphite); }
.nav__link:hover::after { transform: scaleX(1); }
.nav__link[data-active="true"] { color: var(--graphite); }
.nav__link[data-active="true"]::after { transform: scaleX(1); opacity: .4; }

.nav__cta {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px;
  color: var(--graphite);
  padding: 10px 16px;
  border: 1px solid var(--graphite);
  border-radius: 999px;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.nav__cta:hover { background: var(--graphite); color: var(--canvas); }
.nav__cta .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--bronze); }

/* ─── Light nav over a dark hero (homepage, layered variant, before scroll) */
html[data-page="home"][data-hero="layered"] .nav[data-scrolled="false"] .nav__brand        { color: var(--canvas); }
html[data-page="home"][data-hero="layered"] .nav[data-scrolled="false"] .nav__brand .mark  { color: rgba(242,238,230,.78); border-color: rgba(242,238,230,.32); }
html[data-page="home"][data-hero="layered"] .nav[data-scrolled="false"] .nav__link         { color: rgba(242,238,230,.85); }
html[data-page="home"][data-hero="layered"] .nav[data-scrolled="false"] .nav__link:hover   { color: var(--canvas); }
html[data-page="home"][data-hero="layered"] .nav[data-scrolled="false"] .nav__cta          { color: var(--canvas); border-color: rgba(242,238,230,.55); }
html[data-page="home"][data-hero="layered"] .nav[data-scrolled="false"] .nav__cta:hover    { background: var(--canvas); color: var(--graphite); border-color: var(--canvas); }

@media (max-width: 900px) {
  .nav__links { display: none; }
}

/* ─────────────────────────────── footer ────────────────────────────────── */

.foot {
  background: var(--graphite);
  color: var(--canvas);
  padding-top: clamp(80px, 10vw, 140px);
  padding-bottom: 32px;
  margin-top: 0;
}
.foot a { color: rgba(242,238,230,.78); }
.foot a:hover { color: var(--canvas); }
.foot .eyebrow { color: rgba(242,238,230,.45); }
.foot .eyebrow::before { background: currentColor; }
.foot__lockup {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(60px, 11vw, 168px);
  line-height: .95;
  letter-spacing: -0.04em;
  color: var(--canvas);
}
.foot__lockup .westex {
  font-family: var(--serif);
  font-style: italic;
  color: var(--bronze-soft);
}
.foot__row {
  display: grid; grid-template-columns: repeat(12, 1fr);
  column-gap: 24px; row-gap: 40px;
  padding-top: 64px;
  border-top: 1px solid rgba(242,238,230,.12);
}
.foot__col h5 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(242,238,230,.45);
  margin-bottom: 18px;
  font-weight: 500;
}
.foot__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.foot__col li a { font-size: 14px; }
.foot__legal {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 64px; padding-top: 24px;
  border-top: 1px solid rgba(242,238,230,.10);
  color: rgba(242,238,230,.45);
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
}
.foot__legal a:hover { color: var(--canvas); }
@media (max-width: 900px) {
  .foot__row > div { grid-column: span 6; }
  .foot__legal { flex-direction: column; gap: 12px; }
}

/* ─────────────────────────────── buttons ───────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 14px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid currentColor;
  color: var(--graphite);
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
  letter-spacing: -0.005em;
}
.btn:hover { background: var(--graphite); color: var(--canvas); border-color: var(--graphite); }
.btn--solid { background: var(--graphite); color: var(--canvas); border-color: var(--graphite); }
.btn--solid:hover { background: var(--ink); }
.btn--ghost { border-color: var(--rule); color: var(--graphite-2); }
.btn--ghost:hover { background: transparent; color: var(--graphite); border-color: var(--graphite); }
.btn--lg { font-size: 15px; padding: 18px 28px; }
.btn svg { width: 14px; height: 14px; }

.link {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px;
  color: var(--graphite);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--rule);
  transition: border-color .3s var(--ease), color .3s var(--ease), gap .3s var(--ease);
}
.link:hover { border-color: var(--graphite); gap: 14px; }
.link__arrow { font-family: var(--mono); font-size: 13px; }

/* ─────────────────────────── image placeholders ────────────────────────── */

.img {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  isolation: isolate;
}
.img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img__label {
  position: absolute; left: 14px; bottom: 12px;
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(242,238,230,.88);
  text-shadow: 0 1px 2px rgba(0,0,0,.4);
  display: flex; gap: 8px;
}
.img__label .idx { color: rgba(242,238,230,.55); }

/* geometric placeholder — used where stock isn't appropriate */
.placeholder {
  background:
    linear-gradient(135deg, rgba(135, 97, 65, 0.10), transparent 60%),
    linear-gradient(180deg, var(--paper-2), var(--paper));
  position: relative;
  overflow: hidden;
}
.placeholder::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--rule-2) 1px, transparent 1px),
    linear-gradient(to bottom, var(--rule-2) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: -1px -1px;
  opacity: .9;
  mask-image: radial-gradient(ellipse at 70% 30%, black, transparent 80%);
}
.placeholder--bronze {
  background:
    linear-gradient(140deg, #B89373 0%, #8B6644 55%, #5E422C 100%);
}
.placeholder--bronze::before {
  background-image:
    linear-gradient(to right, rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, transparent, black);
}
.placeholder--graphite {
  background: linear-gradient(160deg, #3A352C, #1E1C18);
}
.placeholder--graphite::before {
  background-image:
    linear-gradient(to right, rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, transparent, black 70%);
}

/* aspect helpers */
.ar-16-9 { aspect-ratio: 16 / 9; }
.ar-4-3  { aspect-ratio: 4 / 3; }
.ar-3-4  { aspect-ratio: 3 / 4; }
.ar-1-1  { aspect-ratio: 1 / 1; }
.ar-21-9 { aspect-ratio: 21 / 9; }
.ar-3-2  { aspect-ratio: 3 / 2; }
.ar-5-4  { aspect-ratio: 5 / 4; }

/* ─────────────────────────────── reveal ──────────────────────────────── */

/* Reveal hides content only when JS has booted (body.reveals-on).
   Without JS, everything renders normally — no flash of hidden content. */
body.reveals-on .reveal:not(.in) {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
}
.reveal {
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  will-change: opacity, transform;
}
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.reveal[data-delay="5"] { transition-delay: .40s; }

/* ─────────────────────────── hero (homepage) ───────────────────────────── */

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  display: flex; align-items: flex-end;
  padding-top: 140px; padding-bottom: 56px;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero__bg .img { width: 100%; height: 100%; }
.hero__bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(30,28,24,.45) 0%, rgba(30,28,24,.05) 40%, rgba(30,28,24,.7) 100%);
}
.hero__veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(30,28,24,.45) 100%);
  z-index: 0;
}
.hero__inner { width: 100%; position: relative; z-index: 1; }
.hero__meta {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 32px;
  margin-bottom: 36px;
}
.hero__meta .col {
  display: flex; flex-direction: column; gap: 8px;
  color: rgba(242,238,230,.78);
}
.hero__meta .num { color: rgba(242,238,230,.55); }
.hero__meta .v { font-size: 13px; }

.hero__title {
  color: var(--canvas);
}
.hero__title em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--bronze-soft);
  font-weight: 400;
}

.hero__foot {
  margin-top: 56px;
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
}
.hero__lede { color: rgba(242,238,230,.78); max-width: 46ch; font-size: clamp(16px, 1.25vw, 19px); }
.hero__cta { display: flex; gap: 14px; align-items: center; }
.hero__cta .btn { color: var(--canvas); border-color: rgba(242,238,230,.6); }
.hero__cta .btn:hover { background: var(--canvas); color: var(--graphite); border-color: var(--canvas); }
.hero__cta .btn--solid { background: var(--canvas); color: var(--graphite); border-color: var(--canvas); }
.hero__cta .btn--solid:hover { background: var(--bronze-soft); border-color: var(--bronze-soft); color: var(--graphite); }

/* hero composition variants */

/* Variant-specific image blocks: hidden by default. Each variant flips its own. */
.hero__below       { display: none; }
.hero__rightimg-wrap { display: none; }

/* ─── LAYERED (default) ────────────────────────────────────────────── */
[data-hero="layered"]   .hero__bg   { display: block; }
[data-hero="layered"]   .hero       { color: var(--canvas); }

/* ─── EDITORIAL ────────────────────────────────────────────────────── */
[data-hero="editorial"] .hero       { min-height: auto; align-items: stretch; color: var(--graphite); padding-top: 180px; padding-bottom: 0; }
[data-hero="editorial"] .hero__bg   { display: none; }
[data-hero="editorial"] .hero__veil { display: none; }
[data-hero="editorial"] .hero__title { color: var(--graphite); }
[data-hero="editorial"] .hero__title em { color: var(--bronze); }
[data-hero="editorial"] .hero__meta .col { color: var(--graphite-3); }
[data-hero="editorial"] .hero__meta .num { color: var(--graphite-4); }
[data-hero="editorial"] .hero__lede { color: var(--graphite-2); }
[data-hero="editorial"] .hero__cta .btn { color: var(--graphite); border-color: var(--graphite); }
[data-hero="editorial"] .hero__cta .btn:hover { background: var(--graphite); color: var(--canvas); }
[data-hero="editorial"] .hero__cta .btn--solid { background: var(--graphite); color: var(--canvas); }
[data-hero="editorial"] .hero__below { display: block; margin-top: clamp(60px, 7vw, 100px); }
[data-hero="editorial"] .hero__belowimg { width: 100%; aspect-ratio: 21 / 9; }

/* ─── SPLIT ────────────────────────────────────────────────────────── */
[data-hero="split"]     .hero       { min-height: 92vh; color: var(--graphite); align-items: center; padding-top: 160px; }
[data-hero="split"]     .hero__bg   { display: none; }
[data-hero="split"]     .hero__veil { display: none; }
[data-hero="split"]     .hero__title { color: var(--graphite); font-size: clamp(36px, 5vw, 76px); }
[data-hero="split"]     .hero__title em { color: var(--bronze); }
[data-hero="split"]     .hero__meta .col { color: var(--graphite-3); }
[data-hero="split"]     .hero__meta .num { color: var(--graphite-4); }
[data-hero="split"]     .hero__lede { color: var(--graphite-2); }
[data-hero="split"]     .hero__cta .btn { color: var(--graphite); border-color: var(--graphite); }
[data-hero="split"]     .hero__cta .btn:hover { background: var(--graphite); color: var(--canvas); }
[data-hero="split"]     .hero__cta .btn--solid { background: var(--graphite); color: var(--canvas); }
[data-hero="split"]     .hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(40px, 6vw, 96px);
  row-gap: 28px;
  align-items: stretch;
}
[data-hero="split"]     .hero__meta,
[data-hero="split"]     .hero__title,
[data-hero="split"]     .hero__foot { grid-column: 1; }
[data-hero="split"]     .hero__meta { align-self: start; }
[data-hero="split"]     .hero__foot { align-self: end; flex-direction: column; align-items: flex-start; }
[data-hero="split"]     .hero__rightimg-wrap {
  display: block;
  grid-column: 2;
  grid-row: 1 / -1;
  align-self: stretch;
  min-height: 60vh;
}
[data-hero="split"]     .hero__rightimg { width: 100%; height: 100%; aspect-ratio: auto; }
@media (max-width: 900px) {
  [data-hero="split"] .hero__inner { grid-template-columns: 1fr; }
  [data-hero="split"] .hero__meta, [data-hero="split"] .hero__title, [data-hero="split"] .hero__foot { grid-column: 1; }
  [data-hero="split"] .hero__rightimg-wrap { grid-column: 1; grid-row: auto; min-height: 0; aspect-ratio: 16/9; }
}

/* ───────────────────────────── ticker strip ────────────────────────────── */

.strip {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 18px 0;
  background: var(--canvas);
}
.strip__row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--graphite-3);
}
.strip__row > div { display: flex; align-items: center; gap: 10px; }
.strip__row .dot { width: 5px; height: 5px; border-radius: 999px; background: var(--bronze); }
@media (max-width: 900px) { .strip__row > div:nth-child(n+4) { display: none; } }

/* ────────────────────────── section header block ───────────────────────── */

.sec-head {
  display: grid; grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(16px, 1.6vw, 28px); row-gap: 24px;
  align-items: end;
  margin-bottom: clamp(56px, 7vw, 96px);
}
.sec-head__index { grid-column: span 2; }
.sec-head__title { grid-column: span 7; }
.sec-head__aside { grid-column: span 3; color: var(--graphite-3); font-size: 14px; max-width: 36ch; }
@media (max-width: 900px) {
  .sec-head__index, .sec-head__title, .sec-head__aside { grid-column: 1 / -1; }
}

/* ─────────────────────── system specimen (cards) ──────────────────────── */

.systems {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--rule);
}
@media (max-width: 800px) { .systems { grid-template-columns: 1fr; } }
.system {
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  padding: clamp(32px, 4vw, 56px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 3vw, 48px);
  transition: background .4s var(--ease);
}
.system:nth-child(2n) { border-right: 0; }
@media (max-width: 800px) {
  .system { grid-template-columns: 1fr; border-right: 0; }
}
.system:hover { background: rgba(135, 97, 65, 0.04); }
.system__lhs { display: flex; flex-direction: column; gap: 18px; }
.system__lhs .num { color: var(--graphite-4); }
.system__name {
  font-size: clamp(22px, 2vw, 30px);
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.system__rhs { color: var(--graphite-2); font-size: 15px; line-height: 1.55; max-width: 42ch; }
.system__specs {
  margin-top: 16px;
  display: grid; grid-template-columns: auto 1fr; gap: 8px 16px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--graphite-3);
}
.system__specs dt { color: var(--graphite-4); }
.system__specs dd { margin: 0; color: var(--graphite-2); }

/* ─────────────────────────── solar feature ─────────────────────────────── */

.solar {
  background: var(--graphite);
  color: var(--canvas);
  position: relative;
  overflow: hidden;
}
.solar a { color: var(--canvas); }
.solar .eyebrow { color: var(--bronze-soft); }
.solar .display, .solar .headline { color: var(--canvas); }
.solar .display em, .solar .headline em { color: var(--bronze-soft); }
.solar .lede { color: rgba(242,238,230,.72); }
.solar .num { color: rgba(242,238,230,.45); }
.solar .system { border-color: rgba(242,238,230,.12); }
.solar hr { background: rgba(242,238,230,.12); }
.solar .btn { color: var(--canvas); border-color: rgba(242,238,230,.5); }
.solar .btn:hover { background: var(--canvas); color: var(--graphite); border-color: var(--canvas); }
.solar .btn--solid { background: var(--canvas); color: var(--graphite); border-color: var(--canvas); }
.solar .btn--solid:hover { background: var(--bronze-soft); border-color: var(--bronze-soft); }

.solar__stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid rgba(242,238,230,.12);
  border-bottom: 1px solid rgba(242,238,230,.12);
}
.solar__stat {
  padding: 36px 0;
  display: flex; flex-direction: column; gap: 10px;
  border-right: 1px solid rgba(242,238,230,.12);
  padding-right: 24px;
}
.solar__stat:last-child { border-right: 0; }
.solar__stat .v {
  font-family: var(--sans); font-weight: 300;
  font-size: clamp(36px, 4.4vw, 64px);
  line-height: 1; letter-spacing: -0.03em;
  color: var(--canvas);
}
.solar__stat .v sup { font-size: .45em; vertical-align: top; margin-left: 4px; color: var(--bronze-soft); font-family: var(--mono); letter-spacing: .06em; }
.solar__stat .k {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(242,238,230,.55);
}
@media (max-width: 900px) {
  .solar__stats { grid-template-columns: repeat(2, 1fr); }
  .solar__stat:nth-child(2) { border-right: 0; }
  .solar__stat { border-bottom: 1px solid rgba(242,238,230,.12); }
}

/* ─────────────────────────── portfolio grid ────────────────────────────── */

.proj-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(16px, 1.6vw, 28px);
  row-gap: clamp(60px, 8vw, 120px);
}
.proj { display: flex; flex-direction: column; gap: 20px; }
.proj .img { background: var(--paper-2); }
.proj__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.proj__title {
  font-size: clamp(20px, 1.6vw, 26px);
  letter-spacing: -0.018em;
  line-height: 1.15;
}
.proj__caption { color: var(--graphite-3); font-size: 13.5px; }
.proj a:hover .img img { transform: scale(1.02); }
.proj .img img { transition: transform 1.2s var(--ease-out); }

/* ─────────────────────────── journal cards ─────────────────────────────── */

.journal {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule);
}
@media (max-width: 900px) { .journal { grid-template-columns: 1fr; } }
.entry {
  padding: 40px 32px 40px 0;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: 18px;
  min-height: 320px;
  transition: background .4s var(--ease);
}
.entry:nth-child(3n) { border-right: 0; padding-right: 0; }
.entry { padding-left: 32px; }
.entry:first-child { padding-left: 0; }
.entry:hover { background: rgba(135,97,65,.03); }
.entry .num { color: var(--graphite-4); }
.entry__title {
  font-size: clamp(20px, 1.55vw, 26px);
  letter-spacing: -0.018em;
  line-height: 1.18;
  margin-top: auto;
}
.entry__excerpt { color: var(--graphite-3); font-size: 14px; line-height: 1.5; }
.entry__foot {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 16px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--graphite-4);
}
@media (max-width: 900px) {
  .entry, .entry:first-child, .entry:nth-child(3n) { padding: 32px 0; border-right: 0; }
}

/* ─────────────────────────── contact band ──────────────────────────────── */

.cta-band {
  position: relative;
  padding: clamp(80px, 11vw, 160px) 0;
  background: var(--paper);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}
.cta-band__inner {
  display: grid; grid-template-columns: 2fr 1fr; gap: clamp(40px, 6vw, 80px);
  align-items: end;
}
@media (max-width: 900px) { .cta-band__inner { grid-template-columns: 1fr; } }

/* ─────────────────────────────── form ──────────────────────────────────── */

.form { display: flex; flex-direction: column; gap: 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--graphite-3);
}
.field input, .field textarea, .field select {
  font: inherit;
  background: transparent;
  color: var(--graphite);
  border: 0;
  border-bottom: 1px solid var(--rule);
  padding: 12px 0 10px;
  font-size: 17px;
  letter-spacing: -0.01em;
  transition: border-color .3s var(--ease);
  outline: none;
}
.field input::placeholder, .field textarea::placeholder { color: var(--graphite-4); }
.field input:focus, .field textarea:focus, .field select:focus { border-bottom-color: var(--graphite); }
.field--inline { flex-direction: row; align-items: center; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 700px) { .field-row { grid-template-columns: 1fr; } }
.choice {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.choice input { display: none; }
.choice label {
  font-family: var(--sans);
  font-size: 13px;
  text-transform: none;
  letter-spacing: -0.005em;
  color: var(--graphite-2);
  padding: 8px 14px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.choice input:checked + label { background: var(--graphite); color: var(--canvas); border-color: var(--graphite); }
.choice label:hover { border-color: var(--graphite-3); }

.drop {
  border: 1px dashed var(--stone-2);
  padding: 36px;
  text-align: center;
  border-radius: 4px;
  color: var(--graphite-3);
  transition: border-color .3s var(--ease), background .3s var(--ease);
  display: flex; flex-direction: column; gap: 8px; align-items: center;
}
.drop:hover { border-color: var(--graphite); background: rgba(135,97,65,.03); }
.drop__title { color: var(--graphite); font-size: 15px; }
.drop__hint { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--graphite-4); }

/* ───────────────────────────── misc ────────────────────────────────────── */

.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }
.rule--bronze { background: var(--bronze); height: 2px; width: 32px; }

.kv {
  display: grid; grid-template-columns: 200px 1fr;
  gap: 18px 32px;
  border-top: 1px solid var(--rule);
  padding-top: 24px;
}
.kv dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--graphite-4); }
.kv dd { margin: 0; color: var(--graphite-2); font-size: 15px; line-height: 1.55; }
.kv > * { padding-bottom: 18px; border-bottom: 1px solid var(--rule-2); }
.kv > *:nth-last-child(-n+2) { border-bottom: 0; padding-bottom: 0; }
@media (max-width: 700px) { .kv { grid-template-columns: 1fr; gap: 6px 0; } .kv dd { padding-bottom: 16px; } }

/* logo glyph */
.glyph {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  background: var(--graphite); color: var(--canvas);
  font-family: var(--sans); font-weight: 500; font-size: 14px;
  letter-spacing: 0;
  border-radius: 2px;
}

/* utility */
.text-center { text-align: center; }
.text-right { text-align: right; }
.flex { display: flex; }
.flex-1 { flex: 1; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-6 { gap: 24px; } .gap-8 { gap: 32px; }
.mt-2 { margin-top: 8px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; } .mt-12 { margin-top: 48px; } .mt-16 { margin-top: 64px; } .mt-24 { margin-top: 96px; }
.mb-2 { margin-bottom: 8px; } .mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; } .mb-8 { margin-bottom: 32px; }

.full-bleed { width: 100vw; margin-left: calc(50% - 50vw); }

/* prevent body lock when reveal first runs */
.no-anim .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none !important; }
  body.reveals-on .reveal:not(.in) { opacity: 1 !important; transform: none !important; }
}
