/* =====================================================================
   Nourelhouda Djeridi – site styles · v2 "Botanical glass"
   Frosted-glass panes over a soft watercolour garden of colour, framed
   by fine floral line art.

   SAFE TO CHANGE: values in :root (colours, glass, fonts, radii, spacing).
   Text colours pass WCAG 2.2 AA on cream, blush AND on the glass panes;
   re-check contrast if you change --rose-deep, --rose-ink, --plum,
   --plum-muted, --sage-ink or make --glass more transparent than .45.
   DECORATIVE ONLY (never use for text): --rose, --sage, --blush, --gold
   and the --aura-* colours.
   Previous paper version: /archive/site-v1-paper.css (not shipped).
   ===================================================================== */

/* Bricolage Grotesque (variable, wght 200–800, opsz 12–96) for everything; Great Vibes only for the surname. Self-hosted, Latin subset (covers German). */
@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/bricolage-grotesque.woff2") format("woff2"); font-weight: 200 800; font-stretch: 75% 100%; font-style: normal; font-display: swap; }
@font-face { font-family: "Great Vibes"; src: url("../fonts/great-vibes.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --cream: #FFF8F3;
  --paper: #FFFCFA;
  --blush: #F7E1E4;
  --blush-soft: #FBEFEF;
  --rose: #D98FA0;          /* decoration */
  --rose-deep: #B5546E;     /* button fill (white text 4.7:1) */
  --rose-ink: #9A3F58;      /* links + small rose text (≥5:1 on cream, blush, glass) */
  --sage: #A9B8A0;          /* decoration */
  --sage-soft: #EEF2EA;
  --sage-ink: #56664F;      /* sage text */
  --plum: #4A3540;          /* body text */
  --plum-muted: #6E5662;    /* secondary text */
  --line: rgb(217 143 160 / .28);
  --gold: #E2BA72;
  --todo-bg: #FFF1D6; --todo-ink: #7A4B00; --todo-line: #D9A441;

  /* Atmosphere behind the glass */
  --aura-peach: rgb(246 196 172 / .75);
  --aura-rose: rgb(236 164 184 / .7);
  --aura-sage: rgb(180 202 168 / .72);
  --aura-lilac: rgb(214 188 228 / .7);
  --aura-gold: rgb(242 212 162 / .7);

  /* Glass */
  --glass: rgb(255 253 251 / .52);
  --glass-strong: rgb(255 252 250 / .8);
  --glass-line: rgb(255 255 255 / .75);
  --glass-blur: 18px;
  --glass-sheen: linear-gradient(140deg, rgb(255 255 255 / .6) 0%, rgb(255 255 255 / .14) 42%, rgb(255 255 255 / .32) 100%);
  --glass-shadow: inset 0 1px 0 rgb(255 255 255 / .9), inset 0 -1px 0 rgb(217 143 160 / .12), 0 26px 50px -30px rgb(74 53 64 / .38), 0 2px 8px -4px rgb(74 53 64 / .08);

  --serif: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;   /* display role (name kept for compatibility) */
  --sans: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --script: "Great Vibes", "Segoe Script", cursive;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --r-sm: 10px; --r-md: 20px; --r-lg: 30px; --r-pill: 999px;
  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(80px, 10vw, 140px);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0; background: var(--cream); color: var(--plum);
  font: 400 1.0625rem/1.65 var(--sans); font-optical-sizing: auto;
  hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
/* The garden of colour the glass floats over: fixed, slowly breathing, with fine grain. */
body::before {
  content: ""; position: fixed; inset: -12vmax; z-index: -1; pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .29 0 0 0 0 .21 0 0 0 0 .25 .1 0 0 0 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(40vmax 34vmax at 14% 10%, var(--aura-peach), transparent 70%),
    radial-gradient(46vmax 40vmax at 90% 12%, var(--aura-rose), transparent 70%),
    radial-gradient(38vmax 34vmax at 6% 64%, var(--aura-sage), transparent 70%),
    radial-gradient(42vmax 38vmax at 94% 78%, var(--aura-lilac), transparent 70%),
    radial-gradient(34vmax 30vmax at 52% 108%, var(--aura-gold), transparent 70%),
    var(--cream);
  animation: aura 50s ease-in-out infinite alternate;
}
@keyframes aura { to { transform: translate3d(-2.5%, 2%, 0) scale(1.06); } }
main, .site-footer { overflow-x: hidden; overflow-x: clip; }

img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; letter-spacing: -.025em; line-height: 1.1; margin: 0; color: var(--plum); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; }
a { color: var(--rose-ink); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--plum); }
button { font: inherit; color: inherit; }
abbr[title] { text-decoration: underline dotted 1px; text-underline-offset: .2em; cursor: help; }
:focus-visible { outline: 3px solid var(--plum); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }
::selection { background: var(--blush); }

[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--plum); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); text-decoration: none; }
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Glass recipe (one place) ---------- */
.site-header .header-inner, .proof-card, .about-blocks, .strength, .tl-card, .card, .doc-card, .chip, .contact-card, .legal-inner, .consent, .lightbox, .available, .exp-group-title, .lang-switch, .icon-btn, .btn-secondary, .site-footer {
  background: var(--glass-sheen), var(--glass);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.3);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.3);
  border: 1px solid var(--glass-line);
  box-shadow: var(--glass-shadow);
}
/* Small pieces: lighter shadow */
.chip, .available, .exp-group-title, .lang-switch, .icon-btn, .btn-secondary { box-shadow: inset 0 1px 0 rgb(255 255 255 / .9), 0 6px 16px -10px rgb(74 53 64 / .3); }
/* Panes that carry long text or float over content: more opaque */
.legal-inner, .consent, .lightbox { background: var(--glass-sheen), var(--glass-strong); }

/* TODO placeholders – remove highlight with config.highlightTodos=false */
.todo { font: 500 max(.78em, 12px)/1.35 var(--mono); letter-spacing: 0; background: var(--todo-bg); color: var(--todo-ink); border: 1px dashed var(--todo-line); border-radius: 6px; padding: .08em .45em; -webkit-box-decoration-break: clone; box-decoration-break: clone; font-style: normal; hyphens: manual; }
h1 .todo, h2 .todo, h3 .todo, h4 .todo, .lang-name .todo, .proof-value .todo, .hero-lede .todo { font-size: max(.5em, 13px); vertical-align: .2em; }

