/* ==========================================================================
   APT — proof of concept design system
   ========================================================================== */

:root {
  /* Palette taken from the APT logo (apt.nl/template/img/APT-Logo.svg) */
  --apt-green: #a5cf46;     /* leaf */
  --apt-blue: #006bb6;      /* flame */
  --apt-sky: #3a98ca;       /* gradient mid  (#0081B9 → #8ED8F8) */
  --apt-sky-light: #8ed8f8; /* gradient end */
  --apt-grey: #737172;      /* wordmark */

  --ink: #0d4f86;           /* deep APT blue for dark sections */
  --ink-2: #155d98;
  --ink-3: #1d6cab;
  --paper: #f3f7f9;
  --paper-2: #e0e8ed;
  --white: #ffffff;
  --text: #22303a;
  --muted: #646364;         /* logo grey, darkened for AA contrast */
  --muted-dark: #c2d8ea;
  --line: rgba(34, 48, 58, 0.12);
  --line-dark: rgba(255, 255, 255, 0.12);
  --accent: var(--apt-sky-light);   /* on dark */
  --accent-ink: var(--apt-blue);    /* on light */
  --cta: var(--apt-green);
  --beam: var(--apt-green);
  --ok: var(--apt-green);

  --font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Instrument Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --radius-lg: 22px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--accent); color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; }

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; font-weight: 600; letter-spacing: -0.025em; line-height: 1.05; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5.4rem); letter-spacing: -0.04em; }
h2 { font-size: clamp(2rem, 4vw, 3.3rem); letter-spacing: -0.035em; }
h3 { font-size: 1.35rem; letter-spacing: -0.015em; line-height: 1.2; }
p { margin: 0; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 40em; }
.on-dark .lede, .lede.on-dark { color: var(--muted-dark); }
.mono { font-family: var(--mono); font-feature-settings: "zero" 1; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-ink);
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; }
.on-dark .eyebrow { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--ink); --c: var(--white);
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px; border: 1px solid var(--b);
  background: var(--b); color: var(--c); font-weight: 600; font-size: 15px; line-height: 1;
  cursor: pointer; transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(.98); }
.btn-accent { --b: var(--cta); --c: var(--ink); }
.btn-accent:hover { --b: #b8dc63; }
.btn-blue { --b: var(--apt-blue); --c: var(--white); }
.btn-blue:hover { --b: #0a5d9c; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--text); }
.on-dark .btn-ghost { color: var(--white); border-color: rgba(255,255,255,.25); }
.on-dark .btn-ghost:hover { border-color: var(--white); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: box-shadow .3s, border-color .3s;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
  color: var(--text);
}
.site-header::after { /* brand stripe: green → blue → sky, as in the logo */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, var(--apt-green), var(--apt-blue) 55%, var(--apt-sky-light));
  opacity: 0; transition: opacity .3s;
}
.site-header.is-solid { box-shadow: 0 10px 30px -18px rgba(13,79,134, .35); }
.site-header.is-solid::after { opacity: 1; }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: -0.02em; }
.logo img { height: 52px; width: auto; }
.logo-stacked img { height: 44px; }
@media (max-width: 520px) { .nav .logo img { height: 32px; } }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; white-space: nowrap; padding: 8px 12px; border-radius: 999px; font-size: 15px; color: var(--muted); transition: color .2s, background .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--apt-blue); background: rgba(0, 107, 182, .07); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-phone { white-space: nowrap; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.nav-phone:hover { color: var(--apt-blue); }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: transparent; cursor: pointer; position: relative; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { position: absolute; left: 13px; width: 18px; height: 1.5px; background: var(--text); content: ""; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle span { top: 21px; }
.nav-toggle span::before { left: 0; top: -6px; }
.nav-toggle span::after { left: 0; top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1300px) {
  .nav-phone { display: none; }
}
@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); padding: 12px var(--gutter) 28px; border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(13,79,134, .35);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .3s var(--ease);
  }
  .nav-links a { padding: 16px 4px; font-size: 20px; border-radius: 0; border-bottom: 1px solid var(--line); color: var(--text); }
  .nav-links a:hover, .nav-links a[aria-current="page"] { background: transparent; }
  .nav-open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .nav-open .site-header { background: var(--white); }
  .nav-cta .btn { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 600px at 75% 30%, rgba(142,216,248,.10), transparent 60%), var(--ink);
  color: var(--white);
  padding: 150px 0 0;
}
.hero::before { /* measuring grid */
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 80%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero h1 { margin: 22px 0 26px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede { color: var(--muted-dark); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.instrument { position: relative; }
.instrument svg { width: 100%; height: auto; overflow: visible; }
.case-tag {
  position: absolute; z-index: 1; font-family: var(--mono); font-size: 11px; color: var(--white);
  background: rgba(13,79,134,.75); border: 1px solid var(--line-dark); border-radius: 10px; padding: 12px 16px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.case-tag .k { color: var(--muted-dark); letter-spacing: .1em; display: block; }
.case-tag .v { font-size: 20px; display: block; margin-top: 4px; }
.case-tag.tl { top: 22px; left: 22px; }
.case-tag.br { bottom: 22px; right: 22px; display: flex; align-items: center; gap: 10px; font-size: 12px; }
.case-tag.br::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.readout {
  position: relative; margin: -36px 0 0 auto;
  width: min(280px, 70%);
  background: rgba(21,93,152, 0.78); border: 1px solid var(--line-dark); border-radius: var(--radius);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  padding: 16px 18px; font-family: var(--mono); box-shadow: 0 30px 60px -20px rgba(0,0,0,.6);
}
.readout-top { display: flex; justify-content: space-between; align-items: center; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-dark); }
.live { display: inline-flex; align-items: center; gap: 6px; color: var(--ok); }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(165,207,70,.6); animation: pulse 2s infinite; }
.readout-value { font-size: 40px; font-weight: 500; letter-spacing: -0.03em; margin: 8px 0 2px; color: var(--white); }
.readout-value small { font-size: 14px; color: var(--muted-dark); margin-left: 6px; letter-spacing: 0; }
.readout svg { width: 100%; height: 44px; margin-top: 8px; }
.readout-foot { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted-dark); margin-top: 6px; }

.hero-stats {
  position: relative; display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-dark); margin-top: 80px;
}
.stat { padding: 28px 24px 34px 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line-dark); }
.stat-num { font-family: var(--mono); font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -0.03em; color: var(--white); line-height: 1.1; }
.stat-label { font-size: 14px; color: var(--muted-dark); margin-top: 6px; }

