/* COR Mission — design language inspired by tour-kyrgyzstan.com:
   white paper, black grotesk caps, monospace captions, thin grid lines,
   red-orange corner marks and edge rulers, full-bleed photo hero. */
:root {
  --bg: #fbfaf7;
  --bg-alt: #f1efe9;
  --card: #f5f3ee;
  --ink: #141311;
  --ink-soft: #55524c;
  --ink-mute: #8f8b83;
  --line: #dcd8cf;
  --accent: #d4461c;
  --accent-2: #ef7a4f;
  --night: #121110;

  --display: "Archivo", "Noto Sans KR", "Helvetica Neue", Arial, sans-serif;
  --sans: "Archivo", "Noto Sans KR", "Helvetica Neue", Arial, sans-serif;
  --mono: "Fragment Mono", "Nanum Gothic Coding", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --radius: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--accent); color: #fff; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }

/* ---------- Type ---------- */
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6.6vw, 6rem); line-height: .95; }
h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); line-height: 1; }
h3 { font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.15; letter-spacing: 0; }
h1 em, h2 em { font-style: normal; }
h2 em { color: var(--accent); }
.lead { font-family: var(--mono); text-transform: uppercase; font-size: clamp(.8rem, 1vw, .9rem); line-height: 1.6; letter-spacing: .02em; max-width: 46ch; text-align: justify; }
.muted { color: var(--ink-soft); }

.label {
  display: inline-flex; align-items: center; gap: .7em;
  font-family: var(--mono); font-size: .72rem; font-weight: 400; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-soft);
}
.label::before { content: ""; width: 14px; height: 1px; background: var(--accent); }
.label.plain::before { display: none; }
.kr { font-family: "Noto Sans KR", sans-serif; letter-spacing: 0; }

/* ---------- Corner crop marks (the reference's orange brackets) ---------- */
.marks { position: relative; }
.marks::before, .marks::after {
  content: ""; position: absolute; inset: -6px; pointer-events: none; z-index: 2;
  --m: 12px; --c: var(--accent);
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--m) 1px no-repeat,
    linear-gradient(var(--c), var(--c)) top left / 1px var(--m) no-repeat,
    linear-gradient(var(--c), var(--c)) top right / var(--m) 1px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 1px var(--m) no-repeat;
}
.marks::after { transform: scaleY(-1); }

