:root{
  --ivory: #FDFBF3;
  --ivory-deep: #F7EFDA;
  --ink: #2E2A22;
  --ink-soft: #5B5646;
  --pine: #E9F3F7;
  --pine-deep: #DCEEF3;
  --pine-mid: #F0F8FA;
  --brass: #B8843C;
  --brass-light: #C99A4E;
  --brass-deep: #8C6428;
  --brass-pale: #EAD6AE;
  --blue: #2E7C9B;
  --blue-deep: #1F5E76;
  --cream-on-pine: #2E2A22;
  --line: rgba(140,108,58,0.28);
  --line-on-pine: rgba(31,94,118,0.16);
  --ink-muted: rgba(46,42,34,0.62);

  /* Semantic status colors — previously repeated as raw hex across
     form-status/status-badge/table-action rules with no shared token,
     so a rebrand would need to hunt down every occurrence individually.
     Named, not re-picked: values are unchanged from what was already
     in use, just centralized for a one-place swap later. */
  --success-bg: #DCEFE1;
  --success-text: #2A7A45;
  --danger-bg: #F4E1DC;
  --danger-text: #A6432B;
  --danger-text-hover: #7a2f22;
  --validation-error: #B23B2E;

  --font-display: 'Newsreader', serif;
  --font-body: 'Archivo', sans-serif;

  --container: 1272px;
  --gutter: clamp(24px, 5vw, 72px);
  --section-pad: clamp(80px, 11vw, 160px);

  --ease: cubic-bezier(.22,.68,.19,1);
}

