/* DustBridge - strict black & white, Swiss-inspired */
:root {
  --black: #000;
  --white: #fff;
  --line: #e4e4e4;
  --muted: #5c5c5c;
  --pad: clamp(20px, 5vw, 64px);
  --max: 1280px;
  --font: "Helvetica Neue", Helvetica, "Inter", "Segoe UI", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--white); color: var(--black);
  font-family: var(--font); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--black); outline-offset: 3px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--black); color: var(--white); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: var(--white);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.logo img { display: block; height: 20px; width: auto; }
.nav-links { display: flex; gap: 36px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-size: 15px; position: relative; padding: 4px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: var(--black); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav-links a:hover::after { transform: scaleX(1); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  background: var(--black); color: var(--white); border: 1px solid var(--black);
  padding: 15px 28px; font-size: 15px; font-weight: 500; cursor: pointer; text-decoration: none;
  transition: background .25s, color .25s;
}
.btn .arrow { display: inline-block; transition: transform .3s var(--ease); }
.btn:hover { background: var(--white); color: var(--black); }
.btn:hover .arrow { transform: translateX(5px); }
.btn.ghost { background: var(--white); color: var(--black); }
.btn.ghost:hover { background: var(--black); color: var(--white); }
.btn.small { padding: 10px 20px; font-size: 14px; white-space: nowrap; }
.btn[disabled] { opacity: .5; cursor: progress; }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 9vw, 120px) 0 clamp(56px, 8vw, 112px); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.eyebrow { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 28px; display: flex; align-items: center; gap: 14px; }
.eyebrow::before { content: ""; width: 36px; height: 1px; background: var(--black); }
h1 { font-size: clamp(44px, 8.2vw, 116px); line-height: .95; letter-spacing: -.045em; font-weight: 700; margin: 0 0 36px; }
.lead { font-size: clamp(18px, 1.8vw, 22px); line-height: 1.5; max-width: 34em; margin: 0 0 40px; color: #222; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-visual { position: relative; width: 100%; max-width: 400px; justify-self: end; padding-bottom: 44px; }
.hero-visual img { display: block; width: 100%; height: auto; }
.hv-label { position: absolute; bottom: 0; transform: translateX(-50%); font-family: var(--font); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.hv-label.left { left: 10.3%; }
.hv-label.right { left: 89.7%; }
@keyframes pulse { 0% { stroke-dashoffset: 414; } 55%, 100% { stroke-dashoffset: -14; } }
@keyframes ring { 0% { transform: scale(.7); opacity: .35; } 100% { transform: scale(1.5); opacity: 0; } }

/* ---------- Sections ---------- */
section { padding: clamp(64px, 9vw, 128px) 0; }
.section-label { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 20px; }
h2 { font-size: clamp(34px, 5vw, 68px); line-height: 1; letter-spacing: -.035em; font-weight: 700; margin: 0 0 24px; }
h3 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.05; letter-spacing: -.03em; font-weight: 700; margin: 0 0 18px; }

/* Two sides */
.sides { padding: 0; border-bottom: 1px solid var(--line); }
.sides-head { padding: clamp(56px, 7vw, 96px) 0 clamp(32px, 4vw, 56px); }
.sides-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--black); }
.side { padding: clamp(36px, 5vw, 72px) var(--pad); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: 420px; }
.side + .side { border-left: 1px solid var(--line); }
.side p { max-width: 28em; margin: 0; color: #222; }
.side .num { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 28px; }
.side-inner { padding-left: 0; }
.sides-grid .side:first-child { padding-left: max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad))); }
.sides-grid .side:last-child { padding-right: max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad))); }

/* How it works */
.steps { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--black); }
.step { padding: 28px 28px 8px 0; position: relative; }
.step + .step { padding-left: 28px; border-left: 1px solid var(--line); }
.step .n { font-size: 14px; letter-spacing: .1em; margin-bottom: 40px; display: block; }
.step h3 { font-size: 26px; margin-bottom: 12px; }
.step p { margin: 0; font-size: 16px; color: var(--muted); }
.step::before { content: ""; position: absolute; top: -1px; left: 0; height: 3px; width: 0; background: var(--black); transition: width .8s var(--ease); }
.step.in::before { width: 48px; }
.step + .step::before { left: 0; }

/* Categories */
.cats { border-top: 1px solid var(--black); border-bottom: 1px solid var(--line); background: var(--white); }
.cat-list { list-style: none; margin: 40px 0 0; padding: 0; }
.cat-list li { border-top: 1px solid var(--line); }
.cat-list li:first-child { border-top: 0; }
.cat {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: none; border: 0; padding: 22px 0; cursor: pointer; text-align: left;
  font-size: clamp(24px, 3.6vw, 46px); letter-spacing: -.03em; font-weight: 500; line-height: 1.1;
  transition: padding-left .4s var(--ease);
}
.cat .idx { font-size: 13px; letter-spacing: .1em; color: var(--muted); min-width: 36px; font-weight: 400; }
.cat .name { flex: 1; }
.cat .go { font-size: 24px; opacity: 0; transform: translateX(-10px); transition: opacity .3s, transform .4s var(--ease); }
.cat:hover, .cat:focus-visible { padding-left: 14px; }
.cat:hover .go, .cat:focus-visible .go { opacity: 1; transform: none; }

