/* ==========================================================================
   KICC Singapore — site styles (v3, "Two cities, one line")

   Seoul and Singapore at blue hour, joined by one live route line in the hero.
   Everything else stays quiet: Pretendard GOV and Inter, clear typographic hierarchy,
   generous space, full-bleed photography, and a radius that follows hierarchy
   (media 28px, cards 20px, controls pill).
   ========================================================================== */

:root {
  --night: #0a1a36;
  --night-2: #13264a;
  --ink: #16223a;
  --ink-2: #4b5770;
  --ink-3: #647085;
  --blue: #2a5bff;
  --blue-hover: #1d46d8;
  --blue-soft: #eaf0ff;
  --sky: #b3c8ff;
  --cloud: #f3f5f9;
  --cloud-2: #e9edf4;
  --line: #e3e8ef;
  --line-2: #cdd5e1;
  --white: #ffffff;
  --red: #ff5a5f;
  --green: #0f7f57;
  --green-soft: #e1f3ea;
  --amber: #8f5b00;
  --amber-soft: #fff1d4;

  --on-dark: rgba(255, 255, 255, 0.92);
  --on-dark-2: rgba(255, 255, 255, 0.68);
  --on-dark-line: rgba(255, 255, 255, 0.16);

  --font: "Inter", "Pretendard GOV Variable", "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lead: clamp(1.0625rem, 0.98rem + 0.4vw, 1.3125rem);
  --fs-h3: clamp(1.25rem, 1.1rem + 0.5vw, 1.5625rem);
  --fs-h2: clamp(2.125rem, 1.35rem + 2.8vw, 3.875rem);
  --fs-h1: clamp(2.75rem, 1.5rem + 4.2vw, 5.5rem);
  --fs-hero: clamp(2.75rem, 1.3rem + 5vw, 6.5rem);

  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 12px;
  --wrap: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(88px, 4rem + 6vw, 168px);
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 0.8, 0.2, 1);
}
@media (max-width: 720px) { :root { --header-h: 64px; --r-lg: 22px; --r-md: 16px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 20px); }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: var(--font); font-size: var(--fs-base); font-weight: 400; line-height: 1.7; letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-kerning: normal; font-optical-sizing: auto;
}
html[data-lang="ko"] body { line-height: 1.78; letter-spacing: -0.018em; }
:lang(ko) { word-break: keep-all; overflow-wrap: break-word; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.2; text-wrap: balance; }
p { margin: 0; }
p + p { margin-top: 1em; }
ul, ol { margin: 0; padding: 0; }
figure { margin: 0; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-hover); }
button { font: inherit; color: inherit; letter-spacing: inherit; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--blue-soft); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--night); color: var(--white); padding: 0.6rem 1rem; border-radius: 999px; }
.skip-link:focus { top: 1rem; }

/* Bilingual text: every translatable string exists twice with a lang attribute. */
html[data-lang="en"] body [lang="ko"]:not([data-always]),
html[data-lang="ko"] body [lang="en"]:not([data-always]) { display: none !important; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.text-link { font-weight: 600; color: var(--blue); display: inline-flex; align-items: center; gap: 0.4rem; }
.text-link:hover { text-decoration: underline; text-underline-offset: 0.25em; }

/* ---------- Buttons, chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 52px; padding: 0 1.6rem; border: 1px solid transparent; border-radius: 999px;
  font-size: var(--fs-base); font-weight: 600; line-height: 1; letter-spacing: -0.012em; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.btn svg { flex: none; }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-hover); color: var(--white); }
.btn-secondary { background: var(--white); color: var(--ink); border-color: var(--line-2); }
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }
.btn-white { background: var(--white); color: var(--night); }
.btn-white:hover { background: var(--cloud); color: var(--night); }
.btn-glass { background: rgba(255, 255, 255, 0.1); color: var(--white); border-color: rgba(255, 255, 255, 0.3); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.btn-glass:hover { background: rgba(255, 255, 255, 0.18); color: var(--white); border-color: rgba(255, 255, 255, 0.55); }
.btn-sm { min-height: 42px; padding: 0 1.15rem; font-size: var(--fs-sm); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.status { display: inline-flex; align-items: center; gap: 0.4em; padding: 0.3em 0.75em; border-radius: 999px; font-size: var(--fs-xs); font-weight: 600; line-height: 1.2; white-space: nowrap; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-open { background: var(--green-soft); color: var(--green); }
.status-soon { background: var(--amber-soft); color: var(--amber); }
.status-closed { background: var(--cloud-2); color: var(--ink-3); }
.status-closed::before { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }
.status-ongoing { background: var(--blue-soft); color: var(--blue); }
.tag { font-size: var(--fs-xs); color: var(--ink-3); font-weight: 500; }
.file-type { display: inline-grid; place-items: center; min-width: 3.4em; height: 1.9em; padding: 0 0.5em; border-radius: 8px; background: var(--cloud-2); font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.02em; color: var(--ink-2); }

/* ---------- Masthead & header ---------- */
.masthead { position: relative; z-index: 60; background: var(--night); color: var(--on-dark-2); font-size: var(--fs-xs); }
.masthead-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 34px; }
.masthead p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.masthead a { color: var(--white); flex: none; }

.site-header {
  position: sticky; top: 0; z-index: 50; color: var(--ink);
  background: rgba(255, 255, 255, 0.97); -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px);
  box-shadow: 0 1px 0 var(--line);
  transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
}
.has-hero .site-header:not(.is-solid) { background: transparent; color: var(--white); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12); -webkit-backdrop-filter: none; backdrop-filter: none; }
.has-hero main > :first-child { margin-top: calc(-1 * var(--header-h)); }
.header-inner { display: flex; align-items: center; gap: 2rem; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 0.9rem; color: inherit; flex: none; }
.brand:hover { color: inherit; }
.brand-mark { font-size: 1.625rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.brand-name { display: flex; flex-direction: column; padding-left: 0.9rem; border-left: 1px solid currentColor; border-left-color: color-mix(in srgb, currentColor 25%, transparent); font-size: 0.78rem; line-height: 1.3; font-weight: 600; }
.brand-name .brand-city { opacity: 0.6; font-weight: 500; }

.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; gap: 0.25rem; list-style: none; }
.primary-nav a { display: block; padding: 0.55rem 0.95rem; border-radius: 999px; color: inherit; font-size: var(--fs-sm); font-weight: 600; white-space: nowrap; opacity: 0.86; transition: background-color 0.2s, opacity 0.2s; }
.primary-nav a:hover { opacity: 1; background: color-mix(in srgb, currentColor 8%, transparent); color: inherit; }
.primary-nav a[aria-current="page"] { opacity: 1; background: color-mix(in srgb, currentColor 10%, transparent); }

