/* =========================================================
   Αναστασία Γκλιάτη — Βιογραφικό
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --bg: #FBF7F4;
  --surface: #FFFFFF;
  --surface-2: #FDF8F6;
  --ink: #2B2326;
  --ink-2: #4A3F43;
  --muted: #76676B;
  --line: #EADDD7;
  --blush: #F3E4DE;
  --blush-2: #EBD3CA;
  --rose: #C48A80;
  --rose-strong: #A0605A;
  --plum: #6B4452;
  --aura-1: #F2D3C9;
  --aura-2: #EADAE6;
  --aura-3: #F6E7D4;
  --topbar-bg: rgba(251, 247, 244, .78);
  --spot: rgba(196, 138, 128, .13);
  --grain-opacity: .07;
  --shadow: 0 1px 2px rgba(43, 35, 38, .04), 0 14px 34px -14px rgba(91, 58, 69, .20);
  --shadow-lg: 0 2px 6px rgba(43, 35, 38, .05), 0 34px 70px -24px rgba(91, 58, 69, .34);

  --font-display: "Noto Serif Display", "Noto Serif", Georgia, "Times New Roman", serif;
  --font-body: "Commissioner", system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --radius: 22px;
  --topbar-h: 68px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #171214;
  --surface: #221B1E;
  --surface-2: #261E21;
  --ink: #F3EAE7;
  --ink-2: #DCCFCB;
  --muted: #B3A3A4;
  --line: #3B2F32;
  --blush: #34272B;
  --blush-2: #46343A;
  --rose: #E0A398;
  --rose-strong: #EDB4A9;
  --plum: #E3C2CC;
  --aura-1: #4A2D30;
  --aura-2: #392A3C;
  --aura-3: #3C2F25;
  --topbar-bg: rgba(23, 18, 20, .74);
  --spot: rgba(224, 163, 152, .09);
  --grain-opacity: .09;
  --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 14px 34px -14px rgba(0, 0, 0, .65);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, .35), 0 34px 70px -24px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #171214;
    --surface: #221B1E;
    --surface-2: #261E21;
    --ink: #F3EAE7;
    --ink-2: #DCCFCB;
    --muted: #B3A3A4;
    --line: #3B2F32;
    --blush: #34272B;
    --blush-2: #46343A;
    --rose: #E0A398;
    --rose-strong: #EDB4A9;
    --plum: #E3C2CC;
    --aura-1: #4A2D30;
    --aura-2: #392A3C;
    --aura-3: #3C2F25;
    --topbar-bg: rgba(23, 18, 20, .74);
    --spot: rgba(224, 163, 152, .09);
    --grain-opacity: .09;
    --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 14px 34px -14px rgba(0, 0, 0, .65);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, .35), 0 34px 70px -24px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar-h) + 16px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, .95rem + .25vw, 1.0625rem);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

::selection { background: var(--blush-2); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--rose-strong);
  outline-offset: 3px;
  border-radius: 8px;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container {
  width: min(1160px, 100% - 2 * clamp(16px, 4vw, 40px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform .3s var(--ease);
}
.skip-link:focus-visible { transform: none; }

/* ---------- Ambient background ---------- */
.aura {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.aura__blob {
  position: absolute;
  width: 58vmax;
  height: 58vmax;
  border-radius: 50%;
  opacity: .9;
  will-change: transform;
}
.aura__blob--1 {
  top: -22vmax;
  right: -18vmax;
  background: radial-gradient(circle at center, var(--aura-1) 0%, transparent 62%);
  animation: drift-1 28s ease-in-out infinite alternate;
}
.aura__blob--2 {
  top: 26vh;
  left: -26vmax;
  background: radial-gradient(circle at center, var(--aura-2) 0%, transparent 62%);
  animation: drift-2 34s ease-in-out infinite alternate;
}
.aura__blob--3 {
  bottom: -30vmax;
  right: 4vw;
  background: radial-gradient(circle at center, var(--aura-3) 0%, transparent 62%);
  animation: drift-3 30s ease-in-out infinite alternate;
}
.aura__grain {
  position: absolute;
  inset: 0;
  opacity: var(--grain-opacity);
  background-image: 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 type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
:root[data-theme="dark"] .aura__grain { mix-blend-mode: screen; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .aura__grain { mix-blend-mode: screen; }
}

@keyframes drift-1 { to { transform: translate3d(-8vmax, 10vmax, 0) scale(1.12); } }
@keyframes drift-2 { to { transform: translate3d(10vmax, -6vmax, 0) scale(.92); } }
@keyframes drift-3 { to { transform: translate3d(-12vmax, -8vmax, 0) scale(1.08); } }

main, .footer { position: relative; z-index: 1; }

/* ---------- Scroll progress ---------- */
.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 70;
  pointer-events: none;
}
.progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--rose), var(--plum));
  transform-origin: 0 50%;
  transform: scaleX(0);
}

