/* ============================================================
   Kahyve — site styles (tokens live in tokens.css)

   1. Base
   2. Typography
   3. Layout + utilities
   4. Components   button · media · badge · ornament · drip · reveal
   5. Header + mobile nav
   6. Sections     hero · why · product · pellets · steps · banner
                   aims · journey · about · cta · footer · not-found
   7. Reduced motion

   Media queries sit with the block they change.
   Breakpoints: 1024 / 768 / 480.
   ============================================================ */


/* ============ 1. Base ======================================= */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-cream);
  font: 400 var(--fs-body) / var(--lh-body) var(--f-body);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }

/* Surface scopes: re-point the role tokens for light/dark areas */
.light {
  background: var(--c-paper);
  color: var(--c-ink);
  --c-accent: var(--c-caramel-deep);
  --c-rule: rgba(36, 23, 16, .18);
}
.dark {
  background: var(--c-bg);
  color: var(--c-cream);
  --c-accent: var(--c-caramel);
  --c-rule: rgba(248, 225, 205, .35);
}

@media (max-width: 1024px) { :root { --section-y: 72px; } }
@media (max-width: 480px)  { :root { --gutter: 20px; --section-y: 56px; } }


/* ============ 2. Typography ================================= */

.d1, .d2, .d3 {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 400;
  line-height: var(--lh-display);
  letter-spacing: var(--ls-display);
  text-wrap: balance;
}
.d1 { font-size: clamp(3rem, 7.2vw, var(--fs-d1)); }
.d2 { font-size: clamp(2.5rem, 4.4vw, var(--fs-d2)); }
.d3 { font-size: clamp(1.5rem, 2.2vw, var(--fs-d3)); line-height: .95; }
/* one italic word per heading */
:is(.d1, .d2, .d3) em { font-style: italic; }

.eyebrow {
  margin: 0 0 var(--space-1);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--c-accent);
}
.body { max-width: var(--measure); margin: 0; }
.lead {
  max-width: var(--measure);
  margin: 0;
  font-size: var(--fs-lead);
  font-weight: 500;
  line-height: 1.4;
  text-transform: uppercase;
}
.caption {
  margin: .5rem 0 0;
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: var(--ls-meta);
  text-transform: uppercase;
  color: var(--c-accent);
}


/* ============ 3. Layout + utilities ========================= */

.wrap    { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: var(--section-y); }
.section--flush { padding-top: 0; }
.center  { text-align: center; }
.center .body { margin-inline: auto; }
.stack > * + * { margin-top: 1.25rem; }

.two-col { display: grid; grid-template-columns: 1fr 1.25fr; gap: 5rem; align-items: start; }
@media (max-width: 1024px) { .two-col { grid-template-columns: 1fr; gap: 2.5rem; } }

.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }


/* ============ 4. Components ================================= */

/* ---- Icon (stroke icons from the inline sprite) ---------- */
.icon {
  flex: none;
  width: 1.5rem; height: 1.5rem;
  fill: none; stroke: currentColor;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}

/* ---- Button ---------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: 14px 26px;
  border: var(--rule) solid var(--c-accent);
  border-radius: var(--pill);
  background: transparent;
  color: var(--c-accent);
  font-size: var(--fs-btn);
  font-weight: 600;
  line-height: 1;
  letter-spacing: .5px;
  text-transform: uppercase;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.btn:is(:hover, :focus-visible) { background: var(--c-accent); color: var(--c-bg); }
.light .btn:is(:hover, :focus-visible) { color: var(--c-paper); }
.btn .icon { width: 1.1rem; height: 1.1rem; transition: transform var(--dur) var(--ease); }
.btn:hover .icon { transform: translateX(3px); }

.btn--gold { background: var(--c-gold); border-color: var(--c-gold); color: var(--c-ink); }
.btn--gold:is(:hover, :focus-visible) { background: var(--c-cream); border-color: var(--c-cream); color: var(--c-ink); }
.light .btn--gold:is(:hover, :focus-visible) { background: var(--c-ink); border-color: var(--c-ink); color: var(--c-paper); }

.actions { display: flex; flex-wrap: wrap; gap: var(--space-1); margin-top: var(--space-3); }

/* ---- Media (all content photos) -------------------------- */
.media { width: 100%; height: auto; object-fit: cover; border-radius: var(--radius); }

