/* =========================================================
   Sweet Savanna — v2 "Single-Origin Field Journal"
   Dark, type-driven, honeycomb geometry. No framework.
   ========================================================= */

:root {
  --bg:      #100c07;   /* warm near-black */
  --bg-2:    #171009;
  --panel:   #1c140b;
  --gold:    #ffb200;
  --gold-2:  #ffc94d;
  --gold-deep:#d98800;
  --cream:   #f2ead9;
  --cream-2: #e7dcc4;
  --ink:     #100c07;
  --muted:   #a2937a;
  --line:    rgba(242,234,217,.14);
  --line-2:  rgba(242,234,217,.08);

  --wrap: 1280px;
  --pad: clamp(1.25rem, 4vw, 4rem);

  --disp: 'Bricolage Grotesque', system-ui, sans-serif;
  --body: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --mono: 'Space Mono', ui-monospace, 'Courier New', monospace;

  --ease: cubic-bezier(.19,1,.22,1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--body);
  font-size: clamp(1rem, .96rem + .2vw, 1.08rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; color: inherit; }
::selection { background: var(--gold); color: var(--ink); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.mono { font-family: var(--mono); font-weight: 400; letter-spacing: .02em; }

.skip-link { position: absolute; left: -999px; top: 0; z-index: 1000; background: var(--gold); color: var(--ink); padding: .7rem 1.2rem; }
.skip-link:focus { left: 0; }

/* grain */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 9998; pointer-events: none;
  opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* scroll progress + custom cursor */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--gold); z-index: 1000; }
.cursor {
  position: fixed; top: 0; left: 0; width: 34px; height: 34px; border: 1.5px solid var(--gold);
  border-radius: 50%; transform: translate(-50%,-50%); pointer-events: none; z-index: 999;
  transition: width .25s var(--ease), height .25s var(--ease), background .25s, opacity .3s; opacity: 0;
  mix-blend-mode: difference;
}
.cursor.is-on { opacity: 1; }
.cursor.is-hot { width: 60px; height: 60px; background: rgba(255,178,0,.15); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Type ---------- */
.kicker { color: var(--gold); font-size: .8rem; letter-spacing: .06em; margin-bottom: 1.4rem; }
.section-title {
  font-family: var(--disp); font-weight: 700; line-height: .95; letter-spacing: -.03em;
  font-size: clamp(2.4rem, 1.4rem + 4.6vw, 5.5rem);
}
.section-title--center { text-align: center; margin-inline: auto; }
.lead { color: var(--cream-2); font-size: clamp(1.05rem, 1rem + .5vw, 1.3rem); max-width: 46ch; }
p + p { margin-top: 1rem; }

/* Never hyphenate or break a word across lines in display headings */
.hero__title, .section-title, .order__title, .statement,
.foot__word, .card__name, .entry__txt h3, .fact__v {
  overflow-wrap: normal; hyphens: none;
}
.section-title, .order__title { text-wrap: balance; }

/* Kiswahili runs longer than English — ease the big display headings down
   so translated text fits gracefully (English is unaffected). */
html[lang="sw"] .section-title { font-size: clamp(2rem, 1.2rem + 3.4vw, 4rem); }
html[lang="sw"] .order__title  { font-size: clamp(2.2rem, 1.4rem + 3.6vw, 4.4rem); }
html[lang="sw"] .statement     { font-size: clamp(1.6rem, 1rem + 3.4vw, 3.6rem); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--gold); --fg: var(--ink);
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--body); font-weight: 600; font-size: 1rem;
  background: var(--bg); color: var(--fg);
  padding: 1rem 1.8rem; border-radius: 100px; border: 1.5px solid transparent;
  transition: transform .4s var(--ease), background .3s, color .3s, border-color .3s;
}
.btn:hover { transform: translateY(-3px); }
.btn--gold:hover { background: var(--gold-2); }
.btn--line { --bg: transparent; --fg: var(--cream); border-color: var(--line); }
.btn--line:hover { border-color: var(--gold); color: var(--gold); }
.btn--wa { --bg: #25d366; --fg: #072b16; }
.btn--block { width: 100%; justify-content: center; }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; padding-block: 1.1rem; transition: background .4s var(--ease), padding .4s, border-color .4s; border-bottom: 1px solid transparent; }
.nav.is-stuck { background: rgba(16,12,7,.72); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-color: var(--line-2); padding-block: .7rem; }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.nav__brand { display: flex; align-items: center; gap: .6rem; font-family: var(--disp); font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; white-space: nowrap; }
.nav__brand img { border-radius: 8px; }
.nav__links { display: flex; align-items: center; gap: 1.5rem; }
.nav__links a { font-size: .95rem; font-weight: 500; color: var(--cream-2); white-space: nowrap; transition: color .25s; }
.nav__links a .mono { color: var(--gold-deep); font-size: .72rem; margin-right: .15rem; }
.nav__links a:hover { color: var(--gold); }
.nav__cta { color: var(--ink) !important; background: var(--gold); padding: .5rem 1.1rem; border-radius: 100px; font-weight: 600; white-space: nowrap; transition: transform .3s var(--ease); }
.nav__cta:hover { transform: translateY(-2px); }
.nav__cta .mono, .nav__cta:hover { }
.nav__toggle { display: none; flex-direction: column; gap: 6px; background: none; border: 0; padding: .4rem; }
.nav__toggle span { width: 26px; height: 2px; background: var(--cream); transition: .35s var(--ease); }