/* ---------- Top bar ---------- */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background-color .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.topbar.is-scrolled {
  background: var(--topbar-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  backdrop-filter: saturate(1.4) blur(16px);
  border-bottom-color: var(--line);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  letter-spacing: .01em;
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blush), var(--blush-2));
  color: var(--plum);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  font-weight: 500;
  transition: transform .5s var(--ease-out);
}
.brand:hover .brand__mark { transform: rotate(-12deg) scale(1.06); }
.brand__name { font-size: .98rem; }

.site-nav ul { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  position: relative;
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: .94rem;
  font-weight: 500;
  transition: color .3s var(--ease), background-color .3s var(--ease);
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: var(--rose);
  transform: scale(0);
  transition: transform .35s var(--ease-out);
}
.site-nav a:hover { color: var(--ink); background: var(--blush); }
.site-nav a.is-active { color: var(--ink); }
.site-nav a.is-active::after { transform: scale(1); }

.topbar__actions { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  transition: transform .3s var(--ease), border-color .3s var(--ease), background-color .3s var(--ease);
}
.icon-btn:hover { border-color: var(--rose); transform: translateY(-1px); }
.icon-btn .icon { width: 19px; height: 19px; }

.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
}
.theme-toggle:hover .icon { animation: wiggle .6s var(--ease); }
@keyframes wiggle { 40% { transform: rotate(-18deg); } 75% { transform: rotate(10deg); } }

.nav-toggle { display: none; }

/* Theme switch (View Transitions) */
::view-transition-old(root),
::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: .97rem;
  font-weight: 600;
  line-height: 1.2;
  overflow: hidden;
  isolation: isolate;
  transition: transform .35s var(--ease), background-color .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .icon { transition: transform .35s var(--ease); }
.btn--primary {
  background: var(--ink);
  color: var(--bg);
  box-shadow: var(--shadow);
}
.btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .8s var(--ease);
}
.btn--primary:hover { background: var(--plum); }
.btn--primary:hover::before { transform: translateX(120%); }
.btn--primary:hover .icon { transform: translateX(3px); }
.btn--ghost {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}
.btn--ghost:hover { border-color: var(--rose); background: var(--blush); }
.btn--ghost:hover .icon { transform: translateY(2px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: calc(var(--topbar-h) + 48px) 0 96px;
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  color: var(--rose-strong);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .22em;
}
.eyebrow::before {
  content: "";
  width: 36px;
  height: 1px;
  background: currentColor;
}

.hero__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.1rem, 1.6rem + 6.2vw, 6.6rem);
  line-height: .98;
  letter-spacing: -.02em;
  color: var(--ink);
}
.hero__name .line { display: block; }
.hero__name .line--accent {
  font-style: italic;
  font-weight: 300;
  color: var(--rose-strong);
  padding-left: .55em;
}
.hero__name .char { display: inline-block; }

.hero__role {
  margin-top: 26px;
  max-width: 34ch;
  color: var(--ink-2);
  font-size: clamp(1.08rem, 1rem + .45vw, 1.3rem);
  line-height: 1.5;
}
.hero__sep { color: var(--rose); margin: 0 .3em; }

.contact-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}
.chip-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: 100%;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: .92rem;
  overflow-wrap: anywhere;
  transition: border-color .3s var(--ease), transform .3s var(--ease), color .3s var(--ease);
}
.chip-link .icon { color: var(--rose-strong); width: 17px; height: 17px; }
a.chip-link:hover { border-color: var(--rose); color: var(--ink); transform: translateY(-2px); }

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

