/* Σημαδούρα: page CSS on top of the kit (assets/system.css, layout.css, motion.css).
   Drawn shapes lead this page: one line weight, the page's own colours, transform-only motion. */

:root {
  --c-peach: #ffd9c2; --c-mint: #c9ecdb; --c-sky: #cfe6f7; --c-butter: #ffeaa8;
  --c-peach-d: #f6a07a; --c-mint-d: #6fc7a4; --c-sky-d: #74b8e6; --c-butter-d: #f7cb4d;
  --c-coral: #ee7b5e; --c-sea: #a5d2ee;
  --st-line: 2.5px;
  --t-h2: clamp(28px, 1.33vw + 22.8px, 42px);
  --ground-bg: var(--c-sky);
}
html { font-synthesis: none; }
body { font-feature-settings: "palt" 0; }
h1, h2 { line-height: 1.14; }
h1, h2, h3 { hyphens: manual; }
.hero h1 { line-height: 1.12; text-wrap: balance; }
h2 { text-wrap: balance; }
h3 { line-height: 1.25; }
.section-head p, .t-lead { text-wrap: pretty; }
p { text-wrap: pretty; }
.nb { white-space: nowrap; }
a, button, label, summary { touch-action: manipulation; }
.sm-only { display: none; }
@media (max-width: 639px) { .lg-only { display: none; } .sm-only { display: block; } }
[id] { scroll-margin-top: calc(var(--nav) + var(--s-5)); }
main > section[id], footer[id], main[id] { scroll-margin-top: 0; }
#xoros-h { scroll-margin-top: var(--padt); }
.rows > li[id] { scroll-margin-top: 38vh; }
@media (min-width: 1024px) { .agecard[id] { scroll-margin-top: calc(var(--padt) + 150px); } #savvato { scroll-margin-top: calc(var(--padt) + 150px); } }

/* ------------------------------------------------------------ logo */
.nav__logo { gap: 10px; font-weight: 700; letter-spacing: -0.01em; }
.nav__logo .logo { height: 30px; width: 30px; overflow: visible; }
.logo__ink { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.logo__body { fill: var(--c-coral); stroke: var(--ink); stroke-width: 2; }
.logo__band { fill: var(--bg); }
.logo__top { fill: var(--c-butter-d); stroke: var(--ink); stroke-width: 1.6; }

/* ------------------------------------------------------------ the drawn shapes */
.sprite { position: absolute; width: 0; height: 0; }
.ink, .ink * { fill: none; stroke: var(--p-ink); stroke-width: var(--st-line); vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.cut { fill: var(--p-bg); stroke: var(--p-bg); stroke-width: 11; stroke-linecap: round; stroke-linejoin: round; }
.f-peach, .f-peach * { fill: var(--c-peach-d); }
.f-mint, .f-mint * { fill: var(--c-mint-d); }
.f-sky, .f-sky * { fill: var(--c-sky-d); }
.f-butter, .f-butter * { fill: var(--c-butter-d); }
.f-coral, .f-coral * { fill: var(--c-coral); }
.f-white, .f-white * { fill: var(--p-bg); }
.dot { fill: var(--p-ink); }
.paint { fill: none; stroke: var(--c-mint-d); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.st-text { font: 700 25px/1 var(--font-display); fill: var(--p-ink); }
.sea { fill: var(--c-sea); }

/* one shape: placed in percent of its board, upright; the cursor pushes it aside (--tx, --ty, site.js)
   and a tap plays its move on the svg inside. Transform only. */
.st {
  position: absolute; left: var(--x, 0); top: var(--y, 0); width: var(--w, 20%); aspect-ratio: 1; display: block;
  transform: translate3d(var(--tx, 0px), var(--ty, 0px), 0);
  transition: transform 420ms cubic-bezier(.22, 1, .36, 1);
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.st > svg { display: block; width: 100%; height: 100%; overflow: visible; transform-origin: 50% 58%; }
.st[data-st="rock"] > svg, .st[data-st="bob"] > svg { transform-origin: 50% 82%; }
.st[data-st="sway"] > svg { transform-origin: 50% 90%; }
.st > svg.is-moving { animation: 720ms cubic-bezier(.3, .7, .3, 1) both; }
.st[data-st="spin"] > svg.is-moving { animation-name: st-spin; }
.st[data-st="rock"] > svg.is-moving { animation-name: st-rock; animation-duration: 900ms; }
.st[data-st="sway"] > svg.is-moving { animation-name: st-sway; animation-duration: 900ms; }
.st[data-st="bob"] > svg.is-moving { animation-name: st-bob; animation-duration: 900ms; }
.st[data-st="hop"] > svg.is-moving { animation-name: st-hop; animation-duration: 620ms; }
.st[data-st="wiggle"] > svg.is-moving { animation-name: st-wiggle; }
.st[data-st="swim"] > svg.is-moving { animation-name: st-swim; animation-duration: 900ms; }
.st[data-st="drift"] > svg.is-moving { animation-name: st-drift; animation-duration: 1100ms; }
@keyframes st-spin { to { transform: rotate(var(--turn, 90deg)); } }
@keyframes st-rock { 25% { transform: rotate(-9deg); } 60% { transform: rotate(6deg); } 85% { transform: rotate(-2deg); } }
@keyframes st-sway { 30% { transform: translate(6px, -8px) rotate(9deg); } 68% { transform: translate(-4px, 3px) rotate(-5deg); } }
@keyframes st-bob { 30% { transform: translateY(8px) rotate(-6deg); } 66% { transform: translateY(-5px) rotate(4deg); } }
@keyframes st-hop { 35% { transform: translateY(-14px) scale(1.04); } 70% { transform: translateY(0) scale(1.03, .96); } }
@keyframes st-wiggle { 22% { transform: rotate(-10deg) scale(1.06); } 52% { transform: rotate(8deg) scale(1.06); } 80% { transform: rotate(-3deg); } }
@keyframes st-swim { 50% { transform: translateX(-16px) rotate(-5deg); } }
@keyframes st-drift { 50% { transform: translateX(12px); } }
@media (prefers-reduced-motion: reduce) {
  .st { transition: none; transform: none; }
  .st > svg.is-moving { animation: none; }
}

/* ------------------------------------------------------------ buttons the brief asks for */
.ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.reach { display: grid; grid-template-columns: repeat(2, max-content); gap: var(--s-3); }
.reach--hero { display: none; }
@media (max-width: 639px) {
  .reach { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reach .btn { height: 48px; }
  .hero__text > .reach--hero { display: grid; margin-top: var(--s-3); }
  .hero__call { display: none; }
}

/* the age buttons: the first choice a parent makes (hero) and the timetable's switch */
.agebtn {
  display: inline-grid; place-items: center; width: 64px; height: 64px; flex: none; padding: 0; cursor: pointer;
  border: var(--st-line) solid var(--ink); border-radius: 999px; background: var(--age, var(--c-peach)); color: var(--ink);
  font: 700 20px/1 var(--font-display); font-variant-numeric: lining-nums; letter-spacing: -0.01em;
  transition: transform 150ms var(--ease), background-color 150ms var(--ease);
}
.agebtn--peach { --age: var(--c-peach); --age-d: var(--c-peach-d); }
.agebtn--mint { --age: var(--c-mint); --age-d: var(--c-mint-d); }
.agebtn--sky { --age: var(--c-sky); --age-d: var(--c-sky-d); }
.agebtn--butter { --age: var(--c-butter); --age-d: var(--c-butter-d); }
@media (hover: hover) and (pointer: fine) { .agebtn:hover { background: var(--age-d); transform: translateY(-2px); } }
.agebtn:active { transform: translateY(1px) scale(.97); }
.agebtn[aria-pressed="true"] { background: var(--age-d); box-shadow: 0 0 0 3px var(--bg), 0 0 0 5.5px var(--ink); }
@media (prefers-reduced-motion: reduce) { .agebtn { transition: background-color 150ms var(--ease); } .agebtn:hover, .agebtn:active { transform: none; } }

/* the sample tag every placeholder carries */
.sample {
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; width: max-content;
  background: var(--bg); color: var(--ink); border: 1.5px solid var(--ink); font: 500 var(--t-label)/1 var(--font-text); letter-spacing: 0.01em;
}

/* ------------------------------------------------------------ hero */
.hero--collage .hero-text { position: relative; }
.hero__text > .btn-row { margin-top: var(--s-6); }
.board { background: var(--c-sky); border-radius: var(--r-lg); }
.board__sea { position: absolute; left: 0; bottom: 0; width: 100%; height: 37%; overflow: visible; z-index: 2; }
.board .st { z-index: 1; }
.board .st--sea { z-index: 3; }
@media (min-width: 1024px) { .board .st--star { display: none; } }
.board__hours { width: min(340px, calc(100% - 2 * var(--s-5))); gap: var(--s-3); padding: var(--s-4) var(--s-5); border: var(--st-line) solid var(--ink); border-radius: var(--r-md); z-index: 4; }
.board__hours .hours { grid-template-columns: minmax(0, 1fr); gap: 0; font-size: var(--t-small); }
.board__hours .hours dt { font-weight: 500; margin-top: var(--s-2); }
.board__hours .hours dt:first-child { margin-top: 0; }
.hero__hours { font-size: var(--t-small); line-height: 1.45; color: var(--ink); margin-top: var(--s-3); }

.agepick { display: grid; gap: var(--s-3); align-content: start; }
.agepick__q { font: 700 var(--t-lead)/1.3 var(--font-display); color: var(--ink); }
.agepick__list { display: flex; gap: var(--s-3); list-style: none; margin: 0; padding: 0; }
@media (min-width: 1024px) {
  .hero--collage .hero__grid > .hero__text { grid-column: 1 / span 5; grid-row: 1; }
  .hero--collage .hero__grid > .agepick { grid-column: 1 / span 5; grid-row: 1; align-self: end; }
  .hero--collage .hero__grid > .hero__art { grid-column: 7 / span 6; grid-row: 1; }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .hero--collage .hero__grid > .agepick { margin-top: var(--s-6); grid-template-columns: auto 1fr; align-items: center; gap: var(--s-5); }
}
@media (max-width: 1023px) {
  .hero__art.board { min-height: 260px; }
  .board__hours { display: none; }
}
@media (min-width: 640px) and (max-width: 1023px) {
  /* the board is a wide band on a tablet: the shapes stand along it */
  .board .st--sun { left: 5%; top: 8%; width: 15%; }
  .board .st--cloud1 { left: 23%; top: 9%; width: 13%; }
  .board .st--cloud2 { left: 62%; top: 16%; width: 10%; }
  .board .st--kite { left: 78%; top: 5%; width: 16%; }
  .board .st--boat { left: 36%; top: 20%; width: 29%; }
  .board .st--buoy { left: 69%; top: 47%; width: 12%; }
  .board .st--fish1 { left: 56%; top: 76%; width: 9%; }
  .board .st--fish2 { left: 82%; top: 82%; width: 6%; }
  .board .st--star { left: 15%; top: 78%; width: 7%; }
}
@media (max-width: 639px) {
  /* a phone: the board takes what the screen leaves; the age buttons sit on its foot, on their own panel */
  .hero__art.board { min-height: 250px; margin-top: var(--s-5); }
  .board .st--lg { display: none; }
  .board__sea { height: 58%; }
  .board .st--sun { left: 6%; top: 5%; width: 22%; }
  .board .st--kite { left: 72%; top: 3%; width: 23%; }
  .board .st--boat { left: 31%; top: 13%; width: 38%; }
  .board .st--buoy { left: 7%; top: 34%; width: 17%; }
  .hero--collage .hero__grid > .agepick {
    position: absolute; left: var(--s-3); right: var(--s-3); bottom: var(--s-3); z-index: 3;
    padding: var(--s-3) var(--s-4) var(--s-4); background: var(--bg); border: var(--st-line) solid var(--ink); border-radius: var(--r-md);
    gap: var(--s-2); justify-items: center;
  }
  .agepick__q { font-size: var(--t-body); }
  .agepick__list { gap: var(--s-3); }
  .agepick .agebtn { width: 56px; height: 56px; font-size: 18px; }
}
@media (max-width: 359px) { .agepick .agebtn { width: 50px; height: 50px; font-size: 16px; } .agepick__list { gap: var(--s-2); } }
@media (max-width: 359px) { .hero--collage h1 { font-size: 30px; } :root { --t-h2: 26px; } }
.hero__text { min-width: 0; }

/* ------------------------------------------------------------ ages */
.ages__grid { align-items: stretch; }
.agecard {
  --card: var(--c-peach); position: relative; border: 0; padding: var(--s-5); gap: var(--s-2); color: var(--ink);
}
.agecard__pic { position: relative; display: block; height: 140px; margin-bottom: var(--s-3); border-radius: var(--r-md); background: color-mix(in oklab, var(--p-bg) 55%, var(--card)); }
.agecard__ground { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border-radius: inherit; }
.agecard--mint { --card: var(--c-mint); } .agecard--sky { --card: var(--c-sky); } .agecard--butter { --card: var(--c-butter); }
.agecard__age { font: 700 clamp(48px, 4.4vw, 64px)/1 var(--font-display); letter-spacing: -0.02em; font-variant-numeric: lining-nums; margin-bottom: var(--s-4); }
.agecard__age small { font: 700 20px/1 var(--font-display); letter-spacing: 0; margin-left: 2px; }
.agecard > h3 { font-weight: 700; font-size: var(--t-card); }
.agecard__time { display: block; font-variant-numeric: lining-nums tabular-nums; }
/* the time keeps its own line at every width: inline on a phone it wrapped alone after a comma */
.agecard__sep { display: none; }
.agecard__go { margin-top: auto; padding-top: var(--s-4); font-weight: 500; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: color-mix(in oklab, var(--ink) 40%, transparent); }
.agecard:hover .agecard__go, .agecard:focus-visible .agecard__go { text-decoration-color: currentColor; }
@media (min-width: 640px) and (max-width: 1023px) { .agecard__pic { height: 112px; } }
@media (max-width: 639px) {
  .ages .section-head p { display: none; }
  main > .ages .section-head { margin-bottom: var(--s-5); }
  .ages__grid { row-gap: var(--s-2); }
  .agecard { display: grid; grid-template-columns: 76px minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: var(--s-3); row-gap: 2px; min-height: 0; padding: 8px var(--s-4); align-content: start; }
  .agecard__age { grid-column: 1; grid-row: 1 / span 2; align-self: start; font-size: 30px; margin: 0; display: grid; gap: 4px; }
  .agecard__age small { font-size: 14px; margin: 0; }
  .agecard__pic { grid-column: 1; grid-row: 3; align-self: start; width: 40px; height: 40px; margin: 4px 0 0; background: none; }
  .agecard__ground, .agecard__pic > .st--pic-s { display: none; }
  .agecard__pic > .st--pic { left: 0; top: 0; width: 100%; }
  .agecard > h3 { grid-column: 2; grid-row: 1; }
  .agecard > p { grid-column: 2; grid-row: 2 / span 2; }
  .agecard__go { display: none; }
}

/* ------------------------------------------------------------ the statement (word-highlight) */
.statement .mo-wh__text { max-width: 1160px; font-size: clamp(29px, 3.5vw, 50px); line-height: 1.28; }
/* the moment's own look (its stylesheet loads after this one, so these rules name the section too): each word rests at
   a softer ink and comes to full ink, by opacity only; the strong words take the accent as they turn on */
.statement.mo-wh .mo-w { opacity: .62; }
.statement.mo-wh .mo-w.is-on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .statement.mo-wh .mo-w { opacity: 1; } }
.statement__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-5); margin-top: auto; padding-top: var(--s-8); }
.st--row { position: relative; left: auto; top: auto; width: clamp(84px, 9vw, 128px); }
@media (max-width: 639px) { .statement__row { gap: var(--s-3); margin-top: var(--s-6); } .st--row { width: 47px; } .statement .mo-wh__text { line-height: 1.3; } }

/* ------------------------------------------------------------ workshops */
.workshops__text { display: flex; flex-direction: column; gap: var(--head-gap); }
.rows--icon > li { grid-template-columns: 52px minmax(0, 1fr) auto; column-gap: var(--s-4); }
.rows--icon > li > .st--icon { position: relative; left: auto; top: auto; width: 52px; grid-column: 1; grid-row: 1 / span 2; align-self: start; }
.rows--icon > li > .rows__name { grid-column: 2; font: 700 var(--t-card)/1.3 var(--font-display); }
.rows--icon > li > p { grid-column: 2; max-width: none; }
.rows--icon > li > .rows__value { grid-column: 3; color: var(--muted); font-weight: 500; }
.rows--icon > li:focus-visible { outline-offset: 4px; border-radius: var(--r-sm); }
.scenes { padding: 0; border: 0; background: var(--c-peach); min-height: 320px; }
.scene { position: absolute; inset: 0; border-radius: inherit; }
.scene[hidden] { display: none; }
.scene--peach { background: var(--c-peach); } .scene--mint { background: var(--c-mint); } .scene--butter { background: var(--c-butter); } .scene--sky { background: var(--c-sky); }
.scenes .st { top: calc(var(--y) + 0%); }
@media (max-width: 639px) {
  .scenes { display: none; }
  .workshops__text { gap: var(--s-6); }
  .rows--icon > li { grid-template-columns: 40px minmax(0, 1fr) auto; column-gap: var(--s-3); padding-block: 14px; }
  .rows--icon > li > .st--icon { width: 40px; }
  .rows--icon > li > p { grid-column: 2 / -1; }
}

/* ------------------------------------------------------------ timetable */
.week__head { margin-bottom: var(--s-6); align-items: end; }
.week__head > div:first-child { max-width: 920px; }
.week__head > .week__pick { display: flex; align-items: center; gap: var(--s-3); flex: none; max-width: none; }
.week__pick .t-label { margin-right: var(--s-2); color: var(--muted); }
.week__pick .agebtn { width: 52px; height: 52px; font-size: 17px; }
.week { width: 100%; border-collapse: separate; border-spacing: 0 var(--s-2); table-layout: fixed; font-variant-numeric: lining-nums tabular-nums; }
.week th, .week td { text-align: left; padding: 14px var(--s-3); font-weight: 400; }
.week thead th { vertical-align: bottom; padding-block: 0 var(--s-2); }
.week thead th:first-child, .week tbody th { width: 13.5%; padding-left: var(--s-5); }
.week__day { display: block; font: 700 var(--t-card)/1.25 var(--font-display); }
.week__ws { display: block; font-size: var(--t-small); line-height: 1.35; color: var(--muted); }
.week__row > * { background: var(--row); transition: opacity 200ms var(--ease); }
.week__row > :first-child { border-radius: var(--r-md) 0 0 var(--r-md); }
.week__row > :last-child { border-radius: 0 var(--r-md) var(--r-md) 0; }
.week__row--peach { --row: var(--c-peach); } .week__row--mint { --row: var(--c-mint); } .week__row--sky { --row: var(--c-sky); } .week__row--butter { --row: var(--c-butter); }
.week__age { display: block; font: 700 var(--t-card)/1.25 var(--font-display); white-space: nowrap; }
.week__grp { display: block; font-size: var(--t-small); line-height: 1.35; color: var(--ink); }
.week td { font-weight: 500; white-space: nowrap; }
.week td.week__none { font-weight: 400; white-space: normal; }
[data-week][data-pick] .week__row:not(.is-on) > * { opacity: .38; }
.week__foot { align-items: start; row-gap: var(--s-4); margin-top: var(--s-5); }
.week__foot > p { max-width: none; }
.week__hours { gap: var(--s-1) var(--s-5); margin-top: 0; }
.week__hours dt { font-weight: 500; }
@media (max-width: 1023px) {
  /* one card per age: the row's cells read as "day and workshop ... time" */
  .week, .week tbody { display: block; }
  .week thead { display: none; }
  .week tbody { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
  .week__row { display: block; background: var(--row); border-radius: var(--r-lg); padding: var(--s-4) var(--s-4) var(--s-2); transition: opacity 200ms var(--ease); }
  .week__row > * { background: none; border-radius: 0 !important; }
  .week tbody th { display: flex; align-items: baseline; gap: var(--s-3); width: auto; padding: 0 0 var(--s-2); }
  .week td { display: flex; justify-content: space-between; gap: var(--s-3); padding: 9px 0; white-space: normal; text-align: right; }
  .week td { white-space: nowrap; }
  .week td::before { content: attr(data-label); font-weight: 400; text-align: left; white-space: normal; flex: 1 1 auto; min-width: 0; }
  [data-week][data-pick] .week__row:not(.is-on) > * { opacity: 1; }
  [data-week][data-pick] .week__row:not(.is-on) { opacity: .38; }
  .week__head { align-items: start; }
}
@media (max-width: 639px) {
  .week__head { margin-bottom: var(--s-4); gap: var(--s-4); }
  .week__head p, .week__foot > p { display: none; }
  .week__pick { width: 100%; justify-content: space-between; }
  .week__pick .t-label { margin-right: auto; }
  .week__pick .agebtn { width: 48px; height: 48px; font-size: 16px; }
  .week tbody { grid-template-columns: minmax(0, 1fr); gap: var(--s-3); }
  .week__foot { margin-top: var(--s-3); }
  .week td { padding: 8px 0; }
  .week__hours { gap: 2px var(--s-4); }
  /* with script on, a phone shows the picked age's card alone (site.js picks the first); without it, all four */
  .js [data-week][data-pick] .week__row:not(.is-on) { display: none; }
}
@media (max-width: 359px) { .week__pick .t-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .week__pick { justify-content: flex-start; } }
@media (min-width: 640px) and (max-width: 1023px) { main > #programma { --h: 2; } }

/* ------------------------------------------------------------ teachers */
@media (min-width: 640px) {
  main > .teachers > .wrap.wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: var(--card-gap); align-content: start; }
  .teachers .group, .teachers .grid { display: contents; }
  .teachers .section-head { grid-column: 1 / -1; }
  .teachers .teacher { grid-column: auto / span 6; }
}
@media (min-width: 1024px) { .teachers .teacher { grid-column: auto / span 3; } }
.teacher .tile__media { border-radius: var(--r-lg); }
@media (min-width: 1024px) { .teacher { --tile-ratio: 1 / 1.14; } }
.teacher .sample { position: absolute; left: var(--s-3); top: var(--s-3); }
.teacher__text { display: grid; gap: var(--s-1); }
.teacher__text > h3 { font: 700 var(--t-card)/1.25 var(--font-display); }
.teacher__role { font-weight: 500; }
.teacher__text > p { color: var(--ink); }
@media (min-width: 640px) and (max-width: 1023px) { .teacher .tile__media { aspect-ratio: 16 / 10; } .teachers .section-head p { display: none; } }
@media (max-width: 639px) {
  .teachers .section-head p { display: none; }
  .teachers .grid > .teacher { grid-column: auto / span 6; }
  .teacher { gap: var(--s-3); }
}

/* ------------------------------------------------------------ the space */
@media (min-width: 640px) {
  main > .space > .wrap.wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-content: start; align-items: start; }
  .space__text { grid-column: 1 / span 6; }
  .space__photos { grid-column: 7 / span 6; }
}
@media (min-width: 1024px) { .space__text { grid-column: 1 / span 5; } }
.space__text { display: grid; gap: var(--head-gap); align-content: start; }
.facts { display: grid; gap: var(--s-5); list-style: none; margin: 0; padding: 0; }
.facts h3 { font: 700 var(--t-card)/1.3 var(--font-display); margin-bottom: var(--s-1); }
.facts p { max-width: 52ch; }
.space__photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--card-gap); align-content: start; }
.space__photo { margin: 0; border-radius: var(--r-lg); overflow: clip; background: var(--surface); aspect-ratio: 4 / 3; }
.space__photo--wide { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
@media (min-width: 1024px) { .space__photo:not(.space__photo--wide) { aspect-ratio: 1; } }
.space__photo > img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 640px) and (max-width: 1023px) { .space__photo { aspect-ratio: 1; } .space__photo--wide { aspect-ratio: 3 / 2; } }
@media (max-width: 639px) {
  /* one screen on a phone: the facts and the room; the shelves and the painting stay for wider screens */
  .space__text { gap: var(--s-6); }
  .facts { gap: var(--s-4); }
  .space__photos { grid-template-columns: minmax(0, 1fr); margin-top: var(--s-5); }
  .space__photo--more { display: none; }
  .space__photo--wide { aspect-ratio: 3 / 1; }
}
@media (max-width: 359px) {
  /* a narrow phone: one teacher a row, the portrait beside the words */
  .teachers .grid > .teacher { grid-column: 1 / -1; grid-template-columns: 112px minmax(0, 1fr); column-gap: var(--s-3); align-items: start; }
}

/* ------------------------------------------------------------ parents */
.parents__grid { align-items: stretch; }
.says { --card: var(--c-peach); position: relative; border: 0; margin: 0; padding: var(--s-6); gap: var(--s-4); min-height: 380px; }
.says--mint { --card: var(--c-mint); } .says--butter { --card: var(--c-butter); }
.says__q { margin: 0; display: flex; flex-direction: column; gap: var(--s-4); flex: 1 1 auto; }
.says blockquote { margin: 0; font: 500 clamp(19px, 1.95vw, 28px)/1.42 var(--font-text); color: var(--ink); max-width: 24ch; }
.says figcaption { margin-top: auto; font-size: var(--t-body); color: var(--ink); max-width: 60%; }
.st--says { left: auto; top: auto; right: var(--s-5); bottom: var(--s-5); width: 128px; }
@media (min-width: 640px) and (max-width: 1023px) { .says { min-height: 260px; } .parents__grid > .says { grid-column: 1 / -1; } .says blockquote { max-width: 40ch; } }
@media (max-width: 639px) {
  .says { padding: var(--s-4); gap: var(--s-2); min-height: 0; max-height: none; }
  .says__q { gap: var(--s-2); }
  .says blockquote { font-size: 17px; max-width: none; }
  .says figcaption { max-width: none; font-size: var(--t-small); margin-top: 2px; }
  .st--says { width: 40px; right: calc(var(--s-4) + 82px); bottom: calc(var(--s-4) - 8px); }
  .says .sample { position: absolute; right: var(--s-4); bottom: var(--s-4); }
  .says figcaption { padding-right: 132px; }
}

/* ------------------------------------------------------------ trial lesson */
@media (min-width: 640px) {
  main > .booking > .wrap.wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-content: start; align-items: start; }
  .booking__text { grid-column: 1 / span 5; }
  .booking__card { grid-column: 6 / span 7; }
}
@media (min-width: 1024px) { .booking__card { grid-column: 7 / span 6; } }
.booking__text { display: flex; flex-direction: column; gap: var(--s-4); }
.booking__sea { position: relative; flex: none; height: 200px; margin-top: var(--s-5); border-radius: var(--r-lg); background: var(--c-sky); overflow: clip; }
.booking__ground { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.form__note { color: var(--ink); }
.booking__text > h2 { margin-bottom: var(--s-4); }
.booking__text > p { max-width: 50ch; }
.booking__text > .reach { margin-top: var(--s-4); }
.booking__card { background: var(--c-mint); border-radius: var(--r-lg); padding: var(--s-7); }
.booking .field :is(input, select) { border-color: color-mix(in oklab, var(--ink) 45%, transparent); background: var(--bg); }
.ticks { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.ticks > legend { padding: 0; margin-bottom: var(--s-2); font-size: var(--t-small); font-weight: 500; width: 100%; }
.tick { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; padding: 0 var(--s-4) 0 var(--s-3); border-radius: 999px; background: var(--bg);
  border: 1px solid color-mix(in oklab, var(--ink) 45%, transparent); font-size: var(--t-body); font-weight: 400; cursor: pointer; }
.field .tick input { width: 20px; height: 20px; padding: 0; margin: 0; flex: none; accent-color: var(--p-ink); border-radius: 4px; }
.tick:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.tick:has(input:focus-visible) { outline: 2px solid var(--action); outline-offset: 2px; }
@media (min-width: 640px) and (max-width: 1023px) { .booking__card { padding: var(--s-5); } .booking .form { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 639px) {
  .booking__text > h2 { margin-bottom: 0; }
  .booking__sea { height: 140px; margin-top: var(--s-3); }
  .booking__card { padding: var(--s-5) var(--s-4); }
  .booking .form { gap: var(--s-3); }
  .ticks { gap: 0 var(--s-4); }
  .tick { background: none; border: 0; padding: 0; border-radius: var(--r-sm); }
  .tick:has(input:checked) { box-shadow: none; }
}

/* ------------------------------------------------------------ close and footer */
.close__street { font-weight: 500; }
.closing__cta h2 { max-width: none; }
.closing__links .footer__lede { font: 400 var(--t-body)/1.5 var(--font-text); letter-spacing: 0; }
@media (min-width: 1024px) { footer.closing > .wrap { row-gap: var(--s-7); } .closing__links { gap: var(--s-6); } }
.map { background: var(--c-sea); min-height: 200px; }
.close__media.map > img { object-fit: none; object-position: 50% 50%; }
.map__pin { left: 50%; top: 50%; width: 46px; aspect-ratio: 60 / 78; margin: -56px 0 0 -23px; z-index: 2; }
.map__pin > svg { transform-origin: 50% 92%; }
.footer__hours { grid-template-columns: minmax(0, 1fr); gap: 0; font-size: var(--t-small); }
.footer__hours dt { color: var(--muted); margin-top: var(--s-2); }
.footer__hours dt:first-child { margin-top: 0; }
.footer__col a[href^="tel:"] { font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.credits > summary::after { content: "Πηγές"; }
.credits[open] > summary::after { content: "Απόκρυψη"; }
@media (min-width: 640px) and (max-width: 1023px) {
  .closing__links .grid > .footer__col { grid-column: auto / span 3; }
  .closing__links .grid > :first-child { grid-column: 1 / -1; }
  .closing__links { gap: var(--s-5); }
  .closing__links .grid { row-gap: var(--s-5); }
  footer.closing > .wrap { row-gap: var(--s-6); }
  .closing__cta { gap: var(--s-5); }
  .map { min-height: 170px; }
}
@media (max-width: 639px) {
  .closing__links .grid > .footer__col { grid-column: auto / span 6; }
  .closing__links .grid > .footer__col--nav { display: none; }
  .closing__links { gap: var(--s-6); }
  .closing__links .grid { row-gap: var(--s-6); }
  .map { min-height: 240px; }
}

@media (max-width: 639px) { main > :is(section, .section) > .wrap > .fill { flex: 1 0 auto; min-height: auto; } }

/* ------------------------------------------------------------ the phone bar: call, Viber, the trial lesson */
@media (max-width: 639px) {
  .actionbar--three { grid-auto-flow: row; grid-template-columns: 84px 84px minmax(0, 1fr); gap: var(--s-2); }
  .actionbar--three .btn { padding-inline: var(--s-2); gap: 6px; font-size: var(--t-small); }
  .actionbar--three .btn--primary { white-space: normal; text-align: center; line-height: 1.15; }
}
@media (max-width: 359px) {
  .actionbar--three { grid-template-columns: 72px 72px minmax(0, 1fr); gap: 6px; padding-inline: var(--s-4); }
  .actionbar--three .ico { display: none; }
}

/* ------------------------------------------------------------ a short laptop screen
   The kit fixes every section at one screen from 1280px wide. On a wide but short window (a 13-inch laptop
   with its browser bars) the content would run into the next section, so there a section is at least its
   screens and grows with what it holds, as the kit already does under 1280px. */
@media (min-width: 1280px) and (max-height: 859px) {
  main > :is(section, .section):not(.hero), footer.closing { height: auto; min-height: calc(var(--h, 1) * 100svh); display: flex; flex-direction: column; }
  main > :is(section, .section):not(.hero) > .wrap, footer.closing > .wrap { flex: 1 0 auto; height: auto; min-height: 0; }
  main > :is(section, .section) > .wrap > .fill { flex: 1 0 auto; }
  .closing__cta > .close__media { flex: 1 0 200px; }
}
/* a small laptop or a tablet held sideways (1024 to 1279): the text takes six columns, the age buttons go under it,
   and the hero grows with what it holds; the menu's spacing tightens so its last link keeps clear of the button */
@media (min-width: 1024px) and (max-width: 1279px) {
  main > .hero { height: auto; min-height: 100svh; }
  main > .hero > .wrap { height: auto; }
  .hero--collage .hero__grid > .hero__text { grid-column: 1 / span 6; }
  .hero--collage .hero__grid > .agepick { grid-column: 1 / span 6; grid-row: 2; align-self: start; margin-top: var(--s-7); }
  .hero--collage .hero__grid > .hero__art { grid-row: 1 / span 2; }
  .hero--collage h1 { font-size: 46px; }
  .hero .hero__lead .lg-only { display: none; }
  .nav__bar { gap: var(--s-4); }
  .nav__link { padding-inline: 8px; }
  .booking__text { grid-column: 1 / span 6; }
}
@media (min-width: 1024px) and (max-height: 739px) {
  main > .hero { height: auto; min-height: 100svh; }
  main > .hero > .wrap { height: auto; }
  .hero__art.board { min-height: 520px; }
}
