@property --ground {
  syntax: "<color>";
  inherits: true;
  initial-value: #171c18;
}

@property --accent {
  syntax: "<color>";
  inherits: true;
  initial-value: #d1dfb9;
}

@property --film-tint {
  syntax: "<color>";
  inherits: true;
  initial-value: #121a14;
}

:root {
  color-scheme: dark;
  --ground: #171c18;
  --panel: color-mix(in srgb, var(--ground), var(--accent) 8%);
  --ink: #f3f0e6;
  --muted: #c1c9b9;
  --accent: #d1dfb9;
  --line: color-mix(in srgb, var(--ground), var(--accent) 32%);
  --film-tint: #121a14;
  --work-title-size: clamp(2rem, 6vw, 6.5rem);
  --work-header-height: 70px;
  transition: --ground .85s ease, --accent .85s ease, --film-tint .85s ease;
  --gutter: clamp(20px, 5vw, 78px);
  --mono: ui-monospace, Consolas, monospace;
}

:root[data-film-tone="clay"] {
  --ground: #241b16;
  --accent: #f1c5a1;
  --film-tint: #2f1c13;
}
:root[data-film-tone="steel"] {
  --ground: #151d22;
  --accent: #b9d5e4;
  --film-tint: #111f29;
}
:root[data-film-tone="grain"] {
  --ground: #211e17;
  --accent: #e6d3a6;
  --film-tint: #292313;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 16px/1.5 "Segoe UI", sans-serif; }
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button { font: inherit; color: inherit; cursor: pointer; }
img, video { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.skip { position: absolute; left: var(--gutter); top: 8px; z-index: 5; transform: translateY(-150%); background: var(--ground); padding: 8px; }
.skip:focus { transform: none; }

.site-header, footer {
  margin-inline: var(--gutter);
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  border-bottom: 1px solid var(--line);
}
.site-header nav { display: flex; gap: clamp(12px, 3vw, 42px); flex-wrap: wrap; }
.site-brand { font-weight: 650; }
.site-identity { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px 18px; }
.intro .site-header { margin: 0; border: 0; }
.site-header nav, footer { font-size: .83rem; }

.section-label, .card-top, #film-toggle, .timeline-date, .card-date, .detail-eyebrow, .story-meta,
.pub-index, .preview-caption, .preview-facts dt, .preview-prompt, .story-figure figcaption > span, .chapter-heading > span {
  color: var(--muted);
  font: .71rem/1.45 var(--mono);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.intro {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  padding-inline: var(--gutter);

}
.hero-content {
  flex: 1;
  display: grid;
  grid-template-columns: [identity] minmax(0, 55fr) [highlights] minmax(0, 45fr);
  margin-inline-end: calc(-1 * var(--gutter));
  gap: clamp(24px, 5vw, 84px);
  padding-block: 0 6px;
}
.hero-left {
  grid-area: 1 / identity;
  position: relative;
  display: grid;
  grid-template-rows: 1fr;
  grid-auto-rows: auto;
  gap: 12px;
  min-width: 0;
}
.hero-main { position: relative; display: grid; align-items: center; min-width: 0; overflow: hidden; }
.hero-identity { display: grid; justify-items: start; gap: clamp(16px, 3svh, 36px); padding-block: 18px; }
.hero-identity h1 {
  font: 400 clamp(2.5rem, 8vw, 10rem)/1.04 Georgia, serif;
  letter-spacing: -.045em;
}
.hero-degree {
  display: grid;
  gap: 2px;
  color: var(--muted);
  font: 400 clamp(.95rem, 1.55vw, 1.5rem)/1.35 Georgia, serif;
  letter-spacing: 0;
  text-transform: none;
}
.hero-degree strong { font-weight: 400; color: var(--ink); font-size: 1.16em; }
.hero-work {
  grid-area: 1 / highlights;
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
}
.hero-work h2 { margin-bottom: 6px; font-size: 1rem; font-weight: 700; }
.cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: 1fr;
  gap: clamp(8px, 1.5svh, 18px);
}
.role-card {
  position: relative;
  display: grid;
  isolation: isolate;
  align-items: end;
  min-width: 0;
  min-height: clamp(104px, 19svh, 280px);
  padding: 0;
  background: var(--panel);
  border: 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  transition: color .25s;
}
.role-card:is(:hover,:focus-visible) {
  color: var(--accent);
}
.role-card:focus-visible { outline-offset: -4px; }
.role-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #101711e8, #10171185 65%, #10171133),
              linear-gradient(0deg, #1017119c, transparent 85%);
}
.card-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.65);
  transition: filter .3s ease;
}
.role-card:is(:hover,:focus-visible) .card-photo { filter: none; }
.soar .card-photo { object-position: 50% 36%; }
.card-top {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px 7px;
  background: var(--ground);
}
.card-top > span:first-child { display: none; }
.card-top .arrow { font-size: 1rem; }
.card-content {
  display: grid;
  gap: 5px;
  padding: clamp(14px, 2vw, 32px);
  padding-inline-end: max(40px, var(--gutter));
}
.card-content strong {
  font-size: clamp(1rem, 2.2vw, 2.8rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
  margin-bottom: 5px;
}
.card-content strong br { display: none; }
.card-content .org { font-size: clamp(.85rem, 1.2vw, 1.25rem); font-weight: 650; }
.org-full { overflow-wrap: anywhere; color: var(--muted); font-size: clamp(.75rem, .95vw, 1rem); line-height: 1.3; }
.card-kicker, .card-bottom, .role-figure-caption { display: none; }

.role-previews {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.role-preview {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: auto minmax(80px, 1fr);
  background: var(--panel);
  color: var(--ink);
  overflow: auto;
  transform: translateX(101%);
  opacity: 0;
  transition: transform .43s cubic-bezier(.19,1,.22,1), opacity .25s;
}
.role-preview .section-label, .role-preview .preview-caption { color: var(--muted); }
.role-preview-copy { display: grid; align-content: start; gap: 8px; padding: clamp(14px, 2vw, 36px); }
.preview-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 2px 0 0;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.preview-facts dd { margin: 2px 0 0; font-size: .84rem; font-weight: 650; }
.preview-prompt {
  justify-self: start;
  margin-top: 4px;
  padding: 7px 11px;
  color: var(--ground);
  background: var(--accent);
  border: 1px solid var(--accent);
}
.lab-highlight .card-photo, #preview-lab .role-preview-photo img {
  object-view-box: inset(-8%);
}
.role-preview h2 { font: 400 clamp(1.55rem, 3.3vw, 3.6rem)/1.04 Georgia, serif; letter-spacing: -.045em; }
.role-preview-photo { display: grid; grid-template-rows: minmax(0, 1fr) auto; min-height: 0; }
.role-preview-photo img { width: 100%; height: 100%; object-fit: cover; }
#preview-soar img { object-position: center 45%; }
.role-preview-photo figcaption { padding: 8px clamp(16px, 2.6vw, 46px); }
.role-preview p { max-width: 53ch; }
.preview-org { font-size: .8rem; font-weight: 700; }
.role-previews[data-active="soar"] #preview-soar,
.role-previews[data-active="aim"] #preview-aim,
.role-previews[data-active="lab"] #preview-lab { transform: none; opacity: 1; z-index: 1; }
.hero-foot {
  border-bottom: 1px solid var(--line);
  padding: 0 0 max(17px, env(safe-area-inset-bottom));
  margin-bottom: 10px;
}

.archive-section, .publication-section, .about-section { padding: clamp(58px, 9vw, 135px) var(--gutter); }
.archive-section { padding-top: 0; padding-bottom: clamp(36px, 4vw, 56px); }
.publication-section, .about-section {
  margin-inline: var(--gutter);
  padding-inline: 0;
  padding-top: clamp(24px, 3vw, 42px);
  border-top: 1px solid var(--line);
}
.coming { display: grid; grid-template-columns: 1.2fr 1fr; align-items: end; gap: 20px; }
.coming p { max-width: 46ch; color: var(--muted); }
.publication-section h2, .about-section h2 {
  font-size: clamp(3rem, 8.2vw, 9rem);
  line-height: .84;
  letter-spacing: -.085em;
  font-weight: 560;
  margin: 18px 0 10px;
}
.gallery-filters button { background: none; border: 1px solid transparent; padding: 6px 11px; font-size: .83rem; }
.gallery-filters button[aria-pressed="true"] { background: var(--panel); border-color: var(--line); color: var(--accent); }

.showcase-card { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; padding: 0; text-align: left; }
.showcase-visual { width: 100%; aspect-ratio: 2.2; position: relative; overflow: hidden; background: var(--panel); display: grid; place-items: center; }
.showcase-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--cover-focus, var(--original-cover-focus, center)); transition: transform .45s ease; }
.showcase-card:hover img { transform: scale(1.055); }
.showcase-card[data-project="robot"] { --cover-focus: 50% 54%; }
.showcase-card[data-project="data"] { --cover-focus: 50% 0%; }
.showcase-card[data-project="sec"] { --cover-focus: 50% 17%; }
.showcase-card[data-project="plant"] .showcase-visual img {
  object-fit: contain;
  background: #dedbd2;
  transform: none;
}
.showcase-card[data-project="grow"] { --cover-focus: 50% 55%; }
.showcase-card[data-project="senior"] .showcase-visual img,
.showcase-card[data-project="revision"] .showcase-visual img,
.showcase-card[data-project="plane"] .showcase-visual img {
  object-fit: contain;
  background: #dedbd2;
  transform: none;
}

