/* ==========================================================================
   Igugulethu Safety Solutions — core stylesheet
   ========================================================================== */

:root {
  --ink: #0a0e13;
  --ink-2: #10161e;
  --ink-3: #18212c;
  --paper: #f2efe9;
  --paper-2: #e8e3da;
  --text: #eef1f4;
  --text-ink: #10161e;
  --muted: #95a1ae;
  --muted-ink: #5b6570;
  --line: rgba(255, 255, 255, 0.1);
  --line-ink: rgba(16, 22, 30, 0.12);
  --amber: #ffb020;
  --orange: #ff6b1a;
  --hivis: linear-gradient(120deg, #ffc233 0%, #ff8a1f 55%, #ff5a14 100%);

  --glass: rgba(255, 255, 255, 0.06);
  --glass-strong: rgba(255, 255, 255, 0.1);
  --glass-line: rgba(255, 255, 255, 0.16);
  --glass-blur: blur(22px) saturate(150%);

  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 32px;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.65;
  -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(--f-display); font-weight: 700; line-height: 1.02; letter-spacing: -0.02em; }
p { margin: 0; }
::selection { background: var(--amber); color: var(--ink); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* grain overlay for photographic depth */
.grain::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0.12;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono);
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--amber);
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--hivis); border-radius: 2px;
}
.on-paper .eyebrow { color: #c25a0f; }

.display-xl { font-size: clamp(44px, 7.4vw, 112px); font-stretch: 110%; }
.display-lg { font-size: clamp(38px, 5.4vw, 78px); font-stretch: 108%; }
.display-md { font-size: clamp(30px, 3.6vw, 52px); font-stretch: 105%; }
.lead { font-size: clamp(18px, 1.5vw, 21px); color: var(--muted); max-width: 58ch; }
.on-paper .lead { color: var(--muted-ink); }
.hi { background: var(--hivis); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* split-line reveal helper */
.line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.line > span { display: inline-block; will-change: transform; }

/* ---------- Buttons ---------- */
.btn {
  --pad: 16px 26px;
  position: relative;
  display: inline-flex; align-items: center; gap: 12px;
  padding: var(--pad);
  border-radius: 999px;
  font-family: var(--f-display); font-weight: 600; font-size: 15px; letter-spacing: 0.01em;
  border: 0; cursor: pointer;
  transition: transform 0.4s var(--ease), background 0.3s, color 0.3s, box-shadow 0.3s;
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-primary { background: var(--hivis); color: #1a0d02; box-shadow: 0 10px 40px -10px rgba(255, 120, 30, 0.6); }
.btn-primary:hover { box-shadow: 0 16px 50px -8px rgba(255, 120, 30, 0.8); }
.btn-glass {
  background: var(--glass-strong); color: var(--text);
  border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
}
.btn-glass:hover { background: rgba(255, 255, 255, 0.16); }
.btn-dark { background: var(--ink); color: var(--text); }
.btn-dark:hover { background: var(--ink-3); }

/* ---------- Glass ---------- */
.glass {
  position: relative;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--glass-line);
  border-radius: var(--r-md);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}
/* cursor spotlight */
.spot { --mx: 50%; --my: 50%; overflow: hidden; }
.spot::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 176, 32, 0.16), transparent 60%);
  opacity: 0; transition: opacity 0.4s;
}
.spot:hover::before { opacity: 1; }

