/* ============================================================
   TOKENS — old-money, cream & oxblood
   ============================================================ */
:root {
  --bg: #ede4d3;
  --bg-2: #e5dbc8;
  --bg-3: #f2eadb;
  --ink: #1b1815;
  --ink-dim: rgba(27, 24, 21, 0.62);
  --ink-mute: rgba(27, 24, 21, 0.38);

  --plum: #5b2340;
  --plum-2: #7a3255;
  --wine: #3d1525;
  --rose: #b87c7c;
  --peach: #d99a7e;
  --blush: #e3b9a8;
  --gold: #8f6a3e;
  --bronze: #a37946;

  --line: rgba(91, 35, 64, 0.18);
  --line-ink: rgba(27, 24, 21, 0.14);
  --line-strong: rgba(91, 35, 64, 0.4);

  --serif: 'Fraunces', 'Times New Roman', serif;
  --sans: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.55;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
}

body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9997;
  opacity: 0.32;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.11 0 0 0 0 0.1 0 0 0 0 0.08 0 0 0 0.35 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
}

body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(ellipse 60% 50% at 12% 18%, rgba(184, 124, 124, 0.16), transparent 60%),
    radial-gradient(ellipse 50% 50% at 88% 82%, rgba(91, 35, 64, 0.08), transparent 60%),
    radial-gradient(ellipse 40% 40% at 70% 6%, rgba(217, 154, 126, 0.14), transparent 60%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(227, 185, 168, 0.12), transparent 60%);
}

::selection { background: var(--plum); color: var(--bg); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

@media (hover: hover) and (pointer: fine) {
  body, a, button { cursor: none; }
}

/* ============================================================
   LAYOUT
   ============================================================ */
.wrap { width: 100%; max-width: 1480px; margin: 0 auto; padding: 0 88px; position: relative; }
@media (max-width: 1200px) { .wrap { padding: 0 64px; } }
@media (max-width: 820px) { .wrap { padding: 0 40px; } }
@media (max-width: 560px) { .wrap { padding: 0 22px; } }
@media (max-width: 380px) { .wrap { padding: 0 16px; } }

section { position: relative; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--plum);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--plum);
  display: inline-block;
  opacity: 0.6;
}

.num {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--plum);
  opacity: 0.75;
}

/* Fleuron divider (old-money flourish) */
.fleuron {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 36px 0;
  color: var(--plum);
}
.fleuron::before, .fleuron::after {
  content: "";
  flex: 0 0 80px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--plum) 50%, transparent);
  opacity: 0.55;
}
.fleuron svg { width: 34px; height: 34px; opacity: 0.8; }

/* ============================================================
   PEONY & BUD DECORATIONS
   ============================================================ */
.peony, .bud {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transform: scale(0.15) rotate(var(--r, -8deg));
  transform-origin: center;
  transition:
    opacity 1.8s cubic-bezier(.2,.8,.2,1),
    transform 1.9s cubic-bezier(.34,1.26,.64,1);
  --proximity: 0;
}
.peony.bloomed, .bud.bloomed {
  opacity: calc(var(--o, 0.22) + var(--proximity) * 0.45);
  transform: scale(1) rotate(0deg);
}
.peony svg, .bud svg {
  width: 100%;
  height: 100%;
  display: block;
  transform-origin: center;
  animation: peonyFloat 24s ease-in-out infinite, peonyTurn 140s linear infinite;
}
.peony.reverse svg, .bud.reverse svg { animation-direction: reverse; }
.peony.still svg, .bud.still svg { animation: peonyFloat 28s ease-in-out infinite; }

@keyframes peonyFloat {
  0%, 100% { translate: 0 0; }
  33% { translate: 8px -14px; }
  66% { translate: -6px -8px; }
}
@keyframes peonyTurn { to { rotate: 360deg; } }

/* Per-ring fill — responds to mouse proximity */
.peony svg .petal-out {
  fill: currentColor;
  fill-opacity: calc(0.02 + var(--proximity) * 0.35);
  stroke: currentColor;
  stroke-opacity: calc(0.5 + var(--proximity) * 0.4);
  transition: fill-opacity .6s, stroke-opacity .6s;
}
.peony svg .petal-mid {
  fill: currentColor;
  fill-opacity: calc(0.03 + var(--proximity) * 0.45);
  stroke: currentColor;
  stroke-opacity: calc(0.65 + var(--proximity) * 0.3);
  transition: fill-opacity .6s, stroke-opacity .6s;
}
.peony svg .petal-in {
  fill: currentColor;
  fill-opacity: calc(0.05 + var(--proximity) * 0.55);
  stroke: currentColor;
  stroke-opacity: calc(0.8 + var(--proximity) * 0.2);
  transition: fill-opacity .6s, stroke-opacity .6s;
}
.peony svg .stem, .peony svg .leaf {
  fill: currentColor;
  fill-opacity: calc(0.02 + var(--proximity) * 0.25);
  stroke: currentColor;
  stroke-opacity: calc(0.4 + var(--proximity) * 0.3);
  transition: fill-opacity .6s, stroke-opacity .6s;
}
.peony svg .stamen-dot {
  fill: currentColor;
  fill-opacity: calc(0.35 + var(--proximity) * 0.5);
  transition: fill-opacity .6s;
}
.peony svg .stamen-ring {
  fill: none;
  stroke: currentColor;
  stroke-opacity: calc(0.5 + var(--proximity) * 0.4);
  transition: stroke-opacity .6s;
}

/* Bud paths */
.bud svg .b-body {
  fill: currentColor;
  fill-opacity: calc(0.04 + var(--proximity) * 0.4);
  stroke: currentColor;
  stroke-opacity: calc(0.6 + var(--proximity) * 0.3);
  transition: fill-opacity .6s, stroke-opacity .6s;
}
.bud svg .b-stem, .bud svg .b-leaf {
  fill: currentColor;
  fill-opacity: calc(0.02 + var(--proximity) * 0.3);
  stroke: currentColor;
  stroke-opacity: calc(0.45 + var(--proximity) * 0.35);
  transition: fill-opacity .6s, stroke-opacity .6s;
}

/* ============================================================
   PEONY PLACEMENT — 23 across the page, plus buds
   ============================================================ */
/* Hero */
.peony-hero-1 { top: 10vh; right: -70px; width: 360px; height: 360px; color: var(--plum); --o: 0.24; --r: -15deg; }
.peony-hero-2 { bottom: 6vh; left: -60px; width: 240px; height: 240px; color: var(--rose); --o: 0.26; --r: 20deg; }
.peony-hero-3 { top: 40vh; left: 35%; width: 150px; height: 150px; color: var(--peach); --o: 0.22; --r: 10deg; }
.peony-hero-4 { top: 4vh; left: 10%; width: 130px; height: 130px; color: var(--plum-2); --o: 0.18; --r: -25deg; }
.peony-hero-5 { bottom: 18vh; right: 20%; width: 120px; height: 120px; color: var(--rose); --o: 0.20; --r: 8deg; }

/* About */
.peony-about-1 { top: 50px; right: -40px; width: 280px; height: 280px; color: var(--plum); --o: 0.18; --r: 12deg; }
.peony-about-2 { bottom: -40px; left: -80px; width: 220px; height: 220px; color: var(--rose); --o: 0.20; --r: -18deg; }
.peony-about-3 { top: 45%; right: 30%; width: 100px; height: 100px; color: var(--peach); --o: 0.22; --r: 5deg; }

/* Practice */
.peony-practice-1 { top: 60px; right: 2%; width: 190px; height: 190px; color: var(--peach); --o: 0.20; --r: -12deg; }
.peony-practice-2 { bottom: 80px; left: -50px; width: 260px; height: 260px; color: var(--plum); --o: 0.16; --r: 14deg; }
.peony-practice-3 { top: 50%; right: -50px; width: 140px; height: 140px; color: var(--rose); --o: 0.18; --r: 20deg; }

/* Journey */
.peony-journey-1 { top: 40px; left: -60px; width: 200px; height: 200px; color: var(--plum); --o: 0.15; --r: -22deg; }
.peony-journey-2 { bottom: 40px; right: -40px; width: 220px; height: 220px; color: var(--peach); --o: 0.18; --r: 16deg; }
.peony-journey-3 { top: 40%; right: 8%; width: 110px; height: 110px; color: var(--rose); --o: 0.18; --r: 6deg; }

/* Credentials */
.peony-cred-1 { top: -30px; left: -70px; width: 240px; height: 240px; color: var(--rose); --o: 0.20; --r: -16deg; }
.peony-cred-2 { bottom: 80px; right: -50px; width: 220px; height: 220px; color: var(--plum); --o: 0.18; --r: 12deg; }
.peony-cred-3 { top: 45%; right: -40px; width: 140px; height: 140px; color: var(--peach); --o: 0.22; --r: 8deg; }
.peony-cred-4 { bottom: 20%; left: 40%; width: 100px; height: 100px; color: var(--plum-2); --o: 0.18; --r: -10deg; }

/* Contact */
.peony-contact-1 { top: 8%; left: -100px; width: 400px; height: 400px; color: var(--rose); --o: 0.22; --r: -14deg; }
.peony-contact-2 { bottom: 6%; right: -80px; width: 340px; height: 340px; color: var(--peach); --o: 0.24; --r: 18deg; }
.peony-contact-3 { top: 50%; left: 42%; width: 180px; height: 180px; color: var(--plum); --o: 0.18; --r: -8deg; }
.peony-contact-4 { top: 20%; right: 12%; width: 140px; height: 140px; color: var(--plum-2); --o: 0.18; --r: 22deg; }
.peony-contact-5 { bottom: 30%; left: 8%; width: 120px; height: 120px; color: var(--blush); --o: 0.22; --r: -6deg; }

/* Buds — small ornaments */
.bud-hero-1 { top: 30vh; right: 6%; width: 70px; height: 100px; color: var(--plum); --o: 0.28; --r: -18deg; }
.bud-about-1 { top: 30%; left: 4%; width: 60px; height: 85px; color: var(--rose); --o: 0.28; --r: 14deg; }
.bud-practice-1 { top: 20%; right: 14%; width: 55px; height: 78px; color: var(--plum-2); --o: 0.30; --r: -10deg; }
.bud-journey-1 { top: 15%; right: 14%; width: 60px; height: 85px; color: var(--rose); --o: 0.28; --r: 8deg; }
.bud-cred-1 { top: 20%; left: 32%; width: 55px; height: 78px; color: var(--peach); --o: 0.30; --r: -14deg; }
.bud-contact-1 { top: 35%; right: 30%; width: 70px; height: 100px; color: var(--plum); --o: 0.28; --r: 16deg; }

