/* Productive Design Services - productivedesign.com
   One stylesheet, no framework. Mobile first; breakpoints 600 / 860 / 1100 px. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations");
  font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap;
}

:root {
  /* PDS navy (from the logo), not black */
  --bg: #0a1033;
  --bg-2: #0d1540;
  --surface: #121b4c;
  --surface-2: #17215a;
  --line: rgba(164, 175, 207, .16);
  --line-strong: rgba(164, 175, 207, .32);
  --text: #eef1f8;
  --muted: #a4afcf;
  --dim: #7a86ab;
  --blue: #4e5fe8;
  --blue-deep: #2b3990;
  --blue-soft: #9aa6ff;
  --green: #4caf3a;
  --green-bright: #6fcf57;
  --accent: linear-gradient(115deg, #6f80ff 0%, #4e5fe8 35%, #4caf3a 100%);
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 30px 60px -30px rgba(2, 5, 20, .75);
  --container: 1240px;
  --gutter: clamp(20px, 5vw, 40px);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  /* One family: Archivo. Headlines at its widest width echo the extended PDS logotype. */
  --font-head: "Archivo", "Segoe UI", system-ui, sans-serif;
  --font-body: "Archivo", "Segoe UI", system-ui, sans-serif;
  --font-mono: "Archivo", "Segoe UI", system-ui, sans-serif;
  --wide: 125%;
  color-scheme: dark;
}

.theme-light {
  --bg: #eef1f8;
  --bg-2: #e3e8f4;
  --surface: #ffffff;
  --surface-2: #f6f8fe;
  --line: rgba(20, 30, 80, .1);
  --line-strong: rgba(20, 30, 80, .2);
  --text: #0a1033;
  --muted: #47506e;
  --dim: #6b7390;
  --blue: #3346e0;
  --green: #2f8f22;
  --shadow: 0 24px 50px -28px rgba(20, 30, 80, .35);
  color-scheme: light;
  background: var(--bg);
  color: var(--text);
}

/* ---------- 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; background: var(--bg); color: var(--text);
  font: 400 1.0625rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); font-stretch: var(--wide); line-height: 1.04; letter-spacing: -.025em; margin: 0 0 .5em; font-weight: 640; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.6rem); font-weight: 680; letter-spacing: -.035em; }
h2 { font-size: clamp(1.9rem, 3.8vw, 3.1rem); letter-spacing: -.03em; }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.3rem); letter-spacing: -.01em; font-weight: 650; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--green-bright); outline-offset: 3px; border-radius: 4px; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--green); color: #04110a; padding: 10px 16px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: clamp(80px, 11vw, 150px); }
.section--tight { padding-block: clamp(56px, 7vw, 96px); }
.section--line { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(40px, 6vw, 72px); max-width: 780px; }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 1.125rem; margin: 0; }
.section-head--split { max-width: none; }
@media (min-width: 860px) {
  .section-head--split { grid-template-columns: 1.1fr .9fr; align-items: end; gap: 60px; }
}
.lead { font-size: clamp(1.125rem, 1.6vw, 1.3rem); color: var(--muted); line-height: 1.6; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin: 0;
  font: 560 .9rem/1 var(--font-mono); color: var(--green-bright);
}
.theme-light .eyebrow { color: var(--green); }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.gradient-text { background: var(--accent); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Blueprint grid backdrop */
.grid-bg {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%);
  opacity: .55;
}
.section > .container, .page-hero > .container { position: relative; z-index: 1; }

