/* Shared stylesheet for every page of the site (home, about, privacy, terms, unlock).
   Page-specific rules stay in each page's own <style>, linked after this file. */
:root {
  --bg-page: #f5f4ef;
  --bg-surface: #ffffff;
  --bg-control: #efece4;
  --text-primary: #0a0a0a;
  --text-secondary: rgba(10,10,10,0.6);
  --text-muted: rgba(10,10,10,0.45);
  --border: rgba(10,10,10,0.08);
  --border-strong: rgba(10,10,10,0.16);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-page);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* ===== HERO (now a full-viewport section, no frame) ===== */
.hero-frame {
  background: #ffffff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background 0.3s;
  position: relative;
  /* Removed: border-radius, border, overflow:hidden — was for mockup framing */
}
/* ===== SCROLL DOWN INDICATOR ===== */
/* Strictly gray-to-black palette — no color accents. */
/* --si-gray drives the "wash" that flows down the line during the pulse;
   --si-black is the final solid-black state the chevron reaches. */
:root {
  --si-gray: rgba(10,10,10,0.45);
  --si-black: #0a0a0a;
}
/* In dark mode the palette inverts to light-grays/white. */
body.is-dark, .hero-frame[data-theme="dark"] {
  --si-gray: rgba(250,250,250,0.45);
  --si-black: #fafafa;
}
/* The scroll indicator flows naturally below the hero text — it is NOT absolutely
   positioned. This guarantees it can never overlap the rotating word, no matter
   how many lines that word wraps to. Layout rules:
     - It sits inside .hero-content (after the rotator), in normal document flow
     - margin-top creates a guaranteed minimum gap between the rotating text and the shield
     - margin-bottom positions it visually near the bottom of the viewport
     - If the screen is too short to fit everything, the shield is naturally pushed
       below the fold (small scroll required to see it) rather than colliding */
