@font-face {
  font-family: Kanit;
  src: url("assets/kanit-black-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --paper: #0a0a0a;
  --white: #15171a;
  --ink: #eef2f5;
  --body: #d7e2ea;
  --muted: #a9b1ba;
  --border: #373b42;
  --accent: #b5c8d9;
  --accent-dark: #e3edf4;
  --accent-tint: #21262e;
  --shell: 1680px;
  --gutter: clamp(18px, 3.6vw, 64px);
  --nav-height: clamp(68px, 7vw, 106px);
  --sans: Inter, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --display: Kanit, "Arial Black", sans-serif;
  --title-gradient: linear-gradient(180deg, #798592 18%, #dce9f0 83%);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--nav-height) + 18px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.75 var(--sans);
  -webkit-font-smoothing: antialiased;
}
::selection { background: #dce9f0; color: var(--paper); }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.25; }
p, li, dd { overflow-wrap: anywhere; }
ul, ol { margin: 0; }
button { font: inherit; }
.icon-library { position: absolute; overflow: hidden; pointer-events: none; }
.icon { width: 1.15em; height: 1.15em; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.shell { width: min(var(--shell), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.skip {
  position: fixed;
  z-index: 20;
  top: 8px;
  left: 12px;
  padding: 8px 14px;
  border-radius: 7px;
  background: var(--accent-dark);
  color: var(--paper);
  transform: translateY(-200%);
}
.skip:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  z-index: 5;
  top: 0;
  background: var(--paper);
}
.nav { display: flex; align-items: center; justify-content: space-between; min-height: var(--nav-height); gap: 18px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; flex-shrink: 0; }
.brand strong { font-size: clamp(19px, 1.85vw, 28px); letter-spacing: .035em; }
.nav-links { display: flex; align-items: center; gap: clamp(12px, 2.8vw, 46px); }
.nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  color: var(--ink);
  font-size: clamp(14px, 1.42vw, 22px);
  font-weight: 700;
  white-space: nowrap;
  transition: opacity .2s;
}
.nav-links a:hover, .brand:hover { opacity: .72; }
.nav-links a[aria-current="true"] { text-decoration: underline; text-underline-offset: 6px; }
.site-footer a:hover { color: var(--accent); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--accent);
  font: 700 12px/1.5 var(--mono);
  letter-spacing: .12em;
}
.display-type {
  color: #dce9f0;
  background: var(--title-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: -.045em;
  line-height: .9;
}
.hero {
  position: relative;
  isolation: isolate;
  container-type: inline-size;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto 1fr;
  padding-top: 20px;
}
.hero-title-frame { overflow: clip; margin-top: 24px; }
.hero h1 {
  width: max-content;
  font-family: var(--sans);
  font-size: clamp(88px, 18cqw, 280px);
  line-height: 1.15;
  white-space: nowrap;
  transform-origin: left center;
}
.hero-portrait {
  position: absolute;
  z-index: 1;
  left: 80%;
  bottom: clamp(70px, 8vw, 130px);
  width: min(36cqw, 580px);
  translate: -50% 0;
  text-align: center;
}
.hero-portrait img {
  width: 100%;
  transform: translate3d(var(--portrait-x, 0px), var(--portrait-y, 0px), 0);
  transition: transform .6s ease-in-out;
}
.hero-portrait[data-magnet-active] img { transition: transform .3s ease-out; }
.hero-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  align-self: end;
  padding-block: 26px clamp(40px, 5vw, 80px);
}
.hero-copy { max-width: 58%; color: var(--body); font-size: clamp(16px, 1.3vw, 20px); line-height: 1.75; }
.hero-role { color: var(--accent); font-size: clamp(14px, 1.4vw, 21px); font-weight: 600; line-height: 1.5; margin-bottom: 18px; }
.hero-headline { color: var(--ink); font-size: clamp(26px, 2.8vw, 44px); line-height: 1.45; letter-spacing: -.035em; }
.hero-intro { margin-top: 22px; }
.hero-intro p + p { margin-top: 12px; }
.hero-actions { gap: 14px; }
.hero-cta.button {
  pointer-events: auto;
  min-width: clamp(120px, 10.8vw, 174px);
  margin-bottom: 9px;
  padding: 6px 16px;
  border: 1px solid var(--ink);
  border-radius: 0;
  font-size: clamp(14px, 1.2vw, 18px);
  font-weight: 550;
  white-space: nowrap;
}
.hero-cta:hover { background: var(--ink); color: var(--paper); }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 46px;
  padding: 9px 17px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  transition: background .18s, border-color .18s, color .18s;
}
.button-primary { background: var(--accent); color: var(--paper); }
.button-primary:hover { background: var(--accent-dark); }
.button-quiet { background: var(--white); border-color: var(--border); color: var(--ink); }
.button-quiet:hover { border-color: var(--accent); color: var(--accent); }
.site-section { padding: clamp(55px, 8vw, 124px) 0; border-top: 1px solid var(--border); }
.section-heading { margin-bottom: clamp(18px, 2.25vw, 32px); }
.section-display { font-size: clamp(46px, 10.7vw, 168px); }
.section-heading h2 { margin-top: 8px; font-size: clamp(24px, 2.8vw, 42px); letter-spacing: -.035em; }
.site-section.strengths { padding-block: clamp(25px, 3.6vw, 56px); }
.strengths-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 clamp(16px, 3vw, 42px);
  padding: 0;
  list-style: none;
}
.strengths-list li { padding-top: 14px; border-top: 1px solid var(--border); }
.strengths-list h3 { font-size: clamp(17px, 1.6vw, 23px); }
.strengths-list p { margin-top: 6px; color: var(--body); font-size: 15px; }
.experience { padding-block: clamp(30px, 4.3vw, 68px); }
#internship { padding-top: clamp(18px, 2.8vw, 44px); }
.project-card + .project-card { margin-top: clamp(14px, 2vw, 28px); }

.project-card-link {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  align-items: center;
  padding: clamp(14px, 2vw, 29px);
  gap: clamp(18px, 3vw, 46px);
  border: 1px solid #69737d;
  border-radius: clamp(16px, 2vw, 30px);
  background: var(--white);
  overflow: hidden;
  transition: border-color .24s ease, transform .24s ease;
}
.project-card-link:focus-visible { outline-offset: 3px; }
.project-card-copy { min-width: 0; padding: 10px 8px; }
.project-role { color: var(--muted); font-size: 14px; }
.project-card h3 { margin-top: 7px; font-size: clamp(22px, 2.65vw, 40px); letter-spacing: -.035em; }
.project-text { margin-top: 10px; color: var(--body); font-size: 15px; }
.project-output { margin-top: 9px; color: var(--body); font-size: 15px; }
.project-output strong { color: var(--ink); }
.project-action {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 7px;
  margin-top: 9px;
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 700;
}
.project-card-link:is(:hover, :focus-visible) .project-action { text-decoration: underline; text-underline-offset: 4px; }
.project-visual { position: relative; aspect-ratio: 1.95; overflow: hidden; border-radius: clamp(11px, 1.9vw, 29px); }
.topan-visual { padding: 0; background: #23272d; }
.project-visual img { width: 100%; height: 100%; object-fit: cover; object-position: center top; border-radius: 7px; }
.project-visual-label { position: absolute; left: 12px; bottom: 11px; padding: 3px 8px; border: 1px solid var(--border); border-radius: 5px; background: var(--white); color: var(--muted); font-size: 11px; }
.automation-visual, .workflow-visual {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: 23px 29px;
  background-color: #171d25;
  background-image: radial-gradient(#3c4654 1px, transparent 1px);
  background-size: 18px 18px;
}
.workflow-visual {
  container-type: inline-size;
  align-items: center;
  min-width: 0;
  min-height: 224px;
  aspect-ratio: auto;
  padding: 16px 12px;
}
.workflow-visual p { color: var(--accent-dark); font-size: 14px; font-weight: 700; }
.workflow-stages {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  max-width: 520px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: workflow-stage;
}
.workflow-stages li {
  position: relative;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 4px;
  padding: 11px 4px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  text-align: center;
}
.workflow-stages li::before {
  position: absolute;
  top: 5px;
  left: 6px;
  counter-increment: workflow-stage;
  content: counter(workflow-stage, decimal-leading-zero) / "";
  color: var(--muted);
  font: 600 10px/1 var(--mono);
}
.workflow-stages .icon { width: 22px; height: 22px; color: var(--accent); }
.workflow-stages strong { font-size: 13px; line-height: 1.3; }
.workflow-stages small { color: var(--muted); font-size: 11px; line-height: 1.35; }
@container (max-width: 365px) {
  .workflow-stages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.metric { display: grid; width: fit-content; }
.metric strong { color: var(--accent-dark); font-size: clamp(40px, 5.5vw, 73px); line-height: 1; letter-spacing: -.075em; }
.metric strong span { color: var(--accent); }
.metric > span { color: var(--accent); font-size: 13px; font-weight: 680; margin-top: 8px; }
.automation-output { color: var(--body); font-size: 14px; }
.about { padding-top: clamp(44px, 5vw, 76px); }
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(19px, 4.6vw, 70px);
}
.about-copy { max-width: 940px; color: var(--body); font-size: clamp(16px, 1.45vw, 21px); }
.about-copy p + p { margin-top: 16px; }
.about-methods { margin-top: 36px; }
.about-methods li > .eyebrow { margin: 0 0 12px; color: var(--accent); font-size: 12px; }
.about-methods li > h3 { line-height: 1.5; }
.about-methods li > p:last-child { font-size: 16px; }
.life { margin-top: 16px; padding-top: 15px; border-top: 1px solid var(--border); }
.life p + p { margin-top: 8px; }
.run-record time { color: var(--accent-dark); font-weight: 700; }
.landscape-photo { overflow: hidden; border: 1px solid var(--border); border-radius: 14px; background: var(--white); }
.landscape-photo a { position: relative; display: block; aspect-ratio: 1.8; overflow: hidden; }
.landscape-photo img { width: 100%; height: 100%; object-fit: cover; }
.landscape-photo a:focus-visible { outline-offset: -4px; }
.landscape-photo figcaption { padding: 9px 13px; color: var(--muted); font-size: 13px; }

.contact { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(22px, 5vw, 70px); }
.contact-intro h2 { margin-top: 7px; font: 700 clamp(30px, 3.15vw, 44px)/1.25 var(--sans); letter-spacing: -.045em; }
.contact-lede { margin-top: 12px; color: var(--body); }
.contact-actions { margin-top: 17px; }
.contact-list { display: grid; gap: 8px; padding: 0; list-style: none; }
.contact-method { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 11px; padding: 10px 13px; border: 1px solid var(--border); border-radius: 10px; background: var(--white); }
.contact-primary { border-color: #465465; background: var(--accent-tint); }
.contact-wechat { grid-template-columns: 34px minmax(0, 1fr) auto; }
.contact-icon { width: 20px; height: 20px; justify-self: center; color: var(--accent); }
.contact-label { display: block; color: var(--muted); font-size: 12px; }
.contact-value { color: var(--ink); font-size: 15px; font-weight: 650; overflow-wrap: anywhere; }
.contact-value .icon { display: inline-block; margin-left: 3px; vertical-align: middle; color: var(--accent); }
.contact-details { display: grid; justify-content: start; align-content: center; min-height: 44px; min-width: 0; }
.contact-details:hover .contact-value { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }
.contact-copy { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; padding: 5px 9px; border: 1px solid var(--border); border-radius: 7px; background: var(--white); color: var(--accent-dark); font-size: 13px; font-weight: 650; cursor: pointer; }
.contact-copy[hidden] { display: none; }
.contact-copy:hover { background: var(--accent-tint); }
.contact-feedback { min-height: 22px; margin: 5px 0 0; color: var(--accent-dark); font-size: 13px; }
.site-footer { border-top: 1px solid var(--border); }
.footer-row { display: flex; justify-content: space-between; align-items: center; min-height: 74px; gap: 14px; color: var(--muted); font-size: 13px; }
.footer-divider { padding: 0 3px; color: var(--muted); }
.site-footer a { display: inline-flex; gap: 6px; align-items: center; min-height: 44px; font-weight: 650; white-space: nowrap; }

.case-main { max-width: 1160px; padding-top: 34px; padding-bottom: 55px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; color: var(--body); font-weight: 650; }
.back-link:hover { color: var(--accent); }
.case-hero { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 5vw, 69px); padding: 24px 0 10px; }
.case-hero h1 { margin-top: 12px; font-family: var(--sans); font-size: clamp(32px, 4.5vw, 61px); letter-spacing: -.045em; line-height: 1.16; }
.case-deck { margin-top: 14px; font-size: clamp(20px, 2.15vw, 26px); font-weight: 680; line-height: 1.45; letter-spacing: -.035em; }
.case-cover { border: 1px solid var(--border); border-radius: 16px; background: var(--white); overflow: hidden; }
.case-cover img { width: 100%; }
.case-cover figcaption { padding: 10px 13px; color: var(--muted); font-size: 12px; }
.case-cover a, .gallery a { position: relative; display: block; }
[data-viewer] { cursor: zoom-in; }
[data-viewer]::after {
  position: absolute;
  right: 9px;
  bottom: 9px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  content: "+";
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #13171af2;
  color: var(--accent-dark);
  font: 700 19px/1 var(--sans);
}
.case-cover a:focus-visible, .gallery a:focus-visible { outline-offset: -4px; }
.case-cover .automation-visual { min-height: 260px; aspect-ratio: 1.85; }
.case-meta { margin-top: 22px; padding-left: 15px; border-left: 2px solid var(--accent); }
.case-meta > div { display: grid; grid-template-columns: 5em minmax(0, 1fr); gap: 10px; align-items: baseline; padding-block: 6px; }
.case-meta dt { color: var(--accent-dark); font-size: 13px; font-weight: 700; }
.case-meta dd { color: var(--body); font-size: 15px; line-height: 1.6; }
.case-layout { display: grid; grid-template-columns: 180px minmax(0, 1fr); align-items: start; gap: clamp(24px, 5vw, 64px); margin-top: 46px; }
.case-toc { position: sticky; top: calc(var(--nav-height) + 16px); border-left: 1px solid var(--border); padding-left: 17px; }
.case-toc strong { color: var(--muted); font-size: 12px; }
.case-toc ol { padding: 0; margin-top: 7px; list-style: none; }
.case-toc a { display: inline-flex; align-items: center; min-height: 44px; color: var(--body); font-size: 14px; }
.case-toc a:hover, .case-toc a:focus-visible { color: var(--accent); }
.case-body { min-width: 0; }
.case-section { padding: 36px 0; border-top: 1px solid var(--border); }
.case-section:first-child { padding-top: 0; border-top: 0; }
.case-section h2 { margin-top: 6px; font-size: clamp(25px, 3vw, 37px); letter-spacing: -.045em; }
.case-section h3 { margin-top: 23px; font-size: 19px; }
.case-section > p:not(.eyebrow), .case-section > ul { max-width: 760px; margin-top: 12px; color: var(--body); line-height: 1.85; }
.case-section > ul { padding-left: 21px; }
.case-section > ul li + li { margin-top: 5px; }
.case-section figure { margin-top: 19px; }
.case-section figcaption { color: var(--muted); font-size: 13px; }
.case-scene { max-width: 760px; }
.case-scene img { width: 100%; border-radius: 12px; }
.case-scene figcaption { margin-top: 8px; }
.steps { display: grid; gap: 9px; padding: 0; margin: 19px 0 0; list-style: none; counter-reset: steps; }
.steps li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 11px; align-items: start; padding: 13px 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--white); }
.steps li::before { counter-increment: steps; content: counter(steps, decimal-leading-zero); color: var(--accent); font: 700 13px/2 var(--mono); }
.steps strong, .steps small { display: block; }
.steps strong { font-size: 15px; }
.steps small { margin-top: 2px; color: var(--body); font-size: 14px; }
.callout { margin-top: 20px; padding: 13px 17px; border-left: 3px solid var(--accent); background: var(--accent-tint); color: var(--body); font-size: 15px; }
.callout strong { display: block; margin-bottom: 3px; color: var(--accent-dark); }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin-top: 18px; }
.gallery figure { display: flex; flex-direction: column; margin: 0; border: 1px solid var(--border); border-radius: 11px; background: var(--white); overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 1.49; object-fit: contain; background: var(--accent-tint); }
.rehab-gallery img { background: #141d30; }
.gallery figcaption { padding: 8px 11px; }
.gallery .wide { grid-column: 1 / -1; }
.gallery .wide img { aspect-ratio: auto; }
.figure-caption { margin-top: 9px; }
.case-section .actions { margin-top: 17px; }
.case-pagination { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin: 20px 0 0; }
.case-pagination a { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 77px; padding: 11px 15px; border: 1px solid var(--border); border-radius: 10px; background: var(--white); }
.case-pagination a:hover { border-color: var(--accent); color: var(--accent); }
.case-pagination a:last-child { text-align: right; }
.case-pagination small { color: var(--muted); font-size: 12px; }
.case-pagination strong { font-size: 15px; }
.flow-diagram { padding: clamp(16px, 3vw, 25px); border: 1px solid var(--border); border-radius: 15px; background: var(--accent-tint); }
.flow-row { display: flex; gap: 19px; align-items: stretch; justify-content: center; }
.flow-node { flex: 1; display: grid; justify-items: center; align-content: center; gap: 3px; min-width: 0; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--white); text-align: center; }
.flow-node strong { font-size: 15px; line-height: 1.35; }
.flow-node small { color: var(--muted); font-size: 12px; }
.internship-tools { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; margin-top: 5px; }
.internship-tools span { padding: 2px 8px; border: 1px solid var(--border); border-radius: 5px; color: var(--accent-dark); font-size: 11px; }
.flow-node.end { background: #20332d; border-color: #47685b; }
.flow-node.review { background: #352a26; border-color: #705347; }
.flow-arrow { display: grid; place-items: center; min-height: 24px; color: var(--accent); font-weight: 800; }
.flow-note { margin-top: 7px; color: var(--muted); font-size: 13px; }

.image-viewer { width: min(1100px, calc(100% - 30px)); max-width: none; max-height: calc(100dvh - 24px); padding: 0; border: 1px solid var(--border); border-radius: 14px; background: var(--white); color: var(--ink); }
.image-viewer::backdrop { background: #07090ee8; }
.viewer-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 11px 6px 15px; }
.viewer-head strong { color: var(--ink); font-size: 14px; }
.viewer-actions { display: flex; flex-shrink: 0; align-items: center; gap: 8px; }
.viewer-actions > a { display: inline-flex; min-height: 44px; padding-inline: 6px; align-items: center; color: var(--accent-dark); font-size: 13px; font-weight: 700; }
.viewer-actions > a:hover { text-decoration: underline; }
.viewer-head button { min-height: 44px; padding-inline: 12px; border: 1px solid var(--border); border-radius: 7px; background: var(--white); color: var(--ink); cursor: pointer; }
.viewer-head button:hover { color: var(--accent); border-color: var(--accent); }
.viewer-content { max-height: calc(100dvh - 83px); overflow: auto; background: var(--accent-tint); }
.viewer-content img { width: 100%; }

.internship-card-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(18px, 2vw, 30px);
  padding: clamp(22px, 2.7vw, 42px);
  border-color: var(--border);
}
.internship-card-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; color: var(--muted); font-size: clamp(14px, 1.45vw, 22px); }
.internship-card-heading h3 { margin: 0 0 6px; font-size: clamp(28px, 3.1vw, 48px); }
.internship-card-heading .project-role { font-size: clamp(16px, 1.7vw, 26px); }
.internship-card-title { color: var(--ink); font-size: clamp(28px, 3.5vw, 54px); font-weight: 750; line-height: 1.4; letter-spacing: -.025em; text-wrap: pretty; }
.internship-card-description { color: var(--body); font-size: clamp(16px, 1.7vw, 25px); line-height: 1.8; }
.internship-card-tools { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; list-style: none; }
.internship-card-tools li { padding: 4px 14px; border-radius: 99px; background: var(--paper); color: var(--muted); font-size: clamp(13px, 1.2vw, 18px); }
.internship-card-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.internship-card-results > div { display: flex; flex-direction: column; padding: clamp(18px, 2vw, 30px); border-radius: 18px; background: var(--paper); }
.internship-card-results dt { color: var(--muted); font-size: clamp(16px, 1.6vw, 24px); font-weight: 650; }
.internship-card-results dd { color: var(--muted); font-size: clamp(14px, 1.2vw, 18px); }
.internship-card-results .internship-card-number { order: -1; margin-bottom: 8px; color: var(--ink); font-size: clamp(42px, 4.5vw, 70px); font-weight: 750; line-height: 1.25; }
.internship-card-link .project-action { margin: 0; font-size: clamp(17px, 1.7vw, 26px); }
.automation-case-hero { grid-template-columns: minmax(0, 1fr); padding-block: 28px; }
.automation-case-hero h1 { max-width: 1000px; text-wrap: pretty; line-height: 1.3; }
.automation-case-hero .case-deck { color: var(--accent); font-size: clamp(18px, 2vw, 26px); letter-spacing: 0; }
.automation-case-meta { display: grid; gap: 6px; margin-top: 26px; color: var(--muted); font-size: clamp(15px, 1.4vw, 18px); }
.automation-case .case-section > .eyebrow { letter-spacing: .035em; font-size: 13px; }
.automation-case .case-section h2 { line-height: 1.5; }
.automation-case .case-section h3 { line-height: 1.6; color: var(--accent-dark); }
.automation-case .case-section ul strong { color: var(--ink); }
.automation-case .case-section > ul li + li { margin-top: 12px; }
@media (max-width: 540px) {
  .internship-card-results { grid-template-columns: 1fr; gap: 10px; }
}

