:root {
  color-scheme: light;
  --evergreen: #154e40;
  --marigold: #ecc23c;
  --chamber-violet: #65437d;
  --directory-paper: #f4f7f5;
  --ink: #193830;
  --soft-ink: #58635c;
  --line: #cbd4c8;
  --display-font: Georgia, "Times New Roman", serif;
  --body-font: Inter, "Avenir Next", Avenir, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 5rem;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--directory-paper);
  color: var(--ink);
  font-family: var(--body-font);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid var(--chamber-violet);
  outline-offset: 5px;
}

.page-width {
  width: min(100% - 3rem, 76rem);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 1rem;
  left: 1rem;
  padding: 0.65rem 1rem;
  transform: translateY(-180%);
  background: var(--marigold);
  color: var(--evergreen);
  font-weight: 750;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 2;
  border-bottom: 1px solid var(--line);
  background: var(--directory-paper);
}

.header-inner,
.footer-inner {
  display: flex;
  min-height: 4.75rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-block: 0.8rem;
  gap: 1rem;
}

.wordmark {
  color: var(--evergreen);
  font-family: var(--display-font);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  text-decoration: none;
}

/* The same home control is kept locally so each project remains independent. */
.home-button {
  display: inline-flex;
  min-height: 44px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.65rem 1rem;
  border: 1px solid #cbd3db;
  border-radius: 0.75rem;
  background: #f8fafc;
  color: #253244;
  font: 650 0.875rem/1.2 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-decoration: none;
  white-space: nowrap;
}

.home-button span[aria-hidden] {
  font-size: 1.2rem;
  line-height: 1;
}

.home-button:hover {
  background: #e6edf4;
  border-color: #8293a5;
  color: #182638;
}

.home-button:focus-visible {
  outline: 3px solid #547cb4;
  outline-offset: 4px;
}

.image-link {
  display: block;
  border-radius: inherit;
  cursor: zoom-in;
}

.image-link:focus-visible {
  outline: 3px solid #547cb4;
  outline-offset: -4px;
}

.capture-link {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  font: 650 0.8rem/1.4 system-ui, sans-serif;
  text-underline-offset: 0.25em;
  white-space: nowrap;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #e7f0ea;
  color: var(--evergreen);
}

.hero-layout {
  display: grid;
  min-height: 41rem;
  grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 0.95fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 7.5rem);
  padding-block: 4.5rem;
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding-block: 1.5rem;
}

.hero-kicker,
.section-label {
  margin: 0 0 0.9rem;
  color: var(--chamber-violet);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  line-height: 1.5;
}

.hero h1 {
  max-width: 9ch;
  margin: 0;
  color: var(--evergreen);
  font-family: var(--display-font);
  font-size: clamp(4.8rem, 8.6vw, 8.2rem);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 0.92;
  overflow-wrap: anywhere;
}

.hero-description {
  max-width: 33rem;
  margin: 1.5rem 0 0;
  color: var(--soft-ink);
  font-size: clamp(1.05rem, 1.5vw, 1.24rem);
  line-height: 1.6;
}

.primary-link {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.45rem;
  padding: 0.65rem 1rem;
  border: 1px solid var(--marigold);
  background: var(--marigold);
  color: var(--evergreen);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.primary-link:hover {
  background: var(--evergreen);
  color: var(--directory-paper);
}

.hero-screen {
  position: relative;
  z-index: 0;
  width: min(100%, 21rem);
  justify-self: center;
  margin: 0;
  padding-top: 0.75rem;
}

.hero-screen::before {
  position: absolute;
  z-index: -1;
  top: 15%;
  right: -8%;
  width: 75%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--marigold);
  content: "";
}

.screen-artwork {
  width: 100%;
  border-radius: 1rem;
}

.screen-artwork a,
.screen-artwork img {
  width: 100%;
  height: auto;
}

.screen-artwork a {
  display: block;
}

.screen-artwork img {
  object-fit: contain;
  object-position: center;
}

.hero-screen figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.25rem 0.8rem;
  margin-top: 0.7rem;
  color: var(--soft-ink);
  font-size: 0.78rem;
  text-align: center;
}

.project-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1.8rem 2.6rem;
  margin: 2.3rem 0 0;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.project-facts div {
  display: grid;
  gap: 0.12rem;
}

.project-facts dt {
  color: var(--soft-ink);
  font-size: 0.73rem;
  font-weight: 750;
  letter-spacing: 0.06em;
}

.project-facts dd {
  margin: 0;
  color: var(--evergreen);
  font-size: 0.93rem;
  font-weight: 700;
}

.project-frame {
  background: #e8e3ef;
  color: var(--evergreen);
}

.frame-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(18rem, 1.1fr);
  align-items: start;
  gap: clamp(3rem, 9vw, 9rem);
  padding-block: clamp(4.5rem, 8vw, 7rem);
}

.project-frame .section-label,
.project-details .section-label,
.timeline-intro .section-label {
  color: var(--chamber-violet);
}

