/* Drift Tek AS: dark first, their own logo blue, Archivo (wide display, normal body),
   IBM Plex Mono only for measurements and standard numbers. Thermal colours live
   only inside the IR lens and the "hot" flag. */
:root {
  --bg: #0a1018;
  --raise: #101824;
  --raise-2: #162131;
  --line: rgba(150, 172, 205, .14);
  --line-2: rgba(150, 172, 205, .28);
  --ink: #e9eef5;
  --mut: #9aa6b8;
  --ac: #3d88ff;
  --ac-ink: #031024;
  --hot: #ff6a2b;
  --ok: #4fd69c;
  --sans: "Archivo", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --wrap: 1240px;
  --pad: clamp(20px, 4.4vw, 48px);
  --nav-h: 72px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #eef2f7; --raise: #ffffff; --raise-2: #e3e9f1;
  --line: rgba(16, 32, 60, .11); --line-2: rgba(16, 32, 60, .24);
  --ink: #0a1524; --mut: #4b586c; --ac: #1458d4; --ac-ink: #ffffff; --hot: #c9440c; --ok: #0a7a50;
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #eef2f7; --raise: #ffffff; --raise-2: #e3e9f1;
    --line: rgba(16, 32, 60, .11); --line-2: rgba(16, 32, 60, .24);
    --ink: #0a1524; --mut: #4b586c; --ac: #1458d4; --ac-ink: #ffffff; --hot: #c9440c; --ok: #0a7a50;
    color-scheme: light;
  }
}
/* Library tokens follow the page theme, not just the OS scheme. */
:root, :root[data-theme] {
  --wc-ink: var(--ink); --wc-bg: var(--bg); --wc-accent: var(--ac); --wc-on-accent: var(--ac-ink);
  --wc-card: var(--raise); --wc-line: var(--line); --wc-dim: var(--mut); --wc-mono: var(--mono);
  --wc-ok: var(--ok); --wc-idle: var(--mut);
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 var(--sans); font-stretch: 100%;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
::selection { background: var(--ac); color: var(--ac-ink); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; }
h1, h2, h3 { margin: 0; font-weight: 800; font-stretch: 118%; letter-spacing: -.025em; line-height: 1.02; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--ac); outline-offset: 3px; border-radius: 4px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ac); color: var(--ac-ink); padding: 10px 16px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
html { scrollbar-color: var(--line-2) var(--bg); }

/* Wordmark: a rebuild of their heavy italic blue logo, set in Archivo at full width. */
.mark { font: italic 900 22px/1 var(--sans); font-stretch: 125%; letter-spacing: -.01em; color: var(--ac); white-space: nowrap; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 20; height: var(--nav-h); border-bottom: 1px solid transparent; transition: background-color .3s, border-color .3s; }
.nav.scrolled { background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(14px) saturate(1.4); border-color: var(--line); }
.nav-in { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; flex-direction: column; justify-content: center; gap: 5px; min-height: 44px; text-decoration: none; }
.brand-sub { font-size: 13px; color: var(--mut); letter-spacing: .01em; }
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0 0 0 12px; padding: 0; }
.nav-links a { display: block; padding: 10px 12px; border-radius: 8px; font-size: 15px; font-weight: 500; text-decoration: none; color: var(--mut); transition: color .2s, background-color .2s; }
.nav-links a:hover { color: var(--ink); background: var(--raise); }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.tel { position: relative; white-space: nowrap; word-spacing: -.2em; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 6px; font: 600 15px/1 var(--mono); text-decoration: none; }
.tel svg { color: var(--ac); }
.nav-cta { --mb-height: 44px; --mb-min-width: 0; font-weight: 600; }

/* ---------- hero ---------- */
.hero { padding: clamp(28px, 6vw, 72px) 0 0; }
.hero-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
h1 { font-size: clamp(2.4rem, 4.6vw, 4.2rem); font-stretch: 106%; letter-spacing: -.035em; line-height: .98; hyphens: manual; }
.lede { margin-top: 24px; max-width: 46ch; font-size: clamp(17px, 1.4vw, 19px); color: var(--mut); }
.ctas { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }
.ctas magnetic-button { font-weight: 600; }
.ghost { display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--line-2); font-weight: 600; text-decoration: none; transition: border-color .2s, background-color .2s; }
.ghost:hover { border-color: var(--ink); background: var(--raise); }
.ghost svg { color: var(--ac); }
.creds { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 10px; font-size: 15px; color: var(--mut); }
.creds li { display: flex; gap: 10px; align-items: center; }
.creds svg { color: var(--ok); flex: none; }

