@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/jost-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/jost-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --sea: #BFE1E0;
  --sand: #F9F2DB;
  --orange: #EC6D00;
  --orange-dark: #C95C00;
  --ink: #000000;
  --text: #192a3d;
  --link: #2872fa;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Jost', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--sea);
  overflow-x: hidden;
}

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

a { color: inherit; }

.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;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  background: #fff;
  padding: 8px 14px;
  border-radius: 6px;
}

/* ---------- Header + hero ---------- */

/* The decor images are always shown at full width (never cropped):
   header-deco.png is 2050×550 → its height is 26.83vw,
   footer-deco.png is 2050×1028 and its drawings fill the bottom ~15vw. */
:root {
  --header-deco-h: 26.83vw;
  --footer-deco-h: 15vw;
}

.hero {
  position: relative;
  min-height: clamp(380px, calc(var(--header-deco-h) + 250px), 780px);
  display: flex;
  flex-direction: column;
  background-color: var(--sea);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../img/header-deco.png') top center / 100% auto no-repeat;
  pointer-events: none;
}

.site-header {
  position: relative;
  z-index: 2;
  text-align: center;
}

.lang-switcher {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 0;
  padding: 14px 16px 0;
  list-style: none;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}
.lang-switcher a {
  text-decoration: none;
  color: var(--text);
  transition: color .2s;
}
.lang-switcher a:hover,
.lang-switcher a[aria-current="page"] { color: var(--link); }

.logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin-top: 46px;
  text-decoration: none;
  color: var(--ink);
  line-height: 1;
}
.logo-main {
  font-size: clamp(40px, 4.4vw, 64px);
  font-weight: 400;
  letter-spacing: .01em;
}
.logo-sub {
  margin-top: 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .02em;
}

.hero-intro {
  position: relative;
  z-index: 1;
  margin: auto auto 0;
  padding: 0 16px;
  max-width: 50%;
  text-align: center;
  font-size: 26px;
  line-height: 1.65;
  color: var(--ink);
}
.hero-intro p { margin: 0; }

/* ---------- Islands ---------- */

.islands {
  background: var(--sea);
  padding: 60px 0;
}

.islands-row {
  display: flex;
  gap: 30px;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
}
.islands-row + .islands-row { margin-top: 60px; }

.island {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.island-visual {
  display: block;
  width: 70%;
  margin-bottom: 20px;
}
.island-visual img { width: 100%; }

a.island-visual img { transition: transform .4s ease; }
a.island-visual:hover img,
a.island-visual:focus-visible img { transform: scale(1.03) rotate(-1deg); }

.island h2 {
  margin: 0 0 20px;
  max-width: 70%;
  font-size: 27px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border: 0;
  border-radius: 300px;
  background: var(--orange);
  color: #fff;
  font: 700 15px/1.3 'Jost', sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, transform .2s;
}
.btn:hover,
.btn:focus-visible { background: var(--orange-dark); transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* Locked islands: greyed out and not clickable */
.island.is-locked .island-visual img {
  filter: grayscale(1);
  opacity: .5;
}
.island.is-locked h2 { color: rgba(25, 42, 61, .45); }
.island.is-locked .btn {
  background: #9aa5ab;
  cursor: not-allowed;
  transform: none;
}

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 150px 16px calc(var(--footer-deco-h) + 48px);
  background-color: var(--sand);
}
.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../img/footer-deco.png') bottom center / 100% auto no-repeat;
  pointer-events: none;
}
.footer-wave {
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 93px;
  fill: var(--sea);
}

.footer-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}

.footer-title {
  margin: 0;
  font-size: 30px;
  font-weight: 600;
  color: var(--ink);
}

.cta-guide {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 520px;
}
.cta-guide p {
  margin: 0;
  font-size: 18px;
  color: var(--text);
}
.cta-guide .btn { padding: 14px 28px; font-size: 16px; }
.cta-guide .btn svg { flex: none; }
.cta-meta {
  font-size: 13px;
  color: rgba(25, 42, 61, .6);
}

.footer-inner .logo { margin-top: 8px; }
.footer-inner .logo-main { font-size: 44px; }
.footer-inner .logo-sub { font-size: 13px; }

/* ---------- Reveal animation ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .9s ease, transform .9s ease;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  /* Logo moves just under the dashed line so they never overlap */
  .logo { margin-top: calc(16vw - 34px); }
  .hero-intro { max-width: 70%; }
}

@media (max-width: 767px) {
  /* Language switcher and logo sit below the decor strip
     (its drawings end at ~78% of its height) */
  .hero { min-height: max(340px, calc(var(--header-deco-h) + 230px)); }
  .lang-switcher { padding-top: calc(var(--header-deco-h) * .8); }
  .logo { margin-top: 22px; }
  .hero-intro { max-width: 100%; font-size: 21px; }

  .islands { padding: 40px 0; }
  .islands-row { flex-direction: column; gap: 50px; }
  .islands-row + .islands-row { margin-top: 50px; }
  .island-visual { width: 85%; }
  .island h2 { max-width: 100%; font-size: 23px; }

  .site-footer { padding: 120px 16px calc(var(--footer-deco-h) + 36px); }
  .footer-title { font-size: 25px; }
  .footer-inner .logo-main { font-size: 36px; }
}
