/* Redesign layer, phase 1: shell, hero, "what gets solved", contact and footer.
   Loaded after styles.css. Direction: precision instrument. Calm type, hairlines,
   one accent (teal = verified), one signal (coral = flagged), mono for data. */

:root {
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --hair: rgba(120, 170, 255, 0.14);
  --hair-strong: rgba(120, 170, 255, 0.26);
  --surface: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  --r-lg: 16px;
  --r-md: 10px;
  --col: min(100% - 2 * var(--gutter), 72rem);
}

body {
  font-size: var(--step-0);
  line-height: 1.6;
  letter-spacing: -0.003em;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: var(--col); margin-inline: auto; }

/* ------------------------------------------------------------------ header */

.site-header {
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  border-bottom: 1px solid var(--hair);
}
@supports (backdrop-filter: blur(1px)) {
  .site-header { backdrop-filter: saturate(140%) blur(14px); }
}
.site-header__inner { min-height: 4rem; gap: 1.5rem; }
.site-header__name {
  display: inline-flex; align-items: center; gap: 0.65rem;
  font-size: 0.9375rem; font-weight: 600; letter-spacing: -0.01em; color: var(--ink);
}
.brand-mark { color: var(--teal); flex: none; }
.nav { gap: clamp(0.9rem, 1.8vw, 1.9rem); font-size: 0.875rem; align-items: center; }
.nav a { color: var(--ink-soft); transition: color 0.2s var(--ease); }
.nav a:hover { color: var(--ink); }
.nav a[aria-current] {
  color: var(--ink); text-decoration: none;
  box-shadow: 0 1px 0 0 var(--teal); padding-bottom: 0.35rem;
}
.nav .nav__contact {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.5rem 0.95rem; border: 1px solid var(--hair-strong); border-radius: 999px;
  color: var(--ink); font-weight: 600; font-size: 0.8125rem;
  background: rgba(25, 227, 193, 0.07);
  box-shadow: none; padding-bottom: 0.5rem;
}
.nav .nav__contact:hover { border-color: var(--teal); background: rgba(25, 227, 193, 0.14); }
.nav__dot, .rx-status__dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--teal); flex: none;
  box-shadow: 0 0 0 0 rgba(25, 227, 193, 0.55); animation: rx-pulse 2.4s ease-out infinite;
}
@keyframes rx-pulse {
  0% { box-shadow: 0 0 0 0 rgba(25, 227, 193, 0.5); }
  70%, 100% { box-shadow: 0 0 0 9px rgba(25, 227, 193, 0); }
}
.progress { height: 1px; }
.progress__bar { background: linear-gradient(90deg, var(--teal), var(--blue)); }

@media (max-width: 62rem) {
  .nav li:not(:last-child) { display: none; }
  .site-header__inner { justify-content: space-between; }
}
@media (max-width: 46rem) {
  .site-header__name { display: inline-flex; }
  .site-header__name span { display: none; }
  .nav .nav__contact { font-size: 0.75rem; padding: 0.45rem 0.8rem; }
}

/* -------------------------------------------------------------------- hero */

.rx-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(3.5rem, 9vh, 6.5rem) 0 clamp(3.5rem, 8vw, 6rem);
}
.rx-hero__bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60rem 28rem at 78% -8%, rgba(59, 130, 246, 0.22), transparent 70%),
    radial-gradient(40rem 22rem at 6% 30%, rgba(25, 227, 193, 0.07), transparent 70%);
}
.rx-hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--hair) 1px, transparent 1px),
    linear-gradient(90deg, var(--hair) 1px, transparent 1px);
  background-size: 4.5rem 4.5rem;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent 85%);
  mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent 85%);
  opacity: 0.5;
}
.rx-hero__inner { display: flex; flex-direction: column; gap: clamp(1.25rem, 2.6vw, 2rem); }

.rx-eyebrow {
  font-family: var(--mono); font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal);
}
.rx-eyebrow i { font-style: normal; color: var(--ink-soft); opacity: 0.7; padding: 0 0.35em; }

.rx-hero .rx-title {
  max-width: none; margin: 0;
  font-size: clamp(1.5rem, 3.15vw, 2.9rem);
  font-weight: 600; line-height: 1.1; letter-spacing: -0.035em;
  text-wrap: nowrap; white-space: nowrap; color: var(--ink);
}
.rx-hero .rx-title .hero__w { margin-right: 0; }
@media (max-width: 52rem) {
  .rx-hero .rx-title { white-space: normal; text-wrap: balance; font-size: clamp(1.9rem, 7vw, 2.8rem); }
}

.rx-hero__row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  align-items: center; gap: clamp(1.5rem, 5vw, 4rem);
}
.rx-hero__copy { display: flex; flex-direction: column; gap: 1.5rem; max-width: 40rem; }
.rx-lede {
  font-size: clamp(1.125rem, 1.7vw, 1.5rem); line-height: 1.45; letter-spacing: -0.012em;
  color: var(--ink-soft); max-width: 34ch;
}
.rx-status {
  display: inline-flex; align-items: center; gap: 0.7rem; align-self: flex-start;
  padding: 0.65rem 1.1rem; border: 1px solid var(--hair-strong); border-radius: 999px;
  background: rgba(25, 227, 193, 0.07);
  font-size: 0.9375rem; font-weight: 600; color: var(--ink);
}

.rx-portrait {
  position: relative; margin: 0; width: clamp(9rem, 17vw, 13.5rem);
  aspect-ratio: 4 / 5; border: 1px solid var(--hair-strong); border-radius: var(--r-lg);
  background: radial-gradient(90% 70% at 50% 100%, rgba(59, 130, 246, 0.35), rgba(5, 11, 26, 0.2) 70%), var(--paper-raised);
  overflow: hidden; display: flex; align-items: flex-end; justify-content: center;
}
.rx-portrait picture { display: contents; }
.rx-portrait img {
  height: 108%; width: auto; max-width: none; margin-bottom: -4%;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45));
}
/* The standing portrait with its halo, ring and floating chips */
.rx-stage { width: clamp(15rem, 26vw, 22rem); margin-inline: auto 0.5rem; }
.rx-stage .stage-me { height: clamp(18rem, 50vh, 26rem); }
@media (max-width: 52rem) {
  .rx-hero__row { grid-template-columns: 1fr; }
  .rx-stage { order: -1; width: min(70vw, 15rem); margin-inline: auto; }
  .rx-stage .stage-me { height: 19rem; }
}