/* Portrait */
.hero__portrait { display: flex; justify-content: center; }
.portrait {
  position: relative;
  width: min(100%, 390px);
  aspect-ratio: 444 / 554;
}
.portrait [data-depth] { transition: translate .9s var(--ease-out); }

.portrait__blob {
  position: absolute;
  inset: -7% -11% -5% -9%;
  background: linear-gradient(140deg, var(--blush-2) 0%, var(--aura-2) 55%, var(--aura-3) 100%);
  border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
  animation: morph 16s ease-in-out infinite alternate, slow-spin 60s linear infinite;
}
@keyframes morph {
  33% { border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%; }
  66% { border-radius: 38% 62% 44% 56% / 60% 35% 65% 40%; }
  100% { border-radius: 52% 48% 35% 65% / 42% 58% 42% 58%; }
}
@keyframes slow-spin { to { rotate: 360deg; } }

.portrait__outline {
  position: absolute;
  inset: -16px 16px 16px -16px;
  border: 1.5px solid var(--rose);
  border-radius: 50% 50% 7% 7% / 40% 40% 5.6% 5.6%;
  opacity: .8;
}
.portrait__frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 50% 50% 7% 7% / 40% 40% 5.6% 5.6%;
  background: var(--blush);
  box-shadow: var(--shadow-lg);
}
.portrait__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
  transform: scale(1.04);
  transition: transform 1.2s var(--ease-out);
}
.portrait:hover .portrait__frame img { transform: scale(1.08); }

.ring-badge {
  position: absolute;
  left: -13%;
  bottom: 9%;
  width: 124px;
  height: 124px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--plum);
}
.ring-badge__text {
  width: 100%;
  height: 100%;
  animation: slow-spin 24s linear infinite;
}
.ring-badge__text text {
  fill: currentColor;
  font-family: var(--font-body);
  font-size: 8.6px;
  font-weight: 600;
  letter-spacing: .04em;
}
.ring-badge__core {
  position: absolute;
  inset: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blush), var(--blush-2));
  color: var(--rose-strong);
}
.ring-badge__core .icon { width: 24px; height: 24px; }

.float-badge {
  position: absolute;
  right: -12%;
  top: 14%;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 250px;
  padding: 12px 16px 12px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--topbar-bg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  animation: bob 7s ease-in-out infinite;
}
.float-badge__text { display: grid; line-height: 1.3; }
.float-badge strong { font-size: .86rem; font-weight: 600; }
.float-badge small { color: var(--muted); font-size: .78rem; }
@keyframes bob { 50% { transform: translateY(-10px); } }

.live-dot {
  position: relative;
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4CAF7D;
}
.live-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: inherit;
  animation: ping 2.2s var(--ease) infinite;
}
@keyframes ping {
  0% { transform: scale(1); opacity: .65; }
  80%, 100% { transform: scale(2.8); opacity: 0; }
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  translate: -50% 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 56px;
  color: var(--muted);
}
.scroll-cue__mouse {
  position: relative;
  width: 24px;
  height: 38px;
  border: 1.5px solid currentColor;
  border-radius: 14px;
}
.scroll-cue__mouse span {
  position: absolute;
  left: 50%;
  top: 7px;
  width: 3px;
  height: 7px;
  margin-left: -1.5px;
  border-radius: 3px;
  background: var(--rose-strong);
  animation: scroll-dot 2s var(--ease) infinite;
}
@keyframes scroll-dot {
  0% { transform: translateY(0); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translateY(14px); opacity: 0; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 10vw, 136px); }
.section__head { margin-bottom: clamp(36px, 5vw, 60px); }
.section__index {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--rose-strong);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
}
.section__index::after {
  content: "";
  width: 56px;
  height: 1px;
  background: currentColor;
  transform-origin: 0 50%;
  transition: transform 1s .25s var(--ease-out);
}
.section__title {
  margin-top: 10px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.1rem, 1.4rem + 3vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -.015em;
  text-wrap: balance;
}

