/* ── Reset & tokens ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:      #0B1929;
  --navy-mid:  #1B3A5C;
  --blue:      #2563EB;
  --blue-lt:   #3B82F6;
  --cyan:      #06B6D4;
  --slate:     #1E293B;
  --slate-mid: #475569;
  --slate-lt:  #94A3B8;
  --bg:        #F5F5F3;
  --bg-card:   #FFFFFF;
  --border:    #E2E8F0;
  --border-dk: #CBD5E1;
  --white:     #FFFFFF;
  --gold:      #D97706;
  --r:         6px;
  --r-lg:      12px;
  --sh:        0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --sh-md:     0 4px 12px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.05);
  --sh-lg:     0 12px 32px rgba(0,0,0,.10), 0 4px 8px rgba(0,0,0,.06);
  --t:         0.18s ease;

  /* Topic colours */
  --c-flow:           #1D4ED8;
  --c-cfd:            #065F46;
  --c-pipeline:       #92400E;
  --c-hydraulics:     #5B21B6;
  --c-rotating:       #1E3A5F;
  --c-structural:     #374151;
  --c-instrumentation:#0E7490;
  --c-process:        #7C2D12;
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--slate);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { text-decoration: none; }
img { display: block; max-width: 100%; }

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Utility bar ────────────────────────────────────────────────────────────── */
.util-bar {
  background: #070F1A;
  border-bottom: 1px solid rgba(255,255,255,.06);
  height: 34px;
  display: flex;
  align-items: center;
}
.util-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
}
.util-date { color: #64748B; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }
.util-links { display: flex; align-items: center; gap: 0.5rem; }
.util-link { color: #64748B; transition: color var(--t); }
.util-link:hover { color: #94A3B8; }
.util-sep { color: #2D3A4A; }

/* ── Masthead ───────────────────────────────────────────────────────────────── */
.masthead {
  background: var(--navy);
  border-bottom: 3px solid var(--blue);
}
.mast-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
}
.mast-logo-link {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--white);
}
.mast-logo-mark { width: 38px; height: 38px; flex-shrink: 0; }
.mast-wordmark { display: flex; flex-direction: column; }
.mast-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.01em;
}
.mast-tagline {
  font-size: 0.68rem;
  color: #4B6280;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 0.25rem;
}
.mast-issue-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.mast-issue-label { font-size: 0.6rem; color: #4B6280; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.mast-issue-num { font-size: 1.6rem; font-weight: 800; color: #1D4ED8; line-height: 1; letter-spacing: -0.02em; }

/* Topic nav */
.topic-nav {
  background: rgba(0,0,0,.35);
  border-top: 1px solid rgba(255,255,255,.05);
}
.topic-nav-inner {
  display: flex;
  align-items: center;
  gap: 0;
  height: 42px;
  overflow-x: auto;
  scrollbar-width: none;
}
.topic-nav-inner::-webkit-scrollbar { display: none; }
.tnav-link {
  font-size: 0.78rem;
  font-weight: 600;
  color: #94A3B8;
  padding: 0 1.1rem;
  height: 100%;
  display: flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  transition: color var(--t), border-color var(--t);
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.tnav-link:hover { color: #E2E8F0; border-bottom-color: var(--blue); }
.tnav-link--muted { color: #4B6280; }
.tnav-link--muted:hover { color: #64748B; border-bottom-color: #4B6280; }
.tnav-divider {
  flex: 1;
  display: block;
  border-left: 1px solid rgba(255,255,255,.07);
  height: 24px;
  margin: 0 0.5rem;
}

/* ── Sticky mini-header ─────────────────────────────────────────────────────── */
.sticky-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  background: rgba(11,25,41,.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(37,99,235,.3);
  transform: translateY(-100%);
  transition: transform 0.22s ease;
  height: 52px;
  display: flex;
  align-items: center;
}
.sticky-bar.visible { transform: translateY(0); }
.sticky-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.sticky-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}
.sticky-nav {
  display: flex;
  gap: 0.25rem;
  flex: 1;
}
.sticky-nav a {
  color: #64748B;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: var(--r);
  transition: color var(--t), background var(--t);
}
.sticky-nav a:hover { color: var(--white); background: rgba(255,255,255,.07); }

/* ── Ticker bar ─────────────────────────────────────────────────────────────── */
.ticker-bar {
  background: #040D18;
  height: 36px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(37,99,235,.2);
}
.ticker-label {
  flex-shrink: 0;
  background: var(--blue);
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 0.9rem;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--white);
  white-space: nowrap;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 0 100%);
  padding-right: 1.4rem;
}
.ticker-wrap {
  flex: 1;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 24px, black calc(100% - 24px), transparent);
}
.ticker-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  animation: ticker 100s linear infinite;
  padding-left: 2rem;
}
.ticker-track:hover { animation-play-state: paused; cursor: default; }
.ticker-item { font-size: 0.73rem; color: #8BA3BD; padding-right: 1rem; }
.ticker-sep  { color: #1D4ED8; padding-right: 1rem; font-weight: 700; }
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Hero strip ─────────────────────────────────────────────────────────────── */
.hero-strip {
  background: var(--navy);
  padding: 0;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 1px;
  background: rgba(255,255,255,.04);
}

/* Main featured article */
.hero-main {
  display: flex;
  flex-direction: column;
  background: #0D2038;
  position: relative;
  overflow: hidden;
  min-height: 480px;
}
.hero-main-thumb {
  height: 260px;
  position: relative;
  flex-shrink: 0;
}
.hero-thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, #0D2038 100%);
  z-index: 1;
}
.hero-main-body {
  padding: 1.75rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  flex: 1;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.28rem 0.8rem;
  border-radius: 2px;
  background: var(--blue);
  color: var(--white);
}
.hero-hl {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.2rem, 2.2vw, 1.75rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.25;
}
.hero-byline { font-size: 0.75rem; color: #4B6280; font-weight: 600; }
.hero-dek    { font-size: 0.88rem; color: #8BA3BD; line-height: 1.65; flex: 1; }
.hero-read-more {
  color: var(--blue-lt);
  font-size: 0.82rem;
  font-weight: 600;
  transition: color var(--t);
  align-self: flex-start;
}
.hero-read-more:hover { color: var(--cyan); }

/* Sub-hero cards */
.hero-side {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: rgba(255,255,255,.04);
}
.subhero-card {
  background: #0C1B2E;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: background var(--t);
}
.subhero-card:hover { background: #0F2240; }
.subhero-thumb {
  height: 140px;
  position: relative;
  flex-shrink: 0;
}
.subhero-body { padding: 1rem 1.25rem 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.subhero-tag {
  display: inline-block;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  width: fit-content;
}
.subhero-hl {
  font-size: 0.92rem;
  font-weight: 700;
  color: #C8D8E8;
  line-height: 1.35;
}
.subhero-byline { font-size: 0.7rem; color: #4B6280; margin-top: auto; }

/* ── Thumbnail color themes ─────────────────────────────────────────────────── */
.t-flow          { background: linear-gradient(135deg, #0E2B5C 0%, #1A4FA0 55%, #1565C0 100%); }
.t-cfd           { background: linear-gradient(135deg, #052E16 0%, #065F46 55%, #047857 100%); }
.t-pipeline      { background: linear-gradient(135deg, #3B1206 0%, #78280C 55%, #92400E 100%); }
.t-hydraulics    { background: linear-gradient(135deg, #2E1065 0%, #5B21B6 55%, #7C3AED 100%); }
.t-rotating      { background: linear-gradient(135deg, #071A36 0%, #1E3A5F 55%, #2563EB 100%); }
.t-structural    { background: linear-gradient(135deg, #111827 0%, #1F2937 55%, #374151 100%); }
.t-instrumentation{ background: linear-gradient(135deg, #042F2E 0%, #065E60 55%, #0E7490 100%); }
.t-process       { background: linear-gradient(135deg, #431407 0%, #7C2D12 55%, #9A3412 100%); }

/* Thumbnail pseudo-patterns */
.t-flow::after, .t-cfd::after, .t-pipeline::after, .t-hydraulics::after,
.t-rotating::after, .t-structural::after, .t-instrumentation::after, .t-process::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.12;
}
.t-flow::after          { background: repeating-linear-gradient(0deg, transparent, transparent 12px, rgba(255,255,255,.6) 12px, rgba(255,255,255,.6) 13px); }
.t-cfd::after           { background: radial-gradient(ellipse at 30% 60%, rgba(255,255,255,.3), transparent 55%), radial-gradient(ellipse at 70% 30%, rgba(255,255,255,.2), transparent 50%); opacity:.2; }
.t-pipeline::after      { background: repeating-linear-gradient(90deg, transparent, transparent 24px, rgba(255,255,255,.5) 24px, rgba(255,255,255,.5) 25px); }
.t-hydraulics::after    { background: repeating-linear-gradient(45deg, transparent, transparent 16px, rgba(255,255,255,.3) 16px, rgba(255,255,255,.3) 17px); }
.t-rotating::after      { background: radial-gradient(circle at center, rgba(255,255,255,.25) 0%, transparent 55%); opacity:.25; }
.t-structural::after    { background: repeating-linear-gradient(135deg, transparent, transparent 18px, rgba(255,255,255,.4) 18px, rgba(255,255,255,.4) 19px); }
.t-instrumentation::after{ background: linear-gradient(to right, rgba(255,255,255,.15) 0%, transparent 40%); opacity:.3; }
.t-process::after       { background: repeating-linear-gradient(180deg, transparent, transparent 20px, rgba(255,255,255,.35) 20px, rgba(255,255,255,.35) 21px); }

/* Hero main thumb large */
.hero-main-thumb { position: relative; }

/* ── Stats strip ────────────────────────────────────────────────────────────── */
.stats-strip {
  background: var(--blue);
}
.stats-inner {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}
.stat-cell {
  padding: 1.5rem 1rem;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}
.stat-cell:last-child { border-right: none; }
.stat-n {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat-l {
  display: block;
  font-size: 0.68rem;
  color: rgba(255,255,255,.65);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.stat-cell--live .stat-n { font-size: 1.75rem; }
.live-dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: #4ADE80;
  border-radius: 50%;
  margin-left: 4px;
  vertical-align: middle;
  animation: lpulse 2s ease infinite;
}
@keyframes lpulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .35; transform: scale(.65); }
}

/* ── Content layout ─────────────────────────────────────────────────────────── */
.content-wrap { background: var(--bg); padding: 2.5rem 0 3rem; }
.content-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
  align-items: start;
}

/* Topic sections */
.content-main { display: flex; flex-direction: column; gap: 2rem; }
.topic-section {}
.topic-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border-dk);
  margin-bottom: 1.25rem;
}
.topic-title {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--slate);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.topic-marker {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.topic-marker--flow          { background: var(--c-flow); }
.topic-marker--cfd           { background: var(--c-cfd); }
.topic-marker--pipeline      { background: var(--c-pipeline); }
.topic-marker--systems       { background: var(--c-hydraulics); }
.topic-more {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--blue);
  white-space: nowrap;
  transition: color var(--t);
}
.topic-more:hover { color: var(--blue-lt); }

.art-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

/* Article card */
.art-card {
  background: #ffffff;
  border-radius: var(--r-lg);
  border: 1px solid #E2E8F0;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.art-card:hover {
  box-shadow: 0 10px 28px rgba(0,0,0,.10), 0 3px 8px rgba(0,0,0,.06);
  transform: translateY(-4px);
  border-color: #CBD5E1;
}

/* Category thumbnail block */
.art-thumb {
  height: 110px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.art-body {
  padding: 1.25rem 1.25rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}
.art-tag {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 3px;
  width: fit-content;
}
.art-hl {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  color: #1E293B;
  margin: 0;
}
.art-dek {
  font-size: 0.83rem;
  color: #475569;
  line-height: 1.6;
  flex: 1;
  margin: 0;
}
.art-meta {
  font-size: 0.68rem;
  color: #94A3B8;
  font-weight: 600;
  padding-top: 0.5rem;
  border-top: 1px solid #F1F5F9;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Topic-coloured article tags */
.art-tag--flow           { background: #EFF6FF; color: var(--c-flow); }
.art-tag--cfd            { background: #ECFDF5; color: var(--c-cfd); }
.art-tag--pipeline       { background: #FFF7ED; color: var(--c-pipeline); }
.art-tag--hydraulics     { background: #F5F3FF; color: var(--c-hydraulics); }
.art-tag--rotating       { background: #EFF6FF; color: var(--c-rotating); }
.art-tag--structural     { background: #F9FAFB; color: var(--c-structural); }
.art-tag--instrumentation{ background: #ECFEFF; color: var(--c-instrumentation); }
.art-tag--process        { background: #FFF7ED; color: var(--c-process); }
.subhero-tag.art-tag--flow           { background: rgba(29,78,216,.18); color: #93C5FD; }
.subhero-tag.art-tag--cfd            { background: rgba(6,95,70,.18);  color: #6EE7B7; }
.subhero-tag.art-tag--pipeline       { background: rgba(146,64,14,.18); color: #FCD34D; }
.subhero-tag.art-tag--hydraulics     { background: rgba(91,33,182,.18); color: #C4B5FD; }
.subhero-tag.art-tag--rotating       { background: rgba(30,58,95,.18); color: #93C5FD; }
.subhero-tag.art-tag--structural     { background: rgba(55,65,81,.18); color: #D1D5DB; }
.subhero-tag.art-tag--instrumentation{ background: rgba(14,116,144,.18); color: #67E8F9; }
.subhero-tag.art-tag--process        { background: rgba(124,45,18,.18); color: #FCA5A5; }

/* Inline pull quote */
.inline-quote {
  background: var(--navy);
  border-radius: var(--r-lg);
  padding: 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
}
.inline-quote::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--blue);
}
.inline-quote-icon { width: 28px; height: 20px; color: var(--blue); opacity: .6; }
.inline-quote p {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  font-style: italic;
  color: #E2E8F0;
  line-height: 1.5;
}
.inline-quote cite {
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--blue-lt);
  letter-spacing: 0.04em;
}

.section-divider {
  height: 1px;
  background: var(--border);
}

/* ── Sidebar ────────────────────────────────────────────────────────────────── */
.content-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: sticky;
  top: 60px;
}
.sidebar-module {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}
.sidebar-mod-hd {
  background: var(--navy);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.65rem 1rem;
  border-bottom: 2px solid var(--blue);
}
.sidebar-mod-desc { font-size: 0.8rem; color: var(--slate-mid); padding: 0.85rem 1rem 0; line-height: 1.55; }

/* Current issue */
.issue-cover { padding: 1rem; }
.issue-cover-art {
  height: 120px;
  background: var(--navy);
  border-radius: var(--r);
  overflow: hidden;
  position: relative;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cover-wave {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  border-radius: 2px;
}
.cover-wave-1 { top: 38%; background: linear-gradient(90deg, transparent, #2563EB 20%, #06B6D4 80%, transparent); opacity:.6; }
.cover-wave-2 { top: 52%; background: linear-gradient(90deg, transparent, #1D4ED8 30%, #2563EB 70%, transparent); opacity:.4; }
.cover-wave-3 { top: 64%; background: linear-gradient(90deg, transparent, #06B6D4 25%, #2563EB 75%, transparent); opacity:.25; }
.cover-logo-mark {
  position: relative;
  z-index: 2;
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.04em;
  text-shadow: 0 0 40px rgba(37,99,235,.5);
}
.issue-cover-info { display: flex; flex-direction: column; gap: 0.3rem; }
.ic-title { font-size: 0.72rem; font-weight: 700; color: var(--slate); }
.ic-issue { font-size: 1.1rem; font-weight: 800; color: var(--blue); line-height: 1; }
.ic-date  { font-size: 0.68rem; color: var(--slate-lt); margin-bottom: 0.5rem; }
.ic-cta   { display: block; }

/* Newsletter sidebar */
.sidebar-sub-form { padding: 0.85rem 1rem 1rem; display: flex; flex-direction: column; gap: 0.65rem; }
.sidebar-sub-form input {
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--r);
  font-size: 0.83rem;
  color: var(--slate);
  font-family: inherit;
  outline: none;
  transition: border-color var(--t), box-shadow var(--t);
  background: var(--white);
}
.sidebar-sub-form input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.sidebar-sub-form input::placeholder { color: var(--slate-lt); }
.sub-msg { font-size: 0.78rem; color: #16A34A; padding: 0 1rem 0.75rem; }
.sub-msg--error { color: #DC2626; }
.sub-msg[hidden] { display: none; }

/* Trending */
.trending-list { list-style: none; padding: 0.5rem 0; }
.trending-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}
.trending-item:last-child { border-bottom: none; }
.trending-num {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--border-dk);
  line-height: 1;
  flex-shrink: 0;
  padding-top: 1px;
  font-variant-numeric: tabular-nums;
}
.trending-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--slate);
  line-height: 1.4;
  transition: color var(--t);
}
.trending-link:hover { color: var(--blue); }

/* Events */
.events-list { list-style: none; padding: 0.5rem 0; }
.event-item {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0.5rem;
  align-items: start;
}
.event-item:last-child { border-bottom: none; }
.event-date {
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-top: 2px;
}
.event-name { font-size: 0.78rem; color: var(--slate); line-height: 1.4; }

/* Sidebar promo */
.sidebar-module--promo .sidebar-mod-desc { margin-bottom: 0; }
.sidebar-module--promo .btn-outline-dark {
  display: block;
  margin: 0.75rem 1rem 1rem;
}

/* ── Buttons ────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.5rem;
  border-radius: var(--r);
  font-weight: 600;
  font-size: 0.875rem;
  font-family: inherit;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--t);
  white-space: nowrap;
}
.btn-primary { background: var(--blue); color: var(--white); border-color: var(--blue); }
.btn-primary:hover { background: var(--blue-lt); border-color: var(--blue-lt); box-shadow: 0 4px 12px rgba(37,99,235,.35); transform: translateY(-1px); }
.btn-outline-dark { background: transparent; color: var(--slate); border-color: var(--border-dk); }
.btn-outline-dark:hover { border-color: var(--slate-mid); background: var(--bg); }
.btn-sm   { padding: 0.45rem 1rem; font-size: 0.8rem; }
.btn-full { width: 100%; }
.section-label {
  display: inline-block;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

/* ── Consulting services ─────────────────────────────────────────────────────── */
.services-section {
  background: var(--white);
  padding: 5rem 0;
  border-top: 1px solid var(--border);
}
.services-hd {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.services-hd h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); color: var(--slate); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.service-card {
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--white);
  transition: box-shadow var(--t), transform var(--t), border-color var(--t);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t);
}
.service-card:hover { box-shadow: var(--sh-lg); transform: translateY(-4px); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.svc-icon {
  width: 40px; height: 40px;
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.svc-icon svg { width: 20px; height: 20px; }
.svc-icon--flow           { background: #EFF6FF; color: var(--c-flow); }
.svc-icon--hydraulics     { background: #F5F3FF; color: var(--c-hydraulics); }
.svc-icon--cfd            { background: #ECFDF5; color: var(--c-cfd); }
.svc-icon--pipeline       { background: #FFF7ED; color: var(--c-pipeline); }
.svc-icon--process        { background: #FFF7ED; color: var(--c-process); }
.svc-icon--rd             { background: #F0F9FF; color: var(--c-instrumentation); }
.service-card h3 { font-size: 0.95rem; margin-bottom: 0.6rem; }
.service-card p  { font-size: 0.83rem; color: var(--slate-mid); line-height: 1.65; }

/* ── About section ───────────────────────────────────────────────────────────── */
.about-section { background: var(--bg); padding: 5rem 0; border-top: 1px solid var(--border); }
.about-inner {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 4rem;
  align-items: start;
}
.about-text h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); margin-bottom: 1rem; }
.about-text p  { font-size: 0.9rem; color: var(--slate-mid); line-height: 1.75; margin-bottom: 0.9rem; }
.about-checks { list-style: none; margin-top: 1.5rem; }
.about-checks li {
  padding: 0.5rem 0 0.5rem 1.6rem;
  position: relative;
  font-size: 0.85rem;
  color: var(--slate-mid);
  border-bottom: 1px solid var(--border);
}
.about-checks li:first-child { border-top: 1px solid var(--border); }
.about-checks li::before { content: '✓'; position: absolute; left: 0; color: var(--blue); font-weight: 700; }
.about-stats-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.about-stat {
  background: var(--bg-card);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.about-stat-n { font-size: 1.75rem; font-weight: 800; color: var(--blue); letter-spacing: -0.02em; }
.about-stat-l { font-size: 0.72rem; font-weight: 600; color: var(--slate-lt); text-transform: uppercase; letter-spacing: 0.06em; }

/* ── Contact section ─────────────────────────────────────────────────────────── */
.contact-section { background: var(--white); padding: 5rem 0; border-top: 1px solid var(--border); }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4rem;
  align-items: start;
}
.contact-info h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); margin-bottom: 1rem; }
.contact-info > p { font-size: 0.9rem; color: var(--slate-mid); margin-bottom: 2rem; }
.contact-details { display: flex; flex-direction: column; gap: 1rem; }
.contact-item { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.85rem; color: var(--slate-mid); }
.contact-icon { width: 16px; height: 16px; color: var(--blue); flex-shrink: 0; margin-top: 2px; }
.contact-form {
  background: var(--bg);
  padding: 2rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--r);
  font-size: 0.83rem;
  color: var(--slate);
  font-family: inherit;
  outline: none;
  transition: border-color var(--t), box-shadow var(--t);
  background: var(--white);
  appearance: none;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.contact-form select { color: var(--slate-mid); cursor: pointer; }
.contact-form textarea { resize: vertical; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--slate-lt); }

/* ── Footer ──────────────────────────────────────────────────────────────────── */
.site-footer { background: #040D18; padding: 4rem 0 0; }
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.footer-brand {}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #94A3B8;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.footer-brand p {
  font-size: 0.8rem;
  color: #2D4A6A;
  line-height: 1.75;
  margin-bottom: 0.5rem;
}
.footer-reg { font-size: 0.68rem !important; color: #1A2C40 !important; }
.footer-col h4 {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #2D4A6A;
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a { font-size: 0.8rem; color: #2D4A6A; transition: color var(--t); }
.footer-col a:hover { color: #4B6280; }
.footer-bottom { padding: 1.25rem 0; }
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.72rem;
  color: #1A2C40;
}

/* ── Gate overlay ────────────────────────────────────────────────────────────── */
#gate-popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  animation: gfadein .2s ease;
}
#gate-popup[hidden] { display: none; }
@keyframes gfadein { from { opacity: 0; } to { opacity: 1; } }
.gate-box {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 2.25rem;
  width: 100%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  box-shadow: 0 30px 70px rgba(0,0,0,.5);
  animation: gslideup .22s ease;
}
@keyframes gslideup {
  from { transform: translateY(18px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.gate-title { font-size: 0.85rem; font-weight: 700; color: var(--slate-lt); text-align: center; }
.gate-close {
  position: absolute;
  top: 0.9rem; right: 0.9rem;
  background: none; border: none;
  color: var(--slate-lt);
  font-size: 1rem;
  cursor: pointer;
  padding: 0.3rem 0.5rem;
  border-radius: var(--r);
  transition: all var(--t);
}
.gate-close:hover { background: var(--bg); color: var(--slate); }
#gate-pass {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--r);
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color var(--t), box-shadow var(--t);
}
#gate-pass:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.gate-error { color: #EF4444; font-size: 0.83rem; text-align: center; }
#gate-error[hidden] { display: none; }

/* ── Responsive ──────────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .content-layout  { grid-template-columns: 1fr 280px; gap: 1.75rem; }
  .footer-inner    { grid-template-columns: 1fr 1fr; }
  .footer-brand    { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .hero-inner          { grid-template-columns: 1fr; }
  .hero-side           { flex-direction: row; }
  .subhero-card        { flex: 1; }
  .content-layout      { grid-template-columns: 1fr; }
  .content-sidebar     { position: static; flex-direction: row; flex-wrap: wrap; }
  .sidebar-module      { flex: 1 1 280px; }
  .about-inner         { grid-template-columns: 1fr; }
  .about-stats-panel   { order: -1; }
  .contact-inner       { grid-template-columns: 1fr; }
  .services-grid       { grid-template-columns: repeat(2, 1fr); }
  .stats-inner         { grid-template-columns: repeat(3, 1fr); }
  .mast-title          { font-size: 1.2rem; }
}

@media (max-width: 700px) {
  .hero-side           { flex-direction: column; }
  .art-grid            { grid-template-columns: 1fr 1fr; }
  .services-grid       { grid-template-columns: 1fr; }
  .stats-inner         { grid-template-columns: repeat(3, 1fr); }
  .mast-tagline        { display: none; }
  .topic-nav           { display: none; }
  .footer-inner        { grid-template-columns: 1fr; gap: 1.5rem; }
  .form-row            { grid-template-columns: 1fr; }
  .util-links          { display: none; }
}

@media (max-width: 480px) {
  .art-grid            { grid-template-columns: 1fr; }
  .stats-inner         { grid-template-columns: repeat(2, 1fr); }
  .stat-cell--live     { display: none; }
  .hero-main-thumb     { height: 180px; }
  .ticker-label        { font-size: 0.55rem; padding: 0 0.65rem 0 0.65rem; }
  .mast-inner          { flex-wrap: wrap; gap: 0.75rem; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
}
