:root {
  --ink: #12110f;
  --bone: #ebe6dc;
  --bone-muted: rgba(18, 17, 15, 0.55);
  --paper: #f4f0e8;
  --white: #f7f4ef;
  --white-soft: rgba(247, 244, 239, 0.78);
  --line: rgba(247, 244, 239, 0.28);
  --veil: linear-gradient(
    180deg,
    rgba(8, 7, 6, 0.48) 0%,
    rgba(8, 7, 6, 0.42) 40%,
    rgba(8, 7, 6, 0.78) 100%
  );
  --font-display: "Instrument Serif", Georgia, serif;
  --font-sans: "Syne", "Helvetica Neue", Helvetica, sans-serif;
  --rail-width: clamp(8.75rem, 11vw, 11rem);
  --pad: clamp(1.25rem, 2.4vw, 2.25rem);
}

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

html,
body {
  height: 100%;
}

body {
  margin: 0;
  color: var(--white);
  background: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--rail-width);
}

.stage {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: var(--pad);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: drift 28s ease-in-out infinite alternate;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background: var(--veil);
  pointer-events: none;
}

.brand,
.hero-copy,
.services {
  position: relative;
  z-index: 1;
}

.logo {
  display: inline-block;
  line-height: 0;
  opacity: 0;
  animation: rise 0.9s ease forwards 0.15s;
}

.logo img {
  display: block;
  width: clamp(9.5rem, 16vw, 13.5rem);
  height: auto;
}

.hero-copy {
  align-self: end;
  max-width: min(36rem, 92%);
  padding-bottom: clamp(1.5rem, 4vh, 3rem);
}

.headline {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.4rem, 8vw, 7.2rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
}

.headline-line {
  position: relative;
  display: block;
  width: max-content;
  max-width: 100%;
  white-space: nowrap;
}

.headline-ghost {
  visibility: hidden;
  display: block;
}

.headline-typed {
  position: absolute;
  inset: 0 auto 0 0;
  white-space: nowrap;
}

.headline-soft {
  font-style: italic;
  font-weight: 400;
  color: var(--white-soft);
}

.headline-typed.is-typing::after {
  content: "";
  position: absolute;
  top: 0.08em;
  width: 0.055em;
  height: 0.82em;
  margin-left: 0.04em;
  background: currentColor;
  animation: blink 0.7s steps(1) infinite;
}

.lede,
.services {
  opacity: 0;
  transition: opacity 0.9s ease;
}

.lede.is-in,
.services.is-in {
  opacity: 1;
}

.lede {
  margin: 1.15rem 0 0;
  max-width: 52ch;
  font-size: clamp(0.92rem, 1.15vw, 1.05rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.01em;
  color: var(--white-soft);
}

.services {
  border-top: 1px solid var(--line);
  padding-top: 0.95rem;
}

.services ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0;
}

.services li {
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 500;
  font-size: clamp(0.92rem, 1.15vw, 1.05rem);
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--white-soft);
  white-space: nowrap;
}

.services li:not(:last-child)::after {
  content: "/";
  margin: 0 0.7rem;
  font-style: normal;
  opacity: 0.45;
}

.rail {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--pad) 0.85rem;
  background: var(--bone);
  color: var(--ink);
  min-height: 100svh;
}

.cities {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding-top: 0.15rem;
}

.cities li {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.contact {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.contact a {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bone-muted);
  transition: color 0.25s ease;
  white-space: nowrap;
  line-height: 1.35;
}

.contact a:hover,
.contact a:focus-visible {
  color: var(--ink);
}

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

@keyframes drift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.1) translate3d(-1.5%, -1%, 0);
  }
}

@media (max-width: 820px) {
  .page {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
  }

  .stage {
    min-height: calc(100svh - 7.5rem);
  }

  .hero-copy {
    max-width: min(34rem, 94%);
  }

  .services ul {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0.35rem;
  }

  .services li {
    display: flex;
    align-items: baseline;
    gap: 0.45rem;
    white-space: normal;
    font-size: 0.78rem;
    line-height: 1.3;
  }

  .services li::before {
    content: "•";
    flex: 0 0 auto;
    opacity: 0.7;
  }

  .services li:not(:last-child)::after {
    content: none;
    margin: 0;
  }

  .rail {
    min-height: auto;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem;
  }

  .cities {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0.35rem;
    padding-top: 0;
    min-width: 0;
  }

  .contact {
    margin-left: auto;
    flex-shrink: 0;
    align-items: flex-end;
    gap: 0.45rem;
  }

  .contact a {
    white-space: nowrap;
    letter-spacing: 0.06em;
  }
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-video,
  .logo {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .headline-typed.is-typing::after {
    display: none;
  }

  .lede,
  .services {
    opacity: 1;
    transition: none;
  }
}
