/* ===========================================================
   FINANCIAL SOLUTION JAND LLC
   Single-file premium industrial site · dark, gold-accented
   Palette: #080f1a · #c8a96e · #f4f0e8 · #8a9ab0
   Type:    Cormorant Garamond (display) · Jost (UI)
   =========================================================== */

/* ---------- TOKENS ---------- */
:root {
  --black:      #080f1a;
  --black-2:    #0d1626;
  --black-3:    #131e33;
  --gold:       #c8a96e;
  --gold-hi:    #e0c388;
  --gold-lo:    #a4884e;
  --cream:      #f4f0e8;
  --cream-2:    #e6dfd0;
  --steel:      #8a9ab0;
  --steel-2:    #5a6b82;
  --rule:       rgba(200, 169, 110, 0.18);
  --rule-soft:  rgba(244, 240, 232, 0.08);
  --shadow-gold:0 18px 40px -20px rgba(200, 169, 110, 0.45);

  --serif: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  --sans:  'Jost', 'Inter', system-ui, -apple-system, sans-serif;
  --mono:  'Jost', ui-monospace, monospace;

  --maxw:  1240px;
  --pad-x: clamp(20px, 4vw, 56px);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--cream);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

/* ---------- ATOMS ---------- */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.serif { font-family: var(--serif); font-weight: 500; letter-spacing: -0.005em; }
.h-display { font-family: var(--serif); font-weight: 500; line-height: 1.02; letter-spacing: -0.01em; }
.h-section { font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 4.8vw, 58px); line-height: 1.08; letter-spacing: -0.005em; }
.h-section em { font-style: italic; color: var(--gold); font-weight: 400; }

.eyebrow {
  font-family: var(--sans);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--gold);
  display: inline-flex; align-items: center; gap: 14px;
}
.eyebrow::before {
  content: ""; display: inline-block;
  width: 28px; height: 1px; background: var(--gold); opacity: 0.7;
}

.section-num {
  font-family: var(--sans);
  font-size: 11px; letter-spacing: 0.32em;
  text-transform: uppercase; color: var(--steel);
}

.lede {
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.7;
  color: rgba(244,240,232,0.78);
  max-width: 60ch;
}

.gold-rule {
  display: block;
  width: 64px; height: 2px;
  background: var(--gold);
  margin: 18px 0 22px;
}

/* ---------- BUTTONS ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 26px;
  font-family: var(--sans);
  font-weight: 500; font-size: 13px;
  letter-spacing: 0.18em; text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .25s ease;
}
.btn .arr {
  width: 14px; height: 10px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 10'><path d='M9 1l4 4-4 4M0 5h13' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='square'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 10'><path d='M9 1l4 4-4 4M0 5h13' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='square'/></svg>") center/contain no-repeat;
  transition: transform .25s ease;
}
.btn:hover .arr { transform: translateX(4px); }
.btn-primary { background: var(--gold); color: var(--black); border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-hi); box-shadow: var(--shadow-gold); }
.btn-ghost { background: transparent; color: var(--cream); border-color: rgba(244,240,232,0.4); }
.btn-ghost:hover { background: var(--cream); color: var(--black); border-color: var(--cream); }
.btn-outline-gold { background: transparent; color: var(--gold); border-color: var(--gold); }
.btn-outline-gold:hover { background: var(--gold); color: var(--black); }
.btn-whatsapp { background: #25d366; color: #00210e; border-color: #25d366; }
.btn-whatsapp:hover { background: #1eb955; }

/* Ripple */
.ripple {
  position: absolute; border-radius: 50%; transform: scale(0);
  background: rgba(255,255,255,0.35); pointer-events: none;
  animation: ripple .55s ease-out;
}
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

/* ---------- REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.reveal[data-delay="5"] { transition-delay: .40s; }

/* =============================================================
   1. NAVBAR
   ============================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 22px 0;
  transition: background .35s ease, padding .25s ease, border-color .25s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  padding: 14px 0;
  background: rgba(8, 15, 26, 0.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--rule);
}
.nav .row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-logo { display: inline-flex; align-items: center; gap: 14px; }
.nav-logo svg { width: 42px; height: 42px; }
.nav-logo .wm { font-family: var(--serif); font-size: 22px; line-height: 1; color: var(--cream); font-weight: 500; letter-spacing: 0.01em; }
.nav-logo .sub { display:block; font-family: var(--sans); font-size: 9.5px; letter-spacing: 0.36em; color: var(--gold); margin-top: 4px; text-transform: uppercase; }

.nav-menu { display: flex; align-items: center; gap: 34px; }
.nav-menu a {
  font-family: var(--sans);
  font-size: 13px; font-weight: 400; letter-spacing: 0.06em;
  color: rgba(244,240,232,0.85);
  position: relative; padding: 6px 0;
  transition: color .2s ease;
}
.nav-menu a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: var(--gold);
  transition: right .25s ease;
}
.nav-menu a:hover { color: var(--cream); }
.nav-menu a:hover::after { right: 0; }

.nav-cta { display: flex; align-items: center; gap: 14px; }
.hamburger {
  display: none; width: 44px; height: 44px;
  background: transparent; border: 1px solid var(--rule);
  position: relative; cursor: pointer;
}
.hamburger span {
  position: absolute; left: 11px; right: 11px; height: 1px;
  background: var(--cream); transition: transform .25s ease, opacity .2s ease, top .25s ease;
}
.hamburger span:nth-child(1) { top: 15px; }
.hamburger span:nth-child(2) { top: 21px; }
.hamburger span:nth-child(3) { top: 27px; }
.hamburger.open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

.mobile-overlay {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(8, 15, 26, 0.98);
  backdrop-filter: blur(8px);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 24px;
  opacity: 0; pointer-events: none;
  transition: opacity .35s ease;
}
.mobile-overlay.open { opacity: 1; pointer-events: auto; }
.mobile-overlay a {
  font-family: var(--serif); font-size: 32px; color: var(--cream); font-weight: 500;
}
.mobile-overlay a:hover { color: var(--gold); }

/* =============================================================
   2. HERO
   ============================================================= */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding: 160px 0 120px;
  overflow: hidden;
  background:
    radial-gradient(900px 600px at 85% 20%, rgba(200,169,110,0.12), transparent 60%),
    radial-gradient(700px 500px at 10% 90%, rgba(138,154,176,0.08), transparent 70%),
    linear-gradient(180deg, #080f1a 0%, #0a1426 100%);
}
/* refinery silhouette */
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(transparent 0 88%, rgba(200,169,110,0.15) 88%, transparent 88.4%),
    repeating-linear-gradient(90deg, transparent 0 80px, rgba(200,169,110,0.04) 80px 81px);
  pointer-events: none;
}
.hero-bg-svg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; opacity: 0.5;
}
.hero-particles { position: absolute; inset: 0; pointer-events: none; }
.particle {
  position: absolute; width: 4px; height: 4px;
  border-radius: 50%; background: var(--gold);
  opacity: 0; animation: float linear infinite;
  box-shadow: 0 0 8px rgba(200,169,110,0.6);
}
@keyframes float {
  0%   { opacity: 0; transform: translateY(20px); }
  10%  { opacity: 0.9; }
  90%  { opacity: 0.9; }
  100% { opacity: 0; transform: translateY(-100vh); }
}

