/* LiLe Education
   Layout concept: "Lena's notebook" — calm, left-aligned editorial grid on lilac paper,
   bold violet/lime brand moments, and Lena's handwriting correcting and annotating the page. */

@font-face {
  font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 200 800; font-stretch: 75% 100%; font-display: swap;
  src: url("../fonts/bricolage-grotesque-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Gochi Hand"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/gochi-hand-latin.woff2") format("woff2");
}

:root {
  /* Brand palette (from the Sara Streng concept) */
  --violet: #5D42F3;
  --violet-deep: #4A30DB;
  --lime: #D1ED36;
  --mint: #DBF58A;
  --coral: #EB4B11;
  --pink: #FEA3E0;
  --lavender: #8C79EF;

  /* Neutrals, biased toward the violet */
  --paper: #F5F3FC;
  --paper-2: #ECE8FB;
  --card: #FFFFFF;
  --ink: #1D1747;
  --ink-soft: #4F4A73;
  --line: #D9D3F3;
  --on-violet: #FFFFFF;
  --on-violet-soft: #DCD5FF;

  /* Sticky-note colours, taken from the photo shoot */
  --note-yellow: #F9D65C;
  --note-blue: #A9D3F2;
  --note-peach: #F8B98F;

  --ok: #2F7D32;

  /* Type */
  --font-sans: "Bricolage Grotesque", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-hand: "Gochi Hand", "Bradley Hand", "Segoe Print", cursive;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --step-3: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
  --step-4: clamp(2.6rem, 1.4rem + 5.4vw, 5.25rem);
  --step-hero: clamp(2.9rem, 1.2rem + 6.6vw, 6.6rem);

  /* Layout */
  --max: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(4rem, 3rem + 5vw, 8rem);
  --radius-photo: 6px;
  --radius-pill: 999px;

  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.05;
  font-weight: 750;
  letter-spacing: -0.025em;
  text-wrap: balance;
  font-variation-settings: "wdth" 88;
}
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); line-height: 1.2; letter-spacing: -0.01em; font-variation-settings: "wdth" 95; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 4px; }
.on-violet :focus-visible { outline-color: var(--lime); }
::selection { background: var(--lime); color: var(--ink); }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: .6rem 1rem; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--tint { background: var(--paper-2); }
.section--mint { background: var(--mint); }
.section--violet { background: var(--violet); color: var(--on-violet); }
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--ink-soft); max-width: 38ch; }
.on-violet .lede { color: var(--on-violet-soft); }
.prose { max-width: 62ch; display: grid; gap: 1.1em; }
.prose p { color: var(--ink-soft); }
.hand { font-family: var(--font-hand); font-weight: 400; letter-spacing: 0; line-height: 1.1; }
.section-head { display: grid; gap: 1rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); max-width: 46rem; }
.tag { font-family: var(--font-hand); font-size: 1.5rem; color: var(--coral); line-height: 1; transform: rotate(-2deg); transform-origin: left; display: inline-block; }
.on-violet .tag { color: var(--lime); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons & links ---------- */
.btn {
  --btn-bg: var(--lime); --btn-fg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: .8rem 1.6rem;
  border-radius: var(--radius-pill); border: 2px solid transparent;
  background: var(--btn-bg); color: var(--btn-fg);
  font: 650 1rem/1.2 var(--font-sans); text-decoration: none; cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 -2px color-mix(in srgb, var(--btn-fg) 18%, transparent); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn--violet { --btn-bg: var(--violet); --btn-fg: var(--on-violet); }
.btn--violet:hover { background: var(--violet-deep); }
.btn--ghost { background: transparent; border-color: currentColor; color: inherit; }
.btn--ghost:hover { box-shadow: none; background: color-mix(in srgb, currentColor 10%, transparent); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 650; text-decoration: none; position: relative; padding-block: .25rem;
}
.link-arrow svg { width: 2.2em; height: auto; transition: transform .25s ease; }
.link-arrow:hover svg { transform: translateX(5px); }
.link-arrow span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .3s ease; }
.link-arrow:hover span { background-size: 100% 2px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 34px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.2rem); }
.nav-links { display: flex; gap: clamp(1rem, 2.2vw, 2rem); list-style: none; }
.nav-links a {
  text-decoration: none; font-weight: 550; position: relative; padding-block: .4rem;
}
.nav-links a::after {
  content: ""; position: absolute; left: -2px; right: -2px; bottom: -2px; height: 8px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 8' preserveAspectRatio='none'%3E%3Cpath d='M2 5.5C20 2 45 2.5 60 4s28 .8 38-1.5' fill='none' stroke='%23EB4B11' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 0 0 / 100% 100%;
  clip-path: inset(0 100% 0 0); transition: clip-path .35s ease;
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { clip-path: inset(0 0 0 0); }
.nav .btn { min-height: 44px; padding: .55rem 1.2rem; font-size: .95rem; }
.menu-toggle {
  display: none; background: none; border: 2px solid var(--ink); border-radius: var(--radius-pill);
  min-height: 44px; padding: .4rem 1rem; font: 650 .95rem var(--font-sans); color: var(--ink); cursor: pointer;
}

@media (max-width: 720px) {
  .menu-toggle { display: inline-flex; align-items: center; gap: .5rem; }
  .nav {
    position: absolute; inset: 100% 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 1.25rem;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 1.25rem var(--gutter) 1.75rem;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility 0s .2s;
  }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; transition: opacity .2s ease, transform .2s ease; }
  .nav-links { flex-direction: column; gap: .25rem; }
  .nav-links a { display: block; font-size: 1.5rem; font-weight: 700; padding-block: .45rem; }
  .nav-links a::after { right: auto; width: 6rem; }
  .nav .btn { min-height: 52px; font-size: 1rem; }
}