/* ambient glows behind glass */
.glow { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; opacity: 0.55; }
.glow-amber { background: radial-gradient(circle, #ff9a1f, transparent 70%); }
.glow-blue { background: radial-gradient(circle, #2c6cff, transparent 70%); opacity: 0.25; }

/* ---------- Header ---------- */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--hivis); z-index: 120; }

.site-header {
  position: fixed; top: 16px; left: 0; right: 0; z-index: 100;
  padding: 0 var(--gutter);
  transition: transform 0.5s var(--ease);
}
.site-header.hide { transform: translateY(-130%); }
.nav {
  max-width: var(--max); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 10px 10px 10px 22px;
  border-radius: 999px;
  background: rgba(10, 14, 19, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
  transition: background 0.4s;
}
.site-header.scrolled .nav { background: rgba(10, 14, 19, 0.72); }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text b { font-family: var(--f-display); font-weight: 800; font-stretch: 115%; font-size: 17px; letter-spacing: 0.06em; }
.brand-text small { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: 0.26em; color: var(--muted); margin-top: 5px; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  position: relative; padding: 10px 18px; border-radius: 999px;
  font-size: 14.5px; font-weight: 500; color: rgba(238, 241, 244, 0.78);
  transition: color 0.3s, background 0.3s;
}
.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }
.nav-links a[aria-current="page"] { color: #fff; }
.nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: 4px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--amber);
}
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-cta .btn { --pad: 12px 20px; font-size: 14px; }
.nav-phone { font-family: var(--f-mono); font-size: 13px; color: var(--muted); padding: 0 8px; }
.nav-phone:hover { color: var(--amber); }

.burger {
  display: none; width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14);
  cursor: pointer; position: relative;
}
.burger span { position: absolute; left: 14px; right: 14px; height: 2px; background: #fff; border-radius: 2px; transition: transform 0.4s var(--ease), top 0.4s var(--ease); }
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 26px; }
.menu-open .burger span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(10, 14, 19, 0.82);
  -webkit-backdrop-filter: blur(28px); backdrop-filter: blur(28px);
  display: flex; flex-direction: column; justify-content: center;
  padding: 110px var(--gutter) 40px;
  opacity: 0; visibility: hidden; transition: opacity 0.45s var(--ease), visibility 0.45s;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.mobile-menu a.m-link { display: block; font-family: var(--f-display); font-stretch: 112%; font-weight: 700; font-size: clamp(40px, 12vw, 64px); line-height: 1.15; color: #fff; }
.mobile-menu a.m-link[aria-current="page"] { color: var(--amber); }
.mobile-menu .m-meta { margin-top: 40px; display: grid; gap: 8px; font-family: var(--f-mono); font-size: 14px; color: var(--muted); }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; min-height: 100svh; min-height: 100vh;
  display: flex; align-items: flex-end;
  padding: 150px 0 64px; overflow: hidden; isolation: isolate;
}
.hero-media { position: absolute; inset: -6% 0 0 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; transform-origin: 50% 70%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(10, 14, 19, 0.94) 0%, rgba(10, 14, 19, 0.7) 42%, rgba(10, 14, 19, 0.1) 75%),
    linear-gradient(0deg, var(--ink) 0%, rgba(10, 14, 19, 0) 40%),
    linear-gradient(180deg, rgba(10, 14, 19, 0.6) 0%, rgba(10, 14, 19, 0) 25%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 48px; align-items: end; }
