/* Layout: sticky header, one-line hero beside a hero-image slot, 3/2/1-column square card grid,
   About (portrait + bio), Contact, footer. Single page, anchors for nav. */
:root {
  --bg: #F8F5F3;          /* off-white with a faint lilac warmth */
  --surface: #FDFBFB;
  --ink: #2F2836;         /* plum charcoal, never pure black */
  --muted: #6D6475;
  --line: #E6DFE8;
  --lilac: #B7A5CC;       /* muted lilac, decorative */
  --lilac-soft: #ECE5F2;
  --accent: #6E5689;      /* deep lilac for links and buttons, AA on --bg */
  --on-accent: #FFFFFF;
  --tile-1: #E4DAEE; --tile-2: #F0DCDD; --tile-3: #DCE3DA; --tile-4: #F1E8D6; --tile-5: #DADFEA;
  --shape: #FDFBFB;
  --shape-2: #B7A5CC;

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --space-1: 8px; --space-2: 16px; --space-3: 24px; --space-4: 32px; --space-5: 64px; --space-6: 128px;
  --gutter: max(16px, 4vw);
  --radius: 8px;
  color-scheme: light;
}
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 18px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
@media (max-width: 640px) { body { font-size: 16px; } }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); }
.label { font-size: 14px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
h1, h2, h3 { font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-weight: 400; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; letter-spacing: -0.01em; }
p { margin: 0; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: border-color 300ms ease;
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding-block: 18px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo__mark { width: 40px; height: 40px; flex: none; }
.logo__mark .petal { transform-box: view-box; transform-origin: 20px 20px; animation: bloom 2.6s var(--ease-out) 2 both; }
.logo__mark g g:nth-child(2) .petal { animation-delay: 120ms; }
.logo__mark g g:nth-child(3) .petal { animation-delay: 240ms; }
.logo:hover .logo__mark .petal { animation: bloom 2.6s var(--ease-out) 1; }
@keyframes bloom { 0% { transform: rotate(-90deg) scale(.4); opacity: 0; } 45%,100% { transform: none; opacity: 1; } }
.logo__name { font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-size: 22px; letter-spacing: -0.01em; }

.nav { display: flex; align-items: center; gap: var(--space-4); }
.nav__links { display: flex; gap: var(--space-3); list-style: none; margin: 0; padding: 0; }
.ulink {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat;
  transition: background-size 250ms ease-out; padding-bottom: 2px;
}
.ulink:hover, .ulink:focus-visible { background-size: 100% 1px; }
.nav__links a { font-size: 14px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
.nav__contact { display: flex; align-items: center; gap: var(--space-2); padding-left: var(--space-4); border-left: 1px solid var(--line); }
.mail {
  display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; color: var(--accent);
  text-decoration: none; padding: 8px 14px; border-radius: 999px; background: var(--lilac-soft);
  transition: transform 200ms ease-out, background-color 200ms ease-out;
}
.mail:hover { transform: translateY(-2px); background: color-mix(in srgb, var(--lilac-soft) 70%, var(--lilac)); }
.mail:active { transform: translateY(1px); transition-duration: 100ms; }
.mail svg, .icon-link svg { width: 18px; height: 18px; flex: none; }
.icon-link { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: var(--muted); transition: color 200ms ease-out, transform 200ms ease-out; }
.icon-link:hover { color: var(--accent); transform: translateY(-2px); }

.menu-btn { display: none; background: none; border: 0; color: var(--ink); font: inherit; font-size: 14px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; padding: 8px 0; cursor: pointer; }
.mobile-menu {
  position: fixed; inset: 0; z-index: 30; background: var(--bg);
  padding: calc(env(safe-area-inset-top, 0px) + 18px) var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 32px);
  display: flex; flex-direction: column; gap: var(--space-5);
}
.mobile-menu__top { display: flex; justify-content: space-between; align-items: center; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.mobile-menu ul a { font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-size: 40px; text-decoration: none; }
.mobile-menu__mail { display: grid; gap: var(--space-1); }
@media (max-width: 860px) {
  .nav__links, .nav__contact .icon-link { display: none; }
  .nav__contact { border-left: 0; padding-left: 0; }
  .menu-btn { display: inline-block; }
  .nav { gap: var(--space-2); }
}
@media (max-width: 480px) { .mail span { display: none; } .mail { padding: 9px; } .logo__name { font-size: 20px; } }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--space-5); align-items: end; padding-block: clamp(48px, 12vh, 140px) clamp(40px, 8vh, 96px); }
.hero__text { display: grid; gap: var(--space-3); min-width: 0; }
.hero h1 { font-size: clamp(40px, 6vw, 80px); line-height: 1.04; letter-spacing: -0.02em; font-weight: 350; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero__line { font-size: clamp(19px, 1.8vw, 24px); line-height: 1.45; max-width: 34ch; color: var(--muted); }
.hero__line strong { color: var(--ink); font-weight: 600; }
.hero__meta { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3); }
.hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--lilac); }
.intro { animation: intro 800ms var(--ease-out) both; }
.intro-2 { animation-delay: 150ms; } .intro-3 { animation-delay: 300ms; } .intro-4 { animation-delay: 220ms; }
@keyframes intro { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.hero__art {
  position: relative; aspect-ratio: 4 / 4; max-width: 100%; border-radius: var(--radius); overflow: hidden;
  background: radial-gradient(120% 90% at 20% 10%, var(--tile-2), transparent 60%), radial-gradient(100% 80% at 90% 90%, var(--tile-5), transparent 65%), var(--tile-1);
}
.hero__art .blob { position: absolute; border-radius: 50%; filter: blur(2px); animation: drift 14s ease-in-out infinite alternate; }
.hero__art .b1 { width: 58%; aspect-ratio: 1; left: 12%; top: 16%; background: var(--shape); opacity: .9; }
.hero__art .b2 { width: 34%; aspect-ratio: 1; right: 10%; top: 44%; background: var(--shape-2); opacity: .55; animation-duration: 11s; animation-delay: -4s; }
.hero__art .b3 { width: 20%; aspect-ratio: 1; left: 22%; bottom: 12%; background: var(--tile-4); animation-duration: 9s; animation-delay: -2s; }
@keyframes drift { from { transform: translate(0,0) scale(1); } to { transform: translate(6%, -5%) scale(1.06); } }
.slot-tag {
  position: absolute; left: 16px; bottom: 16px; right: 16px; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap;
  font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink);
}
.slot-tag span { background: color-mix(in srgb, var(--surface) 82%, transparent); padding: 4px 10px; border-radius: 999px; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: var(--space-4); }
  .hero__art { aspect-ratio: 16 / 10; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--space-5); }
