:root {
  --ink: #17283d;
  --ink-soft: #47576a;
  --paper: #f6f3ec;
  --white: #fff;
  --line: #d8d7d2;
  --teal: #16746e;
  --teal-pale: #e8f1ee;
  --clay: #a34537;
  --gold: #bc8a42;
  --sun: #e3b955;
  --charcoal: #1d2024;
  --shadow: 0 18px 50px rgb(23 40 61 / 0.12);
  --content: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Han Sans SC", "Source Han Sans JP", "Source Han Sans KR", "Noto Sans CJK SC", "Noto Sans JP", "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body:has(dialog[open]) {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  max-width: 100%;
}

svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 9px 14px;
  background: var(--white);
  color: var(--ink);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
}

.topbar,
.utility-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 28px;
  border-bottom: 1px solid rgb(23 40 61 / 0.12);
  background: rgb(255 255 255 / 0.92);
  backdrop-filter: blur(16px);
}

.brand-lockup {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 900;
}

.brand-mark::after {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 15px;
  height: 15px;
  border-right: 2px solid var(--clay);
  border-bottom: 2px solid var(--clay);
  content: "";
}

.brand-name {
  min-width: 0;
}

.brand-name strong,
.brand-name small {
  display: block;
  overflow-wrap: anywhere;
}

.brand-name strong {
  font-size: 0.98rem;
  line-height: 1.2;
}

.brand-name small {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 0.67rem;
  line-height: 1.25;
}