/* ---- Badge: icon in a ringed circle ---------------------- */
.badge {
  display: grid; place-items: center;
  width: 58px; height: 58px;
  border: var(--rule) solid var(--c-accent);
  border-radius: 50%;
  background: var(--c-card);
  color: var(--c-accent);
  box-shadow: 0 0 0 6px var(--c-paper-2);
}

/* ---- Ornament: bean between two rules under a heading ---- */
.ornament {
  display: flex; align-items: center; justify-content: center; gap: .75rem;
  margin: var(--space-2) auto 0;
  color: var(--c-accent);
}
.ornament::before, .ornament::after {
  content: "";
  width: 72px; height: var(--rule);
  background: currentColor; opacity: .6;
}
.ornament svg { width: 14px; height: 18px; }

/* ---- Drip edge between surfaces -------------------------- */
/* Placed first in a section; colour = the section above it. */
.drip {
  position: absolute; top: -1px; left: 0;
  width: 100%; height: clamp(20px, 3vw, 42px);
  pointer-events: none;
}
.drip--dark  { color: var(--c-bg); }
.drip--paper { color: var(--c-paper); }
.section:has(> .drip) { padding-top: calc(var(--section-y) + 2rem); }

/* ---- Scroll reveal (class toggled by js/main.js) --------- */
.reveal { opacity: 0; transform: translateY(24px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}


/* ============ 5. Header + mobile nav ======================== */

.header {
  position: absolute; inset: 0 0 auto;
  z-index: 20;
  display: flex; align-items: center;
  height: var(--header-h);
}
.header__inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem;
  width: 100%;
}
.header__cta { justify-self: end; padding: 11px 20px; }

.nav { display: flex; gap: 1.75rem; }
.nav a {
  font-size: var(--fs-nav);
  font-weight: 500;
  text-transform: uppercase;
  transition: color var(--dur) var(--ease);
}
.nav a:hover { color: var(--c-accent); }

.wordmark {
  justify-self: center;
  font-family: var(--f-display);
  font-size: 2rem;
  line-height: 1;
  letter-spacing: var(--ls-display);
}

.nav-toggle { display: none; }

.m-nav {
  position: fixed; inset: 0; z-index: 30;
  display: grid; place-content: center; gap: var(--space-2);
  background: var(--c-bg);
  text-align: center;
}
.m-nav[hidden] { display: none; }
.m-nav a { font-family: var(--f-display); font-size: 3rem; line-height: 1; }
.m-nav a:hover { color: var(--c-accent); }
.m-nav__close {
  position: absolute; top: 2.25rem; right: var(--gutter);
  font-size: var(--fs-nav); letter-spacing: var(--ls-meta); text-transform: uppercase;
}

@media (max-width: 768px) {
  .nav, .header__cta { display: none; }
  .header__inner { grid-template-columns: auto 1fr auto; }
  .wordmark { justify-self: start; }
  .nav-toggle {
    display: block; justify-self: end;
    font-size: var(--fs-nav); letter-spacing: var(--ls-meta); text-transform: uppercase;
  }
}


/* ============ 6. Sections =================================== */

/* ---- Hero ------------------------------------------------ */
/* The stage (gradient, shoe-tree slideshow, beans) is pinned for
   the height of the hero while the wordmark and intro scroll over it. */
.hero { position: relative; }

.hero__stage {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(ellipse 50% 45% at 50% 47%, color-mix(in srgb, var(--c-gold) 30%, transparent), transparent 70%),
    linear-gradient(160deg, var(--c-roast) 0%, var(--c-bg) 65%);
}