/* ---------- Buttons ---------- */
.btn {
  --b-bg: transparent; --b-fg: var(--text); --b-line: var(--line-strong);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 24px; border-radius: 999px; border: 1px solid var(--b-line);
  background: var(--b-bg); color: var(--b-fg); font: 600 .98rem/1 var(--font-body); letter-spacing: .01em;
  text-decoration: none; cursor: pointer; isolation: isolate; overflow: hidden;
  transition: transform .35s var(--ease), border-color .3s, background-color .3s, box-shadow .3s;
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease); flex: none; }
.btn:hover svg { transform: translateX(4px); }
.btn--primary { --b-bg: var(--blue); --b-fg: #fff; --b-line: transparent; box-shadow: 0 10px 40px -10px rgba(84, 104, 255, .7); }
.btn--primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent);
  opacity: 0; transition: opacity .4s var(--ease);
}
.btn--primary:hover::before { opacity: 1; }
.btn--ghost:hover { border-color: var(--text); }
.btn--sm { min-height: 42px; padding: 10px 18px; font-size: .9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 6px; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
.link-arrow:hover { color: var(--green-bright); }
.theme-light .link-arrow:hover { color: var(--blue); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  transition: background-color .4s, border-color .4s, backdrop-filter .4s, transform .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled, .site-header.is-solid {
  background: rgba(10, 16, 51, .78); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom-color: var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand img { width: auto; height: 46px; }
.brand-name { font: 620 .98rem/1.15 var(--font-head); font-stretch: 112%; letter-spacing: -.01em; }
@media (max-width: 400px) { .brand-name { display: none; } }
.main-nav { margin-left: auto; }
.main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.main-nav a, .nav-toggle-sub {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 999px;
  color: var(--muted); text-decoration: none; font-weight: 500; font-size: .95rem; background: none; border: 0; cursor: pointer;
  transition: color .2s, background-color .2s;
}
.main-nav a:hover, .main-nav a[aria-current="page"], .nav-toggle-sub:hover, .has-sub:focus-within > .nav-toggle-sub { color: var(--text); background: rgba(255, 255, 255, .06); }
.nav-toggle-sub svg { width: 14px; height: 14px; transition: transform .3s; }
.has-sub { position: relative; }
.sub-menu {
  position: absolute; top: calc(100% + 10px); left: 50%; translate: -50% 0; width: min(560px, 90vw);
  list-style: none; margin: 0; padding: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  background: rgba(10, 17, 34, .96); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); backdrop-filter: blur(16px);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .25s, transform .25s var(--ease), visibility .25s;
}
.sub-menu::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu, .has-sub.is-open .sub-menu { opacity: 1; visibility: visible; transform: none; }
.has-sub:hover .nav-toggle-sub svg, .has-sub.is-open .nav-toggle-sub svg { transform: rotate(180deg); }
.sub-menu a { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; color: var(--text); }
.sub-menu a span { font-size: .82rem; color: var(--dim); font-weight: 400; }
.sub-menu a:hover { background: rgba(84, 104, 255, .14); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .portal-link { color: var(--muted); font-size: .9rem; font-weight: 500; text-decoration: none; padding: 10px 8px; display: inline-flex; gap: 6px; align-items: center; }
.header-actions .portal-link:hover { color: var(--text); }
.header-actions .portal-link svg { width: 16px; height: 16px; }
.nav-burger { display: none; }

@media (max-width: 1099px) {
  .main-nav, .header-actions .portal-link, .header-actions .btn { display: none; }
  .nav-burger {
    display: inline-flex; margin-left: auto; width: 48px; height: 48px; border-radius: 50%;
    border: 1px solid var(--line-strong); background: rgba(10, 16, 51, .4); align-items: center; justify-content: center; cursor: pointer;
  }
  .nav-burger span, .nav-burger span::before, .nav-burger span::after {
    display: block; width: 18px; height: 1.5px; background: var(--text); position: relative; transition: transform .35s var(--ease), background-color .2s;
  }
  .nav-burger span::before, .nav-burger span::after { content: ""; position: absolute; left: 0; }
  .nav-burger span::before { top: -6px; } .nav-burger span::after { top: 6px; }
  .nav-open .nav-burger span { background: transparent; }
  .nav-open .nav-burger span::before { transform: translateY(6px) rotate(45deg); }
  .nav-open .nav-burger span::after { transform: translateY(-6px) rotate(-45deg); }
}

/* Mobile menu (separate from the desktop nav so each stays simple) */
.mobile-menu {
  position: fixed; inset: 0; z-index: 90; padding: calc(var(--header-h) + 16px) var(--gutter) 32px;
  background: rgba(10, 16, 51, .97); backdrop-filter: blur(20px); overflow-y: auto;
  opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
  display: flex; flex-direction: column; gap: 28px;
}
.nav-open .mobile-menu { opacity: 1; visibility: visible; }
.nav-open body, body.nav-open { overflow: hidden; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu svg { width: 18px; height: 18px; flex: none; }
.mobile-menu .mm-main > li > a {
  display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); font-stretch: var(--wide);
  font: 600 clamp(1.5rem, 6vw, 2rem)/1.2 var(--font-head); text-decoration: none; letter-spacing: -.02em;
}
.mobile-menu .mm-sub { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; padding: 10px 0 16px; border-bottom: 1px solid var(--line); }
.mobile-menu .mm-sub a { color: var(--muted); text-decoration: none; padding: 6px 0; display: block; font-size: 1rem; }
.mobile-menu .btn-row .btn { flex: 1 1 200px; }
.mm-contact { color: var(--muted); font-size: .95rem; }
.mm-contact a { color: var(--text); }
@media (min-width: 1100px) { .mobile-menu { display: none; } }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; align-items: center; overflow: hidden;
  padding: calc(var(--header-h) + 40px) 0 clamp(120px, 16vh, 170px);
  background: radial-gradient(120% 90% at 70% 10%, #101b44 0%, var(--bg) 60%);
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-canvas:not(.is-live) + .hero-fallback { opacity: 1; }
.hero-fallback {
  position: absolute; inset: 0; z-index: 0; opacity: 0; transition: opacity .6s; pointer-events: none;
  background:
    radial-gradient(60% 60% at 75% 55%, rgba(84, 104, 255, .28), transparent 70%),
    radial-gradient(40% 40% at 85% 75%, rgba(76, 175, 58, .2), transparent 70%);
}
.hero-fallback .grid-bg { mask-image: radial-gradient(ellipse at 70% 50%, #000 10%, transparent 70%); opacity: .8; }
.hero.no-webgl .hero-canvas { display: none; }
.hero.no-webgl .hero-fallback { opacity: 1; background: url("../img/hero-still.webp") 70% 50% / cover no-repeat; }
.hero.no-webgl .hero-fallback .grid-bg { display: none; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10, 16, 51, .92) 0%, rgba(10, 16, 51, .55) 45%, rgba(10, 16, 51, 0) 75%),
    linear-gradient(0deg, var(--bg) 0%, rgba(10, 16, 51, 0) 30%);
}
.hero .container { position: relative; z-index: 2; }
.hero-copy { max-width: 820px; display: grid; gap: 28px; }
.hero h1 { margin: 0; }
.hero h1 .line { display: block; }
.hero .lead { max-width: 560px; margin: 0; }
.hero-meta { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 28px; color: var(--muted); font-size: .95rem; }
.hero-hud {
  position: absolute; right: var(--gutter); bottom: clamp(120px, 16vh, 170px); z-index: 2;
  font: 560 .85rem/1.7 var(--font-mono); color: var(--muted);
  border-left: 1px solid var(--line-strong); padding-left: 14px; display: none;
}
.hero-hud b { color: var(--text); font-weight: 500; }
.hero-hud .legend { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.hero-hud .legend i { width: 120px; height: 6px; border-radius: 3px; background: linear-gradient(90deg, #1d2bd8, #00c8ff, #3ee07a, #f5e52b, #ff3b1f); }
@media (min-width: 1100px) { .hero-hud { display: block; } }
.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; z-index: 2; translate: -50% 0; width: 26px; height: 42px;
  border: 1px solid var(--line-strong); border-radius: 14px; display: none;
}
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--text); animation: cue 2s infinite var(--ease); }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 80% { opacity: 0; transform: translateY(14px); } 100% { opacity: 0; } }
@media (min-width: 860px) and (min-height: 700px) { .scroll-cue { display: block; } }

/* Trust bar under the hero */
.trust {
  position: relative; z-index: 3; margin-top: calc(-1 * clamp(80px, 11vh, 120px));
}
.trust-inner {
  display: grid; grid-template-columns: 1fr; border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(10, 17, 34, .72); backdrop-filter: blur(14px); overflow: hidden;
}
.trust-item { display: flex; align-items: center; gap: 16px; padding: 22px 24px; border-bottom: 1px solid var(--line); text-decoration: none; transition: background-color .3s; }
.trust-item:last-child { border-bottom: 0; }
.trust-item:hover { background: rgba(84, 104, 255, .08); }
.trust-item img { height: 46px; width: auto; flex: none; }
.trust-item .ico { width: 46px; height: 46px; flex: none; border-radius: 12px; display: grid; place-items: center; background: rgba(84, 104, 255, .14); color: var(--blue-soft); }
.trust-item .ico svg { width: 24px; height: 24px; }
.trust-item strong { display: block; font: 600 1rem/1.25 var(--font-head); }
.trust-item span { color: var(--muted); font-size: .88rem; line-height: 1.4; display: block; }
@media (min-width: 860px) {
  .trust-inner { grid-template-columns: repeat(3, 1fr); }
  .trust-item { border-bottom: 0; border-right: 1px solid var(--line); }
  .trust-item:last-child { border-right: 0; }
}

/* ---------- About ---------- */
.about-grid { display: grid; gap: clamp(40px, 6vw, 80px); align-items: center; }
@media (min-width: 960px) { .about-grid { grid-template-columns: 1.15fr .85fr; } }
.about-text p { color: var(--muted); font-size: 1.08rem; }
.about-text p:first-child { color: var(--text); font-size: clamp(1.15rem, 1.7vw, 1.35rem); line-height: 1.55; }
.about-visual { position: relative; perspective: 1000px; }
.about-visual .render { position: relative; z-index: 1; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; border: 1px solid var(--line-strong); box-shadow: var(--shadow); transition: transform .6s var(--ease); }
.about-visual .render img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; transform: scale(1.02); }
.about-visual .render::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(10, 16, 51, .75)); }
.about-visual .render figcaption { position: absolute; z-index: 1; right: 20px; bottom: 18px; font: 560 .85rem/1.4 var(--font-mono); color: var(--muted); }
/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); margin-top: clamp(56px, 8vw, 96px); }
.stat { padding: 32px 8px 8px 0; border-right: 1px solid var(--line); padding-left: clamp(0px, 2vw, 28px); }
.stat:nth-child(2n) { border-right: 0; }
.stat:nth-child(n+3) { border-top: 1px solid var(--line); }
.stat .num { font: 600 clamp(2.6rem, 6vw, 4.6rem)/1 var(--font-head); letter-spacing: -.04em; display: flex; align-items: baseline; }
.stat .num sup { font-size: .45em; color: var(--green-bright); top: 0; margin-left: 4px; }
.stat .label { color: var(--muted); font-size: .95rem; margin-top: 10px; }
@media (min-width: 860px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stat { border-top: 0 !important; border-right: 1px solid var(--line) !important; }
  .stat:last-child { border-right: 0 !important; }
  .stat:first-child { padding-left: 0; }
}