/* ---------- Hero (home) ---------- */
.hero { background: var(--violet); color: var(--on-violet); overflow: hidden; }
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 4rem); align-items: center;
  padding-block: clamp(3rem, 6vw, 6rem) clamp(3.5rem, 7vw, 7rem);
}
.hero-copy { display: grid; gap: clamp(1.25rem, 2.4vw, 1.9rem); min-width: 0; container-type: inline-size; }
.hero-title {
  font-size: clamp(2.4rem, 12.5cqi, 7rem); color: var(--lime); font-weight: 800;
  letter-spacing: -0.015em; line-height: 1.12; font-variation-settings: "wdth" 92;
}
.hero-title .line { display: block; white-space: nowrap; }
.fix { position: relative; display: inline-block; }
.fix-add {
  font-family: var(--font-hand); color: var(--on-violet); font-weight: 400;
  letter-spacing: 0; display: inline-block; font-size: 1.02em; transform: translateY(.04em) rotate(-4deg);
  margin-left: .02em;
}
.fix-over { position: relative; display: inline-block; }
.fix-over .fix-strike {
  position: absolute; left: -12%; right: -12%; top: 52%; height: .09em; background: var(--on-violet);
  border-radius: 4px; transform: rotate(-14deg); transform-origin: left center;
}
.fix-over .fix-new {
  position: absolute; left: 55%; bottom: 52%; translate: -50% 0;
  font-family: var(--font-hand); color: var(--on-violet); font-size: .62em; letter-spacing: 0; font-weight: 400;
  rotate: -6deg; line-height: 1;
}
.hero-sub {
  font-size: clamp(1.35rem, 1rem + 1.5vw, 2.2rem); color: var(--lime); font-weight: 250;
  letter-spacing: -0.01em; line-height: 1.15; position: relative; padding-bottom: .8em; padding-top: .35em;
  font-variation-settings: "wdth" 100;
}
.caret { position: relative; display: inline-block; width: .35em; }
.caret::before {
  content: "^"; font-family: var(--font-hand); color: var(--on-violet); position: absolute;
  left: 50%; translate: -50% 0; top: .12em; font-size: .9em; line-height: 1;
}
.caret .caret-word {
  position: absolute; left: 50%; translate: -50% 0; top: -1.75em; font-family: var(--font-hand);
  color: var(--on-violet); font-size: .95em; white-space: nowrap; rotate: -3deg; font-weight: 400;
}
.hero-text { color: var(--on-violet-soft); max-width: 44ch; font-size: var(--step-1); line-height: 1.5; }
.hero-text strong { color: var(--on-violet); font-weight: 650; }
.hero .btn-row { padding-top: .25rem; }
.hero .btn--ghost { color: var(--on-violet); }

.hero-figure { position: relative; margin: 0; min-width: 0; width: 100%; }
.hero-media {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-photo); overflow: hidden; rotate: 1.5deg;
  background: var(--violet-deep); box-shadow: 0 30px 60px -30px rgba(18, 8, 80, .55);
}
.hero-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-controls { position: absolute; right: .75rem; bottom: .75rem; display: flex; gap: .5rem; }
.video-btn {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 40px; min-width: 40px; justify-content: center;
  padding: .45rem .85rem; border: 0; border-radius: var(--radius-pill); cursor: pointer;
  background: rgba(29, 23, 71, .72); color: #FFFFFF; font: 600 .875rem/1 var(--font-sans);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background-color .2s ease;
}
.video-btn:hover { background: rgba(29, 23, 71, .9); }
.video-btn svg { width: 18px; height: 18px; flex: none; }
.video-btn .i-play, .video-btn.is-paused .i-pause { display: none; }
.video-btn.is-paused .i-play { display: inline; }
.video-btn .i-on, .video-btn[aria-pressed="true"] .i-off { display: none; }
.video-btn[aria-pressed="true"] .i-on { display: inline; }
.sticky {
  position: absolute; display: grid; place-items: center; text-align: center;
  font-family: var(--font-hand); color: var(--ink); line-height: 1.05;
  box-shadow: 0 10px 18px -10px rgba(29, 23, 71, .45);
}
.hero-note {
  width: 8rem; height: 8rem; left: -2rem; bottom: -3.4rem; padding: .9rem; z-index: 2;
  background: var(--pink); rotate: -7deg; font-size: 1.55rem; text-decoration: none;
  transition: rotate .3s ease, transform .3s ease;
}
.hero-note:hover { rotate: -2deg; transform: translateY(-4px); }
.hero-smile { position: absolute; right: -1rem; top: -2.2rem; width: 4.5rem; color: var(--lime); rotate: 8deg; }

