/* ==========================================================================
   RAMBUL — Hero
   Sections: 1. Tokens  2. Base  3. Navigation  4. Hero layout
             5. Central axis  6. Name  7. Copy  8. Motion  9. Mobile
   ========================================================================== */

@font-face {
  font-family: "Tan Pearl";
  src: url("fonts/TAN-Pearl-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* 1. Tokens
   ========================================================================== */
:root {
  /* Palette */
  --walnut: #2a1b12;
  --mahogany: #6b3e26;
  --oak: #b8864f;
  --brass: #c9a961;
  --linen: #f2eadb;
  --moss: #36422f;

  --accent: var(--mahogany); /* color of the RAMBUL name */

  /* Typography */
  --font-brand: "Tan Pearl", "Cormorant Garamond", Georgia, serif;
  --font-text: "Josefin Sans", system-ui, sans-serif;

  /* Spacing */
  --page-margin: clamp(1.5rem, 5vw, 5rem);
}

/* 2. Base
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--linen);
  color: var(--walnut);
  font-family: var(--font-text);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* 3. Navigation (floating pill)
   ========================================================================== */
/* ==========================================================================
   3. Navigation
   Desktop: floating pill. Mobile (<= 860px): full-screen menu.
   ========================================================================== */
.nav {
  position: absolute;
  top: clamp(1rem, 2.5vw, 2rem);
  left: var(--page-margin);
  right: var(--page-margin);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.85rem clamp(1.25rem, 3vw, 2.25rem);
}

/* The pill background lives on a pseudo-element on purpose: a backdrop-filter
   on .nav itself would trap the fixed full-screen panel inside the pill. */
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border: 1px solid rgba(184, 134, 79, 0.5);
  border-radius: 999px;
  background: rgba(242, 234, 219, 0.75);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  pointer-events: none;
}

.nav__logo {
  position: relative;
  z-index: 2; /* stays above the panel when it is open */
  font-family: var(--font-brand);
  font-size: 1.35rem;
  letter-spacing: 0.14em;
  color: var(--walnut);
  text-decoration: none;
  transition: color 0.3s ease;
}

/* Desktop: the panel disappears and its children join the pill's flex row */
.nav__panel {
  display: contents;
}

.nav__links {
  display: flex;
  gap: clamp(1.25rem, 3vw, 2.5rem);
}

.nav__socials {
  display: flex;
  gap: clamp(1rem, 2vw, 1.75rem);
}

.nav__links a,
.nav__social {
  font-weight: 300;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mahogany);
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav__links a:hover,
.nav__social:hover {
  color: var(--walnut);
}

.nav a:focus-visible {
  outline: 2px solid var(--walnut);
  outline-offset: 4px;
}

/* Desktop shows text only; mobile-only pieces stay hidden */
.nav__social i,
.nav__place,
.nav__toggle {
  display: none;
}

/* Toggle button (mobile) */
.nav__toggle {
  position: relative;
  z-index: 2;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin: -0.4rem -0.6rem -0.4rem 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--walnut);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.3s ease;
}

.nav__toggle:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.nav .nav__icon--close {
  display: none;
}

.nav.is-open .nav__icon--open {
  display: none;
}

.nav.is-open .nav__icon--close {
  display: block;
}

/* While open, logo and toggle sit on the dark panel */
.nav.is-open .nav__logo,
.nav.is-open .nav__toggle {
  color: var(--linen);
}

.nav.is-open .nav__logo:focus-visible {
  outline-color: var(--linen);
}

/* Scroll lock while the menu is open (set from script.js) */
.menu-open {
  overflow: hidden;
}

/* ---------- Mobile: full-screen menu ---------- */
@media (max-width: 860px) {
  .nav__toggle {
    display: inline-flex;
  }

  .nav__panel {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6.5rem var(--page-margin) 2.5rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    background:
      radial-gradient(60% 40% at 50% 45%, rgba(201, 169, 97, 0.14), transparent 70%),
      var(--walnut);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.35s ease, visibility 0s linear 0.35s;
  }

  .nav.is-open .nav__panel {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
  }

  /* Links: big, centered, numbered like the story chapters */
  .nav__links {
    flex-direction: column;
    align-items: center;
    gap: clamp(1.25rem, 4vh, 2rem);
    margin-block: auto; /* centers in the free space without clipping on short screens */
    counter-reset: nav-item;
  }

  .nav__links a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-brand);
    font-weight: 400;
    font-size: clamp(1.9rem, 9vw, 3rem);
    letter-spacing: 0.12em;
    color: var(--linen);
    counter-increment: nav-item;
  }

  .nav__links a::before {
    content: counter(nav-item, decimal-leading-zero);
    font-family: var(--font-text);
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    color: var(--oak);
  }

  .nav__links a:hover {
    color: var(--brass);
  }

  .nav__panel a:focus-visible {
    outline-color: var(--brass);
  }

  /* Socials with icons */
  .nav__socials {
    gap: 2rem;
    margin-top: 2rem;
  }

  .nav__social {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(242, 234, 219, 0.85);
  }

  .nav__social:hover {
    color: var(--brass);
  }

  .nav__social i {
    display: block;
    font-size: 1.35rem;
    color: var(--brass);
  }

  .nav__place {
    display: block;
    margin: 1.75rem 0 0;
    font-weight: 300;
    font-size: 0.72rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(242, 234, 219, 0.55);
  }
}

