:root {
  color-scheme: dark;
  --font-display: "Space Grotesk", "SF Pro Display", "Segoe UI", sans-serif;
  --font-body: "Archivo", "SF Pro Text", "Segoe UI", sans-serif;
  --bg: #080b12;
  --bg-elevated: #0d111b;
  --surface: #111725;
  --surface-strong: #171e2e;
  --surface-glass: rgba(14, 19, 30, 0.78);
  --text: #f7f9fc;
  --text-soft: #b7c0d0;
  --text-muted: #7f8a9d;
  --border: rgba(217, 228, 255, 0.14);
  --border-strong: rgba(217, 228, 255, 0.28);
  --accent: #4f7cff;
  --accent-bright: #77a0ff;
  --accent-soft: rgba(79, 124, 255, 0.15);
  --accent-on: #ffffff;
  --success: #49d6a7;
  --shadow-sm: 0 16px 50px rgba(0, 0, 0, 0.22);
  --shadow-lg: 0 40px 100px rgba(0, 0, 0, 0.42);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --shell: 1280px;
  --header-height: 76px;
  --z-base: 0;
  --z-raised: 10;
  --z-header: 40;
  --z-overlay: 60;
  --ease: cubic-bezier(0.2, 0.72, 0.2, 1);
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f7fb;
  --bg-elevated: #ffffff;
  --surface: #ffffff;
  --surface-strong: #edf1f8;
  --surface-glass: rgba(250, 251, 255, 0.82);
  --text: #0b1020;
  --text-soft: #3f4a5f;
  --text-muted: #647086;
  --border: rgba(15, 28, 55, 0.12);
  --border-strong: rgba(15, 28, 55, 0.22);
  --accent: #245edb;
  --accent-bright: #174bb8;
  --accent-soft: rgba(36, 94, 219, 0.1);
  --accent-on: #ffffff;
  --shadow-sm: 0 18px 48px rgba(21, 39, 75, 0.1);
  --shadow-lg: 0 40px 90px rgba(21, 39, 75, 0.16);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
  overflow-x: clip;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 8%, rgba(79, 124, 255, 0.08), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  transition: background-color 220ms var(--ease), color 220ms var(--ease);
}

body.menu-open {
  overflow: hidden;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  touch-action: manipulation;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

::selection {
  background: var(--accent);
  color: var(--accent-on);
}

:focus-visible {
  outline: 3px solid var(--accent-bright);
  outline-offset: 4px;
}

.shell {
  width: min(calc(100% - 40px), var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-on);
  font-weight: 700;
  transform: translateY(-150%);
  transition: transform 180ms var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: calc(var(--z-header) + 2);
  height: 2px;
  background: transparent;
}

.scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent-bright);
  transform-origin: left;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: var(--z-header);
  border-bottom: 1px solid transparent;
  background: linear-gradient(to bottom, rgba(8, 11, 18, 0.82), transparent);
  transition: background-color 220ms var(--ease), border-color 220ms var(--ease), box-shadow 220ms var(--ease);
}

[data-theme="light"] .site-header {
  background: linear-gradient(to bottom, rgba(246, 247, 251, 0.9), transparent);
}

.site-header.is-scrolled {
  border-color: var(--border);
  background: var(--surface-glass);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  gap: 24px;
}

.brand {
  display: inline-flex;
  min-width: 44px;
  align-items: center;
  min-height: 48px;
  gap: 12px;
  flex: 0 0 auto;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 13px;
  background: var(--accent);
  color: var(--accent-on);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.04em;
  box-shadow: 0 8px 24px rgba(79, 124, 255, 0.28);
}

.brand-copy {
  display: grid;
  line-height: 1.2;
}

.brand-copy strong {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: -0.01em;
}

.brand-copy small {
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.desktop-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 600;
  transition: color 180ms var(--ease);
}

.desktop-nav a::after {
  position: absolute;
  right: 12px;
  bottom: 7px;
  left: 12px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms var(--ease);
}

.desktop-nav a:hover,
.desktop-nav a.is-active {
  color: var(--text);
}

.desktop-nav a:hover::after,
.desktop-nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions,
.language-switcher {
  display: flex;
  align-items: center;
}