/* The "find the wrong month" chart becomes an instrument panel */
.rx-hero .hero-chart {
  margin: clamp(0.5rem, 2vw, 1.5rem) 0 0;
  border: 1px solid var(--hair-strong); border-radius: var(--r-lg);
  background: var(--surface), rgba(8, 16, 36, 0.7);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
  padding: clamp(1rem, 2vw, 1.5rem);
}
.rx-hero .game__prompt { font-size: 1rem; color: var(--ink-soft); }
.rx-hero .game__prompt strong { color: var(--ink); }
.rx-hero .hero-chart__caption { font-size: 0.9375rem; line-height: 1.55; color: var(--ink-soft); }

/* ------------------------------------------------------------- what's solved */

.rx-solve { padding: clamp(4rem, 8vw, 7rem) 0; border-top: 1px solid var(--hair); }
.rx-h2 {
  margin-top: 1rem; max-width: 22ch;
  font-size: clamp(1.9rem, 4vw, 3.1rem); font-weight: 600;
  line-height: 1.08; letter-spacing: -0.03em; text-wrap: balance;
}
.rx-fixes { margin-top: clamp(2rem, 4vw, 3.25rem); border-top: 1px solid var(--hair-strong); counter-reset: fix; }
.rx-fix {
  counter-increment: fix; position: relative;
  display: grid; grid-template-columns: 3rem minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 0.8fr);
  gap: clamp(1rem, 3vw, 2.5rem); align-items: start;
  padding: clamp(1.25rem, 2.4vw, 1.9rem) 0; border-bottom: 1px solid var(--hair);
  transition: background 0.25s var(--ease);
}
.rx-fix::before {
  content: counter(fix, decimal-leading-zero);
  font-family: var(--mono); font-size: 0.8125rem; color: var(--ink-soft); padding-top: 0.2rem;
}
.rx-fix:hover { background: linear-gradient(90deg, rgba(25, 227, 193, 0.05), transparent 70%); }
.rx-fix p { font-size: 1.0625rem; line-height: 1.5; }
.rx-fix span {
  display: block; margin-bottom: 0.4rem;
  font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase;
}
.rx-fix__problem { color: var(--ink-soft); }
.rx-fix__problem span { color: var(--signal-bright); }
.rx-fix__solution { color: var(--ink); }
.rx-fix__solution span { color: var(--teal); }
.rx-fix__proof {
  font-family: var(--mono); font-size: 0.8125rem !important; line-height: 1.6 !important;
  color: var(--ink-soft); padding-top: 1.35rem;
}
.rx-fix__proof i { font-style: normal; color: var(--teal); padding: 0 0.25em; }
@media (max-width: 62rem) {
  .rx-fix { grid-template-columns: 2.25rem minmax(0, 1fr); }
  .rx-fix__solution, .rx-fix__proof { grid-column: 2; }
  .rx-fix__proof { padding-top: 0; }
}

.rx-about {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem); margin-top: clamp(3.5rem, 7vw, 6rem); align-items: start;
}
.rx-about__lead {
  margin: 0.9rem 0 1.25rem; font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 600; letter-spacing: -0.025em; line-height: 1.15;
}
.rx-about__text p:not(.rx-eyebrow):not(.rx-about__lead) {
  font-size: 1.0625rem; color: var(--ink-soft); max-width: 36rem;
}
.rx-about__text p + p { margin-top: 1rem; }
.rx-card {
  border: 1px solid var(--hair-strong); border-radius: var(--r-lg);
  background: var(--surface); padding: 0.4rem 1.4rem;
}
.rx-card > div { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--hair); }
.rx-card > div:last-child { border-bottom: 0; }
.rx-card dt { font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); padding-top: 0.2rem; }
.rx-card dd { margin: 0; font-size: 0.9375rem; color: var(--ink); line-height: 1.5; }
@media (max-width: 52rem) { .rx-about { grid-template-columns: 1fr; } }

/* ----------------------------------------------------------- contact + footer */

