/* ==========================================================================
   QOT CONSULTING — Design System v2
   Light Green + White · Swiss precision · Engineering / Pharma aesthetic
   Brand lime from official QOT logo (#8cc63e) + accessible deep green.
   No external fonts, no frameworks. System font stack for speed + privacy.
   ========================================================================== */

:root {
  --brand: #8cc63e;           /* official logo lime — highlights only */
  --brand-bright: #a5d95e;    /* light lime, glows */
  --accent: #1f7a44;          /* accessible green: buttons, links */
  --accent-hover: #155c33;
  --accent-light: #b9e28c;
  --accent-soft: #edf6e2;     /* light lime surface tint */
  --ink: #131f18;             /* green-anthracite */
  --ink-soft: #2a4034;
  --muted: #576b5e;
  --faint: #8b9b8e;
  --bg: #ffffff;
  --bg-tint: #f5faf1;
  --line: #e1ecda;
  --dark: #0f1d14;            /* footer / CTA band */
  --radius: 10px;
  --max: 1180px;
  --header-h: 76px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace;
  --ease: cubic-bezier(0.22, 0.61, 0.21, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--brand); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Layout primitives ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--tint { background: var(--bg-tint); }
.section--line { border-top: 1px solid var(--line); }

.section-head { max-width: 720px; margin-bottom: 56px; }
.kicker {
  display: flex; align-items: center; gap: 12px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 18px;
}
.kicker::before { content: ""; width: 28px; height: 2px; background: var(--brand); }
.kicker .no { color: var(--faint); font-weight: 500; }

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 0.5em; font-weight: 700; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); letter-spacing: -0.025em; }
h3 { font-size: 1.25rem; letter-spacing: -0.015em; }
h4 { font-size: 1.02rem; }
p { margin: 0 0 1.1em; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); line-height: 1.65; }
.small { font-size: 0.86rem; color: var(--muted); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner {
  max-width: var(--max); margin: 0 auto; height: 100%;
  padding: 0 24px; display: flex; align-items: center; gap: 32px;
}
.brand { display: flex; align-items: center; text-decoration: none !important; }
.brand-logo { height: 34px; width: auto; }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.main-nav a {
  color: var(--ink-soft); text-decoration: none !important;
  font-size: 0.95rem; font-weight: 500; padding: 8px 14px; border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.main-nav a:hover { color: var(--accent); background: var(--accent-soft); }
.main-nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.nav-cta { margin-left: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 26px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 0.96rem; text-decoration: none !important;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); box-shadow: 0 10px 26px rgba(31, 122, 68, 0.28); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 48px) 0 72px;
  overflow: hidden;
  background:
    radial-gradient(56% 48% at 80% 30%, rgba(140, 198, 62, 0.16), transparent 62%),
    radial-gradient(42% 38% at 10% 85%, rgba(140, 198, 62, 0.10), transparent 60%),
    var(--bg);
}
#hero3d {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 64px; align-items: center;
}
.hero-inner { max-width: 680px; }
.hero h1 { margin-bottom: 26px; }
.hero h1 .line { display: block; }
.hero h1 .thin { font-weight: 500; color: var(--muted); }
.hero .lead { max-width: 600px; margin-bottom: 40px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-meta {
  margin-top: 56px; display: flex; flex-wrap: wrap; gap: 10px 32px;
  font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--faint); font-weight: 600;
}
.hero-meta span { display: flex; align-items: center; gap: 9px; }
.hero-meta i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--brand);
  flex: none;
}