/* Staggered entrance, only when motion is welcome */
@media (max-width: 860px) and (prefers-reduced-motion: no-preference) {
  .nav__links a,
  .nav__socials,
  .nav__place {
    opacity: 0;
    transform: translateY(1rem);
    transition: opacity 0.6s ease, transform 0.6s ease, color 0.3s ease;
  }

  .nav.is-open .nav__links a,
  .nav.is-open .nav__socials,
  .nav.is-open .nav__place {
    opacity: 1;
    transform: none;
  }

  .nav.is-open .nav__links a:nth-child(1) { transition-delay: 0.15s; }
  .nav.is-open .nav__links a:nth-child(2) { transition-delay: 0.25s; }
  .nav.is-open .nav__links a:nth-child(3) { transition-delay: 0.35s; }
  .nav.is-open .nav__socials              { transition-delay: 0.5s; }
  .nav.is-open .nav__place                { transition-delay: 0.6s; }
}

/* 4. Hero layout
   Three columns (left | axis | right) and three rows (top | name | bottom).
   ========================================================================== */
.hero {
  --name-size: clamp(3.25rem, 10vw, 9.5rem);
  --axis-height: clamp(28rem, calc(100svh - 12rem), 52rem);
  --axis-ratio: 0.34; /* axis width = axis height × ratio */

  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-rows: 1fr auto 1fr;
  padding: clamp(7rem, 12vw, 8.5rem) var(--page-margin) clamp(2rem, 4vw, 3rem);
  overflow: hidden;
  background:
    radial-gradient(
      38% 62% at 50% 52%,
      rgba(201, 169, 97, 0.24),
      transparent 72%
    ),
    var(--linen);
}

/* 5. Central axis (rotating pieces)
   Fixed-size box + object-fit: contain, so the transparent margins of each
   PNG never affect the layout.
   ========================================================================== */
.hero__pieces {
  position: relative;
  grid-column: 2;
  grid-row: 1 / -1;
  place-self: center;
  width: calc(var(--axis-height) * var(--axis-ratio));
  height: var(--axis-height);
  margin: 0 clamp(0.75rem, 2vw, 2rem);
}

.hero__piece {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 1.2s ease;
  filter: drop-shadow(0 28px 26px rgba(42, 27, 18, 0.22));
}

.hero__piece.is-active {
  opacity: 1;
}

/* 6. Name split by the axis: RAM | BUL
   ========================================================================== */
.hero__name {
  grid-row: 2;
  align-self: center;
  font-family: var(--font-brand);
  font-weight: 400;
  font-size: var(--name-size);
  letter-spacing: 0.14em;
  line-height: 1;
  color: var(--accent);
  white-space: nowrap;
}

.hero__name--left {
  grid-column: 1;
  justify-self: end;
  margin-right: -0.14em; /* removes the trailing letter-spacing next to the axis */
}

.hero__name--right {
  grid-column: 3;
  justify-self: start;
}

/* 7. Copy
   ========================================================================== */
.hero__tagline {
  grid-column: 1;
  grid-row: 1;
  align-self: end;
  justify-self: end;
  padding-bottom: clamp(1rem, 3vw, 2.5rem);
  text-align: right;
}

.hero__tagline span {
  display: block;
  margin-right: -0.38em; /* compensates the trailing letter-spacing */
  font-weight: 300;
  font-size: clamp(1rem, 0.6rem + 1.6vw, 1.5rem);
  letter-spacing: 0.38em;
  text-transform: uppercase;
  line-height: 2.2;
}

.hero__subtitle {
  grid-column: 3;
  grid-row: 1;
  align-self: end;
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 0;
  padding-bottom: clamp(1rem, 3vw, 2.5rem);
  font-weight: 300;
  font-size: clamp(0.75rem, 0.6rem + 0.5vw, 1rem);
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--mahogany);
}

.hero__subtitle::before {
  content: "";
  flex: none;
  width: clamp(2rem, 5vw, 4rem);
  height: 1px;
  background: var(--oak);
}

.hero__actions {
  grid-column: 3;
  grid-row: 3;
  align-self: start;
  justify-self: start;
  padding-top: clamp(1rem, 3vw, 2.5rem);
}

.hero__support {
  max-width: 28ch;
  margin: 0;
  font-weight: 300;
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.2rem);
  line-height: 1.6;
}

.hero__cta {
  display: inline-block;
  margin-top: clamp(1.5rem, 2.5vw, 2rem);
  padding: 0.95rem 2rem;
  border: 1px solid var(--walnut);
  font-weight: 400;
  font-size: 0.8rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--linen);
  background: var(--walnut);
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease;
}

.hero__cta:hover {
  background: var(--mahogany);
  border-color: var(--mahogany);
}

.hero__cta:focus-visible {
  outline: 2px solid var(--walnut);
  outline-offset: 4px;
}

.facts {
  grid-column: 1;
  grid-row: 3;
  align-self: start;
  justify-self: end;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin: 0;
  padding-top: clamp(1rem, 3vw, 2.5rem);
  text-align: right;
}

.facts__item {
  margin: 0;
}

.facts dt {
  font-weight: 300;
  font-size: 0.78rem;
  color: var(--mahogany);
}