.header-tools { display: flex; align-items: center; gap: 0.35rem; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; color: inherit; }
.icon-btn:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.lang-switch { display: inline-flex; padding: 3px; border-radius: 999px; background: color-mix(in srgb, currentColor 9%, transparent); }
.lang-switch button { border: 0; background: transparent; cursor: pointer; padding: 0 0.8rem; min-height: 34px; border-radius: 999px; font-size: var(--fs-xs); font-weight: 600; color: inherit; opacity: 0.7; }
.lang-switch button[aria-pressed="true"] { opacity: 1; background: var(--white); color: var(--night); }
.menu-btn { display: none; }

@media (max-width: 1100px) {
  .menu-btn { display: inline-grid; }
  .header-inner { gap: 0.75rem; }
  .header-tools { margin-left: auto; }
  .primary-nav {
    position: fixed; inset: calc(var(--header-h)) 0 auto 0; margin: 0; display: none;
    background: var(--white); color: var(--ink); padding: 0.5rem var(--gutter) 1.75rem;
    max-height: calc(100vh - var(--header-h)); overflow: auto; box-shadow: 0 30px 60px -30px rgba(10, 26, 54, 0.35);
  }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; gap: 0; }
  .primary-nav li + li { border-top: 1px solid var(--line); }
  .primary-nav a { padding: 1.1rem 0.25rem; border-radius: 0; font-size: 1.375rem; font-weight: 600; letter-spacing: -0.03em; opacity: 1; }
  .primary-nav a:hover, .primary-nav a[aria-current="page"] { background: none; color: var(--blue); }
}
@media (max-width: 600px) {
  .brand-name { display: none; }
  .masthead p { white-space: normal; padding-block: 0.4rem; }
}

/* ---------- Search dialog ---------- */
.search-dialog { width: min(720px, calc(100% - 2rem)); margin-top: 12vh; padding: 2rem 2rem 2.25rem; border: 0; border-radius: var(--r-md); color: var(--ink); box-shadow: 0 40px 100px -30px rgba(10, 26, 54, 0.55); }
.search-dialog::backdrop { background: rgba(10, 26, 54, 0.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.search-form label { display: block; font-size: 1.5rem; font-weight: 400; letter-spacing: -0.03em; margin-bottom: 1.1rem; padding-right: 2.5rem; }
.search-row { display: flex; gap: 0.5rem; }
.search-row input { flex: 1; min-width: 0; }
.search-close { position: absolute; top: 1rem; right: 1rem; }

input[type="search"], input[type="text"], input[type="email"], select, textarea {
  font: inherit; color: var(--ink); background: var(--white);
  border: 1px solid var(--line-2); border-radius: var(--r-sm);
  min-height: 52px; padding: 0.7rem 1rem; width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}
textarea { min-height: 180px; resize: vertical; line-height: 1.6; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }

/* ---------- Sections & headings ---------- */
.section { padding-block: var(--section); }
.section-cloud { background: var(--cloud); }
.section-night { background: var(--night); color: var(--on-dark); }
.section-night .h2 { color: var(--white); }

.h2 { font-size: var(--fs-h2); font-weight: 700; line-height: 1.1; letter-spacing: -0.045em; color: var(--ink); }
html[data-lang="ko"] .h2 { font-weight: 700; line-height: 1.25; letter-spacing: -0.04em; }
.sec-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 1.25rem 4rem; align-items: end; margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); }
.sec-head p { color: var(--ink-2); font-size: var(--fs-lead); max-width: 30em; }
.sec-head .actions, .sec-head .text-link { justify-self: start; }
.section-night .sec-head p { color: var(--on-dark-2); }
@media (max-width: 860px) { .sec-head { grid-template-columns: 1fr; } }
.lead { font-size: var(--fs-lead); color: var(--ink-2); max-width: 34em; }

/* ---------- Home hero ---------- */
.hero { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: min(max(100svh, 700px), 1000px); background: var(--night); color: var(--white); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(10, 26, 54, 0.9) 0%, rgba(10, 26, 54, 0.62) 34%, rgba(10, 26, 54, 0.12) 64%, rgba(10, 26, 54, 0) 100%),
    linear-gradient(0deg, rgba(10, 26, 54, 0.9) 0%, rgba(10, 26, 54, 0.2) 36%, rgba(10, 26, 54, 0) 55%),
    linear-gradient(180deg, rgba(10, 26, 54, 0.55) 0%, rgba(10, 26, 54, 0) 22%);
}
.hero-inner { width: 100%; padding-top: calc(var(--header-h) + clamp(3rem, 9vh, 7rem)); padding-bottom: clamp(1.25rem, 3vh, 2.5rem); }
.lockup { display: flex; flex-direction: column; font-weight: 500; }
.lockup-en { order: 1; font-size: var(--fs-hero); font-weight: 500; line-height: 1.02; letter-spacing: -0.05em; }
.lockup-ko { order: 2; margin-top: clamp(1rem, 0.6rem + 1vw, 1.6rem); font-size: clamp(1.375rem, 0.95rem + 1.5vw, 2.5rem); font-weight: 400; line-height: 1.3; letter-spacing: -0.04em; color: var(--on-dark-2); }
html[data-lang="ko"] .lockup-ko { order: 1; margin-top: 0; font-size: calc(var(--fs-hero) * 0.92); font-weight: 500; line-height: 1.12; letter-spacing: -0.045em; color: var(--white); max-width: 10em; }
html[data-lang="ko"] .lockup-en { order: 2; margin-top: clamp(1rem, 0.6rem + 1vw, 1.6rem); font-size: clamp(1.375rem, 0.95rem + 1.5vw, 2.5rem); font-weight: 400; line-height: 1.25; letter-spacing: -0.03em; color: var(--on-dark-2); max-width: none; }
html[data-lang="en"] .lockup-ko br, html[data-lang="ko"] .lockup-en br { display: none; }
@media (max-width: 720px) { .lockup br { display: none; } }
.hero-lede { margin-top: clamp(1.5rem, 1rem + 1.5vw, 2.25rem); max-width: 34em; font-size: var(--fs-lead); color: var(--on-dark-2); }
.hero .actions { margin-top: 2rem; }

