@font-face {
  font-family: "Bricolage Grotesque";
  src: url("./assets/bricolage-grotesque-variable.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("./assets/fraunces-variable.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  font-family: "Bricolage Grotesque", Arial, sans-serif;
  font-optical-sizing: auto;
  color: var(--ink);
  background: var(--page);
  color-scheme: light;
  --page: #f1f2ee;
  --ink: #283039;
  --muted: #687078;
  --line: #000000;
  --paper: #fcfdf9;
  --glass: #fcfdf9eb;
  --accent: #ffc83a;
  --accent-hover: #edb321;
  --accent-ink: #795300;
  --on-accent: #111111;
  --dot: #cdc9bd;
  --green: #50c368;
  --surface-sheen: linear-gradient(transparent, transparent);
  --surface-glow: linear-gradient(transparent, transparent);
  --content-width: 1220px;
  --ticker-height: clamp(64px, 12svh, 112px);
  --hero-top: 88px;
  --header-clearance: 72px;
  --hero-bottom: 22px;
  --portrait-limit: clamp(150px, calc(100svh - var(--ticker-height) - var(--hero-top) - var(--hero-bottom) - 190px), 420px);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background-color: var(--page);
  background-image: radial-gradient(var(--dot) .8px, transparent .8px), var(--surface-sheen), var(--surface-glow);
  background-size: 28px 28px, 100% 100vh, 100% 100vh;
  background-repeat: repeat, no-repeat, no-repeat;
  background-attachment: scroll, fixed, fixed;
}
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, select:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 6px; }
.site-footer { padding: 26px max(20px, 5vw); border-top: 1px solid var(--line); background: var(--paper); }
.site-footer-inner { max-width: var(--content-width); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 24px; }
.footer-credit { grid-column: 2; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: 14px; }
.footer-credit svg { flex-shrink: 0; color: var(--ink); }
.footer-contact { grid-column: 3; justify-self: end; display: flex; gap: 12px; }
.footer-contact a { display: grid; place-items: center; width: 44px; height: 44px; border: 2px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--ink); box-shadow: 0 3px 0 var(--line); }
.footer-contact a:hover { background: var(--accent); color: var(--on-accent); }
.footer-contact a:active { transform: translateY(3px); box-shadow: none; }
@media (max-width: 600px) {
  .site-footer-inner { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .footer-credit, .footer-contact { grid-column: 1; }
}
h1, p { margin: 0; }
button { font: inherit; cursor: pointer; }
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #080b10;
  --ink: #edf4ff;
  --muted: #b7c3d4;
  --line: #000000;
  --paper: #141c28;
  --glass: #141c28e6;
  --accent: #ffc83a;
  --accent-hover: #edb321;
  --accent-ink: #ffc83a;
  --dot: #39352b;
  --green: #9cbedf;
  --surface-sheen: linear-gradient(120deg, transparent 18%, #ffe6a408 32%, #fff2ca12 46%, transparent 68%);
  --surface-glow: radial-gradient(ellipse at 82% 4%, #ffc83a1a, #ffc83a08 44%, transparent 76%);
}
.file-header { position: fixed; z-index: 30; left: 24px; right: 24px; top: 14px; display: flex; justify-content: space-between; align-items: center; gap: 16px; pointer-events: none; }
.file-header > * { pointer-events: auto; }
.primary-nav { display: flex; align-items: center; gap: 3px; padding: 4px; border: 2px solid var(--line); border-radius: 40px; background: var(--glass); backdrop-filter: blur(16px); box-shadow: 3px 4px 0 var(--button-edge); }
.file-name { display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); }
.brand-logo { display: block; width: 33px; height: 33px; flex-shrink: 0; object-fit: contain; }
.file-name .brand-logo { filter: brightness(0); }
.section-link { display: grid; place-items: center; min-height: 36px; padding: 6px 10px; border-radius: 28px; color: var(--ink); font-size: 12px; font-weight: 600; transition: background-color .2s, color .2s; }
.section-link:hover { background: var(--paper); }
.section-link[aria-current="location"] { color: var(--on-accent); background: var(--accent); }
.primary-nav a:focus-visible { outline-offset: 2px; }
.mobile-navigation, .resume-mobile-icon { display: none; }
.showcase { --showcase-columns: 2; max-width: 1968px; min-height: 100svh; margin-inline: auto; padding: calc(var(--header-clearance) + 32px) 24px 48px; }
.showcase:has(input[value="3"]:checked) { --showcase-columns: 3; }
.showcase-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.showcase h1 { font-family: "Fraunces", Georgia, serif; font-size: clamp(36px, 5vw, 64px); font-weight: 700; letter-spacing: -1.5px; }
.showcase-density { display: flex; gap: 2px; flex-shrink: 0; margin: 0; padding: 3px; border: 1px solid color-mix(in srgb, var(--ink) 20%, var(--paper)); border-radius: 11px; background: color-mix(in srgb, var(--ink) 4%, var(--paper)); }
.showcase-density label { position: relative; cursor: pointer; }
.showcase-density label > span { display: grid; place-items: center; min-width: 44px; min-height: 44px; border-radius: 7px; color: var(--muted); }
.showcase-density svg { display: block; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.showcase-density label:hover > span { background: color-mix(in srgb, var(--ink) 8%, var(--paper)); color: var(--ink); }
.showcase-density input:checked + span { background: var(--accent); color: var(--on-accent); }
.showcase-density input:focus-visible + span { outline: 2px solid var(--accent-ink); outline-offset: 5px; }
.showcase-tabs { display: grid; grid-template-columns: repeat(6, max-content); gap: 2px; width: fit-content; max-width: 100%; margin-bottom: 24px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: color-mix(in srgb, var(--ink) 5%, var(--paper)); }
.showcase-tabs svg { flex-shrink: 0; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.showcase-tabs > button:focus-visible { outline-offset: 1px; }
@media (max-width: 1000px) {
  .showcase-tabs { width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .showcase-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.showcase-empty { padding: 48px 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); color: var(--muted); text-align: center; font-size: 14px; }
.showcase-grid { display: grid; grid-template-columns: repeat(var(--showcase-columns), minmax(0, 1fr)); align-items: start; gap: 20px; margin: 0; padding: 0; list-style: none; }
.showcase-grid > li { min-width: 0; padding: 8px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); overflow: hidden; }
.showcase-grid img { display: block; width: 100%; height: auto; border-radius: 12px; }
.showcase-image-link { display: block; border-radius: inherit; }
.showcase-image-link:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: -4px; }
.showcase-preview { --showcase-columns: 2; padding: 56px 6% 64px; scroll-margin-top: var(--header-clearance); }
.showcase-preview h2 { margin: 0 0 28px; font-size: clamp(32px, 4vw, 48px); letter-spacing: -1px; }
.showcase-preview-actions { display: flex; justify-content: center; margin-top: 28px; }
.showcase-preview-actions .hero-cta { flex: 0 1 auto; min-width: 140px; }
.showcase-lightbox { position: fixed; inset: 0; width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: var(--page); color: var(--ink); }
.showcase-lightbox[open] { display: flex; flex-direction: column; }
.showcase-lightbox::backdrop { background: var(--page); }
.showcase-lightbox-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-shrink: 0; padding: max(12px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) 16px max(20px, env(safe-area-inset-left)); border-bottom: 1px solid var(--line); background: var(--paper); }
.showcase-lightbox-toolbar p { color: var(--muted); font-size: 14px; }
.showcase-lightbox-stage { display: flex; align-items: center; justify-content: center; flex: 1; min-height: 0; padding: 20px max(12px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); overflow: hidden; }
.showcase-lightbox-image { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.showcase-lightbox-status { max-width: 420px; color: var(--ink); line-height: 1.6; text-align: center; }
html:has(.showcase-lightbox[open]), body:has(.showcase-lightbox[open]) { overflow: hidden; }
.showcase-image-error { padding: 16px; color: var(--ink); font-size: 13px; line-height: 1.5; }
@media (max-width: 700px) {
  .showcase { padding: calc(var(--header-clearance) + 24px) 12px 32px; }
  .showcase-preview { padding: 28px 6% 40px; }
  .showcase-toolbar { flex-wrap: wrap; gap: 20px; margin-bottom: 24px; }
  .showcase-density { display: none; }
  .showcase .showcase-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .showcase-grid { gap: 10px; }
  .showcase-grid > li { padding: 3px; border-radius: 10px; }
  .showcase-grid img { border-radius: 6px; }
}
@media (max-width: 380px) {
  .primary-nav .section-link { padding-inline: 3px; font-size: 10px; }
  .primary-nav .file-name { width: 30px; height: 34px; }
  .primary-nav .brand-logo { width: 28px; height: 28px; }
}
.header-actions { display: flex; align-items: center; gap: 9px; }
.header-cta-group, .header-utilities { display: flex; align-items: center; gap: 9px; }
.resume-download { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 32px; background: var(--glass); color: var(--ink); font-size: 12px; white-space: nowrap; }
.summary-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 8px 14px; border: 2px solid #171716; border-radius: 32px; background-color: #f6cf62; color: #171716; font-size: 12px; font-weight: 700; white-space: nowrap; }
.summary-toggle svg { flex-shrink: 0; }
.summary-dialog { width: min(760px, calc(100% - 32px)); max-height: 88dvh; padding: 0; border: 2px solid var(--line); border-radius: 28px; background: var(--paper); color: var(--ink); box-shadow: 8px 9px 0 var(--button-edge); }
.summary-dialog::backdrop { background: #000a; backdrop-filter: blur(7px); }
.summary-heading { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 28px; border-bottom: 1px solid var(--line); background: var(--paper); }
.summary-heading h2 { margin: 0; font-size: clamp(24px, 3vw, 36px); letter-spacing: -1px; }
.summary-close, .showcase-lightbox-close { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--page); color: var(--ink); font-size: 28px; }
.summary-body { padding: 24px 28px 32px; font-size: 15px; line-height: 1.65; }
.summary-intro { margin-bottom: 16px; }
.summary-intro > strong { display: block; font-size: 25px; letter-spacing: -.5px; }
.summary-intro > span { color: var(--muted); }
.summary-points { display: grid; gap: 20px; margin: 24px 0; padding: 0; list-style: none; }
.summary-points li { display: flex; align-items: flex-start; gap: 16px; }
.summary-points img { flex-shrink: 0; width: 40px; height: 40px; object-fit: contain; }
body:has(.summary-dialog[open]) { overflow: hidden; }
.theme-toggle { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: var(--glass); color: var(--ink); box-shadow: 0 3px 4px #0001; }
.theme-toggle .sun-icon { display: none; }
[data-theme="dark"] .theme-toggle .moon-icon { display: none; }
[data-theme="dark"] .theme-toggle .sun-icon { display: block; }
.theme-toggle:hover { background: var(--paper); }
.preference-status { position: fixed; left: 20px; bottom: 20px; max-width: min(360px, calc(100vw - 40px)); padding: 13px 16px; z-index: 40; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); font-size: 12px; line-height: 1.6; }

.hero {
  position: relative;
  height: calc(100svh - var(--ticker-height));
  min-height: 450px;
  padding-top: var(--hero-top);
  padding-bottom: var(--hero-bottom);
}

.hero-inner {
  position: relative;
  width: min(var(--content-width), 86%);
  height: 100%;
  display: flex;
  align-items: center;
  margin: 0 auto;
}

.hero-copy { position: relative; width: 60%; }
.intro-mark { display: block; color: var(--accent); font-size: 13px; margin-bottom: 20px; }
h1 {
  font-family: "Fraunces", Georgia, serif;
  font-variation-settings: "SOFT" 100, "opsz" 144;
  font-style: normal;
  font-size: clamp(34px, min(3.8vw, 5.4svh), 60px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.5px;
}

.portrait-composition {
  position: absolute;
  top: 50%;
  right: 0;
  width: min(420px, 37%, var(--portrait-limit));
  transform: translateY(-50%);
  z-index: 2;
}

.portrait-stamp {
  position: relative;
  display: block;
  width: 100%;
  padding: 12px 12px 10px;
  border: 0;
  background: #fff;
  color: #514b3b;
  text-align: left;
  transform: rotate(-6deg);
  box-shadow: 0 8px 12px #0002;
}
.paper-tape { position: absolute; z-index: 2; top: -11px; left: 33%; width: 37%; height: 26px; background: #d7d0eebf; transform: rotate(4deg); }
.stamp-face { display: block; position: relative; aspect-ratio: 1; }
.stamp-photo { position: absolute; inset: 0; display: block; overflow: hidden; background: #34496a; }
.stamp-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.stamp-caption { display: block; padding-top: 9px; text-align: center; font-size: 10px; }

.portrait-arrow {
  position: absolute;
  left: -15px;
  top: -16px;
  transform: translateX(-100%);
  font-size: 37px;
  color: var(--green);
  line-height: 1;
}


.cursor {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  color: var(--cursor-color);
}

.cursor > svg { position: absolute; top: -13px; left: -9px; width: 17px; height: 20px; fill: currentColor; }
.cursor > span { display: block; padding: 6px 13px; border-radius: 22px; font-size: 13px; background: currentColor; box-shadow: 0 6px 15px #0002; }
.cursor > span::first-line { color: var(--cursor-text, #000); }
.cursor-orange { --cursor-color: #fa704f; top: -2px; left: 69.3%; }
.cursor-purple { --cursor-color: #5140ee; --cursor-text: #fff; top: 60px; left: 63%; animation-delay: -2s; }
.cursor-green {
  --cursor-color: #50c368;
  position: fixed;
  left: 0;
  top: 0;
  opacity: 0;
  z-index: 100;
}
.cursor.cursor-green > svg { top: -1.4px; left: -1.4px; width: 17px; height: 20px; }
.cursor-green > span { position: relative; left: var(--label-x, 12px); top: var(--label-y, 16px); white-space: nowrap; }
.cursor-green.is-visible { opacity: 1; }
@media (any-pointer: fine) {
  html.custom-cursor-active,
  html.custom-cursor-active *,
  html.custom-cursor-active *::before,
  html.custom-cursor-active *::after,
  html.custom-cursor-active dialog::backdrop { cursor: none !important; }
}

.hero-kpis {
  width: 100%;
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.kpi-card {
  position: relative;
  overflow: hidden;
  padding: 18px 20px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--glass);
  box-shadow: 0 5px 12px #00000008;
  backdrop-filter: blur(8px);
  transition: transform .2s, box-shadow .2s;
  --kpi-accent: var(--accent);
}
.kpi-card:nth-child(2) { --kpi-accent: #50b76a; }
.kpi-card:nth-child(3) { --kpi-accent: #d3a070; }
.kpi-card:nth-child(4) { --kpi-accent: #a394cf; }
.kpi-card::before { content: ""; position: absolute; top: 0; left: 23px; right: 23px; height: 2px; background: var(--kpi-accent); }
.kpi-card:hover { transform: translateY(-4px); box-shadow: 0 10px 20px #00000012; }
[data-theme="dark"] .kpi-card {
  background: linear-gradient(135deg, #ffffff16, #ffffff05 48%, #00000018), var(--glass);
  box-shadow: inset 0 1px 0 #ffffff1c, 0 8px 18px #00000030;
}
[data-theme="dark"] .kpi-card:hover { box-shadow: inset 0 1px 0 #ffffff2b, 0 12px 24px #00000045; }
.kpi-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); text-transform: uppercase; font-size: 9px; letter-spacing: .9px; line-height: 1.5; }
.kpi-label > span { color: var(--kpi-accent); font-size: 9px; letter-spacing: 0; }
.kpi-main { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 10px 0 8px; }
.kpi-value { display: flex; align-items: baseline; gap: 8px; font-size: clamp(38px, 5svh, 52px); line-height: 1; letter-spacing: -2px; font-weight: 500; }
.kpi-icon { display: block; width: 56px; height: 56px; flex-shrink: 0; transition: transform .25s; }
.kpi-card:hover .kpi-icon { transform: translateY(-3px) rotate(4deg); }
.kpi-value > span { font-size: 16px; font-weight: 400; letter-spacing: -.3px; color: var(--muted); }
.kpi-value > .kpi-plus { font-size: .65em; color: var(--ink); letter-spacing: -1px; align-self: flex-start; margin-top: 3px; }
.kpi-description { font-size: 11px; line-height: 1.55; color: var(--muted); min-height: 34px; }
.kpi-global .kpi-value { font-size: 34px; letter-spacing: -1.5px; }

.cursor-pink { --cursor-color: #e3479b; --cursor-text: #fff; top: calc(100% - 24px); right: 9.5%; animation-delay: -1s; }

@media (max-width: 1699px) and (min-width: 1001px) {
  .kpi-global .kpi-value { font-size: 32px; }
  .kpi-label { letter-spacing: .5px; font-size: 8px; }
}

@media (max-width: 1000px) and (min-width: 701px) {
  .hero-inner { width: 90%; }
  .hero-copy { width: 56%; }
  h1 { font-size: clamp(32px, min(5.1vw, 5.4svh), 43px); }
  .portrait-composition { width: min(max(260px, 40%), var(--portrait-limit)); }
  .cursor-orange { left: 72%; }
  .kpi-card { padding: 14px 15px 12px; }
  .kpi-main { gap: 8px; }
  .kpi-value { font-size: 40px; }
  .kpi-value > span { font-size: 13px; }
  .kpi-icon { width: 44px; height: 44px; }
  .kpi-global .kpi-value { font-size: 27px; }
  .kpi-label { font-size: 8px; letter-spacing: .4px; min-height: 18px; }
}

@media (max-width: 700px) {
  :root { --hero-top: 96px; --hero-bottom: 16px; }
  .hero { height: auto; min-height: 0; }
  .hero-inner { width: 88%; height: auto; display: grid; grid-template-columns: minmax(0, 1fr) min(44%, 170px); grid-template-rows: auto auto auto; gap: 18px; }
  .hero-copy { display: contents; }
  .intro-mark { grid-row: 1; grid-column: 1 / -1; margin: 0; font-size: 11px; }
  h1 { grid-row: 2; grid-column: 1; align-self: center; font-size: clamp(23px, 6.2vw, 34px); line-height: 1.2; letter-spacing: -.5px; }
  .portrait-composition { grid-row: 2; grid-column: 2; position: relative; top: auto; right: auto; justify-self: center; width: min(100%, clamp(108px, calc(35svh - 110px), 170px)); transform: none; }
  .portrait-arrow { left: -5px; top: -8px; font-size: 23px; }
  .cursor > span { font-size: 11px; padding: 5px 11px; }
  .cursor > svg { width: 15px; height: 18px; top: -12px; }
  .cursor-orange { top: 0; right: 0; left: auto; }
  .cursor-purple { top: 0; bottom: auto; left: auto; right: 60px; }
  .hero-kpis { grid-row: 3; grid-column: 1 / -1; margin: 0; gap: 10px; }
  .kpi-card { padding: 12px 15px 10px; }
  .kpi-card::before { left: 15px; right: 15px; }
  .kpi-label { font-size: 8px; letter-spacing: .4px; gap: 4px; min-height: 18px; }
  .kpi-label > span { font-size: 8px; }
  .kpi-main { gap: 8px; }
  .kpi-value { font-size: 36px; }
  .kpi-icon { width: 40px; height: 40px; }
  .kpi-value > span { font-size: 13px; }
  .kpi-description { font-size: 10px; line-height: 1.5; min-height: 30px; }
  .kpi-global .kpi-value { font-size: 26px; letter-spacing: -1px; }
  .portrait-stamp { padding: 6px; }
  .stamp-caption { font-size: 7px; padding-top: 5px; }
}

@media (max-height: 760px) and (min-width: 701px) {
  .intro-mark { font-size: 12px; margin-bottom: 14px; }
  h1 { font-size: clamp(30px, min(3.8vw, 5.5svh), 48px); line-height: 1.2; }
  .hero-kpis { margin-top: 18px; gap: 10px; }
  .kpi-card { padding: 12px 15px 10px; }
  .kpi-label { min-height: 12px; }
  .kpi-main { margin: 8px 0 6px; }
  .kpi-value { font-size: 34px; }
  .kpi-icon { width: 40px; height: 40px; }
  .kpi-description { font-size: 10px; line-height: 1.4; min-height: 28px; }
  .kpi-global .kpi-value { font-size: 26px; }
}

@media (max-height: 740px) and (max-width: 700px) {
  :root { --hero-top: 88px; --hero-bottom: 10px; }
  .hero-inner { gap: 8px 12px; }
  h1 { font-size: 21px; }
  .hero-kpis { gap: 8px; }
  .kpi-card { padding: 10px 12px 9px; }
  .kpi-label { min-height: 12px; font-size: 7px; letter-spacing: .2px; }
  .kpi-main { margin: 6px 0; gap: 6px; }
  .kpi-value { font-size: 32px; gap: 6px; }
  .kpi-value > span { font-size: 11px; }
  .kpi-icon { width: 32px; height: 32px; }
  .kpi-description { font-size: 9px; line-height: 1.45; min-height: 26px; }
  .kpi-global .kpi-value { font-size: 23px; }
  .cursor-purple { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

html { scroll-behavior: smooth; }
.selected-works { --stack-top: 96px; display: grid; grid-template-columns: minmax(210px, .7fr) minmax(0, 2fr); gap: 5vw; padding: 56px 6% 48px; align-items: start; scroll-margin-top: var(--header-clearance); }
.works-sidebar { position: sticky; top: var(--stack-top); min-height: var(--works-sidebar-height, 0px); z-index: 10; padding: 20px 0 60px; }
.works-intro h2 { margin: 0 0 24px; font-size: clamp(36px, 4vw, 64px); letter-spacing: -2px; line-height: 1.04; }
.works-sidebar .cursor-pink { top: 190px; right: 4px; }
.project-stack { min-width: 0; padding-bottom: 24px; }
.project-stack-item { position: relative; margin-bottom: clamp(72px, 14svh, 150px); scroll-margin-top: calc(var(--stack-top) + 36px); }
.project-stack-item:last-child { margin-bottom: 0; }
.stack-enabled .project-stack-item { position: sticky; top: calc(var(--stack-top) + var(--stack-index) * 16px); }
.project-stack-card { --card-bg: #ceeaf1; --card-ink: #143747; display: block; width: 100%; padding: 22px; border: 1px solid var(--line); border-radius: 22px; background-color: var(--card-bg); color: var(--card-ink); text-align: left; transform: scale(var(--stack-scale, 1)); transform-origin: center top; }
.project-stack-item:nth-child(2) .project-stack-card { --card-bg: #e0d9f0; --card-ink: #37264e; }
.project-stack-item:nth-child(3) .project-stack-card { --card-bg: #d1e8dc; --card-ink: #183c2b; }
[data-theme="dark"] .project-stack-card { --card-bg: #153341; --card-ink: #e8f7ff; }
[data-theme="dark"] .project-stack-item:nth-child(2) .project-stack-card { --card-bg: #302541; --card-ink: #f0e9ff; }
[data-theme="dark"] .project-stack-item:nth-child(3) .project-stack-card { --card-bg: #19392f; --card-ink: #e8fff3; }
.project-card-meta { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid color-mix(in srgb, var(--card-ink) 25%, transparent); font-size: 10px; letter-spacing: 1.2px; line-height: 1.5; }
.project-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 0 22px; }
.project-card-title { display: block; font-family: "Fraunces", Georgia, serif; font-weight: 700; font-size: clamp(26px, 2.7vw, 44px); letter-spacing: -1px; line-height: 1.1; }
.project-card-description { display: block; max-width: 650px; margin-top: 10px; font-size: 14px; line-height: 1.5; }
.project-card-arrow { font-size: 40px; flex-shrink: 0; line-height: 1; }
.project-card-art { display: block; width: 100%; height: clamp(140px, min(36vw, calc(100svh - var(--stack-top) - 290px)), 540px); border-radius: 12px; overflow: hidden; background: #e6eced; }
.project-card-art img { display: block; width: 100%; height: 100%; object-fit: contain; }
.project-card-caption { display: flex; justify-content: space-between; gap: 10px; margin-top: 12px; font-size: 10px; line-height: 1.5; }
.project-card-caption > span { font-weight: 600; white-space: nowrap; }
.project-stack-card:focus-visible { outline-offset: -6px; outline: 3px solid var(--card-ink); }
.work-dialog { width: min(1050px, 92vw); max-height: 90dvh; padding: 0; border: 0; border-radius: 18px; background: var(--paper); color: var(--ink); }
.work-dialog::backdrop { background: #000b; backdrop-filter: blur(7px); }
.work-dialog-close { display: block; position: sticky; top: 14px; margin: 14px 14px -50px auto; z-index: 2; border: 1px solid var(--line); border-radius: 50%; width: 40px; height: 40px; background: var(--paper); color: var(--ink); font-size: 28px; line-height: 1; }
.project-detail { padding: 45px 40px 40px; }
.detail-category { font-size: 10px; letter-spacing: 1px; color: var(--muted); padding-right: 35px; }
.project-detail h2 { margin: 18px 0 28px; font-size: clamp(34px, 4vw, 62px); line-height: 1.05; font-weight: 400; letter-spacing: -2px; }
.detail-art { display: block; width: 100%; height: auto; border-radius: 12px; }
.detail-description { margin-top: 25px; font-size: 16px; line-height: 1.8; max-width: 750px; }
.detail-note { margin-top: 14px; font-size: 12px; line-height: 1.8; color: var(--muted); max-width: 750px; }
.project-detail > a { display: inline-flex; gap: 40px; padding-bottom: 7px; border-bottom: 1px solid #bbb; margin-top: 25px; font-size: 13px; }
body:has(.work-dialog[open]) { overflow: hidden; }

@media (max-width: 900px) {
  .selected-works { display: block; padding: 24px 6% 36px; }
  .works-sidebar { position: relative; top: auto; min-height: 0; padding: 12px 0 28px; margin-bottom: 20px; }
  .works-intro h2 { margin-bottom: 12px; font-size: 34px; }
  .works-sidebar .cursor-pink { top: 60px; right: 12px; }
  .project-stack-card { padding: 18px; }
  .project-card-title { font-size: 28px; }
  .project-card-description { font-size: 12px; }
  .project-card-heading { padding: 14px 0 18px; gap: 12px; }
  .project-card-meta { font-size: 9px; letter-spacing: .5px; padding-bottom: 12px; }
  .project-card-arrow { font-size: 30px; }
  .project-card-art { height: clamp(140px, min(53vw, calc(100svh - var(--stack-top) - 260px)), 450px); }
  .project-detail { padding: 45px 23px 28px; }
  .project-detail h2 { font-size: 35px; letter-spacing: -1px; }
  .detail-description { font-size: 14px; }
}

@media (max-width: 900px) {
  :root { --header-clearance: 108px; }
  .selected-works { --stack-top: 116px; }
  .file-header { top: 8px; left: 12px; right: 12px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
  .primary-nav { min-width: 0; justify-content: space-between; gap: 0; padding: 3px; }
  .section-link { flex: 1; padding: 6px 4px; font-size: 11px; }
  .header-actions { display: contents; }
  .header-cta-group { grid-row: 2; grid-column: 1 / -1; justify-content: center; gap: 10px; }
  .header-utilities { grid-row: 1; grid-column: 2; gap: 4px; }
  .summary-toggle { min-height: 38px; padding: 7px 11px; font-size: 11px; gap: 6px; }
  .summary-toggle svg { width: 17px; height: 19px; }
  .resume-download { min-height: 38px; padding: 7px 11px; font-size: 11px; gap: 6px; }
  .summary-heading { gap: 10px; padding: 16px; }
  .summary-body { padding: 20px 18px 28px; font-size: 14px; }
  .summary-heading h2 { font-size: 25px; }
  .summary-points li { gap: 12px; }
  .summary-points img { width: 32px; height: 32px; }
}

@media (max-width: 380px) and (min-height: 741px) {
  .kpi-card { padding: 12px; }
  .kpi-main { gap: 6px; }
  .kpi-value { font-size: 32px; gap: 6px; }
  .kpi-value > span { font-size: 11px; }
  .kpi-icon { width: 32px; height: 32px; }
  .kpi-global .kpi-value { font-size: 22px; }
}

@media (max-width: 700px) {
  :root { --header-clearance: 72px; }
  .file-header { grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 8px; }
  .primary-nav { grid-row: 1; grid-column: 1; width: 44px; height: 44px; padding: 0; border: 0; background: none; backdrop-filter: none; box-shadow: none; }
  .primary-nav .file-name { width: 44px; height: 44px; border: 2px solid var(--line); box-shadow: 0 4px 0 var(--button-edge); }
  .primary-nav .brand-logo { width: 33px; height: 33px; }
  .primary-nav .section-link { display: none; }
  .header-actions { display: flex; grid-row: 1; grid-column: 2; justify-self: end; gap: 8px; }
  .header-cta-group { gap: 8px; }
  .file-header :is(.summary-toggle, .resume-download, .theme-toggle) { display: grid; place-items: center; width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 0; }
  .file-header .summary-toggle svg { width: 20px; height: 22px; }
  .file-header .header-action-label, .resume-external-icon { display: none; }
  .resume-mobile-icon { display: block; }
  .mobile-navigation { display: block; grid-row: 1; grid-column: 3; }
  .mobile-nav-toggle { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 3px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--ink); box-shadow: 0 5px 0 var(--button-edge); list-style: none; cursor: pointer; }
  .mobile-nav-toggle::-webkit-details-marker { display: none; }
  .mobile-nav-toggle::marker { content: ""; }
  .mobile-nav-toggle:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 4px; }
  .menu-close-icon, .mobile-navigation[open] .menu-open-icon { display: none; }
  .mobile-navigation[open] .menu-close-icon { display: block; }
  .mobile-nav-links { position: absolute; top: calc(100% + 12px); left: 0; right: 0; display: grid; gap: 4px; max-height: calc(100dvh - var(--header-clearance) - 24px); overflow-y: auto; padding: 8px; border: 2px solid var(--line); border-radius: 20px; background: var(--paper); box-shadow: 0 6px 0 var(--button-edge), 0 16px 32px #0003; }
  .mobile-nav-links .section-link { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 12px 16px; border-radius: 12px; font-size: 15px; }
  .selected-works { --stack-top: 80px; padding-inline: 0; }
  .works-sidebar { margin-bottom: 4px; padding-inline: 6%; }
  .works-sidebar .cursor-pink { right: 6%; }
  .project-stack { display: grid; grid-auto-flow: column; grid-auto-columns: calc(100% - 20px); gap: 16px; overflow-x: auto; padding: 8px 6% 20px; scroll-snap-type: x mandatory; scroll-padding-inline: 6vw; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--accent) var(--paper); }
  .project-stack-item { min-width: 0; margin-bottom: 0; scroll-snap-align: start; }
  .project-stack-card { height: 100%; }
  .showcase-preview { padding-inline: 0; }
  .showcase-preview h2 { padding-inline: 6%; }
  .showcase-preview .showcase-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: calc(100% - 20px); gap: 16px; overflow-x: auto; padding: 8px 6% 18px; scroll-snap-type: x mandatory; scroll-padding-inline: 6vw; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--accent) var(--paper); }
  .showcase-preview .showcase-grid > li { padding: 5px; scroll-snap-align: start; }
  .showcase-preview-actions { margin-top: 18px; padding-inline: 6%; }
  .site-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  .footer-credit { gap: 5px; font-size: clamp(11px, 3.2vw, 13px); white-space: nowrap; }
  .footer-credit svg { width: 14px; height: 14px; }
  .footer-contact { gap: 4px; }
}

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