/* ---------- Profile ---------- */
.profile {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.profile__lead {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 1.1rem + 1.5vw, 2.15rem);
  line-height: 1.32;
  letter-spacing: -.01em;
  text-wrap: pretty;
}
.profile__lead em { font-style: italic; color: var(--rose-strong); }
.profile__body {
  padding-top: .4em;
  color: var(--ink-2);
  font-size: 1.06rem;
  text-wrap: pretty;
}
.profile__body mark {
  color: inherit;
  font-weight: 600;
  background: linear-gradient(transparent 58%, var(--blush-2) 58%) no-repeat 0 0 / 100% 100%;
  transition: background-size 1s var(--ease-out);
}
.profile__body mark:nth-of-type(2) { transition-delay: .25s; }
.profile__body mark:nth-of-type(3) { transition-delay: .5s; }

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 16px;
  margin-top: clamp(40px, 6vw, 72px);
}
.stat {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 26px 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.stat__value {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 2rem + 2vw, 3.4rem);
  line-height: 1;
  color: var(--plum);
  font-variant-numeric: tabular-nums;
}
.stat__value small { margin-left: 4px; font-size: .42em; color: var(--muted); }
.stat__label { color: var(--muted); font-size: .93rem; line-height: 1.45; }

/* ---------- Cards (shared) ---------- */
.spot { position: relative; isolation: isolate; }
.spot::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), var(--spot), transparent 70%);
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.spot:hover::before { opacity: 1; }

/* ---------- Timeline ---------- */
.timeline {
  --col: 190px;
  --gap: 56px;
  --tl: 0;
  position: relative;
}
.timeline::before,
.timeline::after {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: calc(var(--col) + var(--gap) / 2 - 1px);
  width: 2px;
  border-radius: 2px;
}
.timeline::before { background: var(--line); }
.timeline::after {
  background: linear-gradient(180deg, var(--rose), var(--plum));
  transform-origin: 50% 0;
  transform: scaleY(var(--tl));
}
.tl-item {
  display: grid;
  grid-template-columns: var(--col) var(--gap) minmax(0, 1fr);
  grid-template-areas: "date marker card";
  align-items: start;
}
.tl-item + .tl-item { margin-top: 26px; }
.tl-date {
  grid-area: date;
  padding-top: 24px;
  text-align: right;
  color: var(--muted);
  font-size: .95rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.tl-now { color: var(--rose-strong); }
.tl-marker {
  grid-area: marker;
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  padding-top: 29px;
}
.tl-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--rose);
  background: var(--bg);
  transition: transform .6s var(--ease-out) .2s;
}
.tl-item[data-current] .tl-dot {
  background: var(--rose);
  box-shadow: 0 0 0 0 var(--rose);
  animation: halo 2.6s var(--ease) infinite;
}
@keyframes halo {
  0% { box-shadow: 0 0 0 0 rgba(196, 138, 128, .55); }
  70%, 100% { box-shadow: 0 0 0 12px rgba(196, 138, 128, 0); }
}

.tl-card {
  grid-area: card;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform .45s var(--ease), border-color .45s var(--ease), box-shadow .45s var(--ease);
}
.tl-card:hover { transform: translateY(-3px); border-color: var(--blush-2); box-shadow: var(--shadow-lg); }
.tl-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1.1rem + .7vw, 1.6rem);
  font-weight: 500;
  line-height: 1.25;
}
.tl-card__org { margin-top: 4px; color: var(--rose-strong); font-weight: 500; }
.tl-card__org .sep { color: var(--rose); margin: 0 .35em; }
.tl-card__list { display: grid; gap: 8px; margin-top: 16px; color: var(--ink-2); }
.tl-card__list li { position: relative; padding-left: 22px; }
.tl-card__list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .68em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--rose);
  transform: rotate(45deg);
}

/* ---------- Education ---------- */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: 20px;
}
.edu-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: translate .45s var(--ease), border-color .45s var(--ease), box-shadow .45s var(--ease);
}
.edu-card:hover { translate: 0 -4px; border-color: var(--blush-2); box-shadow: var(--shadow-lg); }
.edu-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.edu-card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--blush), var(--blush-2));
  color: var(--plum);
  transition: transform .5s var(--ease-out);
}
.edu-card__icon .icon { width: 24px; height: 24px; }
.edu-card:hover .edu-card__icon { transform: rotate(-8deg) scale(1.06); }
.edu-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.1rem + .5vw, 1.45rem);
  font-weight: 500;
  line-height: 1.3;
  text-wrap: balance;
}
.edu-card__org { color: var(--muted); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--blush);
  color: var(--plum);
  font-size: .85rem;
  font-weight: 600;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.pill .live-dot { width: 8px; height: 8px; }

