/* ============================================================
   WINDRIDGE.VC — Design Tokens & Styles
   Visual Recalibration: clarity at altitude
   ============================================================ */

/* --- Tokens --- */
:root {
  /* Dark foundations */
  --void: #0C0E12;
  --obsidian: #12151A;
  --graphite: #181C22;
  --iron: #1E2228;
  --smoke: #262B32;

  /* Blue-black and green-black tones */
  --deep-sea: #0F1620;
  --night-glass: #141C26;

  /* Borders */
  --wire: #2A3038;
  --ash: #38404A;

  /* Text */
  --bone: #E8E4DF;
  --fog: #B5B1AB;
  --slate: #808690;
  --ghost: #525860;

  /* Accent — mineral teal family */
  --signal: #5BA8A0;
  --signal-light: #7EC4BC;
  --signal-muted: rgba(91, 168, 160, 0.35);
  --signal-subtle: rgba(91, 168, 160, 0.08);

  /* Luminous accents */
  --sage: #8BA89A;
  --pale-stone: #D8D4CE;
  --mist: #C8C4BE;

  /* Pale surface tokens (thesis section) */
  --cloud: #E8E5DF;
  --cloud-surface: #E2DFD9;
  --cloud-border: #CCC9C2;
  --cloud-text: #2A2822;
  --cloud-text-muted: #5A5750;
  --cloud-label: #2D6560;

  /* Lifted dark tokens */
  --deep-mineral: #141D25;
  --night-mineral: #182430;

  /* Spacing */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 64px;
  --space-2xl: 96px;
  --space-3xl: 128px;
  --space-4xl: 180px;

  /* Layout */
  --container-max: 1280px;
  --container-wide: 1440px;
  --gutter: 24px;
  --margin-desktop: 72px;
  --margin-tablet: 40px;
  --margin-mobile: 24px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --transition-fast: 300ms var(--ease-out);
  --transition-slow: 600ms var(--ease-out);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: 'General Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  color: var(--fog);
  background-color: var(--void);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

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

/* --- Typography --- */
.text-bone { color: var(--bone); }
.text-fog { color: var(--fog); }
.text-slate { color: var(--slate); }
.text-ghost { color: var(--ghost); }

.label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--signal);
  line-height: 1.4;
}

.mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--slate);
}

/* --- Container --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--margin-desktop);
  padding-right: var(--margin-desktop);
}

@media (max-width: 1024px) {
  .container {
    padding-left: var(--margin-tablet);
    padding-right: var(--margin-tablet);
  }
}

@media (max-width: 640px) {
  .container {
    padding-left: var(--margin-mobile);
    padding-right: var(--margin-mobile);
  }
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 68px;
  display: flex;
  align-items: center;
  background: rgba(18, 21, 26, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--wire);
}

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

.navbar-brand {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bone);
  transition: color var(--transition-fast);
}

.navbar-brand:hover {
  color: var(--fog);
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.navbar-link {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--fog);
  transition: color var(--transition-fast);
  position: relative;
}

.navbar-link:hover {
  color: var(--bone);
}

.navbar-link.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--signal);
}

.btn-ghost {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--signal-light);
  background: transparent;
  border: 1px solid var(--signal-muted);
  padding: 10px 22px;
  border-radius: 3px;
  transition: color var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}

.btn-ghost:hover {
  color: var(--bone);
  border-color: var(--signal);
  background: var(--signal-subtle);
}

/* Mobile nav */
.navbar-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  position: relative;
  z-index: 10;
}

.navbar-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--fog);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(12, 14, 18, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-fast), visibility var(--transition-fast);
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu a {
  font-size: 28px;
  font-weight: 400;
  color: var(--fog);
  transition: color var(--transition-fast);
}

.mobile-menu a:hover {
  color: var(--bone);
}

.mobile-close {
  position: absolute;
  top: 22px;
  right: var(--margin-mobile);
  padding: 8px;
  cursor: pointer;
}

.mobile-close svg {
  width: 24px;
  height: 24px;
  stroke: var(--fog);
  stroke-width: 1.5;
}

@media (max-width: 768px) {
  .navbar-links { display: none; }
  .navbar-hamburger { display: flex; }
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(12, 14, 18, 0.92) 0%,
    rgba(12, 14, 18, 0.5) 18%,
    rgba(12, 14, 18, 0.15) 45%,
    rgba(12, 14, 18, 0.02) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-bottom: var(--space-3xl);
}