/* ---------- Buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 26px; border-radius: var(--r-pill); border: 1px solid transparent; font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease); hyphens: manual; text-align: center; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(180deg, var(--rose-deep), #A4485F); color: #fff; box-shadow: inset 0 1px 0 rgb(255 255 255 / .28), 0 14px 28px -14px rgb(181 84 110 / .75); }
.btn-primary:hover { background: linear-gradient(180deg, #A84C66, #93405A); color: #fff; box-shadow: inset 0 1px 0 rgb(255 255 255 / .25), 0 18px 32px -14px rgb(181 84 110 / .85); }
.btn-secondary { color: var(--rose-ink); border-color: rgb(181 84 110 / .45); }
.btn-secondary:hover { background: var(--glass-sheen), rgb(255 255 255 / .78); color: var(--plum); }
.btn-sm { min-height: 42px; padding: 0 16px; font-size: .9375rem; gap: 8px; }
.btn-ghost { background: transparent; color: var(--rose-ink); padding-inline: 10px; }
.btn-ghost:hover { color: var(--plum); background: rgb(255 255 255 / .55); }
.btn-meta { font-weight: 400; opacity: .85; font-size: .875em; }
.link-btn { background: none; border: 0; padding: 4px 0; color: var(--rose-ink); text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; cursor: pointer; font-size: inherit; }
.link-btn:hover { color: var(--plum); }
@media (max-width: 399px) { .hero-actions .btn { white-space: normal; } }

/* ---------- Header: floating glass bar ---------- */
.site-header { position: sticky; top: 0; z-index: 40; padding: 12px var(--gutter) 0; min-height: 80px; }
.site-header .header-inner { display: flex; align-items: center; gap: 14px; max-width: calc(1180px - 2 * 48px); min-height: 64px; margin-inline: auto; padding: 8px 8px 8px 10px; border-radius: var(--r-pill); transition: box-shadow .4s var(--ease), background-color .4s; }
.site-header.is-scrolled .header-inner { background: var(--glass-sheen), rgb(255 252 250 / .72); box-shadow: inset 0 1px 0 rgb(255 255 255 / .9), 0 18px 40px -22px rgb(74 53 64 / .45); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--plum); margin-right: auto; }
.brand-mark { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgb(217 143 160 / .6); font: 700 .95rem/1 var(--serif); letter-spacing: -.02em; background: radial-gradient(circle at 30% 25%, #fff, rgb(247 225 228 / .7)); box-shadow: inset 0 1px 0 #fff, 0 4px 12px -6px rgb(181 84 110 / .5); }
.brand-name { font: 700 1.1rem/1 var(--serif); letter-spacing: -.02em; display: none; }
.site-nav { display: none; }
.site-nav ul { list-style: none; display: flex; gap: 2px; }
.site-nav a { display: block; padding: 9px 13px; border-radius: var(--r-pill); color: var(--plum); text-decoration: none; font-size: .975rem; transition: background-color .25s; }
.site-nav a:hover { background: rgb(255 255 255 / .65); }
.header-tools { display: flex; align-items: center; gap: 8px; }
.lang-switch { display: inline-flex; align-items: center; border-radius: var(--r-pill); padding: 3px; }
.lang-switch a { display: grid; place-items: center; min-width: 44px; min-height: 38px; padding: 0 8px; border-radius: var(--r-pill); font: 600 .875rem/1 var(--sans); letter-spacing: .06em; color: var(--plum-muted); text-decoration: none; }
.lang-switch a[aria-current="true"] { background: #fff; color: var(--plum); box-shadow: 0 2px 8px -3px rgb(74 53 64 / .25); }
.lang-switch a:hover { color: var(--plum); }
.lang-sep { width: 1px; height: 16px; background: var(--line); }
.header-cv .label-long { display: none; }
@media (min-width: 520px) { .brand-name { display: inline; } .header-cv .label-long { display: inline; } }
@media (min-width: 1040px) { .site-nav { display: block; } }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; margin-top: -80px; padding-block: calc(80px + clamp(28px, 6vw, 80px)) clamp(72px, 9vw, 124px);
  background:
    radial-gradient(55% 45% at 82% 42%, rgb(236 164 184 / .45), transparent 70%),
    radial-gradient(40% 35% at 96% 85%, rgb(214 188 228 / .5), transparent 70%),
    linear-gradient(180deg, #F6D7D1 0%, #F2CCCB 55%, #EFC4C9 100%); }
.hero::before { content: ""; position: absolute; z-index: -1; inset: -10% -10% 0 auto; width: min(980px, 130vw); pointer-events: none;
  background: radial-gradient(34% 30% at 62% 38%, rgb(240 170 188 / .65), transparent 70%), radial-gradient(26% 24% at 40% 72%, rgb(190 208 180 / .6), transparent 70%), radial-gradient(30% 26% at 82% 70%, rgb(226 200 236 / .55), transparent 70%); }
/* Mobile: small arch cameo beside the programme line; .hero-text dissolves into the grid.
   ≥860px: .hero-text becomes one column beside a large arch. */
.hero-grid { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr); grid-template-rows: auto 1fr auto auto auto; grid-template-areas: "media eyebrow" "media tags" "title title" "lede lede" "actions actions"; column-gap: 18px; align-items: start; }
.hero-text { display: contents; }
.hero-media { grid-area: media; align-self: start; position: relative; }
.hero-eyebrow { grid-area: eyebrow; font: 600 .75rem/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--rose-ink); hyphens: manual; padding-top: 8px; }
.hero-tags { grid-area: tags; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 6px; }
.programmes { list-style: none; display: flex; flex-wrap: wrap; align-items: baseline; row-gap: 2px; font: 600 .975rem/1.35 var(--sans); color: var(--plum-muted); }
.programmes li + li::before { content: "·"; color: var(--rose); padding-inline: .45em; font-weight: 700; }
.available { display: inline-block; padding: 6px 14px 6px 12px; border-radius: 18px; color: var(--sage-ink); font: 600 .875rem/1.5 var(--sans); }
.available::before { content: ""; display: inline-block; vertical-align: .06em; margin-right: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--sage-ink); box-shadow: 0 0 0 4px rgb(86 102 79 / .16); }
.hero-title { grid-area: title; margin-top: 28px; font-size: clamp(2.8rem, 1.5rem + 4.8vw, 5.4rem); font-weight: 700; line-height: .95; letter-spacing: -.045em; hyphens: manual; }
.hero-title .n1, .hero-title .n2 { display: block; }
/* Surname in a bold flowing script: Great Vibes, thickened with a fine stroke in the same colour. */
.hero-title .n2 { font-family: var(--script); font-weight: 400; font-size: 1.3em; line-height: .9; letter-spacing: 0; padding-left: .45em; margin-top: .02em; color: var(--rose-ink); -webkit-text-stroke: .022em currentColor; paint-order: stroke fill; }
.hero-lede { grid-area: lede; margin-top: 24px; max-width: 30ch; font: 600 clamp(1.2rem, 1rem + .8vw, 1.6rem)/1.3 var(--serif); letter-spacing: -.015em; color: var(--plum); }
.hero-actions { grid-area: actions; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-actions .btn { flex: 1 1 100%; }
.hero-video-link { flex-basis: 100%; }
@media (min-width: 480px) { .hero-actions .btn { flex: 0 1 auto; } .hero-grid { grid-template-columns: 120px minmax(0, 1fr); } }
@media (min-width: 860px) {
  .hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(280px, .85fr); grid-template-rows: none; grid-template-areas: "text media"; column-gap: clamp(40px, 6vw, 96px); align-items: center; }
  .hero-text { grid-area: text; display: flex; flex-direction: column; align-items: flex-start; }
  .hero-media { width: 100%; max-width: 460px; justify-self: end; }
  .hero-eyebrow { font-size: .8125rem; padding-top: 0; }
  .hero-tags { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 30px; }
  .hero-title { margin-top: 18px; }
  /* A floating glass bubble overlapping the arch – the signature glass moment */
  .hero-media::after { content: ""; position: absolute; z-index: 2; left: -9%; bottom: 9%; width: 30%; aspect-ratio: 1; border-radius: 50%; pointer-events: none;
    background: radial-gradient(circle at 32% 28%, rgb(255 255 255 / .75), rgb(255 255 255 / .12) 55%, rgb(255 255 255 / .3));
    -webkit-backdrop-filter: blur(10px) saturate(1.5); backdrop-filter: blur(10px) saturate(1.5);
    border: 1px solid rgb(255 255 255 / .8); box-shadow: inset 0 1px 1px #fff, 0 20px 40px -20px rgb(74 53 64 / .4);
    animation: float 14s ease-in-out infinite alternate; }
}
@keyframes float { to { transform: translate3d(8px, -14px, 0); } }
/* Phone + tablet placement: availability and name on the left, ND arch on the right,
   then lede → programme label → programmes → buttons. */
@media (max-width: 859px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) clamp(86px, 24vw, 150px); grid-template-rows: auto auto auto auto auto auto; grid-template-areas: "avail media" "title media" "lede lede" "eyebrow eyebrow" "prog prog" "actions actions"; column-gap: 12px; }
  .hero-tags { display: contents; }
  .available { grid-area: avail; justify-self: start; align-self: start; white-space: nowrap; }
  .programmes { grid-area: prog; margin-top: 8px; }
  .hero-title { margin-top: 16px; font-size: clamp(2.4rem, 1.2rem + 5.3vw, 3.8rem); align-self: start; }
  .hero-title .n1 { white-space: nowrap; }
  .hero-eyebrow { margin-top: 26px; padding-top: 0; }
  .hero-lede { margin-top: 22px; }
}

