/* ==========================================================================
   Giulia Grandicelli — Portfolio
   Design system: pearl · blush · lilac · plum — "L'eleganza della precisione"
   ========================================================================== */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 200 800; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-ext-wght-normal.woff2") format("woff2-variations");
  font-weight: 200 800; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Great Vibes";
  src: url("../fonts/great-vibes-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #fbf5f2;
  --bg-2: #f6ebe7;
  --paper: #fffdfc;
  --ink: #2b1624;
  --ink-2: #5a4251;
  --muted: #8a717f;
  --line: rgba(43, 22, 36, 0.12);
  --line-2: rgba(43, 22, 36, 0.07);

  --rose: #e7a3b8;
  --rose-2: #f5cbd8;
  --raspberry: #b8466f;
  --lilac: #c9b8f2;
  --peach: #f8cdb6;
  --gold: #c79b62;
  --sky: #cfe0fb;

  --plum: #1d0c17;
  --plum-2: #2a1422;
  --plum-3: #3d1f35;
  --cream: #fbefe9;
  --cream-2: rgba(251, 239, 233, 0.66);

  --iri: linear-gradient(110deg, #f6bccf 0%, #dcc7ff 28%, #c4dcff 50%, #ffd5c4 74%, #f6bccf 100%);
  --iri-deep: linear-gradient(100deg, #b8466f 0%, #8e62c9 32%, #d9779c 62%, #c08a55 86%, #b8466f 100%);
  --iri-light: linear-gradient(100deg, #ffc3d6 0%, #d9c6ff 30%, #bfe0ff 55%, #ffd8c2 80%, #ffc3d6 100%);

  --font-serif: "Instrument Serif", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-script: "Great Vibes", "Snell Roundhand", cursive;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --radius-xl: 36px;
  --radius-lg: 28px;
  --radius: 18px;
  --gutter: clamp(16px, 4vw, 48px);
  --container: 1320px;
  --nav-h: 76px;
  --shadow-soft: 0 1px 1px rgba(80, 30, 55, 0.03), 0 10px 30px -10px rgba(120, 40, 80, 0.14), 0 40px 80px -40px rgba(120, 40, 80, 0.22);
  --shadow-dark: 0 30px 80px -30px rgba(0, 0, 0, 0.6);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
main { overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}
img, svg, canvas, picture { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
em { font-style: italic; }
::selection { background: var(--rose-2); color: var(--ink); }
:focus-visible { outline: 2px solid var(--raspberry); outline-offset: 3px; border-radius: 6px; }
svg use { pointer-events: none; }

.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; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 1000; background: var(--ink); color: var(--cream); padding: 10px 18px; border-radius: 999px; transition: top .3s var(--ease); }
.skip:focus { top: 16px; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { position: relative; padding-block: clamp(96px, 14vh, 170px); }
.section--dark { background: var(--plum); color: var(--cream); }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 0.74rem; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 700; color: var(--ink-2);
  margin-bottom: 26px;
}
.eyebrow span:first-child {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line); font-family: var(--font-serif); font-style: italic; font-size: 0.95rem; letter-spacing: 0; text-transform: none; font-weight: 400; color: var(--raspberry);
}
.eyebrow--light { color: var(--cream-2); }
.eyebrow--light span:first-child { border-color: rgba(251, 239, 233, 0.2); color: var(--rose); }

.title {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(2.7rem, 6.4vw, 5.6rem); line-height: 0.98; letter-spacing: -0.02em;
  color: var(--ink); text-wrap: balance;
}
.title em { color: var(--raspberry); }
.title--light { color: var(--cream); }
.title--light em { background: var(--iri-light); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% 100%; animation: iri-shift 8s linear infinite; }
.title--light em .wi { background: var(--iri-light); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: iri-shift 8s linear infinite; padding-right: .08em; margin-right: -.08em; }
.title--xl { font-size: clamp(3rem, 7.4vw, 6.8rem); }

.iri-text {
  background: var(--iri-deep); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: iri-shift 9s linear infinite;
}
@keyframes iri-shift { to { background-position: -200% 0; } }

.section__head { margin-bottom: clamp(48px, 7vw, 88px); max-width: 980px; }
.section__head--split { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; max-width: none; }
.section__head--split > div { max-width: 820px; }
.section__intro { max-width: 380px; color: var(--ink-2); font-size: 1.02rem; }
.section--dark .section__intro { color: var(--cream-2); }

/* split words */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.06em 0.08em 0.12em 0; margin: -0.06em -0.08em -0.12em 0; }
.wi { display: inline-block; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink); --btn-fg: var(--cream);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 17px 28px; border-radius: 999px;
  font-weight: 650; font-size: 0.95rem; letter-spacing: 0.01em; line-height: 1;
  background: var(--btn-bg); color: var(--btn-fg);
  transition: color .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease), scale .2s ease;
}
.btn:active { scale: .97; }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--iri); background-size: 200% 100%;
  transform: translateY(101%); transition: transform .6s var(--ease);
  animation: iri-shift 6s linear infinite;
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn:hover, .btn:focus-visible { color: var(--ink); box-shadow: 0 18px 40px -16px rgba(184, 70, 111, 0.55); }
.btn__ico { width: 18px; height: 18px; flex: none; transition: transform .5s var(--ease); }
.btn:hover .btn__ico { transform: translateX(3px); }
.btn--ghost { --btn-bg: rgba(255, 255, 255, 0.5); --btn-fg: var(--ink); border: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn--ghost:hover .btn__ico { transform: translateY(2px); }
.btn--small { padding: 12px 20px; font-size: 0.86rem; }
.btn--iri { --btn-bg: transparent; --btn-fg: var(--ink); background: var(--iri); background-size: 200% 100%; animation: iri-shift 6s linear infinite; }
.btn--iri::before { background: var(--cream); animation: none; }
.btn--full { width: 100%; }

/* ---------- Loading screen ---------- */
.loader {
  position: fixed; inset: 0; z-index: 900; display: grid; place-items: center;
  background-color: var(--bg);
  background-image: radial-gradient(55% 45% at 28% 30%, rgba(246, 188, 207, .55), transparent 70%), radial-gradient(50% 45% at 76% 72%, rgba(220, 199, 255, .5), transparent 70%);
}
html:not(.js) .loader, .reduced .loader { display: none; }
.loader__inner { display: grid; justify-items: center; gap: 14px; padding: 24px; }
.loader__pearl {
  width: 72px; height: 72px; border-radius: 50%; margin-bottom: 8px;
  background: radial-gradient(circle at 34% 28%, #fff 0%, #fff4f8 14%, #f6cddc 38%, #d9c4f5 68%, #b99ad8 100%);
  box-shadow: inset -7px -9px 16px rgba(120, 60, 120, .25), inset 4px 5px 10px rgba(255, 255, 255, .8), 0 22px 40px -16px rgba(120, 40, 80, .45);
  animation: loader-float 2.4s ease-in-out infinite, loader-hue 4s ease-in-out infinite;
}
@keyframes loader-float { 50% { transform: translateY(-9px); } }
@keyframes loader-hue { 50% { filter: hue-rotate(-18deg) saturate(1.15); } }
.loader__mono {
  font-family: var(--font-serif); font-size: clamp(3.4rem, 10vw, 4.6rem); line-height: .9; letter-spacing: -.04em;
  background: var(--iri-deep); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: iri-shift 3s linear infinite; padding-right: .08em;
}
.loader__mono i { font-style: italic; }
.loader__name { font-size: .72rem; letter-spacing: .42em; text-transform: uppercase; font-weight: 700; color: var(--ink-2); padding-left: .42em; }
.loader__bar { display: block; width: 180px; height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; margin-top: 4px; }
.loader__bar span {
  display: block; height: 100%; background: var(--iri-deep); background-size: 300% 100%;
  transform-origin: left; transform: scaleX(.04);
  animation: loader-pre 3s cubic-bezier(.2, .7, .2, 1) forwards, iri-shift 3s linear infinite;
}
.loader.is-live .loader__bar span { animation: iri-shift 3s linear infinite; }
@keyframes loader-pre { to { transform: scaleX(.3); } }
.loader__count { font-family: var(--font-serif); font-style: italic; font-size: 1.05rem; color: var(--raspberry); min-height: 1.3em; font-variant-numeric: tabular-nums; opacity: 0; transition: opacity .4s; }
.loader.is-live .loader__count { opacity: 1; }

/* ---------- Cursor ---------- */
.cursor { display: none; }
.has-cursor .cursor { display: block; }
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor [data-cursor] { cursor: none; }
.has-cursor input, .has-cursor textarea { cursor: text; }
.cursor__dot, .cursor__ring { position: fixed; left: 0; top: 0; z-index: 1001; pointer-events: none; border-radius: 50%; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--raspberry); }
.cursor__ring {
  width: 42px; height: 42px; margin: -21px 0 0 -21px;
  border: 1px solid rgba(184, 70, 111, .55);
  display: grid; place-items: center;
  transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), background-color .45s var(--ease), border-color .45s var(--ease), opacity .3s;
}
.cursor__label { font-size: .62rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); opacity: 0; transition: opacity .3s; }
.cursor.is-hover .cursor__ring { width: 74px; height: 74px; margin: -37px 0 0 -37px; background: rgba(246, 188, 207, .28); border-color: rgba(184, 70, 111, .25); backdrop-filter: blur(2px); }
.cursor.is-drag .cursor__ring { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--cream); border-color: transparent; }
.cursor.is-drag .cursor__label { opacity: 1; }
.cursor.is-dark .cursor__ring { border-color: rgba(251, 239, 233, .5); }
.cursor.is-dark .cursor__dot { background: var(--rose); }
.cursor.is-hidden { opacity: 0; }

