:root {
  /* Palette based on the FrameSpotting logo (VOL 03):
     brand blue #4f6fc8, navy #273776, charcoal #232120, white */
  --bg:      #1c1b1a;
  --bg2:     #232120;   /* logo charcoal */
  --surface: #2b2928;
  --border:  #3a3735;
  --brand:   #4f6fc8;   /* logo blue – buttons / graphics (white text on it: 4.7:1) */
  --navy:    #273776;   /* logo navy – use only on light backgrounds */
  --accent:  #7d95e0;   /* lighter brand blue for text on dark (5.5:1) */
  --accent2: #a3b3ea;   /* soft blue for labels (7.8:1) */
  --text:    #f2f1ef;
  --muted:   #9a9692;   /* ≥4.9:1 on all backgrounds */
  --muted2:  #b3afab;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Mono', monospace;
  font-size: 14px;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed; inset: 0;
  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.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 1000; opacity: 0.5;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem 3rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
nav.scrolled {
  background: rgba(28,27,26,0.92);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}
.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 0.18em;
  color: var(--text);
  text-decoration: none;
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
  color: var(--muted2); text-decoration: none;
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--brand); color: #ffffff;
  padding: 0.5rem 1.25rem; font-size: 12px;
  font-family: 'DM Mono', monospace;
  letter-spacing: 0.08em; text-transform: uppercase;
  border: none; cursor: pointer; text-decoration: none;
  transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.85; }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  justify-content: center;
  padding: 10rem 3rem 6rem;
  position: relative; overflow: hidden;
}

/* background grid lines */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

.hero-inner {
  max-width: 1100px; margin: 0 auto;
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 5rem; align-items: center;
}

.hero-kicker {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent2); margin-bottom: 1.75rem;
  animation: fadeUp 0.7s ease both;
}
.hero-kicker .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent2);
  animation: blink 2s ease-in-out infinite;
}

.hero-h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(64px, 8vw, 108px);
  line-height: 0.93; letter-spacing: 0.02em;
  color: var(--text);
  animation: fadeUp 0.7s 0.08s ease both;
}
.hero-h1 em {
  font-style: normal; color: var(--accent);
}

.hero-body {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 19px; color: var(--muted2);
  max-width: 480px; line-height: 1.65;
  margin: 1.75rem 0 2.5rem;
  animation: fadeUp 0.7s 0.16s ease both;
}

.hero-actions {
  display: flex; align-items: center; gap: 1.5rem;
  animation: fadeUp 0.7s 0.24s ease both;
}
.btn-primary {
  background: var(--brand); color: #ffffff;
  padding: 0.85rem 2rem; font-size: 12px;
  font-family: 'DM Mono', monospace;
  letter-spacing: 0.12em; text-transform: uppercase;
  border: none; cursor: pointer; text-decoration: none;
  display: inline-block;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(79,111,200,0.28); }
.btn-ghost {
  color: var(--muted2); font-size: 12px;
  letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; display: flex; align-items: center; gap: 0.5rem;
  transition: color 0.2s;
}
.btn-ghost:hover { color: var(--text); }
.btn-ghost .arr { transition: transform 0.2s; }
.btn-ghost:hover .arr { transform: translateX(4px); }

/* hero right — abstract lab visual */
.hero-visual {
  position: relative; height: 380px;
  animation: fadeUp 0.7s 0.3s ease both;
}
.hex-grid {
  position: absolute; inset: 0;
  display: flex; flex-wrap: wrap;
  gap: 4px; align-content: start;
  opacity: 0.7;
}
.hex {
  width: 44px; height: 44px;
  clip-path: polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: background 0.3s;
  flex-shrink: 0;
}
.hex.lit-y { background: rgba(79,111,200,0.12); animation: hexPulse 3s ease-in-out infinite; }
.hex.lit-b { background: rgba(125,149,224,0.1); animation: hexPulse 3s 1.2s ease-in-out infinite; }
.hex.lit-y2 { background: rgba(79,111,200,0.07); animation: hexPulse 3s 0.6s ease-in-out infinite; }