/* Hero write-on sequence — the page's one orchestrated moment */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-title .line { opacity: 0; transform: translateY(.18em); animation: rise .7s cubic-bezier(.2,.7,.2,1) forwards; }
  .js .hero-title .line:nth-child(2) { animation-delay: .12s; }
  .js .write { clip-path: inset(-20% 100% -20% 0); animation: write .5s steps(8, end) forwards; }
  .js .write--1 { animation-delay: .85s; }
  .js .fix-strike.write { animation-duration: .25s; animation-delay: 1.35s; animation-timing-function: ease-out; }
  .js .write--2 { animation-delay: 1.6s; }
  .js .write--3 { animation-delay: 2.1s; }
  .js .write--4 { animation-delay: 2.5s; animation-duration: .6s; }
  .js .hero-sub, .js .hero-text, .js .hero .btn-row { opacity: 0; animation: fade .6s ease forwards; }
  .js .hero-sub { animation-delay: .35s; }
  .js .hero-text { animation-delay: .5s; }
  .js .hero .btn-row { animation-delay: .65s; }
  .js .hero-media { opacity: 0; scale: .96; animation: photo .9s cubic-bezier(.2,.7,.2,1) .2s forwards; }
  .js .hero-note { opacity: 0; animation: note .5s cubic-bezier(.3,1.5,.5,1) 1.1s forwards; }
}
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes write { to { clip-path: inset(-20% -10% -20% 0); } }
@keyframes fade { to { opacity: 1; } }
@keyframes photo { to { opacity: 1; scale: 1; } }
@keyframes note { from { opacity: 0; transform: translateY(20px) scale(.85); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-figure { width: calc(100% - 1rem); margin-left: 1rem; margin-top: 1rem; margin-bottom: 2.5rem; }
}
@media (max-width: 520px) {
  .hero-note { width: 6.5rem; height: 6.5rem; font-size: 1.15rem; left: -1rem; bottom: -3rem; }
  .video-btn span { display: none; }
}

/* ---------- Page hero (sub pages) ---------- */
.page-hero .hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem); align-items: end;
  padding-block: clamp(2.5rem, 5vw, 5rem) clamp(3rem, 6vw, 6rem);
}
.page-hero h1 { font-size: var(--step-4); font-weight: 800; letter-spacing: -0.02em; font-variation-settings: "wdth" 90; }
.page-hero .copy { display: grid; gap: 1.5rem; min-width: 0; align-self: center; }
.page-hero figure { margin: 0; position: relative; min-width: 0; }
.page-hero figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-photo); }
.page-hero .photo-note {
  position: absolute; left: -1.5rem; bottom: 1.5rem; background: var(--lime);
  padding: .7rem 1rem; font-family: var(--font-hand); font-size: 1.35rem; line-height: 1.1; rotate: -4deg;
  box-shadow: 0 10px 18px -10px rgba(29, 23, 71, .45); max-width: 14rem;
}
.page-hero .facts-wrap { padding-bottom: clamp(3rem, 6vw, 5rem); }
@media (max-width: 860px) {
  .page-hero .hero-grid { grid-template-columns: 1fr; }
  .page-hero figure { max-width: 460px; margin-left: 1.5rem; }
}

/* ---------- Facts strip ---------- */
.facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  border-block: 2px solid var(--ink);
}
.facts > div { padding: 1.25rem 1.25rem 1.4rem 0; display: grid; gap: .3rem; }
.facts > div + div { padding-left: 1.25rem; border-left: 1px solid var(--line); }
.facts dt { font-size: var(--step--1); color: var(--ink-soft); }
.facts dd { margin: 0; font-size: var(--step-1); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
@media (max-width: 640px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .facts > div { padding: 1rem .75rem 1.1rem 0 !important; border-left: 0 !important; }
  .facts > div:nth-child(even) { padding-left: .75rem !important; border-left: 1px solid var(--line) !important; }
}

/* ---------- Roles (home) ---------- */
.roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2rem); list-style: none; }
.roles li { display: grid; }
.role { display: grid; grid-template-rows: auto 1fr; text-decoration: none; color: var(--ink); }
.role figure { margin: 0; overflow: hidden; border-radius: var(--radius-photo) var(--radius-photo) 0 0; }
.role img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.role:hover img { transform: scale(1.04); }
.role-body { padding: 1.5rem 1.5rem 1.75rem; display: grid; gap: .75rem; align-content: start; border-radius: 0 0 var(--radius-photo) var(--radius-photo); }
.roles li:nth-child(1) .role-body { background: var(--pink); }
.roles li:nth-child(2) .role-body { background: var(--lavender); }
.roles li:nth-child(3) .role-body { background: var(--note-yellow); }
.role .who { font-family: var(--font-hand); font-size: 1.35rem; line-height: 1; }
.role h3 { font-size: var(--step-2); line-height: 1.05; letter-spacing: -0.025em; font-variation-settings: "wdth" 88; }
.role p { font-size: 1rem; }
.role .link-arrow { margin-top: .5rem; }
@media (max-width: 900px) { .roles { grid-template-columns: 1fr; max-width: 560px; } .role img { aspect-ratio: 16 / 11; } }

