/* Amaanyivolt — "From the red earth to the sun"
   Two typefaces only: EB Garamond (headings, labels, menu) + Source Sans 3 (body). */
:root {
  --night: #1B2632;
  --dusk: #2C3B4D;
  --cream: #EEE9DF;
  --tint: #E6E0D4;
  --oat: #C9C1B1;
  --earth: #A35139;
  --sun-c: #FFB162;
  --ember: #E07A3F;
  --line: #D6CEBF;
  --ink: #1B2632;
  --muted: #5B6470;
  --serif: "EB Garamond", "Noto Serif KR", Georgia, serif;
  --sans: "Source Sans 3", "Noto Sans KR", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: clamp(20px, 5vw, 88px);
  --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");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-weight: 400; color: var(--ink); background: var(--cream); line-height: 1.65; font-size: 17px; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; margin: 0 0 .5em; letter-spacing: -0.005em; }
h1 { font-size: clamp(2.8rem, 6vw, 5.6rem); max-width: 16ch; }
h2 { font-size: clamp(2rem, 3.4vw, 3.1rem); max-width: 22ch; }
h3 { font-size: 1.45rem; line-height: 1.2; }
p { margin: 0 0 1em; }
.frame { width: 100%; padding-inline: var(--pad); }

/* Labels: Garamond small caps, the same voice as the menu */
.label { font-family: var(--serif); font-size: .9rem; letter-spacing: .18em; text-transform: uppercase; color: var(--earth); margin: 0 0 1.4em; }
.night .label, .page-hero .label, .vision .label { color: var(--sun-c); }

/* Brand */
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.mark { height: 30px; width: auto; flex: none; overflow: visible; }
.wordmark { font-family: var(--serif); font-weight: 400; letter-spacing: .38em; font-size: .95rem; }

/* Buttons & links */
.btn { display: inline-flex; align-items: center; text-decoration: none; font-family: var(--serif); font-size: .9rem; letter-spacing: .16em; text-transform: uppercase; transition: background .15s, color .15s; }
.btn-outline { border: 1px solid var(--sun-c); padding: 10px 18px; }
.btn-outline:hover { background: var(--sun-c); color: var(--night); }
.discover { display: inline-flex; align-items: center; gap: 16px; text-decoration: none; font-family: var(--serif); font-size: .92rem; letter-spacing: .18em; text-transform: uppercase; }
.discover .circle { width: 42px; height: 42px; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center; font-family: var(--sans); transition: background .2s, color .2s; }
.discover:hover .circle { background: currentColor; }
.discover:hover .circle { color: var(--night); background: #fff; }
.discover.dark:hover .circle { color: var(--cream); background: var(--night); }
.text-link { font-family: var(--serif); font-size: 1.1rem; text-decoration: none; border-bottom: 1px solid var(--earth); padding-bottom: 2px; }
.text-link:hover { color: var(--earth); }

/* Header */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 30; color: #fff; transition: background .25s, color .25s, border-color .25s; border-bottom: 1px solid transparent; }
.nav.solid { background: rgba(238,233,223,.95); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--ink); border-bottom-color: var(--line); }
.nav.solid .btn-outline { border-color: var(--earth); }
.nav-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 80px; }
.menu-btn { justify-self: start; background: none; border: 0; color: inherit; cursor: pointer; font-family: var(--serif); font-size: .92rem; letter-spacing: .2em; text-transform: uppercase; padding: 8px 0; }
.nav .brand { justify-self: center; }
.nav-right { display: flex; justify-content: flex-end; align-items: center; gap: 28px; }
.langs { display: flex; gap: 16px; font-family: var(--serif); font-size: .9rem; letter-spacing: .14em; }
.langs a { text-decoration: none; opacity: .55; padding-bottom: 2px; border-bottom: 1px solid transparent; }
.langs a.on { opacity: 1; border-bottom-color: var(--sun-c); }
.menu { position: fixed; inset: 0; z-index: 25; background: var(--night); color: var(--cream); display: flex; align-items: center; }
.menu[hidden] { display: none; }
.menu-in { display: flex; flex-direction: column; gap: 4px; }
.menu-in a { text-decoration: none; font-family: var(--serif); font-size: clamp(2.2rem, 5.4vw, 4rem); line-height: 1.25; }
.menu-in a:hover, .menu-in a[aria-current] { color: var(--sun-c); }
body.menu-open .nav { color: var(--cream); background: transparent; border-color: transparent; }