.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; position: relative; z-index: 2; }
.hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(46px, 6vw, 84px); line-height: 1.02; letter-spacing: -0.01em; color: var(--cream); }
.hero h1 em { font-style: italic; color: var(--gold); font-weight: 400; }
.hero .kicker { color: var(--gold); margin-bottom: 24px; }
.hero .sub { font-family: var(--sans); font-size: clamp(16px, 1.3vw, 19px); color: rgba(244,240,232,0.78); line-height: 1.65; margin-top: 28px; max-width: 56ch; }
.hero .ctas { display: flex; gap: 14px; margin-top: 38px; flex-wrap: wrap; }
.hero .meta {
  display: flex; gap: 26px; flex-wrap: wrap;
  margin-top: 44px; padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-family: var(--sans); font-size: 12px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--steel);
}
.hero .meta b { color: var(--cream); font-weight: 600; }

/* Hero visual — engineered card */
.hero-visual {
  position: relative;
  aspect-ratio: 4/5;
  border: 1px solid var(--rule);
  background:
    radial-gradient(circle at 50% 35%, rgba(200,169,110,0.16), transparent 60%),
    linear-gradient(180deg, #0d1626 0%, #080f1a 100%);
  overflow: hidden;
}
.hero-visual .corners > i {
  position: absolute; width: 14px; height: 14px; border: 0 solid var(--gold);
}
.hero-visual .corners > i:nth-child(1) { top: 14px; left: 14px; border-top-width: 1px; border-left-width: 1px; }
.hero-visual .corners > i:nth-child(2) { top: 14px; right: 14px; border-top-width: 1px; border-right-width: 1px; }
.hero-visual .corners > i:nth-child(3) { bottom: 14px; left: 14px; border-bottom-width: 1px; border-left-width: 1px; }
.hero-visual .corners > i:nth-child(4) { bottom: 14px; right: 14px; border-bottom-width: 1px; border-right-width: 1px; }
.hero-visual .label-tl, .hero-visual .label-br {
  position: absolute; font-family: var(--sans); font-size: 10px;
  letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold); opacity: 0.85;
}
.hero-visual .label-tl { top: 24px; left: 28px; }
.hero-visual .label-br { bottom: 24px; right: 28px; opacity: 0.55; }

/* Scroll indicator */
.scroll-ind {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: 10px; letter-spacing: 0.32em;
  text-transform: uppercase; color: var(--steel);
  z-index: 2;
}
.scroll-ind .track {
  width: 1px; height: 48px; background: rgba(200,169,110,0.25); position: relative; overflow: hidden;
}
.scroll-ind .track::after {
  content: ""; position: absolute; left: 0; right: 0; top: -20px; height: 20px;
  background: var(--gold); animation: scrollDot 2.2s ease-in-out infinite;
}
@keyframes scrollDot {
  0%   { top: -20px; }
  60%  { top: 48px; }
  100% { top: 48px; }
}

/* =============================================================
   3. METRICS
   ============================================================= */
.metrics {
  background: linear-gradient(180deg, #080f1a 0%, #0a1426 100%);
  border-top: 1px solid var(--gold);
  padding: clamp(60px, 7vw, 96px) 0;
}
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.metric { padding: 0 32px; border-left: 1px solid var(--rule); display: flex; flex-direction: column; gap: 14px; }
.metric:first-child { border-left: 0; padding-left: 0; }
.metric .ico { width: 36px; height: 36px; color: var(--gold); }
.metric .n {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(48px, 6vw, 76px); line-height: 0.95; color: var(--cream);
}
.metric .n sup {
  font-family: var(--sans); font-size: 12px; color: var(--gold);
  letter-spacing: 0.18em; margin-left: 8px; position: relative; top: -1.8em;
}
.metric .lbl {
  font-family: var(--sans); font-size: 12px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--steel);
}
.metric .note { font-size: 13px; color: rgba(244,240,232,0.55); line-height: 1.5; max-width: 22ch; }

/* =============================================================
   GENERIC SECTION
   ============================================================= */
section.block { padding: clamp(90px, 10vw, 140px) 0; position: relative; }
.section-head { display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: end; margin-bottom: clamp(48px, 6vw, 72px); }
.section-head .right { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }

/* =============================================================
   4. PRODUCTS
   ============================================================= */
.products {
  background: linear-gradient(180deg, #0a1426 0%, #080f1a 100%);
}
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.product {
  background: linear-gradient(180deg, #0d1626 0%, #0a1320 100%);
  border: 1px solid var(--rule);
  padding: 32px 28px 28px;
  position: relative;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease, background .35s ease;
}
.product:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 24px 48px -20px rgba(200,169,110,0.25);
  background: linear-gradient(180deg, #11192e 0%, #0a1320 100%);
}
.product .ico {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--rule);
  margin-bottom: 22px;
  color: var(--gold);
  transition: border-color .35s ease, background .35s ease;
}
.product:hover .ico { border-color: var(--gold); background: rgba(200,169,110,0.06); }
.product .num {
  position: absolute; top: 22px; right: 24px;
  font-family: var(--sans); font-size: 10px; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--steel);
}
.product h3 { font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 1.15; color: var(--cream); margin: 0; }
.product p { font-size: 14px; color: rgba(244,240,232,0.7); line-height: 1.6; margin-top: 10px; }
.product .specs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.product .specs span {
  font-family: var(--sans); font-size: 10px; letter-spacing: 0.16em;
  padding: 5px 9px; border: 1px solid var(--rule); color: var(--steel);
  text-transform: uppercase;
}
.product-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--rule-soft);
}
.product-foot a {
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold);
  display: inline-flex; align-items: center; gap: 8px;
  transition: gap .2s ease;
}
.product-foot a:hover { gap: 12px; }
.product-foot .ds {
  font-family: var(--sans); font-size: 10px; letter-spacing: 0.22em;
  color: var(--steel);
}