/* The route bar: Seoul and Singapore, one line, live clocks. */
.route-bar {
  display: grid; grid-template-columns: auto minmax(140px, 1fr) auto minmax(0, 1.25fr); align-items: center; gap: 1.5rem;
  margin-top: clamp(2.5rem, 7vh, 5.5rem); padding: 1.15rem 1.5rem 1.15rem 1.75rem;
  border-radius: var(--r-md); background: rgba(10, 26, 54, 0.45); border: 1px solid rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(20px) saturate(1.3); backdrop-filter: blur(20px) saturate(1.3);
}
.rb-city { display: grid; gap: 0.1rem; }
.rb-city .city { font-size: var(--fs-xs); color: var(--on-dark-2); font-weight: 500; }
.rb-city .time { font-size: clamp(1.5rem, 1.2rem + 0.8vw, 2rem); font-weight: 400; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.rb-city .time small { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.02em; color: var(--on-dark-2); margin-left: 0.4em; }
.rb-line { position: relative; height: 52px; }
.rb-line svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.rb-line .arc { fill: none; stroke: rgba(255, 255, 255, 0.55); stroke-width: 1.25; stroke-dasharray: 3 5; vector-effect: non-scaling-stroke; }
.rb-line .dot { position: absolute; top: 35.5px; width: 9px; height: 9px; border-radius: 50%; }
.rb-line .dot-a { left: -4px; background: var(--night); box-shadow: inset 0 0 0 1.5px var(--white); }
.rb-line .dot-b { right: -4px; background: var(--red); box-shadow: 0 0 0 5px rgba(255, 90, 95, 0.22); }
.rb-line .dist { position: absolute; left: 50%; top: -4px; transform: translateX(-50%); font-size: 0.75rem; font-weight: 500; color: var(--on-dark-2); white-space: nowrap; }
.rb-call { min-width: 0; padding-left: 1.5rem; border-left: 1px solid var(--on-dark-line); display: grid; gap: 0.35rem; }
.call-label { font-size: var(--fs-xs); color: var(--on-dark-2); font-weight: 500; }
.call-title { color: var(--white); font-weight: 600; font-size: var(--fs-base); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.call-title:hover { color: var(--white); text-decoration: underline; text-underline-offset: 0.25em; }
.call-status { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.call-when { font-size: var(--fs-xs); color: var(--on-dark-2); }
.rb-call .status-closed { background: rgba(255, 255, 255, 0.12); color: var(--on-dark-2); }

@media (max-width: 960px) {
  .hero::before { background: linear-gradient(0deg, rgba(10, 26, 54, 0.95) 0%, rgba(10, 26, 54, 0.72) 50%, rgba(10, 26, 54, 0.45) 100%); }
  .route-bar { grid-template-columns: auto minmax(80px, 1fr) auto; padding: 1.1rem 1.25rem; gap: 1rem 1.25rem; }
  .rb-call { grid-column: 1 / -1; padding: 1rem 0 0; border-left: 0; border-top: 1px solid var(--on-dark-line); }
}
@media (max-width: 720px) {
  .rb-line .dist { display: none; }
  .hero { min-height: auto; }
  .hero-bg img { object-position: 72% 50%; }
  .hero::before { background: linear-gradient(0deg, rgba(10, 26, 54, 0.95) 0%, rgba(10, 26, 54, 0.75) 45%, rgba(10, 26, 54, 0.35) 100%); }
  .hero-inner { padding-top: calc(var(--header-h) + 3.5rem); }
  .hero .actions .btn { flex: 1 1 100%; }
}

/* One orchestrated entrance on the home hero; the route line draws itself last. */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-bg img { animation: settle 2.4s var(--ease) both; }
  .js .hero .lockup > span, .js .hero-lede, .js .hero .actions { animation: rise 1s var(--ease) both; }
  .js .hero .lockup > :nth-child(2) { animation-delay: 0.12s; }
  .js .hero-lede { animation-delay: 0.24s; }
  .js .hero .actions { animation-delay: 0.34s; }
  .js .route-bar { animation: rise 1s var(--ease) 0.5s both; }
  .js .rb-line .arc { stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 1.6s var(--ease) 1s forwards; }
  .js .rb-line .dot-b { animation: arrive 0.5s var(--ease) 2.3s both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: scale(1.07); } to { transform: scale(1); } }
@keyframes draw { to { stroke-dashoffset: 0; stroke-dasharray: 3 5; } }
@keyframes arrive { from { transform: scale(0); } to { transform: scale(1); } }

/* ---------- Lists of updates ---------- */
.row-list { list-style: none; }
.row-list > li { border-top: 1px solid var(--line); }
.row-list > li:last-child { border-bottom: 1px solid var(--line); }
.row { position: relative; display: grid; grid-template-columns: 8rem minmax(0, 1fr) auto; gap: 0.4rem 2rem; align-items: center; padding: 1.4rem 0.25rem; }
.row-date { font-size: var(--fs-sm); color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.row-main { min-width: 0; }
.row-title { font-size: 1.1875rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.45; color: var(--ink); }
a.row-title::after { content: ""; position: absolute; inset: 0; }
.row:hover .row-title { color: var(--blue); }
.row-sub { display: block; margin-top: 0.25rem; font-size: var(--fs-sm); color: var(--ink-3); }
.row-meta { position: relative; z-index: 1; display: flex; gap: 0.5rem; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.row-list > li { transition: background-color 0.2s; }
.row-list > li:hover { background: linear-gradient(90deg, var(--cloud), rgba(243, 245, 249, 0)); }
.section-cloud .row-list > li:hover { background: linear-gradient(90deg, var(--white), rgba(255, 255, 255, 0)); }
@media (max-width: 720px) {
  .row { grid-template-columns: 1fr; padding: 1.1rem 0; gap: 0.35rem; }
  .row-meta { justify-content: flex-start; order: -1; }
  .row-date { order: -2; }
}

.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 2.5rem clamp(2rem, 1rem + 4vw, 6rem); }
.split > header { align-self: start; position: sticky; top: calc(var(--header-h) + 2rem); }
.split > header p { margin-top: 1.25rem; color: var(--ink-2); max-width: 26em; }
.split > header .text-link { margin-top: 1.5rem; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split > header { position: static; } }

/* ---------- Home: intro ---------- */
.intro-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 2rem 5rem; align-items: end; }
.intro-grid .h2 { max-width: 17em; }
.intro-grid p { color: var(--ink-2); font-size: var(--fs-lead); }
.media-bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; margin-top: clamp(3rem, 2rem + 3vw, 5rem); }
.mb-main { grid-column: span 8; position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: clamp(340px, 20rem + 12vw, 580px); }
.mb-main img, .mb-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mb-side { grid-column: span 4; display: grid; grid-template-rows: auto 1fr; gap: 16px; }
.mb-facts { border-radius: var(--r-lg); background: var(--night); color: var(--on-dark); padding: clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem); }
.mb-facts dl { margin: 0; display: grid; gap: 0; }
.mb-facts dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0.85rem 0; border-top: 1px solid var(--on-dark-line); }
.mb-facts dl > div:first-child { border-top: 0; padding-top: 0; }
.mb-facts dt { font-size: var(--fs-xs); color: var(--on-dark-2); }
.mb-facts dd { margin: 0; font-size: 1.25rem; font-weight: 400; letter-spacing: -0.03em; color: var(--white); text-align: right; }
.mb-photo { position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 220px; }
@media (max-width: 900px) {
  .intro-grid { grid-template-columns: 1fr; }
  .mb-main, .mb-side { grid-column: 1 / -1; }
  .mb-side { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
}
@media (max-width: 600px) { .mb-side { grid-template-columns: 1fr; } .mb-main { min-height: 280px; } }

.nipa { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 2rem 5rem; margin-top: clamp(3.5rem, 2.5rem + 3vw, 6rem); padding-top: clamp(2.5rem, 2rem + 1vw, 3.5rem); border-top: 1px solid var(--line); }
.nipa h3 { font-size: var(--fs-h3); font-weight: 700; letter-spacing: -0.03em; }
.nipa > div > p { margin-top: 0.9rem; color: var(--ink-2); max-width: 26em; }
.check-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2.5rem; }
.check-list li { position: relative; padding: 0.95rem 0 0.95rem 2rem; border-bottom: 1px solid var(--line); font-weight: 500; letter-spacing: -0.02em; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 1.15rem; width: 18px; height: 18px; border-radius: 50%; background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5.2 9.3l2.4 2.3 5-5' fill='none' stroke='%232a5bff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
@media (max-width: 900px) { .nipa { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .check-list { grid-template-columns: 1fr; } }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; background: var(--white); border-radius: var(--r-lg); overflow: hidden; }
.services li { padding: clamp(1.75rem, 1.25rem + 1.5vw, 2.75rem); display: flex; flex-direction: column; min-height: 300px; }
.services li + li { border-left: 1px solid var(--line); }
.services .icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px; background: var(--blue-soft); color: var(--blue); margin-bottom: auto; }
.services h3 { margin-top: 3rem; font-size: var(--fs-h3); letter-spacing: -0.035em; }
.services p { margin-top: 0.6rem; color: var(--ink-2); font-size: var(--fs-sm); max-width: 24em; }
@media (max-width: 900px) {
  .services { grid-template-columns: 1fr; }
  .services li { min-height: 0; }
  .services li + li { border-left: 0; border-top: 1px solid var(--line); }
  .services h3 { margin-top: 1.5rem; }
}

