/* Layout: instrument-panel landing page — measurement chart as hero, then a strict 12-col reading column with spec-sheet sections */
:root{
  --bg:#EDF0F2;          /* anodised-aluminium grey, cool bias */
  --panel:#F8FAFB;
  --ink:#121C26;
  --muted:#55636F;
  --rule:#CBD3D9;
  --accent:#2340C4;      /* simulation curve: cobalt */
  --accent-ink:#FFFFFF;
  --signal:#B9770E;      /* measured data: amber */
  --good:#1E7A4F;
  --g5:#2340C4;          /* 5 mm air gap */
  --g10:#B9770E;         /* 10 mm air gap */
  --g15:#0F7F72;         /* 15 mm air gap */
  --plot:#FFFFFF;
  --grid:#E3E8EC;
  --font-display:"Schibsted Grotesk","Helvetica Neue",Arial,sans-serif;
  --font-body:"IBM Plex Sans","Segoe UI",Roboto,sans-serif;
  --font-mono:"IBM Plex Mono",ui-monospace,Consolas,monospace;
  --maxw:1120px;
}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){
  --bg:#0F151B;--panel:#161E26;--ink:#E6ECF1;--muted:#93A1AD;--rule:#2A3540;
  --accent:#7D94FF;--accent-ink:#0B1020;--signal:#E8A93A;--good:#4CC08A;--g5:#7D94FF;--g10:#E8A93A;--g15:#3FC8B4;--plot:#121A21;--grid:#222D37;color-scheme:dark}}
:root[data-theme="dark"]{
  --bg:#0F151B;--panel:#161E26;--ink:#E6ECF1;--muted:#93A1AD;--rule:#2A3540;
  --accent:#7D94FF;--accent-ink:#0B1020;--signal:#E8A93A;--good:#4CC08A;--g5:#7D94FF;--g10:#E8A93A;--g15:#3FC8B4;--plot:#121A21;--grid:#222D37;color-scheme:dark}

*{box-sizing:border-box}
body{background:var(--bg);color:var(--ink);font-family:var(--font-body);font-size:16px;line-height:1.6;padding-inline:20px}
.wrap{max-width:var(--maxw);margin-inline:auto}
h1,h2,h3{font-family:var(--font-display);text-wrap:balance;margin:0;line-height:1.12;letter-spacing:-.015em}
h1{font-size:clamp(2.1rem,4.6vw,3.5rem);font-weight:800}
h2{font-size:clamp(1.55rem,2.8vw,2.15rem);font-weight:700}
h3{font-size:1.1rem;font-weight:700;letter-spacing:0}
p{margin:0}
.lede{font-size:1.15rem;color:var(--muted);max-width:56ch}
.eyebrow{font-family:var(--font-mono);font-size:.78rem;letter-spacing:.09em;text-transform:uppercase;color:var(--muted)}
a{color:var(--accent)}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.mono{font-family:var(--font-mono);font-variant-numeric:tabular-nums}

/* nav */
nav{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-block:20px;border-bottom:1px solid var(--rule);flex-wrap:wrap}
.brand{display:flex;align-items:center;gap:10px;font-family:var(--font-display);font-weight:800;font-size:1.1rem;color:var(--ink);text-decoration:none}
.brand svg{flex:none}
.navlinks{display:flex;gap:22px;align-items:center;flex-wrap:wrap}
.navlinks a{color:var(--muted);text-decoration:none;font-size:.95rem}
.navlinks a:hover{color:var(--ink)}
.btn{display:inline-flex;align-items:center;gap:8px;background:var(--accent);color:var(--accent-ink);font-weight:600;text-decoration:none;border:0;border-radius:6px;padding:12px 20px;font-size:1rem;cursor:pointer;font-family:var(--font-body)}
.btn:hover{filter:brightness(1.08)}
.btn.ghost{background:transparent;color:var(--ink);border:1px solid var(--rule)}
.navlinks .btn{color:var(--accent-ink);padding:9px 16px;font-size:.92rem}

/* hero */
/* animated impedance tube band */
.tube-band{margin:28px 0 0;padding:0;display:flex;flex-direction:column;gap:10px}
.tube-frame{position:relative;background:var(--plot);border:1px solid var(--rule);border-radius:12px;overflow:hidden}
#tube{display:block;width:100%;height:300px}
.tube-meta{display:flex;justify-content:space-between;gap:8px 20px;flex-wrap:wrap;font-family:var(--font-mono);font-size:.78rem;color:var(--muted)}
.tube-meta b{color:var(--ink);font-weight:500;font-variant-numeric:tabular-nums}
@media (max-width:640px){#tube{height:230px}}
.hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);gap:48px;align-items:center;padding-block:44px 56px}
.hero-copy{display:flex;flex-direction:column;gap:22px;min-width:0}
.cta-row{display:flex;gap:12px;flex-wrap:wrap}
.specs{display:flex;flex-wrap:wrap;gap:8px 18px;font-family:var(--font-mono);font-size:.82rem;color:var(--muted)}
.specs span::before{content:"▸ ";color:var(--accent)}
.chart-card{background:var(--panel);border:1px solid var(--rule);border-radius:10px;padding:18px 18px 12px;min-width:0}
.chart-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px;flex-wrap:wrap;margin-bottom:6px}
.legend{display:flex;gap:16px;font-size:.82rem;color:var(--muted);flex-wrap:wrap}
.legend i{display:inline-block;width:18px;height:3px;vertical-align:middle;margin-right:6px;border-radius:2px}
.legend i.dot{width:8px;height:8px;border-radius:50%}
.eng-chart{width:100%;height:auto;display:block;touch-action:pan-y}
.eng-chart text{font-family:var(--font-mono);font-size:11px;fill:var(--muted)}
.eng-chart .axis-label{font-family:var(--font-body);font-size:12px;fill:var(--ink);font-weight:500}
.eng-chart .leg{font-family:var(--font-body);font-size:11px;fill:var(--ink)}
.chart-note{font-size:.78rem;color:var(--muted);margin-top:6px;line-height:1.45}
.chart-note cite{font-style:normal}
.val-figure{background:var(--panel);border:1px solid var(--rule);border-radius:10px;padding:20px;margin:0;min-width:0;display:flex;flex-direction:column;gap:12px}
.val-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.seg{display:inline-flex;border:1px solid var(--rule);border-radius:6px;overflow:hidden;flex-wrap:wrap}
.seg button{font:inherit;font-size:.85rem;background:transparent;color:var(--muted);border:0;padding:6px 12px;cursor:pointer;border-right:1px solid var(--rule)}
.seg button:last-child{border-right:0}
.seg button[aria-pressed="true"]{background:var(--ink);color:var(--bg)}
.readout{font-family:var(--font-mono);font-size:.78rem;color:var(--muted);min-height:1.3em;font-variant-numeric:tabular-nums}
.peak-table{width:100%;border-collapse:collapse;font-size:.9rem;font-variant-numeric:tabular-nums}
.peak-table th,.peak-table td{padding:9px 10px;border-bottom:1px solid var(--rule);text-align:right;white-space:nowrap}
.peak-table th{font-family:var(--font-mono);font-weight:500;font-size:.78rem;color:var(--muted)}
.peak-table th:first-child,.peak-table td:first-child{text-align:left}
.swatch{display:inline-block;width:10px;height:10px;border-radius:2px;margin-right:8px;vertical-align:-1px}
.val-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:36px;align-items:start}
.val-side{display:flex;flex-direction:column;gap:20px;min-width:0}
.case-title{display:flex;flex-direction:column;gap:6px;font-size:1.2rem;margin:8px 0 18px}
.val-grid + .case-title{margin-top:48px}

