/* ============ Tokens ============ */
:root {
  --paper: #F1EFE8;
  --paper-2: #E6E3D8;
  --card: #FFFFFF;
  --ink: #111111;
  --muted: #55565E;
  --line: #CFCBBE;
  --pink: #FF2E93;       /* brand, used on large shapes */
  --pink-ink: #C4006A;   /* brand, accessible on paper for text */
  --lime: #C9EF35;
  --web: #FF2E93;
  --mkt: #C9EF35;
  --ai: #111111;

  --f-display: "Bricolage Grotesque", "Arial Black", sans-serif;
  --f-body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "DM Mono", ui-monospace, Consolas, monospace;

  --r-sm: 4px;
  --r-md: 10px;
  --space: clamp(64px, 9vw, 112px);   /* one vertical rhythm for every section */
  --t: 200ms;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--f-body);
  transition: background-color 250ms, color 250ms;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.05; margin: 0; letter-spacing: -0.02em; }
p { margin: 0 0 0.8em; }
:focus-visible { outline: 3px solid var(--pink-ink); outline-offset: 3px; border-radius: 2px; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 100; border-radius: var(--r-sm); }
.skip:focus { top: 12px; }

.eyebrow { font: 500 0.8rem/1.2 var(--f-mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 14px; }
.h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); max-width: 18ch; margin-bottom: 20px; }
.h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-bottom: 20px; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 52ch; }
.small { font-size: 0.9rem; color: var(--muted); }
.link { font-weight: 600; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.link:hover { color: var(--pink-ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 20px; border-radius: var(--r-sm);
  background: var(--ink); color: #fff; border: 2px solid var(--ink);
  font: 600 1rem var(--f-body); text-decoration: none; cursor: pointer;
  transition: background-color var(--t), color var(--t);
}
.btn:hover { background: var(--pink-ink); border-color: var(--pink-ink); }
.btn--small { min-height: 38px; padding: 0 14px; font-size: 0.92rem; }
.btn--big { min-height: 58px; font-size: 1.1rem; padding: 0 28px; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ============ Header ============ */
.top { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); transition: background-color 250ms; }
.top__row { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; font: 700 1rem/1.08 var(--f-body); letter-spacing: -0.01em; }
.logo__mark { width: 30px; height: 34px; fill: currentColor; flex: none; }
.logo:hover .logo__mark { fill: var(--pink-ink); }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) { text-decoration: none; font-weight: 500; }
.nav a:not(.btn):hover { color: var(--pink-ink); text-decoration: underline; text-underline-offset: 4px; }
.menu-btn { display: none; }
.nav a.lang { font: 500 0.85rem var(--f-mono); letter-spacing: 0.06em; padding: 4px 8px; border: 1.5px solid currentColor; border-radius: var(--r-sm); text-decoration: none; }
.nav a.lang:hover { text-decoration: none; background: var(--ink); color: var(--paper); }

@media (max-width: 760px) {
  .menu-btn { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 2px solid var(--ink); background: transparent; border-radius: var(--r-sm); font: 600 0.95rem var(--f-body); color: inherit; cursor: pointer; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .nav .btn { margin-top: 14px; }
  .nav a.lang { align-self: flex-start; margin-top: 14px; padding: 6px 12px; border-bottom: 1.5px solid currentColor; font-size: 0.95rem; }
  .logo__text { font-size: 0.98rem; }
}

/* ============ Services / pop-up windows ============ */
main { position: relative; z-index: 1; }
.services { padding: clamp(40px, 6vw, 72px) 0 var(--space); }
.intro { margin-bottom: clamp(28px, 3.5vw, 44px); display: grid; grid-template-columns: auto minmax(0, 40ch); gap: 12px 48px; align-items: end; }
.intro .eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
.intro h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 800; max-width: 13ch; }
.intro .lead { margin: 0; padding-bottom: 6px; }
html[lang="fr"] .intro h1 { max-width: 17ch; font-size: clamp(2.4rem, 5.2vw, 4rem); }
@media (max-width: 900px) { .intro { grid-template-columns: 1fr; } }

.windows { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.win {
  background: var(--card); border: 2px solid var(--ink); border-radius: var(--r-md);
  box-shadow: 6px 6px 0 var(--ink); /* windows float: they are pop-ups */
  overflow: hidden; display: flex; flex-direction: column;
}
.win:nth-child(1) { transform: rotate(-1.2deg); }
.win:nth-child(2) { transform: translateY(36px) rotate(0.8deg); }
.win:nth-child(3) { transform: translateY(12px) rotate(-0.4deg); }
.win__bar { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-bottom: 2px solid var(--ink); font: 500 0.82rem var(--f-mono); }
.win--web .win__bar { background: var(--web); color: var(--ink); }
.win--mkt .win__bar { background: var(--mkt); color: var(--ink); }
.win--ai .win__bar  { background: var(--ai);  color: #fff; }
.win__num { font-weight: 500; padding: 1px 6px; border: 1.5px solid currentColor; border-radius: 3px; }
.win__file { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win__body { padding: 22px 22px 20px; display: flex; flex-direction: column; flex: 1; }
.win h2 { font-size: 1.6rem; margin-bottom: 6px; }
.win__tag { color: var(--muted); margin-bottom: 18px; }
.www { margin: 0 0 18px; display: grid; gap: 12px; }
.www div { display: grid; grid-template-columns: 52px 1fr; gap: 10px; align-items: baseline; }
html[lang="fr"] .www div { grid-template-columns: 82px 1fr; }
.www dt { font: 500 0.78rem var(--f-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--pink-ink); }
.www dd { margin: 0; font-size: 1rem; line-height: 1.5; }
.win__more {
  margin-top: auto; align-self: flex-start; background: none; border: 0; padding: 6px 0; cursor: pointer;
  font: 600 1rem var(--f-body); color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px;
}
.win__more::after { content: " →"; }
.win__more:hover { color: var(--pink-ink); }
.services__note { margin-top: 72px; font-size: 1.05rem; }
.services__note a { font-weight: 600; text-underline-offset: 3px; }

/* pop-in on load (only when motion is allowed) */
@media (prefers-reduced-motion: no-preference) {
  .js .win { opacity: 0; scale: 0.86; }
  .js .win.popped { opacity: 1; scale: 1; transition: opacity 220ms ease-out, scale 320ms cubic-bezier(.3,1.6,.5,1); }
}

@media (max-width: 900px) {
  .windows { grid-template-columns: 1fr; gap: 28px; max-width: 560px; }
  .win:nth-child(n) { transform: none; }
  .win:nth-child(2) { margin-left: 12px; margin-right: -4px; }
  .services__note { margin-top: 40px; }
}

/* dialogs */
.dlg {
  width: min(560px, 100% - 32px); border: 2px solid var(--ink); border-radius: var(--r-md);
  padding: 28px; background: var(--card); color: var(--ink); box-shadow: 8px 8px 0 var(--ink);
}
.dlg::backdrop { background: rgb(17 17 17 / 0.55); }
.dlg h2 { font-size: 1.8rem; margin-bottom: 14px; }
.dlg ul { margin: 0 0 24px; padding-left: 1.1em; display: grid; gap: 6px; }
.dlg__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (prefers-reduced-motion: no-preference) {
  .dlg[open] { animation: dlg-in 220ms cubic-bezier(.3,1.4,.5,1); }
  @keyframes dlg-in { from { opacity: 0; scale: 0.9; } }
}

/* newsletter exit pop-up */
.nl { width: min(520px, 100% - 32px); border-top: 12px solid var(--ink); }
.nl__icon { width: 64px; height: 64px; margin-bottom: 14px; rotate: -6deg; }
.nl h2 { font-size: clamp(1.6rem, 4vw, 2rem); margin-bottom: 12px; }
.nl__fields { display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px; margin: 20px 0 6px; }
.fld { display: grid; gap: 6px; font-weight: 600; font-size: 0.92rem; }
.fld input {
  font: 400 1rem var(--f-body); color: var(--ink); background: var(--card);
  min-height: 46px; padding: 0 12px; border: 2px solid var(--ink); border-radius: var(--r-sm); width: 100%;
}
.fld input::placeholder { color: #75767E; }
.fld input:focus-visible { outline: 3px solid var(--pink-ink); outline-offset: 1px; }
.fld input[aria-invalid="true"] { border-color: var(--pink-ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.nl__err { min-height: 1.4em; margin: 4px 0 10px; color: var(--pink-ink); font-weight: 600; font-size: 0.92rem; }
.nl__legal { margin: 14px 0 0; }
.nl__ok h2:focus { outline: none; }
@media (max-width: 520px) { .nl__fields { grid-template-columns: 1fr; } .nl { padding: 22px; } }
.foot__link { background: none; border: 0; padding: 0; color: #F1EFE8; font: inherit; text-decoration: underline; cursor: pointer; }

/* ============ Founders ============ */
.founders { padding: var(--space) 0; background: var(--paper-2); border-block: 1px solid var(--line); transition: background-color 250ms; position: relative; }
.hint { font: 500 0.88rem var(--f-mono); color: var(--muted); margin-bottom: 28px; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.person {
  position: relative; background: var(--card); border: 2px solid var(--ink); border-radius: var(--r-md);
  padding: 28px; overflow: hidden; transition: background-color 300ms, color 300ms, border-color 300ms;
}
.person__role { font: 500 0.8rem var(--f-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.person__name { font-size: clamp(2.6rem, 5vw, 3.8rem); font-weight: 800; margin: 4px 0 6px; transition: font-family 0s; }
.person__line { font-size: 1.2rem; font-weight: 600; }
.tags { list-style: none; padding: 0; margin: 16px 0 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font: 500 0.8rem var(--f-mono); padding: 4px 10px; border: 1.5px solid currentColor; border-radius: 999px; }
.person__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; position: relative; z-index: 2; }
.btn--world { background: transparent; color: inherit; border-color: currentColor; }
.btn--world:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
/* the spell line always keeps its place (invisible), so Toky's world never resizes the cards */
.spell { visibility: hidden; opacity: 0; font: 400 0.92rem/1.4 var(--f-mono); white-space: nowrap; overflow: hidden; transition: opacity 300ms; }
.caret { display: inline-block; width: 0.55em; height: 1.05em; background: currentColor; vertical-align: -2px; margin-left: 3px; }

.person__deco svg { position: absolute; opacity: 0; transition: opacity 300ms, transform 400ms; pointer-events: none; }
.d-rainbow { width: 150px; top: 18px; right: 18px; transform: translateY(10px); }
.d-fly { width: 46px; top: 120px; right: 40px; }
.d-mush { width: 54px; bottom: 22px; right: 26px; }
.d-wand { width: 50px; top: 90px; right: 150px; }
.t-hat { width: 92px; top: 16px; right: 22px; transform: rotate(8deg); }
.t-potion { width: 44px; bottom: 26px; right: 30px; }
.t-book { width: 70px; top: 128px; right: 32px; }
.t-ball { width: 50px; bottom: 26px; right: 92px; }

@media (max-width: 860px) {
  .duo { grid-template-columns: 1fr; }
  .person { padding: 24px 20px; }
  .person__role { padding-right: 84px; }
  .d-rainbow { width: 80px; top: 14px; right: 12px; }
  .t-hat { width: 62px; top: 10px; right: 14px; }
  .d-fly, .d-wand, .t-book { display: none; }
  .d-mush, .t-potion { bottom: 14px; right: 14px; width: 36px; }
  .t-ball { bottom: 14px; right: 58px; width: 38px; }
  .person__actions { padding-right: 0; }
}

/* experience */
.exp { margin-top: clamp(56px, 7vw, 88px); }
.exp__list { list-style: none; padding: 0; margin: 0 0 16px; border-top: 1px solid var(--line); }
.exp__list li { display: grid; grid-template-columns: 120px 1fr 300px; gap: 8px 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.exp__who { font: 500 0.85rem var(--f-mono); text-transform: uppercase; letter-spacing: 0.06em; margin: 0; padding-top: 3px; }
.exp__what { margin: 0; }
.exp__tools { font: 400 0.85rem var(--f-mono); color: var(--muted); margin: 0; padding-top: 3px; }
@media (max-width: 860px) { .exp__list li { grid-template-columns: 1fr; } }

/* ============ Approach ============ */
.approach { padding: var(--space) 0; }
.steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 2px solid var(--ink); }
.steps li { padding: 22px 22px 8px 0; }
.steps li + li { padding-left: 22px; border-left: 1px solid var(--line); }
.steps__n { font: 500 0.85rem var(--f-mono); color: var(--pink-ink); }
.steps h3 { font-size: 1.4rem; margin: 8px 0 10px; }
.steps p { color: var(--muted); font-size: 1rem; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 18px 0 4px; border-left: 0; border-top: 1px solid var(--line); }
  .steps li:first-child { border-top: 0; }
}

/* ============ Contact ============ */
.contact { padding: var(--space) 0; background: var(--ink); color: #F1EFE8; }
.contact .eyebrow, .contact .lead, .contact .small { color: #B9B8B0; }
.contact__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; }
.contact .h2 { color: #fff; }
.contact__box .btn { background: var(--lime); color: var(--ink); border-color: var(--lime); margin-bottom: 12px; }
.contact__box .btn:hover { background: #fff; border-color: #fff; }
.contact .link:hover { color: var(--lime); }
.contact :focus-visible { outline-color: var(--lime); }
.where { font: 500 0.82rem var(--f-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--lime); margin-top: 22px; }
@media (max-width: 860px) { .contact__grid { grid-template-columns: 1fr; } }

/* ============ Footer ============ */
.foot { padding: 28px 0; background: var(--ink); color: #B9B8B0; border-top: 1px solid #2A2A2A; font-size: 0.92rem; }
.foot__row { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
.foot__row p { margin: 0; }
.foot a { color: #F1EFE8; }
.foot :focus-visible { outline-color: var(--lime); }
.foot__toggle { margin-left: auto; background: none; border: 1px solid #55565E; color: #F1EFE8; border-radius: 999px; padding: 6px 14px; font: 500 0.82rem var(--f-mono); cursor: pointer; }
.foot__toggle:hover { border-color: var(--lime); }

/* ============ Unexpected surprises ============ */
.surprises { position: fixed; inset: 0; pointer-events: none; z-index: 30; overflow: hidden; }
.sp { position: absolute; }

/* fun-fact / note cards */
.sp--card {
  display: flex; align-items: center; gap: 14px; width: max-content; max-width: min(340px, calc(100vw - 32px));
  padding: 14px 18px 16px 14px; border: 2.5px solid #111; border-radius: 12px;
  background: #fff; color: #111; box-shadow: 6px 6px 0 #111; overflow: hidden;
  rotate: var(--rot, 0deg);
}
.sp--card.tone-lime { background: #C9EF35; }
.sp--card.tone-pink { background: #FF5FA8; }
.sp--card.tone-white { background: #fff; }
.sp__icon { flex: none; width: 52px; height: 52px; display: grid; place-items: center; background: #fff; border: 2.5px solid #111; border-radius: 50%; }
.tone-white .sp__icon { background: #C9EF35; }
.sp__icon svg { width: 28px; height: 28px; }
.sp__body { display: grid; gap: 3px; }
.sp__label { font: 500 0.72rem/1.2 var(--f-mono); text-transform: uppercase; letter-spacing: 0.1em; }
.sp__text { font: 600 1rem/1.35 "Hanken Grotesk", Arial, sans-serif; }
.sp__timer { position: absolute; left: 0; bottom: 0; height: 5px; width: 100%; background: #111; transform-origin: left; }
.sp--snail svg { width: 72px; height: 45px; flex: none; }
@media (max-width: 559px) { .sp--card { width: auto; max-width: none; } }

@media (prefers-reduced-motion: no-preference) {
  .sp.in.from-left   { animation: sp-left 520ms cubic-bezier(.3,1.5,.5,1) both; }
  .sp.in.from-right  { animation: sp-right 520ms cubic-bezier(.3,1.5,.5,1) both; }
  .sp.in.from-bottom { animation: sp-up 520ms cubic-bezier(.3,1.5,.5,1) both; }
  .sp.in .sp__icon { animation: wobble 900ms ease-in-out 400ms 2; }
  .sp__timer { animation: timer var(--life, 5600ms) linear both; }
  .sp.out { animation: sp-out 280ms ease-in both; }
}
@keyframes sp-left  { from { opacity: 0; transform: translateX(-120%) rotate(-12deg); } }
@keyframes sp-right { from { opacity: 0; transform: translateX(120%) rotate(12deg); } }
@keyframes sp-up    { from { opacity: 0; transform: translateY(140%) scale(0.8); } }
@keyframes sp-out   { to { opacity: 0; transform: scale(0.7) translateY(16px); } }
@keyframes wobble   { 25% { transform: rotate(-14deg) scale(1.1); } 75% { transform: rotate(10deg); } }
@keyframes timer    { to { transform: scaleX(0); } }

/* paper plane crossing the screen with a banner */
.sp--plane { display: flex; align-items: center; gap: 0; flex-direction: row-reverse; animation: plane 6.2s cubic-bezier(.45,.05,.55,.95) both; }
.sp--plane svg { width: 72px; height: 72px; }
.sp__banner { font: 600 1rem "Hanken Grotesk", Arial, sans-serif; background: #C9EF35; color: #111; border: 2.5px solid #111; padding: 8px 14px; border-radius: 4px; white-space: nowrap; margin-right: 6px; position: relative; }
.sp__banner::after { content: ""; position: absolute; right: -10px; top: 50%; width: 10px; border-top: 2.5px dashed #111; }
@keyframes plane {
  from { transform: translate(-110%, 0) rotate(4deg); }
  50%  { transform: translate(calc(50vw - 50%), -50px) rotate(-3deg); }
  to   { transform: translate(100vw, 0) rotate(5deg); }
}

/* an eye peeking from the bottom edge */
.sp--peek { display: flex; flex-direction: column; align-items: center; animation: peek 3.8s ease-in-out both; }
.sp--peek svg { width: 96px; height: 96px; }
.sp__bubble { font: 600 1rem "Hanken Grotesk", Arial, sans-serif; background: #fff; color: #111; border: 2.5px solid #111; border-radius: 999px; padding: 4px 14px; margin-bottom: 6px; }
@keyframes peek { 0% { transform: translateY(100%); } 15%, 82% { transform: translateY(14%); } 100% { transform: translateY(100%); } }
.blink { animation: blink 2.2s steps(1) infinite; transform-origin: center; }
@keyframes blink { 0%, 40%, 46%, 100% { transform: scaleY(1); } 42% { transform: scaleY(0.1); } }
@keyframes tw { 50% { transform: scale(0.5) rotate(40deg); opacity: 0.4; } }

/* ============ Worlds (founders) ============ */
.worldfx { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; opacity: 0; transition: opacity 400ms; }
body.world-fairy .worldfx, body.world-code .worldfx { opacity: 1; }
.fx { position: absolute; }
.flash { position: fixed; inset: 0; z-index: 40; pointer-events: none; opacity: 0; background: radial-gradient(circle at var(--fx, 25%) var(--fy, 60%), #fff 0%, rgb(255 255 255 / 0.85) 25%, rgb(255 255 255 / 0) 70%); }
.flash.go { animation: flash 650ms ease-out; }
@keyframes flash { 0% { opacity: 0; } 25% { opacity: 1; } 100% { opacity: 0; } }

/* --- Damia: colorful, playful, fairy-tale / cartoon --- */
body.world-fairy {
  --paper: #FFF4EC;
  --paper-2: #FFE6F1;
  --card: #FFFFFF;
  --ink: #2B2340;
  --muted: #5E4E72;
  --line: #F2C6DA;
  --pink-ink: #C2185B;
  /* fonts stay the same outside Damia's card: a hover must never move the page */
  background: linear-gradient(180deg, #FFF4EC 0%, #FFE6F1 40%, #E6F6FF 75%, #EFFFF2 100%) fixed;
}
body.world-fairy .top { background: rgb(255 244 236 / 0.96); }
body.world-fairy .founders { background: transparent; }
body.world-fairy .win { border-radius: 22px; box-shadow: 6px 6px 0 #FF8FC4; }
body.world-fairy .win--web .win__bar { background: #FFB3D6; }
body.world-fairy .win--mkt .win__bar { background: #FFE45E; }
body.world-fairy .win--ai .win__bar { background: #9FD8FF; color: #2B2340; }
body.world-fairy .btn { border-radius: 999px; }
body.world-fairy .person--damia { background: #FFFBEF; border-color: #FF5FA8; box-shadow: 0 0 0 6px #FFE45E, 0 0 0 10px #7ED6A5; border-radius: 22px; }
body.world-fairy .person--damia .person__name { color: #E0006F; font-family: "Fredoka", var(--f-display); }
body.world-fairy .person--damia .person__line { font-family: "Fredoka", var(--f-body); }
body.world-fairy .person--damia .tags li:nth-child(1) { background: #FFB3D6; border-color: #FFB3D6; }
body.world-fairy .person--damia .tags li:nth-child(2) { background: #FFE45E; border-color: #FFE45E; }
body.world-fairy .person--damia .tags li:nth-child(3) { background: #A8EBC6; border-color: #A8EBC6; }
body.world-fairy .person--damia .tags li:nth-child(4) { background: #9FD8FF; border-color: #9FD8FF; }
body.world-fairy .person--damia .person__deco svg { opacity: 1; transform: none; }
body.world-fairy .person--damia .d-fly { animation: flutter 2.4s ease-in-out infinite; }
body.world-fairy .person--damia .d-wand { animation: wiggle 1.8s ease-in-out infinite; }
@keyframes flutter { 50% { transform: translate(-14px, -10px) rotate(-8deg); } }
@keyframes wiggle { 50% { transform: rotate(-12deg); } }
body.world-fairy .contact { background: #2B2340; }
body.world-fairy .foot { background: #2B2340; }

.fx-bubble { border-radius: 50%; border: 2px solid rgb(255 255 255 / 0.9); background: radial-gradient(circle at 30% 30%, rgb(255 255 255 / 0.9), rgb(255 255 255 / 0) 45%), var(--c); opacity: 0.55; }
.fx-star { width: 18px; height: 18px; }

/* --- Toky: nerd, wizard & code --- */
body.world-code {
  --paper: #0E1222;
  --paper-2: #121834;
  --card: #161D3A;
  --ink: #E8E6DA;
  --muted: #A9B0D6;
  --line: #2A3462;
  --pink-ink: #FF7AB8;
  /* fonts stay the same here: a hover must never move the page under the cursor */
}
body.world-code .person--toky .person__name { font-family: var(--f-mono); letter-spacing: -0.03em; white-space: nowrap; }
body.world-code .top { background: rgb(14 18 34 / 0.97); }
body.world-code .logo__mark { fill: var(--lime); }
body.world-code .btn { background: var(--lime); color: #0E1222; border-color: var(--lime); }
body.world-code .btn:hover { background: #fff; border-color: #fff; }
body.world-code .btn--ghost, body.world-code .btn--world { background: transparent; color: var(--ink); border-color: var(--ink); }
body.world-code .win { box-shadow: 6px 6px 0 var(--lime); border-color: #3E4CB0; }
body.world-code .win__bar { border-color: #3E4CB0; }
body.world-code .win--web .win__bar, body.world-code .win--mkt .win__bar, body.world-code .win--ai .win__bar { background: #0B0F1E; color: var(--lime); }
body.world-code .person--toky { background: #0B0F1E; border-color: var(--lime); box-shadow: 0 0 0 1px var(--lime), 8px 8px 0 #2E3A8C; }
body.world-code .person--toky .person__name { color: var(--lime); }
body.world-code .person--toky .person__name::before { content: "<"; color: #9AA6FF; }
body.world-code .person--toky .person__name::after { content: " />"; color: #9AA6FF; }
body.world-code .person--toky .person__deco svg { opacity: 1; }
body.world-code .person--toky .t-hat { transform: rotate(-4deg); }
body.world-code .person--toky .spell { visibility: visible; opacity: 1; color: var(--lime); }
body.world-code .person--toky .t-ball { animation: glow 2s ease-in-out infinite; }
@keyframes glow { 50% { filter: drop-shadow(0 0 8px #9AA6FF); } }
body.world-code .caret { animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
body.world-code .contact, body.world-code .foot { background: #070A14; }
body.world-code .dlg { background: #161D3A; }

.fx-glyph { font: 500 var(--s, 16px) var(--f-mono); color: #6C79D9; opacity: 0.5; white-space: nowrap; }
.fx-glyph.lime { color: var(--lime); opacity: 0.35; }
.fx-dot { width: 3px; height: 3px; border-radius: 50%; background: #E8ECFF; opacity: 0.7; }

@media (prefers-reduced-motion: no-preference) {
  .fx-bubble { animation: rise var(--d, 12s) linear var(--delay, 0s) infinite; }
  @keyframes rise { from { transform: translateY(0); } to { transform: translateY(-110vh); } }
  .fx-star { animation: tw 2.4s ease-in-out var(--delay, 0s) infinite; }
  .fx-glyph { animation: drift var(--d, 16s) linear var(--delay, 0s) infinite; }
  @keyframes drift { from { transform: translateY(-10vh); } to { transform: translateY(110vh); } }
  .fx-dot { animation: tw 3s ease-in-out var(--delay, 0s) infinite; }
}

/* Everything calm when the visitor asks for less motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .flash { display: none; }
}