.header-actions {
  gap: 8px;
}

.language-switcher {
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-glass);
}

.language-switcher button {
  min-width: 44px;
  min-height: 44px;
  padding: 0 8px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 180ms var(--ease), color 180ms var(--ease), transform 120ms var(--ease);
}

.language-switcher button:hover {
  color: var(--text);
}

.language-switcher button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--accent-on);
}

.language-switcher button:active,
.icon-button:active,
.button:active,
.filter-button:active {
  transform: scale(0.97);
}

.icon-button {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface-glass);
  cursor: pointer;
  transition: border-color 180ms var(--ease), background-color 180ms var(--ease), transform 120ms var(--ease);
}

.icon-button:hover {
  border-color: var(--border-strong);
  background: var(--surface-strong);
}

.icon-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

[data-theme="dark"] .theme-icon-moon,
[data-theme="light"] .theme-icon-sun {
  display: none;
}

.menu-toggle,
.mobile-nav {
  display: none;
}

.hero {
  position: relative;
  display: grid;
  overflow: clip;
  min-height: 100dvh;
  padding: calc(var(--header-height) + 56px) 0 84px;
  align-items: center;
  isolation: isolate;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(90deg, transparent 49.9%, var(--border) 50%, transparent 50.1%),
    linear-gradient(0deg, transparent 49.9%, rgba(255, 255, 255, 0.03) 50%, transparent 50.1%);
  background-size: 160px 160px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 84%);
  opacity: 0.4;
}

.hero-backdrop {
  position: absolute;
  top: 10%;
  right: -12%;
  z-index: -2;
  width: 58vw;
  height: 58vw;
  max-width: 900px;
  max-height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 124, 255, 0.18), rgba(79, 124, 255, 0) 68%);
  filter: blur(8px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  align-items: center;
  gap: clamp(40px, 5vw, 88px);
}

.hero-copy {
  position: relative;
  z-index: var(--z-raised);
  padding-block: 42px;
}

.eyebrow,
.section-index,
.card-kicker {
  margin: 0;
  color: var(--accent-bright);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border: 2px solid var(--bg);
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(73, 214, 167, 0.12);
}

.hero h1 {
  max-width: 820px;
  margin: 26px 0 20px;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 7vw, 7rem);
  font-weight: 600;
  letter-spacing: -0.075em;
  line-height: 0.88;
}

.hero h1 span {
  display: block;
}

.accent-text {
  color: var(--accent-bright);
}

.hero-role {
  margin: 0 0 14px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1.08rem, 1.8vw, 1.42rem);
  font-weight: 600;
  letter-spacing: -0.025em;
}

.hero-summary {
  max-width: 650px;
  margin: 0;
  color: var(--text-soft);
  font-size: clamp(1rem, 1.4vw, 1.16rem);
  line-height: 1.7;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 200ms var(--ease), border-color 200ms var(--ease), color 200ms var(--ease), box-shadow 200ms var(--ease), transform 120ms var(--ease);
}

.button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.button-primary {
  background: var(--accent);
  color: var(--accent-on);
  box-shadow: 0 12px 28px rgba(79, 124, 255, 0.25);
}

.button-primary:hover {
  background: var(--accent-bright);
  box-shadow: 0 16px 34px rgba(79, 124, 255, 0.34);
}

.button-secondary {
  border-color: var(--border-strong);
  background: var(--surface-glass);
  color: var(--text);
}

.button-secondary:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.hero-facts {
  display: grid;
  max-width: 620px;
  grid-template-columns: repeat(3, 1fr);
  margin: 42px 0 0;
  padding: 26px 0 0;
  border-top: 1px solid var(--border);
}

.hero-facts div {
  min-width: 0;
  padding: 0 20px;
  border-right: 1px solid var(--border);
}

.hero-facts div:first-child {
  padding-left: 0;
}

.hero-facts div:last-child {
  border-right: 0;
}

.hero-facts dt {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 1;
}

.hero-facts dd {
  margin: 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.4;
}

.hero-visual {
  position: relative;
  min-width: 0;
}