/* ---------- Quiz ---------- */
.quiz { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.quiz-intro { display: grid; gap: 1.25rem; position: sticky; top: 140px; }
.quiz-intro .prose p { color: var(--ink); }
.quiz-score { font-family: var(--font-hand); font-size: 2rem; color: var(--violet); min-height: 2.4rem; }
.quiz-tip { font-family: var(--font-hand); font-size: 1.35rem; color: var(--coral); rotate: -2deg; display: inline-block; }
.quiz-photo { width: min(100%, 300px); aspect-ratio: 1; object-fit: cover; object-position: 50% 60%; border-radius: var(--radius-photo); rotate: -2deg; margin-top: .5rem; }
.words { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; list-style: none; }
.word {
  background: var(--card); border-radius: 10px; padding: 1.25rem 1.25rem 1.1rem; display: grid; gap: .9rem;
  position: relative; border: 2px solid transparent; transition: border-color .25s ease;
}
.word-noun { font-size: 1.75rem; font-weight: 750; letter-spacing: -0.02em; line-height: 1; display: flex; align-items: baseline; gap: .4rem; flex-wrap: wrap; }
.word-noun .article { font-family: var(--font-hand); font-weight: 400; color: var(--violet); min-width: 1.6em; display: inline-block; letter-spacing: 0; }
.word-en { font-size: var(--step--1); color: var(--ink-soft); }
.choices { display: flex; gap: .5rem; flex-wrap: wrap; }
.choice {
  font: 400 1.35rem/1 var(--font-hand); color: var(--ink); border: 0; cursor: pointer;
  width: 3.6rem; height: 3.2rem; display: grid; place-items: center;
  box-shadow: 0 6px 10px -6px rgba(29, 23, 71, .45);
  transition: transform .2s ease, opacity .2s ease;
}
.choice[data-a="der"] { background: var(--note-blue); rotate: -3deg; }
.choice[data-a="die"] { background: var(--note-yellow); rotate: 2deg; }
.choice[data-a="das"] { background: var(--note-peach); rotate: -1deg; }
.choice:hover:not(:disabled) { transform: translateY(-3px) rotate(2deg); }
.choice:disabled { cursor: default; opacity: .35; }
.choice.is-picked { opacity: 1; outline: 2px solid var(--ink); outline-offset: 2px; }
.word-result { font-family: var(--font-hand); font-size: 1.3rem; line-height: 1.1; min-height: 1.45rem; }
.word.is-right { border-color: var(--ok); }
.word.is-right .word-result { color: var(--ok); }
.word.is-wrong { border-color: var(--coral); }
.word.is-wrong .word-result { color: var(--coral); }
.quiz-reset { justify-self: start; }
@media (max-width: 900px) {
  .quiz { grid-template-columns: 1fr; }
  .quiz-intro { position: static; }
  .quiz-photo { display: none; }
}
@media (max-width: 480px) { .words { grid-template-columns: 1fr; } }

/* ---------- Course snapshot ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.split--flip > :first-child { order: 2; }
.split figure { margin: 0; position: relative; }
.split figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-photo); }
.split .copy { display: grid; gap: 1.5rem; min-width: 0; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split--flip > :first-child { order: 0; }
  .split figure { max-width: 480px; }
}
.margin-note {
  position: absolute; font-family: var(--font-hand); font-size: 1.45rem; line-height: 1.1; color: var(--coral);
  rotate: -4deg; max-width: 12rem;
}
.margin-note svg { width: 3.4rem; color: var(--coral); display: block; margin-top: .2rem; }

.ruled { display: grid; border-top: 2px solid var(--ink); }
.ruled > div { display: grid; grid-template-columns: minmax(7.5rem, .8fr) 1.5fr; gap: 1rem; padding-block: .8rem; border-bottom: 1px solid var(--line); }
.ruled dt { color: var(--ink-soft); font-size: .95rem; padding-top: .1rem; }
.ruled dd { margin: 0; font-weight: 650; }
.ruled dd .hand { color: var(--coral); font-size: 1.3rem; font-weight: 400; }

.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 2.5rem; list-style: none; }
.features li { display: grid; gap: .4rem; align-content: start; padding-left: 2.6rem; position: relative; }
.features li::before {
  content: ""; position: absolute; left: 0; top: .05rem; width: 1.8rem; height: 1.8rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M5 17.5c3 2.2 5.2 4.6 7 8 3.6-8.2 8.4-14.6 15-20' fill='none' stroke='%235D42F3' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}
.features h3 { font-size: 1.15rem; }
.features p { color: var(--ink-soft); font-size: 1rem; }
.section--mint .features p, .section--mint .prose p { color: var(--ink); }
.features--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .features--three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .features, .features--three { grid-template-columns: 1fr; } }

/* ---------- Steps (real sequences only) ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: 1.5rem; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; display: grid; gap: .6rem; align-content: start; padding-top: 1.1rem; border-top: 2px solid var(--ink); }
.steps li::before {
  content: counter(step); font-family: var(--font-hand); font-size: 2.6rem; line-height: 1; color: var(--violet);
}
.steps h3 { font-size: 1.15rem; }
.steps p { color: var(--ink-soft); font-size: 1rem; }


/* ---------- Lena ---------- */
.lena { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.lena figure { margin: 0; position: relative; }
.lena figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%; border-radius: var(--radius-photo); }
.lena h2 { font-size: var(--step-4); font-weight: 800; letter-spacing: -0.02em; }
.lena .copy { display: grid; gap: 1.5rem; min-width: 0; }
.signature { font-family: var(--font-hand); font-size: 2.6rem; color: var(--coral); line-height: 1; rotate: -4deg; display: inline-block; }
.quote { margin: 0; padding-left: 1.25rem; border-left: 3px solid var(--lime); display: grid; gap: .35rem; }
.quote p { font-size: var(--step-1); font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.quote cite { font-style: normal; font-size: var(--step--1); color: var(--ink-soft); }
@media (max-width: 860px) { .lena { grid-template-columns: 1fr; } .lena figure { max-width: 440px; } }

/* ---------- Testimonials as notes on a wall ---------- */
.notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2.5rem); list-style: none; padding-top: 1rem; }
.note {
  padding: 1.75rem 1.6rem 1.5rem; display: grid; gap: 1rem; align-content: start;
  box-shadow: 0 18px 26px -18px rgba(29, 23, 71, .45); position: relative;
}
.note::before { /* tape */
  content: ""; position: absolute; top: -12px; left: 50%; width: 88px; height: 24px; translate: -50% 0;
  background: color-mix(in srgb, var(--card) 65%, transparent); rotate: -3deg;
}
.note:nth-child(1) { background: var(--note-yellow); rotate: -1.5deg; }
.note:nth-child(2) { background: var(--pink); rotate: 1deg; margin-top: 1.5rem; }
.note:nth-child(3) { background: var(--mint); rotate: -.5deg; }
.note blockquote { margin: 0; display: grid; gap: .8rem; }
.note .en { font-size: 1.15rem; line-height: 1.45; font-weight: 550; }
.note .it { font-size: .9rem; font-style: italic; color: color-mix(in srgb, var(--ink) 72%, transparent); }
.note figcaption { font-family: var(--font-hand); font-size: 1.4rem; line-height: 1; }
@media (max-width: 900px) { .notes { grid-template-columns: 1fr; max-width: 520px; } .note:nth-child(2) { margin-top: 0; } }