/* Slideshow clipped to the product silhouette */
.hero__mould {
  position: absolute; top: 47%; left: 50%;
  width: min(320px, 56vw); aspect-ratio: 3 / 4;
  translate: -50% -50%;
  rotate: -9deg;
  -webkit-mask: url("../img/shoe-tree-mask.svg") center / contain no-repeat;
          mask: url("../img/shoe-tree-mask.svg") center / contain no-repeat;
}
.hero__mould img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0;
  animation: slide 16s infinite;
}

/* Stage label: large numeral + name, synced with the slides */
.hero__label {
  position: absolute; left: 50%;
  top: calc(47% - min(213px, 37vw) - clamp(4rem, 5vw, 4.75rem));
  translate: -50% 0;
  margin: 0;
  color: var(--c-accent);
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
}
.hero__label span {
  position: absolute; left: 50%;
  translate: -50% 0;
  display: flex; align-items: baseline; gap: .75rem;
  white-space: nowrap;
  opacity: 0;
  animation: slide 16s infinite;
}
.hero__label b {
  color: var(--c-cream);
  font-family: var(--f-display);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: var(--ls-display);
}
:is(.hero__mould img, .hero__label span):nth-child(2) { animation-delay: 4s; }
:is(.hero__mould img, .hero__label span):nth-child(3) { animation-delay: 8s; }
:is(.hero__mould img, .hero__label span):nth-child(4) { animation-delay: 12s; }

@keyframes slide {
  0%   { opacity: 0; transform: scale(1.08); }
  6%   { opacity: 1; }
  25%  { opacity: 1; }
  31%  { opacity: 0; transform: scale(1); }
  100% { opacity: 0; }
}

/* Decorative beans; position/size/rotation/delay come from inline custom properties */
.bean {
  position: absolute;
  width: var(--s, 28px); height: auto;
  color: var(--c-bean);
  rotate: var(--r, 0deg);
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .45));
  animation: float 6s ease-in-out infinite alternate;
  animation-delay: var(--d, 0s);
}
@keyframes float { to { transform: translateY(-16px); } }

/* Scroll layer starts at the page top so the wordmark has room to be
   held up: sticky-from-bottom pins it just below the mould until its
   resting place (12svh further down) scrolls up to meet it.
   Mould bottom = 47% + half its height, min(213px, 37vw), so the space
   below it is 53svh - min(213px, 37vw). The wordmark shrinks to fit it:
   box .8em (line-height) + ~.25em descender + 1.5rem gap either side. */
.hero__scroll {
  position: relative; z-index: 2;
  margin-top: -100vh; margin-top: -100svh;
}
.hero__scroll::before {          /* spacer, not padding: sticky can't enter padding */
  content: ""; display: block;
  height: calc(59vh + min(213px, 37vw) + 1.5rem);
  height: calc(59svh + min(213px, 37vw) + 1.5rem);
}
.hero__wordmark {
  position: sticky;
  bottom: max(1.5rem + .25em, 53vh - min(213px, 37vw) - .8em - 1.5rem);
  bottom: max(1.5rem + .25em, 53svh - min(213px, 37vw) - .8em - 1.5rem);
  margin: 0;
  color: var(--c-cream);
  font-family: var(--f-display);
  font-size: clamp(4rem, (53vh - min(213px, 37vw) - 3rem) / 1.05, var(--fs-hero));
  font-size: clamp(4rem, (53svh - min(213px, 37vw) - 3rem) / 1.05, var(--fs-hero));
  line-height: var(--lh-display);
  letter-spacing: var(--ls-display);
  text-align: center;
  white-space: nowrap;
}
.hero__wordmark em { font-style: italic; }

.hero__intro {
  padding-block: 4vh var(--section-y);
  background: linear-gradient(to bottom, transparent 0, var(--c-bg) 26vh);
}
.hero__grid {
  display: grid; grid-template-columns: 1.15fr 1fr; align-items: end; gap: 4rem;
}
.hero__grid .caption { margin-top: 1.25rem; }
.hero__photo {
  justify-self: end;
  max-width: 460px; aspect-ratio: 4 / 5;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .45);
}