/* ---------- Full-bleed feature band ---------- */
.feature-band { position: relative; min-height: clamp(460px, 70vh, 720px); display: grid; align-items: end; overflow: hidden; }
.feature-band .bg { position: absolute; inset: -12% 0; z-index: 0; }
.feature-band .bg img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.feature-band::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(10, 16, 51, .95) 0%, rgba(10, 16, 51, .5) 45%, rgba(10, 16, 51, .15) 100%), linear-gradient(90deg, rgba(10, 16, 51, .7), transparent 60%); }
.feature-band .container { position: relative; z-index: 2; padding-block: clamp(56px, 8vw, 96px); }
.feature-band h2 { max-width: 760px; }
.feature-band p:not(.eyebrow) { max-width: 560px; color: var(--muted); font-size: 1.1rem; }

/* ---------- Process ---------- */
.process { position: relative; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.process-line { position: absolute; left: 23px; top: 24px; bottom: 24px; width: 1px; background: var(--line); }
.process-line i { position: absolute; inset: 0 0 auto; height: var(--progress, 0%); background: var(--accent); box-shadow: 0 0 12px var(--blue); }
.step { position: relative; display: grid; grid-template-columns: 48px 1fr; align-content: start; gap: 20px; padding-bottom: 36px; }
.step:last-child { padding-bottom: 0; }
.step .dot {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; z-index: 1;
  background: var(--bg); border: 1px solid var(--line-strong); font: 560 .86rem/1 var(--font-mono); color: var(--muted);
  transition: border-color .4s, color .4s, box-shadow .4s, background-color .4s;
}
.step.is-active .dot { border-color: var(--green-bright); color: var(--text); background: #0b1a14; box-shadow: 0 0 0 6px rgba(76, 175, 58, .12); }
.step h3 { margin: 10px 0 6px; }
.step p { color: var(--muted); margin: 0; }
@media (min-width: 1000px) {
  .steps { grid-template-columns: repeat(6, 1fr); gap: 20px; }
  .process-line { left: 24px; right: 24px; top: 24px; bottom: auto; width: auto; height: 1px; }
  .process-line i { inset: 0 auto 0 0; height: 100%; width: var(--progress, 0%); }
  .step { grid-template-columns: 1fr; gap: 0; padding: 0; }
  .step h3 { margin-top: 22px; font-size: 1.15rem; }
  .step p { font-size: .94rem; }
}

/* ---------- Industries ---------- */
.industries { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .industries { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .industries { grid-template-columns: repeat(3, 1fr); } }
.ind {
  position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3; isolation: isolate;
  border: 1px solid var(--line); background: #0b1020;
}
.ind img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: grayscale(1) contrast(1.05) brightness(.7); transition: filter .8s var(--ease), transform 1.2s var(--ease); }
.ind::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 16, 51, .1) 20%, rgba(10, 16, 51, .95) 100%); transition: background-color .5s; }
.ind .ind-body { position: absolute; inset: auto 0 0; padding: 24px; display: grid; gap: 8px; }
.ind h3 { margin: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ind h3 small { font: 560 .84rem/1 var(--font-mono); color: var(--muted); }
.ind p { margin: 0; color: #c8d0e6; font-size: .95rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; transition: color .4s; }
@media (hover: hover) {
  .ind p { max-height: 0; opacity: 0; transition: max-height .6s var(--ease), opacity .4s; -webkit-line-clamp: unset; display: block; }
  .ind:hover p, .ind:focus-within p { max-height: 12em; opacity: 1; }
  .ind:hover::before { background-color: rgba(10, 16, 51, .45); }
}
.ind:hover img { filter: grayscale(0) brightness(.85); transform: scale(1.05); }

/* ---------- Why PDS ---------- */
.why { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 700px) { .why { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .why { grid-template-columns: repeat(3, 1fr); } }
.why-item { background: var(--bg); padding: clamp(28px, 3.5vw, 40px); display: grid; gap: 14px; align-content: start; }
.theme-light .why-item { background: var(--surface); }
.why-item .ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(84, 104, 255, .2), rgba(76, 175, 58, .14)); border: 1px solid var(--line); color: var(--blue-soft); }
.theme-light .why-item .ico { color: var(--blue); }
.why-item .ico svg { width: 26px; height: 26px; }
.why-item h3 { margin: 6px 0 0; font-size: 1.2rem; }
.why-item p { margin: 0; color: var(--muted); font-size: .98rem; }

/* ---------- Certification band ---------- */
.cert-band {
  position: relative; overflow: hidden; border-radius: calc(var(--radius) + 6px); padding: clamp(32px, 5vw, 64px);
  background: radial-gradient(90% 120% at 100% 0%, rgba(84, 104, 255, .3), transparent 60%), radial-gradient(60% 90% at 0% 100%, rgba(76, 175, 58, .2), transparent 60%), var(--surface);
  border: 1px solid var(--line-strong); display: grid; gap: 36px; align-items: center;
}
@media (min-width: 960px) { .cert-band { grid-template-columns: 1.2fr .8fr; } }
.cert-band h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.cert-band p:not(.eyebrow) { color: var(--muted); }
.cert-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cert-list li { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 14px; background: rgba(10, 16, 51, .55); border: 1px solid var(--line); }
.cert-list li img { height: 44px; width: auto; }
.cert-list li .ico { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--green-bright); }
.cert-list li .ico svg { width: 22px; height: 22px; }
.cert-list strong { display: block; font: 600 1rem/1.3 var(--font-head); }
.cert-list span { color: var(--muted); font-size: .86rem; }