@media (max-width: 820px) {
  .peony { --o: 0.18 !important; }
  .peony-hero-3, .peony-hero-4, .peony-hero-5,
  .peony-about-2, .peony-about-3,
  .peony-practice-2, .peony-practice-3,
  .peony-journey-1, .peony-journey-3,
  .peony-cred-2, .peony-cred-4,
  .peony-contact-3, .peony-contact-4, .peony-contact-5 { display: none; }
  .peony-hero-1 { width: 220px; height: 220px; right: -80px; }
  .peony-about-1 { width: 180px; height: 180px; }
  .peony-contact-1, .peony-contact-2 { width: 220px; height: 220px; }
  .bud-hero-1, .bud-about-1, .bud-practice-1, .bud-journey-1, .bud-cred-1, .bud-contact-1 { display: none; }
}

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
/* A small plum dot, a thin ring that trails it, and a tiny pill label on links.
   No blend modes (difference turned plum into green over the cream). */
.cursor, .cursor-ring, .cursor-label {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  will-change: transform;
}
.cursor {
  width: 6px; height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: var(--plum);
  z-index: 9999;
  transition: background-color .3s, opacity .3s;
}
.cursor-ring {
  width: 30px; height: 30px;
  margin: -15px 0 0 -15px;
  border-radius: 50%;
  border: 1px solid rgba(91, 35, 64, 0.45);
  z-index: 9998;
  transition: width .35s cubic-bezier(.2,.8,.2,1), height .35s cubic-bezier(.2,.8,.2,1),
              margin .35s cubic-bezier(.2,.8,.2,1), border-color .3s, background-color .3s, opacity .3s;
}
.cursor-ring.hover {
  width: 44px; height: 44px;
  margin: -22px 0 0 -22px;
  border-color: var(--plum);
  background: rgba(91, 35, 64, 0.07);
}
.cursor-ring.down { width: 22px; height: 22px; margin: -11px 0 0 -11px; }
.cursor-label {
  z-index: 9998;
  margin: 18px 0 0 18px;               /* sits just below-right of the pointer, never on top of the text */
  padding: 5px 9px 4px;
  border-radius: 100px;
  background: var(--plum);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  scale: 0.85;
  transition: opacity .25s, scale .3s cubic-bezier(.2,.8,.2,1);
}
.cursor-label.show { opacity: 1; scale: 1; }
/* over the plum cards the cursor switches to blush so it stays visible */
.cursor.on-dark { background: var(--blush); }
.cursor-ring.on-dark { border-color: rgba(227, 185, 168, 0.7); }
.cursor-ring.on-dark.hover { background: rgba(227, 185, 168, 0.12); border-color: var(--blush); }
.cursor-label.on-dark { background: var(--bg); color: var(--plum); }
.cursor.gone, .cursor-ring.gone, .cursor-label.gone { opacity: 0; }
@media (hover: none), (pointer: coarse) {
  .cursor, .cursor-ring, .cursor-label { display: none; }
}

/* ============================================================
   SCROLL PROGRESS
   ============================================================ */
.progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: var(--plum);
  width: 0%;
  z-index: 999;
  transition: width .1s linear;
}

/* ============================================================
   LOADER
   ============================================================ */
.loader {
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 1.1s cubic-bezier(.86,0,.07,1);
}
.loader.out { transform: translateY(-100%); }
.loader-name {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: 400;
  font-style: italic;
  color: var(--ink);
  opacity: 0;
  transform: translateY(16px);
  animation: loaderFade 1s .15s forwards ease;
  letter-spacing: -0.02em;
}
.loader-line {
  width: 240px;
  max-width: 62vw;
  height: 1px;
  background: var(--line);
  margin-top: 24px;
  overflow: hidden;
  position: relative;
}
.loader-line::before {
  content: "";
  position: absolute;
  inset: 0 100% 0 0;
  background: var(--plum);
  animation: loaderFill 1.8s cubic-bezier(.4,0,.2,1) forwards;
}
.loader-meta {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
  opacity: 0;
  animation: loaderFade 1s .4s forwards ease;
}
@keyframes loaderFade { to { opacity: 1; transform: translateY(0); } }
@keyframes loaderFill { to { inset: 0 0 0 0; } }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  padding: 26px 88px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 900;
  transition: padding .4s, background .4s, border-color .4s;
  border-bottom: 1px solid transparent;
  mix-blend-mode: multiply;
}
.nav.scrolled {
  padding: 16px 88px;
  background: rgba(237, 228, 211, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
  mix-blend-mode: normal;
}
.nav-logo {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 500;
  font-style: italic;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.nav-logo em { font-style: normal; color: var(--plum); }
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}
@media (max-width: 1200px) { .nav-links { gap: 24px; } }
.nav-links a {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
  position: relative;
  transition: color .3s;
}
.nav-links a:hover { color: var(--plum); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--plum);
  transition: width .4s cubic-bezier(.2,.8,.2,1);
}
.nav-links a:hover::after { width: 100%; }

.nav-clock {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-clock .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--plum);
  animation: clockPulse 2.2s infinite;
}
@keyframes clockPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--plum);
  padding: 8px 14px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--plum);
  border-radius: 100px;
}

.mobile-menu { display: none; }

@media (max-width: 980px) {
  .nav { padding: 18px 40px; }
  .nav.scrolled { padding: 12px 40px; }
  .nav-links { display: none; }
  .nav-toggle { display: inline-block; }
  .nav-clock { display: none; }

  /* Sits just under the nav (so "Close" stays tappable). When closed it is fully hidden —
     translateY(-100%) alone let links taller than a short phone screen spill back into view. */
  .mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 890;
    display: flex;
    flex-direction: column;
    padding: 96px 22px 32px;
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateY(-100%);
    visibility: hidden;
    transition: transform .6s cubic-bezier(.86,0,.07,1), visibility 0s linear .6s;
  }
  .mobile-menu.open { transform: translateY(0); visibility: visible; transition: transform .6s cubic-bezier(.86,0,.07,1), visibility 0s; }
  .mobile-menu a {
    font-family: var(--serif);
    font-size: clamp(1.7rem, 7.5vw, 2.2rem);
    font-weight: 400;
    font-style: italic;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    flex-shrink: 0;
  }
  .mobile-menu a em { color: var(--plum); }
  body.menu-open { overflow: hidden; }
  body.menu-open .nav { mix-blend-mode: normal; background: var(--bg); border-bottom-color: var(--line); }
}
@media (max-width: 560px) {
  .nav { padding: 14px 22px; }
  .nav.scrolled { padding: 10px 22px; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  padding-top: 160px;
  padding-bottom: 80px;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 48px;
  align-items: end;
  position: relative;
  overflow: hidden;
}
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 130px; padding-bottom: 50px; gap: 32px; min-height: auto; }
}
@media (max-width: 720px) {
  .hero { padding-top: 110px; padding-bottom: 40px; gap: 28px; }
}

.hero-copy { position: relative; z-index: 2; }

.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.4rem, 17vw, 19rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
  margin-top: 24px;
  margin-bottom: 20px;
  overflow: hidden;
  word-break: break-word;
}
@media (max-width: 720px) {
  .hero-title { font-size: clamp(3rem, 16vw, 6rem); margin-top: 18px; margin-bottom: 14px; letter-spacing: -0.04em; }
  /* Kill the word-reveal + reveal animations on phones — too fragile; show content immediately */
  .hero-title .word span { transform: translateY(0) !important; }
  .hero .reveal { opacity: 1 !important; transform: none !important; }
}
.hero-title .word { display: inline-block; overflow: hidden; vertical-align: bottom; }
.hero-title .word span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1.2s cubic-bezier(.2,.8,.2,1);
}
.hero-title.in .word span { transform: translateY(0); }
.hero-title em { font-style: italic; color: var(--plum); }
.hero-title .dot {
  display: inline-block;
  width: 0.18em; height: 0.18em;
  background: var(--plum);
  border-radius: 50%;
  vertical-align: baseline;
  margin-left: 0.04em;
  margin-bottom: 0.08em;
}

.hero-fullname {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.62em;
  word-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--plum);
  opacity: 0.8;
}

.hero-bio {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  font-style: italic;
  font-weight: 400;
  color: var(--ink);
  max-width: 520px;
  margin-top: 32px;
  line-height: 1.45;
  letter-spacing: -0.01em;
}
@media (max-width: 720px) {
  .hero-bio { font-size: 1rem; margin-top: 22px; line-height: 1.5; }
}
.hero-bio .ink-dim { color: var(--ink-dim); }
.hero-bio em { color: var(--plum); font-style: italic; }

.hero-meta {
  display: flex;
  gap: 42px;
  margin-top: 42px;
  flex-wrap: wrap;
}
@media (max-width: 720px) {
  .hero-meta { gap: 24px 32px; margin-top: 28px; }
}
.hero-meta-item .k {
  display: block;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--plum);
  opacity: 0.75;
  margin-bottom: 6px;
}
.hero-meta-item .v {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 500;
}

/* "Currently" calling-card stack — replaces the portrait */
.hero-card-stack {
  position: relative;
  width: 100%;
  max-width: 460px;
  justify-self: end;
  z-index: 2;
  perspective: 1400px;
}
@media (max-width: 980px) {
  .hero-card-stack { justify-self: start; max-width: 520px; margin-top: 8px; }
}
.hc-back {
  position: absolute;
  inset: 0;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: var(--bg-2);
  transition: transform 1.2s cubic-bezier(.2,.8,.2,1);
}
.hc-back-1 { transform: rotate(-3.5deg) translate(-14px, 10px); background: var(--blush); opacity: 0.55; }
.hc-back-2 { transform: rotate(4deg) translate(16px, 14px); background: var(--plum); opacity: 0.9; }
.hero-card-stack:hover .hc-back-1 { transform: rotate(-6deg) translate(-26px, 14px); }
.hero-card-stack:hover .hc-back-2 { transform: rotate(7deg) translate(28px, 18px); }