.portrait-frame {
  position: relative;
  overflow: hidden;
  min-height: min(70vh, 760px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.portrait-frame::before {
  position: absolute;
  inset: 14px;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: calc(var(--radius-lg) - 10px);
  content: "";
  pointer-events: none;
}

.portrait-frame picture,
.portrait-frame img {
  width: 100%;
  height: 100%;
}

.portrait-frame img {
  position: absolute;
  inset: 0;
  object-fit: cover;
  object-position: 51% center;
  filter: saturate(0.82) contrast(1.04);
  transition: transform 400ms var(--ease), filter 300ms var(--ease);
}

.portrait-frame:hover img {
  transform: scale(1.018);
  filter: saturate(0.95) contrast(1.02);
}

.portrait-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(4, 6, 11, 0.92), transparent 58%);
}

.portrait-label {
  position: absolute;
  right: 38px;
  bottom: 180px;
  left: 38px;
  z-index: 3;
  display: grid;
  gap: 8px;
  color: #fff;
}

.portrait-label span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.portrait-label strong {
  max-width: 480px;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.floating-note {
  position: absolute;
  right: 18px;
  bottom: 64px;
  z-index: 4;
  display: flex;
  min-width: 270px;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface-glass);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.note-index {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 12px;
  background: var(--accent);
  color: var(--accent-on);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
}

.floating-note div {
  display: grid;
  gap: 2px;
}

.floating-note small,
.floating-note span:last-child {
  color: var(--text-muted);
  font-size: 11px;
}

.floating-note strong {
  font-family: var(--font-display);
  font-size: 15px;
}

.scroll-cue {
  position: absolute;
  bottom: 24px;
  left: 50%;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.scroll-cue svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.signal-strip {
  border-block: 1px solid var(--border);
  background: var(--bg-elevated);
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.signal-grid p {
  margin: 0;
  padding: 22px 18px;
  border-right: 1px solid var(--border);
  color: var(--text-soft);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}

.signal-grid p:last-child {
  border-right: 0;
}

.section {
  position: relative;
  padding: clamp(88px, 10vw, 152px) 0;
}

.section-heading {
  max-width: 900px;
  margin-bottom: 48px;
}

.section-heading h2 {
  margin: 18px 0;
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 5.4vw, 5.2rem);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.section-heading > p:last-child,
.split-heading > p {
  max-width: 720px;
  margin: 0;
  color: var(--text-soft);
  font-size: clamp(1rem, 1.3vw, 1.12rem);
}

.split-heading {
  display: grid;
  max-width: none;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  align-items: end;
  gap: clamp(32px, 8vw, 120px);
}

.split-heading h2 {
  margin-bottom: 0;
}

.about-section {
  overflow: hidden;
}

.about-bento {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.85fr;
  grid-template-rows: repeat(2, minmax(250px, auto));
  gap: 16px;
}

.bento-card,
.background-card,
.expertise-card,
.project-card,
.toolkit-card {
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.bento-card {
  overflow: hidden;
  border-radius: var(--radius-md);
}

.bento-portrait {
  position: relative;
  grid-row: 1 / 4;
  min-height: 780px;
}

.bento-portrait picture,
.bento-portrait img {
  width: 100%;
  height: 100%;
}

.bento-portrait img {
  position: absolute;
  inset: 0;
  object-fit: cover;
  object-position: center 25%;
  filter: saturate(0.72);
}

.bento-portrait::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 8, 14, 0.92), transparent 52%);
  content: "";
}

.image-caption {
  position: absolute;
  right: 24px;
  bottom: 24px;
  left: 24px;
  z-index: 2;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 16px;
  color: #fff;
}

.image-caption span {
  color: rgba(255, 255, 255, 0.56);
  font-family: var(--font-display);
  font-size: 11px;
}

.image-caption p {
  max-width: 280px;
  margin: 0;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.35;
}

.bento-manifesto {
  position: relative;
  grid-column: 2 / 4;
  padding: clamp(28px, 4vw, 52px);
  background:
    radial-gradient(circle at 82% 20%, rgba(79, 124, 255, 0.25), transparent 14rem),
    var(--surface-strong);
}

.bento-manifesto blockquote {
  max-width: 800px;
  margin: 42px 0 28px;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.3vw, 3.2rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1.12;
}

.manifesto-line {
  width: 88px;
  height: 3px;
  border-radius: 999px;
  background: var(--accent);
}

.bento-value {
  display: flex;
  min-height: 250px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px;
  transition: border-color 220ms var(--ease), background-color 220ms var(--ease), transform 220ms var(--ease);
}

.bento-value:last-child {
  grid-column: 2 / 4;
}

.bento-value:hover {
  border-color: var(--border-strong);
  background: var(--surface-strong);
  transform: translateY(-4px);
}

.card-number {
  margin-bottom: auto;
  color: var(--accent-bright);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
}

.bento-value h3,
.expertise-card h3,
.project-card h3,
.toolkit-card h3,
.background-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.bento-value p,
.expertise-card p,
.project-card p,
.toolkit-card p,
.background-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
}

