/* ========================================
   MGS LLC — Design System & Styles
   ======================================== */

:root {
  --color-primary: #0097b2;
  --color-secondary: #f0aa8d;
  --color-tertiary: #e6f3f7;
  --color-bg: #0a0a0a;
  --color-hero-bg: #0a0e1a;
  --color-text: #f2efec;
  --color-card-bg: rgba(255, 255, 255, 0.04);
  --color-card-border: rgba(255, 255, 255, 0.08);
  --font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 8rem;
  --radius: 12px;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

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

body {
  font-family: var(--font-family);
  background: #f2efec;
  color: #1c1c1c;
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ========================================
   Navigation — Centered Frosted Glass Pill
   ======================================== */

.nav {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  transition: top var(--transition), background var(--transition);
}

.nav__pill {
  display: flex;
  align-items: center;
  gap: 3rem;
  padding: 0.75rem 2.5rem;
  background: rgba(240, 240, 240, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 50px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.nav__logo {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #1c1c1c;
}

.nav__link {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1c1c1c;
  transition: opacity var(--transition);
}

.nav__link:hover {
  opacity: 0.6;
}

/* Scrolled state — dark pill */
.nav--scrolled .nav__pill {
  background: rgba(20, 20, 20, 0.9);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.nav--scrolled .nav__logo,
.nav--scrolled .nav__link {
  color: var(--color-text);
}

/* ========================================
   Hero — Shrinking frame effect on scroll
   Full viewport → rounded card with margin
   ======================================== */

.hero {
  position: relative;
  width: 100%;
  height: 350vh; /* Extra height for scroll-pinning */
  background: #f2efec;
}

.hero__frame {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  background: var(--color-hero-bg);
  overflow: hidden;
  will-change: transform, border-radius;
  border-radius: 0;
  margin: 0;
}

.hero__canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  pointer-events: none;
}

.hero__content {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 var(--spacing-md);
  overflow: visible;
}

/* Initial title — large bold centered single line */
.hero__title--initial {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.3em;
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #ffffff;
  white-space: nowrap;
  margin: 0;
  will-change: transform;
  width: 100%;
  pointer-events: none;
  text-shadow: 0 0 30px rgba(6,10,20,0.9), 0 0 60px rgba(6,10,20,0.7), 0 2px 4px rgba(0,0,0,0.8);
}

.hero__split-left,
.hero__split-right {
  display: inline-block;
  will-change: transform, opacity;
  opacity: 0;
  transition: none;
  position: relative;
}

/* Reveal quote — hidden initially, fades in on scroll BELOW split text */
.hero__reveal {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  margin: 0 auto;
  transform: translateY(-50%);
  text-align: center;
  max-width: min(750px, 85%);
  width: 85%;
  opacity: 0;
  will-change: opacity, transform;
  pointer-events: none;
}

.hero__reveal-text {
  font-size: clamp(1.35rem, 3.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-shadow: 0 0 30px rgba(6,10,20,0.9), 0 0 60px rgba(6,10,20,0.7), 0 2px 4px rgba(0,0,0,0.8);
}

/* Scroll indicator dot */
.hero__scroll-indicator {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
}

.hero__scroll-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  display: block;
  animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(12px); opacity: 1; }
}

/* ========================================
   Applications
   ======================================== */

.applications {
  position: relative;
  z-index: 3;
  padding: var(--spacing-xl) 0 0;
  background: var(--color-bg, #0a0a0a);
}

.applications__header {
  text-align: center;
  padding: 0 var(--spacing-md) var(--spacing-lg);
}

.applications__eyebrow {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.applications__heading {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 400;
  color: #f5f5f7;
  letter-spacing: -0.01em;
}

/* --- App Showcase (immersive hero) --- */

.app-showcase {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  overflow: hidden;
}

.app-showcase__media {
  position: absolute;
  top: 0;
  right: 0;
  width: 75%;
  height: 100%;
}

.app-showcase__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.app-showcase__media::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: linear-gradient(to right,
    #0a0a0a 0%,
    rgba(10, 10, 10, 0.85) 15%,
    rgba(10, 10, 10, 0.4) 40%,
    rgba(10, 10, 10, 0.1) 65%,
    transparent 85%
  );
}

.app-showcase__media::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background:
    linear-gradient(to bottom, #0a0a0a 0%, transparent 15%),
    linear-gradient(to top, #0a0a0a 0%, transparent 15%);
}

.app-showcase__text {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: clamp(0.2rem, 0.4vw, 0.35rem);
  max-width: clamp(320px, 35vw, 520px);
  padding-left: clamp(2rem, 10vw, 10rem);
}

.app-showcase__app-name {
  font-size: clamp(0.85rem, 1.1vw, 1.05rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  border: 1px solid rgba(0, 151, 178, 0.45);
  border-radius: 980px;
  padding: 0.5rem 1.3rem;
  background: rgba(0, 151, 178, 0.15);
  width: fit-content;
  box-shadow: 0 0 12px rgba(0, 151, 178, 0.12), 0 0 20px rgba(240, 170, 141, 0.06), inset 0 0 8px rgba(0, 151, 178, 0.06);
}

.app-showcase__title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(2rem, 3.8vw, 3.8rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: #f5f5f7;
  margin-top: clamp(0.15rem, 0.4vw, 0.35rem);
}

.app-showcase__title em {
  color: var(--color-primary);
  font-style: italic;
}

.app-showcase__description {
  font-size: clamp(0.85rem, 1vw, 1rem);
  color: #8e8e93;
  font-weight: 300;
  line-height: 1.65;
  max-width: 420px;
}

.app-showcase__ctas {
  display: flex;
  gap: clamp(0.6rem, 0.8vw, 1rem);
  margin-top: clamp(0.25rem, 0.6vw, 0.5rem);
  flex-wrap: wrap;
}

.app-showcase__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.55rem, 0.8vw, 0.75rem) clamp(1.2rem, 1.5vw, 1.75rem);
  border-radius: 980px;
  font-size: clamp(0.8rem, 0.95vw, 0.9375rem);
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
}

.app-showcase__cta--outline {
  background: transparent;
  color: #f5f5f7;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.app-showcase__cta--outline:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.05);
}

.app-showcase__cta--filled {
  background: rgba(240, 170, 141, 0.12);
  color: var(--color-secondary);
  border: 1px solid rgba(240, 170, 141, 0.3);
  font-weight: 600;
}

.app-showcase__cta--filled:hover {
  background: rgba(240, 170, 141, 0.2);
  border-color: rgba(240, 170, 141, 0.5);
  transform: translateY(-1px);
}

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

.footer {
  position: relative;
  z-index: 3;
  padding: var(--spacing-lg) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--color-bg, #0a0a0a);
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  text-align: center;
  font-size: 0.8125rem;
  color: #8e8e93;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.footer__copyright {
  color: #8e8e93;
}

.footer__legal {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer__legal-link {
  font-size: 0.75rem;
  color: #5a5a5a;
  text-decoration: none;
  transition: color var(--transition);
}

.footer__legal-link:hover {
  color: var(--color-primary);
}

.footer__legal-divider {
  color: #3a3a3a;
  font-size: 0.75rem;
  user-select: none;
}

/* ========================================
   About — Manifesto Page
   ======================================== */

.about-manifesto {
  background: var(--color-bg);
  color: var(--color-text);
  min-height: 100vh;
}

/* Hero */
.about-manifesto__hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--spacing-xl) var(--spacing-md);
  position: relative;
}

.about-manifesto__hero-inner {
  max-width: 800px;
}

.about-manifesto__eyebrow {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.about-manifesto__hero-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: #f5f5f7;
  margin-bottom: 1rem;
}

.about-manifesto__hero-subtitle {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  font-weight: 300;
  color: var(--color-secondary);
  letter-spacing: 0.05em;
}

.about-manifesto__hero-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  margin: 2.5rem auto 0;
  transform-origin: center;
}

/* Sections */
.about-manifesto__section {
  padding: var(--spacing-xl) var(--spacing-md);
  border-top: 1px solid rgba(240, 170, 141, 0.1);
}

.about-manifesto__section-inner {
  max-width: 780px;
  margin: 0 auto;
}

.about-manifesto__heading {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  color: #f5f5f7;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: 2rem;
}

/* Prose */
.about-manifesto__prose {
  margin-bottom: 2rem;
}

.about-manifesto__prose p {
  font-size: clamp(0.9375rem, 1.1vw, 1.0625rem);
  color: #8e8e93;
  font-weight: 300;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.about-manifesto__prose p:last-child {
  margin-bottom: 0;
}

/* Feature cards */
.about-manifesto__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.about-manifesto__card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  border-left: 3px solid var(--color-primary);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  transition: border-color var(--transition), background var(--transition);
}

.about-manifesto__card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  border-left-color: var(--color-primary);
  background: rgba(255, 255, 255, 0.06);
}

.about-manifesto__card-number {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--color-secondary);
  display: block;
  margin-bottom: 1rem;
}