.orbit-ring {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 260px; height: 260px;
  border: 1px solid var(--border);
  border-radius: 50%;
  animation: rotate 24s linear infinite;
}
.orbit-ring::before {
  content: '';
  position: absolute; top: -4px; left: 50%;
  width: 8px; height: 8px;
  background: var(--accent2);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent2);
  transform: translateX(-50%);
}
.orbit-ring-2 {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 160px; height: 160px;
  border: 1px solid rgba(79,111,200,0.2);
  border-radius: 50%;
  animation: rotate 14s linear infinite reverse;
}
.orbit-ring-2::before {
  content: '';
  position: absolute; bottom: -4px; left: 50%;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent);
  transform: translateX(-50%);
}
.core {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 64px; height: 64px;
  background: var(--surface);
  border: 1px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Bebas Neue'; font-size: 11px; letter-spacing: 0.2em;
  color: var(--accent);
  box-shadow: 0 0 40px rgba(79,111,200,0.15);
}
.glow-bg {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 300px; height: 300px;
  background: radial-gradient(ellipse, rgba(125,149,224,0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* ── TICKER ── */
.ticker {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden; padding: 0.75rem 0;
  background: var(--bg2);
}
.ticker-inner {
  display: flex; gap: 0;
  animation: tickerScroll 32s linear infinite;
  white-space: nowrap;
}
.ticker-item {
  font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--muted);
  padding: 0 3rem; border-right: 1px solid var(--border);
  flex-shrink: 0;
}
.ticker-item.hl { color: var(--accent2); }

/* ── SHARED SECTION STYLES ── */
.section-label {
  font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--accent2); margin-bottom: 1rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.section-label::after {
  content: ''; flex: 1; max-width: 40px; height: 1px; background: var(--accent2);
}
.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 0.95; letter-spacing: 0.03em;
}

/* ── ABOUT ── */
.about {
  padding: 8rem 3rem;
  background: var(--bg);
  position: relative; z-index: 2;
}
.about-inner { max-width: 1100px; margin: 0 auto; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem; align-items: center;
  margin-top: 3rem;
}
.about-text p {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 20px; color: var(--muted2);
  line-height: 1.7; margin-bottom: 1.5rem;
}
.about-text p strong {
  font-style: normal; color: var(--text); font-weight: 400;
}
.about-pillars {
  display: flex; flex-direction: column; gap: 0;
  border: 1px solid var(--border);
}
.pillar {
  padding: 1.75rem 2rem;
  border-bottom: 1px solid var(--border);
  display: flex; gap: 1.25rem; align-items: flex-start;
  transition: background 0.3s;
}
.pillar:last-child { border-bottom: none; }
.pillar:hover { background: var(--bg2); }
.pillar-icon {
  font-size: 22px; flex-shrink: 0; margin-top: 2px;
}
.pillar-title {
  font-family: 'Bebas Neue'; font-size: 18px;
  letter-spacing: 0.05em; color: var(--text); margin-bottom: 0.3rem;
}
.pillar-body { font-size: 13px; color: var(--muted2); line-height: 1.6; }

/* ── PROJECTS ── */
.projects {
  padding: 8rem 3rem;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  position: relative; z-index: 2;
}
.projects-inner { max-width: 1100px; margin: 0 auto; }
.projects-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 4rem; flex-wrap: wrap; gap: 1rem;
}
.projects-subtitle {
  font-family: 'Instrument Serif', serif; font-style: italic;
  font-size: 16px; color: var(--muted2); max-width: 320px;
}

/* FEATURED PROJECT */
.project-featured {
  background: var(--bg);
  border: 1px solid var(--border);
  display: grid; grid-template-columns: 1fr 1fr;
  margin-bottom: 1.5rem;
  transition: border-color 0.3s;
  position: relative; overflow: hidden;
}
.project-featured:hover { border-color: rgba(79,111,200,0.35); }
.project-featured::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent 60%);
}

.pf-left {
  padding: 3rem;
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; justify-content: space-between;
}
.pf-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); border: 1px solid rgba(79,111,200,0.3);
  padding: 3px 10px; margin-bottom: 1.5rem; width: fit-content;
}
.pf-badge .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
}
.pf-name {
  font-family: 'Bebas Neue'; font-size: 56px;
  letter-spacing: 0.05em; line-height: 1; color: var(--text);
  margin-bottom: 0.5rem;
}
.pf-tagline {
  font-family: 'Instrument Serif', serif; font-style: italic;
  font-size: 17px; color: var(--muted2); line-height: 1.5;
  margin-bottom: 2rem;
}
.pf-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--accent); font-size: 12px;
  letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none;
  transition: gap 0.2s;
}
.pf-link:hover { gap: 0.9rem; }