/* SVG instrument animation */
.beam { stroke: var(--beam); filter: drop-shadow(0 0 6px rgba(165,207,70,.9)); }
.beam-flow { stroke-dasharray: 6 10; animation: flow 1.2s linear infinite; }
.scatter { stroke: var(--accent); opacity: .0; animation: scatter 2.8s ease-in-out infinite; }
.scatter.s2 { animation-delay: .7s; } .scatter.s3 { animation-delay: 1.4s; } .scatter.s4 { animation-delay: 2.1s; }
.particle { fill: rgba(255,255,255,.75); animation: drift 7s ease-in-out infinite alternate; }
.particle:nth-child(2n) { animation-duration: 9s; animation-delay: -2s; }
.particle:nth-child(3n) { animation-duration: 11s; animation-delay: -4s; fill: rgba(142,216,248,.8); }
.det-glow { animation: det 2.8s ease-in-out infinite; }
.det-glow.d2 { animation-delay: .7s; }
.svg-label { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; fill: var(--muted-dark); }
.svg-label.hi { fill: var(--white); }

@keyframes flow { to { stroke-dashoffset: -32; } }
@keyframes scatter { 0%, 100% { opacity: .05; } 45% { opacity: .95; } }
@keyframes drift { 0% { transform: translate(0, 0); } 100% { transform: translate(6px, -10px); } }
@keyframes det { 0%, 100% { opacity: .15; } 50% { opacity: .85; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(165,207,70,.55); } 70% { box-shadow: 0 0 0 8px rgba(165,207,70,0); } 100% { box-shadow: 0 0 0 0 rgba(165,207,70,0); } }

@media (max-width: 920px) {
  .hero { padding-top: 120px; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .instrument { max-width: 560px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); margin-top: 48px; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
}

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0; }
.section-dark { background: var(--ink); color: var(--white); }
.section-white { background: var(--white); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 56px; flex-wrap: wrap; }
.section-head h2 { margin-top: 16px; max-width: 14em; }
.section-head .lede { max-width: 30em; }