/* ---------- Buttons: [ BRACKETED ] ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  padding: .95em 1.4em;
  border: 1px solid var(--accent);
  background: var(--accent); color: #fff;
  font: 400 .78rem/1 var(--mono);
  letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: background .25s, color .25s, border-color .25s;
}
.btn::before { content: "["; }
.btn::after { content: "]"; }
.btn:hover { background: transparent; color: var(--accent); }
.btn .arrow { display: none; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--bg); }
.btn.light { background: #fff; color: var(--ink); border-color: #fff; }
.btn.light:hover { background: transparent; color: #fff; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: transparent; color: #fff;
  border-bottom: 1px solid transparent; transition: background .35s, color .35s, border-color .35s;
}
.nav.scrolled, .nav.solid { background: color-mix(in srgb, var(--bg) 94%, transparent); color: var(--ink); border-color: var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 18px; }
.brand { display: flex; flex-direction: column; line-height: .85; text-decoration: none; }
/* Logo: images/logo-mask.png used as a mask so it takes the current text color (white on the hero, ink once scrolled) */
.logo { display: block; aspect-ratio: 640 / 334; background: currentColor; -webkit-mask: url(../images/logo-mask.png) center / contain no-repeat; mask: url(../images/logo-mask.png) center / contain no-repeat; }
.brand { flex-direction: row; align-items: center; gap: 12px; }
.brand .logo { height: 38px; }
.brand-ko { font-family: "Noto Sans KR", var(--sans); font-weight: 700; font-size: .78rem; letter-spacing: -.01em; padding-left: 12px; border-left: 1px solid currentColor; line-height: 1.2; opacity: .85; }
@media (max-width: 420px) { .brand-ko { display: none; } }
.nav-links { display: flex; gap: 18px; list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav-links a { text-decoration: none; font-family: var(--mono); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; padding: 4px 0; white-space: nowrap; }
.nav-links a::before { content: "[ "; opacity: .55; transition: opacity .2s, color .2s; }
.nav-links a::after { content: " ]"; opacity: .55; transition: opacity .2s, color .2s; }
.nav-links a:hover::before, .nav-links a:hover::after,
.nav-links a[aria-current="page"]::before, .nav-links a[aria-current="page"]::after { opacity: 1; color: var(--accent); }
.nav .btn { padding: .75em 1.1em; font-size: .72rem; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: inherit; }
.menu-toggle span { display: block; width: 24px; height: 1.5px; background: currentColor; margin: 6px 0; transition: transform .3s; }

@media (max-width: 1080px) {
  .nav-links, .nav .btn { display: none; }
  .menu-toggle { display: block; }
  .nav.open { background: var(--bg); color: var(--ink); }
  .nav.open .nav-links {
    display: flex; flex-direction: column; gap: 20px; margin: 0;
    position: absolute; top: calc(64px + env(safe-area-inset-top, 0px)); left: 0; right: 0;
    padding: 28px max(var(--gutter), env(safe-area-inset-left, 0px)) 36px; background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .nav.open .nav-links a { font-size: .9rem; }
  .nav.open .menu-toggle span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav.open .menu-toggle span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
}

/* ---------- Edge rulers ---------- */
.ruler {
  position: fixed; top: 50%; z-index: 40; width: 18px; height: 120px; transform: translateY(-50%);
  pointer-events: none; color: var(--ink-mute);
  background: repeating-linear-gradient(to bottom, currentColor 0 1px, transparent 1px 8px);
  background-size: 8px 100%; background-repeat: no-repeat;
}
.ruler.left { left: max(10px, env(safe-area-inset-left, 0px)); background-position: left; }
.ruler.right { right: max(10px, env(safe-area-inset-right, 0px)); background-position: right; }
.ruler i { position: absolute; top: calc(var(--p, 0) * 100%); width: 18px; height: 1px; background: var(--accent); transition: top .15s linear; }
.ruler.left i { left: 0; } .ruler.right i { right: 0; }
@media (max-width: 760px) { .ruler { display: none; } }

/* ---------- Sections ---------- */
section { padding: clamp(72px, 10vw, 140px) 0; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 48px; align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head .label { grid-column: 1 / -1; }
.section-head > * { min-width: 0; }
@media (max-width: 800px) { .section-head { grid-template-columns: 1fr; } }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------- Hero: full-bleed photo ---------- */
.hero { position: relative; min-height: clamp(520px, 66svh, 760px); padding: 0; display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--night); }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 35%; animation: drift 28s ease-in-out infinite alternate; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,10,.55) 0%, rgba(10,10,10,.15) 35%, rgba(10,10,10,.35) 65%, rgba(10,10,10,.82) 100%); }
@keyframes drift { from { transform: scale(1.04) translate(0, 0); } to { transform: scale(1.14) translate(-2%, -1.5%); } }
.hero .wrap { position: relative; width: 100%; padding-bottom: clamp(36px, 6vw, 72px); padding-top: 120px; }
.hero-top { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: end; }
.hero-top > * { min-width: 0; }
.hero h1 { margin-top: 18px; max-width: 13ch; }
.hero .label { color: rgba(255,255,255,.8); }
.hero-side { display: flex; flex-direction: column; gap: 24px; justify-self: end; }
.hero-side .lead { color: rgba(255,255,255,.88); }
.hero-side .btns { display: flex; gap: 10px; flex-wrap: wrap; }
.hero .btn.ghost { color: #fff; border-color: rgba(255,255,255,.7); }
.hero .btn.ghost:hover { background: #fff; color: var(--ink); }
.hero-meta { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: clamp(32px, 5vw, 56px); padding-top: 16px; border-top: 1px solid rgba(255,255,255,.28); font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.75); }
.hero-meta b { color: var(--accent-2); font-weight: 400; }
@media (max-width: 900px) { .hero-top { grid-template-columns: 1fr; } .hero-side { justify-self: start; } }

/* ---------- Image / placeholder ---------- */
.ph { position: relative; width: 100%; height: 100%; min-height: 120px; background: var(--bg-alt); color: var(--ink-mute); display: flex; align-items: flex-end; padding: 14px; font: .66rem var(--mono); text-transform: uppercase; }
.media { position: relative; overflow: hidden; background: var(--bg-alt); }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1), filter .8s, opacity .8s; }