/* ---------- Progress + grain ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 800; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--iri-deep); background-size: 200% 100%; transform-origin: left; transform: scaleX(0); animation: iri-shift 6s linear infinite; }
.grain {
  position: fixed; inset: -50%; z-index: 700; pointer-events: none; opacity: .07; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .15 0 0 0 0 .22 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(5) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; z-index: 600; top: 0; left: 0; right: 0; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 0 var(--gutter);
  transition: transform .6s var(--ease), color .4s;
}
.nav.is-hidden { transform: translateY(-110%); }
.nav__logo { display: flex; align-items: center; gap: 12px; }
.nav__mono {
  width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-size: 1.35rem; line-height: 1; letter-spacing: -.04em;
  background: rgba(255, 255, 255, .55); border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 8px 20px -10px rgba(120, 40, 80, .35);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: transform .6s var(--ease);
}
.nav__mono i { color: var(--raspberry); margin-left: -1px; }
.nav__logo:hover .nav__mono { transform: rotate(-12deg) scale(1.05); }
.nav__brand { font-weight: 700; font-size: .92rem; letter-spacing: .01em; }
.nav__links {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: flex; gap: 4px; padding: 6px;
  background: rgba(255, 255, 255, .5); border: 1px solid rgba(255, 255, 255, .75); border-radius: 999px;
  box-shadow: 0 10px 30px -18px rgba(120, 40, 80, .4);
  backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
}
.nav__links a { position: relative; padding: 9px 16px; border-radius: 999px; font-size: .86rem; font-weight: 600; color: var(--ink-2); transition: color .3s, background-color .3s; }
.nav__links a:hover { color: var(--ink); background: rgba(255, 255, 255, .7); }
.nav__links a.is-active { color: var(--ink); background: #fff; box-shadow: 0 4px 14px -6px rgba(120, 40, 80, .35); }
.nav__actions { display: flex; align-items: center; gap: 10px; }

.nav.on-dark .nav__links { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .12); }
.nav.on-dark .nav__links a { color: var(--cream-2); }
.nav.on-dark .nav__links a:hover { color: var(--cream); background: rgba(255, 255, 255, .08); }
.nav.on-dark .nav__links a.is-active { color: var(--ink); background: var(--cream); }
.nav.on-dark .nav__brand { color: var(--cream); }
.nav.on-dark .nav__mono { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .16); color: var(--cream); }
.nav.on-dark .nav__mono i { color: var(--rose); }
.nav.on-dark .lang { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .14); color: var(--cream); }
.nav.on-dark .lang__pill { background: var(--cream); }
.nav.on-dark .btn--dark { --btn-bg: var(--cream); --btn-fg: var(--ink); }
.nav.on-dark .burger span { background: var(--cream); }

.nav__li {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--ink);
  background: rgba(255, 255, 255, .55); border: 1px solid rgba(255, 255, 255, .8);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: background-color .3s, color .3s, box-shadow .4s var(--ease);
}
.nav__li svg { width: 20px; height: 20px; }
.nav__li:hover { background: #fff; color: var(--raspberry); box-shadow: 0 10px 24px -12px rgba(120, 40, 80, .45); }
.nav.on-dark .nav__li { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .14); color: var(--cream); }
.lang {
  position: relative; display: inline-flex; padding: 4px; border-radius: 999px;
  background: rgba(255, 255, 255, .55); border: 1px solid rgba(255, 255, 255, .8);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  font-size: .74rem; font-weight: 800; letter-spacing: .08em;
}
.lang span { position: relative; z-index: 1; width: 38px; height: 32px; display: grid; place-items: center; transition: color .4s var(--ease); }
.lang__pill { position: absolute; z-index: 0; top: 4px; left: 4px; width: 38px; height: 32px; border-radius: 999px; background: var(--ink); transition: transform .5s var(--ease); }
html[lang="it"] .lang span[data-lang="it"], html[lang="en"] .lang span[data-lang="en"] { color: var(--cream); }
.nav.on-dark .lang span { color: var(--cream); }
html[lang="it"] .nav.on-dark .lang span[data-lang="it"], html[lang="en"] .nav.on-dark .lang span[data-lang="en"] { color: var(--ink); }
html[lang="en"] .lang__pill { transform: translateX(38px); }

.burger { display: none; width: 46px; height: 46px; border-radius: 50%; position: relative; background: rgba(255, 255, 255, .55); border: 1px solid rgba(255, 255, 255, .8); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.burger span { position: absolute; left: 14px; right: 14px; height: 1.5px; background: var(--ink); border-radius: 2px; transition: transform .5s var(--ease), top .5s var(--ease); }
.burger span:first-child { top: 19px; }
.burger span:last-child { top: 26px; }
.menu-open .burger span:first-child { top: 22px; transform: rotate(45deg); }
.menu-open .burger span:last-child { top: 22px; transform: rotate(-45deg); }
.menu-open .burger { background: var(--cream); }
.menu-open .burger span { background: var(--ink) !important; }

.menu {
  position: fixed; inset: 0; z-index: 550; background: var(--plum); color: var(--cream);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--nav-h) + 40px) var(--gutter) 40px;
  clip-path: circle(0% at calc(100% - 46px) 38px); visibility: hidden;
  transition: clip-path .9s var(--ease-in-out), visibility 0s linear .9s;
  background-image: radial-gradient(60% 40% at 80% 10%, rgba(184, 70, 111, .35), transparent 70%), radial-gradient(60% 40% at 10% 90%, rgba(142, 98, 201, .3), transparent 70%);
}
.menu-open .menu { clip-path: circle(150% at calc(100% - 46px) 38px); visibility: visible; transition: clip-path .9s var(--ease-in-out), visibility 0s; }
.menu__links { display: grid; gap: 6px; }
.menu__links a { display: flex; align-items: baseline; gap: 16px; font-family: var(--font-serif); font-size: clamp(2.4rem, 11vw, 4rem); line-height: 1.05; opacity: 0; transform: translateY(30px); transition: opacity .6s var(--ease), transform .6s var(--ease), color .3s; }
.menu__links a small { font-family: var(--font-sans); font-size: .75rem; color: var(--rose); letter-spacing: .1em; }
.menu__links a:hover { color: var(--rose); font-style: italic; }
.menu-open .menu__links a { opacity: 1; transform: none; }
.menu-open .menu__links a:nth-child(1) { transition-delay: .25s; }
.menu-open .menu__links a:nth-child(2) { transition-delay: .3s; }
.menu-open .menu__links a:nth-child(3) { transition-delay: .35s; }
.menu-open .menu__links a:nth-child(4) { transition-delay: .4s; }
.menu-open .menu__links a:nth-child(5) { transition-delay: .45s; }
.menu-open .menu__links a:nth-child(6) { transition-delay: .5s; }
.menu__foot { display: grid; gap: 6px; color: var(--cream-2); font-size: .95rem; }
.menu__li { display: inline-flex; align-items: center; gap: 8px; color: var(--cream); font-weight: 650; }
.menu__li svg { width: 20px; height: 20px; color: var(--rose); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden;
  display: flex; align-items: stretch; isolation: isolate;
  background: linear-gradient(180deg, #fdf8f6 0%, var(--bg) 70%);
}
.hero__bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .75; will-change: transform; }
.orb--1 { width: 46vw; height: 46vw; right: -8vw; top: -12vw; background: radial-gradient(circle at 40% 40%, #f8c4d6, rgba(248, 196, 214, 0) 70%); animation: float-a 18s ease-in-out infinite; }
.orb--2 { width: 38vw; height: 38vw; left: -10vw; bottom: -12vw; background: radial-gradient(circle at 50% 50%, #dccbff, rgba(220, 203, 255, 0) 70%); animation: float-b 22s ease-in-out infinite; }
.orb--3 { width: 28vw; height: 28vw; left: 38vw; top: 30vh; background: radial-gradient(circle at 50% 50%, #ffd9c7, rgba(255, 217, 199, 0) 70%); animation: float-a 26s ease-in-out infinite reverse; }
@keyframes float-a { 50% { transform: translate(-4vw, 5vh) scale(1.08); } }
@keyframes float-b { 50% { transform: translate(5vw, -4vh) scale(.94); } }

.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: 0; transition: opacity 1.6s var(--ease); }
.hero__canvas.is-ready { opacity: 1; }

.hero__content {
  position: relative; display: grid; grid-template-rows: auto 1fr auto auto; gap: clamp(18px, 3vh, 34px);
  padding-top: calc(var(--nav-h) + clamp(24px, 6vh, 70px)); padding-bottom: clamp(26px, 5vh, 48px);
  min-height: 100%;
}
.hero__status {
  justify-self: start; display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 16px 9px 12px; border-radius: 999px; font-size: .84rem; font-weight: 650;
  background: rgba(255, 255, 255, .6); border: 1px solid rgba(255, 255, 255, .85);
  box-shadow: 0 10px 30px -16px rgba(120, 40, 80, .35);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.pulse { position: relative; width: 9px; height: 9px; border-radius: 50%; background: #3fbf8f; }
.pulse::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1.5px solid #3fbf8f; animation: pulse 2s var(--ease) infinite; }
@keyframes pulse { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }

.hero__title {
  align-self: center;
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(3.4rem, min(15.5vw, 25svh), 16.5rem); line-height: .86; letter-spacing: -.035em;
  margin: 0; pointer-events: none;
}
.hero__line { display: block; overflow: hidden; padding: .04em .1em .1em 0; margin: -.04em -.1em -.1em 0; }
.hero__line--2 { padding-left: clamp(0px, 9vw, 160px); }
.hero__word { display: inline-block; will-change: transform; }
.hero__stage { display: none; }

.hero__bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.hero__lead { max-width: 470px; font-size: clamp(1.02rem, 1.25vw, 1.18rem); color: var(--ink-2); line-height: 1.6; }
.hero__lead em { font-family: var(--font-serif); font-size: 1.22em; color: var(--raspberry); }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.hero__facts {
  position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0;
  padding-top: 18px; max-width: 900px;
}
.hero__facts::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--line); transform: scaleX(var(--draw, 1)); transform-origin: left; }
.hero__facts li { display: grid; gap: 2px; padding-right: 18px; }
.hero__facts li + li { padding-left: 18px; border-left: 1px solid var(--line-2); }
.hero__facts small { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.hero__facts span { font-weight: 650; font-size: .95rem; }

.hero__badge { position: absolute; right: var(--gutter); top: calc(var(--nav-h) + clamp(28px, 6vh, 64px)); width: clamp(110px, 10vw, 150px); aspect-ratio: 1; z-index: 2; }
.rotor svg { width: 100%; height: 100%; animation: spin 22s linear infinite; overflow: visible; }
.rotor text { font-family: var(--font-sans); font-size: 11.5px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; fill: var(--ink); }
.rotor__center {
  position: absolute; inset: 31%; border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #fff 0%, #fff4f8 14%, #f6cddc 38%, #d9c4f5 68%, #b99ad8 100%);
  box-shadow: inset -6px -8px 14px rgba(120, 60, 120, .25), inset 4px 5px 10px rgba(255, 255, 255, .8), 0 14px 30px -10px rgba(120, 40, 80, .45);
  animation: pearl 6s ease-in-out infinite;
}
@keyframes pearl { 50% { filter: hue-rotate(-18deg) saturate(1.15); transform: scale(1.06); } }
@keyframes spin { to { transform: rotate(360deg); } }


/* ---------- Marquee ---------- */
.marquee {
  position: relative; z-index: 3; overflow: hidden; background: var(--plum); color: var(--cream);
  padding: clamp(18px, 2.4vw, 30px) 0; transform: rotate(-1.6deg) scale(1.04); margin-block: -10px;
  box-shadow: 0 30px 60px -30px rgba(43, 22, 36, .5);
}
.marquee__track, .footer__track { display: flex; width: max-content; will-change: transform; }
.marquee__group { display: flex; align-items: center; flex: none; }
.marquee__group span { font-family: var(--font-serif); font-size: clamp(2rem, 4.4vw, 3.9rem); line-height: 1; white-space: nowrap; padding: 0 clamp(18px, 2.2vw, 34px); }
.marquee__group em { background: var(--iri-light); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: iri-shift 7s linear infinite; padding-right: .06em; }
.marquee__group svg { width: clamp(18px, 2vw, 26px); height: clamp(18px, 2vw, 26px); color: var(--rose); flex: none; }