.expertise-section,
.background-section {
  border-block: 1px solid var(--border);
  background: var(--bg-elevated);
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.expertise-card {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  padding: clamp(26px, 4vw, 44px);
  border-radius: var(--radius-md);
  transition: border-color 220ms var(--ease), transform 220ms var(--ease), background-color 220ms var(--ease);
}

.expertise-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.expertise-card::after {
  position: absolute;
  right: -90px;
  bottom: -90px;
  width: 220px;
  height: 220px;
  border: 1px solid var(--border);
  border-radius: 50%;
  content: "";
  transition: transform 400ms var(--ease), border-color 220ms var(--ease);
}

.expertise-card:hover::after {
  border-color: rgba(79, 124, 255, 0.4);
  transform: scale(1.12);
}

.expertise-icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 72px;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 15px;
  background: var(--accent-soft);
  color: var(--accent-bright);
}

.expertise-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.expertise-card h3 {
  font-size: clamp(1.55rem, 2.3vw, 2.2rem);
}

.expertise-card p {
  max-width: 540px;
  font-size: 15px;
  line-height: 1.7;
}

.expertise-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.expertise-meta span,
.skill-chip,
.project-tag,
.role-track {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-elevated);
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 600;
}

.experience-section {
  overflow: hidden;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}

.filter-button {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 180ms var(--ease), background-color 180ms var(--ease), color 180ms var(--ease), transform 120ms var(--ease);
}

.filter-button:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.filter-button[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-on);
}

.timeline {
  position: relative;
  display: grid;
  gap: 12px;
  margin-left: 12px;
  padding-left: 40px;
}

.timeline::before {
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 4px;
  width: 1px;
  background: var(--border-strong);
  content: "";
}

.timeline-entry {
  position: relative;
}

.timeline-entry[hidden] {
  display: none;
}

.timeline-entry::before {
  position: absolute;
  top: 28px;
  left: -42px;
  width: 13px;
  height: 13px;
  border: 3px solid var(--bg);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 1px var(--border-strong);
  content: "";
}

.experience-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  transition: border-color 220ms var(--ease), background-color 220ms var(--ease);
}

.experience-card[open] {
  border-color: var(--border-strong);
  background: var(--surface-strong);
}

.experience-card summary {
  position: relative;
  display: grid;
  min-height: 118px;
  grid-template-columns: 170px minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding: 26px 28px;
  cursor: pointer;
  list-style: none;
}

.experience-card summary::-webkit-details-marker {
  display: none;
}

.experience-card summary:hover {
  background: var(--accent-soft);
}