/* language toggle */
.nav__ctl { display: flex; align-items: center; gap: .9rem; }
.lang { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 100px; overflow: hidden; font-family: var(--mono); background: rgba(0,0,0,.25); }
.lang button { padding: .55rem 1rem; background: none; border: 0; color: var(--cream-2); font-size: .9rem; font-weight: 700; letter-spacing: .02em; line-height: 1; transition: background .25s, color .25s; }
.lang button.is-active { background: var(--gold); color: var(--ink); }
.lang button:not(.is-active) { color: var(--muted); }
.lang button:not(.is-active):hover { color: var(--gold); }
.lang__short { display: none; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(7rem, 14vh, 10rem); padding-inline: var(--pad); padding-bottom: clamp(3rem, 6vw, 5rem); max-width: var(--wrap); margin-inline: auto; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 1.5rem; color: var(--muted); font-size: .78rem; letter-spacing: .04em; border-bottom: 1px solid var(--line); padding-bottom: 1.5rem; margin-bottom: clamp(2rem, 5vw, 4rem); }
.hero__meta span { position: relative; }

.hero__grid { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: clamp(1rem, 4vw, 3rem); }
.hero__title { font-family: var(--disp); font-weight: 800; line-height: .82; letter-spacing: -.045em; font-size: clamp(4rem, 2rem + 16vw, 16rem); }
.hero__title .line { display: block; overflow: hidden; }
.hero__title em { font-style: italic; color: var(--gold); font-weight: 700; }

.hero__hex { width: clamp(200px, 26vw, 380px); aspect-ratio: 1 / 1.1; }
.hero__hex img {
  width: 100%; height: 100%; object-fit: cover;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty { 0%,100%{ transform: translateY(0) rotate(0); } 50%{ transform: translateY(-14px) rotate(-1.5deg); } }
@media (prefers-reduced-motion: reduce){ .hero__hex img { animation: none; } }

.hero__foot { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: end; margin-top: clamp(2rem, 5vw, 4rem); border-top: 1px solid var(--line); padding-top: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: flex-end; }

/* ---------- Ticker ---------- */
.ticker { background: var(--gold); color: var(--ink); overflow: hidden; white-space: nowrap; padding-block: .85rem; }
.ticker__track { display: inline-flex; align-items: center; gap: 1.6rem; font-family: var(--disp); font-weight: 800; font-size: clamp(1rem, 2vw, 1.5rem); letter-spacing: -.01em; animation: ticker 30s linear infinite; }
.ticker__track i { font-style: normal; opacity: .55; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce){ .ticker__track { animation: none; } }

/* ---------- Origin ---------- */
.origin { padding-block: clamp(5rem, 11vw, 10rem); }
.statement { font-family: var(--disp); font-weight: 600; letter-spacing: -.025em; line-height: 1.08; font-size: clamp(1.8rem, 1rem + 4vw, 4.2rem); max-width: 20ch; }
.statement .o { color: var(--gold); }
.origin__facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: clamp(3rem, 6vw, 5rem); background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.fact { background: var(--bg); padding: 1.75rem clamp(1.25rem, 2vw, 2rem); }
.fact__k { display: block; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: .6rem; }
.fact__v { font-family: var(--disp); font-weight: 700; font-size: clamp(1.1rem, 1.5vw, 1.45rem); letter-spacing: -.01em; }

/* ---------- Notes ---------- */
.notes { padding-block: clamp(4rem, 8vw, 7rem); }
.notes__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.notes__media { position: relative; }
.notes__media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; clip-path: polygon(0 0,100% 0,100% 88%,88% 100%,0 100%); }
.notes__stamp { position: absolute; right: 1.25rem; bottom: 1.25rem; background: var(--gold); color: var(--ink); font-weight: 700; font-size: .8rem; line-height: 1.1; padding: .6rem .8rem; text-align: center; letter-spacing: .05em; }
.tastes { list-style: none; padding: 0; margin-top: 2rem; display: grid; gap: 0; }
.tastes li { display: flex; align-items: baseline; gap: 1rem; padding: 1.1rem 0; border-top: 1px solid var(--line); font-family: var(--disp); font-weight: 600; font-size: clamp(1.15rem, 2vw, 1.6rem); letter-spacing: -.01em; }
.tastes li:last-child { border-bottom: 1px solid var(--line); }
.tastes .mono { color: var(--gold); font-size: .8rem; font-weight: 700; }