/* ---------- Mission ---------- */
.mission { text-align: center; }
.mission blockquote {
  margin: 28px auto 0; max-width: 22ch;
  font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.8rem, 4.4vw, 3.6rem); line-height: 1.02; text-wrap: balance;
}
.mission .verse { margin-top: 32px; color: var(--ink-soft); font-family: var(--mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }

/* ---------- About: thin-line grid with the halftone founders ---------- */
.about { background: var(--bg); }
.founder { display: grid; grid-template-columns: 1.15fr 1fr 1fr; border: 1px solid var(--line); }
.founder > * { min-width: 0; border-right: 1px solid var(--line); }
.founder > :last-child { border-right: 0; }
.founder .portrait { position: relative; display: flex; align-items: flex-end; background: var(--bg); padding: 24px 0 0; }
.founder .portrait img { width: 100%; height: auto; }
.founder .cell { padding: clamp(20px, 2.6vw, 32px); display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.founder .mono { font-family: var(--mono); text-transform: uppercase; font-size: .8rem; line-height: 1.65; letter-spacing: .02em; text-align: justify; margin: 0; }
.founder .sig { font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.founder-row { display: grid; grid-template-columns: repeat(7, 1fr); border: 1px solid var(--line); border-top: 0; }
.founder-row > div { padding: 18px 16px; border-right: 1px solid var(--line); min-width: 0; }
.founder-row > div:last-child { border-right: 0; }
.founder-row b { display: block; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1rem; }
.founder-row span { font-family: var(--mono); font-size: .68rem; text-transform: uppercase; color: var(--ink-mute); }
.founder-row .head { font-family: var(--mono); font-size: .7rem; text-transform: uppercase; color: var(--ink-soft); display: flex; align-items: center; }
@media (max-width: 980px) {
  .founder { grid-template-columns: 1fr 1fr; }
  .founder .portrait { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid var(--line); }
  .founder-row { grid-template-columns: repeat(4, 1fr); }
  .founder-row > div { border-bottom: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .founder { grid-template-columns: 1fr; }
  .founder > * { border-right: 0; border-bottom: 1px solid var(--line); }
  .founder > :last-child { border-bottom: 0; }
  .founder-row { grid-template-columns: 1fr 1fr; }
}
.about-why { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); margin-top: clamp(64px, 9vw, 120px); }
.about-why > * { min-width: 0; }
.about-why p { margin: 0 0 1.1em; max-width: 56ch; color: var(--ink-soft); }
@media (max-width: 800px) { .about-why { grid-template-columns: 1fr; } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); margin-top: clamp(48px, 7vw, 96px); }
.stat { padding: 24px 20px 20px; min-height: 210px; display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid var(--line); min-width: 0; }
.stat:last-child { border-right: 0; }
.stat b { font-family: var(--display); font-weight: 900; font-size: clamp(3rem, 5.6vw, 5rem); line-height: .9; letter-spacing: -.03em; }
.stat b small { color: var(--accent); }
.stat > span { font-family: var(--mono); font-size: .74rem; text-transform: uppercase; line-height: 1.55; color: var(--ink-soft); max-width: 28ch; }
@media (max-width: 900px) { .stats { grid-template-columns: 1fr 1fr; } .stat:nth-child(2) { border-right: 0; } .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); } .stat { min-height: 170px; } }

