/* ================================================================
   ANMAR — Global Styles
   Used by index.html and all branch pages.
   ================================================================ */

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

:root {
  --bg: #000;
  --bg-soft: #050608;
  --text: #fff;
  --muted: rgba(255, 255, 255, 0.7);
  --line: rgba(255, 255, 255, 0.18);
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  font-weight: 400;
  overflow-x: hidden;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  scroll-snap-type: y mandatory;
  height: 100vh;
  overflow-y: scroll;
}
body.no-snap { scroll-snap-type: none; }
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }

/* ---------- NEURAL NETWORK CANVAS ---------- */
#neural-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 50;
  opacity: 0.85;
  mix-blend-mode: screen;
}

/* ---------- NAV ---------- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.4rem 2.5rem;
  display: flex; justify-content: space-between; align-items: center;
  transition: background 0.3s ease, padding 0.3s ease;
}
nav.scrolled {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 1rem 2.5rem;
}
.logo {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  display: inline-flex;
  align-items: baseline;
  gap: 0.4em;
}
.logo .branch-tag {
  font-weight: 400;
  color: #fff;
  letter-spacing: 0.12em;
  font-size: 1em;
}
.nav-links {
  display: flex; gap: 2rem; list-style: none; align-items: center;
}
.nav-links a {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0.92;
  transition: opacity 0.2s ease;
  padding: 0.4rem 0;
  white-space: nowrap;
  position: relative;
}
.nav-links a:hover { opacity: 0.6; }
.nav-links a.active { opacity: 1; }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: -4px;
  height: 1px;
  background: #fff;
}

.menu-toggle {
  display: none;
  background: none; border: none; color: #fff; cursor: pointer; padding: 0.5rem;
}
.menu-toggle span {
  display: block; width: 24px; height: 2px; background: #fff;
  margin: 5px 0; transition: all 0.3s ease;
}

/* ---------- SECTIONS ---------- */
section {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  scroll-snap-align: start;
  display: flex;
  align-items: flex-end;
}
section.auto-height {
  height: auto;
  min-height: 100vh;
  scroll-snap-align: none;
}

.bg-layer {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  transform: scale(1.06);
  transition: transform 8s ease;
}
section.in-view .bg-layer { transform: scale(1); }
.bg-layer::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.15) 40%, rgba(0,0,0,0.85) 100%);
}

.section-content {
  position: relative; z-index: 3;
  width: 100%;
  padding: 0 2.5rem 6rem;
  max-width: 1400px;
  margin: 0 auto;
}

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0.85;
  margin-bottom: 1.1rem;
  display: inline-block;
}

h1, h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  line-height: 1.05;
}
h1 { font-size: clamp(2.4rem, 5vw, 4.5rem); margin-bottom: 1.5rem; }
h2 { font-size: clamp(2rem, 4vw, 3.8rem); margin-bottom: 1.2rem; }

.lede {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: clamp(1rem, 1.1vw, 1.1rem);
  line-height: 1.6;
  max-width: 620px;
  color: #fff;
  margin-bottom: 2rem;
}

.cta-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.9rem 1.8rem;
  border: 1px solid #fff;
  color: #fff;
  background: transparent;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  display: inline-flex; align-items: center; gap: 0.6rem;
}
.btn:hover { background: #fff; color: #000; }
.btn.filled { background: #fff; color: #000; }
.btn.filled:hover { background: transparent; color: #fff; }
.btn .arrow { transition: transform 0.25s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- HERO con video YouTube ---------- */
#hero {
  align-items: center;
  justify-content: center;
  text-align: center;
}
.video-bg {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden; background: #000;
}
.video-bg #yt-player {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw; height: 56.25vw;
  min-height: 100vh; min-width: 177.78vh;
  pointer-events: none; border: 0;
}
.video-cover { position: absolute; inset: 0; z-index: 2; }
.video-bg::before {
  content: ''; position: absolute; inset: 0;
  background: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?auto=format&fit=crop&w=2400&q=85') center/cover;
  z-index: 0;
}
.video-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.35) 80%),
    linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0.5) 100%);
  z-index: 3; pointer-events: none;
}
#hero .section-content { padding: 0 2.5rem; text-align: center; z-index: 4; }
#hero h1 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0 0 1.5rem;
  text-shadow: 0 2px 24px rgba(0,0,0,0.5);
}
#hero .tagline {
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.85rem, 1.1vw, 1.1rem);
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0.95;
  text-shadow: 0 2px 16px rgba(0,0,0,0.6);
}