section{padding-block:64px}
.wave-div{display:block;width:100%;height:36px;overflow:visible}
.wave-div .base{stroke:var(--rule);stroke-width:1;fill:none}
.wave-div .pulse{stroke:var(--accent);stroke-width:1.6;fill:none;stroke-linecap:round}
.wave-div .pulse2{stroke:var(--signal);stroke-width:1.2;fill:none;opacity:.55}
.sec-head{display:flex;flex-direction:column;gap:12px;margin-bottom:36px;max-width:68ch}

/* compare */
.compare{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.route{background:var(--panel);border:1px solid var(--rule);border-radius:10px;padding:24px;display:flex;flex-direction:column;gap:16px;min-width:0}
.route.ours{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent) inset}
.steps{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:0}
.steps li{display:grid;grid-template-columns:1fr auto;gap:12px;padding-block:10px;border-bottom:1px dashed var(--rule);font-size:.95rem}
.steps li:last-child{border-bottom:0}
.steps .t{font-family:var(--font-mono);color:var(--muted);font-size:.85rem;white-space:nowrap}
.total{display:flex;justify-content:space-between;font-weight:600;padding-top:12px;border-top:2px solid var(--ink)}
.route.ours .total{border-top-color:var(--accent)}

/* process */
.process{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:28px;counter-reset:s}
.process div{display:flex;flex-direction:column;gap:8px;min-width:0}
.process div::before{counter-increment:s;content:"0" counter(s);font-family:var(--font-mono);color:var(--accent);font-size:.9rem;padding-bottom:8px;border-bottom:1px solid var(--rule)}
.process p{color:var(--muted);font-size:.95rem}

