/* WorkToDegree. Layout: Salient Harbor, matched to its computed typography. System fonts (Helvetica Neue first) at 400 throughout with normal letter-spacing; 500 for navigation and buttons; 600 for the logo only. Fluid root size (1vw + 0.1rem). Red rounded marquee, full-bleed photo hero, statements at 2.7rem, pinned colour cards with 20vw numerals, sky stats, stacked cards, bordered pricing, centred call to action, and Harbor's footer with a full-width wordmark. */
:root {
  --white: #FFFFFF;
  --ink: #1E1E1E;
  --muted: rgba(0, 0, 0, 0.48);
  --line: #E5E5E5;
  --paper: #F4F4F2;
  --red: #FF4A4B;
  --amber: #FFB500;
  --blue: #8CCBFF;
  --on-photo: #FFFFFF;
  --photo-line: rgba(255, 255, 255, 0.3);
  --glass: rgba(10, 10, 10, 0.42);
  --font: "Helvetica Neue", Helvetica, "Segoe UI", Roboto, Arial, system-ui, -apple-system, sans-serif;
  --display-track: -0.022em;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --gutter: clamp(16px, 2.78vw, 64px);
  --nav-h: 4.25rem;
  /* Harbor type scale, measured at 1440px */
  --t-marquee: 0.9rem;
  --t-body: 1rem;
  --t-lead: 1.2rem;
  --t-h4: 1.4rem;
  --t-h2: 2.7rem;
  --t-sky: max(2rem, 5vw);
  --t-num: 20vw;
  --t-stat: max(2.5rem, 3vw);
  --t-plan: max(1.75rem, 2vw);
  color-scheme: light;
}
html { font-size: clamp(1rem, calc(1vw + 0.1rem), 1.5rem); scroll-padding-top: calc(var(--nav-h) + env(safe-area-inset-top, 0px)); }
@media (max-width: 999px) { html { font-size: 1rem; } :root { --t-h2: 2rem; --t-lead: 1.125rem; } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
* { box-sizing: border-box; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--font); font-size: var(--t-body); font-weight: 400; line-height: 1.6; letter-spacing: normal; -webkit-font-smoothing: antialiased; }
.wrap { padding-inline: var(--gutter); }
h1, h2, h3, h4 { margin: 0; font-weight: 400; letter-spacing: normal; color: var(--ink); }
h2 { font-size: var(--t-h2); line-height: 1.2; }
p { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.photo { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; background: var(--paper); }

/* Logo: Harbor's text logo setting, 600 weight, .005em tracking, inside light (brackets) like Harbor's labels */
.logo { display: inline-flex; align-items: baseline; font-size: 1.5rem; font-weight: 600; letter-spacing: 0.005em; line-height: 1; text-decoration: none; color: inherit; white-space: nowrap; }
.logo b { font-weight: 300; }

/* Marquee */
.marquee { margin: 8px 8px 0; border-radius: 999px; background: var(--red); color: var(--ink); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.marquee-track { display: flex; width: max-content; }
.marquee p { display: flex; align-items: center; gap: 2em; padding: 1.05rem 1em; white-space: nowrap; font-size: var(--t-marquee); line-height: 1; }
.marquee a { text-decoration: none; }
@media (prefers-reduced-motion: no-preference) { .marquee-track { animation: slide 42s linear infinite; } .marquee:hover .marquee-track { animation-play-state: paused; } }
@keyframes slide { to { transform: translateX(-50%); } }

/* Nav */
.nav { position: sticky; top: 0; z-index: 40; height: calc(var(--nav-h) + env(safe-area-inset-top, 0px)); margin-bottom: calc(-1 * (var(--nav-h) + env(safe-area-inset-top, 0px))); padding-top: env(safe-area-inset-top, 0px); color: var(--on-photo); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; height: var(--nav-h); }
.nav.scrolled[data-mode="dark"] { background: rgba(10, 10, 10, 0.3); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.nav[data-mode="light"] { color: var(--ink); background: rgba(255, 255, 255, 0.9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.links { display: flex; gap: 1.85rem; }
.links a { position: relative; font-size: 1rem; font-weight: 500; line-height: 1.4; text-decoration: none; }
.links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; }
.links a:hover::after, .links a:focus-visible::after { transform: scaleX(1); }
.nav .nav-cta { display: none; }
@media (max-width: 1000px) { .links { display: none; } .nav .nav-cta { display: inline-flex; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 1.4rem; padding: 0.3rem 0.3rem 0.3rem 1.5rem; border-radius: 999px; border: 0; background: var(--white); color: var(--ink); font: 500 0.9rem/1.6 var(--font); text-decoration: none; white-space: nowrap; cursor: pointer; }
.btn .dot { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--ink); color: var(--white); flex: none; }
.btn.dark { background: var(--ink); color: var(--white); }
.btn.dark .dot { background: var(--white); color: var(--ink); }
.btn.wide { width: 100%; }
.btn.sm { padding: 0.2rem 0.2rem 0.2rem 1rem; gap: 0.8rem; }
.btn.sm .dot { width: 2rem; height: 2rem; }
.ul { font-size: 0.9rem; font-weight: 500; text-decoration: underline; text-underline-offset: 5px; }

/* Hero */
.hero { position: relative; overflow: hidden; isolation: isolate; color: var(--on-photo); background: #2B3442; }
.hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0) 22%, rgba(0, 0, 0, 0.04) 50%, rgba(0, 0, 0, 0.55) 100%); }
.hero h1 { color: var(--on-photo); line-height: 1; white-space: nowrap; font-size: 13vw; padding-block: calc(var(--nav-h) + clamp(8rem, 17vw, 16rem)) clamp(1.4rem, 2.6vw, 2.6rem); }
.band { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--photo-line); }
.band > div { min-width: 0; padding-block: 2.5rem 3.2rem; }
.band .left { display: flex; justify-content: space-between; gap: 2rem; padding-right: 2.5rem; }
.band .right { display: flex; justify-content: space-between; gap: 2rem; padding-left: 2.5rem; border-left: 1px solid var(--photo-line); }
.band .right p { font-size: var(--t-lead); line-height: 1.4; max-width: 26em; }
.glass { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: center; padding: 1rem; border-radius: 14px; background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); max-width: 32rem; }
.glass img { width: 8.5rem; height: 10.2rem; object-fit: cover; border-radius: 10px; }
.glass p { font-size: var(--t-lead); line-height: 1.4; margin-bottom: 1.3rem; }
.band .tagline { white-space: nowrap; }
.down { color: var(--on-photo); display: grid; place-items: start center; width: 2.5rem; height: 2.8rem; flex: none; }
@media (max-width: 1000px) {
  .hero h1 { white-space: normal; font-size: 19vw; line-height: 0.95; padding-top: calc(var(--nav-h) + 9rem); }
  .band { grid-template-columns: 1fr; }
  .band .left { flex-direction: column-reverse; padding-right: 0; }
  .band .right { border-left: 0; border-top: 1px solid var(--photo-line); padding-left: 0; }
}
@media (max-width: 520px) { .glass { grid-template-columns: 1fr; } .glass img { width: 100%; height: 9rem; } }