/* Framed media (hero + sections) */
.media-frame {
  position: relative; border-radius: 16px; overflow: visible;
}
.media-frame img {
  width: 100%; height: auto; border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 32px 64px -28px rgba(19, 31, 24, 0.28);
}
.media-frame::before {
  content: ""; position: absolute; inset: -14px -14px auto auto;
  width: 64px; height: 64px; border-radius: 0 16px 0 0;
  border-top: 2px solid var(--brand); border-right: 2px solid var(--brand);
}
.media-frame::after {
  content: ""; position: absolute; inset: auto auto -14px -14px;
  width: 64px; height: 64px; border-radius: 0 0 0 16px;
  border-bottom: 2px solid var(--brand); border-left: 2px solid var(--brand);
}
.media-tag {
  position: absolute; left: 18px; bottom: 18px; z-index: 2;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em;
  background: rgba(15, 29, 20, 0.78); color: #d9ecc4;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  padding: 7px 12px; border-radius: 6px; text-transform: uppercase;
}

/* ---------- Text reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.card:hover {
  transform: translateY(-4px); border-color: var(--brand);
  box-shadow: 0 18px 40px -18px rgba(19, 31, 24, 0.2);
}
.card .num {
  font-family: var(--mono);
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em;
  color: var(--accent); margin-bottom: 16px;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.96rem; margin: 0; }

/* Image card (services with visuals) */
.img-card {
  display: block; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; text-decoration: none !important;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.img-card:hover {
  transform: translateY(-4px); border-color: var(--brand);
  box-shadow: 0 20px 44px -18px rgba(19, 31, 24, 0.22);
}
.img-card .img-wrap { overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-tint); }
.img-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.img-card:hover img { transform: scale(1.04); }
.img-card .body { padding: 26px 26px 30px; }
.img-card .num {
  font-family: var(--mono); font-size: 0.76rem; font-weight: 700;
  letter-spacing: 0.14em; color: var(--accent); margin: 0 0 12px;
}
.img-card h3 { margin-bottom: 8px; }
.img-card p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* ---------- One Partner flow ---------- */
.flow { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.flow-step {
  position: relative; padding: 34px 20px 30px; background: #fff;
  border-right: 1px solid var(--line);
  transition: background 0.3s var(--ease);
}
.flow-step:last-child { border-right: 0; }
.flow-step:hover { background: var(--accent-soft); }
.flow-step .step-no {
  font-family: var(--mono);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em;
  color: var(--faint); margin-bottom: 14px;
}
.flow-step h3 { font-size: 1.02rem; margin-bottom: 8px; letter-spacing: 0.02em; }
.flow-step p { font-size: 0.84rem; color: var(--muted); margin: 0; line-height: 1.5; }
.flow-step::after {
  content: "→"; position: absolute; right: -9px; top: 40px; z-index: 2;
  width: 18px; height: 18px; font-size: 11px; line-height: 18px; text-align: center;
  background: #fff; border: 1px solid var(--line); border-radius: 50%; color: var(--accent);
}
.flow-step:last-child::after { display: none; }

/* Engineering journey diagram */
.eng-diagram {
  margin-bottom: 48px; border: 1px solid var(--line); border-radius: var(--radius);
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 28px 28px,
    #fff;
  padding: 28px 24px;
}
.eng-diagram svg { width: 100%; height: auto; }
.eng-diagram .draw {
  stroke-dasharray: 1400; stroke-dashoffset: 1400;
}
.is-in .eng-diagram .draw, .eng-diagram.is-in .draw {
  animation: drawline 2.4s var(--ease) forwards;
}
@keyframes drawline { to { stroke-dashoffset: 0; } }

/* ---------- Industries ---------- */
.industries { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.industry {
  padding: 38px 24px; background: #fff; border-right: 1px solid var(--line);
  transition: background 0.3s var(--ease);
}
.industry:last-child { border-right: 0; }
.industry:hover { background: var(--accent-soft); }
.industry svg { width: 30px; height: 30px; margin-bottom: 18px; stroke: var(--accent); }
.industry h3 { font-size: 1rem; margin-bottom: 6px; }
.industry p { font-size: 0.83rem; color: var(--muted); margin: 0; line-height: 1.5; }

/* ---------- Experience strip ---------- */
.experience {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 48px; background: linear-gradient(180deg, #fff, var(--bg-tint));
}
.experience blockquote {
  margin: 0; font-size: clamp(1.1rem, 2vw, 1.45rem); line-height: 1.55;
  color: var(--ink-soft); font-weight: 500; letter-spacing: -0.01em;
}
.experience blockquote strong { color: var(--accent); font-weight: 700; }
.experience .note { margin-top: 26px; font-size: 0.85rem; color: var(--faint); }

.experience-split {
  display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 40px; align-items: stretch;
}
.experience-split .experience { height: 100%; }
.experience-split .media-frame img { height: 100%; object-fit: cover; }

/* ---------- Steps (How we work) ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { border-top: 2px solid var(--brand); padding-top: 22px; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font-family: var(--mono);
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em;
  color: var(--accent); margin-bottom: 14px;
}
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { font-size: 0.92rem; color: var(--muted); margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--dark); color: #fff; border-radius: 18px;
  padding: clamp(48px, 7vw, 88px) clamp(28px, 6vw, 88px);
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(52% 68% at 84% 18%, rgba(140, 198, 62, 0.30), transparent 60%),
    radial-gradient(40% 52% at 8% 88%, rgba(31, 122, 68, 0.4), transparent 62%);
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; max-width: 620px; }
.cta-band p { color: #b9c8b4; max-width: 560px; font-size: 1.05rem; }
.cta-band .kicker { color: var(--brand-bright); }
.cta-band .kicker::before { background: var(--brand-bright); }
.cta-band .btn--primary { background: var(--brand); color: var(--ink); margin-top: 12px; }
.cta-band .btn--primary:hover { background: #fff; box-shadow: 0 10px 26px rgba(140, 198, 62, 0.35); }

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  padding: calc(var(--header-h) + 72px) 0 64px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(52% 62% at 85% 8%, rgba(140, 198, 62, 0.12), transparent 60%),
    var(--bg);
}
.page-hero .lead { max-width: 680px; margin-top: 22px; }

/* ---------- Service blocks ---------- */
.service-block { padding: 56px 0; border-top: 1px solid var(--line); }
.service-block:first-of-type { border-top: 0; }
.service-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; align-items: start; }
.service-grid--media { grid-template-columns: 1.15fr 0.85fr; align-items: center; }
.service-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 32px; }
.service-list li {
  break-inside: avoid; padding: 11px 0 11px 22px; position: relative;
  border-bottom: 1px solid var(--line); font-size: 0.95rem; color: var(--ink-soft);
}
.service-list li::before {
  content: ""; position: absolute; left: 0; top: 20px;
  width: 8px; height: 2px; background: var(--brand);
}

/* ---------- Packages ---------- */
.package { display: flex; flex-direction: column; }
.package .tag {
  align-self: flex-start; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent);
  background: var(--accent-soft); border-radius: 999px; padding: 5px 12px; margin-bottom: 18px;
}
.package ul { list-style: none; margin: 18px 0 0; padding: 0; }
.package li {
  padding: 9px 0 9px 24px; position: relative; font-size: 0.92rem; color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.package li::before {
  content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; font-size: 0.85rem;
}

/* ---------- Standards strip ---------- */
.standards { display: flex; flex-wrap: wrap; gap: 10px; }
.standards span {
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px;
  font-family: var(--mono); font-size: 0.82rem; font-weight: 500;
  color: var(--ink-soft); background: #fff;
  transition: border-color 0.2s, background 0.2s;
}
.standards span:hover { border-color: var(--brand); background: var(--accent-soft); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: start; }
.form-field { margin-bottom: 20px; }
.form-field label {
  display: block; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 8px;
}
.form-field input, .form-field textarea {
  width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px;
  font: inherit; color: var(--ink); background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-field input:focus, .form-field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(140, 198, 62, 0.25);
}
.form-field textarea { min-height: 150px; resize: vertical; }
.form-note { font-size: 0.8rem; color: var(--faint); margin-top: 14px; }
.form-status { margin-top: 16px; font-size: 0.95rem; font-weight: 600; }
.form-status.ok { color: var(--accent); }

.contact-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; }
.contact-card dl { margin: 0; }
.contact-card dt {
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--faint); margin: 22px 0 6px;
}
.contact-card dt:first-child { margin-top: 0; }
.contact-card dd { margin: 0; color: var(--ink-soft); }
.contact-card dd a { color: var(--ink); font-weight: 500; }

