/*
Theme Name: Cayrex Deeptech v73
Theme URI: https://cayrex.net/
Author: Cayrex
Author URI: https://cayrex.net/
Description: Profesionalna deeptech tema za Cayrex - Hyperflow, APC, Wall Battery, Battery Kit, About in Contact. Vsaka podstran ima svoj custom dizajn z lepo tipografijo in mintno/teal paleto.
Version: 83.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cayrex-deeptech
Tags: technology, custom-colors, custom-logo, custom-menu, featured-images
*/

:root {
  --bg: #f7f8fa; --bg-2: #ffffff; --bg-3: #eef2f6;
  --ink: #0c1426; --ink-soft: #1e293b;
  --line: rgba(12,20,38,0.08); --line-strong: rgba(12,20,38,0.14);
  --teal: #0d9488; --teal-dark: #0f766e;
  --mint: #14b8a6; --mint-bright: #2dd4bf;
  --text: #1e293b; --text-2: #475569; --muted: #64748b;
  --display: 'Space Grotesk', system-ui, sans-serif;
  --body: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--body); font-weight: 400; line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
body::before { content: ''; position: fixed; inset: 0; background-image: linear-gradient(rgba(13,148,136,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(13,148,136,0.05) 1px, transparent 1px); background-size: 56px 56px; pointer-events: none; z-index: 0; mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%); }
.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 2; }
a { color: var(--teal); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

nav { position: sticky; top: 0; background: rgba(247,248,250,0.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--line); z-index: 100; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 18px 32px; max-width: 1280px; margin: 0 auto; }
.logo { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; color: var(--ink); cursor: pointer; }
.logo-mark { width: 36px; height: 36px; background: linear-gradient(135deg, var(--teal), var(--mint)); border-radius: 9px; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(13,148,136,0.3); }
.logo-mark svg { width: 20px; height: 20px; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links button { background: none; border: none; color: var(--text-2); font-size: 14px; font-weight: 500; letter-spacing: 0.01em; cursor: pointer; font-family: var(--body); padding: 8px 0; transition: color 0.2s; }
.nav-links button:hover, .nav-links button.active { color: var(--teal); }
.nav-cta { background: var(--ink) !important; color: white !important; padding: 10px 20px !important; border-radius: 8px; font-weight: 600 !important; transition: transform 0.2s, box-shadow 0.2s, background 0.2s; }
.nav-cta:hover { transform: translateY(-1px); background: var(--teal) !important; box-shadow: 0 8px 20px rgba(13,148,136,0.3); }

.page { display: none; }
.page.active { display: block; }

.hero { position: relative; padding: 120px 0 100px; overflow: hidden; }

/* Hero 2-column grid for pulse animation */
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 2; margin-bottom: 60px; }
.hero-text { position: relative; z-index: 3; }
.hero-pulse { position: relative; display: flex; align-items: center; justify-content: center; min-height: 420px; }
.pulse-svg { width: 100%; max-width: 460px; height: auto; filter: drop-shadow(0 8px 30px rgba(13,148,136,0.18)); }

/* Subtle background glow behind pulse */
.hero-pulse::before { content: ''; position: absolute; inset: 18% 12%; background: radial-gradient(circle, rgba(20,184,166,0.12), transparent 65%); border-radius: 50%; animation: pulseBgGlow 4s ease-in-out infinite; z-index: 0; pointer-events: none; }
@keyframes pulseBgGlow { 0%, 100% { transform: scale(0.85); opacity: 0.5; } 50% { transform: scale(1.05); opacity: 0.9; } }
.hero-pulse .pulse-svg { position: relative; z-index: 1; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-pulse { min-height: 300px; order: 2; }
  .pulse-svg { max-width: 320px; }
}
.hero::before { content: ''; position: absolute; top: -200px; right: -200px; width: 700px; height: 700px; background: radial-gradient(circle, rgba(20,184,166,0.18), transparent 60%); pointer-events: none; }
.hero::after { content: ''; position: absolute; bottom: -300px; left: -200px; width: 600px; height: 600px; background: radial-gradient(circle, rgba(13,148,136,0.1), transparent 60%); pointer-events: none; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border: 1px solid rgba(13,148,136,0.25); border-radius: 999px; background: rgba(13,148,136,0.08); font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-dark); margin-bottom: 32px; }
.hero-eyebrow .pulse { width: 8px; height: 8px; background: var(--teal); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(13,148,136,0.5); } 70% { box-shadow: 0 0 0 12px rgba(13,148,136,0); } 100% { box-shadow: 0 0 0 0 rgba(13,148,136,0); } }
.hero h1 { font-family: var(--display); font-size: clamp(48px, 7vw, 96px); font-weight: 700; line-height: 0.98; letter-spacing: -0.035em; margin-bottom: 28px; max-width: 1000px; color: var(--ink); }
.hero h1 .accent { background: linear-gradient(120deg, var(--teal), var(--mint)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--text-2); max-width: 640px; margin-bottom: 40px; line-height: 1.55; }
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 48px; }
.pill { padding: 8px 16px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 13px; color: var(--text-2); background: white; font-weight: 500; }
.btn-group { display: flex; gap: 14px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 26px; border-radius: 10px; font-weight: 600; font-size: 15px; text-decoration: none; transition: all 0.2s; cursor: pointer; border: none; font-family: var(--body); }
.btn-primary { background: var(--ink); color: white; }
.btn-primary:hover { background: var(--teal); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(13,148,136,0.3); }
.btn-secondary { background: white; color: var(--ink); border: 1px solid var(--line-strong); }
.btn-secondary:hover { border-color: var(--teal); color: var(--teal); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 20px; border: 1px solid var(--line); background: var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 12px 40px rgba(12,20,38,0.06); }
.stat { background: white; padding: 28px 24px; }
.stat-num { font-family: var(--display); font-weight: 700; font-size: clamp(28px, 3vw, 40px); color: var(--teal); line-height: 1; margin-bottom: 8px; letter-spacing: -0.02em; }
.stat-num .unit { font-size: 0.6em; color: var(--text-2); }
.stat-label { font-size: 12px; color: var(--muted); font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.05em; }
.stat-label .stat-sub { display: inline-block; margin-left: 6px; padding: 2px 6px; font-size: 9px; color: var(--teal); background: rgba(13,148,136,0.1); border-radius: 4px; letter-spacing: 0.06em; vertical-align: 1px; font-weight: 600; }