/* Sections */
.sec { padding-block: clamp(5rem, 8vw, 9rem); }
.statement { font-size: var(--t-h2); line-height: 1.2; color: var(--ink); max-width: 95%; }
.label { font-size: var(--t-body); }

/* About */
.about-grid { display: grid; grid-template-columns: 50% minmax(0, 1fr) minmax(0, 13.5vw); gap: 2rem 3rem; margin-top: clamp(4rem, 7vw, 7rem); align-items: start; }
.about-copy { display: grid; gap: 1.6rem; max-width: 24em; }
.about-copy a { justify-self: start; }
.about-photo { aspect-ratio: 262 / 333; }
@media (max-width: 1000px) { .about-grid { grid-template-columns: 1fr 1fr; } .about-grid .label { grid-column: 1 / -1; } .about-photo { max-width: 16rem; } }
@media (max-width: 640px) { .about-grid { grid-template-columns: 1fr; } }

/* Service cards */
.help-head { padding-bottom: clamp(2rem, 3vw, 3rem); }
.help-head h2 { line-height: 1.3; }
.sticky { overflow: hidden; }
.track { display: flex; gap: 8px; padding-inline: 8px; will-change: transform; }
.hscroll:not(.pinned) .track { flex-direction: column; }
.hscroll.pinned .sticky { position: sticky; top: 0; height: 100vh; padding-top: var(--nav-h); display: flex; align-items: center; }
.svc { flex: 0 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); gap: 2rem clamp(2rem, 5vw, 6rem); padding: clamp(1.8rem, 4.6vw, 5.5rem); border-radius: 20px; color: var(--ink); min-width: 0; }
.hscroll.pinned .svc { width: min(85vw, 1700px); height: min(calc(100vh - var(--nav-h) - 16px), 1000px); }
.svc.c1 { background: var(--red); }
.svc.c2 { background: var(--amber); }
.svc.c3 { background: var(--blue); }
.svc .txt { display: grid; grid-template-rows: auto 1fr auto auto; gap: 1.5rem; min-height: 0; }
.svc .num { font-size: var(--t-num); line-height: 1; margin-top: -0.12em; color: var(--ink); }
.svc h3 { font-size: var(--t-h2); line-height: 1.3; max-width: 75%; align-self: end; }
.svc p { max-width: 32em; }
.svc .photo { min-height: 18rem; }
@media (max-width: 900px) { .svc { grid-template-columns: 1fr; } .svc .photo { height: 22rem; } .svc .num { font-size: 32vw; } .svc h3 { max-width: none; } }

