:root {
  color-scheme: light;
  --ink: #14171b;
  --muted: #59616d;
  --blue: #1247d8;
  --line: #d9dfe8;
  --wash: #f4f7fd;
  --sans: "DM Sans", sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
  font-family: var(--sans);
  color: var(--ink);
  background: #fff;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
body { margin: 0; }
::selection { color: #fff; background: var(--blue); }
a { color: var(--blue); text-decoration: none; }
a:focus-visible { outline: 2px solid var(--blue); outline-offset: 6px; }
.keep-together { white-space: nowrap; }
[id] { scroll-margin-top: 24px; }
p, h1, h2, h3, figure, dl, dd { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
.page-shell { width: min(1184px, calc(100% - 112px)); margin: 0 auto; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 5; padding: 12px 18px; background: white; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.arrow { width: 24px; height: 24px; flex: 0 0 24px; }
.home-shell { text-align: center; }
.home-hero { padding: clamp(64px, 13vh, 144px) 0 64px; }
.name { font-size: clamp(64px, 7.3vw, 96px); line-height: 1; letter-spacing: -.04em; font-weight: 600; }
.name span { color: var(--blue); font-weight: 400; }
.role { margin: 20px auto 0; font-size: 12px; line-height: 1.7; letter-spacing: .09em; text-transform: uppercase; }
.profile { margin: 40px auto 0; max-width: 860px; font-family: var(--serif); font-size: 25px; line-height: 1.5; }
.profile p + p { margin-top: 20px; }
.intro-links { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 32px; font-size: 20px; }
.intro-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 4px; text-decoration: none; }
.chevron { width: 16px; height: 16px; }
.project-directory { padding-top: 48px; }
.project-directory h1 { font-size: 48px; line-height: 1.1; letter-spacing: -.03em; font-weight: 500; }
.section-intro { display: flex; align-items: baseline; justify-content: space-between; gap: 28px; margin-bottom: 30px; }
.section-intro h2 { font-size: 28px; letter-spacing: -.025em; font-weight: 500; }
.section-intro > p { color: var(--muted); max-width: 510px; font-size: 15px; line-height: 1.6; }
.project-list { padding: 0; margin: 0; list-style: none; }
.project-list li { border-top: 1px solid var(--line); }
.project-link { display: grid; grid-template-columns: minmax(0, 1fr) 210px 24px; gap: 32px; align-items: center; padding: 30px 0; color: var(--ink); text-decoration: none; }
.project-link h2 { font-size: 25px; line-height: 1.25; font-weight: 500; letter-spacing: -.025em; color: var(--blue); }
.project-link p { max-width: 660px; font-size: 16px; line-height: 1.6; margin-top: 8px; }
.project-kind { color: var(--muted); font-size: 13px; line-height: 1.6; }
.project-link > .arrow { color: var(--blue); }
.top-nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); padding: 24px 0; }
.top-nav a { display: inline-flex; align-items: center; min-height: 44px; }
.wordmark { gap: .22em; color: var(--blue); font-size: 22px; font-weight: 600; letter-spacing: -.03em; text-decoration: none; }
.wordmark span { color: var(--blue); font-weight: 400; }
.top-nav > div { display: flex; gap: 28px; font-size: 14px; }
.case-hero { padding: 60px 0 32px; }
.case-hero h1 { max-width: 1050px; font-size: clamp(44px, 5.6vw, 72px); line-height: 1.08; font-weight: 500; letter-spacing: -.035em; }
.section-links { display: flex; flex-wrap: wrap; gap: 0 24px; margin-top: 20px; font-size: 14px; }
.section-links a { display: inline-flex; align-items: center; min-height: 44px; }
.case-summary { margin-top: 26px; max-width: 890px; font-family: var(--serif); font-size: 28px; line-height: 1.45; }
.ownership { margin-top: 28px; font-size: 13px; line-height: 1.8; color: var(--blue); font-weight: 500; }
.ownership span { margin-left: 20px; color: var(--muted); font-weight: 400; }
.case-section { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; border-top: 1px solid var(--line); padding: 38px 0; }
.case-section > h2 { font-size: 24px; font-weight: 500; letter-spacing: -.025em; line-height: 1.3; }
.case-section p, .technology-list dd { max-width: 72ch; font-size: 17px; line-height: 1.7; }
.case-section p + p { margin-top: 18px; }
.architecture { border-top: 1px solid var(--line); padding: 40px 0 46px; }
.architecture .section-intro { margin-bottom: 28px; }
.architecture .section-intro h2 { font-size: 24px; }
.architecture figure { padding: 32px; background: var(--wash); }
.architecture-flow { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; }
.flow-node { position: relative; border: 1px solid #aabadd; background: #fff; padding: 22px 18px; }
.flow-node h3 { font-size: 16px; font-weight: 600; line-height: 1.35; color: #103794; }
.flow-node p { margin-top: 10px; font-size: 14px; line-height: 1.55; color: #384967; }
.flow-node:not(:last-child)::after { content: ""; position: absolute; top: 50%; left: 100%; width: 29px; border-top: 1px solid var(--blue); }
.flow-node:not(:last-child)::before { content: ""; position: absolute; z-index: 1; top: calc(50% - 3px); left: calc(100% + 23px); width: 6px; height: 6px; border-top: 1px solid var(--blue); border-right: 1px solid var(--blue); transform: rotate(45deg); }
.flow-loop { margin-top: 24px; padding-top: 20px; border-top: 1px solid #c5d2ed; font-size: 14px; color: #253f6a; line-height: 1.65; }
figcaption { margin-top: 16px; font-size: 13px; line-height: 1.65; color: #485d7d; }
.architecture figcaption a { white-space: nowrap; }
.technology-list { display: grid; gap: 24px; }
.technology-list dt { font-size: 15px; font-weight: 600; margin-bottom: 5px; }
.technology-list dd { color: var(--muted); }
.decision-list { display: grid; gap: 30px; }
.decision-list h3 { font-family: var(--serif); font-size: 24px; font-weight: 400; line-height: 1.35; margin-bottom: 10px; }
.case-pagination { display: flex; align-items: center; justify-content: space-between; gap: 48px; border-top: 1px solid var(--line); padding: 32px 0 0; margin-top: 26px; }
.case-pagination a { display: flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; line-height: 1.5; }
.case-pagination a:last-child { max-width: 60%; text-align: right; }
.case-pagination small { display: block; color: var(--muted); font-size: 12px; margin-bottom: 4px; }
@media (max-width: 900px) {
  .page-shell { width: calc(100% - 64px); }
  .project-link { grid-template-columns: minmax(0, 1fr) 24px; gap: 24px; }
  .project-kind { grid-column: 1; grid-row: 2; }
  .project-link > .arrow { grid-column: 2; grid-row: 1; }
  .project-link { row-gap: 12px; }
  .case-section { grid-template-columns: 180px minmax(0, 1fr); gap: 32px; }
  .architecture figure { padding: 24px; }
  .architecture-flow { grid-template-columns: 1fr; gap: 28px; }
  .flow-node { padding: 18px; }
  .flow-node:not(:last-child)::after { left: 50%; top: 100%; height: 27px; width: 0; border-top: 0; border-left: 1px solid var(--blue); }
  .flow-node:not(:last-child)::before { left: calc(50% - 3px); top: calc(100% + 21px); transform: rotate(135deg); }
}
@media (max-width: 700px) {
  .page-shell { width: calc(100% - 40px); }
  .home-hero { padding-top: 56px; padding-bottom: 40px; }
  .name { font-size: clamp(52px, 12.7vw, 82px); }
  .role { font-size: 10px; letter-spacing: .06em; margin-top: 16px; max-width: 330px; }
  .profile { margin-top: 28px; font-size: 21px; line-height: 1.5; }
  .profile p + p { margin-top: 18px; }
  .intro-links { gap: 8px; margin-top: 28px; font-size: 19px; }
  .project-directory { padding-top: 32px; }
  .project-directory h1 { font-size: 38px; }
  .section-intro { display: block; margin-bottom: 24px; }
  .section-intro > p { margin-top: 10px; font-size: 14px; }
  .section-intro h2 { font-size: 26px; }
  .project-link { padding: 24px 0; gap: 12px 16px; }
  .project-link h2 { font-size: 23px; }
  .project-link p { font-size: 15px; line-height: 1.6; }
  .project-kind { font-size: 12px; }
  .top-nav { padding: 14px 0; gap: 16px; }
  .wordmark { font-size: 19px; }
  .top-nav > div { gap: 18px; font-size: 13px; }
  .case-hero { padding-top: 38px; padding-bottom: 24px; }
  .case-hero h1 { font-size: clamp(38px, 9vw, 56px); }
  .section-links { gap: 0 16px; margin-top: 16px; font-size: 13px; }
  .case-summary { font-size: 24px; margin-top: 22px; }
  .ownership { margin-top: 24px; font-size: 12px; }
  .ownership span { display: block; margin: 4px 0 0; }
  .case-section { display: block; padding: 28px 0; }
  .case-section > h2 { margin-bottom: 20px; font-size: 23px; }
  .case-section p, .technology-list dd { font-size: 16px; line-height: 1.7; }
  .architecture { padding: 28px 0 32px; }
  .architecture figure { padding: 22px 18px; }
  .architecture-flow { grid-template-columns: 1fr; gap: 28px; }
  .flow-node { padding: 18px; }
  .flow-node h3 { font-size: 17px; }
  .flow-node p { margin-top: 6px; font-size: 14px; }
  .flow-node:not(:last-child)::after { left: 50%; top: 100%; height: 27px; width: 0; border-top: 0; border-left: 1px solid var(--blue); }
  .flow-node:not(:last-child)::before { left: calc(50% - 3px); top: calc(100% + 21px); transform: rotate(135deg); }
  .flow-loop { font-size: 13px; }
  .decision-list h3 { font-size: 23px; }
  .case-pagination { gap: 20px; padding-top: 26px; margin-top: 8px; font-size: 14px; }
  .case-pagination .arrow { flex-basis: 18px; width: 18px; height: 18px; }
}
@media (max-width: 360px) {
  .home-hero { padding-top: 32px; padding-bottom: 24px; }
  .profile { margin-top: 20px; font-size: 20px; }
  .intro-links { margin-top: 20px; gap: 4px; }
}
@media print {
  .page-shell { width: 100%; }
  .top-nav, .intro-links, .case-pagination, .skip-link, .section-links { display: none; }
  .home-hero, .case-hero { padding-top: 0; }
  .case-hero h1 { font-size: 38pt; }
  .architecture, .decision-list article, .project-list li { break-inside: avoid; }
  a { color: var(--ink); }
  body { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}