/* ---------- About ---------- */
.about { background: var(--bg); overflow: hidden; }
.about::before { content: ""; position: absolute; width: 60vw; height: 60vw; left: -25vw; top: 10%; background: radial-gradient(circle, rgba(246, 188, 207, .45), transparent 65%); filter: blur(30px); pointer-events: none; }
.about__grid { position: relative; display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.about__visual { display: grid; place-items: center; }
.portrait { position: relative; width: min(100%, 440px); transform-style: preserve-3d; perspective: 1000px; }
.portrait__glow {
  position: absolute; inset: -6%; border-radius: 999px 999px 40px 40px; z-index: -1;
  background: conic-gradient(from 0deg, #f6bccf, #dcc7ff, #c4dcff, #ffd5c4, #f6bccf);
  filter: blur(36px); opacity: .85; animation: spin 14s linear infinite;
}
.portrait__frame {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: 999px 999px 32px 32px;
  padding: 10px; background: linear-gradient(160deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .45));
  box-shadow: var(--shadow-soft); border: 1px solid rgba(255, 255, 255, .9);
  transform: translateZ(0);
}
.portrait__frame picture, .portrait__frame img { width: 100%; height: 100%; }
.portrait__frame img { object-fit: cover; object-position: 50% 30%; border-radius: 999px 999px 24px 24px; filter: saturate(1.04) contrast(1.02); transform: scale(1.06); }
.portrait__shine { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .55) 46%, transparent 60%); background-size: 250% 100%; background-position: 150% 0; mix-blend-mode: soft-light; transition: background-position 1.2s var(--ease); }
.portrait:hover .portrait__shine { background-position: -50% 0; }