/* ---------- Journal ---------- */
.journal { padding-block: clamp(4rem, 8vw, 7rem); background: var(--bg-2); }
.journal__head { max-width: 46ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.journal__list { display: grid; gap: 0; }
.entry { display: grid; grid-template-columns: 5rem 1.1fr 1fr; gap: clamp(1.25rem, 3vw, 3rem); align-items: center; padding-block: clamp(1.75rem, 3vw, 2.75rem); border-top: 1px solid var(--line); }
.entry:last-child { border-bottom: 1px solid var(--line); }
.entry__no { font-size: 1rem; color: var(--gold); font-weight: 700; align-self: start; padding-top: .3rem; }
.entry__img { overflow: hidden; border-radius: 12px; }
.entry__img img { width: 100%; aspect-ratio: 16/10; object-fit: cover; transition: transform .7s var(--ease); }
.entry:hover .entry__img img { transform: scale(1.05); }
.entry__txt h3 { font-family: var(--disp); font-weight: 700; letter-spacing: -.02em; font-size: clamp(1.5rem, 2.5vw, 2.4rem); margin-bottom: .5rem; }
.entry__txt p { color: var(--cream-2); max-width: 40ch; }

/* ---------- Batch ---------- */
.batch { padding-block: clamp(5rem, 10vw, 9rem); }
.batch .kicker { text-align: center; }
.batch__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: clamp(2.5rem, 5vw, 4rem); }
.card { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 1.75rem; display: flex; flex-direction: column; min-height: 320px; transition: transform .45s var(--ease), border-color .45s, background .45s; }
.card:hover { transform: translateY(-8px); border-color: var(--gold); }
.card--feat { background: linear-gradient(180deg, rgba(255,178,0,.14), rgba(255,178,0,.02)); border-color: var(--gold); }
.card__flag { position: absolute; top: -.7rem; left: 1.75rem; background: var(--gold); color: var(--ink); font-weight: 700; font-size: .68rem; letter-spacing: .1em; padding: .3rem .7rem; border-radius: 100px; }
.card__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; color: var(--muted); font-size: .75rem; }
.card__vol { font-family: var(--disp); font-weight: 800; font-size: clamp(2rem, 3vw, 2.8rem); color: var(--gold); letter-spacing: -.03em; line-height: 1; }
.card__vol small { font-size: .85rem; font-weight: 500; }
.card__name { font-family: var(--disp); font-weight: 700; font-size: 1.6rem; letter-spacing: -.02em; margin-top: .75rem; }
.card__desc { color: var(--cream-2); margin-top: .5rem; flex: 1; }
.card__cta { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--gold); margin-top: 1.25rem; }
.card__cta span { transition: transform .3s var(--ease); }
.card:hover .card__cta span { transform: translateX(5px); }

/* ---------- Gallery (hex wall) ---------- */
.gallery { padding-block: clamp(4rem, 8vw, 7rem); }
.gallery__head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.hexwall { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(.5rem, 1.2vw, 1rem); padding-inline: var(--pad); max-width: 1500px; margin-inline: auto; }
.hexwall figure { overflow: hidden; aspect-ratio: 1 / 1.1; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.hexwall figure:nth-child(even) { transform: translateY(30px); }
.hexwall img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .6s; filter: saturate(.9) brightness(.92); }
.hexwall figure:hover img { transform: scale(1.08); filter: saturate(1.1) brightness(1); }