.grade {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: auto;
  padding-top: 18px;
}
.grade__ring { width: 84px; height: 84px; transform: rotate(-90deg); flex: none; }
.grade__ring circle { fill: none; stroke-width: 8; }
.grade__track { stroke: var(--blush); }
.grade__bar {
  stroke: var(--rose);
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 18.4;
  transition: stroke-dashoffset 1.6s var(--ease-out) .3s;
}
.grade__text { display: grid; line-height: 1.1; }
.grade__label { color: var(--muted); font-size: .9rem; }
.grade__value {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--plum);
}
.grade__value small { font-size: .5em; color: var(--muted); margin-left: 2px; }

/* ---------- Languages & skills ---------- */
.skills-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr);
  gap: 20px;
}
.panel {
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.panel__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: .95rem;
  font-weight: 600;
}
.panel__title .icon { color: var(--rose-strong); }

.lang__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 16px;
}
.lang__name { font-family: var(--font-display); font-size: 1.7rem; }
.lang__level {
  font-family: var(--font-display);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--rose-strong);
}
.lang__level small { font-family: var(--font-body); font-size: .9rem; color: var(--muted); }

.cefr {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  margin-top: 24px;
}
.cefr li {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 500;
  text-align: center;
}
.cefr li::before {
  content: "";
  height: 8px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--rose), var(--plum));
  transform-origin: 0 50%;
  transition: transform .55s var(--ease-out) calc(var(--i, 0) * 110ms + .25s);
}
.cefr li.is-level { color: var(--ink); font-weight: 700; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: .96rem;
  line-height: 1.3;
  transition: border-color .3s var(--ease), background-color .3s var(--ease), translate .3s var(--ease), color .3s var(--ease);
}
.chip::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rose);
  transition: transform .3s var(--ease);
}
.chip:hover { border-color: var(--rose); background: var(--blush); color: var(--ink); translate: 0 -2px; }
.chip:hover::before { transform: scale(1.4); }

/* ---------- Contact ---------- */
.section--contact { padding-bottom: clamp(56px, 8vw, 96px); }
.contact {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  padding: clamp(28px, 5vw, 64px);
  border: 1px solid var(--line);
  border-radius: 32px;
  background: linear-gradient(135deg, var(--blush) 0%, var(--surface) 55%, var(--aura-2) 100%);
  box-shadow: var(--shadow-lg);
}
.contact__orb {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}
.contact__orb--1 {
  width: 340px;
  height: 340px;
  top: -140px;
  left: -120px;
  background: radial-gradient(circle, var(--aura-1), transparent 65%);
  animation: breathe 9s ease-in-out infinite;
}
.contact__orb--2 {
  width: 260px;
  height: 260px;
  right: -90px;
  bottom: -110px;
  background: radial-gradient(circle, var(--aura-3), transparent 65%);
  animation: breathe 11s ease-in-out infinite reverse;
}
@keyframes breathe { 50% { transform: scale(1.18); } }

.contact__text { margin-top: 16px; max-width: 38ch; color: var(--ink-2); }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.contact__list { display: grid; gap: 12px; }
.contact__row {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  transition: border-color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
}
a.contact__row:hover {
  border-color: var(--rose);
  transform: translateX(4px);
  box-shadow: var(--shadow);
}
.contact__row:has(.contact__link:hover) {
  border-color: var(--rose);
  transform: translateX(4px);
  box-shadow: var(--shadow);
}
.contact__link {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 0;
}
.contact__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--blush);
  color: var(--rose-strong);
}
.contact__meta { display: grid; min-width: 0; line-height: 1.35; }
.contact__label { color: var(--muted); font-size: .8rem; font-weight: 500; }
.contact__value { font-weight: 600; overflow-wrap: anywhere; }
.contact__go {
  margin-left: auto;
  color: var(--rose-strong);
  transition: transform .35s var(--ease);
}
a.contact__row:hover .contact__go { transform: translateX(4px); }