/* ---------- Benefits list ---------- */
.benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 2.5rem; list-style: none; border-top: 2px solid var(--ink); }
.benefits li { padding-block: 1.4rem 1.6rem; border-bottom: 1px solid var(--line); display: grid; gap: .45rem; align-content: start; }
.benefits h3 { font-size: 1.2rem; display: flex; gap: .55rem; align-items: baseline; }
.benefits h3::before { content: "✓"; font-family: var(--font-hand); color: var(--coral); font-size: 1.45rem; line-height: 1; }
.benefits p { color: var(--ink-soft); font-size: 1rem; }
.section--violet .benefits { border-color: var(--lime); }
@media (max-width: 900px) { .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .benefits { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.faq-grid .section-head { position: sticky; top: 140px; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } .faq-grid .section-head { position: static; } }
.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1.5rem; align-items: center;
  padding-block: 1.2rem; font-weight: 650; font-size: 1.1rem; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { flex: none; width: 2rem; height: 2rem; border-radius: 50%; background: var(--paper-2); position: relative; transition: background-color .2s ease, rotate .3s ease; }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--ink); translate: -50% -50%; border-radius: 2px; }
.faq summary .pm::after { rotate: 90deg; transition: rotate .3s ease; }
.faq details[open] summary .pm { background: var(--lime); }
.faq details[open] summary .pm::after { rotate: 0deg; }
.faq summary:hover .pm { background: var(--lime); }
.faq .answer { padding: 0 3rem 1.4rem 0; color: var(--ink-soft); max-width: 62ch; }
.section--tint .faq summary .pm { background: var(--card); }
.section--tint .faq details[open] summary .pm, .section--tint .faq summary:hover .pm { background: var(--lime); }

/* ---------- CTA band ---------- */
.cta { background: var(--violet); color: var(--on-violet); position: relative; overflow: hidden; }
.cta .wrap { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 2rem 4rem; align-items: center; padding-block: clamp(4rem, 7vw, 7rem); }
.cta h2 { font-size: var(--step-4); color: var(--lime); font-weight: 800; letter-spacing: -0.02em; font-variation-settings: "wdth" 90; }
.cta .copy { display: grid; gap: 1.25rem; min-width: 0; }
.cta p { color: var(--on-violet-soft); font-size: var(--step-1); max-width: 34ch; line-height: 1.45; }
.cta-actions { display: grid; gap: 1rem; justify-items: start; position: relative; padding-top: 3.5rem; }
.cta .btn--ghost { color: var(--on-violet); }
.cta-hint { position: absolute; top: 0; left: 5.5rem; font-family: var(--font-hand); color: var(--on-violet); font-size: 1.9rem; line-height: 1; display: flex; align-items: flex-end; gap: .3rem; }
.cta-hint svg { width: 4.2rem; color: var(--on-violet); translate: 0 1.1rem; }
@media (max-width: 860px) { .cta .wrap { grid-template-columns: 1fr; } .cta-hint { left: 9rem; } }