.about-manifesto__card-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 400;
  color: #f5f5f7;
  margin-bottom: 0.75rem;
}

.about-manifesto__card-desc {
  font-size: 0.9375rem;
  color: #8e8e93;
  font-weight: 300;
  line-height: 1.65;
}

/* Pull quote */
.about-manifesto__pull-quote {
  border-left: 3px solid var(--color-secondary);
  padding: 1.5rem 0 1.5rem 2rem;
  margin: 2.5rem 0;
}

.about-manifesto__pull-quote p {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  color: #f5f5f7;
  line-height: 1.45;
  font-weight: 400;
  font-style: italic;
}

/* Closing statement */
.about-manifesto__closing {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  color: var(--color-secondary);
  line-height: 1.5;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(240, 170, 141, 0.15);
  font-style: italic;
}

.about-manifesto__section--final {
  padding-bottom: calc(var(--spacing-xl) + 2rem);
}

/* ========================================
   What We Build
   ======================================== */

.what-we-build {
  position: relative;
  z-index: 3;
  padding: var(--spacing-xl) 0 var(--spacing-md);
  background: #f2efec;
}

.what-we-build__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.what-we-build__header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.what-we-build__eyebrow {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 1.25rem;
}

.what-we-build__title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(3rem, 6.5vw, 5rem);
  font-weight: 400;
  line-height: 1.1;
  color: #1c1c1c;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.what-we-build__subtitle {
  font-size: 1.3rem;
  color: #7a7a7a;
  font-weight: 300;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