.feature-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); margin-top: 16px; border-radius: var(--r-lg); overflow: hidden; background: var(--night); color: var(--on-dark); min-height: 420px; }
.feature-card .fc-body { padding: clamp(2rem, 1.5rem + 2vw, 3.5rem); display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; }
.feature-card h3 { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.625rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.12; color: var(--white); }
.feature-card p { margin-top: 1rem; color: var(--on-dark-2); max-width: 30em; }
.feature-card .fc-photo { position: relative; min-height: 280px; }
.feature-card .fc-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .feature-card { grid-template-columns: 1fr; } .feature-card .fc-photo { order: -1; aspect-ratio: 16 / 9; min-height: 0; } }

/* ---------- Programmes (night section) ---------- */
.prog-media { position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: clamp(460px, 26rem + 14vw, 680px); }
.prog-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.prog-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 26, 54, 0.9) 0%, rgba(10, 26, 54, 0.25) 48%, rgba(10, 26, 54, 0) 70%); }
.prog-cards { position: absolute; left: 20px; right: 20px; bottom: 20px; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; }
.prog-cards > div { padding: 1.5rem; border-radius: var(--r-md); background: rgba(10, 26, 54, 0.5); border: 1px solid rgba(255, 255, 255, 0.14); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.prog-cards dt { font-size: 1.125rem; font-weight: 700; letter-spacing: -0.03em; color: var(--white); }
.prog-cards dd { margin: 0.5rem 0 0; font-size: var(--fs-sm); color: var(--on-dark-2); }
@media (max-width: 900px) {
  .prog-media { min-height: 0; overflow: visible; border-radius: 0; }
  .prog-media > img { position: static; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r-lg); }
  .prog-media::after { display: none; }
  .prog-cards { position: static; grid-template-columns: 1fr; margin-top: 12px; }
  .prog-cards > div { background: var(--night-2); }
}

/* ---------- Director's message ---------- */
.letter { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 1.5rem + 4vw, 6rem); align-items: stretch; }
.letter-photo { position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 520px; }
.letter-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.letter-photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 3rem 1.5rem 1.25rem; color: var(--white); font-size: var(--fs-xs); font-weight: 500; background: linear-gradient(0deg, rgba(10, 26, 54, 0.6), rgba(10, 26, 54, 0)); }
.letter-text { display: flex; flex-direction: column; justify-content: center; }
.letter-text .h2 { font-size: clamp(1.5rem, 1.25rem + 0.8vw, 2rem); font-weight: 700; letter-spacing: -0.035em; color: var(--blue); }
.letter-body { margin-top: 2rem; }
.letter-body p { color: var(--ink-2); font-size: var(--fs-lead); line-height: 1.75; }
.letter-body p:first-child { color: var(--ink); font-size: clamp(1.625rem, 1.2rem + 1.4vw, 2.5rem); font-weight: 400; line-height: 1.3; letter-spacing: -0.045em; margin-bottom: 1.75rem; }
html[data-lang="ko"] .letter-body p:first-child { line-height: 1.45; letter-spacing: -0.05em; font-weight: 400; }
.letter-sign { margin-top: 2.5rem; display: flex; align-items: center; gap: 1rem; font-size: var(--fs-sm); color: var(--ink-3); }
.letter-sign::before { content: ""; width: 40px; height: 1px; background: var(--ink-3); }
.letter-sign strong { color: var(--ink); font-weight: 600; margin-right: 0.35rem; }
@media (max-width: 900px) { .letter { grid-template-columns: 1fr; } .letter-photo { min-height: 0; aspect-ratio: 16 / 10; } }