.rx-contact {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(5rem, 11vw, 9rem) 0; border-top: 1px solid var(--hair);
  background:
    radial-gradient(50rem 24rem at 50% 110%, rgba(25, 227, 193, 0.12), transparent 70%),
    radial-gradient(44rem 22rem at 85% 0%, rgba(59, 130, 246, 0.16), transparent 70%),
    var(--night);
}
.rx-contact__inner { display: flex; flex-direction: column; align-items: flex-start; gap: 1.25rem; }
.rx-contact__title {
  font-size: clamp(2.2rem, 6.4vw, 5rem); font-weight: 600; line-height: 1.02;
  letter-spacing: -0.04em; max-width: 14ch; text-wrap: balance;
}
.rx-contact__lede { font-size: clamp(1.0625rem, 1.5vw, 1.25rem); color: var(--ink-soft); max-width: 36rem; line-height: 1.55; }
.rx-contact__links { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }
.rx-btn {
  display: inline-flex; align-items: center; padding: 0.8rem 1.3rem;
  border: 1px solid var(--hair-strong); border-radius: 999px;
  font-size: 0.9375rem; font-weight: 600; text-decoration: none; color: var(--ink);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
}
.rx-btn:hover { border-color: var(--teal); background: rgba(25, 227, 193, 0.08); transform: translateY(-1px); }
.rx-btn--solid { background: var(--teal); border-color: var(--teal); color: #03130f; }
.rx-btn--solid:hover { background: #5ff0d6; border-color: #5ff0d6; }

.rx-footer { border-top: 1px solid var(--hair); background: var(--night); padding: 2.25rem 0 2.75rem; }
.rx-footer__inner {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem 2rem; align-items: center;
}
.rx-footer__brand { font-weight: 600; font-size: 0.9375rem; }
.rx-footer__brand span { display: block; margin-top: 0.15rem; font-weight: 400; font-size: 0.8125rem; color: var(--ink-soft); }
.rx-footer__nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; font-size: 0.875rem; }
.rx-footer__nav a { color: var(--ink-soft); text-decoration: none; }
.rx-footer__nav a:hover { color: var(--ink); }
.rx-footer__note { grid-column: 1 / -1; font-size: 0.8125rem; color: var(--ink-soft); opacity: 0.8; }
@media (max-width: 46rem) { .rx-footer__inner { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  .nav__dot, .rx-status__dot { animation: none; }
}

/* ===================================================================
   Phase 2: the older sections share the hero's heading system
   =================================================================== */

.section { padding-block: clamp(4rem, 8vw, 7rem); border-top: 1px solid var(--hair); }

.eyebrow {
  font-family: var(--mono); font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal);
}
.section__title {
  margin-top: 0.9rem; max-width: 24ch;
  font-size: clamp(1.9rem, 4vw, 3.1rem); font-weight: 600;
  line-height: 1.08; letter-spacing: -0.03em; text-wrap: balance;
}
.section__lede {
  margin-top: 1.1rem; max-width: 42rem;
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.55; color: var(--ink-soft);
}
.subsection__title {
  margin-top: clamp(2.75rem, 5vw, 4.5rem); margin-bottom: 0.4rem;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2;
}
.flow__lede, .feature__lede { font-size: 1.0625rem; line-height: 1.55; color: var(--ink-soft); max-width: 44rem; }
.feature__title { font-size: clamp(1.35rem, 2.2vw, 1.75rem); font-weight: 600; letter-spacing: -0.02em; }

/* What I do: the three promises, the flow, the capability tabs */
.triad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: clamp(1.75rem, 3vw, 2.5rem); }
.triad li {
  padding: 1.1rem 1.25rem; border: 1px solid var(--hair-strong); border-radius: var(--r-md);
  background: var(--surface); font-size: 1rem; line-height: 1.45; color: var(--ink-soft);
}
.triad li strong { display: block; margin-bottom: 0.25rem; font-size: 1.0625rem; color: var(--ink); }
@media (max-width: 52rem) { .triad { grid-template-columns: 1fr; } }

.flow__panel { border-color: var(--hair-strong); border-radius: var(--r-lg); background: var(--surface), rgba(8, 16, 36, 0.6); }
.flow__copy p { font-size: 1rem; line-height: 1.6; }
.flow__line, .case__tools { font-size: 0.9375rem; line-height: 1.5; }
.flow__line span { font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.14em; }
.flow__note, .gallery__note { font-size: 0.875rem; color: var(--ink-soft); }
.flow__tab { font-size: 0.9375rem; }
.flow__open a { font-size: 0.9375rem; }

.case-tab { font-size: 1rem; }
.case__title { font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 600; letter-spacing: -0.02em; }
.case__outcome { font-size: 1.0625rem; line-height: 1.5; }
.pillar__line, .pillar__areas li, .labels li { font-size: 0.9375rem; line-height: 1.55; }
.pillar__line span { font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); }
.stage p { font-size: 1rem; line-height: 1.6; }
.stage__title { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; }

.sample__copy p, .talk__meta, .project__tools { font-size: 0.9375rem; }

/* Cards and panels share one border language */
.case, .flow__panel, .sample, .journey__panel { border-color: var(--hair-strong); }

/* Journey / projects / speaking: readable body copy */
.journey .section__lede, .projects .section__lede, .speaking .section__lede, .offclock .section__lede { max-width: 44rem; }
.journey__layout p, .talk p, .cert p, .project p { font-size: 1rem; line-height: 1.6; }

/* What gets solved, inside the hero copy column: compact problem / fix / proof stack */
.rx-hero__copy { max-width: 44rem; gap: 1rem; }
.rx-fixes--hero { margin-top: 0; }
.rx-fixes--hero .rx-fix { grid-template-columns: 2rem minmax(0, 1fr); gap: 0.15rem 0.9rem; padding: 0.75rem 0; }
.rx-fixes--hero .rx-fix::before { grid-row: 1 / span 3; padding-top: 0.1rem; }
.rx-fixes--hero .rx-fix p { grid-column: 2; font-size: 0.9375rem; line-height: 1.45; }
.rx-fixes--hero .rx-fix span { display: inline; margin: 0 0.5rem 0 0; font-size: 0.625rem; }
.rx-fixes--hero .rx-fix__proof { padding-top: 0.1rem; font-size: 0.75rem !important; }

/* Undo the old "fit one screen" compaction on wide windows (#who, #what) so the new type scale breathes. */
@media (min-width: 62rem) {
  #who, #what {
    min-height: 0; display: block;
    padding-top: clamp(4rem, 8vw, 7rem); padding-bottom: clamp(4rem, 8vw, 7rem);
  }
  #who .subsection__title, #who .traits { display: revert; }

  #what .section__title { font-size: clamp(1.9rem, 4vw, 3.1rem); }
  #what .section__lede { margin-top: 1.1rem; max-width: 42rem; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.55; display: block; }
  #what .triad { display: grid; margin-top: clamp(1.75rem, 3vw, 2.5rem); gap: 1rem; }
  #what .triad li { padding: 1.1rem 1.25rem; font-size: 1rem; line-height: 1.45; }
  #what .triad li::before { width: 1.6rem; height: 1.6rem; font-size: 0.875rem; }
  #what .cases__layout { grid-template-columns: 17rem minmax(0, 1fr); gap: 1.5rem; margin-top: 2rem; }
  #what .case-tabs { gap: 0.5rem; }
  #what .case-tab { padding: 0.75rem 1rem; font-size: 1rem; line-height: 1.3; }
  #what .case { padding: 1.4rem 1.6rem; }
  #what .case__title { font-size: clamp(1.25rem, 2vw, 1.6rem); }
  #what .case__outcome { margin-top: 0.4rem; font-size: 1.0625rem; }
  #what .pillar__areas { margin-top: 1rem; gap: 0.4rem; }
  #what .pillar__areas li { padding: 0.2rem 0.7rem; font-size: 0.9375rem; }
  #what .pillar__line { margin-top: 0.8rem; font-size: 0.9375rem; line-height: 1.55; }
  #what .pillar__line span { font-size: 0.6875rem; }
  #what .pillar__line:last-of-type { display: block; }
  #what .case__tools { margin-top: 0.8rem; font-size: 0.9375rem; }
}

