/* =========================================================
   OpenTech 3D Prints — design system
   ========================================================= */

:root {
  color-scheme: dark;

  --bg: #05070c;
  --bg-2: #080c14;
  --bg-3: #0b111c;
  --panel: rgba(255, 255, 255, .035);
  --panel-2: rgba(255, 255, 255, .06);
  --line: rgba(140, 175, 215, .16);
  --line-bright: rgba(120, 220, 255, .34);

  --text: #edf3fb;
  --muted: #9aa8bc;
  --muted-2: #7f8fa6;

  --cyan: 75, 220, 255;
  --teal: 45, 235, 190;
  --amber: 255, 166, 92;
  --violet: 150, 125, 255;

  --font-sans: "Avenir Next", "Segoe UI", "Helvetica Neue", system-ui, -apple-system, sans-serif;
  --font-mono: "SFMono-Regular", "Cascadia Code", "Roboto Mono", Menlo, Consolas, monospace;

  --ease: cubic-bezier(.2, .8, .2, 1);
  --radius: 18px;
  --max: 1180px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  background-color: var(--bg);
  background-image:
    radial-gradient(1000px 620px at 78% -8%, rgba(var(--teal), .10), transparent 62%),
    radial-gradient(900px 560px at 8% 8%, rgba(var(--cyan), .07), transparent 60%),
    radial-gradient(700px 500px at 50% 100%, rgba(var(--violet), .045), transparent 65%);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: transparent;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(var(--teal), .28); color: var(--text); }

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; }

button { color: inherit; }

img, svg { max-width: 100%; }

h1, h2, h3, p, dl, dd, dt, ul, ol, figure { margin: 0; }

ul, ol { padding: 0; }

:focus-visible {
  outline: 2px solid rgb(var(--cyan));
  outline-offset: 3px;
}

.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.skip {
  position: absolute;
  top: -70px;
  left: 14px;
  z-index: 400;
  padding: 10px 14px;
  border-radius: 9px;
  background: var(--text);
  color: #041018;
  font-weight: 600;
  transition: top .2s var(--ease);
}
.skip:focus { top: 14px; }

.progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 300;
  height: 2px;
  pointer-events: none;
}
.progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, rgb(var(--cyan)), rgb(var(--teal)));
  box-shadow: 0 0 12px rgba(var(--teal), .55);
}

/* =========================================================
   Header
   ========================================================= */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 200;
  padding: 16px 0;
  background: linear-gradient(180deg, rgba(5, 7, 12, .86), rgba(5, 7, 12, .52));
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  transition: background .3s ease, border-color .3s ease, padding .3s ease;
}
.site-header.is-scrolled {
  padding: 11px 0;
  background: rgba(5, 7, 12, .94);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  color: var(--text);
}

.brand-type {
  display: grid;
  gap: 0;
  line-height: 1;
}
.brand-type strong {
  font-size: .98rem;
  font-weight: 650;
  letter-spacing: -.02em;
}
.brand-type span {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: .55rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.site-nav a {
  font-size: .84rem;
  color: var(--muted);
  transition: color .2s ease;
}
.site-nav a:hover { color: var(--text); }
.site-nav .nav-cta {
  padding: 9px 15px;
  border: 1px solid rgba(var(--teal), .3);
  border-radius: 999px;
  color: var(--text);
  background: rgba(var(--teal), .06);
  transition: border-color .2s ease, background .2s ease, transform .2s var(--ease);
}
.site-nav .nav-cta:hover {
  border-color: rgba(var(--teal), .6);
  background: rgba(var(--teal), .11);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  gap: 5px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, .035);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 17px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--text);
  transition: transform .25s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* =========================================================
   Hero
   ========================================================= */

.hero {
  position: relative;
  padding: 154px 0 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  gap: clamp(34px, 5vw, 74px);
  align-items: center;
  min-height: calc(100svh - 154px);
  padding-bottom: 58px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.hud-num { color: rgb(var(--teal)); }

.status-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgb(var(--teal));
  box-shadow: 0 0 0 4px rgba(var(--teal), .10), 0 0 12px rgba(var(--teal), .6);
  animation: pulse 2.8s ease-in-out infinite;
}