.facts dd {
  margin: 0.2rem 0 0;
  font-weight: 400;
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.2rem);
}

/* 8. Motion
   One signature moment on load: the two halves of the name close in on the axis.
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .hero__pieces {
    animation: fade-in 1.4s ease 0.1s both;
  }
  .hero__name--left {
    animation: join-from-left 1.6s cubic-bezier(0.2, 0.7, 0.2, 1) 0.6s both;
  }
  .hero__name--right {
    animation: join-from-right 1.6s cubic-bezier(0.2, 0.7, 0.2, 1) 0.6s both;
  }
  .hero__tagline {
    animation: fade-in 1.4s ease 1.3s both;
  }
  .hero__subtitle {
    animation: fade-in 1.4s ease 1.5s both;
  }
  .hero__actions {
    animation: fade-in 1.4s ease 1.8s both;
  }
  .facts {
    animation: fade-in 1.4s ease 2s both;
  }

  @keyframes fade-in {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }

  @keyframes join-from-left {
    from {
      opacity: 0;
      transform: translateX(-2.5rem);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }

  @keyframes join-from-right {
    from {
      opacity: 0;
      transform: translateX(2.5rem);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__piece {
    transition: none;
  }
}

/* 9. Mobile: single centered column
   ========================================================================== */
@media (max-width: 860px) {
  .nav__links {
    display: none;
  }

  .hero {
    --name-size: clamp(2.25rem, 9.5vw, 4.5rem);
    --axis-height: clamp(14rem, 48vw, 20rem);
    --axis-ratio: 0.4;

    grid-template-rows: auto;
    padding-top: 6.5rem;
    background:
      radial-gradient(
        70% 30% at 50% 40%,
        rgba(201, 169, 97, 0.24),
        transparent 70%
      ),
      var(--linen);
  }

  .hero__tagline {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: center;
    padding: 0 0 1.5rem;
    text-align: center;
  }

  .hero__tagline span {
    margin-right: 0;
  }

  .hero__pieces {
    grid-row: 2;
  }

  .hero__subtitle {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-self: center;
    padding: 1.75rem 0 0;
  }

  .hero__subtitle::after {
    content: "";
    flex: none;
    width: clamp(2rem, 5vw, 4rem);
    height: 1px;
    background: var(--oak);
  }

  .hero__actions {
    grid-column: 1 / -1;
    grid-row: 4;
    justify-self: center;
    padding-top: 1.5rem;
    text-align: center;
  }

  .hero__support {
    margin-inline: auto;
  }

  .facts {
    grid-column: 1 / -1;
    grid-row: 5;
    justify-self: center;
    justify-content: center;
    padding-top: 2.5rem;
    text-align: center;
  }
}

/* ==========================================================================
   10. Origin (dark, minimal)
   One accent only: the word "balancanense" in brass.
   ========================================================================== */

.origin {
  position: relative;
  isolation: isolate; /* lets the glow sit behind the text but above the background */
  min-height: 80svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(7rem, 14vw, 11rem) var(--page-margin) clamp(5rem, 12vw, 9rem);
  overflow: hidden;
  container-type: inline-size; /* the word sizes itself from the real width */
  text-align: center;
  color: var(--linen);
  background: var(--walnut);
}

/* Soft brass glow behind the word */
.origin::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(45% 38% at 50% 48%, rgba(201, 169, 97, 0.16), transparent 72%);
  pointer-events: none;
}

/* Thread coming down from the top edge: echoes the hero axis */
.origin::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: clamp(3rem, 8vw, 6rem);
  background: linear-gradient(to bottom, transparent, var(--oak));
  transform: translateX(-50%);
  transform-origin: top;
}

.origin__title {
  max-width: 100%;
  margin: 0;
  font-weight: 400;
  line-height: 1;
}

/* Plain, quiet first line */
.origin__eyebrow {
  display: block;
  margin-bottom: clamp(0.75rem, 2vw, 1.5rem);
  font-family: var(--font-text);
  font-weight: 300;
  font-size: clamp(1rem, 0.85rem + 0.9vw, 1.5rem);
  letter-spacing: 0.12em;
  color: rgba(242, 234, 219, 0.85);
}

/* The protagonist */
.origin__accent {
  display: block;
  padding-left: 0.04em;                       /* balances the trailing letter-spacing */
  font-family: var(--font-brand);
  font-size: clamp(1.5rem, 9vw, 8rem);        /* fallback without cqi */
  font-size: clamp(1.5rem, 8.5cqi, 8.5rem);   /* was 10.5cqi, max 11rem */
  line-height: 1.05;
  letter-spacing: 0.04em;                     /* was 0.06em: tighter = shorter word */
  overflow-wrap: break-word;
  color: var(--brass);
}

.origin__lead {
  max-width: 32ch;
  margin: clamp(1.75rem, 4vw, 2.75rem) 0 0;
  font-weight: 300;
  font-size: clamp(1.05rem, 0.9rem + 0.5vw, 1.35rem);
  line-height: 1.6;
  color: rgba(242, 234, 219, 0.85);
    text-wrap: balance;

}

.origin__place {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  max-width: 100%;
  margin: clamp(1.5rem, 3vw, 2.25rem) 0 0;
  font-weight: 300;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(242, 234, 219, 0.65);
}