/* Statement + photos + value props */
.why-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 24em); gap: 3rem clamp(3rem, 10vw, 14rem); margin-top: clamp(4rem, 7vw, 7rem); align-items: end; }
.why-photos { display: grid; grid-template-columns: 31.5vw 21vw; gap: 1rem; align-items: end; }
.why-photos .p1 { aspect-ratio: 605 / 800; }
.why-photos .p2 { aspect-ratio: 302 / 400; }
.props { display: grid; gap: 2.6rem; }
.props h4 { font-size: var(--t-h4); line-height: 1.3; margin-bottom: 0.8rem; }
@media (max-width: 1000px) { .why-grid { grid-template-columns: 1fr; } .why-photos { grid-template-columns: 1.5fr 1fr; } }

/* Sky */
.sky { position: relative; overflow: hidden; isolation: isolate; color: var(--on-photo); background: #4B79A8; }
.sky-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; }
.sky::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(35, 82, 140, 0.5) 0%, rgba(35, 82, 140, 0.2) 55%, rgba(12, 28, 50, 0.55) 100%); }
.sky .big { color: var(--on-photo); font-size: var(--t-sky); line-height: 1.2; padding-top: clamp(4rem, 6vw, 6rem); max-width: 95%; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin-top: clamp(8rem, 18vw, 18rem); padding-block: 3.5rem clamp(4rem, 6vw, 6rem); border-top: 1px solid var(--photo-line); }
.stat { display: grid; grid-template-columns: auto 1fr; gap: 1.8rem 1.4rem; align-items: center; }
.stat .pill { grid-column: 1 / -1; justify-self: start; padding: 0.5rem 1.1rem; border-radius: 999px; background: rgba(255, 255, 255, 0.2); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); line-height: 1; }
.stat b { font-weight: 400; font-size: var(--t-stat); line-height: 1.3; }
.stat span:last-child { font-size: clamp(16px, 1vw, 22px); line-height: 1.4; max-width: 15em; }
@media (max-width: 1000px) { .stats { grid-template-columns: 1fr; } }

/* Stacked university cards */
.stack-wrap { position: relative; }
.stack-wrap.pinned .stage { position: sticky; top: 0; height: 100vh; }
.stage { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; padding-inline: var(--gutter); }
.stage .side { font-size: 1.2rem; line-height: 1.4; }
.stage .side.r { justify-self: end; }
.deck { position: relative; width: min(29.5rem, 88vw); height: min(37rem, 78vh); }
.ucard { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr auto; gap: 1rem; padding: 2.8rem; border-radius: 20px; color: var(--ink); transform-origin: 50% 100%; will-change: transform; }
.ucard.us { background: var(--amber); }
.ucard.uk { background: var(--red); }
.ucard.au { background: var(--blue); }
.ucard .letter { font-size: 80px; line-height: 1; }
.ucard img { width: 9.5rem; height: 14rem; object-fit: cover; border-radius: 14px; }
.ucard ul { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; display: grid; gap: 0.15rem; align-self: end; }
.ucard li a { font-size: 22px; line-height: 1.3; text-decoration: none; }
.ucard li a:hover { text-decoration: underline; }
.ucard .who { grid-column: 1 / -1; display: grid; gap: 0.3rem; margin-top: 1.4rem; line-height: 1.1; }
.ucard .who b { font-weight: 600; }
.stack-wrap:not(.pinned) .stage { grid-template-columns: 1fr; padding-block: 4rem; }
.stack-wrap:not(.pinned) .stage .side.r { justify-self: start; }
.stack-wrap:not(.pinned) .deck { width: 100%; height: auto; display: grid; gap: 10px; }
.stack-wrap:not(.pinned) .ucard { position: relative; inset: auto; min-height: 30rem; }
.fine { font-size: 0.9rem; color: var(--muted); max-width: 70em; }

