/* ==========================================================================================
   Compass Afar -- marketing site (v4). Plain CSS, no build step.
   Colours, fonts, radii and shadows are copied from the app's frontend/theme.css so the site and
   the app read as one brand. If the app's palette changes, change the tokens below to match.
   Motion is transform / opacity (one exception: the entry wordmark's blur-to-sharp), and all of
   it is switched off under prefers-reduced-motion (the block at the end of this file).
   This file's name carries a version: see the note in index.html before changing it.
   ========================================================================================== */
/* ---- typefaces: the app's own (frontend/vendor/fonts), served from /fonts. No request to Google Fonts. ---- */
@font-face{
  font-family: "Fraunces"; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url("/fonts/fraunces-latin-var.woff2") format("woff2");
}
@font-face{
  font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("/fonts/manrope-latin-var.woff2") format("woff2");
}
@font-face{
  font-family: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/fonts/ibm-plex-mono-latin-600.woff2") format("woff2");
}

:root{
  color-scheme: light dark;
  --p2: #fdf6f9; --p3: #fbeaf1; --p4: #f9deea; --p5: #f7d2e4;
  --page: var(--p2);
  --page-rgb: 253, 246, 249;
  --surface: #ffffff;
  --border: var(--p4);
  --border-strong: #e98bbd;
  --accent: #e85a99;
  --accent-deep: #c93e7d;
  --accent-rgb: 201, 62, 125;
  --link: #ad3269;
  --btn-bg: #c93e7d; --btn-ink: #ffffff;
  --ink: #241820;
  --ink-soft: #6f5963;
  --ink-faint: #a98da0;
  --phone: #241820;
  --shot-top: #faf5f8; /* the app's header colour: the strip of phone above a screenshot */
  --ink-rgb: 36, 16, 25;

  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --radius-l: 28px; --radius-m: 16px; --radius-s: 10px; --radius-pill: 999px;
  --shadow-card: 0 8px 20px -14px rgba(var(--ink-rgb), .28);
  --shadow-float: 0 24px 48px -24px rgba(var(--ink-rgb), .38);
  --shadow-accent: 0 10px 24px -10px rgba(var(--accent-rgb), .55);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --gutter: 24px;
  --section: 80px;
  --measure: 66ch;
}
@media (prefers-color-scheme: dark){
  :root{
    --p2: #1e161b; --p3: #271b22; --p4: #33232c; --p5: #452c3a;
    --page: #171114;
    --page-rgb: 23, 17, 20;
    --surface: #1c1418;
    --border: #3a2830;
    --border-strong: #b34e83;
    --accent: #f0679f;
    --accent-deep: #f388b3;
    --accent-rgb: 240, 103, 159;
    --link: #f388b3;
    --btn-bg: #f0679f; --btn-ink: #2a0b18;
    --ink: #f6ecf0;
    --ink-soft: #cba9b8;
    --ink-faint: #8d6e7a;
    --phone: #0b0709;
    --ink-rgb: 0, 0, 0;
    --shadow-card: 0 8px 20px -14px rgba(0,0,0,.6);
    --shadow-float: 0 24px 48px -24px rgba(0,0,0,.8);
    --shadow-accent: 0 10px 24px -12px rgba(240, 103, 159, .45);
  }
}