.hero h1 { margin: 22px 0 30px; }
.hero .display-xl { font-size: clamp(42px, 7.6vw, 124px); }
.hero .lead { color: rgba(238, 241, 244, 0.78); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero-stack { display: grid; gap: 14px; justify-self: end; width: 100%; max-width: 380px; }
.hero-card { padding: 22px 22px 20px; background: linear-gradient(145deg, rgba(10, 14, 19, 0.62), rgba(10, 14, 19, 0.34)); }
.hero-card .k { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.hero-card .v { font-family: var(--f-display); font-weight: 700; font-stretch: 108%; font-size: 21px; margin-top: 8px; line-height: 1.1; }
.hero-card .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.6); animation: pulse 2s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(61, 220, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chip { font-family: var(--f-mono); font-size: 11.5px; padding: 6px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.12); color: #fff; }

.scroll-cue {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 56px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
}
.scroll-cue i { width: 1px; height: 42px; background: linear-gradient(var(--amber), transparent); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: #fff; animation: drip 2.2s var(--ease) infinite; }
@keyframes drip { to { top: 110%; } }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 26px 0; background: var(--ink); }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track span {
  display: inline-flex; align-items: center; gap: 36px; padding-right: 36px;
  font-family: var(--f-display); font-weight: 700; font-stretch: 118%; font-size: clamp(26px, 3.4vw, 46px); text-transform: uppercase; letter-spacing: 0.01em;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.35);
  white-space: nowrap;
}
.marquee-track span:nth-child(odd) { color: #fff; -webkit-text-stroke: 0; }
.marquee-track svg { width: 26px; height: 26px; color: var(--amber); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(90px, 12vw, 170px) 0; }
.on-paper { background: var(--paper); color: var(--text-ink); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: end; margin-bottom: clamp(48px, 6vw, 80px); }
.sec-head h2 { margin-top: 18px; }
.sec-head > div:only-child { grid-column: 1 / -1; }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(40px, 7vw, 110px); }
.about-statement { font-family: var(--f-display); font-weight: 600; font-stretch: 104%; font-size: clamp(28px, 3.3vw, 46px); line-height: 1.14; letter-spacing: -0.02em; }
.about-statement .w { opacity: 0.16; transition: opacity 0.2s; }
.about-body { display: grid; gap: 22px; color: var(--muted-ink); font-size: 18px; margin-top: 34px; max-width: 60ch; }
.about-body strong { color: var(--text-ink); font-weight: 600; }
.about-aside { position: relative; }
.about-aside .sticky { position: sticky; top: 120px; }
.meaning {
  margin-top: 30px; padding: 22px 24px; border-radius: var(--r-md);
  background: #fff; border: 1px solid var(--line-ink);
  display: flex; gap: 16px; align-items: flex-start;
}
.meaning b { font-family: var(--f-display); font-stretch: 110%; font-size: 20px; display: block; }
.meaning span { font-size: 15px; color: var(--muted-ink); }
.meaning .q { font-family: var(--f-display); font-size: 54px; line-height: 0.8; color: var(--orange); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(64px, 8vw, 110px); border-top: 1px solid var(--line-ink); }
.stat { padding: 28px 24px 0 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line-ink); }
.stat .n { font-family: var(--f-display); font-weight: 800; font-stretch: 115%; font-size: clamp(52px, 6vw, 88px); line-height: 1; letter-spacing: -0.04em; }
.stat .n sup { font-size: 0.4em; color: var(--orange); vertical-align: top; position: relative; top: 0.25em; margin-left: 4px; }
.stat p { margin-top: 12px; font-size: 15px; color: var(--muted-ink); max-width: 22ch; }

/* Accreditations */
.accred { background: var(--paper-2); color: var(--text-ink); padding: clamp(70px, 8vw, 110px) 0; }
.accred-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; margin-bottom: 40px; }
.accred-head h2 { margin-top: 14px; max-width: 16ch; }
.logo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.logo-tile {
  position: relative; background: rgba(255, 255, 255, 0.72); border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--r-md); padding: 26px 22px 22px; display: flex; flex-direction: column; gap: 18px;
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 20px 40px -30px rgba(16, 22, 30, 0.35);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.logo-tile:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -30px rgba(16, 22, 30, 0.45); }
.logo-tile .lg { height: 92px; display: grid; place-items: center; }
.logo-tile img { max-height: 92px; max-width: 100%; object-fit: contain; mix-blend-mode: multiply; }
.logo-tile .role { border-top: 1px solid var(--line-ink); padding-top: 14px; }
.logo-tile .role b { display: block; font-family: var(--f-display); font-size: 15px; font-stretch: 105%; }
.logo-tile .role span { font-size: 13.5px; color: var(--muted-ink); line-height: 1.45; display: block; margin-top: 4px; }

/* Services (home bento) */
.services-home { overflow: hidden; }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.svc {
  grid-column: span 4; padding: 34px 30px 30px; min-height: 460px;
  display: flex; flex-direction: column;
  transition: transform 0.5s var(--ease), border-color 0.4s;
}
.svc:hover { transform: translateY(-6px); border-color: rgba(255, 176, 32, 0.45); }
.svc-top { display: flex; justify-content: space-between; align-items: flex-start; }
.svc-num { font-family: var(--f-mono); font-size: 12px; color: var(--muted); letter-spacing: 0.1em; }
.svc-ico { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; background: rgba(255, 176, 32, 0.12); border: 1px solid rgba(255, 176, 32, 0.3); color: var(--amber); }
.svc-ico svg { width: 28px; height: 28px; }
.svc h3 { font-size: clamp(24px, 2.2vw, 30px); font-stretch: 106%; margin: 44px 0 14px; }
.svc p { color: var(--muted); font-size: 15.5px; }
.svc ul { margin-top: 22px; display: grid; gap: 9px; }
.svc li { display: flex; gap: 10px; font-size: 14.5px; color: rgba(238, 241, 244, 0.86); line-height: 1.4; }
.svc li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 7px; border-radius: 2px; background: var(--amber); transform: rotate(45deg); }
.svc .more { margin-top: auto; padding-top: 26px; display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 600; font-size: 14.5px; color: var(--amber); }
.svc .more svg { width: 16px; height: 16px; transition: transform 0.4s var(--ease); }
.svc:hover .more svg { transform: translateX(5px); }