.automation-evidence {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #191919;
}
.automation-evidence a { display: block; cursor: zoom-in; }
.automation-evidence a:focus-visible { outline-offset: -4px; }
.automation-evidence img { width: 100%; height: auto; }

.topan-case-hero { grid-template-columns: minmax(0, 1fr); padding-block: 28px; }
.topan-case-hero h1 { max-width: 1050px; text-wrap: balance; line-height: 1.3; }
.topan-case-hero h1 span { display: inline-block; max-width: 100%; }
.topan-case-hero .case-deck { color: var(--accent); font-size: clamp(18px, 2vw, 26px); letter-spacing: 0; }
.topan-case-meta { display: grid; gap: 6px; margin-top: 26px; color: var(--muted); font-size: clamp(15px, 1.4vw, 18px); }
.topan-funding { max-width: 900px; margin-top: 24px; padding: 14px 18px; border-left: 2px solid var(--accent); background: var(--accent-tint); color: var(--body); }
.topan-case .case-section > .eyebrow { letter-spacing: .035em; font-size: 13px; }
.topan-case .case-section h2 { line-height: 1.5; }
.topan-case .case-section h3 { line-height: 1.6; color: var(--accent-dark); }
.topan-case .case-section > ol { max-width: 760px; margin-top: 12px; padding-left: 24px; color: var(--body); line-height: 1.85; }
.topan-case .case-section > ul li + li, .topan-case .case-section > ol li + li { margin-top: 12px; }
.topan-case .case-section strong { color: var(--ink); }
.topan-dashboard a { position: relative; display: block; }