.hero h1 {
  margin-top: 18px;
  font-size: clamp(3.3rem, 7.2vw, 6.8rem);
  font-weight: 600;
  line-height: .9;
  letter-spacing: -.062em;
}
.hero h1 em,
.section-head h2 em,
.process-copy h2 em,
.contact-copy h2 em {
  font-style: normal;
  color: transparent;
  background: linear-gradient(100deg, rgb(var(--cyan)), rgb(var(--teal)) 62%, rgba(var(--teal), .75));
  -webkit-background-clip: text;
  background-clip: text;
}

.lede {
  max-width: 56ch;
  margin-top: 22px;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 12px 21px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: -.01em;
  cursor: pointer;
  transition: transform .25s var(--ease), border-color .25s ease, background .25s ease, box-shadow .25s ease;
}
.btn span { font-size: .82em; opacity: .8; }
.btn-primary {
  background: linear-gradient(100deg, rgb(var(--cyan)), rgb(var(--teal)));
  color: #041018;
  box-shadow: 0 12px 34px -18px rgba(var(--teal), .75);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px -18px rgba(var(--teal), .85);
}
.btn-ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, .03);
  color: var(--text);
}
.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--cyan), .38);
  background: rgba(255, 255, 255, .055);
}
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.hero-meta dt {
  font-family: var(--font-mono);
  font-size: .56rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.hero-meta dd {
  margin-top: 5px;
  font-size: .84rem;
  color: var(--text);
}
.hero-meta dd .status-dot {
  display: inline-block;
  margin-right: 6px;
  vertical-align: 1px;
}

/* Hero visual */

.hero-visual { position: relative; }

.visual-frame {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 44%, rgba(var(--teal), .13), transparent 56%),
    linear-gradient(160deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .01));
  box-shadow:
    inset 0 0 90px rgba(0, 0, 0, .48),
    0 45px 110px -55px rgba(var(--teal), .32);
}
.visual-frame::before {
  content: "";
  position: absolute;
  inset: 14px;
  z-index: 2;
  border: 1px solid rgba(var(--cyan), .11);
  border-radius: 22px;
  pointer-events: none;
}

.print-visual {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
}

.visual-hud {
  position: absolute;
  z-index: 4;
  display: grid;
  gap: 3px;
  font-family: var(--font-mono);
  font-size: .55rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted-2);
  pointer-events: none;
}
.visual-hud b {
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--text);
}
.visual-hud b i {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 5px;
  border-radius: 50%;
  background: rgb(var(--amber));
  box-shadow: 0 0 10px rgba(var(--amber), .8);
  animation: pulse 2s ease-in-out infinite;
}
.hud-a { top: 25px; left: 27px; }
.hud-b { bottom: 25px; left: 27px; }
.hud-c { top: 25px; right: 27px; text-align: right; }
.hud-d { right: 27px; bottom: 25px; text-align: right; }

.scan {
  position: absolute;
  z-index: 3;
  left: 8%;
  right: 8%;
  top: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--teal), .8), transparent);
  box-shadow: 0 0 18px rgba(var(--teal), .35);
  opacity: 0;
  animation: scan 7s linear infinite;
  pointer-events: none;
}

.tower {
  animation: float 7s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}
.orbit {
  animation: spin 42s linear infinite;
  transform-origin: 280px 280px;
}
.bead { animation: bead 2.4s linear infinite; }
.particles { animation: drift 9s ease-in-out infinite; }

