*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --board: #141414;
  --board-deep: #090909;
  --board-soft: #1a1a1a;
  --chalk: #eeeade;
  --chalk-soft: #c7c3b8;
  --chalk-muted: #96938b;
  --line: rgba(238, 234, 222, 0.62);
  --line-soft: rgba(238, 234, 222, 0.25);
  --page-width: 1180px;
  color-scheme: dark;
}

html {
  scroll-behavior: smooth;
  background: var(--board);
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--board);
  color: var(--chalk);
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--chalk);
  outline-offset: 4px;
}

img {
  max-width: 100%;
}

p,
h1,
h2,
h3 {
  margin-top: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 8px 12px;
  background: var(--chalk);
  color: var(--board-deep);
  transform: translateY(-180%);
}

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

.site-header,
main,
.site-footer {
  width: min(calc(100% - 40px), var(--page-width));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 5;
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding: 0 20px;
  border: 1px solid var(--line);
  background: var(--board);
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px);
}

.site-nav,
.header-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  color: var(--chalk-soft);
  font-family: "Cascadia Code", Consolas, "Liberation Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.025em;
}

.identity {
  color: var(--chalk);
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.site-nav a,
.header-links a {
  display: inline-flex;
  align-items: center;
  transition: color 140ms ease;
}

.site-nav a:not(:last-child)::after {
  margin: 0 11px;
  color: var(--chalk-muted);
  content: "/";
  font-weight: 400;
}

.header-links a:not(:last-child)::after {
  width: 3px;
  height: 3px;
  margin: 0 11px;
  border-radius: 50%;
  background: var(--chalk-muted);
  content: "";
}

.site-nav a:hover,
.header-links a:hover {
  color: #fff;
}

.hero {
  padding: 18px 0 22px;
}

.hero-panel {
  position: relative;
  min-height: 208px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--board);
  clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px), 0 12px);
}

.hero-content {
  display: grid;
  min-height: 208px;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  grid-template-rows: auto auto;
  align-content: center;
  padding: 24px 34px;
}

h1 {
  grid-row: 1 / 3;
  align-self: stretch;
  min-width: 0;
  max-width: 620px;
  margin: 0;
  padding-right: 42px;
  border-right: 1px solid var(--line);
  color: var(--chalk);
  font-size: clamp(2.2rem, 4vw, 3.65rem);
  font-weight: 540;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.hero-copy {
  align-self: end;
  min-width: 0;
  max-width: 470px;
  margin: 0;
  padding-left: 42px;
  color: var(--chalk-soft);
  font-size: 1rem;
  line-height: 1.48;
}

.hero-copy strong {
  color: var(--chalk);
}

.hero-actions {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 24px;
  align-self: start;
  margin-top: 16px;
  padding-left: 42px;
}

.button {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  color: var(--chalk-soft);
  font-family: "Cascadia Code", Consolas, "Liberation Mono", monospace;
  font-size: 0.76rem;
  transition: border-color 140ms ease, color 140ms ease;
}

.button:hover,
.button-primary:hover {
  border-color: var(--chalk);
  color: #fff;
}

.button-primary {
  color: var(--chalk);
}

.site-section {
  position: relative;
  padding: 28px 0 90px;
}

#work {
  scroll-margin-top: 18px;
}

.project-select {
  position: relative;
  display: grid;
  gap: 34px;
}

.project-route {
  position: absolute;
  z-index: 0;
  top: 0;
  bottom: -66px;
  left: 50%;
  border-left: 2px dashed rgba(238, 234, 222, 0.52);
  pointer-events: none;
}

.project-route-start,
.project-route span,
.project-route::after {
  display: none;
}

.project-slot {
  position: relative;
  z-index: 1;
  min-width: 0;
  overflow: hidden;
  padding: 28px 30px 30px;
  border: 1px solid var(--line);
  background: var(--board);
  color: var(--chalk);
  clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px), 0 12px);
}

.project-slot:nth-of-type(even) {
  clip-path: polygon(0 12px, 12px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px));
}