.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
  font-size: .84rem; font-weight: 700; white-space: nowrap;
  background: rgba(255, 255, 255, .72); border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: 0 16px 34px -16px rgba(120, 40, 80, .45);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.chip svg { width: 16px; height: 16px; color: var(--raspberry); flex: none; }
.chip--float { position: absolute; will-change: transform; }
.chip--a { left: -8%; top: 16%; transform: translateZ(60px); }
.chip--b { right: -10%; top: 48%; transform: translateZ(90px); }
.chip--c { left: 2%; bottom: 8%; transform: translateZ(50px); }

.statement {
  font-family: var(--font-serif); font-size: clamp(1.6rem, 2.7vw, 2.55rem); line-height: 1.22; letter-spacing: -.01em;
  margin: 34px 0 30px; color: var(--ink);
}
.statement .sw { opacity: .16; transition: opacity .2s; }
html:not(.js) .statement .sw, .reduced .statement .sw { opacity: 1; }
.about__body { display: grid; gap: 16px; color: var(--ink-2); max-width: 640px; }
.about__body strong { color: var(--ink); font-weight: 700; }
.signature { width: 230px; height: auto; margin-top: 18px; overflow: visible; }
.signature text { font-family: var(--font-script); font-size: 96px; fill: transparent; stroke: var(--raspberry); stroke-width: 1.1; stroke-dasharray: 900; stroke-dashoffset: 900; }
.signature.is-drawn text { animation: sign 3.2s var(--ease-in-out) forwards; }
html:not(.js) .signature text, .reduced .signature text { stroke-dashoffset: 0; fill: var(--raspberry); }
@keyframes sign { 70% { fill: transparent; } to { stroke-dashoffset: 0; fill: var(--raspberry); } }

.stats { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(70px, 10vw, 130px); border-top: 1px solid var(--line); }
.stat { display: grid; gap: 6px; padding: 30px 26px 0 0; }
.stat + .stat { padding-left: 26px; border-left: 1px solid var(--line-2); }
.stat strong { font-family: var(--font-serif); font-weight: 400; font-size: clamp(3.6rem, 7vw, 6.4rem); line-height: .9; letter-spacing: -.03em; display: flex; align-items: flex-start; }
.stat strong span { background: var(--iri-deep); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: iri-shift 9s linear infinite; padding-right: .04em; }
.stat sup { font-size: .45em; color: var(--raspberry); margin-top: .15em; }
.stat > span { color: var(--ink-2); font-weight: 600; font-size: .95rem; max-width: 200px; }

/* ---------- Values ---------- */
.values { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.values__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; perspective: 1400px; }
.vcard {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 34px 30px 36px; border-radius: var(--radius-lg); min-height: 360px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 14px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .55));
  border: 1px solid rgba(255, 255, 255, .95); box-shadow: var(--shadow-soft);
  transform-style: preserve-3d;
  transition: box-shadow .5s var(--ease);
}
.vcard:hover { box-shadow: 0 40px 80px -30px rgba(184, 70, 111, .4); }
.vcard::before {
  content: ""; position: absolute; inset: auto -30% -40% auto; width: 80%; aspect-ratio: 1; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(220, 199, 255, .7), transparent 65%); filter: blur(10px);
  transition: transform .8s var(--ease);
}
.vcard:nth-child(2)::before { background: radial-gradient(circle, rgba(246, 188, 207, .8), transparent 65%); }
.vcard:nth-child(3)::before { background: radial-gradient(circle, rgba(196, 220, 255, .8), transparent 65%); }
.vcard:nth-child(4)::before { background: radial-gradient(circle, rgba(255, 213, 196, .85), transparent 65%); }
.vcard:hover::before { transform: scale(1.4) translate(-10%, -10%); }
.vcard__glare { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .75), transparent 45%); mix-blend-mode: soft-light; }
.vcard:hover .vcard__glare { opacity: 1; }
.vcard__num { position: absolute; top: 28px; right: 30px; font-family: var(--font-serif); font-style: italic; color: var(--muted); font-size: 1.05rem; }
.vcard__ico {
  position: absolute; top: 28px; left: 28px; width: 62px; height: 62px; border-radius: 20px;
  display: grid; place-items: center; color: var(--ink);
  background: var(--iri); background-size: 200% 100%; animation: iri-shift 8s linear infinite;
  box-shadow: 0 14px 30px -14px rgba(184, 70, 111, .6), inset 0 1px 0 rgba(255, 255, 255, .8);
  transform: translateZ(50px);
}
.vcard__ico svg { width: 28px; height: 28px; }
.vcard h3 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(1.7rem, 2.1vw, 2.1rem); line-height: 1.05; transform: translateZ(30px); }
.vcard p { color: var(--ink-2); font-size: .95rem; line-height: 1.6; transform: translateZ(20px); }

