/* fonts are self-hosted (latin + arabic subsets) so the text never swaps late */
@font-face { font-family: 'Amiri'; font-style: normal; font-weight: 400; font-display: block; src: url(fonts/amiri-normal-400-arabic.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1; }
@font-face { font-family: 'Amiri'; font-style: normal; font-weight: 400; font-display: block; src: url(fonts/amiri-normal-400-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Amiri'; font-style: normal; font-weight: 700; font-display: block; src: url(fonts/amiri-normal-700-arabic.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1; }
@font-face { font-family: 'Amiri'; font-style: normal; font-weight: 700; font-display: block; src: url(fonts/amiri-normal-700-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 400; font-display: block; src: url(fonts/cormorant-garamond-italic-400-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 500; font-display: block; src: url(fonts/cormorant-garamond-italic-400-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 400; font-display: block; src: url(fonts/cormorant-garamond-normal-400-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500; font-display: block; src: url(fonts/cormorant-garamond-normal-400-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Raleway'; font-style: normal; font-weight: 100 900; font-display: block; src: url(fonts/raleway-normal-400-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 700; font-display: block; src: url(fonts/montserrat-normal-700-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --edge: max(clamp(1.5rem, 6vw, 5rem), (100vw - 1400px) / 2);
  --black: #3a2c21;
  --lime: #f7ead2;
  --cream: #fff7e3;
  --ink: #3a2b1c;
  --leaf: #1d3a16;
  --sun: 255, 240, 190;
  --serif: "Cormorant Garamond", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Raleway", system-ui, -apple-system, "Segoe UI", sans-serif;
  --arabic: "Amiri", "Noto Naskh Arabic", "Traditional Arabic", serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 112.5%; scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }

body {
  font-family: var(--sans);
  color: var(--cream);
  background: var(--black);
  line-height: 1.7;
  font-weight: 400;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
[lang="ar"] { font-family: var(--arabic); font-weight: 400; }

/* header: fixed, turns into frosted glass after scrolling */
header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}
header.scrolled {
  background: rgba(58, 44, 33, 0.3);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  backdrop-filter: blur(10px) saturate(1.2);
}
.nav {
  margin-inline: var(--edge);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  gap: 1rem;
  flex-wrap: wrap;
}
.logo {
  font-family: var(--serif);
  font-size: 2.2rem;
  text-decoration: none;
  letter-spacing: 0.02em;
  display: flex;
  align-items: baseline;
  gap: 1rem;
}
.logo span { font-size: 1.6rem; opacity: 0.85; }
nav ul { list-style: none; display: flex; gap: 2rem; align-items: center; flex-wrap: wrap; }
header .logo, nav a:not(.btn) { text-shadow: 0 1px 10px rgba(45, 28, 12, 0.55), 0 0 2px rgba(45, 28, 12, 0.35); }
nav a { text-decoration: none; font-size: 1rem; letter-spacing: 0.04em; opacity: 0.88; }
nav a:hover, nav a[aria-current="page"] { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }

/* pill buttons */
.btn {
  display: inline-block;
  background: var(--cream);
  color: var(--ink);
  padding: 0.95rem 2.6rem;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-3px); background: #fff; box-shadow: 0 10px 30px rgba(var(--sun), 0.35); text-decoration: none; }
nav a.btn { opacity: 1; padding: 0.6rem 1.6rem; text-decoration: none; }

/* type */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; }
h1 { font-size: clamp(3.25rem, 8vw, 6rem); }
h2 { font-size: clamp(2.4rem, 4.5vw, 3.4rem); margin-bottom: 1.25rem; }
h3 { font-size: 1.7rem; margin-bottom: 0.4rem; }
em { font-style: italic; }
strong { font-weight: 700; }
p + p { margin-top: 1rem; }

/* hero: papercut relief map of sudan (layers are generated into index.html) */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  justify-items: start;
  padding: 8rem var(--edge) 5rem;
  isolation: isolate;
}
.hero-bg::before { content: ""; position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(58, 44, 33, 0.2) 0%, rgba(58, 44, 33, 0) 16%),
  radial-gradient(circle at 80% 130px, #fff4cf 0, #ffe6a3 3.2%, rgba(255, 224, 150, 0.7) 3.6%, rgba(255, 214, 140, 0.4) 14%, rgba(255, 200, 120, 0) 44%),
  radial-gradient(ellipse at 62% 52%, rgba(246, 205, 135, 0.4) 0%, rgba(246, 205, 135, 0) 52%); }
.hero-bg::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 24%; min-height: 140px; background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2080%2016%27%3E%3Cpath%20d%3D%27M0%2016%20L10%202%20L20%2016Z%27%20fill%3D%27%23b8342b%27%20fill-opacity%3D%27.9%27%2F%3E%3Cpath%20d%3D%27M20%2016%20L30%202%20L40%2016Z%27%20fill%3D%27%23f3e4c4%27%20fill-opacity%3D%27.9%27%2F%3E%3Cpath%20d%3D%27M40%2016%20L50%202%20L60%2016Z%27%20fill%3D%27%232f6b3b%27%20fill-opacity%3D%27.9%27%2F%3E%3Cpath%20d%3D%27M60%2016%20L70%202%20L80%2016Z%27%20fill%3D%27%231f1812%27%20fill-opacity%3D%27.9%27%2F%3E%3C%2Fsvg%3E") left bottom / 80px 16px repeat-x, url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%27300%2098%20154%2062%27%3E%3Cpath%20d%3D%27M300%20160%20L314.0%20108%20L320.0%20108%20L334%20160Z%27%20fill%3D%27%235a4130%27%20fill-opacity%3D%27.9%27%2F%3E%3Cpath%20d%3D%27M338%20160%20L349.0%20122%20L355.0%20122%20L366%20160Z%27%20fill%3D%27%235a4130%27%20fill-opacity%3D%27.9%27%2F%3E%3Cpath%20d%3D%27M372%20160%20L389.0%20100%20L395.0%20100%20L412%20160Z%27%20fill%3D%27%235a4130%27%20fill-opacity%3D%27.9%27%2F%3E%3Cpath%20d%3D%27M414%20160%20L424.0%20126%20L430.0%20126%20L440%20160Z%27%20fill%3D%27%235a4130%27%20fill-opacity%3D%27.9%27%2F%3E%3C%2Fsvg%3E") 24% 47% / auto 40% no-repeat, url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%271060%20104%2070%2056%27%3E%3Cpath%20d%3D%27M1060%20160%20L1072.0%20116%20L1078.0%20116%20L1090%20160Z%27%20fill%3D%27%235a4130%27%20fill-opacity%3D%27.9%27%2F%3E%3Cpath%20d%3D%27M1094%20160%20L1109.0%20104%20L1115.0%20104%20L1130%20160Z%27%20fill%3D%27%235a4130%27%20fill-opacity%3D%27.9%27%2F%3E%3C%2Fsvg%3E") 66% 47% / auto 34% no-repeat, url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%201440%20220%27%20preserveAspectRatio%3D%27none%27%3E%3Cpath%20d%3D%27M0%20120%20C240%2040%20420%2060%20640%20110%20C860%20160%201060%2070%201440%20100%20L1440%20220%20L0%20220Z%27%20fill%3D%27%23caa069%27%20fill-opacity%3D%27.55%27%2F%3E%3Cpath%20d%3D%27M0%20160%20C300%20100%20520%20150%20760%20150%20C1000%20150%201200%20110%201440%20150%20L1440%20220%20L0%20220Z%27%20fill%3D%27%23a77e4d%27%20fill-opacity%3D%27.7%27%2F%3E%3Cpath%20d%3D%27M0%20200%20C320%20170%20600%20205%20900%20190%20C1100%20180%201300%20190%201440%20195%20L1440%20220%20L0%20220Z%27%20fill%3D%27%236d4f35%27%2F%3E%3C%2Fsvg%3E") center bottom / 100% 100% no-repeat; }
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -5;
  background: linear-gradient(180deg, #a8825a 0%, #86654a 45%, #5a4332 100%);
}
.grain {
  position: absolute;
  inset: 0;
  z-index: -4;
  opacity: 0.1;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.map {
  position: absolute;
  z-index: -2;
  right: calc(var(--edge) - min(9vw, 130px));
  top: 54%;
  width: min(60vw, 900px);
  aspect-ratio: 880 / 1010;
  transform: translateY(-50%);
  perspective: 1700px;
  perspective-origin: 50% 40%;
  pointer-events: none;
}
.map-tilt {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 42deg)) rotateZ(var(--rz, -9deg));
}
.mlayer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  transform: translateZ(calc(var(--k, 0) * var(--gap, 9px)));
  filter: drop-shadow(0 8px 8px rgba(0, 0, 0, 0.42));
}
.map-tilt.live { transition: transform 0.25s ease-out; }
.mlayer.ground { filter: none; }
/* load-in: each layer settles down from above and fades in, bottom layer first, then the map stays still */
@keyframes drop {
  from { transform: translateZ(calc(var(--k, 0) * var(--gap, 9px) + 130px)); }
  to { transform: translateZ(calc(var(--k, 0) * var(--gap, 9px))); }
}
@keyframes softin { from { opacity: 0; } to { opacity: 1; } }
@keyframes imgin { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
/* lower layers carry their own copy of the dots and labels; keep them hidden until the stack has landed */
.dr { opacity: 0; animation: drshow 0.01s linear 2.5s forwards; }
@keyframes drshow { to { opacity: 1; } }
.mlayer {
  animation:
    drop 1.2s cubic-bezier(0.22, 0.75, 0.3, 1) calc(0.1s + var(--k, 0) * 0.1s) both,
    softin 0.55s ease-out calc(0.1s + var(--k, 0) * 0.1s) both;
}
.map-img { display: none; }
/* scroll cue: a faint arrow at the bottom of the hero that scrolls to the next section */
.scroll-cue {
  position: fixed;
  z-index: 15;
  left: 50%;
  bottom: 3.2rem;
  width: 2.8rem;
  height: 2.8rem;
  margin-left: -1.4rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(var(--sun), 0.35);
  border-radius: 50%;
  opacity: 0;
  transition: border-color 0.3s, background 0.3s;
}
.scroll-cue svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: 0.7; }
.scroll-cue.show { animation: cuein 0.9s ease forwards; }
.scroll-cue.show svg { animation: bob 2.4s ease-in-out 0.9s infinite; }
.scroll-cue:hover { background: rgba(var(--sun), 0.12); border-color: rgba(var(--sun), 0.7); }
.scroll-cue:hover svg { opacity: 1; }
.scroll-cue.gone { opacity: 0 !important; pointer-events: none; animation: none; transition: opacity 0.4s; }
@keyframes cuein { to { opacity: 0.85; } }
@keyframes bob { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }
.hero p.map-credit { position: absolute; z-index: 2; right: 1.4rem; bottom: calc(max(24%, 140px) * 0.237); transform: translateY(50%); max-width: none; margin: 0; display: flex; align-items: center; gap: 0.8rem; font-family: var(--sans, inherit); font-size: 0.62rem; line-height: 1; letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.6; transition: opacity 0.3s; }
.hero p.map-credit:hover { opacity: 1; }
.map-credit .mc-ar { font-family: "Amiri", serif; font-size: 0.95rem; letter-spacing: 0; text-transform: none; }
.map-credit span + span::before { content: "\b7"; margin-right: 0.8rem; }
.map-credit a { color: inherit; text-decoration: none; padding-bottom: 3px; border-bottom: 1px solid currentColor; }
.mlayer.float { filter: drop-shadow(0 16px 12px rgba(55, 25, 8, 0.42)); }
.map text {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  fill: #2a160b;
  paint-order: stroke;
  stroke: rgba(251, 233, 194, 0.85);
  stroke-width: 3px;
}

.map text.region { font-size: 15px; font-style: normal; font-weight: 600; letter-spacing: 0.1em; fill: #4a2a14; stroke-width: 3.5px; }
.map text.name { font-size: 54px; letter-spacing: 0.22em; font-style: normal; fill: #cfa970; stroke: none; opacity: 0.75; }
.hero-inner { position: relative; text-align: left; max-width: min(44vw, 640px); will-change: transform, opacity; }
.hero .brand {
  font-size: clamp(4.5rem, 11vw, 9rem);
  font-style: italic;
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.01em;
}
.hero .brand .big-j { font-size: 1.45em; line-height: 0.7; margin-inline-end: -0.04em; }
.hero .ar { font-size: clamp(2rem, 4vw, 2.8rem); margin: 1.1rem 0 1.25rem; line-height: 1.3; opacity: 0.95; }
.hero p { font-size: 1.4rem; max-width: min(36ch, 100%); margin: 0 0 1.9rem; }
.hero p strong { font-family: 'Montserrat', var(--sans); font-weight: 700; }

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 10rem 1.5rem 5rem;
  text-align: center;
  isolation: isolate;
  background:
    radial-gradient(circle at 80% 130px, rgba(255, 238, 196, 0.8), rgba(255, 214, 140, 0.3) 22%, transparent 52%),
    linear-gradient(180deg, #54402f 0%, #8f6e49 64%, #d9b887 100%);
}
.page-hero p { text-wrap: balance; max-width: 45ch; margin: 1rem auto 0; opacity: 0.95; font-size: 1.2rem; }

@media (max-width: 900px) {
  .scroll-cue { bottom: 3.8rem; }
  /* phones: the live 3d map is swapped for a pre-rendered picture of it (the 3d layers crash small browsers when pinch-zooming) */
  .map-tilt { display: none; }
  .map-img { animation: imgin 1s ease-out 0.15s both; }
  .map-img { display: block; position: absolute; left: -33.33%; top: 2.58%; width: 166.67%; height: auto; max-width: none; pointer-events: none; }
  .grain { display: none; }
  .hero-bg::after { height: 190px; min-height: 0; background-size: 80px 16px, auto 34%, auto 26%, 100% 100%; background-position: left bottom, 10% 48%, 94% 48%, center bottom; }
  header.scrolled { background: rgba(134, 101, 74, 0.75); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .hero p.map-credit { bottom: 47px; left: 0; right: 0; justify-content: center; white-space: nowrap; font-size: 0.55rem; letter-spacing: 0.14em; gap: 0.5rem; }
  .map-credit span + span::before { margin-right: 0.5rem; }
  .map-credit .mc-ar { font-size: 0.85rem; }
  .hero { display: flex; flex-direction: column; align-items: center; padding-top: 6rem; padding-bottom: 190px; min-height: 100svh; }
  .hero-bg::before { background: linear-gradient(180deg, rgba(58, 44, 33, 0.2) 0%, rgba(58, 44, 33, 0) 16%), radial-gradient(circle 520px at 80% 130px, #fff4cf 0, #ffe6a3 38px, rgba(255, 224, 150, 0.7) 42px, rgba(255, 214, 140, 0.4) 170px, rgba(255, 200, 120, 0) 520px), radial-gradient(circle 460px at 55% 58%, rgba(246, 205, 135, 0.45) 0%, rgba(246, 205, 135, 0) 100%); }
  .hero-inner { text-align: center; max-width: none; order: 1; }
  .hero p { margin-inline: auto; }
  .map { position: relative; top: auto; right: auto; transform: none; width: min(92vw, 520px); aspect-ratio: 405 / 310; margin-top: 0.5rem; order: 2; }
}

/* split sections */
.split { display: grid; grid-template-columns: 1fr 1fr; }
.panel {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 4.5vw, 4rem) clamp(1.5rem, 5vw, 4.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 1.5rem;
}
.panel.dark { background: var(--black); color: var(--cream); }
.panel.light {
  color: var(--ink);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 244, 214, 0.95), transparent 55%),
    var(--lime);
}
.panel.light .btn { background: var(--ink); color: var(--cream); }
.panel.light .btn:hover { background: #000; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); }
.panel.leaf { background: var(--leaf); color: var(--cream); }
.panel.dark.rust { background: #52261d; }
.panel.dark.rust::after { background: radial-gradient(circle, rgba(255, 190, 130, 0.26), transparent 65%); }
.panel.dark::after {
  content: "";
  position: absolute;
  top: -30%;
  right: -30%;
  width: 70%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255, 214, 140, 0.32), transparent 65%);
  pointer-events: none;
}


/* image placeholders: the backdrop is a pseudo-element so it can zoom on scroll */
.ph {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 2px;
  --bg:
    radial-gradient(circle at 30% 30%, rgba(241, 255, 209, 0.55), transparent 40%),
    radial-gradient(circle at 75% 70%, rgba(110, 160, 60, 0.7), transparent 50%),
    #2b4f1d;
}
.ph::before, .ph img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(var(--z, 1));
  will-change: transform;
}
.ph::before { content: ""; background: var(--bg); }
.ph::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(var(--sun), 0.28), transparent 45%);
  mix-blend-mode: screen;
  pointer-events: none;
}
.ph-note { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; padding: 0.8rem; text-align: center; pointer-events: none; }
.ph-note span { background: rgba(52, 40, 28, 0.6); color: var(--cream); font-family: var(--serif); font-style: italic; font-size: 1rem; line-height: 1.3; padding: 0.4rem 0.7rem; border-radius: 3px; max-width: 34ch; }
.ph.tall { aspect-ratio: auto; min-height: 100%; border-radius: 0; }
.ph.sun { --bg: radial-gradient(circle at 60% 40%, #f2c14e, transparent 45%), radial-gradient(circle at 30% 70%, #8a5a12, transparent 55%), #3a2b0c; }
.ph.sky { --bg: linear-gradient(160deg, #cfe3ee, #8fb4c9 55%, #d9c9b2); }
.ph.field { --bg: linear-gradient(180deg, #a8c4d6 0%, #a8c4d6 30%, #8a9a52 30%, #5f7a33 100%); }
.ph.dusk { --bg: linear-gradient(170deg, #f6c98a, #c76b4a 50%, #3b2230); }

.ph.tall { min-height: clamp(320px, 34vw, 480px); }
#who .panel { justify-content: flex-start; }
#who .panel.dark .ph { flex: 1; aspect-ratio: auto; min-height: 260px; }
.list { display: grid; gap: 1rem; width: 100%; }
.item { position: relative; border-radius: 2px; overflow: hidden; }
.item .ph { aspect-ratio: 2.8 / 1; }
.item .ph-note { place-items: start center; padding: 0.9rem; }
.item .ph-note span { font-size: 0.8rem; }
.item .txt { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 2.2rem 1.4rem 1.1rem; background: linear-gradient(to top, rgba(52, 40, 28, 0.82), rgba(52, 40, 28, 0)); color: var(--cream); }
.item h3 { font-size: 1.6rem; line-height: 1.1; }
.item p { font-size: 0.95rem; line-height: 1.45; margin-top: 0.15rem; }

/* inner pages */
.content { padding: clamp(3.5rem, 8vw, 6rem) 1.5rem; }
.content.brown { background: radial-gradient(circle at 10% -6%, rgba(255, 232, 175, 0.4), transparent 55%), linear-gradient(180deg, #86684a, #a5805a); }
.panel.sand { color: var(--ink); background: radial-gradient(circle at 100% 0%, rgba(255, 248, 225, 0.65), transparent 55%), #f2d49a; }
.panel.sand .btn { background: var(--ink); color: var(--cream); }
.panel.sand .btn:hover { background: #000; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); }
.content:not(.light) .card { border-color: rgba(var(--sun), 0.22); background: rgba(var(--sun), 0.05); }
.content.light {
  color: var(--ink);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 244, 214, 0.95), transparent 50%),
    var(--lime);
}
.wrap { width: min(960px, 100%); margin-inline: auto; }
.wrap.wide { width: min(1200px, 100%); }
.content .wrap { text-align: center; }
.content .wrap .lead { margin-inline: auto; text-wrap: balance; }
.content .wrap h2 + p { margin-inline: auto; max-width: 55ch; }
.content .wrap .amounts { margin-inline: auto; }
.content .wrap form { margin-inline: auto; text-align: left; }
.content .wrap form > .btn, .content .wrap form > button { justify-self: center; }
.cards { text-align: center; }
.prose p { max-width: 62ch; margin-inline: auto; }
.lead { font-size: 1.4rem; max-width: 55ch; }
.cards { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 2rem; }
.card { border: 1px solid rgba(37, 22, 12, 0.18); padding: 1.75rem; text-align: center; background: rgba(255, 249, 234, 0.45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.amounts { border: 0; padding: 0; margin: 1.75rem 0; display: grid; grid-template-columns: repeat(12, 1fr); gap: 0.75rem; max-width: 34rem; }
.amounts label { grid-column: span 3; }
.amounts label:nth-of-type(n+5) { grid-column: span 4; }
.amounts label.custom { grid-column: 1 / -1; }
.amounts input[type="radio"] { position: absolute; opacity: 0; width: 1px; height: 1px; padding: 0; pointer-events: none; }
.amounts label {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 0.7rem 0;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.amounts label:hover { transform: translateY(-2px); }
.amounts input:checked + label { background: var(--ink); color: var(--cream); }
.amounts input:focus-visible + label { outline: 2px solid var(--ink); outline-offset: 3px; }
.amounts .custom { gap: 0.25rem; padding: 0.7rem 1rem; cursor: text; }
.amounts .custom input { color: inherit; border: 0; background: transparent; padding: 0; min-width: 0; width: 7ch; text-align: left; font-weight: 500; border-radius: 0; -moz-appearance: textfield; appearance: textfield; }
.amounts .custom input::placeholder { color: inherit; opacity: 0.55; }
.amounts .custom input:focus { outline: 0; }
.amounts .custom input::-webkit-outer-spin-button, .amounts .custom input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.amounts .custom:focus-within, .amounts .custom:has(input:not(:placeholder-shown)) { background: var(--ink); color: var(--cream); }

form { display: grid; gap: 1.1rem; max-width: 600px; margin-top: 1.5rem; }
label { display: grid; gap: 0.35rem; font-size: 0.95rem; letter-spacing: 0.03em; }
input, textarea {
  font: inherit;
  color: var(--ink);
  background: rgba(255, 252, 244, 0.9);
  border: 1px solid #cdb78c;
  border-radius: 4px;
  padding: 0.8rem 0.9rem;
  width: 100%;
}
input:focus, textarea:focus { outline: 2px solid var(--ink); }
textarea { min-height: 160px; resize: vertical; }
.content.light .btn { background: var(--ink); color: var(--cream); justify-self: start; }

.notice {
  margin-top: 1.5rem;
  padding: 0.9rem 1.1rem;
  border-left: 3px solid #b8860b;
  background: rgba(184, 134, 11, 0.12);
  font-size: 0.95rem;
}

footer {
  background: #1a110b;
  border-top: 1px solid rgba(var(--sun), 0.15);
  padding: 3rem 1.5rem;
  font-size: 1rem;
}
footer .row { width: min(1280px, 100% - 2rem); margin-inline: auto; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.8rem; }
footer .row > div:nth-child(1) { order: 1; }
footer .row > div:nth-child(3) { order: 2; }
footer .row > div:nth-child(2) { order: 3; }
footer .row > div:nth-child(4) { order: 4; }
footer .row > div:first-child { font-family: var(--serif); font-size: 1.5rem; letter-spacing: 0.02em; }
footer a { text-decoration-color: rgba(var(--sun), 0.4); text-underline-offset: 4px; }
footer a:hover { text-decoration-color: currentColor; }
footer .row > div:last-child { font-size: 0.85rem; opacity: 0.6; margin-top: 0.4rem; }

/* scroll reveals (script.js adds .in) */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--d, 0s);
}
.js [data-reveal="zoom"] { transform: scale(0.92); }
.js [data-reveal="left"] { transform: translateX(-48px); }
.js [data-reveal="right"] { transform: translateX(48px); }
.js [data-reveal].in { opacity: 1; transform: none; }

@media (max-width: 760px) {
  html { font-size: 106.25%; }
  .hero p { font-size: 1.2rem; }
  .split { grid-template-columns: 1fr; }
  .ph.tall { min-height: 300px; }
  .item .ph { aspect-ratio: 16 / 9; }
  .item .ph-note { display: none; }
  nav ul { gap: 0.75rem; flex-wrap: nowrap; }
  nav li:first-child { display: none; }
  nav a { font-size: 0.86rem; letter-spacing: 0.02em; }
  nav a.btn { padding: 0.4rem 0.95rem; }
  .nav { padding: 0.9rem 0; flex-wrap: nowrap; }
  .logo { font-size: 1.45rem; gap: 0.4rem; }
  .logo span { font-size: 1.15rem; }
  footer { font-size: 0.9rem; }
  .hero, .page-hero { padding-top: 7rem; }
}

@media (prefers-reduced-motion: reduce) {
  .rays { animation: none; }
  .mlayer, .map-img { animation: none; }
  .scroll-cue { animation: none; opacity: 0.85; }
  .scroll-cue svg { animation: none; }
  .dr { opacity: 1; animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* long-form text pages */
.content:has(.prose) { padding-top: 2.5rem; padding-bottom: 4.5rem; }
.prose h2 { font-size: 1.9rem; margin: 2.5rem 0 0.6rem; }
.prose > :first-child { margin-top: 0; }
.prose a { text-underline-offset: 3px; }

/* page-to-page transition: a short crossfade, header stays put (browsers without support just navigate normally) */
@view-transition { navigation: auto; }
header { view-transition-name: site-header; }
::view-transition-group(root) { animation-duration: 0.35s; }
::view-transition-old(root) { animation: vt-out 0.2s ease both; }
::view-transition-new(root) { animation: vt-in 0.3s ease 0.05s both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* phones too short to fit the whole splash: the arrow would sit on the map, so hide it */
@media (max-width: 900px) and (max-height: 899px) { .scroll-cue { display: none; } }