.hero-card {
  position: relative;
  background: #fbf5e8;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  padding: 34px 34px 26px;
  box-shadow: 0 40px 90px -40px rgba(91, 35, 64, 0.35), 0 2px 6px rgba(61, 21, 37, 0.06);
  transform-style: preserve-3d;
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
  overflow: hidden;
}
.hero-card::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid var(--line);
  border-radius: 2px;
  pointer-events: none;
}
/* Plum curtain lifts when the hero reveals */
.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--plum);
  z-index: 5;
  transform-origin: top;
  transform: scaleY(1);
}
.hero-card-stack.in .hero-card::before { animation: curtain 1.3s .35s cubic-bezier(.86,0,.07,1) forwards; }
@keyframes curtain {
  0% { transform: scaleY(1); }
  100% { transform: scaleY(0); }
}
.hc-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.hc-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--plum);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.hc-label .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--plum);
  animation: clockPulse 2.2s infinite;
}
.hc-seal { width: 30px; height: 30px; color: var(--plum); opacity: 0.8; animation: peonyTurn 40s linear infinite; }
.hc-seal svg { width: 100%; height: 100%; }
.hc-roles { list-style: none; counter-reset: role; }
.hc-roles li {
  counter-increment: role;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 2px 8px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.hc-roles li::before {
  content: counter(role, lower-roman) ".";
  grid-row: 1 / 4;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--plum);
  opacity: 0.6;
  padding-top: 8px;
}
.hc-role {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.hc-org {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.02rem;
  color: var(--plum);
  justify-self: start;
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
a.hc-org:hover { border-bottom-color: var(--plum); }
.hc-loc {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 2px;
}
.hc-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 18px;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.hc-line { flex: 1; height: 1px; background: linear-gradient(to right, var(--plum), transparent); opacity: 0.4; }
@media (max-width: 720px) {
  .hero-card { padding: 26px 22px 20px; }
  .hc-back-1 { transform: rotate(-2.5deg) translate(-6px, 8px); }
  .hc-back-2 { transform: rotate(2.5deg) translate(6px, 10px); }
}

.scroll-cue {
  position: absolute;
  left: 0;
  bottom: -60px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--plum);
  opacity: 0.75;
  display: flex;
  align-items: center;
  gap: 10px;
}
@media (max-width: 980px) { .scroll-cue { display: none; } }
.scroll-cue::after {
  content: "";
  width: 40px; height: 1px;
  background: var(--plum);
  animation: scrollCue 2s infinite;
}
@keyframes scrollCue {
  0%, 100% { transform: scaleX(0.4); transform-origin: left; }
  50% { transform: scaleX(1); }
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  overflow: hidden;
  margin: 80px 0;
  position: relative;
  z-index: 1;
  background: linear-gradient(to right, transparent, var(--bg) 8%, var(--bg) 92%, transparent);
}
@media (max-width: 720px) {
  .marquee-strip { margin: 50px 0; padding: 16px 0; }
}
.marquee-track {
  display: flex;
  gap: 60px;
  align-items: center;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee-strip:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-item {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 5vw, 4.6rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: var(--ink);
}
@media (max-width: 720px) { .marquee-track { gap: 40px; } }
.marquee-item em { font-style: italic; color: var(--plum); }
.marquee-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--plum);
  flex-shrink: 0;
}

/* ============================================================
   SECTION
   ============================================================ */
.sect { padding: 120px 0; position: relative; overflow: hidden; }
@media (max-width: 720px) { .sect { padding: 72px 0; } }

.sect-head {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 40px;
  margin-bottom: 80px;
  position: relative;
  z-index: 2;
}
@media (max-width: 720px) {
  .sect-head { grid-template-columns: 1fr; gap: 14px; margin-bottom: 56px; }
}
.sect-head .num { padding-top: 14px; }
.sect-head h2 {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 7vw, 6rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.035em;
}
.sect-head h2 em { font-style: italic; color: var(--plum); }

/* ============================================================
   ABOUT
   ============================================================ */
.about-body {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  gap: 40px;
  align-items: start;
  position: relative;
  z-index: 2;
}
@media (max-width: 820px) {
  .about-body { grid-template-columns: 1fr; gap: 24px; }
}
.about-text {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  line-height: 1.45;
  color: var(--ink);
  font-weight: 400;
  letter-spacing: -0.005em;
}
.about-text p + p { margin-top: 20px; }
.about-text em { color: var(--plum); font-style: italic; }

/* Drop cap on first paragraph — old-money editorial */
.about-text p:first-child::first-letter {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 3.8em;
  float: left;
  line-height: 0.85;
  padding: 8px 12px 0 0;
  color: var(--plum);
}

.about-text .tip {
  position: relative;
  border-bottom: 1px dotted var(--plum);
  cursor: help;
  font-style: italic;
  color: var(--plum);
}
.about-text .tip::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: var(--plum);
  color: var(--bg);
  padding: 8px 12px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .3s;
  border-radius: 2px;
}
.about-text .tip:hover::after, .about-text .tip:focus::after {
  opacity: 1; transform: translateX(-50%) translateY(0);
}

.about-aside { padding-top: 14px; }
.about-aside .stat {
  padding: 22px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: baseline;
}
.about-aside .stat:last-child { border-bottom: 1px solid var(--line); }
.stat-v {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
}
.stat-v em { font-style: italic; color: var(--plum); }
.stat-l {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--plum);
  opacity: 0.75;
  text-align: right;
  max-width: 160px;
}

/* ============================================================
   JOURNEY
   ============================================================ */
.journey-list {
  border-top: 1px solid var(--line);
  position: relative;
  z-index: 2;
}
.journey-item {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 40px;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
  transition: color .4s;
}
@media (max-width: 820px) {
  .journey-item { grid-template-columns: 1fr; gap: 8px; padding: 26px 0; }
}
.j-date {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--plum);
  opacity: 0.8;
}
.j-role {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.j-company {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink-dim);
}
.j-company a {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  border-bottom: 1px solid transparent;
  transition: border-color .3s, color .3s;
}
.j-company a:hover { color: var(--plum); border-bottom-color: var(--plum); }
.j-company .arrow {
  font-family: var(--sans);
  font-size: 0.9em;
  transition: transform .3s;
}
.j-company a:hover .arrow { transform: translate(3px, -3px); }
.j-loc {
  font-size: .85em;
  color: var(--ink-mute);
  font-style: normal;
  font-family: var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-top: 4px;
}
.j-now {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: 12px;
  padding: 3px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--plum);
  vertical-align: middle;
}
.j-now::before {
  content: "";
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--plum);
  animation: clockPulse 2.2s infinite;
}
.j-sub {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  font-weight: 400;
  color: var(--ink-dim);
  margin-top: 6px;
  letter-spacing: 0;
}

/* ============================================================
   WORK
   ============================================================ */
.work-intro {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
  margin-bottom: 56px;
  position: relative;
  z-index: 2;
}
@media (max-width: 720px) { .work-intro { grid-template-columns: 1fr; gap: 20px; margin-bottom: 40px; } }
.work-intro p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  color: var(--ink-dim);
  max-width: 620px;
  line-height: 1.5;
}
.work-intro p em { color: var(--plum); }
.wf { display: block; }
.wf-frame {
  background: #fbf5e8;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 30px 70px -40px rgba(91, 35, 64, 0.35);
  transition: transform .7s cubic-bezier(.2,.8,.2,1), box-shadow .7s;
}
.wf:hover .wf-frame { transform: translateY(-6px) rotate(-0.4deg); box-shadow: 0 44px 90px -40px rgba(91, 35, 64, 0.5); }
.wf-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}
.wf-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.wf-bar i:nth-child(1) { background: var(--plum); opacity: .7; }
.wf-bar i:nth-child(2) { background: var(--rose); opacity: .7; }
.wf-bar i:nth-child(3) { background: var(--peach); opacity: .7; }
.wf-bar span {
  margin-left: 10px;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  color: var(--ink-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wf-shot { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-2); position: relative; }
.wf-shot img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top;
  filter: saturate(0.9) sepia(0.06);
  transform: scale(1.01);
  transition: transform 1.4s cubic-bezier(.2,.8,.2,1), filter .6s;
}
.wf:hover .wf-shot img { transform: scale(1.06); filter: none; }
.wf-meta {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 16px;
  align-items: baseline;
  padding-top: 20px;
}
.wf-num { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.18em; color: var(--plum); opacity: .7; }
.wf-name {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.025em;
  transition: color .4s;
}
.wf:hover .wf-name { color: var(--plum); }
.wf-name em { font-style: italic; color: var(--plum); }
.wf-desc { font-family: var(--serif); font-style: italic; color: var(--ink-dim); margin-top: 6px; line-height: 1.45; }
.wf-cat, .wi-cat {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--plum);
  opacity: .8;
  white-space: nowrap;
}
@media (max-width: 560px) {
  .wf-meta { grid-template-columns: 1fr; gap: 6px; }
  .wf-num { display: none; }
}

.wi-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.wi-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-top: 12px;
}
.wi-title em { font-style: italic; color: var(--plum); }
.wi-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.wi-filter {
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  padding: 8px 14px;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  transition: background .3s, color .3s, border-color .3s;
}
.wi-filter sup { font-size: 0.85em; margin-left: 3px; color: var(--plum); opacity: .8; }
.wi-filter:hover { border-color: var(--plum); color: var(--plum); }
.wi-filter[aria-pressed="true"] { background: var(--plum); border-color: var(--plum); color: var(--bg); }
.wi-filter[aria-pressed="true"] sup { color: var(--blush); }
.wi-filter:focus-visible { outline: 2px solid var(--plum); outline-offset: 2px; }

.peony-work-1 { top: 40px; right: -60px; width: 240px; height: 240px; color: var(--rose); --o: 0.18; --r: 14deg; }
.peony-work-2 { top: 48%; left: -80px; width: 260px; height: 260px; color: var(--plum); --o: 0.14; --r: -12deg; }
.peony-work-3 { bottom: 60px; right: 6%; width: 150px; height: 150px; color: var(--peach); --o: 0.2; --r: 8deg; }
@media (max-width: 820px) { .peony-work-2, .peony-work-3 { display: none; } }

/* ============================================================
   CREDENTIALS
   ============================================================ */
.cred-intro {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  font-style: italic;
  color: var(--ink-dim);
  max-width: 620px;
  margin-bottom: 50px;
  line-height: 1.5;
  position: relative;
  z-index: 2;
}
.cred-intro em { color: var(--plum); }

.cred-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
  position: relative;
  z-index: 2;
}
/* Featured cert spans two rows on the left; four smaller cards fill a 2×2 */
.cred-grid > .cred-feature { grid-row: span 2; }
@media (max-width: 1100px) {
  .cred-grid { grid-template-columns: repeat(2, 1fr); }
  .cred-grid > .cred-feature { grid-row: auto; grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .cred-grid { grid-template-columns: 1fr; }
}

/* Sub-heading rows inside Credentials: i. Education / ii. Certifications / iii. Continued study */
.cred-part {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 80px 0 26px;
  position: relative;
  z-index: 2;
}
.cred-part:first-of-type { margin-top: 0; }
.cred-part::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--line-strong), transparent);
}
.cred-part .num { opacity: 1; }
.cred-part h3 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  letter-spacing: -0.02em;
}
.cred-part .cred-part-meta {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  order: 3;
}

