/* Exploro landing. Palette and buttons from the game; type with real Greek (Baloo 2 and Nunito have none). */
:root {
  --ink: #17324d;
  --soft: #45607a;
  --paper: #fffaf0;
  --sand: #f3e4c4;
  --line: #e3cfa4;
  --accent: #c44f18;
  --accent-deep: #93380a;
  --teal: #0b7d70;
  --sun: #ffd166;
  --night: #101f33;
  --gut: clamp(20px, 4.5vw, 72px);
  --gap: clamp(96px, 13vw, 184px);
  --pop: cubic-bezier(0.2, 1.5, 0.4, 1);
  --out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --face: 'M PLUS Rounded 1c', system-ui, sans-serif;
}

/* One radius per word in the hero. */
@property --r1 { syntax: '<length>'; inherits: true; initial-value: 0px; }
@property --r2 { syntax: '<length>'; inherits: true; initial-value: 0px; }
@property --r3 { syntax: '<length>'; inherits: true; initial-value: 0px; }
@property --r4 { syntax: '<length>'; inherits: true; initial-value: 0px; }
@property --r5 { syntax: '<length>'; inherits: true; initial-value: 0px; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 500 clamp(16px, 0.35vw + 14.6px, 19px) / 1.6 var(--face); overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure, ul, ol, dl, dd { margin: 0; padding: 0; }
h1, h2 { font-weight: 900; text-wrap: balance; letter-spacing: -0.02em; }
h2 { font-size: clamp(32px, 4.6vw, 72px); line-height: 1.06; }
h3 { font-weight: 800; font-size: clamp(20px, 1.8vw, 27px); line-height: 1.2; letter-spacing: -0.01em; }
p { text-wrap: pretty; }
::selection { background: var(--sun); color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 10px; box-shadow: 0 0 0 3px var(--sun); }
.defs { position: absolute; }
.skip { position: fixed; left: 16px; top: -80px; z-index: 30; padding: 12px 18px; border-radius: 12px; background: var(--ink); color: #fff; }
.skip:focus { top: 16px; }

/* The game's button: a solid edge that presses in. */
.btn { position: relative; display: inline-flex; align-items: center; min-height: 56px; padding: 0 30px 2px; border-radius: 18px; background: var(--accent); color: #fff; font-weight: 800; font-size: clamp(18px, 1.3vw, 21px); text-decoration: none; box-shadow: 0 6px 0 var(--accent-deep); transition: translate 0.18s var(--out), box-shadow 0.18s var(--out), background 0.18s; }
.btn:hover { translate: 0 -3px; box-shadow: 0 9px 0 var(--accent-deep); background: #b5450f; }
.btn:active { translate: 0 5px; box-shadow: 0 1px 0 var(--accent-deep); }
.btn-small { min-height: 44px; padding: 0 20px 1px; border-radius: 14px; font-size: 16px; box-shadow: 0 4px 0 var(--accent-deep); }
.btn-small:hover { box-shadow: 0 7px 0 var(--accent-deep); }
.link { display: inline-block; padding: 12px 2px; color: inherit; font-weight: 800; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 calc(100% - 9px) / 100% 3px no-repeat; transition: translate 0.18s var(--out), background-size 0.25s var(--out); }
.link:hover { translate: 0 -3px; background-size: 55% 3px; }

/* Top bar */
.top { position: fixed; z-index: 20; inset: 14px var(--gut) auto; display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; border: 2px solid var(--line); border-radius: 22px; background: var(--paper); box-shadow: 0 4px 0 var(--line); }
.logo { display: inline-flex; align-items: center; gap: 9px; color: inherit; font: 800 25px/1 'Baloo 2', var(--face); text-decoration: none; }
.logo svg { width: 34px; height: 34px; transition: rotate 0.5s var(--pop); }
.logo:hover svg { rotate: 90deg; }
.top nav { display: flex; gap: 2px; margin-left: auto; margin-right: 8px; }
.top nav a { padding: 10px 14px; border-radius: 12px; color: inherit; font-weight: 800; font-size: 15px; text-decoration: none; transition: background 0.2s, translate 0.18s var(--out); }
.top nav a:hover { background: var(--sand); translate: 0 -2px; }
.top nav a[aria-current] { background: var(--teal); color: #fff; }

/* Hero */
.hero { position: relative; display: flex; align-items: flex-start; min-height: max(100svh, 640px); padding: clamp(116px, 15vh, 176px) var(--gut) 130px; overflow: hidden; isolation: isolate;
  --x1: 57%; --y1: 84%; --x2: 84%; --y2: 76%; --x3: 69%; --y3: 56%; --x4: 25%; --y4: 80%; --x5: 43%; --y5: 70%; }
.scene, .scene picture, .scene img { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene { z-index: -1; background: #9fb0bd; }
.scene img { object-fit: cover; object-position: 62% 100%; }
.scene::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgb(255 250 240 / 0.86) 12%, rgb(255 250 240 / 0.5) 38%, transparent 62%); -webkit-mask: linear-gradient(#000 45%, transparent 78%); mask: linear-gradient(#000 45%, transparent 78%); }
.scene-gray { opacity: 0; }
.js .scene-gray { opacity: 1; }
.js .scene-color {
  transition: --r1 1.5s var(--out), --r2 1.5s var(--out), --r3 1.5s var(--out), --r4 1.5s var(--out), --r5 1.5s var(--out);
  -webkit-mask-image: radial-gradient(circle var(--r1) at var(--x1) var(--y1), #000 72%, transparent), radial-gradient(circle var(--r2) at var(--x2) var(--y2), #000 72%, transparent), radial-gradient(circle var(--r3) at var(--x3) var(--y3), #000 72%, transparent), radial-gradient(circle var(--r4) at var(--x4) var(--y4), #000 72%, transparent), radial-gradient(circle var(--r5) at var(--x5) var(--y5), #000 72%, transparent);
  mask-image: radial-gradient(circle var(--r1) at var(--x1) var(--y1), #000 72%, transparent), radial-gradient(circle var(--r2) at var(--x2) var(--y2), #000 72%, transparent), radial-gradient(circle var(--r3) at var(--x3) var(--y3), #000 72%, transparent), radial-gradient(circle var(--r4) at var(--x4) var(--y4), #000 72%, transparent), radial-gradient(circle var(--r5) at var(--x5) var(--y5), #000 72%, transparent);
}
.hero.w1 .scene-color { --r1: 24vmax; }
.hero.w2 .scene-color { --r2: 24vmax; }
.hero.w3 .scene-color { --r3: 26vmax; }
.hero.w4 .scene-color { --r4: 26vmax; }
.hero.w5 .scene-color { --r5: 24vmax; }
.hero.all .scene-color { --r1: 190vmax; --r3: 190vmax; transition-duration: 2.2s; }

.hero-text { max-width: min(760px, 100%); }
.hero h1 { font-size: clamp(42px, 6.5vw, 108px); line-height: 0.99; letter-spacing: -0.035em; margin-left: -0.03em; }
.lead { max-width: 32em; margin-top: 22px; font-size: clamp(17px, 1.35vw, 22px); line-height: 1.5; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 28px; }

.word { position: absolute; left: var(--x); top: var(--y); translate: -50% -50%; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 4px 18px 6px 12px; border: 0; border-radius: 99px; background: #fff; color: var(--ink); font: 800 clamp(17px, 1.4vw, 22px)/1 'Baloo 2', var(--face); cursor: pointer; box-shadow: 0 4px 0 rgb(23 50 77 / 0.28), 0 10px 24px rgb(23 50 77 / 0.2); animation: bob 3.6s ease-in-out calc(var(--i) * -0.9s) infinite alternate; transition: scale 0.35s var(--pop), background 0.3s, box-shadow 0.2s; }
.word i { font-style: normal; font-size: 1.25em; filter: grayscale(1); transition: filter 0.4s; }
.word:nth-child(1) { --x: var(--x1); --y: var(--y1); }
.word:nth-child(2) { --x: var(--x2); --y: var(--y2); }
.word:nth-child(3) { --x: var(--x3); --y: var(--y3); }
.word:nth-child(4) { --x: var(--x4); --y: var(--y4); }
.word:nth-child(5) { --x: var(--x5); --y: var(--y5); }
.word:hover { scale: 1.1; }
.word:active { scale: 0.95; box-shadow: 0 1px 0 rgb(23 50 77 / 0.3); }
.word[aria-pressed='true'] { background: var(--sun); font-family: var(--face); }
.word[aria-pressed='true'] i { filter: none; }
html:not(.js) .words, html:not(.js) .count { display: none; }
@keyframes bob { from { margin-top: -5px; } to { margin-top: 5px; } }
.count { position: absolute; left: var(--gut); bottom: 30px; padding: 10px 18px; border-radius: 14px; background: var(--ink); color: #fff; font-weight: 800; font-size: 16px; line-height: 1.35; }

/* Story: a film frame */
.story { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 84px); align-items: end; padding: var(--gap) var(--gut) var(--gap) 0; background: var(--night); color: #e9eef4; }
.film img { width: 100%; border-radius: 0 28px 28px 0; }
.story h2 { font-size: clamp(30px, 3.7vw, 58px); color: #fff; }
.story p { margin-top: 20px; max-width: 34em; color: #c9d5e1; }

/* How it plays */
.play { padding: var(--gap) var(--gut); }
.play > h2 { max-width: 15em; }
.stage { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 88px); margin-top: clamp(36px, 5vw, 72px); }
.stage-frames { position: sticky; top: 110px; align-self: start; display: grid; }
.stage-frames img { grid-area: 1 / 1; border-radius: 26px; border: 3px solid var(--line); box-shadow: 0 8px 0 var(--line); opacity: 0; scale: 0.97; transition: opacity 0.45s, scale 0.6s var(--out); }
.stage-frames img.on { opacity: 1; scale: 1; }
.steps { list-style: none; }
.steps li { display: flex; flex-direction: column; justify-content: center; min-height: 62vh; opacity: 0.8; transition: opacity 0.4s; }
.steps li.on { opacity: 1; }
.steps li img { display: none; }
.steps p { margin-top: 12px; max-width: 30em; }

/* Skills */
.skills { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(28px, 4vw, 72px); align-items: center; padding: clamp(64px, 9vw, 140px) var(--gut); background: var(--sun); }
.skills h2 { font-size: clamp(32px, 4.2vw, 66px); }
.skills-text > p { margin-top: 16px; }
.tabs { display: grid; gap: 10px; margin-top: 30px; }
.tabs button { display: grid; gap: 2px; padding: 14px 20px 15px; border: 0; border-radius: 18px; background: rgb(255 250 240 / 0.55); color: var(--ink); font: 500 16px/1.4 var(--face); text-align: left; cursor: pointer; transition: translate 0.25s var(--out), background 0.25s, box-shadow 0.25s; }
.tabs b { font: 800 22px/1.1 'Baloo 2', var(--face); }
.tabs button:hover { translate: 6px 0; background: var(--paper); }
.tabs button:active { translate: 3px 2px; }
.tabs button[aria-selected='true'] { background: var(--paper); box-shadow: 0 5px 0 #dba92f; translate: 10px 0; }
.skills-panel { border-radius: 28px; }
.skills-panel img { width: 100%; border-radius: 28px; }
.skills-panel img.swap { animation: swap 0.45s var(--out); }
@keyframes swap { from { opacity: 0; scale: 0.96; } }

/* Teachers */
.teach { padding: var(--gap) var(--gut) clamp(48px, 6vw, 90px); }
.teach-head { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 24px clamp(28px, 5vw, 88px); align-items: end; }
.flow { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); margin-top: clamp(48px, 6vw, 96px); row-gap: 24px; }
.flow figure { position: relative; }
.flow img { width: 100%; border-radius: 22px; box-shadow: 0 18px 44px rgb(23 50 77 / 0.2); }
.flow figcaption, .reports figcaption { margin-top: 14px; font-weight: 800; font-size: 15px; color: var(--soft); }
.flow-page { grid-column: 1 / 5; grid-row: 1 / 3; rotate: -2.5deg; align-self: start; transition: rotate 0.5s var(--pop); }
.flow-words { grid-column: 5 / 13; grid-row: 1; margin-left: clamp(20px, 2.5vw, 44px); z-index: 1; transition: translate 0.5s var(--out); }
.flow-game { grid-column: 4 / 11; grid-row: 2; z-index: 2; transition: translate 0.5s var(--out); }
.flow-words img { border: 2px solid var(--line); box-shadow: 0 6px 0 var(--line); }
.flow-page:hover { rotate: 0deg; }
.flow-words:hover, .flow-game:hover { translate: 0 -6px; }

/* Reports */
.reports { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 88px); align-items: center; padding: clamp(48px, 7vw, 110px) var(--gut) var(--gap); }
.reports img { width: 100%; border-radius: 22px; }
.reports h2 { font-size: clamp(30px, 3.5vw, 54px); }
.reports-text > p { margin-top: 16px; }
.reports dl { margin-top: 26px; }
.reports dl div { display: grid; grid-template-columns: 8em 1fr; gap: 14px; padding: 13px 0; border-top: 2px solid var(--line); }
.reports dt { font-weight: 800; }
.reports dd { color: var(--soft); line-height: 1.45; }

/* Journey */
.journey { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 72px); align-items: center; padding: clamp(64px, 8vw, 128px) var(--gut); background: #8fcbe0; overflow: hidden; }
.journey-text > p:not(.legend) { margin-top: 16px; max-width: 30em; }
.unit { margin-top: 28px; padding: 20px 24px 22px; border-radius: 22px; background: var(--paper); box-shadow: 0 6px 0 #5d9fb7; min-height: 148px; }
.unit .n { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; font-weight: 800; font-size: 15px; color: var(--soft); }
.unit .n em { padding: 1px 10px 2px; border-radius: 99px; background: var(--teal); color: #fff; font-style: normal; font-size: 13px; }
.unit strong { display: block; margin-top: 4px; font: 800 clamp(24px, 2.2vw, 32px)/1.15 'Baloo 2', var(--face); }
.unit .g { margin-top: 4px; }
.slide { display: block; margin-top: 26px; font-weight: 800; font-size: 15px; }
.slide input { display: block; width: 100%; height: 36px; margin-top: 4px; accent-color: var(--accent); cursor: grab; }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; font-size: 15px; }
.dot { width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 3px solid var(--ink); margin-left: 12px; }
.dot.ready { background: var(--accent); margin-left: 0; }
.map svg { display: block; width: 100%; height: auto; overflow: visible; }
.map .land { fill: #f0dfb4; stroke: #cdb67c; stroke-width: 2; stroke-linejoin: round; }
.map .asia { fill: #a9c9b8; }
.map .route { fill: none; stroke: #fff; stroke-width: 2.5; stroke-dasharray: 3 7; stroke-linecap: round; opacity: 0.75; }
.map .walked { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.map g.stop { cursor: pointer; }
.map g.stop circle.hit { fill: transparent; }
.map g.stop circle.d { fill: var(--paper); stroke: var(--ink); stroke-width: 2.5; transition: r 0.3s var(--pop), fill 0.3s; }
.map g.stop.ready circle.d { fill: var(--accent); }
.map g.stop:hover circle.d { r: 11px; }
.map g.stop.seen circle.d { fill: var(--sun); }
.map g.stop.seen.ready circle.d { fill: var(--accent); }
.map .pin { transition: translate 0.45s var(--out); }
.map .pin g { animation: pin 1.4s ease-in-out infinite alternate; }
@keyframes pin { from { transform: translateY(0); } to { transform: translateY(-6px); } }

/* Status */
.status { padding: var(--gap) var(--gut); }
.status-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 110px); margin-top: clamp(36px, 4.5vw, 68px); }
.status ul { list-style: none; margin-top: 16px; }
.status li { position: relative; padding: 13px 0 13px 42px; border-top: 2px solid var(--line); }
.status li::before { content: ''; position: absolute; left: 4px; top: 16px; width: 22px; height: 22px; border-radius: 8px; border: 3px solid var(--line); }
.status .done li::before { border-color: var(--teal); background: var(--teal); }
.status .done li::after { content: ''; position: absolute; left: 12px; top: 20px; width: 6px; height: 11px; border: solid #fff; border-width: 0 3px 3px 0; rotate: 42deg; }
.status .next { color: var(--soft); }
.status .next li::before { border-style: dashed; border-color: var(--soft); }
.safe { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 12px clamp(28px, 5vw, 88px); margin-top: clamp(44px, 5vw, 80px); padding: clamp(24px, 3vw, 44px); border-radius: 28px; background: #dcefe9; }

/* End */
.end { position: relative; display: flex; align-items: center; min-height: min(92vh, 900px); padding: 80px var(--gut); overflow: hidden; isolation: isolate; }
.end img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; }
.end::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(255 250 240 / 0.96) 22%, rgb(255 250 240 / 0.78) 42%, transparent 64%); }
.end h2 { max-width: 9em; font-size: clamp(38px, 5.6vw, 92px); line-height: 1; }
.end p { max-width: 25em; margin: 20px 0 28px; font-size: clamp(17px, 1.3vw, 21px); }
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 48px; padding: 36px var(--gut); background: var(--night); color: #c9d5e1; font-size: 15px; }
.foot .logo { color: #fff; }
.foot p { max-width: 46em; }

/* Phone */
@media (max-width: 1080px) { .top nav { display: none; } .top .btn { margin-left: auto; } }
@media (max-width: 820px) {
  .hero { --x1: 24%; --y1: 72%; --x2: 73%; --y2: 73%; --x3: 60%; --y3: 60%; --x4: 70%; --y4: 85%; --x5: 27%; --y5: 84%; padding-top: 108px; min-height: max(100svh, 760px); }
  .hero h1 { font-size: clamp(38px, 11vw, 64px); }
  .lead { margin-top: 14px; }
  .actions { margin-top: 18px; gap: 18px; flex-wrap: nowrap; }
  .actions .btn { padding: 0 22px 2px; white-space: nowrap; }
  .actions .link { font-size: 16px; white-space: nowrap; }
  .scene img { object-position: 55% 100%; }
  .scene::after { background: linear-gradient(rgb(255 250 240 / 0.9) 30%, rgb(255 250 240 / 0.55) 48%, transparent 60%); -webkit-mask: none; mask: none; }
  .hero { padding-bottom: 60px; }
  .count { bottom: 18px; right: var(--gut); text-align: center; font-size: 15px; }
  .word { min-height: 46px; }
  .story { grid-template-columns: 1fr; padding: 0 0 88px; }
  .film img { border-radius: 0; aspect-ratio: 4 / 3; object-fit: cover; object-position: 42% 50%; }
  .story-text { padding: 0 var(--gut); }
  .stage { grid-template-columns: 1fr; }
  .stage-frames { display: none; }
  .steps li { min-height: 0; opacity: 1; margin-bottom: 48px; }
  .steps li img { display: block; border-radius: 20px; border: 2px solid var(--line); margin-bottom: 18px; }
  .skills, .reports, .journey, .status-grid, .safe, .teach-head { grid-template-columns: 1fr; }
  .skills-panel { order: -1; }
  .tabs button[aria-selected='true'], .tabs button:hover { translate: 0 0; }
  .flow { display: block; }
  .flow figure { margin: 0 0 34px; }
  .flow-page { width: 78%; }
  .flow-words { overflow: hidden; }
  .flow-words img { width: 170%; max-width: none; }
  .reports { padding-top: 8px; }
  .reports dl div { grid-template-columns: 1fr; gap: 0; }
  .map { margin: 0 -10px; }
  .end { align-items: flex-start; min-height: 720px; padding-top: 72px; }
  .end img { object-position: 74% 100%; }
  .end::before { background: linear-gradient(rgb(255 250 240 / 0.96) 34%, rgb(255 250 240 / 0.5) 56%, transparent 70%); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01s !important; }
}
