/* Big Ideas static site. Palette and type from the approved design brief. */
@font-face { font-family: "Outfit"; src: url("../assets/fonts/outfit-latin.woff2") format("woff2"); font-weight: 300 800; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../assets/fonts/plex-mono-400-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../assets/fonts/plex-mono-500-latin.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Kaushan Script"; src: url("../assets/fonts/kaushan-script-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --navy: #0b1a33; --navy-deep: #07122a; --navy-raised: #10254a;
  --ink: #f4f6fb; --ink-muted: #a9b7cf; --hair: rgba(169,183,207,.18);
  --cyan: #29abe2; --blue: #0c72ba; --orange: #f48220; --yellow: #fee600; --magenta: #e90e8b; --purple: #9e2064;
  --sans: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --container: 1200px; --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.22,.61,.36,1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--navy); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.55; overflow-x: hidden; }
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: var(--cyan); text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--cyan); color: var(--navy-deep); padding: 8px 12px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }

/* Type */
.display { font-weight: 700; font-size: clamp(34px, 4.1vw, 58px); line-height: 1.04; letter-spacing: -.02em; }
.display-2 { font-weight: 700; font-size: clamp(32px, 4.6vw, 58px); line-height: 1.04; letter-spacing: -.018em; }
h3 { font-weight: 600; font-size: clamp(20px, 2vw, 24px); line-height: 1.25; letter-spacing: -.01em; }
.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-muted); max-width: 52ch; }
.eyebrow { font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--cyan); box-shadow: 0 0 0 3px rgba(41,171,226,.18); }
.section-head { max-width: 860px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head .lead { margin-top: 16px; }

/* CTAs, each with its own identity */
.cta { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); }
.cta--nav { padding: 10px 18px; border: 1px solid var(--cyan); border-radius: 4px; position: relative; font-size: 15px; transition: background .25s var(--ease), color .25s var(--ease); }
.cta--nav::before, .cta--nav::after { content: ""; position: absolute; left: 8px; right: 8px; height: 3px; background: repeating-linear-gradient(90deg, var(--cyan) 0 4px, transparent 4px 8px); opacity: .7; }
.cta--nav::before { top: -6px; } .cta--nav::after { bottom: -6px; }
.cta--nav:hover { background: var(--cyan); color: var(--navy-deep); }
.cta--trace { position: relative; padding-right: 6px; font-size: 18px; }
.cta__trace { position: relative; width: 74px; height: 14px; }
.cta__trace::before { content: ""; position: absolute; left: 0; top: 6px; width: 40px; height: 2px; background: var(--cyan); transition: width .35s var(--ease); }
.cta__trace::after { content: ""; position: absolute; left: 40px; top: 2px; width: 8px; height: 8px; border: 2px solid var(--cyan); transform: rotate(45deg); transition: transform .35s var(--ease), left .35s var(--ease); }
.cta--trace:hover .cta__trace::before { width: 62px; }
.cta--trace:hover .cta__trace::after { left: 62px; transform: rotate(225deg); }
.cta--ghost { padding: 12px 18px; border: 1px solid var(--hair); border-radius: 999px; color: var(--ink-muted); font-size: 16px; transition: border-color .25s, color .25s; }
.cta--ghost:hover { border-color: var(--ink-muted); color: var(--ink); }
.cta--big { padding: 16px 26px; background: var(--cyan); color: var(--navy-deep); border-radius: 6px; font-size: clamp(18px, 2vw, 22px); font-weight: 700; box-shadow: 0 10px 40px rgba(41,171,226,.25); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.cta--big:hover { transform: translateY(-2px); box-shadow: 0 16px 50px rgba(41,171,226,.35); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(7,18,42,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--hair); }
.nav__row { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.brand__mark { width: 34px; height: auto; filter: drop-shadow(0 0 10px rgba(41,171,226,.35)); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__tag { font-family: "Kaushan Script", "Brush Script MT", cursive; font-weight: 400; font-size: 13px; letter-spacing: .01em; color: #daa520; margin-top: 4px; text-shadow: 0 0 10px rgba(218,165,32,.25); }
.footer .brand__mark { width: 30px; }
.nav__links { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 34px); }
.nav__links a:not(.cta) { color: var(--ink-muted); font-weight: 500; font-size: 16px; transition: color .2s; }
.nav__links a:not(.cta):hover { color: var(--ink); }
.nav__toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.nav__toggle span { display: block; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .3s, opacity .3s; }
@media (max-width: 820px) {
  .nav__toggle { display: block; }
  .nav__links { position: absolute; left: 0; right: 0; top: 66px; flex-direction: column; align-items: flex-start; padding: 18px var(--gutter) 24px; background: var(--navy-deep); border-bottom: 1px solid var(--hair); display: none; }
  .nav.is-open .nav__links { display: flex; }
  .nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* Highlights ticker: a slim scrolling strip of clickable key points between the nav and the film */
.ticker { position: relative; height: 42px; display: flex; align-items: center; overflow: hidden; background: var(--navy-raised); border-bottom: 1px solid var(--hair); }
.ticker::before, .ticker::after { content: ""; position: absolute; top: 0; bottom: 0; width: 64px; z-index: 1; pointer-events: none; }
.ticker::before { left: 0; background: linear-gradient(90deg, var(--navy-raised), transparent); }
.ticker::after { right: 0; background: linear-gradient(270deg, var(--navy-raised), transparent); }
.ticker__track { display: flex; align-items: center; white-space: nowrap; width: max-content; animation: ticker 70s linear infinite; will-change: transform; }
.ticker:hover .ticker__track, .ticker:focus-within .ticker__track { animation-play-state: paused; }
.ticker__item { flex: none; display: inline-flex; align-items: center; gap: 12px; padding: 0 30px; height: 42px; font-family: var(--mono); font-weight: 500; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); transition: color .2s; }
.ticker__item::before { content: ""; width: 6px; height: 6px; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.ticker__item:hover, .ticker__item:focus-visible { color: var(--ink); outline-offset: -3px; }
.ticker__item em { font-style: normal; color: var(--ink); }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (max-width: 640px) { .ticker__item { padding: 0 20px; font-size: 11.5px; } }

/* Hero: film band, copy on the ground below it, never over the film */
.hero { background: var(--navy-deep); padding: 0; }
.hero__band { position: relative; width: 100%; aspect-ratio: 1920 / 814; max-height: 68vh; overflow: hidden; background: #000; }
.hero__film { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 60%; will-change: transform; }
.hero__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.08); }
.hero__progress span { display: block; height: 100%; width: 0; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.hero__ground { display: grid; grid-template-columns: 1.9fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: end; padding: clamp(36px, 6vw, 80px) 0 clamp(48px, 7vw, 96px); background: var(--navy); }
.hero__ground .display { text-wrap: balance; }
@media (max-width: 900px) { .hero__ground .display br { display: none; } }
.hero__aside { border-left: 1px solid var(--hair); padding-left: clamp(18px, 3vw, 36px); }
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 26px; }
@media (max-width: 900px) { .hero__ground { grid-template-columns: 1fr; align-items: start; } .hero__aside { border-left: 0; padding-left: 0; border-top: 1px solid var(--hair); padding-top: 22px; } }

/* Sections */
section { padding: clamp(64px, 9vw, 128px) 0; }
.brain { background: var(--navy-deep); }
.brain__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.brain__figure img, .brain__figure video { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 45%; border-radius: 10px; border: 1px solid var(--hair); box-shadow: 0 30px 80px rgba(0,0,0,.45); background: #05101f; }
.brain__copy p:not(.eyebrow) { color: var(--ink-muted); margin-top: 18px; max-width: 50ch; }
.brain__copy .cta { margin-top: 28px; }
@media (max-width: 900px) { .brain__grid { grid-template-columns: 1fr; } }

/* Board with hotspots */
.board__stage { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--hair); box-shadow: 0 30px 90px rgba(0,0,0,.5); }
.board__img { width: 100%; height: auto; }
/* Hotspots: a square the size of the chip, tinted so the etched icon stays visible */
.hotspot { position: absolute; left: var(--x); top: var(--y); width: 7.2%; aspect-ratio: 1; transform: translate(-50%, -50%); border: 0; background: none; padding: 0; cursor: pointer; }
.hotspot span { position: absolute; inset: 0; border-radius: 10%; background: rgba(41,171,226,.22); border: 2px solid rgba(41,171,226,.9); box-shadow: 0 0 0 2px rgba(11,26,51,.6), 0 0 16px rgba(41,171,226,.55), inset 0 0 12px rgba(41,171,226,.35); mix-blend-mode: screen; transition: background .3s, border-color .3s, box-shadow .3s; }
.hotspot::before { content: ""; position: absolute; inset: 0; border-radius: 12%; border: 1.5px solid rgba(41,171,226,.75); animation: pulse 2.2s infinite; }
.hotspot:hover span, .hotspot.is-active span, .hotspot:focus-visible span { background: rgba(254,230,0,.24); border-color: rgba(254,230,0,.95); box-shadow: 0 0 0 2px rgba(11,26,51,.6), 0 0 20px rgba(254,230,0,.6), inset 0 0 12px rgba(254,230,0,.35); }
@keyframes pulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.7); opacity: 0; } }
@media (max-width: 640px) { .hotspot { width: 8.5%; } .hotspot span { border-width: 1.5px; } }

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 26px; }
.service { position: relative; padding: 26px 24px 24px; background: var(--navy-raised); border: 1px solid var(--hair); border-radius: 10px; transition: transform .35s var(--ease), border-color .35s, box-shadow .35s; }
.service::before { content: ""; position: absolute; left: 24px; right: 24px; top: 0; height: 2px; background: var(--cyan); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.service:hover, .service.is-active { transform: translateY(-4px); border-color: rgba(41,171,226,.55); box-shadow: 0 18px 50px rgba(0,0,0,.4); }
.service:hover::before, .service.is-active::before { transform: scaleX(1); }
.service__icon { width: 56px; height: 56px; margin-bottom: 16px; }
.service h3 { margin-bottom: 10px; }
.service > p:not(.eyebrow) { color: var(--ink-muted); font-size: 16px; }
.service__points { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--hair); font-family: var(--mono); font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-muted); display: grid; gap: 8px; }
.service__points li { display: flex; gap: 10px; align-items: baseline; }
.service__points li::before { content: ""; width: 6px; height: 6px; background: var(--cyan); flex: none; transform: translateY(-2px); }
@media (max-width: 960px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services { grid-template-columns: 1fr; } }