/* Diplomas */
.edu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  position: relative;
  z-index: 2;
}
@media (max-width: 820px) { .edu-grid { grid-template-columns: 1fr; gap: 20px; } }
.diploma {
  position: relative;
  background: #fbf5e8;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  padding: 40px 40px 34px;
  overflow: hidden;
  box-shadow: 0 30px 70px -45px rgba(91, 35, 64, 0.35);
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
}
.diploma:hover { transform: translateY(-4px); }
.diploma::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid var(--line);
  border-radius: 2px;
  pointer-events: none;
}
.dip-top { display: flex; justify-content: space-between; align-items: center; position: relative; }
.dip-seal {
  width: 58px; height: 58px;
  border-radius: 50%;
  border: 1px solid var(--plum);
  display: grid;
  place-items: center;
  color: var(--plum);
  position: relative;
  transition: transform 1.2s cubic-bezier(.2,.8,.2,1);
}
.dip-seal::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1px dashed var(--line-strong);
}
.dip-seal svg { width: 26px; height: 26px; }
.diploma:hover .dip-seal { transform: rotate(120deg); }
.dip-mono {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(5rem, 11vw, 9rem);
  line-height: 0.85;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1px var(--plum);
  margin: 26px 0 22px;
  transition: color .8s;
}
.diploma:hover .dip-mono { color: rgba(91, 35, 64, 0.1); }
.dip-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.dip-title em { font-style: italic; color: var(--plum); }
.dip-sub {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-dim);
}
.dip-sub span:last-child {
  font-family: var(--mono);
  font-style: normal;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--plum);
  opacity: .75;
  align-self: center;
  white-space: nowrap;
}
@media (max-width: 560px) { .diploma { padding: 30px 24px 26px; } .dip-sub { flex-direction: column; gap: 8px; } }

/* Featured cert — permanently inked */
.cred.cred-feature { background: var(--plum); }
.cred.cred-feature::before { background: var(--wine); }
.cred.cred-feature, .cred.cred-feature * { color: var(--bg); }
.cred.cred-feature .cred-issuer { color: var(--blush); }
.cred.cred-feature .cred-year { color: rgba(237, 228, 211, 0.6); }
.cred.cred-feature .cred-title { font-size: clamp(2.4rem, 4vw, 3.4rem); }
.cred.cred-feature .cred-title em { color: var(--blush); }
.cred.cred-feature .cred-link { border-color: var(--bg); color: var(--bg); }
.cred.cred-feature .cred-id { color: var(--blush); opacity: .55; }
.cf-body {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.5;
  color: rgba(237, 228, 211, 0.82) !important;
  margin: -12px 0 30px;
  max-width: 340px;
}
.cf-seal {
  position: absolute;
  bottom: -70px; right: -70px;
  width: 260px; height: 260px;
  color: var(--blush);
  opacity: 0.12;
  z-index: 0 !important;
  animation: peonyTurn 90s linear infinite;
}
.cf-seal svg { width: 100%; height: 100%; }

/* AI track progress meter */
.track-meter { display: grid; gap: 10px; }
.track-meter-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--plum);
}
.track-meter-bar { height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; }
.track-meter-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(to right, var(--plum), var(--rose));
  transition: width 1.8s cubic-bezier(.2,.8,.2,1) .3s;
}
.track.in .track-meter-bar span { width: var(--pct); }

.cred {
  background: var(--bg);
  padding: 38px 34px 34px;
  display: flex;
  flex-direction: column;
  min-height: 340px;
  position: relative;
  overflow: hidden;
  transition: background .5s;
}
.cred::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--plum);
  transform: translateY(100%);
  transition: transform .65s cubic-bezier(.86,0,.07,1);
  z-index: 0;
}
.cred:hover::before { transform: translateY(0); }
.cred > * { position: relative; z-index: 1; transition: color .4s; }
.cred:hover, .cred:hover * { color: var(--bg); }

.cred-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 80px;
}
.cred-issuer {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--plum);
  opacity: 0.85;
}
.cred-year {
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
}
.cred-title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: auto 0 28px;
}
.cred-title em { font-style: italic; color: var(--plum); }

.cred-footer { position: relative; min-height: 22px; display: flex; align-items: center; }
.cred-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
  transition: opacity .35s cubic-bezier(.2,.8,.2,1), transform .45s cubic-bezier(.2,.8,.2,1);
}
.cred:hover .cred-link { opacity: 0; transform: translateY(8px); }
.cred-note {
  position: absolute;
  left: 0; right: 0; top: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--bg);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .4s .15s cubic-bezier(.2,.8,.2,1), transform .5s .15s cubic-bezier(.2,.8,.2,1);
  pointer-events: none;
}
.cred:hover .cred-note { opacity: 0.92; transform: translateY(0); }

/* Cred hover — title turns rose/cream inside plum fill */
.cred:hover .cred-title em { color: var(--blush); }

.cred-linkedin {
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}
.cred-linkedin span {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink-dim);
}
.cred-linkedin a {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--plum);
  color: var(--plum);
  transition: color .3s, border-color .3s;
}
.cred-linkedin a:hover { color: var(--wine); border-color: var(--wine); }

/* Credential ID stamp, bottom-right of card (below the footer link) */
.cred-id {
  position: absolute;
  bottom: 12px; right: 16px;
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--plum);
  opacity: 0.38;
  z-index: 1;
  transition: color .4s, opacity .4s;
  pointer-events: none;
}
.cred:hover .cred-id { color: var(--blush); opacity: 0.55; }

/* ============================================================
   CONTINUED-STUDY TRACK (AI / Anthropic reading-list)
   ============================================================ */
.track {
  position: relative;
  z-index: 2;
  padding: 44px 44px 40px;
  background: linear-gradient(180deg, rgba(251,245,232,0.85) 0%, rgba(237,228,211,0.7) 100%);
  border: 1px solid var(--line);
  border-radius: 4px;
}
@media (max-width: 720px) { .track { padding: 28px 22px 24px; } }

.track-head {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 820px) {
  .track-head { grid-template-columns: 1fr; gap: 14px; }
}
.track-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-top: 12px;
}
.track-title em { font-style: italic; color: var(--plum); }
.track-sub {
  font-family: var(--serif);
  font-size: 1rem;
  font-style: italic;
  color: var(--ink-dim);
  line-height: 1.5;
  padding-bottom: 4px;
}
.track-sub em { color: var(--plum); }

.track-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
@media (max-width: 820px) { .track-list { grid-template-columns: 1fr; } }

.track-item {
  border-top: 1px solid var(--line);
}
.track-item:first-child { border-top: none; }
@media (max-width: 820px) {
  .track-item:first-child { border-top: none; }
}
.track-item a, .track-item > span:first-child {
  display: grid;
  grid-template-columns: 90px 1fr auto 18px;
  gap: 18px;
  align-items: baseline;
  padding: 16px 4px;
  position: relative;
  transition: padding-left .4s cubic-bezier(.2,.8,.2,1), color .35s;
}
.track-item {
  position: relative;
}
.track-item a {
  color: var(--ink);
}
.track-item a::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--plum);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.track-item a:hover::before { transform: scaleY(1); }
.track-item a:hover { padding-left: 16px; color: var(--plum); }

.t-date {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--plum);
  opacity: 0.85;
}
.t-title {
  font-family: var(--serif);
  font-size: clamp(0.98rem, 1.1vw, 1.1rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.t-title em { font-style: italic; color: var(--plum); font-weight: 500; }
.track-item a:hover .t-title em { color: var(--wine); }
.t-meta {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.84rem;
  color: var(--ink-mute);
  text-align: right;
  white-space: nowrap;
}
.t-meta em { color: var(--plum); font-style: italic; opacity: 0.9; }
.t-go {
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--plum);
  opacity: 0.7;
  text-align: right;
}
.track-item.in-progress {
  display: grid;
  grid-template-columns: 90px 1fr auto 18px;
  gap: 18px;
  align-items: baseline;
  padding: 16px 4px;
}
.track-item.in-progress .t-date { color: var(--bronze); }
.track-item.in-progress .t-go { opacity: 0.45; }
@media (max-width: 720px) {
  .track-item a, .track-item.in-progress {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 4px 12px;
    padding: 14px 4px;
  }
  .t-date { grid-column: 1 / 2; grid-row: 1; }
  .t-go { grid-column: 2 / 3; grid-row: 1; }
  .t-title { grid-column: 1 / 3; grid-row: 2; }
  .t-meta { grid-column: 1 / 3; grid-row: 3; text-align: left; margin-top: 2px; }
}

/* ============================================================
   FORM PAGE — "page two"
   ============================================================ */
.form-page {
  padding: 140px 0 160px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-3) 0%, var(--bg) 60%, var(--bg-2) 100%);
  position: relative;
  overflow: hidden;
}
.form-page > .wrap { position: relative; z-index: 2; }

.form-head {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 80px;
}
@media (max-width: 980px) {
  .form-head { grid-template-columns: 1fr; gap: 32px; margin-bottom: 56px; }
}
.form-eyebrow-row {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 26px;
}
.form-eyebrow-row::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--plum), transparent);
  opacity: 0.35;
}
.form-headline {
  font-family: var(--serif);
  font-size: clamp(3rem, 8vw, 8rem);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: -0.045em;
}
.form-headline em { font-style: italic; color: var(--plum); }
.form-headline .amp {
  font-family: var(--serif);
  font-style: italic;
  color: var(--plum-2);
  opacity: 0.85;
  font-size: 0.7em;
  display: inline-block;
  transform: translateY(-0.12em) rotate(-6deg);
  margin: 0 0.04em;
}
.form-aside {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-bottom: 14px;
}
.form-aside p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  color: var(--ink-dim);
  max-width: 420px;
  line-height: 1.55;
}
.form-aside p em { color: var(--plum); font-style: italic; }
.form-aside .form-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 6px;
}
.form-aside .form-meta .k {
  display: block;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--plum);
  opacity: 0.85;
  margin-bottom: 6px;
}
.form-aside .form-meta .v {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 500;
}
.form-aside .form-meta .v em { font-style: italic; color: var(--ink-dim); }

/* Framed form card */
.form-card {
  position: relative;
  background: #fbf5e8;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 56px 56px 44px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 40px 90px -40px rgba(91, 35, 64, 0.22),
    0 2px 6px rgba(61, 21, 37, 0.05);
}
@media (max-width: 720px) {
  .form-card { padding: 32px 20px 28px; }
}
.form-card::before,
.form-card::after {
  content: "";
  position: absolute;
  width: 34px; height: 34px;
  border: 1px solid var(--plum);
  opacity: 0.5;
}
.form-card::before {
  top: -1px; left: -1px;
  border-right: none; border-bottom: none;
}
.form-card::after {
  bottom: -1px; right: -1px;
  border-left: none; border-top: none;
}
.form-card-corner {
  position: absolute;
  width: 34px; height: 34px;
  border: 1px solid var(--plum);
  opacity: 0.5;
  pointer-events: none;
}
.form-card-corner.tr { top: -1px; right: -1px; border-left: none; border-bottom: none; }
.form-card-corner.bl { bottom: -1px; left: -1px; border-right: none; border-top: none; }