/* ---------- Portal teaser ---------- */
.portal { display: grid; gap: clamp(40px, 6vw, 80px); align-items: center; }
@media (min-width: 960px) { .portal { grid-template-columns: .9fr 1.1fr; } }
.portal-ui {
  border-radius: var(--radius); border: 1px solid var(--line-strong); background: var(--surface); box-shadow: var(--shadow);
  overflow: hidden; font-size: .88rem;
}
.portal-ui .bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.portal-ui .bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.portal-ui .bar span { margin-left: 10px; font: 560 .85rem/1 var(--font-mono); color: var(--dim); }
.portal-ui table { width: 100%; border-collapse: collapse; }
.portal-ui th, .portal-ui td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.portal-ui th { font: 560 .82rem/1 var(--font-mono); color: var(--dim); }
.portal-ui td:first-child { font-family: var(--font-mono); color: var(--muted); }
.portal-ui tr:last-child td { border-bottom: 0; }
.portal-ui .scroll { overflow-x: auto; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: .76rem; font-weight: 600; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status--done { color: var(--green-bright); background: rgba(76, 175, 58, .12); }
.status--prog { color: var(--blue-soft); background: rgba(84, 104, 255, .14); }
.status--new { color: #f5c84b; background: rgba(245, 200, 75, .12); }
.portal-ui .toast {
  margin: 14px 16px 16px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(76, 175, 58, .4); background: rgba(76, 175, 58, .08);
  display: flex; gap: 10px; align-items: center; color: var(--text);
}
.portal-ui .toast svg { width: 18px; height: 18px; color: var(--green-bright); flex: none; }
.check-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); }
.check-list li svg { width: 20px; height: 20px; flex: none; color: var(--green-bright); margin-top: 3px; }
.theme-light .check-list li svg { color: var(--green); }