/* ---------- BRANCH PAGE HERO ---------- */
/* Branch hero — same look as home hero but with branch name next to ANMAR */
#hero h1 .hero-branch {
  font-weight: 400;
  color: rgba(255, 255, 255, 0.82);
}

.scroll-arrow {
  position: absolute; bottom: 2.5rem; left: 50%;
  transform: translateX(-50%); z-index: 4;
  width: 28px; height: 28px;
  cursor: pointer; animation: bounce 2.4s ease-in-out infinite;
}
.scroll-arrow svg {
  width: 100%; height: 100%;
  stroke: #fff; stroke-width: 1.4; fill: none; opacity: 0.85;
}
@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 10px); }
}

/* ---------- MANIFESTO ---------- */
#manifesto {
  align-items: center;
  justify-content: center;
}
#manifesto .bg-layer {
  background:
    radial-gradient(ellipse at 50% 30%, rgba(20, 35, 75, 0.4) 0%, transparent 60%),
    radial-gradient(ellipse at 30% 80%, rgba(60, 30, 90, 0.3) 0%, transparent 60%),
    linear-gradient(180deg, #000 0%, #050610 100%);
}
#manifesto .section-content {
  padding: 6rem 2.5rem 3rem;
  text-align: center;
  max-width: 1200px;
}
#manifesto h2 {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  margin-bottom: 1rem;
}
#manifesto .manifesto-intro {
  max-width: 680px; margin: 0 auto 4rem;
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem; line-height: 1.6;
}
.principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem 1.5rem;
  text-align: left;
  max-width: 1100px;
  margin: 0 auto;
}
.principle {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0.5rem 0 0;
  transition: border-color 0.3s ease;
}
.principle:hover { border-top-color: #fff; }
.principle .num {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.6rem;
  display: block;
}
.principle h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  color: #fff;
}
.principle p {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.55;
  font-weight: 300;
}

/* ---------- VERTICAL SECTIONS BACKGROUNDS ---------- */
#economy .bg-layer {
  background-image:
    linear-gradient(180deg, rgba(0,0,0,0.25), rgba(0,0,0,0.85)),
    url('https://images.unsplash.com/photo-1542744173-8e7e53415bb0?auto=format&fit=crop&w=2400&q=85');
}
#politics .bg-layer {
  background-image:
    linear-gradient(180deg, rgba(0,0,0,0.3), rgba(0,0,0,0.85)),
    url('https://images.unsplash.com/photo-1555848962-6e79363ba67e?auto=format&fit=crop&w=2400&q=85');
}
#security .bg-layer {
  background-image:
    linear-gradient(180deg, rgba(0,0,0,0.3), rgba(0,0,0,0.85)),
    url('https://images.unsplash.com/photo-1614064641938-3bbee52942c7?auto=format&fit=crop&w=2400&q=85');
}
#education .bg-layer {
  background-image:
    linear-gradient(180deg, rgba(0,0,0,0.3), rgba(0,0,0,0.85)),
    url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?auto=format&fit=crop&w=2400&q=85');
}
#entertainment .bg-layer {
  background-image:
    linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0.85)),
    url('https://images.unsplash.com/photo-1470225620780-dba8ba36b745?auto=format&fit=crop&w=2400&q=85');
}
#vision .bg-layer {
  background-image:
    linear-gradient(180deg, rgba(0,0,0,0.4), rgba(0,0,0,0.9)),
    url('https://images.unsplash.com/photo-1446776811953-b23d57bd21aa?auto=format&fit=crop&w=2400&q=85');
}