.origin__place::before,
.origin__place::after {
  content: "";
  width: clamp(1.5rem, 4vw, 3rem);
  height: 1px;
  background: var(--oak);
}

/* ---------- Entrance sequence ---------- */
@media (prefers-reduced-motion: no-preference) {

  /* 1. Starting state (set by script.js before the section is seen) */
  .origin.is-armed:not(.is-visible)::before {
    transform: translateX(-50%) scaleY(0);
  }

  .origin.is-armed:not(.is-visible)::after {
    opacity: 0;
    transform: scale(0.85);
  }

  .origin.is-armed:not(.is-visible) .origin__eyebrow,
  .origin.is-armed:not(.is-visible) .origin__lead,
  .origin.is-armed:not(.is-visible) .origin__place {
    opacity: 0;
    transform: translateY(1rem);
  }

  .origin.is-armed:not(.is-visible) .origin__accent {
    opacity: 0;
    transform: translateY(0.2em);
    filter: blur(6px);
    clip-path: inset(-0.2em 100% -0.2em -0.2em); /* fully wiped away to the right */
  }

  .origin.is-armed:not(.is-visible) .origin__place::before {
    transform: scaleX(0);
    transform-origin: right;
  }

  .origin.is-armed:not(.is-visible) .origin__place::after {
    transform: scaleX(0);
    transform-origin: left;
  }

  /* 2. Played once, when the section enters the viewport */
  .origin.is-visible::before {
    transition: transform 1.4s cubic-bezier(0.2, 0.7, 0.2, 1);
  }

  .origin.is-visible::after {
    transition: opacity 2.4s ease, transform 2.4s ease;
    animation: origin-breathe 9s ease-in-out 2.6s infinite;
  }

  .origin.is-visible .origin__eyebrow {
    transition: opacity 1s ease 0.5s, transform 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.5s;
  }

  .origin.is-visible .origin__accent {
    clip-path: inset(-0.2em -0.2em -0.2em -0.2em);
    filter: blur(0);
    transition:
      clip-path 1.6s cubic-bezier(0.65, 0, 0.2, 1) 1s,
      opacity 0.8s ease 1s,
      transform 1.6s cubic-bezier(0.2, 0.7, 0.2, 1) 1s,
      filter 1.6s ease 1s;
  }

  .origin.is-visible .origin__lead {
    transition: opacity 1s ease 1.9s, transform 1s cubic-bezier(0.2, 0.7, 0.2, 1) 1.9s;
  }

  .origin.is-visible .origin__place {
    transition: opacity 1s ease 2.2s, transform 1s cubic-bezier(0.2, 0.7, 0.2, 1) 2.2s;
  }

  .origin.is-visible .origin__place::before,
  .origin.is-visible .origin__place::after {
    transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) 2.5s;
  }

  /* Background photo: monochrome, faint, fading out at top and bottom.
   Layer order inside .origin: photo (-2) < brass glow (-1) < content. */
.origin__bg {
  --bg-opacity: 0.24;               /* tune visibility here */
  --bg-position: 50% 60%;           /* tune the crop here */

  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 30%, #000 70%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 30%, #000 70%, transparent 100%);
}

.origin__bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--bg-position);
  filter: grayscale(1) contrast(1.1);
  opacity: var(--bg-opacity);
}

  @keyframes origin-breathe {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.7; }
  }
}

/* Small phones: drop the side lines and tighten the spacing */
@media (max-width: 480px) {
  .origin__place {
    letter-spacing: 0.24em;
  }

  .origin__place::before,
  .origin__place::after {
    display: none;
  }

    /* Photo: fades in and settles with a very slow zoom-out */
  .origin.is-armed:not(.is-visible) .origin__bg {
    opacity: 0;
  }

  .origin.is-armed:not(.is-visible) .origin__bg img {
    transform: scale(1.08);
  }

  .origin.is-visible .origin__bg {
    transition: opacity 2.4s ease;
  }

  .origin.is-visible .origin__bg img {
    transition: transform 8s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
}

/* ==========================================================================
   11. Story (light): three full-bleed panels
   Edge to edge, no ornaments. The middle column sits lower for rhythm.
   script.js adds .is-armed (section) and .is-in (each chapter).
   Without JavaScript or with reduced motion everything is simply visible.
   ========================================================================== */

 
/* =========================================
   STORY — EDITORIAL PROCESS
========================================= */

.story {
    position: relative;
    padding: clamp(6rem, 11vw, 10rem) var(--page-margin);
    overflow: hidden;
    background: var(--linen);
    color: var(--walnut);
}

/* Intro */

.story__intro {
    max-width: 850px;
    margin: 0 auto clamp(5rem, 9vw, 8rem);
    text-align: center;
}

.story__eyebrow {
    margin: 0 0 1.5rem;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--mahogany);
}

.story__title {
    margin: 0;
    font-family: var(--font-brand);
    font-size: clamp(2.7rem, 7vw, 6rem);
    font-weight: 400;
    line-height: 1.05;
}

.story__title em {
    font-style: italic;
    color: var(--mahogany);
}

.story__description {
    max-width: 40ch;
    margin: 1.5rem auto 0;
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    font-weight: 300;
    line-height: 1.7;
    color: rgba(42, 27, 18, 0.72);
    text-wrap: balance;
}