/* ---------- Companies ---------- */
.logo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; list-style: none; }
.logo-grid a { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: center; column-gap: 1.25rem; height: 100%; padding: 1.25rem 1.5rem 1.25rem 1.25rem; border-radius: var(--r-md); background: var(--white); color: var(--ink); border: 1px solid var(--line); transition: border-color 0.2s, box-shadow 0.2s; }
.logo-grid a:hover { border-color: var(--line-2); }
.logo-box { grid-row: span 3; height: 72px; display: grid; place-items: center; border-radius: var(--r-sm); background: var(--white); }
.logo-box img { max-height: 44px; max-width: 100px; width: auto; object-fit: contain; mix-blend-mode: multiply; opacity: 1; }
.logo-grid a:hover .logo-box img, .logo-grid a:focus-visible .logo-box img { filter: none; opacity: 1; }
.logo-name { font-weight: 700; letter-spacing: -0.02em; align-self: end; }
.logo-field { font-size: var(--fs-xs); color: var(--ink-3); line-height: 1.45; margin-top: 0.15rem; }
.logo-site { font-size: var(--fs-xs); color: var(--blue); font-weight: 600; margin-top: 0.35rem; }
.logo-grid a > span:not(.logo-box) { grid-column: 2; }
.section:not(.section-cloud) .logo-grid a { background: var(--cloud); }
.section:not(.section-cloud) .logo-box { background: transparent; }
@media (max-width: 1000px) { .logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .logo-grid { grid-template-columns: 1fr; } }

.alumni { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 3rem; list-style: none; }
.alumni li { padding: 1.1rem 0; border-top: 1px solid var(--line); }
.alumni strong { display: block; font-size: 1.125rem; font-weight: 700; letter-spacing: -0.025em; }
.alumni a { color: var(--ink); }
.alumni a:hover { color: var(--blue); }
.alumni span { font-size: var(--fs-sm); color: var(--ink-3); }
@media (max-width: 900px) { .alumni { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .alumni { grid-template-columns: 1fr; } }

/* ---------- Visit (full-bleed photo band) ---------- */
.visit { position: relative; isolation: isolate; color: var(--white); background: var(--night); overflow: hidden; }
.visit-bg { position: absolute; inset: 0; z-index: -2; }
.visit-bg img { width: 100%; height: 100%; object-fit: cover; }
.visit::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 26, 54, 0.92) 0%, rgba(10, 26, 54, 0.75) 45%, rgba(10, 26, 54, 0.3) 100%); }
.visit-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 3rem; align-items: end; }
.visit .h2 { color: var(--white); }
.visit-grid > div > p { margin-top: 1.25rem; color: var(--on-dark-2); font-size: var(--fs-lead); max-width: 28em; }
.visit .actions { margin-top: 2.25rem; }
.visit-card { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 2rem; padding: clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem); border-radius: var(--r-md); background: rgba(10, 26, 54, 0.5); border: 1px solid rgba(255, 255, 255, 0.14); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.visit-card .full { grid-column: 1 / -1; }
.visit-card h3 { font-size: var(--fs-xs); font-weight: 500; color: var(--on-dark-2); margin-bottom: 0.3rem; }
.visit-card p, .visit-card address { font-size: 1.1875rem; font-weight: 500; letter-spacing: -0.025em; overflow-wrap: anywhere; }
.visit-card a { color: var(--white); }
.visit-card a:hover { text-decoration: underline; text-underline-offset: 0.25em; }
.visit-card small { display: block; margin-top: 0.2rem; font-size: var(--fs-xs); color: var(--on-dark-2); }
@media (max-width: 900px) { .visit-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .visit-card { grid-template-columns: 1fr; } }

/* ---------- Interior page hero ---------- */
.page-hero { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: clamp(460px, 26rem + 12vw, 640px); background: var(--night); color: var(--white); overflow: hidden; }
.page-hero .ph-bg { position: absolute; inset: 0; z-index: -2; }
.page-hero .ph-bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 26, 54, 0.9) 0%, rgba(10, 26, 54, 0.62) 45%, rgba(10, 26, 54, 0.25) 100%), linear-gradient(180deg, rgba(10, 26, 54, 0.5) 0%, rgba(10, 26, 54, 0) 30%); }
.page-hero .wrap { padding-top: calc(var(--header-h) + clamp(3.5rem, 8vh, 6rem)); padding-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.ph-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 2rem 4rem; align-items: end; }
.page-hero h1 { font-size: var(--fs-h1); font-weight: 700; letter-spacing: -0.045em; line-height: 1.05; }
html[data-lang="ko"] .page-hero h1 { font-weight: 700; line-height: 1.15; letter-spacing: -0.04em; }
.page-hero .lead { margin-top: 1.5rem; color: var(--on-dark-2); }
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; font-size: var(--fs-sm); color: var(--ink-3); margin-bottom: 1.75rem; }
.breadcrumb li + li::before { content: "/"; margin-right: 0.5rem; opacity: 0.5; }
.breadcrumb a { color: inherit; }
.breadcrumb a:hover { text-decoration: underline; text-underline-offset: 0.25em; }
.page-hero .breadcrumb { color: var(--on-dark-2); }

.glance { padding: 1.5rem 1.6rem; border-radius: var(--r-md); background: rgba(10, 26, 54, 0.5); border: 1px solid rgba(255, 255, 255, 0.14); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.glance dl { margin: 0; display: grid; }
.glance dl > div { padding: 0.9rem 0; border-top: 1px solid var(--on-dark-line); }
.glance dl > div:first-child { border-top: 0; padding-top: 0; }
.glance dt { font-size: var(--fs-xs); color: var(--on-dark-2); font-weight: 500; }
.glance dd { margin: 0.2rem 0 0; font-size: 1.125rem; font-weight: 500; letter-spacing: -0.025em; color: var(--white); line-height: 1.4; }
.glance dd a { color: var(--white); }
.glance dd a:hover { text-decoration: underline; text-underline-offset: 0.25em; }
.glance dd small { display: block; font-size: var(--fs-xs); font-weight: 400; color: var(--on-dark-2); margin-top: 0.15rem; letter-spacing: -0.01em; }
.glance .text-link { margin-top: 1rem; color: var(--sky); font-size: var(--fs-sm); }
@media (max-width: 900px) { .ph-grid { grid-template-columns: 1fr; } .page-hero { min-height: 0; } }

/* Simple page head (archive, article, legal) */
.page-head { padding-top: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); padding-bottom: clamp(2rem, 1.5rem + 2vw, 3rem); }
.page-head h1 { font-size: var(--fs-h1); font-weight: 700; letter-spacing: -0.045em; line-height: 1.06; }
html[data-lang="ko"] .page-head h1 { font-weight: 700; line-height: 1.15; letter-spacing: -0.04em; }
.page-head-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 1.25rem 4rem; align-items: end; }
@media (max-width: 860px) { .page-head-grid { grid-template-columns: 1fr; } }