/* =============================================================
   5. SECTORS
   ============================================================= */
.sectors-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: stretch; }
.sectors-visual {
  position: relative; min-height: 580px;
  background:
    radial-gradient(circle at 30% 30%, rgba(200,169,110,0.18), transparent 60%),
    linear-gradient(160deg, #0d1626 0%, #080f1a 100%);
  border: 1px solid var(--rule);
  overflow: hidden;
}
.sectors-visual .label {
  position: absolute; top: 22px; left: 26px;
  font-family: var(--sans); font-size: 10px; letter-spacing: 0.32em;
  text-transform: uppercase; color: var(--gold); opacity: 0.85;
}
.sectors-visual .footer-label {
  position: absolute; bottom: 22px; right: 26px;
  font-family: var(--sans); font-size: 10px; letter-spacing: 0.32em;
  text-transform: uppercase; color: var(--gold); opacity: 0.55;
}
.sectors-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.sector {
  background: #0a1320;
  padding: 26px 22px;
  display: flex; flex-direction: column; gap: 12px;
  min-height: 145px;
  transition: background .3s ease;
}
.sector:hover { background: #10192c; }
.sector .ico { width: 32px; height: 32px; color: var(--gold); }
.sector h4 { font-family: var(--serif); font-weight: 500; font-size: 20px; line-height: 1.2; color: var(--cream); margin: 0; }
.sector p { font-size: 13px; color: rgba(244,240,232,0.6); line-height: 1.5; margin: 0; }

/* =============================================================
   6. ABOUT
   ============================================================= */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 72px; align-items: start; }
.about p { font-size: 15.5px; line-height: 1.75; color: rgba(244,240,232,0.78); margin: 0; }
.about p + p { margin-top: 18px; }
.mv-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 40px; }
.mv-card { background: #0a1320; border: 1px solid var(--rule); padding: 28px 24px; }
.mv-card .ico { width: 38px; height: 38px; color: var(--gold); margin-bottom: 16px; }
.mv-card h5 { font-family: var(--serif); font-weight: 500; font-size: 22px; color: var(--cream); margin: 0 0 8px; }
.mv-card p { font-size: 14px; line-height: 1.6; color: rgba(244,240,232,0.7); }

.values-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 22px; }
.value-card {
  background: transparent; border: 1px solid var(--rule);
  padding: 26px 22px;
  display: flex; flex-direction: column; gap: 10px;
  transition: background .25s ease, border-color .25s ease;
}
.value-card:hover { background: #0a1320; border-color: var(--gold); }
.value-card .n { font-family: var(--sans); font-size: 10px; letter-spacing: 0.32em; color: var(--gold); }
.value-card h5 { font-family: var(--serif); font-weight: 500; font-size: 22px; color: var(--cream); margin: 0; }
.value-card p { font-size: 13px; color: rgba(244,240,232,0.65); line-height: 1.55; margin: 0; }

/* About visual */
.about-visual {
  position: sticky; top: 100px;
  background: #0a1320; border: 1px solid var(--rule); padding: 36px 32px;
  border-radius: 2px;
}
.about-visual .stamp {
  position: absolute; top: 24px; right: 28px;
  font-family: var(--sans); font-size: 10px; letter-spacing: 0.3em;
  color: var(--gold); text-transform: uppercase;
}
.about-visual h4 { font-family: var(--serif); font-weight: 500; font-size: 26px; color: var(--cream); margin: 0 0 22px; }
.about-visual .row { display: grid; grid-template-columns: 130px 1fr; gap: 14px; padding: 14px 0; border-top: 1px solid var(--rule-soft); font-size: 14px; }
.about-visual .row:first-of-type { border-top: 1px solid var(--rule); }
.about-visual .row .k { font-family: var(--sans); font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--steel); padding-top: 2px; }
.about-visual .row .v { color: rgba(244,240,232,0.85); line-height: 1.55; }
.about-visual .row .v b { color: var(--cream); font-weight: 600; }

/* Timeline */
.timeline {
  margin-top: clamp(56px, 7vw, 88px);
  position: relative;
  padding: 36px 0 0;
}
.timeline::before {
  content: ""; position: absolute; top: 60px; left: 0; right: 0; height: 1px;
  background: var(--rule);
}
.timeline-track { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; position: relative; }
.tl-step { position: relative; padding-top: 48px; }
.tl-step .dot {
  position: absolute; top: 54px; left: 0;
  width: 14px; height: 14px;
  transform: translateY(-50%) rotate(45deg);
  background: var(--gold); box-shadow: 0 0 0 4px rgba(200,169,110,0.15);
}
.tl-step .yr { font-family: var(--serif); font-weight: 500; font-size: 30px; color: var(--gold); line-height: 1; margin: 14px 0 6px; }
.tl-step h5 { font-family: var(--serif); font-weight: 500; font-size: 18px; color: var(--cream); margin: 0; }
.tl-step p { font-size: 12.5px; color: rgba(244,240,232,0.6); margin-top: 8px; line-height: 1.55; }

/* =============================================================
   7. CERTIFICATIONS
   ============================================================= */