/* Pricing */
.pricing { text-align: center; }
.pricing .statement { margin: 1.8rem auto 0; max-width: 32em; font-size: var(--t-h2); }
.registers { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.8rem clamp(2rem, 5.4vw, 6rem); margin-block: clamp(3rem, 5vw, 5rem); }
.registers small { width: 100%; font-size: 0.9rem; color: var(--muted); }
.registers a { font-size: 1.6rem; font-weight: 600; letter-spacing: -0.01em; text-decoration: none; }
.registers a:hover { text-decoration: underline; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); text-align: left; }
.plan { display: grid; grid-template-rows: auto auto 1fr auto auto auto auto; padding: clamp(1.8rem, 4.4vw, 4rem); min-width: 0; }
.plan + .plan { border-left: 1px solid var(--line); }
.plan-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.plan h3 { font-size: var(--t-plan); line-height: 1; }
.rec { padding: 0.55rem 1.1rem; border-radius: 999px; background: var(--red); color: #000; line-height: 1; }
.plan .desc { color: var(--muted); margin-top: 1.6rem; max-width: 24em; }
.plan .price { margin-top: clamp(4rem, 8vw, 8rem); display: flex; align-items: baseline; }
.plan .price b { font-weight: 400; font-size: var(--t-stat); line-height: 1; }
.plan .price small { font-size: 1rem; line-height: 1.3; }
.plan .btn { margin-top: 3rem; }
.plan hr { border: 0; border-top: 1px solid var(--line); margin: 3.2rem 0 3rem; width: 100%; }
.plan ul { margin: 1.4rem 0 0; padding-left: 1.2em; }
.terms-line { margin-top: 1.8rem; color: var(--muted); font-size: 0.9rem; }
@media (max-width: 1000px) { .plans { grid-template-columns: 1fr; } .plans .plan + .plan { border-left: 0; border-top: 1px solid var(--line); } }

/* CTA + form */
.cta { text-align: center; }
.cta h2 { max-width: 26em; margin-inline: auto; }
.cta h2 a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; }
.cta h2 a:hover { background-size: 100% 1px; }
form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; max-width: 52rem; margin: clamp(3rem, 5vw, 4.5rem) auto 0; padding: clamp(1.4rem, 3vw, 2.4rem); border-radius: 20px; background: var(--paper); text-align: left; }
.f { display: grid; gap: 0.4rem; min-width: 0; }
.f.full { grid-column: 1 / -1; }
label { font-size: 0.9rem; }
input, select, textarea { width: 100%; font: 400 1rem/1.5 var(--font); color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 0.75rem 0.9rem; }
input:hover, select:hover, textarea:hover { border-color: #C9C9C9; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); }
textarea { min-height: 6rem; resize: vertical; }
.ff { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; }
.ff p { flex: 1 1 14rem; color: var(--muted); font-size: 0.9rem; }
.err { grid-column: 1 / -1; color: #C2272B; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.res { grid-column: 1 / -1; display: grid; gap: 0.4rem; padding: 1.2rem; border-radius: 14px; background: var(--white); }
.res h3 { font-size: 1.4rem; line-height: 1.3; }
.res .meta { color: var(--muted); font-size: 0.9rem; }
@media (max-width: 560px) { form { grid-template-columns: 1fr; } }

/* Footer: Harbor layout */
footer { overflow: hidden; }
.foot { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1rem 2rem; align-items: center; padding-block: clamp(5rem, 10vw, 10rem) 3.3rem; }
.foot nav { display: flex; gap: 1.25rem; flex-wrap: wrap; justify-content: center; }
.foot nav a { font-size: 0.9rem; font-weight: 500; text-decoration: none; }
.foot nav a:hover { text-decoration: underline; }
.foot .r { justify-self: end; text-align: right; }
.foot .offices { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 1.6rem 3rem; }
.foot address, .foot .reach { font-style: normal; color: var(--muted); font-size: 0.9rem; }
.foot address > b, .foot .reach > b { display: block; color: var(--ink); font-weight: 500; }
.foot .reach .hello b { font-weight: 300; }
.foot .reach a { color: var(--muted); text-decoration: none; }
.foot .reach a:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 1240px) { .foot .offices { grid-template-columns: repeat(2, auto); justify-content: start; column-gap: 5rem; } }
.rule { border-top: 1px solid var(--line); }
.giant { position: relative; isolation: isolate; overflow: hidden; }
.giant::before, .giant::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(40px); }
.giant::before { left: -12vw; bottom: -18vw; width: 42vw; height: 42vw; background: radial-gradient(closest-side, rgba(255, 74, 75, 0.75), rgba(255, 74, 75, 0)); }
.giant::after { right: -16vw; bottom: -10vw; width: 34vw; height: 34vw; background: radial-gradient(closest-side, rgba(255, 74, 75, 0.55), rgba(255, 74, 75, 0)); }
.giant .giant-word { font-size: 15vw; line-height: 1.15; white-space: nowrap; padding-top: 3.6rem; padding-bottom: 0.04em; margin: 0; color: var(--ink); }
.giant .giant-word b { font-weight: 200; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr; } .foot nav { justify-content: flex-start; } .foot .r { justify-self: start; text-align: left; } .foot .offices { grid-column: 1; grid-template-columns: 1fr; } }

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  .links a::after, .btn, .btn .dot, .down, .cta h2 a { transition: transform 0.45s var(--ease), background-color 0.25s, color 0.25s, background-size 0.45s var(--ease); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .btn:hover .dot { transform: rotate(45deg); }
  .down:hover { transform: translateY(6px); }
}

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 16px; z-index: 200; padding: 0.6rem 1rem; border-radius: 999px; background: var(--white); color: var(--ink); }
.foot-hello { font-size: 0.9rem; color: var(--muted); font-weight: 400; }
.foot-hello:hover { color: var(--ink); }