/* ---------- Experience (stacking cards) ---------- */
.exp { overflow: clip; }
.exp__aura, .contact__aura { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.exp__aura::before, .exp__aura::after, .contact__aura::before, .contact__aura::after { content: ""; position: absolute; border-radius: 50%; filter: blur(90px); }
.exp__aura::before { width: 50vw; height: 50vw; right: -15vw; top: -10vw; background: rgba(184, 70, 111, .35); }
.exp__aura::after { width: 40vw; height: 40vw; left: -15vw; top: 40%; background: rgba(142, 98, 201, .25); }

.stack { display: grid; gap: 0; counter-reset: x; }
.stack__item { position: sticky; top: calc(var(--nav-h) + 24px + var(--i, 0) * 18px); padding-bottom: 7vh; }
.stack__item:last-child { padding-bottom: 0; }
.stack.is-static .stack__item { position: relative; top: auto; padding-bottom: 22px; }
.xcard {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(240px, 4fr) 8fr; gap: clamp(28px, 4vw, 64px);
  padding: clamp(28px, 4vw, 52px); border-radius: var(--radius-xl);
  background: linear-gradient(150deg, #3b1d33 0%, #2a1423 55%, #231019 100%);
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: var(--shadow-dark), inset 0 1px 0 rgba(255, 255, 255, .06);
  transform-origin: 50% 0;
}
.xcard::after { content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none; border-radius: inherit; background: #12060e; opacity: var(--dim, 0); }
.xcard::before { content: ""; position: absolute; z-index: -1; width: 420px; height: 420px; right: -140px; top: -180px; border-radius: 50%; background: radial-gradient(circle, rgba(246, 188, 207, .22), transparent 65%); }
.stack__item:nth-child(2) .xcard::before { background: radial-gradient(circle, rgba(220, 199, 255, .22), transparent 65%); }
.stack__item:nth-child(3) .xcard::before { background: radial-gradient(circle, rgba(255, 213, 196, .2), transparent 65%); }
.stack__item:nth-child(4) .xcard::before { background: radial-gradient(circle, rgba(196, 220, 255, .18), transparent 65%); }
.xcard__side { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.xcard__num { font-family: var(--font-serif); font-size: clamp(4rem, 7vw, 6.5rem); line-height: .8; color: transparent; -webkit-text-stroke: 1px rgba(251, 239, 233, .35); margin-bottom: 16px; }
.xcard__date { font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: var(--rose); }
.xcard__company { font-family: var(--font-serif); font-weight: 400; font-size: clamp(2rem, 3vw, 2.7rem); line-height: 1.02; color: var(--cream); margin-top: 6px; }
.xcard__meta { color: var(--cream-2); font-size: .92rem; }
.xcard__loc { display: inline-flex; align-items: center; gap: 6px; color: var(--cream-2); font-size: .88rem; }
.xcard__loc svg { width: 15px; height: 15px; color: var(--rose); }
.xcard__type { margin-top: 12px; padding: 7px 14px; border-radius: 999px; font-size: .74rem; font-weight: 700; letter-spacing: .06em; color: var(--ink); background: var(--iri-light); background-size: 200% 100%; animation: iri-shift 8s linear infinite; }
.xcard__main { display: flex; flex-direction: column; gap: 22px; }
.xcard__role { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: clamp(1.6rem, 2.4vw, 2.3rem); line-height: 1.1; background: var(--iri-light); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: iri-shift 10s linear infinite; padding-right: .1em; }
.xcard__list { display: grid; gap: 12px; }
.xcard__list li { position: relative; padding-left: 26px; color: rgba(251, 239, 233, .82); font-size: .98rem; line-height: 1.6; }
.xcard__list li::before { content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 12px; background: var(--rose); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2c.6 4.9 2.5 7.4 7.8 8.2v1.6C14.5 12.6 12.6 15.1 12 20h-.1c-.6-4.9-2.5-7.4-7.8-8.2v-1.6C9.4 9.4 11.3 6.9 11.9 2z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2c.6 4.9 2.5 7.4 7.8 8.2v1.6C14.5 12.6 12.6 15.1 12 20h-.1c-.6-4.9-2.5-7.4-7.8-8.2v-1.6C9.4 9.4 11.3 6.9 11.9 2z'/%3E%3C/svg%3E") center / contain no-repeat; }
.xcard__list strong { color: var(--cream); font-weight: 700; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.tags span, .tags a { padding: 7px 14px; border-radius: 999px; font-size: .78rem; font-weight: 650; border: 1px solid rgba(251, 239, 233, .16); color: var(--cream); background: rgba(255, 255, 255, .04); }
.tags--soft span, .tags--soft a { border-color: var(--line); color: var(--ink-2); background: rgba(255, 255, 255, .6); }
.tags--soft a { color: var(--raspberry); transition: background-color .3s, color .3s; }
.tags--soft a:hover { background: var(--raspberry); color: #fff; }

/* ---------- Skills (bento) ---------- */
.skills { background: var(--bg-2); overflow: hidden; }
.skills::before { content: ""; position: absolute; width: 50vw; height: 50vw; right: -20vw; top: 20%; background: radial-gradient(circle, rgba(220, 199, 255, .55), transparent 65%); filter: blur(30px); pointer-events: none; }
.bento { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.tile {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(24px, 2.6vw, 34px);
  background: linear-gradient(160deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .62));
  border: 1px solid rgba(255, 255, 255, .95); box-shadow: var(--shadow-soft);
  display: flex; flex-direction: column; gap: 18px;
}
.tile h3 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(1.6rem, 2vw, 2rem); line-height: 1.05; }
.tile__ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--bg-2); color: var(--raspberry); border: 1px solid var(--line-2); }
.tile__ico svg { width: 22px; height: 22px; }
.tile__foot { margin-top: auto; display: flex; align-items: center; gap: 8px; font-size: .86rem; color: var(--muted); font-weight: 600; }
.tile__foot svg { width: 20px; height: 20px; color: var(--raspberry); }

.tile--sphere { grid-column: span 5; grid-row: span 2; min-height: 580px; background: radial-gradient(120% 80% at 50% 0%, #4a2342 0%, #2a1422 45%, #1d0c17 100%); border-color: rgba(255, 255, 255, .08); color: var(--cream); }
.tile--sphere::after { content: ""; position: absolute; inset: 22% 14% 8%; border-radius: 50%; background: radial-gradient(circle, rgba(246, 188, 207, .28), rgba(142, 98, 201, .12) 45%, transparent 70%); filter: blur(20px); pointer-events: none; }
.tile__head { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.tile__hint { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--cream-2); white-space: nowrap; }
.tile__hint svg { width: 14px; height: 14px; color: var(--rose); animation: spin 6s linear infinite; }
.sphere { position: relative; z-index: 1; flex: 1; min-height: 380px; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.sphere__item {
  position: absolute; left: 50%; top: 50%; white-space: nowrap;
  font-weight: 650; font-size: 1rem; color: var(--cream);
  will-change: transform, opacity; transform: translate(-50%, -50%);
}
.sphere__item.is-key { font-family: var(--font-serif); font-weight: 400; font-style: italic; font-size: 1.5rem; background: var(--iri-light); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .1em; }

.tile--admin { grid-column: span 7; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pills span {
  padding: 10px 18px; border-radius: 999px; font-size: .9rem; font-weight: 650; color: var(--ink);
  background: #fff; border: 1px solid var(--line); position: relative; overflow: hidden; isolation: isolate;
  transition: transform .4s var(--ease), border-color .4s, box-shadow .4s;
}
.pills span::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--iri); opacity: 0; transition: opacity .4s; }
.pills span:hover { transform: translateY(-3px); border-color: transparent; box-shadow: 0 12px 24px -12px rgba(184, 70, 111, .5); }
.pills span:hover::before { opacity: 1; }

.tile--soft { grid-column: span 4; }
.keys { display: flex; flex-wrap: wrap; gap: 10px 10px; }
.key {
  --kb: #e9d6de;
  display: inline-flex; align-items: center; justify-content: center; min-width: 64px; height: 46px; padding: 0 16px;
  border-radius: 12px; font-size: .86rem; font-weight: 700; color: var(--ink);
  background: linear-gradient(180deg, #fff 0%, #fbf3f6 100%);
  border: 1px solid rgba(43, 22, 36, .08);
  box-shadow: 0 5px 0 var(--kb), 0 10px 18px -8px rgba(120, 40, 80, .35), inset 0 1px 0 #fff;
  transform: translateY(-2px); transition: transform .15s ease, box-shadow .15s ease;
  user-select: none;
}
.key:nth-child(3n+2) { --kb: #ddd2f3; background: linear-gradient(180deg, #fff, #f6f2ff); }
.key:nth-child(3n) { --kb: #f4dccd; background: linear-gradient(180deg, #fff, #fff6f1); }
.key:hover, .key.is-pressed { transform: translateY(3px); box-shadow: 0 0 0 var(--kb), 0 4px 10px -6px rgba(120, 40, 80, .4), inset 0 1px 0 #fff; }

.tile--certs { grid-column: span 3; }
.flips { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; perspective: 900px; }
.flip { height: 128px; text-align: left; }
.flip__inner { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .9s var(--ease); }
.flip:hover .flip__inner, .flip.is-flipped .flip__inner { transform: rotateY(180deg); }
.flip__front, .flip__back { position: absolute; inset: 0; border-radius: 16px; padding: 14px; display: flex; flex-direction: column; justify-content: space-between; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.flip__front { background: var(--iri); background-size: 200% 100%; animation: iri-shift 8s linear infinite; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 12px 24px -14px rgba(120, 40, 80, .5); }
.flip__front b { font-family: var(--font-serif); font-weight: 400; font-size: 1.9rem; line-height: 1; letter-spacing: .02em; }
.flip__front small { font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--ink-2); }
.flip__back { background: var(--plum-2); color: var(--cream); transform: rotateY(180deg); font-size: .8rem; line-height: 1.35; font-weight: 600; }
.flip__back small { font-size: .64rem; color: var(--rose); letter-spacing: .06em; text-transform: uppercase; font-weight: 700; }

.tile--lang { grid-column: span 6; }
.langs { display: grid; gap: 18px; }
.lang-row__top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.lang-row__top b { font-family: var(--font-serif); font-weight: 400; font-size: 1.35rem; }
.lang-row__top span { font-size: .8rem; font-weight: 800; letter-spacing: .08em; color: var(--raspberry); }
.cefr { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; }
.cefr i { height: 8px; border-radius: 99px; background: rgba(43, 22, 36, .08); position: relative; overflow: hidden; }
.cefr i::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--iri-deep); background-size: 600% 100%; transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.cefr i:nth-child(1)::after { background-position: 0% 0; } .cefr i:nth-child(2)::after { background-position: 20% 0; } .cefr i:nth-child(3)::after { background-position: 40% 0; }
.cefr i:nth-child(4)::after { background-position: 60% 0; } .cefr i:nth-child(5)::after { background-position: 80% 0; } .cefr i:nth-child(6)::after { background-position: 100% 0; }
.is-in .cefr i:nth-child(1)::after { transform: scaleX(1); transition-delay: .05s; }
.is-in [style*="--lvl:2"] .cefr i:nth-child(-n+2)::after,
.is-in [style*="--lvl:3"] .cefr i:nth-child(-n+3)::after,
.is-in [style*="--lvl:4"] .cefr i:nth-child(-n+4)::after,
.is-in [style*="--lvl:5"] .cefr i:nth-child(-n+5)::after,
.is-in [style*="--lvl:6"] .cefr i:nth-child(-n+6)::after { transform: scaleX(1); }
.is-in .cefr i:nth-child(2)::after { transition-delay: .15s; } .is-in .cefr i:nth-child(3)::after { transition-delay: .25s; }
.is-in .cefr i:nth-child(4)::after { transition-delay: .35s; } .is-in .cefr i:nth-child(5)::after { transition-delay: .45s; } .is-in .cefr i:nth-child(6)::after { transition-delay: .55s; }
.cefr-legend { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; font-size: .66rem; font-weight: 800; color: var(--muted); letter-spacing: .06em; margin-top: auto; }
.cefr-legend span { text-align: center; }

.tile--people { grid-column: span 6; }
.checks { display: grid; gap: 12px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; font-weight: 600; color: var(--ink-2); line-height: 1.45; }
.checks svg { flex: none; width: 22px; height: 22px; padding: 4px; border-radius: 50%; color: var(--ink); background: var(--iri); margin-top: -1px; }

/* ---------- Education ---------- */
.edu { background: var(--bg); }
.edu__list { border-bottom: 1px solid var(--line); }
.erow { border-top: 1px solid var(--line); position: relative; }
.erow__head {
  position: relative; isolation: isolate; width: 100%; text-align: left;
  display: grid; grid-template-columns: 170px 1fr 280px 52px; gap: 24px; align-items: center;
  padding: 30px 8px;
}
.erow__head::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(246, 188, 207, .45), rgba(220, 199, 255, .4), rgba(255, 213, 196, .35)); transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease); border-radius: 18px; }
.erow__head:hover::before, .erow.is-open .erow__head::before { transform: scaleY(1); }
.erow__year { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; color: var(--raspberry); }
.erow__title { font-family: var(--font-serif); font-size: clamp(1.45rem, 2.4vw, 2.2rem); line-height: 1.1; transition: transform .6s var(--ease); }
.erow__title small { font-family: var(--font-sans); font-size: .72rem; font-weight: 800; letter-spacing: .08em; vertical-align: middle; padding: 4px 9px; border-radius: 99px; border: 1px solid var(--line); color: var(--ink-2); margin-left: 6px; }
.erow__head:hover .erow__title { transform: translateX(10px); font-style: italic; }
.erow__org { color: var(--ink-2); font-size: .92rem; font-weight: 600; }
.erow__plus { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: transform .6s var(--ease), background-color .4s, color .4s; background: rgba(255, 255, 255, .6); }
.erow__plus svg { width: 18px; height: 18px; }
.erow.is-open .erow__plus { transform: rotate(135deg); background: var(--ink); color: var(--cream); }
.erow__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s var(--ease); }
.erow.is-open .erow__body { grid-template-rows: 1fr; }
.erow__inner { overflow: hidden; display: grid; gap: 16px; padding-left: 202px; padding-right: 84px; }
.erow__inner > :first-child { margin-top: 4px; }
.erow__inner > :last-child { margin-bottom: 30px; }
.erow__inner p { color: var(--ink-2); max-width: 720px; }
.erow__modules { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; color: var(--ink-2); font-size: .95rem; }
.erow__modules li { padding-left: 18px; position: relative; }
.erow__modules li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--raspberry); }
.erow__modules b { color: var(--ink); }

/* ---------- Contact ---------- */
.contact { overflow: hidden; }
.contact__aura::before { width: 60vw; height: 60vw; left: -20vw; bottom: -30vw; background: rgba(184, 70, 111, .38); }
.contact__aura::after { width: 50vw; height: 50vw; right: -15vw; top: -20vw; background: rgba(142, 98, 201, .3); }
.contact__grid { position: relative; display: grid; grid-template-columns: 7fr 5fr; gap: clamp(40px, 6vw, 100px); align-items: end; }
.contact__intro { color: var(--cream-2); font-size: 1.1rem; max-width: 520px; margin-top: 28px; }
.contact__cards { display: grid; gap: 12px; margin-top: 40px; max-width: 560px; }
.ccard {
  display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 20px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: background-color .4s, border-color .4s, transform .5s var(--ease);
}
.ccard:hover { background: rgba(255, 255, 255, .09); border-color: rgba(246, 188, 207, .35); transform: translateX(6px); }
.ccard > div { display: grid; min-width: 0; flex: 1; }
.ccard small { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: var(--cream-2); }
.ccard > div > a, .ccard > div > span { font-size: clamp(1rem, 1.6vw, 1.2rem); font-weight: 650; color: var(--cream); overflow-wrap: anywhere; }
.ccard a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); justify-self: start; }
.ccard a:hover { background-size: 100% 1px; }
.ccard__ico { flex: none; width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; color: var(--ink); background: var(--iri); background-size: 200% 100%; animation: iri-shift 8s linear infinite; }
.ccard__ico svg { width: 22px; height: 22px; }
.ccard--link { position: relative; }
.ccard--link a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.ccard--link .ccard__go { pointer-events: none; }
.ccard__go { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .16); color: var(--cream); transition: transform .5s var(--ease), background-color .3s, color .3s; }
.ccard__go svg { width: 18px; height: 18px; }
.ccard:hover .ccard__go { background: var(--cream); color: var(--ink); transform: rotate(-45deg); }
.ccard__copy { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .16); color: var(--cream); transition: background-color .3s, color .3s; position: relative; }
.ccard__copy:hover { background: var(--cream); color: var(--ink); }
.ccard__copy svg { width: 18px; height: 18px; position: absolute; transition: transform .4s var(--ease), opacity .3s; }
.ccard__copy .ico-check { opacity: 0; transform: scale(.4); }
.ccard__copy.is-done .ico-copy { opacity: 0; transform: scale(.4); }
.ccard__copy.is-done .ico-check { opacity: 1; transform: none; color: #7be0b5; }

.form {
  position: relative; display: grid; gap: 14px; padding: clamp(26px, 3vw, 40px); border-radius: var(--radius-xl);
  background: linear-gradient(160deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03));
  border: 1px solid rgba(255, 255, 255, .12); box-shadow: var(--shadow-dark);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.form__title { font-family: var(--font-serif); font-weight: 400; font-size: 2rem; margin-bottom: 6px; }
.field { position: relative; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--cream);
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .12); border-radius: 16px;
  padding: 24px 18px 10px; outline: none; resize: vertical; min-height: 58px;
  transition: border-color .3s, background-color .3s, box-shadow .3s;
}
.field textarea { min-height: 120px; }
.field label { position: absolute; left: 19px; top: 18px; font-size: .95rem; color: var(--cream-2); pointer-events: none; transition: transform .35s var(--ease), font-size .35s var(--ease), color .3s; transform-origin: left top; }
.field input:focus, .field textarea:focus { border-color: rgba(246, 188, 207, .7); background: rgba(255, 255, 255, .07); box-shadow: 0 0 0 4px rgba(246, 188, 207, .12); }
.field input:focus + label, .field textarea:focus + label,
.field input:not(:placeholder-shown) + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-11px); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--rose); font-weight: 700; }
.field.is-invalid input, .field.is-invalid textarea { border-color: #ff8fa8; }
.form__note { font-size: .82rem; color: var(--cream-2); text-align: center; }
.form.is-sending .btn { opacity: .65; pointer-events: none; }
.form__note.is-error { color: #ffb3c4; }
.form__note.is-ok { color: #9be7c4; }

/* ---------- Footer ---------- */
.footer { background: var(--plum); color: var(--cream-2); padding: 20px 0 32px; overflow: hidden; border-top: 1px solid rgba(255, 255, 255, .06); }
.footer__marquee { padding: 30px 0 40px; }
.footer__track span { display: inline-flex; align-items: center; gap: .3em; white-space: nowrap; font-family: var(--font-serif); font-size: clamp(4.5rem, 14vw, 13rem); line-height: 1; padding-right: .3em; color: transparent; -webkit-text-stroke: 1px rgba(251, 239, 233, .28); transition: color .6s; }
.footer__track span:hover { color: rgba(246, 188, 207, .3); }
.footer__track svg { width: .5em; height: .5em; color: var(--rose); }
.footer__row { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .9rem; }
.footer__links { display: flex; gap: 22px; align-items: center; }
.footer__links a { color: var(--cream); font-weight: 600; transition: color .3s; }
.footer__links a:hover { color: var(--rose); }
.footer__top { display: inline-flex; align-items: center; gap: 8px; }
.footer__top svg { width: 34px; height: 34px; padding: 8px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); transition: transform .5s var(--ease), background-color .3s; }
.footer__top:hover svg { transform: translateY(-4px); background: var(--cream); color: var(--ink); }
.footer__legal { margin-top: 18px; font-size: .74rem; color: rgba(251, 239, 233, .4); }

/* ---------- Reveal (JS-enhanced) ---------- */
.js .reveal-up { opacity: 0; transform: translateY(34px); }
.js .tile, .js .vcard, .js .erow, .js .stat { opacity: 0; }
.js .hero__word { transform: translateY(110%); }
.js .hero__facts li { opacity: 0; }
.reduced .reveal-up, .reduced .tile, .reduced .vcard, .reduced .erow, .reduced .stat { opacity: 1 !important; transform: none !important; }
.reduced .hero__word, .reduced .hero__facts li { transform: none !important; opacity: 1 !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav__brand { display: none; }
  .values__grid { grid-template-columns: repeat(2, 1fr); }
  .tile--sphere { grid-column: span 12; grid-row: auto; min-height: 520px; }
  .tile--admin { grid-column: span 12; }
  .tile--soft { grid-column: span 6; }
  .tile--certs { grid-column: span 6; }
  .tile--lang { grid-column: span 6; }
  .tile--people { grid-column: span 6; }
  .erow__head { grid-template-columns: 140px 1fr 52px; }
  .erow__org { grid-column: 2; grid-row: 2; margin-top: -14px; }
  .erow__plus { grid-column: 3; grid-row: 1 / span 2; }
  .erow__inner { padding-left: 172px; }
}
@media (max-width: 960px) {
  :root { --nav-h: 68px; }
  .nav__links { display: none; }
  .burger { display: block; }
  .nav__actions .btn--small, .nav__li { display: none; }
  .about__grid { grid-template-columns: 1fr; }
  .about__visual { order: -1; }
  .portrait { width: min(78%, 380px); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { padding-top: 34px; }
  .section__head--split { flex-direction: column; align-items: flex-start; }
  .xcard { grid-template-columns: 1fr; }
  .xcard__num { position: absolute; right: clamp(28px, 4vw, 52px); top: clamp(28px, 4vw, 52px); margin: 0; font-size: 4rem; }
  .contact__grid { grid-template-columns: 1fr; }
  .hero__facts { grid-template-columns: repeat(2, 1fr); row-gap: 14px; }
  .hero__facts li:nth-child(3) { padding-left: 0; border-left: 0; }
}

/* Portrait screens: the 3D shape gets its own space above the name,
   so it never sits on top of the text (hero3d.js centres it on .hero__stage). */
@media (min-width: 721px) and (max-aspect-ratio: 4/5) {
  .hero__content { grid-template-rows: auto minmax(0, 1fr) auto auto auto; }
  .hero__stage { display: block; min-height: clamp(220px, 30svh, 380px); }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding-block: 88px; }
  .hero__content { display: flex; flex-direction: column; gap: 18px; padding-top: calc(var(--nav-h) + 12px); padding-bottom: 34px; }
  .hero__stage { display: block; height: clamp(190px, 33svh, 330px); margin-block: -6px -2px; }
  .hero__title { font-size: clamp(3.2rem, 17.5vw, 5.8rem); align-self: auto; }
  .hero__line--2 { padding-left: 0; }
  .hero__badge { display: none; }
  .hero__bottom { flex-direction: column; align-items: stretch; gap: 22px; }
  .hero__ctas { flex-direction: column; width: 100%; }
  .hero__ctas .btn { width: 100%; }
  .statement { font-size: 1.42rem; margin: 26px 0 24px; }
  .values__grid { grid-template-columns: 1fr; gap: 14px; }
  .vcard { min-height: 0; justify-content: flex-start; padding: 26px 24px 28px; gap: 12px; }
  .vcard__ico { position: static; transform: none; width: 54px; height: 54px; border-radius: 17px; margin-bottom: 6px; }
  .vcard__num { top: 26px; right: 24px; }
  .xcard { padding: 26px 22px 28px; gap: 22px; border-radius: 28px; }
  .xcard__num { position: static; font-size: 2.8rem; margin: 0 0 8px; }
  .xcard__company { font-size: 1.95rem; }
  .xcard__role { font-size: 1.55rem; }
  .xcard__list li { font-size: .95rem; }
  .tile--soft, .tile--certs, .tile--lang, .tile--people { grid-column: span 12; }
  .tile--sphere { min-height: 460px; }
  .erow__head { grid-template-columns: 1fr 44px; gap: 10px 16px; padding: 24px 4px; }
  .erow__year { grid-column: 1; grid-row: 1; }
  .erow__title { grid-column: 1; grid-row: 2; }
  .erow__org { grid-column: 1; grid-row: 3; margin-top: 0; }
  .erow__plus { grid-column: 2; grid-row: 1 / span 3; width: 44px; height: 44px; }
  .erow__head:hover .erow__title { transform: none; }
  .erow__inner { padding-left: 4px; padding-right: 4px; }
  .erow__modules { grid-template-columns: 1fr; }
  .chip--a { left: -6%; top: 8%; }
  .chip--b { right: -8%; top: auto; bottom: 20%; }
  .chip--c { left: -4%; bottom: 3%; }
  .sphere__item { font-size: .84rem; }
  .sphere__item.is-key { font-size: 1.2rem; }
  .ccard { padding: 14px; gap: 12px; }
  .ccard:hover { transform: none; }
  .ccard__ico { width: 42px; height: 42px; border-radius: 13px; }
  .ccard__copy, .ccard__go { width: 36px; height: 36px; }
  .ccard > div > a, .ccard > div > span { font-size: .95rem; }
  .footer__row { flex-direction: column; align-items: flex-start; }
  /* lighter rendering on phones: blur behind glass is costly while scrolling */
  .chip, .ccard, .form, .btn--ghost, .hero__status { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .chip { background: rgba(255, 255, 255, .93); }
  .hero__status { background: rgba(255, 255, 255, .86); }
  .btn--ghost { --btn-bg: rgba(255, 255, 255, .78); }
  .orb { filter: blur(48px); }
}
@media (max-width: 420px) {
  .lang span { width: 34px; }
  .lang__pill { width: 34px; }
  html[lang="en"] .lang__pill { transform: translateX(34px); }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding-right: 12px; }
  .stat + .stat { padding-left: 14px; }
  .stat:nth-child(3) { padding-left: 0; }
}
/* Landscape phones: keep the name and the buttons on the first screen */
@media (max-height: 520px) and (orientation: landscape) {
  .hero__badge { display: none; }
  .hero__content { padding-top: calc(var(--nav-h) + 8px); }
}
/* Film grain only where it is cheap to draw */
@media (hover: none), (max-width: 960px) {
  .grain { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .grain { display: none; }
}