*,*::before,*::after{ box-sizing: border-box; }
html{ -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }
body{
  margin: 0; background: var(--page); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
img,svg{ max-width: 100%; display: block; }
a{ color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover{ text-decoration-thickness: 2px; }
button{ font: inherit; color: inherit; }
:focus-visible{ outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1,h2,h3{ font-family: var(--font-display); font-weight: 600; line-height: 1.05; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
p{ margin: 0; }

.wrap{
  width: 100%; max-width: 1168px; margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right));
}
.skip{ position: absolute; left: -9999px; top: 0; background: var(--surface); padding: 10px 14px; border-radius: var(--radius-s); z-index: 110; }
.skip:focus{ left: var(--gutter); top: 10px; }
.sprite{ position: absolute; width: 0; height: 0; overflow: hidden; }
.vh{ position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.icon{ flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.eyebrow{ font: 600 .8125rem/1.3 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--link); }

/* ---- buttons ---- */
.btn{
  display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-height: 56px; padding: 0 28px;
  border: 0; cursor: pointer; background: var(--btn-bg); color: var(--btn-ink); border-radius: var(--radius-pill);
  font: 700 1.0625rem/1 var(--font-sans); text-decoration: none; white-space: nowrap; box-shadow: var(--shadow-accent);
  transition: transform .2s var(--ease-out);
}
.btn .arrow{ transition: transform .2s var(--ease-out); }
.btn:hover{ transform: translateY(-2px); }
.btn:hover .arrow{ transform: translateX(4px); }
.btn:active{ transform: scale(.97); }
.btn:focus-visible{ border-radius: var(--radius-pill); }
.btn-invert{ background: var(--btn-ink); color: var(--btn-bg); box-shadow: 0 12px 28px -14px rgba(var(--ink-rgb), .55); }
.btn-ghost{ background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--border-strong); }
.btn-ghost:hover{ background: var(--p3); }

/* ---- the compass dial: same geometry and colours as the app's logo (frontend/compass.js) ---- */
.dial{ overflow: visible; }
.face{ fill: var(--surface); stroke: var(--border-strong); }
.tick{ stroke: var(--border-strong); }
.cardinal{ stroke: var(--ink-soft); }
.north{ stroke: var(--accent); }
.inner{ fill: none; stroke: var(--border); }
.letter{ font: 600 7.5px var(--font-mono); fill: var(--ink-soft); }
.letter-n{ fill: var(--accent-deep); }
.needle{ transform-origin: 50px 50px; transform: rotate(var(--needle, 0deg)); }
.needle-n{ fill: var(--accent); }
.needle-s{ fill: var(--ink-faint); opacity: .7; }
.pivot{ fill: var(--surface); stroke: var(--accent-deep); }
/* the idle needle: a slow sway around its resting angle (until the cursor or the phone's tilt takes over: .live) */
@keyframes sway{
  0%, 100%{ transform: rotate(24deg); }
  30%{ transform: rotate(31deg); }
  70%{ transform: rotate(18deg); }
}

/* ==========================================================================================
   ENTRY SCREEN (landing page, first visit of a session). The app's launch look: the dial on
   the brand pink. The ticks draw in clockwise, the needle swings and settles north, the
   wordmark arrives letter by letter, then the tagline and the Explore button (in by 2 s).
   Explore / scroll / Enter: the needle snaps north, the dial flies to the header logo and the
   screen slides up. site.v4.js adds html.entry-on before first paint, then html.entry-out.
   ========================================================================================== */
html.entry-on{ overflow: hidden; }
html.entry-on .entry{ display: block; }
.entry{ position: fixed; inset: 0; z-index: 100; }
.entry-bg{
  position: absolute; inset: 0;
  background: radial-gradient(90% 70% at 50% 38%, rgba(255,255,255,.2), rgba(255,255,255,0) 70%), var(--btn-bg);
  transition: transform .65s cubic-bezier(.65, 0, .35, 1);
}
.entry-stage{
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 24px max(24px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
  text-align: center; color: var(--btn-ink);
}
.entry-compass{
  width: clamp(160px, 46vw, 200px);
  transform: translate(var(--fx, 0px), var(--fy, 0px)) scale(var(--fs, 1));
  transition: transform .6s var(--ease-out); will-change: transform;
}
.entry-compass svg{ width: 100%; height: auto; filter: drop-shadow(0 18px 30px rgba(var(--ink-rgb), .28)); }
.entry .face{ transform-origin: 50px 50px; animation: e-face .5s var(--ease-out) both; }
.entry .tick{ animation: e-fade .25s ease both; }
.entry .tick:nth-child(1){ animation-delay: 60ms; } .entry .tick:nth-child(2){ animation-delay: 78ms; } .entry .tick:nth-child(3){ animation-delay: 96ms; } .entry .tick:nth-child(4){ animation-delay: 114ms; } .entry .tick:nth-child(5){ animation-delay: 132ms; } .entry .tick:nth-child(6){ animation-delay: 150ms; } .entry .tick:nth-child(7){ animation-delay: 168ms; } .entry .tick:nth-child(8){ animation-delay: 186ms; } .entry .tick:nth-child(9){ animation-delay: 204ms; } .entry .tick:nth-child(10){ animation-delay: 222ms; } .entry .tick:nth-child(11){ animation-delay: 240ms; } .entry .tick:nth-child(12){ animation-delay: 258ms; } .entry .tick:nth-child(13){ animation-delay: 276ms; } .entry .tick:nth-child(14){ animation-delay: 294ms; } .entry .tick:nth-child(15){ animation-delay: 312ms; } .entry .tick:nth-child(16){ animation-delay: 330ms; } .entry .tick:nth-child(17){ animation-delay: 348ms; } .entry .tick:nth-child(18){ animation-delay: 366ms; } .entry .tick:nth-child(19){ animation-delay: 384ms; } .entry .tick:nth-child(20){ animation-delay: 402ms; } .entry .tick:nth-child(21){ animation-delay: 420ms; } .entry .tick:nth-child(22){ animation-delay: 438ms; } .entry .tick:nth-child(23){ animation-delay: 456ms; } .entry .tick:nth-child(24){ animation-delay: 474ms; }
.entry .inner{ animation: e-fade .4s ease .45s both; }
.entry .letter{ animation: e-fade .4s ease .55s both; }
.entry .needle{ animation: e-needle 1.15s ease-in-out .2s both; }
.entry .dial.live .needle{ animation: none; }
.entry.snap .needle{ transition: transform .2s var(--ease-out); }
.entry-text{ display: flex; flex-direction: column; align-items: center; transition: opacity .25s ease; }
.entry-word{ margin-top: 32px; font: 600 clamp(2.75rem, 12vw, 4.25rem)/1.05 var(--font-display); letter-spacing: .005em; }
.entry-word .ch{ display: inline-block; animation: e-ch .5s var(--ease-out) both; }
.entry-word .sp{ width: .26em; }
.entry-word .ch:nth-child(1){ animation-delay: 700ms; } .entry-word .ch:nth-child(2){ animation-delay: 736ms; } .entry-word .ch:nth-child(3){ animation-delay: 772ms; } .entry-word .ch:nth-child(4){ animation-delay: 808ms; } .entry-word .ch:nth-child(5){ animation-delay: 844ms; } .entry-word .ch:nth-child(6){ animation-delay: 880ms; } .entry-word .ch:nth-child(7){ animation-delay: 916ms; } .entry-word .ch:nth-child(8){ animation-delay: 952ms; } .entry-word .ch:nth-child(9){ animation-delay: 988ms; } .entry-word .ch:nth-child(10){ animation-delay: 1024ms; } .entry-word .ch:nth-child(11){ animation-delay: 1060ms; } .entry-word .ch:nth-child(12){ animation-delay: 1096ms; }
.entry-tag{ margin-top: 16px; font-size: 1.125rem; line-height: 1.5; max-width: 40ch; text-wrap: balance; animation: e-rise .45s var(--ease-out) 1.25s both; }
.entry-go{ margin-top: 32px; animation: e-pop .5s var(--ease-spring) 1.5s both; }
@keyframes e-face{ from{ opacity: 0; transform: scale(.82); } }
@keyframes e-fade{ from{ opacity: 0; } }
@keyframes e-needle{
  0%{ opacity: 0; transform: rotate(-200deg); }
  12%{ opacity: 1; }
  55%{ transform: rotate(18deg); }
  75%{ transform: rotate(-8deg); }
  90%{ transform: rotate(3deg); }
  100%{ opacity: 1; transform: rotate(0deg); }
}
@keyframes e-ch{ from{ opacity: 0; transform: translateY(.45em); filter: blur(6px); } to{ opacity: 1; transform: none; filter: blur(0); } }
@keyframes e-rise{ from{ opacity: 0; transform: translateY(12px); } }
@keyframes e-pop{ from{ opacity: 0; transform: scale(.7); } }
html.entry-out .entry{ pointer-events: none; }
html.entry-out .entry-bg{ transform: translateY(-100%); }
html.entry-out .entry-text{ opacity: 0; }
html.entry-on .brand-dial{ opacity: 0; }   /* the flying dial lands here, then this one takes over */

/* ---- header ---- */
.site-header{
  position: sticky; top: 0; z-index: 50; padding-top: env(safe-area-inset-top);
  background: rgba(var(--page-rgb), .82); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
}
.site-header::after{ content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--border); opacity: 0; transition: opacity .3s ease; }
.site-header.scrolled::after{ opacity: 1; }
.site-header .wrap{ display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 16px; min-height: 64px; }
.brand{ display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); text-decoration: none; font: 600 1.25rem/1 var(--font-display); letter-spacing: -.01em; }
.brand-dial{ width: 30px; height: 30px; }
.brand-dial .face{ stroke: var(--accent); }
.site-nav{ display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.site-nav a{
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: var(--radius-pill);
  color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: .9375rem;
}
.site-nav a:hover, .site-nav a[aria-current="true"]{ color: var(--ink); }
.site-nav a:not(.nav-cta)::after{
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 7px; height: 2px; border-radius: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease-out);
}
.site-nav a[aria-current="true"]::after{ transform: scaleX(1); }
.site-nav .nav-cta{ margin-left: 8px; padding: 0 20px; background: var(--btn-bg); color: var(--btn-ink); transition: transform .2s var(--ease-out); }
.site-nav .nav-cta:hover{ color: var(--btn-ink); transform: translateY(-2px); }
.site-nav .nav-cta[aria-current="true"]{ color: var(--btn-ink); }
.menu-btn{ display: none; }
@media (max-width: 719px){
  .js .menu-btn{
    display: inline-grid; place-items: center; width: 44px; height: 44px; margin-right: -10px; padding: 0;
    border: 0; border-radius: 12px; background: none; color: var(--ink); cursor: pointer;
  }
  .js .menu-btn:hover{ background: var(--p3); }
  .js .site-nav{
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 4px max(var(--gutter), env(safe-area-inset-right)) 20px max(var(--gutter), env(safe-area-inset-left));
    background: var(--page); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-float);
    opacity: 0; transform: translateY(-8px); visibility: hidden;
    transition: opacity .2s ease, transform .25s var(--ease-out), visibility 0s linear .25s;
  }
  .js .site-nav.open{ opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
  .js .site-nav a{ min-height: 52px; padding: 0 4px; font-size: 1.0625rem; border-radius: 0; }
  .js .site-nav a:not(.nav-cta)::after{ display: none; }
  .js .site-nav .nav-cta{ margin: 12px 0 0; justify-content: center; border-radius: var(--radius-pill); }
}

/* ---- hero ---- */
.hero{ position: relative; isolation: isolate; padding-block: 24px var(--section); }
.hero-bg{ position: absolute; inset: -80px 0 0; z-index: -1; overflow: hidden; pointer-events: none; }
.hero-bg::after{ content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(var(--page-rgb), 0) 55%, var(--page)); }
/* the gradient: three soft blobs of the brand pinks, drifting slowly (transform only) */
.blob{ position: absolute; width: clamp(420px, 62vw, 900px); aspect-ratio: 1; border-radius: 50%; will-change: transform; }
.blob.a{ left: -18%; top: -30%; background: radial-gradient(closest-side, rgba(var(--accent-rgb), .26), rgba(var(--accent-rgb), 0)); animation: drift-a 18s ease-in-out infinite alternate; }
.blob.b{ right: -22%; top: -12%; background: radial-gradient(closest-side, rgba(232, 128, 174, .32), rgba(232, 128, 174, 0)); animation: drift-b 20s ease-in-out infinite alternate; }
.blob.c{ left: 22%; top: 30%; background: radial-gradient(closest-side, rgba(247, 210, 228, .7), rgba(247, 210, 228, 0)); animation: drift-c 16s ease-in-out infinite alternate; }
@media (prefers-color-scheme: dark){
  .blob.b{ background: radial-gradient(closest-side, rgba(162, 78, 123, .34), rgba(162, 78, 123, 0)); }
  .blob.c{ background: radial-gradient(closest-side, rgba(69, 44, 58, .8), rgba(69, 44, 58, 0)); }
}
@keyframes drift-a{ to{ transform: translate(14%, 12%) scale(1.15); } }
@keyframes drift-b{ to{ transform: translate(-16%, 14%) scale(.9); } }
@keyframes drift-c{ to{ transform: translate(10%, -16%) scale(1.2); } }