.project-slot:not(.project-city) {
  display: block;
  min-height: 210px;
}

.project-slot-main {
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 0;
}

.project-slot-label,
.updates-label,
.about-list-label,
.gallery-slide figcaption {
  color: var(--chalk-muted);
  font-family: "Cascadia Code", Consolas, "Liberation Mono", monospace;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.105em;
  text-transform: uppercase;
}

.project-slot-label {
  margin: 0 0 8px;
}

.project-title-row {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
  margin-bottom: 8px;
}

.project-slot h3,
.project-city h2 {
  min-width: 0;
  max-width: 100%;
  margin: 0;
  color: var(--chalk);
  font-weight: 520;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.project-slot h3 {
  font-size: clamp(1.8rem, 3vw, 2.65rem);
}

.project-city h2 {
  font-size: clamp(2.35rem, 4.4vw, 4.15rem);
  letter-spacing: -0.055em;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.project-meta span {
  padding: 4px 9px;
  border: 1px solid var(--line-soft);
  color: var(--chalk-soft);
  font-family: "Cascadia Code", Consolas, "Liberation Mono", monospace;
  font-size: 0.7rem;
}

.project-slot p:not(.project-slot-label, .updates-label) {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--chalk-soft);
}

.project-description {
  font-size: 0.98rem;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  align-items: flex-start;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}

.project-actions a {
  display: inline-flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  min-height: 30px;
  color: var(--chalk-soft);
  font-family: "Cascadia Code", Consolas, "Liberation Mono", monospace;
  font-size: 0.75rem;
  transition: color 140ms ease;
}

.project-actions a:hover {
  color: #fff;
}

.project-city {
  padding: 22px 26px 26px;
}

.project-city .project-title-row {
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 10px;
}

.city-update-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
  gap: 28px;
  align-items: start;
  margin-top: 22px;
}

.city-video {
  position: relative;
  display: block;
  min-height: 290px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--board-deep);
}

.city-video img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 290px;
  object-fit: cover;
  transition: filter 180ms ease, transform 300ms ease;
}

.city-video:hover img {
  filter: contrast(1.04) saturate(1.05);
  transform: scale(1.015);
}

.city-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border-radius: 50%;
  background: var(--chalk);
  color: var(--board-deep);
  transform: translate(-50%, -50%);
  transition: transform 140ms ease;
}

.city-video:hover .city-play {
  transform: translate(-50%, -50%) scale(1.05);
}

.city-play i {
  width: 0;
  height: 0;
  margin-left: 5px;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid var(--board-deep);
}

.updates-list {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: flex-start;
}

.updates-label {
  margin: 0 0 9px;
}

.update-row {
  display: grid;
  grid-template-columns: 56px minmax(100px, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 64px;
  padding: 0 8px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--chalk-soft);
  font-family: "Cascadia Code", Consolas, "Liberation Mono", monospace;
  font-size: 0.72rem;
  transition: background 140ms ease, color 140ms ease;
}

.update-row:hover {
  background: rgba(238, 234, 222, 0.06);
  color: #fff;
}

.update-row strong {
  color: var(--chalk);
  font-size: 0.8rem;
  font-weight: 600;
}

.update-number {
  color: var(--chalk-muted);
}

.about {
  padding-top: 98px;
  border-top: 1px solid var(--line-soft);
}

.about::before {
  position: absolute;
  top: 0;
  left: 50%;
  height: 64px;
  border-left: 2px dashed rgba(238, 234, 222, 0.52);
  content: "";
}

.about-route-end {
  position: absolute;
  z-index: 2;
  top: 61px;
  left: calc(50% - 15px);
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--board);
  color: var(--chalk-soft);
  font-family: "Cascadia Code", Consolas, "Liberation Mono", monospace;
  font-size: 0.72rem;
}

.section-heading {
  margin-bottom: 30px;
}

.section-heading h2 {
  margin: 0;
  color: var(--chalk);
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  font-weight: 520;
  letter-spacing: -0.055em;
  line-height: 1;
}