/* IR scope: the signature. */
.scope { margin: 0; position: relative; border-radius: 16px; background: var(--raise); border: 1px solid var(--line); padding: 12px 12px 6px; }
.scope-bar { display: flex; align-items: center; gap: 14px; padding: 4px 6px 12px; font: 500 13px/1 var(--mono); color: var(--mut); }
.rec { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); font-weight: 600; }
.rec i { width: 8px; height: 8px; background: var(--hot); animation: blink 1.6s steps(2, jump-none) infinite; }
@keyframes blink { 50% { opacity: .25; } }
.scope-spot { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scope-temp { display: inline-flex; align-items: baseline; gap: 2px; color: var(--ink); }
.scope-temp > span { font: 600 22px/1 var(--mono); font-variant-numeric: tabular-nums; min-width: 4.2ch; text-align: right; }
.scope-temp b { font: 500 14px var(--mono); color: var(--mut); }
.scope.is-hot .scope-temp, .scope.is-hot .scope-temp b { color: var(--hot); }
thermal-board {
  display: block; position: relative; width: 100%; aspect-ratio: 600 / 470; cursor: crosshair; touch-action: pan-y; border-radius: 10px;
  --tb-ink: var(--ink); --tb-mut: var(--mut); --tb-face: var(--bg); --tb-module: var(--raise-2); --tb-line: var(--line-2); --tb-accent: var(--ac);
}
thermal-board canvas { display: block; width: 100%; height: 100%; }
.scope figcaption { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 6px 4px; font-size: 14px; color: var(--mut); }
.ir-toggle { font: 600 14px/1 var(--sans); color: var(--ink); background: transparent; border: 1px solid var(--line-2); border-radius: 999px; min-height: 44px; padding: 0 18px; cursor: pointer; white-space: nowrap; transition: background-color .2s, border-color .2s; }
.ir-toggle:hover { background: var(--raise-2); }
.ir-toggle[aria-pressed="true"] { border-color: var(--hot); color: var(--hot); }
.scope-flag { display: flex; gap: 10px; align-items: center; color: var(--ink); line-height: 1.4; animation: flag-in .7s var(--ease) both; }
.scope-flag[hidden], .hint-fine[hidden] { display: none; }
.flag-dot { width: 8px; height: 8px; background: var(--hot); flex: none; }
@keyframes flag-in { from { opacity: 0; transform: translateY(10px); filter: blur(6px); } }
.hero-foot { margin-top: 18px; font-size: 13px; color: var(--mut); text-align: right; }

/* ---------- services ---------- */
.services { padding: clamp(80px, 11vw, 150px) 0 40px; }
.svc-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; align-items: end; padding-bottom: 48px; }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.8rem); }
.svc-head p { max-width: 52ch; color: var(--mut); font-size: 18px; }
.svc-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); }
.svc-grid > * { min-width: 0; }
.svc-index { position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; }
.svc-index ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; border-left: 1px solid var(--line); }
.svc-index a { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 14px; margin-left: -1px; border-left: 2px solid transparent; text-decoration: none; color: var(--mut); font-weight: 500; transition: color .25s, border-color .25s; }
.svc-index a svg { flex: none; opacity: .7; }
.svc-index a:hover { color: var(--ink); }
.svc-index a[aria-current] { color: var(--ink); border-left-color: var(--ac); }
.svc-index a[aria-current] svg { color: var(--ac); opacity: 1; }