/* Display tracking: system grotesques need slight tightening at large sizes to keep Harbor's look */
h1, h2, .statement, .pull, .giant .giant-word, .svc .num, .stat b, .plan h3, .plan .price b, .ucard .letter, .rows .t, .card h3, .card.solid .big, .office .city, .gauge .score, .lw-list, .langwall .ghost, .sky .big, .phero h1, .panel-hero h1 { letter-spacing: var(--display-track); }

[hidden] { display: none !important; }

/* Footer: offices first, then the copyright row */
.foot .offices { padding-bottom: 2.6rem; margin-bottom: 0.8rem; border-bottom: 1px solid var(--line); }

/* ===== Multi-page additions: same Harbor language, extended to inner pages ===== */

/* Nav: ink mode for pages that open on a light or coloured panel */
.nav[data-mode="ink"] { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 1.6rem; }
.menu-btn { display: none; align-items: center; gap: 0.5rem; padding: 0.55rem 1.1rem; border-radius: 999px; border: 1px solid currentColor; background: transparent; color: inherit; font: 500 0.9rem/1 var(--font); cursor: pointer; }
@media (max-width: 1000px) { .menu-btn { display: inline-flex; } .nav .nav-cta { display: none; } }
@media (max-width: 420px) { .nav-right { gap: 0.6rem; } }

/* Greeting button: the language picker's trigger, framed in the logo's brackets */
.hello { display: inline-flex; align-items: center; gap: 0.15em; padding: 0; border: 0; background: none; color: inherit; font: 500 1rem/1.4 var(--font); cursor: pointer; white-space: nowrap; }
.hello .win { display: inline-block; position: relative; height: 1.4em; overflow: hidden; vertical-align: bottom; text-align: center; transition: width 0.45s var(--ease); }
.hello .word { display: block; white-space: nowrap; }
.hello .word.in { animation: helloIn 0.55s var(--ease) both; }
.hello .word.out { position: absolute; left: 0; right: 0; top: 0; animation: helloOut 0.55s var(--ease) both; }
@keyframes helloIn { from { transform: translateY(100%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes helloOut { to { transform: translateY(-100%); opacity: 0; } }
.hello b { font-weight: 300; }
.hello:hover .win { text-decoration: underline; text-underline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { .hello .word.in, .hello .word.out { animation: none; } .hello .word.out { display: none; } }

/* Language wall */
.langwall { position: fixed; inset: 0; z-index: 100; display: grid; grid-template-rows: auto 1fr auto; background: var(--ink); color: var(--white); overflow: hidden; isolation: isolate; }
.langwall[hidden] { display: none; }
.langwall::before { content: ""; position: absolute; z-index: -2; left: -10vw; bottom: -20vw; width: 50vw; height: 50vw; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 74, 75, 0.55), rgba(255, 74, 75, 0)); filter: blur(30px); }
.langwall .ghost { position: absolute; z-index: -1; inset: 0; display: grid; place-items: center; font-size: 22vw; line-height: 1; white-space: nowrap; color: rgba(255, 255, 255, 0.06); pointer-events: none; transition: opacity 0.4s; }
.lw-top, .lw-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.4rem var(--gutter); }
.lw-top .lab { font-size: 1rem; }
.lw-close { padding: 0.55rem 1.1rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.4); background: none; color: inherit; font: 500 0.9rem/1 var(--font); cursor: pointer; }
.lw-close:hover { background: var(--white); color: var(--ink); }
.lw-list { align-self: center; margin: 0; padding: 0 var(--gutter); list-style: none; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2em 0; font-size: clamp(1.7rem, 3.6vw, 4rem); line-height: 1.25; overflow-y: auto; max-height: 100%; }
.lw-list li { display: inline-flex; align-items: baseline; }
.lw-list li:not(:last-child)::after { content: "/"; margin: 0 0.45em; color: rgba(255, 255, 255, 0.25); font-weight: 200; }
.lw-list button { padding: 0; border: 0; background: none; color: rgba(255, 255, 255, 0.92); font: inherit; cursor: pointer; transition: color 0.2s, opacity 0.2s; }
.lw-list:hover button, .lw-list:focus-within button { opacity: 0.4; }
.lw-list button:hover, .lw-list button:focus-visible { opacity: 1; color: var(--red); outline: none; }
.lw-list button[aria-current="true"] { color: var(--red); opacity: 1; }
.lw-list button sup { font-size: 0.32em; margin-left: 0.35em; vertical-align: super; color: rgba(255, 255, 255, 0.55); letter-spacing: 0.04em; }
.lw-foot { font-size: 0.95rem; color: rgba(255, 255, 255, 0.7); }
.lw-foot output { color: var(--white); }
@media (max-width: 640px) { .lw-foot { flex-direction: column; align-items: flex-start; } }
body.locked { overflow: hidden; }

