/* Futureace: hand-built from the "The Stay" layout. Mobile first; breakpoints at 810px and 1200px. */

:root {
  --blue: #0068c6;
  --blue-deep: #105ea2;
  --blue-light: #2c8de2;
  --brand: #00aeef;
  --ink: #1b1c1d;
  --ink-2: #575a5e;
  --ink-3: #6f7275;
  --line: #e1e7eb;
  --tint: #f7f9fa;
  --grey: #edf0f2;
  --white: #fff;

  --font-sans: "Manrope", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-serif: "Averia Serif Libre", Georgia, serif;

  --radius: 20px;
  --radius-lg: 28px;
  --gutter: 20px;
  --section: 88px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .06);
}

@media (min-width: 810px) { :root { --gutter: 40px; --section: 120px; } }
@media (min-width: 1200px) { :root { --gutter: 100px; --section: 140px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 16px/1.6 var(--font-body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-sans); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
p { margin: 0; }
em { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon--fill { fill: currentColor; stroke: none; }

.container { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }
.center { display: flex; justify-content: center; margin-top: 40px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 0; cursor: pointer;
  font: 600 15px/1.2 var(--font-sans); text-decoration: none; white-space: nowrap;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn .icon { width: 18px; height: 18px; }
.btn--lg { padding: 14px 26px; font-size: 16px; }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: #000; }
.btn--light { background: var(--white); color: var(--ink); box-shadow: 0 4px 16px rgba(0, 0, 0, .12); }
.btn--grey { background: var(--grey); color: var(--ink); }
.btn--grey:hover { background: var(--line); }
.btn__play { display: grid; place-items: center; width: 28px; height: 28px; margin-left: -8px; border-radius: 50%; background: var(--brand); color: var(--white); }
.btn__play .icon { width: 12px; height: 12px; margin-left: 2px; }

/* Navigation: a floating rounded bar over the hero that widens into a full-width bar
   once you scroll past it (same behaviour as the original template). */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; padding: 12px var(--gutter) 0; pointer-events: none;
  transition: padding .45s cubic-bezier(.2, .7, .2, 1);
}
.nav__bar {
  pointer-events: auto; position: relative; display: flex; align-items: center; gap: 16px;
  max-width: 800px; margin: 0 auto; padding: 8px 8px 8px 20px; min-height: 60px;
  background: var(--white); border-radius: 30px; border-bottom: 1px solid transparent;
  transition: max-width .45s cubic-bezier(.2, .7, .2, 1), border-radius .45s cubic-bezier(.2, .7, .2, 1),
    padding .45s cubic-bezier(.2, .7, .2, 1), min-height .45s ease, border-color .45s ease;
}
.nav--full { padding: 0; }
.nav--full .nav__bar { max-width: 100vw; border-radius: 0; padding: 10px 20px; min-height: 68px; border-bottom-color: var(--line); }
.nav__logo { display: block; flex: none; justify-self: start; }
/* max-width: none so the logo never gets squeezed while the bar animates between sizes */
.nav__logo img { height: 26px; width: auto; max-width: none; }
.nav__links { display: none; }
.nav__cta { display: none; }
.nav__toggle {
  margin-left: auto; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; cursor: pointer;
  display: grid; place-content: center; gap: 6px;
}
.nav__toggle span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s ease; }
.nav--open .nav__toggle span:first-child { transform: translateY(4px) rotate(45deg); }
.nav--open .nav__toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }
.nav--open .nav__links {
  display: flex; flex-direction: column; position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  padding: 12px; background: var(--white); border-radius: 24px; box-shadow: var(--shadow);
}
.nav--full.nav--open .nav__links { top: 100%; border-radius: 0 0 24px 24px; }
.nav__links a:not(.btn) { padding: 12px 14px; border-radius: 12px; font: 500 16px var(--font-sans); text-decoration: none; color: var(--ink-2); }
.nav__links a:not(.btn):hover { background: var(--tint); color: var(--ink); }
.nav__cta-mobile { margin-top: 8px; }

@media (min-width: 1000px) {
  .nav { padding-top: 40px; }
  .nav--full { padding-top: 0; }
  .nav__bar { display: grid; grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr); padding: 10px 10px 10px 25px; min-height: 62px; }
  .nav--full .nav__bar { padding: 16px 40px; min-height: 80px; }
  .nav__toggle, .nav__cta-mobile { display: none; }
  .nav__links { display: flex; gap: 2px; justify-self: center; }
  .nav__links a:not(.btn) { padding: 8px 12px; font-size: 14px; }
  .nav__cta { display: inline-flex; justify-self: end; padding: 11px 18px; font-size: 14px; }
  .nav__logo img { height: 28px; }
}
/* Mid-size screens: tighter link spacing so everything fits inside the 800px rounded bar */
@media (min-width: 1000px) and (max-width: 1199px) {
  .nav__links a:not(.btn) { padding: 8px 8px; }
}
@media (prefers-reduced-motion: reduce) { .nav, .nav__bar { transition: none; } }