.stats {
  display: flex; flex-wrap: wrap; gap: 1rem 4.5rem;
  margin-top: var(--space-5);
  padding-top: var(--space-3);
  border-top: var(--rule) solid var(--c-rule);
}
.stats__num {
  display: block;
  color: var(--c-accent);
  font-family: var(--f-display);
  font-size: 4rem;
  line-height: var(--lh-display);
  letter-spacing: var(--ls-display);
}
.stats__label { font-size: var(--fs-nav); font-weight: 500; text-transform: uppercase; }

@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero__photo { justify-self: start; }
}
@media (max-width: 768px) {
  .bean--wide { display: none; }   /* would sit on the stage label */
}
@media (max-width: 480px) {
  .stats { gap: 1.5rem 2.5rem; }
  .stats__num { font-size: 3rem; }
}

/* ---- Why: photo + text with linked icon list -------------- */
.why {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 5rem;
  margin-top: 4rem;
}
.why__media { aspect-ratio: 4 / 3.4; }

.icon-list { display: grid; gap: 1.75rem; margin-top: 2.5rem; }
.icon-list li {
  position: relative;
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 1.25rem;
}
.icon-list p { margin: 0; }
.icon-list li + li::before {      /* dashed thread between badges */
  content: "";
  position: absolute; top: -1.75rem; left: 28px;
  height: 1.75rem;
  border-left: 2px dashed var(--c-accent);
  opacity: .45;
}

@media (max-width: 1024px) { .why { grid-template-columns: 1fr; gap: 2.5rem; } }

/* ---- Product: text · photo · features --------------------- */
.product {
  display: grid; grid-template-columns: 1fr minmax(0, 1fr) 1fr; align-items: center; gap: 3.5rem;
}
.product__media { position: relative; }
.product__media .media { aspect-ratio: 3 / 4; }
.product__kicker { margin: 0 0 1.75rem; }

.seal {
  position: absolute; right: -30px; bottom: 40px;
  display: grid; place-items: center;
  width: 118px; height: 118px;
  padding: 16px;
  border-radius: 50%;
  background: var(--c-gold);
  color: var(--c-ink);
  box-shadow: 0 12px 30px rgba(36, 23, 16, .25);
  font-size: .68rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .6px;
  text-align: center;
  text-transform: uppercase;
  rotate: -10deg;
}

.feature-list { display: grid; gap: var(--space-3); }
.feature-list li { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 1.25rem; }
.feature-list .d3 { margin: .35rem 0 .45rem; }
.feature-list p { margin: 0; }

@media (max-width: 1024px) {
  .product { grid-template-columns: 1fr 1fr; }
  .product__media { grid-row: span 2; }
  .seal { right: 16px; }
}
@media (max-width: 768px) {
  .product { grid-template-columns: 1fr; }
  .product__media { grid-row: auto; }
}

/* ---- Pellets + where-to-use tiles ------------------------- */
.pellets { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 5rem; }
.pellets .media { aspect-ratio: 4 / 4.4; }

.tiles__title { margin: 5rem 0 0; }
.tiles {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-1);
  margin-top: var(--space-3);
}
.tile {
  display: grid; justify-items: center; align-content: center; gap: var(--space-1);
  min-height: 190px;
  padding: var(--space-2) var(--space-1);
  border: var(--rule) solid rgba(248, 225, 205, .12);
  border-radius: var(--radius-sm);
  background: var(--c-brown);
  font-size: var(--fs-nav);
  font-weight: 600;
  letter-spacing: var(--ls-meta);
  text-align: center;
  text-transform: uppercase;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
}
.tile .icon { width: 2.75rem; height: 2.75rem; stroke-width: 1.2; }
.tile:hover { transform: translateY(-6px); background: var(--c-brown-hover); }