.pf-right {
  padding: 3rem;
  display: flex; flex-direction: column; gap: 2rem;
}
.pf-desc {
  font-size: 14px; color: var(--muted2); line-height: 1.75;
}
.pf-how {
  display: flex; flex-direction: column; gap: 0.75rem;
}
.pf-how-title {
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 0.25rem;
}
.pf-step {
  display: flex; align-items: flex-start; gap: 0.75rem;
  font-size: 13px; color: var(--muted2); line-height: 1.5;
}
.pf-step-num {
  font-family: 'Bebas Neue'; font-size: 18px; color: var(--accent);
  letter-spacing: 0.05em; flex-shrink: 0; margin-top: -2px;
}
.pf-stats {
  display: flex; gap: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.pf-stat-val {
  font-family: 'Bebas Neue'; font-size: 30px;
  color: var(--accent); letter-spacing: 0.05em; line-height: 1;
}
.pf-stat-lbl {
  font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--muted); margin-top: 3px;
}

/* COMING SOON CARDS */
.projects-soon {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  margin-top: 1.5rem;
}
.soon-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-style: dashed;
  padding: 2rem;
  position: relative; overflow: hidden;
  opacity: 0.7;
  transition: opacity 0.3s, border-color 0.3s;
}
.soon-card:hover { opacity: 1; border-color: var(--muted); }
.soon-badge {
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1.25rem;
}
.soon-icon { font-size: 28px; margin-bottom: 1rem; }
.soon-name {
  font-family: 'Bebas Neue'; font-size: 24px;
  letter-spacing: 0.05em; color: var(--muted2); margin-bottom: 0.5rem;
}
.soon-desc { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ── VISION / MANIFESTO ── */
.vision {
  padding: 8rem 3rem;
  background: var(--bg);
  border-top: 1px solid var(--border);
  position: relative; z-index: 2; overflow: hidden;
}
.vision::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 100%, rgba(79,111,200,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.vision-inner {
  max-width: 800px; margin: 0 auto; text-align: center;
  position: relative; z-index: 1;
}
.vision-quote {
  font-family: 'Instrument Serif', serif; font-style: italic;
  font-size: clamp(22px, 3.5vw, 34px);
  color: var(--text); line-height: 1.5;
  margin: 2.5rem 0;
}
.vision-quote em {
  font-style: normal; color: var(--accent);
}
.vision-body {
  font-size: 14px; color: var(--muted2);
  line-height: 1.8; max-width: 600px; margin: 0 auto 3rem;
}

/* ── CONTACT ── */
.contact {
  padding: 8rem 3rem;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  position: relative; z-index: 2;
}
.contact-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: start;
}
.contact-left .section-title { margin-bottom: 1.5rem; }
.contact-left p {
  font-family: 'Instrument Serif', serif; font-style: italic;
  font-size: 18px; color: var(--muted2); line-height: 1.65; margin-bottom: 2rem;
}
.contact-methods { display: flex; flex-direction: column; gap: 1rem; }
.contact-item {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 13px; color: var(--muted2); text-decoration: none;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  transition: border-color 0.2s, color 0.2s;
}
.contact-item:hover { border-color: var(--accent2); color: var(--text); }
.contact-icon { color: var(--accent2); flex-shrink: 0; }

.contact-right {
  padding: 2.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
}
.form-title {
  font-family: 'Bebas Neue'; font-size: 28px; letter-spacing: 0.05em;
  margin-bottom: 1.75rem; color: var(--text);
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block; font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 0.5rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; background: var(--bg2);
  border: 1px solid var(--border); color: var(--text);
  font-family: 'DM Mono', monospace; font-size: 13px;
  padding: 0.75rem 1rem; outline: none;
  transition: border-color 0.2s;
  appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--accent2); }
.form-group textarea { min-height: 100px; resize: vertical; }
.form-group select option { background: var(--bg2); }
.form-submit {
  width: 100%; background: var(--brand); color: #ffffff;
  padding: 1rem; font-size: 12px;
  font-family: 'DM Mono', monospace; letter-spacing: 0.12em;
  text-transform: uppercase; border: none; cursor: pointer;
  margin-top: 0.5rem; transition: opacity 0.2s;
}
.form-submit:hover { opacity: 0.88; }