/* Mission — pinned kinetic words */
.mission { background: var(--ink); overflow: hidden; }
.mission-pin { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 110px 0; position: relative; }
.mission-words { display: flex; gap: 0.35em; font-family: var(--f-display); font-weight: 800; font-stretch: 122%; font-size: clamp(64px, 13vw, 220px); line-height: 0.9; letter-spacing: -0.04em; white-space: nowrap; will-change: transform; padding-left: var(--gutter); }
.mission-words span:nth-child(2) { color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, 0.55); }
.mission-words span:nth-child(3) { background: var(--hivis); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mission-words em { font-style: normal; color: rgba(255, 255, 255, 0.35); }
.mission-copy { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 40px; margin-top: clamp(40px, 6vw, 80px); align-items: start; }
.mission-copy .glass { padding: 30px 32px; }
.mission-copy .glass p { color: rgba(238, 241, 244, 0.86); font-size: 18px; }
.mission-copy .glass p + p { margin-top: 16px; }
.mission-copy .big { font-family: var(--f-display); font-weight: 600; font-stretch: 106%; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.18; }

/* Values */
.values-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-ink); }
.value { padding: 38px 32px 10px 0; position: relative; }
.value + .value { padding-left: 32px; border-left: 1px solid var(--line-ink); }
.value .idx { font-family: var(--f-mono); font-size: 12px; color: #c25a0f; letter-spacing: 0.12em; }
.value h3 { font-size: clamp(28px, 2.8vw, 40px); font-stretch: 108%; margin: 70px 0 16px; }
.value p { color: var(--muted-ink); }
.value .bar { position: absolute; top: -1px; left: 0; height: 3px; width: 100%; background: var(--hivis); transform: scaleX(0); transform-origin: 0 50%; }
.value + .value .bar { left: 0; }

/* CTA band */
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--r-lg); padding: clamp(50px, 7vw, 96px) clamp(28px, 6vw, 80px);
  background: var(--ink-2);
}
.cta::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("../img/hero-cranes.jpg") center 60% / cover; opacity: 0.55; }
.cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(10, 14, 19, 0.96) 25%, rgba(10, 14, 19, 0.62)); }
.cta-inner { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 40px; align-items: end; }
.cta h2 { max-width: 14ch; }
.cta-side { display: grid; gap: 12px; justify-items: start; }
.cta-side .glass { padding: 18px 20px; width: 100%; display: flex; align-items: center; gap: 14px; background: linear-gradient(145deg, rgba(10, 14, 19, 0.6), rgba(10, 14, 19, 0.35)); }
.cta-side .glass svg { width: 22px; height: 22px; color: var(--amber); flex: none; }
.cta-side .glass b { display: block; font-family: var(--f-mono); font-weight: 500; font-size: 15px; }
.cta-side .glass small { color: var(--muted); font-size: 12.5px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; min-height: 78vh; display: flex; align-items: flex-end; padding: 170px 0 70px; overflow: hidden; isolation: isolate; }
.page-hero .hero-media { inset: -8% 0 -8% 0; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(10, 14, 19, 0.92) 0%, rgba(10, 14, 19, 0.55) 55%, rgba(10, 14, 19, 0.2) 100%), linear-gradient(0deg, var(--ink) 0%, rgba(10, 14, 19, 0) 55%);
}
.crumbs { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); display: flex; gap: 10px; }
.crumbs a:hover { color: var(--amber); }
.page-hero h1 { margin: 22px 0 22px; max-width: 13ch; }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 40px; align-items: end; }
.jump { display: grid; gap: 10px; justify-self: end; width: 100%; max-width: 380px; }
.jump a { padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 14px; transition: border-color 0.3s, transform 0.4s var(--ease); }
.jump a:hover { border-color: rgba(255, 176, 32, 0.5); transform: translateX(-6px); }
.jump a span { font-family: var(--f-display); font-weight: 600; font-size: 16px; }
.jump a small { font-family: var(--f-mono); font-size: 11px; color: var(--muted); display: block; margin-bottom: 2px; }
.jump a svg { width: 18px; height: 18px; color: var(--amber); flex: none; }