/* ---------- ROADMAP 2050 ---------- */
#roadmap {
  align-items: center;
  justify-content: center;
}
#roadmap .bg-layer {
  background:
    radial-gradient(ellipse at 50% 50%, rgba(15, 25, 55, 0.5) 0%, transparent 70%),
    linear-gradient(180deg, #000 0%, #03050b 100%);
}
#roadmap .section-content {
  padding: 6rem 2.5rem 3rem;
  text-align: center;
  max-width: 1300px;
}
#roadmap h2 { margin-bottom: 0.8rem; font-size: clamp(1.8rem, 3.5vw, 3rem); }
#roadmap .roadmap-intro {
  max-width: 640px; margin: 0 auto 3.5rem;
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  line-height: 1.6;
}
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 12px; left: 4%; right: 4%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  z-index: 0;
}
.milestone {
  position: relative;
  z-index: 1;
  text-align: left;
  padding: 0 0.5rem;
}
.milestone .dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
  margin: 0 auto 1.4rem;
  box-shadow: 0 0 0 6px rgba(255,255,255,0.08), 0 0 20px rgba(255,255,255,0.4);
}
.milestone .year {
  font-family: 'Inter', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-align: center;
  margin-bottom: 1rem;
  color: #fff;
}
.milestone .events { list-style: none; padding: 0; }
.milestone .events li {
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.75);
  font-weight: 300;
  margin-bottom: 0.6rem;
  padding-left: 14px;
  position: relative;
}
.milestone .events li::before {
  content: '';
  position: absolute; top: 9px; left: 0;
  width: 6px; height: 1px;
  background: rgba(255,255,255,0.5);
}

/* ---------- VISION ---------- */
#vision { align-items: center; text-align: center; }
#vision .section-content { padding: 0 2.5rem; text-align: center; max-width: 1000px; }
#vision h2 { font-size: clamp(2.2rem, 5vw, 4.5rem); }
#vision .lede { margin: 0 auto; font-size: 1.2rem; max-width: 780px; }

/* ---------- CONTACT ---------- */
#contact {
  align-items: center;
  text-align: center;
  justify-content: center;
}
#contact .bg-layer {
  background:
    radial-gradient(ellipse at 50% 50%, rgba(30, 50, 100, 0.35) 0%, transparent 70%),
    linear-gradient(180deg, #000 0%, #050510 100%);
}
#contact .section-content {
  text-align: center;
  padding: 6rem 2.5rem 5rem;
  max-width: 1100px;
}
#contact h2 { font-size: clamp(2rem, 4vw, 3.6rem); margin-bottom: 0.8rem; }
#contact .lede { margin: 0 auto 3rem; }
.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  max-width: 1000px;
  margin: 0 auto 2.5rem;
}
.audience-card {
  border: 1px solid var(--line);
  padding: 1.5rem 1.2rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  color: #fff;
  display: block;
  background: rgba(255,255,255,0.02);
}
.audience-card:hover {
  background: #fff; color: #000; border-color: #fff;
  transform: translateY(-3px);
}
.audience-card .label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 0.5rem;
}
.audience-card .title {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 0.3rem;
}
.audience-card .desc {
  font-size: 0.82rem;
  font-weight: 300;
  line-height: 1.5;
  opacity: 0.75;
}
.audience-card:hover .desc { opacity: 0.85; }

.contact-footer {
  position: absolute; bottom: 1.5rem; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 2.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  z-index: 3;
}

