/* Amaanyivolt — "From the red earth to the sun"
   Layout: the page is a solar array — sections are panels, content sits in cells. */
:root {
  --night: #1B2632;
  --dusk: #2C3B4D;
  --cream: #EEE9DF;
  --oat: #C9C1B1;
  --earth: #A35139;
  --sun-c: #FFB162;
  --ember: #E07A3F;
  --sun: linear-gradient(90deg, var(--sun-c), var(--ember));
  --page: #E6E0D4;
  --cell: #F4F0E8;
  --line: #D6CEBF;
  --ink: #1B2632;
  --muted: #5B6470;
  --serif: "EB Garamond", "Noto Serif KR", Georgia, serif;
  --sans: Inter, "Noto Sans KR", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --gap: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 76px; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--page); line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.5rem, 5.6vw, 5rem); max-width: 16ch; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.7rem); max-width: 22ch; }
h3 { font-family: var(--sans); font-size: .98rem; font-weight: 600; letter-spacing: 0; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.frame { width: min(1360px, 100% - 2 * var(--gap)); margin-inline: auto; }
main.frame { display: flex; flex-direction: column; gap: var(--gap); padding: var(--gap) 0; }
.mono { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; }
.label { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--earth); margin-bottom: 1.1em; }

/* Brand mark */
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.sun-dot { width: 11px; height: 11px; border-radius: 50%; flex: none; display: inline-block; background: radial-gradient(circle at 38% 38%, var(--sun-c), var(--ember) 60%, var(--earth)); box-shadow: 0 0 16px rgba(255,177,98,.6); }
.sun-dot.sm { width: 8px; height: 8px; box-shadow: none; }
.sun-dot.lg { width: 64px; height: 64px; box-shadow: 0 0 60px rgba(255,177,98,.45); }
.wordmark { font-weight: 300; letter-spacing: .42em; font-size: .86rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; padding: 12px 18px; font-weight: 500; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; border: 1px solid transparent; transition: background .15s, color .15s, border-color .15s; }
.btn-light { background: #fff; color: var(--night); }
.btn-light:hover { background: var(--sun-c); }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--night); }
.btn-dark { background: var(--night); color: var(--cream); }
.btn-dark:hover { background: var(--earth); }