.showcase-card[data-project="senior"] .showcase-visual img {
  object-view-box: inset(19% 23% 37% 23%);
}
.project-art { color: var(--accent); display: grid; text-align: center; line-height: 1; }
.project-art b { font-size: clamp(3rem, 8vw, 7rem); letter-spacing: -.09em; }
.project-art small { font: .72rem var(--mono); }
.photo-labels { position: absolute; left: 8px; top: 8px; right: 42px; display: flex; flex-wrap: wrap; gap: 4px; }
.photo-category, .photo-award, .visual-open { padding: 4px 6px; background: #171c18e8; color: var(--ink); font-size: .65rem; }
.photo-award { border: 1px solid var(--accent); color: var(--accent); font-weight: 650; }
.visual-open { position: absolute; top: 8px; right: 8px; font-size: 1rem; }
.showcase-copy { display: grid; gap: 5px; width: 100%; padding: 10px 2px 12px; }
.showcase-copy strong { font-size: clamp(1.05rem, 1.7vw, 1.45rem); line-height: 1; letter-spacing: -.05em; }
.project-outcome { font-size: .8rem; font-weight: 650; }
.multi-tags { display: none; }
.showcase-bottom { display: flex; align-items: baseline; gap: 8px; }
.project-explore {
  margin-inline-start: auto;
  color: var(--accent);
  font: .66rem var(--mono);
  white-space: nowrap;
}

.project-chronology {
  width: min(100%, 440px);
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.timeline-date {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding-block: 6px;
  color: var(--accent);
  text-align: center;
}
.timeline-date::before, .timeline-date::after {
  content: "";
  width: 1px;
  height: clamp(10px, 2svh, 22px);
  background: var(--line);
}
.project-milestone:first-child .timeline-date::before { display: none; }
.timeline-order {
  margin-block: 4px 14px;
  padding: 7px 11px;
  color: var(--ground);
  background: var(--accent);
  border: 1px solid var(--accent);
  font: 600 .95rem/1.4 "Segoe UI", sans-serif;
  letter-spacing: normal;
  text-transform: none;
}
.archive-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 12px;
}
.project-chronology { grid-column: 1 / -1; }
.gallery-filter-rail { display: contents; visibility: hidden; }
.archive-section:has(> .project-views:not([hidden])) > .gallery-filter-rail {
  visibility: visible;
}
.gallery-filters {
  display: grid;
  align-self: start;
  gap: 4px;
  padding-bottom: 16px;
}
.gallery-filters button { text-align: start; }
@media (min-width: 850px) {
  .archive-section {
    grid-template-columns: minmax(0, 1fr) minmax(0, 440px) minmax(0, 1fr);
    column-gap: clamp(16px, 3vw, 50px);
  }
  .project-chronology { grid-area: 1 / 2; }
  .gallery-filters {
    grid-row: 1;
    position: sticky;
    width: min(100%, 200px);
    padding-top: 12px;
  }
  .archive-section:not(.is-grid-view) .gallery-filters button {
    justify-self: start;
    max-width: 100%;
  }
  .filter-left { grid-column: 1; justify-self: center; }
  .filter-right { grid-column: 3; justify-self: center; }
}

.publication-section { padding-bottom: 55px; }
.publication-list { margin-top: 30px; }
.publication-list article { border-top: 1px solid var(--line); padding: 18px 0; display: grid; grid-template-columns: minmax(95px, 1fr) 4fr; gap: 12px; }
.publication-list h3 { font-size: clamp(1.05rem, 2vw, 1.8rem); line-height: 1.15; font-weight: 600; }
.pub-venue, .publication-list p { color: var(--muted); font-size: .88rem; }
.pub-venue { display: block; margin: 7px 0; }
.about-section { border-top: 1px solid var(--line); }
.profile-link { display: inline-block; color: var(--accent); margin-top: 15px; font: .75rem var(--mono); }
.skills-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 32px; }
.skills-grid article { border-top: 1px solid var(--line); padding-top: 12px; }
.skills-grid h3 { font-size: 1rem; }
.skills-grid p { color: var(--muted); font-size: .88rem; margin-top: 6px; }
footer { border-top: 1px solid var(--line); border-bottom: 0; }