.scroll-indicator {
  /* Normal-flow positioning — no absolute positioning. */
  align-self: center; /* center horizontally within hero-content flex column */
  /* margin-top: auto pushes the indicator to the bottom of the available space
     in the flex column, so it sits visually near the bottom of the viewport.
     The min-height fallback below GUARANTEES a minimum gap above the indicator
     even when there isn't enough room — if the screen is too short, the flex
     column simply expands beyond 100vh and the indicator falls below the fold. */
  margin-top: auto;
  margin-bottom: clamp(20px, 4vh, 48px); /* visual breathing room below */
  /* Minimum gap above the indicator — guarantees it can never touch the rotator,
     regardless of how many lines the rotating word wraps to. This is the hard
     contract: rotating text + min 48px gap + shield, always. */
  padding-top: clamp(48px, 8vh, 96px);
  /* Width scales with viewport so it's proportional on phones AND desktops, but capped. */
  width: clamp(28px, 4vw, 48px);
  /* Fixed neutral gray — same color in both light and dark themes */
  color: #555555;
  pointer-events: none;
  /* Subtle reveal — fade in slightly after page load so it doesn't compete with hero text */
  opacity: 0;
  animation: si-fade-in 1.2s ease-out 0.6s forwards;
  /* Ensure the indicator never gets squeezed by flex shrinking */
  flex-shrink: 0;
  /* Box-sizing so padding-top counts toward the layout, keeping width consistent */
  box-sizing: content-box;
}
body.is-dark .scroll-indicator,
.hero-frame[data-theme="dark"] .scroll-indicator {
  color: #cccccc;
}
.scroll-indicator-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}
@keyframes si-fade-in {
  /* Indicator centers via flex align-self now, not via translate(-50%),
     so the keyframe only animates Y offset and opacity. */
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* ===== Mouse body: subtle constant opacity (no animation) ===== */
.si-mouse {
  /* Static outline — anchor for the moving dot inside */
}
/* ===== The traveling dot: glides top→bottom inside the mouse on a slow loop ===== */
/* Travel range: from y=10 (just inside the top curve) down to y=24 (just above the bottom curve).
   The dot fades in at the top, glides down with easing, fades out near the bottom, then
   resets to the top invisibly before fading in again — creating a seamless looping effect. */
.si-dot {
  transform-origin: 16px 16px;
  animation: si-dot-travel 2.4s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
@keyframes si-dot-travel {
  0%   { transform: translateY(0);    opacity: 0; }
  15%  { transform: translateY(2px);  opacity: 1; }
  70%  { transform: translateY(14px); opacity: 1; }
  90%  { transform: translateY(16px); opacity: 0; }
  100% { transform: translateY(0);    opacity: 0; }
}
/* ===== Chevron below: gentle vertical bob to reinforce the down direction ===== */
.si-chev {
  opacity: 0.55;
  transform-origin: 16px 51px;
  animation: si-chev-bob 2.4s ease-in-out infinite;
}
@keyframes si-chev-bob {
  0%, 100% { transform: translateY(-2px); opacity: 0.4; }
  50%      { transform: translateY(2px);  opacity: 0.85; }
}
@media (prefers-reduced-motion: reduce) {
  /* Respect reduced-motion preference */
  .si-dot, .si-chev, .scroll-indicator {
    animation: none;
  }
  .si-dot { opacity: 0.7; }
  .si-chev { opacity: 0.55; transform: none; }
  .scroll-indicator { opacity: 1; }
}
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 36px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  /* NOT sticky — scrolls naturally with the page */
}
/* ===== MOBILE FULLSCREEN MENU ===== */
/* Fullscreen white overlay; hidden by default, slides in from the right when opened. */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  /* Hidden state */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
  /* Stretches full screen edge-to-edge, with comfortable internal padding */
  padding: 0;
}
.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
body.is-dark .mobile-menu,
.hero-frame[data-theme="dark"] .mobile-menu {
  background: #0a0a0a;
  color: #fafafa;
}
.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  /* Match nav-bar's visual rhythm so opening the menu feels seamless */
}
.mobile-menu-logo-text {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 500;
  font-size: 17px;
  color: #0a0a0a;
}
body.is-dark .mobile-menu-logo-text { color: #fafafa; }
.mobile-menu-close {
  background: transparent;
  border: none;
  padding: 8px;
  margin: -8px;  /* expand tap target without changing visual position */
  cursor: pointer;
  color: #0a0a0a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
body.is-dark .mobile-menu-close { color: #fafafa; }
.mobile-menu-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 24px 28px 0;
  /* Items separated by hairlines, with generous spacing for big tap targets */
}
.mobile-menu-item {
  display: block;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 400;
  font-size: 26px;
  color: #0a0a0a;
  text-decoration: none;
  padding: 28px 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  letter-spacing: -0.01em;
  transition: opacity 0.15s ease;
}
.mobile-menu-item:active { opacity: 0.5; }
body.is-dark .mobile-menu-item {
  color: #fafafa;
  border-bottom-color: rgba(255,255,255,0.12);
}
.mobile-menu-cta-wrap {
  padding: 24px 28px 36px;
}
.mobile-menu-cta {
  width: 100%;
  background: #0a0a0a;
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 22px 24px;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 500;
  font-size: 17px;
  cursor: pointer;
  letter-spacing: -0.01em;
  transition: opacity 0.15s ease;
}
.mobile-menu-cta:active { opacity: 0.8; }
body.is-dark .mobile-menu-cta {
  background: #fafafa;
  color: #0a0a0a;
}
/* When the menu is open, prevent body scroll behind it */
body.menu-open {
  overflow: hidden;
}
/* ===== ABOUT US PAGE ===== */
/* A standalone full-page view that overlays the entire site when active.
   Same color/theme system as the hero — clean Inter typography, generous whitespace,
   theme-aware. Hidden by default until the user navigates to it from the menu. */
.page-about {
  position: fixed;
  inset: 0;
  z-index: 999; /* Just below the mobile menu (z=1000) so a tap-through can still close menu first */
  background: #ffffff;
  color: #0a0a0a;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  /* Hidden state */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.page-about.is-open {
  opacity: 1;
  visibility: visible;
}
body.is-dark .page-about,
.hero-frame[data-theme="dark"] .page-about {
  background: #0a0a0a;
  color: #fafafa;
}
/* The About page reuses the same .nav-bar class as the home hero,
   so the logo + Night/Day + menu hamburger all look identical.
   The hamburger inside the About page (#page-about-hamburger) gets dark-mode
   handling from .is-dark .hamburger-line via the applyTheme function. */
.page-about-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 80px 28px 120px;
}
.about-section {
  /* Each content block — title + body. The divider sits between them. */
}
.about-title {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(40px, 7vw, 72px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 40px;
  color: inherit;
}
.about-title-secondary {
  /* Slightly smaller for visual hierarchy with the primary title above */
  font-size: clamp(32px, 5.5vw, 56px);
  margin-bottom: 28px;
}
.about-body {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.6;
  letter-spacing: -0.005em;
  color: inherit;
}
.about-body p {
  margin: 0 0 22px;
}
.about-body p:last-child {
  margin-bottom: 0;
}
.about-body strong {
  /* Slightly heavier weight for emphasized lines — Inter looks best at 600 for bold body text */
  font-weight: 600;
  color: inherit;
}
/* The divider — minimalist hairline + diamond mark in the middle.
   Echoes the geometric spark inside the scroll-down shield. */
.about-divider {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 80px 0;
  color: rgba(10,10,10,0.35);
}
body.is-dark .about-divider {
  color: rgba(250,250,250,0.35);
}
.about-divider-line {
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.4;
}
.about-divider-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* Mark itself stays at full opacity so it reads as a deliberate focal point */
  opacity: 1;
}
.about-cta-section {
  /* CTA gets a touch more breathing room than the body paragraph */
  text-align: left;
}
.about-cta-btn {
  display: inline-block;
  background: #0a0a0a;
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 20px 40px;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 500;
  font-size: 17px;
  cursor: pointer;
  letter-spacing: -0.01em;
  margin-top: 36px;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.about-cta-btn:hover { opacity: 0.92; }
.about-cta-btn:active { transform: scale(0.98); }
body.is-dark .about-cta-btn {
  background: #fafafa;
  color: #0a0a0a;
}
/* Lock background scroll when any subpage (About/Privacy/Terms) is open.
   We keep the existing about-open class for backwards compat and add a generic
   "subpage-open" class triggered by openSubpage(). */
body.about-open,
body.subpage-open {
  overflow: hidden;
}
/* ===== SUBPAGE SHARED STYLES (Privacy, Terms, etc.) ===== */
/* All subpages share the .page-about container's overlay behavior — fixed,
   full-screen, scrollable, theme-aware. The Privacy/Terms pages reuse the
   same .page-about-content layout for typography consistency, but mark
   themselves with .legal-content for a slightly different document feel. */
.subpage {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: #ffffff;
  color: #0a0a0a;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.subpage.is-open {
  opacity: 1;
  visibility: visible;
}
body.is-dark .subpage {
  background: #0a0a0a;
  color: #fafafa;
}
/* Subpage nav border in dark mode */
body.is-dark .subpage .nav-bar {
  border-bottom-color: rgba(255,255,255,0.08);
}
/* Legal pages (Privacy / Terms) — narrower max-width for comfortable reading */
.legal-content {
  max-width: 720px;
}
.legal-meta {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  color: rgba(10, 10, 10, 0.5);
  margin: -28px 0 36px;
  letter-spacing: 0.005em;
}
body.is-dark .legal-meta {
  color: rgba(250, 250, 250, 0.5);
}
.legal-h2 {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(22px, 2.4vw, 28px);
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin: 40px 0 16px;
  color: inherit;
}
@media (max-width: 600px) {
  .page-about-content { padding: 48px 22px 80px; }
  .about-divider { margin: 56px 0; gap: 14px; }
  .about-cta-btn { width: 100%; padding: 22px 32px; }
  .legal-meta { margin: -16px 0 28px; }
  .legal-h2 { margin: 32px 0 12px; }
}
/* ===== CINEMATIC CONTACT OVERLAY ===== */
/* Full-screen dark canvas with one Typeform-style question at a time.
   Backdrop-blurs the website underneath. The current step fades + slides in;
   completed steps fade + slide out upward. */
.contact-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000; /* Above the mobile menu (1000) and About page (999) */
  background: rgba(8, 8, 10, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  color: #fafafa;
  /* Hidden by default */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  display: flex;
  flex-direction: column;
}
.contact-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
.contact-overlay.is-closing {
  /* Slower fade-out for the dramatic exit after submission */
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
/* Close button — sits in the top right */
.contact-close {
  position: absolute;
  top: clamp(20px, 3vh, 32px);
  right: clamp(20px, 3vw, 36px);
  background: transparent;
  border: none;
  padding: 10px;
  margin: -10px;
  cursor: pointer;
  color: rgba(250,250,250,0.6);
  z-index: 10;
  transition: color 0.2s ease;
}
.contact-close:hover {
  color: #fafafa;
}
/* Progress indicator — top center, small and understated */
.contact-progress {
  position: absolute;
  top: clamp(24px, 3.5vh, 36px);
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(250,250,250,0.4);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 6px;
}
.contact-step-num {
  color: rgba(250,250,250,0.9);
  font-variant-numeric: tabular-nums;
  /* Fixed-width so the layout doesn't shift when going from 1→2 etc */
  min-width: 1ch;
  text-align: right;
}
/* Stage container that holds all steps stacked on top of each other */
.contact-stage {
  flex: 1;
  position: relative;
  width: 100%;
  height: 100%;
}
/* Each step is absolutely positioned, full-stage, perfectly centered.
   Only the active step is visible/interactive; others are tucked away. */
.contact-step {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 32px 80px;
  box-sizing: border-box;
  text-align: center;
  /* Default state: hidden BELOW (will slide up into view when activated) */
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.contact-step.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.contact-step.is-past {
  /* Completed steps fade and slide UP and out */
  opacity: 0;
  transform: translateY(-40px);
  pointer-events: none;
}
/* The massive question typography */
.contact-question {
  display: block;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 500;
  font-size: clamp(36px, 6vw, 84px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 48px;
  color: #fafafa;
  max-width: 100%;
  /* JS auto-fit (fitContactQuestions) guarantees the chosen font-size always
     fits the whole sentence on one line for the current viewport width.
     nowrap then forbids any wrapping — text stays on a single line, never split. */
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
/* Input row — sleek horizontal underline only, no boxy field */
.contact-input-row {
  display: flex;
  align-items: flex-end;
  width: 100%;
  max-width: 720px;
  gap: 18px;
  border-bottom: 1.5px solid rgba(250,250,250,0.25);
  padding-bottom: 12px;
  transition: border-bottom-color 0.25s ease;
}
.contact-input-row:focus-within {
  border-bottom-color: rgba(250,250,250,0.8);
}
.contact-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fafafa;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(22px, 3vw, 36px);
  letter-spacing: -0.01em;
  padding: 4px 0;
  width: 100%;
  /* Disable browser autofill background colors which would break the dark aesthetic */
  -webkit-text-fill-color: #fafafa;
  caret-color: #fafafa;
}
.contact-input::placeholder {
  color: rgba(250,250,250,0.3);
  font-weight: 300;
}
/* Override Chrome/Safari autofill yellow */
.contact-input:-webkit-autofill {
  -webkit-text-fill-color: #fafafa !important;
  transition: background-color 9999s ease-in-out 0s;
}
.contact-textarea {
  resize: none;
  line-height: 1.4;
  /* Match input typography exactly */
  font-family: inherit;
}
/* Submit arrow button — circle with right-pointing arrow */
.contact-next {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fafafa;
  color: #0a0a0a;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.contact-next:hover {
  transform: scale(1.06);
}
.contact-next:active {
  transform: scale(0.96);
}
.contact-next:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
}
/* The hint line under each input */
.contact-hint {
  margin-top: 20px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: rgba(250,250,250,0.4);
  letter-spacing: 0.01em;
}
/* Step 2 pills — elegant minimalist outlined buttons */
.contact-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  max-width: 720px;
}
.contact-pill {
  background: transparent;
  color: #fafafa;
  border: 1.5px solid rgba(250,250,250,0.3);
  border-radius: 999px;
  padding: 16px 28px;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(15px, 1.4vw, 18px);
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
}
.contact-pill:hover {
  border-color: rgba(250,250,250,0.7);
  background: rgba(250,250,250,0.05);
}
.contact-pill.is-selected {
  background: #fafafa;
  color: #0a0a0a;
  border-color: #fafafa;
}
/* Final step — celebration screen */
.contact-step-final .contact-question-final {
  margin-bottom: 16px;
}
.contact-final-mark {
  margin-bottom: 32px;
  color: rgba(250,250,250,0.9);
  /* Subtle scale-in animation when this step becomes active */
  animation: contact-final-pop 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.contact-step-final.is-active .contact-final-mark {
  animation: contact-final-pop 0.6s 0.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes contact-final-pop {
  from { opacity: 0; transform: scale(0.7); }
  to   { opacity: 1; transform: scale(1); }
}
.contact-final-sub {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight: 300;
  color: rgba(250,250,250,0.6);
  letter-spacing: -0.01em;
}
/* Lock background scroll when overlay is open */
body.contact-open {
  overflow: hidden;
}
@media (max-width: 600px) {
  .contact-step { padding: 100px 22px 60px; }
  .contact-question { margin-bottom: 36px; }
  .contact-pills { gap: 10px; }
  .contact-pill { padding: 13px 22px; font-size: 15px; }
  .contact-next { width: 48px; height: 48px; }
  .contact-next svg { width: 20px; height: 20px; }
  .contact-input-row { gap: 12px; }
}
.logo-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: #0a0a0a;
  line-height: 1;
}
.logo-dot {
  display: inline-block;
  width: 1em;
  height: 1em;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 25%, #7F77DD 0%, transparent 45%),
    radial-gradient(circle at 75% 30%, #D4537E 0%, transparent 50%),
    radial-gradient(circle at 80% 75%, #EF9F27 0%, transparent 50%),
    radial-gradient(circle at 25% 80%, #5DCAA5 0%, transparent 55%),
    radial-gradient(circle at 50% 50%, #378ADD 0%, #534AB7 100%);
  flex-shrink: 0;
}
.nav-link {
  font-size: 14px;
  color: #0a0a0a;
  font-weight: 400;
  cursor: pointer;
}
.hero-content {
  flex: 1;
  /* The bottom padding used to be 100px (before the indicator lived inside).
     Now the indicator handles its own bottom margin, so we shrink this to 0
     and let the indicator's own margins control the spacing. */
  padding: 14vh 28px 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}
.hero-stack {
  line-height: 0.92;
  letter-spacing: -0.04em;
  font-weight: 500;
}
.hero-line-1 {
  /* Bumped from clamp(56px, 14vw, 180px) so phones get a proportionally bigger headline.
     On iPhone 17 Pro (402px wide), 22vw ≈ 88px which feels appropriately massive.
     On desktop (1400px+), the 200px cap keeps it from getting absurd. */
  font-size: clamp(80px, 22vw, 200px);
  color: #0a0a0a;
  white-space: nowrap;
  max-width: 100%;
  display: inline-block;
}
.rotator-wrap {
  /* Allow up to ~3 lines of rotating text. Min-height keeps layout stable;
     height adapts when the word wraps onto multiple lines. */
  min-height: clamp(96px, 24vw, 220px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: visible;
  position: relative;
  width: 100%;
  padding: 0 8px;
  margin-top: 4px;
}
#hero-rotator {
  font-size: clamp(80px, 22vw, 200px);
  display: inline-block;
  transition: opacity 0.5s, transform 0.5s, filter 0.5s;
  color: #5DCAA5;
  /* Allow wrapping: long two-word phrases break onto a second line, very long
     ones can break to a third. word-break ensures phrases like "Collaborative Energy"
     can wrap between words. */
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: none;
  max-width: 100%;
  line-height: 0.95;
}
/* ===== SCROLL REVEAL SECTION ===== */
/* The outer wrapper is tall so the user scrolls through it; the inner sticks. */
.reveal-section {
  position: relative;
  height: 400vh; /* 4 viewport heights = scroll distance for the full reveal */
  background: #ffffff;
  transition: background 0.3s;
}
.reveal-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 24px;
  box-sizing: border-box;
}
.reveal-text {
  width: 100%;
  text-align: center;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: #0a0a0a;
  /* Font sizing strategy:
     - horizontal: 13vw makes the longest single word ("businesses", 10 chars) fit at any width
     - vertical: 18vh × line-height keeps the typical 4-row wrap within viewport
     - clamp enforces sensible min on tiny screens and max on giant 4K monitors
     Words flow inline and wrap naturally based on available width — no hardcoded rows. */
  font-size: clamp(32px, min(13vw, 18vh), 200px);
  /* Prevent words from being broken mid-character if the container is extremely narrow */
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
.reveal-word {
  display: inline-block;
  opacity: 0.08; /* "Barely visible" starting state */
  transition: opacity 0.15s ease-out;
  /* Spacing between words. Using margin (not space character) so each word
     is a self-contained block — needed for the reveal animation. */
  margin: 0 0.18em 0.05em 0;
  will-change: opacity;
  /* Crucial: each word stays whole — never broken across two lines */
  white-space: nowrap;
}
.reveal-word.is-on {
  opacity: 1;
}
/* After-reveal spacer (so scrolling out of the pin is smooth) */
/* ===== CAPABILITIES SECTION ===== */
/* Sits below the scroll-pinned reveal. Premium intro sentence + 2x4 card grid.
   Each card has a thick dark border, white interior, and a minimalist
   black-line illustration with one jewel-toned animation accent. */
.capabilities {
  background: #ffffff;
  padding: clamp(80px, 12vh, 160px) clamp(20px, 5vw, 80px);
  transition: background 0.3s;
}
body.is-dark .capabilities {
  background: #0a0a0a;
}
.capabilities-inner {
  max-width: 1280px;
  margin: 0 auto;
}
/* Intro sentence — premium bridge between massive typography above and grid below.
   Uses Inter at a smaller display size, with subtle dim color for understatement. */
.capabilities-intro {
  text-align: center;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 500;
  font-size: clamp(22px, 2.6vw, 36px);
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: #0a0a0a;
  margin: 0 0 clamp(56px, 8vh, 96px);
  /* Subtle entrance — fades in when section first scrolls into view (CSS-only) */
  opacity: 0.92;
}
body.is-dark .capabilities-intro {
  color: #fafafa;
}
/* ===== FOOTER ===== */
/* Minimalist multi-column footer. Slick hairline divider on top, brand block
   on the left, two link columns on the right. Responsive: stacks on mobile. */
.site-footer {
  background: #ffffff;
  padding: 0 clamp(20px, 5vw, 80px);
  transition: background 0.3s;
}
body.is-dark .site-footer {
  background: #0a0a0a;
}
/* The slick divider — a thin, almost-invisible hairline that spans the full width.
   This is the elegant separation between page content and footer. */
.footer-divider {
  height: 1px;
  background: rgba(10, 10, 10, 0.08);
  margin: 0 auto;
  max-width: none;
}
body.is-dark .footer-divider {
  background: rgba(250, 250, 250, 0.1);
}
.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(40px, 6vh, 64px) 0 clamp(32px, 5vh, 48px);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(40px, 6vw, 80px);
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
  /* Holds its own width on wide screens but doesn't dominate */
  flex: 0 0 auto;
}
.footer-logo {
  /* Reuses .logo-mark from the nav-bar so it looks identical */
  font-size: 16px;
}
body.is-dark .footer-logo {
  color: #fafafa;
}
.footer-copyright {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: rgba(10, 10, 10, 0.5);
  letter-spacing: -0.005em;
}
body.is-dark .footer-copyright {
  color: rgba(250, 250, 250, 0.5);
}
/* The link columns — sit on the right on desktop, wrap below the brand on mobile */
.footer-columns {
  display: flex;
  gap: clamp(40px, 6vw, 96px);
  flex-wrap: wrap;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 110px;
}
.footer-col-title {
  margin: 0 0 6px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: rgba(10, 10, 10, 0.5);
  letter-spacing: -0.005em;
}
body.is-dark .footer-col-title {
  color: rgba(250, 250, 250, 0.55);
}
.footer-link {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: #0a0a0a;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: opacity 0.15s ease;
}
.footer-link:hover {
  opacity: 0.6;
}
body.is-dark .footer-link {
  color: #fafafa;
}
@media (max-width: 600px) {
  .footer-inner {
    flex-direction: column;
    gap: 36px;
    align-items: flex-start;
  }
  .footer-columns {
    width: 100%;
    gap: 48px;
  }
}
/* The text "About us" link is never shown — navigation lives in the menu only */
.nav-about-text { display: none !important; }
/* The hamburger menu is always visible, on every viewport size */
.nav-hamburger { display: flex !important; }
@media (max-width: 600px) {
  .row-2 { grid-template-columns: 1fr; }
  .nav-bar { padding: 16px 18px; }
  .reveal-sticky { padding: 16px; }
}
@media (max-width: 380px) {
  .rotator-wrap { padding: 0 4px; }
  .reveal-sticky { padding: 12px; }
}
/* ===== SITE BODY FONT: OUTFIT =====
   Header (.nav-bar, .mobile-menu) and footer (.site-footer) keep Inter
   via their existing declarations earlier in this stylesheet. */
body {
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
}
.hero-stack, .hero-line-1, #hero-rotator,
.reveal-text,
.capabilities-intro,
.about-title, .about-body, .about-cta-btn,
.legal-meta, .legal-h2,
.contact-question, .contact-input, .contact-pill, .contact-hint, .contact-final-sub {
  font-family: 'Outfit', system-ui, sans-serif;
}
/* Force Inter on header + footer regardless of body-level Outfit inheritance. */
.nav-bar, .nav-bar *,
.mobile-menu, .mobile-menu *,
.site-footer, .site-footer * {
  font-family: 'Inter', system-ui, sans-serif;
}