.section + .section { border-top: 1px solid var(--line); }
@media (min-width: 1025px) { .section { padding-block: var(--space-6) var(--space-6); } .section--work { padding-top: var(--space-4); } }
.section__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-2); flex-wrap: wrap; margin-bottom: var(--space-4); }

/* ---------- Gallery ---------- */
.grid { display: grid; gap: var(--space-4); grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
@media (max-width: 1024px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); } }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; } }
.card { position: relative; display: block; aspect-ratio: 1; max-width: 100%; border-radius: var(--radius); overflow: hidden; background: var(--tile); text-decoration: none; color: var(--ink); }
.card__layer { position: absolute; inset: 0; transition: opacity 400ms ease, transform 600ms var(--ease-out); }
.card__still { opacity: 1; z-index: 1; }
.card__motion { opacity: 0; }
.card:hover .card__still, .card:focus-visible .card__still, .card.is-playing .card__still { opacity: 0; }
.card:is(:hover, :focus-visible, .is-playing) .card__motion { opacity: 1; }
.card:hover .card__layer, .card:focus-visible .card__layer { transform: scale(1.03); }
.card__title {
  position: absolute; z-index: 2; left: 16px; bottom: 16px; right: 16px; display: flex; justify-content: space-between; align-items: end; gap: 8px;
  opacity: 0; transform: translateY(8px); transition: opacity 300ms ease-out 100ms, transform 300ms ease-out 100ms;
}
.card__title b { font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-weight: 500; font-size: 20px; line-height: 1.2; background: var(--surface); padding: 6px 12px; border-radius: 6px; }
.card__title i { font-style: normal; font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; background: var(--surface); padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.card:hover .card__title, .card:focus-visible .card__title, .card.is-playing .card__title { opacity: 1; transform: none; }




/* real cover images sit over the card's tile color; the "animated" layer pans the same image until she has MP4s */
.card .cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.cover--motion { animation: kenburns 6s ease-in-out infinite alternate; animation-play-state: paused; }
.card:is(:hover, :focus-visible, .is-playing) .cover--motion { animation-play-state: running; }
@keyframes kenburns { from { transform: scale(1.04) translate(0, 0); } to { transform: scale(1.14) translate(-3%, -2%); } }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-5); align-items: start; }
.portrait { position: relative; aspect-ratio: 4 / 5; max-width: 100%; border-radius: 200px 200px var(--radius) var(--radius); overflow: hidden; background: linear-gradient(170deg, var(--tile-1), var(--tile-2)); }
.portrait svg { position: absolute; inset: auto 0 0 0; width: 100%; height: 82%; }
.portrait .slot-tag { justify-content: center; }
.about__body { display: grid; gap: var(--space-3); min-width: 0; }
.about__body p { max-width: 62ch; }
.typing { font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.3; min-height: 1.3em; }
.typing .typed { color: var(--accent); font-style: italic; }
.typing .caret { display: inline-block; width: 2px; height: 0.9em; margin-left: 3px; background: var(--accent); vertical-align: -0.08em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.statements { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); margin-top: var(--space-3); padding-top: var(--space-4); border-top: 1px solid var(--line); }
.statements h3 { font-size: 22px; line-height: 1.3; margin-bottom: var(--space-1); font-weight: 500; }
.statements p { font-size: 16px; color: var(--muted); }
.skills { display: flex; flex-wrap: wrap; gap: var(--space-1); list-style: none; margin: 0; padding: 0; }
.skills li { font-size: 14px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; gap: var(--space-4); } .portrait { max-width: 420px; } }
@media (max-width: 560px) { .statements { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact { display: grid; gap: var(--space-4); justify-items: start; }
.contact h2 { font-size: clamp(36px, 5.4vw, 68px); line-height: 1.06; letter-spacing: -0.02em; font-weight: 350; max-width: 16ch; }
.contact h2 em { color: var(--accent); }
.contact__row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.email-big { font-size: clamp(20px, 2.4vw, 28px); font-weight: 500; color: var(--accent); overflow-wrap: anywhere; }
.btn {
  font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; border: 0; border-radius: 999px; padding: 12px 22px;
  background: var(--accent); color: var(--on-accent); text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  transition: transform 200ms ease-out, filter 200ms ease-out;
}
.btn:hover { transform: translateY(-2px); filter: brightness(0.94); }
.btn:active { transform: translateY(1px); transition-duration: 100ms; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.contact__list { display: grid; grid-template-columns: repeat(3, minmax(0, auto)); gap: var(--space-1) var(--space-5); margin-top: var(--space-2); }
.contact__list div { display: grid; gap: 2px; }
.contact__list a, .contact__list span:last-child { font-size: 17px; }
@media (max-width: 640px) { .contact__list { grid-template-columns: 1fr; gap: var(--space-2); } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); flex-wrap: wrap; padding-block: var(--space-4); font-size: 14px; color: var(--muted); }
.footer__inner nav { display: flex; gap: var(--space-3); }

/* ---------- Scroll reveal (only items below the fold start hidden) ---------- */
.reveal { transition: opacity 600ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
.reveal.is-pending { opacity: 0; transform: translateY(32px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal.is-pending { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
