/*
Theme Name: NovaKem
Theme URI: https://novakem.example
Author: NovaKem
Description: Deep-blue industrial corporate theme for chemical manufacturers — built for NovaKem Chemical, an advanced catalyst & specialty chemical solutions provider.
Version: 1.0.0
Requires PHP: 7.4
Text Domain: novakem
*/

/* ============ Reset & base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; background: var(--bg); }
body {
	margin: 0; background: transparent; color: var(--ink);
	font-family: var(--ff-body);
	font-size: 16px; line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--ff-head); font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

:root {
	--bg: #070b12;
	--panel: #0d1524;
	--panel-2: #111e34;
	--panel-3: #16263f;
	--line: rgba(178, 199, 224, .12);
	--line-strong: rgba(178, 199, 224, .22);
	--ink: #eef3fa;
	--ink-dim: #9fb1c9;
	--ink-mute: #5f7086;
	--accent: #4d9dff;
	--accent-2: #7fd4ff;
	--cyan: #2ee6ff;
	--indigo: #8b8cff;
	--violet: #b87bff;
	--grad: linear-gradient(120deg, var(--cyan) 0%, var(--accent) 55%, var(--indigo) 100%);
	--glow-cyan: 0 0 30px rgba(46, 230, 255, .45);
	--glow-accent: 0 0 34px rgba(77, 157, 255, .5);
	--steel: #c3ccd8;
	--safety: #ff7a29;
	--safety-ink: #1a0e04;
	--radius: 4px;
	--ff-head: 'Space Grotesk', 'Inter', sans-serif;
	--ff-body: 'Inter', sans-serif;
	--ff-mono: 'Space Mono', ui-monospace, monospace;
	--wrap: 1240px;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.mono { font-family: var(--ff-mono); letter-spacing: .06em; text-transform: uppercase; }

::selection { background: var(--accent); color: #04101f; }

/* ============ Background grid texture ============ */
body::before {
	content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
	background-image:
		linear-gradient(var(--line) 1px, transparent 1px),
		linear-gradient(90deg, var(--line) 1px, transparent 1px);
	background-size: 64px 64px;
	opacity: .35;
	mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 40%, transparent 100%);
}
html { background: var(--bg); }

/* ============ Ambient mesh + grain ============ */
.mesh-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.mesh-bg::before, .mesh-bg::after {
	content: ''; position: absolute; width: 62vmax; height: 62vmax; border-radius: 50%;
	filter: blur(90px); opacity: .28; mix-blend-mode: screen;
}
.mesh-bg::before { background: radial-gradient(circle, var(--cyan), transparent 62%); top: -18%; left: -12%; animation: nk-mesh-a 26s ease-in-out infinite alternate; }
.mesh-bg::after { background: radial-gradient(circle, var(--indigo), transparent 62%); bottom: -22%; right: -12%; animation: nk-mesh-b 30s ease-in-out infinite alternate; }
@keyframes nk-mesh-a { from { transform: translate(0, 0) scale(1); } to { transform: translate(12vw, 8vh) scale(1.22); } }
@keyframes nk-mesh-b { from { transform: translate(0, 0) scale(1.08); } to { transform: translate(-10vw, -8vh) scale(1.3); } }

.grain {
	position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .05; mix-blend-mode: overlay;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (prefers-reduced-motion: reduce) { .mesh-bg::before, .mesh-bg::after { animation: none; } }

#progress { position: fixed; top: 0; left: 0; height: 2px; width: 0%; background: var(--grad); box-shadow: var(--glow-cyan); z-index: 9999; transition: width .1s linear; }

/* ============ Custom cursor + trail ============ */
.cursor-trail { position: fixed; inset: 0; z-index: 9400; pointer-events: none; mix-blend-mode: screen; }
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; z-index: 9500; pointer-events: none; border-radius: 50%; transform: translate(-50%, -50%); }
.cursor-dot { width: 6px; height: 6px; background: var(--cyan); box-shadow: var(--glow-cyan); }
.cursor-ring { width: 32px; height: 32px; border: 1px solid rgba(46, 230, 255, .5); transition: width .25s ease, height .25s ease, border-color .25s ease, background .25s ease; }
html.has-cursor, html.has-cursor a, html.has-cursor button { cursor: none; }
body.cursor-hover .cursor-ring { width: 54px; height: 54px; background: rgba(46, 230, 255, .08); border-color: var(--cyan); }
@media (hover: none) { .cursor-dot, .cursor-ring, .cursor-trail { display: none; } }