*, *::before, *::after{ box-sizing: border-box; }
html{
  scroll-behavior: smooth;
}
body{
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul,ol{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4,p,figure{ margin:0; }
button{ font: inherit; background:none; border:none; cursor:pointer; color: inherit; }
::selection{ background: var(--brass); color: var(--ivory); }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *, *::before, *::after{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

.eyebrow{
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  display: inline-block;
}
.eyebrow--light{ color: var(--brass-deep); }

.display{
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.display em, .display i{
  font-style: italic;
  font-weight: 400;
}

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.section, .destinations, .marquee-band{
  scroll-margin-top: 96px;
}
.section{
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
  position: relative;
}
.section--pine{
  background: var(--pine);
  color: var(--cream-on-pine);
}
.section--deep{
  background: var(--ivory-deep);
}

.btn{
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 2px;
  overflow: hidden;
  isolation: isolate;
  white-space: nowrap;
}
.btn::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: translateY(102%);
  transition: transform .5s var(--ease);
}
.btn:hover::before{ transform: translateY(0); }

.btn-dark{
  background: var(--blue-deep);
  color: var(--ivory);
  border: 1px solid var(--blue-deep);
}
.btn-dark::before{ background: var(--brass); }
.btn-dark:hover{ color: var(--ink); }

.btn-light{
  background: var(--ivory);
  color: var(--blue-deep);
  border: 1px solid var(--blue-deep);
}
.btn-light::before{ background: var(--brass-light); }
.btn-light:hover{ color: var(--ink); }

.btn-outline{
  background: transparent;
  color: inherit;
  border: 1px solid currentColor;
}
.btn-outline::before{ background: currentColor; opacity: .08; }

.reveal{
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}
.reveal-photo{
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.1s var(--ease);
}
.reveal-photo.is-visible{
  clip-path: inset(0 0 0% 0);
}
.reveal-photo img{ transition: transform 1.4s var(--ease); }

/* stagger helper: apply --d as index via inline style */
.reveal{ transition-delay: calc(var(--d, 0) * 90ms); }

.grain{
  position: fixed;
  inset: 0;
  z-index: 900;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
.progress-bar{
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--brass), var(--brass-light));
  z-index: 800;
  pointer-events: none;
  transition: width .1s linear;
}

.nav{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px var(--gutter);
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity .8s var(--ease), transform .8s var(--ease), background .4s ease, padding .4s ease, border-color .4s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-ready{ opacity: 1; transform: translateY(0); }
.nav.is-hidden{
  opacity: 0 !important;
  transform: translateY(-110%) !important;
  pointer-events: none;
  animation: none !important;
}
.nav.is-scrolled{
  background: rgba(246,241,230,0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding-top: 16px;
  padding-bottom: 16px;
}
.nav-mark{
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}
.mark-icon{ width: 232px; height: 83px; flex-shrink: 0; }
.nav-mark-text{
  font-size: 8px;
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.nav-mark-word{
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.nav-mark-word em{ font-style: italic; font-weight: 400; color: var(--brass); }
.nav-mark-tag{
  font-family: var(--font-body);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  margin-top: 3px;
}
.nav-links{
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav-links a{
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
  padding-bottom: 4px;
}
.nav-links a::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:0;
  height: 3px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav-links a:hover::after{ transform: scaleX(1); transform-origin: left; }
.nav-cta{ display:flex; align-items:center; gap:28px; }
.nav-toggle{ display:none; }

@media (max-width: 860px){
  .nav-links{ display:none; }
  .nav-cta .btn{ padding: 12px 20px; }
}

.hero{
  position: relative;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  background: var(--pine);
}
.hero-media{
  position: absolute; inset: 0;
}
.hero-photo{
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(1.1) brightness(1.2) contrast(0.96);
}
.hero-scrim{
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(253,251,243,0.24) 0%, rgba(253,251,243,0.42) 45%, rgba(253,251,243,0.92) 100%),
    linear-gradient(90deg, rgba(253,251,243,0.72) 0%, rgba(253,251,243,0.22) 58%);
}
.hero-content{
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--gutter) clamp(64px, 10vh, 120px);
  max-width: 900px;
  color: var(--cream-on-pine);
}
.hero-content .eyebrow{ margin-bottom: 22px; }
.hero-headline{
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 6.4vw, 5.6rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--cream-on-pine);
}
.hero-headline span{ display:block; overflow:hidden; }
.hero-headline em{ font-style: italic; color: var(--brass-deep); }
.hero-sub{
  margin-top: 26px;
  max-width: 520px;
  font-size: 17px;
  color: rgba(46,42,34,0.78);
}
.hero-actions{
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 34px;
  flex-wrap: wrap;
}
.hero-link{
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-link-arrow{ transition: transform .3s var(--ease); }
.hero-link:hover .hero-link-arrow{ transform: translateY(3px); }

.reveal-hero-text{
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal-hero-text.is-visible{ opacity:1; transform: translateY(0); }

.hero-scrollcue{
  position: absolute;
  right: var(--gutter);
  bottom: 34px;
  z-index: 2;
  width: 1px;
  height: 54px;
  background: rgba(46,42,34,0.22);
  overflow: hidden;
}
.hero-scrollcue span{
  position: absolute;
  top: -100%; left:0;
  width: 100%; height: 100%;
  background: var(--brass-light);
  animation: cue 2.4s ease-in-out infinite;
}
@keyframes cue{
  0%{ top:-100%; }
  60%{ top: 100%; }
  100%{ top: 100%; }
}

.intro-overlay{
  position: fixed;
  inset: 0;
  z-index: 600;
  pointer-events: none;
}
.intro-overlay canvas{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.intro-skip{
  position: absolute;
  right: var(--gutter);
  bottom: 30px;
  pointer-events: auto;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-on-pine);
  opacity: 0;
  transition: opacity .5s ease;
  padding: 8px 4px;
}
.intro-skip.is-visible{ opacity: 0.6; }
.intro-skip:hover{ opacity: 1; }
.intro-overlay.is-done{
  opacity: 0;
  transform: translateY(-16px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}

.marquee-band{
  background: var(--pine);
  color: var(--cream-on-pine);
  padding: 32px 0;
  overflow: hidden;
  border-top: 1px solid var(--line-on-pine);
  border-bottom: 1px solid var(--line-on-pine);
}
.marquee-track{
  display: flex;
  width: max-content;
  animation: marquee 34s linear infinite;
}
.marquee-band:hover .marquee-track{ animation-play-state: paused; }
.marquee-group{
  display: flex;
  align-items: center;
  gap: 22px;
  padding-right: 22px;
  flex-shrink: 0;
}
.marquee-group span{
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(19px, 2.4vw, 30px);
  white-space: nowrap;
  color: var(--cream-on-pine);
}
.marquee-dot{
  font-style: normal !important;
  color: var(--brass);
  font-size: 13px !important;
}
@keyframes marquee{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce){ .marquee-track{ animation: none; } }

/* ---- Home page university logo strip (Phase 0.2) ---- */
.logo-marquee-band{
  background: var(--ivory-deep);
  padding: 30px 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.logo-marquee-track{
  display: flex;
  width: max-content;
  animation: marquee 42s linear infinite;
}
.logo-marquee-band:hover .logo-marquee-track{ animation-play-state: paused; }
.logo-marquee-group{
  display: flex;
  align-items: center;
  gap: 20px;
  padding-right: 20px;
  flex-shrink: 0;
}
.logo-badge{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 168px;
  height: 84px;
  padding: 10px 14px;
  flex-shrink: 0;
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 10px;
  white-space: normal;
  text-align: center;
}
.logo-badge img{
  max-width: 100%;
  max-height: 40px;
  object-fit: contain;
}
.logo-badge-name{
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink-soft);
}
@media (prefers-reduced-motion: reduce){ .logo-marquee-track{ animation: none; overflow-x: auto; } }

/* ---- Tabs (Visa Services: Student / Visitor) ---- */
.tab-bar{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.tab-btn{
  padding: 12px 26px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--ivory);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-soft);
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.tab-btn:hover{ border-color: var(--brass); color: var(--ink); }
.tab-btn.is-active{
  background: var(--ink);
  color: var(--ivory);
  border-color: var(--ink);
}

/* ---- Content sections (Visa / Test Prep / Language detail pages) ---- */
.content-sections{
  display: grid;
  gap: 28px;
}
.content-section{
  padding: 28px 30px;
  background: var(--ivory-deep);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.content-section h3{
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--ink);
}
.content-section .story-content{ max-width: none; }

.approach-grid{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
.approach-statement{
  font-size: clamp(1.7rem, 3.1vw, 2.5rem);
  line-height: 1.28;
  margin: 18px 0 28px;
  max-width: 560px;
  font-weight: 400;
}
.approach-statement em{ color: var(--brass); font-style: italic; }
.approach-copy{
  max-width: 480px;
  color: var(--ink-soft);
  font-size: 16px;
  margin-bottom: 36px;
}
.approach-points{ display: flex; flex-direction: column; gap: 18px; }
.approach-points li{
  padding-left: 20px;
  border-left: 2px solid var(--brass);
  font-size: 15px;
  max-width: 420px;
}
.approach-media{
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: 2px;
}
.approach-media img{ width: 100%; height: 100%; object-fit: cover; filter: saturate(1.08) brightness(1.22) contrast(0.94); }
.approach-media::after{
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(253,251,243,0.3), rgba(253,251,243,0.12) 60%, rgba(253,251,243,0.3) 100%);
  pointer-events: none;
}
@media (min-width: 901px){ .approach-media{ transform: translateY(-26px); } }
@media (max-width: 900px){
  .approach-grid{ grid-template-columns: 1fr; }
  .approach-media{ order: -1; max-width: 420px; }
}

.counsel-flow{
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4.2vw, 3.2rem);
  line-height: 1.4;
  font-weight: 400;
  margin-top: 30px;
}
.counsel-flow span:not(.counsel-sep){ position: relative; transition: color .3s ease; cursor: default; }
.counsel-flow span:not(.counsel-sep):hover{ color: var(--brass); font-style: italic; }
.counsel-sep{
  color: var(--brass-light);
  font-size: 0.45em;
  margin: 0 0.4em;
  vertical-align: middle;
  display: inline-block;
}

.destinations{ padding-top: var(--section-pad); padding-bottom: 0; }
.destinations-head{ margin-bottom: 56px; }
.destinations-title{
  font-size: clamp(1.8rem, 3.5vw, 2.9rem);
  color: var(--cream-on-pine);
  max-width: 640px;
  margin-top: 16px;
  font-weight: 400;
}
.destinations-scroller{ display: grid; grid-template-columns: 0.85fr 1.15fr; }
.destinations-steps{ padding: 0 var(--gutter); }
.dest-step{
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 40px;
  border-top: 1px solid var(--line-on-pine);
  opacity: 0.32;
  transition: opacity .5s ease;
}
.dest-step:last-child{ border-bottom: 1px solid var(--line-on-pine); }
.dest-step.is-active{ opacity: 1; }
.dest-step-num{ font-size: 12px; letter-spacing: 0.18em; color: var(--brass); font-weight: 600; }
.dest-step-name{
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.9vw, 2.5rem);
  font-weight: 400;
  color: var(--cream-on-pine);
  margin: 14px 0 16px;
}
.dest-step-copy{ max-width: 420px; color: rgba(46,42,34,0.68); font-size: 15px; margin-bottom: 14px; }
.dest-step-fact{
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  color: var(--brass-deep);
}
.destinations-visual{ position: sticky; top: 0; height: 100vh; overflow: hidden; }
.dest-panel{
  position: absolute; inset: 0;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1s var(--ease), transform 1.2s var(--ease);
}
.dest-panel.is-active{ opacity: 1; transform: scale(1); }
.dest-panel img{ width: 100%; height: 100%; object-fit: cover; filter: saturate(1.08) brightness(1.22) contrast(0.94); }
.dest-visual-scrim{
  position: absolute; inset: 0;
}
.dest-visual-label{
  position: absolute; left: 44px; bottom: 44px;
  display: flex; align-items: baseline; gap: 16px;
  color: var(--cream-on-pine);
}
#destLabelNum{ font-size: 14px; letter-spacing: 0.16em; color: var(--brass-deep); font-weight: 600; }
#destLabelName{ font-family: var(--font-display); font-style: italic; font-size: clamp(1.5rem, 2.8vw, 2.3rem); Color: var(--ivory-deep); }
@media (max-width: 900px){
  .destinations-scroller{ grid-template-columns: 1fr; }
  .destinations-visual{ position: relative; height: 55vh; order: -1; margin-bottom: 10px; }
  .dest-step{ min-height: auto; padding: 36px 0; }
}

.process-title{ font-size: clamp(1.7rem, 3.1vw, 2.5rem); font-weight: 400; max-width: 640px; margin: 16px 0 64px; }
.process-body{ display: grid; grid-template-columns: 3px 1fr; gap: 48px; }
.process-line-track{ position: relative; background: var(--line); border-radius: 2px; }
.process-line-fill{
  position: absolute; top: 0; left: 0; right: 0; height: 0%;
  background: var(--brass); border-radius: 2px; transition: height .1s linear;
}
.process-steps{ display: flex; flex-direction: column; gap: 60px; }
.process-step{
  display: grid; grid-template-columns: 64px 1fr; gap: 26px;
  opacity: 0.32; transition: opacity .6s ease;
}
.process-step.is-visible{ opacity: 1; }
.process-step-num{ font-family: var(--font-display); font-style: italic; font-size: 32px; color: var(--brass); }
.process-step h3{ font-family: var(--font-display); font-weight: 500; font-size: 21px; margin-bottom: 10px; }
.process-step p{ color: var(--ink-soft); font-size: 15px; max-width: 480px; }
@media (max-width: 780px){
  .process-body{ grid-template-columns: 1fr; }
  .process-line-track{ display: none; }
}

.stories-grid{ display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(40px,6vw,100px); }
.stories-head h2{ font-size: clamp(1.7rem,3vw,2.5rem); margin: 16px 0 40px; font-weight: 400; max-width: 420px; }
.stories-nav{ display: flex; gap: 14px; }
.stories-arrow{
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.stories-arrow:hover{ background: var(--blue-deep); color: var(--ivory); border-color: var(--blue-deep); }
.stories-slider{ position: relative; min-height: 260px; }
.story{
  position: absolute; inset: 0; opacity: 0; transform: translateY(16px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  pointer-events: none;
}
.story.is-active{ opacity: 1; transform: translateY(0); pointer-events: auto; position: relative; }
.story-quote{
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(1.3rem, 2.5vw, 1.9rem); line-height: 1.5; color: var(--ink);
}
.story-attr{
  margin-top: 26px; font-size: 12.5px; letter-spacing: 0.06em; color: var(--brass);
  font-weight: 600; text-transform: uppercase; font-style: normal;
}
@media (max-width: 860px){ .stories-grid{ grid-template-columns: 1fr; } }

.cta-grid{ display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(40px,6vw,100px); align-items: center; }
.cta-title{ font-size: clamp(1.9rem, 3.8vw, 3.2rem); font-weight: 400; color: var(--cream-on-pine); margin: 16px 0 22px; max-width: 560px; }
.cta-copy{ color: rgba(46,42,34,0.68); max-width: 460px; font-size: 16px; }
.cta-actions{ display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.cta-contact{ display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: rgba(46,42,34,0.6); }
@media (max-width: 860px){ .cta-grid{ grid-template-columns: 1fr; } }

.footer{ background: var(--pine-deep); color: rgba(46,42,34,0.72); padding-top: 90px; }
.footer-grid{
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 64px; border-bottom: 1px solid var(--line-on-pine);
}
.footer-mark{ margin-bottom: 2px; }
.footer-tagline{ margin-top: 18px; max-width: 280px; font-size: 14px; color: rgba(46,42,34,0.58); }
.footer-dpa{
  margin-top: 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(46,42,34,0.5);
  display: flex;
  gap: 9px;
}
.footer-dpa span{ color: var(--brass-deep); }
.footer-col{ display: flex; flex-direction: column; gap: 12px; }
.footer-col a, .footer-col span{ font-size: 14px; color: rgba(46,42,34,0.68); transition: color .3s ease; }
.footer-col a:hover{ color: var(--brass-deep); }
.footer-heading{ font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass-deep); margin-bottom: 4px; font-weight: 600; }
.footer-bottom{
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding: 26px 0; font-size: 12.5px; color: rgba(46,42,34,0.45);
}
@media (max-width: 780px){ .footer-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px){ .footer-grid{ grid-template-columns: 1fr; } }
@keyframes forceVisible{ to{ opacity: 1; transform: none; } }
@keyframes forceOverlayGone{ to{ opacity: 0; visibility: hidden; } }
.reveal-hero-text{ animation: forceVisible 0.01s linear 5s forwards; }
.nav{ animation: forceVisible 0.01s linear 5s forwards; }
.intro-overlay{ animation: forceOverlayGone 0.01s linear 7.2s forwards; }
.nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 26px;
  height: 20px;
}
.nav-toggle span{ display: block; height: 1.5px; background: currentColor; }

.mobile-menu{
  position: fixed;
  inset: 0;
  background: var(--pine);
  z-index: 750;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 26px;
  padding: 0 var(--gutter);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity .4s ease, transform .4s ease, visibility 0s linear .4s;
}
.mobile-menu.is-open{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity .4s ease, transform .4s ease, visibility 0s linear 0s;
}
.mobile-menu a{
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 7vw, 2.6rem);
  color: var(--cream-on-pine);
}
.mobile-menu-cta{ color: var(--brass-deep) !important; }
@media (min-width: 861px){ .mobile-menu{ display: none; } }

@media (max-width: 860px){
  .nav-links{ display: none; }
  .nav-toggle{ display: flex; }
  .nav-cta{ gap: 18px; }
  .nav-cta .btn{ padding: 12px 18px; }
}
@media (max-width: 480px){
  .nav-cta .btn{ display: none; }
}

/* ============================================================
   COUNTRY PAGE COMPONENTS
   Extends the design system above — same tokens, same rhythm.
   ============================================================ */

/* ---- Hero breadcrumb (country pages sit one level below home) ---- */
.hero-breadcrumb{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 20px;
  transition: color .3s ease;
}
.hero-breadcrumb:hover{ color: var(--brass-deep); }
.hero-breadcrumb-arrow{ display: inline-block; transition: transform .3s var(--ease); }
.hero-breadcrumb:hover .hero-breadcrumb-arrow{ transform: translateX(-3px); }

/* ---- Shared section head (Highlights / Courses / Requirements) ---- */
.section-head{ margin-bottom: 56px; max-width: 640px; }
.section-head-title{
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.1vw, 2.5rem);
  font-weight: 400;
  margin-top: 16px;
  color: var(--ink);
}
.section-head-title em{ color: var(--brass); font-style: italic; }
.section-head--light .section-head-title{ color: var(--cream-on-pine); }
.section-head--light .section-head-title em{ color: var(--brass-deep); }

/* ---- Highlights ---- */
.highlights-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-on-pine);
  border: 1px solid var(--line-on-pine);
}
.highlight-card{
  background: var(--pine);
  padding: 38px 30px;
  transition: background .4s ease;
}
.highlight-card:hover{ background: var(--pine-deep); }
.highlight-stat{
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  color: var(--brass-deep);
  display: block;
  margin-bottom: 20px;
  line-height: 1.2;
}
.highlight-card h3{
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--cream-on-pine);
  margin-bottom: 10px;
}
.highlight-card p{
  font-size: 13.5px;
  line-height: 1.62;
  color: rgba(46,42,34,0.64);
}
@media (max-width: 900px){ .highlights-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){ .highlights-grid{ grid-template-columns: 1fr; } }

/* ---- Popular Courses ---- */
.courses-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.course-card{
  padding: 30px 26px;
  border: 1px solid var(--line);
  border-radius: 2px;
  transition: border-color .35s ease, transform .35s var(--ease);
}
.course-card:hover{ border-color: var(--brass); transform: translateY(-4px); }
.course-level{
  display: inline-block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--brass-deep);
  background: var(--brass-pale);
  padding: 5px 10px;
  border-radius: 2px;
  margin-bottom: 18px;
}
.course-card h3{
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  margin-bottom: 6px;
  color: var(--ink);
  line-height: 1.3;
}
.course-duration{
  font-size: 12px;
  color: var(--brass);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
  display: block;
}
.course-card p{ font-size: 13.5px; color: var(--ink-soft); line-height: 1.6; }
@media (max-width: 900px){ .courses-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){ .courses-grid{ grid-template-columns: 1fr; } }