/* ── FOOTER ── */
footer {
  padding: 2.5rem 3rem;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  background: var(--bg); flex-wrap: wrap; gap: 1rem;
}
.footer-logo {
  font-family: 'Bebas Neue'; font-size: 20px;
  letter-spacing: 0.18em; color: var(--muted2);
  text-decoration: none;
}
.footer-logo span { color: var(--accent); }
.footer-links { display: flex; gap: 2rem; list-style: none; }
.footer-links a {
  font-size: 12px; color: var(--muted);
  text-decoration: none; letter-spacing: 0.08em;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 11px; color: var(--muted); letter-spacing: 0.1em; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes blink {
  0%, 100% { opacity: 1; } 50% { opacity: 0.3; }
}
@keyframes rotate {
  from { transform: translate(-50%,-50%) rotate(0deg); }
  to   { transform: translate(-50%,-50%) rotate(360deg); }
}
@keyframes hexPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}
@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

/* ── HAMBURGER ── */
.nav-hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px;
  background: none; border: none;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(28,27,26,0.97);
  z-index: 99;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 2.5rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: 'Bebas Neue'; font-size: 42px;
  letter-spacing: 0.1em; color: var(--text);
  text-decoration: none; transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--accent); }
.mobile-menu .m-cta {
  font-family: 'DM Mono', monospace; font-size: 13px;
  letter-spacing: 0.12em; text-transform: uppercase;
  background: var(--brand); color: #ffffff;
  padding: 0.85rem 2.5rem; margin-top: 1rem;
}

/* ── TABLET (≤1024px) ── */
@media (max-width: 1024px) {
  .hero-inner { gap: 3rem; }
  .about-grid { gap: 4rem; }
  .pf-right { padding: 2rem; }
  .pf-left { padding: 2rem; }
}

/* ── TABLET / LARGE MOBILE (≤900px) ── */
@media (max-width: 900px) {
  nav { padding: 1.25rem 1.5rem; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; }

  .hero { padding: 8rem 1.5rem 4rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 0; }
  .hero-visual { display: none; }

  .about, .projects, .vision, .contact { padding: 5rem 1.5rem; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-text p { font-size: 17px; }

  .project-featured { grid-template-columns: 1fr; }
  .pf-left { border-right: none; border-bottom: 1px solid var(--border); }
  .pf-name { font-size: 44px; }
  .pf-stats { gap: 1.5rem; }

  .contact-inner { grid-template-columns: 1fr; gap: 3rem; max-width: 100% !important; }

  footer { padding: 2rem 1.5rem; }
  .footer-links { display: none; }
}

/* ── MOBILE (≤600px) ── */
@media (max-width: 600px) {
  .hero-h1 { font-size: 52px; }
  .hero-body { font-size: 16px; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 1rem; }

  .section-title { font-size: 38px; }

  .about-text p { font-size: 16px; }
  .pillar { padding: 1.25rem 1rem; }

  .pf-left { padding: 1.5rem; }
  .pf-right { padding: 1.5rem; }
  .pf-name { font-size: 38px; }
  .pf-tagline { font-size: 15px; }
  .pf-stats { flex-wrap: wrap; gap: 1.25rem; }

  .vision-quote { font-size: 20px; }
  .vision-body { font-size: 13px; }

  .contact-left p { font-size: 16px; }

  footer { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .footer-copy { font-size: 11px; }
}

/* ── SMALL MOBILE (≤380px) ── */
@media (max-width: 380px) {
  .hero-h1 { font-size: 42px; }
  nav { padding: 1rem 1rem; }
  .hero, .about, .projects, .vision, .contact { padding-left: 1rem; padding-right: 1rem; }
}

/* ════════════════════════════════════════════
   ADDITIONS: i18n, EU funding, accessibility
   ════════════════════════════════════════════ */

/* ── ACCESSIBILITY ── */
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 2000;
  background: var(--brand); color: #ffffff;
  padding: 0.6rem 1rem; font-size: 12px; letter-spacing: 0.1em;
  text-transform: uppercase; text-decoration: none;
}
.skip-link:focus { top: 1rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent2); outline-offset: 3px;
}
.contact-item { background: none; font: inherit; font-size: 13px; cursor: pointer; text-align: left; width: 100%; }
.contact-item a { color: inherit; text-decoration: none; }

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

/* ── LANGUAGE SWITCH ── */
.nav-right { display: flex; align-items: center; gap: 1.5rem; }
.lang-switch {
  display: flex; align-items: center; gap: 0.35rem;
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
}
.lang-switch a, .lang-switch span { color: var(--muted2); text-decoration: none; padding: 2px 4px; }
.lang-switch a:hover { color: var(--text); }
.lang-switch [aria-current="true"] { color: var(--accent); }
.lang-switch .sep { color: var(--muted); padding: 0; }
.mobile-menu .lang-switch { font-size: 14px; }
.mobile-menu .lang-switch a, .mobile-menu .lang-switch span {
  font-family: 'DM Mono', monospace; font-size: 14px; letter-spacing: 0.12em;
}