/* ---------- Legal pages ---------- */
.legal { max-width: 760px; }
.legal h2 { font-size: 1.3rem; margin-top: 48px; }
.legal p, .legal li { color: var(--ink-soft); font-size: 0.97rem; }
.legal address { font-style: normal; line-height: 1.8; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #a4b8a6; padding: 72px 0 40px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 48px; margin-bottom: 56px; }
.site-footer h4 { color: #fff; font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer a { color: #a4b8a6; text-decoration: none !important; display: block; padding: 4px 0; font-size: 0.93rem; transition: color 0.2s; }
.site-footer a:hover { color: #fff; }
.footer-logo-chip {
  display: inline-block; background: #fff; border-radius: 10px;
  padding: 10px 16px; margin-bottom: 16px;
}
.footer-logo-chip img { height: 28px; width: auto; }
.footer-brand p { font-size: 0.9rem; max-width: 300px; margin-top: 4px; line-height: 1.65; }
.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 28px;
  display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center;
  font-size: 0.82rem; color: #7b8f7d;
}
.footer-legal a { display: inline; padding: 0; font-size: inherit; color: #7b8f7d; }
.footer-legal a:hover { color: #fff; }
.footer-legal .spacer { margin-left: auto; }

/* ---------- Mobile nav ---------- */
.nav-toggle {
  display: none; margin-left: auto; background: none; border: 0;
  width: 44px; height: 44px; position: relative; z-index: 110;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 10px; width: 24px; height: 2px;
  background: var(--ink); transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { left: 0; top: -7px; }
.nav-toggle span::after { left: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Client logo grid ---------- */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  margin-top: 40px;
}
.logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s var(--ease);
  min-height: 100px;
}
.logo-item:nth-child(6n) { border-right: 0; }
.logo-item:nth-last-child(-n+6):nth-child(6n+1),
.logo-item:nth-last-child(-n+6):nth-child(6n+2),
.logo-item:nth-last-child(-n+6):nth-child(6n+3),
.logo-item:nth-last-child(-n+6):nth-child(6n+4),
.logo-item:nth-last-child(-n+6):nth-child(6n+5),
.logo-item:nth-last-child(-n+6):nth-child(6n+6) { border-bottom: 0; }
.logo-item:hover { background: var(--bg-tint); }
.logo-item svg, .logo-item img {
  max-width: 120px;
  max-height: 40px;
  width: 100%;
  filter: grayscale(100%) opacity(0.55);
  transition: filter 0.3s var(--ease);
}
.logo-item:hover svg, .logo-item:hover img {
  filter: grayscale(100%) opacity(0.85);
}

@media (max-width: 1024px) {
  .logo-grid { grid-template-columns: repeat(3, 1fr); }
  .logo-item:nth-child(6n) { border-right: 1px solid var(--line); }
  .logo-item:nth-child(3n) { border-right: 0; }
  .logo-item:nth-last-child(-n+6) { border-bottom: 1px solid var(--line); }
  .logo-item:nth-last-child(-n+3) { border-bottom: 0; }
}

@media (max-width: 760px) {
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
  .logo-item:nth-child(3n) { border-right: 1px solid var(--line); }
  .logo-item:nth-child(2n) { border-right: 0; }
  .logo-item:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .logo-item:nth-last-child(-n+2) { border-bottom: 0; }
  .logo-item { padding: 24px 16px; min-height: 80px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-inner { max-width: 100%; }
  .hero .media-frame { max-width: 520px; }
  .flow { grid-template-columns: repeat(3, 1fr); }
  .flow-step:nth-child(3n) { border-right: 0; }
  .flow-step:nth-child(-n + 3) { border-bottom: 1px solid var(--line); }
  .flow-step::after { display: none; }
  .industries { grid-template-columns: repeat(2, 1fr); }
  .industry { border-bottom: 1px solid var(--line); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .service-grid, .service-grid--media { grid-template-columns: 1fr; gap: 28px; }
  .experience-split { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .brand-logo { height: 28px; }
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; inset: 0; z-index: 105; flex-direction: column;
    justify-content: center; gap: 8px; background: rgba(255, 255, 255, 0.97);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    opacity: 0; pointer-events: none; transition: opacity 0.3s var(--ease);
  }
  .main-nav.is-open { opacity: 1; pointer-events: auto; }
  .main-nav a { font-size: 1.5rem; font-weight: 600; padding: 12px 24px; }
  .nav-cta { margin: 18px 0 0; }
  .hero { min-height: 0; padding-bottom: 56px; }
  .hero-meta { gap: 8px 22px; margin-top: 40px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .flow-step { border-right: 0; border-bottom: 1px solid var(--line); }
  .flow-step:last-child { border-bottom: 0; }
  .industries { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .experience { padding: 32px 24px; }
  .service-list { columns: 1; }
  .eng-diagram { padding: 16px 12px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-legal .spacer { margin-left: 0; width: 100%; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .eng-diagram .draw { stroke-dashoffset: 0; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .hero-ctas, .cta-band, .nav-toggle { display: none; }
  .hero { min-height: 0; }
}

/* ---------- Hero video background (QOT hero film, approved cut) ---------- */
.hero-video {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  pointer-events: none;
}
.hero-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.78) 34%,
      rgba(255, 255, 255, 0.38) 58%, rgba(255, 255, 255, 0.10) 100%),
    linear-gradient(0deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 26%);
}

/* Subtle mobile scroll invitation */
.scroll-hint {
  display: none;
  position: absolute; left: 50%; bottom: 22px; z-index: 2;
  transform: translateX(-50%);
  margin: 0;
  flex-direction: column; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  padding: 10px 16px; border-radius: 999px;
  border: 1px solid var(--line);
}
.scroll-hint-arrow {
  width: 8px; height: 8px;
  border-right: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent);
  transform: rotate(45deg);
  animation: scroll-hint-drop 1.8s var(--ease) infinite;
}
@keyframes scroll-hint-drop {
  0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.9; }
  50% { transform: rotate(45deg) translate(3px, 3px); opacity: 0.45; }
}

@media (max-width: 760px) {
  /* True full-screen hero on smartphones */
  .hero { min-height: 100svh; }
  .scroll-hint { display: flex; }
  .hero-scrim {
    background:
      linear-gradient(0deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.55) 45%,
        rgba(255, 255, 255, 0.18) 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-hint-arrow { animation: none; }
}

/* ---------- Section 02 · Why QOT split (text + cleanroom visual) ---------- */
.why-split {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 56px; align-items: center;
  margin-bottom: 56px;
}
.why-split .section-head { margin-bottom: 0; }
.why-split .media-frame img {
  width: 100%; height: 100%; object-fit: cover;
}

@media (max-width: 1024px) {
  .why-split { grid-template-columns: 1fr; gap: 40px; }
  .why-split .media-frame { max-width: 560px; }
}

/* ---------- Language switcher (EN / DE / FR) ---------- */
.lang-switch {
  display: flex; align-items: center; gap: 2px;
  margin-left: 10px; padding: 3px;
  border: 1px solid var(--line); border-radius: 999px;
}
.lang-switch a {
  font-size: 0.76rem; font-weight: 600; letter-spacing: 0.06em;
  padding: 4px 9px; border-radius: 999px;
  color: var(--muted); text-decoration: none !important;
  transition: color 0.2s, background 0.2s;
}
.lang-switch a:hover { color: var(--accent); background: var(--accent-soft); }
.lang-switch a[aria-current="true"] { color: #fff; background: var(--accent); }

@media (max-width: 760px) {
  .lang-switch { margin: 14px 0 0; }
  .lang-switch a { font-size: 1rem; padding: 8px 16px; }
}
