:root {
  --ink: #111827;
  --ink-soft: #4b5565;
  --paper: #f4f1eb;
  --paper-deep: #eae5dc;
  --white: #fffdf8;
  --navy: #0c172f;
  --navy-2: #14284f;
  --blue: #3978f6;
  --blue-soft: #dce8ff;
  --gold: #c8a66b;
  --line: rgba(17, 24, 39, 0.14);
  --radius-lg: 34px;
  --radius-md: 22px;
  --shadow: 0 24px 70px rgba(17, 24, 39, 0.12);
  --shell: min(1180px, calc(100vw - 64px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 14%, rgba(57, 120, 246, 0.08), transparent 24rem),
    var(--paper);
  font-family: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
img { display: block; max-width: 100%; }

.reading-progress {
  position: fixed;
  inset: 0 0 auto;
  height: 3px;
  z-index: 1000;
  background: transparent;
}
.reading-progress span { display: block; width: 0; height: 100%; background: var(--blue); }

.site-header {
  width: var(--shell);
  height: 88px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 20;
}
.brand { display: flex; align-items: center; gap: 12px; width: fit-content; }
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: white;
  border-radius: 50%;
  font: 700 11px/1 ui-monospace, monospace;
  letter-spacing: 0.08em;
}
.brand-name { font-weight: 750; letter-spacing: 0.12em; }
.nav { display: flex; gap: 36px; font-size: 14px; color: var(--ink-soft); }
.nav a { position: relative; }
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -9px;
  height: 1px;
  background: var(--ink);
  transition: right 180ms ease;
}
.nav a:hover::after { right: 0; }
.print-button {
  justify-self: end;
  border: 0;
  background: transparent;
  display: flex;
  gap: 10px;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
  font-weight: 650;
}
.print-button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }

.section-shell { width: var(--shell); margin-inline: auto; }
.section-index {
  color: #7c8491;
  font: 700 11px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.16em;
  padding-top: 7px;
}
.section-index.light { color: rgba(255,255,255,.48); }
.overline, .eyebrow, .project-kicker {
  margin: 0;
  font: 750 11px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blue);
}
.light-text { color: #79a6ff; }

.hero {
  min-height: 720px;
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(330px, .58fr);
  gap: 90px;
  align-items: center;
  padding: 80px 0 90px;
}
.eyebrow { display: flex; align-items: center; gap: 11px; }
.eyebrow span { width: 30px; height: 1px; background: var(--blue); }
.hero h1 {
  margin: 30px 0 26px;
  font-size: clamp(54px, 7vw, 91px);
  line-height: 1.02;
  letter-spacing: -.065em;
  font-weight: 790;
}
.hero h1 em { color: var(--blue); font-style: normal; font-weight: inherit; }
.hero-copy { max-width: 760px; color: var(--ink-soft); font-size: 18px; line-height: 1.9; }
.target-roles { display: flex; flex-wrap: wrap; gap: 8px; margin: 30px 0; }
.target-roles span, .tags span, .inline-tags span {
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 8px 13px;
  font-size: 12px;
  color: #4e5868;
  background: rgba(255,255,255,.38);
}
.hero-actions, .project-links { display: flex; gap: 12px; flex-wrap: wrap; }
.button {
  min-height: 48px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 100px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 720;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--ink); color: white; }
.button-ghost { border-color: var(--line); }

.identity-card {
  min-height: 510px;
  padding: 28px;
  border-radius: var(--radius-lg);
  color: white;
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
    var(--navy);
  background-size: 32px 32px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.identity-top { display: flex; justify-content: space-between; align-items: flex-start; }
.monogram { width: 88px; height: 88px; border-radius: 28px; display: grid; place-items: center; background: var(--blue); font-size: 40px; font-weight: 780; }
.identity-top p { text-align: right; font: 700 9px/1.7 ui-monospace, monospace; letter-spacing: .14em; color: rgba(255,255,255,.48); }
.identity-meta { display: grid; gap: 20px; margin-top: auto; }
.identity-meta a, .identity-meta div { display: grid; gap: 6px; padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,.13); }
.identity-meta small { font: 700 9px/1 ui-monospace, monospace; letter-spacing: .17em; color: #769de6; }
.identity-meta strong { font-size: 14px; font-weight: 580; }
.identity-year { margin-top: 20px; color: rgba(255,255,255,.42); font: 600 11px/1 ui-monospace, monospace; letter-spacing: .15em; }

.thesis { padding: 135px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 170px 1fr; }
.thesis h2, .section-heading h2, .capabilities h2, .contact h2 {
  margin: 18px 0 36px;
  font-size: clamp(38px, 5vw, 66px);
  line-height: 1.13;
  letter-spacing: -.045em;
}
.thesis h2 span { color: var(--blue); }
.thesis-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; max-width: 840px; }
.thesis-grid p { margin: 0; color: var(--ink-soft); font-size: 16px; line-height: 1.9; }