/* ============ Preloader ============ */
#pre {
	position: fixed; inset: 0; z-index: 9900; background: var(--bg);
	display: flex; align-items: center; justify-content: center; gap: 16px;
	transition: opacity .6s ease, visibility .6s ease;
}
#pre.done { opacity: 0; visibility: hidden; }
#pre .pre-mark { font-family: var(--ff-head); font-size: 14px; letter-spacing: .3em; color: var(--ink-dim); text-transform: uppercase; }
#pre .pre-bar { width: 160px; height: 1px; background: var(--line); position: relative; overflow: hidden; }
#pre .pre-bar span { position: absolute; inset: 0; width: 0%; background: var(--accent); }

/* ============ Header ============ */
.site-head {
	position: fixed; top: 0; left: 0; right: 0; z-index: 900;
	display: flex; align-items: center; justify-content: space-between;
	padding: 22px 40px; transition: padding .3s ease, background .3s ease, border-color .3s ease;
	border-bottom: 1px solid transparent;
}
.site-head.is-scrolled { padding: 14px 40px; background: rgba(7,11,18,.86); backdrop-filter: blur(10px); border-color: var(--line); }
.brand { font-family: var(--ff-head); font-weight: 700; font-size: 20px; letter-spacing: .02em; display: flex; align-items: center; gap: 10px; }
.brand .mark { width: 26px; height: 26px; position: relative; flex: none; }
.brand .mark svg { width: 100%; height: 100%; }
.brand small { display: block; font-family: var(--ff-mono); font-size: 9px; letter-spacing: .18em; color: var(--ink-mute); font-weight: 400; text-transform: uppercase; }

#nav { display: flex; align-items: center; gap: 36px; }
#nav ul { display: flex; align-items: center; gap: 36px; margin: 0; padding: 0; list-style: none; }
#nav a { font-size: 13px; letter-spacing: .04em; color: var(--ink-dim); text-transform: uppercase; font-weight: 600; position: relative; padding: 4px 0; transition: color .2s; }
#nav a:hover, #nav a.current { color: var(--ink); }
#nav a::after { content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 1px; background: var(--accent); transition: width .25s ease; }
#nav a:hover::after { width: 100%; }

.head-tools { display: flex; align-items: center; gap: 20px; }
.head-cta {
	display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px;
	background: var(--safety); color: var(--safety-ink); font-weight: 700; font-size: 12px;
	letter-spacing: .05em; text-transform: uppercase; border-radius: var(--radius);
	transition: transform .2s ease, box-shadow .2s ease;
}
.head-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 24px -8px rgba(255,122,41,.6); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 26px; background: none; border: none; padding: 6px 0; }
.nav-toggle span { display: block; width: 100%; height: 1.5px; background: var(--ink); }

/* ============ Hero ============ */
.hero {
	position: relative; min-height: 100vh; display: flex; align-items: flex-end;
	padding: 160px 0 90px; overflow: hidden;
	background: radial-gradient(ellipse 70% 60% at 75% 20%, rgba(77,157,255,.16), transparent 60%);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; filter: grayscale(.4) brightness(.42) contrast(1.1); }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg) 0%, rgba(7,11,18,.55) 35%, var(--bg) 100%); }