section { padding: 90px 0; position: relative; }
.section-label { display: inline-block; font-family: var(--mono); font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--teal); margin-bottom: 16px; }
.section-title { font-family: var(--display); font-size: clamp(32px, 4vw, 56px); font-weight: 700; line-height: 1.05; letter-spacing: -0.025em; margin-bottom: 20px; max-width: 760px; color: var(--ink); }
.section-sub { font-size: 18px; color: var(--text-2); max-width: 700px; line-height: 1.6; margin-bottom: 50px; }

.tech-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.tech-card { position: relative; background: white; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; transition: transform 0.4s, border-color 0.4s, box-shadow 0.4s; display: flex; flex-direction: column; cursor: pointer; box-shadow: 0 4px 14px rgba(12,20,38,0.04); }
.tech-card:hover { transform: translateY(-6px); border-color: var(--teal); box-shadow: 0 24px 50px rgba(13,148,136,0.15); }
.tech-image { height: 320px; background-size: cover; background-position: center; }
.tech-body { padding: 32px; flex: 1; display: flex; flex-direction: column; }
.tech-tag { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; background: rgba(13,148,136,0.1); border: 1px solid rgba(13,148,136,0.25); border-radius: 6px; font-family: var(--mono); font-size: 11px; color: var(--teal-dark); margin-bottom: 16px; letter-spacing: 0.05em; width: fit-content; }
.tech-title { font-family: var(--display); font-size: 32px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 12px; line-height: 1.1; color: var(--ink); }
.tech-desc { color: var(--text-2); margin-bottom: 24px; flex: 1; }
.tech-link { display: inline-flex; align-items: center; gap: 8px; color: var(--teal); font-weight: 600; font-size: 15px; transition: gap 0.2s; }
.tech-card:hover .tech-link { gap: 14px; }

.features-section { background: white; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 32px; transition: border-color 0.3s, transform 0.3s, background 0.3s, box-shadow 0.3s; }
.feature:hover { border-color: var(--teal); transform: translateY(-2px); background: white; box-shadow: 0 12px 30px rgba(13,148,136,0.08); }
.feature-icon { width: 48px; height: 48px; background: linear-gradient(135deg, var(--teal), var(--mint)); border-radius: 12px; display: grid; place-items: center; margin-bottom: 20px; color: white; box-shadow: 0 6px 16px rgba(13,148,136,0.25); }
.feature-icon svg { width: 24px; height: 24px; }
.feature h3 { font-family: var(--display); font-size: 20px; font-weight: 600; margin-bottom: 10px; letter-spacing: -0.01em; color: var(--ink); }
.feature p { color: var(--text-2); font-size: 15px; line-height: 1.55; }

