:root {
  color-scheme: dark;
  --bg: #080809;
  --panel: #111113;
  --cream: #f5eee8;
  --muted: #a6a09d;
  --red: #f04443;
  --red-dark: #8e2527;
  --line: rgba(245, 238, 232, 0.18);
  --display: Impact, Haettenschweiler, "Arial Narrow Bold", "Arial Narrow", sans-serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--cream);
  background-color: var(--bg);
  background-image: radial-gradient(ellipse 46% 40% at 70% 22%, rgba(111, 14, 20, 0.21), transparent 75%),
                    radial-gradient(ellipse 50% 45% at 14% 72%, rgba(89, 7, 16, 0.18), transparent 75%);
  background-position: center top;
  background-repeat: no-repeat;
  background-size: 100% 1080px;
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

::selection { color: #100909; background: #f36b64; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 2px solid #ffb2a8; outline-offset: 5px; }
[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 1rem;
  left: 1rem;
  transform: translateY(-160%);
  padding: 0.8rem 1rem;
  color: #111;
  background: var(--cream);
  font-weight: 700;
}
.skip-link:focus { transform: translateY(0); }

.shell { width: min(100% - 7.5vw, 1510px); margin-inline: auto; }

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  height: 75px;
  display: grid;
  place-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  background: rgba(8, 8, 9, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.05rem, 2.1vw, 2.2rem);
  width: max-content;
  max-width: 100%;
  padding: 0 1rem;
}
.brand { display: inline-flex; align-items: center; justify-content: center; }
.brand__mark {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  color: #1b0507;
  background: var(--red);
  box-shadow: 0 0 22px rgba(240, 68, 67, 0.32);
  font-family: var(--display);
  font-size: 0.91rem;
  font-style: italic;
  letter-spacing: -0.06em;
  transform: rotate(-11deg);
}
.nav__link,
.nav__contact {
  font-size: 0.78rem;
  font-weight: 700;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}
.nav__link { color: #ded8d4; }
.nav__link:hover,
.nav__link[aria-current="location"] { color: var(--red); }
.nav__contact {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 36px;
  padding: 0.6rem 1.05rem;
  border-radius: 100px;
  color: #2d1716;
  background: var(--cream);
}
.nav__contact:hover { background: #ffd7cb; transform: translateY(-2px); }
.nav__contact span { font-size: 1rem; line-height: 0; }
.nav__toggle {
  display: none;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0 0.85rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--cream);
  background: transparent;
  font: 700 0.68rem var(--sans);
  cursor: pointer;
}
.nav__toggle-bars { display: grid; gap: 4px; width: 16px; }
.nav__toggle-bars i { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform 200ms ease; }
.is-open .nav__toggle-bars i:first-child { transform: translateY(3px) rotate(45deg); }
.is-open .nav__toggle-bars i:last-child { transform: translateY(-3px) rotate(-45deg); }

.marquee {
  overflow: hidden;
  border-top: 1px solid rgba(245, 238, 232, 0.13);
  border-bottom: 1px solid rgba(245, 238, 232, 0.18);
  background: linear-gradient(90deg, rgba(46, 17, 21, 0.34), rgba(16, 12, 14, 0.66) 50%, rgba(46, 17, 21, 0.34));
}
.marquee__track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: marquee-move 34s linear infinite;
}
.marquee__group { display: flex; align-items: center; flex: none; min-width: max-content; }
.marquee__item {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.4vw, 2.6rem);
  padding: 0.77rem clamp(1.25rem, 2.4vw, 2.6rem) 0.72rem 0;
  color: var(--cream);
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.8vw, 3.15rem);
  font-style: italic;
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1;
  white-space: nowrap;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.16);
}
.marquee__star {
  width: 10px;
  height: 10px;
  flex: none;
  background: var(--red);
  box-shadow: 0 0 13px rgba(255, 61, 61, 0.9);
  transform: rotate(45deg);
}
@keyframes marquee-move { to { transform: translateX(-50%); } }