/* Who I am merged into the hero copy; the Arc/Education/Languages card sits under the portrait */
.rx-hero__copy { max-width: 46rem; }
.rx-about__text--hero .rx-about__lead { margin: 0.6rem 0 0.75rem; font-size: clamp(1.25rem, 2vw, 1.6rem); }
.rx-about__text--hero p:not(.rx-eyebrow):not(.rx-about__lead) { font-size: 0.9375rem; line-height: 1.55; max-width: 44rem; }
.rx-solve-label { margin-top: 0.5rem; }
.rx-hero__side { display: flex; flex-direction: column; gap: 1rem; align-items: stretch; width: clamp(15rem, 26vw, 22rem); margin-inline: auto 0.5rem; }
.rx-hero__side .rx-stage { width: 100%; margin: 0; }
.rx-card--hero { padding: 0.2rem 1rem; }
.rx-card--hero > div { grid-template-columns: 5rem minmax(0, 1fr); padding: 0.6rem 0; }
.rx-card--hero dd { font-size: 0.8125rem; }
@media (max-width: 52rem) {
  .rx-hero__side { order: -1; width: min(86vw, 24rem); margin-inline: auto; }
}

/* ---- One-screen hero: headline, who I am, portrait and the five fixes all above the fold ---- */
.rx-hero { min-height: 0; }
.rx-hero__inner { gap: clamp(0.6rem, 1.6vh, 1rem); }
.rx-hero .rx-title { font-size: clamp(1.5rem, 2.7vw, 2.4rem); }
.rx-hero__row { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: clamp(1rem, 3vw, 2.5rem); }
.rx-hero__copy { max-width: none; gap: 0.75rem; }
.rx-about__text--hero .rx-about__lead { margin: 0.35rem 0 0.4rem; font-size: clamp(1.1rem, 1.7vw, 1.4rem); }
.rx-about__text--hero p:not(.rx-eyebrow):not(.rx-about__lead) { font-size: 0.8125rem; line-height: 1.5; max-width: 60rem; }
.rx-card--hero { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0.2rem 0; border: 0; background: none; }
.rx-card--hero > div { display: block; padding: 0.4rem 0.9rem 0.4rem 0; border: 0; }
.rx-card--hero dt { font-size: 0.625rem; padding: 0 0 0.15rem; }
.rx-card--hero dd { font-size: 0.75rem; line-height: 1.4; color: var(--ink-soft); }
.rx-stage { width: auto; margin: 0; }
.rx-stage .stage-me { height: clamp(12rem, 34vh, 19rem); width: auto; aspect-ratio: 600 / 1152; }
.rx-solve-label { margin: 0; }
.rx-fixes--hero { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.6rem; border-top: 0; margin: 0; }
.rx-fixes--hero .rx-fix { display: flex; flex-direction: column; gap: 0.3rem; padding: 0.7rem 0.8rem; border: 1px solid var(--hair-strong); border-radius: 10px; background: var(--surface); }
.rx-fixes--hero .rx-fix::before { grid-row: auto; padding: 0; font-size: 0.6875rem; color: var(--teal); }
.rx-fixes--hero .rx-fix p { font-size: 0.75rem; line-height: 1.4; }
.rx-fixes--hero .rx-fix span { display: block; margin: 0 0 0.1rem; }
.rx-fixes--hero .rx-fix__proof { margin-top: auto; padding-top: 0.2rem; font-size: 0.6875rem !important; }
@media (max-width: 75rem) { .rx-fixes--hero { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 52rem) {
  .rx-hero__row { grid-template-columns: 1fr; }
  .rx-stage { order: -1; margin-inline: auto; }
  .rx-card--hero { grid-template-columns: 1fr; }
  .rx-fixes--hero { grid-template-columns: 1fr; }
}

/* fold tuning: tight rows, no stretched gaps, chips hidden (the eyebrow already says it) */
.rx-hero { padding: clamp(1.25rem, 3.5vh, 2.25rem) 0 clamp(1.25rem, 3vh, 2rem); }
.rx-hero__row { align-items: center; }
.rx-hero__copy { justify-content: center; }
.rx-hero__copy > * { flex: 0 0 auto; }
.rx-stage .stage-chip { display: none; }
.rx-stage .stage-me { height: clamp(11rem, 29vh, 16rem); }
.rx-stage .stage-me::before { inset: -4% -30% 4%; }
.rx-hero__row { margin-top: clamp(0.5rem, 1.6vh, 1.1rem); }

/* Bigger, taller portrait: grows upward into the empty space beside the headline, so the row height is unchanged */
@media (min-width: 52.01rem) {
  .rx-hero__row .rx-stage { align-self: end; margin-top: calc(-1 * clamp(2.5rem, 11vh, 6rem)); }
  .rx-stage .stage-me { height: clamp(14rem, 41vh, 25rem); }
  .rx-stage .stage-me::before { inset: -3% -34% 3%; }
}

/* ===================================================================
   Side menu: glassmorphism drawer, slides in from the right.
   Only shown when script runs (.js), so the header nav is the fallback.
   =================================================================== */

.menu-toggle { display: none; }
.js .menu-toggle {
  display: inline-flex; align-items: center; gap: 0.6rem; flex: none;
  padding: 0.55rem 0.9rem 0.55rem 0.8rem; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--hair-strong); color: var(--ink);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  font: 600 0.8125rem/1 var(--font); letter-spacing: 0.01em;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}