/* Arch frame (monogram or portrait). Inner box matches the arch in floral/arch.svg. Frosted glass window. */
.arch { position: relative; width: 100%; aspect-ratio: 400 / 520; }
.arch-inner { position: absolute; left: 10%; right: 10%; top: 7.7%; bottom: 0; border-radius: 50% 50% 14px 14px / 33.4% 33.4% 14px 14px; overflow: hidden; display: grid; place-items: center; container-type: inline-size;
  background: linear-gradient(165deg, rgb(255 255 255 / .7), rgb(255 255 255 / .18) 48%, rgb(247 225 228 / .42));
  -webkit-backdrop-filter: blur(14px) saturate(1.5); backdrop-filter: blur(14px) saturate(1.5);
  box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px rgb(255 255 255 / .55), inset 0 -40px 60px -40px rgb(181 84 110 / .25), 0 30px 60px -30px rgb(74 53 64 / .35); }
.arch-inner::before { content: ""; position: absolute; inset: 4% 9% auto; height: 42%; border-radius: 50% 50% 0 0 / 70% 70% 0 0; border-top: 1.5px solid rgb(255 255 255 / .85); pointer-events: none; }
.arch-inner img { width: 100%; height: 100%; object-fit: cover; }
.arch-frame { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.monogram { font: 700 30cqi/1 var(--serif); letter-spacing: -.04em; color: var(--plum); text-shadow: 0 1px 0 rgb(255 255 255 / .9), 0 18px 30px rgb(181 84 110 / .18); }

/* Petals – slow drift; hidden with reduced motion */
.petals { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.petal { position: absolute; top: -40px; width: 12px; opacity: 0; animation: drift 30s linear infinite; filter: drop-shadow(0 2px 3px rgb(147 64 90 / .25)); }
.petal:nth-child(1) { left: 4%; width: 12px; animation-delay: 0s; animation-duration: 28s; }
.petal:nth-child(2) { left: 12%; width: 9px; animation-delay: -9s; animation-duration: 33s; }
.petal:nth-child(3) { left: 19%; width: 14px; animation-delay: -3s; animation-duration: 26s; }
.petal:nth-child(4) { left: 27%; width: 10px; animation-delay: -15s; animation-duration: 31s; }
.petal:nth-child(5) { left: 34%; width: 8px; animation-delay: -6s; animation-duration: 36s; }
.petal:nth-child(6) { left: 42%; width: 12px; animation-delay: -19s; animation-duration: 29s; }
.petal:nth-child(7) { left: 50%; width: 9px; animation-delay: -2s; animation-duration: 34s; }
.petal:nth-child(8) { left: 57%; width: 13px; animation-delay: -12s; animation-duration: 27s; }
.petal:nth-child(9) { left: 63%; width: 10px; animation-delay: -22s; animation-duration: 32s; }
.petal:nth-child(10) { left: 69%; width: 15px; animation-delay: -5s; animation-duration: 25s; }
.petal:nth-child(11) { left: 75%; width: 9px; animation-delay: -17s; animation-duration: 35s; }
.petal:nth-child(12) { left: 81%; width: 12px; animation-delay: -8s; animation-duration: 30s; }
.petal:nth-child(13) { left: 86%; width: 11px; animation-delay: -25s; animation-duration: 28s; }
.petal:nth-child(14) { left: 91%; width: 14px; animation-delay: -13s; animation-duration: 33s; }
.petal:nth-child(15) { left: 95%; width: 9px; animation-delay: -1s; animation-duration: 37s; }
.petal:nth-child(17) { left: 8%; width: 10px; animation-delay: -27s; animation-duration: 31s; }
.petal:nth-child(18) { left: 38%; width: 13px; animation-delay: -11s; animation-duration: 27s; }
.petal:nth-child(19) { left: 66%; width: 9px; animation-delay: -29s; animation-duration: 34s; }
.petal:nth-child(20) { left: 88%; width: 11px; animation-delay: -4s; animation-duration: 30s; }
.petal:nth-child(21) { left: 23%; width: 11px; animation-delay: -16s; animation-duration: 32s; }
.petal:nth-child(22) { left: 47%; width: 10px; animation-delay: -24s; animation-duration: 28s; }
.petal:nth-child(23) { left: 78%; width: 13px; animation-delay: -10s; animation-duration: 35s; }
.petal:nth-child(16) { left: 99%; width: 12px; animation-delay: -20s; animation-duration: 29s; }
.petal:nth-child(3n) { animation-name: drift-b; }
.petal:nth-child(4n+1) { animation-name: drift-c; }
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0; }
  8% { opacity: .9; }
  50% { transform: translate3d(-40px, 420px, 0) rotate(160deg); }
  88% { opacity: .75; }
  100% { transform: translate3d(-90px, 900px, 0) rotate(320deg); opacity: 0; }
}
@keyframes drift-b {
  0% { transform: translate3d(0, 0, 0) rotate(20deg) scaleX(.8); opacity: 0; }
  10% { opacity: .85; }
  45% { transform: translate3d(36px, 380px, 0) rotate(-90deg) scaleX(1); }
  90% { opacity: .7; }
  100% { transform: translate3d(70px, 900px, 0) rotate(-220deg) scaleX(.8); opacity: 0; }
}
@keyframes drift-c {
  0% { transform: translate3d(0, 0, 0) rotate(-30deg); opacity: 0; }
  10% { opacity: .85; }
  35% { transform: translate3d(-24px, 300px, 0) rotate(60deg); }
  70% { transform: translate3d(20px, 620px, 0) rotate(170deg); }
  92% { opacity: .7; }
  100% { transform: translate3d(-10px, 900px, 0) rotate(260deg); opacity: 0; }
}