/* ---------- VERTICAL CTA ---------- */
.vertical-stats {
  display: flex; gap: 2.5rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.vertical-stats .stat {
  border-left: 1px solid rgba(255,255,255,0.3);
  padding-left: 1rem;
}
.vertical-stats .stat .v {
  font-family: 'Inter', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.vertical-stats .stat .l {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  opacity: 0.7;
  margin-top: 0.3rem;
}

/* ---------- COMPANIES GRID (used in branch pages) ---------- */
.portfolio-section {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(20, 30, 60, 0.4) 0%, transparent 60%),
    linear-gradient(180deg, #000 0%, #03050b 100%);
}
.portfolio-section .section-content {
  padding: 7rem 2.5rem 6rem;
}
.portfolio-section h2 {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  margin-bottom: 1.2rem;
  text-align: center;
}
.portfolio-section .lede {
  text-align: center;
  margin: 0 auto 4rem;
  color: rgba(255,255,255,0.75);
}
.companies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.company {
  border: 1px solid var(--line);
  padding: 2rem 1.6rem;
  transition: all 0.3s ease;
  background: rgba(255,255,255,0.02);
  position: relative;
  overflow: hidden;
}
.company:hover {
  border-color: rgba(255,255,255,0.5);
  transform: translateY(-3px);
  background: rgba(255,255,255,0.04);
}
.company .logo-mark {
  width: 48px; height: 48px;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem; font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 1.2rem;
  color: #fff;
}
.company .stage {
  position: absolute; top: 1.6rem; right: 1.4rem;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.55;
  font-weight: 500;
}
.company .name {
  font-family: 'Inter', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
  color: #fff;
}
.company .tag {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.75);
  font-weight: 300;
  line-height: 1.55;
  margin-bottom: 1.2rem;
}
.company .tech {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
  border-top: 1px solid var(--line);
  padding-top: 0.9rem;
}

/* ---------- BRAND FILM (autoplay full-screen video) ---------- */
.film-section {
  background: #000;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.film-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #000;
}
.film-video #yt-film {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  height: 56.25vw;
  min-height: 100vh;
  min-width: 177.78vh;
  border: 0;
  pointer-events: none;
}
.film-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.35) 80%),
    linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}
.film-overlay {
  position: relative;
  z-index: 4;
  text-align: center;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}
.film-eyebrow {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: clamp(0.7rem, 0.85vw, 0.85rem);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0.75;
  text-shadow: 0 2px 14px rgba(0,0,0,0.6);
  margin: 0;
  display: block;
}
.film-title {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2.6rem);
  letter-spacing: 0.02em;
  color: #fff;
  line-height: 1.1;
  text-shadow: 0 2px 24px rgba(0,0,0,0.55);
  margin: 0;
}
.film-subtitle {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: clamp(0.9rem, 1vw, 1.05rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 2px 18px rgba(0,0,0,0.6);
  max-width: 480px;
  margin: 0 0 1rem;
}

/* ---------- PLAY PILL MAGNETIC WRAPPER ---------- */
.play-pill-magnet {
  display: inline-block;
  will-change: transform;
}

/* ---------- PLAY PILL BUTTON (Google Antigravity style) ---------- */
.play-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.95);
  color: #000;
  border: none;
  padding: 0.85rem 1.6rem 0.85rem 1.3rem;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.play-pill:hover {
  background: #fff;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.4);
}
.play-pill .play-icon {
  width: 18px;
  height: 18px;
}
.play-pill .play-icon circle {
  fill: rgba(0, 0, 0, 0.08);
}
.play-pill .play-icon polygon {
  fill: #000;
}

/* ---------- FILM MODAL (fullscreen player with controls) ---------- */
.film-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 300;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
}
.film-modal.open {
  opacity: 1;
  visibility: visible;
}
.film-modal-frame {
  width: 100%;
  max-width: 1280px;
  aspect-ratio: 16 / 9;
  background: #000;
  position: relative;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  transform: scale(0.96);
  transition: transform 0.4s ease;
}
.film-modal.open .film-modal-frame {
  transform: scale(1);
}
.film-modal-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.film-modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.25s ease, transform 0.25s ease;
  z-index: 2;
}
.film-modal-close:hover {
  background: #fff;
  color: #000;
  transform: rotate(90deg);
}

