/* =====================================================================
   Carolina Custom Stair Works — "Atelier of the Ascent"
   Architectural luxury. Espresso + champagne brass + ivory.
   Display: Bodoni Moda (Didone)  ·  Text/UI: Jost (geometric sans)
   ===================================================================== */

:root {
  /* --- ink (dark) --- */
  --ink:        #14110c;
  --ink-2:      #1b1710;
  --ink-3:      #241f17;
  --ink-deep:   #100d09;

  /* --- ivory / text on dark --- */
  --ivory:      #f4eee2;
  --ivory-dim:  rgba(244, 238, 226, 0.64);
  --ivory-faint:rgba(244, 238, 226, 0.40);

  /* --- light surfaces --- */
  --paper:      #faf7f1;
  --paper-2:    #efe9dd;
  --ink-pap:    #1a160f;          /* ink text on paper */
  --muted-pap:  #6c6354;          /* muted text on paper */

  /* --- brass accent (used sparingly) --- */
  --brass:      #c2a063;
  --brass-lt:   #d6ba85;          /* brighter, for small text on dark */
  --brass-dk:   #8a6e3c;

  /* --- hairlines --- */
  --line-d:     rgba(244, 238, 226, 0.14);
  --line-l:     rgba(20, 17, 12, 0.14);

  /* --- type --- */
  --serif: "Bodoni Moda", "Times New Roman", serif;
  --sans:  "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-display: clamp(3.1rem, 8.4vw, 7rem);
  --fs-h1:      clamp(2.4rem, 5.2vw, 4.2rem);
  --fs-h2:      clamp(1.95rem, 3.6vw, 3.1rem);
  --fs-h3:      clamp(1.3rem, 2.1vw, 1.7rem);
  --fs-lead:    clamp(1.06rem, 1.5vw, 1.32rem);
  --fs-label:   0.72rem;

  /* --- layout --- */
  --maxw: 1180px;
  --pad:  clamp(1.25rem, 5vw, 3rem);
  --sec:  clamp(4.5rem, 10vw, 9rem);
  --ease: cubic-bezier(0.22, 0.61, 0.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 {
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.02rem;
  line-height: 1.65;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--brass); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--brass-lt);
  outline-offset: 3px;
}

/* ----------------------------- helpers ------------------------------ */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

.eyebrow {
  font-family: var(--sans);
  font-weight: 500;
  font-size: var(--fs-label);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--brass-lt);
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}
.eyebrow::before {
  content: "";
  width: 1.9rem;
  height: 1px;
  background: var(--brass);
  opacity: 0.75;
}
.eyebrow--center { justify-content: center; }

h1, h2, h3, .serif {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.01em;
}
em, .it { font-style: italic; }

.lead { font-size: var(--fs-lead); line-height: 1.55; font-weight: 300; }

/* stepped "stringer" divider — the signature motif */
.stringer { display: flex; align-items: center; gap: 0; color: var(--brass); }
.stringer svg { display: block; height: 26px; width: auto; overflow: visible; }
.stringer .line {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, currentColor, transparent);
  opacity: 0.5;
}
.stringer--dim { color: var(--brass-dk); }

/* ------------------------------ buttons ----------------------------- */
.btn {
  --bd: var(--ivory);
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-family: var(--sans); font-weight: 500;
  font-size: 0.74rem; letter-spacing: 0.22em; text-transform: uppercase;
  padding: 1rem 1.7rem;
  border: 1px solid var(--bd);
  color: var(--ivory);
  background: transparent;
  cursor: pointer;
  transition: background .45s var(--ease), color .45s var(--ease), border-color .45s var(--ease);
}
.btn .ar { transition: transform .45s var(--ease); }
.btn:hover { background: var(--ivory); color: var(--ink); }
.btn:hover .ar { transform: translateX(4px); }

.btn--brass { --bd: var(--brass); color: var(--brass-lt); }
.btn--brass:hover { background: var(--brass); color: var(--ink); border-color: var(--brass); }

.btn--solid { background: var(--brass); border-color: var(--brass); color: var(--ink); }
.btn--solid:hover { background: var(--ivory); border-color: var(--ivory); color: var(--ink); }

.btn--ink { --bd: var(--ink-pap); color: var(--ink-pap); }
.btn--ink:hover { background: var(--ink-pap); color: var(--paper); }