.what-we-build__content {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--spacing-lg);
  align-items: center;
}

/* Feature list (left column) */
.what-we-build__features {
  display: flex;
  flex-direction: column;
}

.what-we-build__feature {
  padding: 1.25rem 0;
  cursor: pointer;
  opacity: 0.4;
  transition: opacity 0.35s ease;
}

.what-we-build__feature--active {
  opacity: 1;
}

.what-we-build__feature-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.what-we-build__feature-icon {
  color: var(--color-primary);
  flex-shrink: 0;
  transition: transform 0.35s ease;
}

.what-we-build__feature--active .what-we-build__feature-icon {
  transform: scale(1.15);
}

.what-we-build__feature-title {
  font-size: 1.45rem;
  font-weight: 600;
  color: #1c1c1c;
  transition: color 0.35s ease;
}

.what-we-build__feature--active .what-we-build__feature-title {
  color: var(--color-primary);
}

.what-we-build__feature-desc {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  font-size: 1.0625rem;
  color: #5a5a5a;
  font-weight: 300;
  line-height: 1.65;
  padding-left: 2.25rem;
  transition: max-height 0.35s cubic-bezier(0.25, 0.1, 0.25, 1),
              opacity 0.4s ease,
              margin 0.4s ease;
  margin-top: 0;
}

.what-we-build__feature--active .what-we-build__feature-desc {
  max-height: 200px;
  opacity: 1;
  margin-top: 0.75rem;
}

.what-we-build__feature-divider {
  border-bottom: 1px dotted rgba(0, 0, 0, 0.12);
  margin-top: 1.25rem;
}

/* ---- Device carousel (right column) ---- */
.what-we-build__visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 520px;
  position: relative;
}

.what-we-build__device-carousel {
  position: relative;
  width: 100%;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.what-we-build__device {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  pointer-events: none;
}

.what-we-build__device--active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}


/* ---- Shared screen ---- */
.what-we-build__device-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--color-hero-bg);
  overflow: hidden;
}

.what-we-build__screen-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}


/* ---- iPhone frame ---- */
.what-we-build__frame--iphone {
  position: relative;
  width: 240px;
  height: 480px;
  background: #1c1c1c;
  border-radius: 40px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2), inset 0 0 0 2px rgba(255, 255, 255, 0.08);
  padding: 10px;
}

.what-we-build__frame--iphone .what-we-build__device-screen {
  border-radius: 30px;
}