/* ---- Admission Requirements ---- */
.requirements-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 44px 64px;
}
.requirement-category{ border-top: 1px solid var(--line); padding-top: 26px; }
.requirement-category h3{
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 21px;
  margin-bottom: 20px;
  color: var(--ink);
}
.requirement-list{ display: flex; flex-direction: column; gap: 13px; }
.requirement-list li{
  position: relative;
  padding-left: 26px;
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.requirement-list li::before{
  content: "\2713";
  position: absolute;
  left: 0; top: 0;
  color: var(--brass);
  font-weight: 600;
}
@media (max-width: 780px){ .requirements-grid{ grid-template-columns: 1fr; gap: 36px; } }

/* ---- CTA: cross-links to other destinations ---- */
.cta-more{
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line-on-pine);
  font-size: 13px;
  line-height: 1.8;
  color: rgba(46,42,34,0.58);
}
.cta-more a{
  color: var(--brass-deep);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(140,100,40,0.35);
}
.cta-more a:hover{ color: var(--ink); text-decoration-color: currentColor; }

/* ---- Emphasis coloring for headings that use <em> (matches
   hero-headline / approach-statement convention: brass-deep on
   pine/light-text sections, brass on ivory/dark-text sections) ---- */
.destinations-title em,
.cta-title em{ color: var(--brass-deep); font-style: italic; }
.process-title em{ color: var(--brass); font-style: italic; }