.js .menu-toggle:hover { border-color: var(--teal); background: rgba(25, 227, 193, 0.1); }
.js .menu-toggle:active { transform: scale(0.97); }
.menu-toggle__bars { position: relative; width: 18px; height: 12px; display: block; }
.menu-toggle__bars i {
  position: absolute; left: 0; width: 100%; height: 1.75px; border-radius: 2px; background: currentColor;
  transition: transform 0.4s var(--ease), opacity 0.2s var(--ease), width 0.3s var(--ease);
}
.menu-toggle__bars i:nth-child(1) { top: 0; }
.menu-toggle__bars i:nth-child(2) { top: 5px; width: 70%; }
.menu-toggle__bars i:nth-child(3) { top: 10px; }
.menu-toggle:hover .menu-toggle__bars i:nth-child(2) { width: 100%; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars i:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
@media (max-width: 46rem) { .menu-toggle__label { display: none; } .js .menu-toggle { padding: 0.65rem; } }
@media (max-width: 62rem) { .js .nav li:last-child { margin-right: 0.25rem; } }

/* page behind the drawer */
html.menu-open { overflow: hidden; }
.side-scrim {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(2, 6, 16, 0.5);
  opacity: 0; transition: opacity 0.45s var(--ease);
}
@supports (backdrop-filter: blur(1px)) { .side-scrim { backdrop-filter: blur(3px); } }
.side-scrim.is-open { opacity: 1; }
.side-scrim[hidden] { display: none; }

/* the glass panel */
.side-menu {
  position: fixed; top: 0; left: 0; z-index: 100;
  width: min(25rem, 90vw); height: 100vh; height: 100dvh;
  display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain;
  padding: clamp(1.1rem, 3vh, 1.75rem) clamp(1.1rem, 3vw, 1.6rem);
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0 24px 24px 0;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.03) 42%, rgba(25, 227, 193, 0.06)),
    rgba(9, 18, 40, 0.9);
  box-shadow: 30px 0 80px -20px rgba(0, 0, 0, 0.65), inset -1px 0 0 rgba(255, 255, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transform: translateX(-104%); visibility: hidden;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.55s;
  isolation: isolate;
}
@supports (backdrop-filter: blur(1px)) {
  .side-menu {
    background:
      linear-gradient(155deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.03) 42%, rgba(25, 227, 193, 0.07)),
      rgba(9, 18, 40, 0.5);
    backdrop-filter: blur(26px) saturate(165%);
    -webkit-backdrop-filter: blur(26px) saturate(165%);
  }
}
.side-menu.is-open { transform: none; visibility: visible; transition-delay: 0s; }

/* a soft moving light inside the glass */
.side-menu__glow {
  position: absolute; inset: -20% auto auto -30%; width: 22rem; height: 22rem; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(25, 227, 193, 0.22), rgba(59, 130, 246, 0.14) 55%, transparent 72%);
  filter: blur(8px); opacity: 0; transform: translate(-30%, -10%);
  transition: opacity 0.9s var(--ease) 0.15s, transform 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.1s;
}
.side-menu.is-open .side-menu__glow { opacity: 1; transform: none; }

.side-menu__top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 1.1rem; margin-bottom: 0.6rem; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.side-menu__brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 600; font-size: 0.9375rem; color: var(--teal); }
.side-menu__brand { color: var(--ink); }
.side-menu__brand svg { color: var(--teal); }
.side-menu__close {
  position: relative; width: 2.5rem; height: 2.5rem; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.06);
  transition: transform 0.45s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.side-menu__close span { position: absolute; left: 50%; top: 50%; width: 14px; height: 1.75px; border-radius: 2px; background: var(--ink); }
.side-menu__close span:first-child { transform: translate(-50%, -50%) rotate(45deg); }
.side-menu__close span:last-child { transform: translate(-50%, -50%) rotate(-45deg); }
.side-menu__close:hover { transform: rotate(90deg); background: rgba(25, 227, 193, 0.14); border-color: var(--teal); }

