@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/outfit-latin.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --bg: #07080c;
  --ink: #f6f2ea;
  --muted: #ddd6cb;
  --gold: #e2c091;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--ink);
}

body {
  overflow: hidden;
  font-family: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

#city {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

#pins {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 3;
  pointer-events: none;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  z-index: 1;
  background: rgba(7, 9, 14, 0.84);
}

body::after {
  z-index: 2;
  opacity: 0.22;
  mix-blend-mode: overlay;
  background-image: url("grain.svg");
  background-size: 220px 220px;
}

.pages {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-y: contain;
  scrollbar-width: none;
}

.pages::-webkit-scrollbar {
  display: none;
}

.page {
  flex: 0 0 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem 1.5rem 5.5rem;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.page-hero {
  animation: rise 1.15s ease both;
}

.page h2 {
  margin: 0;
  max-width: 12em;
  font-size: clamp(2rem, 4.2vw, 3.15rem);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1.05;
  text-wrap: balance;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

.services {
  margin: 1.35rem 0 0;
  padding: 0;
  list-style: none;
}

.services li {
  color: var(--muted);
  font-size: clamp(1.02rem, 2vw, 1.22rem);
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: 0.012em;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
}

.entity {
  position: fixed;
  z-index: 3;
  left: 0.9rem;
  bottom: 0.7rem;
  margin: 0;
  color: rgba(186, 206, 214, 0.55);
  font-size: 0.68rem;
  font-weight: 300;
  line-height: 1.45;
  letter-spacing: 0.03em;
  text-align: left;
  text-shadow: none;
}

#projects {
  align-items: flex-start;
  text-align: left;
  padding-left: max(1.5rem, 6vw);
  padding-right: min(46vw, 34rem);
  padding-bottom: 8.5rem;
}

#projects hr {
  margin-left: 0;
  margin-right: 0;
}

body.map-point .pages {
  cursor: pointer;
}

@media (max-width: 720px) {
  .pages {
    scroll-behavior: auto;
  }

  .page-hero {
    animation: none;
  }

  .callout-line,
  .city-callout-line,
  .city-callout-card {
    display: none;
  }

  #projects {
    justify-content: flex-start;
    padding-top: 4.2rem;
    padding-right: 1.2rem;
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
  }

  #projects .project-groups {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding-bottom: 0.75rem;
    scrollbar-width: none;
  }

  #projects .project-groups::-webkit-scrollbar {
    display: none;
  }
}

.city-callouts {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.city-callout[hidden] {
  display: none;
}

.city-callout-dot {
  position: fixed;
  z-index: 5;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.28), 0 0 12px rgba(59, 130, 246, 0.9);
}

.city-callout-line {
  position: fixed;
  z-index: 5;
  height: 1px;
  background: rgba(226, 192, 145, 0.9);
  transform-origin: 0 50%;
}

.city-callout-card {
  position: fixed;
  z-index: 6;
  margin: 0;
  padding: 0.38rem 0.62rem;
  border: 1px solid rgba(226, 192, 145, 0.4);
  background: rgba(16, 20, 28, 0.94);
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 300;
  letter-spacing: 0.012em;
  line-height: 1.2;
  white-space: nowrap;
  text-shadow: none;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.42);
}

.callout[hidden] {
  display: none;
}

.callout-line {
  position: fixed;
  z-index: 5;
  height: 1px;
  background: rgba(226, 192, 145, 0.9);
  transform-origin: 0 50%;
  pointer-events: none;
}

.callout-card {
  position: fixed;
  z-index: 6;
  width: min(17rem, calc(100vw - 2rem));
  padding: 0.85rem 1rem 0.95rem;
  border: 1px solid rgba(226, 192, 145, 0.4);
  background: rgba(16, 20, 28, 0.94);
  color: var(--ink);
  text-align: left;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  pointer-events: auto;
}

.callout-card h3 {
  margin: 0 0 0.7rem;
  font-size: 1.08rem;
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.callout-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.8rem;
  margin: 0.28rem 0 0;
  text-shadow: none;
  font-size: 0.82rem;
  line-height: 1.3;
}

