@font-face {
  font-family: "Noto Sans SC";
  src:
    local("Noto Sans SC"),
    url("assets/fonts/NotoSansSC-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/fonts/IBMPlexMono-500.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/fonts/IBMPlexMono-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Syne";
  src: url("assets/fonts/Syne-800.woff2") format("woff2");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

:root {
  --paper: #fffdf5;
  --ink: #0a0a0a;
  --muted: #2d2d2d;
  --line: #000000;
  --white: #ffffff;
  --blue: #74b9ff;
  --blue-soft: #dcecff;
  --coral: #ff6b6b;
  --yellow: #ffd23f;
  --green: #88d498;
  --pink: #f29ac2;
  --lavender: #b8a9fa;
  --gray: #e5e6e8;
  --border: 3px solid var(--line);
  --shadow: 6px 6px 0 var(--ink);
  --shadow-small: 4px 4px 0 var(--ink);
  --radius: 0;
  --max: 1248px;
  --side: clamp(20px, 5vw, 72px);
  --section-gap: 144px;
  --sans: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  --display: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
  --latin-display: "Syne", "Arial Black", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.65;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
body.lightbox-open { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 4px solid var(--blue); outline-offset: 4px; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 16px;
  z-index: 50;
  width: min(calc(100% - 40px), var(--max));
  margin: 48px auto 0;
  transition: transform .2s ease;
}
.site-header.is-scrolled { transform: translateY(-6px); }
.nav-shell {
  height: 62px;
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 5px;
  background: var(--white);
  border: var(--border);
  border-radius: 999px;
  box-shadow: 6px 6px 0 var(--ink);
}
.nav-brand {
  display: inline-grid;
  place-items: center;
  width: 76px;
  height: 46px;
  border: var(--border);
  border-radius: 999px;
  background: var(--blue);
  font: 500 14px/22px var(--sans);
  text-decoration: none;
}
.nav-links {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-left: 130px;
}
.nav-links a {
  padding: 12px 24px;
  border: 2px solid transparent;
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
  text-decoration: none;
}
.nav-links a:hover,
.nav-links a.active { border-color: var(--ink); background: var(--white); }
.nav-toggle {
  display: none;
  margin-left: auto;
  padding: 8px 13px;
  border: 2px solid var(--ink);
  background: var(--white);
  font: 500 14px/22px var(--sans);
}

.section {
  width: min(calc(100% - (var(--side) * 2)), var(--max));
  margin-inline: auto;
}
main section[id],
.contact-group { scroll-margin-top: 120px; }
.section-rule { padding-top: var(--section-gap); }
.eyebrow {
  margin: 0 0 12px;
  color: var(--ink);
  font: 700 14px/18px var(--mono);
  letter-spacing: .3px;
  text-transform: uppercase;
}
.card-kicker {
  margin: 0 0 12px;
  color: var(--ink);
  font: 700 12px/18px var(--mono);
  letter-spacing: .3px;
  text-transform: uppercase;
}
.mini-card-kicker {
  margin: 0 0 12px;
  color: var(--ink);
  font: 700 12px/18px var(--sans);
}
.section-heading,
.case-heading { max-width: 850px; margin-bottom: 48px; }
.section-heading { width: 100%; max-width: none; height: auto; }
.section-heading .eyebrow { margin-bottom: 16px; }
.section-heading h2,
.case-heading h2,
.case-end h2,
.contact-box h2 {
  margin: 0 0 16px;
  font: 900 40px/56px var(--display);
  letter-spacing: -.5px;
}
.section-heading > p:last-child,
.case-heading > p:last-child { max-width: 760px; margin: 0; color: var(--muted); font-size: 16px; line-height: 26px; }
.section-heading h2:last-child { margin-bottom: 0; }

.hero {
  min-height: 620px;
  display: grid;
  grid-template-columns: 700px 480px;
  gap: 68px;
  margin-top: 70px;
  padding-top: 0;
  align-items: start;
}
.hero-copy {
  width: 700px;
  height: 520px;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 50px;
  padding-top: 0;
}
.hero-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  font: 900 52px/64px var(--display);
  letter-spacing: 0;
}
.highlight {
  display: inline-block;
  padding: .02em .16em .07em;
  border: var(--border);
  box-shadow: var(--shadow-small);
  line-height: 1;
}
.hero-title .highlight { line-height: 64px; }
.highlight-coral { background: var(--coral); }
.highlight-blue { background: var(--blue); }
.hero-lead { margin: 28px 0 0; color: var(--muted); font-size: 18px; line-height: 30px; }
.hero-button { margin-top: auto; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 11px 18px;
  border: var(--border);
  box-shadow: var(--shadow-small);
  font-size: 15px;
  font-weight: 700;
  line-height: 22px;
  text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease;
}
.button:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.button:active { transform: translate(3px, 3px); box-shadow: none; }
.button-dark { color: var(--white); background: var(--ink); }
.button-light { color: var(--ink); background: var(--white); }

.portrait-card {
  width: 480px;
  height: 510px;
  min-height: 510px;
  margin: 55px 0 0;
  display: flex;
  flex-direction: column;
  padding: 24px 24px 16px;
  background: var(--white);
  border: var(--border);
  box-shadow: var(--shadow);
}
.portrait-frame {
  aspect-ratio: 1;
  overflow: hidden;
  border: var(--border);
  background: var(--yellow);
}
.portrait-frame img { width: 100%; height: 100%; object-fit: contain; }
.portrait-card figcaption { margin-top: auto; padding-top: 14px; }
.portrait-card figcaption span {
  display: inline-block;
  padding: 7px 12px;
  border: 2px solid var(--ink);
  background: var(--coral);
  font-size: 13px;
  font-weight: 700;
  line-height: 18px;
}

.about {
  display: grid;
  grid-template-columns: 816px 408px;
  gap: 24px;
  min-height: 646px;
  align-items: start;
}
.about .eyebrow { display: none; }
.section-copy h2 {
  margin: 0;
  font: 800 52px/64px var(--latin-display);
  letter-spacing: -1px;
}
.section-copy h2 .highlight { margin-top: 14px; font: 900 44px/56px var(--display); letter-spacing: 0; }
.about-story { max-width: 816px; margin-top: 32px; font-size: 17px; line-height: 28px; }
.about-story p { margin: 0 0 30px; }
.about-story .about-now { margin-top: 38px; margin-bottom: 0; }
.identity-card { width: 408px; height: 502px; margin: 0; display: grid; place-items: center; align-self: start; overflow: hidden; }
.identity-card img { width: 100%; height: 100%; object-fit: contain; }

.statement-box {
  position: relative;
  width: 1180px;
  height: auto;
  min-height: 90px;
  max-width: 100%;
  margin: 0 auto;
  padding: 22px 32px;
  background: var(--yellow);
  border: var(--border);
  box-shadow: var(--shadow);
  text-align: center;
}
.statement-box .mini-label,
.heritage-cover .mini-label {
  position: absolute;
  top: -15px;
  left: -15px;
  width: 128px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: var(--border);
  background: var(--white);
  font: 700 11px/18px var(--mono);
}
.statement-box h2 { margin: 0; font: 900 30px/42px var(--display); }
.statement { min-height: 400px; }
.statement-note { width: 1000px; min-height: 56px; max-width: 1000px; margin: 32px auto 64px; text-align: center; font-size: 17px; font-weight: 700; line-height: 28px; }
.recent-section { min-height: 520px; }
.recent-head { height: 58px; margin-bottom: 34px; }
.recent-head .eyebrow {
  display: inline-block;
  padding: 10px 20px;
  background: var(--coral);
  border: var(--border);
  box-shadow: var(--shadow-small);
  font: 900 26px/36px var(--display);
  letter-spacing: 0;
  text-transform: none;
}
.recent-head h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.recent-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mini-card {
  height: 260px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
  background: var(--white);
  border: var(--border);
  box-shadow: 6px 6px 0 var(--blue);
}
.mini-card.accent-pink { box-shadow: 6px 6px 0 var(--coral); }
.mini-card.accent-green { box-shadow: 6px 6px 0 var(--green); }
.mini-card-icon { display: none; }
.accent-pink .mini-card-icon { background: var(--coral); }
.accent-green .mini-card-icon { background: var(--green); }
.mini-card-kicker { align-self: flex-start; padding: 5px 10px; border: 2px solid var(--ink); background: var(--blue); }
.accent-pink .mini-card-kicker { background: var(--coral); }
.accent-green .mini-card-kicker { background: var(--green); }
.mini-card h4 { margin: 0 0 12px; font-size: 23px; font-weight: 900; line-height: 34px; }
.mini-card-copy { margin: 0; color: var(--muted); font-size: 15px; line-height: 25px; }
.mini-card-link { margin-top: auto; font-size: 14px; font-weight: 700; line-height: 22px; text-underline-offset: 4px; }

.timeline { position: relative; margin: 0; padding: 0; list-style: none; }
.timeline-section { min-height: 1984px; }
.timeline-section .section-heading { height: auto; }
.timeline-section .section-heading { position: relative; isolation: isolate; }
.timeline-section .section-heading h2 { position: relative; display: inline-block; max-width: calc(100% - 20px); z-index: 1; font-size: 44px; line-height: 60px; }
.timeline-section .section-heading h2::before { content: ""; position: absolute; z-index: -1; left: -10px; top: -6px; width: calc(100% + 20px); height: calc(100% + 12px); background: var(--coral); border: var(--border); box-shadow: 6px 6px 0 var(--ink); }
.timeline-section .section-heading > p:last-child { font-size: 17px; line-height: 28px; }
.timeline-section .timeline { min-height: 1654px; }
.timeline::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; background: var(--ink); transform: translateX(-50%); }
.timeline-item { position: relative; width: 50%; min-height: 210px; display: flex; align-items: flex-start; }
.timeline-item:last-child { min-height: 184px; }
.timeline-item::after { content: ""; position: absolute; top: 82px; width: 20px; height: 20px; border: var(--border); border-radius: 50%; background: var(--yellow); }
.timeline-item.left { padding-right: 72px; justify-content: flex-end; }
.timeline-item.right { margin-left: 50%; padding-left: 72px; }
.timeline-item.left::after { right: -10px; }
.timeline-item.right::after { left: -10px; background: var(--green); }
.timeline-item article { position: relative; width: 100%; height: 184px; padding: 20px 24px; background: var(--white); border: var(--border); box-shadow: 5px 5px 0 var(--ink); }
.timeline-item article::after { content: ""; position: absolute; top: 88px; width: 62px; height: 3px; background: var(--ink); }
.timeline-item.left article::after { right: -65px; }
.timeline-item.right article::after { left: -65px; }
.timeline-meta { height: 28px; display: flex; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.timeline-type { display: inline-flex; align-items: center; justify-content: center; height: 28px; padding: 5px 10px; background: var(--blue); border: 2px solid var(--ink); font: 700 12px/18px var(--sans); }
.timeline-item time { display: inline-block; margin: 0; padding: 0; border: 0; background: transparent; font: 700 12px/28px var(--mono); }
.timeline-item:nth-child(4n+2) .timeline-type { background: var(--green); }
.timeline-item:nth-child(4n+3) .timeline-type { background: var(--yellow); }
.timeline-item:nth-child(4n) .timeline-type { background: var(--coral); }
.timeline-item:nth-child(5) .timeline-type { background: var(--lavender); }
.timeline-item h3 { margin: 0 0 8px; font-size: 22px; font-weight: 900; line-height: 32px; }
.timeline-item p { margin: 0; color: var(--muted); font-size: 15px; line-height: 24px; }
.timeline-item.has-recommendation { min-height: 258px; }
.timeline-item.has-recommendation article { height: 232px; }
.timeline-letter-button { margin-top: 14px; padding: 7px 12px; color: var(--ink); background: var(--yellow); border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); font: 800 13px/18px var(--sans); cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.timeline-letter-button:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.timeline-letter-button:active { transform: translate(3px, 3px); box-shadow: none; }
.timeline-letter-button:focus-visible { outline: 4px solid var(--blue); outline-offset: 3px; }

.products { min-height: 940px; }
.product-grid { height: 620px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.product-card {
  height: 620px;
  min-height: 620px;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: var(--border);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.product-card:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
.product-visual { height: 352.5px; min-height: 352.5px; margin: 24px 24px 0; border: var(--border); overflow: hidden; background: var(--gray); }
.product-visual-image { display: grid; place-items: center; padding: 20px; background: #f6f8fb; }
.product-visual-image img { width: 100%; height: 100%; object-fit: contain; }
.heritage-preview { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 28px; background: var(--yellow); }
.heritage-node { display: grid; place-items: center; min-height: 96px; padding: 14px; background: var(--white); border: var(--border); font-weight: 900; text-align: center; }
.heritage-preview > span { font-size: 28px; font-weight: 900; }
.product-card-body { flex: 1; display: flex; flex-direction: column; padding: 24px; }
.product-card .card-kicker { margin-bottom: 24px; }
.product-card h3 { margin: 0 0 24px; font-size: 28px; font-weight: 900; line-height: 40px; }
.product-card-body > p:not(.card-kicker) { margin: 0; color: var(--muted); font-size: 16px; line-height: 26px; }
.text-link { align-self: flex-start; margin-top: auto; padding-top: 0; font-size: 15px; font-weight: 700; line-height: 22px; text-align: left; text-decoration: underline; text-underline-offset: 5px; }

.video-banner {
  position: relative;
  aspect-ratio: 16 / 9;
  display: block;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
  border: var(--border);
  box-shadow: var(--shadow);
  text-decoration: none;
}
.thesis { min-height: 1026px; }
.thesis .video-banner { height: 702px; aspect-ratio: auto; }
.video-cover { width: 100%; height: 100%; object-fit: contain; background: var(--ink); transition: transform .35s ease, filter .35s ease; }
.video-play { position: absolute; left: 50%; top: 50%; z-index: 2; width: 86px; height: 86px; display: grid; place-items: center; padding-left: 5px; transform: translate(-50%, -50%); color: var(--ink); background: var(--white); border: var(--border); border-radius: 50%; box-shadow: var(--shadow-small); font-size: 30px; transition: transform .15s ease, box-shadow .15s ease; }
.video-link-label { position: absolute; left: 24px; bottom: 24px; z-index: 2; padding: 8px 12px; color: var(--ink); background: var(--white); border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); font: 700 13px/18px var(--mono); }
.video-banner:hover .video-cover { transform: scale(1.015); filter: brightness(.92); }
.video-banner:hover .video-play { transform: translate(calc(-50% - 2px), calc(-50% - 2px)); box-shadow: 6px 6px 0 var(--ink); }

.content { min-height: auto; }
.social-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; row-gap: 48px; }
.social-more { margin-top: 48px; }
.social-more[hidden],
.social-toggle[hidden] { display: none; }
.social-toggle { width: 100%; min-height: 72px; margin-top: 48px; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; color: var(--ink); background: var(--yellow); border: var(--border); box-shadow: var(--shadow-small); font: 900 18px/26px var(--display); cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.social-toggle:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.social-toggle:active { transform: translate(3px, 3px); box-shadow: none; }
.social-toggle-icon { font: 700 24px/1 var(--mono); transition: transform .2s ease; }
.social-toggle[aria-expanded="true"] .social-toggle-icon { transform: rotate(180deg); }
.social-card { position: relative; height: 676px; min-height: 676px; margin-bottom: 29px; padding: 17px; display: flex; flex-direction: column; overflow: visible; background: var(--white); border: var(--border); box-shadow: 6px 6px 0 var(--ink); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.social-card:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
.social-card:active { transform: translate(3px, 3px); box-shadow: none; }
.social-card img { width: 100%; height: 450px; object-fit: cover; border: var(--border); background: var(--gray); transition: transform .5s ease; }
.social-card:nth-child(3n+1) img { object-position: center; }
.social-card > div { flex: 1; display: flex; flex-direction: column; padding: 0 0 36px; margin-top: 20px; }
.social-card .card-kicker { margin-bottom: 20px; }
.social-card h3 { margin: 0; font-size: 24px; font-weight: 900; line-height: 34px; }
.social-meta { margin: auto 0 0; color: var(--muted); font-size: 14px; font-weight: 400; line-height: 20px; }
.social-card span { position: absolute; right: 20px; bottom: 17px; font-size: 13px; font-weight: 700; line-height: 18px; text-decoration: underline; text-underline-offset: 4px; }
.social-card:hover img { transform: scale(1.035); filter: contrast(1.04); }

.other-works { min-height: 650px; }
.practice-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.practice-card { min-width: 0; min-height: 416px; padding: 0; display: flex; flex-direction: column; overflow: hidden; color: var(--ink); background: var(--white); border: var(--border); box-shadow: 5px 5px 0 var(--ink); text-align: left; text-decoration: none; font: inherit; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.practice-card:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.practice-card:active { transform: translate(3px, 3px); box-shadow: none; }
.practice-card:focus-visible { outline: 4px solid var(--blue); outline-offset: 5px; }
.practice-card-media { flex: 0 0 auto; display: block; aspect-ratio: 1 / 1; overflow: hidden; border-bottom: var(--border); background: var(--ink); }
.practice-card-media img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .35s ease, filter .35s ease; }
.practice-card:hover .practice-card-media img { transform: scale(1.035); filter: contrast(1.04); }
.practice-card-body { flex: 1; min-height: 170px; padding: 18px 16px 16px; display: flex; flex-direction: column; }
.practice-card-body small { color: var(--blue-dark); font: 700 10px/15px var(--mono); letter-spacing: .5px; }
.practice-card-body strong { margin-top: 12px; font: 900 20px/28px var(--display); }
.practice-card-body em { margin-top: auto; padding-top: 20px; align-self: flex-end; font: normal 700 12px/18px var(--mono); text-decoration: underline; text-underline-offset: 4px; }

.practice-lightbox { width: min(94vw, 1500px); height: min(92vh, 980px); max-width: none; max-height: none; padding: 0; overflow: visible; color: var(--ink); background: transparent; border: 0; }
.practice-lightbox::backdrop { background: rgba(0, 0, 0, .84); }
.practice-lightbox-shell { position: relative; height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr); background: var(--ink); border: var(--border); box-shadow: 10px 10px 0 var(--blue); }
.practice-lightbox-header { min-height: 82px; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 24px; background: var(--yellow); border-bottom: var(--border); }
.practice-lightbox-header p { margin: 0 0 3px; font: 700 10px/14px var(--mono); letter-spacing: .6px; }
.practice-lightbox-header h2 { margin: 0; font: 900 24px/32px var(--display); }
.practice-lightbox-tools { display: flex; align-items: center; gap: 12px; }
.practice-lightbox-count { min-width: 64px; font: 700 12px/18px var(--mono); text-align: center; }
.practice-lightbox-close { width: 46px; height: 46px; display: grid; place-items: center; color: var(--white); background: var(--ink); border: 2px solid var(--ink); font: 700 28px/1 var(--display); cursor: pointer; }
.practice-lightbox-stage { min-height: 0; overflow: auto; display: grid; place-items: center; background: #070707; }
.practice-lightbox-zoom { width: 100%; min-height: 100%; padding: 24px 76px; display: grid; place-items: center; background: transparent; border: 0; cursor: zoom-in; }
.practice-lightbox-image { max-width: 100%; max-height: calc(92vh - 132px); display: block; object-fit: contain; }
.practice-lightbox-zoom[aria-pressed="true"] { width: max-content; min-width: 170%; height: max-content; min-height: 100%; place-items: start center; cursor: zoom-out; }
.practice-lightbox-zoom[aria-pressed="true"] .practice-lightbox-image { width: 100%; max-width: none; max-height: none; }
.practice-lightbox-nav { position: absolute; top: calc(50% + 28px); z-index: 2; width: 54px; height: 54px; display: grid; place-items: center; color: var(--ink); background: var(--white); border: var(--border); box-shadow: 4px 4px 0 var(--blue); font: 900 24px/1 var(--display); cursor: pointer; }
.practice-lightbox-nav:disabled { opacity: .35; cursor: default; }
.practice-lightbox-prev { left: 14px; }
.practice-lightbox-next { right: 14px; }
.practice-lightbox-close:focus-visible,
.practice-lightbox-nav:focus-visible,
.practice-lightbox-zoom:focus-visible { outline: 4px solid var(--blue); outline-offset: -4px; }

.recommendation-dialog { width: min(94vw, 1100px); height: min(94vh, 1040px); max-width: none; max-height: none; padding: 0; overflow: visible; color: var(--ink); background: transparent; border: 0; }
.recommendation-dialog::backdrop { background: rgba(0, 0, 0, .84); }
.recommendation-dialog-shell { height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr); background: var(--ink); border: var(--border); box-shadow: 10px 10px 0 var(--blue); }
.recommendation-dialog-header { min-height: 82px; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 24px; background: var(--yellow); border-bottom: var(--border); }
.recommendation-dialog-header p { margin: 0 0 3px; font: 700 10px/14px var(--mono); letter-spacing: .6px; }
.recommendation-dialog-header h2 { margin: 0; font: 900 24px/32px var(--display); }
.recommendation-dialog-tools { display: flex; align-items: center; gap: 14px; }
.recommendation-dialog-tools a { color: var(--ink); font: 800 12px/18px var(--sans); text-underline-offset: 4px; }
.recommendation-dialog-close { width: 46px; height: 46px; display: grid; place-items: center; color: var(--white); background: var(--ink); border: 2px solid var(--ink); font: 700 28px/1 var(--display); cursor: pointer; }
.recommendation-dialog-stage { min-height: 0; overflow: auto; padding: 24px; display: grid; place-items: start center; background: #070707; }
.recommendation-dialog-stage img { width: min(100%, 760px); height: auto; display: block; background: var(--white); }
.recommendation-dialog-close:focus-visible,
.recommendation-dialog-tools a:focus-visible { outline: 4px solid var(--blue); outline-offset: 3px; }

.contact { min-height: 418px; padding-top: 100px; padding-bottom: 48px; }
.contact-box { min-height: 246px; padding: 38px 48px; background: var(--green); border: var(--border); box-shadow: 8px 8px 0 var(--ink); }
.contact-box .eyebrow { display: none; }
.contact-box h2 { margin: 0 0 8px; font-size: 38px; line-height: 52px; letter-spacing: -.5px; }
.contact-box p:not(.eyebrow) { max-width: 1120px; margin: 0 0 14px; font-size: 16px; line-height: 26px; }
.contact-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.contact-link { min-width: 0; min-height: 48px; display: flex; align-items: center; gap: 10px; padding: 6px 10px; color: var(--ink); background: var(--white); border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.contact-link:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.contact-link:active { transform: translate(3px, 3px); box-shadow: none; }
.contact-link > span:last-child { min-width: 0; display: flex; flex-direction: column; }
.contact-link strong { font-size: 12px; font-weight: 900; line-height: 16px; }
.contact-link small { overflow: hidden; color: var(--muted); font: 500 9px/13px var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.contact-icon { flex: 0 0 28px; width: 28px; height: 28px; display: grid; place-items: center; border: 2px solid var(--ink); background: var(--yellow); font: 700 10px/1 var(--mono); }
.contact-link-xhs .contact-icon { background: var(--coral); }
.contact-link-email .contact-icon { background: var(--blue); }
.contact-link-github .contact-icon { color: var(--white); background: var(--ink); }
.site-footer { min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px max(var(--side), calc((100vw - var(--max)) / 2)); color: var(--white); background: var(--ink); }
.site-footer p { margin: 0; font-size: 14px; line-height: 20px; }
.site-footer a { color: var(--white); font-size: 14px; font-weight: 700; line-height: 20px; }

/* Project pages */
.case-page { background: var(--paper); }
.case-header { width: min(calc(100% - (var(--side) * 2)), var(--max)); margin: 40px auto 0; }
.case-nav { min-height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 8px 14px; background: var(--white); border: var(--border); box-shadow: var(--shadow-small); }
.case-nav a { font-size: 13px; font-weight: 900; }
.case-hero { display: grid; grid-template-columns: minmax(0, .82fr) minmax(520px, 1.18fr); gap: 62px; align-items: center; padding-top: 120px; }
.case-hero h1 { margin: 0 0 28px; font: 900 clamp(50px, 6vw, 82px)/1.02 var(--display); letter-spacing: -.045em; }
.case-lead { margin: 0; font-size: clamp(19px, 2.1vw, 27px); line-height: 1.55; }
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.tag-row span { padding: 7px 11px; border: 2px solid var(--ink); background: var(--blue); font-size: 13px; font-weight: 900; }
.tag-row span:nth-child(2) { background: var(--yellow); }
.tag-row span:nth-child(3) { background: var(--green); }
.case-cover { margin: 0; padding: 22px; background: var(--white); border: var(--border); box-shadow: var(--shadow); }
.case-cover img { width: 100%; height: auto; border: 2px solid var(--ink); }
.case-cover figcaption { margin-top: 14px; font-size: 13px; font-weight: 900; }
.case-section { position: relative; }
.case-grid { display: grid; gap: 24px; }
.case-grid.three { grid-template-columns: repeat(3, 1fr); }
.case-grid.two { grid-template-columns: repeat(2, 1fr); }
.case-card { min-height: 250px; padding: 28px; background: var(--white); border: var(--border); box-shadow: var(--shadow-small); }
.case-card h3 { margin: 0 0 14px; font-size: 27px; line-height: 1.2; }
.case-card p:last-child { margin: 0; color: var(--muted); }
.case-card.success { background: #b7e6c3; }
.case-card.caution { background: #ffe07c; }
.priority-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.priority-item { padding: 28px; border: var(--border); box-shadow: var(--shadow-small); background: var(--yellow); }
.priority-item:nth-child(2) { background: var(--green); }
.priority-item:nth-child(3) { background: var(--blue); }
.priority-item > span { display: inline-block; margin-bottom: 32px; font-size: 12px; font-weight: 900; text-transform: uppercase; }
.priority-item h3 { margin: 0 0 12px; font-size: 26px; }
.priority-item p { margin: 0; }
.module-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 16px; align-items: stretch; }
.module-flow article { padding: 28px; border: var(--border); box-shadow: var(--shadow-small); background: var(--coral); }
.module-flow article:nth-of-type(2) { background: var(--blue); }
.module-flow article:nth-of-type(3) { background: var(--green); }
.module-flow b { align-self: center; font-size: 32px; }
.module-flow article > span { font-size: 13px; font-weight: 900; }
.module-flow h3 { margin: 28px 0 4px; font-size: 29px; }
.module-flow strong { font-size: 17px; }
.module-flow p { margin: 16px 0 0; }
.iteration-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: item; }
.iteration-step { padding: 28px; background: var(--white); border: var(--border); box-shadow: var(--shadow-small); }
.iteration-step > span { display: inline-block; padding: 5px 8px; border: 2px solid var(--ink); background: var(--blue); font-size: 12px; font-weight: 900; }
.iteration-step:nth-child(2) > span { background: var(--yellow); }
.iteration-step:nth-child(3) > span { background: var(--green); }
.iteration-step h3 { margin: 32px 0 12px; font-size: 25px; line-height: 1.3; }
.iteration-step p { margin: 0; color: var(--muted); }
.evidence-wide,
.evidence-pair figure { margin: 0; padding: 14px; background: var(--white); border: var(--border); box-shadow: var(--shadow-small); }
.evidence-wide img,
.evidence-pair img { width: 100%; background: #f7f8fa; object-fit: contain; }
.evidence-wide figcaption,
.evidence-pair figcaption { padding: 12px 4px 2px; font-weight: 900; }
.evidence-pair { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin: 28px 0; }
.note-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.note-card { display: flex; flex-direction: column; background: var(--white); border: var(--border); box-shadow: var(--shadow-small); }
.note-card img { width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; border-bottom: var(--border); }
.note-card > div { flex: 1; padding: 20px; }
.note-card span { font-size: 12px; font-weight: 900; }
.note-card h3 { margin: 22px 0 0; font-size: 23px; line-height: 1.3; }
.inline-action { margin-top: 34px; }
.case-end { padding-bottom: 110px; }

/* Heritage-specific diagrams */
.heritage-cover { position: relative; min-height: 480px; display: flex; flex-direction: column; justify-content: center; background: var(--yellow); }
.heritage-cover > p { margin: 32px 0 0; text-align: center; font-size: 13px; font-weight: 900; }
.archive-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 12px; align-items: center; }
.archive-flow > div { min-height: 130px; display: flex; flex-direction: column; justify-content: center; padding: 18px; background: var(--white); border: var(--border); text-align: center; }
.archive-flow b { font-size: 24px; }
.archive-flow small { margin-top: 8px; }
.archive-flow i { font-style: normal; font-size: 28px; font-weight: 900; }
.capability-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.capability-grid article { min-height: 220px; padding: 26px; background: var(--white); border: var(--border); box-shadow: var(--shadow-small); }
.capability-grid article:nth-child(3n+1) { background: var(--green); }
.capability-grid article:nth-child(3n) { background: var(--yellow); }
.capability-grid article:nth-child(5) { background: var(--coral); }
.capability-grid span { font-size: 12px; font-weight: 900; }
.capability-grid h3 { margin: 52px 0 10px; font-size: 25px; }
.capability-grid p { margin: 0; }
.mvp-flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin: 0; padding: 0; list-style: none; }
.mvp-flow li { position: relative; min-height: 270px; padding: 24px 20px; border: var(--border); background: var(--white); }
.mvp-flow li + li { border-left: 0; }
.mvp-flow li:nth-child(2) { background: var(--blue); }
.mvp-flow li:nth-child(3) { background: var(--yellow); }
.mvp-flow li:nth-child(4) { background: var(--coral); }
.mvp-flow li:nth-child(5) { background: var(--green); }
.mvp-flow span { font-size: 12px; font-weight: 900; }
.mvp-flow h3 { margin: 40px 0 10px; font-size: 22px; }
.mvp-flow p { margin: 0; font-size: 14px; }
.responsibility-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.responsibility-grid article { min-height: 280px; padding: 28px; border: var(--border); box-shadow: var(--shadow-small); background: var(--blue); }
.responsibility-grid article:nth-child(2) { background: var(--yellow); }
.responsibility-grid article:nth-child(3) { background: var(--green); }
.responsibility-grid h3 { margin: 0 0 20px; font-size: 28px; }
.responsibility-grid ul { margin: 0; padding-left: 20px; }
.placeholder-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.placeholder-gallery article { min-height: 390px; padding: 28px; background: var(--white); border: var(--border); box-shadow: var(--shadow-small); }
.placeholder-gallery article.wide { grid-column: 1 / -1; min-height: 430px; background: var(--blue); }
.placeholder-gallery article.wide:last-child { background: var(--yellow); }
.placeholder-gallery article > span { font-size: 12px; font-weight: 900; }
.placeholder-gallery h3 { margin: 12px 0 42px; font-size: 30px; }
.placeholder-diagram { display: grid; grid-template-columns: repeat(5, 1fr); gap: 30px; align-items: center; }
.placeholder-diagram i { position: relative; height: 90px; border: var(--border); background: var(--white); }
.placeholder-diagram i:not(:last-child)::after { content: "→"; position: absolute; right: -28px; top: 26px; font-size: 24px; font-style: normal; font-weight: 900; }
.object-map { position: relative; min-height: 210px; }
.object-map i { position: absolute; width: 90px; height: 62px; border: var(--border); background: var(--yellow); }
.object-map i:nth-child(1) { left: 50%; top: 0; transform: translateX(-50%); }
.object-map i:nth-child(2) { left: 10%; bottom: 0; background: var(--blue); }
.object-map i:nth-child(3) { left: 50%; bottom: 0; transform: translateX(-50%); background: var(--green); }
.object-map i:nth-child(4) { right: 10%; bottom: 0; background: var(--pink); }
.review-list { display: grid; gap: 14px; }
.review-list i { height: 44px; border: var(--border); background: var(--green); }
.archive-ui { display: grid; grid-template-columns: 1fr 2fr; grid-template-rows: repeat(2, 100px); gap: 16px; }
.archive-ui i { border: var(--border); background: var(--white); }
.archive-ui i:first-child { grid-row: 1 / -1; }

.reveal { opacity: 1; transform: none; }
.js .site-header { opacity: 0; transform: translateY(-18px); transition: opacity .42s ease, transform .42s ease; }
.js body.page-ready .site-header { opacity: 1; transform: translateY(0); }
.js body.page-ready .site-header.is-scrolled { transform: translateY(-6px); }
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .55s ease calc(var(--reveal-order, 0) * 45ms), transform .55s ease calc(var(--reveal-order, 0) * 45ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1400px) {
  :root { --section-gap: 110px; }
  .site-header { margin-top: 22px; }
  .nav-links { margin-left: 20px; }
  .section-heading { height: auto; }
  .hero { grid-template-columns: 1.25fr .75fr; gap: 44px; margin-top: 48px; }
  .hero-copy { width: auto; }
  .hero-title { font-size: clamp(42px, 6vw, 62px); }
  .portrait-card { width: 100%; height: auto; min-height: 440px; }
  .about { grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: 32px; min-height: auto; }
  .identity-card { width: min(100%, 408px); height: auto; }
  .statement-box,
  .statement-note { width: 100%; max-width: 100%; }
  .statement,
  .recent-section,
  .timeline-section,
  .products,
  .thesis,
  .content,
  .other-works,
  .contact { min-height: auto; }
  .timeline-section .section-heading,
  .timeline-section .timeline { height: auto; min-height: auto; }
  .timeline::before { left: 12px; }
  .timeline-item,
  .timeline-item.left,
  .timeline-item.right { width: 100%; min-height: 0; margin: 0 0 28px; padding: 0 0 0 48px; justify-content: stretch; }
  .timeline-item.left::after,
  .timeline-item.right::after { left: 2px; right: auto; top: 34px; }
  .timeline-item article { height: auto; min-height: 184px; }
  .timeline-item article::after { display: none; }
  .product-grid,
  .other-grid { height: auto; }
  .product-card { height: auto; }
  .thesis .video-banner { height: auto; aspect-ratio: 16 / 9; }
  .social-card { height: auto; }
  .contact { padding-top: 88px; padding-bottom: 60px; }
  .contact-box { height: auto; }
  .contact-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-hero { grid-template-columns: 1fr; }
  .case-cover { max-width: 820px; }
  .product-card { min-height: 620px; }
  .social-card { min-height: 540px; }
}

@media (max-width: 1020px) {
  .practice-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  :root { --side: 20px; --section-gap: 86px; }
  .site-header { width: calc(100% - 28px); top: 10px; }
  .nav-shell { border-radius: 24px; }
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 70px; left: 0; right: 0; margin-left: 0; padding: 12px; background: var(--white); border: var(--border); box-shadow: var(--shadow-small); }
  .nav-links.open { display: grid; grid-template-columns: repeat(2, 1fr); }
  .nav-links a { text-align: center; }
  .hero { grid-template-columns: 1fr; padding-top: 60px; }
  .hero-copy { min-height: 520px; }
  .portrait-card { width: min(100%, 520px); min-height: auto; margin-top: 0; }
  .about { grid-template-columns: minmax(0, 1fr); }
  .section-copy { min-width: 0; }
  .about-story { margin-top: 32px; }
  .identity-card { width: min(100%, 408px); }
  .recent-grid,
  .other-grid,
  .social-grid,
  .case-grid.three,
  .priority-list,
  .iteration-grid,
  .note-grid,
  .capability-grid,
  .responsibility-grid { grid-template-columns: 1fr 1fr; }
  .practice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .practice-lightbox { width: calc(100vw - 28px); height: calc(100vh - 28px); }
  .practice-lightbox-header { min-height: 74px; }
  .practice-lightbox-header h2 { font-size: 20px; line-height: 28px; }
  .practice-lightbox-zoom { padding: 18px 58px; }
  .recommendation-dialog { width: calc(100vw - 28px); height: calc(100vh - 28px); }
  .mini-card:last-child,
  .other-card:last-child,
  .priority-item:last-child,
  .iteration-step:last-child,
  .responsibility-grid article:last-child { grid-column: 1 / -1; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card { min-height: 620px; }
  .timeline-section .section-heading h2 { font-size: 40px; line-height: 56px; }
  .timeline-section .section-heading h2::before { width: calc(100% + 20px); height: calc(100% + 12px); }
  .module-flow { grid-template-columns: 1fr; }
  .module-flow > b { transform: rotate(90deg); justify-self: center; }
  .mvp-flow { grid-template-columns: 1fr; gap: 16px; }
  .mvp-flow li + li { border-left: var(--border); }
  .evidence-pair { grid-template-columns: 1fr; }
  .case-grid.two { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .hero { gap: 38px; }
  .hero-copy { min-height: 460px; }
  .hero-title { font-size: clamp(39px, 12vw, 52px); }
  .hero-lead { font-size: 16px; }
  .portrait-card { padding: 14px; }
  .section-copy h2 { font-size: clamp(40px, 11vw, 48px); line-height: 1.2; }
  .section-copy h2 .highlight { font-size: clamp(38px, 10.5vw, 44px); line-height: 1.25; }
  .about-story { margin-top: 32px; }
  .statement-box { text-align: left; }
  .statement-note { text-align: left; }
  .mini-card { height: auto; min-height: 260px; }
  .recent-grid,
  .other-grid,
  .social-grid,
  .case-grid.three,
  .priority-list,
  .iteration-grid,
  .note-grid,
  .capability-grid,
  .responsibility-grid { grid-template-columns: 1fr; }
  .practice-grid { grid-template-columns: 1fr; }
  .practice-card { height: 460px; min-height: 460px; }
  .practice-card-body { min-height: 154px; }
  .practice-lightbox-header { padding: 10px 12px; }
  .practice-lightbox-tools { gap: 6px; }
  .practice-lightbox-count { min-width: 48px; }
  .practice-lightbox-close { width: 40px; height: 40px; }
  .practice-lightbox-zoom { padding: 14px 46px; }
  .practice-lightbox-nav { top: auto; bottom: 14px; width: 44px; height: 44px; }
  .timeline-item.has-recommendation article { height: auto; min-height: 260px; }
  .recommendation-dialog-header { padding: 10px 12px; gap: 12px; }
  .recommendation-dialog-header h2 { font-size: 18px; line-height: 26px; }
  .recommendation-dialog-tools { gap: 8px; }
  .recommendation-dialog-tools a { font-size: 11px; line-height: 16px; }
  .recommendation-dialog-close { width: 40px; height: 40px; }
  .recommendation-dialog-stage { padding: 12px; }
  .social-more { margin-top: 32px; }
  .social-toggle { min-height: 64px; margin-top: 32px; padding: 0 18px; }
  .mini-card:last-child,
  .other-card:last-child,
  .priority-item:last-child,
  .iteration-step:last-child,
  .responsibility-grid article:last-child { grid-column: auto; }
  .product-card { min-height: 590px; }
  .product-visual { height: auto; min-height: 260px; margin: 14px 14px 0; }
  .heritage-preview { flex-direction: column; }
  .heritage-preview > span { transform: rotate(90deg); }
  .video-play { width: 58px; height: 58px; font-size: 21px; }
  .video-link-label { left: 12px; bottom: 12px; padding: 6px 8px; font-size: 10px; line-height: 14px; }
  .social-card { min-height: 620px; padding: 14px; }
  .social-card img { height: auto; aspect-ratio: 4 / 5; }
  .social-card span { right: 14px; bottom: 14px; }
  .case-header { width: calc(100% - 28px); margin-top: 18px; }
  .case-nav { align-items: flex-start; flex-direction: column; }
  .case-hero { padding-top: 70px; gap: 38px; }
  .case-hero h1 { font-size: 48px; }
  .case-cover { padding: 12px; }
  .heritage-cover { min-height: 460px; }
  .archive-flow { grid-template-columns: 1fr; }
  .archive-flow i { transform: rotate(90deg); justify-self: center; }
  .placeholder-gallery { grid-template-columns: 1fr; }
  .placeholder-gallery article.wide { grid-column: auto; }
  .placeholder-diagram { grid-template-columns: 1fr; gap: 22px; }
  .placeholder-diagram i:not(:last-child)::after { content: "↓"; right: 50%; top: 84px; transform: translateX(50%); }
  .contact-box { padding: 28px 20px; }
  .contact-actions { grid-template-columns: 1fr; }
  .site-footer { align-items: flex-start; flex-direction: column; }
}

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