/* ── EU FUNDING STRIP (logos need a white background in full colour) ── */
.fe-strip {
  background: #ffffff; color: #1a1a1a;
  position: relative; z-index: 2;
  border-top: 1px solid var(--border);
}
.fe-strip-inner {
  max-width: 1100px; margin: 0 auto; padding: 1.5rem 3rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
}
.fe-strip img { display: block; height: auto; width: 100%; max-width: 640px; }
.fe-strip a.fe-more {
  color: #1a1a1a; font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; text-decoration: underline; text-underline-offset: 3px;
}
.fe-strip a.fe-more:focus-visible { outline-color: #0050a0; }

/* ── FOOTER ADDITIONS ── */
.footer-legal {
  width: 100%; font-size: 11px; color: var(--muted); letter-spacing: 0.05em;
  line-height: 1.7; border-top: 1px solid var(--border); padding-top: 1rem;
}

/* ── FUNDING SUBPAGE ── */
.page {
  padding: 9rem 3rem 6rem; position: relative; z-index: 2; background: var(--bg);
}
.page-inner { max-width: 1100px; margin: 0 auto; }
/* same left edge as home page; keep comfortable line length for text */
/* text spans full width, larger size like the home page Manifesto */
.page p, .page li { font-size: 16px; }
.page .lead { font-size: 22px; }
.page h1.section-title { max-width: 980px; }
.page .fe-logos {
  background: #ffffff; padding: 1.25rem 1.5rem; margin: 2rem 0 3rem;
}
.page .fe-logos img { display: block; width: 100%; height: auto; }
.page h1.section-title { margin-bottom: 1.5rem; }
.page .lead {
  font-family: 'Instrument Serif', serif; font-style: italic;
  font-size: 20px; color: var(--muted2); line-height: 1.6;
}
.page h2 {
  font-family: 'Bebas Neue', sans-serif; font-size: 28px; letter-spacing: 0.05em;
  color: var(--text); margin: 2.75rem 0 0.75rem; font-weight: 400;
}
.page p, .page li { font-size: 14px; color: var(--muted2); line-height: 1.8; }
.page ul { padding-left: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; }
.page strong { color: var(--text); font-weight: 400; }
.fe-facts {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border); margin-top: 2.75rem;
}
.fe-fact { padding: 1.5rem; border-right: 1px solid var(--border); }
.fe-fact:last-child { border-right: none; }
.fe-fact dt {
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 0.4rem;
}
.fe-fact dd {
  font-family: 'Bebas Neue', sans-serif; font-size: 28px; letter-spacing: 0.04em;
  color: var(--accent); line-height: 1.1;
}
.page .back-link {
  display: inline-block; margin-top: 3rem; color: var(--accent2);
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none;
}
.page .back-link:hover { color: var(--text); }

@media (max-width: 900px) {
  .fe-strip-inner { padding: 1.25rem 1.5rem; }
  .page { padding: 7rem 1.5rem 4rem; }
  .fe-facts { grid-template-columns: 1fr; }
  .fe-fact { border-right: none; border-bottom: 1px solid var(--border); }
  .fe-fact:last-child { border-bottom: none; }
  .nav-right .lang-switch { display: none; }
}
@media (max-width: 380px) {
  .page { padding-left: 1rem; padding-right: 1rem; }
  .fe-strip-inner { padding: 1rem; }
}

/* headings that were divs – keep original look */
h3.pillar-title, h3.pf-name { font-weight: 400; }
.page h1.section-title { font-size: clamp(34px, 4.6vw, 54px); line-height: 1.05; }
.nav-links a[aria-current="page"], .mobile-menu a[aria-current="page"] { color: var(--accent); }
.nav-links a, .nav-cta, .nav-logo { white-space: nowrap; }
@media (max-width: 1100px) {
  nav { padding-left: 2rem; padding-right: 2rem; }
  .nav-links { gap: 1.5rem; }
  .nav-right { gap: 1rem; }
}

/* FrameSpotting mark next to product name */
.pf-name { display: flex; align-items: center; gap: 0.75rem; }
.pf-mark { width: 0.75em; height: 0.75em; flex-shrink: 0; }
.pf-stats > div { min-width: 0; }
.pf-stat-val { font-size: 26px; }