/* ---------- Opportunities ---------- */
.opp { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 2rem clamp(2rem, 1rem + 3vw, 4.5rem); padding: clamp(1.5rem, 1rem + 2vw, 3rem); border-radius: var(--r-lg); background: var(--cloud); }
.opp + .opp { margin-top: 16px; }
.opp-meta dl { display: grid; gap: 1.1rem; margin: 1.5rem 0 0; }
.opp-meta dt { font-size: var(--fs-xs); color: var(--ink-3); }
.opp-meta dd { margin: 0.15rem 0 0; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.opp-meta .countdown { display: block; font-weight: 500; font-size: var(--fs-sm); color: var(--blue); }
.opp h2 { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.625rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.12; }
.opp .opp-summary { margin-top: 1rem; font-size: var(--fs-lead); color: var(--ink); max-width: 36em; font-weight: 500; letter-spacing: -0.025em; }
.opp .opp-body { margin-top: 1.1rem; max-width: 42em; color: var(--ink-2); }
.opp-updates { margin-top: 1.5rem; padding: 1rem 1.25rem; border-radius: var(--r-sm); background: var(--blue-soft); max-width: 42em; }
.opp-updates p { font-size: var(--fs-sm); color: var(--ink); }
.opp-updates strong { font-weight: 700; color: var(--blue); }
.files { list-style: none; margin-top: 1.75rem; max-width: 42em; display: grid; gap: 8px; }
.files a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: 0.9rem 1.1rem; border-radius: var(--r-sm); background: var(--white); color: var(--ink); border: 1px solid transparent; transition: border-color 0.2s; }
.files a:hover { border-color: var(--blue); color: var(--ink); }
.files .file-label { font-weight: 600; letter-spacing: -0.02em; }
.files .file-size { font-size: var(--fs-xs); color: var(--ink-3); white-space: nowrap; display: inline-flex; align-items: center; gap: 0.6rem; }
.files .file-size svg { color: var(--blue); }
.opp .actions { margin-top: 1.75rem; }
@media (max-width: 860px) { .opp { grid-template-columns: 1fr; } .opp-meta dl { grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); } }

.compact-opps { list-style: none; display: grid; gap: 12px; }
.compact-opps li { padding: 1.5rem; border-radius: var(--r-md); background: var(--cloud); }
.compact-opps .top { display: flex; flex-wrap: wrap; gap: 0.5rem 0.9rem; align-items: center; margin-bottom: 0.6rem; }
.compact-opps a { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); }
.compact-opps a:hover { color: var(--blue); }
.compact-opps p { font-size: var(--fs-sm); color: var(--ink-2); margin-top: 0.4rem; }

.year-group { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 1rem 2rem; padding-top: 1.75rem; border-top: 1px solid var(--line-2); }
.year-group + .year-group { margin-top: 2.25rem; }
.year-group h3 { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.year-group .row-list > li:first-child { border-top: 0; }
.year-group .row-list > li:last-child { border-bottom: 0; }
.doc-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: 0.85rem 0; }
.doc-row a { color: var(--ink); font-weight: 600; letter-spacing: -0.02em; }
.doc-row a:hover { color: var(--blue); }
.doc-row .doc-meta { display: flex; gap: 0.9rem; align-items: center; font-size: var(--fs-xs); color: var(--ink-3); white-space: nowrap; }
@media (max-width: 700px) { .year-group { grid-template-columns: 1fr; } .doc-row { grid-template-columns: auto minmax(0, 1fr); } .doc-row .doc-meta { grid-column: 2; } }
.more-btn { margin-top: 2rem; }

.feeds { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem clamp(2rem, 1rem + 4vw, 6rem); }
.feeds h2 { margin-bottom: 1.5rem; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-size: clamp(1.625rem, 1.3rem + 1vw, 2.25rem); font-weight: 700; letter-spacing: -0.045em; }
.feeds h2 a { font-size: var(--fs-sm); font-weight: 600; letter-spacing: -0.01em; }
.feeds .row { grid-template-columns: 7rem minmax(0, 1fr); }
.feeds .row-title { font-size: 1.0625rem; }
@media (max-width: 900px) { .feeds { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .feeds .row { grid-template-columns: 1fr; } }

/* ---------- CTA card ---------- */
.cta-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; padding: clamp(1.75rem, 1.25rem + 2vw, 3.25rem); border-radius: var(--r-lg); background: var(--night); color: var(--on-dark); }
.cta-card h2 { font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.5rem); font-weight: 700; letter-spacing: -0.035em; color: var(--white); line-height: 1.15; }
.cta-card p { margin-top: 0.6rem; color: var(--on-dark-2); max-width: 36em; }

/* ---------- Registration ---------- */
.reg-intro { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 1.5rem 5rem; }
.statement { font-size: clamp(1.625rem, 1.2rem + 1.5vw, 2.625rem); font-weight: 400; letter-spacing: -0.035em; line-height: 1.25; max-width: 22em; }
html[data-lang="ko"] .statement { font-weight: 400; line-height: 1.45; letter-spacing: -0.055em; }
.eligibility-note { margin-top: 1.25rem; color: var(--ink-2); max-width: 38em; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; display: flex; flex-direction: column; min-height: 240px; padding: 1.5rem 1.35rem; border-radius: var(--r-md); background: var(--cloud); }
.steps li::before { content: counter(step); font-size: 2.75rem; font-weight: 400; letter-spacing: -0.05em; line-height: 1; color: var(--blue); margin-bottom: auto; padding-bottom: 2rem; font-variant-numeric: tabular-nums; }
.steps li:last-child { background: var(--blue); color: var(--white); }
.steps li:last-child::before { color: var(--white); }
.steps strong { display: block; font-size: 1.125rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.35; }
.steps span { display: block; margin-top: 0.35rem; font-size: var(--fs-sm); color: var(--ink-3); }
.steps li:last-child span { color: rgba(255, 255, 255, 0.78); }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .steps li { min-height: 190px; } }