.certs {
  background: #060b14;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.certs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 56px; }
.cert {
  background: linear-gradient(180deg, #0a1320 0%, #060b14 100%);
  border: 1px solid var(--rule); padding: 30px 22px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 14px;
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
}
.cert:hover { transform: translateY(-4px); border-color: var(--gold); background: linear-gradient(180deg, #10192c 0%, #060b14 100%); }
.cert .badge {
  width: 78px; height: 78px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 2px;
  background: rgba(200,169,110,0.04);
  transition: background .3s ease;
}
.cert:hover .badge { background: rgba(200,169,110,0.12); }
.cert .badge b { font-family: var(--serif); font-weight: 500; font-size: 16px; color: var(--gold); letter-spacing: 0.04em; }
.cert .badge small { font-family: var(--sans); font-size: 8.5px; letter-spacing: 0.22em; color: var(--gold); text-transform: uppercase; }
.cert h5 { font-family: var(--serif); font-weight: 500; font-size: 18px; color: var(--cream); margin: 4px 0 0; }
.cert p { font-size: 12.5px; color: rgba(244,240,232,0.6); line-height: 1.55; margin: 0; }
.certs-foot { margin-top: 40px; display: flex; justify-content: center; max-width: 60ch; margin-left: auto; margin-right: auto; }
.certs-foot p { text-align: center; color: rgba(244,240,232,0.65); font-size: 14px; line-height: 1.65; }

/* =============================================================
   8. CLIENTS & TESTIMONIALS
   ============================================================= */
.marquee {
  overflow: hidden; padding: 36px 0;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  background: #060b14;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; gap: 64px; width: max-content; animation: marquee 38s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }
.client {
  font-family: var(--serif); font-weight: 500; font-size: 22px;
  color: rgba(244,240,232,0.55); letter-spacing: 0.04em;
  display: inline-flex; align-items: center; gap: 10px;
  white-space: nowrap;
}
.client small { font-family: var(--sans); font-size: 9.5px; letter-spacing: 0.28em; color: var(--gold); text-transform: uppercase; }
.client .dot { width: 4px; height: 4px; background: var(--gold); border-radius: 50%; opacity: 0.6; }

.testimonials {
  background: linear-gradient(180deg, #060b14 0%, #080f1a 100%);
  padding: clamp(80px, 9vw, 130px) 0;
}
.test-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.test {
  background: #0a1320; border: 1px solid var(--rule); padding: 36px 32px;
  display: flex; flex-direction: column; gap: 22px;
}
.test .quote-mark { font-family: var(--serif); font-size: 64px; color: var(--gold); line-height: 0.4; font-style: italic; }
.test p { font-family: var(--serif); font-weight: 500; font-style: italic; font-size: 18px; line-height: 1.5; color: var(--cream); margin: 0; }
.test .attr { display: flex; flex-direction: column; gap: 4px; padding-top: 20px; border-top: 1px solid var(--rule-soft); margin-top: auto; }
.test .attr .name { font-family: var(--sans); font-weight: 600; color: var(--cream); font-size: 15px; }
.test .attr .role { font-family: var(--sans); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.test .attr .co { font-size: 12px; color: var(--steel); }

/* =============================================================
   9. PROCESS
   ============================================================= */
.process { background: linear-gradient(180deg, #080f1a 0%, #0a1426 100%); }
.proc-track {
  position: relative;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px;
}
.proc-svg-line {
  position: absolute; top: 32px; left: 6%; right: 6%; height: 2px;
  pointer-events: none;
}
.proc-svg-line line {
  stroke: var(--gold); stroke-width: 1.5; stroke-dasharray: 1200; stroke-dashoffset: 1200;
  transition: stroke-dashoffset 1.8s ease;
}
.proc-track.in .proc-svg-line line { stroke-dashoffset: 0; }
.proc-step { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; position: relative; }
.proc-step .pip {
  width: 64px; height: 64px;
  border: 1px solid var(--gold);
  border-radius: 50%; background: var(--black);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 500; font-size: 26px; color: var(--gold);
  position: relative; z-index: 2;
}
.proc-step .pip::after {
  content: ""; position: absolute; inset: -6px;
  border: 1px solid rgba(200,169,110,0.18); border-radius: 50%;
}
.proc-step .ico-row { display: flex; align-items: center; gap: 10px; }
.proc-step .ico-row svg { width: 22px; height: 22px; color: var(--gold); }
.proc-step .ico-row span { font-family: var(--sans); font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold); }
.proc-step h4 { font-family: var(--serif); font-weight: 500; font-size: 22px; line-height: 1.2; color: var(--cream); margin: 0; }
.proc-step p { font-size: 13.5px; color: rgba(244,240,232,0.65); line-height: 1.6; margin: 0; }

/* =============================================================
   10. BLOG
   ============================================================= */
.blog { background: linear-gradient(180deg, #0a1426 0%, #080f1a 100%); }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.article {
  background: #0a1320; border: 1px solid var(--rule);
  display: flex; flex-direction: column;
  transition: transform .35s ease, border-color .35s ease;
}
.article:hover { transform: translateY(-4px); border-color: var(--gold); }
.article .thumb {
  aspect-ratio: 16/10;
  background:
    radial-gradient(circle at 30% 40%, rgba(200,169,110,0.25), transparent 60%),
    repeating-linear-gradient(45deg, #0d1626 0 12px, #0a1320 12px 24px);
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--rule);
}
.article .thumb svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.article-body { padding: 28px 28px 30px; display: flex; flex-direction: column; gap: 14px; }
.article .cat {
  font-family: var(--sans); font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--gold);
}
.article .cat::before {
  content: ""; width: 6px; height: 6px; background: var(--gold);
}
.article h3 { font-family: var(--serif); font-weight: 500; font-size: 24px; line-height: 1.2; color: var(--cream); margin: 0; }
.article p { font-size: 14px; color: rgba(244,240,232,0.7); line-height: 1.6; margin: 0; }
.article .foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--rule-soft); }
.article .date { font-family: var(--sans); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--steel); }
.article .more {
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold);
  display: inline-flex; gap: 8px; align-items: center;
}

/* =============================================================
   11. CONTACT
   ============================================================= */
.contact { background: linear-gradient(180deg, #080f1a 0%, #060b14 100%); }
.contact-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 56px; align-items: start; }
.contact-info {
  background: #0a1320; border: 1px solid var(--rule); padding: 40px 36px;
}
.contact-info h3 { font-family: var(--serif); font-weight: 500; font-size: 28px; color: var(--cream); margin: 0 0 22px; }
.ci-row { display: grid; grid-template-columns: 32px 1fr; gap: 14px; align-items: start; padding: 16px 0; border-top: 1px solid var(--rule-soft); }
.ci-row:first-of-type { border-top: 1px solid var(--rule); }
.ci-row .ico { color: var(--gold); width: 22px; height: 22px; margin-top: 3px; }
.ci-row h6 { font-family: var(--sans); font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--steel); margin: 0 0 4px; font-weight: 500; }
.ci-row p, .ci-row a { font-size: 14.5px; color: var(--cream); line-height: 1.55; margin: 0; }
.ci-row a:hover { color: var(--gold); }
.contact-info .wa { margin-top: 22px; display: flex; }

.map-placeholder {
  margin-top: 24px;
  aspect-ratio: 16/9;
  background:
    radial-gradient(circle at 50% 50%, rgba(200,169,110,0.15), transparent 60%),
    repeating-linear-gradient(0deg, transparent 0 24px, rgba(200,169,110,0.08) 24px 25px),
    repeating-linear-gradient(90deg, transparent 0 24px, rgba(200,169,110,0.08) 24px 25px),
    #060b14;
  border: 1px solid var(--rule);
  position: relative;
}
.map-pin {
  position: absolute; top: 50%; left: 48%; transform: translate(-50%, -100%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.map-pin .pin {
  width: 18px; height: 18px; background: var(--gold);
  transform: rotate(45deg); border-radius: 2px;
  box-shadow: 0 0 0 4px rgba(200,169,110,0.2);
}
.map-pin .lbl { font-family: var(--sans); font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); transform: rotate(0); }

/* form */
.form-card { background: #0a1320; border: 1px solid var(--rule); padding: 40px 36px; }
.form-card h3 { font-family: var(--serif); font-weight: 500; font-size: 28px; color: var(--cream); margin: 0 0 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--sans); font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--steel); }
.field input, .field select, .field textarea {
  background: transparent;
  border: 0; border-bottom: 1px solid var(--rule);
  padding: 12px 0;
  color: var(--cream); font-family: var(--sans); font-size: 15px;
  transition: border-color .25s ease;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 110px; border: 1px solid var(--rule); padding: 14px; }
.field select option { background: #0a1320; color: var(--cream); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field .err { color: #e07c7c; font-size: 11px; min-height: 14px; letter-spacing: 0.08em; }

.form-card .submit-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; flex-wrap: wrap; }
.form-card .note { font-family: var(--sans); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--steel); }
.success {
  margin-top: 16px;
  padding: 14px 18px; background: rgba(200,169,110,0.08); border: 1px solid var(--gold);
  color: var(--cream); font-size: 14px;
  display: none;
}
.success.show { display: block; }

.response-banner {
  margin-top: 40px;
  text-align: center;
  padding: 22px;
  background: linear-gradient(90deg, transparent, rgba(200,169,110,0.1), transparent);
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.response-banner .t { font-family: var(--serif); font-weight: 500; font-size: 24px; color: var(--gold); font-style: italic; }
.response-banner .s { font-family: var(--sans); font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--steel); margin-top: 8px; }

/* =============================================================
   FOOTER
   ============================================================= */
footer.site {
  background: #060b14; padding: 72px 0 28px;
  position: relative;
}
footer.site::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
footer.site .top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 44px; border-bottom: 1px solid var(--rule);
}
footer.site .brand .slog { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 17px; margin-top: 18px; }
footer.site .brand .desc { font-size: 13.5px; color: rgba(244,240,232,0.65); line-height: 1.65; margin-top: 18px; max-width: 38ch; }
footer.site h6 { font-family: var(--sans); font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold); margin: 0 0 18px; }
footer.site ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
footer.site ul a { font-size: 13.5px; color: rgba(244,240,232,0.7); }
footer.site ul a:hover { color: var(--gold); }
.socials { display: flex; gap: 12px; margin-top: 20px; }
.socials a {
  width: 38px; height: 38px;
  border: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: center;
  color: var(--cream);
  transition: border-color .25s ease, background .25s ease, color .25s ease;
}
.socials a:hover { border-color: var(--gold); background: var(--gold); color: var(--black); }

footer.site .bottom {
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: rgba(244,240,232,0.45);
  flex-wrap: wrap; gap: 14px;
}
footer.site .ssl { display: inline-flex; align-items: center; gap: 8px; color: var(--gold); }
footer.site .ssl svg { width: 14px; height: 14px; }
footer.site .legal { display: flex; gap: 22px; }
footer.site .legal a:hover { color: var(--gold); }

/* =============================================================
   RESPONSIVE — 1024 / 768
   ============================================================= */
@media (max-width: 1024px) {
  .nav-menu, .nav-cta .btn:not(.btn-primary) { display: none; }
  .hamburger { display: inline-block; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 480px; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 0; }
  .metric:nth-child(3) { border-left: 0; padding-left: 0; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .sectors-grid { grid-template-columns: 1fr; }
  .sectors-visual { min-height: 360px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { position: static; }
  .timeline-track { grid-template-columns: 1fr; gap: 8px; }
  .timeline::before { left: 6px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .tl-step { padding-top: 0; padding-left: 28px; }
  .tl-step .dot { top: 12px; left: 0; }
  .certs-grid { grid-template-columns: repeat(2, 1fr); }
  .proc-track { grid-template-columns: 1fr; }
  .proc-svg-line { display: none; }
  .blog-grid { grid-template-columns: 1fr; }
  .test-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  footer.site .top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .section-head { grid-template-columns: 1fr; }
  .mv-row { grid-template-columns: 1fr; }
  .values-row { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .products-grid { grid-template-columns: 1fr; }
  .sectors-list { grid-template-columns: 1fr; }
  .certs-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  footer.site .top { grid-template-columns: 1fr; }
  footer.site .bottom { justify-content: center; text-align: center; }
  footer.site .legal { justify-content: center; flex-wrap: wrap; }
}

/* =============================================================
   MULTI-PAGE EXTENSIONS — added for split site
   ============================================================= */

/* Active nav link */
.nav-menu a.active { color: var(--cream); }
.nav-menu a.active::after { right: 0; }

/* Page hero (compact, used on inner pages) */
.page-hero {
  position: relative;
  padding: clamp(170px, 16vw, 220px) 0 clamp(70px, 8vw, 110px);
  background:
    radial-gradient(900px 500px at 85% 30%, rgba(200,169,110,0.12), transparent 60%),
    radial-gradient(700px 400px at 10% 90%, rgba(138,154,176,0.08), transparent 70%),
    linear-gradient(180deg, #080f1a 0%, #0a1426 100%);
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(90deg, transparent 0 80px, rgba(200,169,110,0.04) 80px 81px),
    repeating-linear-gradient(0deg, transparent 0 80px, rgba(200,169,110,0.04) 80px 81px);
  pointer-events: none;
  mask: radial-gradient(ellipse 80% 60% at 50% 50%, #000 30%, transparent 80%);
}
.page-hero .crumbs {
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--steel);
  display: inline-flex; gap: 14px; align-items: center;
  margin-bottom: 22px;
}
.page-hero .crumbs a { color: var(--gold); transition: color .2s ease; }
.page-hero .crumbs a:hover { color: var(--gold-hi); }
.page-hero .crumbs .sep { opacity: 0.4; }
.page-hero h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(48px, 7vw, 92px);
  line-height: 1.02; letter-spacing: -0.01em; color: var(--cream);
  max-width: 18ch;
}
.page-hero h1 em { font-style: italic; color: var(--gold); font-weight: 400; }
.page-hero .ph-lede {
  font-family: var(--sans); font-size: clamp(15px, 1.3vw, 18px);
  color: rgba(244,240,232,0.78);
  line-height: 1.65; margin-top: 28px; max-width: 60ch;
}
.page-hero .ph-grid {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 56px; align-items: end;
  position: relative; z-index: 2;
}
.page-hero .ph-aside {
  border-left: 1px solid var(--rule);
  padding: 6px 0 6px 28px;
  font-family: var(--sans); font-size: 12px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--steel);
  line-height: 2;
}
.page-hero .ph-aside b { color: var(--gold); font-weight: 500; }
.page-hero .ph-aside .row { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; border-top: 1px solid var(--rule-soft); }
.page-hero .ph-aside .row:first-child { border-top: 0; }

/* CTA strip (cross-page bottom call-to-action) */
.cta-strip {
  background: linear-gradient(180deg, #060b14 0%, #080f1a 100%);
  border-top: 1px solid var(--rule);
  padding: clamp(70px, 8vw, 110px) 0;
}
.cta-strip .grid {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 56px; align-items: center;
}
.cta-strip h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 4.4vw, 54px); line-height: 1.05; color: var(--cream); }
.cta-strip h2 em { font-style: italic; color: var(--gold); font-weight: 400; }
.cta-strip p { font-size: 15px; color: rgba(244,240,232,0.72); line-height: 1.7; margin-top: 18px; max-width: 56ch; }
.cta-strip .ctas { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.cta-strip .right { display: flex; flex-direction: column; gap: 14px; }
.cta-strip .badge {
  border: 1px solid var(--rule);
  padding: 22px 24px;
  background: rgba(200,169,110,0.04);
  display: flex; flex-direction: column; gap: 6px;
}
.cta-strip .badge .k {
  font-family: var(--sans); font-size: 10px; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--gold);
}
.cta-strip .badge .v {
  font-family: var(--serif); font-size: 22px; color: var(--cream); font-style: italic;
}

/* Teaser cards (home page links to products / sectors) */
.teasers {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.teaser {
  background: linear-gradient(180deg, #0d1626 0%, #0a1320 100%);
  border: 1px solid var(--rule);
  padding: 36px 32px;
  display: flex; flex-direction: column; gap: 16px;
  min-height: 320px;
  position: relative;
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.teaser:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 24px 48px -20px rgba(200,169,110,0.22);
}
.teaser .num {
  font-family: var(--sans); font-size: 10px; letter-spacing: 0.32em;
  text-transform: uppercase; color: var(--gold);
}
.teaser h3 {
  font-family: var(--serif); font-weight: 500;
  font-size: 30px; line-height: 1.15; color: var(--cream); margin: 0;
}
.teaser p { font-size: 14px; color: rgba(244,240,232,0.7); line-height: 1.6; margin: 0; }
.teaser .arrow-link {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--gold);
  transition: gap .2s ease;
}
.teaser:hover .arrow-link { gap: 16px; }

/* Big anchor index page */
.idx-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--rule); }
.idx-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
  align-items: center;
  padding: 48px 0;
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  padding-right: 32px; padding-left: 32px;
  background: transparent;
  transition: background .3s ease;
}
.idx-card:nth-child(2n) { border-right: 0; }
.idx-card:hover { background: rgba(200,169,110,0.03); }
.idx-card .num { font-family: var(--serif); font-style: italic; font-size: 90px; color: var(--gold); line-height: 0.8; opacity: 0.4; }
.idx-card h4 { font-family: var(--serif); font-weight: 500; font-size: 28px; line-height: 1.15; color: var(--cream); margin: 0; }
.idx-card p { font-size: 13.5px; color: rgba(244,240,232,0.65); line-height: 1.55; margin: 8px 0 0; }
.idx-card .arrow-link {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 14px;
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--gold);
}