/* ---------- Services page ---------- */
.pillar { padding: clamp(80px, 10vw, 140px) 0; border-top: 1px solid var(--line); position: relative; overflow: hidden; }
.pillar.on-paper { border-top: 0; }
.pillar-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(40px, 7vw, 100px); align-items: start; }
.pillar-intro { position: sticky; top: 130px; }
.pillar-intro .big-num { font-family: var(--f-display); font-weight: 800; font-stretch: 122%; font-size: clamp(90px, 12vw, 180px); line-height: 0.8; letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 176, 32, 0.6); margin-bottom: 26px; }
.on-paper .pillar-intro .big-num { -webkit-text-stroke-color: rgba(194, 90, 15, 0.55); }
.pillar-intro h2 { margin: 18px 0 20px; }
.pillar-intro .lead { font-size: 18px; }
.pillar-intro .btn { margin-top: 30px; }

.item-list { display: grid; gap: 12px; }
.item {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 18px; align-items: center;
  padding: 22px 24px; border-radius: var(--r-md);
  transition: transform 0.5s var(--ease), border-color 0.3s, background 0.3s;
}
.item:hover { transform: translateX(8px); border-color: rgba(255, 176, 32, 0.45); }
.item .ic { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 176, 32, 0.1); color: var(--amber); border: 1px solid rgba(255, 176, 32, 0.25); }
.item .ic svg { width: 26px; height: 26px; }
.item h3 { font-size: 19px; font-stretch: 104%; line-height: 1.25; letter-spacing: -0.01em; }
.item p { font-size: 14.5px; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.item .tag { font-family: var(--f-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.08em; }

/* training course grid */
.course-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.course {
  position: relative; padding: 24px 22px; border-radius: var(--r-md); min-height: 150px;
  background: #fff; border: 1px solid var(--line-ink);
  display: flex; flex-direction: column; justify-content: space-between; gap: 22px;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), background 0.3s, color 0.3s;
}
.course:hover { transform: translateY(-5px); box-shadow: 0 26px 40px -28px rgba(16, 22, 30, 0.5); background: var(--ink); color: var(--text); }
.course .top { display: flex; justify-content: space-between; align-items: center; }
.course .top span { font-family: var(--f-mono); font-size: 11.5px; color: #c25a0f; letter-spacing: 0.1em; }
.course:hover .top span { color: var(--amber); }
.course .top svg { width: 24px; height: 24px; color: #c25a0f; transition: color 0.3s; }
.course:hover .top svg { color: var(--amber); }
.course h3 { font-size: 20px; font-stretch: 104%; line-height: 1.2; letter-spacing: -0.01em; }

/* ISO cards */
.iso-grid { display: grid; gap: 14px; }
.iso-card { padding: 28px 28px 26px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 26px; align-items: center; }
.iso-code { font-family: var(--f-display); font-weight: 800; font-stretch: 120%; font-size: clamp(40px, 4.4vw, 60px); line-height: 0.9; letter-spacing: -0.03em; }
.iso-code small { display: block; font-family: var(--f-mono); font-weight: 500; font-size: 12px; letter-spacing: 0.1em; color: var(--amber); margin-top: 10px; font-stretch: 100%; }
.iso-card h3 { font-size: 21px; font-stretch: 104%; letter-spacing: -0.01em; line-height: 1.2; }
.iso-card p { color: var(--muted); font-size: 15px; margin-top: 6px; }
.iso-badge { display: flex; align-items: center; gap: 16px; margin-top: 30px; padding: 14px 16px; border-radius: var(--r-md); background: #fff; width: fit-content; }
.iso-badge img { height: 58px; width: auto; }
.iso-badge span { color: var(--text-ink); font-size: 13.5px; line-height: 1.4; max-width: 22ch; }

/* process */
.process { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: step; }
.step { padding: 28px 24px 26px; min-height: 250px; display: flex; flex-direction: column; }
.step .n { font-family: var(--f-mono); font-size: 12px; color: var(--amber); letter-spacing: 0.12em; }
.step h3 { font-size: 24px; font-stretch: 108%; margin-top: auto; }
.step p { color: var(--muted); font-size: 15px; margin-top: 10px; }
.step-line { height: 2px; background: var(--line); position: relative; margin: 0 0 22px; border-radius: 2px; overflow: hidden; }
.step-line i { position: absolute; inset: 0; background: var(--hivis); transform: scaleX(0); transform-origin: 0 50%; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 20px; align-items: stretch; }
.contact-cards { display: grid; gap: 14px; align-content: start; }
.c-card { padding: 24px 26px; display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 18px; align-items: start; }
.c-card .ic { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 176, 32, 0.12); border: 1px solid rgba(255, 176, 32, 0.3); color: var(--amber); }
.c-card .ic svg { width: 22px; height: 22px; }
.c-card .k { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.c-card .v { font-family: var(--f-display); font-size: 19px; font-weight: 600; line-height: 1.35; margin-top: 6px; display: block; }
.c-card a.v:hover { color: var(--amber); }
.c-card .v + .v { margin-top: 2px; }

.form-card { padding: clamp(28px, 4vw, 44px); }
.form-card h2 { font-size: clamp(28px, 3vw, 40px); font-stretch: 106%; }
.form-card > p { color: var(--muted); margin-top: 10px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 30px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--text);
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px; padding: 15px 16px; outline: none;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%23ffb020' stroke-width='2' fill='none'/></svg>"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field select option { color: #111; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--amber); background: rgba(255, 255, 255, 0.08); box-shadow: 0 0 0 4px rgba(255, 176, 32, 0.15); }
.form .actions { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
.form .note { font-size: 13px; color: var(--muted); }
.form-status { grid-column: 1 / -1; padding: 14px 16px; border-radius: 14px; font-size: 15px; display: none; }
.form-status.ok { display: block; background: rgba(61, 220, 132, 0.12); border: 1px solid rgba(61, 220, 132, 0.4); color: #bff5d6; }
.form-status.err { display: block; background: rgba(255, 90, 60, 0.12); border: 1px solid rgba(255, 90, 60, 0.4); color: #ffd1c6; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.map-wrap { margin-top: 20px; border-radius: var(--r-lg); overflow: hidden; position: relative; height: 460px; border: 1px solid var(--line); }
.map-wrap iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(0.92) contrast(0.9) hue-rotate(180deg); }
.map-pin { position: absolute; left: 24px; bottom: 24px; padding: 18px 20px; max-width: 320px; }
.map-pin b { font-family: var(--f-display); font-size: 17px; display: block; }
.map-pin span { color: var(--muted); font-size: 14px; }
.map-pin a { display: inline-flex; gap: 8px; align-items: center; margin-top: 10px; color: var(--amber); font-weight: 600; font-size: 14px; }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--ink); border-top: 1px solid var(--line); padding: 90px 0 30px; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer-grid h4 { font-family: var(--f-mono); font-weight: 500; font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.footer-grid li + li { margin-top: 10px; }
.footer-grid a { color: rgba(238, 241, 244, 0.82); transition: color 0.3s; }
.footer-grid a:hover { color: var(--amber); }
.footer-grid p { color: var(--muted); font-size: 15px; margin-top: 18px; max-width: 34ch; }
.footer-word {
  margin-top: 70px; font-family: var(--f-display); font-weight: 800; font-stretch: 125%;
  font-size: clamp(40px, 10.4vw, 168px); line-height: 0.8; letter-spacing: -0.045em;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.14); white-space: nowrap; text-align: center;
  user-select: none;
}
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 80; width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; cursor: pointer;
  opacity: 0; transform: translateY(20px); transition: opacity 0.4s, transform 0.4s var(--ease);
}
.to-top.show { opacity: 1; transform: none; }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Reveal defaults (JS enhances) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(40px); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav-links, .nav-phone { display: none; }
  .burger { display: block; }
  .hero-grid, .page-hero-grid { grid-template-columns: 1fr; }
  .hero-stack { justify-self: start; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 640px; }
  .jump { justify-self: start; max-width: 520px; }
  .svc { grid-column: span 12; min-height: 0; }
  .bento { gap: 14px; }
  .logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pillar-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .pillar-intro, .about-aside .sticky { position: static; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .site-header { top: 10px; }
  .nav { padding: 8px 8px 8px 16px; }
  .nav-cta .btn { display: none; }
  .brand-text b { font-size: 15px; }
  .hero { padding-top: 130px; }
  .hero::before { background: linear-gradient(180deg, rgba(10, 14, 19, 0.55) 0%, rgba(10, 14, 19, 0.75) 45%, var(--ink) 100%); }
  .hero-stack { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .sec-head, .mission-copy, .cta-inner { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line-ink); margin-top: 26px; }
  .values-grid { grid-template-columns: 1fr; }
  .value + .value { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-ink); }
  .value h3 { margin-top: 30px; }
  .value { padding-bottom: 36px; }
  .logo-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .logo-tile { padding: 18px 14px; }
  .logo-tile .lg { height: 64px; }
  .logo-tile img { max-height: 64px; }
  .process { grid-template-columns: 1fr; }
  .step { min-height: 0; }
  .step h3 { margin-top: 26px; }
  .course-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .course { min-height: 128px; padding: 18px 16px; gap: 16px; }
  .course h3 { font-size: 16px; }
  .item { grid-template-columns: 46px minmax(0, 1fr); padding: 18px; }
  .item .ic { width: 46px; height: 46px; }
  .item .tag { display: none; }
  .iso-card { grid-template-columns: 1fr; gap: 14px; }
  .form { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px 20px; }
  .footer-grid > div:first-child, .footer-grid > div:last-child { grid-column: 1 / -1; }
  .map-wrap { height: 420px; }
  .map-pin { left: 12px; right: 12px; bottom: 12px; }
  .page-hero { min-height: 70vh; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Bento variants ---------- */
.svc-7 { grid-column: span 7; }
.svc-5 { grid-column: span 5; }
.svc-12 { grid-column: span 12; min-height: 0; }
.svc ul.cols2 { grid-template-columns: 1fr 1fr; column-gap: 24px; }
.svc-iso { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 40px; align-items: end; height: 100%; }
.svc-iso > div:first-child { display: flex; flex-direction: column; }
.iso-mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.iso-mini > div { border-radius: 16px; padding: 22px 18px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1); transition: background 0.3s, border-color 0.3s; }
.svc:hover .iso-mini > div { border-color: rgba(255, 176, 32, 0.3); }
.iso-mini b { font-family: var(--f-display); font-weight: 800; font-stretch: 118%; font-size: clamp(30px, 3vw, 44px); letter-spacing: -0.03em; line-height: 1; }
.iso-mini small { font-family: var(--f-mono); font-size: 12px; color: var(--amber); margin-left: 2px; }
.iso-mini span { display: block; color: var(--muted); font-size: 13.5px; margin-top: 12px; line-height: 1.35; }
@media (max-width: 1100px) {
  .svc-7, .svc-5 { grid-column: span 12; }
  .svc-iso { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .svc ul.cols2 { grid-template-columns: 1fr; }
  .iso-mini { grid-template-columns: 1fr; }
  .svc { padding: 26px 22px; }
  .svc h3 { margin-top: 30px; }
}

/* ---------- Client logo ---------- */
.brand-logo { height: 60px; width: auto; display: block; }
.nav { padding-top: 6px; padding-bottom: 6px; }
.brand-logo-lg { height: 110px; }
@media (max-width: 760px) {
  .brand-logo { height: 50px; }
  .brand-logo-lg { height: 92px; }
}