.callout-meta span {
  color: rgba(186, 206, 214, 0.62);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.callout-meta strong {
  font-weight: 300;
  text-align: right;
  max-width: 11.5rem;
}

.callout-copy {
  margin: 0.75rem 0 0;
  color: rgba(221, 214, 203, 0.8);
  font-size: 0.86rem;
  line-height: 1.4;
  text-shadow: none;
}

@media (max-width: 720px) {
  .callout-card {
    width: min(14.5rem, calc(100vw - 6.5rem));
    padding: 0.5rem 0.65rem 0.55rem;
  }

  .callout-card h3 {
    margin-bottom: 0.28rem;
    font-size: 0.92rem;
  }

  .callout-meta {
    margin-top: 0.05rem;
    font-size: 0.74rem;
  }

  .callout-copy {
    margin-top: 0.35rem;
    font-size: 0.72rem;
    line-height: 1.3;
  }
}

.scroll-cue {
  position: fixed;
  z-index: 4;
  top: 50%;
  right: 1.25rem;
  width: 0.8rem;
  height: min(8.5rem, 28vh);
  pointer-events: none;
  transform: translateY(-50%);
}

.scroll-cue-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(226, 192, 145, 0.38);
  transform: translateX(-50%);
}

.scroll-cue-dot {
  position: absolute;
  left: 50%;
  top: 0;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: #e2c091;
  box-shadow: 0 0 10px rgba(226, 192, 145, 0.7);
  transform: translateY(-50%);
  transition: top 0.35s ease;
}

.timeline {
  display: none;
  position: fixed;
  z-index: 4;
  left: 50%;
  bottom: 3.35rem;
  width: min(34rem, calc(100% - 24rem));
  transform: translateX(-50%);
  user-select: none;
  pointer-events: none;
}

body.projects-open .timeline:not([hidden]) {
  display: block;
}

.timeline-caption {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 0.55rem;
  min-height: 1.35em;
  margin: 0 0 0.15rem;
  overflow: hidden;
  font-size: 0.84rem;
  font-weight: 300;
  letter-spacing: 0.012em;
  line-height: 1.35;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.55);
}

.timeline-kicker {
  flex: 0 0 auto;
  color: rgba(226, 192, 145, 0.78);
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.14em;
}

.timeline-name {
  min-width: 0;
  overflow: hidden;
  color: rgba(246, 242, 234, 0.94);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.timeline-bound {
  flex: 0 0 auto;
  color: rgba(186, 206, 214, 0.62);
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}

.timeline-track {
  position: relative;
  flex: 1 1 auto;
  height: 1.15rem;
  touch-action: none;
  cursor: grab;
  pointer-events: auto;
}

.timeline-track::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -0.65rem;
  bottom: -0.45rem;
}

.timeline-track:active,
.timeline.is-dragging .timeline-track {
  cursor: grabbing;
}

.timeline-track:focus-visible {
  outline: 1px solid rgba(226, 192, 145, 0.45);
  outline-offset: 5px;
}

.timeline-line {
  position: absolute;
  left: 4px;
  right: 4px;
  top: 50%;
  height: 1px;
  background: rgba(226, 192, 145, 0.38);
  transform: translateY(-50%);
}

.timeline-marks,
.timeline-thumb {
  position: absolute;
  top: 50%;
  pointer-events: none;
}

.timeline-marks {
  left: 0;
  right: 0;
  height: 0;
}

.timeline-mark {
  position: absolute;
  top: 0;
  width: 1px;
  height: 7px;
  background: rgba(226, 192, 145, 0.5);
  transform: translate(-50%, -50%);
}

.timeline-mark.is-current {
  height: 11px;
  background: rgba(255, 177, 90, 0.95);
}

