:root {
  color-scheme: dark;
  overscroll-behavior-x: contain;
  --ink: #f3f1eb;
  --accent: #ffad79;
  --rule: #f3f1eb50;
  --gutter: clamp(1.5rem, 5vw, 5.5rem);
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: #101419;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }

.backdrop, .shot, .shade { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.backdrop { overflow: hidden; background: #202a32; }
.shot { object-fit: cover; object-position: 62% center; opacity: 0; transform: scale(1); transition: opacity 1.85s ease; }
.shot.is-visible { opacity: 1; animation: drift 14s ease-out both; }
.backdrop.is-paused .shot { animation-play-state: paused; }
@keyframes drift { to { transform: scale(1.075); } }
.shade {
  background:
    linear-gradient(0deg, #080b10 0%, #080b10b5 27%, #080b1026 72%, #080b10a6 100%),
    linear-gradient(90deg, #080b108c, #080b1000 80%);
}
.frame { position: relative; display: grid; grid-template-rows: auto 1fr auto; min-height: 100svh; }
.masthead, .rail { margin-inline: var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.masthead { min-height: 6rem; border-bottom: 1px solid var(--rule); }
.brand { position: relative; display: inline-flex; align-items: center; min-height: 44px; }
.brand img { display: block; width: clamp(9rem, 17vw, 13.75rem); height: auto; filter: invert(1) grayscale(1) brightness(1.5); }
.nav { display: flex; align-items: center; gap: clamp(0.85rem, 2.8vw, 2.75rem); }
.nav a, .label, .eyebrow, .rail { font: 500 0.72rem/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.nav a { display: grid; align-content: center; min-height: 44px; position: relative; white-space: nowrap; }
.nav a:last-child { display: flex; align-items: center; gap: .3rem; }
.nav a[aria-current], .nav a:hover, .accent { color: var(--accent); }
.brand[aria-current]::after, .nav a[aria-current]::after { position: absolute; content: ""; left: 0; right: 0; bottom: 4px; height: 1px; background: var(--accent); }
.brand[aria-current]::after { bottom: -4px; height: 2px; }

.viewport { overflow: hidden; overflow: clip; display: grid; grid-template-columns: minmax(0, 1fr); touch-action: pan-y; touch-action: pan-y pinch-zoom; cursor: grab; }
.viewport.is-grabbing { cursor: grabbing; user-select: none; }
.track {
  display: flex;
  --offset: 0%;
  --drag: 0px;
  transform: translate3d(calc(var(--offset) + var(--drag)), 0, 0);
  transition: transform .82s cubic-bezier(.22,.8,.21,1);
}
.track.is-dragging { transition: none; }
.panel {
  flex: 0 0 100%;
  min-width: 0;
  display: grid;
  align-items: end;
  grid-template-columns: minmax(0, 1fr) minmax(14rem, 23.5%);
  gap: clamp(1.5rem, 4vw, 5rem);
  padding: clamp(5rem, 22vh, 17rem) var(--gutter) clamp(2rem, 6vh, 5rem);
}
.title-block { justify-self: stretch; text-align: left; }
.eyebrow { margin: 0 0 1.2rem; }
h1, h2 { margin: 0 0 0 -.035em; font-size: clamp(3.5rem, 7.65vw, 9rem); line-height: .89; font-weight: 650; letter-spacing: -.074em; }
h1:focus, h2:focus { outline: none; }
.details { border-top: 1px solid var(--rule); padding-top: 1rem; }
.details p { margin: 0 0 1rem; }
.details p:not(.label) { max-width: 37ch; color: #e0dfda; font-size: clamp(.92rem, 1.15vw, 1.075rem); line-height: 1.55; }
.label { color: var(--accent); }
.action, .phone { min-height: 44px; display: inline-flex; align-items: center; gap: .7em; font-weight: 600; }
.action { border-bottom: 1px solid #f3f1eb65; width: fit-content; }
.action span { color: var(--accent); transition: transform .25s ease; }
.action:hover span { transform: translate(3px,-3px); }
.phone { display: flex; width: fit-content; color: #deddd8; font-size: .92rem; }
.rail { min-height: 5rem; border-top: 1px solid var(--rule); color: #deddd8; }
.page-markers { display: flex; align-items: center; gap: .55rem; }
.page-markers span { width: 11px; height: 11px; border: 1px solid #f3f1eb80; background: #f3f1eb24; transition: background .25s ease, border-color .25s ease; }
.page-markers .is-current { background: var(--accent); border-color: var(--accent); }
.gesture-cue { color: var(--ink); animation: gesture-left 2.8s ease-in-out infinite; }
.gesture-cue svg { fill: #101419; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.gesture-cue .click-ring {
  fill: none; stroke: var(--accent); transform-origin: 9px 9px;
  animation: click-pulse 2.8s ease-out infinite;
}
.cursor-tip { animation: cursor-pressed 2.8s linear infinite; }
@keyframes click-pulse {
  0%, 12% { opacity: 0; transform: scale(.55); }
  20% { opacity: 1; transform: scale(.75); }
  36%, 100% { opacity: 0; transform: scale(1.4); }
}
@keyframes cursor-pressed {
  0%, 16%, 74%, 100% { stroke: var(--ink); }
  20%, 68% { stroke: var(--accent); }
}
@keyframes gesture-left {
  0%, 24% { transform: translateX(0); opacity: .9; }
  58%, 72% { transform: translateX(-2rem); opacity: .9; }
  87% { transform: translateX(-2rem); opacity: 0; }
  88%, 100% { transform: translateX(0); opacity: 0; }
}
.touch-hint { display: none; }
@media (pointer: coarse) {
  .mouse-hint { display: none; }
  .touch-hint { display: inline; }
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (max-width: 760px), (orientation: landscape) and (pointer: coarse) {
  .frame { height: 100svh; min-height: 0; grid-template-rows: auto minmax(0, 1fr) auto; }
  .masthead { min-height: clamp(3rem, 9svh, 4.5rem); }
  .brand img { width: clamp(7rem, 29vw, 10.25rem); }
  .nav a, .eyebrow, .label, .rail { font-size: .65rem; letter-spacing: .08em; }
  .panel { grid-template-columns: minmax(0, 1fr); gap: clamp(.65rem, 2.7svh, 1.5rem); align-content: end; padding-block: .5rem clamp(.65rem, 3svh, 2rem); }
  .eyebrow { margin-bottom: clamp(.4rem, 1.5svh, .9rem); }
  h1, h2 { font-size: clamp(1.65rem, min(10.8vw, 8svh), 5.75rem); }
  #home-title { font-size: clamp(1.65rem, min(9.5vw, 7.5svh), 5.75rem); }
  .details { max-width: 26rem; padding-top: clamp(.35rem, 1.6svh, .8rem); }
  .details p { margin-bottom: clamp(.25rem, 1svh, .65rem); }
  .details p:not(.label) { font-size: clamp(.78rem, 2.25svh, .98rem); line-height: 1.35; }
  .rail { min-height: clamp(2.5rem, 8svh, 4.4rem); }
  .shade { background: linear-gradient(0deg, #080b10 5%, #080b10d9 39%, #080b1030 80%, #080b1099 100%); }
}
@media (orientation: landscape) and (max-height: 500px) {
  .viewport { grid-template-rows: minmax(0, 1fr); }
  .panel { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 1rem; }
  .details p { margin-bottom: .25rem; }
  .details p:not(.label) { font-size: .75rem; line-height: 1.25; }
  .details .action, .details .phone { min-height: 32px; font-size: .8rem; }
}
@media (max-width: 370px) {
  :root { --gutter: 1rem; }
  .nav { gap: .55rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