/* ---- Note beneath the destinations scroller (points to
   destinations outside the top-six, without competing with them) ---- */
.destinations-more{
  padding: 44px 0 var(--section-pad);
  text-align: center;
}
.destinations-more-text{
  font-size: 14px;
  color: rgba(46,42,34,0.6);
}
.destinations-more-text a{
  color: var(--brass-deep);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(140,100,40,0.35);
}
.destinations-more-text a:hover{ color: var(--ink); text-decoration-color: currentColor; }

/* ---- Continent tag on destination steps (index.html) ---- */
.dest-step-continent{
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: rgba(31,94,118,0.68);
  margin-bottom: 6px;
}

/* ============================================================
   INTERIOR PAGE COMPONENTS
   (About / Services / Stories / Story Detail / Register /
   Thank You / 404 — pages that aren't the cinematic homepage)
   ============================================================ */

/* ---- Simple page hero band (shorter than the home/country hero) ---- */
.page-hero{
  position: relative;
  padding: clamp(150px, 22vh, 210px) 0 clamp(60px, 8vh, 90px);
  background: var(--pine);
  overflow: hidden;
}
.page-hero-title{
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  color: var(--cream-on-pine);
  margin-top: 16px;
  max-width: 780px;
}
.page-hero-title em{ font-style: italic; color: var(--brass-deep); }
.page-hero-sub{ margin-top: 18px; max-width: 560px; font-size: 16px; color: rgba(46,42,34,0.7); }