.hero-net { position: absolute; inset: 0; z-index: 1; opacity: .55; }
.chem-tile {
	position: absolute; z-index: 1; width: 64px; aspect-ratio: 1; border: 1px solid var(--line-strong);
	border-radius: 12px; background: linear-gradient(160deg, rgba(46,230,255,.1), rgba(11,20,38,.45));
	backdrop-filter: blur(2px); display: grid; grid-template-rows: auto 1fr auto; padding: 8px 10px;
	box-shadow: inset 0 0 24px rgba(46,230,255,.12), 0 0 24px rgba(46,230,255,.06);
	animation: nk-tile-bob var(--d, 12s) ease-in-out var(--delay, 0s) infinite alternate;
}
.chem-tile .num { font-family: var(--ff-mono); font-size: 9px; color: var(--ink-dim); opacity: .8; }
.chem-tile .sym { font-family: var(--ff-head); font-weight: 700; font-size: 22px; text-align: center; color: var(--ink); text-shadow: 0 0 14px rgba(46,230,255,.5); }
.chem-tile .nm { font-size: 8px; text-align: right; color: var(--ink-dim); opacity: .75; text-transform: uppercase; letter-spacing: .06em; }
.chem-formula {
	position: absolute; z-index: 1; font-family: var(--ff-head); font-weight: 600; font-size: 15px;
	color: rgba(159,196,255,.55); letter-spacing: .05em; text-shadow: 0 0 16px rgba(77,157,255,.35);
	animation: nk-tile-bob var(--d, 14s) ease-in-out var(--delay, 0s) infinite alternate;
}
@keyframes nk-tile-bob { from { transform: translateY(8px); } to { transform: translateY(-14px); } }
@media (max-width: 900px) { .chem-tile, .chem-formula { display: none; } }
@media (prefers-reduced-motion: reduce) { .chem-tile, .chem-formula { animation: none; } }
.hero-inner { position: relative; z-index: 2; width: 100%; }
.hero-eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; }
.hero-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: var(--glow-cyan), 0 0 0 4px rgba(77,157,255,.2); }
.hero-eyebrow span { font-family: var(--ff-mono); font-size: 12px; letter-spacing: .2em; color: var(--accent-2); text-transform: uppercase; }
.hero h1 {
	font-size: clamp(40px, 6vw, 84px); line-height: 1.02; color: var(--ink);
	max-width: 16ch; margin-bottom: 28px;
}
.hero h1 em {
	font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text;
	-webkit-text-fill-color: transparent; color: transparent; filter: drop-shadow(0 0 22px rgba(46,230,255,.35));
}
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.hero-sub { font-size: 18px; color: var(--ink-dim); max-width: 46ch; margin-bottom: 40px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 64px; }
.btn {
	position: relative; overflow: hidden;
	display: inline-flex; align-items: center; gap: 10px; padding: 15px 28px;
	font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
	border-radius: var(--radius); transition: all .25s ease; border: 1px solid transparent;
}
.btn::after {
	content: ''; position: absolute; top: 0; left: -120%; width: 55%; height: 100%;
	background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
	transform: skewX(-20deg); transition: left .7s ease;
}
.btn:hover::after { left: 140%; }
.btn-primary { background: var(--safety); color: var(--safety-ink); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -10px rgba(255,122,41,.55); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); background: rgba(77,157,255,.08); box-shadow: var(--glow-cyan); }

.hero-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); padding-top: 28px; }
.hero-strip div { padding-right: 24px; border-right: 1px solid var(--line); }
.hero-strip div:last-child { border-right: none; }
.hero-strip strong { display: block; font-family: var(--ff-head); font-size: 30px; color: var(--ink); }
.hero-strip strong .unit { font-size: 15px; color: var(--accent-2); margin-left: 2px; }
.hero-strip span { font-family: var(--ff-mono); font-size: 11px; letter-spacing: .1em; color: var(--ink-mute); text-transform: uppercase; }

.scroll-cue { position: absolute; right: 40px; bottom: 40px; z-index: 2; writing-mode: vertical-rl; font-family: var(--ff-mono); font-size: 11px; letter-spacing: .2em; color: var(--ink-mute); text-transform: uppercase; display: flex; align-items: center; gap: 10px; }
.scroll-cue::after { content: ''; width: 1px; height: 46px; background: linear-gradient(var(--ink-mute), transparent); }