.hero-rail {
  overflow: hidden;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.rail-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.rail-inner i {
  font-style: normal;
  font-size: .48rem;
  color: rgb(var(--teal));
}

/* =========================================================
   Shared sections
   ========================================================= */

.section {
  position: relative;
  padding: clamp(82px, 10vw, 132px) 0;
  scroll-margin-top: 88px;
}
.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, .026), rgba(255, 255, 255, .008));
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 800px;
  margin-bottom: 52px;
}
.section-head h2,
.process-copy h2,
.contact-copy h2 {
  margin-top: 12px;
  font-size: clamp(2.35rem, 4.4vw, 4.1rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -.05em;
}
.section-lede {
  max-width: 62ch;
  margin-top: 18px;
  color: var(--muted);
  font-size: .98rem;
  line-height: 1.75;
}

.section-head.split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 42px;
  align-items: end;
  max-width: none;
}
.section-head.split .section-lede { margin-top: 0; padding-bottom: 4px; }

/* =========================================================
   Work cards
   ========================================================= */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card {
  position: relative;
  overflow: hidden;
  padding: 28px 26px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .012));
  transition: transform .35s var(--ease), border-color .35s ease, background .35s ease;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--teal), .7), transparent);
  opacity: .55;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--teal), .34);
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .018));
}
.card-index {
  position: absolute;
  top: 23px;
  right: 24px;
  font-family: var(--font-mono);
  font-size: .58rem;
  letter-spacing: .12em;
  color: var(--muted-2);
}
.card-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(var(--teal), .24);
  border-radius: 12px;
  background: rgba(var(--teal), .055);
  color: rgb(var(--teal));
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 {
  margin-top: 22px;
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -.025em;
}
.card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: .91rem;
  line-height: 1.68;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
  list-style: none;
}
.tags li {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: .54rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted-2);
}

/* =========================================================
   Process
   ========================================================= */

.process-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(42px, 6vw, 92px);
  align-items: start;
}
.process-copy h2 { font-size: clamp(2.35rem, 4.1vw, 3.8rem); }
.process-copy .section-lede { max-width: 46ch; }

.fit-panel {
  margin-top: 36px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(0, 0, 0, .18);
}
.fit-label {
  font-family: var(--font-mono);
  font-size: .58rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgb(var(--teal));
}
.fit-panel ul {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  list-style: none;
}
.fit-panel li {
  position: relative;
  padding-left: 16px;
  color: var(--muted);
  font-size: .87rem;
}
.fit-panel li::before {
  content: "";
  position: absolute;
  top: .58em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgb(var(--teal));
}

.steps {
  list-style: none;
  border-top: 1px solid var(--line);
}
.steps li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.step-num {
  padding-top: 4px;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .1em;
  color: rgb(var(--teal));
}
.steps h3 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -.015em;
}
.steps p {
  max-width: 52ch;
  margin-top: 8px;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.66;
}

/* =========================================================
   Materials
   ========================================================= */

.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 44px;
  border-top: 1px solid var(--line);
}
.spec {
  padding: 26px 0 30px;
  border-bottom: 1px solid var(--line);
}
.spec-label {
  font-family: var(--font-mono);
  font-size: .56rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgb(var(--teal));
}
.spec h3 {
  margin-top: 9px;
  font-size: 1.16rem;
  font-weight: 600;
  letter-spacing: -.02em;
}
.spec p {
  max-width: 46ch;
  margin-top: 9px;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.68;
}
.fineprint {
  max-width: 72ch;
  margin-top: 26px;
  color: var(--muted-2);
  font-size: .76rem;
  line-height: 1.65;
}

/* =========================================================
   FAQ
   ========================================================= */

.faq-grid {
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  gap: clamp(42px, 6vw, 92px);
  align-items: start;
}
.faq-copy h2 { font-size: clamp(2.35rem, 4.2vw, 3.8rem); }
.faq-copy .section-lede { max-width: 42ch; }

.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 21px 0;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -.01em;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span {
  flex: 0 0 auto;
  color: rgb(var(--teal));
  font-family: var(--font-mono);
  font-size: 1.05rem;
  transition: transform .28s var(--ease);
}
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list details p {
  max-width: 62ch;
  padding: 0 0 22px;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.7;
}

/* =========================================================
   Contact
   ========================================================= */