/* ---- About page ---- */
.about-hero-media{ aspect-ratio: 16/6.5; overflow: hidden; border-radius: 2px; margin-top: 8px; }
.about-hero-media img{ width: 100%; height: 100%; object-fit: cover; filter: saturate(1.08) brightness(1.16) contrast(0.95); }
.values-grid{
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); margin-top: 8px;
}
.value-card{ background: var(--ivory); padding: 34px 30px; }
.value-card h3{ font-family: var(--font-display); font-weight: 500; font-size: 19px; margin-bottom: 10px; }
.value-card p{ font-size: 14px; color: var(--ink-soft); line-height: 1.6; }
@media (max-width: 780px){ .values-grid{ grid-template-columns: 1fr; } }

/* ---- Services grid ---- */
.services-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service-card{
  padding: 36px 30px; border: 1px solid var(--line); border-radius: 2px; background: var(--ivory);
  transition: border-color .35s ease, transform .35s var(--ease);
}
.service-card:hover{ border-color: var(--brass); transform: translateY(-4px); }
.service-card-mark{ font-family: var(--font-display); font-style: italic; font-size: 1.9rem; color: var(--brass-deep); display: block; margin-bottom: 18px; }
.service-card h3{ font-family: var(--font-display); font-weight: 500; font-size: 21px; margin-bottom: 10px; }
.service-card p{ font-size: 14.5px; color: var(--ink-soft); line-height: 1.6; }
@media (max-width: 900px){ .services-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){ .services-grid{ grid-template-columns: 1fr; } }