.docs-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 16px; }
.docs-card { padding: clamp(1.75rem, 1.25rem + 2vw, 3rem); border-radius: var(--r-lg); background: var(--cloud); }
.docs-list { list-style: none; margin-top: 1.75rem; }
.docs-list li { display: flex; gap: 1rem; align-items: center; padding: 1rem 0; border-top: 1px solid var(--line-2); font-weight: 500; letter-spacing: -0.02em; }
.docs-list li::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 6px; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M7 5.5h6l3 3v8H7z M13 5.5v3h3' fill='none' stroke='%232a5bff' stroke-width='1.3' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px no-repeat; }
.docs-list .doc-note { margin-left: auto; color: var(--ink-3); font-size: var(--fs-sm); font-weight: 400; }
.contact-card { padding: clamp(1.75rem, 1.25rem + 2vw, 3rem); border-radius: var(--r-lg); background: var(--night); color: var(--on-dark); display: flex; flex-direction: column; }
.contact-card h3 { font-size: clamp(1.5rem, 1.25rem + 0.8vw, 2rem); font-weight: 700; letter-spacing: -0.045em; color: var(--white); }
.contact-card .role { color: var(--on-dark-2); font-size: var(--fs-sm); margin-top: 0.3rem; }
.contact-card dl { margin: 1.75rem 0; display: grid; grid-template-columns: auto 1fr; gap: 0.7rem 1.5rem; }
.contact-card dt { color: var(--on-dark-2); font-size: var(--fs-sm); }
.contact-card dd { margin: 0; font-weight: 600; }
.contact-card dd a { color: var(--white); }
.contact-card .note { color: var(--on-dark-2); font-size: var(--fs-sm); margin-bottom: 1.75rem; }
.contact-card .btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 900px) { .reg-intro, .docs-grid { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px; }
.info-stack { display: grid; gap: 16px; align-content: start; }
.info-card { padding: clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem); border-radius: var(--r-md); background: var(--cloud); }
.info-card.dark { background: var(--night); color: var(--on-dark); }
.info-card h2 { font-size: var(--fs-xs); font-weight: 600; color: var(--ink-3); margin-bottom: 0.5rem; }
.info-card.dark h2 { color: var(--on-dark-2); }
.info-card .big { font-size: clamp(1.375rem, 1.15rem + 0.8vw, 1.875rem); font-weight: 400; letter-spacing: -0.04em; line-height: 1.3; }
.info-card .big a { color: inherit; }
.info-card .big a:hover { color: var(--blue); }
.info-card.dark .big a:hover { color: var(--sky); }
.info-card .note { margin-top: 0.4rem; color: var(--ink-2); font-size: var(--fs-sm); }
.info-card.dark .note { color: var(--on-dark-2); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.copy-btn { margin-top: 1rem; display: inline-flex; align-items: center; gap: 0.4rem; min-height: 36px; padding: 0 0.9rem; border-radius: 999px; border: 1px solid var(--line-2); background: var(--white); font-size: var(--fs-xs); font-weight: 600; cursor: pointer; color: var(--ink-2); }
.copy-btn:hover { border-color: var(--ink); color: var(--ink); }
.info-card.dark .copy-btn { background: transparent; color: var(--on-dark-2); border-color: var(--on-dark-line); }
.info-card.dark .copy-btn:hover { color: var(--white); border-color: var(--white); }
.clock-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--on-dark-line); }
.clock-row .city { display: block; font-size: var(--fs-xs); color: var(--on-dark-2); }
.clock-row .time { font-size: 1.75rem; font-weight: 400; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--white); }
.clock-row .time small { font-size: 0.6875rem; font-weight: 600; color: var(--on-dark-2); margin-left: 0.35em; }
.map-card { position: relative; min-height: 560px; border-radius: var(--r-lg); overflow: hidden; background: var(--cloud); }
.map-card iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } .map-card { min-height: 380px; } }
@media (max-width: 460px) { .pair { grid-template-columns: 1fr; } }