/* Cards & cells (the solar array) */
.cell-card { position: relative; overflow: hidden; }
.cells { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cell { background: var(--cell); padding: 28px 30px; position: relative; }
.cols-2 { grid-template-columns: 1fr 1.4fr; }
.cols-3 { grid-template-columns: 1.2fr 1fr 1fr; }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.span-4 { grid-column: 1 / -1; }
.cell-tall { min-height: 360px; display: flex; flex-direction: column; justify-content: space-between; }
.cell-tall h2 { margin-bottom: auto; }
#about .cell-tall:last-child p { max-width: 60ch; }
#about .cell-tall:last-child h2 { margin-bottom: 48px; }

/* Sticky bar */
.bar { position: fixed; inset: 0 0 auto 0; z-index: 30; background: rgba(230,224,212,.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); transform: translateY(-100%); transition: transform .3s ease; }
.bar.show { transform: none; }
.bar-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.bar nav { display: flex; align-items: center; gap: 22px; }
.bar nav a:not(.btn) { text-decoration: none; font-size: .82rem; color: var(--muted); }
.bar nav a:not(.btn):hover { color: var(--ink); }
.bar .btn { padding: 9px 14px; }
.lang { border: 1px solid currentColor; padding: 2px 9px; font-size: .74rem !important; }

/* HERO */
.hero { min-height: max(620px, calc(100svh - 2 * var(--gap))); color: #fff; background: var(--night) url("/media/hero-poster.jpg") center / cover; display: flex; flex-direction: column; padding: 26px 32px 30px; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.hero-video::-webkit-media-controls, .hero-video::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; }
.hero-shade { position: absolute; inset: 0; background:
  radial-gradient(640px 420px at 92% -6%, rgba(255,177,98,.45), rgba(224,122,63,.14) 45%, transparent 72%),
  radial-gradient(120% 60% at 25% 125%, rgba(163,81,57,.8), rgba(163,81,57,.25) 45%, transparent 70%),
  linear-gradient(90deg, rgba(27,38,50,.88) 0%, rgba(27,38,50,.6) 55%, rgba(27,38,50,.3) 100%); }
.panel-grid { position: absolute; inset: -40%; pointer-events: none;
  background-image:
    linear-gradient(rgba(238,233,223,.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(238,233,223,.16) 1px, transparent 1px),
    linear-gradient(rgba(238,233,223,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(238,233,223,.06) 1px, transparent 1px);
  background-size: 216px 216px, 216px 216px, 36px 36px, 36px 36px;
  transform: rotate(-21deg) skewX(-24deg);
  -webkit-mask-image: radial-gradient(70% 60% at 65% 45%, #000 20%, transparent 75%);
  mask-image: radial-gradient(70% 60% at 65% 45%, #000 20%, transparent 75%); }
.hero-top, .hero-stats, .hero-main { position: relative; z-index: 1; }
.hero-top { display: flex; justify-content: space-between; align-items: flex-start; }
.hero-nav { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.hero-nav a { text-decoration: none; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.hero-nav a:hover { opacity: 1; color: var(--sun-c); }
.hero-nav .lang { margin-top: 8px; opacity: .7; }
.hero-stats { margin: 28px 0 32px; display: flex; flex-direction: column; gap: 16px; }
.hero-stats dt { font-family: var(--serif); font-size: 1.5rem; line-height: 1; }
.hero-stats dd { margin: 6px 0 0; font-family: var(--mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.7); max-width: 34ch; }
.hero-main { margin-top: auto; }
.chip { display: inline-flex; align-items: center; gap: 9px; padding: 6px 12px; margin-top: 0; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 22px; }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 4.4vw, 4.1rem); max-width: 19ch; margin-bottom: 0; }
.hero-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-top: 22px; }
.lead { font-size: .92rem; color: rgba(255,255,255,.82); max-width: 46ch; margin: 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }

/* Services cells */
.val-head h2 { margin-bottom: 0; }
.svc { min-height: 260px; display: flex; flex-direction: column; }
.svc .idx { color: var(--muted); }
.svc svg { width: 28px; height: 28px; fill: none; stroke: var(--earth); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin: 22px 0 auto; }
.svc h3 { margin-top: 28px; }
.svc p { color: var(--muted); font-size: .9rem; margin: 0; }

/* Vision */
.vision { background: radial-gradient(90% 70% at 15% 115%, rgba(163,81,57,.6), transparent 60%), var(--night); color: #D7D0C4; padding: clamp(64px, 9vw, 130px) clamp(28px, 5vw, 72px); }
.grain { position: absolute; inset: 0; background-image: var(--grain); opacity: .07; mix-blend-mode: overlay; pointer-events: none; }
.orb { position: absolute; width: min(52vw, 680px); aspect-ratio: 1; right: -10%; top: -22%; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #FFC47F 0%, var(--sun-c) 22%, var(--ember) 48%, rgba(163,81,57,.55) 66%, transparent 72%); filter: blur(18px); opacity: .9; }
.vision-in { position: relative; }
.vision .label { color: var(--sun-c); }
.statement { font-size: clamp(2rem, 4.2vw, 3.5rem); max-width: 20ch; color: #fff; line-height: 1.12; margin-bottom: 56px; }
.vm { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; max-width: 900px; border-top: 1px solid rgba(255,255,255,.16); padding-top: 26px; }
.vm-k { color: var(--sun-c); margin-bottom: .6em; }

/* Staircase */
.stairs { grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(4, minmax(150px, auto)); }
.stair-head { grid-column: 1 / 3; grid-row: 1 / 3; display: flex; flex-direction: column; justify-content: flex-end; }
.stair-head p.muted { max-width: 42ch; margin: 0; }
.step { display: flex; flex-direction: column; justify-content: flex-end; background: #FBF8F2; }
.step .mono { color: var(--earth); margin-bottom: auto; }
.step h3 { margin: 18px 0 6px; }
.step p { color: var(--muted); font-size: .86rem; margin: 0; }
.s1 { grid-column: 1; grid-row: 4; }
.s2 { grid-column: 2; grid-row: 3; }
.s3 { grid-column: 3; grid-row: 2; }
.s4 { grid-column: 4; grid-row: 1; background: var(--sun); }
.s4 .mono, .s4 p { color: var(--night); }
.blank { background: var(--cell); }
.blank::after { content: ""; position: absolute; inset: 14px; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 24px 24px; opacity: .35; }

/* Why Africa: image + rising stat bars */
.why { min-height: 640px; color: #fff; padding: 40px clamp(28px, 4vw, 48px) 30px; display: flex; flex-direction: column; }
.why > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.why-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(27,38,50,.82), rgba(27,38,50,.35) 45%, rgba(27,38,50,.7)); }
.why-head, .bars, .source { position: relative; }
.why .label { color: var(--sun-c); }
.why h2 { color: #fff; }
.bars { margin-top: auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; align-items: end; }
.bar-card { background: var(--cream); color: var(--ink); padding: 18px 18px 16px; display: flex; flex-direction: column; justify-content: space-between; }
.bar-card .num { font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1; color: var(--earth); }
.bar-card p { font-size: .8rem; color: var(--muted); margin: 0; text-transform: uppercase; letter-spacing: .04em; }
.b-1 { height: 150px; } .b-2 { height: 200px; } .b-3 { height: 250px; } .b-4 { height: 300px; background: var(--sun); }
.b-4 .num, .b-4 p { color: var(--night); }
.source { margin: 16px 0 0; font-size: .6rem; color: rgba(255,255,255,.6); }

/* Presence map */
.presence { background: var(--night); color: #C9D3DF; padding: clamp(48px, 7vw, 96px) clamp(28px, 4vw, 56px); }
.presence-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 40px; }
.presence .label { color: var(--sun-c); }
.presence h2 { color: #fff; }
.presence-text { color: #AFBBCB; max-width: 48ch; }
.map { position: relative; }
.map img { width: 100%; height: auto; }
.pin { position: absolute; transform: translate(-50%, -50%); }
.pin::before { content: ""; position: absolute; width: 12px; height: 12px; left: -6px; top: -6px; border-radius: 50%; background: var(--sun-c); box-shadow: 0 0 18px rgba(255,177,98,.9); }
.pulse { position: absolute; width: 12px; height: 12px; left: -6px; top: -6px; border-radius: 50%; border: 1px solid var(--sun-c); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { from { transform: scale(1); opacity: .9; } to { transform: scale(5); opacity: 0; } }
.pin-label { position: absolute; left: 22px; top: -14px; white-space: nowrap; display: flex; flex-direction: column; gap: 2px; padding: 6px 12px 7px 14px; background: rgba(27,38,50,.85); border-left: 1px solid rgba(255,177,98,.6); }
.pin-left .pin-label { left: auto; right: 22px; padding: 6px 14px 7px 12px; border-left: 0; border-right: 1px solid rgba(255,177,98,.6); text-align: right; }
.pin-label strong { color: #fff; font-weight: 600; font-size: .9rem; }
.pin-label .mono { color: var(--sun-c); font-size: .68rem; }
.pin-label em { font-style: normal; color: #8E9BAD; font-size: .76rem; }
.map-list { display: none; list-style: none; padding: 0; margin: 24px 0 0; }
.map-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.12); color: #fff; }
.map-list .mono { color: var(--sun-c); width: 100%; padding-left: 19px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sun-c); box-shadow: 0 0 0 4px rgba(255,177,98,.18); }

/* Values */
.val { min-height: 220px; display: flex; flex-direction: column; }
.val h3 { margin-top: auto; }
.val p { color: var(--muted); font-size: .88rem; margin: 0; }

/* Standards */
.standards { background: var(--dusk); color: #DCE4EE; padding: clamp(48px, 6vw, 84px) clamp(28px, 4vw, 56px); display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; }
.standards .label { color: var(--sun-c); }
.standards h2 { color: #fff; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { padding: 16px 0 16px 34px; border-bottom: 1px solid rgba(255,255,255,.14); position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: 23px; width: 15px; height: 8px; border-left: 2px solid var(--sun-c); border-bottom: 2px solid var(--sun-c); transform: rotate(-45deg); }

/* Contact */
.contact-head { min-height: 340px; display: flex; flex-direction: column; justify-content: flex-end; }
.contact-info { display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; }
.contact-info a:not(.btn) { color: var(--ink); }
.small-label { color: var(--earth); }
.contact-img { padding: 0; }
.contact-img img { width: 100%; height: 100%; object-fit: cover; }

/* Band */
.band { height: clamp(240px, 32vw, 400px); display: flex; align-items: flex-end; padding: 0 clamp(28px, 4vw, 56px) 36px; }
.band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(27,38,50,.85), rgba(27,38,50,0) 65%); }
.band-text { position: relative; z-index: 1; color: #fff; font-family: var(--serif); font-size: clamp(1.6rem, 3.2vw, 2.5rem); margin: 0; }

/* Footer */
.footer { background: var(--night); color: #8E9BAD; padding: 36px 0 30px; font-size: .84rem; }
.footer-top { display: flex; justify-content: space-between; align-items: center; color: #fff; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-top .mono { color: var(--sun-c); }
.footer p { margin: 0 0 .4em; }
.small { font-size: .76rem; opacity: .8; }

/* Korean */
html:lang(ko) body { line-height: 1.8; word-break: keep-all; }
html:lang(ko) h1, html:lang(ko) h2 { line-height: 1.3; letter-spacing: -0.02em; font-weight: 600; }
html:lang(ko) h1 { max-width: 18ch; font-size: clamp(2.1rem, 4.6vw, 3.8rem); }
html:lang(ko) .statement { line-height: 1.35; max-width: 24ch; font-size: clamp(1.7rem, 3.2vw, 2.7rem); }
html:lang(ko) .label, html:lang(ko) .hero-nav a { letter-spacing: .06em; }

/* Responsive */
@media (max-width: 1080px) {
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .cols-3 { grid-template-columns: 1fr 1fr; }
  .contact-img { grid-column: 1 / -1; height: 240px; }
  .bar nav a:not(.btn):not(.lang) { display: none; }
  .presence-head, .standards { grid-template-columns: 1fr; gap: 24px; }
  .pin-label em { display: none; }
}
@media (max-width: 820px) {
  .cols-2 { grid-template-columns: 1fr; }
  .cell-tall { min-height: 0; gap: 28px; }
  .stairs { grid-template-columns: 1fr; grid-template-rows: none; }
  .stairs > * { grid-column: auto !important; grid-row: auto !important; }
  .blank { display: none; }
  .step { min-height: 150px; }
  .hero-bottom { flex-direction: column; align-items: flex-start; }
  .bars { grid-template-columns: 1fr 1fr; }
  .b-1, .b-2, .b-3, .b-4 { height: auto; min-height: 140px; }
  .vm { grid-template-columns: 1fr; gap: 18px; }
  .orb { width: 90vw; right: -40%; top: -10%; }
}
@media (max-width: 560px) {
  :root { --gap: 8px; }
  .cols-4, .cols-3 { grid-template-columns: 1fr; }
  .hero { padding: 20px 20px 24px; }
  .hero-nav a:not(.lang) { display: none; }
  .hero-nav .lang { margin-top: 0; }
  .hero-stats { flex-direction: row; flex-wrap: wrap; gap: 16px 22px; margin-top: 40px; }
  .hero-stats dd { max-width: 16ch; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .hero-cta { width: 100%; }
  .cell { padding: 24px 22px; }
  .pin-label { display: none; }
  .map-list { display: block; }
  .wordmark { font-size: .76rem; letter-spacing: .3em; }
  .bar nav { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .pulse { animation: none; }
  html { scroll-behavior: auto; }
  .bar { transition: none; }
}

/* Short laptop screens: stats in a row so the hero fits one screen */
@media (min-width: 821px) and (max-height: 900px) {
  .hero-stats { flex-direction: row; gap: 40px; margin: clamp(20px, 7vh, 72px) 0 28px; }
  .hero h1 { font-size: clamp(2.2rem, min(4.4vw, 6.4vh), 4.1rem); }
  .hero-stats dd { max-width: 22ch; }
  .hero-nav { flex-direction: row; gap: 22px; align-items: center; }
  .hero-nav .lang { margin-top: 0; }
}