/* Application finder */
.finder { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.finder a {
  position: relative; background: var(--paper); padding: 26px 22px 24px; min-height: 190px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  transition: background .3s var(--ease), color .3s;
}
.finder a:hover { background: var(--ink); color: var(--white); }
.finder .ico { width: 30px; height: 30px; color: var(--accent-ink); transition: color .3s, transform .4s var(--ease); }
.finder a:hover .ico { color: var(--accent); transform: scale(1.08); }
.finder h3 { font-size: 1.1rem; }
.finder p { font-size: 14px; color: var(--muted); margin-top: 6px; line-height: 1.45; transition: color .3s; }
.finder a:hover p { color: var(--muted-dark); }
.finder .count { position: absolute; top: 22px; right: 20px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
@media (max-width: 1200px) { .finder { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 900px) { .finder { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .finder { grid-template-columns: repeat(2, 1fr); } .finder a { min-height: 170px; padding: 20px 16px; } }

/* Industries */
.industries { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.industry {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background: var(--ink-2); border: 1px solid var(--line-dark); padding: 36px; min-height: 340px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  transition: border-color .3s, transform .5s var(--ease);
}
.industry:hover { border-color: rgba(142,216,248,.45); transform: translateY(-4px); }
.industry-art { position: absolute; inset: 0; opacity: .55; pointer-events: none; transition: opacity .4s; }
.industry:hover .industry-art { opacity: .9; }
.industry > *:not(.industry-art) { position: relative; }
.industry-tag { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.industry h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin: 14px 0 12px; letter-spacing: -0.03em; }
.industry p { color: var(--muted-dark); max-width: 30em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-family: var(--mono); font-size: 12px; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line-dark); color: rgba(255,255,255,.8); background: rgba(13,79,134,.5); }
@media (max-width: 820px) { .industries { grid-template-columns: 1fr; } .industry { padding: 28px 24px; min-height: 300px; } }

/* Case */
.case { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--white); border: 1px solid var(--line); }
.case-visual { position: relative; background: #0a4478; min-height: 460px; overflow: hidden; }
.case-visual svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.case-body { padding: clamp(32px, 5vw, 64px); display: flex; flex-direction: column; gap: 22px; }
.case-body h2 { font-size: clamp(1.8rem, 3.2vw, 2.7rem); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); margin-top: 8px; }
.fact { padding: 18px 16px 0 0; }
.fact + .fact { padding-left: 16px; border-left: 1px solid var(--line); }
.fact dt { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.fact dd { margin: 6px 0 0; font-weight: 600; font-size: 15px; line-height: 1.35; }
@media (max-width: 900px) { .case { grid-template-columns: 1fr; } .case-visual { min-height: 300px; } }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } .fact + .fact { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; } }

/* Award / featured product */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.award-card {
  position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius-lg); overflow: hidden;
  background: radial-gradient(circle at 50% 45%, rgba(142,216,248,.18), transparent 60%), var(--ink-2);
  border: 1px solid var(--line-dark); display: grid; place-items: center;
}
.award-card svg { width: 78%; }
.badge { position: absolute; top: 22px; left: 22px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--white); color: var(--ink); font-family: var(--mono); font-size: 12px; font-weight: 500; }
.badge svg { width: 14px; height: 14px; color: #d1a20b; }
.feature h2 { margin: 18px 0 20px; }
.feature ul { list-style: none; padding: 0; margin: 28px 0 34px; display: grid; gap: 0; }
.feature li { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line-dark); color: rgba(255,255,255,.85); }
.feature li:last-child { border-bottom: 1px solid var(--line-dark); }
.feature li span { font-family: var(--mono); font-size: 12px; color: var(--accent); padding-top: 4px; min-width: 24px; }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; } .award-card { max-width: 520px; } }