.copy-btn {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--muted);
  transition: color .3s var(--ease), border-color .3s var(--ease), background-color .3s var(--ease);
}
.copy-btn:hover { color: var(--ink); border-color: var(--rose); }
.copy-btn .icon { width: 18px; height: 18px; grid-area: 1 / 1; transition: transform .35s var(--ease-out), opacity .35s var(--ease); }
.copy-btn .i-check { opacity: 0; transform: scale(.4); color: #3E9C6E; }
.copy-btn.is-done .i-copy { opacity: 0; transform: scale(.4); }
.copy-btn.is-done .i-check { opacity: 1; transform: none; }

/* ---------- Footer & floating UI ---------- */
.footer { padding: 28px 0 40px; color: var(--muted); font-size: .9rem; }
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.footer__top { display: inline-flex; align-items: center; gap: 8px; transition: color .3s var(--ease); }
.footer__top:hover { color: var(--ink); }
.footer__top:hover .icon { animation: nudge-up .6s var(--ease); }
@keyframes nudge-up { 50% { transform: translateY(-4px); } }

.to-top {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 55;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(.9);
  transition: opacity .4s var(--ease), transform .4s var(--ease), visibility 0s .4s, border-color .3s var(--ease);
}
.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .4s var(--ease), transform .4s var(--ease), visibility 0s, border-color .3s var(--ease);
}
.to-top:hover { border-color: var(--rose); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 80;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: .93rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity .35s var(--ease), transform .35s var(--ease-out);
}
.toast.is-shown { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Motion (only when JS is running) ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}
@keyframes char-in {
  from { opacity: 0; transform: translateY(.5em) rotate(6deg); filter: blur(8px); }
  to { opacity: 1; transform: none; filter: none; }
}
@keyframes force-show { to { opacity: 1; transform: none; } }

.js [data-hero] {
  opacity: 0;
  animation: rise 1s var(--ease-out) forwards;
  animation-delay: var(--d, 0ms);
}

.js .hero__name { opacity: 0; }
.js .hero__name.is-split { opacity: 1; }
.js .hero__name .char {
  opacity: 0;
  animation: char-in .9s var(--ease-out) forwards;
  animation-delay: calc(var(--i) * 42ms + 200ms);
}