.hero .wrap{ display: grid; gap: 32px; }
.hero-visual{ order: -1; }
.hero-compass{ width: min(40vw, 168px); border-radius: 50%; }
.hero-dial{ width: 100%; height: auto; --needle: 24deg; filter: drop-shadow(0 16px 28px rgba(var(--ink-rgb), .18)); }
.hero-dial .needle{ animation: sway 7s ease-in-out infinite; }
.hero-dial.live .needle{ animation: none; }
.tilt-hint{ margin-top: 12px; font-size: .875rem; color: var(--ink-soft); }
.hero h1{ font-size: clamp(2.625rem, 1.55rem + 4.6vw, 4.5rem); font-weight: 700; letter-spacing: -.025em; }
.hero h1 .hl{ display: block; color: var(--accent-deep); }
.hero .sub{ margin-top: 24px; font-size: clamp(1.125rem, 1.05rem + .3vw, 1.25rem); line-height: 1.6; color: var(--ink-soft); max-width: 34ch; }
.actions{ margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 479px){ .actions .btn{ flex: 1 1 100%; } }
.trust{ margin-top: 16px; font-size: .875rem; font-weight: 600; color: var(--ink-soft); }
.beta-pill{
  display: inline-flex; align-items: center; gap: 8px; min-height: 32px; margin-bottom: 20px; padding: 0 14px; border-radius: var(--radius-pill);
  background: var(--p3); border: 1px solid var(--border); color: var(--link); font: 600 .75rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase;
}
.beta-pill::before{ content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.chips{ list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip{
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: var(--radius-pill);
  background: rgba(var(--page-rgb), .7); border: 1px solid var(--border); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9375rem;
  transition: transform .2s var(--ease-out);
}
.chip .icon{ color: var(--link); }
.chip:hover{ transform: translateY(-2px); border-color: var(--border-strong); }
.chip:active{ transform: scale(.97); }
/* the hero arrives once the entry screen has gone (html.ready) */
.js .hero-copy > *, .js .hero-visual{ opacity: 0; transform: translateY(16px); }
html.ready .hero-copy > *, html.ready .hero-visual{ opacity: 1; transform: none; transition: opacity .6s ease-out, transform .6s var(--ease-out); }
html.ready .hero-copy > :nth-child(2){ transition-delay: 80ms; }
html.ready .hero-copy > :nth-child(3){ transition-delay: 160ms; }
html.ready .hero-copy > :nth-child(4){ transition-delay: 240ms; }
html.ready .hero-copy > :nth-child(5){ transition-delay: 320ms; }
html.ready .hero-copy > :nth-child(6){ transition-delay: 400ms; }
html.ready .hero-visual{ transition-delay: 120ms; }

/* ---- marquee: Madrid places and universities in ghost type, two rows in opposite directions ---- */
.marquee{ padding-block: 8px; overflow: hidden; display: grid; gap: 4px; }
.mq-row{ overflow: hidden; }
.mq-track{ display: flex; width: max-content; will-change: transform; }
.mq-track span{ flex: none; font: 600 clamp(2.75rem, 9vw, 6rem)/1.15 var(--font-display); letter-spacing: -.02em; color: var(--p5); white-space: nowrap; }
.mq-track span::after{ content: "·"; margin-inline: .3em; }
@supports (-webkit-text-stroke: 1px black){
  .mq-track span{ color: transparent; -webkit-text-stroke: 1.25px var(--border-strong); }
}
.mq-row.run .mq-track{ animation: mq 60s linear infinite; }
.mq-row.rev.run .mq-track{ animation-direction: reverse; }
.marquee:hover .mq-track, .marquee.off .mq-track{ animation-play-state: paused; }
@keyframes mq{ to{ transform: translateX(-50%); } }

/* ---- sections ---- */
.section{ padding-block: var(--section) 0; }
.section-head h2{ font-size: clamp(2.25rem, 1.9rem + 1.6vw, 2.75rem); margin-top: 12px; }
.closing{ padding-bottom: var(--section); }
/* scroll reveals (site.v4.js adds .in; 80 ms apart within one batch). Without JS nothing is hidden. */
.reveal{ transition: opacity .5s ease-out, transform .5s var(--ease-out); }
.js .reveal{ opacity: 0; transform: translateY(16px); }
.js .reveal.in{ opacity: 1; transform: none; }
/* headings: a mask wipe (the line rises out of a clipped box) */
.wipe{ display: block; overflow: hidden; padding-bottom: .14em; }
.wipe > span{ display: block; transition: transform .7s var(--ease-out); }
.js .wipe > span{ transform: translateY(112%); }
.js .wipe.in > span{ transform: none; }

/* ---- features: the app's screens, then the groups (tabs) and their cards ---- */
/* The screens: pictures of the live app inside the phone frame (not illustrations). They swipe sideways on a phone and sit four across on a wide screen. */
.shots{
  list-style: none; margin: 40px calc(var(--gutter) * -1) 0; padding: 4px var(--gutter) 28px;
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none;
}
.shots::-webkit-scrollbar{ display: none; }
.shots li{ flex: 0 0 min(62vw, 236px); scroll-snap-align: start; }
.shot{ margin: 0; }
.shot figcaption{ margin-top: 14px; text-align: center; font: 600 .875rem/1.3 var(--font-sans); color: var(--ink-soft); }
.phone{ width: 100%; padding: 9px; border-radius: 42px; background: var(--phone); box-shadow: var(--shadow-float), inset 0 0 0 1.5px rgba(255,255,255,.14); }
.screen{ position: relative; padding-top: 34px; border-radius: 33px; background: var(--shot-top); overflow: hidden; }
.screen::before{ content: ""; position: absolute; top: 10px; left: 50%; width: 64px; height: 17px; margin-left: -32px; border-radius: var(--radius-pill); background: var(--phone); }
.screen img{ width: 100%; height: auto; }

.feat{ margin-top: 24px; display: grid; gap: 24px; }
html:not(.js) .tabs{ display: none; }
.tabs{ position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.tab{
  position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 76px; padding: 8px 2px; border: 0; border-radius: var(--radius-m); background: none; cursor: pointer;
  font: 600 .75rem/1.2 var(--font-sans); color: var(--ink-soft); text-align: center;
  transition: transform .2s var(--ease-out);
}
.tab:hover{ color: var(--ink); }
.tab:active{ transform: scale(.96); }
.tab[aria-selected="true"]{ color: var(--link); }
.tab:focus-visible{ border-radius: var(--radius-m); }
.tab-ind{
  position: absolute; left: 0; top: 0; z-index: 0; border-radius: var(--radius-m); background: var(--p3); box-shadow: inset 0 0 0 1px var(--border);
  transition: transform .35s var(--ease-out); pointer-events: none;
}
.tab-ind::before{ content: ""; position: absolute; left: 30%; right: 30%; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--accent); }

.panel{ background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-l); padding: 24px 16px 20px; box-shadow: var(--shadow-card); }
html:not(.js) .panel + .panel{ margin-top: 16px; }
.js .panel{ display: none; }
.js .panel.active{ display: block; animation: panel-in .3s var(--ease-out) both; }
@keyframes panel-in{ from{ opacity: 0; transform: translateY(12px); } }
.panel-title{ font-size: 1.5rem; line-height: 1.15; }
.panel-sub{ margin-top: 8px; color: var(--ink-soft); }
.fcards{ margin-top: 24px; display: grid; gap: 12px; }
.fcard{ padding: 20px 16px; border-radius: var(--radius-m); background: var(--p2); border: 1px solid var(--border); }
.fcard-head{ display: flex; align-items: center; gap: 12px; }
.fcard-ico{ flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--p3); color: var(--link); }
.fcard h4{ margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font: 600 1.1875rem/1.2 var(--font-display); letter-spacing: -.01em; }
.fcard p{ margin-top: 12px; color: var(--ink-soft); font-size: .9688rem; line-height: 1.5; }
.fcard .fcard-note{ margin-top: 8px; font-size: .8125rem; font-weight: 600; line-height: 1.4; color: var(--link); }
.new-tag{ display: inline-block; padding: 4px 8px; border-radius: var(--radius-pill); background: var(--btn-bg); color: var(--btn-ink); font: 600 .625rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.ticks{ list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 12px; }
.ticks li{ position: relative; padding-left: 32px; font-weight: 500; }
.ticks li::before{ content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%; background: var(--p3); }
.ticks li::after{ content: ""; position: absolute; left: 7px; top: calc(.2em + 5px); width: 6px; height: 9px; border: solid var(--link); border-width: 0 2px 2px 0; transform: rotate(42deg); }
.honest{ margin-top: 24px; font-size: .875rem; color: var(--ink-soft); max-width: var(--measure); }

/* ---- how it works ---- */
.steps{ list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 16px; }
.step{ position: relative; padding: 28px 24px 32px; border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-card); }
.num{ display: block; font: 600 3.5rem/1 var(--font-display); font-variant-numeric: tabular-nums; letter-spacing: -.02em; color: var(--p5); }
@supports (-webkit-text-stroke: 1px black){
  .num{ color: transparent; -webkit-text-stroke: 1.25px var(--border-strong); }
}
.step-ico{ position: absolute; top: 28px; right: 24px; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--p3); color: var(--link); }
.step h3{ margin-top: 24px; font-size: 1.5rem; line-height: 1.15; }
.step p{ margin-top: 8px; color: var(--ink-soft); }

