/* ==========================================================================
   FRONTROW website: tokens, base and shared components.
   Dark stage, loud condensed capitals for headlines, one grotesk for reading,
   mono for small labels and numbers, one hot accent. --ink is the text colour
   and --paper the page colour, so components written for either keep working.
   Section layouts live in sections.css (hero), showcase.css (Galerie room)
   and sales.css (everything that sells).
   ========================================================================== */

:root {
  color-scheme: dark;
  --ink: #f3f2ee;
  --paper: #08080a;
  --surface: #121214;
  --surface-raised: #1a1a1d;
  --well: #161618;
  --muted: rgb(243 242 238 / 0.64);
  --muted-on-ink: rgb(8 8 10 / 0.66);
  --hairline: rgb(243 242 238 / 0.12);
  --hairline-strong: rgb(243 242 238 / 0.28);
  --accent: #ff2a00;
  --glow: rgb(255 42 0 / 0.35);
  --font-display: 'Archivo Narrow', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --text-ui: 0.875rem;
  --text-lead: clamp(1rem, 0.94rem + 0.3vw, 1.1875rem);
  --text-section: clamp(2.75rem, 1.2rem + 5.4vw, 7rem);
  --text-title: clamp(1.25rem, 1.1rem + 0.5vw, 1.625rem);
  --margin: clamp(1rem, 0.5rem + 2vw, 2.5rem);
  --space-section: clamp(5rem, 3.5rem + 6vw, 10rem);
  --radius: 1rem;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --header-height: 3.5rem;
}

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

html {
  scroll-padding-top: var(--header-height);
}

/* Native smooth anchors only when GSAP is not driving scroll: CSS smooth
   scrolling throws off ScrollTrigger's pin and scrub measurements. */
@media (prefers-reduced-motion: no-preference) {
  html:not(.has-motion) {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-ui);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

main {
  background: var(--paper);
}

main:focus {
  outline: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Component display rules must never un-hide content (e.g. the price terms). */
[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: -10rem;
  left: var(--margin);
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--paper);
}

.skip-link:focus {
  top: 0.5rem;
}

.eyebrow {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* A small lit dot before an eyebrow: the "live" mark used across the page. */
.eyebrow--live {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.eyebrow--live::before {
  content: '';
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0.25rem rgb(255 42 0 / 0.18), 0 0 1rem var(--glow);
}

/* ---------- Display type: condensed capitals, set tight ---------- */
.display {
  font-family: var(--font-display);
  font-size: var(--text-section);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 0.9;
  text-transform: uppercase;
  text-wrap: balance;
}

.display__line {
  display: block;
}

/* Second half of a two-tone headline: 7.4:1 on the page colour. */
.display__soft {
  color: #8d8c88;
}

.lead {
  max-width: 34rem;
  color: var(--muted);
  font-size: var(--text-lead);
  line-height: 1.5;
}

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.25rem;
  padding: 0 1.6rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font: 700 0.8125rem/1 var(--font-body);
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color var(--duration-fast) ease, color var(--duration-fast) ease,
    border-color var(--duration-fast) ease, box-shadow var(--duration-normal) ease, transform var(--duration-fast) ease;
}

.button:hover {
  box-shadow: 0 0 0 4px rgb(255 42 0 / 0.25), 0 0 2.5rem var(--glow);
  transform: translateY(-1px);
}

.button:active {
  box-shadow: none;
  transform: none;
}

.button--small {
  min-height: 2.5rem;
  padding: 0 1.1rem;
  font-size: 0.75rem;
}

.button--ghost,
.button--ghost-light {
  border-color: var(--hairline-strong);
  background: transparent;
  color: var(--ink);
}

.button--ghost:hover,
.button--ghost-light:hover {
  border-color: var(--ink);
}

.button--light {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

/* ---------- Generic section shell ---------- */
.section {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  padding: var(--space-section) var(--margin);
  background: var(--paper);
}

.section__head {
  display: grid;
  gap: 1.25rem;
  max-width: 64rem;
}

.section__head--center {
  justify-items: center;
  margin-inline: auto;
  text-align: center;
}

/* ---------- FAQ ---------- */
.faq {
  width: 100%;
  max-width: 64rem;
  margin-inline: auto;
  border-top: 1px solid var(--hairline-strong);
}

.faq details {
  border-bottom: 1px solid var(--hairline);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.25rem);
  font-weight: 500;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  color: var(--accent);
  font-family: var(--font-mono);
  transition: transform var(--duration-fast) ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  max-width: 48rem;
  padding-bottom: 1.5rem;
  color: var(--muted);
  font-size: 1rem;
}

/* ---------- Footer ---------- */
.site-footer {
  display: grid;
  gap: 2rem;
  padding: 2.5rem var(--margin) 2.5rem;
  border-top: 1px solid var(--hairline);
  background: var(--paper);
  color: var(--ink);
}

.wordmark--footer {
  overflow: hidden;
  font-size: clamp(3.5rem, 1rem + 13vw, 15rem);
  line-height: 0.82;
  white-space: nowrap;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-nav a {
  color: var(--muted);
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.footer-nav a:hover {
  color: var(--ink);
}

.site-footer__legal {
  color: var(--muted);
  font-size: 0.75rem;
}

/* ---------- Lightbox ---------- */
.lightbox {
  width: min(100% - 2rem, 90rem);
  max-height: calc(100% - 2rem);
  padding: 0;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  overscroll-behavior: contain;
}

.lightbox::backdrop {
  background: rgb(0 0 0 / 0.8);
}

.lightbox__bar {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--hairline);
  background: var(--paper);
}

.lightbox__title {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.lightbox__close {
  min-height: 2.25rem;
  border: 0;
  background: none;
  color: var(--ink);
  font: 700 0.75rem/1 var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.lightbox__shots {
  display: grid;
  grid-template-columns: 3fr 1fr;
  align-items: start;
  gap: 1rem;
  padding: 1rem;
}

.lightbox__desktop {
  display: grid;
  gap: 1rem;
}

.lightbox__shots img {
  border: 1px solid var(--hairline);
  border-radius: 0.5rem;
}

@media (max-width: 760px) {
  .lightbox__shots {
    grid-template-columns: 1fr;
  }
}
