@charset "UTF-8";

:root {
  color-scheme: light;
  --paper: #f3f5f8;
  --surface: #ffffff;
  --ink: #142136;
  --muted: #586579;
  --faint: #77849a;
  --line: #d7dfe8;
  --accent: #315fce;
  --accent-soft: #e8eefc;
  --type: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  font-family: var(--type);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

*, *::before, *::after { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; background: var(--paper); }
body { min-width: 320px; margin: 0; color: var(--ink); background: var(--paper); font: 400 15px/1.6 var(--type); }
button, input, select { color: inherit; font: inherit; }
a { color: inherit; text-decoration: none; }
button, a, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.skip-link { position: fixed; z-index: 10; top: -4rem; left: 1rem; padding: .7rem 1rem; color: white; background: var(--ink); }
.skip-link:focus { top: 1rem; }
.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.header-inner, .footer-inner { width: min(1240px, calc(100% - 72px)); min-height: 74px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: -.035em; white-space: nowrap; }
.wordmark b { color: var(--accent); font-weight: 700; }
.wordmark-mark { display: grid; width: 27px; height: 27px; place-items: center; border: 1px solid var(--accent); color: var(--accent); font-size: 14px; font-weight: 700; }
nav { display: flex; align-items: center; gap: 30px; color: var(--muted); font-size: 12px; }
nav a, .footer-top { transition: color .18s ease; }
nav a:hover, .footer-top:hover { color: var(--accent); }
.hero { border-bottom: 1px solid var(--line); background: var(--paper); }
.hero-inner { width: min(1240px, calc(100% - 72px)); min-height: 455px; margin: auto; display: grid; grid-template-columns: minmax(0, 1fr) 230px; align-items: center; gap: 80px; padding: 72px 0 77px; }
.hero-copy { max-width: 780px; }
.hero-context, .section-kicker { margin: 0; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .01em; }
.hero h1, .detail-header h1, .not-found h1, .load-error h1 { max-width: 800px; margin: 23px 0 18px; font-size: clamp(55px, 7.6vw, 88px); font-weight: 700; line-height: .99; letter-spacing: -.075em; }
.hero-intro { max-width: 510px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.7; }
.hero-link { display: inline-block; margin-top: 27px; padding-bottom: 4px; border-bottom: 1px solid var(--accent); color: var(--accent); font-size: 12px; font-weight: 650; transition: border-color .18s ease, color .18s ease; }
.hero-link:hover { border-color: var(--ink); color: var(--ink); }
.hero-emblem { position: relative; width: 210px; height: 230px; justify-self: center; }
.emblem-disc { position: absolute; top: 2px; left: 35px; display: grid; width: 140px; height: 140px; place-items: center; border: 1px solid var(--accent); border-radius: 50%; color: var(--accent); }
.emblem-disc::before { position: absolute; inset: 8px; border: 1px solid #aebfe9; border-radius: 50%; content: ""; }
.emblem-disc span { font-size: 39px; font-weight: 700; letter-spacing: -.1em; }
.emblem-ribbon { position: absolute; z-index: 1; top: 127px; left: 30px; display: grid; width: 150px; min-height: 37px; place-items: center; padding-bottom: 4px; color: white; background: var(--accent); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%); font-size: 10px; font-weight: 650; letter-spacing: .01em; }
.emblem-caption { position: absolute; right: 0; bottom: 0; left: 0; max-width: 195px; margin: auto; color: var(--muted); font-size: 10px; line-height: 1.4; text-align: center; }
.gallery-section { min-height: 290px; padding: 74px 0 96px; background: var(--surface); }
.section-inner { width: min(1240px, calc(100% - 72px)); margin: auto; }
.gallery-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 25px; }
.gallery-heading h2, .empty-gallery h2 { margin: 8px 0 0; font-size: clamp(36px, 4.5vw, 53px); font-weight: 650; line-height: 1.08; letter-spacing: -.06em; }
.result-count { padding-bottom: 5px; color: var(--muted); font-size: 12px; }
.gallery-controls { display: grid; grid-template-columns: minmax(190px, 1.5fr) repeat(5, minmax(92px, .62fr)) auto; align-items: end; gap: 16px; margin-bottom: 31px; padding: 15px 0 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.search-control { display: flex; min-width: 0; align-items: center; gap: 10px; height: 39px; padding: 0 11px; border: 1px solid var(--line); background: var(--surface); }
.search-control:focus-within { border-color: var(--accent); }
.search-control svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--muted); stroke-width: 1.6; }
.search-control input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 12px; }
.search-control input::placeholder { color: var(--faint); }
.filter-control { display: grid; min-width: 0; gap: 3px; color: var(--muted); font-size: 11px; font-weight: 550; }
.filter-control select { width: 100%; min-width: 0; height: 23px; padding: 0 15px 0 0; border: 0; color: var(--ink); background: transparent; font-size: 12px; cursor: pointer; }
.clear-button { align-self: center; padding: 6px 0 6px 4px; border: 0; color: var(--accent); background: none; font-size: 11px; cursor: pointer; }
.clear-button:hover, .text-button:hover { color: var(--ink); }
.is-hidden { display: none !important; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 34px; row-gap: 29px; }
.project-card { position: relative; min-width: 0; display: flex; flex-direction: column; border-top: 1px solid var(--line); background: transparent; }
.project-card:hover .card-arrow { transform: translate(2px, -2px); }
.project-card--lead { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); align-items: stretch; border-top: 0; }
.project-cover { position: relative; overflow: hidden; aspect-ratio: 1.62; background: #e6ebf2; }
.project-cover img { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover-placeholder { position: absolute; inset: 0; display: grid; place-items: center; background: #e8eefc; color: var(--accent); }
.cover-placeholder > span { display: grid; width: 60px; height: 60px; place-items: center; border: 1px solid #9bafe2; border-radius: 50%; font-size: 23px; font-weight: 650; letter-spacing: -.09em; }
.cover-dot { color: var(--accent); }
.project-cover--detail { aspect-ratio: 1.78; }
.card-content { display: flex; flex: 1; flex-direction: column; padding: 19px 0 4px; }
.project-card--lead .card-content { justify-content: center; padding: 36px clamp(24px, 4vw, 66px); }
.card-award { display: flex; align-items: center; gap: 8px; min-height: 19px; color: var(--accent); font-size: 11px; font-weight: 650; }
.award-star { display: grid; width: 19px; height: 19px; place-items: center; border: 1px solid #a8bae8; border-radius: 50%; font-size: 10px; line-height: 1; }
.placement { margin-left: auto; color: var(--muted); font-size: 10px; font-weight: 500; }
.project-card h3 { max-width: 100%; margin: 13px 0 7px; font-size: clamp(23px, 2.3vw, 29px); font-weight: 650; line-height: 1.16; letter-spacing: -.045em; }
.project-card--lead h3 { max-width: 560px; margin-top: 17px; font-size: clamp(31px, 4vw, 46px); }
.card-summary { max-width: 570px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.project-card--lead .card-summary { max-width: 440px; font-size: 14px; }
.card-byline { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 7px 14px; margin-top: 17px; padding-top: 12px; border-top: 1px solid var(--line); color: #3d4c63; font-size: 10px; }
.card-event { color: var(--muted); text-align: right; }
.card-tags, .detail-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 13px; }
.card-tag, .detail-tags span { padding: 3px 7px; border: 1px solid var(--line); color: var(--muted); font-size: 10px; line-height: 1.35; }
.card-arrow { position: absolute; top: 12px; right: 12px; z-index: 2; display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; color: var(--ink); background: #ffffffed; font-size: 16px; transition: transform .18s ease; }
.project-card--lead .card-arrow { top: 14px; right: calc(44% + 14px); }
.empty-state { grid-column: 1 / -1; display: grid; min-height: 220px; place-content: center; justify-items: center; padding: 34px 16px; border-top: 1px solid var(--line); text-align: center; }
.empty-mark { color: var(--accent); font-size: 26px; }
.empty-state h3 { margin: 9px 0 4px; font-size: 23px; font-weight: 650; letter-spacing: -.035em; }
.empty-state p { max-width: 380px; margin: 0; color: var(--muted); font-size: 12px; }
.text-button { margin-top: 16px; padding: 3px 0; border: 0; color: var(--accent); background: transparent; font-size: 11px; cursor: pointer; }
.text-button span { padding-left: 7px; }
.empty-gallery { min-height: 245px; padding: 12px 0 0; }
.empty-gallery h2 { max-width: 670px; margin-top: 13px; }
.empty-gallery > p { max-width: 455px; margin: 18px 0 0; color: var(--muted); font-size: 13px; }
.about-section { padding: 82px 0 86px; background: var(--paper); }
.about-inner { width: min(810px, calc(100% - 72px)); margin: auto; }
.about-inner > p { margin: 17px 0 22px; font-size: clamp(22px, 3vw, 31px); font-weight: 550; line-height: 1.45; letter-spacing: -.04em; }
.about-signoff { color: var(--muted); font-size: 11px; font-weight: 650; }
.about-signoff i { margin-left: 6px; color: var(--accent); font-style: normal; }
.site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.footer-inner { min-height: 78px; }
.footer-inner p, .footer-top { margin: 0; color: var(--muted); font-size: 10px; }
.detail-page { min-height: 70vh; padding: 40px 0 92px; background: var(--surface); }
.detail-inner { width: min(840px, calc(100% - 56px)); margin: auto; }
.back-link { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); font-size: 11px; transition: color .18s ease; }
.back-link:hover { color: var(--accent); }
.detail-header { padding: 59px 0 31px; }
.detail-header h1 { margin: 17px 0 13px; font-size: clamp(46px, 7vw, 76px); }
.detail-summary { max-width: 660px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.7; }
.detail-byline { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 21px; color: #3d4c63; font-size: 11px; }
.detail-tags { margin-top: 15px; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 25px; }
.action-link { display: inline-flex; align-items: center; justify-content: center; gap: 17px; min-height: 41px; padding: 0 14px; border: 1px solid var(--line); font-size: 11px; transition: border-color .18s ease, background .18s ease; }
.action-link:hover { border-color: var(--accent); background: var(--accent-soft); }
.action-primary { border-color: var(--accent); color: white; background: var(--accent); }
.action-primary:hover { border-color: #244cae; color: white; background: #244cae; }
.detail-art { margin: 0 0 48px; }
.markdown-body { max-width: 670px; margin: auto; color: #26354b; font-size: 15px; line-height: 1.85; overflow-wrap: anywhere; }
.markdown-body > :first-child { margin-top: 0; }
.markdown-body h1, .markdown-body h2, .markdown-body h3, .markdown-body h4 { margin: 1.9em 0 .55em; color: var(--ink); font-weight: 650; line-height: 1.2; letter-spacing: -.045em; }
.markdown-body h1 { font-size: 36px; }
.markdown-body h2 { font-size: 29px; }
.markdown-body h3 { font-size: 23px; }
.markdown-body h4 { font-size: 18px; }
.markdown-body p { margin: 0 0 1.35em; }
.markdown-body a { color: #234eae; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.markdown-body ul, .markdown-body ol { margin: 0 0 1.5em; padding-left: 1.45em; }
.markdown-body li { padding-left: .25em; }
.markdown-body li + li { margin-top: .25em; }
.markdown-body blockquote { margin: 1.6em 0; padding: .3em 0 .3em 20px; border-left: 2px solid var(--accent); color: var(--muted); }
.markdown-body blockquote p:last-child { margin-bottom: 0; }
.markdown-body img { display: block; max-width: 100%; height: auto; margin: 1.7em auto; }
.markdown-body table { display: block; max-width: 100%; margin: 1.7em 0; overflow-x: auto; border-collapse: collapse; font-size: 12px; line-height: 1.5; }
.markdown-body th, .markdown-body td { padding: 9px 12px; border: 1px solid var(--line); text-align: left; }
.markdown-body th { background: var(--paper); }
.markdown-body :not(pre) > code { padding: .12em .35em; background: #edf1f6; font-size: .86em; }
.markdown-body pre { overflow-x: auto; margin: 1.5em 0; padding: 17px; color: #eef3fc; background: #17263d; font: 12px/1.65 ui-monospace, SFMono-Regular, Consolas, monospace; }
.markdown-body pre code { font: inherit; }
.markdown-body hr { margin: 2em 0; border: 0; border-top: 1px solid var(--line); }
.back-link--bottom { margin-top: 52px; }
.not-found, .load-error, .loading-state { width: min(840px, calc(100% - 56px)); min-height: 59vh; margin: auto; padding: 86px 0; }
.not-found h1, .load-error h1 { font-size: clamp(50px, 7vw, 76px); }
.load-error p, .loading-state p { max-width: 480px; color: var(--muted); font-size: 13px; }
.load-error code { font-size: 11px; }
.loading-state { min-height: 49vh; }
.loading-state p { font-size: 20px; font-weight: 550; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr) 175px; gap: 35px; }
  .hero-emblem { transform: scale(.86); transform-origin: center; }
  .gallery-controls { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px 18px; }
  .search-control { grid-column: span 2; }
  .project-card--lead { grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); }
  .project-card--lead .card-content { padding: 25px; }
  .project-card--lead h3 { font-size: 34px; }
  .project-card--lead .card-arrow { right: calc(48% + 12px); }
}
@media (max-width: 660px) {
  .header-inner, .footer-inner, .hero-inner, .section-inner { width: calc(100% - 40px); }
  .header-inner { min-height: 64px; gap: 15px; }
  .wordmark { gap: 8px; font-size: 12px; }
  .wordmark-mark { width: 24px; height: 24px; }
  nav { gap: 15px; font-size: 10px; }
  .hero-inner { min-height: 0; grid-template-columns: 1fr; gap: 4px; padding: 55px 0 23px; }
  .hero h1 { margin: 20px 0 14px; font-size: clamp(44px, 12vw, 64px); }
  .hero-intro { max-width: 430px; font-size: 14px; }
  .hero-link { margin-top: 21px; }
  .hero-emblem { width: 145px; height: 142px; justify-self: end; margin: -4px 3px 0 0; transform: scale(.66); transform-origin: top right; }
  .gallery-section { padding: 52px 0 66px; }
  .gallery-heading { align-items: end; gap: 12px; margin-bottom: 20px; }
  .gallery-heading h2, .empty-gallery h2 { font-size: 37px; }
  .result-count { padding-bottom: 4px; font-size: 10px; white-space: nowrap; }
  .gallery-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; margin-bottom: 22px; }
  .search-control { grid-column: 1 / -1; }
  .filter-control select { width: 100%; }
  .project-grid { grid-template-columns: 1fr; row-gap: 22px; }
  .project-card--lead { grid-column: auto; display: flex; }
  .project-cover { aspect-ratio: 1.65; }
  .project-card--lead .card-content { padding: 18px 0 4px; }
  .project-card h3, .project-card--lead h3 { margin-top: 12px; font-size: 27px; }
  .project-card--lead .card-summary { font-size: 13px; }
  .card-summary { min-height: 0; }
  .project-card--lead .card-arrow { top: 12px; right: 12px; }
  .empty-gallery { min-height: 265px; }
  .empty-gallery h2 br { display: none; }
  .about-section { padding: 61px 0; }
  .about-inner { width: calc(100% - 40px); }
  .about-inner > p { font-size: 24px; }
  .footer-inner { min-height: 73px; flex-wrap: wrap; gap: 8px 14px; padding: 14px 0; }
  .footer-inner p { order: 3; width: 100%; }
  .detail-page { padding-top: 29px; }
  .detail-inner { width: calc(100% - 40px); }
  .detail-header { padding: 40px 0 24px; }
  .detail-header h1 { margin: 15px 0 11px; font-size: 51px; }
  .detail-summary { font-size: 14px; }
  .detail-art { margin-bottom: 33px; }
  .project-cover--detail { aspect-ratio: 1.4; }
  .markdown-body { font-size: 14px; }
  .markdown-body h1 { font-size: 31px; }
  .markdown-body h2 { font-size: 26px; }
  .markdown-body h3 { font-size: 22px; }
  .not-found, .load-error, .loading-state { width: calc(100% - 40px); min-height: 55vh; padding: 67px 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