/* ---- Story cards grid (Success Stories page) ---- */
.stories-cards-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.story-card{
  display: block; border-radius: 2px; overflow: hidden; border: 1px solid var(--line);
  background: var(--ivory); transition: transform .35s var(--ease), border-color .35s ease;
}
.story-card:hover{ transform: translateY(-4px); border-color: var(--brass); }
.story-card-media{ aspect-ratio: 4/3; overflow: hidden; background: var(--pine-mid); }
.story-card-media img{ width: 100%; height: 100%; object-fit: cover; filter: saturate(1.05) brightness(1.1); transition: transform .5s var(--ease); }
.story-card:hover .story-card-media img{ transform: scale(1.05); }
.story-card-body{ padding: 22px 22px 24px; }
.story-card-country{ font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--brass-deep); }
.story-card h3{ font-family: var(--font-display); font-weight: 500; font-size: 19px; margin: 10px 0 5px; }
.story-card-uni{ font-size: 13px; color: var(--ink-soft); }
@media (max-width: 900px){ .stories-cards-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){ .stories-cards-grid{ grid-template-columns: 1fr; } }

/* ---- Story detail ---- */
.story-detail-meta{ display: flex; flex-wrap: wrap; gap: 10px 30px; margin: 24px 0 36px; }
.story-detail-meta div strong{
  display: block; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--brass-deep); margin-bottom: 4px; font-weight: 600;
}
.story-detail-meta div span{ font-size: 14.5px; color: var(--ink); }
.story-video{
  position: relative; width: 100%; aspect-ratio: 16/9; border-radius: 2px;
  overflow: hidden; background: var(--ink); margin-bottom: 44px;
}
.story-video iframe{ position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.story-content{ max-width: 720px; font-size: 16.5px; line-height: 1.8; color: var(--ink-soft); }
.story-content p + p{ margin-top: 20px; }

/* ---- Forms (register + admin share these) ---- */
.form-field{ margin-bottom: 22px; display: flex; flex-direction: column; gap: 7px; }
.form-field label{ font-size: 13px; font-weight: 600; letter-spacing: .01em; color: var(--ink); }
.form-field input, .form-field textarea, .form-field select{
  font-family: var(--font-body); font-size: 15px; padding: 13px 16px;
  border: 1px solid var(--line); border-radius: 2px; background: var(--ivory);
  color: var(--ink); transition: border-color .25s ease; width: 100%;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus{ outline: none; border-color: var(--brass); }
.form-field textarea{ resize: vertical; min-height: 100px; }
.form-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 560px){ .form-row{ grid-template-columns: 1fr; } }
.form-error{ font-size: 12.5px; color: var(--validation-error); display: none; }
.form-field.has-error input, .form-field.has-error textarea{ border-color: var(--validation-error); }
.form-field.has-error .form-error{ display: block; }
.form-status{ padding: 15px 18px; border-radius: 2px; font-size: 14px; margin-bottom: 26px; display: none; }
.form-status.is-visible{ display: block; }
.form-status.is-success{ background: var(--success-bg); color: var(--success-text); }
.form-status.is-error{ background: var(--danger-bg); color: var(--danger-text); }
.btn:disabled{ opacity: .55; cursor: not-allowed; pointer-events: none; }
.form-card{ background: var(--ivory); border: 1px solid var(--line); border-radius: 4px; padding: clamp(28px,4vw,44px); max-width: 560px; }

/* ---- Simple centered page (Thank You / 404) ---- */
.simple-page{
  min-height: 74vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 170px var(--gutter) 100px;
}
.simple-page-mark{ font-family: var(--font-display); font-style: italic; font-size: 15px; color: var(--brass); margin-bottom: 26px; }
.simple-page h1{ font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 5vw, 3.4rem); }
.simple-page h1 em{ color: var(--brass); font-style: italic; }
.simple-page p{ margin: 18px auto 0; max-width: 480px; color: var(--ink-soft); font-size: 16px; }
.simple-page-actions{ margin-top: 36px; display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }

/* ---- Loading / empty / error states for dynamic content ---- */
.state-block{ text-align: center; padding: 60px 20px; color: var(--ink-soft); font-size: 14.5px; grid-column: 1 / -1; }
.skeleton{
  background: linear-gradient(90deg, var(--line-on-pine) 25%, rgba(255,255,255,.55) 50%, var(--line-on-pine) 75%);
  background-size: 200% 100%; animation: skeletonShine 1.4s ease-in-out infinite; border-radius: 2px;
}
.skeleton-card{ height: 240px; }
@keyframes skeletonShine{ 0%{ background-position: 200% 0; } 100%{ background-position: -200% 0; } }

/* ============================================================
   ADMIN PANEL
   ============================================================ */
.admin-body{ background: var(--ivory-deep); min-height: 100vh; }

.login-shell{ min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--pine); padding: 40px var(--gutter); }
.login-card{ background: var(--ivory); border-radius: 5px; padding: 44px clamp(28px,4vw,52px) 48px; width: 100%; max-width: 420px; }
.login-logo{ display: flex; justify-content: center; margin-bottom: 6px; }
.login-logo img{ width: 168px; height: auto; }
.login-title{ font-family: var(--font-display); font-weight: 400; font-size: 1.7rem; text-align: center; margin: 4px 0 4px; color: var(--ink); }
.login-sub{ text-align: center; font-size: 13.5px; color: var(--ink-soft); margin-bottom: 30px; }
.login-card .btn{ width: 100%; justify-content: center; margin-top: 8px; }
.login-back{ display: block; text-align: center; margin-top: 22px; font-size: 13px; color: var(--ink-soft); }
.login-back:hover{ color: var(--brass-deep); }

