@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;600;700&family=Noto+Serif+KR:wght@400;500;600&display=swap');
:root{--cream:#f4f1e9;--green:#193f36;--ink:#243b33;--muted:#8a9289;--gold:#b6c5a6}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--cream);color:var(--ink);font-family:'Noto Sans KR',sans-serif;-webkit-font-smoothing:antialiased}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible{outline:2px solid #b7c991;outline-offset:6px}header{height:102px;position:absolute;top:0;left:0;width:100%;padding:0 5.2%;display:flex;align-items:center;justify-content:space-between;z-index:2;color:var(--cream);border-bottom:1px solid #ffffff25}.brand{display:flex;align-items:center;gap:12px}.brand-mark{font-size:40px;color:#d5dfbb;font-weight:400}.brand small{display:block;font-size:9px;letter-spacing:2px;margin-bottom:4px}.brand strong{display:block;font-size:22px;letter-spacing:1px}nav{display:flex;gap:43px;font-size:13px}nav a{opacity:.82;transition:opacity .2s}nav a:hover{opacity:1}.edition{font-size:9px;letter-spacing:2px;opacity:.7}.hero{position:relative;min-height:760px;height:100svh;max-height:1150px;overflow:hidden;color:var(--cream)}.hero-image{position:absolute;inset:0;background:url('assets/hero.webp') center 58%/cover}.hero-shade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(13,29,25,.71),rgba(13,29,25,.16)),linear-gradient(0deg,rgba(10,24,20,.78),transparent 60%,rgba(13,29,25,.25))}.hero-content{position:relative;padding:0 9%;height:100%;min-height:760px;display:flex;justify-content:center;align-items:flex-start;flex-direction:column;padding-top:88px;padding-bottom:100px}.eyebrow{display:flex;align-items:center;gap:13px;font-size:10px;letter-spacing:3px;color:#d5ddc7;margin-bottom:34px}.eyebrow span{height:1px;width:28px;background:#d5ddc7}h1{font-family:'Noto Serif KR',serif;font-size:clamp(36px,4.2vw,66px);line-height:1.55;letter-spacing:-2.4px;font-weight:400;margin:0 0 27px;max-width:1000px}.hero-description{font-size:14px;line-height:2;letter-spacing:-.25px;opacity:.75;margin:0}.hero-link{margin-top:40px;padding-bottom:14px;display:flex;gap:80px;border-bottom:1px solid #ffffff6b;font-size:13px;align-items:center}.hero-link>span:last-child{font-size:21px}.hero-bottom{position:absolute;bottom:36px;left:5.2%;right:5.2%;display:flex;justify-content:space-between;font-size:9px;letter-spacing:2px;opacity:.65}.hero-bottom>span{display:flex;gap:15px;align-items:center}.hero-bottom i{width:25px;height:1px;background:currentColor}.hero-bottom a{margin-right:45%;display:flex;gap:20px}.side-caption{position:absolute;right:4%;top:43%;writing-mode:vertical-rl;font-size:9px;letter-spacing:3px;opacity:.6}.intro{padding:100px 9%;display:flex;justify-content:space-between;gap:60px}.section-kicker{font-size:9px;letter-spacing:2px;color:#7d8d80}h2{font-family:'Noto Serif KR',serif;font-size:34px;line-height:1.7;font-weight:500;letter-spacing:-1px;margin:22px 0 0}.intro-right{align-self:center;font-size:13px;line-height:2.1;color:#708074}.intro-right a{display:inline-block;margin-top:15px;color:var(--green);border-bottom:1px solid #aab6a7;padding-bottom:4px}footer{border-top:1px solid #243b3320;padding:30px 5.2% 110px;display:flex;justify-content:space-between;gap:20px;align-items:center;font-size:9px;letter-spacing:1px}footer p{font-size:11px;letter-spacing:0;color:#748074}.language-widget{position:fixed;right:32px;bottom:30px;z-index:10}.widget-bottom{display:flex;align-items:center;justify-content:flex-end;gap:18px}.widget-hint{font-size:11px;letter-spacing:.3px;color:white;text-shadow:0 1px 10px #000;background:#193f364d;padding:6px 10px;border-radius:20px;transition:opacity .25s}#language-toggle{border:1px solid #ffffff40;border-radius:40px;background:var(--cream);color:var(--green);display:flex;align-items:center;gap:13px;height:58px;padding:0 22px;box-shadow:0 6px 35px #0002;transition:transform .3s,background .3s;font-size:11px;letter-spacing:1px}#language-toggle:hover{transform:translateY(-3px);background:#fff}#language-toggle svg{width:24px;height:24px}.toggle-plus{font-size:19px;font-weight:400;transition:transform .3s}#language-toggle[aria-expanded=true] .toggle-plus{transform:rotate(45deg)}.language-panel{width:326px;margin-bottom:16px;padding:25px 23px 0;border:1px solid #ffffff80;border-radius:20px;background:var(--cream);box-shadow:0 16px 70px #071f2540;transform-origin:90% 100%;animation:panel-in .35s cubic-bezier(.22,1,.36,1)}.language-panel[hidden]{display:none}.panel-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:19px}.panel-heading h2{font:500 19px 'Noto Sans KR',sans-serif;letter-spacing:-.7px;margin-top:9px}.panel-heading .section-kicker{font-size:8px;letter-spacing:1.6px}.close{border:0;background:transparent;font-size:25px;color:#849083;width:36px;height:40px;margin-right:-9px}.language-options{display:grid;gap:5px}.language-options button{width:100%;display:flex;align-items:center;text-align:left;gap:15px;padding:12px;border:1px solid transparent;background:transparent;color:var(--ink);border-radius:10px;transition:background .2s}.language-options button:hover{background:#e5e9df}.language-options button[aria-pressed=true]{border-color:#b7c4b2;background:#e7ebe1}.language-symbol{width:34px;font:23px Georgia,serif;text-align:center}.language-options button>span:nth-child(2){font-size:13px;flex:1}.language-options small{display:block;font-size:9px;color:#7d897d;margin-top:2px}.check{opacity:0;font-size:13px}.language-options [aria-pressed=true] .check{opacity:1}.panel-note{border-top:1px solid #253b3315;margin-top:18px;padding:16px 0;display:flex;align-items:center;justify-content:center;gap:8px;font-size:10px;color:#8a9486}.note-dot{height:4px;width:4px;border-radius:50%;background:#8eaa7b}#transition{position:fixed;inset:0;z-index:100;pointer-events:none;visibility:hidden;clip-path:circle(0px at 90% 90%);color:var(--cream)}#transition.active{visibility:visible;pointer-events:auto}.iris{position:absolute;inset:0}.transition-message{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;align-items:center;opacity:0}.transition-orbit{font-size:40px;color:#cbd7ae;margin-bottom:27px;font-weight:400}.transition-kicker{font-size:9px;letter-spacing:4px;color:#b7c7b4}#greeting{font:400 clamp(56px,8vw,106px) 'Noto Serif KR',Georgia,serif;letter-spacing:-3px;margin:15px 0 27px}.language-journey{display:flex;align-items:center;gap:20px;font-size:11px;color:#c8d0c2}.journey-line{width:52px;height:1px;background:#a6b899;position:relative}.journey-line:after{content:'';position:absolute;right:0;top:-2px;width:5px;height:5px;border-top:1px solid #a6b899;border-right:1px solid #a6b899;transform:rotate(45deg)}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}@keyframes panel-in{from{opacity:0;transform:translateY(12px) scale(.96)}to{opacity:1;transform:none}}@media(min-width:1600px){.hero-content{padding-left:12%}}@media(max-width:800px){header{height:82px;padding:0 6%}nav{gap:20px;font-size:11px}.edition{display:none}.hero-content{padding-left:7%;padding-right:7%}.intro{padding:65px 7%;gap:35px}.intro-right br{display:none}.hero-bottom a{margin-right:38%}h1{font-size:42px}}@media(max-width:520px){header{height:78px}.brand-mark{font-size:32px}.brand small{font-size:7px;letter-spacing:1px}.brand strong{font-size:17px}nav a:not(:last-child){display:none}nav{font-size:11px}.hero{min-height:720px;height:100svh}.hero-content{min-height:720px;padding-top:95px;padding-bottom:125px}.eyebrow{font-size:7px;letter-spacing:1.5px;gap:9px;margin-bottom:26px}.eyebrow span{width:16px}h1{font-size:32px;letter-spacing:-1.7px;line-height:1.65;margin-bottom:22px}.hero-description{font-size:11px;line-height:2.1}.hero-link{margin-top:30px;font-size:11px;gap:60px}.hero-bottom{left:7%;bottom:105px;font-size:7px;letter-spacing:1px}.hero-bottom a{margin-right:0;font-size:0;gap:0}.hero-bottom a span{font-size:18px}.side-caption{display:none}.hero-image{background-position:57% center}.intro{flex-direction:column;gap:10px;padding:55px 7%}.intro h2{font-size:29px}.intro-right{align-self:stretch;font-size:12px}footer{align-items:flex-start;flex-direction:column;padding:28px 7% 130px;gap:5px}footer>span:last-child{display:none}.language-widget{right:20px;bottom:max(20px,env(safe-area-inset-bottom))}.language-panel{width:min(326px,calc(100vw - 40px));padding:23px 20px 0}#language-toggle{height:54px;padding:0 18px;gap:11px}.widget-hint{font-size:10px}.widget-bottom{gap:8px}.transition-kicker{font-size:8px;letter-spacing:3px}#greeting{font-size:57px;letter-spacing:-2px}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* Translation theme: change --translation-color for each site's brand. */
:root {
  --translation-color: #376dcc;
  --translation-on-color: #fff;
  --translation-detail: #f0f5ff;
  --translation-surface: #f8faff;
  --translation-ink: color-mix(in srgb, var(--translation-color) 55%, #10233f);
  --translation-tint: color-mix(in srgb, var(--translation-color) 12%, white);
  --translation-border: color-mix(in srgb, var(--translation-color) 42%, white);
}
.transition-fill { fill: var(--translation-color); }
#transition, .transition-orbit { color: var(--translation-on-color); }
.transition-kicker, .language-journey { color: var(--translation-detail); }
.journey-line { background: var(--translation-detail); }
.journey-line:after { border-color: var(--translation-detail); }
#language-toggle { background: var(--translation-surface); color: var(--translation-ink); }
.language-panel { background: var(--translation-surface); color: var(--translation-ink); }
.language-options button { color: var(--translation-ink); }
.language-options button:hover,
.language-options button[aria-pressed=true] { background: var(--translation-tint); }
.language-options button[aria-pressed=true] { border-color: var(--translation-border); }
.language-widget .section-kicker, .language-options small, .panel-note, .close { color: #526680; }
.panel-note { border-color: var(--translation-border); }
.note-dot { background: var(--translation-color); }
.widget-hint { background: #102b5099; }
.language-widget button:focus-visible { outline-color: var(--translation-color); }

/* Keep translation status and language names readable during the transition. */
.transition-kicker {
  font-size: clamp(18px, 1.5vw, 24px);
  font-weight: 500;
  letter-spacing: .06em;
  line-height: 1.5;
}
.language-journey {
  font-size: clamp(17px, 1.4vw, 22px);
  font-weight: 500;
  line-height: 1.5;
  gap: 24px;
}
@media (max-width: 520px) {
  .language-journey { gap: 18px; }
  .journey-line { width: 40px; }
}

/* Ten languages, with a stationary, scrollable menu on smaller screens. */
.language-panel { width: 440px; max-width: calc(100vw - 55px); max-height: calc(100dvh - 125px); overflow-y: auto; overscroll-behavior: contain; animation: none; }
.language-options { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
.language-options button { gap: 9px; padding: 12px 8px; min-height: 65px; }
.language-options button>span:nth-child(2) { font-size: 16px; min-width: 0; }
.language-options small { font-size: 11px; }
.language-symbol { width: 26px; flex-shrink: 0; }
.gentle-setting { display: flex; align-items: center; gap: 9px; min-height: 46px; margin-top: 12px; font-size: 12px; cursor: pointer; }
.gentle-setting input { width: 18px; height: 18px; accent-color: var(--translation-color); }
.panel-note { margin-top: 4px; }
.close { min-width: 44px; height: 44px; }
#greeting { max-width: calc(100vw - 40px); text-align: center; font-size: clamp(32px,6.4vw,96px); overflow-wrap: anywhere; letter-spacing: -.04em; }
[dir=rtl] .hero-content { align-items: flex-start; }
[dir=rtl] .hero-description, [dir=rtl] h1 { text-align: right; }
@media(max-width:520px) {
 .language-panel { padding: 20px 14px 0; }
 .language-options button { gap: 6px; padding: 10px 6px; }
 .language-options button>span:nth-child(2) { font-size: 14px; }
 .language-symbol { width: 20px; font-size: 21px; }
 .check { font-size: 10px; }
}

/* A quiet pool of light gives the blue screen depth without moving the scene. */
.transition-message { background: radial-gradient(ellipse at 50% 46%, #ffffff16, transparent 58%); }
.journey-line { transform-origin: left center; }

/* Motion comparison controls are part of this sample, not the church content. */
.motion-lab { position: fixed; z-index: 9; left: 24px; bottom: 24px; width: 380px; max-width: calc(100vw - 48px); background: #f8fafff5; color: #27466c; border: 1px solid #fff9; border-radius: 18px; box-shadow: 0 12px 45px #102b5030; }
.motion-lab summary { list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 54px; padding: 0 20px; font-size: 14px; font-weight: 600; cursor: pointer; }
.motion-lab summary::-webkit-details-marker { display:none; }
.motion-lab summary small { margin-left: 10px; font-size: 9px; letter-spacing: 1.3px; color: #6a7f99; }
.lab-chevron { transition: transform .2s; }.motion-lab[open] .lab-chevron { transform: rotate(180deg); }
.lab-content { padding: 0 14px 14px; max-height: calc(100dvh - 200px); overflow-y: auto; }
.lab-content fieldset { padding: 0; border: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lab-content label { display: flex; align-items: flex-start; gap: 7px; padding: 12px 9px; border: 1px solid #dfe6f0; border-radius: 10px; cursor: pointer; }
.lab-content label:has(input:checked) { background: #e5eeff; border-color: var(--translation-color); }
.lab-content input { accent-color: var(--translation-color); margin: 3px 0 0; flex-shrink: 0; }
.lab-content b { display: block; font-size: 12px; font-weight: 600; }.lab-content small { display: block; font-size: 10px; line-height: 1.6; margin-top: 4px; color: #667991; word-break: keep-all; }
#replay-motion { width: 100%; min-height: 44px; margin-top: 12px; border: 0; border-radius: 9px; background: #244f94; color: white; padding: 0 15px; display: flex; align-items: center; justify-content: space-between; font-size: 12px; }
.lab-content p { text-align: center; font-size: 10px; color: #667991; margin: 9px 0 0; }
.curtain { display: none; position: absolute; top: 0; bottom: 0; width: calc(50% + 1px); background: var(--translation-color); }
.curtain-left { left: 0; }.curtain-right { right: 0; }
#transition[data-motion=curtain] .iris { display: none; }
#transition[data-motion=curtain] .curtain { display: block; }
#transition[data-motion=curtain] .transition-message { background: none; }
@media(max-width:520px) {
 .motion-lab { left: 20px; bottom: 88px; width: calc(100% - 40px); max-width: none; }
 .motion-lab summary { padding: 0 15px; min-height: 48px; }
 .lab-content { padding: 0 10px 10px; }
 .lab-content label { padding: 10px 7px; gap: 5px; }
 .lab-content b { font-size: 11px; }
}

/* Layered diagonal wipe: independent color planes and a stationary text layer. */
:root { --wipe-ivory: #eef2f8; --wipe-navy: #284e91; --wipe-mist: #b6cef1; }
.wipe-layers { display: none; position: absolute; inset: 0; overflow: hidden; }
.wipe-layer { position: absolute; top: 0; bottom: 0; left: -25vh; width: calc(100% + 50vh); transform: translateX(-110%) skewX(-12deg); will-change: transform; }
.wipe-ivory { background: var(--wipe-ivory); }
.wipe-navy { background: var(--wipe-navy); }
.wipe-mist { background: var(--wipe-mist); }
.wipe-blue { background: var(--translation-color); }
#transition[data-motion=wipe] .iris { display: none; }
#transition[data-motion=wipe] .wipe-layers { display: block; }
#transition[data-motion=wipe] .transition-message { background: none; z-index: 1; will-change: opacity; }
#transition[data-motion=wipe] #greeting { clip-path: none; }
#transition[data-motion=wipe] .transition-orbit { transform: none; }




/* Symmetric geometry keeps the visible star centered throughout its turn. */
.transition-orbit { display: block; width: 44px; height: 44px; flex: 0 0 44px; line-height: 0; transform-origin: 50% 50%; }
.transition-orbit svg { display: block; width: 100%; height: 100%; }

/* Language picker matches the supplied navy-and-white reference. */
.language-widget { right: 32px; bottom: 24px; }
.language-panel { width: 522px; max-width: calc(100vw - 48px); max-height: calc(100dvh - 126px); padding: 0; margin-bottom: 14px; background: #fff; color: #080a0b; border: 0; border-radius: 30px; box-shadow: 0 25px 55px #0003; font-family: Arial,'Noto Sans KR',sans-serif; }
.panel-heading { margin: 0; padding: 0 24px; height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #1d3246; color: #fff; position: sticky; top: 0; z-index: 1; }
.panel-heading h2 { margin: 0; font: 700 28px Arial,'Noto Sans KR',sans-serif; letter-spacing: -.6px; white-space: nowrap; }
.panel-heading h2 span { margin-left: 12px; color: #d5dde6; font-size: 20px; letter-spacing: -.3px; }
.panel-heading .close { padding: 10px; margin: 0; flex: 0 0 42px; min-width: 42px; width: 42px; height: 42px; border-radius: 50%; color: #fff; background: #ffffff29; display: grid; place-items: center; }
.close svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.language-options { padding: 20px; gap: 8px 10px; }
.language-options button { padding: 15px 17px; min-height: 96px; gap: 14px; border-radius: 16px; color: #07090b; align-items: center; }
.language-options button>span:nth-child(2) { font: 700 28px/1.2 Arial,'Noto Sans KR',sans-serif; }
.language-options button[data-lang=mn]>span { font-family: Georgia,'Times New Roman',serif; }
.language-options small { color: #6a788b; font: 400 18px/1.3 Arial,sans-serif; letter-spacing: 1px; margin-top: 2px; }
.language-flag { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 50%; object-fit: fill; box-shadow: 0 0 0 1px #0000000a; }
.language-options button:hover { background: #f6f7f9; }
.language-options button[aria-pressed=true] { border-color: #1d3246; background: #f4f5f7; }
#language-toggle { width: 82px; height: 82px; padding: 4px; border: 4px solid #ba9145; background: #f8fafb; border-radius: 50%; gap: 0; justify-content: center; box-shadow: none; }
#language-toggle svg { width: 68px; height: 68px; flex-shrink: 0; }
@media(max-width:600px) {
 .language-widget { right: 18px; bottom: max(18px,env(safe-area-inset-bottom)); }
 .language-panel { width: calc(100vw - 51px); max-width: none; border-radius: 24px; max-height: calc(100dvh - 115px); }
 .panel-heading { height: 66px; padding: 0 17px; }
 .panel-heading h2 { font-size: 22px; }
 .panel-heading h2 span { font-size: 15px; margin-left: 7px; }
 .panel-heading .close { flex-basis: 38px; min-width: 38px; width: 38px; height: 38px; padding: 8px; }
 .language-options { padding: 12px; gap: 5px; }
 .language-options button { min-height: 77px; padding: 10px 8px; gap: 9px; border-radius: 12px; }
 .language-options button>span:nth-child(2) { font-size: 18px; }
 .language-options small { font-size: 12px; letter-spacing: .7px; }
 .language-flag { flex-basis: 36px; width: 36px; height: 36px; }
 #language-toggle { width: 68px; height: 68px; border-width: 3px; padding: 3px; }
 #language-toggle svg { width: 56px; height: 56px; }
}
@media(max-width:375px) {
 .language-options { padding: 10px; gap: 4px; }
 .language-options button { padding: 10px 6px; gap: 7px; }
 .language-options button>span:nth-child(2) { font-size: 16px; }
 .language-flag { flex-basis: 33px; width: 33px; height: 33px; }
}


body:has(#language-panel:not([hidden])) #motion-lab { visibility: hidden; }


/* Pair the rotating star with the target language above the greeting. */
.transition-heading { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 22px; }
.transition-heading .transition-orbit { margin-bottom: 0; }
.transition-heading .language-journey { line-height: 1.4; }
.transition-message #greeting { margin: 0; }
@media(max-width:520px) { .transition-heading { gap: 12px; margin-bottom: 18px; } }

/* Center the full star + language group, not the star by itself. */
.transition-message { text-align: center; }
.transition-heading { width: max-content; max-width: calc(100% - 40px); flex: none; align-self: center; margin-inline: auto; direction: ltr; }
.transition-heading .language-journey { display: block; margin: 0; padding: 0; }
.transition-heading #to-language { display: block; line-height: 1.2; }
.transition-message #greeting { align-self: center; text-align: center; line-height: 1.35; }
.transition-message.text-ready #to-language { animation: language-breathe 1.4s ease-in-out infinite; }
@keyframes language-breathe { 0%,100% { opacity: 1; } 50% { opacity: .48; } }
@media(prefers-reduced-motion:reduce) { .transition-message.text-ready #to-language { animation: none !important; } }

/* Optical alignment compensates for the greeting's trailing punctuation. */
.transition-heading { position: relative; left: 0; }

/* Keep the language label secondary to the adaptively sized greeting. */
.transition-heading { margin-bottom: 18px; gap: 13px; }
.transition-heading .language-journey { font-size: clamp(16px, 1.3vw, 20px); }
@media(max-width:520px) {
 .transition-heading { margin-bottom: 12px; gap: 10px; }
}