.frame-copy h2,
.screens-heading h2,
.timeline-intro h2,
.details-intro h2 {
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(2.7rem, 5.4vw, 5rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 1.03;
}

.frame-copy > p:last-child {
  max-width: 35rem;
  margin: 1.2rem 0 0;
  color: rgb(37 40 32 / 83%);
}

.experience-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.experience-list li {
  padding: 1.1rem 0 1.35rem;
  border-top: 1px solid rgb(18 62 50 / 45%);
}

.experience-list li:last-child {
  border-bottom: 1px solid rgb(18 62 50 / 45%);
}

.experience-list h3 {
  margin: 0;
  color: var(--evergreen);
  font-family: var(--display-font);
  font-size: 1.55rem;
  font-weight: 400;
  letter-spacing: -0.025em;
}

.experience-list p {
  max-width: 32rem;
  margin: 0.35rem 0 0;
  color: rgb(37 40 32 / 81%);
  font-size: 0.94rem;
}

.screens-section {
  padding-block: clamp(4.5rem, 8vw, 7rem);
  background: var(--directory-paper);
}

.screens-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.screens-heading .section-label {
  color: var(--chamber-violet);
}

.screens-heading h2 {
  max-width: 12ch;
  color: var(--evergreen);
}

.screens-heading > p {
  max-width: 26rem;
  margin: 0 0 0.4rem;
  color: var(--soft-ink);
}

.screen-gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: center;
  gap: 2rem;
}

.screen-figure {
  min-width: 0;
  margin: 0;
}

.search-screen {
  grid-column: 4 / span 6;
}

.screen-stage {
  width: min(100%, 24rem);
  margin-inline: auto;
  border-radius: 1rem;
}

.screen-stage img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.screen-figure figcaption {
  display: flex;
  width: min(100%, 26rem);
  align-items: baseline;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.8rem auto 0;
}

.screen-figure figcaption span {
  color: var(--evergreen);
  font-size: 0.88rem;
  font-weight: 750;
}

.screen-figure figcaption a {
  flex: none;
  color: var(--chamber-violet);
  font-size: 0.78rem;
  font-weight: 700;
  text-underline-offset: 0.2em;
}

.project-timeline {
  background: #e7f0ea;
}

.timeline-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 8rem);
  padding-block: clamp(4rem, 7vw, 6rem);
}

.timeline-intro h2 {
  color: var(--evergreen);
}

.timeline-intro > p:last-child {
  margin: 0.8rem 0 0;
  color: var(--soft-ink);
}

.timeline-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline-list li {
  display: grid;
  grid-template-columns: minmax(8rem, 0.8fr) minmax(0, 1fr);
  align-items: start;
  column-gap: 1.5rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
}

.timeline-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.timeline-list time {
  color: var(--evergreen);
  font-weight: 800;
}

.timeline-list p {
  margin: 0;
  color: var(--ink);
}

.status-mark {
  display: inline-flex;
  grid-column: 2;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.5rem;
  color: var(--chamber-violet);
  font-size: 0.78rem;
  font-weight: 800;
}

.status-mark::before {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--marigold);
  content: "";
}

.project-details {
  background: var(--directory-paper);
}

.details-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(3rem, 8vw, 8rem);
  padding-block: clamp(4rem, 7vw, 6rem);
}

.details-intro h2 {
  max-width: 11ch;
  color: var(--evergreen);
}

.detail-list {
  margin: 0;
}

.detail-list div {
  display: grid;
  grid-template-columns: minmax(7rem, 0.6fr) minmax(0, 1.4fr);
  gap: 1.5rem;
  padding: 1.05rem 0;
  border-top: 1px solid var(--line);
}

.detail-list div:last-child {
  border-bottom: 1px solid var(--line);
}

.detail-list dt {
  color: var(--soft-ink);
  font-size: 0.83rem;
  font-weight: 750;
}

.detail-list dd {
  margin: 0;
  color: var(--evergreen);
  font-weight: 750;
}

.site-footer {
  background: var(--evergreen);
}

.footer-inner {
  min-height: 5rem;
}
.site-footer .wordmark {
  color: var(--directory-paper);
}

@media (max-width: 900px) {
  .hero-layout {
    min-height: 38rem;
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.8fr);
    gap: 2.5rem;
  }

  .hero h1 {
    font-size: clamp(4.3rem, 8.5vw, 6.5rem);
  }

  .frame-layout,
  .timeline-layout,
  .details-layout {
    gap: 3rem;
  }

  .search-screen {
    grid-column: 3 / span 8;
  }
}

@media (max-width: 680px) {
  .page-width {
    width: min(100% - 2rem, 76rem);
  }

  .header-inner,
  .footer-inner {
    min-height: 4.2rem;
  }

  .wordmark {
    font-size: 1.18rem;
  }

  .hero-layout {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 2.8rem;
    padding-block: 4rem 4.5rem;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(4.3rem, 17vw, 6.3rem);
    overflow-wrap: normal;
  }

  .hero-screen {
    width: min(82%, 21rem);
  }

  .frame-layout,
  .timeline-layout,
  .details-layout {
    grid-template-columns: 1fr;
    gap: 2.3rem;
  }

  .frame-layout,
  .timeline-layout,
  .details-layout,
  .screens-section {
    padding-block: 4rem;
  }

  .screens-heading {
    align-items: start;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
  }

  .screen-gallery {
    grid-template-columns: 1fr;
    gap: 2.4rem;
  }

  .search-screen {
    grid-column: 1;
  }

  .screen-stage {
    width: min(100%, 21rem);
  }

  .timeline-list li {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .status-mark {
    grid-column: 1;
  }
}

@media (max-width: 380px) {
  .hero h1 {
    font-size: 3.6rem;
  }

  .project-facts {
    gap: 1.2rem;
  }

  .screen-figure figcaption {
    align-items: start;
    flex-direction: column;
    gap: 0.25rem;
  }

  .detail-list div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .footer-inner {
    align-items: start;
    flex-direction: column;
    justify-content: center;
    gap: 0.3rem;
    padding-block: 0.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