/* deliverables spec table */
.spec-table{width:100%;border-collapse:collapse;font-size:.95rem}
.spec-table th,.spec-table td{text-align:left;padding:12px 14px;border-bottom:1px solid var(--rule);vertical-align:top}
.spec-table th{font-family:var(--font-mono);font-weight:500;font-size:.85rem;color:var(--muted);white-space:nowrap}
.spec-table td:first-child{font-family:var(--font-mono);white-space:nowrap;color:var(--accent)}
.table-scroll{overflow-x:auto}

/* fit */
.fit{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:40px}
.fit ul{list-style:none;padding:0;margin:14px 0 0;display:flex;flex-direction:column;gap:10px}
.fit li{padding-left:26px;position:relative}
.fit .yes li::before{content:"✓";position:absolute;left:0;color:var(--good);font-weight:700}
.fit .no li::before{content:"—";position:absolute;left:0;color:var(--muted)}
.fit .no li{color:var(--muted)}

/* validation */

/* pricing */
.tiers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.tier{background:var(--panel);border:1px solid var(--rule);border-radius:10px;padding:26px;display:flex;flex-direction:column;gap:14px;min-width:0}
.tier.feature{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent) inset}
.price{font-family:var(--font-display);font-size:2.2rem;font-weight:800;line-height:1}
.price small{font-family:var(--font-body);font-size:.9rem;font-weight:400;color:var(--muted)}
.tier ul{padding-left:18px;margin:0;color:var(--muted);font-size:.93rem;display:flex;flex-direction:column;gap:6px}
.tier .btn{margin-top:auto;justify-content:center}
.price-note{margin-top:20px;font-size:.85rem;color:var(--muted)}
.study{margin-top:24px;display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap;border:1px solid var(--rule);border-radius:10px;padding:22px 26px;background:var(--panel)}
.study div{display:flex;flex-direction:column;gap:6px;min-width:0;max-width:62ch}
.study p{color:var(--muted);font-size:.95rem}
.about{display:block}
.monogram{width:88px;height:88px;border-radius:50%;background:var(--ink);color:var(--bg);display:grid;place-items:center;font-family:var(--font-display);font-weight:800;font-size:1.8rem;letter-spacing:.02em}
.about-body{display:flex;flex-direction:column;gap:14px;max-width:68ch}
.creds{display:flex;flex-wrap:wrap;gap:8px 20px;font-family:var(--font-mono);font-size:.82rem;color:var(--muted)}
.estimate{grid-column:1/-1;display:flex;justify-content:space-between;align-items:baseline;gap:12px;flex-wrap:wrap;border-top:1px solid var(--rule);padding-top:12px;font-variant-numeric:tabular-nums}
.estimate strong{font-family:var(--font-display);font-size:1.4rem}
.estimate span{color:var(--muted);font-size:.88rem}