@media (max-width: 1024px) {
  .page-hero .ph-grid { grid-template-columns: 1fr; gap: 32px; }
  .page-hero .ph-aside { border-left: 0; border-top: 1px solid var(--rule); padding: 22px 0 0; }
  .cta-strip .grid { grid-template-columns: 1fr; gap: 32px; }
  .teasers { grid-template-columns: 1fr; }
  .idx-grid { grid-template-columns: 1fr; }
  .idx-card { border-right: 0; padding: 36px 0; }
}


/* Anchor scroll offset for fixed navbar (used for cross-page hashes like about.html#timeline) */
[id] { scroll-margin-top: 110px; }

/* =============================================================
   MOBILE OPTIMIZATIONS — iOS + Android
   Order matters: these rules come last so they override above.
   ============================================================= */

/* Sensible touch defaults */
html {
  -webkit-text-size-adjust: 100%;      /* iOS doesn't auto-inflate copy on rotate */
  -webkit-tap-highlight-color: rgba(200, 169, 110, 0.18);
}
a, button, [role="button"], input[type="submit"], .btn {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;           /* removes 300ms tap delay */
}

/* Honor user motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .hero-particles, .particle { display: none !important; }
  .marquee-track { animation: none !important; transform: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ============= TABLET / SMALL DESKTOP (≤ 1024) — already exists above; this just refines ============= */