/* ---- for study abroad programs ---- */
.programs-panel{
  display: grid; gap: 28px; padding: 32px 24px; border-radius: var(--radius-l);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-card);
}
.programs-panel h2{ font-size: clamp(2rem, 1.6rem + 1.6vw, 2.5rem); margin-top: 12px; }
.programs-copy p{ margin-top: 16px; color: var(--ink-soft); max-width: 52ch; }
.programs-copy p.eyebrow{ margin-top: 0; color: var(--link); }
.programs-cta{ display: grid; justify-items: start; align-content: center; gap: 12px; }
.programs-mail{ font-size: .9375rem; color: var(--ink-soft); overflow-wrap: anywhere; }

/* ---- final call to action ---- */
.cta-panel{
  background: var(--btn-bg); color: var(--btn-ink); border-radius: 32px; padding: 64px 24px;
  display: grid; justify-items: center; gap: 32px; text-align: center;
}
.cta-panel h2{ font-size: clamp(2.25rem, 1.5rem + 3.4vw, 4rem); }
.cta-panel h2 span{ display: block; }
.cta-note{ margin-top: -12px; font-size: .875rem; font-weight: 600; opacity: .9; }

/* ---- footer ---- */
.site-footer{ border-top: 1px solid var(--border); padding-block: 16px 24px; padding-bottom: max(24px, env(safe-area-inset-bottom)); color: var(--ink-soft); font-size: .875rem; }
.site-footer .wrap{ display: flex; flex-wrap: wrap; gap: 0 8px; align-items: center; }
.site-footer a{ display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; color: var(--ink-soft); overflow-wrap: anywhere; }
.site-footer a:hover{ color: var(--ink); }
.site-footer .copy{ display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }
.site-footer .dot{ color: var(--ink-faint); }
@media (max-width: 719px){
  /* phones: Privacy · Terms on one line, then the email, then the copyright */
  .site-footer .dot.wide{ display: none; }
  .site-footer .mail, .site-footer .copy{ flex-basis: 100%; }
}