/* Chapters */

.chapters {
    display: flex;
    flex-direction: column;
    gap: clamp(6rem, 12vw, 11rem);
    max-width: 1350px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.chapter {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: center;
    gap: clamp(1.5rem, 4vw, 4rem);
}

/* Image proportions */

.chapter__media {
    grid-column: 1 / 8;
    margin: 0;
    overflow: hidden;
    background: rgba(42, 27, 18, 0.06);
}

.chapter__media img {
    display: block;
    width: 100%;
    aspect-ratio: 5 / 4;
    object-fit: cover;
    transition: transform 1.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (hover: hover) {
    .chapter__media:hover img {
        transform: scale(1.035);
    }
}

/* Text */

.chapter__text {
    grid-column: 9 / 13;
    padding: 1rem 0;
}

.chapter__number {
    display: block;
    margin-bottom: 1.5rem;
    font-size: 0.68rem;
    letter-spacing: 0.22em;
    color: var(--mahogany);
}

.chapter__label {
    margin: 0;
    font-family: var(--font-brand);
    font-size: clamp(1.8rem, 3vw, 3rem);
    font-weight: 400;
    line-height: 1.15;
}

.chapter__quote {
    max-width: 34ch;
    margin: 1.25rem 0 0;
    font-size: clamp(0.95rem, 1.1vw, 1.1rem);
    font-weight: 300;
    line-height: 1.8;
    color: rgba(42, 27, 18, 0.76);
}

/* Second chapter: reverse composition */

.chapter--second .chapter__media {
    grid-column: 6 / 13;
    grid-row: 1;
}

.chapter--second .chapter__text {
    grid-column: 1 / 5;
    grid-row: 1;
}

/* Third chapter: image takes the lead again */

.chapter--third .chapter__media {
    grid-column: 2 / 9;
}

.chapter--third .chapter__text {
    grid-column: 10 / 13;
}

/* =========================================
   ENTRANCE ANIMATION
========================================= */

@media (prefers-reduced-motion: no-preference) {

    .story.is-armed .chapter:not(.is-in) .chapter__media img {
        clip-path: inset(0 0 100% 0);
        transform: scale(1.08);
    }

    .story.is-armed .chapter:not(.is-in) .chapter__text {
        opacity: 0;
        transform: translateY(20px);
    }

    .chapter.is-in .chapter__media img {
        clip-path: inset(0);
        transform: scale(1);
        transition:
            clip-path 1.5s cubic-bezier(0.65, 0, 0.2, 1),
            transform 2s cubic-bezier(0.2, 0.7, 0.2, 1);
    }

    .chapter.is-in .chapter__text {
        opacity: 1;
        transform: translateY(0);
        transition:
            opacity 1s ease 0.45s,
            transform 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.45s;
    }
}

/* =========================================
   TABLET AND MOBILE
========================================= */

@media (max-width: 860px) {

    .story {
        padding-block: 6rem;
    }

    .story__intro {
        margin-bottom: 4rem;
    }

    .chapters {
        gap: 5rem;
    }

    .chapter,
    .chapter--second,
    .chapter--third {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }

    .chapter__media {
        width: 100%;
    }

    .chapter__media img {
        aspect-ratio: 4 / 3;
    }

    .chapter__text {
        padding: 0;
    }

    .chapter__number {
        margin-bottom: 1rem;
    }

    .chapter__quote {
        max-width: 45ch;
    }
}

@media (max-width: 480px) {

    .story {
        padding-block: 5rem;
    }

    .story__title {
        font-size: clamp(2.5rem, 11vw, 3.5rem);
    }

    .chapters {
        gap: 4rem;
    }

    .chapter__label {
        font-size: 2rem;
    }
}


/* ==========================================================================
   12. Artisan (light, deeper linen)
   The surname is the hero: RAM and BUL stay highlighted, the rest softens.
   Each block plays its entrance once, when it enters the viewport.
   script.js adds .is-armed (section) and .is-in (each block).
   Without JavaScript, or with reduced motion, everything is simply visible.
   ========================================================================== */
.artisan {
  padding: clamp(4rem, 9vw, 7rem) var(--page-margin);
  overflow: hidden;
  background: var(--linen-deep);
  color: var(--walnut);
}

.artisan__inner {
  container-type: inline-size; /* the name sizes itself from the real available width */
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(1rem, 2vw, 2rem);
  max-width: 72rem;
  margin: 0 auto;
}

/* Credentials bar: the line is a pseudo-element so it can be drawn */
.artisan__credentials {
  position: relative;
  grid-column: 1 / -1;
  grid-row: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-bottom: 1rem;
}

.artisan__credentials::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: rgba(184, 134, 79, 0.55);
  transform-origin: left;
}

.artisan__role,
.artisan__member {
  margin: 0;
  font-weight: 300;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--mahogany);
}