.experience-period {
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.experience-heading {
  min-width: 0;
}

.experience-heading h3 {
  margin: 0 0 5px;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.035em;
}

.experience-heading p {
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
}

.experience-side {
  display: flex;
  align-items: center;
  gap: 14px;
}

.experience-chevron {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: transform 220ms var(--ease), background-color 220ms var(--ease);
}

.experience-chevron svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.experience-card[open] .experience-chevron {
  background: var(--accent);
  color: var(--accent-on);
  transform: rotate(45deg);
}

.experience-body {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 28px;
  padding: 0 28px 30px;
}

.experience-context {
  color: var(--text-muted);
  font-size: 12px;
}

.experience-context span {
  display: block;
}

.experience-body ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.experience-body li {
  position: relative;
  padding-left: 18px;
  color: var(--text-soft);
  font-size: 14px;
}

.experience-body li::before {
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.work-section {
  border-block: 1px solid var(--border);
  background: var(--bg-elevated);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.project-card {
  position: relative;
  display: flex;
  min-height: 360px;
  flex-direction: column;
  overflow: hidden;
  grid-column: span 6;
  padding: clamp(26px, 4vw, 42px);
  border-radius: var(--radius-md);
  transition: border-color 220ms var(--ease), transform 220ms var(--ease);
}

.project-card:nth-child(3n + 1) {
  grid-column: span 7;
}

.project-card:nth-child(3n + 2) {
  grid-column: span 5;
}

.project-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.project-card::after {
  position: absolute;
  right: -60px;
  bottom: -60px;
  width: 220px;
  height: 220px;
  border: 46px solid var(--accent-soft);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.project-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.project-index {
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
}

.project-card h3 {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin-top: auto;
  padding-top: 72px;
  font-size: clamp(1.7rem, 3.2vw, 3rem);
  line-height: 1.05;
}

.project-card > p {
  position: relative;
  z-index: 2;
  max-width: 650px;
  font-size: 15px;
  line-height: 1.7;
}

.project-stack {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 22px;
}

.toolkit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.toolkit-card {
  min-height: 270px;
  padding: 28px;
  border-radius: var(--radius-md);
}

.toolkit-card h3 {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toolkit-card h3 span {
  color: var(--accent-bright);
  font-size: 11px;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.skill-chip {
  min-height: 34px;
  padding-inline: 12px;
}

.background-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.background-card {
  min-height: 320px;
  padding: clamp(26px, 4vw, 40px);
  border-radius: var(--radius-md);
}

.education-item,
.language-item,
.detail-row {
  border-bottom: 1px solid var(--border);
}

.education-item {
  padding: 24px 0;
}

.education-item:last-child,
.language-item:last-child,
.detail-row:last-child {
  border-bottom: 0;
}

.education-item h3 {
  margin-bottom: 5px;
}

.education-item p {
  line-height: 1.55;
}

.education-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 12px;
}

.language-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 22px 0;
}

.language-item strong,
.detail-row dt {
  font-family: var(--font-display);
  font-weight: 600;
}

.language-level {
  color: var(--text-soft);
  font-size: 13px;
}

.language-meter {
  grid-column: 1 / -1;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--border);
}

.language-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.detail-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.75fr) minmax(0, 1.25fr);
  gap: 16px;
  padding: 15px 0;
}

.detail-row dt,
.detail-row dd {
  margin: 0;
  font-size: 13px;
}

.detail-row dd {
  color: var(--text-soft);
}

.reference-card {
  background:
    radial-gradient(circle at 90% 10%, rgba(79, 124, 255, 0.22), transparent 14rem),
    var(--surface-strong);
}

.reference-person {
  margin-top: 62px;
}

.reference-person h3 {
  font-size: clamp(1.5rem, 2.7vw, 2.4rem);
}

.reference-person p {
  max-width: 560px;
  line-height: 1.65;
}

.reference-note {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  margin-top: 22px;
  padding: 4px 11px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 600;
}

.contact-section {
  position: relative;
  min-height: min(90dvh, 900px);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: #05070c;
  isolation: isolate;
}

.contact-image {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: -2;
  width: 50%;
}

.contact-image::before {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(90deg, #05070c 0%, rgba(5, 7, 12, 0.18) 42%, rgba(5, 7, 12, 0.28) 100%);
  content: "";
}

.contact-image picture,
.contact-image img {
  width: 100%;
  height: 100%;
}

.contact-image img {
  object-fit: cover;
  object-position: center 24%;
  filter: saturate(0.65) contrast(1.05);
}

.contact-grid {
  display: grid;
  min-height: min(90dvh, 900px);
  grid-template-columns: 0.72fr 0.28fr;
  align-items: center;
}

.contact-copy {
  padding: 100px 0;
  color: #f7f9fc;
}

.contact-copy h2 {
  max-width: 900px;
  margin: 22px 0;
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 7.2rem);
  font-weight: 500;
  letter-spacing: -0.075em;
  line-height: 0.9;
}

.contact-copy > p:not(.section-index) {
  max-width: 610px;
  margin: 0;
  color: #b7c0d0;
  font-size: 17px;
}

.contact-links {
  display: grid;
  max-width: 700px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 42px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.contact-link {
  display: grid;
  min-height: 82px;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  color: #f7f9fc;
}

.contact-link:nth-child(odd) {
  margin-right: 24px;
}

.contact-link small {
  display: block;
  color: #7f8a9d;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-link strong {
  display: block;
  overflow-wrap: anywhere;
  font-family: var(--font-display);
  font-size: 14px;
}

.contact-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  transition: transform 180ms var(--ease);
}

.contact-link:hover svg {
  transform: translate(3px, -3px);
}

.site-footer {
  padding: 26px 0;
  background: var(--bg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  color: var(--text-muted);
  font-size: 11px;
}

.footer-grid p {
  margin: 0;
}

.footer-grid p:nth-child(2) {
  text-align: center;
}

.footer-grid a {
  justify-self: end;
  min-height: 44px;
  padding: 11px 0;
  color: var(--text-soft);
  font-weight: 700;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: var(--z-overlay);
  max-width: min(360px, calc(100vw - 40px));
  padding: 14px 18px;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: var(--surface-strong);
  color: var(--text);
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  font-weight: 600;
}

.toast[hidden] {
  display: none;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 520ms var(--ease), transform 520ms var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1120px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: grid;
  }

  .mobile-nav {
    border-top: 1px solid var(--border);
    background: var(--bg-elevated);
  }

  .mobile-nav:not([hidden]) {
    display: block;
  }

  .mobile-nav .shell {
    display: grid;
    padding: 18px 0 28px;
  }

  .mobile-nav a {
    display: flex;
    min-height: 52px;
    align-items: center;
    border-bottom: 1px solid var(--border);
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
    gap: 36px;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 7vw, 5.8rem);
  }

  .floating-note {
    right: 18px;
  }

  .about-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
  }

  .bento-portrait {
    grid-row: span 4;
    min-height: 780px;
  }

  .bento-manifesto {
    grid-column: auto;
  }

  .bento-value:last-child {
    grid-column: auto;
  }

  .toolkit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 880px) {
  :root {
    --header-height: 70px;
  }

  .shell {
    width: min(calc(100% - 32px), var(--shell));
  }

  .brand-copy {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + 48px);
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding-block: 30px 0;
  }

  .hero-visual {
    max-width: 700px;
  }

  .portrait-frame {
    min-height: 620px;
  }

  .floating-note {
    right: 18px;
    bottom: 28px;
  }

  .scroll-cue {
    display: none;
  }

  .signal-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .signal-grid p:nth-child(2) {
    border-right: 0;
  }

  .signal-grid p:nth-child(-n + 2) {
    border-bottom: 1px solid var(--border);
  }

  .split-heading {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 24px;
  }

  .section-heading {
    margin-bottom: 38px;
  }

  .about-bento,
  .expertise-grid,
  .background-grid {
    grid-template-columns: 1fr;
  }

  .bento-portrait {
    grid-row: auto;
    min-height: 680px;
  }

  .bento-manifesto {
    grid-column: auto;
  }

  .experience-card summary {
    grid-template-columns: 130px minmax(0, 1fr) auto;
    gap: 20px;
  }

  .experience-body {
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 20px;
  }

  .role-track {
    display: none;
  }

  .project-card,
  .project-card:nth-child(3n + 1),
  .project-card:nth-child(3n + 2) {
    grid-column: span 12;
  }

  .contact-image {
    width: 62%;
    opacity: 0.62;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .shell {
    width: min(calc(100% - 24px), var(--shell));
  }

  .header-actions {
    gap: 6px;
  }

  .language-switcher button {
    min-width: 44px;
    padding: 0 5px;
  }

  .icon-button {
    width: 44px;
    height: 44px;
  }

  .hero {
    padding-bottom: 56px;
  }

  .hero h1 {
    margin-top: 22px;
    font-size: clamp(2.65rem, 13vw, 4.2rem);
  }

  .eyebrow {
    align-items: flex-start;
    font-size: 10px;
    letter-spacing: 0.1em;
  }

  .eyebrow .status-dot {
    margin-top: 5px;
  }

  .eyebrow span:last-child {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .hero-actions,
  .contact-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .hero-facts {
    gap: 0;
  }

  .hero-facts div {
    padding-inline: 12px;
  }

  .hero-facts dt {
    font-size: 1.7rem;
  }

  .portrait-frame {
    min-height: 520px;
    border-radius: 24px;
  }

  .portrait-label {
    right: 24px;
    bottom: 112px;
    left: 24px;
  }

  .floating-note {
    right: 14px;
    bottom: 18px;
    left: 14px;
    min-width: 0;
  }

  .signal-grid p {
    padding: 18px 8px;
    font-size: 9px;
  }

  .section {
    padding: 84px 0;
  }

  .section-heading h2 {
    font-size: clamp(2.35rem, 12vw, 3.8rem);
  }

  .bento-portrait {
    min-height: 560px;
  }

  .bento-value,
  .expertise-card,
  .project-card,
  .toolkit-card,
  .background-card {
    min-height: auto;
  }

  .bento-manifesto blockquote {
    margin-top: 30px;
    font-size: 1.85rem;
  }

  .expertise-card {
    padding: 28px;
  }

  .expertise-icon {
    margin-bottom: 44px;
  }

  .timeline {
    margin-left: 0;
    padding-left: 24px;
  }

  .timeline-entry::before {
    left: -28px;
  }

  .experience-card summary {
    grid-template-columns: 1fr auto;
    gap: 14px;
    padding: 20px;
  }

  .experience-period {
    grid-column: 1 / -1;
  }

  .experience-body {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 0 20px 24px;
  }

  .experience-context {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
  }

  .project-card h3 {
    padding-top: 54px;
  }

  .toolkit-grid {
    grid-template-columns: 1fr;
  }

  .detail-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .contact-section,
  .contact-grid {
    min-height: auto;
  }

  .contact-image {
    inset: 0;
    width: 100%;
    opacity: 0.4;
  }

  .contact-image::before {
    background: linear-gradient(0deg, #05070c 2%, rgba(5, 7, 12, 0.64) 58%, rgba(5, 7, 12, 0.3));
  }

  .contact-copy {
    padding: 110px 0 72px;
  }

  .contact-copy h2 {
    font-size: clamp(3rem, 14vw, 5.2rem);
  }

  .contact-links {
    grid-template-columns: 1fr;
  }

  .contact-link:nth-child(odd) {
    margin-right: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 6px;
    text-align: left;
  }

  .footer-grid p:nth-child(2),
  .footer-grid a {
    justify-self: start;
    text-align: left;
  }
}

@media (max-width: 420px) {
  #theme-toggle {
    display: none;
  }

  .header-actions {
    margin-left: auto;
  }

  .hero-facts dd {
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  :root {
    color-scheme: light;
    --bg: #fff;
    --bg-elevated: #fff;
    --surface: #fff;
    --surface-strong: #f4f5f7;
    --text: #111;
    --text-soft: #333;
    --text-muted: #555;
    --border: #d8d8d8;
    --border-strong: #b8b8b8;
    --accent: #1f4ea8;
    --accent-bright: #1f4ea8;
    --accent-soft: #eef3ff;
    --shadow-sm: none;
    --shadow-lg: none;
  }

  body {
    background: #fff;
  }

  .site-header,
  .scroll-progress,
  .scroll-cue,
  .signal-strip,
  .filter-bar,
  .contact-image,
  .toast,
  .hero-actions,
  .contact-actions {
    display: none !important;
  }

  .hero,
  .section,
  .contact-copy {
    min-height: 0;
    padding: 36px 0;
  }

  .hero-grid,
  .split-heading,
  .about-bento,
  .expertise-grid,
  .background-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual,
  .bento-portrait {
    display: none;
  }

  .timeline-entry[hidden] {
    display: block;
  }

  .experience-card,
  .experience-card[open] {
    background: #fff;
  }

  .experience-card summary {
    min-height: 0;
  }

  .experience-card .experience-body {
    display: grid !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