.gallery-section { background: var(--bg-3); }
.gallery { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.gallery-item { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; cursor: pointer; background: white; border: 1px solid var(--line); }
.gallery-item.tall { grid-row: span 2; aspect-ratio: 0.5; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item .caption { position: absolute; bottom: 0; left: 0; right: 0; padding: 16px; background: linear-gradient(to top, rgba(12,20,38,0.85), transparent); font-size: 13px; color: white; font-weight: 500; opacity: 0; transition: opacity 0.3s; }
.gallery-item:hover .caption { opacity: 1; }

.cta { background: linear-gradient(135deg, var(--ink) 0%, #1e293b 100%); border-radius: 24px; padding: 80px 60px; text-align: center; position: relative; overflow: hidden; color: white; }
.cta::before { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 700px; height: 700px; background: radial-gradient(circle, rgba(20,184,166,0.18), transparent 60%); pointer-events: none; }
.cta-content { position: relative; z-index: 1; }
.cta .section-label { color: var(--mint-bright); }
.cta h2 { font-family: var(--display); font-size: clamp(32px, 4.5vw, 52px); font-weight: 700; line-height: 1.1; letter-spacing: -0.025em; margin-bottom: 20px; color: white; }
.cta p { font-size: 18px; color: rgba(255,255,255,0.75); max-width: 600px; margin: 0 auto 36px; }
.cta .btn-group { justify-content: center; }
.cta .btn-primary { background: var(--mint); color: var(--ink); }
.cta .btn-primary:hover { background: var(--mint-bright); box-shadow: 0 12px 30px rgba(20,184,166,0.4); }
.cta .btn-secondary { background: transparent; color: white; border-color: rgba(255,255,255,0.25); }
.cta .btn-secondary:hover { border-color: var(--mint); color: var(--mint-bright); }

.page-hero { position: relative; padding: 80px 0 40px; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; top: -200px; right: -100px; width: 600px; height: 600px; background: radial-gradient(circle, rgba(20,184,166,0.15), transparent 60%); pointer-events: none; }
.page-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; position: relative; z-index: 1; }
.page-hero h1 { font-family: var(--display); font-size: clamp(40px, 5vw, 68px); font-weight: 700; line-height: 1.0; letter-spacing: -0.03em; color: var(--ink); margin: 14px 0 22px; }
.page-hero h1 .accent { color: var(--teal); }
.page-hero .lead { font-size: 17px; color: var(--text-2); line-height: 1.6; max-width: 540px; margin-bottom: 28px; }
.page-hero-image { background: white; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 20px 60px rgba(12,20,38,0.1); aspect-ratio: 4/3; }
.page-hero-image img { width: 100%; height: 100%; object-fit: cover; }

.content-block { padding: 40px 0; }
.content-block .container { max-width: 1100px; }
.content-block h2 { font-family: var(--display); font-size: clamp(28px, 3.5vw, 42px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; color: var(--ink); margin-bottom: 24px; }
.content-block h3 { font-family: var(--display); font-size: 22px; font-weight: 600; color: var(--ink); margin: 32px 0 12px; letter-spacing: -0.01em; }
.content-block p { color: var(--text-2); font-size: 17px; line-height: 1.7; margin-bottom: 18px; }
.content-block strong { color: var(--ink); }
.content-block .figure { margin: 40px 0; }
.content-block .figure img { border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 12px 40px rgba(12,20,38,0.08); }
.content-block .figure .caption { font-size: 14px; color: var(--muted); font-style: italic; text-align: center; margin-top: 14px; }
.content-block .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.content-block .two-col.image-text { gap: 50px; align-items: center; }

.mode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 32px 0; }
.mode-card { background: white; border: 1px solid var(--line); border-radius: 18px; padding: 32px; transition: all 0.3s; }
.mode-card:hover { border-color: var(--teal); transform: translateY(-4px); box-shadow: 0 16px 40px rgba(13,148,136,0.1); }
.mode-card .mode-tag { display: inline-flex; padding: 6px 12px; background: rgba(13,148,136,0.1); border: 1px solid rgba(13,148,136,0.25); border-radius: 6px; font-family: var(--mono); font-size: 11px; color: var(--teal-dark); margin-bottom: 16px; letter-spacing: 0.05em; }
.mode-card h3 { font-family: var(--display); font-size: 24px; font-weight: 700; color: var(--ink); margin-bottom: 12px; letter-spacing: -0.02em; }
.mode-card p { color: var(--text-2); font-size: 15px; line-height: 1.6; margin-bottom: 12px; }
.mode-card p:last-child { margin-bottom: 0; }

.key-features { background: var(--bg-3); padding: 60px 0; }
.key-features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 32px; }
.key-feature { background: white; border: 1px solid var(--line); border-radius: 12px; padding: 24px; display: flex; align-items: start; gap: 16px; transition: all 0.3s; }
.key-feature:hover { border-color: var(--teal); transform: translateY(-2px); }
.key-feature .check { width: 32px; height: 32px; background: linear-gradient(135deg, var(--teal), var(--mint)); border-radius: 8px; display: grid; place-items: center; color: white; flex-shrink: 0; }
.key-feature .check svg { width: 18px; height: 18px; }
.key-feature h4 { font-family: var(--display); font-size: 16px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.key-feature p { font-size: 14px; color: var(--text-2); line-height: 1.5; margin: 0; }

.spec-stats { display: flex; flex-wrap: wrap; gap: 16px; margin: 32px 0; justify-content: center; }
.spec-stat { flex: 1 1 220px; max-width: 320px; min-width: 200px; background: white; border: 1px solid var(--line); border-radius: 14px; padding: 24px; text-align: center; transition: all 0.3s; }
.spec-stat:hover { border-color: var(--teal); transform: translateY(-3px); box-shadow: 0 12px 30px rgba(13,148,136,0.08); }
.spec-stat .num { font-family: var(--display); font-size: 28px; font-weight: 700; color: var(--teal); letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 6px; }
.spec-stat .label { font-family: var(--mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }

.arch-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 32px; }
.arch-card { background: white; border: 2px solid var(--line); border-radius: 18px; padding: 36px; transition: all 0.3s; }
.arch-card:hover { border-color: var(--teal); transform: translateY(-4px); }
.arch-card .arch-tag { display: inline-block; font-family: var(--mono); font-size: 11px; color: var(--teal); background: rgba(13,148,136,0.1); padding: 5px 10px; border-radius: 6px; letter-spacing: 0.08em; margin-bottom: 14px; }
.arch-card h3 { font-family: var(--display); font-size: 24px; font-weight: 700; color: var(--ink); margin-bottom: 14px; letter-spacing: -0.02em; }
.arch-card p { color: var(--text-2); font-size: 15px; line-height: 1.6; }

.apps-section { background: white; border-top: 1px solid var(--line); }
.app-pills { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.app-pill { background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 12px 22px; font-size: 14px; color: var(--ink); font-weight: 500; transition: all 0.3s; }
.app-pill:hover { background: var(--teal); color: white; border-color: var(--teal); transform: translateY(-2px); }

.page-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 32px; }
.page-gallery.cols-4 { grid-template-columns: repeat(5, 1fr); }
.page-gallery .gallery-item { aspect-ratio: 1; }

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
.team-card { background: white; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; transition: all 0.3s; }
.team-card:hover { border-color: var(--teal); transform: translateY(-4px); box-shadow: 0 16px 40px rgba(13,148,136,0.12); }
.team-card .photo { aspect-ratio: 1; background: var(--bg-3); overflow: hidden; }
.team-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card .info { padding: 24px; text-align: center; }
.team-card .name { font-family: var(--display); font-size: 20px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; margin-bottom: 4px; }
.team-card .role { font-family: var(--mono); font-size: 11px; color: var(--teal); text-transform: uppercase; letter-spacing: 0.1em; }

.achievements-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 32px; }
.achievement { background: white; border: 1px solid var(--line); border-radius: 14px; padding: 24px; display: flex; align-items: start; gap: 16px; transition: all 0.3s; }
.achievement:hover { border-color: var(--teal); transform: translateY(-2px); }
.achievement .ach-icon { width: 40px; height: 40px; background: linear-gradient(135deg, var(--teal), var(--mint)); border-radius: 10px; display: grid; place-items: center; color: white; flex-shrink: 0; }
.achievement .ach-icon svg { width: 20px; height: 20px; }
.achievement h4 { font-family: var(--display); font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 4px; line-height: 1.3; }
.achievement p { font-size: 13px; color: var(--text-2); line-height: 1.5; margin: 0; }

.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; align-items: start; margin-top: 40px; }
.contact-info { background: white; border: 1px solid var(--line); border-radius: 18px; padding: 36px; box-shadow: 0 8px 30px rgba(12,20,38,0.04); }
.contact-info h3 { font-family: var(--display); font-size: 22px; font-weight: 700; color: var(--ink); margin-bottom: 24px; letter-spacing: -0.02em; }
.contact-item { display: flex; align-items: start; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-item:last-child { border-bottom: none; }
.contact-item .ico { width: 40px; height: 40px; background: linear-gradient(135deg, var(--teal), var(--mint)); border-radius: 10px; display: grid; place-items: center; color: white; flex-shrink: 0; }
.contact-item .ico svg { width: 20px; height: 20px; }
.contact-item .label { font-family: var(--mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }
.contact-item .value { color: var(--ink); font-weight: 500; font-size: 16px; }
.contact-item .value a { color: var(--ink); }
.contact-item .value a:hover { color: var(--teal); }
.contact-form { background: white; border: 1px solid var(--line); border-radius: 18px; padding: 36px; box-shadow: 0 8px 30px rgba(12,20,38,0.04); }
.contact-form h3 { font-family: var(--display); font-size: 22px; font-weight: 700; color: var(--ink); margin-bottom: 24px; letter-spacing: -0.02em; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-family: var(--mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.form-field input, .form-field textarea { width: 100%; padding: 12px 16px; border: 1px solid var(--line-strong); border-radius: 10px; font-family: var(--body); font-size: 15px; color: var(--ink); background: var(--bg); transition: border-color 0.2s, background 0.2s; }
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--teal); background: white; }
.form-field textarea { resize: vertical; min-height: 120px; }

footer.site-footer { background: white; border-top: 1px solid var(--line); padding: 60px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
.footer-brand p { color: var(--muted); font-size: 14px; margin-top: 14px; max-width: 280px; }
.footer-col h4 { font-family: var(--display); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink); margin-bottom: 18px; }
.footer-col a, .footer-col span, .footer-col button { display: block; color: var(--text-2); text-decoration: none; font-size: 14px; padding: 5px 0; transition: color 0.2s; background: none; border: none; cursor: pointer; font-family: var(--body); text-align: left; }
.footer-col a:hover, .footer-col button:hover { color: var(--teal); }
.footer-bottom { padding-top: 30px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); flex-wrap: wrap; gap: 16px; }
.socials { display: flex; gap: 12px; }
.socials a { width: 36px; height: 36px; border: 1px solid var(--line-strong); border-radius: 8px; display: grid; place-items: center; color: var(--text-2); transition: all 0.2s; }
/* News list page */
.news-list { display: flex; flex-direction: column; gap: 32px; margin-top: 32px; max-width: 900px; margin-left: auto; margin-right: auto; }
.news-card { background: white; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; transition: all 0.3s; box-shadow: 0 4px 30px rgba(12,20,38,0.04); display: grid; grid-template-columns: 320px 1fr; }
.news-card:hover { border-color: rgba(13,148,136,0.3); box-shadow: 0 12px 40px rgba(13,148,136,0.08); transform: translateY(-2px); }
.news-card:not(:has(.news-card-image)) { grid-template-columns: 1fr; }
.news-card-image { display: block; overflow: hidden; }
.news-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s; }
.news-card:hover .news-card-image img { transform: scale(1.05); }
.news-card-body { padding: 32px; display: flex; flex-direction: column; justify-content: center; }
.news-card-meta { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.news-card-date { display: inline-block; padding: 5px 12px; background: var(--teal); color: white; font-family: var(--mono); font-size: 11px; font-weight: 600; border-radius: 6px; letter-spacing: 0.05em; text-transform: uppercase; }
.news-card-tag { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: 0.05em; text-transform: uppercase; }
.news-card h3 { font-family: var(--display); font-size: clamp(20px, 2vw, 24px); font-weight: 700; color: var(--ink); letter-spacing: -0.01em; margin-bottom: 12px; line-height: 1.3; }
.news-card h3 a { color: inherit; text-decoration: none; }
.news-card h3 a:hover { color: var(--teal); }
.news-card-excerpt { font-size: 15px; color: var(--text-2); line-height: 1.6; margin-bottom: 16px; }
.news-card-excerpt p { margin: 0; }
.news-card-more { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 12px; color: var(--teal); text-decoration: none; letter-spacing: 0.05em; text-transform: uppercase; font-weight: 600; transition: gap 0.2s; }
.news-card-more:hover { gap: 10px; }

/* News empty state */
.news-empty { text-align: center; padding: 60px 20px; max-width: 500px; margin: 0 auto; }
.news-empty-icon { color: var(--muted); margin-bottom: 24px; }
.news-empty-icon svg { width: 64px; height: 64px; opacity: 0.4; }
.news-empty h3 { font-family: var(--display); font-size: 24px; font-weight: 700; color: var(--ink); margin-bottom: 12px; }
.news-empty p { font-size: 16px; color: var(--text-2); line-height: 1.6; margin-bottom: 8px; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; flex-wrap: wrap; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 14px; border-radius: 8px; font-family: var(--mono); font-size: 13px; font-weight: 600; text-decoration: none; transition: all 0.2s; }
.pagination a { background: white; color: var(--ink); border: 1px solid var(--line); }
.pagination a:hover { background: var(--teal); color: white; border-color: var(--teal); }
.pagination .current { background: var(--teal); color: white; }
.pagination .dots { border: none; background: transparent; }

/* Single post */
.back-link { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 13px; color: var(--teal); text-decoration: none; margin-bottom: 20px; letter-spacing: 0.05em; text-transform: uppercase; font-weight: 600; }
.back-link:hover { color: var(--ink); }
.single-post-meta { display: flex; gap: 12px; align-items: center; margin-bottom: 20px; flex-wrap: wrap; }
.single-post-feature-image { max-width: 900px; margin: 0 auto 40px; }
.single-post-feature-image img { width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--line); }
.single-post-content { max-width: 800px; margin: 0 auto; font-size: 17px; line-height: 1.7; color: var(--text); }
.single-post-content p { margin-bottom: 20px; }
.single-post-content h2 { font-family: var(--display); font-size: 28px; font-weight: 700; color: var(--ink); margin: 36px 0 16px; letter-spacing: -0.01em; }
.single-post-content h3 { font-family: var(--display); font-size: 22px; font-weight: 700; color: var(--ink); margin: 28px 0 12px; }
.single-post-content img { max-width: 100%; height: auto; border-radius: 12px; margin: 24px auto; display: block; border: 1px solid var(--line); }
.single-post-content a { color: var(--teal); text-decoration: underline; }
.single-post-content ul, .single-post-content ol { margin: 0 0 20px 24px; }
.single-post-content li { margin-bottom: 8px; }
.single-post-content blockquote { border-left: 3px solid var(--teal); padding-left: 20px; margin: 24px 0; color: var(--text-2); font-style: italic; }
.single-post-footer { max-width: 800px; margin: 48px auto 0; padding-top: 32px; border-top: 1px solid var(--line); }

@media (max-width: 700px) {
  .news-card { grid-template-columns: 1fr; }
  .news-card-image { max-height: 240px; }
  .news-card-body { padding: 24px; }
  .single-post-content { font-size: 16px; }
}

.socials a:hover { background: var(--teal); border-color: var(--teal); color: white; }
.socials svg { width: 16px; height: 16px; }

/* ==================== APC PAGE ENHANCEMENTS ==================== */

/* NCD/FCD architecture tag (inline label on feature headings) */
.apc-feat-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  background: rgba(13,148,136,0.1);
  border: 1px solid rgba(13,148,136,0.25);
  padding: 3px 8px;
  border-radius: 5px;
  margin-left: 8px;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

/* Hero stats strip */
.apc-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 32px 0 28px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(13,148,136,0.06), rgba(45,212,191,0.03));
  border: 1px solid rgba(13,148,136,0.15);
  border-radius: 14px;
}
.apc-hero-stat { position: relative; }
.apc-hero-stat + .apc-hero-stat::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 10%;
  bottom: 10%;
  width: 1px;
  background: rgba(13,148,136,0.2);
}
.apc-stat-num {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(18px, 1.8vw, 22px);
  color: var(--teal);
  line-height: 1.1;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.apc-stat-num .apc-unit {
  font-size: 0.65em;
  color: var(--text-2);
  font-weight: 500;
}
.apc-stat-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.apc-stat-label .apc-stat-sub {
  display: inline-block;
  margin-left: 5px;
  padding: 2px 6px;
  font-size: 9px;
  color: var(--teal);
  background: rgba(13,148,136,0.1);
  border-radius: 4px;
  letter-spacing: 0.06em;
  vertical-align: 1px;
  font-weight: 600;
}

/* Mission banner */
.apc-mission-banner {
  background: linear-gradient(135deg, #0c1426 0%, #0d9488 100%);
  padding: 48px 0;
  position: relative;
  overflow: hidden;
}
.apc-mission-banner::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(94,234,212,0.25), transparent 65%);
  pointer-events: none;
}
.apc-mission-content {
  display: flex;
  align-items: center;
  gap: 32px;
  position: relative;
  z-index: 2;
}
.apc-mission-icon {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #5eead4;
}
.apc-mission-icon svg { width: 36px; height: 36px; }
.apc-mission-tag {
  font-family: var(--mono);
  font-size: 12px;
  color: #5eead4;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.apc-mission-title {
  font-family: var(--display);
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 700;
  color: white;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  line-height: 1;
}
.apc-mission-desc {
  font-size: 16px;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
  max-width: 760px;
  margin: 0;
}