/* Approach / process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step { padding: 28px 0 0; border-top: 1px solid var(--text); }
.step-num { font-family: var(--mono); font-size: 13px; color: var(--accent-ink); }
.step h3 { margin: 18px 0 10px; }
.step p { color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Careers banner */
.careers {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background: linear-gradient(120deg, #006bb6, #0a4f87 55%, #155d98);
  color: var(--white); padding: clamp(36px, 6vw, 72px);
  display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: end;
}
.careers::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); box-shadow: 0 0 0 60px rgba(255,255,255,.03), 0 0 0 120px rgba(255,255,255,.025); }
.careers > * { position: relative; z-index: 1; }
.careers h2 { font-size: clamp(1.8rem, 3.6vw, 3rem); margin: 16px 0 14px; }
.careers p { color: rgba(255,255,255,.8); max-width: 34em; }
.careers .eyebrow { color: var(--white); }
.careers .btn { --b: var(--white); --c: var(--ink); }
@media (max-width: 760px) { .careers { grid-template-columns: 1fr; } }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 96px); }
.contact-info h2 { margin: 18px 0 22px; }
.contact-list { list-style: none; padding: 0; margin: 40px 0 0; }
.contact-list li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line-dark); }
.contact-list li:last-child { border-bottom: 1px solid var(--line-dark); }
.contact-list dt, .contact-list .k { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-dark); padding-top: 3px; }
.contact-list a:hover { color: var(--accent); }
.form { background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 44px); }
.form fieldset { border: 0; padding: 0; margin: 0 0 26px; }
.form legend, .form label { display: block; font-size: 14px; font-weight: 500; color: rgba(255,255,255,.85); margin-bottom: 10px; }
.segmented { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; background: rgba(13,79,134,.6); padding: 5px; border-radius: 12px; border: 1px solid var(--line-dark); }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label { margin: 0; text-align: center; padding: 10px 6px; border-radius: 8px; cursor: pointer; font-size: 14px; color: var(--muted-dark); transition: background .2s, color .2s; }
.segmented input:checked + label { background: var(--accent); color: var(--ink); font-weight: 600; }
.segmented input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px; border-radius: 10px; border: 1px solid var(--line-dark);
  background: rgba(13,79,134,.55); color: var(--white); transition: border-color .2s, background .2s;
}
.field input::placeholder, .field textarea::placeholder { color: #7c9ab3; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: rgba(13,79,134,.85); }
.field textarea { min-height: 120px; resize: vertical; }
.form-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.form-foot small { color: var(--muted-dark); font-size: 13px; max-width: 26em; }
.form-success { display: none; padding: 16px 18px; border-radius: 10px; background: rgba(165,207,70,.12); border: 1px solid rgba(165,207,70,.4); color: var(--ok); margin-top: 18px; font-size: 15px; }
.form.sent .form-success { display: block; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .segmented { grid-template-columns: repeat(2, 1fr); } .field-row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: #0a4478; color: var(--muted-dark); padding: 80px 0 32px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.footer-grid h4 { font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--white); margin-bottom: 18px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a:hover { color: var(--white); }
.footer-brand p { max-width: 24em; margin-top: 20px; }
.footer-brand .logo { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line-dark); font-size: 13px; }
.footer-bottom nav { display: flex; gap: 20px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Catalogue (producten.html) ---------- */
.page-hero { background: var(--ink); color: var(--white); padding: 150px 0 64px; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; 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: 56px 56px; mask-image: linear-gradient(to bottom, #000, transparent); -webkit-mask-image: linear-gradient(to bottom, #000, transparent); }
.page-hero > * { position: relative; }
.page-hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); margin: 18px 0 18px; }
.crumbs { font-family: var(--mono); font-size: 12px; color: var(--muted-dark); letter-spacing: .06em; }
.crumbs a:hover { color: var(--white); }
.crumbs span { margin: 0 8px; opacity: .5; }

.toolbar { position: sticky; top: 76px; z-index: 20; background: rgba(243,247,249,.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.toolbar-inner { display: flex; gap: 16px; align-items: flex-start; padding-top: 14px; padding-bottom: 14px; }
.search { position: relative; flex: 0 0 280px; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); }
.search input { width: 100%; padding: 11px 14px 11px 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); }
.search input:focus { outline: none; border-color: var(--accent-ink); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; padding: 2px; }
.filters::-webkit-scrollbar { display: none; }
.filter { flex: 0 0 auto; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); cursor: pointer; font-size: 14px; display: inline-flex; gap: 8px; align-items: center; transition: background .2s, color .2s, border-color .2s; }
.filter .n { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.filter:hover { border-color: var(--text); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.filter[aria-pressed="true"] .n { color: var(--accent); }
@media (max-width: 760px) {
  .toolbar-inner { flex-direction: column; align-items: stretch; }
  .search { flex: auto; }
  /* phones: one swipeable line with a fade on the right instead of many wrapped lines */
  .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter);
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
}

.results-meta { font-family: var(--mono); font-size: 13px; color: var(--muted); margin: 40px 0 20px; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -24px rgba(13,79,134,.35); border-color: transparent; }
.card-art { aspect-ratio: 4 / 3; background: var(--ink-2); position: relative; overflow: hidden; }
.card-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.card-art .ico-big { position: absolute; left: 22px; bottom: 20px; width: 40px; height: 40px; color: var(--accent); }
.card-brand { position: absolute; top: 16px; right: 16px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-dark); border: 1px solid var(--line-dark); padding: 4px 9px; border-radius: 999px; }
.card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-cats { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); }
.card h3 { font-size: 1.3rem; }
.card p { font-size: 15px; color: var(--muted); line-height: 1.5; flex: 1; }
.card-spec { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; margin-top: 6px; border-top: 1px solid var(--line); font-size: 13px; }
.card-spec span:first-child { color: var(--muted); }
.card-spec span:last-child { font-family: var(--mono); font-weight: 500; }
.empty { padding: 80px 0; text-align: center; color: var(--muted); display: none; }
@media (max-width: 1200px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }

/* ---------- Product detail ---------- */
.pd { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.pd-art { border-radius: var(--radius-lg); overflow: hidden; background: var(--ink-2); aspect-ratio: 4 / 3; position: relative; border: 1px solid var(--line-dark); }
.pd-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pd-specs { margin: 32px 0; border-top: 1px solid var(--line-dark); }
.pd-specs div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-dark); font-size: 15px; }
.pd-specs dt { color: var(--muted-dark); }
.pd-specs dd { margin: 0; font-family: var(--mono); text-align: right; }
.pd-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.note { margin-top: 28px; font-size: 13px; color: var(--muted-dark); font-family: var(--mono); }
@media (max-width: 900px) { .pd { grid-template-columns: 1fr; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; } .reveal-d2 { transition-delay: .16s; } .reveal-d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .scatter { opacity: .7; } .det-glow { opacity: .6; }
}