@media (max-width: 880px) {
  .play-pill { font-size: 0.85rem; padding: 0.75rem 1.3rem 0.75rem 1.1rem; }
  .film-modal { padding: 2rem 1rem; }
  .film-modal-close { top: 1rem; right: 1rem; width: 40px; height: 40px; }
}

/* ---------- BRANCH THESIS (mirror of manifesto) ---------- */
.branch-thesis {
  align-items: center;
  justify-content: center;
}
.branch-thesis .bg-layer {
  background:
    radial-gradient(ellipse at 50% 30%, rgba(20, 35, 75, 0.4) 0%, transparent 60%),
    radial-gradient(ellipse at 30% 80%, rgba(60, 30, 90, 0.3) 0%, transparent 60%),
    linear-gradient(180deg, #000 0%, #050610 100%);
}
.branch-thesis .section-content {
  padding: 6rem 2.5rem 4rem;
  text-align: center;
  max-width: 1200px;
}
.branch-thesis h2 {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  margin-bottom: 1rem;
}
.branch-thesis .thesis-intro {
  max-width: 680px; margin: 0 auto 4rem;
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem; line-height: 1.65;
}

/* ---------- LARGE COMPANY CARDS (featured) ---------- */
.companies-grid.featured {
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 2rem;
  max-width: 1100px;
}
.company.featured {
  padding: 2.6rem 2.2rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  transition: all 0.35s ease;
}
.company.featured:hover {
  border-color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.06);
  transform: translateY(-5px);
}
.company.featured .logo-mark {
  width: 60px; height: 60px;
  font-size: 1.2rem;
  margin-bottom: 1.8rem;
}
.company.featured .name {
  font-size: 1.55rem;
  margin-bottom: 0.7rem;
}
.company.featured .tag {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.6rem;
  color: rgba(255,255,255,0.78);
}
.company.featured .stage {
  top: 2.2rem;
  right: 2rem;
  font-size: 0.7rem;
}
.company.featured .tech {
  padding-top: 1.1rem;
  font-size: 0.75rem;
}

/* ---------- BRANCH QUOTE (mirror of vision) ---------- */
.branch-quote {
  align-items: center;
  text-align: center;
}
.branch-quote .bg-layer::after {
  background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.85) 100%);
}
.branch-quote .section-content {
  padding: 0 2.5rem;
  text-align: center;
  max-width: 1000px;
}
.branch-quote .quote-mark {
  font-family: 'Inter', sans-serif;
  font-size: 4rem;
  line-height: 1;
  font-weight: 300;
  color: rgba(255,255,255,0.35);
  margin-bottom: 1rem;
  display: block;
}
.branch-quote blockquote {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.4rem, 2.8vw, 2.4rem);
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: #fff;
  max-width: 880px;
  margin: 0 auto 2rem;
  font-style: italic;
}
.branch-quote blockquote strong {
  font-weight: 600;
  font-style: normal;
}
.branch-quote .attribution {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

/* ---------- BRANCH CTA ---------- */
.branch-cta {
  align-items: center;
  justify-content: center;
  text-align: center;
}
.branch-cta .bg-layer {
  background:
    radial-gradient(ellipse at 50% 50%, rgba(30, 50, 100, 0.35) 0%, transparent 70%),
    linear-gradient(180deg, #000 0%, #050510 100%);
}
.branch-cta .section-content {
  padding: 6rem 2.5rem 5rem;
  text-align: center;
  max-width: 900px;
}
.branch-cta h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); margin-bottom: 1rem; }
.branch-cta .lede { margin: 0 auto 2.5rem; }
.branch-cta .cta-row { justify-content: center; }