/* ---------- CTA + forms ---------- */
.cta-grid { display: grid; gap: clamp(40px, 6vw, 72px); }
@media (min-width: 960px) { .cta-grid { grid-template-columns: .9fr 1.1fr; align-items: start; } }
.contact-lines { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.contact-lines li { display: flex; gap: 14px; align-items: flex-start; }
.contact-lines .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(84, 104, 255, .12); color: var(--blue-soft); flex: none; }
.contact-lines .ico svg { width: 20px; height: 20px; }
.contact-lines small { display: block; font: 560 .84rem/1.4 var(--font-mono); color: var(--dim); }
.contact-lines a { text-decoration: none; font-weight: 500; }
.contact-lines a:hover { color: var(--green-bright); }

.form-card { border-radius: calc(var(--radius) + 4px); padding: clamp(24px, 4vw, 44px); background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow); }
.form-grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field { display: grid; gap: 8px; }
.field label { font-size: .88rem; font-weight: 600; color: var(--text); }
.field label .opt { font-weight: 400; color: var(--dim); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--line-strong);
  background: rgba(10, 16, 51, .5); color: var(--text); transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.theme-light .field input, .theme-light .field select, .theme-light .field textarea { background: #fff; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a3aecb' 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: 44px; }
.field select option { background: var(--bg-2); color: var(--text); }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(84, 104, 255, .2); }
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field .err { color: #ff8a7a; font-size: .85rem; }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: #ff8a7a; }
.form-foot { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; margin-top: 8px; }
.form-foot small { color: var(--dim); max-width: 380px; }
.form-status { border-radius: 12px; padding: 14px 16px; margin-bottom: 18px; display: none; }
.form-status.is-ok { display: block; background: rgba(76, 175, 58, .12); border: 1px solid rgba(76, 175, 58, .45); }
.form-status.is-err { display: block; background: rgba(255, 110, 90, .1); border: 1px solid rgba(255, 110, 90, .45); }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; overflow: hidden; padding: calc(var(--header-h) + clamp(56px, 9vw, 120px)) 0 clamp(56px, 8vw, 100px);
  background: radial-gradient(90% 100% at 85% 0%, #121e4d 0%, var(--bg) 60%);
  border-bottom: 1px solid var(--line);
}
.page-hero .bg { position: absolute; inset: 0; z-index: 0; }
.page-hero .bg img { width: 100%; height: 100%; object-fit: cover; opacity: .35; filter: saturate(.8); }
.page-hero .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 15%, rgba(10, 16, 51, .55) 60%, rgba(10, 16, 51, .3)), linear-gradient(0deg, var(--bg), transparent 50%); }
.page-hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .page-hero-grid.has-visual { grid-template-columns: 1.1fr .9fr; } }
.page-hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); margin: 18px 0 22px; max-width: 900px; }
.page-hero .lead { max-width: 680px; margin: 0; }
.crumbs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font: 560 .86rem/1 var(--font-mono); color: var(--dim); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--dim); }
.page-hero .btn-row { margin-top: 32px; }