/* ============ Marquee ticker ============ */
.ticker { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--panel); overflow: hidden; position: relative; z-index: 2; }
.ticker-row { display: flex; white-space: nowrap; width: max-content; padding: 16px 0; animation: ticker 34s linear infinite; }
.ticker-row span { font-family: var(--ff-mono); font-size: 12px; letter-spacing: .12em; color: var(--ink-mute); text-transform: uppercase; padding: 0 28px; display: flex; align-items: center; gap: 28px; }
.ticker-row span em { color: var(--cyan); font-style: normal; text-shadow: var(--glow-cyan); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============ Section shell ============ */
.section { position: relative; z-index: 1; padding: 120px 0; }
.section-tight { padding: 80px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 56px; flex-wrap: wrap; }
.section-head .idx { font-family: var(--ff-mono); font-size: 12px; color: var(--accent-2); letter-spacing: .1em; display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.section-head .idx::before { content: ''; width: 26px; height: 2px; border-radius: 2px; background: var(--grad); box-shadow: var(--glow-cyan); }
.section-head h2 { font-size: clamp(28px, 3.4vw, 46px); max-width: 20ch; }
.section-head p { color: var(--ink-dim); max-width: 44ch; font-size: 15px; margin: 0; }
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.16,.8,.3,1), transform .8s cubic-bezier(.16,.8,.3,1); }
[data-reveal].in { opacity: 1; transform: translateY(0); }

/* ============ About split ============ */
.about-split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: center; }
.about-media { position: relative; aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.about-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.3) contrast(1.08) brightness(.9); }
.about-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(7,11,18,.85)); }
.about-media .tag { position: absolute; left: 20px; bottom: 20px; z-index: 2; font-family: var(--ff-mono); font-size: 11px; letter-spacing: .1em; color: var(--ink-dim); text-transform: uppercase; }
.about-media__badge {
	position: absolute; top: 20px; right: 20px; z-index: 2; text-align: right;
	background: rgba(7,11,18,.55); backdrop-filter: blur(10px); border: 1px solid var(--line-strong);
	border-radius: 14px; padding: 16px 20px; box-shadow: var(--glow-accent);
}
.about-media__badge strong { display: block; font-family: var(--ff-head); font-size: 32px; line-height: 1; }
.about-media__badge span { display: block; margin-top: 6px; font-family: var(--ff-mono); font-size: 10px; letter-spacing: .1em; color: var(--ink-dim); text-transform: uppercase; }
.about-copy p { color: var(--ink-dim); font-size: 16px; }
.about-list { margin-top: 32px; display: grid; gap: 18px; }
.about-list li { display: flex; gap: 16px; align-items: flex-start; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.about-list .n { font-family: var(--ff-mono); font-size: 12px; color: var(--accent-2); flex: none; padding-top: 3px; }
.about-list h4 { font-size: 16px; margin-bottom: 4px; }
.about-list p { font-size: 14px; color: var(--ink-mute); margin: 0; }

/* ============ Stats band ============ */
.stats-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--panel), var(--bg)); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-cell { padding: 56px 32px; border-right: 1px solid var(--line); text-align: left; }
.stat-cell:last-child { border-right: none; }
.stat-cell strong { font-family: var(--ff-head); font-size: 46px; color: var(--ink); display: flex; align-items: baseline; gap: 4px; }
.stat-cell strong .unit { font-size: 22px; color: var(--accent-2); }
.stat-cell strong .cnt, .hero-strip strong .cnt { filter: drop-shadow(0 0 18px rgba(46,230,255,.35)); }
.stat-cell span { display: block; margin-top: 10px; font-size: 13px; color: var(--ink-mute); }

/* ============ Category pills ============ */
.cat-rail { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 56px; }
.cat-rail a { padding: 9px 18px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-dim); transition: all .2s; }
.cat-rail a:hover, .cat-rail a.active { border-color: var(--accent); color: var(--ink); background: rgba(77,157,255,.1); }

