/* ------------------------------------------------------------------
   style.css — opticsfoundry.com (2026 design)
   ------------------------------------------------------------------ */
:root {
  --blue: #1e68cb;
  --blue-dark: #144587;
  --navy: #0a2344;
  --ink: #1b2430;
  --text: #3a4452;
  --muted: #6b7684;
  --line: #e3e8ee;
  --grey: #f4f6f9;
  --display: "Barlow Condensed", "DIN Condensed", "Arial Narrow", sans-serif;
  --body: "Open Sans", Helvetica, Arial, sans-serif;
  --wrap: 1180px;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.65 var(--body); color: var(--text); background: #fff; overflow-x: clip; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.08; color: var(--navy); margin: 0 0 .4em; letter-spacing: -.005em; }
h1 { font-size: clamp(36px, 5vw, 56px); }
h2 { font-size: clamp(32px, 4vw, 46px); }
h3 { font-size: 24px; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.section { padding: 72px 0; }
.section-grey { background: var(--grey); }
.section-navy { background: var(--navy); color: #d9e2ef; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy a { color: #9cc5ff; }
.kicker { font: 600 13px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 12px; display: block; }
.section-navy .kicker { color: #9cc5ff; }
.lead { font-size: 18px; max-width: 720px; color: var(--text); }
.section-navy .lead { color: #d9e2ef; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: #fff; padding: 8px; z-index: 30; }
.small { font-size: 14px; color: var(--muted); }
.section-navy .small { color: #b9c7d9; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.brand .mark { width: 34px; height: 34px; fill: var(--blue); flex: none; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font: italic 400 28px/1 "Jockey One", var(--display); color: var(--blue); letter-spacing: -.01em; }
.brand-tag { background: var(--blue); color: #fff; font-size: 11px; line-height: 1.5; padding: 0 6px; margin-top: 2px; }
.site-nav ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; align-items: center; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; }
.site-nav a:hover { color: var(--blue); }
.site-nav .btn { padding: 8px 18px; font-size: 14px; color: #fff; }
.site-nav .btn:hover { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn { display: inline-block; background: var(--blue); color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; padding: 12px 26px; border-radius: 999px; border: 2px solid var(--blue); transition: background .15s, border-color .15s, color .15s; }
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn-ghost { background: transparent; color: var(--blue); }
.btn-ghost:hover { background: var(--blue); color: #fff; }
.btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.btn-light:hover { background: #e9f0fb; border-color: #e9f0fb; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, #f7f9fc 0%, #fff 100%); border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.hero h1 { font-size: clamp(42px, 5.6vw, 72px); color: var(--navy); margin-bottom: 18px; }
.hero h1 em { font-style: italic; color: var(--blue); }
.hero .lead { font-size: 19px; }
.hero-figure { position: relative; margin: 0; }
.hero-figure img { border-radius: var(--radius); box-shadow: 0 30px 60px -30px rgba(10,35,68,.45); }
.hero-figure figcaption { position: absolute; left: 16px; bottom: 16px; background: rgba(10,35,68,.82); color: #fff; font-size: 13px; padding: 6px 12px; border-radius: 999px; }
.hero-figure figcaption a { color: #fff; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 28px; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.hero-facts li::before { content: "\2713"; color: var(--blue); font-weight: 700; margin-right: 6px; }

/* ---------- Trust strip ---------- */
.trust { padding: 22px 0; border-bottom: 1px solid var(--line); }
.trust .wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px; font-size: 14px; color: var(--muted); }
.trust strong { color: var(--ink); font-weight: 600; }

/* ---------- Problem / solution ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 36px; }
.compare > div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.compare .pane-body { padding: 24px 26px 26px; }
.compare h3 { margin-bottom: 8px; }
.compare img, .compare video { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; background: #000; }
.compare .pane-label { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--muted); margin-bottom: 4px; display: block; }
.compare .pane-label.good { color: var(--blue); }

/* ---------- Cards (what you get) ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; margin: 36px 0 0; padding: 0; list-style: none; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.section-grey .card { border-color: transparent; }
.card .num { font: 700 14px/1 var(--display); color: var(--blue); letter-spacing: .1em; margin-bottom: 14px; display: block; }
.card h3 { font-size: 23px; margin-bottom: 6px; }
.card p { margin: 0; font-size: 15px; }

/* ---------- Platform specs ---------- */
.spec-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; margin-top: 36px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.spec-table th, .spec-table td { text-align: left; vertical-align: top; padding: 12px 0; border-bottom: 1px solid var(--line); }
.spec-table th { font-weight: 600; color: var(--ink); width: 34%; padding-right: 16px; }
.section-navy .spec-table th, .section-navy .spec-table td { border-color: rgba(255,255,255,.14); }
.section-navy .spec-table th { color: #fff; }
.spec-note { margin-top: 16px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0 0 28px; padding: 0; list-style: none; }
.stat { background: rgba(255,255,255,.07); border-radius: var(--radius); padding: 18px 16px; }
.stat b { display: block; font: 600 40px/1 var(--display); color: #fff; }
.stat span { font-size: 13px; color: #b9c7d9; }
.gallery-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.gallery-2 figure { margin: 0; }
.gallery-2 img { border-radius: 10px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.gallery-2 figcaption { font-size: 13px; color: #b9c7d9; margin-top: 8px; }

/* ---------- Process timeline ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 36px 0 0; padding: 0; list-style: none; position: relative; }
.steps li { position: relative; padding-top: 18px; }
.steps li::before { counter-increment: step; content: counter(step, decimal-leading-zero); font: 700 14px/1 var(--display); color: var(--blue); letter-spacing: .1em; position: absolute; top: 0; left: 0; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--line); }
.steps h3 { font-size: 22px; margin: 10px 0 6px; }
.steps p { font-size: 15px; margin: 0; }
.steps .when { display: block; font-size: 13px; color: var(--muted); margin-top: 8px; }

/* ---------- Board gallery (home and /all-products) ---------- */
.boards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px; margin: 36px 0 0; padding: 0; list-style: none; }
.boards a { display: block; text-decoration: none; color: inherit; }
.boards img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; transition: transform .25s; }
.boards a:hover img { transform: translateY(-3px); }
.boards .b-title { display: block; font: 600 20px/1.2 var(--display); color: var(--navy); margin-top: 12px; }
.boards .b-sub { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }
.schematic { margin: 40px auto 0; max-width: 720px; }
.schematic img { border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.schematic figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; }

/* ---------- Split sections (Studio, Electronics) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.split img { border-radius: var(--radius); box-shadow: 0 30px 60px -30px rgba(10,35,68,.45); }
.split ul { padding-left: 20px; margin: 0 0 1em; }
.split li { margin-bottom: 6px; }
.badge { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; background: #fff0eb; color: #b3401c; margin-left: 10px; vertical-align: middle; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 28px auto 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; font: 600 20px/1.3 var(--display); color: var(--navy); padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--blue); font-weight: 400; font-size: 26px; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin: 0 0 16px; font-size: 15px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.founders { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.founders figure { margin: 0; text-align: center; }
.founders img { width: 100%; max-width: 220px; aspect-ratio: 1; object-fit: cover; border-radius: 50%; margin: 0 auto 12px; box-shadow: 0 16px 32px -18px rgba(10,35,68,.5); }
.founders figcaption { font-size: 14px; color: var(--muted); }
.founders b { display: block; color: var(--ink); font-family: var(--display); font-weight: 600; font-size: 21px; }

/* ---------- Careers band, contact ---------- */
.band-cta { background: var(--blue); color: #fff; }
.band-cta .wrap { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding-top: 48px; padding-bottom: 48px; }
.band-cta h2 { color: #fff; margin-bottom: 6px; }
.band-cta p { margin: 0; color: #e3eefc; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 36px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.contact-card h3 { font-size: 22px; }
.contact-card p { font-size: 15px; }

/* ---------- Inner pages: /all-products, product pages, 404 ---------- */
.page-intro { padding-top: 48px; }
.breadcrumb { font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.breadcrumb a { color: var(--text); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.product { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
.gallery .main-img img { width: 100%; border-radius: var(--radius); background: var(--grey); }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.thumbs button { padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; background: none; cursor: pointer; width: 76px; }
.thumbs button[aria-current] { border-color: var(--blue); }
.thumbs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.product-info h1 { font-size: clamp(30px, 3.4vw, 42px); }
.product-info .btn { margin-top: 8px; }
.note { font-size: 13px; color: var(--muted); margin-top: 10px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #b9c7d9; font-size: 14px; }
.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding-top: 48px; padding-bottom: 36px; }
.site-footer h4 { font-size: 20px; color: #fff; margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: #d9e2ef; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand .mark { fill: #fff; }
.footer-tag { margin: 10px 0 0; max-width: 300px; }
.legal { border-top: 1px solid rgba(255,255,255,.12); padding: 16px 0; font-size: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .wrap, .spec-grid, .split, .about-grid, .contact-grid, .compare, .product { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .hero .wrap { padding-top: 40px; padding-bottom: 40px; gap: 32px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps::before { display: none; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .band-cta .wrap { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); padding: 12px 20px 20px; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: 14px; }
  .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
  .stat b { font-size: 30px; }
  .footer-cols { grid-template-columns: 1fr; }
  .brand-tag { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .boards img, .btn, .nav-toggle span { transition: none; }
}
