/* ==========================================================================
   KAPSA Semicon — design system
   Brand: chip blue #0A72BA · KAPSA orange #F05A28 · silicon navy #071426
   Type: Sora (display) · Inter (body) · JetBrains Mono (technical labels)
   ========================================================================== */

:root {
  --blue: #0A72BA;
  --blue-600: #085C97;
  --blue-300: #5BB3EC;
  --blue-50: #EBF5FC;
  --orange: #F05A28;
  --orange-strong: #CF4012;   /* white text passes WCAG AA */
  --orange-50: #FEF1EC;
  --navy: #071426;
  --navy-2: #0B1E36;
  --navy-3: #12294A;
  --ink: #0E1A2B;
  --text: #3A4A5F;
  --muted: #66768C;
  --line: #E2E8F0;
  --line-dark: rgba(255, 255, 255, .1);
  --bg: #FFFFFF;
  --bg-alt: #F4F7FB;

  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(14, 26, 43, .06), 0 2px 8px rgba(14, 26, 43, .04);
  --shadow: 0 10px 30px -12px rgba(14, 26, 43, .18), 0 4px 10px -6px rgba(14, 26, 43, .08);
  --shadow-lg: 0 30px 60px -20px rgba(7, 20, 38, .35);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 86px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--blue-600); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4.1rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.85rem); letter-spacing: -.03em; }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.4rem); font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0 0 1.1em; }
ul { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--orange); color: #fff; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 1000; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 600; transition: top .2s; }
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 10vw, 128px); position: relative; }
.section--alt { background: var(--bg-alt); }
.section--tight { padding-block: clamp(48px, 7vw, 80px); }
.section--dark { background: var(--navy); color: #B7C4D6; }
.section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: .78rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--orange-strong);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.section--dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--orange); }