/* quiet text link with brass underline draw */
.tlink {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-weight: 500; font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--brass-lt);
  padding-bottom: 0.3rem;
  position: relative;
}
.tlink::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--brass); transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.tlink:hover::after { transform: scaleX(1); }
.tlink .ar { transition: transform .4s var(--ease); }
.tlink:hover .ar { transform: translateX(4px); }

/* =====================================================================
   NAV
   ===================================================================== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem var(--pad);
  background: linear-gradient(180deg, rgba(16,13,9,0.78), rgba(16,13,9,0));
  transition: background .4s var(--ease), border-color .4s var(--ease), padding .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.solid {
  background: rgba(16, 13, 9, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-d);
  padding-block: 0.85rem;
}

.brand { display: flex; flex-direction: column; line-height: 1; }
.brand b {
  font-family: var(--serif); font-weight: 500; font-size: 1.32rem; letter-spacing: 0;
}
.brand b em { color: var(--brass-lt); }
.brand span {
  font-family: var(--sans); font-weight: 400;
  font-size: 0.58rem; letter-spacing: 0.42em; text-transform: uppercase;
  color: var(--ivory-dim); margin-top: 0.42rem;
}

.nav-links { display: flex; align-items: center; gap: 1.9rem; }
.nav-links a {
  font-family: var(--sans); font-weight: 400;
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ivory-dim);
  position: relative; padding: 0.35rem 0;
  transition: color .3s var(--ease);
}
.nav-links a:hover { color: var(--ivory); }
.nav-links a[aria-current="page"] { color: var(--ivory); }
.nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: var(--brass);
}
.nav-links .nav-cta {
  border: 1px solid var(--line-d); padding: 0.6rem 1.1rem;
  color: var(--brass-lt);
  transition: border-color .3s var(--ease), color .3s var(--ease);
}
.nav-links .nav-cta::after { display: none; }
.nav-links .nav-cta:hover { border-color: var(--brass); color: var(--brass-lt); }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 38px; height: 30px; padding: 6px 4px; color: var(--ivory);
}
.nav-toggle span { display: block; height: 1.5px; background: currentColor; transition: .35s var(--ease); }
.nav-toggle span + span { margin-top: 7px; }

/* =====================================================================
   HERO
   ===================================================================== */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%;
  transform: scale(1.06);
  animation: kenburns 26s ease-out forwards;
  filter: saturate(0.92) contrast(1.02);
}
@keyframes kenburns { to { transform: scale(1.0) translateY(-1.2%); } }
.hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(16,13,9,0.55) 0%, rgba(16,13,9,0.12) 32%, rgba(16,13,9,0.10) 50%, rgba(16,13,9,0.86) 100%),
    linear-gradient(90deg, rgba(16,13,9,0.70) 0%, rgba(16,13,9,0.15) 55%, transparent 100%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(3rem, 7vw, 6rem); padding-top: 8rem; }
.hero h1 {
  max-width: 720px;
  margin-top: 1.4rem;
}
.hero-co { display: block; font-size: clamp(1.5rem, 3.2vw, 2.5rem); font-weight: 500; line-height: 1.06; color: var(--ivory); }
.hero-be { display: block; font-style: italic; font-size: clamp(2.4rem, 7.4vw, 5.6rem); line-height: 1.0; margin-top: 0.55rem; color: var(--brass-lt); }
.hero h1 em { color: var(--brass-lt); }
.hero p {
  max-width: 46ch; margin-top: 1.7rem; color: var(--ivory-dim);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.4rem; }
.hero .stringer { margin-top: 2.6rem; max-width: 520px; }

.scrollcue {
  position: absolute; z-index: 2; left: var(--pad); bottom: 1.5rem;
  font-size: 0.62rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--ivory-faint); display: flex; align-items: center; gap: 0.7rem;
  writing-mode: vertical-rl; transform: rotate(180deg);
}
@media (max-width: 720px) { .scrollcue { display: none; } }

/* =====================================================================
   SECTION SHELLS
   ===================================================================== */
.section { padding-block: var(--sec); position: relative; }
.section--ink   { background: var(--ink); color: var(--ivory); }
.section--ink2  { background: var(--ink-2); color: var(--ivory); }
.section--paper { background: var(--paper); color: var(--ink-pap); }

.section--paper .eyebrow { color: var(--brass-dk); }
.section--paper .eyebrow::before { background: var(--brass-dk); }
.section--paper .lead { color: var(--muted-pap); }