.about-intro {
  display: grid;
  grid-template-columns: minmax(270px, 0.72fr) minmax(0, 1.28fr);
  gap: 38px;
  padding: 30px;
  border: 1px solid var(--line);
  clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px), 0 12px);
}

.about-portrait {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: var(--board-deep);
}

.about-portrait img {
  display: block;
  width: 100%;
  height: auto;
}

.about-story > p {
  margin-bottom: 20px;
  color: var(--chalk-soft);
  font-size: 0.94rem;
}

.about-story > p:first-child {
  color: var(--chalk);
}

.about-story .about-list-label {
  margin: 30px 0 12px;
}

.about-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 30px;
  margin: 0;
  padding-left: 18px;
  color: var(--chalk-soft);
  font-size: 0.85rem;
}

.about-list li::marker {
  color: var(--chalk-muted);
}

.about-gallery {
  margin-top: 58px;
}

.gallery-heading {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}

.gallery-heading p {
  margin: 0;
  color: var(--chalk-soft);
  font-size: 0.92rem;
}

.gallery-controls {
  display: flex;
  gap: 8px;
}

.gallery-controls button {
  display: grid;
  width: 38px;
  height: 36px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--board);
  color: var(--chalk);
  font: inherit;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease;
}

.gallery-controls button:hover {
  background: var(--chalk);
  color: var(--board-deep);
}

.gallery-viewport {
  display: grid;
  grid-auto-columns: 62%;
  grid-auto-flow: column;
  gap: 20px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 8px 8px 24px;
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
}

.gallery-viewport::-webkit-scrollbar {
  display: none;
}

.gallery-slide {
  position: relative;
  aspect-ratio: 1;
  margin: 0;
  overflow: hidden;
  padding: 7px 7px 30px;
  border: 1px solid var(--line);
  background: var(--board);
  scroll-snap-align: center;
}

.gallery-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.gallery-slide:hover img {
  transform: scale(1.012);
}

.gallery-slide figcaption {
  position: absolute;
  right: 13px;
  bottom: 7px;
}

.site-footer {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 0;
  margin-bottom: 20px;
  padding: 0 20px;
  border: 1px solid var(--line);
  color: var(--chalk-muted);
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px);
  font-family: "Cascadia Code", Consolas, "Liberation Mono", monospace;
  font-size: 0.68rem;
}

.site-footer a {
  color: var(--chalk-soft);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
}

.privacy-page {
  min-height: calc(100vh - 160px);
  padding: 54px 0 80px;
}

.privacy-card {
  max-width: 820px;
  margin-inline: auto;
  padding: clamp(26px, 5vw, 54px);
  border: 1px solid var(--line);
  background: var(--board);
  clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px), 0 12px);
}

.privacy-card h1 {
  display: block;
  margin-bottom: 12px;
  padding: 0;
  border: 0;
  font-size: clamp(2.5rem, 7vw, 4.6rem);
}

.privacy-card h2 {
  margin: 34px 0 8px;
  color: var(--chalk);
  font-size: 1rem;
  font-weight: 600;
}

.privacy-card p,
.privacy-card li {
  color: var(--chalk-soft);
}