/* ════════════════════════════════════════════
   EU logo set at the very top of every page
   (full-colour logos require a white background)
   ════════════════════════════════════════════ */
.fe-top {
  background: #ffffff;
  position: relative; z-index: 1001; /* above the noise overlay so logos keep true colours */
}
.fe-top-inner {
  max-width: 1100px; margin: 0 auto; padding: 0.75rem 3rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem;
  flex-wrap: wrap;
}
.fe-top img { display: block; height: 64px; width: auto; max-width: 100%; }
.fe-top .fe-more {
  color: #1c1b1a; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: underline; text-underline-offset: 3px;
}
.fe-top .fe-more:hover { color: var(--navy); }
.fe-top .fe-more:focus-visible { outline-color: var(--navy); }
.fe-top .fe-more[aria-current="page"] { text-decoration: none; color: var(--navy); }

/* nav now sits below the logo strip and sticks to the top on scroll */
nav, nav.scrolled {
  position: sticky; top: 0;
  background: rgba(28,27,26,0.94);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}
.hero { min-height: calc(100vh - 170px); padding-top: 5rem; }
.page { padding-top: 4rem; }

/* stats in the FrameSpotting logo typeface family (Outfit – per FrameSpotting brandbook) */
.pf-stat-val {
  font-family: 'Outfit', 'DM Mono', sans-serif; font-weight: 300;
  font-size: 22px; letter-spacing: 0; line-height: 1.2;
}

@media (max-width: 900px) {
  .fe-top-inner { padding: 0.75rem 1.5rem; }
  .hero { min-height: 0; padding-top: 4rem; }
  .page { padding-top: 3rem; }
}
@media (max-width: 600px) {
  .fe-top img { height: auto; width: 100%; }
  .fe-top-inner { justify-content: center; padding: 0.6rem 1rem; }
}

/* product name written like the logo wordmark: lowercase geometric sans */
.pf-name {
  font-family: 'Outfit', 'DM Mono', sans-serif; font-weight: 300;
  letter-spacing: 0; text-transform: lowercase;
  font-size: 44px;
}
.pf-mark { width: 1em; height: 1em; }
@media (max-width: 900px) { .pf-name { font-size: 38px; } }
@media (max-width: 600px) { .pf-name { font-size: 32px; } }

/* ════════════════════════════════════════════
   THEMES: dark (default) / light
   Choice: saved user choice → otherwise system setting
   ════════════════════════════════════════════ */
:root { --nav-bg: rgba(28,27,26,0.94); --menu-bg: rgba(28,27,26,0.97); --fe-strip-bg: #232120; color-scheme: dark; }

:root[data-theme="light"] {
  --bg:      #ffffff;
  --bg2:     #f6f5f3;
  --surface: #efeeeb;
  --border:  #dedbd6;
  --accent:  #3f5bb5;   /* brand blue, darkened for text on white (6.2:1) */
  --accent2: #273776;   /* logo navy for labels (11:1) */
  --text:    #1c1b1a;
  --muted:   #6b6763;   /* ≥4.8:1 */
  --muted2:  #55514d;
  --nav-bg:  rgba(255,255,255,0.94);
  --menu-bg: rgba(255,255,255,0.97);
  --fe-strip-bg: #ffffff;
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #ffffff; --bg2: #f6f5f3; --surface: #efeeeb; --border: #dedbd6;
    --accent: #3f5bb5; --accent2: #273776; --text: #1c1b1a; --muted: #6b6763; --muted2: #55514d;
    --nav-bg: rgba(255,255,255,0.94); --menu-bg: rgba(255,255,255,0.97); --fe-strip-bg: #ffffff;
    color-scheme: light;
  }
}

nav, nav.scrolled { background: var(--nav-bg); }
.mobile-menu { background: var(--menu-bg); }
body { transition: background-color 0.2s, color 0.2s; }

/* EU strip: dark strip in dark mode, but the logos always sit on a white field
   (full-colour logo set is only allowed on a white/light background) */