/* Mobile menu */
.menu { position: fixed; inset: 0; z-index: 90; display: grid; grid-template-rows: auto 1fr auto; background: var(--white); color: var(--ink); }
.menu[hidden] { display: none; }
.menu-top { display: flex; justify-content: space-between; align-items: center; height: var(--nav-h); padding-inline: var(--gutter); }
.menu nav { display: grid; align-content: center; gap: 0.2rem; padding-inline: var(--gutter); }
.menu nav a { font-size: clamp(2rem, 9vw, 3.4rem); line-height: 1.2; text-decoration: none; }
.menu nav a:hover { color: var(--red); }
.menu-foot { padding: 1.5rem var(--gutter) 2rem; }

/* Breadcrumbs and labels */
.crumbs { display: flex; flex-wrap: wrap; gap: 0.4rem; font-size: 0.9rem; margin: 0 0 1.4rem; padding: 0; list-style: none; opacity: 0.85; }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 0.4rem; opacity: 0.6; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* Photo hero for inner pages */
.phero { position: relative; overflow: hidden; isolation: isolate; color: var(--on-photo); background: #2B3442; }
.phero > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.phero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.12) 35%, rgba(0, 0, 0, 0.62) 100%); }
.phero .wrap { padding-top: calc(var(--nav-h) + clamp(7rem, 14vw, 13rem)); padding-bottom: clamp(2.5rem, 4vw, 4rem); }
.phero h1 { color: var(--on-photo); font-size: clamp(2.8rem, 7.2vw, 8.6rem); line-height: 1; max-width: 15ch; }
.phero .band { margin-top: clamp(2.5rem, 4vw, 4rem); }
.phero .band > div { padding-block: 2rem 0.5rem; }
.phero .lead { font-size: var(--t-lead); line-height: 1.45; max-width: 30em; }

/* Coloured panel hero */
.panel-hero { margin: 8px 8px 0; border-radius: 20px; padding: calc(var(--nav-h) + clamp(4rem, 9vw, 9rem)) 0 clamp(3rem, 5vw, 5rem); }
.panel-hero.red { background: var(--red); }
.panel-hero.amber { background: var(--amber); }
.panel-hero.blue { background: var(--blue); }
.panel-hero.paper { background: var(--paper); }
.panel-hero h1 { font-size: clamp(2.8rem, 6.6vw, 8rem); line-height: 1; max-width: 16ch; }
.panel-hero .lead { margin-top: 2rem; font-size: var(--t-lead); line-height: 1.45; max-width: 34em; }
.panel-hero .actions { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: 1rem 1.6rem; align-items: center; }

/* Split rows: label + heading on the left, copy on the right */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 2rem clamp(3rem, 8vw, 9rem); padding-block: clamp(3rem, 5vw, 5rem); border-top: 1px solid var(--line); }
.split:first-child { border-top: 0; }
.split h2 { font-size: clamp(1.8rem, 2.6vw, 2.7rem); line-height: 1.2; }
.split .num { display: block; margin-bottom: 1.2rem; }
.split .copy { display: grid; gap: 1.2rem; align-content: start; font-size: 1.05rem; line-height: 1.7; max-width: 38em; }
.split .copy ul { margin: 0; padding-left: 1.2em; display: grid; gap: 0.4rem; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* Index rows linking to sub-pages */
.rows { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.rows li { border-top: 1px solid var(--line); }
.rows a { display: grid; grid-template-columns: 4.5rem minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 1rem 2rem; align-items: center; padding: 1.6rem 0.8rem; text-decoration: none; border-radius: 14px; transition: background-color 0.3s, padding 0.45s var(--ease); }
.rows .n { color: var(--muted); }
.rows .t { font-size: clamp(1.5rem, 2.3vw, 2.4rem); line-height: 1.15; }
.rows .d { color: var(--muted); max-width: 30em; }
.rows .go { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border-radius: 50%; background: var(--ink); color: var(--white); transition: transform 0.45s var(--ease); }
.rows a:hover { background: var(--paper); padding-inline: 1.6rem; }
.rows a:hover .go { transform: rotate(45deg); }
@media (max-width: 760px) { .rows a { grid-template-columns: 2.5rem minmax(0, 1fr) auto; } .rows .d { grid-column: 2 / 3; } .rows .go { grid-row: 1; grid-column: 3; } }

/* Pills: roles and tags */
.pills { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.pills li { padding: 0.55rem 1.1rem; border-radius: 999px; border: 1px solid var(--line); line-height: 1.2; }
.pills.on-color li { border-color: rgba(0, 0, 0, 0.25); }

/* Two columns of lists */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.duo > div { padding: clamp(1.8rem, 3.5vw, 3.4rem); border-radius: 20px; background: var(--paper); }
.duo h3 { font-size: 1.5rem; line-height: 1.25; margin-bottom: 1.4rem; }
.duo ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.7rem; }
.duo li { padding-left: 1.6rem; position: relative; line-height: 1.5; }
.duo li::before { content: "↗"; position: absolute; left: 0; top: 0; color: var(--red); }
@media (max-width: 800px) { .duo { grid-template-columns: 1fr; } }

/* Big pull statement */
.pull { font-size: var(--t-h2); line-height: 1.2; max-width: 22em; }
.pull em { font-style: normal; color: var(--red); }

/* FAQ */
.faq { border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding: 1.5rem 0; font-size: clamp(1.2rem, 1.6vw, 1.55rem); line-height: 1.3; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 1px solid var(--line); font-size: 1.3rem; font-weight: 300; transition: transform 0.35s var(--ease), background-color 0.25s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--red); border-color: var(--red); }
.faq .a { padding: 0 3.4rem 1.8rem 0; max-width: 46em; color: #3a3a3a; line-height: 1.7; }
.faq-group + .faq-group { margin-top: clamp(3rem, 5vw, 5rem); }
.faq-group h2 { font-size: clamp(1.6rem, 2.2vw, 2.2rem); margin-bottom: 1.6rem; }

/* Closing band on every inner page */
.cta-band { position: relative; isolation: isolate; overflow: hidden; margin: 0 8px; border-radius: 20px; background: var(--ink); color: var(--white); padding: clamp(3.5rem, 7vw, 7rem) 0; }
.cta-band::before { content: ""; position: absolute; z-index: -1; right: -12vw; top: -20vw; width: 48vw; height: 48vw; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 74, 75, 0.55), rgba(255, 74, 75, 0)); filter: blur(30px); }
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255, 255, 255, 0.78); }
.cta-band .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem 4rem; align-items: end; }
.cta-band h2 { font-size: clamp(2rem, 4.4vw, 5rem); line-height: 1.05; max-width: 14em; }
.cta-band p { margin-top: 1.4rem; font-size: var(--t-lead); max-width: 30em; }
@media (max-width: 800px) { .cta-band .wrap { grid-template-columns: 1fr; } }