.what-we-build__device-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 76px;
  height: 22px;
  background: #1c1c1c;
  border-radius: 0 0 14px 14px;
  z-index: 2;
}

/* ---- Mac frame ---- */
.what-we-build__frame--mac {
  position: relative;
  width: 380px;
  height: 260px;
  background: #2a2a2a;
  border-radius: 12px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
  padding: 0;
  overflow: hidden;
}

.what-we-build__mac-bezel {
  height: 24px;
  background: #2a2a2a;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px 12px 0 0;
}

.what-we-build__mac-camera {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #444;
}

.what-we-build__frame--mac .what-we-build__device-screen {
  border-radius: 0 0 2px 2px;
  height: calc(100% - 24px);
}

.what-we-build__mac-stand {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.what-we-build__mac-hinge {
  width: 60px;
  height: 8px;
  background: #3a3a3a;
  border-radius: 0 0 2px 2px;
}

.what-we-build__mac-base {
  width: 100px;
  height: 4px;
  background: #3a3a3a;
  border-radius: 0 0 4px 4px;
  margin-top: -1px;
}

/* ---- iPad frame ---- */
.what-we-build__frame--ipad {
  position: relative;
  width: 360px;
  height: 270px;
  background: #1c1c1c;
  border-radius: 18px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2), inset 0 0 0 2px rgba(255, 255, 255, 0.06);
  padding: 10px;
}

.what-we-build__frame--ipad .what-we-build__device-screen {
  border-radius: 8px;
}

/* ---- Vision Pro frame ---- */
.what-we-build__frame--vision {
  position: relative;
  width: 380px;
  height: 140px;
  background: linear-gradient(180deg, #4a4a4a 0%, #2a2a2a 40%, #1c1c1c 100%);
  border-radius: 70px 70px 50px 50px / 50px 50px 40px 40px;
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05),
    inset 2px 0 4px rgba(255, 255, 255, 0.05),
    inset -2px 0 4px rgba(255, 255, 255, 0.05);
  padding: 8px 24px;
  overflow: hidden;
}

/* Glass reflection overlay */
.what-we-build__frame--vision::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    105deg,
    transparent 0%,
    transparent 35%,
    rgba(255, 255, 255, 0.03) 40%,
    rgba(255, 255, 255, 0.06) 45%,
    transparent 50%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 3;
}

.what-we-build__frame--vision .what-we-build__device-screen {
  border-radius: 60px 60px 42px 42px / 42px 42px 34px 34px;
}

.what-we-build__screen--vision-display {
  background: linear-gradient(135deg, #0a0e1a 0%, #0d1525 100%);
}

/* Headband attachment — shared base */
.what-we-build__vision-band {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 12px;
  background: linear-gradient(180deg, #555 0%, #3a3a3a 100%);
  z-index: 1;
}

.what-we-build__vision-band--right {
  right: -38px;
  border-radius: 0 6px 6px 0;
}

.what-we-build__vision-band--left {
  left: -38px;
  border-radius: 6px 0 0 6px;
}

/* ---- Screen: AI / Neural Engine (iPhone) ---- */
.what-we-build__ai-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 151, 178, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 151, 178, 0.06) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.8;
}

