:root {
  --navy-900: #07122a;
  --navy-800: #0b1a33;
  --navy-700: #162b4a;
  --navy-600: #223d66;
  --accent: #19b8e0;
  --accent-strong: #0e9cc0;
  --accent-soft: rgba(25, 184, 224, 0.14);
  --ink: #0f172a;
  --ink-soft: #475569;
  --ink-muted: #64748b;
  --line: #e2e8f0;
  --surface: #ffffff;
  --surface-alt: #f4f7fb;
  --mast-line: rgba(255, 255, 255, 0.32);
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 20px 50px -20px rgba(7, 18, 42, 0.35);
  --font-head: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --container: 1180px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 600; }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 1em; }
figure { margin: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.eyebrow {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 0.9rem;
}
.eyebrow-light { color: var(--accent); }
.lead { font-size: clamp(1.1rem, 1.8vw, 1.35rem); color: rgba(255,255,255,0.85); max-width: 36ch; }
.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head--light { color: #fff; }
.section-intro { color: var(--ink-soft); font-size: 1.08rem; }
.section-head--light .section-intro { color: rgba(255,255,255,0.72); }
.icon { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.9rem 1.6rem; border-radius: 999px; font-weight: 600; font-size: 0.98rem;
  border: 1.5px solid transparent; cursor: pointer; transition: transform .2s, background .2s, border-color .2s, box-shadow .2s;
  font-family: var(--font-body);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--navy-900); box-shadow: 0 10px 30px -10px rgba(25,184,224,.7); }
.btn-primary:hover { background: #2fc8ee; }
.btn-ghost { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.35); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,0.16); }
.btn-sm { padding: 0.6rem 1.15rem; font-size: 0.9rem; }
.btn-block { width: 100%; }