/* ---------- Product photography (transparent PNGs from sigrist.com) ---------- */
.has-photo {
  background:
    radial-gradient(120% 90% at 50% 38%, #ffffff 0%, #f3f7f9 55%, #e0e8ed 100%) !important;
}
.has-photo::after { /* subtle floor line in brand blue */
  content: ""; position: absolute; left: 12%; right: 12%; bottom: 9%; height: 18px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(13,79,134, .18), transparent 70%);
  pointer-events: none;
}
.photo { position: absolute; inset: 9% 12% 11%; }
.photo img {
  position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; max-width: none; object-fit: contain;
  filter: drop-shadow(0 18px 22px rgba(13,79,134, .18));
  transition: transform .6s var(--ease);
}
.card:hover .photo img { transform: scale(1.045) translateY(-2px); }
.has-photo .card-brand { color: var(--muted); border-color: var(--line); background: rgba(255,255,255,.7); z-index: 2; }
.pd-art.has-photo { border-color: transparent; }
.pd-art .photo { inset: 8% 14% 10%; }
.award-card.has-photo { border: 0; }
.award-card .photo { inset: 14% 16% 10%; }
.award-card .badge { z-index: 2; }
.photo.photo-full { inset: 0; }
.photo.photo-full img { object-fit: cover; filter: none; }
.has-photo:has(.photo-full)::after { display: none; }
/* Photos on a white background (no cut-out available): blend the white into the panel */
.photo.photo-blend img { mix-blend-mode: multiply; filter: none; }
/* Advice tile closing the application finder */
.finder a.finder-cta { background: var(--apt-blue); color: var(--white); }
.finder a.finder-cta .ico, .finder a.finder-cta p { color: rgba(255,255,255,.85); }
.finder a.finder-cta:hover { background: var(--ink); }
/* Start a new grid row (e.g. BactoSense CORE in the full catalogue) */
@media (min-width: 1001px) { .card.row-start { grid-column-start: 1; } }
/* Catalogue search lives in the hero; the sticky bar holds only the filter row */
.search.search-hero { display: block; max-width: 520px; margin-top: 28px; }
.search.search-hero input { padding: 15px 18px 15px 46px; font-size: 16px; border-color: transparent; box-shadow: 0 10px 30px -12px rgba(0,0,0,.4); color: var(--text); }
.search.search-hero svg { left: 18px; }
.search.search-hero input:focus { border-color: var(--apt-sky); }

/* ==========================================================================
   Product page (product.html) — rich template
   ========================================================================== */
.pd-hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); margin: 14px 0 8px; }
.pd-subtitle { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--white); font-weight: 500; margin-bottom: 14px; }
.pd-subtitle[hidden] { display: none; }
.pd-media { display: grid; gap: 12px; }
.pd-thumbs { display: flex; gap: 10px; }
.pd-thumbs[hidden] { display: none; }
.pd-thumbs button { width: 84px; height: 64px; padding: 0; border-radius: 10px; overflow: hidden; border: 2px solid transparent; background: #f3f7f9; cursor: pointer; opacity: .7; transition: opacity .2s, border-color .2s; }
.pd-thumbs button img { width: 100%; height: 100%; object-fit: contain; }
.pd-thumbs button:hover { opacity: 1; }
.pd-thumbs button[aria-pressed="true"] { border-color: var(--apt-sky-light); opacity: 1; }
.pd-usps { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pd-usps[hidden] { display: none; }
.pd-usps li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px 7px 10px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid var(--line-dark); font-size: 14px; color: var(--white); }
.pd-usps li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--apt-green); }
.btn-play svg { width: 13px; height: 13px; }
.btn-play:hover svg { transform: none; }