/* Home hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; overflow: hidden; background: var(--night) url("/media/hero-poster.jpg") center / cover; }
.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(120% 60% at 50% 125%, rgba(163,81,57,.7), rgba(163,81,57,.2) 45%, transparent 70%),
  linear-gradient(180deg, rgba(27,38,50,.55) 0%, rgba(27,38,50,.45) 50%, rgba(27,38,50,.8) 100%); }
.panel-grid { position: absolute; inset: -40%; pointer-events: none;
  background-image: linear-gradient(rgba(238,233,223,.14) 1px, transparent 1px), linear-gradient(90deg, rgba(238,233,223,.14) 1px, transparent 1px),
    linear-gradient(rgba(238,233,223,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(238,233,223,.05) 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 50% 45%, #000 15%, transparent 75%); mask-image: radial-gradient(70% 60% at 50% 45%, #000 15%, transparent 75%); }
.hero-in { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; padding: 120px var(--pad) 18vh; }
.hero h1 { max-width: 17ch; margin: 0 0 24px; }
.hero .lead { font-family: var(--serif); font-size: clamp(1.15rem, 1.6vw, 1.4rem); max-width: 34ch; margin: 0 0 42px; color: rgba(255,255,255,.88); }
.ghost-word { position: absolute; left: 50%; bottom: -0.28em; transform: translateX(-50%); pointer-events: none; white-space: nowrap;
  font-family: var(--serif); font-size: clamp(7rem, 20vw, 22rem); line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(238,233,223,.2); }

/* Inner page hero */
.page-hero { position: relative; min-height: 72svh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--night); }
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero .shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(27,38,50,.88), rgba(27,38,50,.35) 60%, rgba(27,38,50,.5)); }
.page-hero-in { position: relative; padding-top: 140px; padding-bottom: clamp(48px, 7vw, 96px); }
.page-hero h1 { margin-bottom: 18px; }
.page-hero .lead { font-family: var(--serif); font-size: clamp(1.15rem, 1.6vw, 1.4rem); max-width: 46ch; color: rgba(255,255,255,.86); margin: 0; }

