/* Woodlux Groups — site styles
   Palette and type follow the brand lockup: gold on charcoal, Roman capitals. */

:root {
  --bg: #141211;
  --bg-2: #1b1816;
  --charcoal: #323031;
  --gold: #d4a53c;
  --gold-hi: #f6e27a;
  --gold-lo: #8c6420;
  --cream: #f3ebdd;
  --muted: #b9ae9c;
  --faint: rgba(243, 235, 221, 0.09);
  --line: rgba(212, 165, 60, 0.3);
  --gold-grad: linear-gradient(100deg, #9a6f22 0%, #f6e27a 38%, #d4a53c 62%, #8c6420 100%);

  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --caps: "Cinzel", "Trajan Pro", Georgia, serif;
  --sans: "Jost", "Segoe UI", system-ui, sans-serif;

  --pad: clamp(1.25rem, 4.2vw, 4.5rem);
  --header-h: 78px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  background: var(--bg);
  color: var(--cream);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: clip;
  background:
    radial-gradient(55% 45% at 72% 38%, rgba(212, 165, 60, 0.09), transparent 70%),
    radial-gradient(120% 90% at 50% 0%, #201a14 0%, var(--bg) 62%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: rgba(212, 165, 60, 0.35); color: #fff; }

:focus-visible {
  outline: 2px solid var(--gold-hi);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute; left: 1rem; top: -3rem; z-index: 100;
  background: var(--gold); color: #1a140c; padding: .6rem 1rem;
  font-family: var(--caps); font-size: .8rem; letter-spacing: .12em; text-decoration: none;
}
.skip:focus { top: 1rem; }

/* ---------- 3D stage & atmosphere ---------- */

#stage {
  position: fixed; inset: 0;
  width: 100%; height: 100vh; height: 100lvh;
  z-index: 0; display: block; pointer-events: none;
  opacity: 0; transition: opacity 1.6s var(--ease);
}
.stage-ready #stage { opacity: 1; }
.no-webgl #stage { display: none; }

.vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse at 50% 50%, transparent 52%, rgba(8, 6, 5, 0.62) 100%);
}
.grain {
  position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: .055;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- header & navigation ---------- */

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 0 var(--pad);
  transition: background .45s var(--ease), height .45s var(--ease), box-shadow .45s;
}
.scrolled .site-header {
  height: 64px;
  background: linear-gradient(to bottom, rgba(20, 18, 17, .94), rgba(20, 18, 17, .82));
  box-shadow: 0 1px 0 var(--line);
}
.brand { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.brand img { height: 46px; width: auto; transition: height .45s var(--ease); }
.scrolled .brand img { height: 38px; }

.menu { list-style: none; display: flex; align-items: center; gap: clamp(.9rem, 1.7vw, 2rem); }
.menu a:not(.btn) {
  position: relative; display: inline-block; padding: .7rem 0;
  font-family: var(--caps); font-size: .72rem; font-weight: 500; letter-spacing: .17em;
  text-transform: uppercase; text-decoration: none; color: var(--cream);
  transition: color .3s;
}
.menu a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .35rem; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.menu a:not(.btn):hover { color: var(--gold-hi); }
.menu a:not(.btn):hover::after,
.menu a[aria-current="page"]::after { transform: scaleX(1); }
.menu a[aria-current="page"] { color: var(--gold-hi); }
.menu-foot { display: none; }

.nav-toggle {
  display: none; align-items: center; gap: .75rem; min-height: 44px; padding: 0 .25rem;
  font-family: var(--caps); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
}
.nav-toggle .bars { position: relative; width: 26px; height: 10px; }
.nav-toggle .bars::before,
.nav-toggle .bars::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px; background: var(--gold-hi);
  transition: transform .4s var(--ease), top .4s var(--ease);
}
.nav-toggle .bars::before { top: 0; }
.nav-toggle .bars::after { top: 9px; }
.nav-open .nav-toggle .bars::before { top: 5px; transform: rotate(45deg); }
.nav-open .nav-toggle .bars::after { top: 5px; transform: rotate(-45deg); }