/* sticky in-page nav */
.pd-subnav { position: sticky; top: 76px; z-index: 19; background: rgba(255,255,255,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.pd-subnav[hidden] { display: none; }
.pd-subnav ul { list-style: none; margin: 0 -9px; padding: 0; display: flex; justify-content: space-between; gap: 0; overflow-x: auto; scrollbar-width: none; }
.pd-subnav ul::-webkit-scrollbar { display: none; }
.pd-subnav a { display: block; white-space: nowrap; padding: 16px 9px; font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.pd-subnav a:hover { color: var(--apt-blue); }
.pd-subnav a.is-active { color: var(--apt-blue); border-bottom-color: var(--apt-blue); }
#pd-sections .section { scroll-margin-top: 130px; }
#overzicht { scroll-margin-top: 76px; }

/* benefits */
.pd-benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pd-benefit { padding: 28px 24px; border-radius: var(--radius-lg); background: var(--paper); border: 1px solid var(--line); }
.pd-benefit svg { width: 34px; height: 34px; color: var(--apt-blue); }
.pd-benefit h3 { margin: 20px 0 10px; font-size: 1.2rem; }
.pd-benefit p { color: var(--muted); font-size: 15px; }

/* how it works */
.pd-how { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: stretch; }
.pd-how h2 { margin: 16px 0 18px; }
.pd-how--text { align-items: start; }
.pd-how--text .pd-steps { margin-top: 0; }
.pd-steps { counter-reset: st; list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 0; }
.pd-steps li { counter-increment: st; display: grid; grid-template-columns: 28px 1fr; column-gap: 16px; align-items: start; padding: 16px 0; border-top: 1px solid var(--line); font-size: 17px; line-height: 1.5; }
.pd-steps li:last-child { border-bottom: 1px solid var(--line); }
.pd-steps li::before { /* number badge, centred on the first text line (28px badge on a 25.5px line) */
  content: counter(st, decimal-leading-zero); width: 28px; height: 28px; margin-top: -1.25px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--mono); font-size: 12px; font-weight: 500; line-height: 1;
  color: var(--apt-blue); background: rgba(0,107,182,.08); border: 1px solid rgba(0,107,182,.25);
}
.pd-diagram { margin: 0; padding: 20px; border-radius: var(--radius-lg); background: var(--ink); }
.pd-diagram svg { width: 100%; height: auto; }
.ff-flow { animation: ffflow 1s linear infinite; }
@keyframes ffflow { to { stroke-dashoffset: -18; } }
/* close-up photo: same height as the text column, top and bottom aligned */
.pd-how-img { margin: 0; position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--ink); min-height: 420px; }
.pd-how-img::before { /* brand stripe on top, as on the homepage */
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; z-index: 1;
  background: linear-gradient(90deg, var(--apt-green), var(--apt-blue) 50%, var(--apt-sky-light));
}
.pd-how-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.jet-hl { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.jet-label { font-family: var(--mono); font-size: 20px; letter-spacing: .08em; fill: #c2d8ea; }
.jet-label.hi { fill: var(--white); font-weight: 500; }
.jet-flow { animation: jetflow 1.1s linear infinite; }
@keyframes jetflow { to { stroke-dashoffset: -40; } }
@media (prefers-reduced-motion: reduce) { .jet-flow { animation: none; } }
.pd-how-img figcaption {
  position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 1; width: fit-content; max-width: calc(100% - 32px);
  display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px;
  font-size: 13px; color: var(--white); background: rgba(13,79,134,.82); border: 1px solid var(--line-dark);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.pd-how-img figcaption::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--apt-green); }

/* video */
.pd-video { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.pd-video h2 { margin: 16px 0 18px; }
.pd-video-meta { margin-top: 18px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--muted-dark); }
.yt-lite { position: relative; }
.yt-lite button, .yt-lite iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius-lg); overflow: hidden; }
.yt-lite button { position: relative; padding: 0; cursor: pointer; background: #000; box-shadow: 0 30px 60px -24px rgba(0,0,0,.6); }
.yt-lite button img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .3s, transform .6s var(--ease); }
.yt-lite button:hover img { opacity: 1; transform: scale(1.02); }
.yt-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 78px; height: 78px; border-radius: 50%; background: var(--apt-green); color: var(--ink); display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(165,207,70,.25); transition: transform .3s var(--ease); }
.yt-play svg { width: 30px; height: 30px; margin-left: 4px; }
.yt-lite button:hover .yt-play { transform: translate(-50%, -50%) scale(1.08); }
.yt-title { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 16px; text-align: left; color: #fff; font-size: 15px; font-weight: 500; background: linear-gradient(transparent, rgba(0,0,0,.75)); }
.yt-note { margin-top: 10px; font-size: 12px; color: var(--muted-dark); }
.yt-local { margin-top: 12px; padding: 12px 14px; border-radius: 10px; font-size: 14px; color: var(--white); background: rgba(165,207,70,.14); border: 1px solid rgba(165,207,70,.45); }
.yt-local code { font-family: var(--mono); font-size: 13px; }
.yt-note a { color: var(--apt-sky-light); text-decoration: underline; text-underline-offset: 3px; }

/* applications */
.pd-apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 20px; }
.pd-app { padding: 28px 0 0; border-top: 2px solid var(--apt-blue); }
.pd-app-n { font-family: var(--mono); font-size: 13px; color: var(--apt-blue); }
.pd-app h3 { margin: 14px 0 10px; }
.pd-app p { color: var(--muted); font-size: 15px; }

/* grouped specs */
.pd-specgroups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; align-items: start; }
.pd-specgroup { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 6px 24px 14px; background: var(--paper); }
.pd-specgroup summary { cursor: pointer; list-style: none; padding: 16px 0 10px; font-weight: 600; font-size: 1.1rem; display: flex; justify-content: space-between; }
.pd-specgroup summary::-webkit-details-marker { display: none; }
.pd-specgroup summary::after { content: "\2013"; font-family: var(--mono); color: var(--muted); }
.pd-specgroup:not([open]) summary::after { content: "+"; }
.pd-specgroup dl { margin: 0; }
.pd-specgroup dl div { display: grid; grid-template-columns: 42% 1fr; gap: 16px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 15px; }
.pd-specgroup dt { color: var(--muted); }
.pd-specgroup dd { margin: 0; font-weight: 500; }

/* variant comparison */
.pd-compare { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); }
.pd-compare table { width: 100%; border-collapse: collapse; min-width: 720px; font-size: 15px; }
.pd-compare th, .pd-compare td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.pd-compare thead th { font-weight: 600; background: var(--paper); }
.pd-compare thead th a { color: var(--apt-blue); text-decoration: underline; text-underline-offset: 3px; }
.pd-compare tbody th { font-weight: 500; color: var(--muted); width: 18%; }
.pd-compare tbody tr:last-child th, .pd-compare tbody tr:last-child td { border-bottom: 0; }
.pd-compare .is-current { background: rgba(0,107,182,.06); }
.pd-here { display: block; margin: 0 0 8px; font-family: var(--mono); font-size: 11px; font-weight: 400; color: var(--apt-blue); letter-spacing: .06em; text-transform: uppercase; }