/* ============ Product grid ============ */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-card {
	position: relative; display: block; background: var(--panel); border: 1px solid var(--line);
	border-radius: 16px; overflow: hidden;
	transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s ease, border-color .45s ease;
}
.product-card::before {
	content: ''; position: absolute; inset: 0; border-radius: 16px; padding: 1px; background: var(--grad);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .45s ease; pointer-events: none;
}
.product-card:hover { transform: translateY(-8px); box-shadow: 0 40px 70px -35px rgba(0,0,0,.7); }
.product-card:hover::before { opacity: 1; }

.product-card__media {
	position: relative; aspect-ratio: 16/11; display: grid; place-items: center;
	background: radial-gradient(120% 120% at 30% 0%, var(--panel-3), var(--bg));
	border-bottom: 1px solid var(--line);
}
.product-card__tag {
	position: absolute; top: 14px; left: 14px; z-index: 2; font-size: 10px; letter-spacing: .1em;
	color: var(--ink); padding: 6px 12px; border-radius: 999px; background: rgba(7,11,18,.55);
	backdrop-filter: blur(6px); border: 1px solid var(--line-strong);
}
.mol-svg { width: 62%; height: auto; overflow: visible; }
.mol-rot { transform-box: fill-box; transform-origin: center; animation: nk-mol-rot 40s linear infinite; }
.mol-orbit { transform-box: fill-box; transform-origin: center; animation: nk-mol-rot 11s linear infinite reverse; }
@keyframes nk-mol-rot { to { transform: rotate(360deg); } }
.mol-bond-base { fill: none; stroke: rgba(159,177,201,.35); stroke-width: 2; }
.mol-orbit-path { fill: none; stroke: rgba(159,177,201,.3); stroke-width: 1; stroke-dasharray: 2 6; }
.mol-bond-flow { fill: none; stroke: var(--cyan); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 3 9; filter: drop-shadow(0 0 5px rgba(46,230,255,.85)); animation: nk-mol-flow 2s linear infinite; }
@keyframes nk-mol-flow { to { stroke-dashoffset: -24; } }
.mol-atom { fill: var(--cyan); filter: drop-shadow(0 0 6px rgba(46,230,255,.75)); animation: nk-atom-pulse 3s ease-in-out infinite; }
.mol-atom:nth-child(2n) { animation-delay: -1s; }
.mol-atom:nth-child(3n) { animation-delay: -2s; }
.mol-atom--center { fill: var(--ink); filter: drop-shadow(0 0 8px rgba(238,243,250,.6)); }
.mol-electron { fill: var(--cyan); filter: drop-shadow(0 0 5px rgba(46,230,255,.9)); }
@keyframes nk-atom-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }
.mol-2 .mol-bond-flow, .mol-2 .mol-atom:not(.mol-atom--center), .mol-2 .mol-electron { stroke: var(--accent); fill: var(--accent); filter: drop-shadow(0 0 6px rgba(77,157,255,.75)); }
.mol-3 .mol-bond-flow, .mol-3 .mol-atom:not(.mol-atom--center), .mol-3 .mol-electron { stroke: var(--violet); fill: var(--violet); filter: drop-shadow(0 0 6px rgba(184,123,255,.75)); }
.product-card:hover .mol-rot { animation-duration: 14s; }
.product-card:hover .mol-bond-flow { animation-duration: 1s; }

.product-card__body { padding: 22px 24px 24px; }
.product-card .pc-num { font-family: var(--ff-mono); font-size: 12px; color: var(--ink-mute); }
.product-card h3 { font-size: 20px; margin: 8px 0 10px; }
.product-card p { font-size: 14px; color: var(--ink-mute); margin-bottom: 20px; min-height: 42px; }
.product-card .pc-meta { display: flex; justify-content: space-between; align-items: center; padding-top: 18px; border-top: 1px solid var(--line); font-family: var(--ff-mono); font-size: 11px; color: var(--ink-mute); text-transform: uppercase; }
.product-card .pc-arrow { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-strong); display: flex; align-items: center; justify-content: center; transition: all .25s ease; flex: none; }
.product-card:hover .pc-arrow { background: var(--grad); border-color: transparent; transform: rotate(45deg); box-shadow: var(--glow-cyan); }
.product-card .pc-arrow svg { width: 13px; height: 13px; }
@media (prefers-reduced-motion: reduce) { .mol-rot, .mol-orbit, .mol-bond-flow, .mol-atom { animation: none !important; } }