.hero-headline {
  font-size: clamp(42px, 7vw, 88px);
  font-weight: 600;
  color: var(--bone);
  line-height: 1.04;
  letter-spacing: -0.03em;
  max-width: 9ch;
}

.hero-subline {
  margin-top: var(--space-md);
  font-size: clamp(16px, 1.2vw, 18px);
  font-weight: 400;
  color: var(--fog);
  max-width: 380px;
  line-height: 1.5;
}

.hero-threshold {
  position: absolute;
  bottom: 64px;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(200, 196, 190, 0.2);
  z-index: 1;
}

.hero-scroll {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  width: 1px;
  height: 32px;
  background: var(--slate);
  opacity: 0.6;
}

.hero-scroll::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 12px;
  background: var(--signal-light);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(20px); opacity: 0.3; }
}

/* --- Thesis (PALE MIST SECTION) --- */
.thesis {
  background: var(--cloud);
  padding: var(--space-4xl) 0;
  position: relative;
  overflow: hidden;
}

/* Subtle warm gradient at top edge for depth */
.thesis::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(
    to bottom,
    rgba(200, 196, 190, 0.5) 0%,
    transparent 100%
  );
  pointer-events: none;
}

.thesis-bg-texture {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg width='400' height='400' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 200 Q100 180 200 200 T400 200' fill='none' stroke='%233D7A74' stroke-width='0.5'/%3E%3Cpath d='M0 160 Q100 140 200 160 T400 160' fill='none' stroke='%233D7A74' stroke-width='0.5'/%3E%3Cpath d='M0 240 Q100 220 200 240 T400 240' fill='none' stroke='%233D7A74' stroke-width='0.5'/%3E%3Cpath d='M0 120 Q100 100 200 120 T400 120' fill='none' stroke='%233D7A74' stroke-width='0.5'/%3E%3Cpath d='M0 280 Q100 260 200 280 T400 280' fill='none' stroke='%233D7A74' stroke-width='0.5'/%3E%3Cpath d='M0 80 Q100 60 200 80 T400 80' fill='none' stroke='%233D7A74' stroke-width='0.5'/%3E%3Cpath d='M0 320 Q100 300 200 320 T400 320' fill='none' stroke='%233D7A74' stroke-width='0.5'/%3E%3C/svg%3E");
  background-size: 400px 400px;
}

.thesis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.thesis-left .label {
  margin-bottom: var(--space-sm);
}

.thesis .label {
  color: var(--cloud-label);
}

.thesis-headline {
  font-size: clamp(28px, 3.5vw, 52px);
  font-weight: 600;
  color: var(--cloud-text);
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 520px;
}

.thesis-right {
  padding-top: var(--space-lg);
}

.thesis-body {
  font-size: 17px;
  color: var(--cloud-text-muted);
  line-height: 1.7;
  max-width: 420px;
}

@media (max-width: 768px) {
  .thesis-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  .thesis-right {
    padding-top: 0;
  }
}

/* --- Interstitial --- */
.interstitial {
  position: relative;
  height: 60vh;
  overflow: hidden;
}

.interstitial-image {
  position: absolute;
  inset: 0;
}

.interstitial-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.interstitial-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(12, 14, 18, 0.45) 0%,
    rgba(12, 14, 18, 0.08) 35%,
    rgba(12, 14, 18, 0.02) 100%
  );
}

.interstitial-content {
  position: absolute;
  bottom: var(--space-xl);
  left: 0;
  z-index: 1;
  padding: var(--space-md) var(--space-lg);
  background: rgba(18, 21, 26, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(91, 168, 160, 0.15);
  border-radius: 4px;
  margin-left: var(--margin-desktop);
}

.interstitial-text {
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 500;
  color: var(--bone);
  letter-spacing: -0.01em;
}

.interstitial-sub {
  margin-top: 8px;
  font-size: 15px;
  color: var(--fog);
}

@media (max-width: 1024px) {
  .interstitial-content {
    margin-left: var(--margin-tablet);
  }
}

@media (max-width: 640px) {
  .interstitial-content {
    margin-left: var(--margin-mobile);
    margin-right: var(--margin-mobile);
  }
}

/* --- Companies Section --- */
.companies {
  background: var(--deep-mineral);
  padding: var(--space-3xl) 0 var(--space-2xl);
  position: relative;
  overflow: hidden;
}

/* Subtle teal gradient on left edge */
.companies::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 400px;
  background: linear-gradient(
    to right,
    rgba(91, 168, 160, 0.05) 0%,
    transparent 100%
  );
  pointer-events: none;
}