/* ---------- Ministry: the "tours" scroller ---------- */
.tour { display: grid; grid-template-columns: 1fr minmax(0, 360px) 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.tour > * { min-width: 0; }
.tour-list, .tour-text { position: sticky; top: calc(50vh - 90px); }
.tour-list { list-style: none; margin: 0; padding: 0; justify-self: end; width: min(100%, 260px); }
.tour-list li { display: flex; justify-content: space-between; gap: 16px; font-family: var(--mono); font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-mute); padding: 4px 0; transition: color .3s; }
.tour-list li.on { color: var(--accent); }
.tour-list a { text-decoration: none; }
.tour-imgs { display: flex; flex-direction: column; gap: 24px; padding: 6vh 0; }
.tour-imgs .media { aspect-ratio: 8/7; }
.tour-imgs .media img { opacity: .32; filter: saturate(.25) brightness(1.15); }
.tour-imgs figure { margin: 0; }
.tour-imgs figure.on .media img { opacity: 1; filter: none; }
.tour-imgs figure .marks::before, .tour-imgs figure .marks::after { opacity: 0; transition: opacity .4s; }
.tour-imgs figure.on .marks::before, .tour-imgs figure.on .marks::after { opacity: 1; }
.tour-imgs figcaption { display: none; }
.tour-text { max-width: 300px; }
.tour-text article { display: none; }
.tour-text article.on { display: block; animation: fadeUp .5s ease both; }
.tour-text .num { font-family: var(--mono); font-size: .72rem; color: var(--accent); }
.tour-text h3 { margin: 10px 0 12px; }
.tour-text p { margin: 0; font-family: var(--mono); font-size: .76rem; line-height: 1.65; text-transform: uppercase; text-align: justify; color: var(--ink-soft); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (max-width: 860px) {
  .tour { grid-template-columns: 1fr; }
  .tour-list, .tour-text { display: none; }
  .tour-imgs { padding: 0; gap: 40px; }
  .tour-imgs .media img { opacity: 1; filter: none; }
  .tour-imgs figcaption { display: block; padding-top: 14px; }
  .tour-imgs figcaption .num { font-family: var(--mono); font-size: .72rem; color: var(--accent); }
  .tour-imgs figcaption h3 { margin: 6px 0 8px; }
  .tour-imgs figcaption p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
}
.scholar { max-width: 62ch; margin: clamp(40px, 6vw, 72px) auto 0; text-align: center; font-family: var(--mono); font-size: .78rem; text-transform: uppercase; line-height: 1.65; color: var(--ink-soft); }
.scholar b { color: var(--accent); font-weight: 400; }

/* ---------- Stories ---------- */
.stories-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1px; padding: 1px; }
.story-card {
  grid-column: span 4; display: flex; flex-direction: column; gap: 14px; padding: 16px 16px 22px; min-width: 0; outline: 1px solid var(--line);
  text-decoration: none; cursor: pointer; background: var(--bg); border: 0; text-align: left; color: inherit; font: inherit;
}
.story-card.wide { grid-column: span 8; }
.story-card .media { height: clamp(240px, 28vw, 420px); }
.story-card .media img { filter: saturate(.5); }
.story-card:hover .media img { transform: scale(1.04); filter: none; }
.story-card .media .view {
  position: absolute; left: 12px; bottom: 12px; z-index: 2;
  background: var(--accent); color: #fff; padding: .6em .9em;
  font: .68rem var(--mono); text-transform: uppercase; letter-spacing: .06em;
  opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s;
}
.story-card .media .view::before { content: "[ "; } .story-card .media .view::after { content: " ]"; }
.story-card:hover .media .view, .story-card:focus-visible .media .view { opacity: 1; transform: none; }
.story-meta { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font: .66rem var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }
.tag::before { content: "["; } .tag::after { content: "]"; }
.story-meta .label { font-size: .66rem; }
.story-card h3 { font-size: clamp(1.05rem, 1.6vw, 1.35rem); }
.story-card p { margin: 0; color: var(--ink-soft); font-size: .92rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 900px) { .story-card, .story-card.wide { grid-column: span 6; } }
@media (max-width: 600px) { .story-card, .story-card.wide { grid-column: 1 / -1; } }

