:root[data-theme="dark"] {
  color-scheme: dark;
  --surface-page: #031724;
  --surface-nav: rgb(3 23 36 / 76%);
  --text-primary: #f3f6f5;
  --text-secondary: #a8bcc4;
  --accent: #ffa08b;
  --accent-hover: #ffb6a5;
  --action-ink: #10212b;
  --border-subtle: #20404e;
  --focus-ring: #9edfe5;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --page-gutter: clamp(24px, 4.5vw, 80px);
  --motion-duration: 550ms;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 0; }
body { margin: 0; background: var(--surface-page); color: var(--text-primary); font: 18px/1.65 var(--font-family); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 7px; }
a:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 6px; border-radius: 4px; }
main:focus, #about:focus { outline: none; }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3, h4 { line-height: 1.12; }
h3, h4 { text-wrap: balance; }
svg { flex: 0 0 auto; }
.content-wrap, .header-inner { width: min(1200px, calc(100% - var(--page-gutter) * 2)); margin-inline: auto; }
.site-header { position: absolute; top: 0; left: 0; z-index: 10; width: 100%; background: var(--surface-nav); border-bottom: 1px solid var(--border-subtle); backdrop-filter: blur(18px); }
.header-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 56px; }
.wordmark { font-size: 19px; font-weight: 500; letter-spacing: -0.4px; text-decoration: none; white-space: nowrap; }
nav { display: flex; align-items: center; gap: 34px; }
nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-secondary); font-size: 15px; text-decoration: none; }
nav a:hover { color: var(--text-primary); }
.dive { position: relative; --dive-progress: 0; }
.dive-stage { position: relative; height: 100svh; overflow: clip; isolation: isolate; }
.ocean-visual { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; object-position: center; mask-image: linear-gradient(to bottom, #000 82%, transparent 100%); }
.hero-copy { position: absolute; top: 44%; left: 50%; width: calc(100% - 40px); text-align: center; transform: translate(-50%, -50%); }
h1 { font-size: clamp(38px, 6.5vw, 100px); font-weight: 500; letter-spacing: -0.055em; }
.coral-word { display: block; margin-top: 3px; color: var(--accent); font-size: clamp(116px, 14.3vw, 218px); font-weight: 700; line-height: 0.95; letter-spacing: -0.06em; }
.hero-role { margin: 26px auto 0; max-width: 600px; font-size: clamp(17px, 1.55vw, 24px); font-weight: 500; line-height: 1.4; }
.hero-company { white-space: nowrap; }
.scroll-cue { position: absolute; bottom: 26px; left: 50%; display: flex; flex-direction: column; align-items: center; gap: 10px; transform: translateX(-50%); color: var(--text-primary); font-size: 15px; text-decoration: none; white-space: nowrap; }
.scroll-cue:hover { color: var(--accent); }
.about-section { display: grid; grid-template-columns: 0.9fr 1fr; align-items: center; gap: clamp(40px, 5vw, 80px); padding-block: 120px 140px; }
.portrait-wrap { overflow: hidden; aspect-ratio: 3 / 4; border-radius: 26px; }
.portrait-wrap img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
h2 { font-size: clamp(42px, 5.2vw, 80px); font-weight: 600; letter-spacing: -0.045em; text-wrap: balance; }
.about-copy h2 span { display: block; }
.introduction { margin-top: 38px; color: var(--text-secondary); font-size: clamp(19px, 1.8vw, 28px); line-height: 1.6; }
.text-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 30px; color: var(--accent); font-size: 21px; font-weight: 500; text-decoration: none; }
.text-link:hover { color: var(--accent-hover); text-decoration: underline; text-decoration-thickness: 1px; }
.section-block { padding-block: 90px 110px; border-top: 1px solid var(--border-subtle); }
.section-heading { margin-bottom: 48px; }
.accent { color: var(--accent); }
.employer { display: grid; grid-template-columns: minmax(180px, 28%) minmax(0, 1fr); gap: 32px; padding-block: 38px; border-top: 1px solid var(--border-subtle); }
.employer-heading h3 { max-width: 320px; font-size: clamp(22px, 1.9vw, 29px); font-weight: 500; letter-spacing: -0.04em; }
.employer-heading p { margin-top: 10px; color: var(--text-secondary); font-size: 17px; }
.roles { margin: 0; padding: 0 0 0 32px; list-style: none; }
.roles > li { position: relative; padding-block: 25px; }
.roles > li:first-child { padding-top: 0; }
.roles > li:last-child { padding-bottom: 0; }
.current-role::before { position: absolute; top: 8px; left: -25px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); content: ""; }
.role-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; }
h4 { font-size: clamp(20px, 1.7vw, 26px); font-weight: 500; letter-spacing: -0.025em; }
.roles p { margin-top: 12px; color: var(--text-secondary); font-size: 18px; line-height: 1.7; }
.role-heading .role-date { flex-shrink: 0; margin-top: 0; font-size: 15px; }
.roles .role-context, .roles .role-skills { margin-top: 6px; font-size: 17px; }
.skill-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.skill-group h3 { margin-bottom: 22px; color: var(--text-secondary); font-size: 25px; font-weight: 500; letter-spacing: -0.025em; }
.skills-list { margin: 0; padding: 0; list-style: none; font-size: 21px; line-height: 1.9; }
.education-details { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 80px; }
.education-details h3, .education-year { margin-bottom: 8px; font-size: 25px; font-weight: 500; }
.education-details p:not(.education-year) { color: var(--text-secondary); }
.education-description { grid-column: 1 / -1; max-width: 950px; padding-top: 12px; }
.contact-section { position: relative; display: grid; place-items: center; min-height: 650px; overflow: clip; isolation: isolate; }
.contact-ocean { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 100%); }
.contact-inner { padding-block: 140px; text-align: center; }
.contact-inner h2 { font-size: clamp(48px, 6.5vw, 100px); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; margin-top: 32px; padding: 13px 26px; border: 1px solid var(--accent); border-radius: 999px; background: var(--accent); color: var(--action-ink); font-size: 17px; font-weight: 600; line-height: 1.4; text-decoration: none; }
.button:hover { border-color: var(--accent-hover); background: var(--accent-hover); }
.site-footer { display: flex; justify-content: space-between; gap: 24px; padding-block: 30px; color: var(--text-secondary); font-size: 14px; }
.skip-link { position: fixed; z-index: 20; top: 12px; left: 20px; padding: 10px 16px; transform: translateY(-180%); border-radius: 4px; background: var(--accent); color: var(--action-ink); font-weight: 600; }
.skip-link:focus { transform: translateY(0); }
.has-motion [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity var(--motion-duration) ease, transform var(--motion-duration) cubic-bezier(0.2, 0.7, 0.2, 1); }
.has-motion [data-reveal].is-revealed, .has-motion [data-reveal]:focus-within { opacity: 1; transform: none; }
@supports (position: sticky) {
  .has-motion .dive { height: 175svh; }
  .has-motion .dive-stage { position: sticky; top: 0; }
  .has-motion .ocean-visual { transform: translate3d(0, calc(var(--dive-progress) * 3vh), 0) scale(calc(1 + var(--dive-progress) * 0.16)); will-change: transform; }
  .has-motion .hero-copy { opacity: clamp(0, calc(1 - var(--dive-progress) * 1.15), 1); transform: translate3d(-50%, calc(-50% - var(--dive-progress) * 48px), 0); }
}
@media (max-width: 1100px) {
  .role-heading { flex-direction: column; align-items: flex-start; gap: 6px; }
  .about-section { gap: 40px; }
  .introduction { font-size: 20px; }
}
@media (max-width: 720px) {
  .header-inner { flex-wrap: wrap; justify-content: center; gap: 2px; padding-top: 10px; }
  .wordmark { font-size: 18px; }
  nav { justify-content: space-between; gap: 10px; width: 100%; }
  nav a { min-height: 36px; font-size: 12px; }
  .hero-copy { top: 43%; width: calc(100% - 40px); }
  h1 { font-size: clamp(33px, 7.9vw, 56px); letter-spacing: -0.05em; }
  .coral-word { font-size: clamp(116px, 26vw, 176px); }
  .hero-role { max-width: 300px; margin-top: 24px; font-size: 17px; }
  .ocean-visual { object-position: 46% center; }
  .scroll-cue { bottom: 24px; font-size: 13px; }
  .about-section { grid-template-columns: 1fr; gap: 42px; padding-block: 64px 80px; }
  .portrait-wrap { width: 100%; max-width: 480px; margin-inline: auto; aspect-ratio: 4 / 5; border-radius: 20px; }
  h2 { font-size: clamp(40px, 8.4vw, 58px); }
  .introduction { margin-top: 24px; font-size: 18px; }
  .text-link { margin-top: 24px; font-size: 18px; }
  .section-block { padding-block: 64px 70px; }
  .section-heading { margin-bottom: 38px; }
  .employer { grid-template-columns: 1fr; gap: 24px; padding-block: 28px; }
  .employer-heading h3 { max-width: none; font-size: 24px; }
  .employer-heading p { margin-top: 6px; font-size: 16px; }
  .roles { margin-left: 6px; padding-left: 24px; }
  h4 { font-size: 21px; }
  .roles p { font-size: 17px; }
  .role-heading .role-date { font-size: 14px; }
  .roles .role-context, .roles .role-skills { font-size: 16px; }
  .skill-columns { grid-template-columns: 1fr; gap: 38px; }
  .skill-group h3 { margin-bottom: 14px; font-size: 23px; }
  .skills-list { font-size: 19px; line-height: 1.8; }
  .education-details { grid-template-columns: 1fr; gap: 24px; }
  .education-description { padding-top: 0; font-size: 17px; }
  .contact-section { min-height: 550px; }
  .contact-inner { padding-block: 100px; }
  .contact-inner h2 { font-size: 48px; }
  .site-footer { font-size: 12px; }
}
@media (max-height: 600px) {
  .hero-copy { top: 50%; }
  h1 { font-size: 32px; }
  .coral-word { font-size: 90px; line-height: 0.92; }
  .hero-role { margin-top: 12px; font-size: 15px; }
  .scroll-cue { bottom: 12px; flex-direction: row; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto; transition: none !important; animation: none !important; }
}