/* Multi-chemistry callout */
.apc-chem-callout {
  margin-top: 48px;
  padding: 36px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}
.apc-chem-head { margin-bottom: 28px; }
.apc-chem-tag {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 10px;
}
.apc-chem-head h3 {
  font-family: var(--display);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.apc-chem-head p {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
  max-width: 780px;
}
.apc-chem-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.apc-chem-pill {
  background: white;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 24px 20px;
  text-align: center;
  transition: all 0.3s;
  cursor: default;
}
.apc-chem-pill:hover {
  border-color: var(--teal);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(13,148,136,0.08);
}
.apc-chem-pill.primary {
  background: linear-gradient(135deg, #0d9488, #14b8a6);
  border-color: var(--teal);
  color: white;
}
.apc-chem-sym {
  font-family: var(--display);
  font-size: 32px;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  line-height: 1;
}
.apc-chem-pill.primary .apc-chem-sym { color: white; }
.apc-chem-name {
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 10px;
}
.apc-chem-pill.primary .apc-chem-name { color: rgba(255,255,255,0.95); }
.apc-chem-note {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--teal);
  background: rgba(13,148,136,0.1);
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.apc-chem-pill.primary .apc-chem-note {
  color: white;
  background: rgba(255,255,255,0.2);
}

@media (max-width: 700px) {
  .apc-hero-stats { grid-template-columns: 1fr; gap: 16px; }
  .apc-hero-stat + .apc-hero-stat::before { display: none; }
  .apc-mission-content { flex-direction: column; align-items: flex-start; gap: 20px; }
  .apc-mission-icon { width: 56px; height: 56px; }
  .apc-mission-icon svg { width: 28px; height: 28px; }
  .apc-chem-callout { padding: 24px; }
  .apc-chem-pills { grid-template-columns: 1fr; gap: 12px; }
}

/* Infographic figures (Hyperflow onepager sections) */
.infographic-figure { margin: 40px auto; max-width: 900px; text-align: center; }
.infographic-figure.large { max-width: 1000px; }
.infographic-figure img { max-width: 100%; height: auto; display: block; margin: 0 auto; }
.infographic-figure.inline { max-width: 520px; margin: 24px auto 8px; }
.infographic-caption {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin-top: 14px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  font-style: italic;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 700px) {
  .infographic-figure { margin: 28px auto; }
  .infographic-figure.inline { max-width: 100%; }
}

/* Home hero video section */
.hero-video-section { padding: 40px 0 60px; }
.hero-video-frame {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(13,148,136,0.20), 0 10px 30px rgba(12,20,38,0.10);
  background: var(--ink);
  border: 1px solid rgba(13,148,136,0.15);
}
.hero-video-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(45,212,191,0.4), transparent 40%, rgba(13,148,136,0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
}
.hero-video-frame video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
}

/* YouTube embed on Hyperflow page */
.video-embed { margin: 32px auto; max-width: 900px; }
.video-embed-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 16px;
  background: var(--ink);
  box-shadow: 0 20px 60px rgba(13,148,136,0.15), 0 8px 20px rgba(12,20,38,0.08);
  border: 1px solid rgba(13,148,136,0.15);
}
.video-embed-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 16px;
}
.video-embed .video-caption {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin-top: 14px;
  letter-spacing: 0.02em;
  font-style: italic;
}