.hero { position: relative; }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(300px, 0.76fr);
  align-items: end;
  gap: clamp(1.5rem, 3.5vw, 4rem);
  min-height: max(680px, calc(100svh - 147px));
  padding-top: clamp(8rem, 18vh, 16rem);
  padding-bottom: clamp(4rem, 7vh, 6.5rem);
}
.hero__copy { min-width: 0; }
.hero__frame {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: clamp(340px, 32vw, 460px);
  padding: clamp(1.3rem, 2.5vw, 2.4rem);
  border: 1px solid rgba(242, 231, 227, 0.47);
  background: linear-gradient(125deg, rgba(100, 50, 49, 0.22), rgba(30, 16, 20, 0.34) 58%, rgba(71, 37, 38, 0.18));
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.14), inset 0 0 70px rgba(240, 68, 67, 0.035);
}
.hero__frame::before {
  position: absolute;
  top: -1px;
  left: -1px;
  width: 78px;
  height: 2px;
  background: var(--red);
  content: "";
  box-shadow: 0 0 20px rgba(240, 68, 67, 0.6);
}
.hero__frame-corner {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 27px;
  height: 27px;
  border-right: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
}
.eyebrow,
.section__number,
.section__aside,
.hero__side-note,
.hero__visual-caption,
.project__type,
.project__meta,
.project__visual-index,
.contact__kicker { font-family: var(--mono); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.18em; }
.hero__eyebrow { display: flex; align-items: center; gap: 0.55rem; margin: 0 0 1.7rem; color: var(--red); }
.eyebrow__dot { width: 6px; height: 6px; background: var(--red); box-shadow: 0 0 12px var(--red); }
.hero__title,
.display-heading,
.project h3 {
  margin: 0;
  font-family: var(--display);
  font-style: italic;
  font-weight: 900;
  letter-spacing: -0.032em;
  text-transform: uppercase;
}
/* Negative tracking also eats the word gap in this condensed face; restore it so words don't run together. */
.hero__title,
.display-heading,
.project h3,
.portrait-scene__left h2,
.experience__body h3,
.achievement__story h3,
.certifications__header h3 { word-spacing: 0.12em; }
.hero__title {
  font-size: clamp(4.25rem, 9vw, 10.2rem);
  line-height: 0.83;
}
.hero__title-line { display: block; color: var(--red); white-space: nowrap; }
.hero__title-line--light { color: var(--cream); }
.hero__bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 1.15rem; }
.hero__identity { margin: 0; color: var(--muted); font-size: 0.73rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; }
.hero__identity strong { color: var(--cream); font-weight: 800; }
.hero__identity-sep { margin-inline: 0.42rem; color: var(--red); }
.hero__scroll { color: var(--cream); font-family: var(--mono); font-size: 0.63rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; }
.hero__scroll:hover { color: var(--red); }
.hero__scroll span { margin-left: 0.3rem; font-size: 1rem; }
.hero__visual { position: relative; min-width: 0; padding-bottom: 1.6rem; }
.hero__visual::before {
  position: absolute;
  inset: 13% 6% 17%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(151, 26, 28, 0.08), transparent 65%);
  filter: blur(30px);
  content: "";
}
.orb { position: relative; width: min(100%, 510px); margin: auto; aspect-ratio: 1; }
.orb__canvas { display: block; width: 100%; height: 100%; }
.hero__visual.is-interactive .orb__canvas { cursor: grab; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.hero__visual.is-dragging .orb__canvas { cursor: grabbing; }
.hero__visual-hint { display: none; margin: 1.4rem 0 0; color: #8f8580; font-family: var(--mono); font-size: 0.58rem; font-weight: 750; letter-spacing: 0.16em; text-align: center; transition: color 200ms ease; }
.hero__visual.is-interactive .hero__visual-hint { display: block; }
.hero__visual.is-interactive:hover .hero__visual-hint { color: var(--red); }
.hero__visual-caption { position: relative; margin: -1.9rem 0 0; color: var(--cream); font-size: clamp(0.53rem, 0.78vw, 0.72rem); text-align: center; transform: rotate(4deg); }
.hero__side-note { position: absolute; right: 0; bottom: 1.15rem; margin: 0; color: #6c6260; writing-mode: vertical-rl; }

.portrait-scene {
  position: relative;
  height: 245svh;
  border-top: 1px solid rgba(245, 238, 232, 0.14);
  background: #090809;
  --scene-progress: 1;
  --scene-reveal: 1;
  --scene-scale: 1;
  --scene-lift: 0px;
  --scene-glow: 1;
  --scene-image-reveal: 1;
  --scene-side-reveal: 1;
  --interlude-opacity: 0;
}
.portrait-scene__sticky {
  position: sticky;
  top: 75px;
  height: calc(100svh - 75px);
  min-height: 610px;
}
.portrait-scene__stage {
  position: relative;
  isolation: isolate;
  height: 100%;
  overflow: clip;
  background:
    radial-gradient(ellipse 35% 39% at 50% 42%, rgba(169, 39, 43, 0.31), transparent 77%),
    radial-gradient(ellipse 55% 56% at 50% 80%, rgba(107, 18, 23, 0.35), transparent 75%),
    linear-gradient(180deg, #0c0b0c 0%, #0c080a 68%, #12070a 100%);
}
.portrait-scene__stage::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0, transparent calc(25% - 1px), rgba(255, 255, 255, 0.025) 25%);
  content: "";
  pointer-events: none;
}
.portrait-scene__stage::after {
  position: absolute;
  z-index: 4;
  inset: 48% 0 0;
  background: linear-gradient(180deg, transparent 0%, rgba(10, 7, 9, 0.08) 31%, rgba(8, 7, 8, 0.8) 100%);
  content: "";
  pointer-events: none;
}
.portrait-scene__interlude {
  position: absolute;
  z-index: 7;
  inset: 0;
  display: grid;
  place-items: center;
  color: #f04c49;
  background: radial-gradient(circle at 50% 50%, rgba(89, 20, 29, 0.45), rgba(8, 7, 9, 0.95) 54%);
  opacity: var(--interlude-opacity);
  pointer-events: none;
}
.portrait-scene__interlude span {
  font-family: var(--display);
  font-size: clamp(6rem, 15vw, 13rem);
  font-style: italic;
  font-weight: 900;
  letter-spacing: -0.1em;
  line-height: 1;
  text-shadow: 0 0 45px rgba(240, 68, 67, 0.42);
  transform: rotate(-10deg);
}
.portrait-scene__wireframes { display: none; }
@media (min-width: 861px) and (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .portrait-scene__wireframes { position: absolute; z-index: 6; inset: 0; display: block; pointer-events: none; }
  .portrait-scene__wireframe { position: absolute; opacity: 0; background: rgba(198, 179, 174, 0.055); box-shadow: inset 0 0 45px rgba(255, 182, 177, 0.035); }
  .portrait-scene__wireframe--name { top: 23%; left: max(4vw, calc((100vw - 1510px) / 2)); width: min(28vw, 420px); height: 50%; }
  .portrait-scene__wireframe--portrait { top: 8%; left: 50%; width: min(32vw, 485px); height: 82%; transform: translateX(-50%); }
  .portrait-scene__wireframe--details { top: 27%; right: max(4vw, calc((100vw - 1510px) / 2)); width: min(23vw, 345px); height: 42%; }
  .portrait-scene__wireframe-path { display: block; width: 100%; height: 100%; overflow: visible; fill: none; stroke: #a8dce8; filter: drop-shadow(0 0 8px rgba(119, 198, 220, 0.27)); }
  .portrait-scene__wireframe-path path { stroke-width: 1.5px; vector-effect: non-scaling-stroke; }
  .portrait-scene__wireframe-tag { position: absolute; top: -0.65rem; left: 1rem; padding: 0.23rem 0.48rem; color: #b9e9f2; background: #163846; font-family: var(--mono); font-size: 0.56rem; font-weight: 800; letter-spacing: 0.1em; white-space: nowrap; }
  .portrait-scene__wireframe-cursor { --c: #92dce9; position: absolute; top: 0; left: 0; display: block; width: 25px; height: 31px; color: var(--c); opacity: 0; filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.5)); transform: translate(-2px, -2px); }
  .portrait-scene__wireframe--portrait .portrait-scene__wireframe-cursor { --c: #ffacac; }
  .portrait-scene__wireframe--details .portrait-scene__wireframe-cursor { --c: #c5a8ed; }
  .portrait-scene__wireframe-cursor svg { display: block; width: 100%; height: 100%; overflow: visible; }
  .portrait-scene__wireframe-cursor .bm-cursor__tag { top: 26px; left: 18px; }
  .portrait-scene__wireframe-cursor path { fill: currentColor; stroke: #151014; stroke-width: 1.8; stroke-linejoin: round; }
}
.portrait-scene__aura {
  position: absolute;
  z-index: 0;
  top: -29%;
  left: 50%;
  width: min(94vw, 1350px);
  height: 125%;
  border-radius: 50%;
  background:
    radial-gradient(ellipse 33% 47% at 50% 54%, rgba(255, 150, 122, 0.31), rgba(235, 61, 58, 0.16) 47%, transparent 78%),
    radial-gradient(ellipse 67% 66% at 50% 68%, rgba(166, 28, 36, 0.2), transparent 72%);
  filter: blur(28px);
  transform: translateX(-50%) translate3d(var(--pointer-aura-x, 0px), var(--pointer-aura-y, 0px), 0);
  pointer-events: none;
}
.portrait-scene__word {
  position: absolute;
  z-index: 1;
  top: 15%;
  left: 50%;
  width: max-content;
  max-width: none;
  color: transparent;
  background: linear-gradient(180deg, #fff6e8 8%, #f5ddd1 40%, #e9958e 68%, #8d292e 100%);
  background-clip: text;
  -webkit-background-clip: text;
  /* The gradient only paints inside the box, so pad it past the italic overhang of the final O. */
  margin-top: -0.1em;
  padding: 0.1em 0.16em 0.06em;
  filter: drop-shadow(0 14px 27px rgba(246, 75, 71, 0.36));
  font-family: var(--display);
  font-size: clamp(7rem, 18vw, 19rem);
  font-style: italic;
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.83;
  white-space: nowrap;
  transform: translateX(-50%) skewX(-4deg);
  pointer-events: none;
  user-select: none;
}
.portrait-scene__grid {
  position: absolute;
  z-index: 2;
  right: -28%;
  bottom: -31%;
  left: -28%;
  height: 70%;
  background-image:
    linear-gradient(rgba(236, 70, 75, 0.63) 1px, transparent 1px),
    linear-gradient(90deg, rgba(236, 70, 75, 0.53) 1px, transparent 1px);
  background-size: 68px 68px;
  box-shadow: inset 0 25px 40px rgba(239, 42, 57, 0.08);
  mask-image: linear-gradient(180deg, transparent, #000 24%, #000 72%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 24%, #000 72%, transparent);
  transform: perspective(580px) rotateX(66deg) scale(1.22);
  transform-origin: 50% 5%;
  pointer-events: none;
}
.portrait-scene__person {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: -19%;
  left: 0;
  display: flex;
  justify-content: center;
  height: 124%;
  pointer-events: none;
  transform: translate3d(var(--pointer-person-x, 0px), var(--pointer-person-y, 0px), 0);
}
.portrait-scene__image {
  display: block;
  width: auto;
  max-width: none;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 0 34px rgba(239, 98, 81, 0.24));
  mask-image: linear-gradient(180deg, #000 0%, #000 55%, rgba(0, 0, 0, 0.94) 65%, transparent 84%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, rgba(0, 0, 0, 0.94) 65%, transparent 84%);
}
.portrait-scene__content {
  position: absolute;
  z-index: 5;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 33%;
  pointer-events: none;
}
.portrait-scene__left { max-width: 420px; min-width: 0; text-shadow: 0 2px 20px rgba(0, 0, 0, 0.64); }
.portrait-scene__hello { margin: 0 0 0.1rem; color: #f9d7cb; font-family: Georgia, serif; font-size: clamp(1.25rem, 2.15vw, 2.15rem); font-style: italic; line-height: 1.1; }
.portrait-scene__left h2 {
  margin: 0;
  color: #fff2df;
  font-family: var(--display);
  font-size: clamp(3.5rem, 5.9vw, 7rem);
  font-style: italic;
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 0.89;
  white-space: nowrap;
}
.portrait-scene__left h2 span { display: block; color: #f6d5c8; }
.portrait-scene__role { margin: 1.2rem 0 0; color: #ff6a66; font-size: clamp(0.9rem, 1.1vw, 1.14rem); font-weight: 800; letter-spacing: 0.035em; }
.portrait-scene__intro { max-width: 22rem; margin: 1.1rem 0 1.5rem; color: #d2c4c0; font-size: clamp(0.8rem, 0.93vw, 0.95rem); line-height: 1.65; }
.portrait-scene__actions { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.portrait-scene__actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 39px;
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(255, 226, 219, 0.4);
  border-radius: 3px;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.1;
  pointer-events: auto;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}
.portrait-scene__actions a:hover { transform: translateY(-3px); }
.portrait-scene__primary { border-color: #f05250 !important; color: #1a0809; background: #f05250; }
.portrait-scene__primary:hover { background: #ff8177; }
.portrait-scene__secondary { color: #f9eee9; background: rgba(16, 12, 15, 0.7); }
.portrait-scene__secondary:hover { border-color: #fff1e6; background: rgba(40, 24, 27, 0.9); }
.portrait-scene__right { justify-self: end; width: min(100%, 285px); text-shadow: 0 2px 15px rgba(0, 0, 0, 0.58); }
.portrait-scene__status {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.25rem;
  border: 1px solid rgba(246, 229, 222, 0.24);
  background: rgba(18, 13, 16, 0.76);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.27), inset 3px 0 #f05250;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.portrait-scene__status > span,
.portrait-scene__status small,
.portrait-scene__stats span { color: #bcaeaa; font-family: var(--mono); font-size: 0.56rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.portrait-scene__status > span { color: #ff726c; }
.portrait-scene__status strong { font-size: 1.05rem; line-height: 1.3; }
.portrait-scene__status small { color: #8e817d; }
.portrait-scene__stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; margin-top: 0.6rem; }
.portrait-scene__stats > div { display: flex; flex-direction: column; gap: 0.35rem; min-height: 92px; padding: 0.75rem; border: 1px solid rgba(246, 229, 222, 0.16); background: rgba(18, 13, 16, 0.65); }
.portrait-scene__stats strong { color: #fff1e9; font-family: var(--display); font-size: 2.2rem; font-style: italic; line-height: 1; }
.portrait-scene__stats span { font-size: 0.5rem; line-height: 1.5; }
.portrait-scene__hint { position: absolute; z-index: 5; bottom: 1.7rem; left: 50%; margin: 0; color: rgba(249, 234, 226, 0.68); font-family: var(--mono); font-size: 0.57rem; font-weight: 800; letter-spacing: 0.2em; white-space: nowrap; transform: translateX(-50%); pointer-events: none; }
.portrait-scene__sparks { position: absolute; z-index: 4; inset: 0; pointer-events: none; transform: translate3d(var(--pointer-spark-x, 0px), var(--pointer-spark-y, 0px), 0); }
.portrait-scene__sparks i { position: absolute; width: 10px; height: 11px; background: #f45652; clip-path: polygon(50% 0%, 0% 100%, 100% 100%); opacity: 0.34; filter: drop-shadow(0 0 6px #f45652); animation: scene-spark-drift 10s ease-in-out infinite; }
.portrait-scene__sparks i:nth-child(1) { top: 13%; left: 17%; width: 7px; height: 8px; animation-delay: -1s; }
.portrait-scene__sparks i:nth-child(2) { top: 25%; right: 16%; width: 12px; height: 13px; animation-delay: -4s; }
.portrait-scene__sparks i:nth-child(3) { top: 42%; left: 8%; width: 5px; height: 6px; animation-delay: -2s; }
.portrait-scene__sparks i:nth-child(4) { top: 38%; right: 5%; width: 6px; height: 7px; animation-delay: -5s; }
@keyframes scene-spark-drift { 50% { transform: translate3d(6px, -10px, 0) rotate(45deg); opacity: 0.15; } }
.portrait-scene__fly-cursors { position: absolute; z-index: 4; inset: 0; overflow: hidden; pointer-events: none; }
.portrait-scene__fly-cursor { --c: #ff7770; position: absolute; display: block; width: 25px; height: 31px; color: var(--c); opacity: 0; filter: drop-shadow(0 3px 7px rgba(0, 0, 0, 0.4)); }
.portrait-scene__fly-cursor svg { display: block; width: 100%; height: 100%; overflow: visible; }
.portrait-scene__fly-cursor path { fill: currentColor; stroke: #1b1013; stroke-width: 2; stroke-linejoin: round; }
.portrait-scene__fly-cursor .bm-cursor__tag { top: 26px; left: 18px; }
.portrait-scene__fly-cursor:nth-child(1) { --c: #5fd0ff; top: 19%; left: 11%; }
.portrait-scene__fly-cursor:nth-child(2) { --c: #ffc94d; top: 29%; right: 14%; }

.portrait-scene.is-animated .portrait-scene__aura { opacity: var(--scene-glow); }
.portrait-scene.is-animated .portrait-scene__word { opacity: var(--scene-glow); transform: translate3d(-50%, var(--scene-lift), 0) skewX(-4deg) scale(var(--scene-scale)); }
.portrait-scene.is-animated .portrait-scene__grid { opacity: var(--scene-glow); }
.portrait-scene.is-animated .portrait-scene__image { opacity: var(--scene-image-reveal); filter: none; transform: translateY(var(--scene-lift)) scale(var(--scene-scale)); }
.portrait-scene.is-animated .portrait-scene__left { opacity: var(--scene-reveal); transform: translateY(var(--scene-lift)); }
.portrait-scene.is-animated .portrait-scene__right { opacity: var(--scene-side-reveal); transform: translateY(var(--scene-lift)); }

.section { position: relative; border-top: 1px solid var(--line); }
.section--about { padding: clamp(6rem, 12vw, 11rem) 0; background: linear-gradient(150deg, #0d0b0c, #0b0b0d 60%, #100b0d); }
.section--work { padding: clamp(6rem, 10vw, 10rem) 0; }
.section--experience { padding: clamp(6rem, 10vw, 10rem) 0; background: linear-gradient(150deg, #0e0b0d, #0a0a0c 65%, #120b0d); }
.section--achievements { padding: clamp(6rem, 10vw, 10rem) 0; background: radial-gradient(ellipse 45% 55% at 88% 25%, rgba(115, 26, 28, 0.13), transparent 78%), #0b0a0c; }
.section--skills { padding: clamp(6rem, 10vw, 10rem) 0; background: radial-gradient(ellipse 38% 60% at 85% 60%, rgba(109, 20, 25, 0.12), transparent), #0c0b0d; }
.section--contact { padding: clamp(6rem, 10vw, 10rem) 0 clamp(7rem, 12vw, 12rem); background: radial-gradient(ellipse 50% 120% at 95% 90%, rgba(120, 24, 29, 0.24), transparent 72%), #0b090a; }
.section__topline { display: flex; align-items: center; gap: 1.3rem; margin-bottom: clamp(3.8rem, 6vw, 6.5rem); }
.section__number { color: var(--red); white-space: nowrap; }
.section__rule { height: 1px; flex: 1; background: var(--line); }
.section__aside { color: #817977; white-space: nowrap; }
.display-heading { font-size: clamp(4.6rem, 8.2vw, 9.4rem); line-height: 0.9; }
.display-heading span { color: var(--red); }

.about__grid { display: grid; grid-template-columns: 1fr 0.78fr; gap: clamp(3rem, 9vw, 11rem); align-items: start; }
.about__intro { min-width: 0; }
.about__portrait {
  position: relative;
  width: min(74%, 400px);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  margin: clamp(3rem, 5vw, 5rem) 0 0 0.65rem;
  border: 1px solid rgba(245, 238, 232, 0.4);
  background: #a5a3a1;
  box-shadow: 22px 22px 0 rgba(240, 68, 67, 0.14);
  transform: rotate(-2deg);
}
.about__portrait::after { position: absolute; inset: 50% 0 0; background: linear-gradient(transparent, rgba(7, 6, 8, 0.75)); content: ""; pointer-events: none; }
.about__portrait > a { display: block; width: 100%; height: 100%; }
.about__portrait > a:focus-visible { outline-offset: -5px; }
.about__portrait img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 27%; filter: saturate(0.86) contrast(1.04) brightness(0.9); }
.about__portrait figcaption { position: absolute; z-index: 1; right: 1.4rem; bottom: 1.3rem; left: 1.4rem; color: var(--cream); font-family: var(--mono); font-size: 0.67rem; font-weight: 800; line-height: 1.5; letter-spacing: 0.12em; }
.about__portrait figcaption span { color: #ff9b8e; }
.about__portrait figcaption a { display: block; width: fit-content; min-height: 44px; padding-top: 0.8rem; color: #ff9b8e; }
.about__portrait figcaption a:hover { color: var(--cream); text-decoration: underline; text-underline-offset: 3px; }
.about__content { padding-top: 0.6rem; }
.about__lead { max-width: 42rem; margin: 0; font-size: clamp(1.5rem, 2.4vw, 2.35rem); font-weight: 650; line-height: 1.35; letter-spacing: -0.035em; }
.about__body { max-width: 38rem; margin: 1.6rem 0 3.5rem; color: var(--muted); font-size: clamp(0.95rem, 1.1vw, 1.13rem); line-height: 1.8; }
.about__details { display: grid; grid-template-columns: 1fr 1fr; gap: 1.8rem; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.about__details div { display: flex; flex-direction: column; gap: 0.85rem; }
.about__details span { color: #817977; font-family: var(--mono); font-size: 0.65rem; font-weight: 700; letter-spacing: 0.18em; }
.about__details strong { color: var(--cream); font-size: 0.84rem; font-weight: 750; letter-spacing: 0.04em; text-transform: uppercase; }
.education-list { display: grid; gap: 0.75rem; margin-top: 1.6rem; }
.education { display: flex; align-items: center; gap: 1.2rem; padding: 1.1rem 1.25rem; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.025); }
.education__logo { flex: none; width: 64px; height: auto; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.45)); }
.education__text { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.education__label { color: #817977; font-family: var(--mono); font-size: 0.65rem; font-weight: 700; letter-spacing: 0.18em; }
.education__degree { color: var(--cream); font-size: 0.98rem; font-weight: 800; line-height: 1.3; }
.education__major { color: #f6c33a; font-size: 0.84rem; font-weight: 750; letter-spacing: 0.02em; }
.education__school { color: #a79b97; font-family: var(--mono); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.education--silliman .education__logo { width: 60px; border-radius: 50%; background: #fff; }
.education--silliman .education__major { color: #ff7a72; }
.education__proof { align-self: flex-start; margin-top: 0.2rem; color: #ff9e93; font-size: 0.78rem; font-weight: 800; }
.education__proof:hover { color: var(--cream); text-decoration: underline; text-underline-offset: 4px; }
.cv-link { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "label icon" "meta icon"; align-items: center; column-gap: 1.2rem; row-gap: 0.3rem; margin-top: 2rem; padding: 1.1rem 1.3rem; border: 1px solid rgba(245, 238, 232, 0.28); background: rgba(240, 68, 67, 0.06); transition: border-color 180ms ease, background 180ms ease, transform 180ms ease; }
.cv-link:hover { border-color: var(--red); background: rgba(240, 68, 67, 0.14); transform: translateY(-2px); }
.cv-link__label { grid-area: label; color: var(--cream); font-size: 1rem; font-weight: 800; }
.cv-link__meta { grid-area: meta; color: #8f8580; font-family: var(--mono); font-size: 0.6rem; font-weight: 800; letter-spacing: 0.14em; }
.cv-link__icon { grid-area: icon; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: #1a0d0d; background: var(--red); font-size: 1.1rem; font-weight: 800; transition: transform 180ms ease; }
.cv-link:hover .cv-link__icon { transform: translateY(3px); }

.section__heading-row { display: flex; align-items: end; justify-content: space-between; gap: 3rem; margin-bottom: clamp(3.5rem, 6vw, 6rem); }
.section__intro { max-width: 15rem; margin: 0 0 0.5rem; color: var(--muted); font-size: 0.95rem; line-height: 1.7; }
.project { display: grid; grid-template-columns: 1fr 1fr; min-height: 570px; overflow: hidden; border: 1px solid rgba(245, 238, 232, 0.26); background: #151315; }
.project__content { display: flex; flex-direction: column; justify-content: space-between; gap: 3rem; padding: clamp(1.7rem, 3.5vw, 3.6rem); }
.project__meta { display: flex; justify-content: space-between; gap: 1rem; color: #a39a95; }
.project__type { margin: 0 0 1.5rem; color: var(--red); }
.project__type span { margin: 0 0.4rem; }
.project h3 { font-size: clamp(3.8rem, 5.2vw, 6.4rem); line-height: 0.93; }
.project h3 span { color: var(--red); }
.project__description { max-width: 34rem; margin: 2rem 0; color: #c1b9b4; font-size: 1rem; line-height: 1.75; }
.project__method { max-width: 34rem; margin: -0.8rem 0 1.7rem; color: #a79c9a; font-size: 0.81rem; line-height: 1.6; }
.project__award { margin: -0.4rem 0 1.5rem; color: #e7b8cf; font-family: var(--mono); font-size: 0.62rem; font-weight: 800; line-height: 1.6; letter-spacing: 0.09em; }
.project__award span { margin-inline: 0.4rem; color: var(--red); }
.project__features { display: flex; flex-wrap: wrap; gap: 0.55rem; margin: 0; padding: 0; list-style: none; }
.project__features li { padding: 0.5rem 0.7rem; border: 1px solid rgba(245, 238, 232, 0.16); color: #d3cac5; font-family: var(--mono); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.project__link { display: inline-flex; width: fit-content; align-items: center; gap: 1.3rem; border-bottom: 1px solid var(--cream); padding-bottom: 0.4rem; font-size: 0.92rem; font-weight: 750; }
.project__link:hover { color: var(--red); border-color: var(--red); }
.project__link span { font-size: 1.2rem; }
.project__visual { position: relative; display: grid; place-items: center; min-width: 0; overflow: hidden; padding: 3.5rem; background: radial-gradient(ellipse at 45% 42%, rgba(201, 61, 54, 0.28), transparent 63%), linear-gradient(140deg, #501a20, #1d1015 75%); }
.project__visual::before, .project__visual::after { position: absolute; inset: auto; width: 600px; height: 600px; border: 1px solid rgba(255, 170, 159, 0.08); border-radius: 50%; content: ""; }
.project__visual::after { width: 420px; height: 420px; }
.project__visual-index { position: absolute; right: 2rem; bottom: 2rem; color: #ffb4a8; font-size: 0.55rem; }
.preview { position: relative; z-index: 1; width: min(100%, 490px); overflow: hidden; border: 1px solid rgba(255,255,255,.48); border-radius: 13px; color: #182a35; background: #f5f5ee; box-shadow: 0 35px 70px rgba(0, 0, 0, 0.52); transform: rotate(-5deg); }
.preview__topbar { display: flex; align-items: center; gap: 0.5rem; min-height: 49px; padding: 0.55rem 1.1rem; color: #183047; background: #fff; font-size: 0.56rem; font-weight: 900; letter-spacing: 0.09em; }
.preview__topbar b { color: #7d9198; font-weight: 700; }
.preview__logo { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; color: #fff; background: #1695b7; font-size: 0.8rem; }
.preview__menu { margin-left: auto; font-size: 0.9rem; }
.preview__body { padding: 1.5rem 1.5rem 1.7rem; }
.preview__heading { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; color: #213d50; font-size: 0.72rem; font-weight: 900; letter-spacing: 0.05em; }
.preview__heading small { color: #168aa4; font-size: 0.45rem; }
.preview__dates { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.45rem; margin: 1.4rem 0 1rem; }
.preview__dates span { display: grid; gap: 0.3rem; place-items: center; padding: 0.55rem 0.1rem; border: 1px solid #d6dce1; border-radius: 6px; color: #65818c; background: #fff; font-size: 0.5rem; font-weight: 700; }
.preview__dates b { color: #1c3d4d; font-size: 0.92rem; }
.preview__dates .is-active { border-color: #178caa; color: #fff; background: #178caa; }
.preview__dates .is-active b { color: #fff; }
.preview__slots { display: grid; grid-template-columns: 48px 1fr; align-items: center; gap: 0.38rem 0.6rem; color: #68808a; font-size: 0.53rem; font-weight: 800; }
.preview__slots i { display: block; height: 19px; border: 1px solid #b8dee6; border-radius: 4px; background: #d9f5f7; }
.preview__slots i.is-booked { border-color: #cfd7db; background: repeating-linear-gradient(45deg, #e9eded, #e9eded 4px, #d9dfe1 4px, #d9dfe1 8px); }
.preview__legend { display: flex; gap: 1.1rem; margin-top: 1rem; color: #6d8189; font-size: 0.46rem; font-weight: 800; letter-spacing: 0.08em; }
.preview__legend span { display: inline-flex; align-items: center; gap: 0.3rem; }
.preview__legend i { width: 7px; height: 7px; border-radius: 50%; background: #68c9d3; }
.preview__legend span + span i { background: #aab6b8; }

.project--jobpath { margin-top: 1.25rem; }
.project--jobpath .project__content { min-height: 650px; }
.project--jobpath .project__visual {
  order: -1;
  background: radial-gradient(ellipse at 48% 46%, rgba(131, 64, 139, 0.31), transparent 62%), linear-gradient(140deg, #2a1c33, #151219 75%);
}
.project--jobpath .project__visual::before,
.project--jobpath .project__visual::after { border-color: rgba(225, 166, 232, 0.1); }
.project--jobpath .project__visual-index { color: #d7b6de; }
.project__evidence { max-width: 34rem; }
.project__results { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; border-top: 1px solid var(--line); padding-top: 1.25rem; }
.project__results div { display: flex; flex-direction: column; gap: 0.35rem; }
.project__results strong { color: var(--cream); font-family: var(--display); font-size: clamp(2.4rem, 3.5vw, 4.2rem); font-style: italic; font-weight: 900; line-height: 1; }
.project__results strong span { color: var(--red); font-size: 0.55em; }
.project__results div > span { max-width: 12rem; color: #c5bab6; font-size: 0.76rem; line-height: 1.5; }
.project__caveat { margin: 1.15rem 0 0; color: #968a86; font-size: 0.7rem; line-height: 1.6; }

.jobpath-board {
  position: relative;
  z-index: 1;
  width: min(100%, 490px);
  overflow: hidden;
  border: 1px solid rgba(225, 201, 236, 0.35);
  border-radius: 13px;
  color: #eee5f3;
  background: #13121c;
  box-shadow: 0 35px 70px rgba(0, 0, 0, 0.5);
  transform: rotate(4deg);
}
.jobpath-board__topbar { display: flex; align-items: center; gap: 0.55rem; min-height: 49px; border-bottom: 1px solid rgba(225, 201, 236, 0.14); padding: 0.55rem 1.1rem; font-size: 0.58rem; font-weight: 800; letter-spacing: 0.12em; }
.jobpath-board__topbar > span:last-child { margin-left: auto; color: #a68eae; font-family: var(--mono); font-size: 0.5rem; }
.jobpath-board__mark { position: relative; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; color: #160e19; background: #eb9bc4; font-family: var(--display); font-size: 0.86rem; font-style: italic; }
.jobpath-board__mark span { position: absolute; margin: -7px 0 0 8px; color: #622d55; font-size: 0.6rem; }
.jobpath-board__body { padding: 1.7rem; }
.jobpath-board__label, .jobpath-board__recommendations > span { margin: 0; color: #c391b6; font-family: var(--mono); font-size: 0.55rem; font-weight: 800; letter-spacing: 0.12em; }
.jobpath-board__map { display: grid; grid-template-columns: minmax(0, 1fr) 0.75fr minmax(0, 1fr); align-items: center; gap: 0.8rem; margin: 1rem 0 1.7rem; }
.jobpath-board__node { display: grid; place-items: center; gap: 0.12rem; min-height: 118px; border: 1px solid rgba(231, 178, 220, 0.3); border-radius: 8px; background: radial-gradient(circle at 50% 18%, rgba(227, 135, 195, 0.2), transparent 70%), #211b29; }
.jobpath-board__node:last-child { border-color: rgba(248, 114, 105, 0.3); background: radial-gradient(circle at 50% 18%, rgba(238, 87, 92, 0.2), transparent 70%), #24191f; }
.jobpath-board__node strong { align-self: end; font-family: var(--display); font-size: 3.3rem; font-style: italic; font-weight: 900; line-height: 1; }
.jobpath-board__node span { align-self: start; color: #bfa8bd; font-family: var(--mono); font-size: 0.48rem; font-weight: 800; letter-spacing: 0.07em; }
.jobpath-board__flow { display: grid; gap: 0.5rem; }
.jobpath-board__flow i { position: relative; height: 1px; background: linear-gradient(90deg, rgba(221, 160, 219, 0.18), #c982b7, rgba(241, 102, 111, 0.38)); }
.jobpath-board__flow i::after { position: absolute; right: -1px; top: -3px; width: 6px; height: 6px; border-top: 1px solid #f08e9e; border-right: 1px solid #f08e9e; content: ""; transform: rotate(45deg); }
.jobpath-board__flow i:nth-child(2) { width: 85%; margin-left: auto; }
.jobpath-board__flow i:nth-child(3) { width: 95%; }
.jobpath-board__flow i:nth-child(4) { width: 75%; margin-left: auto; }
.jobpath-board__recommendations { border-top: 1px solid rgba(225, 201, 236, 0.14); padding-top: 1.1rem; }
.jobpath-board__recommendations > div { display: flex; align-items: center; gap: 0.65rem; margin-top: 0.7rem; }
.jobpath-board__recommendations i { width: 8px; height: 8px; border: 1px solid #e7a7d0; border-radius: 50%; }
.jobpath-board__recommendations b { height: 9px; width: 90%; border-radius: 2px; background: linear-gradient(90deg, #bc74b6, #e788aa); }
.jobpath-board__recommendations > div:nth-of-type(2) b { width: 70%; opacity: 0.72; }
.jobpath-board__recommendations > div:nth-of-type(3) b { width: 52%; opacity: 0.46; }
.jobpath-board__models { margin: 1.25rem 0 0; color: #a99bab; font-family: var(--mono); font-size: 0.46rem; font-weight: 700; line-height: 1.7; letter-spacing: 0.04em; }
.jobpath-board__models span { margin-inline: 0.22rem; color: #de8ab6; }

.experience__list { max-width: 1170px; border-top: 1px solid rgba(245, 238, 232, 0.3); }
.experience__item { display: grid; grid-template-columns: minmax(145px, 0.3fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); padding: clamp(2.2rem, 4.4vw, 4rem) 0; border-bottom: 1px solid var(--line); }
.experience__index { display: flex; align-items: baseline; gap: 0.75rem; color: var(--red); font-family: var(--display); font-size: clamp(3.5rem, 5.2vw, 5.3rem); font-style: italic; line-height: 0.9; }
.experience__index span { color: #867a77; font-family: var(--mono); font-size: 0.65rem; font-style: normal; font-weight: 800; letter-spacing: 0.12em; }
.experience__meta, .achievement__kicker { margin: 0 0 1rem; color: var(--red); font-family: var(--mono); font-size: 0.65rem; font-weight: 800; letter-spacing: 0.16em; line-height: 1.5; text-transform: uppercase; }
.experience__body h3, .achievement__story h3 { margin: 0; font-family: var(--display); font-size: clamp(2.6rem, 4.4vw, 5.1rem); font-style: italic; font-weight: 900; letter-spacing: -0.035em; line-height: 0.96; text-transform: uppercase; }
.experience__body h3 span, .achievement__story h3 span { color: var(--red); }
.experience__summary { max-width: 48rem; margin: 1.5rem 0 0; color: #d1c6c0; font-size: clamp(0.98rem, 1.2vw, 1.13rem); line-height: 1.7; }
.experience__points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem 2rem; max-width: 52rem; margin: 1.7rem 0 0; padding: 1.4rem 0 0; border-top: 1px solid var(--line); list-style: none; }
.experience__points li { position: relative; padding-left: 1.15rem; color: #a99e99; font-size: 0.84rem; line-height: 1.6; }
.experience__points li::before { position: absolute; top: 0.62em; left: 0; width: 5px; height: 5px; background: var(--red); content: ""; }

.achievement__feature { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); min-height: 620px; border: 1px solid rgba(245, 238, 232, 0.25); background: #141113; }
.achievement__story { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; min-width: 0; padding: clamp(2rem, 4vw, 4.7rem); border-top: 3px solid var(--red); }
.achievement__story h3 { max-width: 9ch; font-size: clamp(3.5rem, 5.4vw, 6.4rem); }
.achievement__description { max-width: 33rem; margin: 2rem 0 0; color: #c9beba; font-size: 1rem; line-height: 1.75; }
.achievement__facts { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 2.4rem; }
.achievement__facts span { padding: 0.7rem 0.85rem; border: 1px solid rgba(245, 238, 232, 0.17); color: #e0d4cd; font-family: var(--mono); font-size: 0.61rem; font-weight: 800; line-height: 1.5; letter-spacing: 0.05em; text-transform: uppercase; }
.achievement__main-photo { position: relative; min-width: 0; min-height: 620px; overflow: hidden; margin: 0; background: #1b2824; }
.achievement__main-photo::after { position: absolute; inset: 50% 0 0; background: linear-gradient(transparent, rgba(7, 9, 8, 0.74)); content: ""; pointer-events: none; }
.achievement__main-photo > a { position: absolute; inset: 0; display: block; }
.achievement__main-photo > a:focus-visible { outline-offset: -5px; }
.achievement__main-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.achievement__main-photo figcaption { position: absolute; z-index: 1; right: 1.5rem; bottom: 1.4rem; left: 1.5rem; color: #fff4eb; font-family: var(--mono); font-size: 0.64rem; font-weight: 800; line-height: 1.5; letter-spacing: 0.09em; text-shadow: 0 2px 10px #000; text-transform: uppercase; }
.achievement__main-photo figcaption a, .achievement__gallery-item figcaption a { display: inline-flex; align-items: center; min-height: 44px; color: #ff9e93; white-space: nowrap; }
.achievement__main-photo figcaption a:hover, .achievement__gallery-item figcaption a:hover { color: #fff4eb; text-decoration: underline; text-underline-offset: 3px; }
.achievement__gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; align-items: start; gap: 1.25rem; margin-top: 1.25rem; }
.achievement__gallery-item { min-width: 0; margin: 0; border: 1px solid rgba(245, 238, 232, 0.2); background: #141113; }
.achievement__gallery-item > a { position: relative; display: block; height: 0; min-height: 44px; overflow: hidden; padding-bottom: 90.91%; background: #10211d; }
.achievement__gallery-item > a:focus-visible { outline-offset: -5px; }
.achievement__gallery-item img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.achievement__gallery-item--certificate > a { padding-bottom: 84.75%; }
.achievement__gallery-item--certificate img { object-position: 50% 59%; }
.achievement__gallery-item:last-child img { object-fit: contain; background: #143b46; }
.achievement__gallery-item figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.4rem 1rem; padding: 1rem 1.25rem 1.2rem; color: #c5bbb5; font-family: var(--mono); font-size: 0.66rem; font-weight: 750; line-height: 1.6; letter-spacing: 0.06em; text-transform: uppercase; }

.certifications { margin-top: clamp(5rem, 8vw, 8rem); padding-top: clamp(3rem, 5vw, 5rem); border-top: 1px solid var(--line); }
.certifications__header { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2.4rem; }
.certifications__eyebrow, .certification__number { margin: 0 0 0.9rem; color: var(--red); font-family: var(--mono); font-size: 0.65rem; font-weight: 800; letter-spacing: 0.14em; }
.certifications__header h3 { margin: 0; font-family: var(--display); font-size: clamp(3.1rem, 5.3vw, 6rem); font-style: italic; line-height: 0.95; }
.certifications__header h3 span { color: var(--red); }
.certifications__header > p { max-width: 23rem; margin: 0; color: var(--muted); font-size: 0.96rem; line-height: 1.7; }
.certifications__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.certification { display: flex; flex-direction: column; min-width: 0; border: 1px solid rgba(245, 238, 232, 0.24); background: #141113; }
.certification__visual { margin: 0; background: #fff; }
.certification__visual > a { display: block; aspect-ratio: 1100 / 849; overflow: hidden; }
.certification__visual > a:focus-visible { outline-offset: -5px; }
.certification__visual img { display: block; width: 100%; height: 100%; object-fit: contain; }
.certification__visual figcaption { padding: 0.8rem 1.5rem; border-bottom: 1px solid var(--line); color: #a79b97; background: #141113; font-family: var(--mono); font-size: 0.61rem; font-weight: 800; line-height: 1.5; letter-spacing: 0.08em; }
.certification__details { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: clamp(1.5rem, 3vw, 2.4rem); }
.certification__details h4 { margin: 0; font-family: var(--display); font-size: clamp(2.2rem, 3.2vw, 3.7rem); font-style: italic; line-height: 0.98; }
.certification__details h4 span { color: var(--red); font-family: sans-serif; font-size: 0.45em; font-style: normal; vertical-align: top; }
.certification__details p { max-width: 35rem; margin: 1.25rem 0 1.4rem; color: #c9beba; font-size: 0.92rem; line-height: 1.7; }
.certification__details ul { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.2rem; padding: 0; list-style: none; }
.certification__details li { padding: 0.55rem 0.65rem; border: 1px solid rgba(245, 238, 232, 0.19); color: #eaded8; font-family: var(--mono); font-size: 0.58rem; font-weight: 800; letter-spacing: 0.04em; }
.certification__pdf { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; margin-top: auto; color: #ff9e93; font-size: 0.81rem; font-weight: 800; }
.certification__pdf:hover { color: var(--cream); text-decoration: underline; text-underline-offset: 4px; }
.certification--wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.certification--wide .certification__visual { border-right: 1px solid var(--line); background: #141113; }
.certification--wide .certification__visual > a { background: #fff; }
.certification--wide .certification__visual figcaption { border-bottom: 0; }
.courses { margin-top: clamp(3rem, 5vw, 4.5rem); }
.courses__header { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.courses__header h4 { margin: 0; font-family: var(--display); font-size: clamp(1.9rem, 3vw, 3rem); font-style: italic; letter-spacing: -0.02em; word-spacing: 0.12em; line-height: 1; }
.courses__header h4 span { color: var(--red); }
.courses__header p { margin: 0; color: var(--muted); font-family: var(--mono); font-size: 0.62rem; font-weight: 800; letter-spacing: 0.14em; }
.courses__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.course { display: flex; flex-direction: column; min-width: 0; border: 1px solid rgba(245, 238, 232, 0.2); background: #141113; transition: border-color 200ms ease, transform 200ms ease; }
.course:hover { border-color: rgba(240, 68, 67, 0.6); transform: translateY(-3px); }
.course__visual { margin: 0; background: #fff; }
.course__visual > a { display: block; aspect-ratio: 1280 / 989; overflow: hidden; }
.course__visual > a:focus-visible { outline-offset: -5px; }
.course__visual img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.course:hover .course__visual img { transform: scale(1.03); }
/* Caption feeds the photo viewer; hidden here because the card body repeats it. */
.course__visual figcaption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.course__details { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 1.2rem 1.3rem 1.4rem; }
.course__meta { color: var(--red); font-family: var(--mono); font-size: 0.58rem; font-weight: 800; letter-spacing: 0.12em; }
.course__details h5 { margin: 0.7rem 0 1rem; color: var(--cream); font-size: 1.02rem; font-weight: 750; line-height: 1.35; }
.course__details ul { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: auto 0 0; padding: 0; list-style: none; }
.course__details li { padding: 0.42rem 0.55rem; border: 1px solid rgba(245, 238, 232, 0.17); color: #d9cdc8; font-family: var(--mono); font-size: 0.54rem; font-weight: 800; letter-spacing: 0.04em; }

.photo-viewer {
  width: min(calc(100vw - 2rem), 1200px);
  height: min(calc(100vh - 2rem), 900px);
  height: min(calc(100dvh - 2rem), 900px);
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  border: 1px solid rgba(245, 238, 232, 0.25);
  color: var(--cream);
  background: #111113;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.65);
}
.photo-viewer::backdrop { background: rgba(3, 3, 4, 0.88); backdrop-filter: blur(10px); }
.photo-viewer__panel { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; width: 100%; height: 100%; }
.photo-viewer__toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; padding: 0.75rem 1.25rem; border-bottom: 1px solid var(--line); }
.photo-viewer__back { min-height: 44px; padding: 0.7rem 1rem; border: 1px solid rgba(245, 238, 232, 0.35); color: var(--cream); background: #24191b; font-family: var(--mono); font-size: 0.75rem; font-weight: 800; cursor: pointer; }
.photo-viewer__back:hover { color: #171011; background: var(--cream); }
.photo-viewer__nav { display: flex; align-items: center; gap: 0.75rem; }
.photo-viewer__step { width: 44px; height: 44px; border: 1px solid rgba(245, 238, 232, 0.35); color: var(--cream); background: transparent; font-size: 1rem; cursor: pointer; }
.photo-viewer__step:hover { color: #171011; background: var(--cream); }
.photo-viewer__step[hidden] { display: none; }
.photo-viewer__label { min-width: 4.5em; text-align: center; color: #aa9c97; font-family: var(--mono); font-size: 0.65rem; font-weight: 800; letter-spacing: 0.12em; }
.photo-viewer__stage { min-width: 0; min-height: 0; overflow: hidden; padding: 1rem; background: #080809; }
.photo-viewer__stage img { display: block; width: 100%; height: 100%; object-fit: contain; }
.photo-viewer__caption { margin: 0; padding: 1rem 1.25rem; border-top: 1px solid var(--line); color: #c5bbb5; font-family: var(--mono); font-size: 0.68rem; font-weight: 750; line-height: 1.5; letter-spacing: 0.05em; text-transform: uppercase; }
body.photo-viewer-open { overflow: hidden; }

.skills__grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(3rem, 8vw, 9rem); align-items: start; }
.skills__context { max-width: 25rem; margin: 2rem 0 0; color: var(--muted); font-size: 1rem; line-height: 1.75; }
.skills__ai-tools { max-width: 25rem; margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.skills__ai-label { color: var(--red); font-family: var(--mono); font-size: 0.65rem; font-weight: 800; letter-spacing: 0.14em; }
.skills__ai-tools ul { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.skills__ai-tools li { padding: 0.65rem 0.8rem; border: 1px solid rgba(245, 238, 232, 0.25); color: var(--cream); background: #1a1517; font-size: 0.86rem; font-weight: 700; }
.skills__list { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0; padding: 1px; background: var(--line); list-style: none; }
.skills__list li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 110px; padding: 1.4rem 1.6rem; background: #101012; transition: background 180ms ease; }
.skills__list li:hover { background: #1a1316; }
.skills__list span { font-family: var(--display); font-size: clamp(1.65rem, 2.4vw, 2.7rem); font-style: italic; line-height: 1; text-transform: uppercase; }
.skills__list small { align-self: flex-start; color: var(--red); font-family: var(--mono); font-size: 0.62rem; font-weight: 800; }

.contact__grid { display: grid; grid-template-columns: 1.4fr 0.6fr; align-items: end; gap: 3rem; }
.contact__kicker { margin: 0 0 1.8rem; color: var(--red); }
.contact__title { font-size: clamp(5rem, 10.5vw, 12rem); }
.contact__action { padding-bottom: 0.7rem; }
.contact__action > p:first-child { max-width: 20rem; margin: 0 0 2rem; color: #c7bfba; font-size: 1.15rem; line-height: 1.65; }
.contact__email { display: inline-flex; align-items: center; justify-content: space-between; gap: 3rem; min-width: min(100%, 240px); padding: 1rem 1.2rem; border-radius: 100px; color: #1a0d0d; background: var(--cream); font-size: 0.88rem; font-weight: 800; transition: background 180ms ease, transform 180ms ease; }
.contact__email:hover { background: #ffd1c8; transform: translateY(-3px); }
.contact__email span { font-size: 1.2rem; }
.contact__buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.contact__cv { display: inline-flex; align-items: center; justify-content: space-between; gap: 3rem; min-width: min(100%, 240px); padding: 1rem 1.2rem; border: 1px solid rgba(245, 238, 232, 0.4); border-radius: 100px; color: var(--cream); font-size: 0.88rem; font-weight: 800; transition: border-color 180ms ease, color 180ms ease, transform 180ms ease; }
.contact__cv:hover { border-color: var(--red); color: var(--red); transform: translateY(-3px); }
.contact__cv span { font-size: 1.2rem; }
.contact__address { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.8rem; margin: 1.1rem 0 0; color: #b5a9a5; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.03em; }
.contact__address > span:first-child { overflow-wrap: anywhere; }
.contact__copy { min-height: 32px; padding: 0.3rem 0.8rem; border: 1px solid var(--line); border-radius: 100px; color: var(--cream); background: transparent; font: 800 0.62rem var(--mono); letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; transition: border-color 180ms ease, color 180ms ease; }
.contact__copy:hover { border-color: var(--red); color: var(--red); }
.contact__copy-status { color: var(--red); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; }
.contact__pending { margin: 0; border-top: 1px solid var(--line); padding-top: 1rem; color: #978b87; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase; }
.contact__socials { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; }
.contact__socials:empty { display: none; }
.contact__socials a { border-bottom: 1px solid var(--line); padding-bottom: 0.25rem; color: #b5a9a5; font-family: var(--mono); font-size: 0.68rem; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; }
.contact__socials a:hover { color: var(--red); border-color: var(--red); }

.footer { border-top: 1px solid var(--line); background: #080809; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 90px; color: #867c79; font-family: var(--mono); font-size: 0.65rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.footer strong { color: var(--cream); }
.footer__divider { margin-inline: 0.35rem; color: var(--red); }
.footer a:hover { color: var(--red); }

@media (max-width: 1100px) {
  .hero__title { font-size: clamp(4.2rem, 8.8vw, 7.4rem); }
  .hero__grid { grid-template-columns: minmax(0, 1.15fr) minmax(270px, 0.85fr); }
  .portrait-scene__content { gap: 30%; }
  .portrait-scene__left h2 { font-size: clamp(3.45rem, 5.75vw, 5.5rem); }
  .portrait-scene__right { width: min(100%, 250px); }
  .portrait-scene__status { padding: 1rem; }
  .project { min-height: 520px; }
  .project__visual { padding: 2rem; }
}

@media (max-width: 860px) {
  .portrait-scene__interlude { display: none; }
  .nav { gap: 0.65rem; }
  .nav__link, .nav__contact { font-size: 0.72rem; }
  .shell { width: min(100% - 3rem, 730px); }
  .hero__grid { grid-template-columns: 1fr; min-height: 0; gap: 0; padding-top: 7rem; padding-bottom: 5rem; }
  .hero__frame { min-height: 370px; }
  .hero__title { font-size: clamp(4.2rem, 12vw, 7.6rem); }
  .hero__visual { width: min(100%, 520px); margin: 3rem auto 0; padding-bottom: 0; }
  .hero__visual-caption { margin-top: -2.5rem; }
  .hero__side-note { display: none; }
  .portrait-scene { height: 220svh; }
  .portrait-scene__sticky { min-height: 0; }
  .portrait-scene__content { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; padding-bottom: 4rem; }
  .portrait-scene__left { width: min(64%, 390px); }
  .portrait-scene__left h2 { font-size: clamp(3.5rem, 7.5vw, 5.25rem); }
  .portrait-scene__right { position: absolute; top: 22%; right: 0; width: min(26%, 200px); }
  .portrait-scene__status strong { font-size: 0.9rem; }
  .portrait-scene__stats { grid-template-columns: 1fr; }
  .portrait-scene__stats > div { min-height: 0; }
  .portrait-scene__stage::after { inset: 38% 0 0; background: linear-gradient(180deg, transparent 0%, rgba(9, 7, 9, 0.18) 25%, rgba(8, 7, 8, 0.95) 100%); }
  .portrait-scene__person { bottom: -21%; height: 120%; }
  .about__grid, .skills__grid { grid-template-columns: 1fr; gap: 3rem; }
  .about__portrait { width: min(65%, 340px); }
  .about__content { max-width: 630px; }
  .project { grid-template-columns: 1fr; }
  .project__content { min-height: 480px; }
  .project__visual { min-height: 470px; }
  .project--jobpath .project__visual { order: initial; }
  .experience__item { grid-template-columns: minmax(115px, 0.25fr) minmax(0, 1fr); gap: 2rem; }
  .experience__points { grid-template-columns: 1fr; }
  .achievement__feature { grid-template-columns: 1fr; min-height: 0; }
  .achievement__story { min-height: 400px; }
  .achievement__main-photo { min-height: 0; aspect-ratio: 4 / 3; }
  .certifications__grid { grid-template-columns: 1fr; }
  .certification--wide { display: flex; }
  .certification--wide .certification__visual { border-right: 0; }
  .certification--wide .certification__visual figcaption { border-bottom: 1px solid var(--line); }
  .courses__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact__grid { grid-template-columns: 1fr; gap: 3rem; }
  .contact__action { max-width: 440px; }
}

@media (max-width: 600px) {
  html { scroll-behavior: auto; scroll-padding-top: 11rem; }
  html.has-menu-root { scroll-padding-top: 5.5rem; }
  .photo-viewer { width: 100vw; height: 100vh; height: 100dvh; border: 0; }
  .photo-viewer__toolbar { min-height: 64px; padding: 0.65rem 1rem; }
  .photo-viewer__back { padding-inline: 0.75rem; font-size: 0.68rem; white-space: nowrap; }
  .photo-viewer__nav { gap: 0.4rem; }
  .photo-viewer__label { min-width: 0; white-space: nowrap; }
  .photo-viewer__stage { padding: 0.5rem; }
  .photo-viewer__caption { padding: 0.85rem 1rem; font-size: 0.61rem; }
  .shell { width: min(100% - 2rem, 500px); }
  .site-header { height: auto; }
  .nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-areas: "brand brand contact" "home about work" "experience awards skills";
    width: 100%;
    max-width: 500px;
    gap: 0.4rem 0.35rem;
    padding: 0.6rem 1rem 0.7rem;
  }
  .brand { grid-area: brand; justify-self: start; }
  .nav__link { justify-self: center; }
  .nav__link[href="#top"] { grid-area: home; }
  .nav__link[href="#about"] { grid-area: about; }
  .nav__link[href="#work"] { grid-area: work; }
  .nav__link[href="#experience"] { grid-area: experience; }
  .nav__link[href="#achievements"] { grid-area: awards; }
  .nav__link[href="#skills"] { grid-area: skills; }
  .nav__contact { grid-area: contact; justify-self: end; min-height: 33px; padding: 0.45rem 0.7rem; }
  .nav__link, .nav__contact { min-height: 44px; font-size: 0.68rem; white-space: nowrap; }
  .nav__link { display: inline-flex; align-items: center; justify-content: center; width: 100%; }

  /* With JavaScript, the six section links collapse behind a Menu button. */
  .has-menu .nav { grid-template-columns: auto 1fr auto; grid-template-areas: "brand contact toggle"; gap: 0.6rem; padding-block: 0.55rem; }
  .has-menu .nav__contact { justify-self: end; }
  .has-menu .nav__toggle { display: inline-flex; grid-area: toggle; }
  .has-menu .nav__link { display: none; }
  .site-header.has-menu { height: 63px; align-items: start; }
  .has-menu.is-open .nav {
    max-width: none;
    border-bottom: 1px solid var(--line);
    background: #0a0a0b;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: "brand toggle" "home about" "work experience" "awards skills" "contact contact";
    row-gap: 0.25rem;
    padding-bottom: 1rem;
  }
  .has-menu.is-open .nav__link { display: inline-flex; justify-content: flex-start; padding-inline: 0.4rem; border-bottom: 1px solid var(--line); font-size: 0.8rem; }
  .has-menu.is-open .nav__toggle { justify-self: end; }
  .has-menu.is-open .nav__contact { justify-self: stretch; justify-content: center; margin-top: 0.6rem; min-height: 44px; }
  .brand__mark { width: 30px; height: 30px; font-size: 0.78rem; }
  .marquee__item { font-size: 1.7rem; padding-block: 0.7rem; }
  .marquee__track { animation: none; will-change: auto; }
  .hero__grid { padding-top: 6rem; padding-bottom: 4.5rem; }
  .hero__frame { min-height: 290px; padding: 1.1rem; }
  .hero__eyebrow { margin-bottom: 1.4rem; font-size: 0.53rem; }
  .hero__title { font-size: clamp(3.35rem, 12.7vw, 5.9rem); }
  .hero__bottom { align-items: flex-start; }
  .hero__identity, .hero__scroll { font-size: 0.57rem; }
  .hero__identity { max-width: 55%; line-height: 1.5; }
  .hero__visual { margin-top: 1rem; }
  .hero__visual-caption { margin-top: -2.9rem; }
  .portrait-scene { height: auto; }
  .portrait-scene__sticky { position: relative; top: auto; height: max(680px, 100svh); min-height: 0; }
  .portrait-scene__word { top: 15%; font-size: clamp(4.6rem, 22vw, 7rem); }
  .portrait-scene__aura { top: -12%; width: 130vw; height: 100%; filter: blur(18px); }
  .portrait-scene__person { bottom: -18%; height: 116%; }
  .portrait-scene__stage::after { inset: 33% 0 0; background: linear-gradient(180deg, transparent 0%, rgba(9, 7, 9, 0.46) 31%, #080708 100%); }
  .portrait-scene__content { padding-bottom: 2.7rem; }
  .portrait-scene__left { width: 100%; max-width: 400px; }
  .portrait-scene__left h2 { font-size: clamp(3.15rem, 12vw, 4.8rem); }
  .portrait-scene__hello { font-size: 1.35rem; }
  .portrait-scene__role { margin-top: 0.65rem; font-size: 0.85rem; }
  .portrait-scene__intro { max-width: 20rem; margin: 0.75rem 0 1rem; font-size: 0.78rem; line-height: 1.5; }
  .portrait-scene__actions a { min-height: 44px; padding: 0.58rem 0.68rem; font-size: 0.67rem; }
  .portrait-scene__right { display: none; }
  .portrait-scene__hint { display: none; }
  .portrait-scene__sparks, .portrait-scene__fly-cursors, .portrait-scene__interlude { display: none; }
  .portrait-scene.is-animated .portrait-scene__aura,
  .portrait-scene.is-animated .portrait-scene__word,
  .portrait-scene.is-animated .portrait-scene__grid,
  .portrait-scene.is-animated .portrait-scene__image,
  .portrait-scene.is-animated .portrait-scene__left { opacity: 1; }
  .portrait-scene.is-animated .portrait-scene__word { transform: translateX(-50%) skewX(-4deg); }
  .portrait-scene.is-animated .portrait-scene__image { filter: drop-shadow(0 0 24px rgba(239, 98, 81, 0.2)); transform: none; }
  .portrait-scene.is-animated .portrait-scene__left { transform: none; }
  .section--about, .section--work, .section--experience, .section--achievements, .section--skills, .section--contact { padding-block: 5rem; }
  .section__topline { margin-bottom: 3.3rem; gap: 0.65rem; }
  .section__number, .section__aside { font-size: 0.55rem; }
  .display-heading { font-size: clamp(3.8rem, 13vw, 6.2rem); }
  .section--achievements .display-heading { font-size: clamp(2.8rem, 11vw, 4.4rem); }
  .section__heading-row { display: block; margin-bottom: 3rem; }
  .section__intro { margin-top: 1.5rem; }
  .about__details { gap: 1rem; }
  .about__portrait { width: min(76%, 340px); margin-top: 3rem; }
  .project__content { min-height: 490px; padding: 1.5rem; }
  .project h3 { font-size: clamp(3.6rem, 12vw, 5rem); }
  .project__description { font-size: 0.92rem; }
  .project__visual { min-height: 340px; padding: 2rem 1.2rem; }
  .project__visual-index { right: 1rem; bottom: 1rem; font-size: 0.46rem; }
  .project--jobpath .project__content { min-height: 670px; }
  .project__results { gap: 0.8rem; }
  .project__results strong { font-size: clamp(2.3rem, 9vw, 3.4rem); }
  .project__results div > span { font-size: 0.68rem; }
  .jobpath-board__body { padding: 1.2rem; }
  .jobpath-board__node { min-height: 95px; }
  .jobpath-board__node strong { font-size: 2.65rem; }
  .jobpath-board__node span { font-size: 0.4rem; }
  .jobpath-board__map { gap: 0.45rem; }
  .experience__item { grid-template-columns: 1fr; gap: 1.25rem; padding-block: 2.6rem; }
  .experience__index { font-size: 3.4rem; }
  .experience__body h3 { font-size: clamp(2.7rem, 10vw, 4rem); }
  .experience__summary { margin-top: 1.2rem; font-size: 0.94rem; }
  .experience__points { margin-top: 1.4rem; padding-top: 1.2rem; }
  .experience__points li { font-size: 0.82rem; }
  .achievement__story { min-height: 0; padding: 2rem 1.4rem 2.5rem; }
  .achievement__story h3 { font-size: clamp(3.25rem, 12vw, 5rem); }
  .achievement__description { margin-top: 1.4rem; font-size: 0.94rem; }
  .achievement__facts { margin-top: 1.7rem; }
  .achievement__facts span { font-size: 0.58rem; }
  .achievement__main-photo { aspect-ratio: 4 / 5; }
  .achievement__gallery { grid-template-columns: minmax(0, 420px); gap: 1rem; margin-top: 1rem; }
  .achievement__gallery-item figcaption { padding: 0.9rem 1rem 1.1rem; font-size: 0.62rem; }
  .certifications__header { display: block; }
  .certifications__header > p { margin-top: 1.1rem; }
  .certifications__header h3 { font-size: clamp(2.5rem, 10vw, 4rem); }
  .certification__details h4 { font-size: clamp(2.2rem, 8vw, 3.2rem); }
  .courses__grid { grid-template-columns: 1fr; }
  .courses__header { display: block; }
  .courses__header p { margin-top: 0.6rem; }
  .skills__list { grid-template-columns: 1fr; }
  .skills__list li { min-height: 88px; padding: 1rem; }
  .skills__list span { font-size: clamp(1.4rem, 5.3vw, 2rem); }
  .contact__title { font-size: clamp(4.2rem, 14vw, 6.5rem); }
  .footer__inner { flex-wrap: wrap; justify-content: space-between; gap: 0.7rem; padding-block: 1.6rem; font-size: 0.57rem; }
  .footer__inner > span:nth-child(2) { order: 3; width: 100%; }
}

@media (max-width: 370px) {
  .hero__title { font-size: 12vw; }
  .portrait-scene__left h2 { font-size: 11.7vw; }
  .portrait-scene__intro { max-width: 16rem; }
  .project__features li { font-size: 0.56rem; }
}

@media (hover: none) and (pointer: coarse) {
  html { scroll-behavior: auto; }
  .marquee__track { animation: none; will-change: auto; }
  .nav__link, .nav__contact, .portrait-scene__actions a { min-height: 44px; }
  .portrait-scene__sparks, .portrait-scene__fly-cursors, .portrait-scene__hint, .portrait-scene__interlude { display: none; }
}

@media (hover: none) and (pointer: coarse) and (min-width: 601px) {
  .portrait-scene { height: auto; }
  .portrait-scene__sticky { position: relative; top: auto; height: max(680px, 100svh); min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .portrait-scene__fly-cursors, .portrait-scene__interlude { display: none; }
  .portrait-scene { height: auto; }
  .portrait-scene__sticky { position: relative; top: auto; height: min(900px, 100svh); min-height: 610px; }
  .portrait-scene.is-animated .portrait-scene__aura,
  .portrait-scene.is-animated .portrait-scene__word,
  .portrait-scene.is-animated .portrait-scene__grid,
  .portrait-scene.is-animated .portrait-scene__image,
  .portrait-scene.is-animated .portrait-scene__left,
  .portrait-scene.is-animated .portrait-scene__right { opacity: 1; }
  .portrait-scene.is-animated .portrait-scene__word { transform: translateX(-50%) skewX(-4deg); }
  .portrait-scene.is-animated .portrait-scene__image { filter: drop-shadow(0 0 34px rgba(239, 98, 81, 0.24)); transform: none; }
  .portrait-scene.is-animated .portrait-scene__left,
  .portrait-scene.is-animated .portrait-scene__right { transform: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .marquee__track { transform: none !important; }
}