.what-we-build__ai-brain {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.what-we-build__brain-ring {
  position: absolute;
  border: 1.5px solid var(--color-primary);
  border-radius: 50%;
  opacity: 0.3;
}

.what-we-build__brain-ring--1 {
  width: 100%;
  height: 100%;
  animation: wwb-ring-pulse 3s ease-in-out infinite;
}

.what-we-build__brain-ring--2 {
  width: 70%;
  height: 70%;
  animation: wwb-ring-pulse 3s ease-in-out 0.5s infinite;
}

.what-we-build__brain-ring--3 {
  width: 40%;
  height: 40%;
  animation: wwb-ring-pulse 3s ease-in-out 1s infinite;
}

.what-we-build__brain-core {
  width: 12px;
  height: 12px;
  background: var(--color-primary);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(0, 151, 178, 0.6);
  animation: wwb-core-glow 2s ease-in-out infinite;
}

.what-we-build__ai-nodes {
  position: absolute;
  inset: 0;
}

.what-we-build__node {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: var(--color-primary);
  border-radius: 50%;
  opacity: 0.6;
  animation: wwb-node-orbit 4s ease-in-out var(--delay) infinite;
  transform: translate(var(--x), var(--y));
}

/* ---- Screen: Video / Media (Mac) ---- */
.what-we-build__screen--video {
  padding: 0;
  flex-direction: column;
}

.what-we-build__video-viewer {
  width: 100%;
  height: 45%;
  position: relative;
  overflow: hidden;
}

.what-we-build__viewer-gradient {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a0a2e 0%, #0d1b2a 30%, #0a2540 60%, #1a0a2e 100%);
  background-size: 200% 200%;
  animation: wwb-viewer-shift 6s ease-in-out infinite;
}

.what-we-build__video-tracks {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 8px;
  position: relative;
  background: rgba(0,0,0,0.3);
}

.what-we-build__track {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  position: relative;
}

.what-we-build__track-label {
  font-size: 0.5rem;
  font-weight: 600;
  color: rgba(255,255,255,0.3);
  width: 18px;
  text-align: right;
  flex-shrink: 0;
}

.what-we-build__timeline-segment {
  height: 100%;
  border-radius: 3px;
  opacity: 0.6;
}

.what-we-build__timeline-segment--1 {
  width: 35%;
  background: rgba(0, 151, 178, 0.5);
}

.what-we-build__timeline-segment--2 {
  width: 45%;
  background: rgba(240, 170, 141, 0.4);
}

.what-we-build__timeline-segment--3 {
  width: 50%;
  background: rgba(130, 80, 220, 0.4);
}

.what-we-build__timeline-segment--4 {
  width: 30%;
  background: rgba(0, 151, 178, 0.3);
}

.what-we-build__timeline-playhead {
  position: absolute;
  top: 0;
  left: 30%;
  width: 2px;
  height: 100%;
  background: var(--color-primary);
  box-shadow: 0 0 6px rgba(0, 151, 178, 0.6);
  animation: wwb-playhead 4s linear infinite;
  z-index: 2;
}

.what-we-build__waveform {
  display: flex;
  align-items: flex-end;
  gap: 1px;
  flex: 1;
  height: 100%;
}

.what-we-build__waveform span {
  flex: 1;
  background: var(--color-primary);
  opacity: 0.5;
  border-radius: 1px;
  height: var(--h);
  animation: wwb-wave 2s ease-in-out infinite;
  animation-delay: calc(var(--h) * 0.01s);
}

/* ---- Screen: Platform / Widgets (iPad) ---- */
.what-we-build__widget-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
}

.what-we-build__widget {
  background: rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.what-we-build__widget--lg {
  grid-column: span 2;
}

.what-we-build__widget-bar {
  height: 5px;
  background: rgba(0, 151, 178, 0.35);
  border-radius: 3px;
  animation: wwb-bar-fill 2.5s ease-in-out infinite;
}

.what-we-build__widget-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid var(--color-primary);
  border-top-color: transparent;
  margin: auto;
  animation: wwb-spin 2s linear infinite;
}

.what-we-build__widget-circle--alt {
  border-color: var(--color-secondary);
  border-top-color: transparent;
  animation-direction: reverse;
}

/* ---- iPad enhancements ---- */
.what-we-build__ipad-notification {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border-radius: 10px;
  padding: 4px 12px;
  font-size: 0.55rem;
  color: rgba(255,255,255,0.7);
  white-space: nowrap;
  z-index: 2;
  animation: wwb-notification-slide 5s ease-in-out infinite;
}

.what-we-build__widget--chart {
  grid-column: span 2;
}

.what-we-build__chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 30px;
}

.what-we-build__chart-bar {
  flex: 1;
  background: var(--color-primary);
  border-radius: 2px 2px 0 0;
  opacity: 0.5;
  height: 0%;
  animation: wwb-chart-grow 2s ease-out forwards;
  animation-delay: calc(var(--target-h) * 0.02s);
}

.what-we-build__pencil-cursor {
  position: absolute;
  bottom: 30%;
  right: 25%;
  width: 6px;
  height: 6px;
  background: rgba(255,255,255,0.6);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255,255,255,0.3);
  animation: wwb-pencil-move 4s ease-in-out infinite;
}

/* ---- Screen: Spatial (Vision) ---- */
.what-we-build__spatial-grid {
  position: relative;
  width: 100%;
  height: 100%;
  perspective: 300px;
}

