/* ALTAIR ALT01. One black stage, one watch, one shot. */
@font-face { font-family: "Inter Tight Web"; src: url(../fonts/inter-tight-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter Web"; src: url(../fonts/inter-300.woff2) format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Inter Web"; src: url(../fonts/inter-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Anek Expanded"; src: url(../fonts/anek-expanded-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --white: #fff; --black: #000; --silver: #ccc;
  --head: "Neue Haas Grotesk Display Pro", "Helvetica Neue", "Inter Tight Web", Arial, sans-serif;
  --body: "Inter Web", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --name: "Anek Expanded", "Inter Tight Web", Arial, sans-serif;
  --gut: clamp(20px, 6vw, 96px);
  --top: clamp(82px, 11svh, 120px);
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--black); -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; color: var(--white); font: 300 17px/1.5 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; background: var(--black); }
html.locked, html.locked body { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }

#gl { position: fixed; left: 0; top: 0; width: 100vw; height: 100lvh; z-index: 1; pointer-events: none; background: #000; }
main { position: relative; z-index: 0; }
#track { height: 100svh; }

#edge { display: none; }
@media (max-width: 799px), (max-aspect-ratio: 1/1) { #edge { display: block; position: fixed; left: 0; right: 0; top: 0; height: 100lvh; z-index: 1; pointer-events: none; background: linear-gradient(to top, #000, transparent 70px); } }
#boot { position: fixed; inset: 0; z-index: 8; display: grid; place-items: center; background: #000; transition: opacity .6s; pointer-events: none; }
#boot img { animation: boot 1.5s ease-in-out infinite; }
#boot.gone { opacity: 0; }
html.still #boot { display: none; }
@keyframes boot { 0%, 100% { opacity: .22; transform: scale(.86); } 50% { opacity: 1; transform: scale(1); } }

/* ---- nav ---- */
#nav.plain { mix-blend-mode: normal; }
#nav { position: fixed; z-index: 6; left: 0; right: 0; top: 0; height: 64px; display: flex; justify-content: space-between; align-items: center; padding: 0 var(--gut); opacity: 0; transition: opacity .8s; pointer-events: none; color: #fff; }
#nav::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 110px; background: linear-gradient(to bottom, rgba(0,0,0,.62), rgba(0,0,0,0)); pointer-events: none; z-index: -1; }
.ready #nav { opacity: 1; pointer-events: auto; }
.nav-star { display: block; padding: 8px 8px 8px 0; }
.nav-r { font: 500 13px/1 var(--body); letter-spacing: .01em; padding: 12px 0 12px 16px; min-height: 44px; transition: transform .35s cubic-bezier(.2,.7,.2,1); }

/* ---- words ---- */
#story { position: fixed; inset: 0; height: 100svh; z-index: 3; pointer-events: none; }
.c { position: absolute; left: var(--gut); right: var(--gut); top: var(--top); will-change: opacity; }
html.live .c { visibility: hidden; }
.c button, .c a { pointer-events: auto; }
.ln { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.ln > span { display: block; will-change: transform; }
.eye { margin: 0 0 12px; font: 500 12px/1.2 var(--body); letter-spacing: .08em; text-transform: uppercase; }
.h { margin: 0 0 14px; font: 700 clamp(35px, 10.4vw, 46px)/1 var(--head); letter-spacing: -.03em; }
.h > span { display: block; }
.h.small { font-size: 34px; }
.body { margin: 0; text-wrap: balance; max-width: 26em; }
.c::before { opacity: var(--sc, 0); }
.c .display.small + .body { margin-top: 14px; }
.nm { font: 700 .82em/1 var(--name); letter-spacing: .07em; }

.hero { top: var(--top); }
.display { margin: 0; font: 700 clamp(64px, 21vw, 96px)/.98 var(--name); letter-spacing: -.04em; white-space: nowrap; }
.display.small { font-size: clamp(56px, 17vw, 80px); }
.hero-sub { margin: 14px 0 0; font-size: 18px; }
.hfoot { top: auto; bottom: 0; }
@media (max-width: 799px), (max-aspect-ratio: 1/1) { .hfoot::before { content: ''; position: absolute; left: calc(var(--gut) * -1); right: calc(var(--gut) * -1); bottom: 0; height: 110px; background: linear-gradient(to top, rgba(0,0,0,.86), transparent); z-index: -1; } .c.low { top: auto; bottom: max(30px, 5svh); } .c.low::before { inset: -14svh -30vw -8svh !important; background: linear-gradient(to top, rgba(0,0,0,.84), rgba(0,0,0,.62) 62%, transparent) !important; } }
.hero-foot { padding-bottom: max(22px, env(safe-area-inset-bottom)); display: flex; justify-content: flex-end; font: 500 13px/1 var(--body); }
.scroll-hint::after { content: ""; display: inline-block; width: 1px; height: 14px; background: currentColor; margin-left: 10px; vertical-align: -3px; animation: drip 2.2s cubic-bezier(.65,0,.35,1) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

.clock { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: 14px 0 0; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.3); font-size: 14px; max-width: 280px; }
.clock b { font: 700 26px/1 var(--name); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.swatches { display: flex; gap: 10px; margin-top: 18px; }
.sw { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px 0 12px; border: 1px solid rgba(255,255,255,.34); border-radius: 100px; font-weight: 500; font-size: 15px; transition: background .3s, color .3s, border-color .3s; }
.sw i, .pick i { width: 22px; height: 22px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.sw.on { background: var(--white); color: var(--black); border-color: var(--white); }

.end { top: var(--top); }
@media (max-width: 799px), (max-aspect-ratio: 1/1) { .c.low::before, .c.left::before, .c.right::before, .c.steel::before { content: ''; position: absolute; inset: -18svh -30vw -12svh; background: linear-gradient(to bottom, rgba(0,0,0,.72), rgba(0,0,0,.52) 62%, transparent); z-index: -1; } }
.specs { margin: 14px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; font-size: 13px; line-height: 1.25; }
.specs div { padding: 7px 0; border-top: 1px solid rgba(255,255,255,.28); }
.specs dt { font-weight: 500; margin-bottom: 2px; }
.specs dd { margin: 0; }
.price { margin: 16px 0 14px; font: 700 28px/1 var(--name); letter-spacing: -.02em; }
.btn { display: block; min-height: 52px; padding: 0 30px; background: var(--white); color: var(--black); font: 500 16px/1 var(--body); border-radius: 100px; transition: transform .35s cubic-bezier(.2,.7,.2,1), background .25s; }
.btn:active { transform: scale(.97); }
.c .btn { width: 100%; max-width: 360px; }
.btn.wide { width: 100%; }

/* ---- part names ---- */
#labels { position: fixed; inset: 0; height: 100lvh; z-index: 2; pointer-events: none; overflow: hidden; }
.lab { position: absolute; left: 0; top: 0; font: 500 11px/1.2 var(--body); opacity: 0; will-change: transform, opacity; white-space: nowrap; letter-spacing: .02em; }
.lab b { font: 700 11px/1 var(--head); margin-right: 7px; }
.lab i { position: absolute; left: 0; top: 100%; margin-top: 5px; width: 1px; height: var(--l, 24px); background: rgba(255,255,255,.55); }
.lab.side i { left: auto; right: 100%; top: 50%; margin: 0 7px 0 0; width: var(--l, 24px); height: 1px; }

/* ---- below the shot ---- */
#gallery { position: relative; z-index: 4; background: var(--black); padding: 84px var(--gut) 96px; }
.worn-head { margin-bottom: 34px; }
.masonry { display: grid; grid-template-columns: 1fr; gap: 12px; align-items: start; }
.masonry figure { margin: 0; overflow: hidden; border-radius: 2px; }
.shot { display: block; width: 100%; cursor: zoom-in; }
.shot img { width: 100%; height: auto; transition: transform .9s cubic-bezier(.2,.7,.2,1), opacity .9s; }
html.live .masonry figure:not(.in) img { opacity: 0; transform: scale(1.05); }
@media (hover: hover) { .shot:hover img { transform: scale(1.025); } }
dialog#viewer { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #000; color: #fff; overflow: hidden; }
dialog#viewer::backdrop { background: #000; }
#vimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.vx, .vn { position: absolute; z-index: 2; width: 56px; height: 56px; font-size: 34px; font-weight: 300; line-height: 1; color: #fff; }
.vx { right: max(6px, env(safe-area-inset-right)); top: max(6px, env(safe-area-inset-top)); }
.vn { top: 50%; translate: 0 -50%; }
.vp { left: 6px; } .vf { right: 6px; }
#foot { position: relative; z-index: 4; background: var(--black); padding: 76px var(--gut) 28px; display: grid; justify-items: center; text-align: center; gap: 26px; }
#foot nav { display: flex; gap: 20px; font-size: 13px; align-items: center; }
#foot nav a { padding: 14px 6px; text-underline-offset: 3px; }

/* ---- reserve sheet ---- */
dialog#sheet { width: min(100vw, 460px); max-width: none; max-height: 100dvh; margin: auto 0 0; margin-inline: auto; border: 0; border-radius: 16px 16px 0 0; background: #0b0c0e; color: #fff; padding: 26px 22px max(22px, env(safe-area-inset-bottom)); overflow-y: auto; }
dialog#sheet::backdrop { background: rgba(0,0,0,.62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
#sheet .x { position: absolute; right: 8px; top: 8px; width: 48px; height: 48px; font-size: 28px; font-weight: 300; line-height: 1; }
.pick { border: 0; padding: 0; margin: 4px 0 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.pick legend { font-size: 14px; padding: 0; margin-bottom: 10px; }
.pick label { flex: 1; display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 12px; border: 1px solid rgba(255,255,255,.3); border-radius: 10px; font-weight: 500; font-size: 15px; cursor: pointer; }
.pick input { position: absolute; opacity: 0; }
.pick label:has(input:checked) { border-color: #fff; background: rgba(255,255,255,.08); }
.pick label:has(input:focus-visible) { outline: 2px solid #fff; outline-offset: 2px; }
.f { display: block; margin-bottom: 12px; font-size: 14px; }
.f span { display: block; margin-bottom: 6px; }
.f input { width: 100%; height: 50px; padding: 0 14px; border: 1px solid rgba(255,255,255,.3); border-radius: 10px; background: transparent; color: #fff; font: 300 17px/1 var(--body); }
.f input:focus { outline: 0; border-color: #fff; }
.hp { position: absolute; left: -9999px; }
.note { margin: 12px 0 0; font-size: 13px; line-height: 1.4; text-wrap: balance; }
.err { margin: 10px 0 0; font-size: 14px; color: #ff9b9b; }
#thanks { text-align: center; display: grid; justify-items: center; gap: 10px; padding: 26px 0 8px; }
#thanks[hidden] { display: none; }

/* ---- the still page: no 3D, or the visitor asked for less motion ---- */
.fb { display: none; }
html.still #gl, html.still #labels { display: none; }
html.still #story { position: static; height: auto; padding-top: 86px; display: grid; gap: 64px; }
html.still .c { position: static; padding: 0 var(--gut); opacity: 1; visibility: visible; }
html.still .c::before, html.still .hfoot::before { content: none !important; }
html.still #edge { display: none; }
html.still .hfoot { display: none; }
html.still .fb { display: block; width: 100%; margin-top: 22px; border-radius: 2px; }
html.still .hero-foot { position: static; margin-top: 14px; padding: 0; }
html.still .scroll-hint, html.still .swatches { display: none; }
html.still #track { height: 0; }
html.still #nav { opacity: 1; pointer-events: auto; }
html.still .c .btn { max-width: none; }

/* ---- wider screens ---- */
@media (min-aspect-ratio: 1/1) and (min-width: 800px) {
  body { font-size: 19px; }
  #nav { height: 80px; }
  .nav-r { font-size: 15px; }
  .c { right: auto; top: 50%; translate: 0 -50%; width: min(36vw, 580px); }
  .c.right { left: auto; right: var(--gut); }
  .c.steel, .c.low { top: auto; bottom: 9svh; translate: 0 0; width: min(38vw, 600px); }
  .c.steel::before, .c.low::before { content: ''; position: absolute; inset: -24vh -30vw -20vh -14vw; background: radial-gradient(closest-side at 40% 60%, rgba(0,0,0,.82), rgba(0,0,0,.55) 45%, transparent); z-index: -1; }
  .hero { width: 46vw; }
  .display { font-size: min(9.4vw, 19vh); }
  .display.small { font-size: min(7vw, 15vh); }
  .hero-sub { font-size: 26px; margin-top: 22px; }
  .c.hfoot { top: auto; bottom: 0; translate: none; left: var(--gut); right: var(--gut); width: auto; }
  .hero-foot { padding-bottom: 34px; font-size: 14px; }
  .eye { font-size: 14px; margin-bottom: 18px; }
  .h { font-size: min(4.3vw, 8.6vh); margin-bottom: 22px; }
  .h.small { font-size: 40px; }
  .swatches { margin-top: 26px; }
  .lab, .lab b { font-size: 13px; }
  .specs { font-size: 14px; }
  .price { font-size: 34px; }
  #gallery { padding: 130px var(--gut) 150px; }
  .worn-head { margin-bottom: 56px; }
  .masonry { grid-template-columns: repeat(3, 1fr); gap: 18px; padding-bottom: 12vh; }
  .masonry figure:nth-child(3n + 2) { translate: 0 12vh; }
  dialog#sheet { margin: auto; border-radius: 16px; padding: 34px 30px 30px; }
}
@media (hover: hover) {
  .btn:hover { background: var(--silver); }
  .nav-r:hover, #foot nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
}

/* ---- phones held sideways: keep the end card on the screen ---- */
@media (max-height: 480px) and (min-aspect-ratio: 1/1) {
  .c.end .specs, .c.end .eye { display: none; }
  .display.small { font-size: 15vh; }
  .price { margin: 6px 0 8px; font-size: 22px; }
  .h { font-size: 11vh; margin-bottom: 8px; }
  .c .body { font-size: 15px; }
  .eye { margin-bottom: 6px; }
  .btn { min-height: 46px; }
}

@media (min-width: 600px) and (max-aspect-ratio: 1/1) { .masonry { grid-template-columns: repeat(2, 1fr); } }
html.still .masonry figure img { opacity: 1; transform: none; }

/* the words at the end stay clear over the open box */
.c.end::before { content: ''; position: absolute; z-index: -1; left: calc(var(--gut) * -1); right: calc(var(--gut) * -1); top: calc(var(--top) * -1); bottom: -14svh; background: linear-gradient(to bottom, rgba(0,0,0,.86) 60%, rgba(0,0,0,0)); }
@media (min-aspect-ratio: 1/1) and (min-width: 800px) {
  .c.end::before { inset: -40vh -22vw -40vh -12vw; background: linear-gradient(to right, rgba(0,0,0,.9) 55%, rgba(0,0,0,0)); }
}
html.still .c.end::before { content: none; }