.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow::after { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.section-head .lead { margin-top: 4px; }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.24rem); line-height: 1.6; color: var(--text); }
.section--dark .lead { color: #B7C4D6; }

.grid { display: grid; gap: clamp(18px, 2.4vw, 28px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.split--rev > :first-child { order: 2; }

.text-gradient {
  background: linear-gradient(100deg, var(--orange) 0%, #FF8A4C 45%, var(--blue-300) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  --_bg: var(--orange-strong); --_fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px; border-radius: 999px; border: 2px solid transparent;
  background: var(--_bg); color: var(--_fg);
  font-family: var(--font-display); font-weight: 600; font-size: .98rem; letter-spacing: -.005em;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s, color .2s, border-color .2s;
  position: relative; overflow: hidden; isolation: isolate;
}
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover { color: var(--_fg); transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(207, 64, 18, .55); }
.btn:hover svg { transform: translateX(3px); }
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--ease); }
.btn:hover::after { transform: translateX(120%); }
.btn--blue { --_bg: var(--blue); }
.btn--blue:hover { box-shadow: 0 12px 24px -10px rgba(10, 114, 186, .55); }
.btn--ghost { --_bg: transparent; --_fg: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); box-shadow: none; }
.btn--ghost-light { --_bg: rgba(255,255,255,.04); --_fg: #fff; border-color: rgba(255,255,255,.28); backdrop-filter: blur(6px); }
.btn--ghost-light:hover { border-color: #fff; box-shadow: none; }
.btn--sm { min-height: 42px; padding: 0 20px; font-size: .92rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 600; font-size: .95rem; color: var(--blue); }
.link-arrow svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  background: rgba(255, 255, 255, .97);
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: height .3s var(--ease), box-shadow .3s, border-color .3s;
}
.site-header.is-scrolled { --header-h: 72px; border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(7, 20, 38, .4); }
.header-inner { max-width: 1320px; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 58px; width: auto; transition: height .3s var(--ease); }
.is-scrolled .brand img { height: 50px; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav > ul { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 12px; border-radius: 999px;
  font-family: var(--font-display); font-size: .93rem; font-weight: 500; color: var(--ink);
  background: none; border: 0; cursor: pointer; position: relative; transition: background-color .2s, color .2s; white-space: nowrap;
}
.nav-link:hover, .nav-link[aria-expanded="true"] { background: var(--bg-alt); color: var(--ink); }
.nav-link[aria-current="page"], .nav-link.is-active { color: var(--blue); }
.nav-link[aria-current="page"]::after, .nav-link.is-active::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 5px; height: 5px; border-radius: 50%; background: var(--orange); transform: translateX(-50%); }
.nav-link .chev { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.nav-link[aria-expanded="true"] .chev { transform: rotate(180deg); }
.header-cta { margin-left: 10px; }

/* mega menu */
.has-mega { position: relative; }
.mega {
  position: absolute; top: calc(100% + 14px); left: 50%; width: min(780px, 92vw);
  transform: translate(-50%, 8px); opacity: 0; visibility: hidden; pointer-events: none;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.mega::before { content: ""; position: absolute; top: -16px; left: 0; right: 0; height: 16px; }
.has-mega.is-open .mega { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); }
.mega a { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: var(--radius); color: var(--ink); transition: background-color .2s; }
.mega a:hover { background: var(--bg-alt); }
.mega .mi { flex-shrink: 0; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: var(--blue-50); color: var(--blue); transition: background-color .2s, color .2s; }
.mega a:hover .mi { background: var(--blue); color: #fff; }
.mega .mi svg { width: 20px; height: 20px; }
.mega strong { display: block; font-family: var(--font-display); font-size: .9rem; font-weight: 600; line-height: 1.3; }
.mega small { display: block; font-size: .78rem; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.mega--list { width: 330px; left: auto; right: 0;grid-template-columns: 1fr; transform: translate(0, 8px); padding: 10px; }
.has-mega.is-open .mega--list { transform: none; }
.mega--list a { align-items: center; }
.mega--list a .ext { width: 15px; height: 15px; margin-left: auto; color: var(--muted); flex-shrink: 0; transition: transform .2s, color .2s; }
.mega--list a:hover .ext { color: var(--orange-strong); transform: translate(2px, -2px); }
.mega--list a:hover strong { color: var(--blue); }
.mega .mega-all {grid-column: 1 / -1; justify-content: center; align-items: center; background: var(--bg-alt); font-family: var(--font-display); font-weight: 600; font-size: .9rem; color: var(--blue); margin-top: 4px; }
.mega .mega-all svg { width: 16px; height: 16px; }

.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; place-items: center; color: var(--ink); }
.nav-toggle svg { width: 24px; height: 24px; }

/* mobile drawer */
.mobile-nav {
  position: fixed; inset: 0; z-index: 200; display: flex; justify-content: flex-end;
  visibility: hidden; pointer-events: none;
}
.mobile-nav.is-open { visibility: visible; pointer-events: auto; }
.mobile-nav__backdrop { position: absolute; inset: 0; background: rgba(7, 20, 38, .55); opacity: 0; transition: opacity .3s; backdrop-filter: blur(3px); }
.mobile-nav.is-open .mobile-nav__backdrop { opacity: 1; }
.mobile-nav__panel {
  position: relative; width: min(420px, 100%); height: 100%; background: var(--navy); color: #fff;
  display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain;
  transform: translateX(100%); transition: transform .4s var(--ease);
}
.mobile-nav.is-open .mobile-nav__panel { transform: none; }
.mobile-nav__top { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line-dark); }
.mobile-nav__top .brand-chip { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; letter-spacing: .02em; }
.mobile-nav__top .brand-chip img { width: 34px; height: 34px; border-radius: 8px; }
.mobile-nav__close { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-dark); background: transparent; color: #fff; cursor: pointer; display: grid; place-items: center; }
.mobile-nav__close svg { width: 22px; height: 22px; }
.mobile-nav__list { list-style: none; padding: 12px 12px 0; }
.mobile-nav__list > li { border-bottom: 1px solid var(--line-dark); }
.mobile-nav__list a, .mobile-nav__list summary {
  display: flex; align-items: center; justify-content: space-between; padding: 16px 10px;
  color: #fff; font-family: var(--font-display); font-size: 1.12rem; font-weight: 500; cursor: pointer; list-style: none;
}
.mobile-nav__list summary::-webkit-details-marker { display: none; }
.mobile-nav__list summary svg { width: 18px; height: 18px; transition: transform .25s; }
.mobile-nav__list details[open] summary svg { transform: rotate(180deg); }
.mobile-nav__list a[aria-current="page"] { color: var(--orange); }
.mobile-nav__sub { list-style: none; padding: 0 0 12px 10px; }
.mobile-nav__sub a { font-size: .98rem; font-family: var(--font-body); color: #B7C4D6; padding: 9px 10px; }
.mobile-nav__sub a:hover { color: #fff; }
.mobile-nav__foot { margin-top: auto; padding: 24px 22px 32px; display: grid; gap: 14px; }
.mobile-nav__foot .btn { width: 100%; }
.mobile-nav__foot a.contact-line { color: #B7C4D6; font-size: .95rem; display: flex; gap: 10px; align-items: center; }
.mobile-nav__foot a.contact-line svg { width: 18px; height: 18px; color: var(--orange); }
body.nav-open { overflow: hidden; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; min-height: min(100vh, 940px); display: flex; align-items: center;
  padding: calc(var(--header-h) + 64px) 0 96px; background: var(--navy); color: #C3CFDF; overflow: hidden; isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .22; filter: saturate(1.2); transform: scale(1.06); animation: heroZoom 24s var(--ease) infinite alternate; }
@keyframes heroZoom { to { transform: scale(1.14) translate(-1%, -1%); } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 70% at 78% 45%, rgba(10, 114, 186, .38) 0%, transparent 60%),
    radial-gradient(40% 50% at 92% 90%, rgba(240, 90, 40, .22) 0%, transparent 60%),
    linear-gradient(90deg, var(--navy) 0%, rgba(7, 20, 38, .92) 38%, rgba(7, 20, 38, .55) 100%);
}
.hero::after { /* fine grid */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 70% 50%, #000 0%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 70% 50%, #000 0%, transparent 75%);
}
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; grid-template-areas: "copy visual" "actions visual"; column-gap: 48px; align-items: center; }
.hero__copy { grid-area: copy; align-self: end; }
.hero__actions { grid-area: actions; align-self: start; }
.hero h1 { color: #fff; margin-bottom: 22px; }
.hero .lead { color: #C3CFDF; max-width: 590px; margin-bottom: 34px; }
.hero__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; list-style: none; }
.hero__tags li { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .06em; color: #9FB2CA; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: 6px 12px; background: rgba(255,255,255,.03); }
.hero__visual { grid-area: visual; position: relative; aspect-ratio: 1; max-width: 540px; justify-self: end; width: 100%; }

/* animated chip SVG */
.chip-svg { width: 100%; height: 100%; overflow: visible; }
.chip-svg .trace { fill: none; stroke: rgba(91, 179, 236, .28); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chip-svg .pulse { fill: none; stroke: url(#pulseGrad); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40 360; animation: tracePulse 4.2s linear infinite; filter: drop-shadow(0 0 6px rgba(240, 90, 40, .9)); }
.chip-svg .pulse:nth-of-type(2n) { animation-duration: 5.4s; animation-delay: -1.8s; }
.chip-svg .pulse:nth-of-type(3n) { animation-duration: 6.2s; animation-delay: -3.1s; }
@keyframes tracePulse { from { stroke-dashoffset: 400; } to { stroke-dashoffset: 0; } }
.chip-svg .node { fill: var(--navy); stroke: var(--blue-300); stroke-width: 2; }
.chip-svg .pin { stroke: var(--orange); stroke-width: 6; stroke-linecap: round; }
.chip-svg .die-glow { animation: dieGlow 3.2s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes dieGlow { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.chip-svg .core { animation: corePulse 3.2s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes corePulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }
.chip-svg .scan { animation: scan 3.6s var(--ease) infinite; }
@keyframes scan { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: .9; } 85% { opacity: .9; } 100% { transform: translateY(102px); opacity: 0; } }

.hero__card {
  position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px;
  background: rgba(11, 30, 54, .78); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  color: #fff; font-family: var(--font-display); font-size: .85rem; font-weight: 600; box-shadow: var(--shadow-lg);
  animation: float 6s ease-in-out infinite;
}
.hero__card small { display: block; font-family: var(--font-mono); font-weight: 400; font-size: .7rem; color: #8FA4BF; letter-spacing: .05em; }
.hero__card .dot { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(240, 90, 40, .16); color: var(--orange); }
.hero__card .dot svg { width: 18px; height: 18px; }
.hero__card--a { top: 8%; left: -4%; }
.hero__card--b { bottom: 12%; right: -2%; animation-delay: -3s; }
.hero__card--b .dot { background: rgba(91, 179, 236, .16); color: var(--blue-300); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.scroll-cue { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.3); border-radius: 14px; }
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--orange); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }

/* ---------- Ticker ---------- */
.ticker { background: var(--navy-2); border-block: 1px solid var(--line-dark); overflow: hidden; padding: 18px 0; }
.ticker__track { display: flex; width: max-content; animation: ticker 48s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__group { display: flex; gap: 44px; padding-right: 44px; list-style: none; }
.ticker__group li { display: flex; align-items: center; gap: 44px; white-space: nowrap; font-family: var(--font-mono); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: #9FB2CA; }
.ticker__group li::after { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--orange); transform: rotate(45deg); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; padding: calc(var(--header-h) + clamp(56px, 8vw, 96px)) 0 clamp(64px, 8vw, 104px);
  background: var(--navy); color: #C3CFDF; overflow: hidden; isolation: isolate;
}
.page-hero__bg { position: absolute; inset: 0; z-index: -2; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 80% at 85% 30%, rgba(10,114,186,.35), transparent 65%), linear-gradient(90deg, var(--navy) 0%, rgba(7,20,38,.9) 45%, rgba(7,20,38,.6) 100%); }
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--orange) 0 30%, var(--blue) 30% 100%); }
.page-hero h1 { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.6rem); max-width: 860px; margin-bottom: 18px; }
.page-hero .lead { color: #C3CFDF; max-width: 700px; margin-bottom: 0; }
.page-hero .btn-row { margin-top: 32px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; list-style: none; margin-bottom: 26px; font-family: var(--font-mono); font-size: .78rem; letter-spacing: .04em; }
.breadcrumb a { color: #9FB2CA; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: #5A6F8B; }
.breadcrumb [aria-current] { color: var(--orange); }

/* ---------- Cards ---------- */
.card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: .98rem; margin-bottom: 0; }
.icon-badge {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 22px;
  background: linear-gradient(135deg, var(--blue-50), #fff); color: var(--blue); border: 1px solid #D6E8F5;
  transition: background .3s, color .3s, transform .4s var(--ease);
}
.icon-badge svg { width: 28px; height: 28px; }

.service-card { display: flex; flex-direction: column; overflow: hidden; color: var(--text); }
.service-card::before { /* top accent line */
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--orange), var(--blue)); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover { color: var(--text); }
.service-card:hover .icon-badge { background: var(--blue); color: #fff; transform: rotate(-6deg) scale(1.05); }
.service-card .num { position: absolute; top: 26px; right: 28px; font-family: var(--font-mono); font-size: .78rem; color: #A9B6C7; }
.service-card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 22px; list-style: none; }
.service-card .tags li { font-family: var(--font-mono); font-size: .7rem; padding: 4px 9px; border-radius: 6px; background: var(--bg-alt); color: var(--muted); letter-spacing: .02em; }
.service-card .link-arrow { margin-top: auto; }
.service-card.is-featured { background: var(--navy); border-color: var(--navy); color: #B7C4D6; }
.service-card.is-featured h3 { color: #fff; }
.service-card.is-featured .icon-badge { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); color: var(--orange); }
.service-card.is-featured .tags li { background: rgba(255,255,255,.06); color: #9FB2CA; }
.service-card.is-featured .link-arrow { color: var(--orange); }

/* ---------- Media ---------- */
.media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform 1.2s var(--ease); }
.media:hover img { transform: scale(1.04); }
.media-stack { position: relative; padding: 0 0 48px 48px; }
.media-stack::before { content: ""; position: absolute; left: 0; bottom: 0; width: 62%; height: 62%; border-radius: var(--radius-lg); background: repeating-linear-gradient(135deg, var(--blue-50) 0 10px, transparent 10px 20px); border: 1px solid #D6E8F5; }
.media-badge {
  position: absolute; left: 0; bottom: 0; z-index: 2; background: var(--navy); color: #fff; border-radius: var(--radius);
  padding: 18px 22px; display: flex; gap: 14px; align-items: center; box-shadow: var(--shadow-lg); max-width: 300px;
}
.media-badge .ib { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: var(--orange-strong); }
.media-badge .ib svg { width: 22px; height: 22px; }
.media-badge strong { display: block; font-family: var(--font-display); font-size: .98rem; line-height: 1.3; }
.media-badge span { font-size: .8rem; color: #9FB2CA; }

/* ---------- Stats / facts ---------- */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; margin-top: 40px; }
.fact { background: #fff; padding: 26px 24px; }
.fact b { display: block; font-family: var(--font-display); font-size: clamp(2rem, 3.2vw, 2.6rem); font-weight: 700; color: var(--ink); letter-spacing: -.04em; line-height: 1; margin-bottom: 8px; }
.fact b span { color: var(--orange); }
.fact small { font-size: .88rem; color: var(--muted); line-height: 1.4; display: block; }

.checklist { list-style: none; display: grid; gap: 12px; margin: 22px 0 30px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist li svg { flex-shrink: 0; width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--orange-50); color: var(--orange-strong); margin-top: 2px; }
.section--dark .checklist li svg { background: rgba(240,90,40,.15); color: var(--orange); }
.checklist--cols { grid-template-columns: repeat(2, 1fr); gap: 12px 28px; }

/* ---------- Lifecycle tabs ---------- */
.lifecycle { display: grid; grid-template-columns: 340px 1fr; gap: 32px; align-items: stretch; }
.lifecycle__tabs { display: grid; gap: 8px; align-content: start; counter-reset: step; }
.lifecycle__tab {
  counter-increment: step; display: flex; align-items: center; gap: 14px; text-align: left; width: 100%;
  padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--line-dark); background: rgba(255,255,255,.02);
  color: #B7C4D6; font-family: var(--font-display); font-weight: 600; font-size: 1rem; cursor: pointer; transition: all .3s var(--ease); position: relative; overflow: hidden;
}
.lifecycle__tab::before { content: "0" counter(step); font-family: var(--font-mono); font-size: .75rem; font-weight: 500; color: #6F86A5; min-width: 22px; }
.lifecycle__tab:hover { color: #fff; border-color: rgba(255,255,255,.2); }
.lifecycle__tab[aria-selected="true"] { color: #fff; background: rgba(10, 114, 186, .18); border-color: rgba(91, 179, 236, .45); }
.lifecycle__tab[aria-selected="true"]::before { color: var(--orange); }
.lifecycle__tab .bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--orange); }
.lifecycle__tab[aria-selected="true"] .bar { animation: tabbar 7s linear forwards; }
.lifecycle.is-paused .lifecycle__tab .bar { animation-play-state: paused; }
@keyframes tabbar { to { width: 100%; } }
.lifecycle__panel { border-radius: var(--radius-lg); overflow: hidden; position: relative; min-height: 420px; background: var(--navy-2); border: 1px solid var(--line-dark); display: grid; grid-template-columns: 1fr 1fr; }
.lifecycle__panel[hidden] { display: none; }
.lifecycle__panel .pimg { position: relative; }
.lifecycle__panel .pimg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lifecycle__panel .pbody { padding: clamp(26px, 3.5vw, 44px); display: flex; flex-direction: column; justify-content: center; animation: fadeUp .6s var(--ease); }
.lifecycle__panel .pbody p { color: #B7C4D6; }
.lifecycle__panel .checklist { margin: 4px 0 26px; font-size: .96rem; color: #D5DEEA; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Industries ---------- */
.industry-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 260px; gap: 18px; }
.industry-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; color: #fff; display: flex; align-items: flex-end; isolation: isolate; }
.industry-card:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.industry-card:nth-child(4) { grid-column: span 2; }
.industry-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s var(--ease); }
.industry-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7,20,38,0) 25%, rgba(7,20,38,.92) 100%); transition: background .4s; }
.industry-card:hover img { transform: scale(1.07); }
.industry-card:hover::before { background: linear-gradient(180deg, rgba(10,114,186,.25) 0%, rgba(7,20,38,.95) 100%); }
.industry-card .ic-body { padding: 24px; }
.industry-card h3 { color: #fff; margin-bottom: 6px; font-size: 1.2rem; }
.industry-card p { color: #C9D4E2; font-size: .92rem; margin: 0; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s var(--ease), opacity .4s; }
.industry-card:hover p, .industry-card:focus-visible p, .industry-card:nth-child(1) p { max-height: 120px; opacity: 1; }
.industry-card .ic-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.12); backdrop-filter: blur(6px); margin-bottom: 14px; color: var(--orange); }
.industry-card .ic-ico svg { width: 20px; height: 20px; }
.industry-card:hover { color: #fff; }

/* ---------- Why / features ---------- */
.feature { display: flex; gap: 18px; align-items: flex-start; }
.feature .fi { flex-shrink: 0; width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: rgba(240, 90, 40, .12); color: var(--orange); }
.feature .fi svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.12rem; margin-bottom: 6px; }
.feature p { font-size: .96rem; margin: 0; }
.section--dark .feature p { color: #9FB2CA; }

/* standards strip */
.standards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.std { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 16px; background: #fff; transition: border-color .3s, transform .3s var(--ease); }
.std:hover { border-color: var(--blue); transform: translateY(-3px); }
.std b { display: block; font-family: var(--font-mono); font-size: .95rem; color: var(--ink); font-weight: 500; margin-bottom: 4px; }
.std span { font-size: .84rem; color: var(--muted); line-height: 1.4; display: block; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate; border-radius: 28px;
  background: linear-gradient(120deg, var(--blue-600) 0%, var(--blue) 50%, #1488D6 100%);
  color: #E6F1FA; padding: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center;
}
.cta-band::before { content: ""; position: absolute; right: -80px; top: -80px; width: 360px; height: 360px; border-radius: 50%; border: 50px solid rgba(255,255,255,.07); z-index: -1; }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 32px 32px; mask-image: linear-gradient(90deg, transparent, #000 70%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%); }
.cta-band h2 { color: #fff; margin-bottom: 10px; font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
.cta-band p { margin: 0; font-size: 1.08rem; }
.cta-band .btn { --_bg: #fff; --_fg: var(--ink); }
.cta-band .btn:hover { box-shadow: 0 14px 28px -12px rgba(0,0,0,.4); }
.cta-band .btn--ghost-light { --_bg: transparent; --_fg: #fff; }

/* ---------- Service detail ---------- */
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 64px); align-items: start; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--text); }
.capability-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 24px 0 8px; }
.capability { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: #fff; transition: border-color .3s, box-shadow .3s; }
.capability:hover { border-color: #BFDDF2; box-shadow: var(--shadow-sm); }
.capability h3 { font-size: 1.02rem; margin-bottom: 6px; display: flex; gap: 10px; align-items: center; }
.capability h3::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--orange); transform: rotate(45deg); flex-shrink: 0; }
.capability p { font-size: .93rem; margin: 0; color: var(--muted); }
.steps { list-style: none; counter-reset: s; display: grid; gap: 0; margin-top: 20px; }
.steps li { counter-increment: s; position: relative; padding: 0 0 26px 58px; }
.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: -2px; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--navy); color: #fff; font-family: var(--font-mono); font-size: .82rem; }
.steps li::after { content: ""; position: absolute; left: 19px; top: 42px; bottom: 4px; width: 2px; background: linear-gradient(var(--line), transparent); }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 1.05rem; margin-bottom: 4px; padding-top: 7px; }
.steps p { font-size: .95rem; margin: 0; }
.sidebar { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; }
.side-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; background: #fff; }
.side-card h2 { font-size: 1.1rem; margin-bottom: 14px; }
.side-card--dark { background: var(--navy); border-color: var(--navy); color: #B7C4D6; position: relative; overflow: hidden; }
.side-card--dark::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 140px; height: 140px; border-radius: 50%; border: 22px solid rgba(240,90,40,.15); }
.side-card--dark h2 { color: #fff; }
.side-card--dark p { font-size: .95rem; }
.side-card--dark .btn { width: 100%; }
.side-links { list-style: none; display: grid; gap: 2px; }
.side-links a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--ink); font-size: .94rem; font-weight: 500; }
.side-links a svg { width: 16px; height: 16px; color: var(--muted); transition: transform .25s; }
.side-links a:hover { background: var(--bg-alt); }
.side-links a:hover svg { transform: translateX(3px); color: var(--blue); }
.side-links a[aria-current="page"] { background: var(--blue-50); color: var(--blue); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.tag-cloud li { font-family: var(--font-mono); font-size: .74rem; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); color: var(--text); }
.detail-figure { margin: 28px 0; }
.detail-figure img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.detail-figure figcaption { font-size: .82rem; color: var(--muted); margin-top: 10px; }

/* ---------- Labs ---------- */
.lab-card { padding: 28px; }
.lab-card .lab-code { font-family: var(--font-mono); font-size: .74rem; color: var(--orange-strong); letter-spacing: .1em; margin-bottom: 10px; display: block; }
.lab-card ul { list-style: none; margin-top: 16px; display: grid; gap: 7px; }
.lab-card ul li { font-size: .9rem; display: flex; gap: 10px; align-items: baseline; }
.lab-card ul li::before { content: ""; width: 6px; height: 6px; flex-shrink: 0; border-radius: 50%; background: var(--blue); transform: translateY(-2px); }

/* ---------- Values / about ---------- */
.value { padding: 30px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); position: relative; overflow: hidden; }
.value .vn { font-family: var(--font-display); font-size: 4rem; font-weight: 800; line-height: 1; position: absolute; right: 18px; top: 12px; color: var(--bg-alt); letter-spacing: -.05em; }
.value h3 { position: relative; }
.value p { position: relative; margin: 0; font-size: .97rem; }
.pv-card { padding: clamp(28px, 4vw, 44px); border-radius: var(--radius-lg); position: relative; overflow: hidden; }
.pv-card--purpose { background: var(--navy); color: #C3CFDF; }
.pv-card--purpose h2 { color: #fff; }
.pv-card--vision { background: linear-gradient(135deg, var(--orange-strong), var(--orange)); color: #FFF0E9; }
.pv-card--vision h2 { color: #fff; }
.pv-card h2 { font-size: 1.6rem; }
.pv-card p { font-size: 1.08rem; margin: 0; }
.pv-card .eyebrow { color: inherit; opacity: .85; }
.group-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.group-card { border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 22px; background: rgba(255,255,255,.03); transition: border-color .3s, background-color .3s, transform .3s var(--ease); color: #B7C4D6; display: block; }
.group-card:hover { border-color: var(--orange); background: rgba(255,255,255,.06); transform: translateY(-4px); color: #B7C4D6; }
.group-card b { display: block; font-family: var(--font-display); color: #fff; font-size: 1rem; margin-bottom: 4px; }
.group-card span { font-size: .88rem; display: block; margin-bottom: 12px; }
.group-card em { font-style: normal; font-family: var(--font-mono); font-size: .74rem; color: var(--orange); }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact-cards { display: grid; gap: 14px; }
.contact-card { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--text); transition: border-color .3s, transform .3s var(--ease), box-shadow .3s; }
a.contact-card:hover { border-color: var(--blue); transform: translateY(-3px); box-shadow: var(--shadow-sm); color: var(--text); }
.contact-card .ci { width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); }
.contact-card .ci svg { width: 22px; height: 22px; }
.contact-card b { display: block; font-family: var(--font-display); color: var(--ink); font-size: 1rem; margin-bottom: 2px; }
.contact-card span { font-size: .95rem; line-height: 1.5; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--font-display); font-size: .88rem; font-weight: 600; color: var(--ink); }
.field label .req { color: var(--orange-strong); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 15px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg-alt);
  font-size: 1rem; color: var(--ink); transition: border-color .2s, background-color .2s, box-shadow .2s; appearance: none; -webkit-appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2366768C' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 42px; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #C9D5E3; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(10,114,186,.12); }
.field .err { font-size: .82rem; color: #B42318; display: none; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: #D92D20; background: #FFFBFA; }
.field.is-invalid .err { display: block; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--blue); flex-shrink: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { display: none; padding: 16px 18px; border-radius: 12px; font-size: .95rem; margin-top: 18px; }
.form-status.is-success { display: block; background: #ECFDF3; color: #05603A; border: 1px solid #A6F4C5; }
.form-status.is-error { display: block; background: #FEF3F2; color: #912018; border: 1px solid #FECDCA; }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; }
.map-wrap { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 7; background: var(--bg-alt); position: relative; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-wrap .map-load { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; background: linear-gradient(135deg, var(--bg-alt), var(--blue-50)); }
.map-wrap .map-load p { margin: 0 0 14px; color: var(--muted); }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 860px; margin-inline: auto; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: border-color .3s, box-shadow .3s; }
.faq details[open] { border-color: #BFDDF2; box-shadow: var(--shadow-sm); }
.faq summary { padding: 20px 22px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; font-family: var(--font-display); font-weight: 600; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { width: 28px; height: 28px; border-radius: 50%; background: var(--bg-alt); position: relative; flex-shrink: 0; transition: background-color .3s, transform .3s; }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--ink); transform: translate(-50%, -50%); border-radius: 2px; transition: transform .3s; }
.faq summary .pm::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] .pm { background: var(--orange-strong); }
.faq details[open] .pm::before, .faq details[open] .pm::after { background: #fff; }
.faq details[open] .pm::after { transform: translate(-50%, -50%) rotate(0); }
.faq .faq-body { padding: 0 22px 20px; }
.faq .faq-body p { margin: 0; }

/* legal */
.legal { max-width: 820px; }
.legal h2 { font-size: 1.4rem; margin-top: 1.8em; }
.legal ul { padding-left: 1.2em; margin-bottom: 1em; }
.legal li { margin-bottom: .4em; }

/* 404 */
.notfound { min-height: 100vh; display: grid; place-items: center; text-align: center; background: var(--navy); color: #B7C4D6; padding: 120px 20px 80px; position: relative; overflow: hidden; isolation: isolate; }
.notfound::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 40px 40px; mask-image: radial-gradient(circle, #000, transparent 70%); -webkit-mask-image: radial-gradient(circle, #000, transparent 70%); }
.notfound .code { font-family: var(--font-display); font-size: clamp(6rem, 20vw, 12rem); font-weight: 800; line-height: 1; letter-spacing: -.06em; }
.notfound h1 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.notfound .btn-row { justify-content: center; margin-top: 28px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #9FB2CA; padding-top: clamp(64px, 8vw, 96px); position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(91,179,236,.5), transparent); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.25fr; gap: clamp(28px, 4vw, 56px); padding-bottom: 56px; }
.footer-brand .logo-tile { display: inline-block; background: #fff; border-radius: 14px; padding: 12px 16px; margin-bottom: 20px; }
.footer-brand .logo-tile img { height: 54px; width: auto; }
.footer-brand p { font-size: .95rem; max-width: 340px; }
.footer-brand .tagline { font-family: var(--font-mono); font-size: .78rem; color: var(--orange); letter-spacing: .04em; }
.site-footer h2 { font-size: .8rem; font-family: var(--font-mono); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 20px; }
.footer-links { list-style: none; display: grid; gap: 10px; }
.footer-links a { color: #9FB2CA; font-size: .95rem; display: inline-flex; align-items: center; gap: 8px; transition: color .2s, transform .2s; }
.footer-links a:hover { color: #fff; transform: translateX(3px); }
.footer-contact { list-style: none; display: grid; gap: 14px; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; }
.footer-contact svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--orange); margin-top: 4px; }
.footer-contact a { color: #9FB2CA; }
.footer-contact a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid var(--line-dark); padding: 22px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .86rem; }
.footer-bottom a { color: #9FB2CA; }
.footer-bottom a:hover { color: #fff; }
.footer-bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-watermark { font-family: var(--font-display); font-weight: 800; font-size: clamp(4rem, 15vw, 13rem); letter-spacing: -.06em; line-height: .8; color: rgba(255,255,255,.025); text-align: center; user-select: none; pointer-events: none; margin-bottom: -.12em; }

.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 48px; height: 48px; border-radius: 14px; border: 0; background: var(--navy); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(12px); transition: all .3s var(--ease); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--orange-strong); }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Reveal animations ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal--left { transform: translateX(-32px); }
.js .reveal--right { transform: translateX(32px); }
.js .reveal--zoom { transform: scale(.94); }
.js .reveal.is-in { opacity: 1; transform: none; }
.progress-bar { position: fixed; left: 0; top: 0; height: 3px; width: 100%; z-index: 101; background: linear-gradient(90deg, var(--orange), var(--blue)); transform-origin: left; transform: scaleX(0); }

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  .main-nav > ul .nav-item--hide-md { display: none; }
  .brand img { height: 52px; }
  .is-scrolled .brand img { height: 46px; }
}
@media (max-width: 1200px) {
  .nav-link { padding: 10px 9px; }
  .header-cta { margin-left: 4px; }
}
@media (max-width: 1100px) {
  .main-nav, .header-cta { display: none; }
  .nav-toggle { display: grid; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .detail-layout { grid-template-columns: minmax(0, 1fr) 300px; }
}
@media (max-width: 960px) {
  :root { --header-h: 76px; }
  .hero { min-height: auto; }
  .hero__grid, .split, .contact-layout, .detail-layout, .lifecycle { grid-template-columns: 1fr; }
  .split--rev > :first-child { order: 0; }
  .hero__grid { grid-template-areas: "copy" "visual" "actions"; row-gap: 8px; }
  .hero .lead { margin-bottom: 8px; }
  .hero__visual { max-width: 420px; justify-self: center; margin: 0 0 24px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .industry-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 230px; }
  .industry-card:nth-child(1) { grid-column: span 2; grid-row: span 1; }
  .industry-card:nth-child(4) { grid-column: span 1; }
  .industry-card p { max-height: 120px; opacity: 1; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .lifecycle__tabs { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
  .lifecycle__tabs::-webkit-scrollbar { display: none; }
  .lifecycle__panel { grid-template-columns: 1fr; }
  .lifecycle__panel .pimg { aspect-ratio: 16 / 8; }
  .sidebar { position: static; }
  .cta-band { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .grid-2, .grid-3, .grid-4, .form-grid, .capability-grid, .checklist--cols, .group-grid { grid-template-columns: 1fr; }
  .industry-grid { grid-template-columns: 1fr; }
  .industry-card:nth-child(1) { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand img { height: 50px; }
  .is-scrolled .brand img { height: 46px; }
  .hero { padding-top: calc(var(--header-h) + 40px); padding-bottom: 72px; }
  .hero__card { font-size: .75rem; padding: 9px 12px; }
  .hero__card .dot { width: 28px; height: 28px; }
  .hero__card--a { left: 0; top: 2%; }
  .hero__card--b { right: 0; }
  .scroll-cue { display: none; }
  .btn-row .btn { flex: 1 1 100%; }
  .media-stack { padding: 0 0 36px 20px; }
  .media-badge { max-width: 260px; padding: 14px 16px; }
  .card, .lab-card { padding: 24px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .fact { padding: 20px 16px; }
  .map-wrap { aspect-ratio: 4 / 3; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  /* The capability strip keeps scrolling (slower) even when reduced motion is requested */
  .ticker__track { animation: ticker 80s linear infinite !important; }
}

@media print {
  .site-header, .mobile-nav, .to-top, .site-footer, .cta-band, .progress-bar { display: none !important; }
  .page-hero, .hero { background: none; color: #000; padding: 20px 0; }
  .page-hero h1, .hero h1 { color: #000; }
}
