/* ==========================================================================
   Lebombo — Season 01 coming soon
   Palette and type from "Lebombo Vision Board · No. 01 — Foundations".
   Section rhythm (full-bleed photo bands, ticker, mosaic) after amundsen.com.
   The three sketch animations are ported from the standalone coming-soon page.
   Mobile-first; breakpoints at 40rem and 60rem.
   ========================================================================== */

:root {
  /* Base — photographic palette (board section 02) ----------------------- */
  --ecru:    #ece3cd;
  --navy:    #21384f;
  --khaki:   #8b7c52;
  --green:   #1e3a30;
  --gravel:  #b06a43;
  --denim:   #6f8fb5;

  /* Accent — vintage-print pop ------------------------------------------- */
  --brick:    #b4361f;
  --marigold: #e2a02c;
  --corn:     #5f7fb5;

  --brick-dark: #962c18;
  --paper:      #f3ecd9;
  --studio:     #f7f3f1;   /* the product-shot ground */

  /* Type (board section 03) ---------------------------------------------- */
  --display: 'Bodoni Moda', Didot, 'Bodoni MT', 'Playfair Display',
             Georgia, 'Times New Roman', serif;
  --body:    'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto,
             Helvetica, Arial, sans-serif;
  --narrow:  'Archivo Narrow', 'Archivo', 'Roboto Condensed', 'Arial Narrow',
             system-ui, sans-serif;
  --mono:    'Space Mono', ui-monospace, SFMono-Regular, Menlo, Consolas,
             'Liberation Mono', monospace;

  /* Rhythm ---------------------------------------------------------------- */
  --gutter:  clamp(1.25rem, 5.5vw, 3rem);
  --section: clamp(3.5rem, 10vw, 6.5rem);
  --rule:    color-mix(in srgb, var(--khaki) 45%, var(--ecru));
}

/* Reset -------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, p, figure, ul, li, form, dl, dd, dt { margin: 0; padding: 0; }
ul { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  color: var(--navy);
  font-family: var(--body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  background: var(--ecru);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Shared -------------------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: 66rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.mono {
  font-family: var(--mono);
  font-size: .625rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  line-height: 1.6;
}

.kicker {
  font-family: var(--narrow);
  font-weight: 700;
  font-size: .8125rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  line-height: 1.4;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--navy);
  color: var(--ecru);
  padding: .75rem 1.25rem;
  font-family: var(--narrow);
  font-size: .875rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
}
.skip-link:focus { left: .5rem; top: .5rem; }

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

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--narrow);
  font-weight: 700;
  font-size: .8125rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: .875rem 1.75rem;
  border: 1px solid transparent;
  border-radius: 2px;
  background: var(--navy);
  color: var(--ecru);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease;
}
.button:hover { background: var(--brick); color: var(--ecru); }
.button:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.button[disabled] { opacity: .65; cursor: progress; }

/* Masthead ------------------------------------------------------------------ */
.masthead {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-block: 1.125rem .875rem;
  border-bottom: 1px solid var(--rule);
  color: color-mix(in srgb, var(--navy) 78%, var(--ecru));
}
.masthead span:last-child { text-align: right; }

/* --------------------------------------------------------------------------
   Hero — the beach gathering, with the mark and wordmark on a card over it.
   The card is opaque, so type contrast never depends on the photograph.
   -------------------------------------------------------------------------- */
/* Mobile shows the photograph in its own band with the card overlapping it,
   because cover-cropping a landscape shot into a tall phone viewport throws
   the composition away. From 52rem the card floats over a full-bleed hero. */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: clamp(2.5rem, 8vw, 4rem);
}
.hero__photo {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  object-position: center 52%;
}
.hero__card {
  position: relative;
  z-index: 1;
  width: min(100% - 2 * var(--gutter), 27rem);
  margin-top: clamp(-3rem, -7vw, -1.75rem);
  background: var(--ecru);
  border: 1px solid color-mix(in srgb, var(--khaki) 60%, var(--ecru));
  box-shadow: 0 18px 50px rgba(23, 33, 45, .22);
  padding: clamp(1.75rem, 6vw, 2.75rem) clamp(1.25rem, 5vw, 2.5rem);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(.75rem, 2.5vw, 1rem);
}