/* ---- long-form pages (privacy, terms) ---- */
.doc{ padding-block: 32px 80px; }
.doc .wrap{ max-width: 808px; }
.doc h1{ font-size: clamp(2.5rem, 1.9rem + 2.6vw, 3.5rem); margin-top: 12px; }
.doc .updated{ margin-top: 16px; font: 600 .8125rem/1.4 var(--font-mono); letter-spacing: .04em; color: var(--ink-soft); }
.doc h2{ font-size: 1.625rem; line-height: 1.15; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); }
.doc h3{ font: 700 1.0625rem/1.35 var(--font-sans); letter-spacing: 0; margin-top: 24px; }
.doc p, .doc ul, .doc dl{ margin-top: 16px; }
.doc ul{ padding-left: 1.2em; }
.doc li{ margin-top: 8px; }
.doc li::marker{ color: var(--border-strong); }
.summary{ margin-top: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-m); padding: 8px 24px 24px; box-shadow: var(--shadow-card); }
.summary h2{ border: 0; margin-top: 0; padding-top: 16px; font-size: 1.25rem; }
.data{ margin-top: 16px; border-top: 1px solid var(--border); }
.data > div{ padding: 16px 0; border-bottom: 1px solid var(--border); display: grid; gap: 4px; }
.data dt{ font-weight: 700; }
.data dd{ margin: 0; color: var(--ink-soft); }
.data dd strong{ color: var(--ink); font-weight: 600; }
.toc{ margin-top: 24px; font-size: .9375rem; }
.toc ol{ margin: 8px 0 0; padding-left: 1.4em; columns: 1; }
.toc li{ margin-top: 2px; }
.toc a{ display: inline-block; padding: 5px 0; }
.lede{ margin-top: 16px; color: var(--ink-soft); max-width: var(--measure); }