.sec-head { max-width: 62ch; }
.sec-head h2 { margin-top: 1.1rem; font-size: var(--fs-h2); }

/* ---- ethos / editorial split ---- */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split--rev { grid-template-columns: 0.95fr 1.05fr; }
.split-body h2 { font-size: var(--fs-h2); margin: 1.1rem 0 1.4rem; }
.split-body p + p { margin-top: 1.1rem; }
.split-body .stats { display: flex; gap: clamp(1.5rem, 4vw, 3rem); margin-top: 2.2rem; flex-wrap: wrap; }
.stat b { font-family: var(--serif); font-size: clamp(2rem, 4vw, 2.9rem); display: block; line-height: 1; color: var(--brass-lt); }
.section--paper .stat b { color: var(--brass-dk); }
.stat span { font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ivory-dim); margin-top: 0.6rem; display: block; }
.section--paper .stat span { color: var(--muted-pap); }

/* framed editorial photo with corner ticks */
.plate { position: relative; }
.plate img { width: 100%; aspect-ratio: 4/4.6; object-fit: cover; }
.plate::before, .plate::after,
.plate .tick-a, .plate .tick-b { content: ""; position: absolute; width: 16px; height: 16px; border: 1px solid var(--brass); z-index: 2; }
.plate::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.plate::after  { top: -1px; right: -1px; border-left: 0; border-bottom: 0; }
.plate .tick-a { bottom: -1px; left: -1px; border-right: 0; border-top: 0; }
.plate .tick-b { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.plate .caption {
  position: absolute; left: 0; bottom: 0; right: 0;
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.8rem 1rem;
  font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ivory); background: linear-gradient(0deg, rgba(16,13,9,0.82), transparent);
}
.plate .caption b { font-weight: 500; color: var(--brass-lt); }

/* =====================================================================
   SERVICES INDEX
   ===================================================================== */
.services { margin-top: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--line-l); }
.svc {
  display: grid; grid-template-columns: 3.2rem 1fr auto; align-items: baseline; gap: 1.2rem;
  padding: 1.5rem 0; border-bottom: 1px solid var(--line-l);
  transition: background .35s var(--ease);
}
.svc .no { font-size: 0.7rem; letter-spacing: 0.1em; color: var(--brass-dk); font-weight: 500; }
.svc h3 { font-size: clamp(1.4rem, 2.6vw, 2.1rem); font-weight: 400; }
.svc p { color: var(--muted-pap); font-size: 0.92rem; max-width: 48ch; margin-top: 0.35rem; }
.svc .go { color: var(--brass-dk); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0; transform: translateX(-6px); transition: .4s var(--ease); }
a.svc:hover { background: linear-gradient(90deg, rgba(194,160,99,0.08), transparent); }
a.svc:hover .go { opacity: 1; transform: translateX(0); }
a.svc:hover h3 { color: var(--brass-dk); }

/* =====================================================================
   CUSTOM-FIT FEATURE BAND (the focal dark panel)
   ===================================================================== */
.feature { background: var(--ink); color: var(--ivory); position: relative; overflow: hidden; }
.feature .wrap { position: relative; z-index: 2; }
.feature-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.feature h2 { font-size: clamp(2.1rem, 4.2vw, 3.6rem); }
.feature h2 em { color: var(--brass-lt); }
.feature p { color: var(--ivory-dim); margin-top: 1.4rem; max-width: 50ch; }
.feature .quote {
  font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.4; color: var(--ivory);
}
.feature .quote .mk { color: var(--brass-lt); }
.feature-aside { border-left: 1px solid var(--line-d); padding-left: clamp(1.4rem, 3vw, 2.6rem); }
.spec-row { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line-d); font-size: 0.86rem; }
.spec-row:first-child { padding-top: 0; }
.spec-row b { color: var(--brass-lt); font-weight: 500; }
.spec-row span { color: var(--ivory-dim); }

/* faint stair-section watermark behind feature */
.feature-mark { position: absolute; right: -4%; bottom: -10%; z-index: 1; width: min(46%, 540px); color: var(--ivory); opacity: 0.05; pointer-events: none; }

/* =====================================================================
   SELECTED WORK
   ===================================================================== */