/* links + the gliding pill */
.side-menu__nav { position: relative; flex: 1 1 auto; margin: 0.4rem -0.4rem; }
.side-menu__nav ul { position: relative; display: grid; gap: 0.15rem; }
.side-menu__pill {
  position: absolute; left: 0; right: 0; top: 0; z-index: 0; pointer-events: none; border-radius: 14px;
  height: var(--h, 0); transform: translateY(var(--y, 0)); opacity: 0;
  background: linear-gradient(90deg, rgba(25, 227, 193, 0.16), rgba(59, 130, 246, 0.1));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 8px 30px -12px rgba(25, 227, 193, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), height 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s var(--ease);
}
.side-menu__pill.is-on { opacity: 1; }
.side-menu__nav li {
  position: relative; z-index: 1;
  opacity: 0; transform: translateX(-1.75rem);
  transition: opacity 0.5s var(--ease), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.side-menu.is-open .side-menu__nav li { opacity: 1; transform: none; transition-delay: calc(0.12s + var(--i, 0) * 0.045s); }
.side-menu__nav a {
  display: flex; align-items: center; gap: 1rem; padding: 0.7rem 0.9rem; border-radius: 14px;
  text-decoration: none; color: var(--ink-soft); transition: color 0.25s var(--ease);
}
.side-menu__num { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em; color: var(--ink-soft); opacity: 0.7; transition: color 0.25s var(--ease), opacity 0.25s var(--ease); }
.side-menu__text { display: grid; gap: 0.1rem; }
.side-menu__text strong { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.side-menu__text small { font-size: 0.8125rem; color: var(--ink-soft); }
.side-menu__nav a:hover .side-menu__num, .side-menu__nav a:focus-visible .side-menu__num,
.side-menu__nav a[aria-current] .side-menu__num { color: var(--teal); opacity: 1; }
.side-menu__nav a[aria-current] .side-menu__text strong { color: #fff; }
.side-menu__nav a:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; }

/* footer: call to action + links */
.side-menu__foot { padding-top: 1.1rem; margin-top: 0.6rem; border-top: 1px solid rgba(255, 255, 255, 0.1); opacity: 0; transform: translateY(0.8rem); transition: opacity 0.5s var(--ease), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.side-menu.is-open .side-menu__foot { opacity: 1; transform: none; transition-delay: 0.5s; }
.side-menu__cta {
  display: flex; align-items: center; gap: 0.7rem; padding: 0.95rem 1.1rem; border-radius: 14px; text-decoration: none;
  font-weight: 600; font-size: 0.9375rem; color: #03130f;
  background: linear-gradient(135deg, #5ff0d6, var(--teal));
  box-shadow: 0 14px 34px -14px rgba(25, 227, 193, 0.7);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.side-menu__cta > span:last-child { margin-left: auto; transition: transform 0.3s var(--ease); }
.side-menu__cta:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -14px rgba(25, 227, 193, 0.85); }
.side-menu__cta:hover > span:last-child { transform: translateX(4px); }
.side-menu__cta-dot { width: 8px; height: 8px; border-radius: 50%; background: #03130f; flex: none; }
.side-menu__links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; margin-top: 1.1rem; font-size: 0.875rem; }
.side-menu__links a { color: var(--ink-soft); text-decoration: none; transition: color 0.2s var(--ease); }
.side-menu__links a:hover { color: var(--teal); }

@media (max-width: 40rem) { .side-menu { width: 100vw; border-radius: 0; } }

@media (prefers-reduced-motion: reduce) {
  .side-menu, .side-scrim, .side-menu__nav li, .side-menu__foot, .side-menu__pill, .side-menu__glow, .menu-toggle__bars i, .side-menu__close {
    transition-duration: 0.01ms !important; transition-delay: 0s !important;
  }
}
.side-menu__close:focus-visible, .js .menu-toggle:focus-visible, .side-menu__cta:focus-visible, .side-menu__links a:focus-visible {
  outline: 2px solid var(--teal); outline-offset: 3px;
}


/* No top nav bar: the header is just a floating glass Menu button and the reading-progress line. */
.site-header--float {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  background: none; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none;
  pointer-events: none;
}
.site-header--float .menu-toggle {
  pointer-events: auto; position: absolute; top: 1rem; left: max(1rem, calc((100vw - 72rem) / 2));
  backdrop-filter: blur(14px) saturate(150%); -webkit-backdrop-filter: blur(14px) saturate(150%);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)), rgba(9, 18, 40, 0.5);
  box-shadow: 0 10px 30px -14px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.site-header--float .progress { position: fixed; top: 0; left: 0; right: 0; bottom: auto; height: 2px; z-index: 81; }
html { scroll-padding-top: 1.5rem; }
.rx-hero { padding-top: clamp(5rem, 11vh, 7.5rem); }
html.menu-open .site-header--float .menu-toggle { opacity: 0; pointer-events: none; }
@media (max-width: 46rem) { .site-header--float .menu-toggle { left: 1rem; } }

/* =====================================================================
   Landing poster (replaces the old hero layout)
   ===================================================================== */
.poster {
  --lime: #c9ff4a;
  --leaf: #46d35c;
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(4.5rem, 9vh, 6rem) clamp(1rem, 3vw, 2.5rem) clamp(1.5rem, 4vh, 3rem);
  overflow: hidden;
  isolation: isolate;
  background: #03070c;
}
.poster__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 55% at 50% 38%, rgba(120, 255, 70, 0.28), transparent 70%),
    radial-gradient(40% 40% at 12% 8%, rgba(70, 211, 92, 0.22), transparent 70%),
    radial-gradient(40% 45% at 92% 70%, rgba(25, 227, 193, 0.14), transparent 70%),
    linear-gradient(180deg, #04120a 0%, #03070c 70%);
}
.poster__stage {
  position: relative;
  width: min(100%, 78rem);
  aspect-ratio: 16 / 9.4;
  max-height: calc(100svh - 7rem);
  container-type: inline-size;
}
.poster__stage > * { position: absolute; margin: 0; }

.poster__roles {
  top: 0; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: baseline;
  padding-inline: 4cqw;
  font-size: 3.3cqw; font-weight: 500; letter-spacing: -0.01em; color: #fff;
}
.poster__roles i { font-style: normal; font-size: 3cqw; color: var(--lime); }

.poster__word {
  top: 7cqw; left: 0; right: 0;
  text-align: center;
  font-family: "Anton", "Impact", sans-serif;
  font-size: 24cqw; line-height: 1; letter-spacing: 0.01em;
  filter: drop-shadow(0 0 3cqw rgba(120, 255, 70, 0.35));
  user-select: none;
}
.poster__word span {
  display: inline-block;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0);
  background:
    linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.95) 50%, transparent 65%) 130% 0 / 300% 100% no-repeat,
    linear-gradient(180deg, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0) 42%) 0 100% / 100% 100% no-repeat,
    linear-gradient(180deg, #d8ff5a 0%, #7fe83f 38%, #2a8a3a 78%, rgba(10, 40, 20, 0.2) 100%) 0 100% / 100% 100% no-repeat;
  -webkit-background-clip: text; background-clip: text;
}
.poster__word.is-ripple { filter: drop-shadow(0 0 3cqw rgba(120, 255, 70, 0.35)) url(#px-ripple); }
.poster__fx { position: absolute !important; width: 0; height: 0; }

.poster__me {
  left: 50%; bottom: 0; transform: translateX(-50%);
  height: 93%;
  aspect-ratio: 431 / 1271;
  filter: drop-shadow(0 0 1.1cqw rgba(201, 255, 74, 0.55));
}
.poster__me picture { display: contents; }
.poster__me img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; display: block; }

.poster__badge {
  top: 12cqw; left: 62%;
  display: flex; align-items: center; gap: 1cqw;
  padding: 1cqw 1.8cqw;
  border-radius: 1.4cqw;
  background: linear-gradient(135deg, #fff 0%, #eaffcc 60%, #b8f26a 100%);
  color: #101a0c;
  box-shadow: 0 0 3cqw rgba(160, 255, 80, 0.5);
  font-size: 1.7cqw; font-weight: 600;
}
.poster__badge b { display: flex; flex-direction: column; font-size: 3cqw; line-height: 0.95; font-weight: 800; padding-right: 1.2cqw; border-right: 1px solid rgba(0, 0, 0, 0.3); }
.poster__badge small { font-size: 1.1cqw; font-weight: 500; }

.poster__left { left: 1.5cqw; bottom: 5.5cqw; width: 46cqw; display: flex; flex-direction: column; gap: 1.2cqw; z-index: 3; }
.poster__stage > .poster__left { position: absolute; }
.poster__hi { position: static !important; display: flex; flex-direction: column; margin: 0; padding-left: 1.5cqw; }
.poster__hi span { font-size: 2.2cqw; color: #fff; padding-left: 4cqw; }
.poster__hi strong {
  font-family: "Allura", cursive; font-weight: 400;
  font-size: 5cqw; line-height: 0.95; color: var(--lime);
  text-shadow: 0 0 2cqw rgba(201, 255, 74, 0.35);
  white-space: normal; width: max-content;
}

.poster__card {
  position: static !important; width: 42cqw;
  padding: 1.6cqw 1.8cqw 1.8cqw;
  border-radius: 1.8cqw;
  background: linear-gradient(135deg, rgba(96, 190, 40, 0.75), rgba(40, 110, 30, 0.7));
  border: 1px solid rgba(201, 255, 74, 0.45);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3), 0 2cqw 5cqw rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  z-index: 3;
}
.poster__card h2 { margin: 0 0 1.1cqw; font-family: inherit; font-size: 2.4cqw; font-weight: 700; color: #fff; }
.poster__paper { background: rgba(255, 255, 255, 0.9); border-radius: 1.2cqw; padding: 1.4cqw 1.6cqw; }
.poster__paper p { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.3cqw; line-height: 1.5; color: #1a1f14; }

.poster__skills {
  right: 3cqw; bottom: 8cqw; margin: 0; padding: 0; list-style: none;
  display: grid; gap: 1.6cqw; z-index: 2;
}
.poster__skills li {
  display: flex; align-items: center; gap: 1.1cqw;
  font-size: 1.9cqw; color: #fff; white-space: nowrap;
  padding-right: 1.1cqw; border-right: 2px solid rgba(255, 255, 255, 0.35);
}
.poster__skills i {
  width: 2.1cqw; height: 2.1cqw; background: var(--c);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  filter: drop-shadow(0 0 0.6cqw var(--c));
}

.poster__title {
  left: 50%; bottom: 0; transform: translateX(-50%);
  width: max-content; max-width: 100%;
  font-size: 1.9cqw; font-weight: 500; letter-spacing: 0; color: #fff; white-space: nowrap;
  padding: 0.7cqw 1.8cqw; border-radius: 99px;
  background: rgba(0, 0, 0, 0.45); border: 1px solid rgba(201, 255, 74, 0.3);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  z-index: 4;
}
.poster__title .hero__w--flag { color: var(--lime); }

/* the stacked section after the poster */
.rx-solved { padding-block: clamp(3rem, 8vw, 6rem); }
.rx-solved .rx-fixes--hero { margin-top: 2rem; }

/* menu button must read on the dark poster */
.js .menu-toggle { z-index: 60; }

/* narrow screens: the poster reflows into a stack */
@media (max-width: 52rem) {
  .poster { place-items: start center; padding-top: 4.5rem; }
  .poster__stage { aspect-ratio: auto; max-height: none; display: grid; gap: 1.2rem; justify-items: center; container-type: normal; }
  .poster__stage > * { position: static; transform: none !important; }
  .poster__roles { font-size: 1rem; gap: 0.6rem; justify-content: center; padding: 0; }
  .poster__word { font-size: clamp(4rem, 22vw, 8rem); margin-bottom: -4.5rem; }
  .poster__me { height: 22rem; }
  .poster__badge { font-size: 0.9rem; padding: 0.5rem 0.9rem; border-radius: 0.8rem; }
  .poster__badge b { font-size: 1.6rem; }
  .poster__badge small { font-size: 0.65rem; }
  .poster__left { display: contents; }
  .poster__hi { align-items: center; padding: 0; }
  .poster__hi span { font-size: 1rem; padding: 0; }
  .poster__hi strong { font-size: clamp(2.2rem, 11vw, 3.4rem); white-space: normal; text-align: center; }
  .poster__card { width: 100%; padding: 1rem; border-radius: 1rem; }
  .poster__card h2 { font-size: 1.15rem; margin-bottom: 0.7rem; }
  .poster__paper { padding: 0.8rem 1rem; border-radius: 0.7rem; }
  .poster__paper p { font-size: 0.9rem; }
  .poster__skills { grid-template-columns: 1fr 1fr; gap: 0.7rem 1rem; }
  .poster__skills li { font-size: 0.9rem; border: 0; padding: 0; white-space: normal; }
  .poster__skills i { width: 1rem; height: 1rem; flex: none; }
  .poster__title { font-size: 1rem; white-space: normal; text-align: center; border-radius: 1rem; padding: 0.6rem 1rem; }
  /* reading order on phones follows the reveal order: roles, word, portrait, name, summary, badge, skills, tagline */
  .poster__roles { order: 1; } .poster__word { order: 2; } .poster__me { order: 3; }
  .poster__hi { order: 4; } .poster__card { order: 5; } .poster__badge { order: 6; }
  .poster__skills { order: 7; } .poster__title { order: 8; }
  .poster__skip { top: 0.8rem; right: 0.8rem; }
}


/* =====================================================================
   Poster intro: 11 seconds. html.intro hides the pieces; .poster.is-go plays the timeline.
   0-3s PORTFOLIO written letter by letter + glass shine | 3-4.3s water ripple on the word, 4.3s portrait rises
   4s name + summary (camera, 2s) | 6s badge (camera) | 8-9s skills (camera) | 9-11s zoom out and hold
   ===================================================================== */
html.intro .poster__roles,
html.intro .poster__hi span,
html.intro .poster__hi strong,
html.intro .poster__card,
html.intro .poster__badge,
html.intro .poster__skills li,
html.intro .poster__title,
html.intro .poster__me,
html.intro .poster__word span { opacity: 0; }

.poster__skip {
  position: absolute; top: 1.1rem; right: 1.25rem; z-index: 20;
  padding: 0.45rem 0.9rem; border-radius: 99px; cursor: pointer;
  font: 500 0.8125rem/1 var(--sans, inherit); color: #fff;
  background: rgba(0, 0, 0, 0.4); border: 1px solid rgba(201, 255, 74, 0.45);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.poster__skip:hover { background: rgba(201, 255, 74, 0.2); }
.poster__skip:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }

.poster__drop { left: 50%; top: 19cqw; width: 0; height: 0; pointer-events: none; z-index: 1; }
.poster__drop i { position: absolute; opacity: 0; }
.poster__drop i {
  left: -52cqw; top: -17cqw; width: 104cqw; height: 34cqw; border-radius: 50%;
  border: 0.28cqw solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 1.6cqw rgba(201, 255, 74, 0.7), inset 0 0 1.6cqw rgba(201, 255, 74, 0.5);
}

.poster.is-go .poster__stage { animation: px-camera 12.1s cubic-bezier(0.45, 0, 0.25, 1) both; transform-origin: 50% 50%; }
.poster.is-go .poster__bg { animation: px-pulse 1.2s ease-in-out 10.9s both; }

/* 0-3s: letter k is written (outline wipes left to right, ink floods up), then catches a glassy shine */
.poster.is-go .poster__word span {
  animation:
    px-ink 0.75s ease-out calc(var(--k) * 0.22s) both,
    px-stroke 0.75s linear calc(var(--k) * 0.22s) both,
    px-sweep 0.55s ease-in-out calc(var(--k) * 0.22s + 0.6s) both;
}
.poster.is-go .poster__roles { animation: px-fade 0.6s ease-out 0.2s both; }

/* 3s: water ripple spreads through the word, portrait rises bottom to top */
.poster.is-go .poster__drop i { animation: px-ring 1s cubic-bezier(0.2, 0.6, 0.3, 1) calc(3s + var(--r, 0) * 0.15s) forwards; }
.poster.is-go .poster__drop i:nth-of-type(1) { --r: 0; }
.poster.is-go .poster__drop i:nth-of-type(2) { --r: 1; }
.poster.is-go .poster__drop i:nth-of-type(3) { --r: 2; }
.poster.is-go .poster__me { animation: px-rise 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 4.3s both; }

/* 4s: "Hi I am" + name + Professional Summary */
.poster.is-go .poster__hi span { animation: px-fade 0.4s ease-out 5.1s both; }
.poster.is-go .poster__hi strong { animation: px-write 1s cubic-bezier(0.3, 0.1, 0.2, 1) 5.3s both; }
.poster.is-go .poster__card { animation: px-up 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) 5.4s both; }

/* 6s: experience badge (name + summary have had 2s on screen) */
.poster.is-go .poster__badge { animation: px-pop 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) 7.1s both; }

/* 8-9s: skill pointers */
.poster.is-go .poster__skills li { animation: px-in-right 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) calc(9.1s + var(--n, 0) * 0.15s) both; }
.poster.is-go .poster__skills li:nth-child(1) { --n: 0; }
.poster.is-go .poster__skills li:nth-child(2) { --n: 1; }
.poster.is-go .poster__skills li:nth-child(3) { --n: 2; }
.poster.is-go .poster__skills li:nth-child(4) { --n: 3; }
.poster.is-go .poster__skills li:nth-child(5) { --n: 4; }

/* 9s: tagline while the camera zooms out */
.poster.is-go .poster__title { animation: px-up 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) 10.1s both; }