.companies-header {
  margin-bottom: var(--space-xl);
}

.companies-header .label {
  margin-bottom: var(--space-sm);
}

.companies-headline {
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 600;
  color: var(--bone);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

/* Company band */
.company-band {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: var(--space-lg);
  align-items: center;
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--wire);
}

.company-band:first-of-type {
  border-top: 1px solid var(--wire);
}

.company-band.primary .company-image-wrap {
  height: 300px;
}

.company-image-wrap {
  position: relative;
  height: 240px;
  overflow: hidden;
  border-radius: 4px;
}

.company-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 800ms var(--ease-out);
}

.company-band:hover .company-image-wrap img {
  transform: scale(1.02);
}

.company-info {
  padding-left: var(--space-md);
}

.company-role {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: var(--space-xs);
}

.company-name {
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 500;
  color: var(--bone);
  letter-spacing: -0.01em;
  margin-bottom: var(--space-xs);
}

.company-desc {
  font-size: 16px;
  color: var(--fog);
  line-height: 1.6;
  max-width: 440px;
  margin-bottom: var(--space-md);
}

.company-meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* Status tags */
.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border: 1px solid var(--wire);
  border-radius: 3px;
  background: rgba(38, 43, 50, 0.7);
}

.status-tag.active .status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 8px var(--signal-muted);
}

.status-tag.active {
  color: var(--slate);
  border-color: var(--signal-muted);
}

.status-tag.coming-soon .status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1px solid var(--wire);
  background: transparent;
}

.status-tag.coming-soon {
  color: var(--ghost);
}

/* Company CTA links */
.company-cta {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--fog);
  border: 1px solid var(--wire);
  padding: 8px 18px;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}

.company-cta:hover {
  color: var(--bone);
  border-color: var(--signal-muted);
  background: var(--signal-subtle);
}

.company-cta .arrow {
  font-size: 12px;
  opacity: 0.7;
}

@media (max-width: 768px) {
  .company-band {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  .company-image-wrap,
  .company-band.primary .company-image-wrap {
    height: 200px;
  }
  .company-info {
    padding-left: 0;
  }
}

/* --- Studio Section --- */
.studio {
  background: var(--night-mineral);
  padding: var(--space-2xl) 0 var(--space-3xl);
  position: relative;
  border-top: 1px solid rgba(91, 168, 160, 0.1);
  overflow: hidden;
}

/* Subtle signal glow at top for creative energy */
.studio::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 200px;
  background: radial-gradient(
    ellipse at center,
    rgba(91, 168, 160, 0.08) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.studio-header {
  margin-bottom: var(--space-xl);
}

.studio-header .label {
  margin-bottom: var(--space-sm);
}

.studio .company-band {
  border-top: 1px solid var(--wire);
}

/* --- Closing Statement (GRADIENT FIELD) --- */
.closing {
  background: linear-gradient(
    170deg,
    #0C1018 0%,
    #10181F 20%,
    #132028 40%,
    #14262E 55%,
    #152A32 70%,
    #112028 85%,
    #0E1820 100%
  );
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4xl) 0;
  position: relative;
  overflow: hidden;
}

/* Atmospheric radial light — visible teal atmosphere */
.closing::before {
  content: '';
  position: absolute;
  top: 40%;
  left: 55%;
  transform: translate(-50%, -50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(
    ellipse at center,
    rgba(91, 168, 160, 0.10) 0%,
    rgba(91, 168, 160, 0.04) 35%,
    transparent 65%
  );
  pointer-events: none;
}

/* Secondary atmospheric wash */
.closing::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(
    to top,
    rgba(12, 14, 18, 0.4) 0%,
    transparent 100%
  );
  pointer-events: none;
}

.closing-headline {
  font-size: clamp(28px, 3.8vw, 56px);
  font-weight: 600;
  color: var(--bone);
  line-height: 1.18;
  letter-spacing: -0.02em;
  text-align: center;
  max-width: 700px;
  position: relative;
  z-index: 1;
}

/* --- Footer --- */
.footer {
  background: var(--void);
  border-top: 1px solid var(--wire);
  padding: var(--space-xl) 0 var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: var(--space-lg);
  align-items: start;
}

.footer-brand {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bone);
}