@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; position: relative; z-index: 2; }
  .menu-wrap {
    position: fixed; inset: 0; z-index: 1;
    display: flex; flex-direction: column; justify-content: center;
    padding: calc(var(--header-h) + 1rem) var(--pad) 2rem;
    background:
      radial-gradient(70% 50% at 80% 20%, rgba(212, 165, 60, .12), transparent 70%),
      var(--bg);
    opacity: 0; visibility: hidden;
    transition: opacity .45s var(--ease), visibility 0s .45s;
  }
  .nav-open .menu-wrap { opacity: 1; visibility: visible; transition: opacity .45s var(--ease); }
  .nav-open { overflow: hidden; }
  .menu { flex-direction: column; align-items: flex-start; gap: .2rem; }
  .menu a:not(.btn) {
    font-family: var(--serif); font-size: clamp(2rem, 7vw, 3rem); font-weight: 500;
    letter-spacing: 0; text-transform: none; padding: .25rem 0;
  }
  .menu a:not(.btn)::after { bottom: .2rem; }
  .menu-cta { margin-top: 1.4rem; }
  .menu-foot {
    display: block; margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid var(--line);
    color: var(--muted); font-size: .95rem;
  }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .7rem;
  min-height: 48px; padding: 0 1.55rem;
  font-family: var(--caps); font-size: .74rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; text-decoration: none; color: var(--cream);
  border: 1px solid var(--line); background: rgba(20, 18, 17, .35);
  transition: border-color .3s, color .3s, background .3s, transform .3s var(--ease), filter .3s;
}
.btn:hover { border-color: var(--gold); color: var(--gold-hi); }
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-solid {
  background: linear-gradient(180deg, #ecd06f 0%, #d4a53c 55%, #a97d2c 100%);
  border-color: transparent; color: #1b140a;
}
.btn-solid:hover { color: #1b140a; filter: brightness(1.08); }
.btn-small { min-height: 42px; padding: 0 1.1rem; font-size: .68rem; }
.actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.3rem; }

/* ---------- chapters (scroll sections) ---------- */

main { position: relative; z-index: 2; }

.chapter {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 3rem) var(--pad) 5rem;
}
.chapter.tall { min-height: 125vh; }
.chapter[data-align="right"] { justify-content: flex-end; }
.chapter[data-align="center"] { justify-content: center; text-align: center; }
.chapter[data-align="center"] .copy { margin-inline: auto; }
.chapter[data-align="center"] .eyebrow { justify-content: center; }
.chapter[data-align="center"] .actions { justify-content: center; }
.chapter[data-align="center"] .lead { margin-inline: auto; }

.copy { position: relative; width: min(35rem, 100%); }
.copy.wide { width: min(50rem, 100%); }
.copy::before {
  content: ""; position: absolute; inset: -4rem -5rem; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(20, 18, 17, .82), rgba(20, 18, 17, .55) 55%, rgba(20, 18, 17, 0));
}

@media (min-width: 1101px) {
  .chapter[data-align="right"] { padding-right: calc(var(--pad) + 5.5rem); }
}

/* mobile & portrait tablets: 3D sits in the upper part, copy reads from the bottom */
@media (max-width: 760px), (orientation: portrait) and (max-width: 1080px) {
  :root { --header-h: 68px; }
  .brand img { height: 40px; }
  .chapter { align-items: flex-end; padding-bottom: 3.5rem; padding-top: 42vh; }
  .chapter[data-align="right"] { justify-content: flex-start; }
  .chapter[data-align="center"] { justify-content: flex-start; text-align: left; }
  .chapter[data-align="center"] .eyebrow,
  .chapter[data-align="center"] .actions { justify-content: flex-start; }
  .chapter[data-align="center"] .copy { margin-inline: 0; }
  .chapter::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 78%;
    z-index: -1; pointer-events: none;
    background: linear-gradient(to top, rgba(20, 18, 17, .97) 0%, rgba(20, 18, 17, .86) 50%, rgba(20, 18, 17, 0) 100%);
  }
  .copy::before { display: none; }
  .chapter.dense { padding-top: 30vh; }
}

/* ---------- type ---------- */

