/* The calm front page, Greek island mood: whitewashed walls, cobalt domes, a hand-drawn village.
   Readable first: body text 17 to 18px at normal weight, labels in sentence case, tap targets 44px or more. */
@font-face { font-family: "Hand"; src: url("fonts/sue-ellen-francisco.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Jost"; src: url("fonts/jost-var.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }

:root {
  --cream: #f6f1ec; --white: #fffdfa; --cobalt: #1f3c9b; --cobalt-dk: #182f7c; --ink: #2b3247; --dim: #4f566b; --line: #e3ddd5;
  --hand: "Hand", "Jost", "Helvetica Neue", Arial, sans-serif; --sans: "Jost", "Helvetica Neue", Arial, sans-serif; --pad: clamp(20px, 5vw, 72px);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--cream); color: var(--ink); scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; font-family: var(--sans); font-size: 18px; line-height: 1.65; -webkit-font-smoothing: antialiased; transition: opacity .4s ease, background .4s ease; }
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 4px; }
::selection { background: var(--cobalt); color: #fff; }
.gb-hp { position: absolute; left: -9999px; }
body.lang-fade main, body.lang-fade footer { animation: langfade .5s ease; }
@keyframes langfade { 0% { opacity: .15; } 100% { opacity: 1; } }
body.to-play { opacity: 0; background: #000; }
html:has(body.to-play) { background: #000; }

/* shared pieces: the hand lettering is kept for headings only, never for running text */
.c-h2, h1, h3 { font-family: var(--hand); font-weight: 400; text-transform: uppercase; letter-spacing: .05em; color: var(--cobalt); }
.c-h2 { font-size: clamp(2.6rem, 5vw, 4.2rem); line-height: 1.1; margin: 0 0 16px; }
.c-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border: 1.5px solid var(--cobalt); border-radius: 99px; background: var(--cobalt); color: #fff; font: 500 1rem var(--sans); letter-spacing: .01em; text-decoration: none; cursor: pointer; transition: background .2s, color .2s; }
.c-btn:hover { background: var(--cobalt-dk); border-color: var(--cobalt-dk); }
.c-btn.ghost { background: transparent; color: var(--cobalt); border-color: #a9b3e0; }
.c-btn.ghost:hover { border-color: var(--cobalt); background: #fff; }
.c-btn.white { background: #fff; border-color: #fff; color: var(--cobalt); }
.c-btn.white:hover { background: var(--cream); }
.wave { position: absolute; left: 0; width: 100%; height: 60px; display: block; pointer-events: none; }

/* header: the hand-drawn village runs behind it */
.c-top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: clamp(12px, 2.5vw, 30px); min-height: 84px; padding: 10px var(--pad); background: var(--white) url("media/village.svg") repeat-x left bottom / auto 84px; box-shadow: 0 1px 0 var(--line); }
.c-mark { display: grid; flex-shrink: 0; white-space: nowrap; text-decoration: none; line-height: 1; color: var(--cobalt); background: rgba(255, 253, 250, .88); padding: 6px 10px; margin-left: -10px; border-radius: 10px; }
.c-mark b { font: 400 1.9rem var(--hand); letter-spacing: .06em; text-transform: uppercase; }
.c-mark small { font-size: .78rem; margin-top: 4px; color: var(--dim); }
.c-nav { display: flex; gap: 6px; margin-left: auto; }
.c-nav a { padding: 10px 14px; border-radius: 99px; background: rgba(255, 253, 250, .9); text-decoration: none; font-size: 1rem; font-weight: 500; color: var(--ink); white-space: nowrap; }
.c-nav a:first-letter { text-transform: uppercase; }
.c-nav a:hover { color: var(--cobalt); }
.lang-switch { position: relative; display: inline-flex; align-items: center; padding: 0; height: 44px; border: 1.5px solid var(--cobalt); border-radius: 99px; background: var(--white); color: var(--cobalt); font: 600 .88rem var(--sans); cursor: pointer; overflow: hidden; flex-shrink: 0; }
.lang-switch span { position: relative; z-index: 1; width: 42px; text-align: center; transition: color .25s; }
.lang-switch i { position: absolute; top: 3px; bottom: 3px; left: 3px; width: 38px; border-radius: 99px; background: var(--cobalt); transition: transform .35s cubic-bezier(.5, 1.4, .4, 1); }
.lang-switch[data-on="fr"] i { transform: translateX(42px); }
.lang-switch[data-on="en"] span[data-l="en"], .lang-switch[data-on="fr"] span[data-l="fr"] { color: #fff; }
.c-play { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px 0 14px; border-radius: 99px; background: var(--cobalt); color: #fff; text-decoration: none; font-size: .95rem; font-weight: 500; flex-shrink: 0; white-space: nowrap; }
.c-play span:first-letter { text-transform: uppercase; }
.c-play:hover { background: var(--cobalt-dk); }
.c-play svg { width: 24px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.4; }

/* intro: words only, lots of air */
.c-intro { position: relative; padding: clamp(64px, 13vh, 150px) var(--pad) clamp(120px, 18vh, 190px); }
.c-intro h1 { font-size: clamp(3rem, 6.4vw, 6rem); line-height: 1.1; margin: 0 0 28px; max-width: 13em; }
.c-lead { font-size: clamp(1.1rem, 1.5vw, 1.28rem); color: var(--dim); max-width: 36em; margin: 0 0 36px; }
.c-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 0; }
.c-intro .wave { bottom: -1px; fill: var(--white); }

/* work */
.c-work { position: relative; background: var(--white); padding: clamp(40px, 8vh, 90px) var(--pad) clamp(70px, 12vh, 140px); }
.c-work-head { max-width: 1200px; margin: 0 auto clamp(36px, 6vh, 64px); }
.c-hint { font-size: 1.05rem; color: var(--dim); margin: 0; max-width: 36em; }
.c-proj { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 96px); align-items: center; max-width: 1200px; margin: 0 auto clamp(70px, 12vh, 130px); }
.c-proj:last-child { margin-bottom: 0; }
.c-proj.flip .c-shot { order: 2; }
.c-proj-text h3 { font-size: clamp(2.2rem, 3.6vw, 3.2rem); line-height: 1.1; margin: 0 0 4px; }
.c-proj-text .c-place { margin: 0 0 16px; font-size: 1rem; font-weight: 500; color: var(--dim); }
.c-proj-text p { max-width: 30em; }
.c-proj-text .c-btn { margin-top: 8px; }
.c-shot { position: relative; display: block; width: 100%; padding: 0; border: 0; font: inherit; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 16px; background: var(--cream); box-shadow: 0 1px 0 var(--line), 0 24px 50px -28px rgba(31, 60, 155, .45); cursor: zoom-in; -webkit-tap-highlight-color: transparent; }
.c-shot img { display: block; width: 100%; height: auto; transform: translateY(0); transition: transform 1.2s cubic-bezier(.5, 0, .3, 1); }
@media (hover: hover) and (pointer: fine) {
  .c-shot:hover img { transform: translateY(calc(-100% + var(--frame-h, 0px))); transition-duration: 14s; transition-timing-function: linear; }
}
.c-shot:active { transform: scale(.985); }

/* about: title beside the text */
.c-about { position: relative; background: var(--cream); padding: clamp(100px, 15vh, 160px) var(--pad) clamp(70px, 12vh, 130px); }
.c-about > .wave { top: -1px; fill: var(--white); transform: scaleY(-1); }
.c-about-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 6vw, 96px); align-items: center; max-width: 1200px; margin: 0 auto; }
.c-card { position: relative; padding: clamp(26px, 4vw, 48px); background: var(--white); border-radius: 22px; box-shadow: 0 30px 60px -40px rgba(31, 60, 155, .35); }
.c-card > p { margin: 0 0 1em; }
.c-card > p:last-child { margin-bottom: 0; }
.olive { position: absolute; left: 4vw; top: 110px; width: 96px; height: auto; opacity: .8; transform: rotate(14deg); pointer-events: none; }

/* the play version: a cobalt band, kept short so it doesn't compete with the work */
.c-playcard { position: relative; background: var(--cobalt); color: #fff; padding: clamp(100px, 14vh, 150px) var(--pad); }
.c-playcard > .wave.top { top: -1px; fill: var(--cream); transform: scaleY(-1); }
.c-playcard > .wave.bottom { bottom: -1px; fill: var(--cream); }
.c-play-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; max-width: 1100px; margin: 0 auto; }
.c-playcard .c-h2 { color: #fff; }
.c-playp { color: #e4e8fb; margin: 0 0 26px; max-width: 30em; }
.c-playlink { display: block; border-radius: 18px; overflow: hidden; background: #000; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.c-playlink img { display: block; width: 100%; height: auto; }

/* contact, then the village of clients */
.c-contact { position: relative; background: var(--cream); padding: clamp(60px, 10vh, 110px) 0 0; }
.c-contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 6vw, 96px); align-items: start; max-width: 1200px; margin: 0 auto; padding: 0 var(--pad) clamp(30px, 5vh, 50px); }
.c-contact .c-lead { margin: 0 0 22px; }
.c-direct { margin: 0; color: var(--dim); }
.c-direct a { display: inline-block; padding: 10px 0; color: var(--cobalt); font-weight: 500; text-underline-offset: 4px; }
.c-form { display: grid; gap: 8px; }
.c-form label { font-size: 1rem; font-weight: 500; color: var(--cobalt); margin-top: 10px; }
.c-form label:first-of-type { margin-top: 0; }
.c-form textarea, .c-form input { width: 100%; font: 400 1.05rem var(--sans); color: var(--ink); background: var(--cream); border: 1.5px solid #d8cfc5; border-radius: 12px; padding: 13px 15px; }
.c-form textarea { resize: vertical; min-height: 150px; }
.c-form textarea:focus, .c-form input:focus { border-color: var(--cobalt); outline: none; background: #fff; }
.c-form .c-btn { justify-self: start; margin-top: 16px; }
.c-form .c-btn:disabled { opacity: .5; cursor: wait; }
.c-status { min-height: 1.5em; margin: 6px 0 0; color: #a12a1c; }
.c-status.ok { color: #22603a; }
.village { display: block; width: 100%; height: auto; margin-top: 10px; }
.village .vh-t { font: 400 24px var(--hand); letter-spacing: .03em; text-transform: uppercase; fill: var(--cobalt); stroke: none; }
.village .vh-t.small { font: 500 15px var(--sans); text-transform: none; letter-spacing: 0; fill: var(--dim); }
.village .vh { cursor: pointer; }
.village .vh > g { transition: transform .3s cubic-bezier(.3, 1.4, .5, 1); transform-box: fill-box; transform-origin: 50% 100%; }
.village .vh:hover > g, .village .vh:focus-visible > g { transform: translateY(-5px); }
.village .vh:focus { outline: none; }
.village .vh:focus-visible path:first-child { stroke-width: 3; }

/* footer */
.c-foot { padding: 26px var(--pad) 34px; background: var(--white); box-shadow: 0 -1px 0 var(--line); color: var(--dim); font-size: 1rem; text-align: center; }
.c-foot p { margin: 0; }
.c-foot a { display: inline-block; padding: 10px 2px; color: var(--cobalt); text-underline-offset: 3px; }

/* full-page viewer (both devices): a window on a computer, a sheet from the bottom on a phone */
html.v-open { overflow: hidden; }
.c-viewer { padding: 0; border: 0; width: min(720px, 94vw); height: min(92vh, 1200px); max-width: none; max-height: none; border-radius: 18px; background: var(--white); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(24, 47, 124, .5); overflow: hidden; }
.c-viewer[open] { display: flex; flex-direction: column; animation: vin .38s cubic-bezier(.2, .8, .2, 1); }
.c-viewer::backdrop { background: rgba(24, 47, 124, .5); backdrop-filter: blur(4px); }
@keyframes vin { from { opacity: 0; transform: translateY(18px) scale(.98); } }
.v-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.v-title { margin: 0; font: 400 1.8rem/1.1 var(--hand); letter-spacing: .05em; text-transform: uppercase; color: var(--cobalt); }
.v-place { margin: 2px 0 0; color: var(--dim); font-size: .95rem; font-weight: 500; }
.v-close { min-height: 44px; padding: 0 22px; border: 1.5px solid var(--cobalt); border-radius: 99px; background: none; color: var(--cobalt); font: 500 1rem var(--sans); cursor: pointer; }
.v-close:hover { background: var(--cobalt); color: #fff; }
.v-progress { height: 3px; background: var(--line); }
.v-progress i { display: block; height: 100%; background: var(--cobalt); transform-origin: left; transform: scaleX(0); }
.v-scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; background: var(--cream); }
.v-scroll img { display: block; width: 100%; height: auto; }
.v-next { border: 0; min-height: 54px; padding: 16px; background: var(--cobalt); color: #fff; font: 500 1rem var(--sans); cursor: pointer; }
.v-next:hover { background: var(--cobalt-dk); }

/* phone contact bar (hidden on computers) */
.c-bar { display: none; }

/* legal pages: one column of plain text, both languages in the page */
.l-main { padding: clamp(40px, 8vh, 90px) var(--pad) 60px; }
.l-doc { max-width: 720px; margin: 0 auto; padding: clamp(26px, 4vw, 56px); background: var(--white); border-radius: 22px; box-shadow: 0 30px 60px -40px rgba(31, 60, 155, .35); }
.l-doc h1 { font-size: clamp(2.6rem, 6vw, 4rem); line-height: 1.12; margin: 0 0 8px; }
.l-doc h2 { font: 500 1.2rem var(--sans); color: var(--cobalt); margin: 2em 0 .5em; }
.l-doc h3 { font: 500 1.05rem var(--sans); text-transform: none; letter-spacing: 0; color: var(--ink); margin: 1.4em 0 .3em; }
.l-doc p { margin: 0 0 1em; }
.l-doc a { color: var(--cobalt); text-underline-offset: 3px; padding: 6px 0; }
.l-date { color: var(--dim); font-size: .95rem; }
html[lang="fr"] .l-doc[lang="en"], html:not([lang="fr"]) .l-doc[lang="fr"] { display: none; }
.legal .c-nav { display: flex; }

@media (max-width: 900px) {
  .c-nav { display: none; }
  .legal .c-nav { display: flex; }
  .c-top { justify-content: space-between; }
  .c-mark { margin-right: auto; }
  .c-proj, .c-proj.flip, .c-about-grid, .c-play-inner, .c-contact-grid { grid-template-columns: 1fr; }
  .c-proj.flip .c-shot { order: 0; }
  .olive { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .c-top { gap: 10px; min-height: 70px; background-size: auto 70px; }
  .c-mark b { font-size: 1.6rem; }
  .c-play { display: none; }          /* phones reach the play version from its own section */
  .c-intro { padding-top: 44px; }
  .c-actions { flex-direction: column; }
  .c-actions .c-btn { width: 100%; }
  .c-shot { cursor: pointer; }
  .c-proj-text .c-btn, .c-form .c-btn, .c-playcard .c-btn { width: 100%; justify-self: stretch; }
  .c-form textarea, .c-form input { font-size: 17px; }   /* 16px or more: iPhone doesn't zoom in */
  .village { height: 240px; }
  .c-foot { padding-bottom: 100px; }  /* room for the contact bar while scrolling past */
  .c-bar { display: flex; gap: 6px; position: fixed; z-index: 6; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); padding: 6px; border-radius: 99px; background: rgba(24, 47, 124, .96); box-shadow: 0 10px 30px -10px rgba(24, 47, 124, .6); transform: translateY(160%); transition: transform .45s cubic-bezier(.3, 1.3, .5, 1); }
  .c-bar.on { transform: none; }
  .c-bar a { flex: 1; text-align: center; padding: 14px 10px; border-radius: 99px; color: #fff; text-decoration: none; font-size: 1rem; font-weight: 500; }
  .c-bar a.c-bar-main { flex: 1.4; background: #fff; color: var(--cobalt); }
  .c-viewer { width: 100vw; height: calc(100dvh - 18px); margin: auto 0 0; border-radius: 20px 20px 0 0; }
  .c-viewer[open] { animation: vup .42s cubic-bezier(.2, .9, .25, 1); }
  .v-next { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
  .legal .c-foot { padding-bottom: 34px; }
}
@keyframes vup { from { transform: translateY(100%); } }
@media (max-width: 360px) { .c-mark b { font-size: 1.35rem; } .c-mark small { display: none; } .lang-switch span { width: 38px; } .lang-switch i { width: 34px; } .lang-switch[data-on="fr"] i { transform: translateX(38px); } }
@media (prefers-reduced-motion: reduce) { .c-shot img, .c-bar, .village .vh > g { transition: none !important; } .c-viewer[open] { animation: none; } html { scroll-behavior: auto; } }
.l-doc a.c-btn { color: #fff; padding: 0 28px; text-decoration: none; }
.l-doc h1 + p { margin-top: 12px; }
.l-doc p + h1 { margin-top: 1.4em; }
.l-doc .l-h1 { font: 400 clamp(2.6rem, 6vw, 4rem)/1.12 var(--hand); text-transform: uppercase; letter-spacing: .05em; color: var(--cobalt); margin: 1.4em 0 8px; }
@media (max-width: 1100px) { .village { height: 260px; } }
@media (max-width: 760px) { .village { height: 240px; } }
@media (max-width: 360px) { .village { height: 210px; } }
.l-doc a:not(.c-btn) { display: inline-block; padding: 4px 0; }

/* small easter eggs, all in the drawn style, none of them in the way */
/* the steamer on the hero wave: tap it and it crosses the lake, tap again and it comes back */
.steamer { position: absolute; z-index: 1; left: 5%; bottom: 30px; width: 104px; padding: 0; border: 0; background: none; cursor: pointer; transition: transform 7s cubic-bezier(.45, 0, .55, 1); -webkit-tap-highlight-color: transparent; }
.steamer svg { display: block; width: 100%; height: auto; overflow: visible; transition: transform .5s ease; }
.steamer.away { transform: translateX(calc(90vw - 130px)); }
.steamer.turned svg { transform: scaleX(-1); }
.steamer .puff { opacity: 0; }
.steamer.sailing .puff { animation: puff 1.4s ease-out infinite; }
@keyframes puff { 0% { opacity: .9; transform: translate(0, 0); } 100% { opacity: 0; transform: translate(-10px, -12px); } }
/* the cat */
.village .cat { cursor: pointer; transition: transform .7s cubic-bezier(.3, 1.5, .5, 1); }
.village .cat.moved { transform: translate(271px, 10px); }
.village .cat:focus { outline: none; }
.village .cat:focus-visible path:first-child { stroke-width: 2.5; }
.village .cat .tail { transform-box: fill-box; transform-origin: 0% 100%; }
.village .cat.talk .tail { animation: tail .5s ease-in-out 2; }
@keyframes tail { 50% { transform: rotate(-25deg); } }
.village .meow { font: 400 15px var(--hand); letter-spacing: .04em; fill: var(--cobalt); opacity: 0; transition: opacity .2s; }
.village .cat.talk .meow { opacity: 1; }
/* day and night */
.village .sky { cursor: pointer; }
.village .sky:focus { outline: none; }
.village .sky:focus-visible circle, .village .sky:focus-visible .moon { stroke-width: 2.5; }
.village .moon { display: none; }
.village .win { transition: fill .6s ease; }
html.night .village .sun { display: none; }
html.night .village .moon { display: inline; }
html.night .village .win { fill: #f4c862; }
html.night .c-top { background-image: url("media/village-night.svg"); }
html.night .c-contact { background: #ece8f0; transition: background .6s ease; }
/* the plot gets built once a message is sent */
.village .built { opacity: 0; transform: translateY(14px); transition: opacity .8s ease, transform .8s cubic-bezier(.3, 1.4, .5, 1); pointer-events: none; }
.village.done .built { opacity: 1; transform: none; }
.village.done .vh.yours { opacity: 0; pointer-events: none; transition: opacity .4s; }
@media (max-width: 760px) { .steamer { width: 80px; bottom: 26px; } .steamer.away { transform: translateX(calc(90vw - 100px)); } }
@media (prefers-reduced-motion: reduce) { .steamer, .steamer svg, .village .cat, .village .built { transition: none !important; } .steamer .puff, .village .cat .tail { animation: none !important; } }

/* more lake life around the steamer */
.steamer .toot { position: absolute; left: 34%; top: -26px; font: 400 1.25rem var(--hand); letter-spacing: .05em; text-transform: uppercase; color: var(--cobalt); white-space: nowrap; opacity: 0; transform: translateY(6px); pointer-events: none; }
.steamer.tooting .toot { animation: toot 1.6s ease forwards; }
@keyframes toot { 15% { opacity: 1; transform: none; } 75% { opacity: 1; transform: translateY(-4px); } 100% { opacity: 0; transform: translateY(-10px); } }
.gull { position: absolute; z-index: 1; width: 22px; height: auto; fill: none; stroke: var(--cobalt); stroke-width: 1.6; stroke-linecap: round; pointer-events: none; }
.gull.g1 { left: calc(5% + 120px); bottom: 64px; }
.gull.g2 { left: calc(5% + 146px); bottom: 52px; width: 18px; }
.gull.up { animation: gull-up 3.4s cubic-bezier(.4, 0, .6, 1) forwards; }
.gull.g2.up { animation-delay: .25s; }
.gull.up path { animation: flap .32s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 80%; }
@keyframes gull-up { 0% { transform: none; opacity: 1; } 90% { opacity: 1; } 100% { transform: translate(260px, -300px) scale(.7); opacity: 0; } }
@keyframes flap { 50% { transform: scaleY(-.6); } }
.gull.back { animation: gull-back 1.2s ease forwards; }
@keyframes gull-back { from { opacity: 0; transform: translateY(-20px); } }
.fish { position: absolute; z-index: 0; left: 46%; bottom: 18px; width: 40px; height: auto; opacity: 0; pointer-events: none; }
.fish.jump { animation: jump 1.3s cubic-bezier(.3, 0, .7, 1) forwards; }
@keyframes jump { 0% { opacity: 0; transform: translate(0, 30px) rotate(50deg); } 12% { opacity: 1; } 50% { transform: translate(-34px, -76px) rotate(0deg); } 88% { opacity: 1; } 100% { opacity: 0; transform: translate(-70px, 24px) rotate(-60deg); } }
.stars { position: absolute; right: 4%; top: 30px; width: min(420px, 60vw); height: auto; display: none; pointer-events: none; }
html.night .stars { display: block; }
.stars .s1 { animation: twinkle 3.2s ease-in-out infinite; }
.stars .s2 { animation: twinkle 4.1s ease-in-out infinite .8s; }
.stars .s3 { animation: twinkle 3.7s ease-in-out infinite 1.6s; }
@keyframes twinkle { 50% { opacity: .35; } }
html.night .steamer .port { stroke: #e0a92e; }
html.night .steamer .lamp { fill: #f4c862; stroke: #1f3c9b; }
html.night .c-intro { background: #ece8f0; transition: background .6s ease; }
/* opa: type it on a keyboard and plates fly, Greek taverna style */
.opa { position: fixed; z-index: 30; left: 50%; top: 38%; transform: translate(-50%, -50%); font: 400 clamp(4rem, 12vw, 9rem)/1 var(--hand); letter-spacing: .06em; color: var(--cobalt); pointer-events: none; animation: opa 1.8s cubic-bezier(.3, 1.4, .5, 1) forwards; }
@keyframes opa { 0% { opacity: 0; transform: translate(-50%, -30%) scale(.6) rotate(-6deg); } 20% { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-3deg); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -60%) scale(1.05) rotate(-3deg); } }
.plate { position: fixed; z-index: 29; top: -80px; width: 64px; height: 64px; pointer-events: none; animation: plate-fall var(--fall, 1s) cubic-bezier(.5, 0, 1, .6) forwards; }
.plate svg { display: block; width: 100%; height: 100%; overflow: visible; }
@keyframes plate-fall { to { transform: translateY(calc(100vh + 10px)) rotate(var(--spin, 200deg)); } }
.plate.broken { animation: none; top: auto; bottom: 8px; }
.plate.broken .half { transition: transform .7s cubic-bezier(.2, .8, .3, 1), opacity .7s ease .3s; }
.plate.broken .l { transform: translate(-26px, -34px) rotate(-40deg); opacity: 0; }
.plate.broken .r { transform: translate(28px, -26px) rotate(50deg); opacity: 0; }
@media (prefers-reduced-motion: reduce) { .gull.up, .fish.jump, .plate, .stars path, .steamer.tooting .toot { animation: none !important; } .plate { display: none; } }

/* Okto, the assistant: an "ask anything" bar in the header and a chat panel */
.okto-open { display: inline-flex; align-items: center; gap: 10px; flex: 0 1 320px; min-width: 0; min-height: 46px; padding: 0 18px 0 12px; border: 1.5px solid #a9b3e0; border-radius: 99px; background: rgba(255, 253, 250, .94); color: var(--dim); font: 400 1rem var(--sans); text-align: left; cursor: text; transition: border-color .2s, box-shadow .2s; }
.okto-open:hover { border-color: var(--cobalt); box-shadow: 0 6px 18px -10px rgba(31, 60, 155, .5); }
.okto-open span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.okto-open-short, .okto-open-tiny { display: none; }
.okto-ico { width: 28px; height: 28px; flex-shrink: 0; stroke: var(--cobalt); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.okto-open:hover .okto-ico { animation: wiggle .6s ease; }
@keyframes wiggle { 30% { transform: rotate(-8deg); } 60% { transform: rotate(6deg); } }
.okto-panel { padding: 0; border: 0; margin: auto; width: min(540px, 92vw); height: min(680px, calc(100vh - 80px)); max-width: none; max-height: none; border-radius: 22px; background: var(--white); color: var(--ink); box-shadow: 0 30px 80px -24px rgba(24, 47, 124, .55); overflow: hidden; }
.okto-panel[open] { display: flex; flex-direction: column; }
.okto-panel::backdrop { background: rgba(24, 47, 124, .32); backdrop-filter: blur(6px); animation: bd-in .45s ease both; }
.okto-panel.closing::backdrop { animation: bd-out .38s ease both; }
@keyframes bd-in { from { opacity: 0; } }
@keyframes bd-out { to { opacity: 0; } }
.okto-open { transition: border-color .2s, box-shadow .2s, opacity .25s ease; }
html.okto-on .okto-open { opacity: 0; }
.okto-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--cream); }
.okto-avatar { width: 46px; height: 46px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px #c4cbef; }
.okto-avatar .okto-ico { width: 34px; height: 34px; }
.okto-title { margin: 0; font: 400 1.9rem/1 var(--hand); letter-spacing: .06em; text-transform: uppercase; color: var(--cobalt); }
.okto-sub { margin: 2px 0 0; font-size: .88rem; color: var(--dim); }
.okto-close { margin-left: auto; min-height: 44px; padding: 0 18px; border: 1.5px solid var(--cobalt); border-radius: 99px; background: none; color: var(--cobalt); font: 500 .95rem var(--sans); cursor: pointer; }
.okto-close:hover { background: var(--cobalt); color: #fff; }
.okto-log { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 18px 16px; display: flex; flex-direction: column; gap: 10px; }
.okto-msg { margin: 0; max-width: 88%; padding: 11px 15px; border-radius: 18px; font-size: 1rem; line-height: 1.5; white-space: pre-wrap; }
.okto-msg.bot { align-self: flex-start; background: #eef0fb; border-bottom-left-radius: 6px; }
.okto-msg.me { align-self: flex-end; background: var(--cobalt); color: #fff; border-bottom-right-radius: 6px; }
.okto-typing { display: inline-flex; gap: 5px; padding: 15px 16px; }
.okto-typing i { width: 8px; height: 8px; border-radius: 50%; background: var(--cobalt); opacity: .25; animation: ink 1s ease-in-out infinite; }
.okto-typing i:nth-child(2) { animation-delay: .15s; } .okto-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes ink { 40% { opacity: 1; transform: translateY(-3px); } }
.okto-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.okto-chip { min-height: 40px; padding: 0 14px; border: 1.5px solid #b9c1e6; border-radius: 99px; background: #fff; color: var(--cobalt); font: 500 .92rem var(--sans); cursor: pointer; }
.okto-chip:hover { border-color: var(--cobalt); }
.okto-form { display: flex; align-items: flex-end; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); }
.okto-form textarea { flex: 1; resize: none; min-height: 46px; max-height: 120px; padding: 11px 14px; border: 1.5px solid #d8cfc5; border-radius: 14px; background: var(--cream); color: var(--ink); font: 400 1.05rem/1.4 var(--sans); }
.okto-form textarea:focus { outline: none; border-color: var(--cobalt); background: #fff; }
.okto-send { min-height: 46px; padding: 0 18px; border: 0; border-radius: 99px; background: var(--cobalt); color: #fff; font: 500 1rem var(--sans); cursor: pointer; }
.okto-send:hover { background: var(--cobalt-dk); }
.okto-form.busy .okto-send { opacity: .5; cursor: wait; }
.okto-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.okto-foot { padding: 0 16px 12px; }
.okto-handoff { width: 100%; min-height: 44px; margin-bottom: 8px; border: 1.5px solid #a9b3e0; border-radius: 99px; background: none; color: var(--cobalt); font: 500 .95rem var(--sans); cursor: pointer; }
.okto-handoff:hover { border-color: var(--cobalt); background: #fff; }
.okto-note { margin: 0; font-size: .84rem; line-height: 1.45; color: var(--dim); }
.okto-note a { color: var(--cobalt); }
html.okto-on { overflow: hidden; }
@media (max-width: 1100px) { .okto-open-long { display: none; } .okto-open-short { display: inline; } .okto-open { flex: 0 0 auto; } }
@media (max-width: 760px) {
  .c-top { justify-content: flex-start; }
  .okto-open { margin-left: auto; padding: 0 14px 0 10px; }
  .okto-panel { width: 100vw; height: calc(100dvh - 18px); margin: auto 0 0; border-radius: 20px 20px 0 0; }
  .okto-foot { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
}
@media (max-width: 420px) { .okto-open-short { display: none; } .okto-open-tiny { display: inline; font-weight: 500; color: var(--cobalt); } .okto-open { gap: 6px; padding: 0 14px 0 8px; } .c-top { gap: 8px; } .lang-switch span { width: 36px; } .lang-switch i { width: 32px; } .lang-switch[data-on="fr"] i { transform: translateX(36px); } }
@media (max-width: 360px) { .okto-open-tiny { display: none; } .okto-open { padding: 0 9px; } }
@media (prefers-reduced-motion: reduce) { .okto-panel[open] { animation: none; } .okto-typing i, .okto-open:hover .okto-ico { animation: none; } }