.footer-center {
  text-align: center;
}

.footer-companies {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-md);
}

.footer-company-link {
  font-size: 14px;
  color: var(--fog);
  transition: color var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.footer-company-link:hover {
  color: var(--bone);
}

.footer-company-link .ext {
  font-size: 10px;
  opacity: 0.5;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
}

.footer-nav a {
  font-size: 13px;
  color: var(--slate);
  transition: color var(--transition-fast);
}

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

.footer-right {
  text-align: right;
}

.footer-email {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--signal);
  transition: color var(--transition-fast);
}

.footer-email:hover {
  color: var(--signal-light);
}

.footer-bottom {
  margin-top: var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copyright {
  font-size: 12px;
  color: var(--ghost);
}

.footer-legal {
  display: flex;
  gap: var(--space-md);
}

.footer-legal a {
  font-size: 11px;
  color: var(--ghost);
  transition: color var(--transition-fast);
}

.footer-legal a:hover {
  color: var(--slate);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-lg);
  }
  .footer-right {
    text-align: center;
  }
  .footer-bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 1;
}

@supports (animation-timeline: scroll()) {
  .reveal {
    opacity: 0;
    animation: revealFade linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 35%;
  }
}

@keyframes revealFade {
  to { opacity: 1; }
}

/* Stagger delays */
.reveal-d1 { animation-delay: 0ms; }
.reveal-d2 { animation-delay: 100ms; }
.reveal-d3 { animation-delay: 200ms; }

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1 !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   INTERIOR PAGES — Shared
   ============================================================ */

/* --- Page Hero (shorter, interior) --- */
.page-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding-top: 68px;
}

.page-hero-image {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.page-hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(12, 14, 18, 0.88) 0%,
    rgba(12, 14, 18, 0.45) 30%,
    rgba(12, 14, 18, 0.12) 60%,
    rgba(12, 14, 18, 0.02) 100%
  );
}

.page-hero-content {
  position: relative;
  z-index: 1;
  padding-bottom: var(--space-2xl);
}

.page-hero-content .label {
  margin-bottom: var(--space-sm);
}

.page-hero-headline {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 600;
  color: var(--bone);
  line-height: 1.1;
  letter-spacing: -0.025em;
  max-width: 600px;
}

.page-hero-subline {
  margin-top: var(--space-md);
  font-size: clamp(16px, 1.2vw, 18px);
  color: var(--fog);
  max-width: 520px;
  line-height: 1.55;
}

/* About hero: slightly more intimate crop */
.page-hero--about .page-hero-image img {
  object-position: center 50%;
}

@media (max-width: 768px) {
  .page-hero {
    min-height: 45vh;
  }
  .page-hero-content {
    padding-bottom: var(--space-xl);
  }
}

/* --- Section Headlines (shared) --- */
.section-headline {
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 600;
  color: var(--bone);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* --- Page Close (shared) --- */
.page-close {
  background: linear-gradient(
    170deg,
    #0C1018 0%,
    #10181F 40%,
    #132028 70%,
    #0E1820 100%
  );
  padding: var(--space-3xl) 0;
  position: relative;
  overflow: hidden;
}

.page-close::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(
    ellipse at center,
    rgba(91, 168, 160, 0.07) 0%,
    transparent 60%
  );
  pointer-events: none;
}

.page-close-text {
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 500;
  color: var(--bone);
  text-align: center;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-lg);
  position: relative;
  z-index: 1;
}

.page-close-cta {
  position: relative;
  z-index: 1;
}

/* ============================================================
   PLATFORM PAGE
   ============================================================ */

/* --- System Overview --- */
.platform-overview {
  background: var(--cloud);
  padding: var(--space-2xl) 0 var(--space-3xl);
  position: relative;
}

.platform-overview-header {
  margin-bottom: var(--space-xl);
}

.platform-overview-header .label {
  color: var(--cloud-label);
  margin-bottom: var(--space-xs);
}

.platform-overview .section-headline {
  color: var(--cloud-text);
}

.system-overview {
  max-width: 700px;
}