/* ---------- Proof strip ---------- */
.proof { position: relative; margin-top: calc(-1 * clamp(44px, 5vw, 68px)); z-index: 2; }
.proof-card { border-radius: var(--r-lg); padding: clamp(24px, 3vw, 36px) clamp(22px, 3vw, 34px); }
.proof-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; }
.proof-list li { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "icon value" "label label"; align-items: center; align-content: start; gap: 10px 14px; min-width: 0; }
.proof-icon { grid-area: icon; }
.proof-value { grid-area: value; }
.proof-label { grid-area: label; }
.proof-list li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.proof-value { font: 700 clamp(1.8rem, 1.3rem + 1.5vw, 2.4rem)/1 var(--serif); color: var(--plum); letter-spacing: -.04em; min-height: 1em; }
.proof-label { font-size: .9375rem; line-height: 1.35; color: var(--plum-muted); }
@media (min-width: 720px) { .proof-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } .proof-list li:last-child:nth-child(odd) { grid-column: auto; } }
@media (min-width: 1040px) { .proof-list { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; } .proof-list li { padding-inline: 24px; border-left: 1px solid rgb(255 255 255 / .8); box-shadow: -1px 0 0 rgb(217 143 160 / .18); } .proof-list li:first-child { border-left: 0; box-shadow: none; padding-left: 6px; } }

/* ---------- Sections ---------- */
.section { position: relative; isolation: isolate; padding-block: var(--section) 0; }
.section::before { content: ""; position: absolute; z-index: -1; width: min(760px, 110vw); aspect-ratio: 1; pointer-events: none; border-radius: 50%; }
/* Colour pools sit behind the glass cards, below the headings (keeps heading contrast). */
#about::before { right: -18%; top: 18%; background: radial-gradient(closest-side, var(--aura-rose), transparent); }
#strengths::before { right: -14%; top: 34%; background: radial-gradient(closest-side, var(--aura-sage), transparent); }
#experience::before { left: -22%; top: 34%; background: radial-gradient(closest-side, var(--aura-peach), transparent); }
#languages::before { right: -18%; top: 10%; background: radial-gradient(closest-side, var(--aura-lilac), transparent); }
#documents::before { left: -16%; top: 36%; background: radial-gradient(closest-side, var(--aura-rose), transparent); }
#contact::before { left: 50%; top: 12%; transform: translateX(-50%); width: min(980px, 120vw); background: radial-gradient(closest-side, var(--aura-lilac), transparent); }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(32px, 4vw, 54px); max-width: 780px; }
.kicker { display: inline-flex; align-items: center; gap: 12px; font: 600 .8125rem/1.3 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--rose-ink); hyphens: manual; }
.kicker::before { content: ""; width: 30px; height: 1px; background: linear-gradient(90deg, transparent, var(--rose)); }
.section-title { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3.1rem); letter-spacing: -.035em; }
.section-intro { color: var(--plum-muted); font-size: 1.0625rem; max-width: 60ch; }
.divider { display: block; width: min(300px, 70%); margin: var(--section) auto 0; }
.corner { position: absolute; width: clamp(130px, 16vw, 230px); pointer-events: none; z-index: 0; display: none; }
.corner-tr { transform: scaleX(-1); }
.corner-br { transform: scale(-1, -1); }
.corner-bl { transform: scaleY(-1); }
.section > .corner-tr { top: 28px; right: 0; }
.contact-card .corner-tl { top: 0; left: 0; }
.contact-card .corner-br { bottom: 0; right: 0; }
@media (min-width: 1100px) { .section > .corner, .legal > .corner { display: block; } }
@media (min-width: 720px) { .contact-card .corner { display: block; } }
.draft { display: grid; gap: 8px; justify-items: start; padding: 14px 16px; border: 1px dashed var(--todo-line); border-radius: var(--r-md); background: rgb(255 243 220 / .7); max-width: 460px; }
.draft-badge { font: 600 .75rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--todo-ink); }
.draft p { font-size: .9375rem; color: var(--plum-muted); line-height: 1.5; }

/* About: one tall glass pane holding the three paragraphs */
.about-grid { display: grid; gap: clamp(32px, 5vw, 72px); }
.about-aside { display: grid; gap: 24px; align-content: start; }
.about-blocks { display: grid; border-radius: var(--r-lg); padding: clamp(8px, 2vw, 16px) clamp(24px, 4vw, 48px); }
.about-block { padding-block: clamp(22px, 3vw, 34px); }
.about-block + .about-block { border-top: 1px solid rgb(217 143 160 / .25); box-shadow: inset 0 1px 0 rgb(255 255 255 / .7); }
.about-block h3 { font-size: clamp(1.25rem, 1.1rem + .5vw, 1.5rem); margin-bottom: 10px; }
.about-block h3 .num { font-weight: 500; color: var(--rose-ink); margin-right: .35em; }
.about-block p { max-width: 62ch; }
@media (min-width: 960px) { .about-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); } .about-aside { position: sticky; top: 110px; } .about-grid .section-head { margin-bottom: 0; } }

/* Video */
.video { display: grid; gap: 12px; margin: 0; }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-md); overflow: hidden; background: var(--blush); border: 1px solid var(--glass-line); box-shadow: var(--glass-shadow); }
.video-frame video { width: 100%; height: 100%; object-fit: cover; background: var(--plum); }
.video-play { position: absolute; inset: 0; display: grid; place-items: center; border: 0; padding: 0; cursor: pointer; background: transparent; }
.video-play-disc { position: relative; display: grid; place-items: center; width: 88px; height: 88px; border-radius: 50%; background: radial-gradient(circle at 32% 28%, rgb(255 255 255 / .95), rgb(255 255 255 / .55)); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid #fff; box-shadow: 0 14px 34px -10px rgb(74 53 64 / .45); transition: transform .3s var(--ease); }
.video-play-disc svg { width: 30px; height: 30px; margin-left: 5px; fill: var(--rose-deep); }
.video-play:hover .video-play-disc { transform: scale(1.06); }
.video-play:focus-visible { outline-offset: -6px; border-radius: var(--r-md); }
.video-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; font-size: .9375rem; color: var(--plum-muted); }
.video-meta strong { font: 700 1.15rem/1.2 var(--serif); color: var(--plum); }
.transcript { border-top: 1px solid var(--line); padding-top: 8px; }
.transcript summary { cursor: pointer; color: var(--rose-ink); font-weight: 600; padding: 6px 0; }
.transcript p { margin-top: 8px; font-size: .9375rem; }