.fe-top { background: var(--fe-strip-bg); border-bottom: 1px solid var(--border); }
.fe-top img { background: #ffffff; padding: 6px 12px; box-sizing: content-box; }
.fe-top .fe-more { color: var(--text); }
.fe-top .fe-more:hover, .fe-top .fe-more[aria-current="page"] { color: var(--accent); }
.fe-top .fe-more:focus-visible { outline-color: var(--accent2); }
@media (max-width: 600px) { .fe-top img { box-sizing: border-box; } }

/* theme toggle */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; padding: 0;
  background: none; border: 1px solid var(--border); color: var(--muted2);
  cursor: pointer; transition: color 0.2s, border-color 0.2s;
}
.theme-toggle:hover { color: var(--text); border-color: var(--muted); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="dark"]) .theme-toggle .icon-moon { display: none; }
}
@media (max-width: 900px) { .nav-right { margin-left: auto; margin-right: 1rem; } }

.fe-logo-link { display: block; max-width: 100%; }

/* ── company details in the contact section ── */
.company-data {
  margin-top: 2.5rem; padding: 1.75rem 2rem;
  border: 1px solid var(--border); background: var(--bg);
}
.company-data-title {
  font-family: 'Bebas Neue', sans-serif; font-weight: 400;
  font-size: 22px; letter-spacing: 0.05em; color: var(--text); margin-bottom: 1rem;
}
.company-data address {
  font-style: normal; font-size: 14px; line-height: 1.7; color: var(--muted2); margin-bottom: 1.25rem;
}
.company-data address strong { color: var(--text); font-weight: 400; }
.company-data dl { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; margin-bottom: 1rem; }
.company-data dt { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.company-data dd { font-size: 14px; color: var(--text); margin: 0.15rem 0 0; }
.company-data-note { font-size: 12px; color: var(--muted); line-height: 1.6; }
@media (max-width: 600px) { .company-data { padding: 1.25rem; } }
.contact-left .company-data-note {
  font-family: 'DM Mono', monospace; font-style: normal;
  font-size: 12px; color: var(--muted); line-height: 1.6; margin-bottom: 0;
}

/* ── slimmer footer, centred company line ── */
footer { padding: 1.25rem 3rem; gap: 0.75rem 1rem; }
.footer-legal {
  text-align: center; font-size: 10.5px; line-height: 1.6;
  padding-top: 0.75rem; margin-top: 0.25rem;
}
@media (max-width: 900px) { footer { padding: 1rem 1.5rem; } }
@media (max-width: 600px) { footer { align-items: center; text-align: center; } }
.footer-legal span { white-space: nowrap; }
@media (max-width: 900px) {
  /* keep footer links on mobile (privacy + company details must stay reachable) */
  .footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.25rem; width: 100%; }
}
/* strip now holds only the (clickable) logo set */
.fe-top-inner { justify-content: center; }