/* ============ Timeline (R&D) ============ */
.timeline { position: relative; padding-left: 40px; border-left: 1px solid var(--line); display: grid; gap: 48px; }
.timeline li { position: relative; }
.timeline li::before { content: ''; position: absolute; left: -45px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.timeline .yr { font-family: var(--ff-mono); color: var(--accent-2); font-size: 13px; letter-spacing: .1em; }
.timeline h4 { font-size: 20px; margin: 8px 0; }
.timeline p { color: var(--ink-mute); font-size: 14px; max-width: 60ch; margin: 0; }

/* ============ Global map ============ */
.map-section { position: relative; }
.map-wrap { position: relative; }
.map-wrap svg { width: 100%; height: auto; display: block; }
.map-wrap .land { fill: var(--panel-2); stroke: var(--line-strong); stroke-width: .6; }
.map-pin { fill: var(--safety); }
.map-pin-pulse { fill: none; stroke: var(--safety); stroke-width: 1; opacity: 0; transform-origin: center; animation: pinpulse 2.4s ease-out infinite; }
@keyframes pinpulse { 0% { opacity: .8; transform: scale(.3); } 100% { opacity: 0; transform: scale(3.2); } }
.map-legend { display: flex; gap: 32px; margin-top: 40px; flex-wrap: wrap; }
.map-legend div { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-dim); }
.map-legend strong { color: var(--ink); font-family: var(--ff-head); font-size: 20px; }

/* ============ Certifications wall ============ */
.cert-wall { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.cert-cell {
	background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
	padding: 30px 20px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center;
	transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.cert-cell:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: 0 30px 50px -30px rgba(0,0,0,.7); }
.cert-cell .cert-icon {
	width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
	background: var(--grad); box-shadow: var(--glow-accent); transition: box-shadow .35s ease;
}
.cert-cell:hover .cert-icon { box-shadow: var(--glow-cyan); }
.cert-cell svg { width: 22px; height: 22px; color: var(--bg); }
.cert-cell span { font-family: var(--ff-mono); font-size: 11px; letter-spacing: .08em; color: var(--ink-mute); text-transform: uppercase; }

/* ============ News grid ============ */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.news-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .25s ease, transform .25s ease; }
.news-card:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.news-card .nc-media { aspect-ratio: 16/10; overflow: hidden; background: var(--panel); }
.news-card .nc-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.5) brightness(.85); transition: transform .5s ease, filter .5s ease; }
.news-card:hover .nc-media img { transform: scale(1.05); filter: grayscale(0) brightness(.95); }
.news-card .nc-body { padding: 24px; }
.news-card .nc-cat { font-family: var(--ff-mono); font-size: 11px; letter-spacing: .1em; color: var(--accent-2); text-transform: uppercase; }
.news-card h3 { font-size: 18px; margin: 12px 0 10px; line-height: 1.3; }
.news-card .nc-date { font-family: var(--ff-mono); font-size: 11px; color: var(--ink-mute); text-transform: uppercase; }