.eyebrow {
  display: flex; align-items: center; gap: .85rem; margin-bottom: 1.35rem;
  font-family: var(--caps); font-size: .76rem; font-weight: 500; letter-spacing: .24em;
  text-transform: uppercase; color: var(--gold);
}
.eyebrow::before { content: ""; width: 2.4rem; height: 1px; background: currentColor; flex: none; }

h1, .h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.7rem, 6.1vw, 5.9rem); line-height: 1.02; letter-spacing: -.012em;
  text-wrap: balance;
}
h2, .h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.15rem, 4.3vw, 3.9rem); line-height: 1.06; letter-spacing: -.01em;
  text-wrap: balance;
}
h3, .h3 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.45rem, 2vw, 1.9rem); line-height: 1.18;
}
.gold {
  font-style: italic;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text;
  color: transparent; padding-right: .06em;
}
.lead {
  margin-top: 1.45rem; max-width: 32em;
  font-size: clamp(1.06rem, 1.3vw, 1.22rem); color: var(--muted); text-wrap: pretty;
}
.copy p + p { margin-top: 1rem; }
.copy > p { color: var(--muted); text-wrap: pretty; }
.note { margin-top: 1.4rem; font-size: .88rem; color: var(--muted); opacity: .85; }
.small-caps {
  font-family: var(--caps); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold);
}

/* ---------- components ---------- */

/* ledger — factual figures in a ruled row */
.ledger {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2.3rem; border-top: 1px solid var(--line);
}
.ledger > div { padding: 1.15rem 1.4rem 0 0; }
.ledger > div + div { padding-left: 1.4rem; border-left: 1px solid var(--faint); }
.ledger b {
  display: block; font-family: var(--serif); font-weight: 500; line-height: 1.1;
  font-size: clamp(1.8rem, 2.8vw, 2.5rem); color: var(--gold-hi);
}
.ledger span { display: block; margin-top: .3rem; font-size: .86rem; color: var(--muted); line-height: 1.45; }

/* large serif link list */
.worlds { list-style: none; margin-top: 2.1rem; border-top: 1px solid var(--line); }
.worlds a {
  display: grid; grid-template-columns: 2.6rem 1fr auto; column-gap: 1rem; align-items: baseline;
  padding: 1rem 0 1.05rem; border-bottom: 1px solid var(--line); text-decoration: none;
}
.worlds .n { font-family: var(--caps); font-size: .72rem; letter-spacing: .12em; color: var(--gold); }
.worlds .t { font-family: var(--serif); font-size: clamp(1.75rem, 3vw, 2.55rem); line-height: 1.08; transition: color .3s; }
.worlds .d { grid-column: 2 / 3; font-size: .95rem; color: var(--muted); line-height: 1.5; }
.worlds .arrow { grid-column: 3; grid-row: 1; color: var(--gold); transition: transform .35s var(--ease); }
.worlds a:hover .t { color: var(--gold-hi); }
.worlds a:hover .arrow { transform: translateX(6px); }

/* tag line list */
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem .1rem; margin-top: 1.3rem; }
.tags li {
  font-family: var(--caps); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--cream);
}
.tags li:not(:last-child)::after { content: "·"; margin: 0 .7rem; color: var(--gold); }

/* ruled columns (occasions, construction types, categories) */
.columns {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr)); gap: 0 2rem;
  margin-top: 2.2rem;
}
.columns > div { padding: 1.1rem 0 1.3rem; border-top: 1px solid var(--line); }
.columns h3 { font-size: 1.45rem; }
.columns p { margin-top: .45rem; font-size: .96rem; color: var(--muted); line-height: 1.6; }
.columns .small-caps { display: block; margin-bottom: .35rem; }

/* numbered steps */
.steps { list-style: none; margin-top: 2rem; counter-reset: step; }
.steps li {
  counter-increment: step; display: grid; grid-template-columns: 3rem 1fr; gap: .2rem 1rem;
  padding: 1rem 0; border-top: 1px solid var(--line);
}
.steps li::before {
  content: counter(step, decimal-leading-zero); grid-row: span 2;
  font-family: var(--caps); font-size: .8rem; color: var(--gold); padding-top: .45rem;
}
.steps b { font-family: var(--serif); font-weight: 600; font-size: 1.4rem; }
.steps span { color: var(--muted); font-size: .98rem; }