/* downloads */
.pd-downloads { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.pd-downloads a { display: grid; grid-template-columns: 36px 1fr 24px; gap: 14px; align-items: center; padding: 18px 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper); transition: border-color .2s, background .2s; }
.pd-downloads a:hover { border-color: var(--apt-blue); background: var(--white); }
.pd-downloads svg { width: 30px; height: 30px; color: var(--apt-blue); }
.pd-downloads strong { display: block; font-weight: 600; font-size: 15px; }
.pd-downloads small { display: block; margin-top: 2px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.pd-dl-go svg { width: 16px; height: 16px; color: var(--muted); }

/* APT service */
.pd-service { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(28px, 5vw, 56px); border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); }
.pd-service h2 { margin: 16px 0 16px; font-size: clamp(1.7rem, 3vw, 2.5rem); }
.pd-service-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.pd-service-list li { padding: 16px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.pd-service-list li:last-child { border-bottom: 1px solid var(--line); }
.pd-service-list strong { display: block; color: var(--text); font-size: 16px; margin-bottom: 2px; }
.pd-service-list a { color: var(--apt-blue); font-weight: 600; }

@media (max-width: 1000px) {
  .pd-benefits { grid-template-columns: repeat(2, 1fr); }
  .pd-how, .pd-video, .pd-service { grid-template-columns: 1fr; }
  .pd-how-img { min-height: 0; height: min(125vw, 560px); }
  .pd-specgroups, .pd-downloads { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .pd-benefits, .pd-apps { grid-template-columns: 1fr; }
  .pd-specgroup dl div { grid-template-columns: 1fr; gap: 2px; }
}

/* gallery slideshow: soft fade between images */
.pd-art .photo { animation: pdfade .7s ease; }
@keyframes pdfade { from { opacity: 0; } to { opacity: 1; } }

/* product page: trust strip, worked examples, regulation */
.pd-proof { list-style: none; padding: 0; margin: -16px 0 36px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pd-proof li { padding: 20px 24px 20px 0; display: grid; gap: 4px; }
.pd-proof li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.pd-proof strong { font-family: var(--mono); font-weight: 500; font-size: 1.6rem; letter-spacing: -0.02em; color: var(--apt-blue); line-height: 1.1; }
.pd-proof span { font-size: 14px; color: var(--muted); }

.pd-app-ex { margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--apt-green); font-size: 14px; color: var(--text); line-height: 1.5; }
.pd-app-ex span { display: block; margin-bottom: 4px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--apt-blue); }

.pd-regs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pd-reg { display: flex; flex-direction: column; gap: 16px; padding: 28px 26px; border-radius: var(--radius-lg); background: var(--ink-2); border: 1px solid var(--line-dark); }
.pd-reg-src { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--accent); }
.pd-reg-src:hover { text-decoration: underline; text-underline-offset: 3px; }
.pd-reg-rule { font-size: 16px; color: var(--white); line-height: 1.55; }
.pd-reg-fit { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line-dark); font-size: 14px; color: var(--muted-dark); }
.pd-reg-fit span { display: block; margin-bottom: 4px; font-weight: 600; color: var(--apt-green); }
.pd-reg-note { margin-top: 20px; font-size: 13px; color: var(--muted-dark); }

@media (max-width: 1000px) { .pd-regs { grid-template-columns: 1fr; } }
@media (max-width: 620px) {
  .pd-proof { grid-template-columns: 1fr; }
  .pd-proof li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}

/* product page: maintenance schedule (timeline) */
.pd-maint { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.pd-maint::before { content: ""; position: absolute; left: 0; right: 0; top: 13px; height: 2px; background: linear-gradient(90deg, var(--apt-green), var(--apt-blue) 60%, var(--apt-sky-light)); opacity: .5; }
.pd-maint > li { position: relative; padding-top: 40px; }
.pd-maint > li::before { content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--white); border: 3px solid var(--apt-blue); }
.pd-maint-when { display: block; font-weight: 600; font-size: 1.15rem; margin-bottom: 12px; }
.pd-maint ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.pd-maint ul li { padding: 10px 14px; border-radius: 10px; background: var(--paper); border: 1px solid var(--line); font-size: 15px; color: var(--text); }
.pd-maint-foot { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.pd-maint-foot p { color: var(--muted); font-size: 14px; max-width: 46em; }
.pd-maint-cta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.pd-maint-cta .link-arrow { color: var(--apt-blue); }
@media (max-width: 1000px) { .pd-maint { grid-template-columns: repeat(2, 1fr); row-gap: 32px; } .pd-maint::before { display: none; } }
@media (max-width: 620px) { .pd-maint { grid-template-columns: 1fr; } }
.pd-app-report { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--apt-blue); text-decoration: underline; text-underline-offset: 3px; }