.topbar-actions {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.language-switcher a {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid transparent;
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 750;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.language-switcher a:hover {
  border-color: var(--line);
}

.language-switcher a.active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.icon-action,
.icon-button,
.button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  cursor: pointer;
  font-weight: 750;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.icon-action {
  padding: 0 13px;
  font-size: 0.78rem;
}

.icon-action:hover,
.button:hover {
  transform: translateY(-1px);
}

.icon-button {
  width: 40px;
  padding: 0;
  background: transparent;
}

.icon-button:hover {
  background: var(--ink);
  color: var(--white);
}

.logout-form {
  margin: 0;
}

.button {
  min-height: 46px;
  padding: 0 18px;
  font-size: 0.88rem;
}

.button-primary {
  background: var(--ink);
  color: var(--white);
}

.button-primary:hover {
  background: var(--teal);
  border-color: var(--teal);
}

.button-secondary {
  background: transparent;
  color: var(--ink);
}

.button-light {
  border-color: var(--white);
  background: var(--white);
  color: var(--ink);
}

.button-outline-light {
  border-color: rgb(255 255 255 / 0.65);
  background: rgb(23 40 61 / 0.1);
  color: var(--white);
  backdrop-filter: blur(8px);
}

.side-nav {
  position: fixed;
  top: 50%;
  left: 16px;
  z-index: 24;
  display: grid;
  width: 174px;
  gap: 7px;
  transform: translateY(-46%);
  transition: width 180ms ease;
}

.side-nav.is-collapsed {
  width: 50px;
}

.side-nav.is-collapsed .side-nav-list {
  display: none;
}

.side-toggle,
.side-nav-list button {
  display: grid;
  width: 100%;
  min-height: 42px;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  border: 1px solid rgb(23 40 61 / 0.18);
  border-left: 3px solid transparent;
  border-radius: 6px;
  padding: 6px 9px 6px 7px;
  background: rgb(255 255 255 / 0.9);
  box-shadow: 0 12px 32px rgb(23 40 61 / 0.1);
  text-align: left;
  backdrop-filter: blur(14px);
  cursor: pointer;
}

.side-toggle {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.side-toggle svg {
  width: 20px;
  transition: transform 180ms ease;
}

.side-nav-list {
  display: grid;
  gap: 6px;
}

.side-nav-list button {
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.side-nav-list button:hover {
  border-left-color: var(--clay);
  background: var(--white);
  transform: translateX(3px);
}

.side-nav-list span {
  color: var(--gold);
  font-size: 0.67rem;
  font-weight: 900;
}

.side-nav strong,
.side-toggle span {
  overflow: hidden;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-nav.is-collapsed .side-toggle,
.side-nav.is-collapsed .side-nav-list button {
  grid-template-columns: 1fr;
  justify-items: center;
  padding-right: 7px;
}

.side-nav.is-collapsed strong,
.side-nav.is-collapsed .side-toggle span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.subject-modal {
  width: min(620px, calc(100% - 36px));
  max-height: calc(100svh - 36px);
  border: 0;
  border-radius: 8px;
  padding: 38px;
  background: var(--white);
  box-shadow: 0 30px 90px rgb(16 29 46 / 0.35);
  color: var(--ink);
}

.subject-modal::backdrop {
  background: rgb(17 28 42 / 0.62);
  backdrop-filter: blur(8px);
}

.subject-modal .modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  border-color: var(--line);
}

.modal-eyebrow,
.eyebrow,
.section-index {
  margin: 0 0 14px;
  color: var(--clay);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.primary-section-index {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.primary-section-index .section-number {
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.subject-modal h2 {
  max-width: 500px;
  margin: 0;
  padding-right: 38px;
  font-size: 2rem;
  line-height: 1.15;
}

.subject-modal > p:not(.modal-eyebrow) {
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.8;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero {
  position: relative;
  display: grid;
  min-height: 78svh;
  max-height: 840px;
  grid-template-rows: 1fr auto;
  align-items: end;
  overflow: hidden;
  padding: 88px 36px 30px;
  color: var(--white);
  isolation: isolate;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: 50% 51%;
  animation: hero-breathe 18s ease-in-out infinite alternate;
}

.hero-overlay {
  z-index: -1;
  background: linear-gradient(90deg, rgb(13 29 45 / 0.78), rgb(13 29 45 / 0.24) 68%), linear-gradient(0deg, rgb(13 29 45 / 0.68), transparent 50%);
}

.hero-content,
.hero-ledger {
  width: min(var(--content), 100%);
  margin-inline: auto;
}

.hero-content {
  padding-bottom: 38px;
}

.eyebrow {
  max-width: 760px;
  color: #f3c96c;
}

.hero h1 {
  max-width: 890px;
  margin: 0;
  font-size: 4.85rem;
  font-weight: 850;
  line-height: 1;
  overflow-wrap: anywhere;
}

.hero-lead {
  max-width: 760px;
  margin: 24px 0 0;
  color: rgb(255 255 255 / 0.9);
  font-size: 1.08rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-ledger {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  border-top: 1px solid rgb(255 255 255 / 0.45);
  padding-top: 17px;
}

.hero-ledger div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.hero-ledger strong {
  font-size: 1.52rem;
  line-height: 1.2;
}

.hero-ledger span {
  color: rgb(255 255 255 / 0.76);
  font-size: 0.76rem;
  overflow-wrap: anywhere;
}

.hero-route {
  position: absolute;
  top: 18%;
  right: 7%;
  width: min(430px, 38vw);
  height: 140px;
  border-top: 1px solid rgb(255 255 255 / 0.38);
  border-right: 1px solid rgb(255 255 255 / 0.25);
  transform: skewY(-7deg);
  pointer-events: none;
}

.hero-route span {
  position: absolute;
  top: -2px;
  left: 0;
  width: 55px;
  height: 3px;
  background: var(--sun);
  opacity: 0;
  animation: route-trace 6s linear infinite;
}

.hero-route span:nth-child(2) { animation-delay: 2s; }
.hero-route span:nth-child(3) { animation-delay: 4s; }

.section {
  padding: 96px 36px;
}

.section-heading,
.vision-statement,
.pillar-grid,
.why-grid,
.journey-line,
.program-grid,
.network-layout,
.feature-layout,
.service-steps,
.partner-grid,
.story-grid,
.evidence-grid,
.brand-principles,
.language-wall {
  width: min(var(--content), 100%);
  margin-inline: auto;
}

.section-heading {
  margin-bottom: 44px;
}

.section-heading h2,
.contact-intro h2,
.archive-inner h2,
.atlas-hero h1,
.legal-page h1 {
  max-width: 900px;
  margin: 0;
  font-size: 2.8rem;
  line-height: 1.13;
  overflow-wrap: anywhere;
}

.section-heading > p:last-child,
.contact-intro > p:not(.section-index),
.archive-inner > p:not(.section-index),
.atlas-hero > p,
.legal-page > header > p {
  max-width: 800px;
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 1.01rem;
  line-height: 1.82;
}

.vision-section {
  background: var(--white);
}

.vision-statement {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
}

.vision-statement p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.vision-statement strong {
  color: var(--clay);
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 36px;
  background: var(--line);
  border: 1px solid var(--line);
}

.pillar-item {
  min-height: 210px;
  padding: 25px;
  background: var(--white);
}

.pillar-item > span,
.program-number,
.partner-grid span,
.story-grid span {
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 850;
}

.pillar-item h3,
.why-card h3,
.journey-line h3,
.program-card h3,
.destination-list h3,
.service-steps h3,
.platform-features h3,
.story-grid h3,
.brand-principles h3 {
  margin: 22px 0 0;
  font-size: 1.14rem;
  line-height: 1.35;
}

.pillar-item p,
.journey-line p,
.destination-list p,
.service-steps p,
.platform-features p,
.partner-grid p,
.story-grid p,
.brand-principles p {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.75;
}

.why-section {
  background: var(--teal-pale);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.why-card,
.program-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.why-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.why-card > div {
  padding: 24px;
}

.why-card h3 {
  margin-top: 0;
}

.why-card ul,
.program-lists ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.why-card li,
.program-lists li {
  position: relative;
  margin-top: 10px;
  padding-left: 16px;
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.7;
}

.why-card li::before,
.program-lists li::before {
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 5px;
  height: 5px;
  background: var(--clay);
  content: "";
}

.journey-section {
  background: var(--ink);
  color: var(--white);
}

.journey-section .section-index,
.journey-section .journey-line > article > span {
  color: #f3c96c;
}

.journey-section .section-heading > p:last-child,
.journey-line p {
  color: rgb(255 255 255 / 0.68);
}

.journey-line {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.journey-line::before {
  position: absolute;
  top: 13px;
  right: 0;
  left: 0;
  height: 1px;
  background: rgb(255 255 255 / 0.25);
  content: "";
}

.journey-line article {
  position: relative;
  padding-top: 42px;
}

.journey-line article::before {
  position: absolute;
  top: 8px;
  left: 0;
  width: 11px;
  height: 11px;
  border: 2px solid var(--sun);
  background: var(--ink);
  content: "";
}

.journey-line h3 {
  margin-top: 10px;
}

.program-section {
  background: #f4f0e7;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.program-card {
  display: grid;
  grid-template-rows: auto 1fr;
  box-shadow: 0 14px 36px rgb(23 40 61 / 0.06);
}

.program-card > img {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
}

.program-content {
  padding: 26px;
}

.program-card h3 {
  margin: 8px 0 0;
  font-size: 1.35rem;
}

.program-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0 0;
}

.program-meta div {
  border-top: 1px solid var(--line);
  padding-top: 11px;
}

.program-meta dt,
.program-lists h4 {
  color: var(--clay);
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.program-meta dd {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
  line-height: 1.6;
}

.program-lists {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.program-lists h4 {
  margin: 0;
}

.network-section {
  background: var(--white);
}

.network-layout {
  display: grid;
  gap: 46px;
}

.institution-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}

.institution-list span {
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 8px 11px;
  color: var(--ink-soft);
  font-size: 0.76rem;
}

.destination-panel {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
  align-items: stretch;
  gap: 32px;
}

.destination-panel > img {
  width: 100%;
  height: 100%;
  min-height: 500px;
  object-fit: cover;
}

.destination-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.destination-list article {
  min-height: 140px;
  padding: 20px;
  background: var(--white);
}

.destination-list h3 {
  margin-top: 0;
}

.feature-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
  align-items: stretch;
  gap: 32px;
}

.feature-media {
  min-height: 500px;
}

.feature-media img {
  width: 100%;
  height: 100%;
  min-height: 500px;
  object-fit: cover;
}

.family-section {
  background: #f0ede6;
}

.safety-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.safety-list p {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  margin: 0;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.83rem;
}

.safety-list svg {
  color: var(--teal);
}

.service-section {
  background: var(--white);
}

.service-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-steps article {
  min-height: 215px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px;
}

.service-steps > article > span {
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 850;
}

.service-steps h3 {
  margin-top: 16px;
}

.service-steps small {
  display: block;
  margin-top: 4px;
  color: var(--clay);
  font-size: 0.72rem;
}

.platform-section {
  background: var(--charcoal);
  color: var(--white);
}

.platform-section .section-heading > p:last-child,
.platform-features p {
  color: rgb(255 255 255 / 0.66);
}

.platform-section .section-index {
  color: #f3c96c;
}

.platform-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgb(255 255 255 / 0.16);
  border: 1px solid rgb(255 255 255 / 0.16);
}

.platform-features article {
  min-height: 160px;
  padding: 20px;
  background: var(--charcoal);
}

.platform-features h3 {
  margin-top: 0;
  font-size: 0.95rem;
}

.partner-section {
  background: #efe6df;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.partner-grid article {
  min-height: 225px;
  border-top: 3px solid var(--clay);
  padding: 24px;
  background: rgb(255 255 255 / 0.64);
}

.proof-section {
  background: var(--white);
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.story-grid article {
  min-height: 290px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px;
}

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 28px;
  background: var(--line);
  border: 1px solid var(--line);
}

.evidence-grid article {
  display: grid;
  min-height: 145px;
  align-content: space-between;
  gap: 8px;
  padding: 18px;
  background: var(--paper);
}

.evidence-grid span,
.evidence-grid small {
  color: var(--ink-soft);
  font-size: 0.68rem;
  line-height: 1.45;
}

.evidence-grid strong {
  font-size: 1.22rem;
}

.brand-section {
  background: var(--teal-pale);
}

.brand-principles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.brand-principles article {
  min-height: 210px;
  padding: 26px;
  background: var(--white);
}

.brand-principles h3 {
  margin-top: 0;
}

.language-wall {
  display: grid;
  margin-top: 28px;
  border-top: 1px solid var(--teal);
}

.language-wall span {
  padding: 13px 0;
  border-bottom: 1px solid rgb(22 116 110 / 0.3);
  color: var(--teal);
  font-size: 1.04rem;
  font-weight: 700;
}

.archive-section {
  position: relative;
  overflow: hidden;
  padding: 100px 36px;
  background: var(--ink);
  color: var(--white);
}

.archive-section::after {
  position: absolute;
  top: -80px;
  right: 6%;
  width: 280px;
  height: 280px;
  border: 1px solid rgb(255 255 255 / 0.18);
  content: "";
  transform: rotate(14deg);
}

.archive-inner {
  position: relative;
  z-index: 1;
  width: min(var(--content), 100%);
  margin-inline: auto;
}

.archive-inner .section-index {
  color: #f3c96c;
}

.archive-inner > p {
  color: rgb(255 255 255 / 0.7);
}

.archive-count {
  display: grid;
  width: fit-content;
  grid-template-columns: auto auto auto auto;
  align-items: baseline;
  gap: 8px 12px;
  margin: 28px 0;
}

.archive-count strong {
  font-size: 2.3rem;
}

.archive-count span {
  color: rgb(255 255 255 / 0.62);
  font-size: 0.78rem;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 58px;
  padding: 96px max(36px, calc((100vw - var(--content)) / 2));
  background: var(--white);
}

.contact-details {
  display: grid;
  gap: 10px;
  margin-top: 30px;
}

.contact-details a,
.contact-details span {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

.contact-details svg {
  color: var(--teal);
}

.office-list {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  font-size: 0.8rem !important;
}

.consultation-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 30px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.consultation-form h3 {
  margin: 0 0 24px;
  font-size: 1.35rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.form-grid label,
.login-panel label {
  display: grid;
  min-width: 0;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 700;
}

.required-marker {
  color: #a12f24;
  font-weight: 800;
}

.form-grid input:not([type="checkbox"]),
.form-grid select,
.form-grid textarea,
.login-panel input,
.login-panel select,
.atlas-search input {
  width: 100%;
  min-width: 0;
  border: 1px solid #c6c7c4;
  border-radius: 5px;
  background: var(--white);
  color: var(--ink);
  outline: 0;
}

.form-grid input:not([type="checkbox"]),
.form-grid select,
.login-panel input,
.login-panel select,
.atlas-search input {
  min-height: 44px;
  padding: 0 11px;
}

.form-grid textarea {
  min-height: 125px;
  resize: vertical;
  padding: 10px 11px;
}

.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus,
.login-panel input:focus,
.login-panel select:focus,
.atlas-search input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgb(22 116 110 / 0.14);
}

.full-field,
.consent-field {
  grid-column: 1 / -1;
}

.consent-field {
  grid-template-columns: 20px minmax(0, 1fr) !important;
  align-items: start;
  gap: 10px !important;
  font-weight: 500 !important;
  line-height: 1.55;
}

.consent-field input {
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  accent-color: var(--teal);
}

.consultation-form > .button {
  margin-top: 22px;
}

.errorlist,
.form-errors {
  margin: 4px 0 0;
  padding: 0;
  color: #9c2f24;
  font-size: 0.72rem;
  list-style: none;
}

.form-success {
  border-left: 3px solid var(--teal);
  padding: 10px 13px;
  background: var(--teal-pale);
  color: var(--teal);
  font-size: 0.84rem;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 26px;
  padding: 38px max(28px, calc((100vw - var(--content)) / 2));
  background: var(--charcoal);
  color: var(--white);
}

.footer-brand {
  display: grid;
  gap: 4px;
}

.footer-brand span,
.site-footer small {
  color: rgb(255 255 255 / 0.55);
  font-size: 0.7rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  font-size: 0.76rem;
}

.site-footer small {
  grid-column: 1 / -1;
  border-top: 1px solid rgb(255 255 255 / 0.16);
  padding-top: 18px;
}

.motion-ready .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 620ms ease, transform 620ms ease;
}

.motion-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-group .reveal:nth-child(2) { transition-delay: 70ms; }
.stagger-group .reveal:nth-child(3) { transition-delay: 140ms; }
.stagger-group .reveal:nth-child(4) { transition-delay: 210ms; }

.atlas-page,
.legal-page {
  width: min(var(--content), calc(100% - 56px));
  margin: 0 auto;
  padding: 76px 0 96px;
}

.atlas-hero,
.legal-page > header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 34px;
}

.atlas-hero h1,
.legal-page h1 {
  font-size: 3.25rem;
}

.atlas-stats {
  display: flex;
  align-items: baseline;
  gap: 8px 12px;
  margin-top: 24px;
}

.atlas-stats strong {
  font-size: 1.7rem;
}

.atlas-stats span,
.result-count {
  color: var(--ink-soft);
  font-size: 0.75rem;
}

.atlas-search {
  width: min(620px, 100%);
  margin-top: 32px;
}

.atlas-search label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 750;
}

.atlas-search > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 7px;
}

.atlas-search .icon-button {
  height: 44px;
  background: var(--ink);
  color: var(--white);
}

.deck-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 30px;
}

.deck-tabs a {
  display: inline-flex;
  min-height: 38px;
  max-width: 100%;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 7px 11px;
  background: var(--white);
  color: var(--ink-soft);
  font-size: 0.7rem;
  overflow-wrap: anywhere;
}

.deck-tabs a.active {
  border-color: var(--teal);
  background: var(--teal);
  color: var(--white);
}

.deck-tabs span {
  color: var(--gold);
  font-weight: 850;
}

.result-count {
  margin: 28px 0 10px;
}

.slide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.slide-record {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 20px;
  background: var(--white);
}

.slide-record header {
  display: grid;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 11px;
}

.slide-record header span {
  color: var(--clay);
  font-size: 0.7rem;
  font-weight: 850;
}

.slide-record header small {
  color: var(--ink-soft);
  font-size: 0.62rem;
  overflow-wrap: anywhere;
}

.slide-record > p {
  margin: 15px 0 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.7;
  white-space: normal;
}

.empty-results {
  grid-column: 1 / -1;
  padding: 40px 0;
  color: var(--ink-soft);
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

.pagination a {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 5px;
}

.pagination span {
  font-size: 0.76rem;
  font-weight: 750;
}

.credit-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.credit-list article {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 22px;
  background: var(--white);
}

.credit-list span {
  color: var(--gold);
  font-size: 0.68rem;
  overflow-wrap: anywhere;
}

.credit-list h2 {
  margin: 13px 0;
  font-size: 1.08rem;
}

.credit-list p {
  margin: 6px 0;
  font-size: 0.76rem;
}

.credit-list a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--teal);
}

.credit-list svg {
  width: 14px;
}

.license-note {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  padding-top: 26px;
}

.license-note h2 {
  font-size: 1.25rem;
}

.license-note p {
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.login-page {
  display: grid;
  min-height: 100svh;
  grid-template-columns: minmax(240px, 0.75fr) minmax(360px, 1.25fr);
  align-items: center;
  gap: 70px;
  padding: 60px max(30px, calc((100vw - 980px) / 2));
  background: var(--teal-pale);
}

.login-page > .brand-lockup {
  align-self: start;
}

.login-panel {
  width: min(500px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 38px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.auth-language-switcher {
  width: 100%;
  justify-content: flex-end;
  margin-bottom: 24px;
}

.login-panel h1 {
  margin: 0;
  font-size: 2.3rem;
}

.login-panel > p:not(.section-index) {
  color: var(--ink-soft);
}

.login-panel form {
  display: grid;
  gap: 18px;
  margin-top: 26px;
}

.login-panel .button {
  justify-self: start;
}

.login-panel .button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.form-secondary-action {
  margin: -8px 0 0;
  text-align: right;
}

.form-secondary-action a {
  color: var(--teal);
  font-size: 0.74rem;
  font-weight: 750;
}

.account-alternative {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  font-size: 0.78rem;
}

.account-alternative a {
  color: var(--teal);
  font-weight: 750;
}

.registration-panel {
  margin-block: 28px;
}

.registration-details-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.verification-code-input {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.35rem;
  letter-spacing: 0;
  text-align: center;
}

.login-panel > .verification-delivery-hint {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 16px 0 0;
  border-left: 2px solid var(--gold);
  padding-left: 12px;
  font-size: 0.76rem;
  line-height: 1.6;
}

.verification-delivery-hint svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin-top: 2px;
  color: var(--gold);
}

.password-field {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.password-input {
  position: relative;
}

.login-panel .password-input input {
  padding-right: 50px;
}

.password-toggle {
  position: absolute;
  top: 2px;
  right: 2px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
}

.password-toggle:hover {
  background: var(--teal-pale);
  color: var(--teal);
}

.password-toggle:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
}

.password-toggle svg {
  width: 18px;
  height: 18px;
}

.password-guidance {
  margin-top: 3px;
  border-left: 2px solid var(--line);
  padding-left: 12px;
}

.password-guidance > p {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 800;
}

.password-guidance ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.password-guidance li {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 0.7rem;
  font-weight: 550;
  line-height: 1.45;
}

.password-guidance li::before {
  display: inline-block;
  width: 7px;
  height: 7px;
  grid-column: 1;
  margin-right: 7px;
  border: 1px solid currentColor;
  border-radius: 50%;
  content: "";
}

.password-guidance li > span {
  grid-column: 1;
  margin-left: 14px;
  margin-top: -16px;
}

.password-guidance li > strong {
  grid-column: 2;
  color: inherit;
  font-size: 0.62rem;
  font-weight: 800;
  white-space: nowrap;
}

.password-guidance li.is-valid {
  color: var(--teal);
}

.password-guidance li.is-valid::before {
  border-color: var(--teal);
  background: var(--teal);
  box-shadow: inset 0 0 0 2px var(--white);
}

.password-guidance li.is-invalid {
  color: #9c2f24;
}

.password-guidance .is-server-checked {
  color: #6b6253;
}

.password-match-status {
  min-height: 18px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.7rem;
  font-weight: 650;
}

.password-match-status.is-valid {
  color: var(--teal);
}

.password-match-status.is-invalid {
  color: #9c2f24;
}

.member-page {
  min-height: 100svh;
  padding: 34px max(22px, calc((100vw - 860px) / 2)) 70px;
  background: var(--teal-pale);
}

.member-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.member-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 42px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.member-panel-narrow {
  width: min(620px, 100%);
  margin-inline: auto;
}

.member-panel h1 {
  margin: 0;
  font-size: 2.35rem;
}

.member-panel > .form-success {
  margin-top: 22px;
}

.member-section {
  margin-top: 34px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.member-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.member-section-heading h2 {
  margin: 0;
  font-size: 1.18rem;
}

.member-section-heading > span {
  color: var(--teal);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.readonly-field {
  display: grid;
  gap: 4px;
  margin-bottom: 20px;
  border-left: 2px solid var(--teal);
  padding: 8px 0 8px 13px;
}

.readonly-field span {
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 700;
}

.readonly-field strong {
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

.member-form {
  display: grid;
  gap: 20px;
}

.member-form > .button {
  justify-self: start;
}

.member-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.member-form label,
.member-form .password-field > label {
  display: grid;
  min-width: 0;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 700;
}

.member-form input:not([type="checkbox"]),
.member-form select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 1px solid #c6c7c4;
  border-radius: 5px;
  padding: 0 11px;
  background: var(--white);
  color: var(--ink);
  outline: 0;
}

.member-form .password-input input {
  padding-right: 50px;
}

.member-form input:focus,
.member-form select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgb(22 116 110 / 0.14);
}

.member-action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.member-action-row form {
  margin: 0;
}

.danger-zone > p,
.deletion-panel > p {
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.button-danger {
  border-color: #9c2f24;
  background: transparent;
  color: #9c2f24;
}

.button-danger:hover {
  border-color: #9c2f24;
  background: #9c2f24;
  color: var(--white);
}

.deletion-consent {
  grid-template-columns: 20px minmax(0, 1fr) !important;
  align-items: start;
  gap: 10px !important;
  line-height: 1.5;
}

.deletion-consent input {
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  accent-color: #9c2f24;
}

@keyframes route-trace {
  0% { left: 0; opacity: 0; }
  10% { opacity: 1; }
  72% { opacity: 1; }
  100% { left: calc(100% - 55px); opacity: 0; }
}

@keyframes hero-breathe {
  from { transform: scale(1); }
  to { transform: scale(1.035); }
}

@media (min-width: 1181px) {
  .hero-content,
  .hero-ledger,
  .section-heading,
  .vision-statement,
  .pillar-grid,
  .why-grid,
  .journey-line,
  .program-grid,
  .network-layout,
  .feature-layout,
  .service-steps,
  .partner-grid,
  .story-grid,
  .evidence-grid,
  .brand-principles,
  .language-wall,
  .archive-inner {
    padding-left: max(0px, calc(796px - 50vw));
  }

  .contact-section,
  .site-footer {
    padding-left: max(206px, calc((100vw - var(--content)) / 2));
  }
}

@media (max-width: 1080px) {
  .section {
    padding: 82px 28px;
  }

  .pillar-grid,
  .service-steps,
  .evidence-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .why-grid,
  .story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .why-card:last-child,
  .story-grid article:last-child {
    grid-column: 1 / -1;
  }

  .partner-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-section {
    padding-inline: 54px;
  }

  .slide-grid,
  .credit-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  html {
    scroll-padding-top: 68px;
  }

  .topbar,
  .utility-header {
    min-height: 66px;
    gap: 10px;
    padding: 8px 14px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .brand-name small,
  .account-action span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .account-action {
    width: 38px;
    padding: 0;
  }

  .side-nav {
    top: 68px;
    left: 10px;
    transform: none;
  }

  .side-nav.is-open {
    width: min(168px, calc(100vw - 20px));
  }

  .hero {
    min-height: 540px;
    max-height: none;
    padding: 66px 22px 24px;
  }

  .hero h1 {
    font-size: 3.25rem;
  }

  .hero-route {
    display: none;
  }

  .journey-line {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .journey-line::before {
    display: none;
  }

  .journey-line article {
    border-top: 1px solid rgb(255 255 255 / 0.24);
    padding-top: 22px;
  }

  .journey-line article::before {
    display: none;
  }

  .program-grid {
    grid-template-columns: 1fr;
  }

  .destination-panel {
    grid-template-columns: 1fr;
  }

  .destination-panel > img {
    min-height: 360px;
    aspect-ratio: 16 / 9;
  }

  .feature-layout {
    grid-template-columns: 1fr;
  }

  .feature-media,
  .feature-media img {
    min-height: 360px;
  }

  .feature-media img {
    aspect-ratio: 16 / 9;
  }

  .contact-section {
    grid-template-columns: 1fr;
    padding: 76px 32px;
  }

  .login-page {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 34px;
  }
}

@media (max-width: 620px) {
  .topbar-actions {
    gap: 4px;
  }

  .brand-name strong {
    font-size: 0.8rem;
  }

  .language-switcher {
    max-width: 152px;
    overflow-x: auto;
  }

  .language-switcher a {
    width: 29px;
    height: 32px;
    flex: 0 0 29px;
    font-size: 0.65rem;
  }

  .topbar.has-member-actions .brand-name {
    display: none;
  }

  .topbar.has-member-actions .language-switcher {
    max-width: 128px;
  }

  .hero {
    min-height: 550px;
    padding: 48px 18px 20px;
  }

  .hero h1 {
    font-size: 2.65rem;
  }

  .hero-lead {
    margin-top: 18px;
    font-size: 0.91rem;
    line-height: 1.66;
  }

  .hero-content {
    padding-bottom: 24px;
  }

  .hero-actions {
    margin-top: 20px;
  }

  .hero-ledger {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding-top: 12px;
  }

  .hero-ledger strong {
    font-size: 1.15rem;
  }

  .hero-ledger span {
    font-size: 0.66rem;
  }

  .section {
    padding: 68px 18px;
  }

  .section-heading {
    margin-bottom: 32px;
  }

  .section-heading h2,
  .contact-intro h2,
  .archive-inner h2,
  .atlas-hero h1,
  .legal-page h1 {
    font-size: 2.05rem;
  }

  .section-heading > p:last-child,
  .contact-intro > p:not(.section-index),
  .archive-inner > p:not(.section-index) {
    font-size: 0.91rem;
  }

  .vision-statement,
  .pillar-grid,
  .why-grid,
  .journey-line,
  .service-steps,
  .partner-grid,
  .story-grid,
  .evidence-grid,
  .brand-principles,
  .platform-features,
  .destination-list,
  .program-meta,
  .program-lists,
  .form-grid,
  .registration-details-grid,
  .slide-grid,
  .credit-list {
    grid-template-columns: 1fr;
  }

  .why-card:last-child,
  .story-grid article:last-child,
  .full-field,
  .consent-field {
    grid-column: auto;
  }

  .pillar-item,
  .service-steps article,
  .partner-grid article,
  .story-grid article,
  .brand-principles article {
    min-height: 0;
  }

  .program-card > img {
    aspect-ratio: 4 / 3;
  }

  .program-content {
    padding: 22px;
  }

  .destination-panel > img,
  .feature-media,
  .feature-media img {
    min-height: 260px;
  }

  .feature-media img {
    aspect-ratio: 4 / 3;
  }

  .archive-section {
    padding: 74px 20px;
  }

  .archive-count {
    grid-template-columns: auto auto;
  }

  .contact-section {
    gap: 38px;
    padding: 68px 18px;
  }

  .consultation-form {
    padding: 22px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    padding: 34px 20px;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .site-footer small {
    grid-column: auto;
  }

  .subject-modal {
    padding: 30px 22px 24px;
  }

  .subject-modal h2 {
    font-size: 1.55rem;
  }

  .atlas-page,
  .legal-page {
    width: calc(100% - 36px);
    padding-top: 52px;
  }

  .atlas-hero h1,
  .legal-page h1 {
    font-size: 2.35rem;
  }

  .slide-record {
    padding: 17px;
  }

  .login-page {
    padding: 28px 18px;
  }

  .login-panel {
    padding: 26px 22px;
  }

  .member-page {
    padding: 24px 16px 46px;
  }

  .member-header {
    margin-bottom: 22px;
  }

  .member-panel {
    padding: 30px 22px;
  }

  .member-panel h1 {
    font-size: 2rem;
  }

  .member-form-grid {
    grid-template-columns: 1fr;
  }

  .member-action-row .button,
  .member-action-row form,
  .member-form > .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}