/* Photo strip inside pages */
.wide-photo { aspect-ratio: 16 / 7; width: 100%; object-fit: cover; border-radius: 20px; }
@media (max-width: 700px) { .wide-photo { aspect-ratio: 4 / 3; } }

/* Cards grid (insights, countries) */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { display: grid; grid-template-rows: auto 1fr; border-radius: 20px; overflow: hidden; background: var(--paper); text-decoration: none; min-width: 0; }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.8s var(--ease); }
.card:hover img { transform: scale(1.04); }
.card .in { display: grid; gap: 0.8rem; align-content: start; padding: 1.6rem 1.6rem 2rem; }
.card .meta { color: var(--muted); font-size: 0.9rem; }
.card h3 { font-size: 1.45rem; line-height: 1.25; }
.card p { color: #3a3a3a; }
.card.solid { padding: clamp(1.8rem, 3vw, 2.6rem); grid-template-rows: auto auto 1fr auto; gap: 1rem; }
.card.solid.red { background: var(--red); } .card.solid.amber { background: var(--amber); } .card.solid.blue { background: var(--blue); }
.card.solid .big { font-size: clamp(3rem, 6vw, 6.5rem); line-height: 1; }
@media (max-width: 1000px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .cards, .cards.two { grid-template-columns: 1fr; } }

/* University list on country pages */
.unis { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.unis li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 1rem 3rem; padding: 2.2rem 0; border-top: 1px solid var(--line); }
.unis h3 { font-size: clamp(1.5rem, 2.2vw, 2.2rem); line-height: 1.2; }
.unis .where { color: var(--muted); margin-top: 0.5rem; }
.unis .body { display: grid; gap: 0.9rem; align-content: start; max-width: 36em; }
.unis .tag { justify-self: start; padding: 0.4rem 0.9rem; border-radius: 999px; background: var(--paper); font-size: 0.9rem; }
.unis .q { color: #3a3a3a; font-size: 0.95rem; border-left: 2px solid var(--red); padding-left: 0.9rem; }
.unis .links { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; font-size: 0.95rem; }
@media (max-width: 800px) { .unis li { grid-template-columns: 1fr; } }

/* Articles */
.article { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 44rem); gap: 3rem clamp(3rem, 7vw, 8rem); justify-content: start; }
.toc { position: sticky; top: calc(var(--nav-h) + 2rem); align-self: start; display: grid; gap: 0.6rem; font-size: 0.92rem; }
.toc b { font-weight: 500; margin-bottom: 0.4rem; }
.toc a { color: var(--muted); text-decoration: none; line-height: 1.4; }
.toc a:hover, .toc a.on { color: var(--ink); }
.prose { font-size: 1.1rem; line-height: 1.75; }
.prose h2 { font-size: clamp(1.6rem, 2.2vw, 2.2rem); line-height: 1.2; margin: 3.2rem 0 1.2rem; scroll-margin-top: calc(var(--nav-h) + 1rem); }
.prose h2:first-child { margin-top: 0; }
.prose p + p { margin-top: 1.1rem; }
.prose ul { margin: 1.2rem 0 0; padding-left: 1.3em; display: grid; gap: 0.5rem; }
.prose strong { font-weight: 600; }
.takeaways { margin-top: 3.5rem; padding: clamp(1.6rem, 3vw, 2.6rem); border-radius: 20px; background: var(--amber); }
.takeaways h2 { margin: 0 0 1rem !important; font-size: 1.5rem !important; }
.sources { margin-top: 2.5rem; font-size: 0.92rem; color: var(--muted); }
.sources ul { padding-left: 1.2em; margin-top: 0.6rem; display: grid; gap: 0.3rem; }
@media (max-width: 1000px) { .article { grid-template-columns: 1fr; } .toc { position: static; } }

/* Experience meter */
.meter { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.meter form { margin: 0; max-width: none; }
.gauge { position: relative; display: grid; align-content: space-between; gap: 2rem; padding: clamp(1.8rem, 3.5vw, 3.4rem); border-radius: 20px; background: var(--ink); color: var(--white); overflow: hidden; isolation: isolate; }
.gauge::before { content: ""; position: absolute; z-index: -1; right: -20%; bottom: -30%; width: 80%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 74, 75, 0.6), rgba(255, 74, 75, 0)); filter: blur(20px); transition: transform 0.8s var(--ease); }
.gauge h2, .gauge h3 { color: var(--white); }
.gauge .score { font-size: clamp(5rem, 12vw, 11rem); line-height: 0.9; font-weight: 300; }
.gauge .bar { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.15); overflow: hidden; }
.gauge .bar i { display: block; height: 100%; width: 0; background: var(--red); border-radius: 6px; transition: width 0.8s var(--ease); }
.gauge ul { margin: 0; padding-left: 1.2em; display: grid; gap: 0.5rem; color: rgba(255, 255, 255, 0.85); }
.range-row { display: flex; align-items: center; gap: 1rem; }
.range-row output { min-width: 4.5rem; text-align: right; font-weight: 500; }
input[type="range"] { padding: 0; border: 0; accent-color: var(--red); background: transparent; }
@media (max-width: 900px) { .meter { grid-template-columns: 1fr; } }