@keyframes reveal-up { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes reveal-left { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes reveal-pop { from { opacity: 0; transform: translateY(12px) scale(.94); } to { opacity: 1; transform: none; } }

.js .reveal { opacity: 0; }
.js .reveal.is-visible { animation: reveal-up .9s var(--ease-out) var(--d, 0ms) both; }
.js .tl-item.reveal.is-visible { animation-name: reveal-left; }
.js .chip.reveal.is-visible { animation-name: reveal-pop; animation-duration: .6s; }

/* safety net if main.js never runs */
.js:not(.io) .reveal,
.js:not(.io) .hero__name { animation: force-show .01s 1.6s forwards; }

.js .section__index::after { transform: scaleX(0); }
.js .is-visible .section__index::after,
.js .is-visible.section__index::after { transform: scaleX(1); }
.js:not(.io) .section__index::after { transform: none; }

.js .profile__body mark { background-size: 0% 100%; }
.js .profile__body.is-visible mark { background-size: 100% 100%; }

.js .tl-item .tl-dot { transform: scale(0); }
.js .tl-item.is-visible .tl-dot { transform: scale(1); }

.js .grade__bar { stroke-dashoffset: 100; }
.js .is-visible .grade__bar { stroke-dashoffset: 18.4; }

.js .cefr li::before { transform: scaleX(0); }
.js .is-visible .cefr li::before { transform: scaleX(1); }

.js:not(.io) .tl-item .tl-dot,
.js:not(.io) .cefr li::before { transform: none; }
.js:not(.io) .grade__bar,
.js:not(.io) .profile__body mark { stroke-dashoffset: 18.4; background-size: 100% 100%; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .float-badge { right: -4%; }
  .ring-badge { left: -6%; }
}

@media (max-width: 960px) {
  .brand__name { display: none; }
}

@media (max-width: 860px) {
  .nav-toggle { display: grid; }
  .site-nav {
    position: fixed;
    top: calc(var(--topbar-h) - 4px);
    left: 12px;
    right: 12px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(.98);
    transform-origin: 50% 0;
    transition: opacity .35s var(--ease), transform .35s var(--ease-out), visibility 0s .35s;
  }
  .menu-open .site-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .35s var(--ease), transform .35s var(--ease-out), visibility 0s;
  }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-nav a {
    padding: 14px 18px;
    border-radius: 14px;
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--ink);
  }
  .site-nav a::after { left: auto; right: 20px; bottom: 50%; margin: 0 0 -2.5px; }
  .menu-open .topbar { background: var(--topbar-bg); border-bottom-color: var(--line); }

  .hero { min-height: auto; padding-top: calc(var(--topbar-h) + 32px); padding-bottom: 88px; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__portrait { order: -1; }
  .portrait { width: min(72%, 300px); }
  .float-badge { right: -18%; top: auto; bottom: 14%; }
  .ring-badge { left: -20%; bottom: auto; top: 6%; width: 104px; height: 104px; }
  .ring-badge__core { inset: 29px; }
  .scroll-cue { display: none; }

  .profile { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .timeline { --col: 0px; --gap: 34px; }
  .tl-item {
    grid-template-columns: var(--gap) minmax(0, 1fr);
    grid-template-areas: "marker date" "marker card";
  }
  .tl-date { padding-top: 0; margin-bottom: 10px; text-align: left; }
  .tl-marker { padding-top: 5px; justify-content: flex-start; padding-left: 9px; }
  .timeline::before,
  .timeline::after { left: 16px; top: 6px; }
  .tl-card { padding: 20px 20px 22px; }
}

@media (max-width: 520px) {
  .float-badge { right: -24%; max-width: 210px; padding: 10px 12px; }
  .float-badge strong { font-size: .8rem; }
  .ring-badge { left: -16%; }
  .hero__cta .btn { flex: 1 1 100%; }
  .contact__actions .btn { flex: 1 1 100%; }
  .contact__row { padding: 14px; gap: 12px; }
  .contact__link { gap: 12px; }
  .contact__icon { width: 40px; height: 40px; }
  .stat { padding: 22px; }
}

@media (max-width: 400px) {
  .float-badge { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: .001ms !important;
    transition-delay: 0ms !important;
  }
  .aura__blob, .portrait__blob, .ring-badge__text, .float-badge, .contact__orb { animation: none !important; }
}

/* ---------- Print ---------- */
@media print {
  @page { margin: 14mm; }
  :root { --bg: #fff; --surface: #fff; --surface-2: #fff; --ink: #1d1719; --ink-2: #2f2629; --muted: #5d5053; --line: #ddd; --shadow: none; --shadow-lg: none; }
  body { background: #fff; font-size: 10.5pt; line-height: 1.5; }
  .topbar, .aura, .progress, .scroll-cue, .to-top, .toast, .skip-link,
  .portrait__blob, .portrait__outline, .ring-badge, .float-badge,
  .hero__cta, .contact__actions, .copy-btn, .contact__go, .contact__orb, .footer__top, .stats { display: none !important; }
  .reveal, .hero__name, .hero__name .char, [data-hero] {
    opacity: 1 !important; transform: none !important; filter: none !important; animation: none !important;
  }
  .hero { min-height: 0; padding: 0 0 12px; }
  .hero__inner { grid-template-columns: 1fr 150px; gap: 24px; }
  .hero__portrait { order: 0; }
  .portrait { width: 150px; }
  .portrait__frame { border-radius: 12px; box-shadow: none; }
  .portrait__frame img { transform: none; }
  .hero__name { font-size: 30pt; }
  .section { padding-block: 10px; }
  .section__head { margin-bottom: 10px; }
  .section__index { display: none; }
  .section__title { font-size: 16pt; border-bottom: 1px solid #ddd; padding-bottom: 4px; }
  .profile { grid-template-columns: 1fr; gap: 6px; }
  .profile__lead { font-size: 12.5pt; }
  .tl-card, .edu-card, .panel, .stat, .contact, .contact__row { box-shadow: none !important; break-inside: avoid; }
  .timeline::after { display: none; }
  .tl-dot { transform: none !important; }
  .grade__bar { stroke-dashoffset: 18.4 !important; }
  .cefr li::before { transform: none !important; }
  .profile__body mark { background-size: 100% 100% !important; }
  .contact { background: none; padding: 0; border: 0; }
  a[href^="tel"], a[href^="mailto"] { text-decoration: none; }
}