@media (max-width: 1024px) {
  .pellets { grid-template-columns: 1fr; gap: 2.5rem; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .tile { min-height: 150px; }
  .tile:last-child { grid-column: span 2; }
}

/* ---- Steps + supply chain --------------------------------- */
.steps {
  position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-2);
  margin-top: var(--space-5);
}
.steps::before {                 /* dashed thread linking the badges */
  content: "";
  position: absolute; top: 16px; right: 12%; left: 12%;
  border-top: 2px dashed var(--c-accent);
  opacity: .45;
}
.step {
  position: relative;
  padding: 0 1.75rem 2.25rem;
  border: var(--rule) solid var(--c-rule);
  border-radius: var(--radius);
  background: var(--c-card);
  text-align: center;
}
.step .badge { width: 64px; height: 64px; margin: -32px auto var(--space-2); }
.step__num {
  display: block;
  color: var(--c-accent);
  font-size: var(--fs-caption);
  font-weight: 700;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
}
.step .d3 { margin: .5rem 0 .75rem; }
.step p { margin: 0; color: var(--c-muted); }

.chain {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .75rem;
  margin-top: 3.5rem;
}
.chain li {
  display: flex; align-items: center; gap: .75rem;
  font-size: var(--fs-nav);
  font-weight: 600;
  letter-spacing: var(--ls-meta);
  text-transform: uppercase;
}
.chain span { padding: .6rem 1.1rem; border-radius: var(--pill); background: var(--c-paper-2); }
.chain li:last-child span { background: var(--c-gold); }
.chain .icon { width: 1.1rem; height: 1.1rem; color: var(--c-accent); }