.rehab-card-award { color: var(--muted); font-size: clamp(15px, 1.6vw, 23px); }
.rehab-case-hero { grid-template-columns: minmax(0, 1fr); padding-block: 28px; }
.rehab-case-hero h1 { max-width: 1050px; text-wrap: balance; line-height: 1.3; }
.rehab-case-hero h1 span { display: inline-block; max-width: 100%; }
.rehab-case-hero .case-deck { color: var(--accent); font-size: clamp(18px, 2vw, 26px); letter-spacing: 0; }
.rehab-case-meta { display: grid; gap: 6px; margin-top: 26px; color: var(--muted); font-size: clamp(15px, 1.4vw, 18px); }
.rehab-award { max-width: 900px; margin-top: 24px; padding: 14px 18px; border-left: 2px solid var(--accent); background: var(--accent-tint); color: var(--body); }
.rehab-case .case-section > .eyebrow { letter-spacing: .035em; font-size: 13px; }
.rehab-case .case-section h2 { line-height: 1.5; }
.rehab-case .case-section > ul li + li { margin-top: 12px; }
.rehab-case .case-section strong { color: var(--ink); }

.beyond-heading { margin-bottom: clamp(28px, 4vw, 56px); }
.beyond-heading h2 { margin: 0; font-size: clamp(42px, 8.8vw, 138px); letter-spacing: -.035em; line-height: 1; }
.beyond-heading > p { margin-top: 18px; color: var(--body); font-size: clamp(18px, 2vw, 28px); }
.beyond-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; gap: clamp(24px, 5vw, 80px); }
.beyond-photography { padding-top: clamp(32px, 5vw, 80px); }
.beyond-photo a { position: relative; display: block; overflow: hidden; border-radius: 12px; }
.beyond-photo img { width: 100%; height: auto; }
.beyond-photo a:focus-visible { outline-offset: -4px; }
.beyond-photo figcaption { margin-top: 10px; color: var(--muted); font-size: 13px; }
.beyond-copy { margin-top: 22px; }
.beyond-copy h3, .beyond-music h3 { color: var(--ink); font-size: clamp(22px, 2.3vw, 32px); }
.beyond-copy p, .beyond-music p { margin-top: 12px; color: var(--body); font-size: clamp(16px, 1.4vw, 20px); line-height: 1.85; }
.beyond-copy strong { color: var(--ink); font-weight: 650; }
.beyond-music { display: grid; grid-template-columns: minmax(0, .5fr) minmax(0, 1fr); gap: 24px; margin-top: clamp(36px, 5vw, 72px); padding-top: 28px; border-top: 1px solid var(--border); }
.beyond-music p { max-width: 760px; margin-top: 0; }
@media (max-width: 680px) {
  .beyond-grid, .beyond-music { grid-template-columns: minmax(0, 1fr); }
  .beyond-photography { padding-top: 8px; }
  .beyond-music { gap: 12px; }
}