.work-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(1rem, 2.4vw, 1.8rem); margin-top: clamp(2.5rem, 5vw, 4rem); }
.work {
  position: relative; overflow: hidden; display: block;
  background: var(--ink-3);
}
.work.tall  { grid-column: span 5; }
.work.wide  { grid-column: span 7; }
.work.half  { grid-column: span 6; }
.work img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1/1; transition: transform 1.1s var(--ease), filter .6s var(--ease); filter: brightness(0.82) saturate(0.9); }
.work.tall img { aspect-ratio: 4/5; }
.work.wide img { aspect-ratio: 16/11; }
.work:hover img { transform: scale(1.045); filter: brightness(0.95) saturate(1.02); }
.work-cap {
  position: absolute; inset: auto 0 0 0; z-index: 2;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem;
  padding: 3.6rem 1.4rem 1.35rem;
  color: var(--ivory);
  background: linear-gradient(0deg, rgba(16,13,9,0.95) 0%, rgba(16,13,9,0.62) 42%, rgba(16,13,9,0.05) 82%, rgba(16,13,9,0) 100%);
  text-shadow: 0 1px 16px rgba(0,0,0,0.6);
}
.work-cap .t { font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.6rem); }
.work-cap .e { font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brass-lt); display: block; margin-bottom: 0.4rem; }
.work-cap .ar { color: var(--brass-lt); transition: transform .45s var(--ease); }
.work:hover .work-cap .ar { transform: translate(4px, -4px); }

/* placeholder variant (remodels card with no photo yet) */
.work.empty { background: var(--ink-2); border: 1px solid var(--line-d); display: grid; place-items: center; min-height: 220px; }
.work.empty .ph { text-align: center; color: var(--ivory-faint); }
.work.empty .ph .k { font-size: 0.64rem; letter-spacing: 0.26em; text-transform: uppercase; }

/* =====================================================================
   GALLERY (sub-pages) — elegant blank image frames
   ===================================================================== */
.page-head { position: relative; padding-top: clamp(8rem, 14vw, 12rem); padding-bottom: clamp(3rem, 6vw, 5rem); background: var(--ink); overflow: hidden; }
.page-head h1 { font-size: var(--fs-h1); margin-top: 1.2rem; max-width: 16ch; }
.page-head h1 em { color: var(--brass-lt); }
.page-head p { color: var(--ivory-dim); max-width: 52ch; margin-top: 1.5rem; }
.page-head .stringer { margin-top: 2.4rem; max-width: 460px; }
.crumb { font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ivory-faint); }
.crumb a:hover { color: var(--brass-lt); }

.gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(1rem, 2.2vw, 1.6rem); }
.frame {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(20,17,12,0.04), transparent 60%),
    var(--paper-2);
  border: 1px solid var(--line-l);
  display: grid; place-items: center;
}
.frame .fc { content: ""; position: absolute; width: 14px; height: 14px; border: 1px solid var(--brass); opacity: 0.6; }
.frame .fc.tl { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.frame .fc.tr { top: 10px; right: 10px; border-left: 0; border-bottom: 0; }
.frame .fc.bl { bottom: 10px; left: 10px; border-right: 0; border-top: 0; }
.frame .fc.br { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }
.frame-mark { width: 30%; max-width: 64px; color: var(--brass-dk); opacity: 0.5; margin-bottom: 0.9rem; }
.frame-txt { text-align: center; padding: 0 1rem; }
.frame-txt .ft { font-family: var(--serif); font-size: 1.15rem; color: var(--ink-pap); }
.frame-txt .fk { font-size: 0.6rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted-pap); margin-top: 0.5rem; }
.frame::after { content: ""; position: absolute; inset: 0; background: var(--brass); opacity: 0; transition: opacity .4s var(--ease); mix-blend-mode: multiply; }
.frame:hover::after { opacity: 0.045; }

/* aspect spans */
.frame.s4 { grid-column: span 2; aspect-ratio: 4/5; }
.frame.s6 { grid-column: span 3; aspect-ratio: 3/2; }
.frame.s3 { grid-column: span 2; aspect-ratio: 1/1; }
.frame.wide { grid-column: span 4; aspect-ratio: 16/9; }
.frame.tall { grid-column: span 2; aspect-ratio: 3/4; }

.note-strip { margin-top: clamp(2.2rem, 4vw, 3.5rem); padding: 1.3rem 1.5rem; border: 1px solid var(--line-l); background: var(--paper-2); display: flex; gap: 1rem; align-items: center; font-size: 0.86rem; color: var(--muted-pap); }
.note-strip .k { color: var(--brass-dk); font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.64rem; white-space: nowrap; }

