@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500&family=DM+Sans:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@500;600;700;800&family=JetBrains+Mono:wght@500;600&family=Inter:wght@400;500;600;700&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }
* { scrollbar-width: thin; scrollbar-color: #cbd5e1 transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 999px; }
*::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
::selection { background: var(--primary); color: var(--on-primary); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ===================== Theme palettes ===================== */
:root {
  --primary: #f97316;
  --primary-dark: #c2570c;
  --primary-light: #fdeee0;
  --accent: #38bdf8;
  --accent-light: #e0f3fd;
  --bg: #f5f6f8;
  --bg-alt: #e9ebef;
  --surface: #ffffff;
  --soft: #e2e5ea;
  --border: #d4d8df;
  --ink: #15181f;
  --ink-soft: #4d5564;
  --ink-faint: #8b93a3;
  --on-primary: #ffffff;
  --font-head: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --radius: 8px;
  --radius-lg: 14px;
  --radius-pill: 999px;
  --hero-gradient: linear-gradient(140deg, #0d1017 0%, #1c2433 55%, #3a2410 100%);
  --hero-overlay: linear-gradient(180deg, rgba(13,16,23,0.35) 0%, rgba(13,16,23,0.68) 100%);
  --hero-text: #f5f7fb;
  --shadow-sm: 0 1px 3px rgba(21,24,31,0.07), 0 4px 12px rgba(21,24,31,0.05);
  --shadow-md: 0 4px 16px rgba(21,24,31,0.09), 0 10px 26px rgba(21,24,31,0.06);
  --shadow-lg: 0 14px 36px rgba(21,24,31,0.15), 0 22px 52px rgba(21,24,31,0.09);
  --muted: var(--ink-soft);
  --footer-bg: #0d1017;
  --footer-fg: #a6adba;
  --footer-head: #f5f7fb;
}
html[data-theme="forge"] {
  --primary: #f97316;
  --primary-dark: #c2570c;
  --primary-light: #fdeee0;
  --accent: #38bdf8;
  --accent-light: #e0f3fd;
  --bg: #f5f6f8;
  --bg-alt: #e9ebef;
  --surface: #ffffff;
  --soft: #e2e5ea;
  --border: #d4d8df;
  --ink: #15181f;
  --ink-soft: #4d5564;
  --ink-faint: #8b93a3;
  --on-primary: #ffffff;
  --font-head: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --radius: 8px;
  --radius-lg: 14px;
  --radius-pill: 999px;
  --hero-gradient: linear-gradient(140deg, #0d1017 0%, #1c2433 55%, #3a2410 100%);
  --hero-overlay: linear-gradient(180deg, rgba(13,16,23,0.35) 0%, rgba(13,16,23,0.68) 100%);
  --hero-text: #f5f7fb;
  --shadow-sm: 0 1px 3px rgba(21,24,31,0.07), 0 4px 12px rgba(21,24,31,0.05);
  --shadow-md: 0 4px 16px rgba(21,24,31,0.09), 0 10px 26px rgba(21,24,31,0.06);
  --shadow-lg: 0 14px 36px rgba(21,24,31,0.15), 0 22px 52px rgba(21,24,31,0.09);
  --muted: var(--ink-soft);
  --footer-bg: #0d1017;
  --footer-fg: #a6adba;
  --footer-head: #f5f7fb;
}
html[data-theme="foundry"] {
  --primary: #9a3324;
  --primary-dark: #7a271c;
  --primary-light: #f7e4de;
  --accent: #a4762a;
  --accent-light: #f5ead4;
  --bg: #faf5ec;
  --bg-alt: #f2e9da;
  --surface: #fffdf7;
  --soft: #ece1cc;
  --border: #e0d2b6;
  --ink: #2a1e18;
  --ink-soft: #6d594b;
  --ink-faint: #a08a74;
  --on-primary: #fdf6ee;
  --font-head: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --radius: 10px;
  --radius-lg: 18px;
  --radius-pill: 999px;
  --hero-gradient: linear-gradient(155deg, #2e1410 0%, #7a271c 55%, #9a3324 100%);
  --hero-overlay: linear-gradient(180deg, rgba(46,20,16,0.28) 0%, rgba(46,20,16,0.6) 100%);
  --hero-text: #faf0e6;
  --shadow-sm: 0 1px 3px rgba(42,30,24,0.07), 0 4px 12px rgba(42,30,24,0.05);
  --shadow-md: 0 4px 16px rgba(42,30,24,0.09), 0 10px 26px rgba(42,30,24,0.06);
  --shadow-lg: 0 14px 36px rgba(42,30,24,0.14), 0 22px 52px rgba(42,30,24,0.09);
  --muted: var(--ink-soft);
  --footer-bg: #2e1410;
  --footer-fg: #d9c3ad;
  --footer-head: #faf0e6;
}
html[data-theme="circuit"] {
  --primary: #22d3ee;
  --primary-dark: #0ea5c4;
  --primary-light: #0b2a33;
  --accent: #a3e635;
  --accent-light: #1d2a12;
  --bg: #0b0e14;
  --bg-alt: #10141d;
  --surface: #151a25;
  --soft: #1e2532;
  --border: #2a3242;
  --ink: #e6eaf2;
  --ink-soft: #a7b0c1;
  --ink-faint: #6d768a;
  --on-primary: #06131a;
  --font-head: 'Archivo', 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --radius: 4px;
  --radius-lg: 8px;
  --radius-pill: 999px;
  --hero-gradient: linear-gradient(165deg, #05070b 0%, #0b1620 55%, #122027 100%);
  --hero-overlay: linear-gradient(180deg, rgba(5,7,11,0.35) 0%, rgba(5,7,11,0.72) 100%);
  --hero-text: #eef2f7;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.5), 0 4px 12px rgba(0,0,0,0.4);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.5);
  --shadow-lg: 0 16px 44px rgba(0,0,0,0.62);
  --muted: var(--ink-soft);
  --footer-bg: #05070b;
  --footer-fg: #8d97a9;
  --footer-head: #eef2f7;
}

/* ===================== Base layout (templates-base) ===================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 24px; max-width: 1140px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-logo { height: 44px; width: auto; border-radius: var(--radius); }
.brand-name { font-family: var(--font-head); font-size: 1.28rem; font-weight: 700; letter-spacing: 0.01em; }
.nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav-link { color: var(--ink); font-weight: 600; font-size: 0.95rem; padding: 8px 14px; border-radius: var(--radius-pill); transition: color .15s ease, background .15s ease; }
.nav-link:hover { text-decoration: none; background: var(--soft); }
.nav-link.active { color: var(--primary); background: var(--soft); }
.nav-cta { background: var(--primary); color: var(--on-primary) !important; box-shadow: 0 4px 12px color-mix(in srgb, var(--primary) 35%, transparent); }
.nav-cta:hover { background: var(--primary-dark); transform: translateY(-1px); }
.nav-cta.active { background: var(--primary); color: var(--on-primary) !important; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 10px 8px; border-radius: 10px; }
.nav-toggle:hover { background: var(--soft); }
.nav-toggle span { display: block; width: 24px; height: 2.5px; border-radius: 999px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
.nav-toggle span + span { margin-top: 5px; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.hero { position: relative; padding: 104px 24px 112px; text-align: center; overflow: hidden; background: var(--hero-gradient); background-size: cover; background-position: center; }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--hero-overlay); }
.hero-content { position: relative; z-index: 2; max-width: 780px; margin: 0 auto; color: var(--hero-text); }
.hero h1 { font-family: var(--font-head); font-size: clamp(2.2rem, 5vw, 3.5rem); line-height: 1.08; margin-bottom: 14px; letter-spacing: -0.01em; }
.hero .tagline { font-size: clamp(1.05rem, 2vw, 1.3rem); opacity: .94; margin-bottom: 10px; font-style: italic; }
.hero .desc { max-width: 660px; margin: 0 auto 30px; font-size: 1.02rem; opacity: .9; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-cta { display: inline-block; background: var(--primary); color: var(--on-primary); padding: 14px 34px; border-radius: var(--radius-pill); font-weight: 700; font-size: 1.02rem; letter-spacing: 0.04em; box-shadow: 0 8px 24px color-mix(in srgb, var(--primary) 40%, transparent); transition: transform .15s ease, background .15s ease; }
.hero-cta:hover { background: var(--primary-dark); transform: translateY(-2px); text-decoration: none; color: var(--on-primary); }
.hero-cta-ghost { display: inline-block; background: rgba(255,255,255,.12); color: var(--hero-text); border: 1.5px solid rgba(255,255,255,.45); padding: 13px 30px; border-radius: var(--radius-pill); font-weight: 700; font-size: 1rem; transition: background .15s ease; }
.hero-cta-ghost:hover { background: rgba(255,255,255,.22); text-decoration: none; color: var(--hero-text); }

.hero-carousel { position: relative; overflow: hidden; }
.hero-carousel .hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.2s ease; }
.hero-carousel .hero-slide.active { opacity: 1; }
.hero-carousel .hero-dots { position: absolute; bottom: 22px; left: 0; right: 0; z-index: 3; display: flex; justify-content: center; gap: 8px; }
.hero-carousel .hero-dot { width: 10px; height: 10px; border-radius: 50%; border: none; padding: 0; background: rgba(255,255,255,0.5); cursor: pointer; transition: background .2s ease, transform .2s ease; }
.hero-carousel .hero-dot:hover { transform: scale(1.25); }
.hero-carousel .hero-dot.active { background: #fff; }

.page-hero { position: relative; padding: 62px 24px; text-align: center; overflow: hidden; background: var(--hero-gradient); background-size: cover; background-position: center; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: var(--hero-overlay); }
.page-hero .container { position: relative; z-index: 2; color: var(--hero-text); }
.page-hero h1 { font-family: var(--font-head); font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 10px; }
.page-hero .sub { font-size: 1.05rem; opacity: 0.92; max-width: 600px; margin: 0 auto; }
.crumbs { display: flex; justify-content: center; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 600; margin-bottom: 14px; opacity: 0.9; flex-wrap: wrap; }
.crumbs a { color: inherit; }
.crumbs a:hover { text-decoration: underline; }
.crumbs .sep { opacity: 0.55; font-weight: 400; }

.section { padding: 74px 24px; }
.section-alt { position: relative; overflow: hidden; background: var(--bg-alt); }
.section-alt::before, .section-alt::after { content: ""; position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; }
.section-alt::before { width: 420px; height: 420px; top: -140px; left: -120px; background: color-mix(in srgb, var(--primary) 12%, transparent); }
.section-alt::after { width: 360px; height: 360px; bottom: -120px; right: -110px; background: color-mix(in srgb, var(--accent) 18%, transparent); }
.section-alt .container { position: relative; z-index: 1; }

.section-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.section-head .eyebrow { display: inline-block; font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.18em; color: var(--primary); background: var(--surface); border: 1px solid var(--border); padding: 6px 16px; border-radius: var(--radius-pill); margin-bottom: 14px; }
.section-head h2 { font-family: var(--font-head); font-size: clamp(1.6rem, 3vw, 2.15rem); margin-bottom: 10px; }
.section-head p { color: var(--ink-soft); font-size: 1.03rem; }

.feature, .category-card, .product-card, .testimonial-card, .contact-card, .article-card, .capability-card, .infra-card, .cert-card {
  border-color: color-mix(in srgb, var(--border) 70%, transparent);
  box-shadow: var(--shadow-md);
}
.feature:hover, .category-card:hover, .product-card:hover, .testimonial-card:hover, .contact-card:hover, .article-card:hover, .capability-card:hover, .infra-card:hover, .cert-card:hover {
  border-color: color-mix(in srgb, var(--primary) 40%, transparent);
  box-shadow: var(--shadow-lg);
}

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px 24px; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature h3 { color: var(--primary); margin-bottom: 8px; font-family: var(--font-head); font-size: 1.08rem; }
.feature p { color: var(--ink-soft); font-size: 0.95rem; }
.feature-icon { width: 52px; height: 52px; display: grid; place-items: center; background: var(--soft); border-radius: 50%; margin-bottom: 14px; }
.feature-icon svg { width: 26px; height: 26px; color: var(--accent); }

.categories-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.category-card { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 16 / 9; background: var(--soft); transition: transform .18s ease, box-shadow .18s ease; }
.category-card:hover { transform: translateY(-5px); text-decoration: none; }
.category-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.category-card:hover img { transform: scale(1.05); }
.category-card .veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,12,16,0.06) 30%, rgba(10,12,16,0.76) 100%); }
.category-card .label { position: absolute; left: 22px; right: 22px; bottom: 18px; z-index: 2; color: #f5f7fa; }
.category-card .label h3 { font-family: var(--font-head); font-size: 1.4rem; margin-bottom: 2px; }
.category-card .label span { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.14em; opacity: 0.85; }
.category-card.no-image { background: linear-gradient(150deg, var(--primary-light), var(--soft)); }
.category-card.no-image .veil { background: linear-gradient(180deg, rgba(10,12,16,0.03) 30%, rgba(10,12,16,0.58) 100%); }

.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 36px; }
.filter-chip { display: inline-flex; align-items: center; padding: 8px 18px; border: 1px solid var(--border); background: var(--surface); color: var(--ink-soft); border-radius: var(--radius-pill); font-weight: 600; font-size: 0.88rem; transition: border-color .15s ease, background .15s ease, color .15s ease; }
.filter-chip:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.filter-chip.active { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }

.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(265px, 1fr)); gap: 24px; }
.product-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease; }
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.product-card .thumb { height: 190px; overflow: hidden; position: relative; background: var(--soft); }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.product-card:hover .thumb img { transform: scale(1.06); }
.product-card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.badge-cat { align-self: flex-start; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.13em; color: var(--accent); background: var(--accent-light); padding: 3px 10px; border-radius: var(--radius-pill); }
.product-card h3 { font-family: var(--font-head); font-size: 1.14rem; line-height: 1.35; }
.spec-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.spec-chip { font-size: 0.72rem; font-weight: 600; color: var(--ink-soft); background: var(--soft); border-radius: var(--radius-pill); padding: 3px 10px; white-space: nowrap; }
.product-price-row { display: flex; justify-content: space-between; align-items: center; padding-top: 10px; border-top: 1px dashed var(--border); margin-top: auto; }
.product-price { font-weight: 800; color: var(--primary-dark); font-size: 1.1rem; }
.product-card .view-link { font-weight: 600; font-size: 0.92rem; }

.pdp { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: start; max-width: 1080px; margin: 0 auto; }
.pdp-gallery { display: grid; gap: 12px; }
.pdp-main { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); background: var(--soft); aspect-ratio: 16 / 10; }
.pdp-main img { width: 100%; height: 100%; object-fit: cover; }
.pdp-thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.pdp-thumb { width: 78px; height: 56px; border-radius: var(--radius); overflow: hidden; border: 2px solid var(--border); cursor: pointer; padding: 0; background: none; transition: border-color .15s ease; }
.pdp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pdp-thumb.active, .pdp-thumb:hover { border-color: var(--primary); }
.pdp-info h1 { font-family: var(--font-head); font-size: clamp(1.7rem, 3.4vw, 2.3rem); line-height: 1.2; margin-bottom: 10px; }
.pdp-subline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pdp-info .price-tag { font-size: 1.55rem; font-weight: 800; color: var(--primary-dark); margin: 14px 0 4px; }
.pdp-info .price-note { color: var(--ink-faint); font-size: 0.85rem; margin-bottom: 18px; }
.spec-table { width: 100%; border-collapse: collapse; margin: 18px 0 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.spec-table th, .spec-table td { text-align: left; padding: 10px 16px; border-bottom: 1px solid var(--border); font-size: 0.93rem; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table th { color: var(--ink-faint); font-weight: 600; width: 170px; background: var(--bg-alt); }
.pdp-desc { font-size: 1.02rem; }
.pdp-desc p { margin-bottom: 12px; }
.pdp-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.btn { display: inline-block; background: var(--primary); color: var(--on-primary); border: none; border-radius: var(--radius-pill); padding: 13px 28px; font-weight: 700; font-size: 1rem; cursor: pointer; transition: background .15s ease, transform .15s ease; }
.btn:hover { background: var(--primary-dark); transform: translateY(-1px); text-decoration: none; color: var(--on-primary); }
.btn-outline { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-outline:hover { background: var(--primary-light); }

.capabilities-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.capability-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px 24px; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease; }
.capability-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.capability-card .feature-icon { border-radius: var(--radius); }
.capability-card h3 { color: var(--primary); margin-bottom: 8px; font-family: var(--font-head); font-size: 1.14rem; }
.capability-card .cap-excerpt { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 12px; }
.capability-card .cap-link { font-weight: 600; font-size: 0.92rem; }

.infrastructure-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.infra-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease; }
.infra-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.infra-card .thumb { height: 170px; overflow: hidden; background: var(--soft); }
.infra-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.infra-card:hover .thumb img { transform: scale(1.05); }
.infra-card .body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.infra-card h3 { font-family: var(--font-head); font-size: 1.12rem; }
.infra-card p { color: var(--ink-soft); font-size: 0.93rem; flex: 1; }
.infra-card .view-link { font-weight: 600; font-size: 0.92rem; }

.cert-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.cert-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px 24px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 10px; }
.cert-card .cert-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.cert-card h3 { font-family: var(--font-head); font-size: 1.16rem; }
.cert-card .cert-code { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); background: var(--accent-light); padding: 4px 10px; border-radius: var(--radius-pill); white-space: nowrap; }
.cert-card .cert-meta { font-size: 0.85rem; color: var(--ink-soft); }
.cert-card .cert-meta strong { color: var(--ink); }
.cert-card p { color: var(--ink-soft); font-size: 0.93rem; flex: 1; }

.clients-strip { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: center; }
.client-logo { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); font-weight: 700; font-family: var(--font-head); color: var(--ink-soft); transition: border-color .15s ease, color .15s ease, transform .15s ease; }
.client-logo:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); text-decoration: none; }
.client-logo img { height: 34px; width: auto; }

.stats-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; text-align: center; }
.stat-item { padding: 22px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.stat-item .stat-num { font-family: var(--font-head); font-size: 1.7rem; font-weight: 800; color: var(--primary-dark); }
.stat-item .stat-label { font-size: 0.8rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; margin-top: 4px; }

.process-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; counter-reset: step; }
.process-step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px 22px; box-shadow: var(--shadow-sm); position: relative; }
.process-step::before { counter-increment: step; content: counter(step); display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--primary); color: var(--on-primary); font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; margin-bottom: 14px; }
.process-step h3 { font-family: var(--font-head); font-size: 1.08rem; margin-bottom: 6px; }
.process-step p { color: var(--ink-soft); font-size: 0.93rem; }

.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; }
.testimonial-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 10px; }
.testimonial-card .qmark { font-family: var(--font-head); font-size: 2.4rem; line-height: 1; color: color-mix(in srgb, var(--primary) 30%, transparent); }
.testimonial-card .stars { color: var(--accent); font-size: 1.05rem; letter-spacing: 2px; }
.testimonial-card p { color: var(--ink); font-size: 0.98rem; flex: 1; }
.testimonial-card .author { color: var(--ink-soft); font-size: 0.88rem; font-weight: 700; }

.faq-list { max-width: 780px; margin: 0 auto; display: grid; gap: 14px; }
.faq-list details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.faq-list summary { cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 700; font-size: 1rem; font-family: var(--font-head); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 1.3rem; color: var(--primary); transition: transform .15s ease; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p, .faq-list details .rich { padding: 0 22px 18px; color: var(--ink-soft); font-size: 0.97rem; }

.rich h2, .rich h3 { font-family: var(--font-head); color: var(--ink); margin: 16px 0 8px; line-height: 1.35; }
.rich h2 { font-size: 1.25rem; }
.rich h3 { font-size: 1.08rem; }
.rich p { margin: 0 0 12px; }
.rich ul, .rich ol { margin: 0 0 12px; padding-left: 22px; }
.rich li { margin-bottom: 4px; }
.rich blockquote { border-left: 3px solid var(--primary); padding-left: 14px; color: var(--ink-soft); margin: 0 0 12px; font-style: italic; }
.rich a { color: var(--primary-dark); font-weight: 600; }

.articles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.article-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease; }
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.article-card .thumb { height: 180px; overflow: hidden; }
.article-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.article-card:hover .thumb img { transform: scale(1.06); }
.article-card .body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.article-card h3 { font-family: var(--font-head); font-size: 1.1rem; }
.article-card p { color: var(--ink-soft); font-size: 0.93rem; flex: 1; }
.article-meta { font-size: 0.78rem; color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; }
.article-card .footer { margin-top: auto; padding-top: 10px; }
.article-card .footer a { font-weight: 600; }

.article-prose { max-width: 780px; margin: 0 auto; }
.article-prose img { width: 100%; max-height: 400px; object-fit: cover; border-radius: var(--radius-lg); margin-bottom: 26px; }
.article-prose h1 { font-family: var(--font-head); font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 10px; }
.article-prose .lede { font-size: 1.12rem; color: var(--ink-soft); margin-bottom: 26px; }
.article-prose .body { font-size: 1.05rem; }
.article-prose .body p { margin-bottom: 18px; }
.article-prose .body h2 { font-family: var(--font-head); font-size: 1.4rem; margin: 30px 0 12px; }
.article-prose .body h3 { font-family: var(--font-head); font-size: 1.15rem; margin: 26px 0 10px; }
.article-prose .body ul, .article-prose .body ol { margin: 0 0 18px 24px; }
.article-prose .body li { margin-bottom: 6px; }
.article-prose .body blockquote { border-left: 3px solid var(--primary); padding-left: 16px; color: var(--ink-soft); margin: 0 0 18px; font-style: italic; }
.article-prose .body a { color: var(--primary-dark); font-weight: 600; }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm); }
.contact-card h3 { color: var(--primary); margin-bottom: 10px; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 800; }
.contact-card .hours { white-space: pre-line; }

.enquiry-wrap { display: grid; grid-template-columns: 340px 1fr; gap: 32px; align-items: start; }
.enquiry-info { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); display: grid; gap: 18px; position: sticky; top: 96px; }
.enquiry-info h3 { color: var(--primary); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 800; margin-bottom: 2px; }
.enquiry-info .hours { white-space: pre-line; }
.enquiry-form { max-width: 660px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-sm); display: grid; gap: 16px; }
.enquiry-form label { font-weight: 600; font-size: 0.95rem; display: grid; gap: 7px; }
.enquiry-form input, .enquiry-form select, .enquiry-form textarea { padding: 11px 13px; border: 1px solid var(--border); border-radius: var(--radius); font: inherit; width: 100%; background: var(--bg); color: var(--ink); transition: border-color .15s ease, box-shadow .15s ease; }
.enquiry-form input:focus, .enquiry-form select:focus, .enquiry-form textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
.enquiry-form textarea { min-height: 96px; resize: vertical; }
.consent-line { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; font-size: 0.88rem; color: var(--ink-soft); }
.consent-line input[type="checkbox"] { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--primary); flex-shrink: 0; }
.success-box { max-width: 600px; margin: 48px auto; text-align: center; background: var(--primary-light); border: 2px solid var(--primary); border-radius: var(--radius-lg); padding: 36px; }
.success-box h3 { font-family: var(--font-head); margin-bottom: 8px; }
.error-box { max-width: 600px; margin: 24px auto; text-align: center; background: #fef2f2; border: 1px solid #fca5a5; border-radius: var(--radius); padding: 20px; color: #b91c1c; }

.pager { display: flex; gap: 8px; justify-content: center; align-items: center; margin-top: 32px; flex-wrap: wrap; }
.pager-link { display: inline-flex; min-width: 38px; height: 38px; padding: 0 12px; align-items: center; justify-content: center; border: 1px solid var(--border); background: var(--surface); border-radius: 10px; font-size: 0.9rem; color: var(--primary); text-decoration: none; }
.pager-link:hover { border-color: var(--primary); }
.pager-link.current { background: var(--primary); border-color: var(--primary); color: var(--on-primary); font-weight: 600; }

.empty-note { text-align: center; color: var(--muted, var(--ink-faint)); padding: 32px 0; }

.site-footer { background: var(--footer-bg, var(--ink)); color: var(--footer-fg, color-mix(in srgb, var(--ink) 35%, #fff)); border-top: 4px solid color-mix(in srgb, var(--primary) 60%, transparent); padding: 56px 0 0; margin-top: 48px; }
.footer-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 40px; padding: 0 24px; max-width: 1140px; margin: 0 auto; }
.site-footer h3 { color: var(--footer-head, #fff); margin-bottom: 14px; font-size: 1rem; font-family: var(--font-head); }
.site-footer a { color: var(--primary); }
.site-footer .brand { color: var(--footer-head, #fff); }
.site-footer .brand:hover { text-decoration: none; }
.site-footer .footer-desc { color: var(--footer-fg, color-mix(in srgb, var(--ink) 22%, #fff)); font-size: 0.92rem; margin-top: 6px; }
.footer-links { display: grid; gap: 4px; }
.footer-links a { color: var(--footer-fg, color-mix(in srgb, var(--ink) 30%, #fff)); }
.footer-links a:hover { color: var(--footer-head, #fff); text-decoration: none; }
.footer-links a.all-link { font-weight: 700; color: var(--primary); margin-top: 6px; }
.footer-col p { margin-bottom: 6px; }
.site-footer .hours { white-space: pre-line; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 44px; padding: 18px 24px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 0.86rem; color: var(--footer-fg, color-mix(in srgb, var(--ink) 22%, #fff)); max-width: 1140px; margin-left: auto; margin-right: auto; }
.powered-by{opacity:.8}
.powered-by a{color:inherit;text-decoration:none}
.powered-by a:hover{text-decoration:underline;opacity:1}
.footer-bottom a { color: var(--footer-fg, color-mix(in srgb, var(--ink) 22%, #fff)); font-weight: 600; }
.footer-bottom a:hover { color: var(--footer-head, #fff); }
.social-links { display: flex; gap: 10px; flex-wrap: wrap; }
.social-link { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 999px; background: rgba(255,255,255,.1); color: #fff; transition: background .15s ease, transform .15s ease; }
.social-link:hover { background: var(--primary); transform: translateY(-2px); text-decoration: none; }
.social-link svg { width: 16px; height: 16px; }
.wa-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.wa-link svg { width: 16px; height: 16px; }
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 60; display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 999px; background: #25d366; color: #fff; box-shadow: 0 8px 24px rgba(37,211,102,.4); transition: transform .15s ease, background .15s ease; }
.wa-float:hover { transform: translateY(-3px) scale(1.04); background: #1ebe5b; text-decoration: none; }
.wa-float svg { width: 30px; height: 30px; }

.notice-bar { background: var(--accent); color: var(--ink); padding: 0; overflow: hidden; }
.notice-bar-inner { display: flex; align-items: center; max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.notice-label { flex-shrink: 0; font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; padding: 8px 14px 8px 0; }
.notice-track { overflow: hidden; flex: 1; position: relative; }
.notice-items { display: flex; gap: 32px; white-space: nowrap; animation: marquee 30s linear infinite; }
.notice-items a { color: var(--ink); font-size: 0.88rem; font-weight: 500; }
.notice-items a:hover { text-decoration: underline; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ===================== Theme switcher ===================== */
.theme-btn {
  position: fixed; bottom: 92px; right: 24px; z-index: 110;
  width: 52px; height: 52px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--primary); color: var(--on-primary);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); transition: background .15s, transform .15s;
}
.theme-btn:hover { background: var(--primary-dark); transform: translateY(-2px); }
.theme-btn svg { width: 24px; height: 24px; }
.theme-panel {
  position: fixed; bottom: 156px; right: 24px; z-index: 120;
  width: 300px; max-width: calc(100vw - 32px);
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 16px;
  display: none; text-align: left;
}
.theme-panel.open { display: block; }
.theme-panel h3 { font-family: var(--font-head); font-size: 1rem; margin-bottom: 4px; }
.theme-panel .theme-sub { font-size: 0.8rem; color: var(--ink-soft); margin-bottom: 12px; }
.theme-card {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: var(--soft); border: 2px solid transparent; border-radius: var(--radius);
  padding: 10px 12px; margin-bottom: 8px; cursor: pointer;
  font-family: var(--font-body); color: var(--ink); transition: border-color .15s, background .15s;
}
.theme-card:hover { background: color-mix(in srgb, var(--soft) 60%, var(--primary-light)); }
.theme-card.active { border-color: var(--primary); background: var(--primary-light); }
.theme-swatches { display: flex; flex-direction: column; gap: 4px; flex-shrink: 0; }
.theme-swatches .sw { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.12); }
.theme-card .t-name { font-weight: 700; font-size: 0.9rem; }
.theme-card .t-desc { font-size: 0.75rem; color: var(--ink-soft); line-height: 1.35; }
.theme-note { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border); font-size: 0.72rem; color: var(--ink-faint); line-height: 1.4; }

/* ===================== Forge extras (default) ===================== */
body { letter-spacing: 0.002em; }
.brand-name { text-transform: uppercase; letter-spacing: 0.06em; }
.nav-link { text-transform: uppercase; font-size: 0.82rem; letter-spacing: 0.07em; }
.hero h1 { text-transform: uppercase; letter-spacing: 0.01em; font-weight: 700; }
.hero .tagline { font-style: normal; color: #ffd9bd; }
.hero {
  background-image:
    repeating-linear-gradient(115deg, rgba(255,255,255,0.035) 0 2px, transparent 2px 88px),
    var(--hero-gradient);
}
.section-head .eyebrow { letter-spacing: 0.24em; }
.feature, .capability-card { border-top: 3px solid var(--primary); }
.feature-icon, .capability-card .feature-icon { background: var(--primary-light); border-radius: 8px; }
.feature-icon svg, .capability-card .feature-icon svg { color: var(--primary); }
.product-card .thumb { border-bottom: 3px solid var(--primary); }
.product-price { font-family: var(--font-head); }
.process-step::before { font-family: var(--font-body); border-radius: 8px; }
.stat-item { border-left: 3px solid var(--primary); border-radius: 8px; }
.stat-item .stat-num { font-family: var(--font-head); }
.site-footer { border-top-color: var(--primary); }

/* Foundry overrides */
html[data-theme="foundry"] .brand-name { letter-spacing: 0.04em; font-style: italic; text-transform: none; }
html[data-theme="foundry"] .nav-link { text-transform: none; letter-spacing: 0.02em; font-size: 0.95rem; }
html[data-theme="foundry"] .hero h1 { text-transform: none; letter-spacing: -0.01em; }
html[data-theme="foundry"] .hero .tagline { color: var(--primary-light); }
html[data-theme="foundry"] .section-head .eyebrow { color: var(--primary-dark); letter-spacing: 0.22em; }
html[data-theme="foundry"] .feature, html[data-theme="foundry"] .capability-card { border-top: 3px double var(--accent); }
html[data-theme="foundry"] .feature-icon, html[data-theme="foundry"] .capability-card .feature-icon { background: var(--accent-light); border-radius: 50% 50% 50% 6px; }
html[data-theme="foundry"] .feature-icon svg, html[data-theme="foundry"] .capability-card .feature-icon svg { color: var(--accent); }
html[data-theme="foundry"] .product-card .thumb { border-bottom: 3px double var(--accent); }
html[data-theme="foundry"] .testimonial-card { border-top: 3px solid var(--accent-light); }
html[data-theme="foundry"] .stat-item { border-top: 3px solid var(--accent); border-left: none; }
html[data-theme="foundry"] .cert-card { border-left: 3px solid var(--accent); }
html[data-theme="foundry"] .site-footer { border-top-color: var(--accent); }

/* Circuit overrides */
html[data-theme="circuit"] .site-header { background: rgba(11,14,20,0.92); }
html[data-theme="circuit"] .brand-name { text-transform: uppercase; letter-spacing: 0.12em; font-size: 1.08rem; }
html[data-theme="circuit"] .nav-link { text-transform: uppercase; letter-spacing: 0.09em; font-size: 0.8rem; font-weight: 500; border-radius: 0; }
html[data-theme="circuit"] .nav-link.active { color: var(--primary); background: var(--soft); }
html[data-theme="circuit"] .nav-cta { border-radius: 0; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.84rem; }
html[data-theme="circuit"] .hero h1 { text-transform: uppercase; letter-spacing: 0.04em; font-weight: 800; }
html[data-theme="circuit"] .hero .tagline { font-style: normal; color: var(--primary); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.92rem; font-family: 'JetBrains Mono', monospace; }
html[data-theme="circuit"] .hero-cta { border-radius: 0; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.9rem; }
html[data-theme="circuit"] .hero-cta-ghost { border-radius: 0; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.86rem; }
html[data-theme="circuit"] .btn { border-radius: 0; text-transform: uppercase; letter-spacing: 0.09em; font-size: 0.9rem; }
html[data-theme="circuit"] .btn-outline { border-radius: 0; }
html[data-theme="circuit"] .section-head .eyebrow { background: transparent; border-color: var(--border); color: var(--primary); letter-spacing: 0.26em; font-family: 'JetBrains Mono', monospace; }
html[data-theme="circuit"] .badge-cat { background: transparent; border: 1px solid var(--border); color: var(--primary); }
html[data-theme="circuit"] .feature-icon, html[data-theme="circuit"] .capability-card .feature-icon { border-radius: 0; background: var(--soft); }
html[data-theme="circuit"] .feature { border-left: 2px solid var(--primary); border-radius: 0; border-top: none; }
html[data-theme="circuit"] .capability-card { border-left: 2px solid var(--accent); border-radius: 0; border-top: none; }
html[data-theme="circuit"] .product-card { border-radius: 0; }
html[data-theme="circuit"] .product-card .thumb { border-bottom: 2px solid var(--primary); }
html[data-theme="circuit"] .product-price { color: var(--primary); }
html[data-theme="circuit"] .category-card { border-radius: 0; }
html[data-theme="circuit"] .pdp-main { border-radius: 0; }
html[data-theme="circuit"] .pdp-thumb { border-radius: 0; }
html[data-theme="circuit"] .spec-table th { background: var(--soft); }
html[data-theme="circuit"] .process-step { border-radius: 0; }
html[data-theme="circuit"] .process-step::before { border-radius: 0; font-family: var(--font-body); }
html[data-theme="circuit"] .stat-item { border-radius: 0; border-left: 2px solid var(--primary); }
html[data-theme="circuit"] .stat-item .stat-num { font-family: 'JetBrains Mono', monospace; color: var(--primary); }
html[data-theme="circuit"] .cert-card { border-radius: 0; }
html[data-theme="circuit"] .cert-card .cert-code { background: transparent; border: 1px solid var(--border); }
html[data-theme="circuit"] .site-footer { border-top: 2px solid var(--primary); }

/* ===================== Responsive ===================== */
@media (max-width: 900px) {
  .pdp { grid-template-columns: 1fr; gap: 28px; }
  .enquiry-wrap { grid-template-columns: 1fr; }
  .enquiry-info { position: static; }
  .card-grid.cols-3, .card-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .header-inner { flex-wrap: wrap; }
  .brand { justify-content: flex-start; }
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px 20px 16px; background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg); }
  .nav.open { display: flex; }
  .nav-link { border-radius: 10px; padding: 12px 14px; font-size: 1rem; text-transform: none; letter-spacing: 0.01em; }
  .nav-cta { text-align: center; }
  .hero { padding: 72px 20px 80px; }
  .section { padding: 54px 20px; }
  .page-hero { padding: 46px 20px; }
}
@media (max-width: 640px) {
  .products-grid, .categories-grid, .capabilities-grid, .infrastructure-grid, .cert-grid, .articles-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .enquiry-form { padding: 24px 20px; }
  .notice-items { animation-duration: 20s; }
  .theme-panel { right: 16px; bottom: 148px; }
  .theme-btn { right: 16px; bottom: 88px; }
  .wa-float { right: 16px; bottom: 22px; }
}