/* faq */
.faq{display:flex;flex-direction:column;max-width:78ch}
details{border-bottom:1px solid var(--rule);padding-block:16px}
summary{cursor:pointer;font-weight:600;list-style:none;display:flex;justify-content:space-between;gap:16px}
summary::-webkit-details-marker{display:none}
summary::after{content:"+";font-family:var(--font-mono);color:var(--accent)}
details[open] summary::after{content:"−"}
details p{margin-top:10px;color:var(--muted)}

/* quote form */
.quote{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:48px}
form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.field{display:flex;flex-direction:column;gap:6px;min-width:0}
.field.full{grid-column:1/-1}
label{font-size:.85rem;font-weight:500}
input,select,textarea{font:inherit;font-size:.95rem;color:var(--ink);background:var(--panel);border:1px solid var(--rule);border-radius:6px;padding:10px 12px;width:100%}
textarea{min-height:110px;resize:vertical}
.drop{border:2px dashed var(--rule);border-radius:8px;padding:22px;text-align:center;color:var(--muted);font-size:.9rem;background:var(--panel)}
.drop strong{color:var(--ink)}
#form-msg{grid-column:1/-1;font-size:.92rem;color:var(--good)}
#form-msg.err{color:var(--signal)}
.flow{margin:8px 0 0;padding-left:20px;display:flex;flex-direction:column;gap:8px;color:var(--muted);max-width:44ch}
.flow b{color:var(--ink);font-weight:600}
.mode{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.mode-opt{display:flex;gap:10px;align-items:flex-start;border:1px solid var(--rule);border-radius:8px;padding:12px 14px;background:var(--panel);cursor:pointer}
.mode-opt:has(input:checked){border-color:var(--accent);box-shadow:0 0 0 1px var(--accent) inset}
.mode-opt input{width:auto;margin-top:4px}
.mode-opt span{display:flex;flex-direction:column;gap:2px;min-width:0}
.mode-opt small{color:var(--muted);font-size:.82rem}
#quote-form.ask .only-files{display:none!important}
#quote-form.nda-on #drop-wrap{display:none!important}
.drop{display:flex;flex-direction:column;align-items:center;gap:4px;cursor:pointer;transition:border-color .2s,background .2s}
.drop.over{border-color:var(--accent);background:var(--bg)}
.drop-hint{font-size:.8rem;color:var(--muted)}
.linkbtn{background:none;border:0;padding:0;font:inherit;color:var(--accent);text-decoration:underline;cursor:pointer}
.file-list{list-style:none;margin:8px 0 0;padding:0;display:flex;flex-direction:column;gap:6px}
.file-list li{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:10px;align-items:center;font-size:.88rem;border:1px solid var(--rule);border-radius:6px;padding:8px 10px;background:var(--panel)}
.file-list .fn{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--font-mono);font-size:.82rem}
.file-list .fs{color:var(--muted);font-variant-numeric:tabular-nums;font-size:.8rem}
.file-list .rm{background:none;border:0;color:var(--muted);cursor:pointer;font-size:1rem;line-height:1}
.file-list .bar{grid-column:1/-1;height:3px;background:var(--rule);border-radius:2px;overflow:hidden}
.file-list .bar i{display:block;height:100%;width:0;background:var(--accent);transition:width .2s}
.file-list li.err{border-color:var(--signal)}
.pay-note{font-size:.85rem;color:var(--muted)}
@media (max-width:520px){.mode{grid-template-columns:minmax(0,1fr)}}
.nda{display:flex;gap:10px;align-items:flex-start;font-size:.9rem;grid-column:1/-1}
.nda input{width:auto;margin-top:4px}

footer{border-top:1px solid var(--rule);padding-block:28px 40px;display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;font-size:.85rem;color:var(--muted)}