/* Strengths */
.strengths-grid { list-style: none; display: grid; gap: 20px; position: relative; z-index: 1; }
.strength { border-radius: var(--r-lg); padding: clamp(26px, 3vw, 36px); display: grid; gap: 12px; align-content: start; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.strength:hover { transform: translateY(-4px); }
.strength h3 { font-size: clamp(1.3rem, 1.1rem + .6vw, 1.6rem); }
.strength-ex { margin-top: 6px; padding-top: 16px; border-top: 1px solid rgb(217 143 160 / .25); display: grid; gap: 8px; }
.strength-ex-label { font: 600 .75rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--sage-ink); }
.bullets { list-style: none; display: grid; gap: 8px; }
.bullets li { position: relative; padding-left: 20px; font-size: .975rem; }
.bullets li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; background: var(--rose); transform: rotate(45deg); border-radius: 1px; }
.strength-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.strength-icon, .proof-icon { display: grid; place-items: center; flex: none; color: #fff; background: linear-gradient(150deg, #C4647D 0%, #93405A 100%); box-shadow: inset 0 1px 0 rgb(255 255 255 / .35), inset 0 -2px 6px rgb(74 53 64 / .18), 0 12px 22px -12px rgb(147 64 90 / .75); }

.strength-icon { width: 64px; height: 64px; border-radius: 20px; }
.strength-icon svg { width: 34px; height: 34px; }
.proof-icon { width: 46px; height: 46px; border-radius: 15px; }
.proof-icon svg { width: 26px; height: 26px; }
@media (min-width: 960px) { .strengths-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Experience timeline: glass cards on a fine rose thread */
.exp-groups { display: grid; gap: clamp(44px, 5vw, 68px); }
.exp-group-title { display: inline-flex; align-items: center; gap: 10px; font: 600 .8125rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--sage-ink); padding: 10px 16px; border-radius: var(--r-pill); margin-bottom: 26px; hyphens: manual; white-space: nowrap; }
.timeline { list-style: none; position: relative; display: grid; gap: 20px; padding-left: 30px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 22px; bottom: 22px; width: 1px; background: linear-gradient(var(--rose), rgb(217 143 160 / .1)); }
.tl-item { position: relative; display: grid; gap: 8px; }
.tl-item::before { content: ""; position: absolute; left: -30px; top: 1.5em; width: 13px; height: 13px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, var(--blush)); border: 1.5px solid var(--rose-deep); box-shadow: 0 0 0 5px rgb(255 255 255 / .6); }
.tl-period { font: 600 .8125rem/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--plum-muted); }
.tl-card { display: grid; gap: 6px; border-radius: var(--r-md); padding: clamp(18px, 2.4vw, 26px); }
.tl-role { font-size: clamp(1.2rem, 1.05rem + .5vw, 1.45rem); }
.tl-org { color: var(--plum-muted); }
.tl-card .bullets { margin-top: 6px; }
.tl-doc { justify-self: start; margin-top: 6px; margin-left: -10px; }
@media (min-width: 860px) {
  .timeline { padding-left: 0; }
  .timeline::before { left: 206px; }
  .tl-item { grid-template-columns: 180px minmax(0, 1fr); column-gap: 56px; align-items: start; }
  .tl-item::before { left: 200px; }
  .tl-period { text-align: right; padding-top: 1.45em; }
}

/* Languages + education */
.duo { display: grid; gap: 22px; }
.card { border-radius: var(--r-lg); padding: clamp(26px, 3.4vw, 42px); position: relative; overflow: hidden; }
.card .section-head { margin-bottom: 26px; }
.card .section-title { font-size: clamp(1.7rem, 1.3rem + 1.3vw, 2.3rem); }
.lang-list { list-style: none; display: grid; gap: 20px; }
.lang-item { display: grid; gap: 8px; }
.lang-item + .lang-item { padding-top: 20px; border-top: 1px solid rgb(217 143 160 / .2); }
.lang-row { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: space-between; }
.lang-name { font: 700 1.2rem/1.2 var(--serif); letter-spacing: -.02em; }
.cefr { display: flex; gap: 4px; }
.cefr span { display: grid; place-items: center; min-width: 34px; height: 28px; padding: 0 4px; border-radius: 9px; border: 1px solid rgb(255 255 255 / .9); font: 600 .75rem/1 var(--sans); color: var(--plum-muted); background: rgb(255 255 255 / .55); }
.cefr span.on { background: linear-gradient(180deg, var(--rose-deep), #A4485F); border-color: transparent; color: #fff; }
.cefr-native { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: var(--r-pill); background: rgb(238 242 234 / .85); border: 1px solid #fff; color: var(--sage-ink); font: 600 .8125rem/1 var(--sans); hyphens: manual; white-space: nowrap; }
.lang-note { font-size: .9375rem; color: var(--plum-muted); }
.scale-note { margin-top: 24px; font-size: .875rem; color: var(--plum-muted); }
.edu-list { list-style: none; display: grid; gap: 18px; }
.edu-item { display: grid; gap: 4px; }
.edu-item h3 { font-size: 1.25rem; }
.edu-meta { color: var(--plum-muted); }
.edu-sub { margin: 28px 0 12px; font: 600 .8125rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--sage-ink); }
@media (min-width: 960px) { .duo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px; } }

/* Documents */
.doc-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 17px; border-radius: var(--r-pill); cursor: pointer; font: 600 .9375rem/1 var(--sans); color: var(--plum); hyphens: manual; white-space: nowrap; transition: background-color .25s, color .25s; }
.chip:hover { background: var(--glass-sheen), rgb(255 255 255 / .8); }
.chip[aria-pressed="true"] { background: var(--plum); border-color: var(--plum); color: #fff; box-shadow: 0 10px 20px -12px rgb(74 53 64 / .7); }
.chip-count { font-weight: 400; opacity: .8; font-size: .8125rem; }
.doc-grid { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.doc-card { width: 100%; height: 100%; display: grid; grid-template-rows: auto 1fr; gap: 12px; text-align: left; padding: 10px 10px 16px; border-radius: var(--r-md); cursor: pointer; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.doc-card:hover { transform: translateY(-4px); box-shadow: inset 0 1px 0 #fff, 0 30px 50px -28px rgb(74 53 64 / .5); }
.doc-thumb { position: relative; aspect-ratio: 3 / 4; border-radius: 13px; overflow: hidden; background: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .8), 0 1px 3px rgb(74 53 64 / .08); }
.doc-thumb img { width: 100%; height: 100%; object-fit: contain; }
.doc-thumb .doc-badge { position: absolute; right: 8px; bottom: 8px; width: 46px; height: 46px; border-radius: 50%; background: #fff; box-shadow: 0 6px 14px -6px rgb(74 53 64 / .45); }
.badge-row { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; }
.badge-btn { display: grid; justify-items: center; gap: 8px; width: 132px; padding: 8px 6px; border-radius: var(--r-md); border: 0; background: none; cursor: pointer; text-align: center; font: 600 .8125rem/1.3 var(--sans); color: var(--plum); transition: transform .3s var(--ease), background-color .3s; }
.badge-btn:hover { transform: translateY(-2px); }
.badge-btn img { width: 72px; height: 72px; filter: drop-shadow(0 6px 10px rgb(74 53 64 / .18)); }
.doc-body { display: grid; gap: 4px; align-content: start; padding-inline: 4px; }
.doc-cat { font: 600 .6875rem/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--rose-ink); hyphens: manual; }
.doc-title { font: 600 1rem/1.3 var(--sans); color: var(--plum); }
.doc-meta { font-size: .875rem; color: var(--plum-muted); line-height: 1.35; }
.doc-more { margin-top: 28px; display: flex; justify-content: center; }
.doc-empty { color: var(--plum-muted); padding: 24px 0; }
@media (min-width: 720px) { .doc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1040px) { .doc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Lightbox */
.lightbox { width: min(1040px, calc(100vw - 24px)); max-width: none; height: min(880px, calc(100dvh - 24px)); max-height: none; padding: 0; border-radius: var(--r-lg); color: var(--plum); overflow: hidden; }
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.lightbox::backdrop { background: rgb(74 53 64 / .42); -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2); }
.lb-head { display: flex; align-items: flex-start; gap: 16px; padding: 18px 18px 14px 26px; border-bottom: 1px solid rgb(217 143 160 / .22); }
.lb-titles { display: grid; gap: 4px; margin-right: auto; min-width: 0; }
.lb-counter { font: 600 .75rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--rose-ink); }
.lb-title { font-size: clamp(1.2rem, 1rem + .8vw, 1.55rem); }
.lb-meta { font-size: .9375rem; color: var(--plum-muted); }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; cursor: pointer; color: var(--plum); }
.icon-btn:hover { background: #fff; }
.icon-btn svg { width: 18px; height: 18px; }
.lb-body { position: relative; margin: 0 14px; border-radius: 16px; overflow: hidden; background: rgb(255 255 255 / .6); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .9); min-height: 0; }
.lb-body iframe, .lb-body > img { width: 100%; height: 100%; border: 0; object-fit: contain; background: #fff; }
.lb-fallback { height: 100%; display: grid; place-items: center; align-content: center; gap: 16px; padding: 24px; text-align: center; }
.lb-fallback img { width: min(240px, 60%); border-radius: 12px; box-shadow: 0 20px 40px -24px rgb(74 53 64 / .5); }
.lb-fallback p { color: var(--plum-muted); }
.lb-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 18px; }
.lb-foot .spacer { flex: 1 1 auto; }
@media (max-width: 599px) { .lb-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } .lb-head { padding-left: 18px; } .lb-body { margin: 0 10px; } }