/* Final CTA */
.final { background: var(--black); color: var(--white); }
.final h2 { max-width: 12em; }
.final p { max-width: 32em; font-size: 20px; margin: 0 0 40px; color: #ddd; }
.final .btn { background: var(--white); color: var(--black); border-color: var(--white); }
.final .btn:hover { background: var(--black); color: var(--white); }
.final .btn.ghost { background: var(--black); color: var(--white); }
.final .btn.ghost:hover { background: var(--white); color: var(--black); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 48px; font-size: 14px; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px 32px; align-items: center; }
.foot ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0; padding: 0; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot .logo img { height: 15px; }

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

/* ---------- Dialogs & forms ---------- */
dialog {
  border: 1px solid var(--black); padding: 0; background: var(--white); color: var(--black);
  width: min(720px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto;
}
dialog.sm { width: min(520px, calc(100vw - 32px)); }
dialog::backdrop { background: rgba(0, 0, 0, .6); }
dialog[open] { animation: dlg .35s var(--ease); }
@keyframes dlg { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.dlg-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 32px 36px 0; }
.dlg-head h2 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 8px; }
.dlg-head p { margin: 0; color: var(--muted); font-size: 15px; }
.close { background: none; border: 1px solid var(--line); width: 40px; height: 40px; cursor: pointer; font-size: 20px; line-height: 1; flex: none; transition: border-color .2s, background .2s, color .2s; }
.close:hover { background: var(--black); color: var(--white); border-color: var(--black); }
form.lead-form { padding: 28px 36px 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 500; letter-spacing: .02em; }
.field label .opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; color: var(--black); background: var(--white);
  border: 1px solid #bdbdbd; border-radius: 0; padding: 12px 14px; width: 100%;
  transition: border-color .2s; appearance: none; -webkit-appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E"); background-position: right 14px center; background-repeat: no-repeat; padding-right: 38px; }
.field textarea { min-height: 112px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--black); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--black); box-shadow: 0 0 0 1px var(--black); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--black); border-width: 2px; padding: 11px 13px; }
.err { margin: 0; font-size: 13px; min-height: 0; font-weight: 500; }
.full-err { grid-column: 1 / -1; }
.err:not(:empty)::before { content: "\2715  "; font-size: 11px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: #222; }
.consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: #000; flex: none; }
.form-actions { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.privacy-note { margin: 0; font-size: 13px; color: var(--muted); }
.form-error { grid-column: 1 / -1; border: 1px solid var(--black); padding: 12px 14px; font-size: 14px; font-weight: 500; }
.form-error:empty { display: none; }
.success { padding: 56px 36px 48px; }
.success .tick { width: 56px; height: 56px; border: 1px solid var(--black); display: grid; place-items: center; margin-bottom: 28px; }
.success .tick svg { width: 28px; height: 28px; }
.success .tick path { stroke: var(--black); stroke-width: 2; fill: none; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .6s .15s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.success h2 { font-size: 34px; }
.success p { color: #222; max-width: 30em; margin: 0 0 28px; }
.choose { padding: 24px 36px 36px; display: grid; gap: 12px; }
.choose .btn { justify-content: space-between; width: 100%; }

/* ---------- Legal pages ---------- */
.legal { padding: clamp(48px, 7vw, 96px) 0; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(38px, 6vw, 68px); margin-bottom: 12px; }
.legal h2 { font-size: 24px; letter-spacing: -.02em; margin: 44px 0 12px; }
.legal p, .legal li { color: #222; }
.legal .meta { color: var(--muted); font-size: 14px; margin-bottom: 40px; }
.legal .draft { border: 1px solid var(--black); padding: 14px 16px; font-size: 14px; margin: 24px 0 0; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { justify-self: start; max-width: 440px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(3) { border-left: 0; padding-left: 0; }
  .step:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 28px; }
  .step:nth-child(n+3)::before { top: -1px; }
}
@media (max-width: 760px) {
  .nav { gap: 12px; }
  .logo img { height: 15px; }
  .nav .btn.small { padding: 9px 14px; font-size: 13px; }
  .nav-links { display: none; }
  .sides-grid { grid-template-columns: 1fr; }
  .side { min-height: 0; }
  .side + .side { border-left: 0; border-top: 1px solid var(--black); }
  .sides-grid .side:first-child, .sides-grid .side:last-child { padding-left: var(--pad); padding-right: var(--pad); }
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 28px 0 8px; border-left: 0; }
  .step:nth-child(n+2) { border-top: 1px solid var(--line); margin-top: 20px; }
  .cta-row .btn { width: 100%; }
  dialog, dialog.sm { width: 100vw; max-width: 100vw; max-height: 100vh; height: 100vh; border: 0; }
  .dlg-head { padding: 24px 20px 0; }
  form.lead-form { padding: 24px 20px 32px; grid-template-columns: 1fr; }
  .success, .choose { padding-left: 20px; padding-right: 20px; }
  .cat .go { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .hv-pulse { display: none; }
}