.what-we-build__spatial-plane {
  position: absolute;
  border: 1px solid rgba(0, 151, 178, 0.25);
  border-radius: 6px;
  background: rgba(0, 151, 178, 0.05);
}

.what-we-build__spatial-plane--1 {
  width: 70%;
  height: 70%;
  top: 10%;
  left: 5%;
  transform: rotateY(12deg) rotateX(-5deg);
  animation: wwb-spatial-float 5s ease-in-out infinite;
}

.what-we-build__spatial-plane--2 {
  width: 50%;
  height: 55%;
  top: 20%;
  right: 10%;
  transform: rotateY(-8deg) rotateX(5deg);
  animation: wwb-spatial-float 5s ease-in-out 1.5s infinite;
  border-color: rgba(240, 170, 141, 0.25);
  background: rgba(240, 170, 141, 0.05);
}

.what-we-build__spatial-plane--3 {
  width: 40%;
  height: 40%;
  bottom: 8%;
  left: 30%;
  transform: rotateY(5deg) rotateX(10deg);
  animation: wwb-spatial-float 5s ease-in-out 3s infinite;
}

.what-we-build__starfield {
  position: absolute;
  inset: 0;
}

.what-we-build__star {
  position: absolute;
  left: var(--sx);
  top: var(--sy);
  width: 2px;
  height: 2px;
  background: rgba(255,255,255,0.6);
  border-radius: 50%;
  animation: wwb-star-twinkle 3s ease-in-out var(--sd) infinite;
}

.what-we-build__spatial-orb {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  background: radial-gradient(circle, var(--color-primary), rgba(0, 151, 178, 0.3) 50%, transparent 70%);
  border-radius: 50%;
  box-shadow: 0 0 40px rgba(0, 151, 178, 0.5), 0 0 80px rgba(0, 151, 178, 0.2);
  animation: wwb-orb-pulse 3s ease-in-out infinite;
}

.what-we-build__hand-dots {
  position: absolute;
  bottom: 15%;
  left: 50%;
  transform: translateX(-50%);
}

.what-we-build__finger-dot {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255,255,255,0.7);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(255,255,255,0.3);
  transform: translate(var(--fx), var(--fy));
  animation: wwb-finger-pulse 2s ease-in-out var(--fd) infinite;
}

/* ---- Keyframes ---- */
@keyframes wwb-ring-pulse {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.08); }
}

@keyframes wwb-core-glow {
  0%, 100% { box-shadow: 0 0 15px rgba(0, 151, 178, 0.4); }
  50% { box-shadow: 0 0 30px rgba(0, 151, 178, 0.8); }
}

@keyframes wwb-node-orbit {
  0%, 100% { transform: translate(var(--x), var(--y)); opacity: 0.4; }
  50% { transform: translate(calc(var(--x) * 0.5), calc(var(--y) * 0.5)); opacity: 1; }
}

@keyframes wwb-viewer-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes wwb-playhead {
  0% { left: 0; }
  100% { left: 100%; }
}

@keyframes wwb-wave {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.7; }
}

@keyframes wwb-bar-fill {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

@keyframes wwb-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes wwb-spatial-float {
  0%, 100% { transform: rotateY(12deg) rotateX(-5deg) translateZ(0); opacity: 0.6; }
  50% { transform: rotateY(12deg) rotateX(-5deg) translateZ(15px); opacity: 1; }
}

@keyframes wwb-orb-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  50% { transform: translate(-50%, -50%) scale(1.4); opacity: 1; }
}

@keyframes wwb-notification-slide {
  0%, 100% { transform: translateX(-50%) translateY(-20px); opacity: 0; }
  15%, 85% { transform: translateX(-50%) translateY(0); opacity: 1; }
}

@keyframes wwb-chart-grow {
  0% { height: 0%; }
  100% { height: var(--target-h); }
}

@keyframes wwb-pencil-move {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-15px, -10px); }
  50% { transform: translate(-30px, 5px); }
  75% { transform: translate(-10px, -5px); }
}

@keyframes wwb-star-twinkle {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.9; }
}

@keyframes wwb-finger-pulse {
  0%, 100% { opacity: 0.5; transform: translate(var(--fx), var(--fy)) scale(1); }
  50% { opacity: 1; transform: translate(var(--fx), var(--fy)) scale(1.3); }
}

/* ========================================
   Legal Pages (Privacy Policy / Terms)
   ======================================== */