/* ---------- About ---------- */
.timeline { list-style: none; display: grid; border-top: 2px solid var(--ink); }
.timeline li { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1.5rem; padding-block: 1.1rem; border-bottom: 1px solid var(--line); }
.timeline .when { font-family: var(--font-hand); color: var(--violet); font-size: 1.45rem; line-height: 1.1; }
.timeline p { color: var(--ink-soft); }
.timeline strong { color: var(--ink); font-weight: 650; }
@media (max-width: 520px) { .timeline li { grid-template-columns: 1fr; gap: .2rem; } }
.mosaic { display: grid; grid-template-columns: 1.1fr .9fr 1.1fr; gap: clamp(.75rem, 2vw, 1.5rem); align-items: end; }
.mosaic img { width: 100%; object-fit: cover; border-radius: var(--radius-photo); }
.mosaic img:nth-child(1) { aspect-ratio: 4 / 5; }
.mosaic img:nth-child(2) { aspect-ratio: 3 / 4; translate: 0 -2.5rem; }
.mosaic img:nth-child(3) { aspect-ratio: 4 / 5; }
@media (max-width: 640px) { .mosaic { grid-template-columns: 1fr 1fr; } .mosaic img:nth-child(3) { display: none; } .mosaic img:nth-child(2) { translate: 0 0; } }
.big-quote { display: grid; gap: 1.25rem; }
.big-quote p { max-width: 24ch; }
.big-quote p { font-size: var(--step-3); font-weight: 750; line-height: 1.08; letter-spacing: -0.03em; color: var(--lime); text-wrap: balance; font-variation-settings: "wdth" 88; }
.big-quote cite { font-style: normal; color: var(--on-violet-soft); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.contact h1 { font-size: var(--step-4); font-weight: 800; letter-spacing: -0.02em; font-variation-settings: "wdth" 90; }
.contact .intro { display: grid; gap: 1.25rem; margin-bottom: 2.5rem; }
.form { display: grid; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: .4rem; min-width: 0; }
.field label { font-weight: 600; font-size: .95rem; }
.field .opt { color: var(--ink-soft); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; font: 400 1rem/1.4 var(--font-sans); color: var(--ink);
  background: var(--card); border: 2px solid var(--line); border-radius: 10px; padding: .85rem 1rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 9.5rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px color-mix(in srgb, var(--violet) 18%, transparent); }
.field [aria-invalid="true"] { border-color: var(--coral); }
.field .err { color: var(--coral); font-size: .9rem; min-height: 0; }
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .95rem; color: var(--ink-soft); }
.check input { width: 1.2rem; height: 1.2rem; margin-top: .2rem; accent-color: var(--violet); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 1rem; }
.form-status.is-error { color: var(--coral); }
.form-done { background: var(--mint); border-radius: 12px; padding: 2rem; display: grid; gap: .75rem; }
.form-done .hand { font-size: 2.2rem; color: var(--violet); }
.contact-aside { display: grid; gap: 1.75rem; }
.contact-aside figure { margin: 0; position: relative; }
.contact-aside img { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; border-radius: var(--radius-photo); }
.contact-list { list-style: none; display: grid; border-top: 2px solid var(--ink); }
.contact-list li { padding-block: .9rem; border-bottom: 1px solid var(--line); display: grid; gap: .15rem; }
.contact-list .k { font-size: .9rem; color: var(--ink-soft); }
.contact-list a { font-weight: 650; font-size: 1.1rem; text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { text-decoration: underline; text-decoration-color: var(--coral); text-underline-offset: 4px; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } .contact-aside figure { max-width: 420px; } }