@media (min-width: 52rem) {
  .hero {
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    min-height: 88vh;
    min-height: 88svh;
    padding: clamp(3rem, 9vw, 5rem) var(--gutter);
    overflow: hidden;
  }
  .hero__photo {
    position: absolute;
    inset: 0;
    z-index: -2;
    height: 100%;
    aspect-ratio: auto;
  }
  .hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(120% 90% at 50% 45%,
      rgba(33, 56, 79, .10), rgba(33, 56, 79, .34) 100%);
  }
  .hero__card { margin-top: 0; width: min(100%, 27rem); }
}

/* The mark ships on the card's own ecru, so it needs no frame — it reads as
   drawn straight onto the card. */
.hero__mark {
  width: clamp(96px, 26vw, 132px);
  height: auto;
}
.hero__eyebrow { color: var(--brick); }

.wordmark {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: clamp(2.75rem, 13vw, 4.5rem);
  line-height: .92;
  letter-spacing: -.025em;
  color: var(--navy);
}

.hero__rule {
  width: 3.5rem;
  height: 3px;
  border: 0;
  background: var(--brick);
  margin: 0;
}

.tagline {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.125rem, 4.6vw, 1.375rem);
  line-height: 1.3;
  color: var(--brick);
}

.hero__cta { margin-top: .5rem; }

/* --------------------------------------------------------------------------
   Ticker
   -------------------------------------------------------------------------- */
.ticker {
  background: var(--brick);
  color: var(--ecru);
  overflow: hidden;
  border-block: 1px solid var(--brick-dark);
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: marquee 44s linear infinite;
}
.ticker__group { display: flex; flex: none; }
.ticker li {
  font-family: var(--mono);
  font-size: .625rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: .625rem 1.25rem;
  white-space: nowrap;
}
.ticker li::after { content: '·'; margin-left: 1.25rem; opacity: .6; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; }
}

/* --------------------------------------------------------------------------
   Section heads
   -------------------------------------------------------------------------- */
.section-head {
  display: flex;
  align-items: baseline;
  gap: .875rem;
  padding-top: clamp(2rem, 6vw, 2.75rem);
  border-top: 1px solid var(--rule);
  margin-bottom: clamp(1.5rem, 5vw, 2.25rem);
}
.section-head .num { font-family: var(--mono); font-size: .6875rem; color: var(--brick); }
.section-head h2 { color: var(--navy); }

/* Intro --------------------------------------------------------------------- */
.intro { padding-block: var(--section); }

.lede {
  font-size: clamp(1rem, 3.9vw, 1.125rem);
  line-height: 1.75;
  max-width: 36rem;
  text-wrap: pretty;
}

@media (min-width: 60rem) {
  .intro__body {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    column-gap: clamp(3rem, 6vw, 5rem);
    align-items: start;
  }
  .intro__body .lede { margin-bottom: 0; }
  /* the stacked gap becomes a column gap here, so drop the top margin */
  .intro__body .intro__more { margin-top: 0; padding-top: .3125rem; }
}

.intro__more { margin-top: clamp(1.75rem, 5vw, 2.25rem); max-width: 36rem; }
.intro__more p + p { margin-top: 1rem; }

/* --------------------------------------------------------------------------
   Sketch animation bands (ported from the standalone coming-soon page)
   Each plays when it scrolls into view, and again on hover or tap.
   -------------------------------------------------------------------------- */
.anim {
  --sketch-h: clamp(104px, 16vw, 190px);
  --pad-x: var(--gutter);
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(150px, 23vw, 260px);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
  cursor: pointer;
}
.anim--left  { justify-content: flex-start; padding-left: var(--pad-x); }
.anim--right { justify-content: flex-end;   padding-right: var(--pad-x); }

.anim__ghost {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: clamp(.75rem, 2.2vw, 1.125rem);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--navy);
  opacity: .22;
  pointer-events: none;
  user-select: none;
}
.anim--left  .anim__ghost { right: var(--pad-x); }
.anim--right .anim__ghost { left: var(--pad-x); }

