/* ==========================================================================
   Africa Waka Waka — base system
   Palette: Atlantic night, gara indigo, Lungi laterite, sunset gold, cotton.
   Type: Fraunces (soft, display) + Manrope (text/UI).
   ========================================================================== */

@font-face {
  font-family: "Fraunces";
  src: url("../assets/fonts/fraunces.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../assets/fonts/fraunces-italic.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../assets/fonts/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --night: #0b1420;
  --night-2: #121e30;
  --night-3: #1a2840;
  --indigo: #1f2f5c;
  --indigo-2: #2d4280;
  --indigo-3: #5b6fae;
  --laterite: #b4502b;
  --laterite-2: #c9643b;
  --laterite-deep: #7e3219;
  --gold: #edb25b;
  --gold-2: #f6cf8d;
  --cotton: #f6f0e6;
  --cotton-2: #fbf8f2;
  --sand: #ece2d2;
  --sand-2: #e2d4bf;
  --ink: #1b1612;
  --ink-2: #4b4139;
  --ink-3: #7a6d62;
  --line: rgba(27, 22, 18, 0.14);
  --line-light: rgba(246, 240, 230, 0.16);
  --mangrove: #1f4b3c;

  --f-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --f-body: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --gutter: clamp(16px, 4.2vw, 60px);
  --maxw: 1340px;
  --radius: 18px;
  --header-h: 76px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--night);
}
html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-stopped {
  overflow: hidden;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--cotton);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

button {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--gold);
  color: var(--night);
}

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

[hidden] {
  display: none !important;
}

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

.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--gold);
  color: var(--night);
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 12px;
}

/* ---------- Type ---------- */

.display {
  font-family: var(--f-display);
  font-weight: 400;
  font-optical-sizing: auto;
  letter-spacing: -0.028em;
  line-height: 0.95;
  margin: 0;
  text-wrap: balance;
}
.display em,
.display i {
  font-style: italic;
  font-weight: 350;
}
.d-xxl {
  font-size: clamp(58px, 12.2vw, 212px);
  line-height: 0.86;
  letter-spacing: -0.04em;
}
.d-xl {
  font-size: clamp(46px, 7.6vw, 132px);
  line-height: 0.9;
  letter-spacing: -0.035em;
}
.d-l {
  font-size: clamp(38px, 5vw, 84px);
}
.d-m {
  font-size: clamp(30px, 3.2vw, 52px);
  line-height: 1;
  letter-spacing: -0.022em;
}
.d-s {
  font-size: clamp(24px, 2.1vw, 32px);
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-body);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0 0 26px;
}
.kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.lede {
  font-size: clamp(18px, 1.45vw, 21px);
  line-height: 1.6;
  max-width: 36em;
  margin: 0;
}
.muted {
  opacity: 0.72;
}
.small {
  font-size: 14px;
  line-height: 1.55;
}

/* ---------- Buttons ---------- */

.btn {
  --bg: var(--gold);
  --fg: var(--night);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  border: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-body);
  font-weight: 750;
  font-size: 15.5px;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), background 0.3s;
  -webkit-tap-highlight-color: transparent;
}
.btn::after {
  /* light sweep */
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.55) 48%, transparent 66%);
  transform: translateX(-120%);
  transition: transform 0.9s var(--ease-out);
}
.btn:hover::after {
  transform: translateX(120%);
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(1px) scale(0.985);
}
.btn .arrow {
  width: 18px;
  height: 18px;
  transition: transform 0.35s var(--ease-out);
}
.btn:hover .arrow {
  transform: translateX(3px);
}

.btn--primary {
  box-shadow: 0 0 0 1px rgba(237, 178, 91, 0.35), 0 10px 40px -8px rgba(237, 178, 91, 0.55);
  animation: glow 3.6s ease-in-out infinite;
}
@keyframes glow {
  0%,
  100% {
    box-shadow: 0 0 0 1px rgba(237, 178, 91, 0.35), 0 10px 36px -10px rgba(237, 178, 91, 0.5);
  }
  50% {
    box-shadow: 0 0 0 1px rgba(237, 178, 91, 0.5), 0 14px 52px -8px rgba(237, 178, 91, 0.75);
  }
}
.btn--big {
  min-height: 64px;
  padding: 0 14px 0 30px;
  font-size: 17px;
  gap: 18px;
}
.btn--big .price {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(11, 20, 32, 0.1);
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.btn--big .price small {
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
}

.btn--ghost {
  --bg: transparent;
  --fg: currentColor;
  box-shadow: inset 0 0 0 1.5px currentColor;
}
.btn--ghost::after {
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.18) 48%, transparent 66%);
}
.btn--ink {
  --bg: var(--ink);
  --fg: var(--cotton);
}
.btn--cotton {
  --bg: var(--cotton);
  --fg: var(--ink);
}
.btn--sm {
  min-height: 42px;
  padding: 0 18px;
  font-size: 14px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 3px;
}
.link-arrow svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s var(--ease-out);
}
.link-arrow:hover svg {
  transform: translateX(4px);
}

/* ---------- Layout ---------- */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
}

.section {
  position: relative;
  padding: clamp(96px, 13vh, 170px) var(--gutter);
  min-height: min(92vh, 900px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
}
.section--auto {
  min-height: 0;
}

.theme-night {
  background: var(--night);
  color: var(--cotton);
}
.theme-indigo {
  background: var(--indigo);
  color: var(--cotton);
}
.theme-cotton {
  background: var(--cotton);
  color: var(--ink);
}
.theme-sand {
  background: var(--sand);
  color: var(--ink);
}
.theme-laterite {
  background: var(--laterite);
  color: var(--cotton);
}

/* arrival motion — rise and fade, staggered */
.reveal > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.95s var(--ease-out), transform 0.95s var(--ease-out);
}
.reveal.in > * {
  opacity: 1;
  transform: none;
}
.reveal.in > *:nth-child(2) {
  transition-delay: 0.09s;
}
.reveal.in > *:nth-child(3) {
  transition-delay: 0.18s;
}
.reveal.in > *:nth-child(4) {
  transition-delay: 0.27s;
}
.reveal.in > *:nth-child(5) {
  transition-delay: 0.36s;
}
.reveal.in > *:nth-child(6) {
  transition-delay: 0.45s;
}

/* split headline lines */
.split-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.split-line > span {
  display: inline-block;
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal > * {
    opacity: 1;
    transform: none;
  }
}