.contact-grid {
  display: grid;
  grid-template-columns: .88fr 1.12fr;
  gap: clamp(42px, 6vw, 92px);
  align-items: start;
}
.contact-copy h2 { font-size: clamp(2.35rem, 4.2vw, 3.9rem); }
.contact-copy .section-lede { max-width: 44ch; }

.contact-direct {
  display: grid;
  gap: 14px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.contact-direct p {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  align-items: baseline;
  color: var(--muted);
  font-size: .86rem;
}
.contact-direct span {
  font-family: var(--font-mono);
  font-size: .56rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.contact-direct a {
  color: var(--text);
  border-bottom: 1px solid var(--line);
  transition: border-color .2s ease;
}
.contact-direct a:hover { border-color: rgba(var(--teal), .6); }

.contact-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .012));
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.field { display: grid; gap: 7px; }
.field > span {
  font-family: var(--font-mono);
  font-size: .59rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.field em {
  font-style: normal;
  color: var(--muted-2);
  text-transform: none;
  letter-spacing: 0;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, .28);
  color: var(--text);
  font-size: .92rem;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--muted-2); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(var(--teal), .6);
  box-shadow: 0 0 0 3px rgba(var(--teal), .12);
  background: rgba(0, 0, 0, .34);
}
.field textarea {
  min-height: 126px;
  resize: vertical;
  line-height: 1.6;
}
.field select { cursor: pointer; }

.contact-form .btn {
  justify-self: start;
  margin-top: 4px;
}
.form-note {
  color: var(--muted-2);
  font-size: .72rem;
  line-height: 1.6;
}
.form-status {
  min-height: 1.2em;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .02em;
}
.form-status.is-success { color: rgb(var(--teal)); }
.form-status.is-error { color: #ff9696; }

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
  padding: 58px 0 24px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, .18);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.2fr .55fr .85fr;
  gap: 40px;
  padding-bottom: 44px;
}
.foot-brand .brand-mark { width: 32px; height: 32px; }
.foot-brand p {
  margin-top: 16px;
  color: var(--muted-2);
  font-size: .83rem;
  line-height: 1.65;
}
.foot-links {
  display: grid;
  gap: 10px;
  align-content: start;
}
.foot-links a {
  width: fit-content;
  color: var(--muted);
  font-size: .85rem;
  transition: color .2s ease;
}
.foot-links a:hover { color: var(--text); }
.foot-meta {
  color: var(--muted-2);
  font-size: .78rem;
}
.foot-base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .05em;
}
.cookie-settings {
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  letter-spacing: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.cookie-settings:hover { color: var(--text); }

/* =========================================================
   Consent
   ========================================================= */

.consent {
  position: fixed;
  z-index: 240;
  bottom: 18px;
  left: 50%;
  width: min(900px, calc(100vw - 28px));
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(7, 9, 16, .95);
  box-shadow: 0 30px 90px -30px #000;
  opacity: 0;
  transform: translate(-50%, 14px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}
.consent[hidden] { display: none; }
.consent.is-open { opacity: 1; transform: translate(-50%, 0); }
.consent-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 22px 54px 22px 24px;
}
.consent-copy { min-width: 0; }
.consent .consent-kicker {
  margin-top: 0;
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgb(var(--teal));
}
.consent h2 {
  margin-top: 6px;
  font-size: 1.18rem;
  letter-spacing: -.02em;
}
.consent p {
  max-width: 68ch;
  margin-top: 8px;
  color: var(--muted);
  font-size: .82rem;
}
.consent .consent-status {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .04em;
  color: var(--text);
}
.consent .consent-fine {
  font-size: .73rem;
  color: var(--muted-2);
}
.consent-fine a {
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.consent-fine a:hover { color: var(--text); }
.consent-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.consent-actions .btn {
  min-width: 148px;
  min-height: 42px;
  padding: 10px 17px;
  font-size: .82rem;
}
.consent-close {
  position: absolute;
  top: 10px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted-2);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: color .2s ease, background .2s ease;
}
.consent-close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, .06);
}