/* Hero */
/* The hero is a tall scroll track; the stage stays pinned while you scroll through it */
.hero { position: relative; height: 230svh; color: var(--white); background: #0d1a2b; }
.hero__stage { position: sticky; top: 0; height: 100svh; min-height: 560px; display: flex; align-items: flex-end; overflow: hidden; }
.hero__media, .hero__media img, .hero__shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__media img { object-fit: cover; object-position: 50% 30%; }
.hero__night { opacity: var(--night, 0); }
.hero__shade { background: linear-gradient(180deg, rgba(8, 18, 36, .35) 0%, rgba(8, 18, 36, .15) 35%, rgba(8, 18, 36, .55) 75%, rgba(8, 18, 36, .8) 100%); }
.hero__content { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; padding-top: 140px; padding-bottom: 72px; }
.hero__badge { display: inline-flex; align-items: center; gap: 8px; font: 500 14px var(--font-sans); padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .14); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hero__badge .icon { width: 14px; height: 14px; color: #ffd166; }
.hero__title { font-size: clamp(44px, 11vw, 112px); font-weight: 600; line-height: .98; text-wrap: balance; }
.hero__title > span, .hero__title > em { display: block; }
/* Rotating word: all three words share one grid cell; only the active one shows */
.hero__title > .hero__words { display: grid; justify-items: center; }
.hero__words > span {
  grid-area: 1 / 1; opacity: 0; transform: translateY(.4em); filter: blur(8px);
  transition: opacity .45s ease, transform .6s cubic-bezier(.2, .7, .2, 1), filter .45s ease;
}
.hero__words > span.is-active { opacity: 1; transform: none; filter: none; }
.hero__words > span.is-past { transform: translateY(-.4em); }
@media (prefers-reduced-motion: reduce) { .hero__words > span { transition: none; transform: none; filter: none; } }
.hero__sub { max-width: 560px; font-size: clamp(16px, 2vw, 19px); color: rgba(255, 255, 255, .9); text-wrap: balance; }
@media (min-width: 810px) { .hero__sub { max-width: none; white-space: nowrap; } }
.hero .btn { margin-top: 10px; }
@media (min-width: 810px) { .hero__content { padding-bottom: 110px; } }

/* Sections */
.section { padding: var(--section) 0; }
.section--tint { background: var(--tint); }
.section--blue {
  color: var(--white);
  background:
    radial-gradient(40% 45% at 85% 60%, rgba(44, 141, 226, .55), transparent 70%),
    radial-gradient(40% 45% at 10% 30%, rgba(44, 141, 226, .45), transparent 70%),
    var(--blue);
}
.section--dark {
  color: var(--white);
  background:
    radial-gradient(45% 50% at 90% 10%, rgba(0, 174, 239, .22), transparent 70%),
    radial-gradient(40% 45% at 5% 90%, rgba(44, 141, 226, .18), transparent 70%),
    #0d1a2b;
}
.section--dark .label, .section--dark .lead { color: rgba(255, 255, 255, .72); }
.section--dark h2 em { color: #7fd3f7; }
.section__head { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 760px; margin: 0 auto 48px; text-align: center; }
.section__head h2 { font-size: clamp(34px, 5.4vw, 60px); text-wrap: balance; }
.label { font: 600 14px var(--font-sans); color: var(--ink-3); }
.lead { font-size: 18px; color: var(--ink-2); text-wrap: pretty; }
.section--blue .label, .section--blue .lead { color: rgba(255, 255, 255, .8); }

/* About gallery: four small photos beside one large one (large one first on phones).
   Sizing follows the original template: 16px corners, wide gaps, slightly wider than the text column. */
.gallery { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.gallery figure { margin: 0; border-radius: 16px; overflow: hidden; aspect-ratio: 1; background: var(--grey); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery figure:hover img { transform: scale(1.03); }
.gallery__big { grid-column: 1 / -1; grid-row: 1; aspect-ratio: 3 / 2 !important; }
@media (min-width: 810px) {
  /* 1 : 1 : 3 columns make the large tile landscape, close to the 3:2 photo, so little is cropped */
  .gallery { grid-template-columns: 1fr 1fr 3fr; gap: 24px; }
  .gallery__big { grid-column: 3; grid-row: 1 / 3; aspect-ratio: auto !important; }
}
@media (min-width: 1200px) {
  .gallery { gap: 32px; margin: 0 -44px; }
}

/* Group chips */
.chips { list-style: none; margin: 0 auto; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 980px; }
/* Frosted-glass chips; main.js sets --s so chips near the cursor grow slightly */
.chips li {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px;
  font: 500 16px var(--font-body);
  background: linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .07));
  border: 1px solid rgba(255, 255, 255, .26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 6px 20px rgba(4, 30, 66, .18);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  transform: scale(var(--s, 1));
  transition: transform .25s cubic-bezier(.2, .7, .2, 1), background-color .25s ease, box-shadow .25s ease;
  will-change: transform;
}
.chips li.is-near { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 10px 28px rgba(4, 30, 66, .26); }

/* Tabs (For doctors): folder-style tabs joined to a white frame around the photo,
   stats top-right, description bottom-left (matches the original template). */
.tabs__list { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin: 0 auto; width: max-content; max-width: 100%; }
.tabs__list::-webkit-scrollbar { display: none; }
.tabs__list button {
  flex: none; padding: 12px 18px; border: 0; border-radius: 24px 24px 0 0; background: transparent; cursor: pointer;
  font: 500 15px var(--font-sans); color: var(--ink-3); transition: background-color .2s, color .2s;
}
.tabs__list button:hover { color: var(--ink); }
.tabs__list button[aria-selected="true"] { background: var(--white); color: var(--ink); }
.tabs__stage { padding: 12px; border-radius: 24px; background: var(--white); }
.tabs__frame { position: relative; overflow: hidden; border-radius: 18px; min-height: 560px; background: var(--grey); }
.tabs__panel { position: absolute; inset: 0; animation: fade .5s ease; }
.tabs__panel[hidden] { display: none; }
.tabs__panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.panel-card {
  position: absolute; left: 10px; right: 10px; bottom: 10px; display: grid; gap: 8px;
  padding: 20px; border-radius: 18px; background: var(--white);
}
.panel-card h3 { font-size: 22px; }
.panel-card p { color: var(--ink-2); font-size: 16px; line-height: 1.55; }
.stats {
  position: absolute; z-index: 2; top: 10px; left: 10px; right: 10px; display: grid; gap: 8px;
  padding: 14px 16px; border-radius: 18px; background: rgba(255, 255, 255, .7);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.stat { display: grid; grid-template-columns: auto 1fr 36px 3.2em auto; align-items: center; gap: 10px; font-family: var(--font-sans); }
.stat .icon { width: 22px; height: 22px; color: var(--ink); }
.stat__label { font-size: 16px; color: var(--ink); }
.stat__bar { height: 4px; border-radius: 4px; background: var(--ink); transform-origin: left; transform: scaleX(var(--p, 1)); transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.stat__value { font-size: 20px; font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
.stat__unit { font-size: 16px; color: var(--ink); }
@media (min-width: 810px) {
  .tabs__stage { padding: 16px; border-radius: 32px; }
  .tabs__frame { min-height: 0; aspect-ratio: 2 / 1; border-radius: 24px; }
  .panel-card { left: 12px; right: auto; bottom: 12px; width: 400px; padding: 24px; border-radius: 24px; }
  .stats { top: 12px; left: auto; right: 12px; width: 347px; padding: 16px; }
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* Technology tiles */
.tech { display: grid; gap: 16px; }
.tech__item { display: grid; align-content: start; gap: 12px; padding: 28px; border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.tech__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: rgba(0, 174, 239, .16); color: #7fd3f7; }
.tech__icon .icon { width: 26px; height: 26px; }
.tech__item h3 { font-size: 22px; }
.tech__item p { color: rgba(255, 255, 255, .75); }
@media (min-width: 1000px) { .tech { grid-template-columns: repeat(3, 1fr); } }

/* Split layout (Medical tourism): picture on one side, text on the other */
.split { display: grid; gap: 32px; align-items: center; }
.split__media { aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden; background: var(--grey); }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__media.eco__art--placeholder .icon { width: 48px; height: 48px; }
/* Countries panel standing in for a photo */
.reach {
  display: grid; place-content: center; justify-items: center; gap: 6px; padding: 32px; text-align: center; color: var(--white);
  background:
    radial-gradient(50% 55% at 80% 20%, rgba(0, 174, 239, .45), transparent 70%),
    radial-gradient(45% 50% at 15% 85%, rgba(44, 141, 226, .5), transparent 70%),
    var(--blue);
}
.reach__icon { width: 40px; height: 40px; stroke-width: 1.3; margin-bottom: 8px; opacity: .9; }
.reach__number { font: italic 400 clamp(72px, 10vw, 120px)/1 var(--font-serif); }
.reach__label { font: 500 18px var(--font-sans); color: rgba(255, 255, 255, .85); }
.reach__tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
.reach .reach__tags span { background: rgba(255, 255, 255, .16); color: var(--white); }
.split__body { display: grid; justify-items: start; gap: 16px; }
.split__body h2 { font-size: clamp(34px, 5vw, 56px); }
.split__body h2 em { white-space: nowrap; }
.split__body .ticks { margin: 4px 0 8px; }
@media (min-width: 1000px) { .split { grid-template-columns: 1.1fr 1fr; gap: 64px; } }

/* Map */
.map { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--grey); margin-bottom: 16px; }
.map iframe { display: block; width: 100%; height: 380px; border: 0; }
.map__address { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-radius: 999px; background: var(--white); box-shadow: var(--shadow); font: 500 15px var(--font-sans); width: fit-content; max-width: calc(100% - 32px); }
.map__address .icon { color: var(--blue); }
@media (min-width: 810px) { .map iframe { height: 460px; } }

/* Cards */
.cards { display: grid; gap: 16px; }
@media (min-width: 810px) { .cards--2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }
.card { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 26px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); text-decoration: none; }
.card h3 { display: flex; align-items: center; gap: 10px; font-size: 22px; }
.card > p { color: var(--ink-2); flex: 1; }
.card .btn { margin-top: 4px; }
.card--plan { padding: 32px; gap: 16px; }
.card__kicker { font: 600 14px var(--font-sans); color: var(--blue); }
.card__title { font-size: clamp(28px, 3.4vw, 38px) !important; }
.ticks { list-style: none; margin: 4px 0 8px; padding: 0; display: grid; gap: 12px; flex: 1; }
.ticks li { display: flex; align-items: center; gap: 10px; color: var(--ink-2); }
.ticks .icon { width: 18px; height: 18px; color: var(--blue); }
.card--glass { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .16); color: var(--white); }
.card--glass > p { color: rgba(255, 255, 255, .8); }
.card__value { font: 600 18px var(--font-sans); text-decoration: none; }
.card__value:hover { text-decoration: underline; }
.card__value--address { font-size: 15px; font-weight: 500; line-height: 1.5; }
.footer__address { line-height: 1.55; max-width: 300px; }

/* Ecosystem */
.eco { padding: 12px 12px 22px; transition: transform .25s ease, box-shadow .25s ease; }
.eco:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.eco > :not(.eco__art) { margin: 0 12px; }
.eco__art { width: 100%; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; margin-bottom: 6px; background: var(--grey); }
.eco__art img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.eco:hover .eco__art img { transform: scale(1.04); }
.eco__art--icon { display: grid; place-items: center; color: var(--blue); background: linear-gradient(135deg, #eaf5fd, #d3eafb); }
.eco__art--icon .icon { width: 52px; height: 52px; stroke-width: 1.3; }
.eco__art--placeholder { display: grid; place-items: center; color: var(--ink-3); border: 1px dashed var(--line); }
.eco__art--placeholder .icon { width: 40px; height: 40px; stroke-width: 1.3; }
.eco .tags { margin-bottom: 4px; }
.eco__visit { margin-top: auto; }
.card > .tags { display: flex; flex: none; flex-wrap: wrap; align-items: center; gap: 8px; }
.tags span { padding: 6px 12px; border-radius: 999px; background: var(--grey); font: 500 13px var(--font-sans); color: var(--ink-2); }

/* Closing CTA */
.cta { position: relative; min-height: 640px; display: grid; place-items: center; overflow: hidden; color: var(--white); text-align: center; }
.cta > img, .cta__shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.cta > img { object-fit: cover; }
.cta__shade { background: linear-gradient(180deg, rgba(8, 18, 36, .55), rgba(8, 18, 36, .45)); }
.cta__content { position: relative; display: flex; flex-direction: column; align-items: center; gap: 20px; padding-top: 80px; padding-bottom: 80px; }
.cta h2 { font-size: clamp(48px, 9vw, 104px); line-height: 1; }
.cta p { max-width: 520px; font-size: 18px; color: rgba(255, 255, 255, .9); }

/* Footer */
.footer { background: var(--ink); color: rgba(255, 255, 255, .7); padding: 72px 0 28px; font-size: 15px; }
.footer__grid { display: grid; gap: 40px; grid-template-columns: 1fr 1fr; }
.footer__brand { grid-column: 1 / -1; display: grid; gap: 16px; max-width: 360px; }
.footer__brand img { height: 32px; width: auto; }
.footer__film { display: inline-flex; align-items: center; gap: 8px; color: var(--white); font: 600 15px var(--font-sans); text-decoration: none; }
.footer__film .icon { width: 14px; height: 14px; color: var(--brand); }
.footer__col { display: grid; align-content: start; gap: 10px; }
.footer__col h4 { color: var(--white); font-size: 15px; margin-bottom: 4px; }
.footer__col a { text-decoration: none; }
.footer__col a:hover, .footer__bottom a:hover { color: var(--white); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 14px; }
.footer__bottom a { text-decoration: none; }
@media (min-width: 810px) {
  .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; }
  .footer__brand { grid-column: auto; }
}

/* Scroll reveal (enabled by main.js) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .tabs__panel { animation: none; }
}