@media (max-width:880px){
  .hero,.val-grid,.quote,.compare,.fit,.about{grid-template-columns:minmax(0,1fr)}
  .process{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tiers{grid-template-columns:minmax(0,1fr)}
  .hero{padding-block:40px}
  .navlinks a:not(.btn){display:none}
}
@media (max-width:520px){
  body{padding-inline:16px}
  .process,form{grid-template-columns:minmax(0,1fr)}
}
@media (prefers-reduced-motion:no-preference){
  #hero-chart .sim{stroke-dasharray:var(--len);stroke-dashoffset:var(--len);animation:draw 1.6s ease-out .2s forwards}
  @keyframes draw{to{stroke-dashoffset:0}}
}
/* heading ripple: rings spread from the start of the heading as it scrolls in */
.rip-h{position:relative}
.rip-h .rings{position:absolute;left:-2px;top:.6em;width:0;height:0;pointer-events:none}
.rip-h .rings i{position:absolute;left:0;top:0;width:22px;height:22px;margin:-11px 0 0 -11px;border:1.5px solid var(--accent);border-radius:50%;opacity:0}
.rip-h.go .rings i{animation:ring 2.4s cubic-bezier(.2,.6,.3,1) forwards}
.rip-h.go .rings i:nth-child(2){animation-delay:.35s;border-color:var(--signal)}
.rip-h.go .rings i:nth-child(3){animation-delay:.7s}
.rip-h.go{animation:settle 1.1s cubic-bezier(.2,.6,.3,1) both}
@keyframes ring{0%{opacity:.5;transform:scale(.2)}100%{opacity:0;transform:scale(7)}}
@keyframes settle{0%{opacity:.3;transform:translateY(8px);letter-spacing:.01em}100%{opacity:1;transform:none}}
/* pricing card ping */
.tier{position:relative;overflow:hidden;transition:transform .35s ease,border-color .35s ease,box-shadow .35s ease}
.tier > *{position:relative;z-index:1}
.tier:hover{transform:translateY(-3px);border-color:var(--accent)}
.tier .ping{position:absolute;z-index:0;width:40px;height:40px;margin:-20px 0 0 -20px;border-radius:50%;border:1.5px solid var(--accent);pointer-events:none;opacity:0;animation:ping 1.6s cubic-bezier(.2,.6,.3,1) forwards}
.tier .ping.b{border-color:var(--signal);animation-delay:.22s}
.tier .ping.c{animation-delay:.44s}
@keyframes ping{0%{opacity:.45;transform:scale(.2)}100%{opacity:0;transform:scale(12)}}
@media (prefers-reduced-motion:reduce){.rip-h.go,.rip-h.go .rings i,.tier .ping{animation:none!important}.tier:hover{transform:none}}

/* service pages */
.crumbs{font-family:var(--font-mono);font-size:.8rem;color:var(--muted);padding-top:28px;display:flex;gap:8px;flex-wrap:wrap}
.crumbs a{color:var(--muted)}
.page-head{padding-block:20px 40px;display:flex;flex-direction:column;gap:16px;max-width:72ch}
.prose{max-width:72ch;display:flex;flex-direction:column;gap:14px}
.prose h2{margin-top:10px}
.prose ul,.prose ol{margin:0;padding-left:22px;display:flex;flex-direction:column;gap:6px}
.prose p,.prose li{color:var(--ink)}
.prose .muted{color:var(--muted)}
.callout{border-left:3px solid var(--accent);background:var(--panel);padding:14px 18px;border-radius:0 8px 8px 0}
.callout.warn{border-left-color:var(--signal)}
.formula{font-family:var(--font-mono);background:var(--panel);border:1px solid var(--rule);border-radius:6px;padding:10px 14px;overflow-x:auto}
.cta-band{margin-block:40px 10px;display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;border:1px solid var(--accent);border-radius:10px;padding:22px 26px;background:var(--panel)}
.cta-band p{color:var(--muted);max-width:56ch}
.related{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}
.related a{display:flex;flex-direction:column;gap:6px;border:1px solid var(--rule);border-radius:8px;padding:16px;background:var(--panel);text-decoration:none;color:var(--ink)}
.related a span{color:var(--muted);font-size:.9rem}
.related a:hover{border-color:var(--accent)}
.foot-links{display:flex;gap:16px;flex-wrap:wrap}
.refs{gap:14px!important}
.refs li{line-height:1.5}
.refs cite{font-style:italic}
.prose h3{margin-top:6px}
.foot-links a{color:var(--muted)}