@media (max-width: 950px) {
  .case-layout { grid-template-columns: 135px minmax(0, 1fr); }
}
@media (max-width: 680px) {
  :root { --nav-height: 60px; }
  .nav { gap: 10px; }
  .nav-links { gap: 4px; }
  .nav-links a { padding-inline: 3px; font-size: 13px; }
  .hero { min-height: 0; grid-template-rows: auto auto auto; }
  .hero h1 { font-size: 28cqw; }
  .hero-status { font-size: 11px; letter-spacing: .06em; }
  .hero-portrait {
    position: relative;
    left: auto;
    bottom: auto;
    translate: none;
    justify-self: center;
    width: min(78cqw, 350px);
    margin-top: -6cqw;
  }
  .hero-bottom { padding: 17px 0 24px; align-items: center; }
  .hero-copy { max-width: none; }
  .hero-role { margin-bottom: 16px; font-size: 15px; }
  .hero-cta.button { min-width: 90px; margin-bottom: 0; padding-inline: 8px; }
  .section-heading { margin-bottom: 22px; }
  .site-section { padding-block: 40px; }
  .strengths-list { grid-template-columns: 1fr; row-gap: 14px; }
  .section-display { font-size: clamp(38px, 11vw, 70px); }
  .project-card-link { grid-template-columns: 1fr; gap: 9px; }
  .project-card-copy { padding: 2px 1px 4px; }
  .project-role { font-size: 13px; }
  .project-output, .project-text { font-size: 14px; }
  .project-visual-label { left: 8px; }
  .automation-visual { padding: 17px 20px; }
  .about-grid { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; gap: 15px; }
  .contact-lede { margin-top: 8px; }
  .contact-method { gap: 7px; padding-inline: 10px; }
  .footer-row { min-height: 65px; }
  .case-main { padding-top: 17px; padding-bottom: 37px; }
  .case-hero, .case-layout { grid-template-columns: 1fr; }
  .case-hero { gap: 19px; padding: 11px 0 4px; }
  .case-cover .automation-visual { min-height: 192px; }
  .case-meta { margin-top: 15px; padding-left: 10px; }
  .case-meta > div { grid-template-columns: 55px minmax(0, 1fr); gap: 6px; padding-block: 4px; }
  .case-meta dd { font-size: 14px; }
  .case-layout { gap: 25px; margin-top: 22px; }
  .case-toc { position: static; padding-left: 0; border: 0; }
  .case-toc ol { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 2px; }
  .case-section { padding: 25px 0; }
  .gallery { gap: 8px; }
  .case-pagination strong { font-size: 14px; }
}
@media (max-width: 380px) {
  .hero-copy { font-size: 16px; }
  .nav { width: calc(100% - 24px); gap: 6px; }
  .brand strong { font-size: 17px; }
  .flow-row { gap: 7px; }
  .flow-node { padding-inline: 6px; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  body:has(.hero) .nav { --entry-y: -20px; animation: page-arrive .7s ease both; }
  .hero h1 { --entry-y: 40px; animation: page-arrive .8s .15s ease-out both; }
  .hero-copy { animation: page-arrive .7s .35s ease-out both; }
  .hero-cta { animation: page-arrive .7s .5s ease-out both; }
  .hero-portrait { --entry-y: 30px; animation: page-arrive .85s .6s ease-out both; }
  .reveal-pending { opacity: 0; }
  [data-reveal].reveal-visible {
    animation: section-rise .85s var(--reveal-delay, 0ms) cubic-bezier(.22, .7, .25, 1) both;
  }
  [data-reveal="heading"].reveal-visible { animation-name: section-heading-enter; }
  [data-reveal="panel"].reveal-visible { animation-name: section-panel-enter; }
  [data-reveal="gallery"].reveal-visible { animation-name: section-gallery-enter; }
  [data-reveal="fade"].reveal-visible { animation-name: section-fade; }
  [data-reveal="hero"].reveal-visible { animation: none; }
  [data-reveal].reveal-instant { animation: none; opacity: 1; transform: none; }
  .scroll-letter {
    opacity: clamp(.54, calc(.54 + (var(--text-progress, 1) - var(--letter-start)) * 5.4), 1);
  }
  @media (hover: hover) {
    .project-card-link:hover { transform: translateY(-3px); border-color: var(--accent); }
  }
}
@keyframes page-arrive {
  from { opacity: 0; transform: translateY(var(--entry-y, 20px)); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes section-rise {
  from { opacity: 0; transform: translateY(44px); }
  to { opacity: 1; transform: none; }
}
@keyframes section-heading-enter {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: none; }
}
@keyframes section-panel-enter {
  from { opacity: 0; transform: translateY(36px) scale(.97); }
  to { opacity: 1; transform: none; }
}
@keyframes section-gallery-enter {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: none; }
}
@keyframes section-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; }
}
@media (forced-colors: active) {
  .display-type { background: none; color: CanvasText; -webkit-text-fill-color: currentColor; }
}

/* Field evidence in project cases: keep the original framing. */
.rehab-field-photo { overflow: hidden; border: 1px solid var(--border); border-radius: 11px; background: var(--white); }
.rehab-field-photo a { position: relative; display: block; }
.rehab-field-photo img { border-radius: 0; }
.rehab-case .rehab-field-photo figcaption { margin: 0; padding: 9px 13px; }
.rehab-field-gallery, .topan-field-gallery { max-width: 760px; }
.rehab-field-gallery img, .topan-field-gallery img { aspect-ratio: auto; height: auto; background: #171c20; }
@media (max-width: 600px) {
  .rehab-field-gallery, .topan-field-gallery { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}

.site-filing { margin: 0; padding: 0 12px 12px; text-align: center; font-size: 13px; color: var(--muted); }
.site-filing a { text-decoration: underline; text-underline-offset: 3px; }