@media (max-width: 700px) {
  .hero-video-section { padding: 24px 0 40px; }
  .hero-video-frame { border-radius: 14px; }
  .hero-video-frame video { border-radius: 14px; }
  .video-embed-wrapper { border-radius: 12px; }
  .video-embed-wrapper iframe { border-radius: 12px; }
}

/* Newsletter section */
.newsletter-section { padding: 80px 0; }
.newsletter-card { background: linear-gradient(135deg, var(--ink) 0%, #1a2942 100%); border-radius: 24px; padding: 60px 50px; text-align: center; position: relative; overflow: hidden; box-shadow: 0 20px 60px rgba(13,148,136,0.15); }
.newsletter-card::before { content: ''; position: absolute; top: -50%; right: -20%; width: 400px; height: 400px; background: radial-gradient(circle, rgba(20,184,166,0.18), transparent 65%); pointer-events: none; }
.newsletter-card::after { content: ''; position: absolute; bottom: -30%; left: -10%; width: 300px; height: 300px; background: radial-gradient(circle, rgba(45,212,191,0.12), transparent 65%); pointer-events: none; }
.newsletter-content { position: relative; z-index: 2; margin-bottom: 32px; }
.newsletter-card .section-label { color: var(--mint); }
.newsletter-card h2 { font-family: var(--display); font-size: clamp(28px, 4vw, 40px); font-weight: 700; color: white; letter-spacing: -0.02em; margin-bottom: 14px; }
.newsletter-card p { font-size: 17px; color: rgba(255,255,255,0.75); line-height: 1.6; max-width: 560px; margin: 0 auto; }

.newsletter-form { display: flex; gap: 12px; max-width: 500px; margin: 0 auto; position: relative; z-index: 2; flex-wrap: wrap; justify-content: center; }
.newsletter-form input[type="email"] { flex: 1; min-width: 240px; padding: 14px 18px; border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.08); color: white; border-radius: 10px; font-family: var(--body); font-size: 15px; transition: all 0.2s; }
.newsletter-form input[type="email"]::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-form input[type="email"]:focus { outline: none; border-color: var(--mint); background: rgba(255,255,255,0.12); }
.newsletter-form .btn-primary { padding: 14px 24px; white-space: nowrap; }

.newsletter-note { font-family: var(--mono); font-size: 12px; color: rgba(255,255,255,0.5) !important; margin-top: 20px !important; position: relative; z-index: 2; }

@media (max-width: 700px) {
  .newsletter-section { padding: 50px 0; }
  .newsletter-card { padding: 40px 24px; border-radius: 18px; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input[type="email"] { width: 100%; }
  .newsletter-form .btn-primary { width: 100%; justify-content: center; }
}

/* R&D Progress section */
.rnd-progress { padding: 100px 0; background: linear-gradient(to bottom, var(--bg), white); }
.rnd-progress .section-label { display: inline-block; margin-bottom: 12px; }
.rnd-progress h2 { font-family: var(--display); font-size: clamp(32px, 4vw, 48px); font-weight: 700; color: var(--ink); letter-spacing: -0.02em; margin-bottom: 16px; }
.rnd-progress .lead { font-size: 18px; color: var(--text-2); line-height: 1.7; margin-bottom: 60px; }

.news-item { background: white; border: 1px solid var(--line); border-radius: 20px; padding: 40px; margin-bottom: 32px; box-shadow: 0 4px 30px rgba(12,20,38,0.04); transition: all 0.3s; }
.news-item:hover { border-color: rgba(13,148,136,0.3); box-shadow: 0 12px 40px rgba(13,148,136,0.08); }

.news-meta { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.news-date { display: inline-block; padding: 6px 14px; background: var(--teal); color: white; font-family: var(--mono); font-size: 12px; font-weight: 600; border-radius: 6px; letter-spacing: 0.05em; }
.news-tag { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0.05em; text-transform: uppercase; }

.news-item h3 { font-family: var(--display); font-size: clamp(22px, 2.5vw, 28px); font-weight: 700; color: var(--ink); letter-spacing: -0.01em; margin-bottom: 16px; line-height: 1.3; }
.news-item p { font-size: 16px; color: var(--text-2); line-height: 1.7; margin-bottom: 20px; }
.news-item p:last-child { margin-bottom: 0; }
.news-item strong { color: var(--ink); font-weight: 600; }

.news-figure { margin: 28px auto; max-width: 700px; }
.news-figure img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); background: white; }
.news-figure .caption { font-family: var(--mono); font-size: 12px; color: var(--muted); text-align: center; margin-top: 12px; line-height: 1.5; letter-spacing: 0.02em; }

@media (max-width: 900px) {
  .rnd-progress { padding: 60px 0; }
  .news-item { padding: 28px 22px; border-radius: 16px; }
}

@media (max-width: 900px) {
  .nav-links { gap: 12px; flex-wrap: wrap; }
  .nav-links button { font-size: 13px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .tech-grid, .mode-grid, .arch-grid, .page-hero-grid, .key-features-grid, .content-block .two-col, .contact-grid, .team-grid, .achievements-grid { grid-template-columns: 1fr; }
  .gallery, .page-gallery, .page-gallery.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.tall { grid-row: auto; aspect-ratio: 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta { padding: 50px 28px; }
  section { padding: 60px 0; }
  .hero, .page-hero { padding: 50px 0 40px; }
  .container { padding: 0 20px; }
}

/* WordPress admin bar offset */
body.admin-bar .site-nav { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-nav { top: 46px; } }

/* WP defaults for content */
.entry-content > * { max-width: 800px; margin-left: auto; margin-right: auto; }
.entry-content h1, .entry-content h2, .entry-content h3 { font-family: var(--display); color: var(--ink); margin: 32px 0 16px; }
.entry-content p { margin-bottom: 16px; color: var(--text-2); line-height: 1.7; }
.entry-content img { border-radius: 12px; margin: 24px auto; }

/* Hyperflow philosophy callout */
.hf-philosophy { margin-top: 44px; padding: 36px; background: linear-gradient(135deg, rgba(13,148,136,0.07), rgba(45,212,191,0.03)); border: 1px solid rgba(13,148,136,0.2); border-radius: 20px; }
.hf-philo-tag { display: block; font-family: var(--mono); font-size: 12px; color: var(--teal); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }
.hf-philosophy h3 { font-family: var(--display); font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; color: var(--ink); letter-spacing: -0.02em; margin-bottom: 14px; }
.hf-philosophy p { color: var(--text-2); font-size: 16px; line-height: 1.65; margin-bottom: 14px; }
.hf-philosophy p:last-child { margin-bottom: 0; }
.hf-analogy { display: flex; gap: 18px; align-items: flex-start; background: white; border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; margin: 18px 0; }
.hf-analogy p { margin: 0; font-size: 15px; }
.hf-analogy-icon { flex-shrink: 0; width: 44px; height: 44px; border-radius: 10px; background: linear-gradient(135deg, var(--teal), var(--mint)); color: white; display: grid; place-items: center; }
.hf-analogy-icon svg { width: 24px; height: 24px; }
@media (max-width: 700px) { .hf-philosophy { padding: 24px; } .hf-analogy { flex-direction: column; } }

/* Battery Kit STL download cards */
.kit-dl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 36px 0 12px; }
.kit-dl-card { background: white; border: 1px solid var(--line); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; align-items: flex-start; transition: all 0.3s; }
.kit-dl-card:hover { border-color: var(--teal); transform: translateY(-3px); box-shadow: 0 14px 36px rgba(13,148,136,0.1); }
.kit-dl-card.pro { background: linear-gradient(135deg, rgba(13,148,136,0.08), rgba(45,212,191,0.03)); border-color: rgba(13,148,136,0.3); }
.kit-dl-tag { font-family: var(--mono); font-size: 11px; color: var(--teal); background: rgba(13,148,136,0.1); border: 1px solid rgba(13,148,136,0.25); padding: 5px 10px; border-radius: 6px; letter-spacing: 0.08em; margin-bottom: 14px; }
.kit-dl-card h3 { font-family: var(--display); font-size: 21px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; margin-bottom: 10px; }
.kit-dl-card p { color: var(--text-2); font-size: 15px; line-height: 1.6; margin-bottom: 20px; flex: 1; }
.kit-dl-note { font-size: 13px; color: var(--muted); margin-bottom: 32px; }
.kit-dl-note a { color: var(--teal); }
@media (max-width: 700px) { .kit-dl-grid { grid-template-columns: 1fr; } }

/* Battery Kit configuration cards */
.kit-config-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0; }
.kit-config-card { background: white; border: 1px solid var(--line); border-radius: 16px; padding: 24px; transition: all 0.3s; }
.kit-config-card:hover { border-color: var(--teal); transform: translateY(-3px); box-shadow: 0 12px 32px rgba(13,148,136,0.08); }
.kit-config-tag { display: inline-block; font-family: var(--mono); font-size: 11px; color: var(--teal); background: rgba(13,148,136,0.1); border: 1px solid rgba(13,148,136,0.25); padding: 4px 10px; border-radius: 6px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px; }
.kit-config-card h3 { font-family: var(--display); font-size: 19px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.kit-config-card p { font-size: 14px; color: var(--text-2); line-height: 1.55; margin-bottom: 14px; }
.kit-config-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.kit-config-meta span { font-family: var(--mono); font-size: 11px; color: var(--ink); background: var(--bg-3); border: 1px solid var(--line); padding: 4px 9px; border-radius: 999px; }
@media (max-width: 700px) { .kit-config-grid { grid-template-columns: 1fr; } }

/* Featured gallery row (large landscape images above the square grid) */
.gallery-featured { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 32px; }
.gallery-featured .gallery-item { aspect-ratio: 16/10; border-radius: 16px; }
.gallery-featured .gallery-item .caption { opacity: 1; font-size: 14px; padding: 18px 20px; }
.gallery-featured + .page-gallery { margin-top: 14px; }

/* APC performance section */
.apc-perf { background: var(--bg-3); }
.apc-perf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
.apc-perf-card { margin: 0; background: white; border: 1px solid var(--line); border-radius: 16px; padding: 20px 20px 14px; aspect-ratio: auto !important; cursor: zoom-in; overflow: hidden; }
.apc-perf-card img { width: 100%; height: auto !important; object-fit: contain !important; display: block; }
.apc-perf-card:hover img { transform: none; }
.apc-perf-card figcaption { font-family: var(--mono); font-size: 12px; color: var(--muted); text-align: center; margin-top: 10px; letter-spacing: 0.02em; }
.apc-perf-next { display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; align-items: center; margin-top: 28px; padding: 28px; background: linear-gradient(135deg, #0c1426 0%, #134e4a 100%); border-radius: 20px; }
.apc-perf-next-tag { display: block; font-family: var(--mono); font-size: 12px; color: #5eead4; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }
.apc-perf-next h3 { font-family: var(--display); font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; color: white; letter-spacing: -0.02em; margin-bottom: 12px; }
.apc-perf-next p { color: rgba(255,255,255,0.82); font-size: 15px; line-height: 1.65; margin: 0; }
.apc-perf-next p strong { color: white; }
.apc-perf-next .apc-perf-card { border-color: transparent; }

@media (max-width: 700px) {
  .gallery-featured, .apc-perf-grid, .apc-perf-next { grid-template-columns: 1fr; }
  .apc-perf-next { padding: 20px; }
}

/* Lab galleries (Hyperflow + APC): uniform landscape tiles, last row centered */
.lab-gallery { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 32px; }
.lab-gallery .gallery-item { flex: 0 0 calc((100% - 4 * 14px) / 5); aspect-ratio: 4 / 3; border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(12,20,38,0.06); transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s; }
.lab-gallery .gallery-item:hover { transform: translateY(-4px); border-color: var(--teal); box-shadow: 0 14px 32px rgba(13,148,136,0.16); }
@media (max-width: 900px) { .lab-gallery .gallery-item { flex-basis: calc((100% - 2 * 14px) / 3); } }
@media (max-width: 700px) { .lab-gallery { gap: 10px; } .lab-gallery .gallery-item { flex-basis: calc((100% - 10px) / 2); } }
.news-figure.wide { max-width: 900px; }