.system-layers {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--cloud-border);
  border: 1px solid var(--cloud-border);
  border-radius: 4px;
  overflow: hidden;
}

.system-layer {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--cloud-surface);
  transition: background var(--transition-fast);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.system-layer:hover {
  background: rgba(45, 101, 96, 0.06);
}

.system-layer-role {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cloud-label);
  min-width: 100px;
}

.system-layer-name {
  font-size: 16px;
  font-weight: 500;
  color: var(--cloud-text);
  flex: 1;
}

.system-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.system-dot.active {
  background: var(--cloud-label);
  box-shadow: 0 0 6px rgba(45, 101, 96, 0.4);
}

.system-dot.pending {
  border: 1px solid var(--cloud-border);
  background: transparent;
}

/* Studio: adjacent treatment */
.system-studio {
  margin-top: var(--space-md);
}

.system-studio .system-layer {
  border: 1px solid var(--cloud-border);
  border-radius: 4px;
  background: var(--cloud-surface);
}

.studio-layer .system-layer-role {
  color: var(--signal);
}

@media (max-width: 640px) {
  .system-layer {
    padding: var(--space-sm) var(--space-md);
  }
  .system-layer-role {
    min-width: 80px;
    font-size: 10px;
  }
  .system-layer-name {
    font-size: 15px;
  }
}

/* --- Platform Companies --- */
.platform-companies {
  background: var(--deep-mineral);
  padding: var(--space-2xl) 0 var(--space-xl);
  position: relative;
  overflow: hidden;
}

.platform-companies::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 400px;
  background: linear-gradient(
    to right,
    rgba(91, 168, 160, 0.04) 0%,
    transparent 100%
  );
  pointer-events: none;
}

.platform-section-header {
  margin-bottom: var(--space-lg);
}

.platform-section-header .label {
  margin-bottom: var(--space-xs);
}

/* --- Platform Studio Section --- */
.platform-studio-section {
  background: var(--night-mineral);
  padding: var(--space-2xl) 0 var(--space-xl);
  position: relative;
  border-top: 1px solid rgba(91, 168, 160, 0.1);
  overflow: hidden;
}

.platform-studio-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 150px;
  background: radial-gradient(
    ellipse at center,
    rgba(91, 168, 160, 0.06) 0%,
    transparent 70%
  );
  pointer-events: none;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */

/* --- Conviction Block --- */
.conviction {
  background: var(--cloud);
  padding: var(--space-3xl) 0;
  position: relative;
}

.conviction-block {
  max-width: 720px;
}

.conviction-text {
  font-size: clamp(17px, 1.3vw, 19px);
  color: var(--cloud-text);
  line-height: 1.75;
  letter-spacing: -0.005em;
}

/* --- Operating Principles --- */
.principles {
  background: var(--deep-mineral);
  padding: var(--space-2xl) 0 var(--space-3xl);
  position: relative;
  overflow: hidden;
}

.principles::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 300px;
  background: linear-gradient(
    to right,
    rgba(91, 168, 160, 0.04) 0%,
    transparent 100%
  );
  pointer-events: none;
}

.principles-header {
  margin-bottom: var(--space-xl);
}

.principles-header .label {
  margin-bottom: var(--space-xs);
}

.principles-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 720px;
}

.principle {
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--wire);
}

.principle:first-child {
  border-top: 1px solid var(--wire);
}

.principle-label {
  font-size: 18px;
  font-weight: 500;
  color: var(--bone);
  margin-bottom: var(--space-xs);
  letter-spacing: -0.01em;
}

.principle-text {
  font-size: 16px;
  color: var(--fog);
  line-height: 1.6;
  max-width: 560px;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */

/* --- Contact Hero (minimal, no image) --- */
.contact-hero {
  background: linear-gradient(
    175deg,
    #0C1018 0%,
    #111920 50%,
    #14222A 100%
  );
  padding: var(--space-4xl) 0 var(--space-2xl);
  padding-top: calc(68px + var(--space-3xl));
  position: relative;
}

.contact-hero::before {
  content: '';
  position: absolute;
  top: 40%;
  right: 10%;
  width: 500px;
  height: 400px;
  background: radial-gradient(
    ellipse at center,
    rgba(91, 168, 160, 0.06) 0%,
    transparent 60%
  );
  pointer-events: none;
}

.contact-hero-headline {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  color: var(--bone);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.contact-hero-subline {
  margin-top: var(--space-sm);
  font-size: 17px;
  color: var(--fog);
}

/* --- Contact Form --- */
.contact-form-section {
  background: var(--cloud);
  padding: var(--space-2xl) 0 var(--space-3xl);
}

.contact-form {
  max-width: 720px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.form-field {
  display: flex;
  flex-direction: column;
}

.form-field--full {
  margin-bottom: var(--space-md);
}

.form-field label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cloud-text-muted);
  margin-bottom: 8px;
}

.form-optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--mist);
  margin-left: 4px;
}