.form-card-label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--plum);
  margin-bottom: 24px;
}
.form-card-label::before,
.form-card-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--plum);
  opacity: 0.25;
}
.form-card-title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 6px;
}
.form-card-title em { color: var(--plum); }
.form-card-sub {
  font-family: var(--serif);
  font-size: 0.98rem;
  color: var(--ink-dim);
  text-align: center;
  font-style: italic;
  margin-bottom: 36px;
}
.form-frame {
  width: 100%;
  min-height: 680px;
  border: none;
  border-radius: 3px;
  background: transparent;
  display: block;
}

.form-marks {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
@media (max-width: 820px) { .form-marks { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 480px) { .form-marks { grid-template-columns: 1fr; } }
.form-mark .k {
  display: block;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--plum);
  opacity: 0.85;
  margin-bottom: 10px;
}
.form-mark .v {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.form-mark .v em { font-style: italic; color: var(--ink-dim); }

/* Form page peonies */
.peony-form-1 { top: 2%; right: -90px; width: 380px; height: 380px; color: var(--rose); --o: 0.22; --r: 18deg; }
.peony-form-2 { bottom: 4%; left: -100px; width: 340px; height: 340px; color: var(--plum); --o: 0.20; --r: -16deg; }
.peony-form-3 { top: 28%; left: 6%; width: 140px; height: 140px; color: var(--peach); --o: 0.22; --r: 10deg; }
.peony-form-4 { bottom: 30%; right: 8%; width: 160px; height: 160px; color: var(--plum-2); --o: 0.18; --r: -12deg; }
.bud-form-1 { top: 40%; right: 6%; width: 70px; height: 100px; color: var(--plum); --o: 0.28; --r: -10deg; }
.bud-form-2 { top: 14%; left: 38%; width: 55px; height: 78px; color: var(--rose); --o: 0.28; --r: 14deg; }

@media (max-width: 820px) {
  .peony-form-3, .peony-form-4 { display: none; }
  .peony-form-1, .peony-form-2 { width: 220px; height: 220px; }
  .bud-form-1, .bud-form-2 { display: none; }
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  padding: 140px 0 100px;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
}
.contact > .wrap { position: relative; z-index: 2; }
.contact-headline {
  font-family: var(--serif);
  font-size: clamp(3rem, 10vw, 10rem);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: -0.045em;
  max-width: 1200px;
  margin-bottom: 60px;
}
.contact-headline em { font-style: italic; color: var(--plum); }
.contact-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  color: var(--ink-dim);
  max-width: 540px;
  margin-bottom: 50px;
}

.contact-cta {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 400;
  font-style: italic;
  padding: 26px 6px;
  border-top: 1px solid var(--plum);
  border-bottom: 1px solid var(--plum);
  min-width: 280px;
  position: relative;
  overflow: hidden;
  transition: color .5s;
  letter-spacing: -0.01em;
}
.contact-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--plum);
  transform: translateY(100%);
  transition: transform .55s cubic-bezier(.86,0,.07,1);
  z-index: 0;
}
.contact-cta:hover::before { transform: translateY(0); }
.contact-cta:hover { color: var(--bg); }
.contact-cta span { position: relative; z-index: 1; }
.contact-cta .arrow { display: inline-block; transition: transform .4s; }
.contact-cta:hover .arrow { transform: translate(8px, -4px); }

.contact-foot {
  margin-top: 100px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
@media (max-width: 720px) { .contact-foot { grid-template-columns: 1fr; gap: 30px; } }
.foot-col .foot-k {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--plum);
  opacity: 0.8;
  margin-bottom: 12px;
  display: block;
}
.foot-col a, .foot-col p {
  display: block;
  font-family: var(--serif);
  font-size: 1.05rem;
  padding: 3px 0;
  color: var(--ink);
  transition: color .3s, padding-left .3s;
}
.foot-col a:hover { color: var(--plum); padding-left: 8px; }

.foot-legal {
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ============================================================
   REVEAL
   ============================================================ */
.reveal-line { overflow: hidden; display: inline-block; }
.reveal-line > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1.1s cubic-bezier(.2,.8,.2,1);
}
.reveal-line.in > span { transform: translateY(0); }
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1s cubic-bezier(.2,.8,.2,1), transform 1s cubic-bezier(.2,.8,.2,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: .1s; }
.reveal.d2 { transition-delay: .2s; }
.reveal.d3 { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.25s !important; }
  .marquee-track, .peony svg, .bud svg { animation: none !important; }
}

/* ============================================================
   MOBILE SAFETY NET
   ============================================================ */
/* clip (not hidden) so body never becomes a scroll container — that would break the sticky reel */
html, body { overflow-x: hidden; overflow-x: clip; max-width: 100vw; }

@media (max-width: 720px) {
  /* Prevent peonies from pushing layout */
  .peony, .bud { --o: 0.18 !important; }
  .peony-hero-1 { width: 160px; height: 160px; top: 4vh; right: -50px; }
  .peony-hero-2 { width: 140px; height: 140px; bottom: 2vh; left: -40px; }
  .peony-about-1 { width: 140px; height: 140px; right: -40px; }
  .peony-practice-1, .peony-practice-2 { width: 140px; height: 140px; }
  .peony-journey-2 { width: 140px; height: 140px; right: -40px; }
  .peony-cred-1 { width: 140px; height: 140px; }
  .peony-cred-3 { width: 90px; height: 90px; right: -20px; }
  .peony-form-1, .peony-form-2 { width: 160px; height: 160px; }
  .peony-contact-1, .peony-contact-2 { width: 180px; height: 180px; }

  /* Headlines don't cut off */
  .sect-head h2,
  .contact-headline,
  .form-headline,
  .track-title { hyphens: auto; word-wrap: break-word; }

  .contact { padding: 80px 0 70px; }
  .form-page { padding: 80px 0 80px; }
  .contact-headline { font-size: clamp(2.4rem, 11vw, 4rem); margin-bottom: 32px; }
  .contact-sub { margin-bottom: 32px; font-size: 1rem; }
  .contact-cta { font-size: 1.1rem; min-width: unset; width: 100%; justify-content: space-between; padding: 20px 6px; }
  .contact-foot { margin-top: 56px; }

  .form-headline { font-size: clamp(2.2rem, 10vw, 3.4rem); }
  .form-headline .amp { font-size: 0.65em; }
  .form-card { padding: 28px 12px 24px; }
  .form-card-title { font-size: 1.3rem; }
  .form-card-sub { font-size: 0.88rem; margin-bottom: 24px; }
  .form-frame { min-height: 780px; }

  .track { padding: 26px 12px 22px; }
  .track-title { font-size: clamp(1.6rem, 7vw, 2.2rem); }
  .track-head { padding: 0 2px 20px; }
  .track-item a, .track-item.in-progress { padding-left: 2px; padding-right: 2px; }

  .cred { padding: 28px 18px 26px; min-height: 280px; }
  .cred-top { margin-bottom: 56px; }
  .cred-title { font-size: clamp(1.4rem, 6vw, 1.8rem); }
  .cred-id { bottom: 10px; right: 12px; }

  /* Hero meta fills the width instead of leaving right side empty */
  .hero-meta { justify-content: space-between; gap: 18px 14px; }
  .hero-meta-item { flex: 1 1 45%; min-width: 0; }

  /* Fleuron dividers get tight */
  .fleuron { padding: 24px 0; gap: 14px; }
  .fleuron::before, .fleuron::after { flex-basis: 40px; }

  /* Nav logo shrinks */
  .nav-clock { display: none; }
}

@media (max-width: 420px) {
  .hero-title { font-size: clamp(2.6rem, 15vw, 4rem); }
  .marquee-item { font-size: 1.5rem; }
  .peony, .bud { --o: 0.14 !important; }
}

.site-foot { padding: 80px 0 50px; }
.site-foot .contact-foot { margin-top: 0; border-top: none; padding-top: 0; }
.hero-meta-item .v a { border-bottom: 1px solid var(--line-strong); transition: color .3s, border-color .3s; }
.hero-meta-item .v a:hover { color: var(--plum); border-color: var(--plum); }

/* ============================================================
   HOME WORK SHOWCASE — scroll-driven reel + wall of every build
   ============================================================ */
.work-home { padding-bottom: 0; }
.work-home .work-intro { margin-bottom: 0; }
.work-cta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 16px 22px 16px 26px;
  border: 1px solid var(--plum);
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--plum);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  transition: color .5s;
  justify-self: start;
}
.work-cta::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--plum);
  transform: translateY(101%);
  transition: transform .55s cubic-bezier(.86,0,.07,1);
}
.work-cta > * { position: relative; }
.work-cta:hover { color: var(--bg); }
.work-cta:hover::before { transform: translateY(0); }
.work-cta-n {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1;
}
.work-cta .arrow { transition: transform .4s; }
.work-cta:hover .arrow { transform: translateX(6px); }

/* The reel: a tall block whose sticky child pins while its track slides sideways */
.reel { position: relative; height: 320vh; }
.reel-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  padding-top: 76px; /* clear the fixed nav */
}
.reel-head { display: flex; justify-content: space-between; align-items: baseline; }
.reel-count { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.18em; color: var(--ink-dim); }
.reel-count b { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.6rem; letter-spacing: 0; color: var(--plum); margin-right: 4px; }
.reel-track {
  display: flex;
  align-items: center;
  gap: clamp(40px, 5vw, 90px);
  padding: 50px max(88px, calc((100vw - 1480px) / 2 + 88px)) 0;
  width: max-content;
  will-change: transform;
}
.reel-card {
  flex: 0 0 min(52vw, 760px, calc((100vh - 420px) * 1.6));
  position: relative;
  transform-origin: center;
  will-change: transform, opacity;
}
.reel-num {
  position: absolute;
  top: -0.62em;
  left: -0.12em;
  z-index: 3;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(4rem, 8vw, 7.5rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--plum);
  pointer-events: none;
}
.reel-card:hover .wf-shot img { transform: scale(1.05); filter: none; }
.reel-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-top: 20px; }
.reel-card:hover .wf-name { color: var(--plum); }
.reel-card .wf-desc { max-width: 520px; }