/* ---------- Legal ---------- */
.legal { max-width: 46rem; display: grid; gap: 2rem; padding-block: clamp(3rem, 6vw, 6rem); }
.legal h1 { font-size: var(--step-4); font-weight: 800; letter-spacing: -0.02em; }
.legal h2 { font-size: var(--step-2); }
.legal section { display: grid; gap: .6rem; }
.legal p, .legal address { color: var(--ink-soft); font-style: normal; }
.legal .pending { background: var(--mint); padding: 1.25rem 1.5rem; border-radius: 10px; color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #C9C3EC; padding-block: 4rem 2rem; }
.site-footer a { color: #FFFFFF; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-decoration-color: var(--lime); text-underline-offset: 4px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer-brand { display: grid; gap: 1.25rem; align-content: start; }
.footer-brand img { height: 46px; width: auto; }
.footer-brand p { max-width: 30ch; }
.footer-col { display: grid; gap: .7rem; align-content: start; }
.footer-col h2 { font-size: 1rem; font-weight: 700; letter-spacing: 0; color: #FFFFFF; font-variation-settings: "wdth" 100; }
.footer-col ul { list-style: none; display: grid; gap: .5rem; }
.footer-bottom { margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid #3A3368; display: flex; flex-wrap: wrap; gap: .75rem 2rem; justify-content: space-between; font-size: .9rem; }
.footer-bottom ul { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (max-width: 860px) { .split .margin-note { right: .25rem !important; top: -2.6rem !important; } .split figure { margin-top: 2.5rem; } }

/* ---------- Private lesson formats ---------- */
.formats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2rem); }
.format { border-radius: 10px; padding: clamp(1.5rem, 3vw, 2.5rem); display: grid; gap: 1rem; align-content: start; }
.format--solo { background: var(--pink); }
.format--group { background: var(--mint); }
.format .who { font-family: var(--font-hand); font-size: 1.45rem; line-height: 1; }
.format h3 { font-size: var(--step-2); letter-spacing: -0.02em; font-variation-settings: "wdth" 90; }
.format > p { max-width: 44ch; }
.ticks { list-style: none; display: grid; gap: .7rem; border-top: 2px solid var(--ink); padding-top: 1.1rem; }
.ticks li { padding-left: 2rem; position: relative; }
.ticks li::before { content: "\2713"; position: absolute; left: 0; top: -.1rem; font-family: var(--font-hand); color: var(--violet); font-size: 1.4rem; line-height: 1.2; }
@media (max-width: 760px) { .formats { grid-template-columns: 1fr; } }

/* ---------- Hero translation note ---------- */
.hero-translation {
  font-family: var(--font-hand); color: var(--on-violet); font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.1rem);
  line-height: 1.1; rotate: -2deg; transform-origin: left center; margin-top: -.4rem;
}

/* ---------- Three ways to learn ---------- */
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto repeat(5, auto) auto; gap: 0 clamp(1rem, 2.5vw, 2rem); }
.way {
  grid-row: span 7; display: grid; grid-template-rows: subgrid; row-gap: 0;
  background: var(--card); border-radius: 10px; padding: clamp(1.25rem, 2.5vw, 2rem);
}
.way h3 { font-size: var(--step-2); letter-spacing: -0.02em; font-variation-settings: "wdth" 90; padding-bottom: 1rem; border-bottom: 2px solid var(--ink); }
.way dl { display: contents; }
.way dl > div { display: grid; gap: .2rem; padding-block: .85rem; border-bottom: 1px solid var(--line); align-content: start; }
.way dt { font-size: .875rem; color: var(--ink-soft); }
.way dd { margin: 0; font-weight: 600; line-height: 1.4; }
.way .link-arrow { margin-top: 1.1rem; align-self: end; justify-self: start; }
.way:nth-child(1) h3 { border-bottom-color: var(--pink); }
.way:nth-child(2) h3 { border-bottom-color: var(--lavender); }
.way:nth-child(3) h3 { border-bottom-color: var(--note-yellow); }
.way h3 { border-bottom-width: 4px; }
.ways-note { margin-top: 1.5rem; font-family: var(--font-hand); font-size: 1.4rem; color: var(--coral); rotate: -1deg; display: inline-block; }
@media (max-width: 900px) {
  .ways { grid-template-columns: 1fr; grid-template-rows: none; gap: 1rem; max-width: 560px; }
  .way { grid-row: auto; grid-template-rows: none; }
}

/* ---------- Language toggle ---------- */
.site-header .wrap { gap: 1.25rem; }
.nav-links a, .nav .btn { white-space: nowrap; }
.brand { margin-right: auto; }
.nav { order: 2; }
.lang-switch { order: 4; display: inline-flex; border: 2px solid var(--ink); border-radius: var(--radius-pill); padding: 2px; flex: none; }
.menu-toggle { order: 5; }
.lang-switch a {
  display: inline-grid; place-items: center; min-width: 2.4rem; min-height: 34px; padding: 0 .55rem;
  border-radius: var(--radius-pill); font-weight: 700; font-size: .85rem; letter-spacing: .04em; text-decoration: none; color: var(--ink);
  transition: background-color .2s ease, color .2s ease;
}
.lang-switch a:hover { background: var(--paper-2); }
.lang-switch a[aria-current="true"] { background: var(--ink); color: var(--paper); }
@media (max-width: 720px) {
  .menu-toggle { display: inline-flex; align-items: center; gap: .5rem; }
  .nav {
    position: absolute; inset: 100% 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 1.25rem;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 1.25rem var(--gutter) 1.75rem;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility 0s .2s;
  }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; transition: opacity .2s ease, transform .2s ease; }
  .nav-links { flex-direction: column; gap: .25rem; }
  .nav-links a { display: block; font-size: 1.5rem; font-weight: 700; padding-block: .45rem; }
  .nav-links a::after { right: auto; width: 6rem; }
  .nav .btn { min-height: 52px; font-size: 1rem; }
}
@media (max-width: 480px) {
  .site-header .wrap { gap: .6rem; }
  .lang-switch a { min-width: 2rem; padding: 0 .35rem; font-size: .8rem; }
  .menu-toggle { padding: .4rem .8rem; }
  .brand img { height: 30px; }
}
.brand { flex: none; }
@media (min-width: 1121px) and (max-width: 1400px) {
  .header-cta { padding: .5rem 1rem; font-size: .9rem; }
  .site-header .wrap { gap: 1rem; }
  .nav { gap: 1rem; }
  .nav-links { gap: 1rem; }
  .nav-links a { font-size: .95rem; }
  .nav .btn { padding: .5rem 1rem; font-size: .9rem; }
}
html[lang="it"] .note .it { font-size: 1.15rem; line-height: 1.45; font-style: normal; font-weight: 550; color: var(--ink); }
html[lang="it"] .note .it::before { content: "«"; }
html[lang="it"] .note .it::after { content: "»"; }

/* ---------- Header: booking button always visible, menu folds only on phones ---------- */
.header-cta { order: 3; flex: none; min-height: 44px; padding: .55rem 1.2rem; font-size: .95rem; white-space: nowrap; }
.nav .nav-cta { display: none; }
@media (min-width: 721px) and (max-width: 1120px) {
  .site-header .wrap { flex-wrap: wrap; row-gap: 0; min-height: 0; padding-top: .6rem; }
  .brand, .header-cta, .lang-switch { margin-block: .25rem .5rem; }
  .nav { order: 10; flex-basis: 100%; border-top: 1px solid var(--line); padding-block: .35rem .45rem; }
  .nav-links { gap: clamp(1rem, 3vw, 2.25rem); }
  .nav-links a { font-size: .95rem; }
}
@media (max-width: 720px) {
  .header-cta { display: none; }
  .nav .nav-cta { display: inline-flex; }
}