.form-field input,
.form-field select,
.form-field textarea {
  font-family: 'General Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--cloud-text);
  background: var(--cloud-surface);
  border: 1px solid var(--cloud-border);
  border-radius: 3px;
  padding: 14px 16px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  -webkit-appearance: none;
  appearance: none;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--cloud-label);
  box-shadow: 0 0 0 3px rgba(45, 101, 96, 0.12);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--mist);
}

.form-field select {
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%235A5750' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

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

.form-actions {
  margin-top: var(--space-sm);
}

.form-submit {
  font-family: 'General Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--cloud);
  background: var(--cloud-text);
  border: none;
  padding: 14px 32px;
  border-radius: 3px;
  cursor: pointer;
  transition: background var(--transition-fast), opacity var(--transition-fast);
}

.form-submit:hover {
  background: var(--cloud-text-muted);
}

/* Direct email */
.contact-direct {
  margin-top: var(--space-xl);
  max-width: 720px;
}

.contact-direct p {
  font-size: 14px;
  color: var(--cloud-text-muted);
}

.contact-direct a {
  color: var(--cloud-label);
  transition: color var(--transition-fast);
}

.contact-direct a:hover {
  color: var(--cloud-text);
}

/* --- Form Validation & States --- */
.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea {
  border-color: #A85040;
  box-shadow: 0 0 0 3px rgba(168, 80, 64, 0.12);
}

.form-error {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: #A85040;
  margin-top: 6px;
  line-height: 1.3;
}

.form-submit.is-loading {
  opacity: 0.7;
  cursor: wait;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.form-submit.is-sent {
  opacity: 0.6;
  cursor: default;
}

.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(232, 229, 223, 0.3);
  border-top-color: var(--cloud);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.form-success {
  margin-top: var(--space-md);
}

.form-success p {
  font-size: 15px;
  color: var(--cloud-label);
  font-weight: 500;
}

.form-submit-error {
  margin-top: var(--space-md);
}

.form-submit-error p {
  font-size: 14px;
  color: #A85040;
}

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

/* ============================================================
   LEGAL / UTILITY PAGES
   ============================================================ */

.legal-page {
  padding: calc(68px + var(--space-3xl)) 0 var(--space-3xl);
  background: var(--void);
  min-height: 100vh;
}

.legal-title {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 600;
  color: var(--bone);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-xl);
}

.legal-content {
  max-width: 640px;
}

.legal-content h2 {
  font-size: 17px;
  font-weight: 600;
  color: var(--bone);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-xs);
}

.legal-content p {
  font-size: 15px;
  color: var(--fog);
  line-height: 1.7;
  margin-bottom: var(--space-sm);
}

.legal-content a {
  color: var(--signal);
  transition: color var(--transition-fast);
}

.legal-content a:hover {
  color: var(--signal-light);
}

.legal-updated {
  margin-top: var(--space-lg);
  font-size: 12px;
  color: var(--ghost);
}

/* --- Focus & Accessibility --- */
:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}

/* Remove default outline only when focus-visible handles it */
:focus:not(:focus-visible) {
  outline: none;
}

/* Skip link (hidden until focused) */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--margin-desktop);
  z-index: 1000;
  padding: 10px 20px;
  background: var(--signal);
  color: var(--void);
  font-size: 14px;
  font-weight: 500;
  border-radius: 3px;
  transition: top 0.2s;
}

.skip-link:focus {
  top: var(--space-sm);
}

/* btn-ghost focus */
.btn-ghost:focus-visible {
  outline-color: var(--signal-light);
}

/* Company CTA focus */
.company-cta:focus-visible {
  outline-color: var(--signal);
}

/* Form field focus-visible override (already has custom focus) */
.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible {
  outline: none;
}

/* --- Noise grain overlay --- */
.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}