.legal {
  background: var(--color-bg);
  color: var(--color-text);
  min-height: 100vh;
}

/* Hero */
.legal__hero {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--spacing-xl) var(--spacing-md);
  position: relative;
}

.legal__hero-inner {
  max-width: 800px;
}

.legal__eyebrow {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.legal__hero-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: #f5f5f7;
  margin-bottom: 1rem;
}

.legal__hero-subtitle {
  font-size: clamp(0.9375rem, 1.5vw, 1.125rem);
  font-weight: 300;
  color: #8e8e93;
  letter-spacing: 0.02em;
}

.legal__hero-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  margin: 2.5rem auto 0;
}

/* Sections */
.legal__section {
  padding: var(--spacing-lg) var(--spacing-md);
  border-top: 1px solid rgba(240, 170, 141, 0.1);
}

.legal__section-inner {
  max-width: 780px;
  margin: 0 auto;
}

.legal__heading {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 400;
  color: #f5f5f7;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

/* Prose */
.legal__prose {
  margin-bottom: 1.5rem;
}

.legal__prose:last-child {
  margin-bottom: 0;
}

.legal__prose p {
  font-size: clamp(0.9375rem, 1.1vw, 1.0625rem);
  color: #8e8e93;
  font-weight: 300;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.legal__prose p:last-child {
  margin-bottom: 0;
}

.legal__prose ul,
.legal__prose ol {
  color: #8e8e93;
  font-weight: 300;
  line-height: 1.75;
  font-size: clamp(0.9375rem, 1.1vw, 1.0625rem);
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.legal__prose li {
  margin-bottom: 0.5rem;
}

.legal__prose li:last-child {
  margin-bottom: 0;
}

.legal__prose a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity var(--transition);
}

.legal__prose a:hover {
  opacity: 0.75;
}

.legal__prose strong {
  color: var(--color-text);
  font-weight: 500;
}

/* Callout box (blog disclaimer) */
.legal__callout {
  background: rgba(240, 170, 141, 0.08);
  border: 1px solid rgba(240, 170, 141, 0.15);
  border-left: 4px solid var(--color-secondary);
  border-radius: var(--radius);
  padding: 2rem 2rem 1.75rem;
  margin-top: 0.5rem;
}

.legal__callout-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: 1.25rem;
}

/* Contact card */
.legal__contact {
  background: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  margin-top: 1rem;
}

.legal__contact p {
  font-size: 0.9375rem;
  color: #8e8e93;
  font-weight: 300;
  line-height: 1.75;
}

.legal__contact strong {
  color: var(--color-text);
  font-weight: 500;
}

.legal__contact a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity var(--transition);
}

.legal__contact a:hover {
  opacity: 0.75;
}

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

@media (min-width: 1200px) {
}

/* --- 1024px: iPad landscape --- */
@media (max-width: 1024px) {
  .app-showcase__media {
    width: 70%;
  }

  .what-we-build__content {
    gap: var(--spacing-md);
  }

  .what-we-build__frame--mac {
    width: 320px;
    height: 220px;
  }

  .what-we-build__frame--ipad {
    width: 300px;
    height: 225px;
  }

  .what-we-build__frame--vision {
    width: 320px;
    height: 120px;
  }
}