@media (max-width: 1024px) {
  /* Tighter nav on tablet */
  .nav { padding: 14px 0; }
  .nav.scrolled { padding: 10px 0; }
  .nav .row { height: auto; }
  .nav-logo svg { width: 36px; height: 36px; }
  .nav-logo .wm { font-size: 20px; }
  .nav-logo .sub { font-size: 9px; letter-spacing: 0.32em; }

  /* Lighter scroll-anchor offset */
  [id] { scroll-margin-top: 84px; }
}

/* ============= PHONE (≤ 768) ============= */
@media (max-width: 768px) {
  :root {
    --pad-x: 20px;
  }

  /* Inputs ≥ 16px so iOS doesn't auto-zoom on focus */
  .field input,
  .field select,
  .field textarea { font-size: 16px; }

  /* iOS dynamic viewport — bottom bar can hide/show */
  .hero { min-height: 100svh; padding: 110px 0 64px; }

  /* Reduce hero typography */
  .hero h1 { font-size: clamp(38px, 9vw, 58px); line-height: 1.04; }
  .hero .sub { font-size: 15.5px; margin-top: 22px; max-width: 100%; }
  .hero .kicker { font-size: 10px; letter-spacing: 0.28em; margin-bottom: 18px; }
  .hero .ctas { gap: 10px; margin-top: 28px; }
  .hero .meta { gap: 12px 22px; padding-top: 18px; margin-top: 30px; font-size: 11px; letter-spacing: 0.14em; }
  .hero-grid { gap: 36px; }
  .hero-visual { max-width: 100%; aspect-ratio: 1/1; }
  .scroll-ind { display: none; }
  .hero-particles { display: none; } /* perf on phones */

  /* Page hero (inner pages) — less giant on phone */
  .page-hero { padding: 110px 0 56px; }
  .page-hero h1 { font-size: clamp(36px, 9vw, 54px); max-width: 100%; }
  .page-hero .ph-lede { margin-top: 22px; font-size: 15px; }
  .page-hero .ph-grid { gap: 28px; }
  .page-hero .ph-aside { padding-top: 18px; font-size: 11px; letter-spacing: 0.16em; line-height: 1.9; }
  .page-hero .crumbs { font-size: 10px; gap: 10px; margin-bottom: 16px; }

  /* Section rhythm — tighten on phone */
  section.block { padding: 64px 0; }
  .section-head { gap: 14px; margin-bottom: 36px; }
  .section-head .right { gap: 12px; }
  .h-section { font-size: clamp(28px, 7.5vw, 40px); line-height: 1.1; }
  .gold-rule { margin: 12px 0 16px; }
  .lede { font-size: 15px; line-height: 1.65; }

  /* Metrics — stack neatly */
  .metrics { padding: 48px 0; }
  .metrics-grid { grid-template-columns: 1fr; gap: 0; }
  .metric {
    padding: 22px 0;
    border-left: 0;
    border-top: 1px solid var(--rule);
  }
  .metric:first-child { border-top: 0; padding-top: 0; }
  .metric .n { font-size: 48px; }
  .metric .lbl { font-size: 11px; letter-spacing: 0.18em; }
  .metric .note { max-width: 100%; }

  /* Products / cards */
  .product { padding: 26px 22px 22px; }
  .product h3 { font-size: 22px; }
  .product p { font-size: 13.5px; }
  .product .ico { width: 48px; height: 48px; margin-bottom: 18px; }
  .product .num { top: 18px; right: 20px; }
  .products-grid { gap: 14px; }
  .product-foot { flex-direction: column; align-items: flex-start; gap: 14px; }

  /* Sectors */
  .sectors-grid { gap: 28px; }
  .sectors-visual { min-height: 240px; }
  .sectors-visual .label { font-size: 9px; letter-spacing: 0.22em; top: 14px; left: 16px; }
  .sectors-visual .footer-label { font-size: 9px; letter-spacing: 0.22em; bottom: 14px; right: 16px; }
  .sector { padding: 22px 18px; min-height: 0; }
  .sector h4 { font-size: 18px; }
  .sector p { font-size: 12.5px; }
  .sector .ico { width: 28px; height: 28px; }

  /* About */
  .about-grid { gap: 36px; }
  .about p { font-size: 15px; }
  .about-visual { padding: 26px 22px; }
  .about-visual h4 { font-size: 22px; }
  .about-visual .stamp { top: 18px; right: 20px; font-size: 9px; letter-spacing: 0.22em; }
  .about-visual .row { grid-template-columns: 110px 1fr; gap: 12px; padding: 10px 0; font-size: 13.5px; }
  .about-visual .row .k { font-size: 9px; letter-spacing: 0.2em; }
  .mv-card { padding: 22px 20px; }
  .mv-card h5 { font-size: 20px; }
  .value-card { padding: 20px 18px; }

  /* Timeline — vertical on phone with single rail */
  .timeline { margin-top: 36px; padding-top: 8px; }
  .timeline::before { left: 6px; right: auto; top: 28px; bottom: 0; width: 1px; height: auto; background: var(--rule); }
  .timeline-track { grid-template-columns: 1fr; gap: 4px; }
  .tl-step { padding-top: 0; padding-left: 32px; padding-bottom: 22px; }
  .tl-step .dot { top: 22px; left: 0; }
  .tl-step .yr { font-size: 26px; margin: 12px 0 4px; }

  /* Process steps — vertical on phone */
  .proc-track { grid-template-columns: 1fr; gap: 20px; }
  .proc-svg-line { display: none; }
  .proc-step { padding-left: 76px; min-height: 64px; }
  .proc-step .pip { position: absolute; left: 0; top: 0; width: 56px; height: 56px; font-size: 22px; }
  .proc-step h4 { font-size: 20px; }
  .proc-step p { font-size: 13px; }

  /* Certifications */
  .certs-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 32px; }
  .cert { padding: 22px 14px; gap: 10px; }
  .cert .badge { width: 64px; height: 64px; }
  .cert .badge b { font-size: 13px; }
  .cert .badge small { font-size: 7.5px; letter-spacing: 0.18em; }
  .cert h5 { font-size: 15px; }
  .cert p { font-size: 11.5px; line-height: 1.5; }
  .certs-foot p { font-size: 13.5px; }

  /* Marquee — fewer items in view, slower */
  .marquee { padding: 22px 0; }
  .marquee-track { gap: 40px; animation-duration: 52s; }
  .client { font-size: 17px; }
  .client small { font-size: 8.5px; letter-spacing: 0.22em; }

  /* Testimonials */
  .testimonials { padding: 56px 0; }
  .test { padding: 28px 24px; gap: 18px; }
  .test p { font-size: 16px; line-height: 1.5; }
  .test .quote-mark { font-size: 48px; height: 22px; }
  .test-grid { gap: 14px; }

  /* Teasers (home page) */
  .teasers { grid-template-columns: 1fr; gap: 14px; }
  .teaser { padding: 26px 22px; min-height: 0; gap: 12px; }
  .teaser h3 { font-size: 24px; }
  .teaser p { font-size: 13.5px; }

  /* Contact */
  .contact-grid { gap: 28px; }
  .contact-info { padding: 28px 22px; }
  .contact-info h3 { font-size: 22px; margin-bottom: 16px; }
  .ci-row { grid-template-columns: 28px 1fr; padding: 12px 0; gap: 12px; }
  .ci-row .ico { width: 18px; height: 18px; }
  .ci-row h6 { font-size: 9px; letter-spacing: 0.22em; }
  .ci-row p, .ci-row a { font-size: 14px; }
  .form-card { padding: 28px 22px; }
  .form-card h3 { font-size: 22px; margin-bottom: 18px; }
  .form-grid { gap: 14px; }
  .field label { font-size: 9px; letter-spacing: 0.22em; }
  .field input, .field select { padding: 10px 0; }
  .field textarea { padding: 12px; min-height: 130px; }
  .form-card .submit-row { gap: 14px; flex-direction: column-reverse; align-items: stretch; }
  .form-card .submit-row .btn { width: 100%; justify-content: center; }
  .response-banner { padding: 18px 16px; }
  .response-banner .t { font-size: 19px; line-height: 1.4; }
  .response-banner .s { font-size: 10px; letter-spacing: 0.22em; }

  /* Map placeholder smaller */
  .map-placeholder { aspect-ratio: 4/3; }

  /* CTA strip */
  .cta-strip { padding: 56px 0; }
  .cta-strip .grid { gap: 28px; }
  .cta-strip h2 { font-size: clamp(28px, 7.5vw, 40px); }
  .cta-strip p { font-size: 14.5px; max-width: 100%; }
  .cta-strip .ctas { gap: 10px; margin-top: 22px; }
  .cta-strip .badge { padding: 18px 20px; }
  .cta-strip .badge .v { font-size: 18px; }

  /* Footer */
  footer.site { padding: 56px 0 22px; }
  footer.site .top { gap: 32px; padding-bottom: 32px; }
  footer.site h6 { font-size: 10px; letter-spacing: 0.26em; margin-bottom: 14px; }
  footer.site .brand .slog { font-size: 16px; margin-top: 14px; }
  footer.site .brand .desc { font-size: 13px; margin-top: 14px; max-width: 100%; }
  footer.site .bottom { font-size: 10px; letter-spacing: 0.14em; padding-top: 18px; }
  footer.site .legal { gap: 16px; }
  .socials { margin-top: 16px; }

  /* Buttons — comfortable tap targets */
  .btn {
    padding: 14px 20px;
    font-size: 12px;
    letter-spacing: 0.16em;
    min-height: 48px;
  }
  .nav-cta .btn-primary { padding: 12px 16px; font-size: 11px; letter-spacing: 0.14em; min-height: 44px; }
  .nav-cta .btn-primary .arr { display: none; }

  /* Safe-area inset for notched iPhones */
  body { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
  .nav { padding-top: max(14px, env(safe-area-inset-top)); }
  footer.site { padding-bottom: max(22px, env(safe-area-inset-bottom)); }

  /* Bigger hamburger button — easier to hit */
  .hamburger { width: 48px; height: 48px; }
  .hamburger span { left: 13px; right: 13px; }

  /* Mobile menu overlay polish */
  .mobile-overlay {
    padding-top: max(80px, env(safe-area-inset-top));
    padding-bottom: max(40px, env(safe-area-inset-bottom));
    gap: 18px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .mobile-overlay a { font-size: 28px; padding: 6px 0; }
  .mobile-overlay .btn { font-size: 12px; padding: 14px 24px; }

  /* Scroll anchor offset (mobile nav is shorter) */
  [id] { scroll-margin-top: 72px; }

  /* Decorative grid overlays — soften on phone (perf + readability) */
  .hero::before, .page-hero::before { opacity: 0.55; }
}

/* ============= SMALL PHONE (≤ 400) ============= */
@media (max-width: 400px) {
  :root { --pad-x: 16px; }
  .hero h1 { font-size: clamp(32px, 9vw, 44px); }
  .page-hero h1 { font-size: clamp(30px, 9vw, 42px); }
  .h-section { font-size: clamp(26px, 7vw, 34px); }
  .nav-logo svg { width: 32px; height: 32px; }
  .nav-logo .wm { font-size: 18px; }
  .nav-logo .sub { font-size: 8.5px; letter-spacing: 0.28em; }
  .nav-cta .btn-primary { padding: 10px 12px; font-size: 10.5px; letter-spacing: 0.1em; }
  .certs-grid { grid-template-columns: 1fr; }
  .marquee-track { gap: 30px; }
}

/* ============= LANDSCAPE PHONE — keep hero short ============= */
@media (max-width: 920px) and (orientation: landscape) and (max-height: 500px) {
  .hero { min-height: auto; padding: 96px 0 48px; }
  .scroll-ind { display: none; }
}

/* ============= HOVER-CAPABLE ONLY (don't show :hover state on touch) ============= */
@media (hover: none) {
  .product:hover,
  .teaser:hover,
  .cert:hover,
  .article:hover { transform: none; }
  .marquee:hover .marquee-track { animation-play-state: running; }
}