/* ---------- Order ---------- */
.order { padding-block: clamp(5rem, 9vw, 8rem); background: var(--gold); color: var(--ink); }
.order .kicker { color: var(--gold-deep); }
.order .lead { color: #3a2c05; }
.order__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.order__title { font-family: var(--disp); font-weight: 800; line-height: .9; letter-spacing: -.04em; font-size: clamp(2.6rem, 1.5rem + 5vw, 6rem); }
.order .btn--wa { margin-top: 2rem; }
.order__form { background: var(--ink); color: var(--cream); border-radius: 22px; padding: clamp(1.5rem, 3vw, 2.25rem); }
.order__form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.fld { display: block; margin-bottom: 1rem; }
.fld span { display: block; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .5rem; }
.fld input, .fld textarea { width: 100%; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: .85rem 1rem; color: var(--cream); font: inherit; transition: border-color .25s, box-shadow .25s; resize: vertical; }
.fld input::placeholder, .fld textarea::placeholder { color: #6f6350; }
.fld input:focus, .fld textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255,178,0,.2); }
.form-status { margin-top: .9rem; min-height: 1.1em; font-size: .82rem; }
.form-status.is-ok { color: var(--gold-2); }
.form-status.is-err { color: #ff8a7a; }

/* ---------- Footer ---------- */
.foot { padding-top: clamp(3.5rem, 6vw, 5rem); }
.foot__top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2rem; padding-bottom: 2.5rem; }
.foot__word { font-family: var(--disp); font-weight: 800; font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -.03em; }
.foot__brand p { color: var(--muted); font-size: .75rem; line-height: 1.7; margin-top: .5rem; }
.foot__logo { display: block; width: 120px; height: auto; margin-bottom: 1rem; }
.foot__nav { display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: center; }
.foot__nav a { color: var(--cream-2); transition: color .25s; }
.foot__nav a:hover { color: var(--gold); }
.foot__bar { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding-block: 1.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .72rem; letter-spacing: .04em; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.hero__title .line.reveal { transform: translateY(105%); }
.hero__title .line.reveal.is-in { transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal, .hero__title .line.reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- QA shot mode ---------- */
.shot-mode .reveal, .shot-mode .hero__title .line.reveal { opacity: 1 !important; transform: none !important; }
.shot-mode .hero__hex img { animation: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hexwall { grid-template-columns: repeat(3, 1fr); }
  .origin__facts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  .nav__links { position: fixed; inset: 0 0 0 auto; width: min(82vw, 340px); flex-direction: column; align-items: flex-start; justify-content: center; gap: 1.5rem; background: var(--bg-2); padding: 2rem 2.25rem; transform: translateX(100%); transition: transform .45s var(--ease); border-left: 1px solid var(--line); }
  .nav__links.is-open { transform: translateX(0); }
  .nav__links a { font-size: 1.2rem; }
  .nav__toggle { display: flex; }
  body.menu-open { overflow: hidden; }
  .nav__toggle.is-active span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
  .nav__toggle.is-active span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

  .hero__grid { grid-template-columns: 1fr; }
  .hero__hex { display: none; }
  .hero__foot { grid-template-columns: 1fr; align-items: start; }
  .hero__actions { justify-content: flex-start; }
  .notes__grid, .order__inner { grid-template-columns: 1fr; }
  .entry { grid-template-columns: 3rem 1fr; }
  .entry__img { grid-column: 2; }
  .entry__txt { grid-column: 2; }
  .batch__grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .card--feat { order: -1; }
  /* Hero title must never overflow/clip on small screens */
  .hero__title { font-size: clamp(2.75rem, 12vw, 7rem); }
}
@media (max-width: 560px) {
  .hexwall { grid-template-columns: repeat(2, 1fr); }
  .origin__facts { grid-template-columns: 1fr; }
  .order__form .row { grid-template-columns: 1fr; }
  .hero__meta { gap: .75rem 1.25rem; }
  /* compact EN/SW toggle on phones */
  .lang__full { display: none; }
  .lang__short { display: inline; }
  .lang button { padding: .32rem .55rem; font-size: .72rem; }
}