.sketch { height: var(--sketch-h); width: auto; display: block; user-select: none; }

/* ---------- highland games (8-frame throw) ---------- */
.hg-flip { position: relative; height: var(--sketch-h); aspect-ratio: 364 / 496; }
.hg-frame {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain; opacity: 0;
}
.hg-frame.on { opacity: 1; }

.hg-ball {
  position: absolute; left: 0; top: 0;
  width: clamp(15px, 2.1vw, 26px); aspect-ratio: 1;
  opacity: 0; z-index: 4; pointer-events: none; will-change: transform, opacity;
}
.hg-ball img { width: 100%; height: 100%; }

.hg-impact {
  position: absolute; left: 0; top: 0;
  width: clamp(42px, 5.5vw, 74px); height: clamp(18px, 2.4vw, 30px);
  transform: translate(-50%, -30%);
  z-index: 3; pointer-events: none;
}
.hg-impact .ring {
  position: absolute; left: 50%; top: 58%;
  width: 100%; height: 56%;
  border: 1.7px solid var(--navy);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(.22);
  opacity: 0;
}
.hg-impact .ring:nth-child(2) { width: 76%; height: 44%; }
.hg-impact .ring:nth-child(3) { width: 52%; height: 32%; }
.hg-impact .scuff {
  position: absolute; left: 50%; top: 64%;
  width: 90%; height: 50%;
  overflow: visible;
  transform: translate(-50%, -50%);
  opacity: 0;
}
.hg-impact .scuff path {
  stroke: var(--navy); stroke-width: 1.6; stroke-linecap: round;
  fill: none; vector-effect: non-scaling-stroke;
}
.hg-impact.go .ring { animation: hgRipple 1.05s ease-out forwards; }
.hg-impact.go .ring:nth-child(2) { animation-delay: .16s; }
.hg-impact.go .ring:nth-child(3) { animation-delay: .32s; }
.hg-impact.go .scuff { animation: hgScuff 1s ease-out forwards; }
@keyframes hgRipple {
  0%   { opacity: 0;   transform: translate(-50%, -50%) scale(.22); }
  22%  { opacity: .34; }
  100% { opacity: 0;   transform: translate(-50%, -50%) scale(1.35); }
}
@keyframes hgScuff {
  0% { opacity: 0; } 25% { opacity: .28; } 100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hg-ball, .hg-impact { display: none !important; }
}

/* --------------------------------------------------------------------------
   Season 01 collection
   -------------------------------------------------------------------------- */
.collection { padding-block: var(--section); }

.collection__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(.625rem, 2.5vw, 1.125rem);
}
@media (min-width: 40rem) {
  .collection__grid { grid-template-columns: repeat(3, 1fr); }
}

.product {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--rule);
  background: var(--studio);
}
.product img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.product figcaption {
  padding: .75rem .875rem 1rem;
  background: var(--paper);
  border-top: 1px solid var(--rule);
}
.product .name {
  font-family: var(--narrow);
  font-weight: 700;
  font-size: .8125rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.product .meta {
  display: block;
  margin-top: .25rem;
  font-family: var(--mono);
  font-size: .5625rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--navy) 72%, var(--paper));
}

/* the third tile is a note, not a garment */
.collection__grid > .is-note { grid-column: 1 / -1; }
@media (min-width: 40rem) { .collection__grid > .is-note { grid-column: auto; } }

.product--note {
  background: var(--paper);
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(1.75rem, 6vw, 2.5rem) 1.25rem;
  gap: .5rem;
}
.product--note .note-title {
  font-family: var(--display);
  font-size: clamp(1.5rem, 5vw, 2rem);
  line-height: 1.1;
}
.product--note .meta { color: color-mix(in srgb, var(--navy) 70%, var(--paper)); }

/* --------------------------------------------------------------------------
   Join the community — full-bleed photo with the form on a card
   -------------------------------------------------------------------------- */
.join {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  padding: clamp(4rem, 12vw, 8rem) var(--gutter);
  overflow: hidden;
}
.join__photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}
.join::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(33, 56, 79, .38);
}