/* Sections */
.section { position: relative; padding: clamp(80px, 11vw, 160px) 0; }
.tint { background: var(--tint); }
.night { background: var(--night); color: #C9D3DF; }
.night h2, .night h3 { color: #fff; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 110px); align-items: center; }
.split.top { align-items: start; grid-template-columns: 1fr 2fr; }
.statement { font-family: var(--serif); font-size: clamp(1.6rem, 2.6vw, 2.4rem); line-height: 1.3; max-width: 30ch; margin: 0 0 1.2em; }
.split.top .statement { margin: 0; }
.frame-img { margin: 0; }
.frame-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; margin-bottom: 56px; }
.head-row h2 { margin: 0; }
.side { max-width: 44ch; margin: 0; }
.night .side { color: #AFBBCB; }

/* Numbered columns */
.pillars, .svc { list-style: none; margin: 0; padding: 0; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; border-top: 1px solid var(--ink); }
.pillars li { padding-top: 28px; }
.num { display: block; font-family: var(--serif); font-size: 1rem; color: var(--earth); margin-bottom: 18px; letter-spacing: .08em; }
.pillars p, .grid4 p, .svc p { color: var(--muted); margin: 0; }
.svc { margin-top: 48px; border-top: 1px solid var(--ink); }
.svc li { display: grid; grid-template-columns: 80px 1fr 1.4fr; gap: 32px; align-items: baseline; padding: 32px 0; border-bottom: 1px solid var(--line); }
.svc .num { margin: 0; }
.svc h3 { margin: 0; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; margin-top: 48px; }
.grid4 > div { border-top: 1px solid var(--ink); padding-top: 24px; }
.steps .num { margin-bottom: 14px; }

/* Vision / mission */
.vision { overflow: hidden; background: radial-gradient(90% 70% at 15% 115%, rgba(163,81,57,.55), transparent 60%), var(--night); }
.orb { position: absolute; width: min(40vw, 560px); aspect-ratio: 1; right: -14%; top: -38%; 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: .85; }
.vm { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 110px); }
.vm-h { font-size: clamp(2.2rem, 4vw, 3.6rem); max-width: 14ch; }
.vm p { color: #D7D0C4; }
.vm-text { font-family: var(--serif); font-size: clamp(1.4rem, 2.2vw, 2rem); line-height: 1.35; color: #fff !important; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; margin-top: 56px; }
.stats > div { border-top: 1px solid var(--ink); padding-top: 22px; }
.big { display: block; font-family: var(--serif); font-size: clamp(3rem, 5.2vw, 4.6rem); line-height: 1; color: var(--earth); margin-bottom: 16px; }
.stats p { color: var(--muted); margin: 0; }
.source { margin: 40px 0 0; font-size: .85rem; color: var(--muted); }

/* Checks */
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { padding: 18px 0 18px 36px; border-bottom: 1px solid rgba(255,255,255,.14); position: relative; font-size: 1.05rem; }
.checks li::before { content: ""; position: absolute; left: 0; top: 26px; width: 15px; height: 8px; border-left: 2px solid var(--sun-c); border-bottom: 2px solid var(--sun-c); transform: rotate(-45deg); }

/* Map */
.map { position: relative; max-width: 1500px; margin-inline: auto; }
.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: -16px; white-space: nowrap; display: flex; flex-direction: column; gap: 1px; padding: 8px 14px; background: rgba(27,38,50,.88); border-left: 1px solid rgba(255,177,98,.6); }
.pin-left .pin-label { left: auto; right: 22px; border-left: 0; border-right: 1px solid rgba(255,177,98,.6); text-align: right; }
.pin-label strong { font-family: var(--serif); font-weight: 400; color: #fff; font-size: 1.1rem; }
.pin-label span { color: var(--sun-c); font-size: .8rem; }
.pin-label em { font-style: normal; color: #8E9BAD; font-size: .82rem; }
.map-list { display: none; list-style: none; padding: 0; margin: 24px 0 0; }
.map-list li { padding: 14px 0; border-top: 1px solid rgba(255,255,255,.12); color: #fff; }
.map-list span { display: block; color: var(--sun-c); font-size: .85rem; }

/* Band */
.band { position: relative; overflow: hidden; height: clamp(320px, 42vw, 620px); display: flex; align-items: flex-end; padding-bottom: 48px; }
.band.short { height: clamp(220px, 26vw, 380px); padding: 0; }
.band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(27,38,50,.8), rgba(27,38,50,0) 60%); }
.band-text { position: relative; z-index: 1; color: #fff; font-family: var(--serif); font-size: clamp(1.8rem, 3.6vw, 3rem); margin: 0; }

/* CTA */
.cta { padding: clamp(80px, 10vw, 140px) 0; text-align: center; }
.cta-in { display: flex; flex-direction: column; align-items: center; }
.cta h2 { max-width: 20ch; }
.cta p { color: var(--muted); max-width: 52ch; margin-bottom: 36px; }

/* Contact page */
.contact-page { padding: 180px 0 clamp(80px, 10vw, 140px); }
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.contact-page .lead { font-family: var(--serif); font-size: 1.35rem; color: var(--muted); max-width: 40ch; margin-bottom: 40px; }
.contact-list { margin: 0; }
.contact-list > div { border-top: 1px solid var(--ink); padding: 20px 0 26px; }
.contact-list dt { font-family: var(--serif); font-size: .9rem; letter-spacing: .16em; text-transform: uppercase; color: var(--earth); margin-bottom: 6px; }
.contact-list dd { margin: 0; font-size: 1.1rem; }
.page-contact .nav { color: var(--ink); background: rgba(238,233,223,.95); border-bottom-color: var(--line); }
.page-contact .nav .btn-outline { border-color: var(--earth); }

/* Footer */
.footer { background: var(--night); color: #8E9BAD; padding: 56px 0 36px; font-size: .92rem; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; color: #fff; padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer .mark { height: 34px; }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; font-family: var(--serif); font-size: 1rem; }
.footer-links a { text-decoration: none; color: #C9D3DF; }
.footer-links a:hover { color: var(--sun-c); }
.footer-grid { display: flex; flex-wrap: wrap; gap: 8px 40px; }
.footer-grid p { margin: 0; }
.footer-grid a { color: #C9D3DF; }
.small { font-size: .82rem; opacity: .75; margin-top: 18px; }

/* Korean */
html:lang(ko) body { line-height: 1.85; word-break: keep-all; font-size: 16px; }
html:lang(ko) h1, html:lang(ko) h2, html:lang(ko) h3, html:lang(ko) .statement, html:lang(ko) .vm-text { line-height: 1.35; letter-spacing: -0.02em; font-weight: 500; }
html:lang(ko) h1 { font-size: clamp(2.3rem, 4.8vw, 4.4rem); max-width: 18ch; }
html:lang(ko) .statement, html:lang(ko) .vm-text { font-size: clamp(1.4rem, 2.2vw, 2rem); max-width: 34ch; }
html:lang(ko) .menu-in a { font-weight: 500; }

/* Responsive */
@media (max-width: 1024px) {
  .grid4, .stats { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: 1fr; gap: 0; }
  .pillars li { padding: 24px 0; border-bottom: 1px solid var(--line); }
  .head-row { flex-direction: column; align-items: flex-start; gap: 20px; }
  .pin-label em { display: none; }
}
@media (max-width: 820px) {
  .split, .split.top, .vm, .contact-grid { grid-template-columns: 1fr; }
  .svc li { grid-template-columns: 48px 1fr; gap: 8px 16px; }
  .svc li p { grid-column: 2; }
  .orb { width: 90vw; right: -40%; top: -10%; }
}
@media (max-width: 640px) {
  :root { --pad: 20px; }
  body { font-size: 16px; }
  .nav-inner { grid-template-columns: auto 1fr auto; height: 68px; }
  .nav .brand .wordmark { display: none; }
  .nav-right { gap: 12px; }
  .langs { gap: 10px; font-size: .8rem; }
  .btn-outline { padding: 7px 10px; font-size: .74rem; letter-spacing: .1em; }
  .menu-btn { font-size: .82rem; }
  .grid4, .stats { grid-template-columns: 1fr; }
  .pin-label { display: none; }
  .map-list { display: block; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .contact-page { padding-top: 130px; }
}
@media (prefers-reduced-motion: reduce) {
  .pulse { animation: none; }
  html { scroll-behavior: auto; }
}

/* Team (text only) */
.team-page .group:first-child { margin-top: 0; }
.group { font-size: 1rem; font-family: var(--serif); letter-spacing: .18em; text-transform: uppercase; color: var(--earth); margin: 0 0 24px; }
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-bottom: 80px; }
.person { border-top: 1px solid var(--ink); padding-top: 24px; }
.person h3 { font-size: 1.8rem; margin-bottom: 4px; }
.person .role { font-family: var(--serif); font-style: italic; color: var(--earth); margin-bottom: 16px; }
.person p { color: var(--muted); }
.person .base { font-size: .9rem; margin: 0; }
@media (max-width: 1024px) { .people { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .people { grid-template-columns: 1fr; } }

/* AAFS-inspired touches */
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 28px; }
.hero .btn-outline { padding: 13px 22px; }
.hero .btn-outline:hover { color: var(--night); }
.name-block .statement em { font-style: italic; color: var(--earth); }
.contact-page h1 { max-width: 18ch; }
.name-block .statement { margin-bottom: 24px !important; }

/* Scroll effects: gentle fade-up reveal + slow image drift (disabled for reduced motion / no JS) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.band img, .page-hero > img { will-change: transform; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
.page-team .page-hero .shade { background: linear-gradient(0deg, rgba(27,38,50,.85), rgba(27,38,50,.1) 55%, rgba(27,38,50,.2)); }

/* ===== Sharp-image layout: photos are never stretched past their real size =====
   Page heroes: text on night, photo on the right half. Bands: framed, max 1260px. */
.page-hero { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; min-height: 76svh; }
.page-hero > img { position: relative; inset: auto; grid-column: 2; grid-row: 1; width: 100%; height: 100%; min-height: 76svh; object-fit: cover; transform: none !important; }
.page-hero .shade { display: none; }
.page-hero-in { grid-column: 1; grid-row: 1; align-self: end; padding-right: clamp(24px, 4vw, 64px); }
.page-what-we-do .page-hero { grid-template-columns: 1fr; }
.page-what-we-do .page-hero > img { position: absolute; inset: 0; grid-column: 1; min-height: 0; }
.page-what-we-do .page-hero .shade { display: block; }
.page-what-we-do .page-hero-in { position: relative; }

.band-wrap { padding: 0 var(--pad) clamp(64px, 8vw, 120px); }
.band { max-width: 1260px; margin-inline: auto; height: auto; aspect-ratio: 16 / 7; padding: 0 clamp(24px, 4vw, 56px) clamp(24px, 4vw, 48px); }
.band.short { aspect-ratio: 16 / 5; padding: 0; height: auto; }
.band { width: 100%; }
.band img { transform: none; }
.page-team .page-hero .shade { display: none; }

@media (max-width: 820px) {
  .page-hero { grid-template-columns: 1fr; min-height: 0; }
  .page-hero > img { grid-column: 1; grid-row: 1; min-height: 0; height: 46svh; }
  .page-hero-in { grid-row: 2; padding-top: 40px; padding-right: var(--pad); }
  .page-what-we-do .page-hero { min-height: 64svh; }
  .page-what-we-do .page-hero-in { grid-row: 1; padding-top: 140px; }
  .band { aspect-ratio: 4 / 3; }
  .band.short { aspect-ratio: 16 / 9; }
}
.page-hero::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 150px; z-index: 1; pointer-events: none; background: linear-gradient(rgba(27,38,50,.6), transparent); }