.admin-shell{ display: flex; min-height: 100vh; }
.admin-sidebar{
  width: 264px; flex-shrink: 0; background: var(--pine); padding: 30px 22px;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-sidebar-logo{ padding: 0 6px; margin-bottom: 2px; }
.admin-sidebar-logo img{ width: 130px; height: auto; }
.admin-sidebar-tag{ font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--brass-deep); font-weight: 600; padding: 6px 6px 26px; }
.admin-nav{ display: flex; flex-direction: column; gap: 3px; flex: 1; }
.admin-nav a{
  padding: 12px 14px; border-radius: 3px; font-size: 14px; font-weight: 500;
  color: rgba(46,42,34,0.68); display: flex; align-items: center; gap: 11px;
  transition: background .25s ease, color .25s ease;
}
.admin-nav a:hover{ background: var(--pine-deep); color: var(--ink); }
.admin-nav a.is-active{ background: var(--blue-deep); color: var(--ivory); }
.admin-nav-icon{ font-family: var(--font-display); font-style: italic; font-size: 15px; width: 18px; text-align: center; flex-shrink: 0; }
.admin-sidebar-footer{ border-top: 1px solid var(--line-on-pine); padding-top: 18px; margin-top: 18px; }
.admin-sidebar-admin{ font-size: 13px; color: var(--ink-soft); margin-bottom: 12px; padding: 0 6px; }
.admin-sidebar-admin strong{ display: block; color: var(--ink); font-size: 14px; }
.admin-logout-btn{
  width: 100%; text-align: left; padding: 11px 14px; border-radius: 3px; font-size: 13.5px;
  font-weight: 600; color: var(--brass-deep); border: 1px solid var(--line-on-pine); background: transparent;
  transition: background .25s ease, color .25s ease;
}
.admin-logout-btn:hover{ background: var(--blue-deep); color: var(--ivory); border-color: var(--blue-deep); }

.admin-main{ flex: 1; min-width: 0; padding: 40px clamp(24px,4vw,56px) 80px; }
.admin-topbar{ display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 32px; flex-wrap: wrap; }
.admin-eyebrow{ margin-bottom: 10px; }
.admin-title{ font-family: var(--font-display); font-weight: 400; font-size: clamp(1.6rem,2.6vw,2.1rem); color: var(--ink); }
.admin-topbar-actions{ display: flex; gap: 12px; flex-wrap: wrap; }

.admin-card{ background: var(--ivory); border: 1px solid var(--line); border-radius: 4px; }
.admin-card-pad{ padding: 30px clamp(20px,3vw,34px); }
/* Pages that stack several cards (filters + table, or an application's
   overview/stage/history/answers sections) get consistent spacing without
   each page repeating its own inline margin. */
.admin-card + .admin-card{ margin-top: 24px; }

.stat-grid{ display: grid; grid-template-columns: repeat(auto-fit, minmax(210px,1fr)); gap: 20px; margin-bottom: 36px; }
.stat-card{ background: var(--ivory); border: 1px solid var(--line); border-radius: 4px; padding: 26px 26px 24px; transition: border-color .3s ease; }
.stat-card:hover{ border-color: var(--brass); }
.stat-card-num{ font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 2.1rem; color: var(--brass-deep); display: block; }
.stat-card-label{ font-size: 13px; color: var(--ink-soft); margin-top: 8px; }
.stat-card-link{ display: inline-block; margin-top: 16px; font-size: 12.5px; font-weight: 600; color: var(--blue-deep); }
.stat-card-link:hover{ color: var(--brass-deep); }