.timeline-thumb {
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: #e2c091;
  box-shadow: 0 0 10px rgba(226, 192, 145, 0.7);
  transform: translateY(-50%);
  transition: left 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.timeline.is-dragging .timeline-thumb {
  transition: none;
}

.timeline.is-set .timeline-thumb {
  background: #ffb15a;
  box-shadow: 0 0 12px rgba(255, 138, 36, 0.8);
}

.project-groups {
  margin-top: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.project-group h3 {
  margin: 0 0 0.1rem;
  color: rgba(226, 192, 145, 0.72);
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

.project-state {
  color: rgba(186, 206, 214, 0.5);
  font-size: 0.72rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.projects li + li {
  margin-top: 0.15rem;
}

.projects button {
  appearance: none;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0.5rem;
  max-width: 100%;
  margin: 0;
  padding: 0.12rem 0.25rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: clamp(0.98rem, 1.8vw, 1.16rem);
  font-weight: 300;
  letter-spacing: 0.012em;
  line-height: 1.45;
  text-align: left;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.projects button:hover,
.projects button:focus-visible {
  color: rgba(244, 228, 206, 0.95);
}

.projects button[aria-pressed="true"] {
  color: #ffb15a;
  background: rgba(255, 122, 18, 0.16);
  box-shadow: inset 2px 0 0 #ff8a24;
}

.projects button:hover .project-state,
.projects button:focus-visible .project-state {
  color: rgba(226, 192, 145, 0.72);
}

.projects button[aria-pressed="true"] .project-state {
  color: rgba(255, 168, 72, 0.85);
}

.projects button:focus-visible {
  outline: 1px solid rgba(226, 192, 145, 0.45);
  outline-offset: 3px;
}

.credit {
  position: fixed;
  z-index: 3;
  right: 0.9rem;
  bottom: 0.7rem;
  margin: 0;
  color: rgba(186, 206, 214, 0.55);
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  line-height: 1.45;
  text-align: right;
}

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

.credit a:hover {
  color: rgba(226, 192, 145, 0.85);
}

.states {
  position: fixed;
  z-index: 4;
  left: 50%;
  bottom: 0.55rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: max-content;
  max-width: calc(100% - 1.25rem);
  gap: 0.1rem;
  margin: 0;
  transform: translateX(-50%);
}

.states button {
  appearance: none;
  margin: 0;
  padding: 0.35rem 0.42rem;
  border: 0;
  background: transparent;
  color: rgba(186, 206, 214, 0.38);
  font: inherit;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  cursor: pointer;
}

.states button:hover,
.states button:focus-visible {
  color: rgba(246, 242, 234, 0.82);
}

.states button:focus-visible {
  outline: 1px solid rgba(226, 192, 145, 0.45);
  outline-offset: 2px;
}

.states button[aria-pressed="true"] {
  color: rgba(226, 192, 145, 0.72);
}

.contact-open {
  appearance: none;
  margin-top: 1.7rem;
  padding: 0.35rem 0.15rem;
  border: 0;
  background: transparent;
  color: rgba(226, 192, 145, 0.82);
  font: inherit;
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
}

.contact-open:hover,
.contact-open:focus-visible {
  color: rgba(246, 242, 234, 0.92);
}

.contact-open:focus-visible {
  outline: 1px solid rgba(226, 192, 145, 0.45);
  outline-offset: 3px;
}

.contact {
  width: min(26rem, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: 1.45rem 1.35rem 1.2rem;
  overflow: auto;
  border: 1px solid rgba(226, 192, 145, 0.32);
  border-radius: 2px;
  background: #10141c;
  color: var(--ink);
  font: inherit;
  text-align: left;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.contact::backdrop {
  background: rgba(4, 5, 8, 0.84);
}

.contact h2 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.contact-note,
.contact-status {
  text-align: left;
  text-shadow: none;
}

.contact-note {
  margin: 0.65rem 0 0.35rem;
  color: rgba(221, 214, 203, 0.72);
  font-size: 0.9rem;
  line-height: 1.4;
}

.contact-honey {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact label {
  display: block;
  margin: 0.95rem 0 0.28rem;
  color: rgba(186, 206, 214, 0.72);
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact input,
.contact textarea {
  width: 100%;
  margin: 0;
  padding: 0.48rem 0.05rem 0.42rem;
  border: 0;
  border-bottom: 1px solid rgba(226, 192, 145, 0.28);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  font-weight: 300;
}

.contact textarea {
  min-height: 6.5rem;
  resize: vertical;
}

.contact input:focus-visible,
.contact textarea:focus-visible {
  outline: none;
  border-bottom-color: rgba(226, 192, 145, 0.9);
}

.contact-status {
  min-height: 1.25em;
  margin: 0.95rem 0 0;
  color: var(--gold);
  font-size: 0.9rem;
  line-height: 1.4;
}

.contact-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 0.85rem;
}

.contact-close,
.contact-send {
  appearance: none;
  margin: 0;
  padding: 0.4rem 0.05rem;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}

.contact-close {
  color: rgba(186, 206, 214, 0.62);
}

.contact-send {
  color: rgba(226, 192, 145, 0.92);
}

.contact-close:hover,
.contact-close:focus-visible,
.contact-send:hover,
.contact-send:focus-visible {
  color: rgba(246, 242, 234, 0.92);
}

.contact-close:focus-visible,
.contact-send:focus-visible {
  outline: 1px solid rgba(226, 192, 145, 0.45);
  outline-offset: 3px;
}

.contact-send:disabled {
  opacity: 0.45;
  cursor: progress;
}

.loader {
  position: fixed;
  z-index: 4;
  left: 50%;
  top: calc(50% + 7.35rem);
  width: 1.15rem;
  height: 1.15rem;
  margin: 0 0 0 -0.575rem;
  border-radius: 50%;
  border: 1px solid rgba(226, 192, 145, 0.22);
  border-top-color: rgba(226, 192, 145, 0.95);
  animation: loader-spin 1.15s linear infinite;
  pointer-events: none;
}

.loader[hidden] {
  display: none;
}

@keyframes loader-spin {
  to {
    transform: rotate(360deg);
  }
}

h1 {
  margin: 0;
  max-width: 12em;
  font-size: clamp(2.45rem, 5vw, 4.35rem);
  font-weight: 300;
  letter-spacing: -0.042em;
  line-height: 1.02;
  text-wrap: balance;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

hr {
  width: 2.25rem;
  height: 1px;
  margin: 1.35rem auto 1.15rem;
  border: 0;
  background: var(--gold);
}

p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 2vw, 1.22rem);
  font-weight: 300;
  line-height: 1.45;
  letter-spacing: 0.012em;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
}

::selection {
  background: rgba(226, 192, 145, 0.35);
  color: #fff;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1100px) {
  .credit {
    right: 0.7rem;
    left: 0.7rem;
    bottom: 2.95rem;
    text-align: center;
  }

  .entity {
    right: 0.7rem;
    left: 0.7rem;
    bottom: 5.45rem;
    text-align: center;
  }

  .timeline {
    bottom: 10.6rem;
    width: min(34rem, calc(100% - 2rem));
  }

  #projects {
    padding-bottom: 14.5rem;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 2.2rem;
  }

  p {
    font-size: 0.98rem;
  }

  .states button {
    padding: 0.42rem 0.2rem;
    letter-spacing: 0.08em;
    font-size: 0.64rem;
  }

  .credit {
    bottom: 4.5rem;
  }

  .entity {
    bottom: 7.15rem;
  }

  .timeline {
    bottom: 12.2rem;
  }

  #projects {
    padding-bottom: 16.5rem;
  }
}

@media (max-height: 640px) {
  h1 {
    font-size: clamp(2rem, 7vh, 3rem);
  }
}

@media (max-width: 720px) {
  body.projects-open .timeline:not([hidden]),
  .timeline,
  .callout {
    display: none;
  }

  #projects {
    padding-bottom: 9.2rem;
  }

  .project-detail:not([hidden]) {
    display: block;
    margin: 0.15rem 0 0.7rem 0.45rem;
    padding: 0.1rem 0 0.2rem 0.8rem;
    border-left: 1px solid rgba(226, 192, 145, 0.4);
  }

  .project-detail-row {
    display: flex;
    flex-direction: column;
    gap: 0.04rem;
    margin: 0.38rem 0 0;
    text-shadow: none;
  }

  .project-detail-row span {
    color: rgba(186, 206, 214, 0.62);
    font-size: 0.62rem;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }

  .project-detail-row strong {
    color: var(--ink);
    font-size: 0.86rem;
    font-weight: 300;
    letter-spacing: 0.012em;
    line-height: 1.35;
  }

  .project-detail-copy {
    margin: 0.45rem 0 0;
    color: rgba(221, 214, 203, 0.8);
    font-size: 0.84rem;
    font-weight: 300;
    line-height: 1.4;
    text-shadow: none;
  }
}

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

  .page-hero {
    animation: none;
  }

  .scroll-cue-dot,
  .timeline-thumb {
    transition: none;
  }

  .loader {
    animation: loader-fade 1.6s ease-in-out infinite;
    border-color: rgba(226, 192, 145, 0.72);
  }
}

@keyframes loader-fade {
  0%,
  100% {
    opacity: 0.35;
  }

  50% {
    opacity: 1;
  }
}
