/* ALTIMETER — concept build · Rod & Staff Media · 2026-08-08
   Palette: night-sky base / signal orange / instrument white / mono readouts */

:root {
  --sky: #0B0E13;
  --sky-2: #11161F;
  --panel: #0E1219;
  --signal: #FF6B1A;
  --signal-dim: #B34A12;
  --instrument: #E8ECF1;
  --readout: #8B94A3;
  --hairline: rgba(232, 236, 241, 0.08);
  --grid-line: rgba(232, 236, 241, 0.045);
  --font-display: "Archivo", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  background: var(--sky);
  color: var(--instrument);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--signal); color: var(--sky); }
.mono { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; color: var(--readout); }

/* ---------- gate ---------- */
#gate { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; }
.gate-panel { position: absolute; left: 0; width: 100%; height: 50.5%; background: #07090D; }
.gate-top { top: 0; box-shadow: 0 1px 0 var(--hairline); }
.gate-bot { bottom: 0; }
.gate-core { position: relative; z-index: 2; text-align: center; }
#gateDial { width: 132px; height: 132px; margin-bottom: 18px; }
.gate-alt { font-size: 1.5rem; color: var(--instrument); letter-spacing: 0.14em; }
.gate-alt span { color: var(--signal); }
.gate-label { margin-top: 10px; font-size: 0.62rem; }
body.gate-done #gate { pointer-events: none; }

/* ---------- header ---------- */
#hdr {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 14px 28px;
  background: linear-gradient(to bottom, rgba(11,14,19,0.92), rgba(11,14,19,0));
  opacity: 0; /* animated in after gate */
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--instrument); }
#logoMark { width: 34px; height: 34px; }
.wordmark { font-weight: 900; font-stretch: 118%; letter-spacing: 0.32em; font-size: 0.95rem; }
.hdr-readout { margin-left: auto; }
@media (max-width: 760px) { .hdr-readout { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; border: 1px solid transparent; cursor: pointer;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em;
  padding: 13px 22px; text-decoration: none; text-align: center;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-signal { background: var(--signal); color: #160902; font-weight: 600; }
.btn-signal:hover { background: var(--instrument); }
.btn-ghost { border-color: rgba(232,236,241,0.28); color: var(--instrument); }
.btn-ghost:hover { border-color: var(--signal); color: var(--signal); }
.btn-big { font-size: 0.9rem; padding: 20px 44px; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.media-ph { position: absolute; inset: 0; background-size: cover; background-position: center; }
#heroMedia {
  background-color: #0A0D12;
  background-image: url("../assets/hero.webp");
  transform: scale(1.06);
}
.hero video, .hero img.hero-real { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(11,14,19,0.55), rgba(11,14,19,0.15) 45%, rgba(11,14,19,0.72)); }

.hud { position: absolute; z-index: 3; font-size: 0.66rem; color: rgba(232,236,241,0.75); }
.hud-tl { top: 84px; left: 32px; } .hud-tl::first-letter { color: var(--signal); }
.hud-tr { top: 84px; right: 32px; }
.hud-bl { bottom: 30px; left: 32px; }
.hud-br { bottom: 30px; right: 32px; }
@media (max-width: 760px) { .hud-tr, .hud-br { display: none; } }

.bracket { position: absolute; width: 26px; height: 26px; border: 1px solid rgba(232,236,241,0.35); z-index: 3; }
.hero .b-tl { top: 76px; left: 24px; border-right: 0; border-bottom: 0; }
.hero .b-tr { top: 76px; right: 24px; border-left: 0; border-bottom: 0; }
.hero .b-bl { bottom: 22px; left: 24px; border-right: 0; border-top: 0; }
.hero .b-br { bottom: 22px; right: 24px; border-left: 0; border-top: 0; }

.hero-inner { position: relative; z-index: 4; text-align: center; padding: 0 20px; }
.hero-title {
  font-weight: 900; font-stretch: 125%;
  font-size: clamp(3.4rem, 11.5vw, 9.5rem);
  line-height: 0.92; letter-spacing: 0.01em; text-transform: uppercase;
}
.hero-title .line { display: block; }
.hero-sub { margin: 26px auto 34px; max-width: 520px; color: rgba(232,236,241,0.82); font-size: 1.02rem; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.descend { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 4; font-size: 0.62rem; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.descend-line { width: 1px; height: 42px; background: linear-gradient(to bottom, var(--signal), transparent); display: block; }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); padding: 18px 0; background: var(--panel); }
.marquee-track { display: flex; white-space: nowrap; will-change: transform; }
.marquee-track span {
  font-weight: 900; font-stretch: 125%; text-transform: uppercase;
  font-size: clamp(1.4rem, 3.4vw, 2.6rem); letter-spacing: 0.04em;
  color: transparent; -webkit-text-stroke: 1px rgba(255,107,26,0.85);
}

/* ---------- sections ---------- */
section { padding: 120px 6vw; position: relative; }
.sec-head { margin-bottom: 56px; }
.sec-kicker { display: block; color: var(--signal); margin-bottom: 14px; font-size: 0.68rem; }
.sec-title {
  font-weight: 900; font-stretch: 125%; text-transform: uppercase;
  font-size: clamp(2.2rem, 6vw, 4.6rem); line-height: 0.95;
}

/* ---------- work grid ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 34px; }
.filter { background: none; border: 1px solid rgba(232,236,241,0.2); color: var(--readout); padding: 9px 16px; cursor: pointer; font-size: 0.66rem; letter-spacing: 0.1em; transition: all 0.2s; }
.filter:hover { border-color: var(--signal); color: var(--instrument); }
.filter.is-active { background: var(--signal); border-color: var(--signal); color: #160902; font-weight: 600; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 980px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }

.card { position: relative; overflow: hidden; background: var(--panel); border: 1px solid var(--hairline); }
.card-media { aspect-ratio: 4 / 3; background-size: cover; background-position: center; transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.card:hover .card-media { transform: scale(1.06); }
.card figcaption { position: absolute; inset: auto 0 0 0; padding: 16px 18px; background: linear-gradient(to top, rgba(7,9,13,0.92), transparent); }
.card-meta { display: block; font-size: 0.6rem; color: var(--signal); margin-bottom: 6px; }
.card h3 { font-size: 1.05rem; font-weight: 700; }
.card.is-hidden { display: none; }

/* generated stills (Higgsfield cinematic_studio_2_5, 2026-08-08) */
.ph { background-color: #10151E; }
.ph-1 { background-image: url("../assets/work-1.webp"); }
.ph-2 { background-image: url("../assets/work-2.webp"); }
.ph-3 { background-image: url("../assets/work-3.webp"); }
.ph-4 { background-image: url("../assets/work-4.webp"); }
.ph-5 { background-image: url("../assets/work-5.webp"); }
.ph-6 { background-image: url("../assets/work-6.webp"); }
.ph-pilot { background-image: url("../assets/pilot.webp"); background-size: cover; background-position: center; background-color: #10151E; }

/* ---------- flight log ---------- */
.flightlog { background: var(--sky-2); }
.flightpath { position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%); height: 100%; width: 200px; pointer-events: none; }
@media (max-width: 860px) { .flightpath { display: none; } }
.log-entry { max-width: 460px; margin: 0 0 90px; position: relative; z-index: 2; }
.log-entry:nth-child(odd) { margin-left: auto; text-align: left; }
.log-num { display: block; color: var(--signal); font-size: 0.66rem; margin-bottom: 12px; }
.log-entry h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 900; font-stretch: 115%; text-transform: uppercase; line-height: 1.05; margin-bottom: 14px; }
.log-entry p { color: rgba(232,236,241,0.75); margin-bottom: 14px; }
.log-stat { font-size: 0.62rem; border-top: 1px solid var(--hairline); padding-top: 10px; display: inline-block; }

/* ---------- services ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 1100px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .svc-grid { grid-template-columns: 1fr; } }
.svc { border: 1px solid var(--hairline); background: var(--panel); padding: 30px 24px; transition: border-color 0.25s; }
.svc:hover { border-color: rgba(255,107,26,0.5); }
.svc-icon { width: 46px; height: 46px; margin-bottom: 20px; }
.svc h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: 10px; }
.svc p { color: var(--readout); font-size: 0.9rem; }

/* ---------- pilot ---------- */
.pilot { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; background: var(--sky-2); }
@media (max-width: 900px) { .pilot { grid-template-columns: 1fr; } }
.pilot-media { position: relative; aspect-ratio: 4 / 5; }
.pilot-media .media-ph { position: absolute; inset: 0; }
.pilot-media .b-tl { top: -10px; left: -10px; border-right: 0; border-bottom: 0; border-color: var(--signal); }
.pilot-media .b-br { bottom: -10px; right: -10px; border-left: 0; border-top: 0; border-color: var(--signal); }
.pilot-copy p { max-width: 440px; color: rgba(232,236,241,0.78); margin-bottom: 34px; }
.stats { display: flex; gap: 40px; flex-wrap: wrap; }
.stat-num { display: block; font-size: 2.3rem; color: var(--signal); font-weight: 600; letter-spacing: 0; }
.stat-label { font-size: 0.6rem; }

/* ---------- cta ---------- */
.cta { text-align: center; padding: 160px 6vw; }
.cta-title { font-weight: 900; font-stretch: 125%; text-transform: uppercase; font-size: clamp(3rem, 9vw, 7.5rem); line-height: 0.94; margin-bottom: 44px; }
.cta-title .line { display: block; }
.cta-note { display: block; margin-top: 22px; font-size: 0.62rem; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--hairline); padding: 34px 6vw 44px; text-align: center; }
.foot-note { margin-top: 12px; color: var(--readout); font-size: 0.75rem; max-width: 560px; margin-inline: auto; }

/* ---------- modal ---------- */
.modal-wrap { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; visibility: hidden; }
.modal-wrap.is-open { visibility: visible; }
.modal-scrim { position: absolute; inset: 0; background: rgba(5, 6, 9, 0.75); opacity: 0; transition: opacity 0.3s; }
.modal-wrap.is-open .modal-scrim { opacity: 1; }
.modal { position: relative; width: min(440px, calc(100vw - 40px)); background: var(--panel); border: 1px solid rgba(255,107,26,0.4); padding: 36px 32px; transform: translateY(40px) scale(0.96); }
.modal-close { position: absolute; top: 14px; right: 14px; background: none; border: 0; color: var(--readout); cursor: pointer; font-size: 0.62rem; }
.modal-close:hover { color: var(--signal); }
.modal-title { font-weight: 900; font-stretch: 120%; font-size: 1.7rem; margin: 8px 0 22px; }
#bookForm label { display: block; margin-bottom: 16px; font-size: 0.6rem; color: var(--readout); }
#bookForm input, #bookForm select {
  display: block; width: 100%; margin-top: 6px; padding: 11px 12px;
  background: var(--sky); border: 1px solid rgba(232,236,241,0.16); color: var(--instrument);
  font-family: var(--font-display); font-size: 0.92rem;
}
#bookForm input:focus, #bookForm select:focus { outline: none; border-color: var(--signal); }
#bookForm .btn { width: 100%; margin-top: 8px; }
.modal-sent { display: none; margin-top: 18px; color: var(--signal); font-size: 0.64rem; line-height: 1.6; }
.modal.sent #bookForm { display: none; }
.modal.sent .modal-sent { display: block; }

/* ---------- concept badge ---------- */
.badge-concept {
  position: fixed; bottom: 18px; left: 18px; z-index: 60;
  background: rgba(7,9,13,0.85); border: 1px solid rgba(255,107,26,0.6);
  color: var(--signal); padding: 6px 10px; font-size: 0.58rem; letter-spacing: 0.2em;
}

/* ---------- reveal prep (JS toggles) ---------- */
.js .sec-title, .js .hero-title { visibility: hidden; }
.js.fonts-ready .sec-title, .js.fonts-ready .hero-title { visibility: visible; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  #gate { display: none; }
  #hdr { opacity: 1; }
  .js .sec-title, .js .hero-title { visibility: visible; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