/* Printing */
.printing { background: var(--navy-deep); }
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.product { background: var(--navy-raised); border: 1px solid var(--hair); border-radius: 10px; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s; }
.product:hover { transform: translateY(-4px); box-shadow: 0 18px 50px rgba(0,0,0,.4); }
.product img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.product h3 { padding: 18px 20px 4px; }
.product p { padding: 0 20px 20px; color: var(--ink-muted); font-size: 15.5px; }
.capabilities { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; }
@media (max-width: 960px) { .capabilities { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .capabilities { grid-template-columns: 1fr; } }
.printing__more { margin-top: 34px; color: var(--ink-muted); display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; }
@media (max-width: 960px) { .products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .products { grid-template-columns: 1fr; } }

/* How it starts */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding-top: 34px; }
.steps__trace { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 8px; }
.steps__trace path { fill: none; stroke: var(--cyan); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .steps.in .steps__trace path { animation: draw 1.6s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.step { position: relative; padding-top: 8px; }
.step::before { content: ""; position: absolute; left: 0; top: -38px; width: 10px; height: 10px; background: var(--navy); border: 2px solid var(--cyan); }
.step__num { font-family: var(--mono); font-weight: 500; color: var(--cyan); font-size: 13px; letter-spacing: .14em; display: block; margin-bottom: 12px; }
.step h3 { margin-bottom: 10px; }
.step p { color: var(--ink-muted); font-size: 16px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; padding-top: 0; } .steps__trace { display: none; } .step::before { display: none; } .step { padding-left: 0; border-top: 1px solid var(--hair); padding-top: 20px; } }

/* About */
.about { background: var(--navy-deep); }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.about__copy p:not(.eyebrow) { color: var(--ink-muted); margin-top: 18px; max-width: 52ch; }
.about__figure img, .about__figure video { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 40%; border-radius: 10px; border: 1px solid var(--hair); box-shadow: 0 30px 80px rgba(0,0,0,.45); background: #05101f; }
@media (max-width: 900px) { .about__grid { grid-template-columns: 1fr; } .about__figure { order: -1; } }

/* FAQ */
.faq__grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(24px, 5vw, 72px); align-items: start; }
.faq details { border-top: 1px solid var(--hair); }
.faq details:last-child { border-bottom: 1px solid var(--hair); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 44px 20px 0; font-weight: 600; font-size: 19px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan); transform: translateY(-70%) rotate(45deg); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details p { color: var(--ink-muted); padding: 0 0 22px; max-width: 60ch; }
@media (max-width: 800px) { .faq__grid { grid-template-columns: 1fr; } }

/* Contact */
.contact { background: var(--navy-deep); }
.contact__box { position: relative; padding: clamp(36px, 6vw, 72px); border: 1px solid var(--hair); border-radius: 14px; background: linear-gradient(180deg, var(--navy-raised), var(--navy)); overflow: hidden; }
.contact__box::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 100% 0%, rgba(41,171,226,.14), transparent 60%); pointer-events: none; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin-top: 30px; }
.contact__note { margin-top: 22px; color: var(--ink-muted); font-family: var(--mono); font-size: 13px; letter-spacing: .06em; }

