/* Layout: light technical sheet with green-black "matrix" bands; 12-col feel via max-width wrap + auto-fit grids.
   Brand colours sampled from the Density Energy logo. Single committed look (no dark-mode inversion). */
:root {
  --leaf: #6CA532;      /* logo lime */
  --forest: #0F672D;    /* logo deep green */
  --moss: #3E8A3A;      /* logo mid green */
  --spark: #F08707;     /* logo orange bolt */
  --ink: #1C2620;       /* text, green-biased near-black */
  --ink-2: #4B5A50;     /* secondary text */
  --line: #DCE3DC;      /* hairlines */
  --paper: #FFFFFF;
  --mist: #F3F6F1;      /* tinted section */
  --night: #121B16;     /* dark band */
  --night-2: #1B2720;
  --night-line: #2C3A31;
  --on-night: #E8EFE9;
  --on-night-2: #9DB0A2;
  --bad: #D9483B;

  --f-display: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --f-body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --step-3: clamp(2rem, 1.4rem + 2.4vw, 3rem);
  --step-4: clamp(2.4rem, 1.5rem + 3.6vw, 4.1rem);

  --r: 14px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.1; margin: 0; text-wrap: balance; letter-spacing: -0.015em; }
p { margin: 0; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
:focus-visible { outline: 3px solid var(--spark); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.eyebrow {
  font: 600 0.78rem/1 var(--f-display);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--moss);
  margin-bottom: 0.9rem;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: 600 0.95rem/1 var(--f-display);
  padding: 0.95rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--sm { padding: .65rem 1rem; font-size: .85rem; }
.btn--solid { background: var(--forest); color: var(--paper); }
.btn--solid:hover { background: var(--moss); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--light { background: var(--paper); color: var(--forest); }

/* NAV */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__in { display: flex; align-items: center; gap: 1.5rem; min-height: 104px; transition: min-height .25s; }
.brand { display: flex; align-items: center; gap: 1rem; text-decoration: none; flex-shrink: 0; }
.brand img { width: auto; height: 88px; transition: height .25s; }
.brand__txt { font: 800 1.55rem/1 var(--f-display); letter-spacing: .06em; color: var(--forest); white-space: nowrap; transition: font-size .25s; }
.nav.is-compact .nav__in { min-height: 72px; }
.nav.is-compact .brand img { height: 56px; }
.nav.is-compact .brand__txt { font-size: 1.3rem; }
.nav__links { display: flex; gap: 1.6rem; margin-left: auto; }
.nav__links a { text-decoration: none; font: 500 .92rem/1 var(--f-display); color: var(--ink); padding-block: .4rem; border-bottom: 2px solid transparent; }
.nav__links a:hover, .nav__links a.is-active { border-color: var(--leaf); }
.nav__right { display: flex; align-items: center; gap: .8rem; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang button {
  font: 600 .75rem/1 var(--f-mono); border: 0; background: transparent; color: var(--ink-2);
  padding: .45rem .6rem; border-radius: 999px; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.burger { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.burger span { display: block; width: 18px; height: 2px; background: var(--ink); transition: transform .2s; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav__links {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; background: var(--paper);
    border-bottom: 1px solid var(--line); padding: .5rem var(--gutter) 1rem;
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding-block: .9rem; border-bottom: 1px solid var(--line); }
  .burger { display: inline-flex; }
  .nav__right { margin-left: auto; }
}
@media (max-width: 1180px) and (min-width: 961px) { .nav__links { gap: 1.1rem; } .nav__cta { display: none; } }
@media (max-width: 560px) {
  .nav__cta { display: none; }
  .nav__in { min-height: 80px; gap: .8rem; }
  .brand { gap: .6rem; }
  .brand img { height: 64px; }
  .brand__txt { font-size: 1.05rem; letter-spacing: .04em; }
  .nav.is-compact .brand img { height: 48px; }
  .nav.is-compact .brand__txt { font-size: 1rem; }
}
@media (max-width: 380px) { .brand__txt { font-size: .92rem; } .lang button { padding: .4rem .45rem; } }

/* HERO */
.hero {
  padding-block: clamp(2.5rem, 6vw, 5.5rem) 2.5rem;
  background:
    radial-gradient(60% 70% at 85% 30%, rgba(108,165,50,.14), transparent 70%),
    linear-gradient(180deg, var(--paper), var(--mist));
  border-bottom: 1px solid var(--line);
}
.hero__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero__copy { min-width: 0; }
.hero h1 { font-size: var(--step-4); font-weight: 800; color: var(--ink); }
.hero .lead { font-size: var(--step-1); color: var(--ink-2); margin-top: 1.4rem; max-width: 34em; line-height: 1.55; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero__logo { display: grid; place-items: center; min-width: 0; }
.hero__logo img { width: auto; height: clamp(260px, 34vw, 420px); filter: drop-shadow(0 24px 40px rgba(15,103,45,.18)); }

/* Product lines strip (hero) */
.lines { list-style: none; padding: 0; margin: clamp(2.5rem, 5vw, 3.5rem) 0 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.lines li { min-width: 0; }
.lines li + li { border-left: 1px solid var(--line); }
.lines button {
  width: 100%; height: 100%; text-align: left; background: transparent; border: 0; cursor: pointer;
  padding: 1.3rem 1.2rem 0.4rem; display: flex; flex-direction: column; gap: .35rem; font: inherit; color: inherit;
}
.lines li:first-child button { padding-left: 0; }
.lines b { font: 700 1.15rem/1.2 var(--f-display); color: var(--forest); }
.lines b::after { content: " →"; color: var(--spark); opacity: 0; transition: opacity .2s; }
.lines button:hover b::after { opacity: 1; }
.lines span { font-size: .92rem; color: var(--ink-2); }
@media (max-width: 900px) {
  .lines { grid-template-columns: 1fr 1fr; }
  .lines li:nth-child(3) { border-left: 0; }
  .lines li:nth-child(3) button { padding-left: 0; }
}

/* About */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.pillars article { border-top: 3px solid var(--leaf); padding-top: 1.2rem; min-width: 0; }
.pillars h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: .55rem; }
.pillars p { color: var(--ink-2); }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pillars { grid-template-columns: 1fr; } }

.tech__intro { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.tech__intro .sec__head { margin-bottom: 0; }
@media (max-width: 900px) { .tech__intro { grid-template-columns: 1fr; } }

/* Energy-density cells (signature visual) */
.cells {
  margin: 0; background: var(--night); color: var(--on-night);
  border-radius: 22px; padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: 0 30px 60px -30px rgba(15,103,45,.45);
  min-width: 0;
}
.cells__head { display: flex; justify-content: space-between; font: 600 .78rem/1 var(--f-display); letter-spacing: .12em; text-transform: uppercase; color: var(--on-night-2); }
.cells__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.75rem, 2.5vw, 1.5rem); margin-top: 1.5rem; align-items: end; }
.cell { display: flex; flex-direction: column; align-items: center; gap: .55rem; min-width: 0; }
.cell__cap { width: 34%; height: 10px; border-radius: 4px 4px 0 0; background: #5d6a62; }
.cell__body {
  position: relative; width: 100%; height: clamp(170px, 24vw, 250px);
  border: 2px solid #4a5a50; border-radius: 12px; overflow: hidden;
  background: repeating-linear-gradient(0deg, transparent 0 19px, rgba(255,255,255,.04) 19px 20px), var(--night-2);
}
.cell__fill {
  position: absolute; inset: auto 0 0 0;
  height: calc(var(--v) / 340 * 100%);
  background: linear-gradient(180deg, var(--c1), var(--c2));
  box-shadow: 0 -6px 24px var(--glow);
  animation: fill 1.6s cubic-bezier(.2,.8,.2,1) both;
  animation-delay: var(--d, 0s);
}
.cell__fill::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: rgba(255,255,255,.7); }
.cell--li { --c1: #f6a540; --c2: #b75c06; --glow: rgba(240,135,7,.45); --d: .1s; }
.cell--sc { --c1: #8fd05a; --c2: #3e8a3a; --glow: rgba(108,165,50,.5); --d: .3s; }
.cell--ss { --c1: #2fa356; --c2: #0b4d22; --glow: rgba(47,163,86,.55); --d: .5s; }
.cell__num { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 500; color: var(--paper); line-height: 1; }
.cell__lbl { font: 500 .78rem/1.2 var(--f-body); color: var(--on-night-2); text-align: center; }
.cells figcaption { margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid var(--night-line); font-size: .9rem; color: var(--on-night-2); }
@keyframes fill { from { height: 0; } }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__logo { display: none; }
}

/* SECTIONS */
.sec { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.sec--tint { background: var(--mist); }
.sec--dark { background: var(--night); color: var(--on-night); }
.sec--dark .eyebrow { color: var(--leaf); }
.sec__head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.sec__head h2 { font-size: var(--step-3); font-weight: 700; }
.sec__lead { margin-top: 1rem; font-size: 1.08rem; color: var(--ink-2); max-width: 38em; }

/* Tech */
.tech { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.tech__card { position: relative; border: 1px solid var(--line); border-radius: var(--r); padding: 1.75rem; display: flex; flex-direction: column; gap: 1rem; min-width: 0; background: var(--paper); }
.tech__card h3 { font-size: var(--step-2); font-weight: 700; }
.tech__card > p { color: var(--ink-2); }
.tech__tag { position: absolute; top: 1.5rem; right: 1.5rem; font-size: .75rem; padding: .3rem .55rem; border-radius: 6px; background: var(--mist); color: var(--forest); }
.tech__card--ss { border-top: 4px solid var(--forest); }
.tech__card--sc { border-top: 4px solid var(--leaf); }
.tech__card--safe { background: var(--mist); border-color: transparent; }
.tech__use { margin-top: auto; font-size: .88rem; font-weight: 600; color: var(--moss); }
.specs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.specs li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.specs li span { color: var(--ink-2); }
.specs li b { font-weight: 500; text-align: right; }
.risk { margin-top: auto; padding-top: 1rem; }
.risk__bar { height: 12px; border-radius: 99px; background: linear-gradient(90deg, #d9483b, #f08707 25%, #e7d21c 42%, #3e8a3a 62%, #0f672d 80%, #1e8fc9); }
.risk__pts { position: relative; height: 2.4rem; margin-top: .4rem; font: 600 .75rem/1.2 var(--f-display); }
.risk__pts span { position: absolute; left: var(--x); transform: translateX(-50%); white-space: nowrap; padding-top: .7rem; }
.risk__pts span::before { content: ""; position: absolute; top: 0; left: 50%; width: 2px; height: .5rem; background: var(--ink); }
.risk__pts span:first-child { transform: none; }
.risk__pts span:first-child::before { left: 0; }
.risk__pts span:last-child { transform: translateX(-100%); }
.risk__pts span:last-child::before { left: auto; right: 0; }
@media (max-width: 980px) { .tech { grid-template-columns: 1fr 1fr; } .tech__card--safe { grid-column: 1 / -1; } }
@media (max-width: 640px) { .tech { grid-template-columns: 1fr; } }

/* Matrix */
.mx { overflow-x: auto; border: 1px solid var(--night-line); border-radius: var(--r); }
.mx table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 1rem; }
.mx th, .mx td { padding: 1.05rem 1.25rem; text-align: left; border-bottom: 1px solid var(--night-line); }
.mx tbody tr:last-child > * { border-bottom: 0; }
.mx thead th { font: 600 1rem/1.2 var(--f-display); color: var(--leaf); background: var(--night-2); }
.mx thead th:nth-child(2) { color: var(--on-night-2); }
.mx thead th:last-child { color: #4fc271; }
.mx tbody th { font-weight: 500; color: var(--on-night); }
.mx td { font-family: var(--f-mono); font-variant-numeric: tabular-nums; color: var(--on-night); white-space: nowrap; }
.mx td i { display: inline-block; vertical-align: middle; width: 54px; height: 6px; border-radius: 9px; margin-right: .8rem; background: linear-gradient(90deg, var(--leaf) calc(var(--p) * 1%), var(--night-line) 0); }
.mx td:nth-child(2) i { background: linear-gradient(90deg, #8a968e calc(var(--p) * 1%), var(--night-line) 0); }
.mx td.bad { color: #ff7b6e; }
.mx td.good { color: #7fd67f; }

/* Product filters + grid */
.filters { display: flex; flex-direction: column; gap: .8rem; margin-bottom: 1.25rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips button {
  font: 600 .88rem/1 var(--f-display); padding: .7rem 1.05rem; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer;
}
.chips button:hover { border-color: var(--leaf); }
.chips button[aria-pressed="true"] { background: var(--forest); border-color: var(--forest); color: var(--paper); }
.chips--seg button { font-weight: 500; font-size: .82rem; padding: .55rem .9rem; }
.chips--seg button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); }
.count { font-size: .8rem; color: var(--ink-2); margin-bottom: 1rem; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.card {
  display: flex; flex-direction: column; text-align: left;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--paper);
  overflow: hidden; cursor: pointer; padding: 0; font: inherit; color: inherit;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.card:hover { border-color: var(--leaf); box-shadow: 0 18px 40px -24px rgba(15,103,45,.45); transform: translateY(-2px); }
.card__art { aspect-ratio: 4 / 3; max-width: 100%; background: radial-gradient(80% 80% at 50% 60%, #ffffff, var(--mist)); display: grid; place-items: center; border-bottom: 1px solid var(--line); position: relative; }
.card__art svg, .card__art img { width: 78%; height: 78%; object-fit: contain; }
.card__seg { position: absolute; top: .8rem; left: .8rem; font: 600 .68rem/1 var(--f-display); letter-spacing: .1em; text-transform: uppercase; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: .35rem .6rem; color: var(--ink-2); }
.card__body { padding: 1.1rem 1.2rem 1.25rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.card__brand { font: 700 .72rem/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: var(--moss); }
.card__brand[data-c="density"] { color: var(--spark); }
.card__name { font: 700 1.12rem/1.25 var(--f-display); }
.card__desc { font-size: .9rem; color: var(--ink-2); }
.card__kv { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: auto; padding-top: .8rem; }
.card__kv span { font: 500 .75rem/1 var(--f-mono); background: var(--mist); border-radius: 6px; padding: .4rem .5rem; color: var(--ink); }

/* Applications */
.apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.apps article { padding: 1.75rem 1.75rem 1.9rem 0; border-bottom: 1px solid var(--line); min-width: 0; }
.apps article:not(:nth-child(3n+1)) { padding-left: 1.75rem; border-left: 1px solid var(--line); }
.apps h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: .6rem; color: var(--forest); }
.apps p { color: var(--ink-2); font-size: .95rem; }
@media (max-width: 900px) {
  .apps { grid-template-columns: 1fr 1fr; }
  .apps article:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .apps article:nth-child(even) { padding-left: 1.5rem; border-left: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .apps { grid-template-columns: 1fr; }
  .apps article:nth-child(even) { padding-left: 0; border-left: 0; }
}

/* Band */
.band { background: linear-gradient(120deg, var(--forest), #0b4d22 60%, var(--night)); color: var(--paper); padding-block: clamp(3rem, 7vw, 5rem); position: relative; overflow: hidden; }
.band::after { content: ""; position: absolute; right: -6%; top: 50%; width: 420px; height: 420px; transform: translateY(-50%); border: 2px solid rgba(240,135,7,.35); border-radius: 50%; pointer-events: none; }
.band__in { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 1.1rem; }
.band h2 { font-size: var(--step-4); font-weight: 800; }
.band p { max-width: 36em; font-size: 1.1rem; color: #d5e6d8; }

/* Contact */
.contact { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact__form, .contact__info { min-width: 0; }
.contact h2 { font-size: var(--step-3); font-weight: 700; }
form { margin-top: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label { display: flex; flex-direction: column; gap: .4rem; font: 600 .82rem/1.2 var(--f-display); color: var(--ink); min-width: 0; }
input, select, textarea {
  font: 400 1rem/1.4 var(--f-body); color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--line); border-radius: 10px; padding: .8rem .9rem; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--leaf); box-shadow: 0 0 0 3px rgba(108,165,50,.2); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--bad); }
label.check { flex-direction: row; align-items: center; gap: .6rem; font: 400 .9rem/1.3 var(--f-body); }
label.check input { width: 18px; height: 18px; accent-color: var(--forest); }
form .btn { align-self: flex-start; }
.form__msg { font-size: .92rem; color: var(--forest); min-height: 1.4em; }
.form__msg.is-err { color: var(--bad); }
@media (max-width: 600px) { .f2 { grid-template-columns: 1fr; } }

.hq { background: var(--night); color: var(--on-night); border-radius: 18px; padding: 2rem; display: flex; flex-direction: column; gap: 1.3rem; }
.hq .eyebrow { color: var(--leaf); margin: 0; }
.hq address { font-style: normal; font-size: .95rem; color: var(--on-night-2); line-height: 1.6; }
.hq address b { display: block; color: var(--paper); font: 700 1.1rem/1.4 var(--f-display); }
.hq address a { color: var(--on-night); text-decoration: none; }
.hq__mail a { color: var(--leaf); text-decoration: none; font-size: 1rem; }
.hq__hours { font-size: .85rem; color: var(--on-night-2); }
.map { color: var(--spark); font: 600 .9rem/1 var(--f-display); text-decoration: none; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }

/* Footer */
.foot { background: var(--night); color: var(--on-night-2); padding-block: 3.5rem 2.25rem; }
.foot__in { display: grid; grid-template-columns: 1fr 1.4fr; gap: 2rem; }
.foot__name { display: block; font: 800 clamp(1.8rem, 1.2rem + 2vw, 2.6rem)/1 var(--f-display); letter-spacing: .05em; color: var(--leaf); }
.foot__brand p { margin-top: 1rem; max-width: 28em; font-size: 1.05rem; color: var(--on-night); }
.foot__nav { display: flex; flex-wrap: wrap; gap: .8rem 1.6rem; align-content: flex-start; justify-content: flex-end; }
.foot__nav a { color: var(--on-night); text-decoration: none; font: 600 1.05rem/1 var(--f-display); }
.foot__nav a:hover { color: var(--leaf); }
.foot__legal { grid-column: 1 / -1; border-top: 1px solid var(--night-line); padding-top: 1.4rem; font-size: .9rem; }
@media (max-width: 760px) { .foot__in { grid-template-columns: 1fr; } .foot__nav { justify-content: flex-start; } }

/* Modal */
.modal { border: 0; padding: 0; border-radius: 20px; width: min(920px, calc(100% - 32px)); max-height: calc(100% - 32px); color: var(--ink); background: var(--paper); }
.modal::backdrop { background: rgba(18,27,22,.6); backdrop-filter: blur(3px); }
.modal__in { display: grid; grid-template-columns: 1fr 1.15fr; position: relative; }
.modal__art { background: radial-gradient(80% 80% at 50% 55%, #fff, var(--mist)); display: grid; place-items: center; padding: 2rem; min-height: 280px; }
.modal__art svg, .modal__art img { width: 100%; max-width: 360px; height: auto; }
.modal__body { padding: 2.2rem 2rem; display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.modal__body h3 { font-size: var(--step-2); font-weight: 800; }
.modal__body > p:not(.eyebrow) { color: var(--ink-2); }
.modal__body .eyebrow { margin: 0; }
.modal__specs { width: 100%; border-collapse: collapse; font-size: .9rem; }
.modal__specs th, .modal__specs td { text-align: left; padding: .55rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.modal__specs th { font-weight: 500; color: var(--ink-2); width: 45%; padding-right: 1rem; }
.modal__specs td { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.modal__body .btn { align-self: flex-start; margin-top: .4rem; }
.modal__x { position: absolute; top: .8rem; right: .8rem; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--ink); z-index: 2; }
@media (max-width: 760px) { .modal__in { grid-template-columns: 1fr; } .modal__art { min-height: 200px; padding: 1.5rem 3rem; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