.reel-more {
  flex-basis: min(34vw, 460px, calc((100vh - 300px) * 0.8));
  aspect-ratio: 4 / 5;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--plum);
  color: var(--bg);
  overflow: hidden;
}
.reel-fan { position: absolute; inset: 30px 30px 40%; }
.reel-fan img {
  position: absolute;
  left: 50%; top: 50%;
  width: 78%;
  height: auto; /* the img height attribute would otherwise pin it at 600px */
  aspect-ratio: 16 / 10;
  object-fit: cover; object-position: top;
  border: 1px solid rgba(237, 228, 211, 0.35);
  border-radius: 3px;
  box-shadow: 0 20px 40px -18px rgba(0,0,0,0.5);
  transform: translate(-50%, -50%) rotate(var(--rot)) translate(var(--dx), var(--dy));
  transition: transform .8s cubic-bezier(.2,.8,.2,1);
}
.reel-fan img:nth-child(1) { --rot: -10deg; --dx: -18%; --dy: 6%; }
.reel-fan img:nth-child(2) { --rot: -3deg; --dx: -6%; --dy: 0%; }
.reel-fan img:nth-child(3) { --rot: 4deg; --dx: 6%; --dy: -4%; }
.reel-fan img:nth-child(4) { --rot: 11deg; --dx: 18%; --dy: 2%; }
.reel-more:hover .reel-fan img:nth-child(1) { --rot: -16deg; --dx: -30%; }
.reel-more:hover .reel-fan img:nth-child(2) { --rot: -6deg; --dx: -10%; --dy: -6%; }
.reel-more:hover .reel-fan img:nth-child(3) { --rot: 7deg; --dx: 10%; --dy: -8%; }
.reel-more:hover .reel-fan img:nth-child(4) { --rot: 17deg; --dx: 30%; }
.reel-more-k { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--blush); position: relative; }
.reel-more-t { font-family: var(--serif); font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1; letter-spacing: -0.03em; position: relative; }
.reel-more-t em { color: var(--blush); }
.reel-more-t .arrow { display: inline-block; transition: transform .4s; }
.reel-more:hover .reel-more-t .arrow { transform: translateX(10px); }

.reel-progress span { display: block; height: 1px; width: 100%; background: var(--line); position: relative; }
.reel-progress span::after {
  content: "";
  position: absolute; left: 0; top: -1px;
  height: 3px;
  width: calc(var(--p, 0) * 100%);
  background: linear-gradient(to right, var(--plum), var(--rose));
}

/* Phones, touch and reduced motion: a native swipeable strip instead of the pinned reel */
.reel.native { height: auto; }
.reel.native .reel-sticky { position: static; height: auto; padding: 56px 0 24px; }
.reel.native .reel-track {
  width: auto;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 44px 22px 10px;
  gap: 22px;
  transform: none !important;
}
.reel.native .reel-track::-webkit-scrollbar { display: none; }
.reel.native .reel-card { flex-basis: 82vw; scroll-snap-align: center; transform: none !important; opacity: 1 !important; }
.reel.native .reel-more { flex-basis: 70vw; }
.reel.native .reel-num { font-size: 3.6rem; }
@media (max-width: 560px) { .reel-meta { flex-direction: column; gap: 4px; } }

/* The wall: every build, two tilted rows drifting in opposite directions */
.wall { position: relative; padding: 80px 0 150px; overflow: hidden; }
.wall-rows {
  display: grid;
  gap: 22px;
  transform: rotate(-4deg) scale(1.08);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}
.wall-row { overflow: hidden; }
.wall-track { display: flex; gap: 22px; width: max-content; animation: marquee 70s linear infinite; }
.wall-row.reverse .wall-track { animation-direction: reverse; animation-duration: 80s; }
.wall:hover .wall-track { animation-play-state: paused; }
.wall-thumb {
  flex: 0 0 auto;
  width: clamp(200px, 22vw, 320px);
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-2);
  box-shadow: 0 24px 50px -30px rgba(61, 21, 37, 0.45);
  transition: transform .6s cubic-bezier(.2,.8,.2,1), box-shadow .6s;
}
.wall-thumb img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top;
  filter: saturate(0.75) sepia(0.14);
  transition: filter .6s;
}
.wall-thumb:hover { transform: translateY(-8px) scale(1.04); box-shadow: 0 34px 70px -30px rgba(61, 21, 37, 0.6); }
.wall-thumb:hover img { filter: none; }

.wall-seal {
  position: absolute;
  left: 50%; top: 50%;
  width: clamp(150px, 15vw, 210px);
  aspect-ratio: 1;
  transform: translate(-50%, -54%);
  border-radius: 50%;
  background: var(--plum);
  color: var(--bg);
  display: grid;
  place-items: center;
  z-index: 3;
  box-shadow: 0 30px 70px -20px rgba(61, 21, 37, 0.6), 0 0 0 10px rgba(237, 228, 211, 0.55);
  transition: transform .6s cubic-bezier(.2,.8,.2,1), background .4s;
}
.wall-seal:hover { transform: translate(-50%, -54%) scale(1.08); background: var(--wine); }
.wall-seal > svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: peonyTurn 22s linear infinite; }
.wall-seal text { font-family: var(--mono); font-size: 13.5px; letter-spacing: 3.2px; text-transform: uppercase; fill: var(--bg); }
.wall-seal-core { width: 38%; height: 38%; color: var(--blush); }
.wall-seal-core svg { width: 100%; height: 100%; }
@media (max-width: 720px) { .wall { padding: 50px 0 90px; } .wall-rows { gap: 14px; } .wall-track { gap: 14px; } }

@media (prefers-reduced-motion: reduce) {
  .wall-track, .wall-seal > svg { animation: none !important; }
}

/* ============================================================
   PORTFOLIO PAGE
   ============================================================ */
.pf-hero { min-height: auto; padding-bottom: 40px; grid-template-columns: 1fr; }
.pf-hero .hero-title { font-size: clamp(3.4rem, 15vw, 16rem); }
.pf-hero a.eyebrow:hover { color: var(--wine); }
.pf-sect { padding-top: 40px; }
.pf-head { margin-bottom: 44px; }
.pf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 64px 40px;
  position: relative;
  z-index: 2;
}
@media (max-width: 1100px) { .pf-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .pf-grid { grid-template-columns: 1fr; gap: 48px; } }
.pf-card[hidden] { display: none; }
.pf-card.pop { animation: pfPop .6s cubic-bezier(.2,.8,.2,1) both; }
@keyframes pfPop { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }
.pf-card .wf-meta { grid-template-columns: 36px 1fr; }
.pf-card .wf-cat { grid-column: 2; }
.pf-card .wf-name { font-size: clamp(1.4rem, 2vw, 1.8rem); }
.pf-cta { padding: 60px 0 120px; text-align: center; }
.pf-cta .contact-headline { margin: 0 auto 40px; font-size: clamp(2.6rem, 7vw, 6.5rem); }
.pf-cta .contact-cta { justify-content: space-between; }
.page-portfolio .foot-legal { margin-top: 0; }
.page-portfolio .foot-legal a:hover { color: var(--plum); }
.nav-links a[aria-current="page"] { color: var(--plum); }
.nav-links a[aria-current="page"]::after { width: 100%; }
.pf-hero .hero-meta-item .v { font-size: clamp(1.8rem, 3vw, 2.6rem); font-style: italic; font-weight: 400; color: var(--plum); line-height: 1; }

/* ============================================================
   JOURNEY — current roles as featured cards
   ============================================================ */
.jn-label {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 26px;
  position: relative;
  z-index: 2;
}
.jn-label-prev { margin: 90px 0 0; }
.jn-rule { flex: 1; height: 1px; background: linear-gradient(to right, var(--line-strong), transparent); }
.jn-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--plum);
}
.jn-status .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--plum);
  box-shadow: 0 0 0 0 rgba(91, 35, 64, 0.5);
  animation: jnPing 2.2s infinite;
}
@keyframes jnPing {
  0% { box-shadow: 0 0 0 0 rgba(91, 35, 64, 0.45); }
  70% { box-shadow: 0 0 0 10px rgba(91, 35, 64, 0); }
  100% { box-shadow: 0 0 0 0 rgba(91, 35, 64, 0); }
}
.jn-count { font-family: var(--serif); font-style: italic; color: var(--ink-dim); }

.jn-grid {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  gap: 28px;
  position: relative;
  z-index: 2;
}
@media (max-width: 900px) { .jn-grid { grid-template-columns: 1fr; gap: 20px; } }

.jn-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 460px;
  padding: 40px 40px 30px;
  border-radius: 4px;
  overflow: hidden;
  isolation: isolate;
  transition: transform .7s cubic-bezier(.2,.8,.2,1), box-shadow .7s;
}
.jn-card::before {            /* inner hairline frame, like the diplomas */
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid currentColor;
  opacity: 0.16;
  border-radius: 2px;
  pointer-events: none;
}
.jn-card::after {             /* light sweep on hover */
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: -60%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 245, 230, 0.22), transparent);
  transform: skewX(-18deg);
  transition: left 1.1s cubic-bezier(.2,.8,.2,1);
  pointer-events: none;
  z-index: 2;
}
.jn-card:hover { transform: translateY(-8px); }
.jn-card:hover::after { left: 130%; }

.jn-plum {
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(184, 124, 124, 0.35), transparent 60%),
    linear-gradient(160deg, var(--plum-2) 0%, var(--plum) 45%, var(--wine) 100%);
  color: var(--bg);
  box-shadow: 0 50px 100px -50px rgba(61, 21, 37, 0.8);
}
.jn-plum:hover { box-shadow: 0 60px 120px -50px rgba(61, 21, 37, 0.95); }
.jn-cream {
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(227, 185, 168, 0.45), transparent 60%),
    #fbf5e8;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  box-shadow: 0 40px 90px -50px rgba(91, 35, 64, 0.45);
}
.jn-cream:hover { box-shadow: 0 55px 110px -50px rgba(91, 35, 64, 0.6); }

.jn-mono {
  position: absolute;
  right: -0.06em;
  bottom: -0.22em;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(9rem, 17vw, 15rem);
  line-height: 1;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1px currentColor;
  opacity: 0.22;
  z-index: -1;
  transition: transform 1.2s cubic-bezier(.2,.8,.2,1), opacity .8s;
}
.jn-plum .jn-mono { -webkit-text-stroke-color: var(--blush); opacity: 0.4; }
.jn-cream .jn-mono { -webkit-text-stroke-color: var(--plum); opacity: 0.18; }
.jn-card:hover .jn-mono { transform: translate(-12px, -10px); opacity: 0.5; }

.jn-seal {
  position: absolute;
  top: 26px; right: 26px;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid currentColor;
  display: grid;
  place-items: center;
  opacity: 0.7;
  transition: transform 1.4s cubic-bezier(.2,.8,.2,1);
}
.jn-cream .jn-seal { color: var(--plum); }
.jn-plum .jn-seal { color: var(--blush); }
.jn-seal svg { width: 22px; height: 22px; }
.jn-card:hover .jn-seal { transform: rotate(180deg); }