/* Surname */
.artisan__name {
  grid-column: 1 / 9;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  margin: clamp(2.5rem, 6vw, 5rem) 0 0;
  font-family: var(--font-brand);
  font-weight: 400;
  font-size: clamp(2.75rem, 10vw, 10rem);   /* fallback without cqi */
  font-size: clamp(2.75rem, 11cqi, 10rem);
  line-height: 0.95;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.artisan__surname--second {
  padding-left: 0.8em; /* staggered second line */
}

.artisan__key {
  color: var(--mahogany);
}

/* The rest of the letters softens (large decorative text) */
.artisan__rest {
  color: rgba(42, 27, 18, 0.5);
  transition: color 1.8s ease;
}

.artisan__name.is-pending .artisan__rest {
  color: var(--mahogany);
}

/* Origin line */
.artisan__origin {
  grid-column: 1 / 9;
  grid-row: 3;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: clamp(1.5rem, 3vw, 2.5rem) 0 0;
  font-weight: 300;
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.2rem);
}

.artisan__origin::before {
  content: "";
  flex: none;
  width: clamp(2rem, 5vw, 4rem);
  height: 1px;
  background: var(--oak);
  transform-origin: left;
}

/* Portrait: the frame is a pseudo-element so it can be drawn after the photo */
.artisan__portrait {
  position: relative;
  grid-column: 9 / 13;
  grid-row: 2 / span 3;
  align-self: start;
  margin: clamp(2.5rem, 6vw, 5rem) 0 0;
}

.artisan__portrait img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: 70svh;
  object-fit: cover;
  background: rgba(42, 27, 18, 0.06);
}

.artisan__portrait::after {
  content: "";
  position: absolute;
  inset: -0.75rem;
  border: 1px solid var(--oak);
  pointer-events: none;
}

/* Quote */
.artisan__quote {
  grid-column: 1 / 8;
  grid-row: 4;
  margin: clamp(2.5rem, 5vw, 4rem) 0 0;
}

.artisan__quote blockquote {
  margin: 0;
  padding: 0;
}

.artisan__quote blockquote::before {
  content: "“";
  display: block;
  height: 0.45em;
  margin-bottom: 0.75rem;
  font-family: var(--font-brand);
  font-size: clamp(3.5rem, 6vw, 5rem);
  line-height: 0.9;
  color: var(--mahogany);
}

.artisan__quote p {
  max-width: 34ch;
  margin: 0;
  font-weight: 300;
  font-size: clamp(1.25rem, 1rem + 1.2vw, 2rem);
  line-height: 1.45;
}

.artisan__quote figcaption {
  margin-top: 1.5rem;
  font-weight: 300;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--mahogany);
}

/* ---------- Entrance sequence ---------- */
@media (prefers-reduced-motion: no-preference) {

  /* 1. Hidden starting states (only once script.js has armed the section) */
  .artisan.is-armed .artisan__credentials:not(.is-in)::after {
    transform: scaleX(0);
  }

  .artisan.is-armed .artisan__credentials:not(.is-in) p {
    opacity: 0;
    transform: translateY(0.5rem);
  }

  .artisan.is-armed .artisan__name:not(.is-in) .artisan__surname {
    opacity: 0;
    transform: translateY(0.25em);
    filter: blur(6px);
  }

  .artisan.is-armed .artisan__name:not(.is-in) ~ .artisan__origin {
    opacity: 0;
    transform: translateY(0.75rem);
  }

  .artisan.is-armed .artisan__name:not(.is-in) ~ .artisan__origin::before {
    transform: scaleX(0);
  }

  .artisan.is-armed .artisan__portrait:not(.is-in) img {
    clip-path: inset(100% 0 0 0); /* nothing visible; wipes upward */
    transform: scale(1.12);
  }

  .artisan.is-armed .artisan__portrait:not(.is-in)::after {
    opacity: 0;
    transform: scale(0.96);
  }

  .artisan.is-armed .artisan__quote:not(.is-in) {
    opacity: 0;
    transform: translateY(1.5rem);
  }

  /* 2. Played once, when each block enters the viewport */
  .artisan__credentials.is-in::after {
    transition: transform 1.4s cubic-bezier(0.2, 0.7, 0.2, 1);
  }

  .artisan__credentials.is-in p {
    transition: opacity 1s ease 0.3s, transform 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.3s;
  }

  .artisan__name.is-in .artisan__surname {
    transition:
      opacity 1.2s ease 0.2s,
      transform 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s,
      filter 1.2s ease 0.2s;
  }

  .artisan__name.is-in .artisan__surname--second {
    transition-delay: 0.45s;
  }

  .artisan__name.is-in ~ .artisan__origin {
    transition: opacity 1s ease 1.2s, transform 1s cubic-bezier(0.2, 0.7, 0.2, 1) 1.2s;
  }

  .artisan__name.is-in ~ .artisan__origin::before {
    transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) 1.5s;
  }

  .artisan__portrait.is-in img {
    clip-path: inset(0 0 0 0);
    transform: none;
    transition:
      clip-path 1.6s cubic-bezier(0.65, 0, 0.2, 1) 0.2s,
      transform 2.2s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s;
  }

  .artisan__portrait.is-in::after {
    transition: opacity 1s ease 1.5s, transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) 1.5s;
  }

  .artisan__quote.is-in {
    transition: opacity 1.1s ease, transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .artisan__rest { transition: none; }
}