/* --- 838px: existing, enhanced --- */
@media (max-width: 838px) {
  .nav__pill {
    gap: 1.5rem;
    padding: 0.65rem 1.5rem;
  }

  .nav__link {
    font-size: 0.6875rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .hero__title {
    font-size: clamp(2rem, 9vw, 3.5rem);
  }

  .app-showcase {
    flex-direction: column;
    min-height: auto;
    padding: 0;
  }

  .app-showcase__media {
    position: relative;
    width: 100%;
    height: 50vh;
  }

  .app-showcase__media::after {
    background: linear-gradient(to bottom, transparent 40%, #0a0a0a 100%);
  }

  .app-showcase__media::before {
    display: none;
  }

  .app-showcase__text {
    text-align: center;
    align-items: center;
    max-width: 100%;
    margin-top: -4rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-bottom: 2.5rem;
    gap: 0.5rem;
  }

  .app-showcase__app-name {
    align-self: center;
  }

  .app-showcase__description {
    max-width: 100%;
    margin: 0 auto;
  }

  .app-showcase__ctas {
    justify-content: center;
  }

  .what-we-build__subtitle {
    font-size: 1.15rem;
  }

  .what-we-build__feature-title {
    font-size: 1.3rem;
  }

  .what-we-build__feature-desc {
    font-size: 1rem;
  }

  .what-we-build__content {
    grid-template-columns: 1fr;
  }

  .what-we-build__visual {
    order: -1;
    min-height: 340px;
  }

  .what-we-build__device-carousel {
    height: 360px;
  }

  .what-we-build__frame--iphone {
    width: 200px;
    height: 400px;
    border-radius: 34px;
  }

  .what-we-build__frame--iphone .what-we-build__device-screen {
    border-radius: 24px;
  }

  .what-we-build__frame--mac {
    width: 300px;
    height: 200px;
  }

  .what-we-build__frame--ipad {
    width: 280px;
    height: 210px;
  }

  .what-we-build__frame--vision {
    width: 300px;
    height: 110px;
  }

  /* About manifesto */
  .about-manifesto__cards {
    grid-template-columns: 1fr;
  }

  .about-manifesto__hero {
    min-height: 60vh;
  }

  /* Legal pages */
  .legal__hero {
    min-height: 40vh;
  }

  .legal__callout {
    padding: 1.5rem;
  }
}

/* --- 768px: iPad portrait --- */
@media (max-width: 768px) {
  :root {
    --spacing-md: 1.5rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;
  }

  .nav {
    top: 10px;
  }

  .nav__pill {
    gap: 1.25rem;
  }

  .hero__title--initial {
    white-space: normal;
    text-align: center;
    flex-wrap: wrap;
  }


  .hero__scroll-indicator {
    bottom: 2rem;
  }

  /* About manifesto */
  .about-manifesto__hero-title {
    font-size: clamp(2.5rem, 7vw, 4rem);
  }

  .about-manifesto__pull-quote {
    padding-left: 1.5rem;
  }

  /* Legal pages */
  .legal__hero-title {
    font-size: clamp(2rem, 6vw, 3.5rem);
  }
}

/* --- 480px: Small phones --- */
@media (max-width: 480px) {
  :root {
    --spacing-md: 1.25rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
  }

  .nav__pill {
    padding: 0.65rem 1.25rem;
  }

  .hero__title--initial {
    font-size: clamp(1.5rem, 8vw, 2.2rem);
  }

  .app-showcase__title {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .app-showcase__ctas {
    flex-direction: column;
  }

  .app-showcase__cta {
    width: 100%;
  }

  .what-we-build__device-carousel {
    height: 320px;
  }

  .what-we-build__frame--iphone {
    width: 170px;
    height: 340px;
    border-radius: 28px;
  }

  .what-we-build__frame--iphone .what-we-build__device-screen {
    border-radius: 20px;
  }

  .what-we-build__device-notch {
    width: 56px;
    height: 16px;
  }

  .what-we-build__frame--mac {
    width: 260px;
    height: 175px;
  }

  .what-we-build__frame--ipad {
    width: 240px;
    height: 180px;
    border-radius: 14px;
  }

  .what-we-build__frame--vision {
    width: 260px;
    height: 95px;
    border-radius: 50px 50px 36px 36px / 36px 36px 28px 28px;
  }

  .what-we-build__feature-title {
    font-size: 1.2rem;
  }

  .what-we-build__feature-desc {
    font-size: 0.95rem;
  }

  /* About manifesto */
  .about-manifesto__hero {
    min-height: 50vh;
    padding-top: 6rem;
  }

  .about-manifesto__section {
    padding: var(--spacing-lg) var(--spacing-md);
  }

  .about-manifesto__pull-quote {
    padding-left: 1.25rem;
    margin: 1.5rem 0;
  }

  .about-manifesto__pull-quote p {
    font-size: 1.125rem;
  }

  .about-manifesto__card {
    padding: 1.5rem 1.25rem;
  }

  .about-manifesto__closing {
    font-size: 1.0625rem;
  }

  /* Legal pages */
  .legal__hero {
    min-height: 35vh;
    padding-top: 6rem;
  }

  .legal__section {
    padding: var(--spacing-lg) var(--spacing-md);
  }

  .legal__callout {
    padding: 1.25rem;
  }

  .legal__contact {
    padding: 1.25rem 1.5rem;
  }

  /* Footer */
  .footer__legal {
    gap: 0.5rem;
  }
}