/* ---------- Client logo strip (home hero) ---------- */
.client-strip {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, .22); padding-block: 1.6rem 2.2rem;
}
.client-strip-label { font-family: var(--font-hand); color: var(--lime); font-size: 1.45rem; line-height: 1; rotate: -2deg; flex: none; }
.client-logos { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem clamp(1.5rem, 3.5vw, 3rem); }
.client-logos li { display: flex; align-items: center; height: 40px; }
.client-logos img { height: 26px; width: auto; max-width: 170px; opacity: .88; transition: opacity .2s ease, transform .2s ease; }
.client-logos img:hover { opacity: 1; transform: translateY(-2px); }
.client-logos .logo-mila img { height: 40px; }
.client-logos .logo-dr-schaer img { height: 28px; }
.client-logos .logo-bureau-plattner img { height: 20px; }
@media (max-width: 600px) {
  .client-strip { gap: .9rem; }
  .client-logos { gap: 1rem 1.6rem; }
  .client-logos img { height: 20px; }
  .client-logos .logo-mila img { height: 32px; }
  .client-logos .logo-dr-schaer img { height: 22px; }
  .client-logos .logo-bureau-plattner img { height: 15px; }
}

/* ---------- Client sticky-note wall (companies) ---------- */
.client-wall-wrap { position: relative; }
.client-wall { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 880px; gap: clamp(1rem, 2.5vw, 2rem); padding-top: .75rem; }
.client { --note: var(--note-yellow); position: relative; transition: transform .35s cubic-bezier(.2,.7,.2,1), rotate .35s cubic-bezier(.2,.7,.2,1); }
.client:nth-child(1) { rotate: -3deg; }
.client:nth-child(2) { rotate: 2deg; translate: 0 .6rem; }
.client:nth-child(3) { rotate: -1.5deg; }
.client:nth-child(4) { rotate: 2.5deg; translate: 0 .4rem; }
.client:nth-child(5) { rotate: -2deg; }
.client--yellow { --note: var(--note-yellow); }
.client--mint { --note: var(--mint); }
.client--pink { --note: var(--pink); }
.client--lavender { --note: var(--lavender); }
.client--peach { --note: var(--note-peach); }
.client:hover, .client:focus-within { rotate: 0deg; transform: translateY(-6px); z-index: 2; }
.client::before { /* tape */
  content: ""; position: absolute; top: -10px; left: 50%; width: 74px; height: 22px; translate: -50% 0; rotate: -4deg;
  background: color-mix(in srgb, #FFFFFF 62%, transparent); z-index: 3; pointer-events: none;
}
.client-note {
  display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 0; background: none; cursor: pointer;
  perspective: 900px; font: inherit; color: var(--ink); text-align: left;
}
.client-note:focus-visible { outline: 3px solid var(--violet); outline-offset: 6px; border-radius: 2px; }
.client-card { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.client-note[aria-pressed="true"] .client-card { transform: rotateY(180deg); }
.client-face {
  position: absolute; inset: 0; display: grid; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background: var(--note); box-shadow: 0 18px 26px -18px rgba(29, 23, 71, .5);
}
.client-front { place-items: center; }
.client-front img { grid-area: 1 / 1; max-width: 72%; max-height: 42%; width: auto; height: auto; object-fit: contain; transition: opacity .3s ease; }
.client-front .logo-color { opacity: 0; }
.client:hover .logo-color, .client-note:focus-visible .logo-color { opacity: 1; }
.client:hover .logo-mono, .client-note:focus-visible .logo-mono { opacity: 0; }
.client-back { transform: rotateY(180deg); align-content: center; gap: .35rem; padding: 1rem 1.1rem; }
.client-name { font-weight: 750; font-size: .95rem; letter-spacing: -0.01em; padding-bottom: .35rem; margin-bottom: .2rem; border-bottom: 2px solid var(--ink); }
.client-fact { font-family: var(--font-hand); font-size: clamp(1.05rem, .85rem + .5vw, 1.3rem); line-height: 1.15; }
.client-fact::before { content: "✓ "; color: var(--violet); }
.client-hint {
  position: absolute; left: clamp(4rem, 12vw, 9rem); top: -3.1rem; font-family: var(--font-hand); color: var(--coral);
  font-size: 1.45rem; rotate: -4deg; white-space: nowrap;
}
.client-hint::after { content: ""; display: inline-block; width: 2.4rem; height: 1.6rem; margin-left: .3rem; vertical-align: -0.9rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 40' fill='none' stroke='%23EB4B11' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6c18 2 32 10 40 26'/%3E%3Cpath d='M34 28l10 6 3-12'/%3E%3C/svg%3E") no-repeat center / contain; }
@media (max-width: 640px) {
  .client-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .client:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - .5rem); }
  .client-hint { left: auto; right: .5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .client-card { transition: none; }
}
.hero .wrap.client-strip { display: flex; grid-template-columns: none; padding-block: 1.4rem 1.9rem; gap: 1rem 2.5rem; }
.hero .wrap:has(+ .client-strip) { padding-bottom: clamp(2.5rem, 4.5vw, 4rem); }
@media (max-width: 600px) { .hero .wrap.client-strip { gap: .9rem; } }
.legal .updated { font-size: var(--step--1, .9rem); color: var(--ink-soft); margin-top: -1.25rem; }
.legal ul { color: var(--ink-soft); padding-left: 1.2rem; display: grid; gap: .35rem; list-style: disc; }
.legal a { color: var(--violet, #5D42F3); text-decoration: underline; text-underline-offset: .15em; }