/* ---------- Mobile: single column, same reading order as the HTML ---------- */
@media (max-width: 860px) {
  .artisan__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .artisan__credentials,
  .artisan__name,
  .artisan__origin,
  .artisan__portrait,
  .artisan__quote {
    grid-column: 1;
    grid-row: auto;
  }

  .artisan__name {
    font-size: clamp(2.5rem, 15vw, 6rem);
    font-size: clamp(2.5rem, 15cqi, 6rem);
  }

  .artisan__surname--second {
    padding-left: 0.5em;
  }

  .artisan__portrait {
    width: min(100%, 15rem);
    margin: 2.5rem 0 0 0.75rem;
  }

  .artisan__portrait::after {
    inset: -0.5rem;
  }

  .artisan__quote {
    margin-top: 2.5rem;
  }
}

/* ==========================================================================
   14. Waitlist (moss green)
   Headline on the left, minimal underline form on the right.
   ========================================================================== */

/* =========================================
   WAITLIST — RAMBUL
========================================= */

:root {
    --error: #E7A995;
}

.waitlist {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(6rem, 11vw, 9rem) var(--page-margin);
    background: var(--walnut);
    color: var(--linen);
}

/* Subtle light behind the composition */

.waitlist::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(
            ellipse at 20% 50%,
            rgba(201, 169, 97, 0.10),
            transparent 55%
        );
}

.waitlist__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: center;
    gap: clamp(3rem, 8vw, 7rem);
    max-width: 76rem;
    margin: 0 auto;
}

/* Copy */

.waitlist__copy {
    container-type: inline-size;
}

.waitlist__eyebrow {
    margin: 0 0 clamp(2rem, 4vw, 3rem);
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--brass);
}

.waitlist__title {
    margin: 0;
    font-family: var(--font-brand);
    font-size: clamp(2.5rem, 12.5cqi, 7rem);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: 0.025em;
}

.waitlist__title span {
    display: block;
}

.waitlist__accent {
    font-style: normal;
    color: var(--brass);
}

.waitlist__lead {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    margin: clamp(2rem, 3vw, 2.5rem) 0 0;
    font-size: 0.72rem;
    font-weight: 300;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--brass);
}

.waitlist__lead::before {
    content: "";
    width: clamp(2rem, 4vw, 3.5rem);
    height: 1px;
    flex: none;
    background: var(--oak);
}

.waitlist__text {
    max-width: 34ch;
    margin: 1.5rem 0 0;
    font-size: clamp(1rem, 0.9rem + 0.4vw, 1.2rem);
    font-weight: 300;
    line-height: 1.7;
    color: rgba(242, 234, 219, 0.78);
}

/* Form */

.form {
    display: grid;
    gap: 2rem;
    padding: clamp(1.5rem, 3.5vw, 3rem);
    border: 1px solid rgba(201, 169, 97, 0.28);
    background: rgba(242, 234, 219, 0.025);
}

.form__field {
    min-width: 0;
}

.form__label {
    display: block;
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--brass);
}

.form__input {
    display: block;
    width: 100%;
    margin-top: 0.65rem;
    padding: 0.7rem 0;
    border: 0;
    border-bottom: 1px solid rgba(201, 169, 97, 0.4);
    border-radius: 0;
    background: transparent;
    font-family: var(--font-text);
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--linen);
    transition: border-color 0.3s ease;
}

.form__input:focus {
    outline: none;
    border-bottom-color: var(--brass);
    box-shadow: 0 1px 0 var(--brass);
}

.form__input[aria-invalid="true"] {
    border-bottom-color: var(--error);
}

.form__input:-webkit-autofill {
    -webkit-text-fill-color: var(--linen);
    transition: background-color 9999s ease 0s;
}

/* Consent */

.form__consent {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    font-size: 0.85rem;
    font-weight: 300;
    line-height: 1.6;
    color: rgba(242, 234, 219, 0.78);
}

.form__checkbox {
    flex: none;
    width: 1.1rem;
    height: 1.1rem;
    margin: 0.2rem 0 0;
    accent-color: var(--brass);
    cursor: pointer;
}

.form__checkbox:focus-visible,
.form__submit:focus-visible,
.form__consent a:focus-visible {
    outline: 2px solid var(--brass);
    outline-offset: 4px;
}

.form__consent a {
    color: var(--brass);
    text-underline-offset: 0.25em;
}

.form__consent a:hover {
    color: var(--linen);
}

/* Feedback */

.form__error {
    min-height: 0;
    margin: 0.5rem 0 0;
    font-size: 0.82rem;
    line-height: 1.4;
    color: var(--error);
}

.form__error:empty {
    display: none;
}

.form__trap {
    position: absolute;
    left: -9999px;
}

.form__status {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.6;
    color: var(--linen);
}

.form__status:empty {
    display: none;
}

.form__status.is-error {
    color: var(--error);
}

/* Submit */

.form__submit {
    justify-self: start;
    padding: 1rem 1.5rem;
    border: 1px solid var(--brass);
    background: var(--brass);
    font-family: var(--font-text);
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--walnut);
    cursor: pointer;
    transition:
        background-color 0.35s ease,
        color 0.35s ease,
        border-color 0.35s ease;
}

.form__submit:hover:not(:disabled) {
    background: transparent;
    color: var(--brass);
}

.form__submit:disabled {
    opacity: 0.6;
    cursor: wait;
}

/* Success */

.form.is-sent {
    align-content: center;
}

.form.is-sent > :not(.form__status) {
    display: none;
}

.form.is-sent .form__status {
    font-size: 1rem;
    line-height: 1.7;
}