/* Offices */
.offices-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.office { padding: clamp(1.8rem, 3vw, 2.6rem); border-radius: 20px; background: var(--paper); display: grid; gap: 1rem; align-content: start; }
.office .city { font-size: clamp(1.8rem, 2.6vw, 2.6rem); line-height: 1; }
.office address { font-style: normal; color: #3a3a3a; }
@media (max-width: 900px) { .offices-grid { grid-template-columns: 1fr; } }

/* Section heads used across pages */
.head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.head h2 { max-width: 20em; }
.legal { max-width: 46rem; }
.legal h2 { font-size: 1.6rem; margin: 2.6rem 0 0.9rem; }
.legal p + p, .legal ul { margin-top: 0.9rem; }
.legal ul { padding-left: 1.2em; display: grid; gap: 0.4rem; }
.notice { padding: 1rem 1.2rem; border-radius: 14px; background: var(--paper); color: #3a3a3a; font-size: 0.95rem; }

/* Footer link row with more pages */
.foot nav { row-gap: 0.4rem; }
.foot .small-links { display: flex; gap: 1rem; justify-content: flex-end; flex-wrap: wrap; }
.foot .small-links a { color: var(--muted); font-size: 0.9rem; text-decoration: none; }
.foot .small-links a:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 760px) { .foot .small-links { justify-content: flex-start; } }

/* Home: outcomes cards reuse the pinned service cards; pathway teaser */
.svc .kicker { font-size: 1.1rem; }
.home-paths .rows .t { font-size: clamp(1.4rem, 2vw, 2.1rem); }

/* Trust strip: official registers and promises, shown on key pages */
.trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust > div { padding: 1.8rem 1.6rem 1.8rem 0; display: grid; gap: 0.5rem; align-content: start; }
.trust > div + div { padding-left: 1.6rem; border-left: 1px solid var(--line); }
.trust b { font-weight: 500; font-size: 1.05rem; }
.trust span, .trust a { color: var(--muted); font-size: 0.92rem; line-height: 1.5; }
.trust a:hover { color: var(--ink); }
@media (max-width: 900px) { .trust { grid-template-columns: 1fr 1fr; } .trust > div:nth-child(3) { padding-left: 0; border-left: 0; } .trust > div:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 520px) { .trust { grid-template-columns: 1fr; } .trust > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } }
.sec.tight { padding-block: clamp(3rem, 5vw, 5rem); }