/* ---------- Service detail rows ---------- */
.rows { display: grid; gap: clamp(64px, 9vw, 120px); }
.row { display: grid; gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (min-width: 900px) {
  .row { grid-template-columns: 1fr 1fr; }
  .row:nth-child(even) .row-media { order: 2; }
}
.row-media { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #0b1020; aspect-ratio: 1 / 1; max-height: 560px; }
.row-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.row:hover .row-media img { transform: scale(1.04); }
.row-media .num { position: absolute; top: 18px; left: 18px; font: 560 .86rem/1 var(--font-mono); padding: 8px 10px; border-radius: 999px; background: rgba(10, 16, 51, .75); border: 1px solid var(--line-strong); color: var(--text); }
.row-copy h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
.row-copy > p { color: var(--muted); font-size: 1.08rem; }
.bullets { list-style: none; padding: 0; margin: 0 0 26px; border-top: 1px solid var(--line); }
.bullets li { position: relative; padding: 13px 0 13px 28px; border-bottom: 1px solid var(--line); }
.bullets li::before { content: ""; position: absolute; left: 0; top: 50%; width: 14px; height: 2px; background: var(--green-bright); }
.theme-light .bullets li::before { background: var(--green); }

/* Capability cards (smaller, for the design page and services overview) */
.cards { display: grid; gap: 18px; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }
.card { border-radius: var(--radius); padding: clamp(24px, 3vw, 32px); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 12px; align-content: start; transition: border-color .4s, transform .5s var(--ease); }
.card:hover { border-color: var(--line-strong); }
.card h3 { margin: 0; font-size: 1.2rem; }
.card p { margin: 0; color: var(--muted); font-size: .98rem; }
.card .ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: rgba(84, 104, 255, .14); color: var(--blue-soft); }
.theme-light .card .ico { color: var(--blue); }
.card .ico svg { width: 24px; height: 24px; }
.card .kicker { font: 560 .85rem/1 var(--font-mono); color: var(--dim); }
.card-media { margin: calc(-1 * clamp(24px, 3vw, 32px)) calc(-1 * clamp(24px, 3vw, 32px)) 8px; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.card:hover .card-media img { transform: scale(1.05); }
a.card { text-decoration: none; color: inherit; }

/* ---------- Simulation visuals (moldflow / fea / data) ---------- */
.viz { position: relative; border-radius: var(--radius); border: 1px solid var(--line-strong); background: radial-gradient(80% 80% at 50% 40%, rgba(84, 104, 255, .16), transparent 70%), rgba(10, 17, 34, .7); overflow: hidden; }
.viz svg { width: 100%; height: auto; }
.viz-caption { position: absolute; left: 16px; bottom: 14px; font: 560 .84rem/1.4 var(--font-mono); color: var(--muted); }
.viz-legend { position: absolute; right: 16px; bottom: 16px; display: flex; align-items: center; gap: 8px; font: 560 .86rem/1 var(--font-mono); color: var(--dim); }
.viz-legend i { width: 90px; height: 6px; border-radius: 3px; background: linear-gradient(90deg, #1d2bd8, #00c8ff, #3ee07a, #f5e52b, #ff3b1f); }

/* ---------- Articles ---------- */
.post-grid { display: grid; gap: 18px; }
@media (min-width: 700px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }
.post-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: border-color .4s, transform .5s var(--ease); }
.post-card:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.post-card .media { aspect-ratio: 16 / 9; overflow: hidden; background: #0b1020; }
.post-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.post-card:hover .media img { transform: scale(1.05); }
.post-card .body { padding: 22px 24px 26px; display: grid; gap: 10px; }
.post-card .meta { font: 560 .84rem/1 var(--font-mono); color: var(--green-bright); }
.theme-light .post-card .meta { color: var(--green); }
.post-card h3 { margin: 0; font-size: 1.2rem; }
.post-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filters button { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; cursor: pointer; color: var(--muted); font-size: .9rem; font-weight: 500; }
.filters button[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.post-card[hidden] { display: none; }

.prose { max-width: 740px; font-size: 1.1rem; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--text); font-weight: 600; }
.prose h3 { margin: 2em 0 .7em; font-size: 1.45rem; }
.prose ul, .prose ol { padding-left: 1.3em; margin-bottom: 1.4em; }
.prose li { margin-bottom: .6em; }
.prose li::marker { color: var(--green-bright); }
.prose a { color: var(--blue-soft); }
.prose figure { margin: 2em 0; }
.prose figure img { border-radius: var(--radius-sm); border: 1px solid var(--line); }
.article-layout { display: grid; gap: 56px; }
@media (min-width: 1000px) { .article-layout { grid-template-columns: minmax(0, 1fr) 320px; } }
.aside-card { position: sticky; top: calc(var(--header-h) + 24px); border-radius: var(--radius); padding: 26px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 14px; }
.aside-card h3 { margin: 0; font-size: 1.15rem; }
.aside-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.video-card { position: relative; display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-strong); text-decoration: none; margin: 2em 0; }
.video-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; filter: brightness(.7); transition: filter .4s, transform 1s var(--ease); }
.video-card:hover img { filter: brightness(.9); transform: scale(1.03); }
.video-card .play { position: absolute; inset: 0; display: grid; place-items: center; }
.video-card .play span { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: rgba(84, 104, 255, .9); box-shadow: 0 0 0 10px rgba(84, 104, 255, .25); transition: transform .4s var(--ease); }
.video-card:hover .play span { transform: scale(1.08); }
.video-card .play svg { width: 30px; height: 30px; color: #fff; margin-left: 4px; }
.video-card .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 20px; background: linear-gradient(0deg, rgba(10, 16, 51, .9), transparent); font-weight: 600; }
.video-card .cap small { display: block; font: 560 .84rem/1.4 var(--font-mono); color: var(--muted); }

/* ---------- Contact ---------- */
.offices { display: grid; gap: 18px; }
@media (min-width: 800px) { .offices { grid-template-columns: 1fr 1fr; } }
.office { border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; }
.office .map { position: relative; height: 180px; background: linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 28px 28px, linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 28px 28px, radial-gradient(60% 80% at 50% 50%, rgba(84, 104, 255, .2), transparent), var(--bg-2); }
.office .map .pin { position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px; border-radius: 50%; background: var(--green-bright); box-shadow: 0 0 0 8px rgba(116, 214, 90, .2), 0 0 0 20px rgba(116, 214, 90, .08); animation: ping 2.4s infinite var(--ease); }
@keyframes ping { 0%, 100% { box-shadow: 0 0 0 8px rgba(116, 214, 90, .22), 0 0 0 20px rgba(116, 214, 90, .08); } 50% { box-shadow: 0 0 0 12px rgba(116, 214, 90, .12), 0 0 0 30px rgba(116, 214, 90, 0); } }
.office .map .coords { position: absolute; left: 16px; bottom: 12px; font: 560 .84rem/1 var(--font-mono); color: var(--dim); }
.office .map .flag { position: absolute; right: 16px; top: 14px; font: 560 .84rem/1 var(--font-mono); padding: 7px 10px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); }
.office .body { padding: 26px; display: grid; gap: 16px; }
.office h2 { font-size: 1.6rem; margin: 0; }
.office address { font-style: normal; color: var(--muted); }
.office dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; }
.office dt { font: 560 .85rem/1.9 var(--font-mono); color: var(--dim); }
.office dd { margin: 0; }
.office dd a { text-decoration: none; }
.office dd a:hover { color: var(--green-bright); }

