:root {
  --paper: #f9f9f6;
  --ink: #171717;
  --muted: #62625c;
  --rule: #c8c8c0;
  --accent: #d93829;
  --accent-ink: #b52a20;
  --gutter: 24px;
  --margin: clamp(24px, 4vw, 72px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.7 Arial, Helvetica, "Noto Sans SC", "Microsoft YaHei", sans-serif;
  text-align: left;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-ink); }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 6px; }
::selection { background: var(--ink); color: var(--paper); }
img { display: block; max-width: 100%; height: auto; }
p, h1, h2, h3, figure, dl, dd { margin: 0; font-weight: 400; }
/* Headings and project titles share lines evenly instead of leaving a single trailing character. */
h2, h3, .project-name { text-wrap: balance; }
h2 { font-size: clamp(30px, 3.4vw, 52px); line-height: 1.22; letter-spacing: -.04em; }
h3 { font-size: clamp(25px, 2.25vw, 34px); line-height: 1.45; letter-spacing: -.035em; }
.page { width: min(100%, 1600px); margin-inline: auto; padding-inline: var(--margin); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.grid > * { min-width: 0; }
.micro { color: var(--muted); font-size: 11px; line-height: 1.6; letter-spacing: .035em; }
.skip-link { position: absolute; top: -100px; left: var(--margin); padding: 10px 20px; background: var(--ink); color: var(--paper); z-index: 2; }
.skip-link:focus { top: 10px; }

/* One column system connects the header, index and project details. */
.masthead { align-items: start; padding-block: 28px 22px; border-bottom: 1px solid var(--ink); }
.brand { grid-column: 1/4; display: flex; align-items: center; min-height: 44px; width: 176px; max-width: 100%; }
.site-label { grid-column: 5/7; font-size: 13px; }
.navigation { display: contents; }
.navigation a { min-height: 44px; font-size: 13px; }
.navigation a:nth-child(1) { grid-column: 8/9; }
.navigation a:nth-child(2) { grid-column: 9/10; }
.navigation a:nth-child(3) { grid-column: 10/12; }
.navigation a:nth-child(4) { grid-column: 12/13; }
.navigation .micro { display: block; margin-bottom: 2px; }
.navigation a[aria-current="location"] { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 6px; }
.navigation .halloween-nav { color: #884214; }

.hero { padding-block: 30px 56px; align-items: start; }
.hero-label { grid-column: 1/7; }
.hero-location { grid-column: 11/13; }
.hero-wordmark {
  grid-column: 1/12;
  margin-block: 44px 48px;
  position: relative;
  overflow: hidden;
  aspect-ratio: 834/134;
}
/* Crop the original SVG's built-in clear space without changing the master. */
.hero-wordmark img { position: absolute; top: 0; left: 0; width: 123.980815%; max-width: none; transform: translate(-9.67118%, -29.94012%); }
.hero-index { grid-column: 1/4; padding-top: 8px; }
.hero-statement { grid-column: 5/11; }
.hero-statement > p:first-child { font-size: clamp(30px, 4.2vw, 64px); line-height: 1.22; letter-spacing: -.045em; }
.hero-description { max-width: 24em; margin-top: 28px; color: var(--muted); font-size: 15px; line-height: 1.85; }
.hero-link { grid-column: 11/13; align-self: end; justify-self: start; font-size: 13px; }
.text-link { display: inline-flex; align-items: center; justify-content: flex-start; gap: 20px; min-height: 44px; padding-block: 8px; border-bottom: 1px solid var(--rule); position: relative; }
.text-link::after { content: ""; position: absolute; inset: auto 0 -1px; height: 1px; background: var(--accent-ink); transform: scaleX(0); transform-origin: left; transition: transform .48s var(--ease); }
.text-link:hover::after, .text-link:focus-visible::after { transform: scaleX(1); }
.text-link > span { display: inline-block; transition: transform .48s var(--ease); }
.text-link:hover > span, .text-link:focus-visible > span { transform: translate(2px, -2px); }
.text-link:active::after { transform: scaleX(1); transition-duration: .16s; }
.text-link:active > span { transform: translate(4px, -4px); transition-duration: .16s; }
.project-row:active .toggle-symbol { transform: scale(.8); }
.toggle-symbol { transition: transform .24s var(--ease); }

.halloween-event { padding-block: clamp(28px, 3vw, 44px); background: #281a3b; color: #fff4df; align-items: start; row-gap: 8px; }
.halloween-kicker { grid-column: 2/5; grid-row: 1/3; color: #ffbd70; }
.halloween-kicker > span, .section-note > span { display: block; }
.halloween-event h2 { grid-column: 5/9; grid-row: 1; color: #ffbd70; font-size: clamp(22px, 2.4vw, 34px); line-height: 1.3; letter-spacing: -.03em; }
.halloween-intro { grid-column: 5/9; grid-row: 2; font-size: 14px; color: #dfd3e8; }
.halloween-art { grid-column: 9/11; grid-row: 1/3; align-self: center; width: 100%; max-width: 128px; image-rendering: pixelated; }
.halloween-cta { grid-column: 11/13; grid-row: 1/3; align-self: end; justify-self: start; font-size: 13px; color: #ffbd70; border-color: #94769f; }
.halloween-cta:hover { color: #fff4df; }
.halloween-cta::after { background: #ffbd70; }
.halloween-cta:focus-visible { outline-color: #ffbd70; }
.halloween-specimen img { width: 100%; image-rendering: pixelated; margin-block: 24px 16px; }

.projects { padding-top: 72px; }
.section-heading { padding-block: 24px 36px; border-top: 1px solid var(--ink); align-items: start; }
.section-number { grid-column: 1/3; padding-top: 6px; }
.section-heading h2 { grid-column: 3/10; font-size: clamp(32px, 4.4vw, 68px); line-height: 1.12; }
.section-note { grid-column: 11/13; padding-top: 6px; }
.project { border-top: 1px solid var(--rule); transition: border-color .48s var(--ease); }
.project[open] { border-top-color: var(--ink); }
.project-number, .project-name { transition: color .32s var(--ease); }
.project[open] .project-number { color: var(--accent-ink); }
.project-row { list-style: none; cursor: pointer; padding-block: 30px; align-items: start; row-gap: 12px; }
.project-row::-webkit-details-marker { display: none; }
.project-number { grid-column: 1/2; font-size: 28px; line-height: 1.25; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.project-title { grid-column: 3/7; }
.project-name { display: block; font-size: clamp(22px, 2vw, 29px); line-height: 1.35; letter-spacing: -.035em; }
.project-title .micro { display: block; margin-top: 10px; font-size: 10px; }
.project-description { grid-column: 7/10; color: var(--muted); font-size: 14px; line-height: 1.85; }
.project-meta { grid-column: 11/12; padding-top: 3px; }
.project-meta > span { display: block; }
.project-toggle { grid-column: 12/13; display: flex; align-items: flex-start; min-height: 44px; padding-top: 10px; }
.toggle-closed, .toggle-open { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.toggle-open { display: none; }
.project[open] .toggle-open { display: inline; }
.project[open] .toggle-closed { display: none; }
.toggle-symbol { position: relative; display: block; width: 16px; height: 16px; }
.toggle-symbol::before, .toggle-symbol::after { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 1px; background: currentColor; transition: transform .48s var(--ease); }
.toggle-symbol::after { transform: rotate(90deg); }
.project[open] .toggle-symbol::after { transform: rotate(0); }
.project-row:hover .project-name, .project-row:focus-visible .project-name, .project-row:hover .project-toggle { color: var(--accent-ink); }
.project-panel { padding-block: 18px 64px; row-gap: 28px; align-items: start; }
.project-specimen, .cognition-specimen, .object-specimen, .identity-specimen { grid-column: 3/7; grid-row: 1; }
.specimen-label { color: var(--accent-ink); }
.specimen-words { font-size: clamp(52px, 5vw, 76px); line-height: 1.18; letter-spacing: -.06em; margin-top: 28px; }
.specimen-words > span:first-child { display: block; color: var(--muted); }
.cognition-specimen { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gutter); }
.cognition-specimen .specimen-label, .cognition-specimen .specimen-caption { grid-column: 1/-1; }
.cognition-specimen .specimen-words { grid-column: 1/-1; grid-row: 2; }
.specimen-square { grid-column: 4/5; grid-row: 2; align-self: end; width: 100%; aspect-ratio: 1; background: var(--accent); }
.specimen-caption { margin-top: 28px; }
.case-copy { grid-column: 8/13; grid-row: 1; }
.case-copy h3 { margin-block: 24px; }
.case-copy > p:not(.case-kicker) { max-width: 32em; margin-top: 18px; line-height: 1.9; }
.case-copy .case-note { font-size: 13px; color: var(--muted); }
.case-links { margin-top: 24px; display: flex; align-items: flex-start; flex-direction: column; gap: 12px; }
.case-copy > .text-link { margin-top: 24px; }
.secondary-link { color: var(--muted); font-size: 13px; }
.case-side { grid-column: 1/3; grid-row: 1; }
.object-plate { background: var(--ink); aspect-ratio: 1; position: relative; margin-block: 24px 16px; }
.object-plate img { width: 100%; height: 100%; position: absolute; top: 0; left: 0; }
.object-measures { margin-top: 24px; font-size: 13px; }
.object-measures > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gutter); padding-block: 9px; border-top: 1px solid var(--rule); }
.object-measures dt { color: var(--muted); }
.identity-specimen { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gutter); }
.identity-specimen .specimen-label, .identity-wordmark, .identity-specimen figcaption { grid-column: 1/-1; }
.identity-specimen > img:first-of-type { grid-column: 1/4; width: 100%; margin-top: 24px; }
.identity-wordmark { width: 100%; }
.identity-specimen figcaption { margin-top: 16px; }

.about { border-top: 1px solid var(--ink); padding-block: 28px 80px; margin-top: 64px; align-items: start; }
.about-content { grid-column: 3/9; }
.about-affiliation { margin-top: 16px; font-size: 16px; }
.about-contact { margin-top: 28px; font-size: 14px; }
.about-copy { max-width: 520px; margin-top: 24px; color: var(--muted); line-height: 1.9; }
.about-mark { grid-column: 11/13; }
.about-mark img { width: 100%; }
.about-mark .micro { margin-top: 24px; }
.station { border-top: 1px solid var(--ink); padding-block: 28px 44px; row-gap: 20px; align-items: start; }
.station > .section-number { grid-row: 1; }
.station-square { display: block; aspect-ratio: 1; }
.station-square-surface { display: block; width: 100%; aspect-ratio: 1; background: var(--accent); transform-origin: left bottom; }
.station-square-primary { grid-column: 1/2; grid-row: 2; }
.station-square-secondary { grid-column: 2/3; grid-row: 3; }
.station-content { grid-column: 5/10; grid-row: 1/4; }
.station-content > p:not(.micro) { margin-top: 18px; font-size: 18px; line-height: 1.7; }
.station-content a { margin-top: 24px; }
.station-content .station-address { margin-top: 16px; overflow-wrap: anywhere; }
.station-meta { grid-column: 11/13; grid-row: 1; padding-top: 6px; }
.footer { border-top: 1px solid var(--ink); padding-block: 26px 32px; margin-top: 48px; font-size: 13px; align-items: start; }
.footer > p:first-child { grid-column: 1/4; }
.footer-description { grid-column: 5/10; }
.back-to-top { grid-column: 11/13; min-height: 44px; }

@media (max-width: 900px) {
  :root { --gutter: 16px; }
  .masthead { row-gap: 18px; }
  .brand { grid-column: 1/5; }
  .site-label { grid-column: 9/13; }
  .navigation a { grid-row: 2; }
  .navigation a:nth-child(1) { grid-column: 1/4; }
  .navigation a:nth-child(2) { grid-column: 4/7; }
  .navigation a:nth-child(3) { grid-column: 7/10; }
  .navigation a:nth-child(4) { grid-column: 10/13; }
  .hero-wordmark { grid-column: 1/13; margin-block: 40px; }
  .hero-statement { grid-column: 5/13; }
  .hero-link { grid-column: 5/9; margin-top: 20px; }
  .hero-location { grid-column: 10/13; }
  .halloween-kicker { grid-column: 2/9; grid-row: 1; display: flex; gap: 12px; }
  .halloween-event h2 { grid-column: 2/9; grid-row: 2; }
  .halloween-intro { grid-column: 2/9; grid-row: 3; }
  .halloween-cta { grid-column: 2/9; grid-row: 4; }
  .halloween-art { grid-column: 10/12; grid-row: 2/5; }
  .project-title { grid-column: 3/10; }
  .project-description { grid-column: 3/10; grid-row: 2; }
  .project-meta { grid-column: 10/12; grid-row: 1; }
  .project-toggle { grid-row: 1; }
  .case-copy { grid-column: 7/13; }
  .case-side { font-size: 10px; }
  .about-content { grid-column: 3/10; }
  .station-content { grid-column: 4/10; }
}

@media (max-width: 600px) {
  :root { --margin: 20px; --gutter: 12px; }
  .micro { font-size: 10px; }
  .masthead { padding-block: 20px 16px; row-gap: 20px; }
  .brand { grid-column: 1/7; width: 156px; }
  .site-label { grid-column: 7/13; font-size: 11px; }
  .site-label .micro { font-size: 9px; letter-spacing: 0; }
  .navigation a { grid-row: 2; font-size: 12px; }
  .navigation a:nth-child(1) { grid-column: 1/4; }
  .navigation a:nth-child(2) { grid-column: 4/7; }
  .navigation a:nth-child(3) { grid-column: 7/10; }
  .navigation a:nth-child(4) { grid-column: 10/13; margin: 0; }
  .hero { padding-block: 24px 40px; }
  .hero-label { grid-column: 1/9; }
  .hero-location { grid-column: 9/13; }
  .hero-wordmark { margin-block: 40px 32px; }
  .hero-index { grid-column: 1/13; padding: 0; margin-bottom: 24px; }
  .hero-statement { grid-column: 3/13; }
  .hero-statement > p:first-child { font-size: clamp(27px, 7vw, 38px); }
  .hero-description { margin-top: 16px; font-size: 14px; }
  .hero-link { grid-column: 3/9; margin-top: 18px; }
  .halloween-event { row-gap: 10px; padding-block: 20px; }
  .halloween-kicker { grid-column: 2/9; font-size: 9px; gap: 8px; }
  .halloween-event h2 { grid-column: 2/12; font-size: clamp(18px, 5vw, 20px); }
  .halloween-intro { grid-column: 2/12; }
  .halloween-art { grid-column: 10/12; grid-row: 1; align-self: start; }
  .halloween-cta { grid-column: 2/12; font-size: 12px; }
  .projects { padding-top: 48px; }
  .section-heading { padding-block: 20px 28px; row-gap: 20px; }
  .section-number { grid-column: 1/13; padding: 0; }
  .section-heading h2 { grid-column: 3/13; font-size: 30px; }
  .section-note { grid-column: 3/13; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 12px; }
  .project-row { padding-block: 26px; row-gap: 12px; }
  .project-number { grid-column: 1/3; font-size: 24px; }
  .project-title { grid-column: 3/12; }
  .project-name { font-size: 23px; }
  .project-title .micro { margin-top: 8px; font-size: 9px; overflow-wrap: anywhere; }
  .project-description { grid-column: 3/12; font-size: 13px; }
  .project-meta { grid-column: 3/12; grid-row: 3; display: flex; gap: 14px; padding: 0; }
  .project-toggle { grid-column: 12/13; padding-top: 8px; }
  .toggle-symbol, .toggle-symbol::before, .toggle-symbol::after { width: 14px; }
  .project-panel { padding-block: 12px 36px; row-gap: 28px; }
  .project-specimen, .cognition-specimen, .object-specimen, .identity-specimen { grid-column: 3/13; grid-row: auto; }
  .case-copy { grid-column: 3/13; grid-row: auto; }
  .case-side { grid-column: 3/13; grid-row: auto; }
  .case-copy > p:not(.case-kicker) { font-size: 14px; }
  .case-copy .case-note, .case-links .text-link { font-size: 12px; }
  .case-copy h3 { margin-block: 20px; font-size: 26px; }
  .specimen-words { font-size: 60px; }
  .cognition-specimen { grid-template-columns: repeat(10, minmax(0, 1fr)); }
  .specimen-square { grid-column: 9/11; }
  .identity-specimen { grid-template-columns: repeat(10, minmax(0, 1fr)); }
  .identity-specimen > img:first-of-type { grid-column: 1/7; }
  .about { margin-top: 40px; padding-block: 20px 48px; row-gap: 28px; }
  .about-content { grid-column: 3/13; }
  .about-content h2 { font-size: 30px; }
  .about-affiliation { font-size: 14px; }
  .about-copy { margin-top: 20px; font-size: 14px; }
  .about-mark { grid-column: 3/13; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: var(--gutter); align-items: start; }
  .about-mark img { grid-column: 1/4; }
  .about-mark .micro { grid-column: 4/11; margin-top: 12px; }
  .station { padding-block: 20px 32px; row-gap: 24px; }
  .station-content { grid-column: 3/13; grid-row: 2/5; }
  .station-content h2 { font-size: 30px; }
  .station-content > p:not(.micro) { font-size: 16px; }
  .station-square-primary { grid-column: 1/2; grid-row: 2; }
  .station-square-secondary { grid-column: 2/3; grid-row: 3; }
  .station-meta { grid-column: 3/13; grid-row: 5; padding: 0; }
  .footer { margin-top: 32px; padding-block: 24px; row-gap: 12px; }
  .footer > p:first-child { grid-column: 1/9; }
  .footer-description { grid-column: 1/10; grid-row: 2; }
  .back-to-top { grid-column: 10/13; grid-row: 1; font-size: 10px; }
}

/* Only offscreen content is prepared; the first screen is readable immediately. */
.motion-prepared { opacity: 0; transform: translateY(10px); }
.hero-wordmark.motion-prepared { opacity: .25; transform: none; clip-path: inset(0 0 100% 0); }
.station-square-surface.motion-prepared { transform: scale(.8); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .text-link::after, .text-link > span, .toggle-symbol, .toggle-symbol::before, .toggle-symbol::after, .project, .project-number, .project-name { transition: none; }
  .motion-prepared { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .text-link:hover > span, .text-link:focus-visible > span, .text-link:active > span, .project-row:active .toggle-symbol { transform: none; }
}