.consent-live {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* =========================================================
   Motion
   ========================================================= */

.js [data-reveal] {
  opacity: 0;
  translate: 0 16px;
  transition:
    opacity .75s var(--ease) var(--d, 0s),
    translate .75s var(--ease) var(--d, 0s);
}
.js [data-reveal].is-visible {
  opacity: 1;
  translate: 0 0;
}

@keyframes pulse {
  0%, 100% { opacity: .55; }
  50% { opacity: 1; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes bead {
  0% { stroke-dashoffset: 0; opacity: .2; }
  45% { opacity: 1; }
  100% { stroke-dashoffset: -18; opacity: .2; }
}
@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -7px, 0); }
}
@keyframes scan {
  0% { top: 12%; opacity: 0; }
  8% { opacity: .7; }
  50% { top: 82%; opacity: .7; }
  92% { opacity: 0; }
  100% { top: 12%; opacity: 0; }
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-bottom: 52px;
  }
  .hero-visual {
    width: min(100%, 560px);
    margin-inline: auto;
  }
  .process-grid,
  .faq-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .section-head.split {
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: start;
  }
  .section-head.split .section-lede { padding-bottom: 0; }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .foot-brand { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  html { scroll-padding-top: 80px; }

  .site-header { padding: 12px 0; }
  .site-header.is-scrolled { padding: 9px 0; }

  .nav-toggle { display: grid; }

  .site-nav {
    position: fixed;
    top: 68px;
    left: 16px;
    right: 16px;
    z-index: 210;
    display: grid;
    gap: 2px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(7, 11, 18, .98);
    box-shadow: 0 30px 80px -30px #000;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .site-nav a {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: .9rem;
  }
  .site-nav a:hover { background: rgba(255, 255, 255, .04); }
  .site-nav .nav-cta {
    margin-top: 4px;
    text-align: center;
    border-color: rgba(var(--teal), .35);
    background: rgba(var(--teal), .08);
  }

  .hero { padding-top: 118px; }
  .hero-grid { gap: 38px; }
  .hero h1 { font-size: clamp(3rem, 12vw, 5rem); }
  .hero-meta { grid-template-columns: 1fr 1fr; }
  .hero-meta div:last-child { grid-column: 1 / -1; }

  .card-grid { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .foot-base {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .visual-hud { font-size: .5rem; }
  .hud-a, .hud-b { left: 20px; }
  .hud-c, .hud-d { right: 20px; }
  .hud-a, .hud-c { top: 20px; }
  .hud-b, .hud-d { bottom: 20px; }

  /* No-JS / failed-JS fallback: keep the links reachable. */
  html:not(.js) .nav-toggle { display: none; }
  html:not(.js) .header-inner { flex-wrap: wrap; }
  html:not(.js) .site-nav {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    padding: 8px 0 0;
    border: 0;
    background: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  html:not(.js) .site-nav a { padding: 6px 8px; }
  html:not(.js) .site-nav .nav-cta { margin-top: 0; }
}

@media (max-width: 560px) {
  .wrap { width: calc(100% - 36px); }
  .brand-type span { letter-spacing: .15em; }

  .hero h1 { font-size: clamp(2.75rem, 13.5vw, 4rem); }
  .lede { font-size: .98rem; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-meta { grid-template-columns: 1fr; gap: 13px; }

  .section-head h2,
  .process-copy h2,
  .faq-copy h2,
  .contact-copy h2 { font-size: clamp(2.05rem, 10vw, 2.9rem); }

  .field-row { grid-template-columns: 1fr; }
  .contact-form { padding: 20px; border-radius: 18px; }
  .contact-direct p { grid-template-columns: 1fr; gap: 4px; }

  .consent { bottom: 10px; }
  .consent-inner {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px 44px 20px 18px;
  }
  .consent-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .consent-actions .btn {
    width: 100%;
    min-width: 0;
  }

  .foot-base { font-size: .56rem; }
}

@media (max-width: 380px) {
  .visual-hud.hud-c,
  .visual-hud.hud-d { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js [data-reveal] { opacity: 1; translate: none; }
  .scan { display: none; }
}