.svc { padding: 56px 0 72px; border-top: 1px solid var(--line); }
.svc:first-child { border-top: 0; padding-top: 8px; }
.svc-top { display: flex; align-items: center; gap: 16px; }
.svc-mark { color: var(--ac); flex: none; --hot: var(--hot); }
h3 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
.svc-lede { margin-top: 18px; max-width: 54ch; font-size: 19px; line-height: 1.55; }
.scope-list { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.scope-list li { padding: 8px 14px; border-radius: 999px; background: var(--raise); border: 1px solid var(--line); font-size: 15px; }
.duo { margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.duo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; }
.duo img:last-child { margin-top: 48px; }

.panel-wrap { margin-top: 32px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.panel-photo { position: relative; border-radius: 14px; overflow: hidden; background: #d9dde3; }
.panel-photo img { width: 100%; height: 100%; object-fit: cover; }
.panel-tag { position: absolute; left: 12px; bottom: 12px; padding: 7px 12px; border-radius: 8px; background: rgba(6, 12, 20, .82); color: #eef2f7; font-size: 13px; font-weight: 500; }
.cycle { list-style: none; margin: 0; padding: 0; counter-reset: c; display: grid; }
.cycle li { counter-increment: c; display: grid; grid-template-columns: 34px 1fr auto; grid-template-rows: auto auto; column-gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); align-items: baseline; }
.cycle li:first-child { border-top: 0; padding-top: 4px; }
.cycle li::before { content: counter(c); grid-row: span 2; font: 500 13px/1.6 var(--mono); color: var(--mut); }
.cycle b { font-weight: 650; font-size: 17px; }
.cycle span { grid-column: 2; color: var(--mut); font-size: 15px; line-height: 1.45; }
.cycle status-dot { grid-column: 3; grid-row: 1; font-size: 12px; }

.nek { margin-top: 32px; display: block; --tab-gap: 20px; }
.report { border-radius: 14px; background: var(--raise); border: 1px solid var(--line); padding: 22px clamp(18px, 3vw, 28px); }
.report-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 14px; border-bottom: 1px dashed var(--line-2); font-weight: 650; }
.std { font: 500 13px/1 var(--mono); color: var(--ac); padding: 6px 8px; border: 1px solid color-mix(in srgb, var(--ac) 40%, transparent); border-radius: 6px; white-space: nowrap; }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; color: var(--mut); transition: color .4s; }
.ticks li:last-child { border-bottom: 0; padding-bottom: 2px; }
.ticks li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 5px; border: 1.5px solid var(--line-2); background: transparent no-repeat center / 14px; transition: background-color .35s var(--ease), border-color .35s, transform .35s var(--ease); }
.ticks li.on { color: var(--ink); }
.ticks li.on::before {
  background-color: var(--ac); border-color: var(--ac); transform: scale(1.0);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3.5 8.4 3 3 6-6.6' fill='none' stroke='white' stroke-width='2.2'/%3E%3C/svg%3E");
  animation: pop .45s var(--ease);
}
@keyframes pop { 40% { transform: scale(1.18); } }
.report-ir { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; align-items: center; }
.report-ir img { width: 100%; aspect-ratio: 36 / 26; object-fit: cover; border-radius: 10px; }
.report-ir p { margin-top: 14px; color: var(--mut); font-size: 16px; }
.cert { margin-top: 20px; display: flex; gap: 14px; align-items: center; font-size: 14px; color: var(--mut); max-width: 64ch; }
.cert img { border-radius: 8px; background: #fff; flex: none; }

.heat-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.heat-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; margin-top: 18px; }
.brands { list-style: none; padding: 0; margin: 28px 0 0; display: grid; }
.brands li { font-size: clamp(1.8rem, 3.4vw, 2.8rem); font-weight: 800; font-stretch: 125%; letter-spacing: -.02em; line-height: 1.25; padding: 6px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.fine { margin-top: 16px; font-size: 14px; color: var(--mut); }

/* ---------- about ---------- */
.about { padding: clamp(72px, 10vw, 130px) 0; background: var(--raise); border-block: 1px solid var(--line); }
.about-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.about-photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 16px; }
.big { margin-top: 20px; font-size: clamp(1.3rem, 2.2vw, 1.75rem); line-height: 1.3; font-weight: 600; font-stretch: 106%; letter-spacing: -.01em; max-width: 30ch; }
.about-copy > p:not(.big) { margin-top: 18px; color: var(--mut); max-width: 58ch; }
.facts { margin: 36px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.facts div { padding: 14px 0; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.facts dt { font-size: 13px; color: var(--mut); }
.facts dd { margin: 0; font-weight: 600; display: flex; align-items: center; gap: 8px; min-height: 40px; }
.facts dd span { font-family: var(--mono); font-weight: 500; }
.badges img { border-radius: 8px; background: #fff; }

/* ---------- contact ---------- */
.contact { padding: clamp(72px, 10vw, 140px) 0 clamp(80px, 10vw, 140px); }
.contact-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact-copy > p:not(.big) { margin-top: 16px; color: var(--mut); max-width: 46ch; }
.direct { list-style: none; padding: 0; margin: 32px 0 0; display: grid; }
.direct a { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); text-decoration: none; font-weight: 600; transition: color .2s; }
.direct a:hover { color: var(--ac); }
.direct svg { color: var(--ac); flex: none; }
.direct span { display: grid; gap: 2px; }
.direct small { font-size: 13px; font-weight: 400; color: var(--mut); }

.order { background: var(--raise); border: 1px solid var(--line); border-radius: 18px; padding: clamp(20px, 3vw, 32px); display: grid; gap: 20px; box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .55); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font-size: 14px; color: var(--mut); padding: 0; margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 15px; font-weight: 500; transition: background-color .2s, border-color .2s, color .2s; }
.chips input:hover + span { border-color: var(--ink); }
.chips input:checked + span { background: var(--ac); border-color: var(--ac); color: var(--ac-ink); }
.chips input:focus-visible + span { outline: 2px solid var(--ac); outline-offset: 3px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 8px; font-size: 14px; color: var(--mut); }
.field em { font-style: normal; opacity: .75; }
.field input, .field textarea { width: 100%; font: 400 16px/1.4 var(--sans); color: var(--ink); background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 14px; min-height: 48px; transition: border-color .2s, box-shadow .2s; caret-color: var(--ac); }
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder, .field textarea::placeholder { color: color-mix(in srgb, var(--mut) 80%, transparent); }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--ac); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ac) 25%, transparent); }
.field input[aria-invalid="true"] { border-color: var(--hot); }
.form-err { color: var(--hot); font-size: 14px; }
.send { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.send .fine { margin: 0; }
.submit { font: 650 16px/1 var(--sans); color: var(--ac-ink); background: var(--ac); border: 0; border-radius: 999px; height: 52px; padding: 0 26px; cursor: pointer; transition: transform .2s var(--ease), filter .2s; }
.submit:hover { filter: brightness(1.1); }
.submit:active { transform: scale(.97); }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 48px 0 64px; font-size: 15px; color: var(--mut); }
.foot-in { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.foot-brand p { margin-top: 12px; max-width: 34ch; }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.foot-links a, address a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
address { line-height: 1.5; }
.foot-links a:hover, address a:hover { color: var(--ink); }
address { font-style: normal; display: grid; justify-items: start; align-content: start; }

toast-island { --toast-width: 380px; }
toast-island:not(.live) { visibility: hidden; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav-links { display: none; }
}
@media (max-width: 900px) {
  .hero-in, .svc-head, .about-in, .contact-in { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr; gap: 0; }
  .svc-index { top: var(--nav-h); z-index: 5; margin-inline: calc(var(--pad) * -1); padding: 8px var(--pad); background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
  .svc-index ol { display: flex; gap: 6px; border: 0; overflow-x: auto; scrollbar-width: none; }
  .svc-index a { border: 1px solid var(--line); border-radius: 999px; margin: 0; padding: 0 14px; white-space: nowrap; min-height: 44px; }
  .svc-index a[aria-current] { border-color: var(--ac); }
  .svc:first-child { padding-top: 40px; }
  .about-photo img { aspect-ratio: 4 / 3; object-position: 50% 30%; }
  .hero-foot { text-align: left; }
}
@media (max-width: 640px) {
  :root { --nav-h: 64px; }
  body { font-size: 16px; }
  .brand-sub, .nav-cta { display: none; }
  .tel { width: 44px; justify-content: center; padding: 0; border: 1px solid var(--line-2); border-radius: 999px; }
  .tel span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .nav-end { gap: 8px; }
  .ctas magnetic-button, .ghost { width: 100%; justify-content: center; }
  .ctas magnetic-button { --mb-min-width: 100%; }
  .panel-wrap, .heat-grid, .report-ir, .row2, .facts { grid-template-columns: 1fr; }
  .panel-photo img { aspect-ratio: 4 / 3; }
  .duo img:last-child { margin-top: 24px; }
  .scope { padding: 8px 8px 4px; margin-inline: -6px; }
  .scope figcaption { flex-wrap: wrap; }
  .foot-in { grid-template-columns: 1fr; }
  .cycle li { grid-template-columns: 28px 1fr auto; }
}
@media (prefers-reduced-motion: reduce) {
  .rec i, .scope-flag, .ticks li.on::before { animation: none; }
}