/* =====================================================================
   CTA STRIP
   ===================================================================== */
.cta { background: var(--ink-deep); color: var(--ivory); text-align: center; padding-block: clamp(4rem, 8vw, 6.5rem); }
.cta h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); max-width: 18ch; margin: 1.2rem auto 1.8rem; }
.cta h2 em { color: var(--brass-lt); }
.cta .actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* =====================================================================
   CONTACT / INQUIRY
   ===================================================================== */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2.2rem, 5vw, 5rem); }
.contact-info h2 { font-size: var(--fs-h2); margin: 1.1rem 0 1.6rem; }
.info-row { padding: 1.1rem 0; border-top: 1px solid var(--line-d); }
.info-row .k { font-size: 0.62rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--brass-lt); }
.info-row .v { margin-top: 0.4rem; color: var(--ivory); font-size: 0.98rem; }
.info-row .v a:hover { color: var(--brass-lt); }

/* form */
.form { display: grid; gap: 1.15rem; }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
.field label, .form-label { font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ivory-dim); }
.input, .textarea, .select {
  font-family: var(--sans); font-size: 0.98rem; font-weight: 300; color: var(--ivory);
  background: var(--ink); border: 1px solid var(--line-d); padding: 0.95rem 1rem;
  width: 100%; transition: border-color .3s var(--ease), background .3s var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--ivory-faint); }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--brass); background: var(--ink-2); }
.textarea { resize: vertical; min-height: 130px; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--brass) 50%), linear-gradient(135deg, var(--brass) 50%, transparent 50%); background-position: calc(100% - 20px) 1.25rem, calc(100% - 14px) 1.25rem; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; }
.form .btn { justify-content: center; }
.form-status { font-size: 0.86rem; color: var(--brass-lt); line-height: 1.5; opacity: 0; max-height: 0; transition: opacity .4s var(--ease); }
.form-status.show { opacity: 1; max-height: 200px; }
.form-status.ok { color: #b7d3a8; }
.consent { font-size: 0.72rem; color: var(--ivory-faint); }

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer { background: var(--ink-deep); color: var(--ivory-dim); padding-block: clamp(3.5rem, 6vw, 5rem) 2.2rem; border-top: 1px solid var(--line-d); }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; }
.footer .brand b { color: var(--ivory); }
.footer-blurb { margin-top: 1.2rem; max-width: 34ch; font-size: 0.9rem; }
.footer-col h4 { font-size: 0.62rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--brass-lt); font-family: var(--sans); font-weight: 500; margin-bottom: 1rem; }
.footer-col a, .footer-col p { display: block; font-size: 0.9rem; color: var(--ivory-dim); padding: 0.28rem 0; }
.footer-col a:hover { color: var(--ivory); }
.footer-bot { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: 1.6rem; border-top: 1px solid var(--line-d); font-size: 0.72rem; letter-spacing: 0.04em; color: var(--ivory-faint); }

/* =====================================================================
   REVEAL ANIMATION
   ===================================================================== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-media img { animation: none; transform: none; }
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 900px) {
  .split, .split--rev, .feature-grid, .contact-grid { grid-template-columns: 1fr; }
  .split--rev .plate { order: -1; }
  .feature-aside { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-d); padding-top: 1.5rem; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .work.tall, .work.wide, .work.half { grid-column: span 6; }
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .frame.wide { grid-column: span 4; }
  .frame.s6 { grid-column: span 4; aspect-ratio: 16/10; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 0 0 auto 0; flex-direction: column; align-items: flex-start; gap: 0.4rem;
    padding: 6rem var(--pad) 2.2rem; background: var(--ink-deep);
    transform: translateY(-100%); transition: transform .5s var(--ease); border-bottom: 1px solid var(--line-d);
    z-index: -1;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { font-size: 1rem; padding: 0.7rem 0; }
  .nav-links .nav-cta { margin-top: 0.6rem; }
  .nav.solid { padding-block: 0.85rem; }
  .field.row2 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 2.2rem; }
  .footer-bot { flex-direction: column; }
  .work.tall, .work.wide, .work.half, .work.empty { grid-column: span 12; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .frame.s6, .frame.wide { grid-column: span 2; aspect-ratio: 4/3; }
  .frame.s4, .frame.s3, .frame.tall { grid-column: span 1; }
  .stat { min-width: 40%; }
}