/* Skip link */
.skip-link { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--navy-900); padding: .6rem 1rem; z-index: 100; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 18, 42, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: #fff;
  transition: background .3s;
}
.site-header.scrolled { background: rgba(7, 18, 42, 0.92); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 2rem; }
.brand { display: flex; align-items: center; }
.brand-lockup { height: 46px; width: auto; display: block; }
.nav { display: flex; gap: 1.8rem; margin-left: auto; }
.nav a { font-weight: 500; font-size: 0.95rem; color: rgba(255,255,255,0.82); position: relative; padding: .35rem 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.nav a:hover { color: #fff; }
.header-actions { display: flex; align-items: center; gap: 1rem; }
.lang-switch { display: inline-flex; border: 1px solid rgba(255,255,255,0.25); border-radius: 999px; padding: 3px; }
.lang-switch button {
  background: none; border: 0; color: rgba(255,255,255,0.7); font: 600 0.8rem var(--font-body);
  padding: 0.3rem 0.7rem; border-radius: 999px; cursor: pointer; letter-spacing: .05em;
}
.lang-switch button[aria-pressed="true"] { background: #fff; color: var(--navy-800); }
.menu-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; align-items: center; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: #fff; transition: transform .25s, opacity .25s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero with layered parallax ---------- */
.hero {
  position: relative; color: #fff; min-height: max(640px, min(100svh, 920px));
  display: flex; flex-direction: column; justify-content: center; overflow: hidden; background: var(--navy-900);
  margin-top: calc(-1 * var(--header-h)); padding-top: var(--header-h);
  isolation: isolate;
}
.hero-layer { position: absolute; inset: 0; will-change: transform; pointer-events: none; }
.hero-photo { inset: -12% 0 -12% 0; }
.hero-photo picture, .hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(7,18,42,0.90) 0%, rgba(7,18,42,0.62) 45%, rgba(7,18,42,0.28) 100%),
    linear-gradient(180deg, rgba(7,18,42,0.35) 0%, rgba(7,18,42,0) 40%, rgba(7,18,42,0.88) 100%);
}
.hero-content { position: relative; z-index: 3; padding: clamp(5rem, 12vw, 9rem) 0 3rem; max-width: 760px; }
.hero-content h1 { max-width: 14ch; text-wrap: balance; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }
.hero-stats {
  position: relative; z-index: 3; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
  margin-top: auto; padding-bottom: 2.5rem; padding-top: 2rem;
}
.stat { border-left: 2px solid var(--accent); padding-left: 1rem; }
.stat strong { display: block; font-family: var(--font-head); font-size: 1.15rem; }
.stat span { font-size: 0.85rem; color: rgba(255,255,255,0.7); }

/* Reveal on scroll (main.js adds .in) */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.about-text p { color: var(--ink-soft); }
.about-text h2 { max-width: 20ch; }
.about-media { position: relative; }
.about-media img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.about-badge {
  position: absolute; left: -1.25rem; bottom: 1.5rem; display: flex; align-items: center; gap: .75rem;
  background: var(--navy-800); color: #fff; padding: .7rem 1.1rem .7rem .8rem; border-radius: 12px;
  box-shadow: 0 16px 34px -14px rgba(7,18,42,.55); font-family: var(--font-head); font-weight: 600; font-size: .95rem;
}
.about-badge img { width: 32px; height: 32px; }

/* ---------- The Mast section ---------- */
.mast-section {
  background: radial-gradient(1200px 600px at 20% 0%, #13294a 0%, var(--navy-800) 45%, var(--navy-900) 100%);
  color: #fff;
  position: relative;
}
.mast-hint { display: inline-flex; align-items: center; gap: .5rem; color: rgba(255,255,255,0.55); font-size: .85rem; margin: .25rem 0 0; }
.mast-hint .icon { width: 18px; height: 18px; animation: hintBob 2.2s ease-in-out infinite; }
@keyframes hintBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

.mast-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  column-gap: clamp(3rem, 7vw, 7rem);
  align-items: start;
  position: relative;
}
.mast-stage {
  position: sticky;
  top: calc(var(--header-h) + 1.25rem);
  height: calc(100vh - var(--header-h) - 2.5rem);
  min-height: 520px;
  color: var(--mast-line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 48px);
  border: 1px solid rgba(255,255,255,0.08);
}
.mast-svg { width: 100%; height: 100%; display: block; overflow: visible; }

/* Connector overlay spans the whole layout; drawn in px by a-mast.js */
.mast-links { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 2; }
.mast-link-path { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linejoin: round; opacity: 0; transition: opacity .35s; }
.mast-link-dot { fill: var(--navy-900); stroke: var(--accent); stroke-width: 2; opacity: 0; transition: opacity .35s; }
.mast-link-end { fill: var(--accent); opacity: 0; transition: opacity .35s; }
.mast-layout.linked .mast-link-path, .mast-layout.linked .mast-link-dot, .mast-layout.linked .mast-link-end { opacity: 1; }

/* Mast drawing — every element uses currentColor; each zone reads its colour from a custom property
   so the same <symbol> can be lit differently in the stage and in the mobile mini-masts. */
.mz { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; color: var(--mast-line); transition: color .55s ease, filter .55s ease; }
.mz .leg { stroke-width: 3; }
.mz .mem { stroke-width: 1.6; }
.mz .br { stroke-width: 1; opacity: .8; }
.mz .pole { stroke-width: 3; }
.mz .rod { stroke-width: 1.5; }
.mz .eq { stroke-width: 1.8; fill: currentColor; fill-opacity: .16; }
.mz .plate { stroke-width: 1.2; fill: currentColor; fill-opacity: .4; }
.mz .node { fill: currentColor; stroke: none; }
.mz .lamp { fill: currentColor; stroke: none; }
.mz .ladder { stroke-width: 1.4; }
.mz .rung { stroke-width: 1; }
.mz .jump { stroke-width: 1.3; }
.mz .post { stroke-width: 1.2; }
.mz .rail { stroke-width: 1; }
.mz .feed { stroke-width: 1.6; }
.mz .ground { stroke-width: 2.4; }
.mz .sig { stroke-width: 1.6; fill: none; opacity: 0; animation: sigPulse 2.4s ease-out infinite; animation-play-state: paused; }
.mz .sig:nth-of-type(2), .mz2 .sig:nth-of-type(2) { animation-delay: .4s; }
.mz .sig:nth-of-type(3), .mz2 .sig:nth-of-type(3) { animation-delay: .8s; }
@keyframes sigPulse { 0% { opacity: 0; } 30% { opacity: .95; } 100% { opacity: 0; } }

.mz1 { color: var(--mz1-c, var(--mast-line)); filter: var(--mz1-f, none); }
.mz2 { color: var(--mz2-c, var(--mast-line)); filter: var(--mz2-f, none); }
.mz3 { color: var(--mz3-c, var(--mast-line)); filter: var(--mz3-f, none); }
.mz4 { color: var(--mz4-c, var(--mast-line)); filter: var(--mz4-f, none); }
.mz5 { color: var(--mz5-c, var(--mast-line)); filter: var(--mz5-f, none); }
.mz6 { color: var(--mz6-c, var(--mast-line)); filter: var(--mz6-f, none); }
.mz1 .sig { animation-play-state: var(--mz1-p, paused); }
.mz2 .sig { animation-play-state: var(--mz2-p, paused); }

/* The lit state: accent colour + soft glow + running signal */
.mast-stage[data-active="1"], .zone-mini[data-zone="1"] { --mz1-c: var(--accent); --mz1-f: drop-shadow(0 0 6px rgba(25,184,224,.75)); --mz1-p: running; --mz1-s: 1; }
.mast-stage[data-active="2"], .zone-mini[data-zone="2"] { --mz2-c: var(--accent); --mz2-f: drop-shadow(0 0 6px rgba(25,184,224,.75)); --mz2-p: running; --mz2-s: 1; }
.mast-stage[data-active="3"], .zone-mini[data-zone="3"] { --mz3-c: var(--accent); --mz3-f: drop-shadow(0 0 6px rgba(25,184,224,.75)); }
.mast-stage[data-active="4"], .zone-mini[data-zone="4"] { --mz4-c: var(--accent); --mz4-f: drop-shadow(0 0 6px rgba(25,184,224,.75)); }
.mast-stage[data-active="5"], .zone-mini[data-zone="5"] { --mz5-c: var(--accent); --mz5-f: drop-shadow(0 0 6px rgba(25,184,224,.75)); }
.mast-stage[data-active="6"], .zone-mini[data-zone="6"] { --mz6-c: var(--accent); --mz6-f: drop-shadow(0 0 6px rgba(25,184,224,.75)); }

/* Zone content column */
.zones { padding: 2vh 0 6vh; }
.zone {
  position: relative;
  min-height: 64vh;
  display: grid;
  align-content: center;
  padding: 2.5rem 0 2.5rem 2rem;
  border-left: 1px solid rgba(255,255,255,0.12);
  transition: opacity .5s ease, border-color .5s ease;
}
.zone:first-child { min-height: 56vh; }
.zone:last-child { min-height: 70vh; }
.mast-section.js .zone { opacity: .42; }
.mast-section.js .zone.is-active { opacity: 1; border-left-color: var(--accent); }
.zone-mini { display: none; }
.zone-label { display: flex; align-items: center; gap: .75rem; font-family: var(--font-head); font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 .9rem; }
.zone-num { font-variant-numeric: tabular-nums; color: rgba(255,255,255,0.55); }
.zone-group { display: inline-flex; align-items: center; margin: 0 0 .8rem; padding: .3rem .75rem; border-radius: 999px; font-size: .78rem; font-weight: 500; color: rgba(255,255,255,0.78); background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); width: fit-content; }
.zone h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); max-width: 22ch; }
.zone h3.zone-second { margin-top: 1.4rem; }
.zone p { color: rgba(255,255,255,0.74); max-width: 58ch; }
.zone-note { font-size: .96rem; color: rgba(255,255,255,0.6); }
.zone-media { margin-top: 1.2rem; max-width: 560px; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid rgba(255,255,255,0.1); }
.zone-media img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }

/* ---------- Why Qualcom ---------- */
.why { background: var(--surface-alt); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.why-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem 1.5rem; box-shadow: 0 12px 30px -24px rgba(7,18,42,.4); }
.why-item .icon { color: var(--accent-strong); width: 30px; height: 30px; margin-bottom: 1rem; }
.why-item h3 { font-size: 1.1rem; }
.why-item p { color: var(--ink-soft); font-size: .98rem; margin: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.contact-list { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.2rem; }
.contact-list li { display: flex; gap: .9rem; align-items: flex-start; }
.contact-list .icon { color: var(--accent-strong); margin-top: 2px; }
.contact-list li div { display: flex; flex-direction: column; }
.contact-list li span:first-child { font-size: .8rem; color: var(--ink-muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.contact-list a:hover { color: var(--accent-strong); }
.contact-form { background: var(--surface-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2.25rem); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form label { display: block; margin-bottom: 1rem; font-size: .9rem; font-weight: 500; }
.contact-form label > span { display: block; margin-bottom: .35rem; color: var(--ink-soft); }
.contact-form label:has(input[required]) > span::after { content: " *"; color: var(--accent-strong); }
.contact-form input, .contact-form textarea {
  width: 100%; border: 1px solid #cbd5e1; border-radius: var(--radius-sm); padding: .8rem .9rem; font: 1rem var(--font-body); color: var(--ink); background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.contact-form textarea { resize: vertical; min-height: 130px; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.form-note { font-size: .82rem; color: var(--ink-muted); }
.form-status { margin: .9rem 0 0; font-size: .92rem; min-height: 1.4em; }
.form-status.ok { color: #0f7a4f; }
.form-status.err { color: #b42318; }
.contact-form.busy button { opacity: .7; pointer-events: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,0.8); font-size: .92rem; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding: 3.5rem 0 2rem; }
.footer-brand { display: grid; gap: .8rem; }
.footer-lockup { height: 44px; width: auto; }
.footer-brand strong { color: #fff; font-family: var(--font-head); }
.footer-brand p { margin: .2rem 0 0; color: rgba(255,255,255,0.65); }
.footer-details p { margin: 0 0 .35rem; }
.footer-links { display: grid; gap: .5rem; align-content: start; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.2rem 0 2rem; border-top: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.55); font-size: .85rem; }
.footer-bottom p { margin: 0; }
.to-top:hover { color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .mast-layout { grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); column-gap: 2.5rem; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 800px) {
  :root { --header-h: 64px; }
  .brand-lockup { height: 38px; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; background: rgba(7,18,42,0.98); padding: .5rem 1.25rem 1rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .nav.open { display: flex; }
  .nav a { padding: .8rem 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav a::after { display: none; }
  .header-cta { display: none; }
  .menu-toggle { display: flex; }
  .header-inner { gap: 1rem; }

  .hero { min-height: max(560px, min(92svh, 760px)); }
  .hero-stats { grid-template-columns: 1fr; gap: .9rem; }

  .about-grid { grid-template-columns: 1fr; }
  .about-media { order: -1; }
  .about-badge { left: 1rem; bottom: 1rem; }

  /* Mobile fallback: sticky stage and connector disappear; each zone carries a small mast with its own zone lit */
  .mast-stage, .mast-links { display: none; }
  .mast-layout { display: block; }
  .mast-section.js .zone { opacity: 1; }
  .zone { min-height: 0; grid-template-columns: 56px minmax(0, 1fr); column-gap: 1rem; align-items: start; padding: 1.75rem 0; border-left: 0; border-top: 1px solid rgba(255,255,255,0.1); }
  .zone:first-child, .zone:last-child { min-height: 0; }
  .zone-mini { display: block; width: 56px; height: 232px; color: var(--mast-line); position: sticky; top: calc(var(--header-h) + 1rem); }
  .zone-body { min-width: 0; }
  .zone h3 { font-size: 1.25rem; }
  .zone-media { max-width: none; }

  .why-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .zone { grid-template-columns: 44px minmax(0, 1fr); column-gap: .75rem; }
  .zone-mini { width: 44px; height: 184px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero-layer { transform: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .mast-hint .icon { animation: none; }
  .mz { transition: none; }
  .mz .sig { animation: none; }
  .mz1 .sig { opacity: var(--mz1-s, 0); }
  .mz2 .sig { opacity: var(--mz2-s, 0); }
  .mast-link-path, .mast-link-dot, .mast-link-end, .zone { transition: none; }
}

/* Cloudflare Turnstile */
.turnstile-wrap { margin: 0.25rem 0 1rem; min-height: 65px; }
.turnstile-wrap .cf-turnstile { width: 100%; }