/* ── FrameSpotting mark per brandbook: blue on light, white monochrome on dark ── */
.pf-mark {
  display: inline-block; width: 1em; height: 1em; flex-shrink: 0;
  background-color: var(--brand);
  -webkit-mask: url("../img/framespotting-mark.svg?v=2") center / contain no-repeat;
          mask: url("../img/framespotting-mark.svg?v=2") center / contain no-repeat;
}
.pf-name { color: var(--navy); }
:root[data-theme="dark"] .pf-mark { background-color: #ffffff; }
:root[data-theme="dark"] .pf-name { color: #ffffff; }

/* EU strip stays white in both themes (full-colour logo set requires a white background) */
:root { --fe-strip-bg: #ffffff; }
:root[data-theme="dark"] { --fe-strip-bg: #ffffff; }
.fe-top { border-bottom-color: #dedbd6; }
.fe-top img { background: none; padding: 0; }

/* slimmer EU strip: logos stay legible (text inside logo set ≈ 9px at 56px height) */
.fe-top-inner { padding-top: 0.4rem; padding-bottom: 0.4rem; }
.fe-top img { height: 56px; }
@media (max-width: 600px) { .fe-top img { height: auto; width: 100%; max-height: 56px; } .fe-top-inner { padding: 0.4rem 0.75rem; } }

/* ── project information list (EU funds page) ── */
.fe-info { border-top: 1px solid var(--border); margin-top: 0.5rem; }
.fe-info > div {
  display: grid; grid-template-columns: minmax(180px, 42%) 1fr; gap: 0.25rem 1.5rem;
  padding: 0.7rem 0; border-bottom: 1px solid var(--border);
}
.fe-info dt { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.fe-info dd { font-size: 16px; color: var(--text); margin: 0; }
.fe-info dd strong { color: var(--accent); font-weight: 400; }
@media (max-width: 600px) { .fe-info > div { grid-template-columns: 1fr; } }
.company-email { margin-bottom: 1.25rem; }
.company-data address { margin-bottom: 1rem; }
.company-email { margin: 1.25rem 0 0; }
.pf-later { font-size: 12px; color: var(--muted); font-style: italic; margin-top: 0.25rem; }

/* reflow at 320px (WCAG 1.4.10): let the contact column shrink */
.contact-inner > * { min-width: 0; }
.company-data { overflow-wrap: anywhere; }
@media (max-width: 380px) { .company-data { padding: 1rem; } .company-data dl { gap: 0.75rem 1.5rem; } }

/* larger main menu */
.nav-links a { font-size: 14px; letter-spacing: 0.08em; }
.nav-right .lang-switch { font-size: 13px; }
.nav-cta { font-size: 13px; }
.nav-logo { font-size: 26px; }
@media (max-width: 380px) { .nav-logo { font-size: 22px; } }
@media (min-width: 901px) and (max-width: 1040px) {
  nav { padding-left: 1.5rem; padding-right: 1.5rem; }
  .nav-links { gap: 1.1rem; }
  .nav-right { gap: 0.75rem; }
  .nav-logo { font-size: 23px; }
}

/* ── company card: two columns (address + email | registry data) ── */
.company-data {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1.5rem 2.5rem; padding: 2rem;
}
.cd-main { display: flex; flex-direction: column; gap: 1.25rem; }
.company-data address { margin: 0; font-size: 15px; line-height: 1.75; }
.company-data address strong { font-size: 16px; }
.cd-email {
  display: inline-flex; align-items: center; gap: 0.6rem; width: fit-content;
  background: none; border: none; padding: 0; cursor: pointer;
  font-family: 'DM Mono', monospace; font-size: 14px; color: var(--accent);
  text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px;
}
.cd-email:hover { color: var(--text); }
.cd-email .contact-icon { color: inherit; text-decoration: none; }
.cd-reg {
  display: flex; flex-direction: column; gap: 0; margin: 0;
  border-left: 1px solid var(--border); padding-left: 2.5rem;
}
.cd-reg > div {
  display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem;
  padding: 0.45rem 0; border-bottom: 1px solid var(--border); align-items: baseline;
}
.cd-reg > div:last-child { border-bottom: none; }
.cd-reg dt { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.cd-reg dd { font-size: 13px; color: var(--text); margin: 0; line-height: 1.5; }
@media (max-width: 760px) {
  .company-data { grid-template-columns: 1fr; padding: 1.5rem; }
  .cd-reg { border-left: none; padding-left: 0; border-top: 1px solid var(--border); padding-top: 0.5rem; }
}
@media (max-width: 420px) {
  .cd-reg > div { grid-template-columns: 1fr; gap: 0.1rem; }
}
.company-data .cd-reg { gap: 0; margin: 0; flex-wrap: nowrap; }
.company-data .cd-reg dd { margin: 0; font-size: 13px; }
.company-data .cd-reg dt { font-size: 10px; }

/* Manifesto aligned left, on the same grid as other sections */
.vision-inner { max-width: 1100px; text-align: left; }
.vision-quote { max-width: 820px; }
.vision-body { max-width: 680px; margin-left: 0; margin-right: 0; }

/* Contact: same left edge as other sections, content column kept readable */
.contact-inner--single { grid-template-columns: 1fr; max-width: 1100px; }
.contact-inner--single .contact-left { max-width: 820px; }
/* contact card spans the full content width like the project card; intro text stays readable */
.contact-inner--single .contact-left { max-width: none; }
.contact-inner--single .contact-left > p { max-width: 820px; }
.contact-inner--single .company-data { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); padding: 2.5rem 3rem; }
@media (max-width: 760px) { .contact-inner--single .company-data { grid-template-columns: 1fr; padding: 1.5rem; } }

/* Manifesto: use the full content width like other sections.
   Quote spans the width; body text in two columns so lines stay readable. */
.vision-inner { max-width: 1100px; }
.vision-quote { max-width: none; }
.vision-body { max-width: none; column-count: 2; column-gap: 3rem; font-size: 15px; }
@media (max-width: 900px) { .vision-body { column-count: 1; font-size: 14px; } }
.vision-body { column-count: 1; font-size: 16px; line-height: 1.85; }
@media (max-width: 900px) { .vision-body { font-size: 14px; } }
@media (max-width: 900px) { .page p, .page li { font-size: 15px; } .page .lead { font-size: 19px; } }
.nowrap { white-space: nowrap; }
@media (max-width: 900px) { .fe-info dd { font-size: 15px; } }