/* ============ CTA / contact ============ */
.cta-band { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 100px 0; text-align: center; }
.cta-band h2 { font-size: clamp(28px, 4vw, 52px); max-width: 18ch; margin: 0 auto 24px; }
.cta-band p { color: var(--ink-dim); max-width: 50ch; margin: 0 auto 40px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; }
.contact-info h3 { font-size: 22px; margin-bottom: 20px; }
.contact-info ul { display: grid; gap: 20px; margin-top: 28px; }
.contact-info li { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.contact-info .ci-label { font-family: var(--ff-mono); font-size: 11px; letter-spacing: .1em; color: var(--ink-mute); text-transform: uppercase; display: block; margin-bottom: 6px; }
.contact-info .ci-val { font-size: 16px; color: var(--ink); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-family: var(--ff-mono); font-size: 11px; letter-spacing: .08em; color: var(--ink-mute); text-transform: uppercase; }
.form-field input, .form-field select, .form-field textarea {
	background: var(--panel-2); border: 1px solid var(--line); color: var(--ink);
	padding: 14px 16px; border-radius: var(--radius); font-size: 14px; transition: border-color .2s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--accent); }
.form-field textarea { resize: vertical; min-height: 120px; }
.form-submit { margin-top: 8px; }

/* ============ Footer ============ */
.site-foot { border-top: 1px solid var(--line); padding: 80px 0 32px; position: relative; z-index: 1; }
.foot-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 48px; padding-bottom: 60px; }
.foot-brand p { color: var(--ink-mute); font-size: 14px; max-width: 34ch; margin-top: 18px; }
.foot-col h5 { font-family: var(--ff-mono); font-size: 11px; letter-spacing: .1em; color: var(--ink-mute); text-transform: uppercase; margin-bottom: 20px; }
.foot-col ul { display: grid; gap: 12px; }
.foot-col a { font-size: 14px; color: var(--ink-dim); transition: color .2s; }
.foot-col a:hover { color: var(--accent-2); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 32px; border-top: 1px solid var(--line); flex-wrap: wrap; gap: 16px; }
.foot-bottom span { font-size: 12px; color: var(--ink-mute); }
.foot-social { display: flex; gap: 16px; }
.foot-social a { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: all .2s; }
.foot-social a:hover { border-color: var(--accent); color: var(--accent-2); }
.foot-social svg { width: 15px; height: 15px; }

/* ============ Inner pages (about/single/page) ============ */
.page-hero { padding: 170px 0 70px; position: relative; z-index: 1; border-bottom: 1px solid var(--line); }
.page-hero .kick { font-family: var(--ff-mono); font-size: 12px; letter-spacing: .12em; color: var(--accent-2); text-transform: uppercase; }
.page-hero h1 { font-size: clamp(32px, 5vw, 58px); margin: 16px 0 0; max-width: 24ch; }
.page-hero .ph-meta { display: flex; gap: 20px; margin-top: 22px; font-family: var(--ff-mono); font-size: 12px; color: var(--ink-mute); text-transform: uppercase; }

.entry { max-width: 760px; margin: 0 auto; font-size: 17px; color: var(--ink-dim); }
.entry h2 { color: var(--ink); font-size: 28px; margin: 48px 0 18px; }
.entry h3 { color: var(--ink); font-size: 21px; margin: 36px 0 14px; }
.entry p { margin-bottom: 20px; }
.entry ul, .entry ol { margin: 0 0 20px; padding-left: 22px; }
.entry li { margin-bottom: 8px; }
.entry a { color: var(--accent-2); border-bottom: 1px solid rgba(127,212,255,.3); }
.entry blockquote { border-left: 2px solid var(--accent); padding-left: 24px; margin: 32px 0; font-size: 19px; color: var(--ink); font-family: var(--ff-head); }
.entry img { border-radius: var(--radius); margin: 32px 0; border: 1px solid var(--line); }
.entry table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 14px; }
.entry table th, .entry table td { padding: 12px 16px; border: 1px solid var(--line); text-align: left; }
.entry table th { font-family: var(--ff-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-mute); background: var(--panel); }