/* ---- 404 ---- */
.lost{ padding-block: 48px 96px; }
.lost .wrap{ display: grid; gap: 24px; justify-items: start; }
.lost .hero-dial{ width: 148px; filter: none; }
.lost .hero-dial .needle{ animation: wander 7s ease-in-out infinite alternate; }
.lost h1{ font-size: clamp(2.5rem, 1.9rem + 2.6vw, 3.5rem); max-width: 16ch; }
@keyframes wander{
  0%{ transform: rotate(-70deg); } 30%{ transform: rotate(48deg); } 55%{ transform: rotate(-22deg); } 80%{ transform: rotate(95deg); } 100%{ transform: rotate(20deg); }
}

@media (min-width: 480px){
  .tab{ font-size: .8125rem; }
}
@media (min-width: 720px){
  :root{ --gutter: 32px; --section: 120px; }
  body{ font-size: 1.125rem; }
  .toc ol{ columns: 2; column-gap: 32px; }
  .data > div{ grid-template-columns: 13rem 1fr; gap: 24px; }
  .site-header .wrap{ min-height: 72px; }
  .panel{ padding: 40px; }
  .fcards{ grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .fcard{ padding: 24px; }
  .programs-panel{ grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 48px; padding: 48px; }
  .steps{ grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 56px; }
  .feat{ margin-top: 40px; }
  .cta-panel{ padding: 104px 32px; border-radius: 40px; }
}
@media (min-width: 960px){
  .hero{ padding-block: 56px var(--section); }
  .hero .wrap{ grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); column-gap: 48px; align-items: center; }
  .hero-visual{ order: 0; justify-self: center; }
  .hero-compass{ width: min(30vw, 360px); }
  /* the tabs become a vertical list beside the panel */
  .shots{ margin-inline: 0; padding-inline: 0; overflow: visible; justify-content: space-between; }
  .shots li{ flex: 1 1 0; max-width: 236px; }
  .feat{ grid-template-columns: 272px minmax(0, 1fr); gap: 40px; align-items: start; }
  .tabs{ position: sticky; top: 96px; grid-template-columns: 1fr; }
  .tab{ flex-direction: row; justify-content: flex-start; gap: 14px; min-height: 56px; padding: 0 20px; font-size: 1.0625rem; text-align: left; }
  .tab:hover{ transform: translateX(3px); }
  .tab-ind::before{ left: 0; right: auto; top: 14px; bottom: 14px; width: 3px; height: auto; border-radius: 0 3px 3px 0; }
  .panel{ padding: 40px 48px 48px; }
}

@media (prefers-reduced-motion: no-preference){
  html{ scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{ animation: none !important; transition: none !important; }
  .js .reveal, .js .hero-copy > *, .js .hero-visual{ opacity: 1; transform: none; }
  .js .wipe > span{ transform: none; }
}