.jn-top { display: flex; flex-direction: column; gap: 14px; padding-right: 70px; }
.jn-kicker {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.8;
}
.jn-plum .jn-kicker { color: var(--blush); opacity: 1; }
.jn-cream .jn-kicker { color: var(--plum); }
.jn-tenure {
  align-self: flex-start;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 7px 14px 7px 12px;
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.jn-tenure b { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.25rem; letter-spacing: 0; text-transform: none; line-height: 1; }
.jn-plum .jn-tenure { background: rgba(237, 228, 211, 0.12); border: 1px solid rgba(237, 228, 211, 0.3); }
.jn-plum .jn-tenure b { color: var(--blush); }
.jn-cream .jn-tenure { background: rgba(91, 35, 64, 0.07); border: 1px solid var(--line-strong); color: var(--plum); }

.jn-role {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 4.6vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin-top: auto;
  padding-top: 44px;
}
.jn-plum .jn-role em { color: var(--blush); }
.jn-cream .jn-role em { color: var(--plum); }
.jn-org {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.35rem;
  margin-top: 12px;
  align-self: flex-start;
  border-bottom: 1px solid transparent;
  transition: border-color .4s;
}
.jn-card:hover .jn-org { border-bottom-color: currentColor; }
.jn-org .arrow { display: inline-block; font-style: normal; transition: transform .4s; }
.jn-card:hover .jn-org .arrow { transform: translate(4px, -4px); }
.jn-desc { font-family: var(--serif); font-style: italic; line-height: 1.5; margin-top: 14px; max-width: 420px; opacity: 0.8; }
.jn-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid currentColor;
  border-top-color: color-mix(in srgb, currentColor 22%, transparent);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
}
.jn-now { display: inline-flex; align-items: center; gap: 8px; }
.jn-now::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: clockPulse 2.2s infinite; }
.jn-plum .jn-now { color: var(--blush); }
.jn-cream .jn-now { color: var(--plum); }

@media (max-width: 560px) {
  .jn-card { min-height: 380px; padding: 30px 24px 24px; }
  .jn-seal { top: 20px; right: 20px; width: 40px; height: 40px; }
  .jn-label-prev { margin-top: 64px; }
  .jn-count { display: none; }
}

/* ============================================================
   PRACTICE — interactive six-part showcase
   Desktop: list on the left, the active panel on a sticky "stage" to the right.
   Phones: the same markup reads as an accordion.
   ============================================================ */
.px-intro {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  color: var(--ink-dim);
  max-width: 640px;
  margin: -30px 0 56px;
  line-height: 1.5;
  position: relative;
  z-index: 2;
}
.px-intro em { color: var(--plum); }

.px { position: relative; z-index: 2; }
.px-list { list-style: none; border-top: 1px solid var(--line); }
.px-item { border-bottom: 1px solid var(--line); }

.px-tab {
  width: 100%;
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: baseline;
  gap: 18px;
  padding: 26px 8px;
  background: none;
  border: 0;
  text-align: left;
  color: var(--ink);
  position: relative;
  transition: padding-left .5s cubic-bezier(.2,.8,.2,1), color .4s;
}
.px-tab::before {
  content: "";
  position: absolute;
  left: 0; top: 16px; bottom: 16px;
  width: 2px;
  background: var(--plum);
  transform: scaleY(0);
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.px-tab:hover { padding-left: 16px; }
.px-tab[aria-selected="true"] { padding-left: 22px; color: var(--plum); }
.px-tab[aria-selected="true"]::before { transform: scaleY(1); }
.px-tab:focus-visible { outline: 2px solid var(--plum); outline-offset: -2px; }
.px-num { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.18em; color: var(--plum); opacity: .7; }
.px-title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.8vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.px-title em { font-style: italic; color: var(--plum); }
.px-tag {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 5px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  color: var(--ink-dim);
  white-space: nowrap;
  transition: background .4s, color .4s, border-color .4s;
}
.px-tab[aria-selected="true"] .px-tag { background: var(--plum); border-color: var(--plum); color: var(--bg); }
/* auto-advance timer line under the active tab */
.px-bar { position: absolute; left: 22px; right: 8px; bottom: -1px; height: 2px; overflow: hidden; }
.px-bar::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to right, var(--plum), var(--rose));
  transform: scaleX(0);
  transform-origin: left;
}
.px.autoplay .px-tab[aria-selected="true"] .px-bar::after { animation: pxTimer var(--px-dur, 7s) linear forwards; }
.px.autoplay.paused .px-tab[aria-selected="true"] .px-bar::after { animation-play-state: paused; }
@keyframes pxTimer { to { transform: scaleX(1); } }

/* The panel card */
.px-panel {
  background: #fbf5e8;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: 26px 30px 30px;
  box-shadow: 0 40px 90px -50px rgba(91, 35, 64, 0.45);
  position: relative;
  overflow: hidden;
}
.px-panel::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid var(--line);
  border-radius: 2px;
  pointer-events: none;
}
.px-panel.show { animation: pxIn .7s cubic-bezier(.2,.8,.2,1) both; }
@keyframes pxIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.px-art {
  height: 200px;
  margin: -6px -10px 18px;
  border-radius: 3px;
  background:
    radial-gradient(ellipse 70% 80% at 30% 20%, rgba(227, 185, 168, 0.45), transparent 70%),
    linear-gradient(160deg, rgba(91, 35, 64, 0.06), rgba(91, 35, 64, 0.12));
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.px-art svg { width: 100%; height: 100%; max-width: 420px; overflow: visible; }
.px-lead { font-family: var(--serif); font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.45; letter-spacing: -0.005em; }
.px-points { list-style: none; margin: 18px 0 20px; display: grid; gap: 10px; }
.px-points li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-dim);
  line-height: 1.4;
}
.px-points li::before { content: "✦"; font-style: normal; color: var(--plum); font-size: 0.8rem; padding-top: 3px; }
.px-panel.show .px-points li { animation: pxIn .6s cubic-bezier(.2,.8,.2,1) both; }
.px-panel.show .px-points li:nth-child(1) { animation-delay: .25s; }
.px-panel.show .px-points li:nth-child(2) { animation-delay: .35s; }
.px-panel.show .px-points li:nth-child(3) { animation-delay: .45s; }
.px-tools { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }
.px-tools span {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 3px;
  background: rgba(91, 35, 64, 0.07);
  color: var(--plum);
}
.px-proof {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--plum);
  border-bottom: 1px solid var(--plum);
  padding-bottom: 4px;
}
.px-proof .arrow { transition: transform .4s; }
.px-proof:hover .arrow { transform: translateX(6px); }