/* ---------- COMING SOON BOX ---------- */
.coming-soon {
  max-width: 720px;
  margin: 3rem auto 2rem;
  padding: 4rem 2.5rem;
  text-align: center;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
  position: relative;
}
.coming-soon .status-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 1.4rem;
  display: block;
}
.coming-soon h3 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  color: #fff;
}
.coming-soon p {
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 560px;
  margin: 0 auto 2rem;
  font-weight: 300;
}
.coming-soon .badge {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  border: 1px solid rgba(255,255,255,0.4);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #fff;
  font-weight: 500;
}

.back-home-cta {
  text-align: center;
  padding: 3rem 0 5rem;
}

/* ---------- VERTICALS OVERVIEW (home grid) ---------- */
.verticals-overview {
  background: linear-gradient(180deg, #000 0%, #050610 100%);
}
.verticals-overview .section-content {
  padding: 7rem 2.5rem 6rem;
  text-align: center;
}
.verticals-overview h2 { margin-bottom: 1rem; font-size: clamp(1.8rem, 3.5vw, 3rem); }
.verticals-overview .lede {
  text-align: center; max-width: 640px; margin: 0 auto 4rem;
  color: rgba(255,255,255,0.7);
}
.verticals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
  max-width: 1300px;
  margin: 0 auto;
  text-align: left;
}
.vertical-card {
  display: block;
  padding: 2.2rem 1.8rem;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
  transition: all 0.3s ease;
  color: #fff;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.vertical-card:hover {
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.05);
  transform: translateY(-4px);
}
.vertical-card .num {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  display: block;
  margin-bottom: 1rem;
}
.vertical-card .name {
  font-family: 'Inter', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  color: #fff;
}
.vertical-card .desc {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.55;
  font-weight: 300;
  margin-bottom: 1.4rem;
}
.vertical-card .footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}
.vertical-card .footer-row .status {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
}
.vertical-card .footer-row .arrow {
  font-size: 1rem;
  transition: transform 0.25s ease;
  color: #fff;
}
.vertical-card:hover .footer-row .arrow {
  transform: translateX(4px);
}

/* ---------- FADE-IN ---------- */
.section-content > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease, transform 1s ease;
}
section.in-view .section-content > * {
  opacity: 1;
  transform: translateY(0);
}
section.in-view .section-content > *:nth-child(1) { transition-delay: 0.1s; }
section.in-view .section-content > *:nth-child(2) { transition-delay: 0.25s; }
section.in-view .section-content > *:nth-child(3) { transition-delay: 0.4s; }
section.in-view .section-content > *:nth-child(4) { transition-delay: 0.55s; }
section.in-view .section-content > *:nth-child(5) { transition-delay: 0.7s; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px) {
  .nav-links { gap: 1.2rem; }
  .nav-links a { font-size: 0.74rem; letter-spacing: 0.1em; }
  .timeline { grid-template-columns: 1fr 1fr; }
  .timeline::before { display: none; }
}
@media (max-width: 880px) {
  nav { padding: 1rem 1.4rem; }
  .menu-toggle { display: block; }
  .nav-links {
    position: fixed; top: 0; right: 0;
    height: 100vh; width: 280px;
    background: rgba(0,0,0,0.96);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center; align-items: center;
    gap: 1.6rem;
    transform: translateX(100%);
    transition: transform 0.4s ease;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1rem; letter-spacing: 0.18em; }
  .section-content { padding: 0 1.5rem 4rem; }
  #hero .section-content,
  #manifesto .section-content,
  #roadmap .section-content,
  #contact .section-content,
  .verticals-overview .section-content,
  .portfolio-section .section-content { padding: 5rem 1.5rem 4rem; }
  .timeline { grid-template-columns: 1fr; gap: 2rem; }
  .contact-footer {
    padding: 0 1.5rem;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.6rem;
  }
  .cta-row { flex-direction: column; align-items: flex-start; }
  #contact .cta-row { align-items: center; }
  .btn { padding: 0.8rem 1.5rem; font-size: 0.78rem; width: fit-content; }
  .vertical-stats { gap: 1.4rem; }
  .coming-soon { padding: 3rem 1.5rem; }
}