/* tables */
.table-wrap { margin-top: 1.8rem; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .97rem; min-width: 30rem; }
.table th {
  text-align: left; font-family: var(--caps); font-weight: 500; font-size: .68rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold); padding: .7rem 1rem .7rem 0; border-bottom: 1px solid var(--line);
}
.table td { padding: .85rem 1rem .85rem 0; border-bottom: 1px solid var(--faint); vertical-align: top; color: var(--muted); line-height: 1.5; }
.table td:first-child { color: var(--cream); font-family: var(--serif); font-size: 1.28rem; font-weight: 500; white-space: nowrap; }

/* chapter year (Our Story) */
.year {
  display: block; font-family: var(--serif); font-weight: 400; line-height: .9;
  font-size: clamp(4.4rem, 11vw, 9.5rem); letter-spacing: -.02em;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: .6rem;
}
.entity { display: block; margin-top: 1.1rem; font-family: var(--caps); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }

/* quote */
.pull {
  margin-top: 2rem; padding-left: 1.4rem; border-left: 1px solid var(--gold);
  font-family: var(--serif); font-style: italic; font-size: clamp(1.35rem, 2vw, 1.7rem); line-height: 1.35; color: var(--cream);
}

/* stores */
.stores { list-style: none; margin-top: 2rem; border-top: 1px solid var(--line); }
.stores li { border-bottom: 1px solid var(--line); }
.store {
  display: grid; grid-template-columns: 1fr auto; gap: .3rem 1.2rem; align-items: start;
  padding: 1.1rem .2rem; transition: background .3s;
}
.store:hover, .store:focus-within, .store.active { background: rgba(212, 165, 60, .06); }
.store h3 { font-size: 1.5rem; }
.store p { grid-column: 1; color: var(--muted); font-size: .95rem; line-height: 1.55; }
.store .for { font-family: var(--caps); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.store .btn { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
@media (max-width: 560px) {
  .store { grid-template-columns: 1fr; }
  .store .btn { grid-column: 1; grid-row: auto; justify-self: start; margin-top: .5rem; }
}

/* ---------- switcher (finish / swatch controls) ---------- */

.switcher {
  position: fixed; z-index: 30; right: var(--pad); bottom: 1.4rem;
  display: flex; align-items: center; flex-wrap: wrap; gap: .35rem .9rem;
  padding: .35rem .5rem .35rem 1.1rem;
  background: rgba(20, 18, 17, .86); border: 1px solid var(--line); border-radius: 999px;
  opacity: 0; transform: translateY(12px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.stage-ready .switcher { opacity: 1; transform: none; }
.no-webgl .switcher { display: none; }
.switcher .group { display: flex; align-items: center; gap: .15rem; }
.switcher .label {
  margin-right: .45rem; font-family: var(--caps); font-size: .64rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted);
}
.swatch {
  position: relative; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
}
.swatch::before {
  content: ""; width: 26px; height: 26px; border-radius: 50%;
  background: var(--c, #999); border: 1px solid rgba(255, 255, 255, .22);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.swatch:hover::before { transform: scale(1.1); }
.swatch[aria-pressed="true"]::before { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--gold-hi); }
.swatch .tip {
  position: absolute; bottom: calc(100% + .35rem); left: 50%; transform: translateX(-50%);
  white-space: nowrap; font-family: var(--caps); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--cream); background: var(--bg); border: 1px solid var(--line); padding: .25rem .5rem;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.swatch:hover .tip, .swatch:focus-visible .tip { opacity: 1; }
.switcher .sep { width: 1px; height: 26px; background: var(--line); }

@media (max-width: 760px), (orientation: portrait) and (max-width: 1080px) {
  .switcher { top: calc(var(--header-h) + .5rem); bottom: auto; right: 50%; transform: translate(50%, -8px); padding-left: .9rem; }
  .stage-ready .switcher { transform: translate(50%, 0); }
  .switcher .label { display: none; }
  .switcher .sep { height: 20px; }
}

/* ---------- chapter rail (in-page navigation) ---------- */

.rail {
  position: fixed; z-index: 30; right: 1.3rem; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: .5rem;
}
.rail a {
  display: flex; align-items: center; justify-content: flex-end; gap: .7rem; min-height: 22px;
  font-family: var(--caps); font-size: .6rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
}
.rail a span { opacity: 0; transform: translateX(6px); transition: opacity .3s, transform .3s var(--ease); white-space: nowrap; }
.rail a::after { content: ""; width: 16px; height: 1px; background: currentColor; transition: width .35s var(--ease); }
.rail a.active { color: var(--gold-hi); }
.rail a.active::after { width: 32px; }
.rail a:hover span, .rail a:focus-visible span, .rail a.active span { opacity: 1; transform: none; }
@media (max-width: 1100px) { .rail { display: none; } }

/* ---------- sleep finder ---------- */

.finder { margin-top: 1.8rem; display: grid; gap: 1.2rem; }
.finder fieldset { border: 0; }
.finder legend { font-family: var(--caps); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: .55rem; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem;
  border: 1px solid var(--line); font-size: .95rem; color: var(--cream); cursor: pointer;
  transition: background .25s, border-color .25s, color .25s;
}
.chip input:checked + span { background: rgba(212, 165, 60, .16); border-color: var(--gold); color: var(--gold-hi); }
.chip input:focus-visible + span { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
.chip span:hover { border-color: var(--gold); }
.result {
  margin-top: .4rem; padding: 1.3rem 1.4rem; border: 1px solid var(--line);
  background: rgba(20, 18, 17, .72);
}
.result h3 { font-size: 1.7rem; }
.result h3 em { font-style: italic; color: var(--gold-hi); }
.result p { color: var(--muted); margin-top: .45rem; font-size: .98rem; }
.meter { margin-top: 1rem; }
.meter-track { position: relative; height: 4px; background: linear-gradient(90deg, #f3ebdd33, #d4a53c); }
.meter-dot {
  position: absolute; top: 50%; width: 16px; height: 16px; border-radius: 50%;
  background: var(--gold-hi); box-shadow: 0 0 0 4px rgba(246, 226, 122, .2);
  transform: translate(-50%, -50%); left: calc(var(--v, .5) * 100%);
  transition: left .8s var(--ease);
}
.meter-scale { display: flex; justify-content: space-between; margin-top: .55rem; font-family: var(--caps); font-size: .62rem; letter-spacing: .16em; color: var(--muted); }

/* ---------- footer ---------- */

.site-footer {
  position: relative; z-index: 2;
  padding: 8rem var(--pad) 2.4rem;
  background: linear-gradient(to bottom, rgba(20, 18, 17, 0), var(--bg) 22%);
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1.1fr 1.3fr; gap: 2.6rem;
  padding-top: 3rem; border-top: 1px solid var(--line);
}
.footer-grid img { height: 64px; width: auto; }
.footer-grid .motto { margin-top: 1.2rem; font-family: var(--serif); font-style: italic; font-size: 1.45rem; line-height: 1.3; }
.footer-grid .since { margin-top: .5rem; color: var(--muted); font-size: .92rem; }
.footer-grid h2 { font-family: var(--caps); font-size: .7rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.footer-grid ul { list-style: none; display: grid; gap: .45rem; }
.footer-grid li, .footer-grid address { font-style: normal; color: var(--muted); font-size: .95rem; line-height: 1.55; }
.footer-grid a { text-decoration: none; transition: color .25s; }
.footer-grid a:hover { color: var(--gold-hi); }
.socials { display: flex; gap: 1.2rem; margin-top: 1rem; }
.socials a { font-family: var(--caps); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cream); }
.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  margin-top: 3.2rem; padding-top: 1.4rem; border-top: 1px solid var(--faint);
  font-size: .82rem; color: var(--muted);
}
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- reveal on scroll ---------- */

html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1.15s var(--ease); }
html.js .reveal.in { opacity: 1; transform: none; }
html.js .d1 { transition-delay: .08s; }
html.js .d2 { transition-delay: .16s; }
html.js .d3 { transition-delay: .24s; }
html.reveal-all .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html.js .reveal { transform: none; transition: opacity .5s linear; }
  #stage { transition: none; }
  * { scroll-behavior: auto !important; }
}

/* ---------- 404 ---------- */
.lost { min-height: 100svh; }