.form-card { padding: clamp(1.5rem, 1rem + 2.5vw, 3.5rem); border-radius: var(--r-lg); background: var(--cloud); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 1.5rem; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; font-size: var(--fs-sm); margin-bottom: 0.45rem; }
.field .hint { font-size: var(--fs-xs); color: var(--ink-3); font-weight: 500; margin-left: 0.4em; }
.form-note { font-size: var(--fs-sm); color: var(--ink-3); margin-top: 1rem; }
.form-note a { text-decoration: underline; text-underline-offset: 0.2em; }
.form-error { color: #d23b40; font-size: var(--fs-sm); margin-top: 0.45rem; font-weight: 500; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- News archive ---------- */
.archive-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 1rem; align-items: end; padding: 1.25rem; border-radius: var(--r-md); background: var(--cloud); }
.archive-controls label, .archive-controls .ctrl-label { display: block; font-size: var(--fs-xs); font-weight: 600; color: var(--ink-3); margin-bottom: 0.4rem; }
.archive-controls input[type="search"] { border-radius: 999px; padding-left: 1.25rem; }
.archive-controls select { border-radius: 999px; padding-inline: 1.1rem 2.5rem; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px; background: var(--white); border: 1px solid var(--line-2); }
.seg button { border: 0; background: transparent; padding: 0 1rem; min-height: 42px; border-radius: 999px; cursor: pointer; font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); }
.seg button:hover { background: var(--cloud); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.archive-count { margin: 1.75rem 0 0.5rem; font-size: var(--fs-sm); color: var(--ink-3); }
.archive-list .row { grid-template-columns: 8rem minmax(0, 1fr); align-items: start; }
.archive-list .row-title { font-size: 1.25rem; }
.archive-list .row-excerpt { display: block; margin-top: 0.45rem; font-size: var(--fs-sm); color: var(--ink-2); max-width: 46em; }
.archive-list .row-kind { display: block; width: fit-content; margin-top: 0.4rem; font-size: var(--fs-xs); font-weight: 600; color: var(--blue); }
.archive-list .row-date { padding-top: 0.2rem; }
.archive-list mark { background: #ffec99; color: inherit; border-radius: 3px; padding: 0 2px; }
.pager { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 2.25rem; align-items: center; }
.pager button, .pager span { min-width: 44px; min-height: 44px; padding: 0 0.9rem; border-radius: 999px; border: 1px solid var(--line-2); background: var(--white); cursor: pointer; font-size: var(--fs-sm); font-weight: 600; display: inline-grid; place-items: center; }
.pager button:hover:not(:disabled) { border-color: var(--ink); }
.pager button[aria-current="page"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.pager button:disabled { opacity: 0.4; cursor: default; }
.pager span { border-color: transparent; background: none; cursor: default; }
.empty { padding: 3rem 2rem; margin-top: 1rem; border-radius: var(--r-md); background: var(--cloud); text-align: center; }
.empty h3 { font-size: 1.5rem; font-weight: 400; letter-spacing: -0.04em; }
.empty p { color: var(--ink-2); margin-top: 0.4rem; }
.empty button { margin-top: 1.25rem; }
@media (max-width: 860px) { .archive-controls { grid-template-columns: 1fr; } .archive-list .row { grid-template-columns: 1fr; } }

/* ---------- Post ---------- */
.post { max-width: 46rem; }
.post-head { padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
.post-head .meta { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; color: var(--ink-3); font-size: var(--fs-sm); margin-bottom: 1.25rem; }
.post-head .meta .tag { color: var(--blue); font-weight: 700; }
.post-head h1 { font-size: clamp(2rem, 1.35rem + 2.4vw, 3.5rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.2; }
.post-body { padding-top: 2.25rem; font-size: 1.125rem; line-height: 1.8; color: var(--ink); overflow-wrap: anywhere; }
.post-body p + p, .post-body p + ul, .post-body ul + p { margin-top: 1.1em; }
.post-body h2, .post-body h3, .post-body h4 { margin: 1.8em 0 0.6em; font-size: 1.375rem; letter-spacing: -0.03em; }
.post-body a { text-decoration: underline; text-underline-offset: 0.2em; }
.post-body .archived-source { color: var(--ink-2); }
.post-body .source-status { color: var(--ink-3); font-size: var(--fs-xs); }
.post-body ul, .post-body ol { padding-left: 1.3em; }
.post-body li + li { margin-top: 0.35em; }
.post-body img { margin: 1.75rem 0; border-radius: var(--r-sm); }
.post-body blockquote { margin: 1.5rem 0; padding-left: 1.25rem; border-left: 3px solid var(--blue); color: var(--ink-2); }
.post-body table { border-collapse: collapse; width: 100%; font-size: var(--fs-sm); margin: 1.5rem 0; display: block; overflow-x: auto; }
.post-body td, .post-body th { border: 1px solid var(--line); padding: 0.5rem 0.7rem; vertical-align: top; }
.post-body iframe { max-width: 100%; }
.post-share { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.post-share span { color: var(--ink-3); font-size: var(--fs-sm); margin-right: 0.5rem; }
.post-share a, .post-share button { font-size: var(--fs-sm); font-weight: 600; border: 1px solid var(--line-2); border-radius: 999px; padding: 0 1rem; background: var(--white); color: var(--ink); cursor: pointer; min-height: 40px; display: inline-flex; align-items: center; }
.post-share a:hover, .post-share button:hover { border-color: var(--ink); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 3rem; }
.post-nav a { display: block; padding: 1.35rem 1.5rem; border-radius: var(--r-md); background: var(--cloud); color: var(--ink); }
.post-nav a:hover strong { color: var(--blue); }
.post-nav small { display: block; color: var(--ink-3); font-size: var(--fs-xs); margin-bottom: 0.35rem; }
.post-nav strong { font-weight: 600; letter-spacing: -0.02em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-nav .next { text-align: right; grid-column: 2; }
@media (max-width: 600px) { .post-nav { grid-template-columns: 1fr; } .post-nav .next { grid-column: 1; text-align: left; } }

/* ---------- Legal ---------- */
.legal { max-width: 46rem; }
.legal h2 { font-size: 1.75rem; font-weight: 400; letter-spacing: -0.04em; margin: 3rem 0 1rem; }
.legal h3 { font-size: 1.1875rem; margin: 1.75rem 0 0.6rem; letter-spacing: -0.02em; }
.legal p { color: var(--ink-2); }
.legal a { text-decoration: underline; }
.legal .updated { color: var(--ink-3); font-size: var(--fs-sm); margin-bottom: 2rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: var(--on-dark-2); font-size: var(--fs-sm); padding-top: clamp(4rem, 3rem + 3vw, 6rem); }
.site-footer a { color: var(--white); }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 0.25em; }
.footer-top { display: grid; grid-template-columns: minmax(0, 4.5fr) repeat(3, minmax(0, 2.5fr)); gap: 2.5rem; padding-bottom: 3.5rem; }
.footer-mark { font-size: 2.5rem; font-weight: 800; letter-spacing: -0.04em; color: var(--white); line-height: 1; margin-bottom: 1.1rem; }
.footer-brand p:last-child { max-width: 24em; color: var(--on-dark); }
.footer-col h2 { font-size: var(--fs-xs); font-weight: 600; color: var(--on-dark-2); margin-bottom: 1rem; }
.footer-col address { color: var(--white); }
.footer-list { list-style: none; display: grid; gap: 0.6rem; }
.footer-note { color: rgba(255, 255, 255, 0.68); font-size: var(--fs-xs); }
.footer-col .footer-note { margin-left: 0.4em; }
.footer-col p.footer-note { display: block; margin: 0.6rem 0 0; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding: 1.5rem 0 2.25rem; border-top: 1px solid var(--on-dark-line); font-size: var(--fs-xs); }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 1.5rem; list-style: none; }
@media (max-width: 980px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */
.notfound { padding-block: clamp(4rem, 3rem + 6vw, 9rem); }
.notfound h1 { font-size: var(--fs-h1); font-weight: 700; letter-spacing: -0.055em; line-height: 1.02; }
.notfound .lead { margin-top: 1.25rem; }
.notfound .actions { margin-top: 2.25rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .masthead, .site-header, .site-footer, .post-share, .post-nav, .hero-bg, .ph-bg { display: none !important; }
  body { font-size: 11pt; }
}

/* Small refinements; existing layout, imagery, colours and component shapes stay in place. */
.text-link { text-decoration-thickness: 1px; text-underline-offset: 0.25em; }
.logo-grid a:hover, .logo-grid a:focus-visible { box-shadow: 0 6px 20px rgba(10, 26, 54, 0.06); }
.row-date, .call-when, .tag, .breadcrumb { font-variant-numeric: tabular-nums; }
.post-body { line-height: 1.85; }
@media (min-width: 1101px) {
  .primary-nav a { position: relative; }
  .primary-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 1rem; right: 1rem; bottom: 4px; height: 2px; border-radius: 2px; background: currentColor; opacity: 0.6; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .btn:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(10, 26, 54, 0.08); }
}
@media (max-width: 560px) {
  .archive-controls .seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; border-radius: var(--r-md); }
  .archive-controls .seg button { padding-inline: 0.5rem; }
}