.filters { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 28px; }
.filters button { font: .76rem/1 var(--mono); text-transform: uppercase; letter-spacing: .04em; padding: 6px 0; border: 0; background: transparent; color: var(--ink-mute); cursor: pointer; }
.filters button::before { content: "[ "; } .filters button::after { content: " ]"; }
.filters button[aria-pressed="true"] { color: var(--accent); }

/* Photo wall (gallery) */
.wall { columns: 4 220px; column-gap: 14px; }
.wall figure { margin: 0 0 14px; break-inside: avoid; }
.wall .media { cursor: zoom-in; }
.wall .media img { filter: saturate(.55); }
.wall .media:hover img { filter: none; }
.wall figcaption { font: .7rem var(--mono); text-transform: uppercase; color: var(--ink-soft); padding: 8px 0 0; }

/* Story modal / lightbox */
dialog { border: 0; padding: 0; max-width: min(1000px, calc(100vw - 32px)); width: 100%; max-height: calc(100dvh - 32px); background: var(--bg); color: var(--ink); }
dialog::backdrop { background: rgba(12, 11, 10, .78); backdrop-filter: blur(4px); }
.modal { display: grid; grid-template-columns: 1fr 1fr; }
.modal .media { min-height: 320px; height: 100%; }
.modal-body { padding: clamp(24px, 4vw, 48px); overflow-y: auto; max-height: calc(100dvh - 32px); }
.modal-body h2 { font-size: clamp(1.5rem, 3vw, 2.3rem); margin: 16px 0 20px; }
.modal-body p { margin: 0 0 1em; }
.modal-close { position: absolute; top: 12px; right: 12px; z-index: 3; width: 40px; height: 40px; border: 1px solid var(--ink); background: var(--bg); color: var(--ink); font-size: 1.2rem; cursor: pointer; }
dialog.lightbox { background: transparent; max-width: min(1200px, calc(100vw - 32px)); }
dialog.lightbox img { max-height: calc(100dvh - 120px); width: auto; margin: 0 auto; }
dialog.lightbox p { color: #fff; text-align: center; margin: 14px 0 0; font: .78rem var(--mono); text-transform: uppercase; }
@media (max-width: 760px) { .modal { grid-template-columns: 1fr; } .modal .media { min-height: 220px; aspect-ratio: 4/3; } }

/* ---------- Pray (night section) ---------- */
.pray { background: var(--night); color: #f4f1ea; }
.pray .label { color: rgba(244,241,234,.7); }
.pray h2 em { color: var(--accent-2); }
.pray .lead { color: rgba(244,241,234,.8); }
.pray-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.pray-grid > * { min-width: 0; }
.pray-points { list-style: none; padding: 0; margin: 36px 0 0; counter-reset: p; }
.pray-points li { counter-increment: p; display: grid; grid-template-columns: 48px 1fr; padding: 16px 0; border-top: 1px solid rgba(244,241,234,.16); }
.pray-points li::before { content: "0" counter(p); font: .72rem var(--mono); color: var(--accent-2); padding-top: 4px; }
.form { position: relative; border: 1px solid rgba(244,241,234,.2); padding: clamp(22px, 3.5vw, 40px); }
.form h3 { margin-bottom: 8px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; min-width: 0; }
.field label { font: .68rem var(--mono); letter-spacing: .06em; text-transform: uppercase; opacity: .7; }
.field input, .field textarea, .field select { font: inherit; color: inherit; background: transparent; border: 0; border-bottom: 1px solid rgba(244,241,234,.35); padding: 10px 0; border-radius: 0; outline: none; min-width: 0; }
.field select option { color: var(--ink); }
.field input:focus, .field textarea:focus { border-color: var(--accent-2); }
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; font-size: .9rem; opacity: .85; }
.form .btn { margin-top: 26px; }
.form-msg { margin-top: 14px; font-size: .9rem; min-height: 1.2em; }
@media (max-width: 800px) { .pray-grid, .form .row { grid-template-columns: 1fr; } }

/* ---------- Give ---------- */
.give-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.give-card { padding: 28px 24px; display: flex; flex-direction: column; gap: 16px; min-height: 300px; border-right: 1px solid var(--line); min-width: 0; }
.give-card:last-child { border-right: 0; }
.give-card.feature { background: var(--accent); color: #fff; border-color: var(--accent); }
.give-card.feature .muted { color: rgba(255,255,255,.85); }
.give-card.feature .label::before { background: #fff; }
.give-card b { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(2.2rem, 3.6vw, 3rem); line-height: .95; }
.give-card p { margin: 0; }
.give-card p b { font: inherit; font-weight: 700; text-transform: none; }
.give-card .btn { margin-top: auto; align-self: flex-start; }
.give-card.feature .btn { background: #fff; color: var(--accent); border-color: #fff; }
.give-note { margin-top: 20px; font-size: .85rem; color: var(--ink-soft); }
@media (max-width: 900px) { .give-grid { grid-template-columns: 1fr; } .give-card { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); } }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; }
.faq-grid > * { min-width: 0; }
.hotline { font-family: var(--display); font-weight: 900; font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: -.02em; margin-top: 18px; }
.hotline a { text-decoration: none; color: var(--accent); }
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; padding: 22px 0; display: flex; justify-content: space-between; gap: 16px; font-family: var(--display); font-weight: 700; font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.25; text-transform: uppercase; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "[+]"; font: .8rem var(--mono); color: var(--accent); padding-top: 3px; }
details[open] summary::after { content: "[–]"; }
details p { margin: 0 0 24px; color: var(--ink-soft); max-width: 62ch; }
@media (max-width: 800px) { .faq-grid { grid-template-columns: 1fr; } }

/* ---------- Staff ---------- */
.staff { padding-top: 0; }
.staff-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.staff-grid div { display: flex; flex-direction: column; gap: 6px; font-size: 1rem; padding: 18px 18px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-width: 0; }
.staff-grid div:nth-child(3n) { border-right: 0; }
.staff-grid div:nth-last-child(-n+3) { border-bottom: 0; }
.staff-grid b { font: .68rem var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
@media (max-width: 760px) {
  .staff-grid { grid-template-columns: 1fr 1fr; }
  .staff-grid div, .staff-grid div:nth-child(3n) { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .staff-grid div:nth-child(2n) { border-right: 0; }
}

/* ---------- CTA + Footer ---------- */
.cta { text-align: center; padding: clamp(90px, 12vw, 170px) 0; }
.cta h2 { font-size: clamp(2.4rem, 7vw, 6rem); margin: 22px 0 40px; }
.cta .btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
footer { background: var(--night); color: #f4f1ea; padding: 72px 0 32px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.foot-grid > * { min-width: 0; }
.foot-grid h4 { margin: 0 0 16px; font: .68rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-2); }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .92rem; }
.foot-grid a { text-decoration: none; opacity: .85; overflow-wrap: anywhere; }
.foot-grid a:hover { opacity: 1; text-decoration: underline; }
.foot-brand .logo { width: min(260px, 70%); margin-bottom: 22px; color: #f4f1ea; }
.foot-brand b { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: .9; display: block; letter-spacing: -.02em; }
.foot-brand p { color: rgba(244,241,234,.6); max-width: 36ch; margin: 16px 0 0; font: .74rem/1.6 var(--mono); text-transform: uppercase; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 64px; padding-top: 24px; border-top: 1px solid #34312d; font: .7rem var(--mono); text-transform: uppercase; color: rgba(244,241,234,.5); }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* ---------- Page header (sub-pages) ---------- */
.page-head { padding: calc(64px + clamp(48px, 8vw, 110px)) 0 clamp(32px, 5vw, 64px); }
.page-head h1 { margin: 20px 0 28px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg img { animation: none; }
  html { scroll-behavior: auto; }
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Language toggle (Korean default, English on html.en) ---------- */
html:not(.en) [lang="en"] { display: none !important; }
html.en [lang="ko"] { display: none !important; }
html:not(.en) body { font-family: "Noto Sans KR", var(--sans); line-height: 1.7; word-break: keep-all; overflow-wrap: break-word; }
html:not(.en) h1, html:not(.en) h2, html:not(.en) h3,
html:not(.en) .mission blockquote, html:not(.en) summary,
html:not(.en) .give-card b, html:not(.en) .founder-row b { font-family: "Noto Sans KR", var(--display); font-weight: 900; letter-spacing: -0.03em; }
html:not(.en) h1 { font-size: clamp(2.6rem, 7vw, 6.2rem); line-height: 1.08; }
html:not(.en) h2 { font-size: clamp(1.9rem, 4.2vw, 3.4rem); line-height: 1.18; }
html:not(.en) .mission blockquote { line-height: 1.3; font-size: clamp(1.5rem, 3.4vw, 2.7rem); max-width: 26ch; }
/* Korean mono captions: Nanum Gothic Coding keeps the typewriter feel; no justify (it gaps Hangul badly) */
html:not(.en) .lead, html:not(.en) .founder .mono, html:not(.en) .tour-text p, html:not(.en) .scholar { font-family: "Fragment Mono", "Nanum Gothic Coding", monospace; text-align: left; line-height: 1.85; font-size: clamp(.84rem, 1vw, .92rem); letter-spacing: 0; }
.lang-toggle { background: none; border: 1px solid currentColor; padding: .45em .8em; font: .72rem var(--mono); letter-spacing: .04em; cursor: pointer; color: inherit; opacity: .85; }
.lang-toggle:hover { color: var(--accent); opacity: 1; }
@media (max-width: 1080px) { .lang-toggle { margin-left: auto; } }

/* image fits */
.founder .portrait img, .tour-imgs .media img { width: 100%; }

/* ---- Give page: formal layout ---- */
.give-formal { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.give-formal > * { min-width: 0; }
.give-form { display: flex; flex-direction: column; gap: 18px; }
.give-form h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); }
.give-form p { margin: 0; max-width: 60ch; }
.give-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.zeffy { border: 1px solid var(--line); background: var(--card); }
.zeffy iframe { display: block; width: 100%; height: 1150px; border: 0; background: transparent; }
.zeffy-pending { padding: 32px 28px; display: flex; flex-direction: column; gap: 12px; }
.zeffy-pending b { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 1.4rem; }
.zeffy-pending p { margin: 0; color: var(--ink-soft); }
.zeffy-pending a { color: var(--accent); }

.cert { position: sticky; top: 88px; border: 1px solid var(--ink); outline: 1px solid var(--ink); outline-offset: 5px; padding: 30px 26px; background: var(--bg); display: flex; flex-direction: column; gap: 18px; }
.cert h3 { font-size: 1.35rem; margin: 0; }
.cert dl { margin: 0; display: grid; grid-template-columns: auto 1fr; border-top: 1px solid var(--line); }
.cert dt, .cert dd { margin: 0; padding: 11px 0; border-bottom: 1px solid var(--line); }
.cert dt { font-family: var(--mono); text-transform: uppercase; font-size: .7rem; letter-spacing: .06em; color: var(--ink-mute); padding-right: 18px; display: flex; align-items: center; }
.cert dd { font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.cert-note { margin: 0; font-size: .85rem; color: var(--ink-soft); }
.cert .btn { align-self: flex-start; }
@media (max-width: 900px) { .give-formal { grid-template-columns: 1fr; } .cert { position: static; } }

.ways { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.ways li { display: grid; grid-template-columns: 56px 1fr minmax(0, 300px); gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); align-items: start; }
.ways .n { font-family: var(--mono); font-size: .8rem; color: var(--accent); border: 1px solid var(--accent); width: 34px; height: 34px; display: grid; place-items: center; }
.ways h3 { margin: 0 0 10px; font-size: 1.4rem; }
.ways p { margin: 0; max-width: 62ch; }
.ways address, .ways-tag { font-style: normal; font-family: var(--mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; line-height: 1.6; justify-self: end; text-align: right; }
@media (max-width: 800px) { .ways li { grid-template-columns: 40px 1fr; } .ways address, .ways-tag { grid-column: 2; justify-self: start; text-align: left; } }
.tax-fine { margin-top: 22px; font-size: .8rem; color: var(--ink-mute); }

/* ---------- Giving best practices: impact menu, proof, trust, mobile bar ---------- */
.impact { list-style: none; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--ink); }
.impact li { border-right: 1px solid var(--ink); min-width: 0; }
.impact li:last-child { border-right: 0; }
.impact a { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 22px 20px; color: inherit; text-decoration: none; transition: background .2s, color .2s; }
.impact a:hover, .impact a:focus-visible { background: var(--accent); color: #fff; }
.impact b { font-family: var(--display); font-weight: 900; font-size: clamp(2rem, 3.4vw, 2.8rem); line-height: 1; }
.impact span { font-size: .92rem; line-height: 1.45; }
.impact.compact { margin: 4px 0; }
.impact.compact a { padding: 16px 14px; }
.impact.compact b { font-size: 1.6rem; }
.impact.compact span { font-size: .82rem; }
@media (max-width: 900px) { .impact { grid-template-columns: 1fr 1fr; } .impact li:nth-child(2) { border-right: 0; } .impact li:nth-child(-n+2) { border-bottom: 1px solid var(--ink); } }

.give-proof { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 4vw, 56px); margin: 0 0 28px; align-items: start; }
.give-proof > * { min-width: 0; }
.give-proof blockquote { margin: 0; padding-left: 22px; border-left: 3px solid var(--accent); }
.give-proof blockquote p { margin: 0 0 12px; font-family: var(--display); font-weight: 600; font-size: clamp(1.2rem, 2.2vw, 1.6rem); line-height: 1.35; }
.give-proof blockquote a { font: .78rem var(--mono); color: var(--ink-soft); }
.give-proof .monthly { display: flex; flex-direction: column; gap: 12px; }
.give-proof .monthly p { margin: 0; color: var(--ink-soft); }
.give-proof .monthly .btn { align-self: flex-start; }
@media (max-width: 900px) { .give-proof { grid-template-columns: 1fr; } }

.trust { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.trust li { display: flex; flex-direction: column; gap: 4px; padding: 16px 16px 0 0; min-width: 0; font-size: .85rem; color: var(--ink-soft); }
.trust b { font: .78rem var(--mono); letter-spacing: .04em; color: var(--ink); }
.trust a { color: var(--accent); }
@media (max-width: 900px) { .trust { grid-template-columns: 1fr 1fr; row-gap: 8px; } }

.mobile-give { display: none; }
@media (max-width: 900px) {
  .mobile-give { display: block; position: fixed; left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 60; padding: 14px; text-align: center; background: var(--accent); color: #fff; font: 700 .85rem var(--mono); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; box-shadow: 0 6px 24px rgba(0,0,0,.25); transform: translateY(160%); transition: transform .3s; }
  .mobile-give.show { transform: none; }
  body { padding-bottom: 76px; }
}