/* downloads grouped into blocks */
.pd-dl-group + .pd-dl-group { margin-top: 44px; }
.pd-dl-title { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-size: 1.05rem; font-weight: 600; }
.pd-dl-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* comparison table: small instrument photos in the header */
.pd-cmp-img { display: grid; place-items: center; height: 130px; margin-bottom: 10px; border-radius: 10px; background: radial-gradient(120% 90% at 50% 40%, #fff, #e9eff3); }
.pd-cmp-img img { max-height: 112px; max-width: 86%; width: auto; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(13,79,134,.15)); transition: transform .3s var(--ease); }
.pd-compare thead th a { display: block; }
.pd-compare thead th a:hover .pd-cmp-img img { transform: scale(1.06); }
.pd-compare thead th { vertical-align: bottom; }
.pd-compare table { table-layout: fixed; }
.pd-compare thead th:first-child, .pd-compare tbody th { width: 16%; }
.pd-compare thead th:not(:first-child) { text-align: center; }

/* ==========================================================================
   Homepage: more of the logo palette (green #A5CF46, blue #006BB6,
   sky #3A98CA → #8ED8F8, grey #737172). Green is used for lines, fills
   and text on blue only; on white it fails contrast, so text there is blue.
   ========================================================================== */
[data-page="home"] {
  --brand-stripe: linear-gradient(90deg, var(--apt-green) 0 25%, var(--apt-blue) 25% 50%, var(--apt-sky) 50% 75%, var(--apt-sky-light) 75% 100%);
  --brand-flow: linear-gradient(90deg, var(--apt-green), var(--apt-blue) 50%, var(--apt-sky-light));
}

/* Eyebrows: green rule, blue text on light; sky text on dark */
[data-page="home"] .eyebrow::before { background: var(--apt-green); height: 2px; width: 22px; border-radius: 2px; }

/* Hero accents */
[data-page="home"] .hero h1 em {
  background: linear-gradient(90deg, var(--apt-green), var(--apt-sky-light));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
[data-page="home"] .hero .eyebrow { color: var(--apt-green); }
[data-page="home"] .hero-stats { border-top: 0; }
[data-page="home"] .hero-stats::before { /* brand stripe above the stats */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; border-radius: 3px; background: var(--brand-flow);
}
[data-page="home"] .stat-num { color: var(--white); }
[data-page="home"] .stat:nth-child(1) .stat-num { color: var(--apt-green); }
[data-page="home"] .stat:nth-child(3) .stat-num { color: var(--apt-sky-light); }

/* Application finder: icons in alternating logo colours, coloured bar on hover */
[data-page="home"] .finder a::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: var(--brand-flow); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
[data-page="home"] .finder a:hover::before { transform: scaleX(1); }
[data-page="home"] .finder a:nth-child(3n+1) .ico { color: var(--apt-blue); }
[data-page="home"] .finder a:nth-child(3n+2) .ico { color: var(--apt-sky); }
[data-page="home"] .finder a:nth-child(3n) .ico { color: #6e9a1e; } /* darkened green, AA for icons */
[data-page="home"] .finder a:hover { background: var(--apt-blue); }
[data-page="home"] .finder a:hover .ico { color: var(--apt-green); }
[data-page="home"] .finder a:hover p { color: rgba(255,255,255,.85); }

/* Industries: cards with a logo-colour edge */
[data-page="home"] .industry { border-top: 3px solid var(--apt-green); }
[data-page="home"] .industry:nth-child(2) { border-top-color: var(--apt-sky-light); }
[data-page="home"] .industry:nth-child(3) { border-top-color: var(--apt-sky); }
[data-page="home"] .industry:nth-child(4) { border-top-color: var(--apt-green); }
[data-page="home"] .industry-tag { color: var(--apt-green); }

/* Case: link and facts in APT blue, coloured rule on top of the card */
[data-page="home"] .case { border-top: 0; position: relative; }
[data-page="home"] .case::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--brand-stripe); z-index: 2; }
[data-page="home"] .case-body .link-arrow { color: var(--apt-blue); }
[data-page="home"] .fact dd { color: var(--apt-blue); }

/* Featured product: green list numbers */
[data-page="home"] .feature { position: relative; }
[data-page="home"] .feature li span { color: var(--apt-green); }

/* Approach: each step carries one logo colour */
[data-page="home"] .step { border-top: 3px solid var(--apt-green); }
[data-page="home"] .step:nth-child(2) { border-top-color: var(--apt-blue); }
[data-page="home"] .step:nth-child(3) { border-top-color: var(--apt-sky); }
[data-page="home"] .step:nth-child(4) { border-top-color: var(--apt-grey); }
[data-page="home"] .step-num { color: var(--apt-blue); font-weight: 500; }

/* Careers: green ring */
[data-page="home"] .careers::after { border-color: rgba(165,207,70,.55); box-shadow: 0 0 0 60px rgba(165,207,70,.07), 0 0 0 120px rgba(255,255,255,.04); }
[data-page="home"] .careers .eyebrow::before { background: var(--apt-green); }

/* Contact: brand stripe, green selection */
[data-page="home"] #contact .section-dark {
  position: relative; overflow: hidden;
}
[data-page="home"] #contact .section-dark::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--brand-flow); }
[data-page="home"] .segmented input:checked + label { background: var(--apt-green); }

/* Footer: brand stripe on top */
[data-page="home"] .site-footer { position: relative; }
[data-page="home"] .site-footer::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--brand-stripe); }

/* Homepage: free-fall measurement feature (replaces the award card) */
.freefall-card { margin: 0; background: var(--ink-2); border: 0; aspect-ratio: 4 / 5; }
.freefall-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.freefall-card .badge { z-index: 1; }
.freefall-card .badge svg { color: var(--apt-blue); }