.form.is-sent .form__status::before {
    content: "";
    display: block;
    width: 3rem;
    height: 1px;
    margin-bottom: 1.5rem;
    background: var(--brass);
    transform-origin: left;
}

.form__thanks-title {
    display: block;
    font-family: var(--font-brand);
    font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
    line-height: 1.15;
    color: var(--brass);
}

.form__thanks-text {
    display: block;
    max-width: 32ch;
    margin-top: 1rem;
}

.form__status:focus {
    outline: none;
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 860px) {
    .waitlist__inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 3.5rem;
    }

    .waitlist__copy {
        max-width: 650px;
    }

    .form__submit {
        justify-self: stretch;
    }
}

@media (max-width: 480px) {
    .waitlist {
        padding-block: 5rem;
    }

    .waitlist__title {
        font-size: clamp(2.5rem, 11vw, 4rem);
    }

    .form {
        padding: 1.5rem;
    }
}

/* =========================================
   MOTION
========================================= */

@media (prefers-reduced-motion: no-preference) {

    .waitlist.is-armed:not(.is-in) .waitlist__copy,
    .waitlist.is-armed:not(.is-in) .form {
        opacity: 0;
        transform: translateY(1rem);
    }

    .waitlist.is-in .waitlist__copy,
    .waitlist.is-in .form {
        transition:
            opacity 0.8s ease,
            transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
    }

    .form__error:not(:empty) {
        animation: form-error-in 0.3s ease both;
    }

    @keyframes form-error-in {
        from {
            opacity: 0;
            transform: translateY(-0.25rem);
        }
        to {
            opacity: 1;
            transform: none;
        }
    }

    .form.is-sending .form__submit {
        animation: form-sending 1.2s ease-in-out infinite;
    }

    @keyframes form-sending {
        0%, 100% { opacity: 0.6; }
        50% { opacity: 0.9; }
    }

    .form.is-sent .form__status {
        animation: form-rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    }

    .form.is-sent .form__status::before {
        animation: form-line 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.3s both;
    }

    @keyframes form-rise {
        from {
            opacity: 0;
            transform: translateY(1rem);
        }
        to {
            opacity: 1;
            transform: none;
        }
    }

    @keyframes form-line {
        from { transform: scaleX(0); }
        to { transform: scaleX(1); }
    }
}


/* ==========================================================================
   13. Footer (light linen)
   Closes the page with the name as a large decorative wordmark.
   On linen the brass and oak tones are too faint for text, so mahogany and
   walnut carry the type and oak is kept for fine lines only.
   ========================================================================== */
html {
  scroll-padding-top: 1.5rem;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

.footer {
  background: var(--linen);
  color: rgba(42, 27, 18, 0.8);
}

.footer__inner {
  container-type: inline-size; /* wordmark sizes itself from the real width */
  max-width: 80rem;
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6rem) var(--page-margin) clamp(1.5rem, 3vw, 2rem);
}

.footer a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--mahogany);
  text-decoration: underline;
  text-decoration-color: var(--oak);
  text-underline-offset: 0.25em;
}

.footer a:focus-visible {
  outline: 2px solid var(--walnut);
  outline-offset: 4px;
}

/* Top: brand | explore | contact */
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
}

.footer__logo {
  font-family: var(--font-brand);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  letter-spacing: 0.14em;
  color: var(--walnut);
}

.footer__logo:hover {
  text-decoration: none; /* the logo does not get the underline */
}

.footer__descriptor {
  margin: 0.75rem 0 0;
  font-weight: 300;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--mahogany);
}

.footer__tagline {
  max-width: 24ch;
  margin: 1.75rem 0 0;
  font-weight: 300;
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.2rem);
  line-height: 1.5;
  color: var(--walnut);
}

.footer__heading {
  margin: 0 0 1.25rem;
  font-weight: 300;
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--mahogany);
}

.footer__list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.5;
}

.footer__contact {
  font-style: normal;
}

.footer__contact a {
  overflow-wrap: anywhere;
}

/* Closing wordmark: ~16% of the usable width per em, with room to spare */
.footer__wordmark {
  margin: clamp(3rem, 7vw, 5.5rem) 0 clamp(2rem, 4vw, 3rem);
  font-family: var(--font-brand);
  font-weight: 400;
  font-size: clamp(2.5rem, 14vw, 11rem);   /* fallback without cqi */
  font-size: clamp(2.5rem, 16cqi, 11rem);
  line-height: 0.9;
  letter-spacing: 0.14em;
  text-align: center;
  white-space: nowrap;
  color: var(--mahogany);
  user-select: none;
}

/* Bottom bar */
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(184, 134, 79, 0.55);
  font-weight: 300;
  font-size: 0.78rem;
  line-height: 1.5;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.footer__copy,
.footer__credit {
  margin: 0;
}

/* Credit: discreet on purpose, still above 4.5:1 contrast */
.footer__credit {
  font-size: 0.72rem;
  color: rgba(42, 27, 18, 0.7);
}

.footer__credit a {
  text-decoration: underline;
  text-decoration-color: rgba(184, 134, 79, 0.7);
  text-underline-offset: 0.25em;
}

.footer__top-link {
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* Tablet and mobile */
@media (max-width: 860px) {
  .footer__top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .footer__top {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}