/* ============================================================
   DS: shared foundation for every sub-brand room
   Generic reset, type scale, nav/footer/button/form structure.
   Every rule here reads its colors from CSS custom properties
   (--bg, --accent, --text-*, --border, --leak-* if a room uses
   them) so each room's own stylesheet just defines those tokens
   and inherits the same structure and motion language.
   No build tooling. Plain CSS, animated by GSAP.
   ============================================================ */

:root {
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;

  --shadow-tight: 0 4px 18px rgba(0, 0, 0, 0.4);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-height: 76px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ============================================================
   Accessibility: focus visibility + skip link
   ============================================================ */

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

.skip-link {
  position: fixed;
  top: -100px;
  inset-inline-start: 12px;
  z-index: 10000;
  padding: 12px 20px;
  background: var(--accent, #e8ecf2);
  color: var(--bg, #08090b);
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: top 0.2s var(--ease-out);
}

.skip-link:focus {
  top: 12px;
}

/* ============================================================
   Accessibility widget: floating button + settings panel.
   Injected on every page by initA11yWidget() in ds-shared.js.
   ============================================================ */

.a11y-widget {
  position: fixed;
  bottom: 20px;
  inset-inline-end: 20px;
  z-index: 9000;
}

.a11y-toggle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent, #e8ecf2);
  color: var(--bg, #08090b);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s var(--ease-out);
}

.a11y-toggle:hover {
  transform: scale(1.06);
}

.a11y-panel {
  position: absolute;
  bottom: 64px;
  inset-inline-end: 0;
  width: 260px;
  background: var(--bg-elevated, #0e1013);
  border: 1px solid var(--border-strong, rgba(242, 241, 238, 0.2));
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.a11y-panel h2 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 14px;
}

.a11y-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 14px;
}

.a11y-btn-group {
  display: flex;
  gap: 6px;
}

.a11y-btn-group button {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong, rgba(242, 241, 238, 0.2));
  font-weight: 700;
  font-size: 13px;
}

.a11y-btn-group button:hover {
  border-color: var(--accent, #e8ecf2);
}

.a11y-option {
  display: block;
  width: 100%;
  text-align: start;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong, rgba(242, 241, 238, 0.2));
  font-size: 14px;
  margin-bottom: 8px;
  transition: border-color 0.2s var(--ease-out), background 0.2s var(--ease-out);
}

.a11y-option:hover {
  border-color: var(--accent, #e8ecf2);
}

.a11y-option[aria-pressed="true"] {
  background: var(--accent, #e8ecf2);
  color: var(--bg, #08090b);
  border-color: var(--accent, #e8ecf2);
}

.a11y-reset {
  display: block;
  width: 100%;
  text-align: center;
  padding: 10px 12px;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  border-top: 1px solid var(--border, rgba(242, 241, 238, 0.1));
  padding-top: 12px;
}

.a11y-reset:hover {
  color: var(--text-primary);
}

/* Effect: larger text. zoom scales the whole page (layout included),
   which works correctly across this codebase's px-based font sizes
   without needing every stylesheet rewritten to rem units. Supported
   in Chrome/Safari/Edge; degrades to a no-op (not broken) elsewhere. */

html.a11y-font-lg {
  zoom: 1.15;
}

html.a11y-font-xl {
  zoom: 1.3;
}

/* Effect: high contrast - pure black/white with yellow links, the
   conventional high-contrast palette, overriding the theme tokens. */

html.a11y-contrast body {
  background: #000 !important;
  color: #fff !important;
}

html.a11y-contrast a {
  color: #ffe600 !important;
}

html.a11y-contrast .btn-primary,
html.a11y-contrast .btn-outline {
  background: #000 !important;
  color: #fff !important;
  border: 2px solid #ffe600 !important;
}

html.a11y-contrast *:focus-visible {
  outline: 3px solid #ffe600 !important;
}

/* Effect: underline every link, not just on hover */

html.a11y-underline a {
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

/* Effect: pause all CSS animation/transition, same mechanism the
   existing prefers-reduced-motion rule already uses. */

html.a11y-pause-motion *,
html.a11y-pause-motion *::before,
html.a11y-pause-motion *::after {
  animation-play-state: paused !important;
  transition: none !important;
}

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: "Heebo", sans-serif;
  font-weight: 300;
  letter-spacing: 0.005em;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

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

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

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.hidden {
  display: none !important;
}

/* ============================================================
   Hub-arrival overlay: hidden unless the tiny blocking script in
   <head> marks <html class="hub-arrival"> before first paint (only
   happens right after the hub's own camera-flight sets the
   sessionStorage flag). Never appears on a direct or bookmarked load.
   ============================================================ */

#hubTransitionOverlay {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: var(--accent);
  opacity: 0;
  pointer-events: none;
  display: none;
}

html.hub-arrival #hubTransitionOverlay {
  display: block;
  opacity: 1;
}

/* ============================================================
   Film grain (replaces AI-glow blobs)
   ============================================================ */

.film-grain {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================================================
   Typography
   ============================================================ */

h1,
h2,
h3,
h4 {
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.section-title {
  font-size: clamp(30px, 4.2vw, 56px);
  margin-bottom: 14px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: clamp(15px, 1.6vw, 18px);
  max-width: 620px;
  margin-bottom: 44px;
}

.section-head {
  text-align: center;
  margin: 0 auto;
}

/* ============================================================
   Navbar
   ============================================================ */

.navbar {
  position: fixed;
  top: 0;
  inset-inline: 0;
  height: var(--nav-height);
  z-index: 1000;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.22), 0 1px 20px rgba(255, 255, 255, 0.1);
}

.navbar .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  flex-shrink: 0;
}

.logo-img {
  height: 34px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s var(--ease-out);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-switch {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}

.lang-btn {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out);
}

.lang-btn.active {
  background: var(--accent);
  color: #08090b;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 26px;
}

.hamburger span {
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  inset-inline: 0;
  background: color-mix(in srgb, var(--bg) 97%, transparent);
  z-index: 999;
  padding: 24px;
  border-bottom: 1px solid var(--border);
}

.mobile-menu.open {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 14px 0;
  font-size: 18px;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), background 0.2s var(--ease-out);
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--accent);
  color: var(--text-primary);
  box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
  background: color-mix(in srgb, var(--accent) 85%, white);
  transform: translateY(-2px);
}

.btn-outline {
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 13px;
}

/* ============================================================
   Hero (structure only — brand-specific flourishes like a
   pulsing rec-dot stay in the room's own stylesheet)
   ============================================================ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
}

.hero-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  padding: 60px 0;
}

.hero h1 {
  font-size: clamp(40px, 8vw, 92px);
  margin-bottom: 26px;
}

.hero p.hero-lead {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================================
   Sprocket-hole motif (film-strip edges, room-transition panels)
   ============================================================ */

.sprocket-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 14px;
  background: color-mix(in srgb, var(--bg) 85%, black);
}

.sprocket-row span {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
}

/* ============================================================
   Contact / quote form
   ============================================================ */

.contact-wrap {
  max-width: 620px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 48px);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.2s var(--ease-out);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-success {
  display: none;
  text-align: center;
  padding: 24px;
}

.form-success .icon {
  font-size: 40px;
  margin-bottom: 16px;
}

/* ============================================================
   Footer
   ============================================================ */

footer {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.18), 0 -1px 20px rgba(255, 255, 255, 0.08);
  padding: 56px 0 32px;
  background: var(--bg-elevated);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 16px;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-faint);
  letter-spacing: 0.02em;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  padding: 6px 0;
  transition: color 0.2s var(--ease-out);
}

.footer-col a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-faint);
  flex-wrap: wrap;
  gap: 12px;
}

.social-row {
  display: flex;
  gap: 12px;
}

.social-row a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s var(--ease-out);
}

.social-row a:hover {
  border-color: var(--accent);
}

/* ============================================================
   Legal / simple content pages
   ============================================================ */

.page-header {
  padding-top: calc(var(--nav-height) + 56px);
  padding-bottom: 40px;
  text-align: center;
}

.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding-top: var(--nav-height);
}

.legal-content h2 {
  font-size: 22px;
  margin: 36px 0 14px;
}

.legal-content p,
.legal-content li {
  color: var(--text-muted);
  margin-bottom: 12px;
  font-size: 15px;
}

.legal-content ul {
  list-style: disc;
  padding-inline-start: 22px;
}

/* ============================================================
   Reveal utility (GSAP hooks off these classes)
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(24px);
}

/* ============================================================
   Generic section rhythm
   ============================================================ */

section {
  padding: 100px 0;
}

.section-alt {
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
}

/* ============================================================
   Responsive
   ============================================================ */

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

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  section {
    padding: 64px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