/* Footer */
.footer { background: var(--navy-deep); border-top: 1px solid var(--hair); }
.footer__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 30px 0; color: var(--ink-muted); font-size: 15px; }
.footer__line a { color: var(--ink-muted); } .footer__line a:hover { color: var(--ink); }
.footer__place { color: rgba(169,183,207,.7); font-size: 14px; }
.footer__edge { height: 14px; background: repeating-linear-gradient(90deg, var(--navy-raised) 0 22px, var(--navy-deep) 22px 30px); border-top: 1px solid var(--hair); }

/* Reveals: transform and opacity, only when JS is present, never blocking */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .services .reveal:nth-child(2) { transition-delay: .08s; } .js .services .reveal:nth-child(3) { transition-delay: .16s; }
.js .services .reveal:nth-child(4) { transition-delay: .24s; } .js .services .reveal:nth-child(5) { transition-delay: .32s; } .js .services .reveal:nth-child(6) { transition-delay: .4s; }
.js .products .reveal:nth-child(2) { transition-delay: .08s; } .js .products .reveal:nth-child(3) { transition-delay: .16s; } .js .products .reveal:nth-child(4) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hotspot::before { animation: none; }
  .js .steps.in .steps__trace path { animation: none; stroke-dashoffset: 0; }
  .hero__film { transform: none !important; }
  .ticker__track { animation: none; }
  .ticker { overflow-x: auto; }
}