.privacy-card a {
  color: var(--chalk);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/*
 * Clipped frames use a solid outer silhouette and an inset board surface.
 * This keeps the diagonal corner strokes continuous instead of clipping the
 * browser's rectangular border and leaving a gap at every corner.
 */
.site-header,
.hero-panel,
.project-slot,
.about-intro,
.site-footer,
.privacy-card {
  --frame-cut: 12px;
  position: relative;
  border: 0;
  background: var(--line);
  clip-path: polygon(
    var(--frame-cut) 0,
    calc(100% - var(--frame-cut)) 0,
    100% var(--frame-cut),
    100% calc(100% - var(--frame-cut)),
    calc(100% - var(--frame-cut)) 100%,
    var(--frame-cut) 100%,
    0 calc(100% - var(--frame-cut)),
    0 var(--frame-cut)
  );
}

.site-header,
.site-footer {
  --frame-cut: 10px;
}

.site-header::before,
.hero-panel::before,
.project-slot::before,
.about-intro::before,
.site-footer::before,
.privacy-card::before {
  position: absolute;
  z-index: 0;
  inset: 1px;
  background: var(--board);
  clip-path: polygon(
    calc(var(--frame-cut) - 1px) 0,
    calc(100% - var(--frame-cut) + 1px) 0,
    100% calc(var(--frame-cut) - 1px),
    100% calc(100% - var(--frame-cut) + 1px),
    calc(100% - var(--frame-cut) + 1px) 100%,
    calc(var(--frame-cut) - 1px) 100%,
    0 calc(100% - var(--frame-cut) + 1px),
    0 calc(var(--frame-cut) - 1px)
  );
  content: "";
  pointer-events: none;
}

.site-header > *,
.hero-panel > *,
.project-slot > *,
.about-intro > *,
.site-footer > *,
.privacy-card > * {
  position: relative;
  z-index: 1;
}

@media (max-width: 1160px) and (min-width: 841px) {
  .hero-content {
    padding-inline: 28px;
  }

  h1 {
    padding-right: 30px;
    font-size: clamp(2.3rem, 4.8vw, 3.3rem);
  }

  .hero-copy,
  .hero-actions {
    padding-left: 30px;
  }

  .project-city h2 {
    font-size: clamp(2.6rem, 5.7vw, 3.8rem);
  }
}

@media (max-width: 840px) {
  .site-header {
    min-height: 76px;
    flex-direction: column;
    gap: 5px;
    align-items: stretch;
    justify-content: center;
    padding-block: 10px;
  }

  .header-links {
    justify-content: flex-end;
  }

  .hero-content {
    grid-template-columns: 1fr;
    padding: 28px;
  }

  h1 {
    grid-row: auto;
    padding: 0 0 24px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .hero-copy,
  .hero-actions {
    padding-left: 0;
  }

  .hero-copy {
    padding-top: 22px;
  }

  .city-update-layout {
    grid-template-columns: 1fr;
  }

  .updates-list {
    min-height: 110px;
  }

  .about-intro {
    grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1.25fr);
    gap: 26px;
    padding: 24px;
  }

  .about-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .site-header,
  main,
  .site-footer {
    width: min(calc(100% - 24px), var(--page-width));
  }

  .site-header {
    min-height: 92px;
    padding-inline: 14px;
  }

  .site-nav,
  .header-links {
    font-size: 0.66rem;
  }

  .site-nav a:not(:last-child)::after,
  .header-links a:not(:last-child)::after {
    margin-inline: 7px;
  }

  .header-links a:last-child {
    display: none;
  }

  .hero {
    padding-top: 14px;
  }

  .hero-content {
    padding: 24px 20px 26px;
  }

  h1 {
    font-size: clamp(2.35rem, 12vw, 3.4rem);
  }

  .hero-copy {
    font-size: 0.92rem;
  }

  .site-section {
    padding-bottom: 68px;
  }

  .project-select {
    gap: 24px;
  }

  .project-route {
    left: 18px;
  }

  .project-slot,
  .project-city {
    padding: 22px 18px 24px;
  }

  .project-slot:not(.project-city) {
    min-height: 250px;
  }

  .project-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-city h2 {
    font-size: clamp(2.65rem, 14vw, 4.1rem);
  }

  .city-video,
  .city-video img {
    min-height: 0;
  }

  .city-video {
    aspect-ratio: 16 / 9;
  }

  .update-row {
    grid-template-columns: 44px 1fr;
  }

  .update-row > span:last-child {
    grid-column: 2;
  }

  .project-actions {
    flex-direction: column;
    gap: 8px;
  }

  .about {
    padding-top: 82px;
  }

  .about-intro {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .about-portrait {
    max-width: 420px;
  }

  .gallery-viewport {
    grid-auto-columns: 91%;
  }

  .site-footer {
    min-height: 88px;
    flex-direction: column;
    gap: 3px;
    align-items: flex-start;
    justify-content: center;
  }
}

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

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