.join__card {
  width: min(100%, 32rem);
  background: var(--ecru);
  border: 1px solid color-mix(in srgb, var(--khaki) 60%, var(--ecru));
  box-shadow: 0 18px 50px rgba(23, 33, 45, .24);
  padding: clamp(1.75rem, 6vw, 2.75rem) clamp(1.25rem, 5vw, 2.5rem);
  text-align: center;
}
.join__card .kicker { color: var(--brick); }
.join__card h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.875rem, 7.5vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: -.015em;
  margin-block: .5rem .625rem;
}
.join__card > p { max-width: 26rem; margin-inline: auto; }

.form {
  margin-top: clamp(1.5rem, 5vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: .625rem;
}
@media (min-width: 32rem) {
  .form { flex-direction: row; }
  .form__field { flex: 1 1 auto; }
}
.form__field { display: flex; flex-direction: column; }

.form input[type='email'] {
  width: 100%;
  font-family: var(--body);
  font-size: 1rem;                    /* 16px stops iOS zooming on focus */
  color: var(--navy);
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--khaki) 70%, var(--ecru));
  border-radius: 2px;
  padding: .875rem 1.0625rem;
  transition: border-color .2s ease;
}
.form input[type='email']::placeholder {
  color: color-mix(in srgb, var(--navy) 55%, #fff);
}
.form input[type='email']:hover { border-color: var(--khaki); }
.form input[type='email']:focus-visible {
  outline: 2px solid var(--brick);
  outline-offset: 2px;
}

.form__note {
  margin-top: .875rem;
  font-size: .8125rem;
  color: color-mix(in srgb, var(--navy) 68%, var(--ecru));
}
.form__status { margin-top: 1rem; }
.form__status:empty { margin-top: 0; }
.form__status[data-state='error'] { color: var(--brick-dark); }

.form__success {
  display: block;
  margin-top: clamp(1.5rem, 5vw, 2rem);
  padding: 1.125rem 1.25rem;
  border: 1px solid color-mix(in srgb, var(--khaki) 55%, var(--ecru));
  border-left: 3px solid var(--brick);
  border-radius: 2px;
  background: var(--paper);
  text-align: left;
}
.form__success strong {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.3125rem;
  margin-bottom: .25rem;
}

/* Netlify honeypot — hidden from people, visible to bots. */
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* --------------------------------------------------------------------------
   Icons — the reference mosaic
   -------------------------------------------------------------------------- */
.icons { padding-block: var(--section); }
.icons__intro {
  max-width: 34rem;
  margin-bottom: clamp(1.5rem, 5vw, 2rem);
  color: color-mix(in srgb, var(--navy) 82%, var(--ecru));
}

.icons__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(.375rem, 1.5vw, .75rem);
}
/* The aspect lives on the grid item, not the image: a tile that spans two
   columns and two rows is then exactly as tall as the two rows plus the gap,
   so every row lines up. */
.icons__grid li {
  position: relative;
  aspect-ratio: 1;
}
.icons__grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--paper);
}
/* the two feature tiles, as on the reference layout */
.icons__grid li:nth-child(1),
.icons__grid li:nth-child(2) { grid-column: span 2; grid-row: span 2; }

@media (min-width: 40rem) { .icons__grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 52rem) { .icons__grid { grid-template-columns: repeat(6, 1fr); } }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer { padding-block: clamp(2.5rem, 8vw, 4rem); }
.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  border-top: 1px solid var(--rule);
  padding-top: clamp(1.75rem, 6vw, 2.5rem);
}
@media (min-width: 40rem) {
  .footer__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
  }
}
.footer__mark {
  font-family: var(--display);
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: -.015em;
}
.footer__meta { color: color-mix(in srgb, var(--navy) 72%, var(--ecru)); }

.social {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  min-height: 44px;
  padding-top: .5rem;
  font-family: var(--narrow);
  font-weight: 700;
  font-size: .8125rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brick);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--brick) 45%, var(--ecru));
  transition: color .2s ease, border-color .2s ease;
}
.social:hover { color: var(--brick-dark); border-color: var(--brick-dark); }
.social svg { width: 1.0625rem; height: 1.0625rem; flex: none; }