/* Contact */
.contact { padding-bottom: var(--section); }
.contact-card { position: relative; overflow: hidden; text-align: center; border-radius: calc(var(--r-lg) + 8px); padding: clamp(24px, 3vw, 40px) clamp(22px, 5vw, 64px) clamp(32px, 4vw, 52px); }
.contact-card > * { position: relative; z-index: 1; }
.contact-card .corner { z-index: 0; position: absolute; }
.wreath { position: relative; width: 112px; margin: 0 auto 10px; }
.wreath::before { content: ""; position: absolute; inset: 18%; border-radius: 50%; background: radial-gradient(circle at 32% 28%, #fff, rgb(247 225 228 / .6)); box-shadow: inset 0 1px 0 #fff, 0 16px 30px -16px rgb(181 84 110 / .5); }
.wreath img { position: relative; width: 100%; height: auto; }
.wreath span { position: absolute; inset: 0; display: grid; place-items: center; font: 700 1.4rem/1 var(--serif); letter-spacing: -.04em; }
.contact-card .kicker { justify-content: center; }
.contact-card .kicker::after { content: ""; width: 30px; height: 1px; background: linear-gradient(90deg, var(--rose), transparent); }
.contact-title { margin-top: 4px; font-size: clamp(1.8rem, 1.25rem + 1.9vw, 2.7rem); }
.contact-text { margin: 10px auto 0; max-width: 46ch; color: var(--plum-muted); }
.contact-email { margin-top: 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.contact-address { font-size: .9375rem; color: var(--plum-muted); }
.contact-cv { margin-top: 20px; padding-top: 18px; border-top: 1px solid rgb(217 143 160 / .25); display: grid; justify-items: center; gap: 12px; max-width: 520px; margin-inline: auto; }
.contact-cv-label { font: 600 .8125rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--sage-ink); }
.contact-cv-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* Footer: a low glass band */
.site-footer { border-width: 1px 0 0; border-radius: 0; padding-block: 44px 32px; font-size: .9375rem; color: var(--plum-muted); box-shadow: inset 0 1px 0 #fff; }
.footer-grid { display: grid; gap: 26px; }
.footer-brand { display: grid; gap: 8px; }
.footer-brand strong { font: 700 1.35rem/1 var(--serif); letter-spacing: -.02em; color: var(--plum); }
.footer-links { list-style: none; display: grid; gap: 10px; }
.footer-links li { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.footer-links a, .footer-links .link-btn { color: var(--plum); font-size: .9375rem; }
.footer-links a:hover, .footer-links .link-btn:hover { color: var(--rose-ink); }
.footer-links .other { color: var(--plum-muted); }
.footer-tools { display: grid; gap: 14px; justify-items: start; }
.footer-bottom { margin-top: 28px; padding-top: 20px; border-top: 1px solid rgb(217 143 160 / .22); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.3fr 1fr auto; align-items: start; } }

/* Legal pages: one sheet of frosted glass */
.legal { position: relative; isolation: isolate; padding-block: clamp(28px, 5vw, 64px) var(--section); }
.legal::before { content: ""; position: absolute; z-index: -1; right: -10%; top: 0; width: min(760px, 110vw); aspect-ratio: 1; background: radial-gradient(closest-side, var(--aura-rose), transparent); pointer-events: none; }
.legal .corner-tr { top: 0; right: 0; }
.legal-inner { position: relative; z-index: 1; max-width: 820px; border-radius: var(--r-lg); padding: clamp(26px, 5vw, 60px); }
.legal-back { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.legal-back svg { width: 16px; height: 16px; }
.legal h1 { margin-top: 26px; font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.3rem); }
.legal-updated { margin-top: 10px; color: var(--plum-muted); font-size: .9375rem; }
.legal-note { margin-top: 24px; padding: 16px 18px; border-radius: var(--r-md); background: rgb(238 242 234 / .85); border: 1px solid #fff; color: var(--plum); font-size: .975rem; }
.legal-section { margin-top: 40px; display: grid; gap: 12px; }
.legal-section h2 { font-size: clamp(1.3rem, 1.1rem + .6vw, 1.6rem); }
.legal-section .bullets { margin-block: 2px; }
.legal-lines { font-style: normal; line-height: 1.6; }

/* No-JS + loading */
.noscript { margin: 40px auto; max-width: 560px; padding: 24px; border-radius: var(--r-md); background: var(--paper); border: 1px solid var(--line); text-align: center; }
.boot { min-height: 70vh; display: grid; place-items: center; }
.boot img { width: 160px; opacity: .8; }

/* ---------- Consent banner (states: default / settings / saved) ---------- */
.consent { position: fixed; z-index: 60; left: 12px; right: 12px; bottom: 12px; max-width: 460px; margin-left: auto; color: var(--plum); border-radius: 26px; padding: 24px 22px 18px; box-shadow: inset 0 1px 0 #fff, 0 30px 70px -24px rgb(74 53 64 / .5); }
.consent-sprig { position: absolute; top: -34px; right: 30px; width: 34px; transform: rotate(14deg); pointer-events: none; }
.consent-title { font-size: 1.3rem; margin-right: 44px; }
.consent-text { margin-top: 8px; font-size: .9375rem; line-height: 1.5; color: var(--plum-muted); }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.consent-actions .btn { min-height: 46px; padding: 0 12px; font-size: .9375rem; white-space: normal; background: linear-gradient(180deg, var(--rose-deep), #A4485F); color: #fff; box-shadow: inset 0 1px 0 rgb(255 255 255 / .28), 0 10px 22px -14px rgb(181 84 110 / .75); }
.consent-actions .btn:hover { background: linear-gradient(180deg, #A84C66, #93405A); }
.consent-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin-top: 12px; font-size: .9375rem; }
.consent-links .link-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; }
.consent-links .link-btn svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.consent-links .link-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.consent-close { position: absolute; top: 12px; right: 12px; }
.consent-panel { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgb(217 143 160 / .25); display: grid; gap: 12px; }
.consent-cat { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: center; padding: 12px 14px; border-radius: 16px; background: rgb(255 255 255 / .6); border: 1px solid #fff; }
.consent-cat-title { font-weight: 600; }
.consent-cat-desc { grid-column: 1 / -1; font-size: .875rem; line-height: 1.45; color: var(--plum-muted); }
.consent-always { font-size: .8125rem; font-weight: 600; color: var(--sage-ink); }
.switch { appearance: none; -webkit-appearance: none; margin: 0; width: 46px; height: 28px; border-radius: 999px; background: #E3D2D5; position: relative; cursor: pointer; transition: background-color .25s; flex: none; box-shadow: inset 0 1px 3px rgb(74 53 64 / .2); }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(74 53 64 / .3); transition: transform .25s var(--ease); }
.switch:checked { background: var(--rose-deep); }
.switch:checked::after { transform: translateX(18px); }
.consent-save { width: 100%; }
.consent-saved { display: flex; align-items: center; gap: 12px; font-size: .975rem; }
.consent-saved svg { width: 28px; height: 28px; flex: none; color: var(--sage-ink); }
@media (min-width: 640px) { .consent { left: auto; right: 24px; bottom: 24px; } }

/* ---------- Section bands ----------
   Two tones only, alternating: light-pink gradient ↔ rose gradient.
   Each section is a rounded "sheet" that slides over the previous one, with soft colour orbs
   floating behind the glass so the frosting is actually visible.
   Light: about, experience, documents, footer · Rose: strengths, languages, contact.
   Light bands use clear (white) glass; rose bands use smoked (plum-tinted) glass with light text.
   SAFE TO CHANGE: --sheet-r, the --band-* gradients, orb colours. On rose bands the text colours
   are re-mapped through the --plum / --plum-muted / --rose-ink / --sage-ink variables (AA checked
   against --glass-dark; keep its tint at ≥ .4 if you change it). */
:root {
  --sheet-r: clamp(28px, 5vw, 64px);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .29 0 0 0 0 .21 0 0 0 0 .25 .1 0 0 0 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --band-light: linear-gradient(180deg, #FCEEF0 0%, #F5D8DE 100%);
  --band-rose: radial-gradient(120% 70% at 50% 0%, rgb(255 255 255 / .1), transparent 60%), linear-gradient(165deg, #AC4F68 0%, #93405A 100%);
  --glass-dark: linear-gradient(140deg, rgb(255 255 255 / .14) 0%, rgb(255 255 255 / 0) 32%), rgb(60 38 50 / .42);
}
main > .divider { display: none; }
#about, #strengths, #experience, #languages, #documents, #contact {
  margin-top: calc(-1 * var(--sheet-r));
  padding-block: calc(var(--section) * .85) calc(var(--section) * .85 + var(--sheet-r));
  border-radius: var(--sheet-r) var(--sheet-r) 0 0;
  overflow: hidden; overflow: clip;
  box-shadow: 0 -24px 48px -36px rgb(74 53 64 / .35);
}
.proof { margin-bottom: -76px; }
#about { margin-top: 0; padding-top: calc(var(--section) * .85 + 76px); }

/* Floating colour orbs (shared) */
#about::before, #about::after, #strengths::before, #strengths::after, #experience::before, #experience::after,
#languages::before, #languages::after, #documents::before, #documents::after, #contact::before, #contact::after {
  content: ""; position: absolute; z-index: -1; aspect-ratio: 1; border-radius: 50%; pointer-events: none; transform: none;
  animation: orb 28s ease-in-out infinite alternate;
}
:is(#about, #strengths, #experience, #languages, #documents, #contact)::after { animation-duration: 34s; animation-direction: alternate-reverse; }
@keyframes orb { to { transform: translate3d(6%, -5%, 0) scale(1.12); } }

/* Light-pink bands: clear glass */
#about, #experience, #documents { background: var(--grain), var(--band-light); --glass: rgb(255 253 251 / .58); }
#about::before { width: min(620px, 95vw); right: -4%; top: 20%; left: auto; bottom: auto; background: radial-gradient(closest-side, rgb(226 120 150 / .5), transparent); }
#about::after { width: min(460px, 75vw); left: 34%; bottom: 2%; right: auto; top: auto; background: radial-gradient(closest-side, rgb(196 160 222 / .45), transparent); }
#experience::before { width: min(600px, 95vw); left: 22%; top: 26%; right: auto; bottom: auto; background: radial-gradient(closest-side, rgb(244 170 140 / .45), transparent); }
#experience::after { width: min(480px, 80vw); right: 2%; bottom: 6%; left: auto; top: auto; background: radial-gradient(closest-side, rgb(226 120 150 / .45), transparent); }
#documents::before { width: min(620px, 95vw); left: -6%; top: 30%; right: auto; bottom: auto; background: radial-gradient(closest-side, rgb(196 160 222 / .5), transparent); }
#documents::after { width: min(520px, 85vw); right: 6%; top: 46%; left: auto; bottom: auto; background: radial-gradient(closest-side, rgb(226 120 150 / .45), transparent); }

/* Rose bands: smoked glass, light text (colours re-mapped through the variables) */
#strengths, #languages, #contact {
  background: var(--grain), var(--band-rose); color: #FFF8F3; box-shadow: 0 -24px 48px -32px rgb(74 53 64 / .5);
  --plum: #FFF8F3; --plum-muted: #F3DCE3; --rose-ink: #FFD6E0; --sage-ink: #E6EFDF; --line: rgb(255 255 255 / .22);
}
#strengths::before, #languages::before, #contact::before { width: min(640px, 100vw); right: -4%; top: 12%; left: auto; bottom: auto; background: radial-gradient(closest-side, rgb(222 110 145 / .75), transparent); }
#strengths::after, #languages::after, #contact::after { width: min(760px, 110vw); left: -12%; bottom: -18%; right: auto; top: auto; background: radial-gradient(closest-side, rgb(60 30 45 / .45), transparent); }
#languages::before { right: auto; left: 30%; top: 4%; }
#contact::before { right: auto; left: 50%; top: 8%; margin-left: -320px; }
:is(#strengths, #languages, #contact) :focus-visible { outline-color: #fff; }
:is(#strengths, #languages, #contact) :is(.strength, .card, .contact-card) {
  background: var(--glass-dark); color: var(--plum);
  -webkit-backdrop-filter: blur(22px) saturate(1.4); backdrop-filter: blur(22px) saturate(1.4);
  border: 1px solid rgb(255 255 255 / .26);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .3), 0 30px 60px -30px rgb(40 15 25 / .65);
}
:is(#strengths, #languages, #contact) :is(.strength-ex, .lang-item + .lang-item, .contact-cv) { border-top-color: rgb(255 255 255 / .16); }
:is(#strengths, #languages, #contact) .bullets li::before { background: #F2A9BC; }
:is(#strengths, #languages, #contact) .strength-icon { color: var(--rose-deep); background: linear-gradient(150deg, #FFFFFF, #F7E1E4); box-shadow: inset 0 -2px 6px rgb(181 84 110 / .15), 0 14px 26px -12px rgb(30 10 20 / .6); }
:is(#strengths, #languages, #contact) .cefr span { background: rgb(255 255 255 / .1); border-color: rgb(255 255 255 / .28); }
:is(#strengths, #languages, #contact) .cefr span.on { background: #FFF8F3; border-color: #FFF8F3; color: #4A3540; }
:is(#strengths, #languages, #contact) .cefr-native { background: rgb(255 255 255 / .12); border-color: rgb(255 255 255 / .3); }
:is(#strengths, #languages, #contact) .badge-btn:hover { background: rgb(255 255 255 / .08); }
:is(#strengths, #languages, #contact) .btn-primary { background: #FFF8F3; color: #4A3540; box-shadow: 0 14px 28px -14px rgb(30 10 20 / .6); }
:is(#strengths, #languages, #contact) .btn-primary:hover { background: #fff; color: #4A3540; }
:is(#strengths, #languages, #contact) .btn-secondary { background: rgb(255 255 255 / .1); border-color: rgb(255 255 255 / .5); color: #FFF8F3; box-shadow: none; }
:is(#strengths, #languages, #contact) .btn-secondary:hover { background: rgb(255 255 255 / .2); color: #fff; }
:is(#strengths, #languages, #contact) .btn-ghost:hover { background: rgb(255 255 255 / .1); color: #fff; }
:is(#strengths, #languages, #contact) .wreath::before { background: radial-gradient(circle at 32% 28%, rgb(255 255 255 / .35), rgb(255 255 255 / .06)); border: 1px solid rgb(255 255 255 / .35); box-shadow: none; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :is(#strengths, #languages, #contact) :is(.strength, .card, .contact-card) { background: #7A3A4F; }
}
@media (prefers-reduced-transparency: reduce) {
  :is(#strengths, #languages, #contact) :is(.strength, .card, .contact-card) { background: #7A3A4F; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* Contact: live rose gradient (slow drift; frozen with reduced motion) */
#contact { background: var(--grain), radial-gradient(120% 70% at 50% 0%, rgb(255 255 255 / .1), transparent 60%), linear-gradient(120deg, #93405A 0%, #B5546E 25%, #9E4560 50%, #C0607A 75%, #93405A 100%); background-size: auto, 100% 100%, 300% 300%; animation: live-rose 16s ease-in-out infinite alternate; }
@keyframes live-rose { 0% { background-position: 0 0, 0 0, 0% 50%; } 100% { background-position: 0 0, 0 0, 100% 50%; } }

/* Footer: light-pink sheet over the rose contact band */
body > .site-footer { position: relative; margin-top: calc(-1 * var(--sheet-r)); border-radius: var(--sheet-r) var(--sheet-r) 0 0; padding-top: calc(44px + var(--sheet-r) * .4);
  background: var(--band-light); -webkit-backdrop-filter: none; backdrop-filter: none; border: 0; box-shadow: 0 -24px 48px -36px rgb(74 53 64 / .4); }
.site-footer .footer-bottom { border-top-color: rgb(181 84 110 / .2); }

/* ---------- Motion ---------- */
.motion .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.motion .reveal.is-visible { opacity: 1; transform: none; }
.motion .strengths-grid .reveal:nth-child(2), .motion .doc-grid li:nth-child(2) .reveal { transition-delay: .08s; }
.motion .strengths-grid .reveal:nth-child(3) { transition-delay: .16s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .petals { display: none; }
  .motion .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- Phones & touch screens: smooth scrolling ----------
   Live blur (backdrop-filter) is recomputed on every frame for every pane that has moving colour
   behind it. Desktops cope; phone GPUs do not (scroll lag, blank areas while tiles catch up).
   On phones/tablets:
   - content panes keep the glass look (sheen, tint, light edge) but without live blur, with a little
     more tint; only the header bar, cookie banner and document viewer keep real blur;
   - the colour garden, section orbs and the contact gradient stand still (they are what forces the
     blur to be recomputed);
   - petals drop their shadow filter and get their own GPU layer, so they fall at a steady 60 fps.
   The scroll fade-in is switched off on these devices in main.js (content is simply there).
   SAFE TO CHANGE: the tint values. Keep backdrop-filter off for the repeated panes. */
@media (max-width: 859px), (hover: none) and (pointer: coarse) {
  body::before, .hero-media::after,
  #about::before, #about::after, #strengths::before, #strengths::after, #experience::before, #experience::after,
  #languages::before, #languages::after, #documents::before, #documents::after, #contact::before, #contact::after { animation: none; }
  #contact { animation: none; }

  .proof-card, .about-blocks, .strength, .tl-card, .card, .doc-card, .chip, .contact-card, .legal-inner, .available,
  .exp-group-title, .lang-switch, .icon-btn, .btn-secondary, .site-footer, .arch-inner, .hero-media::after, .video-play-disc {
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  :root { --glass: rgb(255 253 251 / .72); }
  #about, #experience, #documents { --glass: rgb(255 253 251 / .74); }
  .arch-inner { background: linear-gradient(165deg, rgb(255 255 255 / .82), rgb(255 255 255 / .42) 48%, rgb(247 225 228 / .62)); }
  :is(#strengths, #languages, #contact) :is(.strength, .card, .contact-card) {
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  /* Header bar: frosted tint instead of live blur (sticky + blur is the classic iPhone scroll stutter). */
  .site-header .header-inner { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--glass-sheen), rgb(255 252 250 / .8); }
  .site-header.is-scrolled .header-inner { background: var(--glass-sheen), rgb(255 252 250 / .9); }

  /* Fine grain: invisible at phone size, but costly to draw (SVG noise filter) on every band. */
  :root { --grain: none; }

  /* Colour garden: on the home page it only shows behind the facts strip, so it scrolls with the top
     of the page instead of being a huge fixed layer. Same look at the top, nothing pinned to the screen. */
  body[data-page="home"]::before { position: absolute; inset: auto; top: -12vmax; left: 0; right: 0; height: calc(100vh + 24vmax); height: calc(100lvh + 24vmax); }

  .petals { contain: strict; }
  .petal { filter: none; will-change: transform, opacity; backface-visibility: hidden; }
}
.petals.is-paused .petal { animation-play-state: paused; }

/* ---------- Fallbacks ---------- */
/* No backdrop-filter, or the visitor asked for less transparency: solid, calm panes. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header .header-inner, .proof-card, .about-blocks, .strength, .tl-card, .card, .doc-card, .chip, .contact-card, .legal-inner, .consent, .lightbox, .available, .exp-group-title, .lang-switch, .icon-btn, .btn-secondary, .site-footer, .arch-inner { background: var(--paper); }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header .header-inner, .proof-card, .about-blocks, .strength, .tl-card, .card, .doc-card, .chip, .contact-card, .legal-inner, .consent, .lightbox, .available, .exp-group-title, .lang-switch, .icon-btn, .btn-secondary, .site-footer, .arch-inner { background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .hero-media::after { display: none; }
}
@media print {
  body::before, .site-header, .consent, .petals, .doc-filters, .doc-more, .hero-actions, .lightbox, .hero-media::after { display: none !important; }
  body { background: #fff; }
  * { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; box-shadow: none !important; }
}