@media (max-width: 1024px) {
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 3.5rem; }
  .steps::before { display: none; }
}
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* ---- Banner: full-bleed photo, fixed background ----------- */
.banner {
  position: relative;
  display: grid; place-items: center;
  min-height: 560px;
  padding: calc(var(--section-y) + 2.5rem) var(--gutter) var(--section-y);
  background:
    linear-gradient(color-mix(in srgb, var(--c-bg) 78%, transparent),
                    color-mix(in srgb, var(--c-bg) 86%, transparent)),
    url("../img/beans-closeup.jpg") center / cover no-repeat fixed;
  text-align: center;
}
.banner .body { margin-inline: auto; }
.banner__question {
  max-width: 22ch;
  margin: var(--space-3) auto 0;
  color: var(--c-accent);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

@media (max-width: 1024px) {
  .banner { background-attachment: scroll; }   /* fixed backgrounds judder on touch */
}

/* ---- Aims: menu-style list with dotted leaders ------------- */
.aims li {
  display: grid; grid-template-columns: auto 1fr; gap: .35rem 1.25rem;
  padding: var(--space-2) 0;
  border-bottom: var(--rule) solid var(--c-rule);
}
.aims li:first-child { padding-top: 0; }
.aims .badge { grid-row: span 2; align-self: center; width: 52px; height: 52px; }
.aims__head { display: flex; align-items: baseline; gap: .75rem; }
.aims__head .d3 { margin: 0; white-space: nowrap; }
.aims__head::after {
  content: "";
  flex: 1;
  border-bottom: 2px dotted var(--c-accent);
  opacity: .5;
}
.aims p { margin: 0; color: var(--c-muted); }

@media (max-width: 480px) { .aims__head .d3 { white-space: normal; } }

/* ---- Journey: sticky text + staggered photo collage -------- */
.journey { display: grid; grid-template-columns: 1fr 1.2fr; align-items: start; gap: 5rem; }
.journey__text { position: sticky; top: var(--space-4); }

.collage {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem;
  padding-bottom: 4rem;
}
.collage figure { margin: 0; }
.collage .media { aspect-ratio: 4 / 5; }
.collage > :nth-child(even) { translate: 0 4rem; }

@media (max-width: 1024px) {
  .journey { grid-template-columns: 1fr; gap: 2.5rem; }
  .journey__text { position: static; }
}
@media (max-width: 480px) { .collage > :nth-child(even) { translate: 0 2rem; } }

/* ---- About: the name as an equation ------------------------ */
.equation {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: center;
  gap: 1rem 2.5rem;
  margin: 3.5rem 0 4rem;
}
.equation__term { text-align: center; }
.equation__term .d1 { display: block; }
.equation__term .caption { display: block; margin-top: .75rem; }
.equation__term--result .d1 { color: var(--c-accent); }
.equation__op {
  color: var(--c-accent);
  font-family: var(--f-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1;
}

.about-cols {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2) 4rem;
  max-width: 1100px; margin-inline: auto;
}
.about-cols .body { max-width: none; }

.support {
  display: flex; align-items: center; gap: 1.25rem;
  max-width: 1100px;
  margin: var(--space-4) auto 0;
  padding: 1.25rem var(--space-2);
  border-radius: var(--radius-sm);
  background: var(--c-paper-2);
}
.support p { margin: 0; }

@media (max-width: 768px) { .about-cols { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .equation { gap: .5rem 1.25rem; } }

/* ---- CTA card ---------------------------------------------- */
.cta {
  display: grid; grid-template-columns: .9fr 1.1fr;
  overflow: hidden;
  border-radius: calc(var(--radius) + 8px);
}
.cta .media { height: 100%; min-height: 440px; border-radius: 0; }
.cta__body { align-self: center; padding: clamp(2rem, 5vw, 4.5rem); }

@media (max-width: 1024px) {
  .cta { grid-template-columns: 1fr; }
  .cta .media { min-height: 0; aspect-ratio: 16 / 10; }
}

/* ---- Footer ------------------------------------------------ */
.footer { position: relative; overflow: hidden; padding-top: calc(var(--section-y) + 2rem); }
.footer__cols {
  display: grid; grid-template-columns: repeat(3, 1fr); align-items: start; gap: var(--space-3);
}
.footer__cols > :nth-child(2) { text-align: center; }
.footer__cols > :nth-child(3) { text-align: right; }
.footer__brand { justify-self: start; margin: 0; }
.footer h2 {
  margin: 0 0 var(--space-1);
  font-family: var(--f-body);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
}
.footer li + li { margin-top: .5rem; }
.footer a:hover { color: var(--c-accent); }

.socials { display: flex; gap: 1.25rem; margin-top: var(--space-2); }
.socials a { font-size: var(--fs-meta); letter-spacing: var(--ls-meta); text-transform: uppercase; }

.footer__year {
  margin: var(--space-3) 0 0;
  font-family: var(--f-display);
  font-size: 22vw;
  line-height: .78;
  text-align: center;
  white-space: nowrap;
}
.footer__bar {
  display: grid; grid-template-columns: repeat(3, 1fr);
  padding-block: var(--space-2);
  font-size: var(--fs-meta);
}
.footer__bar > :nth-child(2) { text-align: center; }
.footer__bar > :nth-child(3) { text-align: right; }

@media (max-width: 768px) {
  .footer__cols, .footer__bar { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer__bar { gap: .5rem; }
  :is(.footer__cols, .footer__bar) > :is(:nth-child(2), :nth-child(3)) { text-align: left; }
}

/* ---- Not found (404) --------------------------------------- */
.not-found {
  position: relative;
  display: grid; align-content: end;
  min-height: 100vh; min-height: 100svh;
  overflow: hidden;
  background:
    linear-gradient(to top, color-mix(in srgb, var(--c-bg) 95%, transparent),
                            color-mix(in srgb, var(--c-bg) 40%, transparent) 65%),
    url("../img/grounds-wide.jpg") center / cover no-repeat;
}
.not-found__body {            /* centred on the viewport; the title sits at the bottom */
  position: absolute; inset: 0; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  padding: 0 var(--gutter);
}
.not-found__body > div { max-width: 380px; text-align: center; }
.not-found__body .actions { justify-content: center; margin-top: 1.25rem; }
.not-found__title {
  margin: 0 0 -.1em;
  padding-inline: var(--gutter);
  font-size: 17vw;
  white-space: nowrap;
}


/* ============ 7. Reduced motion ============================= */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  :is(.hero__mould img, .hero__label span):first-child { opacity: 1; }
}