.featured-project { overflow: hidden; color: white; background: var(--navy); }
.featured-inner {
  min-height: 940px;
  position: relative;
  padding: 100px 0 70px;
  display: grid;
  grid-template-columns: 150px minmax(400px, 1fr) minmax(380px, .8fr);
  grid-template-rows: 1fr auto;
  gap: 30px 20px;
}
.featured-project::before {
  content: "";
  position: absolute;
  width: 560px;
  height: 560px;
  right: 3%;
  margin-top: 140px;
  border-radius: 50%;
  background: rgba(57,120,246,.19);
  filter: blur(120px);
}
.featured-copy { align-self: center; max-width: 590px; position: relative; z-index: 2; }
.project-kicker { color: #8eb4ff; display: flex; align-items: center; gap: 10px; }
.project-kicker.dark { color: var(--blue); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #6eebac; box-shadow: 0 0 0 5px rgba(110,235,172,.12); }
.featured-copy h2 { margin: 26px 0 10px; font-size: clamp(72px, 9vw, 126px); letter-spacing: -.075em; line-height: .95; }
.project-subtitle { margin: 28px 0 18px; font-size: 27px; line-height: 1.5; font-weight: 650; max-width: 540px; }
.project-description { color: rgba(255,255,255,.62); font-size: 15px; line-height: 1.9; max-width: 560px; }
.project-links { margin-top: 34px; }
.button-light { background: white; color: var(--navy); }
.button-outline-light { color: white; border-color: rgba(255,255,255,.23); background: transparent; }

.phone-stage { min-height: 660px; align-self: end; position: relative; z-index: 2; }
.phone {
  position: absolute;
  overflow: hidden;
  padding: 0;
  border: 7px solid rgba(255,255,255,.9);
  background: #fff;
  border-radius: 34px;
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
  cursor: zoom-in;
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone-front { width: 300px; height: 635px; left: 15px; bottom: -20px; transform: rotate(-2deg); }
.phone-back { width: 248px; height: 535px; right: -25px; top: 45px; transform: rotate(8deg); opacity: .82; }
.project-metrics {
  grid-column: 2 / 4;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,.14);
  padding-top: 35px;
  position: relative;
  z-index: 2;
}
.project-metrics div { display: grid; gap: 7px; border-right: 1px solid rgba(255,255,255,.12); padding-left: 28px; }
.project-metrics div:first-child { padding-left: 0; }
.project-metrics div:last-child { border-right: 0; }
.project-metrics strong { font-size: 31px; letter-spacing: -.035em; }
.project-metrics span { font-size: 12px; color: rgba(255,255,255,.48); }

.architecture, .frameworks, .other-projects, .experience {
  padding: 140px 0;
  display: grid;
  grid-template-columns: 170px 1fr;
  border-bottom: 1px solid var(--line);
}
.section-heading { display: grid; grid-template-columns: 1.35fr .65fr; gap: 60px; align-items: end; margin-bottom: 70px; }
.section-heading.compact { margin-bottom: 60px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading > p { margin: 0 0 8px; color: var(--ink-soft); line-height: 1.9; }
.pipeline { display: grid; grid-template-columns: repeat(6, 1fr); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; background: rgba(255,255,255,.42); }
.pipeline-step { min-height: 175px; padding: 22px 18px; display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.pipeline-step:last-child { border-right: 0; }
.pipeline-step span { font: 700 10px/1 ui-monospace, monospace; color: #9aa0aa; }
.pipeline-step strong { margin-top: auto; font-size: 15px; }
.pipeline-step small { margin-top: 8px; color: #838a96; }
.pipeline-step.accent { color: white; background: var(--blue); }
.pipeline-step.accent span, .pipeline-step.accent small { color: rgba(255,255,255,.65); }
.design-decisions { display: grid; grid-template-columns: 1fr 1fr; margin-top: 24px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.design-decisions article { min-height: 220px; padding: 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.decision-number { color: var(--blue); font: 700 11px/1 ui-monospace, monospace; }
.design-decisions h3 { margin: 50px 0 12px; font-size: 20px; }
.design-decisions p { margin: 0; color: var(--ink-soft); line-height: 1.8; font-size: 14px; }

.frameworks { background: var(--white); }
.framework-card { border-radius: var(--radius-lg); padding: 50px; margin-top: 28px; border: 1px solid var(--line); }
.framework-card.morpher-card { background: #ecf2ff; border-color: #cbdcff; }
.framework-card.sample-card { background: var(--navy); color: white; }
.sample-card .project-kicker { color: #83adff; }
.framework-header { display: flex; justify-content: space-between; align-items: flex-start; }
.framework-header h3 { margin: 12px 0 0; font-size: clamp(42px, 5vw, 68px); letter-spacing: -.055em; }
.framework-no { font: 700 11px/1 ui-monospace, monospace; color: #8a93a1; }
.framework-lead { max-width: 820px; margin: 28px 0 36px; font-size: 17px; line-height: 1.85; color: #4b586d; }
.sample-card .framework-lead { color: rgba(255,255,255,.65); }
.morph-visual { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 12px; align-items: stretch; }
.json-panel, .rule-panel { min-height: 155px; border-radius: 18px; padding: 22px; display: flex; flex-direction: column; justify-content: space-between; }
.json-panel { background: rgba(255,255,255,.75); border: 1px solid rgba(57,120,246,.18); }
.json-panel small, .rule-panel small, .sample-flow small { font: 700 9px/1 ui-monospace, monospace; letter-spacing: .14em; color: #778195; }
.json-panel code { font: 650 13px/1.6 ui-monospace, monospace; color: #27406d; }
.rule-panel { color: white; background: var(--blue); }
.rule-panel small { color: rgba(255,255,255,.62); }
.rule-panel span { font-size: 18px; font-weight: 700; }
.rule-panel i { font: normal 11px/1.5 ui-monospace, monospace; color: rgba(255,255,255,.64); }
.framework-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 36px; }
.framework-points p { margin: 0; color: #5f6877; font-size: 13px; line-height: 1.85; }
.framework-points strong { display: block; color: var(--ink); font-size: 15px; margin-bottom: 5px; }
.sample-card .framework-points p { color: rgba(255,255,255,.55); }
.sample-card .framework-points strong { color: white; }
.sample-card code { color: #9cc0ff; }
.sample-flow { display: grid; grid-template-columns: 1fr auto 1.15fr auto 1fr; align-items: center; gap: 18px; }
.sample-flow div { min-height: 115px; display: flex; flex-direction: column; justify-content: space-between; padding: 20px; border: 1px solid rgba(255,255,255,.15); border-radius: 18px; }
.sample-flow small { color: rgba(255,255,255,.45); }
.sample-flow strong { font-size: 14px; }
.sample-flow .flow-core { background: var(--blue); border-color: var(--blue); }
.flow-arrow { color: #7896c7; }

.product-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 22px; }
.product-card { min-height: 410px; border-radius: var(--radius-lg); padding: 34px; display: flex; flex-direction: column; border: 1px solid var(--line); transition: transform 180ms ease, box-shadow 180ms ease; }
a.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.tft-card { background: #e3edff; }
.live-card { background: #ece8df; }
.product-top { display: flex; justify-content: space-between; color: #697489; font: 700 10px/1 ui-monospace, monospace; letter-spacing: .16em; }
.product-symbol { width: 76px; height: 76px; margin-top: 70px; display: grid; place-items: center; border-radius: 23px; background: var(--blue); color: white; font: 750 16px/1 ui-monospace, monospace; letter-spacing: .06em; }
.live-card .product-symbol { background: #b04b62; }
.product-card h3 { margin: 24px 0 10px; font-size: 28px; letter-spacing: -.035em; }
.product-card p { max-width: 560px; margin: 0; color: var(--ink-soft); line-height: 1.85; }
.product-list { margin: 0; padding-left: 18px; color: var(--ink-soft); font-size: 13px; line-height: 1.75; }
.product-list li + li { margin-top: 8px; }
.product-card .tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; }

.timeline-item { position: relative; padding: 0 0 90px 44px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-rail { position: absolute; left: 3px; top: 7px; bottom: 0; width: 1px; background: var(--line); }
.timeline-rail span { position: absolute; left: -4px; width: 9px; height: 9px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 7px var(--blue-soft); }
.job-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.job-time { margin: 0 0 8px; color: var(--blue); font: 700 10px/1 ui-monospace, monospace; letter-spacing: .12em; }
.job-heading h3 { margin: 0; font-size: 28px; letter-spacing: -.025em; }
.job-heading > strong { color: #606978; font-size: 13px; white-space: nowrap; }
.job-context { color: var(--ink-soft); line-height: 1.85; margin: 22px 0 28px; max-width: 920px; }
.job-projects { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.job-projects article { padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.job-projects h4 { margin: 0 0 10px; font-size: 15px; }
.job-projects p, .early-projects p { margin: 0; font-size: 13px; line-height: 1.85; color: var(--ink-soft); }
.job-more { margin-top: 18px; padding: 14px 18px; border-radius: 12px; background: #e8e4dc; color: #6d7480; font-size: 12px; }
.inline-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.early-projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.early-projects strong { color: var(--ink); display: block; margin-bottom: 5px; }

.capabilities { max-width: none; width: 100%; background: var(--navy); color: white; padding: 130px max(32px, calc((100vw - 1180px) / 2)); display: grid; grid-template-columns: 170px 1fr; }
.capabilities h2 { max-width: 900px; }
.capability-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.14); border-left: 1px solid rgba(255,255,255,.14); }
.capability-grid article { min-height: 235px; padding: 28px; border-right: 1px solid rgba(255,255,255,.14); border-bottom: 1px solid rgba(255,255,255,.14); }
.capability-grid span { color: #7ba8ff; font: 700 10px/1 ui-monospace, monospace; }
.capability-grid h3 { margin: 65px 0 12px; font-size: 20px; }
.capability-grid p { margin: 0; color: rgba(255,255,255,.51); font-size: 13px; line-height: 1.85; }

.contact { padding: 140px 0 55px; }
.contact h2 { font-size: clamp(50px, 7vw, 86px); }
.contact-row { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.contact-row a { padding: 28px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; font-size: 18px; font-weight: 700; }
.contact-row a:first-child { padding-right: 28px; border-right: 1px solid var(--line); }
.contact-row a:last-child { padding-left: 28px; }
.contact-row span { color: var(--blue); }
.contact-footer { display: flex; justify-content: space-between; color: #858c97; margin-top: 70px; font: 650 10px/1 ui-monospace, monospace; letter-spacing: .1em; }

.gallery-modal[hidden] { display: none; }
.gallery-modal { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 24px; }
.gallery-backdrop { position: absolute; inset: 0; background: rgba(4,10,23,.86); backdrop-filter: blur(14px); }
.gallery-dialog { width: min(1040px, 96vw); height: min(860px, 92vh); color: white; position: relative; display: flex; flex-direction: column; }
.gallery-header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 20px; }
.gallery-header small { color: #7ba8ff; font: 700 9px/1 ui-monospace, monospace; letter-spacing: .16em; }
.gallery-header h2 { margin: 8px 0 0; font-size: 24px; }
.gallery-close { width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; color: white; background: transparent; font-size: 26px; cursor: pointer; }
.gallery-content { min-height: 0; flex: 1; display: grid; grid-template-columns: 60px 1fr 60px; align-items: center; gap: 20px; }
.gallery-content figure { min-height: 0; height: 100%; margin: 0; display: flex; flex-direction: column; align-items: center; }
.gallery-content img { min-height: 0; height: calc(100% - 42px); width: auto; max-width: 100%; object-fit: contain; border-radius: 20px; box-shadow: 0 25px 80px rgba(0,0,0,.5); }
.gallery-content figcaption { width: min(620px, 100%); display: flex; justify-content: space-between; padding-top: 16px; color: rgba(255,255,255,.68); font-size: 12px; }
.gallery-content figcaption small { font: 700 10px/1 ui-monospace, monospace; }
.gallery-nav { width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); color: white; background: transparent; font-size: 20px; cursor: pointer; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms ease, transform 700ms ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  :root { --shell: min(100% - 40px, 760px); }
  .site-header { grid-template-columns: 1fr auto; }
  .nav { display: none; }
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 60px; }
  .identity-card { min-height: 430px; }
  .thesis, .architecture, .frameworks, .other-projects, .experience, .capabilities { grid-template-columns: 1fr; gap: 30px; }
  .featured-inner { grid-template-columns: 1fr; min-height: 1300px; }
  .featured-copy { padding-top: 40px; }
  .phone-stage { min-height: 620px; width: min(520px, 100%); margin: auto; }
  .project-metrics { grid-column: 1; }
  .section-heading { grid-template-columns: 1fr; gap: 20px; }
  .pipeline { grid-template-columns: repeat(3, 1fr); }
  .pipeline-step:nth-child(3) { border-right: 0; }
  .pipeline-step:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .framework-points, .early-projects { grid-template-columns: 1fr; }
  .morph-visual { grid-template-columns: 1fr; }
  .sample-flow { grid-template-columns: 1fr; }
  .flow-arrow { transform: rotate(90deg); justify-self: center; }
  .capability-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  :root { --shell: calc(100vw - 30px); --radius-lg: 25px; }
  .site-header { height: 72px; }
  .brand-name, .print-button span { display: none; }
  .hero { min-height: 0; padding: 55px 0 70px; }
  .hero h1 { font-size: 48px; }
  .hero-copy { font-size: 16px; }
  .identity-card { padding: 22px; }
  .thesis, .architecture, .frameworks, .other-projects, .experience { padding: 90px 0; }
  .thesis-grid, .design-decisions, .product-grid, .job-projects, .contact-row { grid-template-columns: 1fr; }
  .featured-inner { padding-top: 80px; min-height: 1180px; }
  .featured-copy h2 { font-size: 67px; }
  .project-subtitle { font-size: 22px; }
  .phone-stage { min-height: 530px; }
  .phone-front { width: 245px; height: 515px; left: 4px; }
  .phone-back { width: 200px; height: 430px; right: 0; }
  .project-metrics { grid-template-columns: 1fr 1fr; row-gap: 24px; }
  .project-metrics div:nth-child(2) { border-right: 0; }
  .pipeline { grid-template-columns: 1fr 1fr; }
  .pipeline-step:nth-child(2n) { border-right: 0; }
  .pipeline-step:nth-child(3) { border-right: 1px solid var(--line); }
  .pipeline-step:nth-child(-n+4) { border-bottom: 1px solid var(--line); }
  .framework-card { padding: 28px 22px; }
  .product-card { min-height: 370px; }
  .job-heading { align-items: flex-start; flex-direction: column; }
  .job-heading > strong { white-space: normal; }
  .capabilities { padding: 90px 15px; }
  .capability-grid { grid-template-columns: 1fr; }
  .contact-row a:first-child { border-right: 0; padding-right: 0; }
  .contact-row a:last-child { padding-left: 0; }
  .contact-footer { gap: 15px; align-items: flex-start; flex-direction: column; line-height: 1.6; }
  .gallery-content { grid-template-columns: 1fr; }
  .gallery-nav { position: absolute; z-index: 2; bottom: 10px; }
  .gallery-prev { left: 10px; }
  .gallery-next { right: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  @page { size: A4; margin: 12mm; }
  :root { --shell: 100%; }
  body { background: white; font-size: 10pt; }
  .site-header, .reading-progress, .hero-actions, .project-links, .phone-stage, .gallery-modal { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero { min-height: 0; grid-template-columns: 1.5fr .5fr; gap: 12mm; padding: 0 0 12mm; }
  .hero h1 { font-size: 38pt; margin: 8mm 0 4mm; }
  .hero-copy { font-size: 10pt; line-height: 1.55; }
  .identity-card { min-height: 0; padding: 6mm; box-shadow: none; }
  .monogram { width: 16mm; height: 16mm; border-radius: 5mm; }
  .identity-top p, .identity-year { display: none; }
  .identity-meta { margin-top: 8mm; gap: 3mm; }
  .identity-meta a, .identity-meta div { padding-bottom: 3mm; }
  .thesis, .architecture, .frameworks, .other-projects, .experience { padding: 12mm 0; }
  .thesis h2, .section-heading h2, .capabilities h2, .contact h2 { font-size: 24pt; }
  .featured-project, .capabilities { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .featured-inner { min-height: 0; display: block; padding: 12mm 0; }
  .featured-copy h2 { font-size: 50pt; }
  .project-metrics { margin-top: 8mm; }
  .architecture, .frameworks, .experience, .featured-project, .other-projects { break-before: page; }
  .framework-card, .timeline-item, .product-card, .design-decisions article { break-inside: avoid; }
  .capabilities { padding: 12mm; }
  .capability-grid article { min-height: 42mm; }
  .contact { padding: 12mm 0 0; }
}
