@font-face {
  font-family: 'Noto SC Display';
  src: url('assets/noto-sans-sc-display.woff2') format('woff2');
  font-weight: 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f1f3f6;
  --ink: #141722;
  --muted: #4a5263;
  --line: #c9cfdb;
  --blue: #1833b6;
  --night: #0a1553;
  --white: #f7f9ff;
  --gutter: clamp(20px, 5.2vw, 96px);
  --ease: cubic-bezier(.23, 1, .32, 1);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans CJK SC', sans-serif; }
::selection { background: var(--blue); color: white; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--blue); outline-offset: 5px; }
img { display: block; }
h1, h2, h3, p, dl, dd { margin: 0; }
section[id] { scroll-margin-top: 1.5rem; }
.frame { width: min(100% - 2 * var(--gutter), 1550px); margin-inline: auto; }

.skip {
  position: absolute;
  z-index: 3;
  top: 8px;
  left: 8px;
  padding: .75rem 1rem;
  transform: translateY(-150%);
  background: var(--white);
  color: var(--ink);
}
.skip:focus { transform: none; }

.masthead { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); }
.identity { font-size: .94rem; font-weight: 700; white-space: nowrap; }
.masthead nav { display: flex; align-items: center; gap: clamp(.8rem, 3vw, 3.5rem); }
.masthead a { min-height: 44px; display: inline-flex; align-items: center; }
.masthead nav a { font-size: .88rem; }
.masthead--cover { position: absolute; inset: 0 0 auto; z-index: 2; color: var(--white); border-color: #e0e7ff52; }
.masthead--cover a:focus-visible, .cover a:focus-visible { outline-color: #c3d1ff; }

.cover {
  position: relative;
  display: grid;
  align-items: center;
  min-height: max(650px, 85svh);
  isolation: isolate;
  overflow: hidden;
  background: var(--night);
  color: var(--white);
}

.cover-image { position: absolute; inset: 0; z-index: -1; margin: 0; }
.cover-image img {
  position: absolute;
  top: 0;
  right: 0;
  width: 79%;
  height: 100%;
  object-fit: cover;
  object-position: 56% 50%;
  transform-origin: 65% 48%;
}
.cover-image::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, #0a1553 19%, #0a1553ed 31%, #0a155380 45%, #0a155300 65%), linear-gradient(180deg, #050c36a6 0%, #050c3600 22%);
  content: '';
}
.cover-image figcaption {
  position: absolute;
  right: var(--gutter);
  bottom: 1.2rem;
  z-index: 2;
  padding: .28rem .5rem;
  background: #050c36d9;
  color: var(--white);
  font-size: .75rem;
}
.cover-content { position: relative; padding-block: 7rem 4.5rem; }
.cover h1 {
  max-width: 8em;
  font-family: 'Noto SC Display', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: clamp(3.9rem, 7.5vw, 6rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.033em;
}
.cover h1 span { display: block; white-space: nowrap; }
.cover-content p { max-width: 22em; margin-top: clamp(1.3rem, 3vw, 2.4rem); color: #e4eaff; font-size: clamp(.95rem, 1.35vw, 1.15rem); line-height: 1.8; }
.cover-action { display: inline-flex; align-items: center; min-height: 48px; gap: 1rem; margin-top: 1.2rem; border-bottom: 1px solid #cbd7ffad; font-size: .93rem; font-weight: 700; }

@media (prefers-reduced-motion: no-preference) {
  .cover-image img { animation: open-cover 950ms var(--ease) both; }
  @keyframes open-cover { from { transform: scale(1.075); } to { transform: scale(1); } }
}

.section { padding-block: clamp(2.8rem, 6.2vw, 6rem); }
.section h2 { font-size: clamp(1.7rem, 3vw, 2.8rem); line-height: 1.2; letter-spacing: -.025em; }
.cases { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(1.25rem, 3vw, 3.75rem); margin-top: clamp(1.6rem, 3.3vw, 3.5rem); }
.case { display: block; }
.case-art {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.7rem;
  min-height: clamp(236px, 26vw, 420px);
  padding: clamp(1.25rem, 3.1vw, 3rem);
}
.case-art h3 { font-size: clamp(1.85rem, 4vw, 4rem); line-height: 1.15; letter-spacing: -.029em; }
.case-art--workbench { background: #182868; color: var(--white); }
.case-art--equestrian { background: #d3dec4; color: #202c1b; }
.case-topics { display: flex; flex-wrap: wrap; gap: .4rem 1rem; padding-top: .85rem; border-top: 1px solid currentColor; font-size: clamp(.75rem, 1vw, .9rem); }
.case-summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 67px; border-bottom: 1px solid var(--line); }
.case-summary p { display: flex; flex-wrap: wrap; align-items: center; gap: .32rem .85rem; padding-block: .55rem; }
.case-summary strong { font-size: .93rem; }
.case-summary p span { color: var(--muted); font-size: .81rem; }
.case-arrow { font-size: 1.35rem; color: var(--blue); }

.experience, .education { border-top: 1px solid var(--line); }
.experience-list { margin-top: 1.6rem; }
.experience-list > div { display: grid; grid-template-columns: minmax(10rem, 26%) 1fr; gap: .38rem 1.4rem; padding-block: 1.2rem; border-bottom: 1px solid var(--line); }
.experience-list dt { font-weight: 700; font-size: 1.1rem; }
.experience-list dd, .education p { color: var(--muted); line-height: 1.85; }
.experience-list a { display: inline-block; margin-left: .65rem; color: var(--blue); text-decoration: underline; text-underline-offset: .25em; }
.categories { display: flex; align-items: baseline; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 1.65rem; }
.categories h3 { font-size: .91rem; }
.categories ul { display: flex; flex-wrap: wrap; gap: .55rem 1.2rem; color: var(--muted); padding: 0; margin: 0; font-size: .91rem; list-style: none; }
.education p { margin-top: 1.05rem; }

.footer { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); padding-block: 1.4rem 2rem; color: var(--muted); font-size: .85rem; }
.footer a { color: var(--blue); }

.detail { padding-block: clamp(2.6rem, 6.5vw, 7rem); }
.detail-heading h1 { max-width: 12em; font-size: clamp(2.2rem, 6.3vw, 5.4rem); line-height: 1.12; letter-spacing: -.03em; }
.detail-heading p { max-width: 35em; margin-top: 1.3rem; font-size: clamp(1.02rem, 1.65vw, 1.35rem); line-height: 1.75; color: var(--muted); }
.project-facts { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: .85rem 1.9rem; padding-block: 1.4rem; margin-top: 2.8rem; border-block: 1px solid var(--line); }
.project-facts dt { color: var(--muted); font-size: .86rem; }
.project-facts dd { margin-top: .48rem; line-height: 1.5; font-weight: 700; }
.detail-section { max-width: 48rem; margin-top: clamp(2.2rem, 5vw, 4.7rem); }
.detail-section h2 { font-size: clamp(1.35rem, 2.4vw, 1.85rem); margin-bottom: .72rem; }
.detail-section p, .detail-list { color: var(--muted); line-height: 1.85; }
.detail-list { margin: 0; padding-left: 1.2rem; }
.detail-list li + li { margin-top: .38rem; }

@media (hover: hover) and (pointer: fine) {
  .masthead a:hover, .footer a:hover, .cover-action:hover { text-decoration: underline; text-underline-offset: .28em; }
  .case-arrow { transition: transform 180ms var(--ease); }
  .case:hover .case-arrow { transform: translate(3px, -3px); }
}

@media (max-width: 780px) {
  .masthead { min-height: 62px; }
  .cover { min-height: max(650px, 88svh); align-items: start; }
  .cover-content { padding-top: clamp(6.35rem, 14vh, 9rem); }
  .cover h1 { font-size: clamp(2.62rem, 11.1vw, 5rem); }
  .cover-content p { max-width: 21em; }
  .cover-image img { top: 18%; width: 100%; height: 82%; object-position: 54% 55%; }
  .cover-image::after { background: linear-gradient(180deg, #0a1553 17%, #0a1553f0 29%, #0a1553bd 41%, #0a155312 68%); }
  .cases, .experience-list > div, .project-facts { grid-template-columns: 1fr; }
  .experience-list a { display: block; margin-left: 0; margin-top: .25rem; }
  .project-facts { row-gap: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .case-arrow { transition: none; }
  .case:hover .case-arrow { transform: none; }
}