/* ---------- SVG art ---------- */
.px-art svg * { vector-effect: non-scaling-stroke; }
.px-art .draw { fill: none; stroke: var(--plum); stroke-width: 1.4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.px-art .draw.thin { stroke-width: 1; opacity: .6; }
.px-panel.show .draw { animation: pxDraw 1.2s cubic-bezier(.6,0,.2,1) forwards; }
.px-panel.show .draw.d1 { animation-delay: .2s; }
.px-panel.show .draw.d2 { animation-delay: .4s; }
.px-panel.show .draw.d3 { animation-delay: .6s; }
@keyframes pxDraw { to { stroke-dashoffset: 0; } }
.px-art .fill { fill: var(--plum); opacity: .7; }
.px-art .fill.soft { fill: var(--rose); }
.px-art .fill.softer { fill: var(--peach); }

/* i. websites */
.px-art .btn { fill: var(--plum); transform-box: fill-box; transform-origin: center; animation: pxBtn 4s infinite; }
@keyframes pxBtn { 0%, 52% { transform: scale(1); fill: var(--plum); } 58% { transform: scale(.9); fill: var(--wine); } 66%, 100% { transform: scale(1); fill: var(--plum); } }
.px-art .cursor { fill: var(--ink); stroke: #fbf5e8; stroke-width: 1; }

/* ii. crm pipeline */
.px-art .card { fill: rgba(91, 35, 64, 0.14); }
.px-art .deal { fill: var(--plum); animation: pxDeal 5s cubic-bezier(.6,0,.2,1) infinite; }
@keyframes pxDeal {
  0%, 12% { transform: translate(0, 0); }
  25%, 37% { transform: translate(80px, -26px); }
  50%, 62% { transform: translate(160px, -26px); }
  75%, 88% { transform: translate(240px, 0); fill: var(--rose); }
  100% { transform: translate(0, 0); }
}

/* iii. automations */
.px-art .node { fill: #fbf5e8; stroke: var(--plum); stroke-width: 1.4; }
.px-art .node.big { fill: var(--plum); }
.px-art .pulse { fill: var(--rose); }

/* iv. ai */
.px-art .ring { fill: none; stroke: var(--plum); stroke-width: 1; transform-box: fill-box; transform-origin: center; animation: pxRing 3s ease-out infinite; }
.px-art .ring.r2 { animation-delay: 1s; }
.px-art .ring.r3 { animation-delay: 2s; }
@keyframes pxRing { from { transform: scale(.6); opacity: .9; } to { transform: scale(2.2); opacity: 0; } }
.px-art .spark { fill: var(--plum); transform-box: fill-box; transform-origin: center; animation: pxSpark 3s ease-in-out infinite; }
@keyframes pxSpark { 50% { transform: rotate(45deg) scale(.85); fill: var(--rose); } }
.px-art .typing { fill: var(--plum); animation: pxType 1.2s ease-in-out infinite; }
.px-art .typing.t2 { animation-delay: .15s; }
.px-art .typing.t3 { animation-delay: .3s; }
@keyframes pxType { 0%, 60%, 100% { transform: translateY(0); opacity: .35; } 30% { transform: translateY(-5px); opacity: 1; } }

/* v. ops */
.px-art .lbl { font-family: var(--mono); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; fill: var(--plum); }
.px-art .gantt { transform-box: fill-box; transform-origin: left center; transform: scaleX(0); }
.px-art .g1 { fill: var(--plum); }
.px-art .g2 { fill: var(--rose); }
.px-art .g3 { fill: rgba(91, 35, 64, 0.18); }
.px-panel.show .gantt { animation: pxGrow 1s cubic-bezier(.2,.8,.2,1) forwards; }
.px-panel.show .g2 { animation-delay: .25s; }
.px-panel.show .g3 { animation-delay: .5s; }
@keyframes pxGrow { to { transform: scaleX(1); } }
.px-art .strike { stroke: var(--wine); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; }
.px-panel.show .strike { animation: pxDraw .6s 1.3s cubic-bezier(.6,0,.2,1) forwards; }

/* vi. rescue: the knot tightens into a straight line */
.px-art .mess { fill: none; stroke: var(--rose); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.px-art .clean { stroke: var(--plum); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; }
.px-panel.show .mess { animation: pxMess 5s ease-in-out infinite; }
.px-panel.show .clean { animation: pxClean 5s ease-in-out infinite; }
@keyframes pxMess { 0% { stroke-dashoffset: 1; opacity: 1; } 30% { stroke-dashoffset: 0; opacity: 1; } 55%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes pxClean { 0%, 45% { stroke-dashoffset: 1; } 70%, 92% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.px-art .knot { fill: var(--plum); transform-box: fill-box; transform-origin: center; transform: scale(0); }
.px-panel.show .knot { animation: pxKnot 5s ease-in-out infinite; }
.px-panel.show .k2 { animation-delay: .1s; }
.px-panel.show .k3 { animation-delay: .2s; }
.px-panel.show .k4 { animation-delay: .3s; }
@keyframes pxKnot { 0%, 60% { transform: scale(0); } 70%, 92% { transform: scale(1); } 100% { transform: scale(0); } }

/* ---------- desktop stage layout ---------- */
@media (min-width: 981px) {
  .px { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
  .px-list { grid-column: 1; }
  .px-item { position: static; }
  /* every panel is placed in the right-hand column, sticky while you read the list */
  .px-panel {
    position: absolute;
    top: 0;
    left: calc(50% + 32px);
    right: 0;
  }
  .px-panel[hidden] { display: block; visibility: hidden; opacity: 0; pointer-events: none; }
  .px::after { content: ""; grid-column: 2; min-height: var(--px-h, 620px); }
}
@media (max-width: 980px) {
  .px-panel { margin: 0 0 26px; }
  .px-tab { grid-template-columns: 38px 1fr auto; padding: 22px 4px; }
  .px-tab[aria-selected="true"] { padding-left: 14px; }
  .px-bar { display: none; }
}
@media (max-width: 560px) {
  .px-tag { display: none; }
  .px-panel { padding: 20px 18px 24px; }
  .px-art { height: 170px; margin: -4px -6px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .px-art * { animation: none !important; }
  .px-art .draw, .px-art .clean, .px-art .strike { stroke-dashoffset: 0; }
  .px-art .gantt, .px-art .knot { transform: none; }
  .px-art .mess { display: none; }
}

/* ============================================================
   REEL v2 — cards ride an arc, shadows deepen at centre,
   the centred card's number lights up and flowers bloom around it.
   --a (0…1) = how centred a card is; set per card by site.js.
   ============================================================ */
.reel-card { --a: 0; --tx: 0deg; --ty: 0deg; --mx: 50%; --my: 30%; transform-style: preserve-3d; }
.reel-card .wf-frame {
  position: relative;
  transform: perspective(1200px) rotateX(var(--ty)) rotateY(var(--tx));
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
  box-shadow:
    0 calc(18px + 46px * var(--a)) calc(40px + 90px * var(--a)) calc(-30px - 10px * var(--a)) rgba(61, 21, 37, calc(0.18 + 0.5 * var(--a))),
    0 2px 6px rgba(61, 21, 37, 0.06);
}
.reel-card.active .wf-frame { border-color: rgba(91, 35, 64, 0.55); }
/* soft floor shadow under each card */
.reel-card::after {
  content: "";
  position: absolute;
  left: 8%; right: 8%;
  top: calc(100% - 70px);
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(61, 21, 37, 0.35), transparent);
  filter: blur(8px);
  opacity: calc(0.2 + 0.8 * var(--a));
  transform: translateY(calc(30px + 20px * var(--a))) scaleX(calc(0.8 + 0.2 * var(--a)));
  z-index: -1;
  pointer-events: none;
}
/* glare that follows the pointer on the centred card */
.reel-card .wf-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx) var(--my), rgba(255, 248, 235, 0.35), transparent 55%);
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
}
.reel-card.active:hover .wf-shot::after { opacity: 1; }

/* Numbers: outline by default, fill with a glowing gradient when centred */
.reel-num { transition: transform .7s cubic-bezier(.2,.8,.2,1), -webkit-text-stroke-color .6s; transform-origin: left bottom; }
.reel-num::after {
  content: attr(data-n);
  position: absolute;
  inset: 0;
  -webkit-text-stroke: 0;
  background: linear-gradient(135deg, var(--wine) 0%, var(--plum) 35%, var(--rose) 70%, var(--peach) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  opacity: 0;
  transition: opacity .6s;
  animation: numShift 5s ease-in-out infinite alternate;
}
.reel-card.active .reel-num {
  transform: scale(1.12) translateY(-4px);
  filter: drop-shadow(0 6px 18px rgba(184, 124, 124, 0.55));
  animation: numGlow 2.6s ease-in-out infinite alternate;
}
.reel-card.active .reel-num::after { opacity: 1; }
@keyframes numShift { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
@keyframes numGlow {
  from { filter: drop-shadow(0 6px 14px rgba(184, 124, 124, 0.4)); }
  to   { filter: drop-shadow(0 8px 28px rgba(217, 154, 126, 0.75)); }
}

/* Flowers around the centred card — same peony/bud art as the page */
.rb { z-index: 4; transition: opacity 1.1s cubic-bezier(.2,.8,.2,1), transform 1.3s cubic-bezier(.34,1.26,.64,1); }
.rb-1 { top: -86px; left: -96px; width: 190px; height: 190px; color: var(--rose); --o: 0.85; --r: -30deg; }
.rb-2 { top: -58px; right: -58px; width: 130px; height: 130px; color: var(--plum); --o: 0.75; --r: 25deg; }
.rb-3 { bottom: 76px; left: -48px; width: 64px; height: 92px; color: var(--plum-2); --o: 0.9; --r: -20deg; }
.reel-card.active .rb { --proximity: 0.55; }   /* fills the petals, same effect as hovering the page flowers */
.reel-card.active .rb-2 { transition-delay: .15s; }
.reel-card.active .rb-3 { transition-delay: .3s; }
.reel.native .rb-1 { top: -40px; left: -30px; width: 110px; height: 110px; }
.reel.native .rb-2 { right: -10px; width: 80px; height: 80px; }
.reel.native .rb-3 { display: none; }

/* side cards invite a click to bring them to centre */
.reel:not(.native) .reel-card:not(.active) { cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  .reel-num::after, .reel-card.active .reel-num { animation: none; }
}
@media (max-width: 820px) { .peony.rb { --o: 0.75 !important; } .bud.rb { --o: 0.85 !important; } }
.reel-more .rb-1 { top: auto; bottom: -50px; left: auto; right: -50px; color: var(--blush); }
.reel-more .rb-2 { top: -40px; right: auto; left: -40px; color: var(--rose); }

/* ============================================================
   FOOTER — wordmark, columns, legal
   ============================================================ */
.foot-brand {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 14px 40px;
  padding-bottom: 44px;
  margin-bottom: 44px;
  border-bottom: 1px solid var(--line);
}
.foot-logo {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(3.4rem, 10vw, 8rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
  color: var(--ink);
  justify-self: start;
}
.foot-logo em { font-style: normal; color: var(--plum); }
.foot-tag {
  grid-column: 1;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: var(--ink-dim);
  max-width: 440px;
  line-height: 1.45;
}
.foot-tag em { color: var(--plum); }
.foot-top {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: end;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border: 1px solid var(--plum);
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--plum);
  white-space: nowrap;
  transition: background .4s, color .4s;
}
.foot-top:hover { background: var(--plum); color: var(--bg); }
.foot-top .arrow { transition: transform .4s; }
.foot-top:hover .arrow { transform: translateY(-4px); }

.site-foot .foot-col a em, .site-foot .foot-dim { font-style: italic; color: var(--ink-dim); }
.site-foot .foot-col a:hover em { color: var(--plum); }
.site-foot .foot-legal { margin-top: 48px; }

@media (max-width: 720px) {
  .site-foot { padding: 56px 0 36px; }
  .foot-brand { grid-template-columns: 1fr; padding-bottom: 32px; margin-bottom: 32px; }
  .foot-top { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 8px; }
  .site-foot .contact-foot { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .site-foot .foot-now { grid-column: 1 / -1; order: 3; }
  .site-foot .foot-col a, .site-foot .foot-col p { font-size: 1rem; padding: 4px 0; }
  .site-foot .foot-legal {
    flex-direction: column;
    gap: 8px;
    margin-top: 36px;
    padding-top: 22px;
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    line-height: 1.6;
  }
}

/* ---------- Practice: "this opens" affordance ---------- */
.px-tab { grid-template-columns: 52px 1fr auto 46px; align-items: center; }
.px-num { align-self: baseline; padding-top: 0.6em; }
.px-ico {
  position: relative;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  color: var(--plum);
  transition: background .45s, border-color .45s, color .45s, transform .6s cubic-bezier(.2,.8,.2,1);
}
.px-ico::before {                       /* the chevron */
  content: "";
  width: 9px; height: 9px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translate(-2px, 0) rotate(-45deg);   /* points right → toward the stage (desktop) */
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.px-ico::after {                        /* soft ring that invites the first click */
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid var(--plum);
  opacity: 0;
  animation: pxHint 2.6s ease-out 1.2s 3;
}
@keyframes pxHint { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.55); opacity: 0; } }
.px-tab:hover .px-ico { border-color: var(--plum); transform: translateX(4px); }
.px-tab[aria-selected="true"] .px-ico { background: var(--plum); border-color: var(--plum); color: var(--bg); transform: translateX(6px); }
.px-tab[aria-selected="true"] .px-ico::after,
.px.touched .px-ico::after { animation: none; }
.px-ico-lbl { display: none; }

@media (max-width: 980px) {
  .px-tab { grid-template-columns: 38px 1fr auto 42px; }
  .px-ico { width: 42px; height: 42px; margin-bottom: 14px; }
  .px-ico::before { transform: translate(0, -2px) rotate(45deg); }            /* points down: it drops open */
  .px-tab[aria-selected="true"] .px-ico::before { transform: translate(0, 2px) rotate(225deg); }  /* flips up */
  .px-tab:hover .px-ico, .px-tab[aria-selected="true"] .px-ico { transform: none; }
  .px-ico-lbl {
    display: block;
    position: absolute;
    top: calc(100% + 5px);
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--mono);
    font-size: 0.52rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-mute);
    white-space: nowrap;
  }
  .px-ico-lbl::before { content: "Open"; }
  .px-tab[aria-selected="true"] .px-ico-lbl::before { content: "Close"; color: var(--plum); }
}
@media (max-width: 560px) {
  .px-tab { grid-template-columns: 30px 1fr 42px; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { .px-ico::after { animation: none; } }