.table-toolbar{ display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px clamp(20px,3vw,34px); flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.table-search{ max-width: 320px; flex: 1; min-width: 200px; }
.table-search input{ width: 100%; font-family: var(--font-body); font-size: 14px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 2px; background: var(--ivory); }
.table-search input:focus{ outline: none; border-color: var(--brass); }

.table-scroll{ overflow-x: auto; }
.admin-table{ width: 100%; border-collapse: collapse; min-width: 640px; }
.admin-table th{
  text-align: left; font-size: 10.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
  color: var(--ink-soft); padding: 14px clamp(20px,3vw,34px); border-bottom: 2px solid var(--line); white-space: nowrap;
}
.admin-table td{ padding: 16px clamp(20px,3vw,34px); border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: middle; }
.admin-table tbody tr{ transition: background .2s ease; }
.admin-table tbody tr:hover{ background: var(--pine-mid); }
.admin-table tbody tr:last-child td{ border-bottom: none; }
.cell-primary{ font-weight: 600; color: var(--ink); }
.cell-muted{ color: var(--ink-soft); }
.cell-actions{ display: flex; gap: 12px; align-items: center; white-space: nowrap; }
.table-action{ font-size: 12.5px; font-weight: 600; color: var(--blue-deep); }
.table-action:hover{ color: var(--brass-deep); }
.table-action.is-danger{ color: var(--danger-text); }
.table-action.is-danger:hover{ color: var(--danger-text-hover); }
.thumb-cell{ width: 44px; height: 44px; border-radius: 3px; object-fit: cover; display: block; background: var(--pine-mid); }

.status-badge{ display: inline-flex; align-items: center; padding: 5px 11px; border-radius: 20px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; border: none; }
.status-badge.is-active{ background: var(--success-bg); color: var(--success-text); }
.status-badge.is-inactive{ background: var(--danger-bg); color: var(--danger-text); }
button.status-badge{ cursor: pointer; transition: opacity .2s ease; font-family: var(--font-body); }
button.status-badge:hover{ opacity: .78; }

/* Modal (create/edit forms) */
.modal-overlay{
  position: fixed; inset: 0; background: rgba(46,42,34,0.5); z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.modal-overlay.is-open{ opacity: 1; pointer-events: auto; }
.modal-box{
  background: var(--ivory); border-radius: 5px; width: 100%; max-width: 600px;
  max-height: 90vh; overflow-y: auto; padding: 34px clamp(24px,4vw,40px) 36px;
  transform: translateY(18px); transition: transform .35s var(--ease);
}
.modal-overlay.is-open .modal-box{ transform: translateY(0); }
.modal-head{ display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 26px; }
.modal-title{ font-family: var(--font-display); font-weight: 500; font-size: 22px; color: var(--ink); }
.modal-close{ font-size: 26px; line-height: 1; color: var(--ink-soft); padding: 2px 6px; }
.modal-close:hover{ color: var(--ink); }
.modal-actions{ display: flex; justify-content: flex-end; gap: 14px; margin-top: 10px; }

.empty-state{ text-align: center; padding: 70px 24px; grid-column: 1 / -1; }
.empty-state-title{ font-family: var(--font-display); font-style: italic; font-size: 19px; color: var(--ink); margin-bottom: 8px; }
.empty-state p{ color: var(--ink-soft); font-size: 14px; }

.detail-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.detail-field{ padding: 16px 0; border-bottom: 1px solid var(--line); }
.detail-field strong{ display: block; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--brass-deep); margin-bottom: 6px; font-weight: 600; }
.detail-field span{ font-size: 15px; color: var(--ink); }
@media (max-width: 640px){ .detail-grid{ grid-template-columns: 1fr; } }

.admin-mobile-bar{
  display: none; position: fixed; top: 0; left: 0; right: 0; z-index: 800;
  background: rgba(246,241,230,0.94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); padding: 16px 20px; align-items: center; justify-content: space-between;
}
.admin-mobile-bar img{ height: 32px; width: auto; }
.admin-mobile-toggle{ font-size: 22px; padding: 4px 10px; }
.admin-sidebar-scrim{ display: none; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 850; }
.admin-sidebar-scrim.is-open{ display: block; }

@media (max-width: 980px){
  .admin-sidebar{ position: fixed; left: 0; top: 0; z-index: 900; transform: translateX(-100%); transition: transform .3s ease; box-shadow: 8px 0 30px rgba(0,0,0,0.15); }
  .admin-sidebar.is-open{ transform: translateX(0); }
  .admin-main{ padding: 88px 20px 60px; }
  .admin-mobile-bar{ display: flex; }
  .detail-grid{ grid-template-columns: 1fr; }
}

/* ============================================================
   DYNAMIC REGISTRATION FIELDS (Get Started — Phase 3)
   ============================================================ */
.form-help{ font-size: 12.5px; color: var(--ink-soft); margin-top: -2px; }

.form-field .field-option-group{ display: flex; flex-direction: column; gap: 10px; }
.form-field .field-option{ font-size: 14.5px; font-weight: 400; color: var(--ink); display: flex; align-items: center; gap: 8px; cursor: pointer; }
.form-field .field-option input{ width: auto; }

.ranked-list-input-row{ display: flex; gap: 10px; }
.ranked-list-input-row input{ flex: 1; }
.ranked-list-add{ padding: 12px 20px; white-space: nowrap; }
.ranked-list{ margin: 14px 0 0; padding: 0; list-style: none; counter-reset: ranked; }
.ranked-list-item{
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 14px; border: 1px solid var(--line); border-radius: 2px;
  margin-bottom: 8px; background: var(--ivory); counter-increment: ranked;
}
.ranked-list-item span::before{ content: counter(ranked) ". "; font-weight: 600; color: var(--brass-deep); }
.ranked-list-controls{ display: flex; gap: 6px; flex-shrink: 0; }
.ranked-list-controls button{
  width: 26px; height: 26px; border: 1px solid var(--line); border-radius: 2px;
  font-size: 13px; line-height: 1; background: var(--ivory); transition: border-color .2s ease;
}
.ranked-list-controls button:hover{ border-color: var(--brass); }

/* ============================================================
   STUDENT DASHBOARD — phase progress stepper
   ============================================================ */
.phase-steps{ display: flex; align-items: flex-start; margin: 28px 0 8px; }
.phase-step{ flex: 1; min-width: 0; text-align: center; position: relative; padding-top: 4px; }
.phase-step::before{ content: ''; position: absolute; top: 7px; left: -50%; width: 100%; height: 2px; background: var(--line); z-index: 0; }
.phase-step:first-child::before{ display: none; }
.phase-step-dot{
  display: block; width: 16px; height: 16px; border-radius: 50%; background: var(--line);
  margin: 0 auto 10px; position: relative; z-index: 1; border: 2px solid var(--ivory);
}
.phase-step-label{ font-size: 12px; color: var(--ink-soft); display: block; padding: 0 4px; }
.phase-step.is-done .phase-step-dot{ background: var(--brass); }
.phase-step.is-done::before{ background: var(--brass); }
.phase-step.is-current .phase-step-dot{ background: var(--blue-deep); box-shadow: 0 0 0 4px var(--pine-mid); }
.phase-step.is-current .phase-step-label{ color: var(--ink); font-weight: 600; }
.phase-step.is-closed .phase-step-dot{ background: var(--danger-text); }
@media (max-width: 700px){
  .phase-steps{ flex-direction: column; align-items: flex-start; gap: 14px; }
  .phase-step::before{ display: none; }
  .phase-step{ text-align: left; display: flex; align-items: center; gap: 10px; padding-top: 0; }
  .phase-step-dot{ margin: 0; }
}