/* ---------- Certificate page ---------- */
.cert-hero-card { border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); background: #fff; color: #0b1230; display: grid; gap: 14px; justify-items: center; text-align: center; box-shadow: var(--shadow); }
.cert-hero-card img { height: 92px; width: auto; }
.cert-hero-card .std { font: 700 clamp(1.6rem, 3vw, 2.2rem)/1.1 var(--font-head); letter-spacing: -.02em; }
.cert-hero-card .by { color: #47506e; font-size: .92rem; }
.spec { width: 100%; border-collapse: collapse; }
.spec th, .spec td { text-align: left; padding: 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th { width: 34%; font: 560 .86rem/1.6 var(--font-mono); color: var(--dim); padding-right: 18px; }
.notice { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 14px; border: 1px dashed rgba(245, 200, 75, .6); background: rgba(245, 200, 75, .08); color: var(--text); }
.notice svg { width: 22px; height: 22px; flex: none; color: #f5c84b; margin-top: 2px; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: calc(var(--radius) + 6px); padding: clamp(40px, 7vw, 88px); text-align: center; border: 1px solid var(--line-strong); background: radial-gradient(70% 120% at 50% 0%, rgba(84, 104, 255, .35), transparent 65%), radial-gradient(50% 80% at 50% 100%, rgba(76, 175, 58, .2), transparent 60%), var(--surface); }
.cta-band h2 { max-width: 820px; margin-inline: auto; }
.cta-band p:not(.eyebrow) { max-width: 560px; margin: 0 auto 32px; color: var(--muted); font-size: 1.1rem; }
.cta-band .eyebrow { margin-bottom: 18px; }
.cta-band .btn-row { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { position: relative; border-top: 1px solid var(--line); padding: clamp(64px, 8vw, 96px) 0 32px; background: var(--bg); overflow: hidden; }
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer-brand img { height: 64px; width: auto; margin-bottom: 18px; }
.footer-brand p { color: var(--muted); max-width: 360px; font-size: .96rem; }
.site-footer h3 { font: 560 .86rem/1 var(--font-mono); color: var(--dim); margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.site-footer address { font-style: normal; color: var(--muted); font-size: .95rem; margin-bottom: 16px; }
.site-footer address strong { color: var(--text); display: block; margin-bottom: 2px; }
.footer-cert { display: flex; gap: 14px; align-items: center; margin-top: 22px; }
.footer-cert img { height: 50px; width: auto; }
.footer-cert span { font-size: .85rem; color: var(--muted); }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; color: var(--dim); font-size: .86rem; }

/* ---------- 404 ---------- */
.notfound { min-height: 80svh; display: grid; place-items: center; text-align: center; padding-top: var(--header-h); }
.notfound .code { font: 700 clamp(6rem, 22vw, 14rem)/.9 var(--font-head); letter-spacing: -.06em; }

/* ---------- Page headline: the one load-in moment per page ---------- */
.js .split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.js .split .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 45ms + 120ms); }
.js .split.is-in .w > span { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .split .w > span { transform: none; }
}

@media print {
  .site-header, .mobile-menu, .hero-canvas, .part-preview { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ---------- Small extras ---------- */
.h2-size { font-size: clamp(2rem, 4.2vw, 3.4rem); }
.steps-mini { list-style: none; counter-reset: s; padding: 0; margin: 24px 0 8px; display: grid; gap: 16px; }
.steps-mini li { counter-increment: s; position: relative; padding-left: 52px; color: var(--muted); }
.steps-mini li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); font: 560 .86rem/1 var(--font-mono); color: var(--text); }
.steps-mini strong { color: var(--text); display: block; }

/* ---------- SVG simulation visuals ---------- */
.viz .viz-grid path { stroke: rgba(150, 170, 255, .08); stroke-width: 1; fill: none; }
.viz .viz-outline { fill: none; stroke: rgba(234, 238, 251, .75); stroke-width: 1.6; }
.viz .viz-label text { font: 560 12.5px var(--font-mono); fill: var(--muted); }
.viz .viz-arrow { fill: none; stroke: var(--green-bright); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.mf-iso circle { fill: none; stroke: rgba(10, 16, 51, .45); stroke-width: 1.2; stroke-dasharray: 4 5; }
.mf-front { fill: none; stroke: #fff; stroke-width: 2.5; filter: drop-shadow(0 0 6px rgba(255, 255, 255, .8)); }
.fea-hatch-line { stroke: rgba(234, 238, 251, .45); stroke-width: 2; }
.fea-wall { stroke: rgba(234, 238, 251, .5); }
.fea-ghost { fill: none; stroke: rgba(234, 238, 251, .4); stroke-width: 1.2; stroke-dasharray: 5 5; }
.fea-mesh { stroke: rgba(10, 16, 51, .35); stroke-width: 1; }
.dt-links path { stroke: rgba(150, 170, 255, .22); stroke-width: 1.5; fill: none; }
.dt-packets path { stroke: var(--green-bright); stroke-width: 3; fill: none; stroke-linecap: round; stroke-dasharray: 6 300; animation: packet 2.6s linear infinite; filter: drop-shadow(0 0 4px var(--green-bright)); }
.dt-packets path:nth-child(2) { animation-delay: -.6s; stroke: var(--blue-soft); filter: drop-shadow(0 0 4px var(--blue)); }
.dt-packets path:nth-child(3) { animation-delay: -1.3s; }
.dt-packets path:nth-child(4) { animation-delay: -1.9s; stroke: var(--blue-soft); filter: drop-shadow(0 0 4px var(--blue)); }
.dt-packets path:nth-child(5) { animation-delay: -.9s; }
@keyframes packet { from { stroke-dashoffset: 306; } to { stroke-dashoffset: 0; } }
.dt-core { fill: var(--blue); filter: drop-shadow(0 0 18px rgba(84, 104, 255, .8)); }
.dt-ring { fill: none; stroke: rgba(84, 104, 255, .45); stroke-width: 1.5; transform-origin: 300px 210px; animation: ring 2.6s var(--ease) infinite; }
@keyframes ring { 0% { transform: scale(.85); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }
.dt-core-label { font: 700 20px var(--font-head); fill: #fff; letter-spacing: .02em; }
.dt-node rect { fill: rgba(14, 23, 48, .95); stroke: var(--line-strong); }
.dt-node text { font: 600 14px var(--font-head); fill: var(--text); }
.dt-node text.sub { font: 560 11px var(--font-mono); fill: var(--muted); }
.dt-node--pds rect { stroke: rgba(116, 214, 90, .6); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-cloud span { padding: 12px 18px; border-radius: 999px; border: 1px solid var(--line-strong); font: 500 1rem/1 var(--font-head); color: var(--text); background: var(--surface); transition: border-color .3s, color .3s; }
.tag-cloud span:hover { border-color: var(--green-bright); color: var(--green-bright); }
.sheets { display: grid; gap: 18px; }
@media (min-width: 800px) { .sheets { grid-template-columns: 1fr 1fr; } }
.sheets figure, .gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.gallery { display: grid; gap: 18px; }
@media (min-width: 900px) { .gallery { grid-template-columns: 1.5fr 1fr; align-items: stretch; } }
.gallery figure { background: #000; display: grid; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.h3-size { font-size: clamp(1.25rem, 2vw, 1.5rem); margin: 0; }
.muted { color: var(--muted); font-weight: 400; }
.card a { color: var(--blue-soft); }
.section-head .lead + .lead { margin-top: 1em; }
@media (max-width: 600px) {
  .portal-ui th, .portal-ui td { padding: 12px 12px; }
  .portal-ui td:nth-child(2) { white-space: normal; }
  .portal-ui th:first-child, .portal-ui td:first-child { display: none; }
}
.footer-email { white-space: nowrap; font-size: .9rem; }
/* Long email addresses must wrap on narrow phones */
.office dd, .contact-lines li > span, .form-foot small, .mm-contact { min-width: 0; overflow-wrap: anywhere; }
.hero.no-webgl .hero-hud { display: none; }

/* ---------- Services as a parts list ---------- */
.parts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.parts > li { border-bottom: 1px solid var(--line-strong); }
.part {
  display: grid; grid-template-columns: 1fr 88px; grid-template-areas: "name thumb" "desc thumb" "specs thumb";
  gap: 6px 18px; align-items: center; padding: 22px 0; text-decoration: none; color: inherit;
}
.part-name { grid-area: name; font: 650 clamp(1.5rem, 3.6vw, 2.6rem)/1.05 var(--font-head); font-stretch: var(--wide); letter-spacing: -.03em; transition: color .25s; }
.part-desc { grid-area: desc; color: var(--muted); max-width: 52ch; }
.part-specs { grid-area: specs; color: var(--dim); font-size: .9rem; }
.part-thumb { grid-area: thumb; width: 88px; height: 88px; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); }
.part-thumb img { width: 100%; height: 100%; object-fit: cover; }
.part:hover .part-name, .part:focus-visible .part-name { color: var(--blue-soft); }
.theme-light .part:hover .part-name { color: var(--blue); }
@media (min-width: 1000px) {
  .part { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) 190px; grid-template-areas: "name desc specs"; gap: 32px; padding: 30px 0; }
  .part-specs { text-align: right; }
  .part-thumb { display: none; }
  .parts:hover .part-name { color: var(--dim); }
  .parts:hover .part:hover .part-name { color: var(--text); }
}
/* Floating preview that follows the cursor over the list (desktop, set up by site.js) */
.part-preview {
  position: fixed; left: 0; top: 0; z-index: 50; width: 360px; aspect-ratio: 3 / 2; pointer-events: none;
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-strong); box-shadow: var(--shadow);
  opacity: 0; transition: opacity .25s;
  display: none;
}
.part-preview img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 1000px) and (hover: hover) { .part-preview { display: block; } }
.part-preview.is-on { opacity: 1; }

/* Post meta, footer links */
.post-card .meta { display: flex; gap: 14px; }
.post-card .meta span + span { color: var(--dim); }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }

.form-foot small a[href^="mailto"] { white-space: nowrap; }
@media (max-width: 420px) { .form-foot small a[href^="mailto"] { white-space: normal; } }