/* camera: scale + translate in stage-relative % (translate = -scale * (focus - 0.5)) */
@keyframes px-camera {
  0%, 42.1%    { scale: 1;    translate: 0 0; }          /* 0-5.1s   whole word, then the portrait */
  47.1%, 58.7% { scale: 1.5;  translate: 24% -18%; }     /* 5.7-7.1s name + summary (left), on screen for 2s */
  62.8%, 75.2% { scale: 1.45; translate: -22.5% 23%; }   /* 7.6-9.1s experience badge (upper right) */
  79.3%, 83.5% { scale: 1.5;  translate: -25% -25%; }    /* 9.6-10.1s skill pointers (lower right) */
  100%         { scale: 1;    translate: 0 0; }          /* 10.1-12.1s zoom out, full composition */
}
@keyframes px-pulse { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.45) saturate(1.2); } }
@keyframes px-ink {
  0%   { opacity: 1; clip-path: inset(-10% 100% -10% -5%); background-size: 300% 100%, 100% 0%, 100% 0%; }
  45%  { opacity: 1; clip-path: inset(-10% -5% -10% -5%);  background-size: 300% 100%, 100% 0%, 100% 0%; }
  100% { opacity: 1; clip-path: inset(-10% -5% -10% -5%);  background-size: 300% 100%, 100% 100%, 100% 100%; }
}
@keyframes px-stroke {
  0%, 45% { -webkit-text-stroke-color: rgba(255, 255, 255, 0.95); }
  100%    { -webkit-text-stroke-color: rgba(255, 255, 255, 0); }
}
@keyframes px-sweep {
  from { background-position: 130% 0, 0 100%, 0 100%; }
  to   { background-position: -30% 0, 0 100%, 0 100%; }
}
@keyframes px-ring {
  0%   { opacity: 0.95; scale: 0.04; }
  100% { opacity: 0; scale: 1; }
}
@keyframes px-rise {
  from { opacity: 1; clip-path: inset(100% -50% 0 -50%); translate: 0 10%; }
  to   { opacity: 1; clip-path: inset(-20% -50% 0 -50%); translate: 0 0; }
}
@keyframes px-fade { from { opacity: 0; translate: 0 0.6cqw; } to { opacity: 1; translate: 0 0; } }
@keyframes px-write { from { opacity: 1; clip-path: inset(-20% 100% -20% -2%); } to { opacity: 1; clip-path: inset(-20% -6% -20% -2%); } }
@keyframes px-up { from { opacity: 0; translate: 0 3cqw; filter: blur(8px); } to { opacity: 1; translate: 0 0; filter: blur(0); } }
@keyframes px-pop {
  0%   { opacity: 0; scale: 0.5; translate: 0 1cqw; }
  65%  { opacity: 1; scale: 1.08; translate: 0 0; }
  100% { opacity: 1; scale: 1; translate: 0 0; }
}
@keyframes px-in-right { from { opacity: 0; translate: 3cqw 0; filter: blur(4px); } to { opacity: 1; translate: 0 0; filter: blur(0); } }
@media (max-width: 52rem) { .poster.is-go .poster__stage { animation: none; } .poster__drop { display: none; } }
@media (prefers-reduced-motion: reduce) {
  html.intro .poster * { opacity: 1 !important; }
  .poster.is-go * { animation: none !important; }
  .poster__skip { display: none; }
}