.spec-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; margin: 0 auto 48px; max-width: 760px; }
.spec-card h4 { font-family: var(--ff-mono); font-size: 12px; letter-spacing: .1em; color: var(--accent-2); text-transform: uppercase; margin-bottom: 20px; }
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 32px; }
.spec-grid div { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.spec-grid .sk { display: block; font-family: var(--ff-mono); font-size: 11px; color: var(--ink-mute); text-transform: uppercase; margin-bottom: 4px; }
.spec-grid .sv { color: var(--ink); font-size: 15px; }

.related-strip { max-width: 760px; margin: 60px auto 0; padding-top: 40px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 24px; }
.related-strip a { font-size: 14px; color: var(--ink-dim); display: flex; flex-direction: column; gap: 6px; max-width: 320px; }
.related-strip a:last-child { text-align: right; align-items: flex-end; }
.related-strip .dir { font-family: var(--ff-mono); font-size: 11px; color: var(--ink-mute); text-transform: uppercase; }

/* ============ Archive / index list ============ */
.archive-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); max-width: 900px; margin: 0 auto; }
.archive-row { background: var(--bg); padding: 26px 28px; display: flex; align-items: center; gap: 24px; transition: background .2s; }
.archive-row:hover { background: var(--panel); }
.archive-row .ar-cat { font-family: var(--ff-mono); font-size: 11px; letter-spacing: .08em; color: var(--accent-2); text-transform: uppercase; width: 140px; flex: none; }
.archive-row h3 { font-size: 17px; flex: 1; }
.archive-row .ar-date { font-family: var(--ff-mono); font-size: 12px; color: var(--ink-mute); flex: none; }

/* ============ Widgets / helpers ============ */
.pagination { display: flex; justify-content: center; gap: 10px; margin-top: 56px; }
.pagination a, .pagination span { padding: 10px 16px; border: 1px solid var(--line); border-radius: var(--radius); font-family: var(--ff-mono); font-size: 12px; color: var(--ink-dim); }
.pagination .current { border-color: var(--accent); color: var(--ink); }

/* ============ Responsive ============ */
@media (max-width: 1080px) {
	.about-split, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
	.stats-grid { grid-template-columns: repeat(2, 1fr); }
	.stat-cell:nth-child(2) { border-right: none; }
	.product-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
	.cert-wall { grid-template-columns: repeat(3, 1fr); }
	.foot-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
	.wrap { padding: 0 20px; }
	#nav { position: fixed; top: 0; right: -100%; width: 80%; height: 100vh; background: var(--panel); flex-direction: column; justify-content: center; align-items: flex-start; gap: 26px; padding: 40px; transition: right .35s ease; z-index: 850; }
	#nav ul { flex-direction: column; align-items: flex-start; gap: 26px; }
	#nav.open { right: 0; }
	.nav-toggle { display: flex; }
	.hero-strip, .stats-grid, .product-grid, .news-grid, .cert-wall { grid-template-columns: 1fr; }
	.stat-cell, .stats-grid > * { border-right: none !important; border-bottom: 1px solid var(--line); }
	.form-row { grid-template-columns: 1fr; }
	.related-strip { flex-direction: column; }
	.related-strip a:last-child { text-align: left; align-items: flex-start; }
	.site-head, .site-head.is-scrolled { padding: 16px 20px; }
}

/* --- Section dropdown (nav) — theme-agnostic, added --- */
li:has(> .sub-menu){ position: relative; }
.sub-menu{ position:absolute; top:100%; left:0; min-width:210px; margin:12px 0 0; padding:8px; list-style:none; background:rgba(18,18,24,.97); -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px); border:1px solid rgba(255,255,255,.14); border-radius:12px; box-shadow:0 26px 60px -26px rgba(0,0,0,.75); display:none; z-index:500; }
li:hover > .sub-menu, li:focus-within > .sub-menu{ display:block; }
.sub-menu li{ margin:0; padding:0; list-style:none; }
.sub-menu a{ display:block; padding:.55em .85em; border-radius:7px; color:#f2f2f5 !important; white-space:nowrap; font-size:.9rem; text-transform:none !important; letter-spacing:normal !important; opacity:1 !important; }
.sub-menu a::before, .sub-menu a::after{ display:none !important; content:none !important; }
.sub-menu a:hover{ background:rgba(255,255,255,.13); color:#fff !important; }