dialog {
  width: min(1320px, 96vw);
  max-height: 94dvh;
  padding: 0;
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--line);
  overscroll-behavior: contain;
}
dialog::backdrop { background: #0d130ed6; backdrop-filter: blur(5px); }
dialog[open] { animation: enter-story .32s cubic-bezier(.19,1,.22,1); }
@keyframes enter-story { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.report-toolbar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 10px clamp(18px, 5vw, 78px);
  border-bottom: 1px solid var(--line);
  background: var(--ground);
  color: var(--muted);
  font: .74rem var(--mono);
  text-transform: uppercase;
}
.close { border: 1px solid var(--line); padding: 7px 10px; background: var(--ground); font: inherit; text-transform: uppercase; }
.close:hover { border-color: var(--accent); color: var(--accent); }
.close span { margin-left: 6px; }
#detail-content {
  --report-top-padding: clamp(24px, 5vw, 68px);
  padding: var(--report-top-padding) clamp(18px, 5vw, 78px) 48px;
}
.report-overview {
  display: flex;
  flex-direction: column;
  min-height: calc(94dvh - var(--report-top-padding) - 52px);
}
.report-heading { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.report-heading:has(.story-result) {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.report-heading .story-result {
  flex: 1;
  align-content: center;
}
.detail-eyebrow { color: var(--accent); }
.detail-title { max-width: 23ch; font: 400 clamp(2rem, 5.5vw, 5.5rem)/1.02 Georgia, serif; letter-spacing: -.05em; margin: 10px 0 15px; }
.story-meta { display: flex; gap: 12px; align-items: center; }
.active-badge { color: var(--accent); }
.story-lead { font-size: clamp(1rem, 2vw, 1.38rem); margin: 20px 0; max-width: 65ch; }
.story-result {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  padding: clamp(14px, 2.2vw, 28px);
  border: 1px solid var(--line);
  border-inline-start: 3px solid var(--accent);
  background: var(--panel);
}
.story-result span { color: var(--accent); font: 700 .8rem/1.4 var(--mono); text-transform: uppercase; }
.story-result strong { font-size: clamp(1.2rem, 2.6vw, 1.85rem); line-height: 1.25; }
.story-result.story-skills strong { font-size: clamp(1rem, 1.8vw, 1.25rem); }
.chapter-nav { display: flex; gap: 5px; flex-wrap: wrap; margin-top: auto; padding-block: 18px 14px; }
.chapter-nav button, .story-end button { border: 1px solid var(--line); padding: 6px 8px; background: transparent; font-size: .76rem; }
.chapter-nav button:hover, .story-end button:hover, .detail-links a:hover { color: var(--accent); }
.update-watermark {
  position: fixed;
  z-index: 3;
  top: 50%;
  left: 50%;
  width: max-content;
  max-width: 100%;
  transform: translate(-50%, -50%) rotate(-25deg);
  color: var(--accent);
  opacity: .18;
  font: 700 clamp(1.5rem, 5vw, 5rem)/1.2 var(--mono);
  text-align: center;
  pointer-events: none;
}
.story-chapter { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 36px; scroll-margin-top: 68px; }
.story-body > .story-chapter:first-child { margin-top: 0; }
.chapter-heading h3 { font-size: clamp(1.35rem, 3vw, 2.5rem); letter-spacing: -.04em; line-height: 1.05; margin: 5px 0 12px; }
.chapter-copy { display: grid; gap: 10px; max-width: 72ch; }
.story-figure { margin-top: 18px; min-width: 0; }
.figure-enlarge { display: block; position: relative; }
.story-figure img, .story-figure video { width: 100%; max-height: 66vh; object-fit: contain; background: var(--ground); }
.figure-enlarge span { position: absolute; right: 8px; top: 8px; background: var(--ground); padding: 3px 8px; }
.story-figure figcaption { display: flex; gap: 10px; align-items: baseline; padding: 6px 0; color: var(--muted); font-size: .8rem; }
.story-figure figcaption > span { flex-shrink: 0; }
.additional-gallery, .slot-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.additional-gallery { grid-template-columns: minmax(0, 1fr); }
.media-slot { border: 1px dashed var(--line); padding: 12px; display: flex; gap: 10px; margin-top: 12px; }
.media-slot small { display: block; color: var(--muted); }
.detail-links, .story-end { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 20px; margin-top: 20px; }
.detail-links a { text-decoration: underline; }
.story-end { justify-content: space-between; border-top: 1px solid var(--line); padding-top: 12px; color: var(--muted); font: .73rem var(--mono); }

@media (max-width: 850px) {
  .skills-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .coming { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .hero-content { grid-template-columns: minmax(0, 1fr); margin-inline-end: 0; }
  .hero-left, .hero-work { grid-area: auto; }
  .hero-left:has(.role-previews[data-active]:not([data-active=""])) { min-height: 330px; }
  .hero-identity { gap: 16px; }
  .hero-identity h1 { font-size: clamp(2.5rem, 11vw, 4rem); }
  .role-card { min-height: clamp(126px, 22svh, 180px); }
}
@media (max-width: 470px) {
  .additional-gallery, .slot-grid { grid-template-columns: 1fr; }
  .publication-list article { grid-template-columns: 1fr; }
  .site-header { padding-block: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

.film-stage { position: relative; isolation: isolate; background: var(--ground); }
.film-backdrop { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.film-screen {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: center 48% / cover no-repeat url("assets/soar-launch.jpg");
}
.film-screen video, .film-screen::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.film-screen video {
  object-fit: cover;
  opacity: 0;
  object-position: center var(--launch-frame, 50%);
  transform: scale(var(--launch-scale, 1));
  transition: opacity .8s ease, object-position .22s linear, transform .22s linear;
}
.film-screen video[src$="/aegis-cut.mp4"] { --launch-frame: 67%; --launch-scale: 1.08; }
.film-screen video[src$="/robot-obstacle-background.mp4"] { object-position: center 43%; }
.film-screen video.is-current { opacity: 1; z-index: 1; }
.film-screen::after {
  content: "";
  z-index: 2;
  background: linear-gradient(95deg, color-mix(in srgb, var(--film-tint) 92%, transparent),
                             color-mix(in srgb, var(--film-tint) 54%, transparent)),
              linear-gradient(0deg, color-mix(in srgb, var(--film-tint) 75%, transparent), transparent 65%);
}
#film-toggle {
  justify-self: start;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 5px 9px;
}
.archive-intro {
  position: relative;
  --work-title-center: calc(50svh - var(--work-title-size) * .52);
  min-height: 100svh;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 40px var(--gutter);
  text-align: center;
  overflow-x: clip;
  background: linear-gradient(to bottom, transparent, var(--ground) 98%);
}
.work-title-slot {
  min-height: calc(var(--work-title-size) * 1.04);
}
.archive-intro h2 {
  font: 400 var(--work-title-size)/1.04 Georgia, serif;
  letter-spacing: -.045em;
}
.archive-intro h2.is-pinned {
  position: fixed;
  top: var(--work-title-center);
  inset-inline: var(--gutter);
  pointer-events: none;
  overflow: clip;
  transform: translateY(calc((16px - var(--work-title-center)) * var(--work-split, 0)));
}
.archive-intro h2.is-past-gallery { opacity: 0; }
.archive-intro h2 span {
  display: inline-block;
  transform-origin: center top;
  transform: translateX(calc(var(--work-split, 0) * var(--split-direction)))
             scale(calc(1 - .15 * var(--work-split, 0)));
}
.archive-intro h2 span:first-child { --split-direction: -19vw; }
.archive-intro h2 span:last-child { --split-direction: 19vw; }
.archive-section { position: relative; }
.film-stage:has(.work-header-backdrop.is-visible) { z-index: 2; }
.work-header-backdrop {
  position: fixed;
  inset: 0 0 auto;
  height: var(--work-header-height);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 50%, transparent);
  background: linear-gradient(var(--panel), var(--ground));
  pointer-events: none;
  opacity: 0;
}
.work-header-backdrop.is-visible { opacity: 1; }
.project-views {
  position: fixed;
  z-index: 3;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--line);
  background: var(--ground);
}
@media (min-width: 850px) and (prefers-reduced-motion: no-preference) {
  .project-views { top: calc(16px + var(--work-title-size) * .16); }
  :root { --work-header-height: max(78px, calc(24px + var(--work-title-size) * .92)); }
}
.project-views button {
  border: 0;
  background: transparent;
  padding: 9px 15px;
  font-size: clamp(.88rem, 1.15vw, 1.06rem);
  font-weight: 650;
  white-space: nowrap;
}
.project-views button[aria-pressed="true"] { background: var(--accent); color: var(--ground); }
.is-grid-view .gallery-filter-rail {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-column: 1 / -1;
  align-self: start;
}
.is-grid-view .gallery-filters {
  grid-area: auto / 1;
  position: static;
  width: 100%;
  padding: 0;
  transform: none;
}
.is-grid-view .gallery-filters + .gallery-filters { margin-top: 4px; }
.is-grid-view .project-chronology {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(12px, 2vw, 24px);
}
.is-grid-view .timeline-date { display: none; }
.is-grid-view .showcase-card { height: 100%; }
.is-grid-view .showcase-visual { aspect-ratio: 1.55; }
@media (min-width: 560px) {
  .is-grid-view .project-chronology { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 850px) {
  .archive-section.is-grid-view {
    grid-template-columns: clamp(132px, 11vw, 166px) minmax(0, 1fr);
    column-gap: 10px;
    padding-inline: clamp(12px, 1.8vw, 28px);
  }
  .is-grid-view .gallery-filter-rail {
    position: sticky;
    grid-area: 1 / 1;
  }
  .is-grid-view .project-chronology { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .is-grid-view .project-milestone { grid-column: span 3; min-width: 0; }
  .is-grid-view .project-chronology:has(> :last-child:nth-child(odd):nth-child(n+3)) > .project-milestone:nth-last-child(-n+3) {
    grid-column: span 2;
  }
}

@media (min-width: 850px) {
  .archive-section:not(.is-grid-view) .gallery-filters,
  .archive-section.is-grid-view .gallery-filter-rail {
    top: calc(var(--work-header-height) + 12px);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .project-enter:not(:focus-visible) {
    animation: project-enter .42s cubic-bezier(.2,.65,.3,1);
  }
}
@keyframes project-enter {
  from { transform: translate3d(0, 8px, 0); }
  to { transform: translate3d(0, 0, 0); }
}
