/* Strata landing page. Tokens, fonts and hatch tiles live in base.css.
   Frame: a network-tooling product page built around one object, a drill core. A slim bar
   holds the logo and the download; the section links are a depth gauge fixed at the right
   edge. The first screen is a centre spine: headline, the sample domain, then the core as a
   column of six hatched layers. Each layer opens a record card beside it, left and right in
   turn, and under the last one sits the bedrock card with the one number. Below: the six
   layers as log cards, the shared-bedrock card with its drawing, four promises, questions on
   a depth rail, and a closing card with a core lying on its side. Flat colour only; malachite
   is the layer being drilled and the bedrock finding. */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-size-adjust: 100%; color-scheme: dark; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.5 var(--sans); }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
i { font-style: normal; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: #fff; color: var(--bg); font-weight: 600; }
.skip:focus { left: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.defs { position: absolute; }
:root { --gutter: max(20px, calc((100vw - 1120px) / 2)); }

/* ---------- small pieces ---------- */

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 50px; padding: 0 22px; border: 0; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font: 600 16px/1 var(--sans); white-space: nowrap; cursor: pointer; transition: background-color .15s ease-out, transform .15s ease-out; }
.btn:hover { background: #74E286; }
.btn:active { transform: scale(.98); }
.btn:focus-visible { outline-color: var(--text); }
.btn svg { flex: none; width: 18px; height: 18px; }
.btn--sm { height: 40px; padding: 0 16px; font-size: 15px; }
.btn--quiet { height: 40px; border: 1px solid var(--line); background: none; color: var(--text); font-size: 15px; font-weight: 500; }
.btn--quiet:hover { background: var(--panel-2); }
.btn--quiet svg { width: 16px; height: 16px; }
.card { border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.tag { display: inline-block; padding: 0 7px; border-radius: 5px; background: var(--panel-2); font: 500 12px/20px var(--mono); color: var(--text-2); }
.note { font-size: 14px; color: var(--text-3); }

/* A hatch: a flat shade with a flat-colour pattern on it, like one unit in a geological log. */
.hatch { position: relative; display: block; background: var(--shade); overflow: hidden; }
.hatch::before { content: ''; position: absolute; inset: 0; background: var(--ink); -webkit-mask: var(--tile) center top repeat; mask: var(--tile) center top repeat; transition: background-color .25s ease-out; }
.h-dots  { --tile: var(--h-dots);  --shade: var(--s1); }
.h-dash  { --tile: var(--h-dash);  --shade: var(--s2); }
.h-brick { --tile: var(--h-brick); --shade: var(--s3); }
.h-diag  { --tile: var(--h-diag);  --shade: var(--s4); }
.h-ring  { --tile: var(--h-ring);  --shade: var(--s5); }
.h-wave  { --tile: var(--h-wave);  --shade: var(--s6); }
.h-cross { --tile: var(--h-cross); --shade: var(--drill); --ink: var(--accent); }

/* ---------- the bar ---------- */

.bar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; height: 56px; padding: 0 20px; border-bottom: 1px solid transparent; background: var(--bg); transition: border-color .2s ease-out; }
.bar.is-stuck { border-bottom-color: var(--line); }
.logo { display: inline-flex; align-items: center; gap: 9px; min-height: 40px; font-size: 18px; font-weight: 600; letter-spacing: -.015em; }
.logo img { border-radius: 7px; }

/* ---------- the depth gauge: section links as marks on a rail ---------- */

.gauge { position: fixed; right: 0; top: 50%; z-index: 40; display: grid; translate: 0 -50%; }
.gauge::before { content: ''; position: absolute; right: 0; top: -22px; bottom: -22px; width: 7px; background: repeating-linear-gradient(to bottom, var(--rule) 0 1px, transparent 1px 11px); }
.gauge a { position: relative; display: flex; align-items: center; justify-content: flex-end; gap: 10px; height: 44px; min-width: 44px; padding-left: 14px; font-size: 13px; font-weight: 500; color: var(--text-3); transition: color .15s ease-out; }
.gauge a::after { content: ''; flex: none; width: 16px; height: 2px; background: #5A6777; transition: width .2s ease-out, background-color .2s ease-out; }
.gauge a:hover, .gauge a.is-on { color: var(--text); }
.gauge a:hover::after { background: var(--text); }
.gauge a.is-on::after { width: 30px; background: var(--accent); }
.gauge a:focus-visible { outline-offset: -3px; }

/* ---------- first screen: the centre spine ---------- */

.hero { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; padding: 14px var(--gutter) 0; text-align: center; }
h1 { font-size: clamp(32px, 3.2vw, 44px); line-height: 1.06; letter-spacing: -.035em; font-weight: 600; text-wrap: balance; }
.lede { max-width: 33em; margin-top: 8px; font-size: 17px; line-height: 1.45; color: var(--text-2); text-wrap: balance; }
.demo { width: 100%; max-width: 1040px; margin-top: 16px; text-align: left; }

.field { display: flex; align-items: center; gap: 10px; width: min(100%, 500px); height: 46px; margin: 0 auto; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.field svg { flex: none; width: 18px; height: 18px; color: var(--text-2); }
.field__domain { font: 500 16px/1 var(--mono); }
.field__status, .field__short { margin-left: auto; font-size: 13px; color: var(--text-2); white-space: nowrap; }
.field__short { display: none; }   /* the same status in one or two words, for narrow screens */
.stem { display: block; width: 2px; height: 16px; margin: 0 auto; background: var(--rule); }

/* The core: a column of six layers and the bedrock tip. Cards sit in the side columns and
   span two rows, so neighbours on the same side never touch. */
.core { --lh: 70px; --w: 128px; --gap: 40px; --curve: 10px; position: relative; display: grid; grid-template-columns: minmax(0, 1fr) var(--w) minmax(0, 1fr); grid-template-rows: repeat(6, var(--lh)) 68px; }
.layer { display: contents; }
.core__cap { grid-column: 2; grid-row: 1; align-self: start; z-index: 12; height: calc(var(--curve) * 2); margin-top: calc(var(--curve) * -1); border: 1px solid #4A5767; border-radius: 50%; background: #27313E; }
.seg { position: relative; grid-column: 2; grid-row: var(--n); z-index: calc(10 - var(--n)); }
/* Each layer ends in a curve that lies over the next one: stacked discs, drawn flat. */
.seg i { position: absolute; inset: 0 0 calc(var(--curve) * -1); border-radius: 0 0 50% 50% / 0 0 var(--curve) var(--curve); box-shadow: inset 0 -1px 0 #3A4553; transition: background-color .25s ease-out, box-shadow .25s ease-out; }
.seg i::after, .lcard__core::after { content: ''; position: absolute; inset: 0 0 0 auto; width: 20%; background: rgba(4, 7, 10, .3); }
.seg--bed i { inset: 0; border-radius: 0; box-shadow: none; }

.rec { position: relative; z-index: 20; grid-row: var(--n) / span 2; align-self: start; width: calc(100% - var(--gap)); max-width: 414px; margin-top: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); transition: border-color .25s ease-out, background-color .25s ease-out; }
.layer--l .rec { grid-column: 1; justify-self: end; margin-right: var(--gap); }
.layer--r .rec { grid-column: 3; justify-self: start; margin-left: var(--gap); }
/* The connector: a short line from the card to the middle of its layer, pinned with a dot. */
.rec::before { content: ''; position: absolute; top: 18px; width: var(--gap); height: 1px; background: var(--rule); transition: background-color .25s ease-out; }
.rec::after { content: ''; position: absolute; top: 15px; width: 7px; height: 7px; border-radius: 50%; background: #6B7889; transition: background-color .25s ease-out; }
.layer--l .rec::before { left: 100%; }
.layer--l .rec::after { left: calc(100% + var(--gap) - 2px); }
.layer--r .rec::before { right: 100%; }
.layer--r .rec::after { right: calc(100% + var(--gap) - 2px); }

.rec__head { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 10px 0 14px; }
.rec__head b { font-size: 15px; font-weight: 600; letter-spacing: -.01em; transition: color .25s ease-out; }
.rec__head .tag { margin-left: auto; }
.rec__body { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .38s cubic-bezier(.2, .8, .2, 1); }
.rec__clip { min-height: 0; overflow: hidden; }
.rows { padding: 0 14px 12px; }
.rows > div { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 10px; transition: opacity .3s ease-out; }
.rows dt { font-size: 13px; line-height: 19px; color: var(--text-3); white-space: nowrap; }
.rows dd { font: 400 13px/19px var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Before the drill arrives a layer is faint and its card is only a name. */
.js .layer:not(.is-open, .is-drilling) .seg i::before { background: var(--ink-dim); }
.js .layer:not(.is-open) .rec { border-style: dashed; background: none; }
.js .layer:not(.is-open) .rec__head b { color: var(--text-3); }
.js .layer:not(.is-open) .rec .tag { visibility: hidden; }
.js .layer:not(.is-open) .rec__body { grid-template-rows: 0fr; }
.js .layer:not(.is-open) .rows > div { opacity: 0; }
.layer.is-open .rows > div:nth-child(2) { transition-delay: .06s; }
.layer.is-open .rows > div:nth-child(3) { transition-delay: .12s; }
.layer.is-open .rows > div:nth-child(4) { transition-delay: .18s; }
/* Pointing at a layer or its card picks the pair out. */
.layer.is-open:hover .seg i::before { background: #6B7889; }
.layer.is-open:hover .rec { border-color: rgba(255, 255, 255, .22); }
.layer.is-open:hover .rec::before { background: #6B7889; }
.layer.is-open:hover .rec::after { background: var(--text); }
/* The layer the drill is in: the only green on the core. */
.layer.is-drilling .seg i, .demo.is-bed .seg--bed i { background: var(--drill); box-shadow: inset 0 0 0 2px var(--accent); }
.layer.is-drilling .seg i::before { background: var(--accent); }
.layer.is-drilling .rec { border-color: var(--accent-line); border-style: solid; }
.layer.is-drilling .rec__head b { color: var(--text); }
.layer.is-drilling .rec::before, .layer.is-drilling .rec::after { background: var(--accent); }
.js .demo:not(.is-bed, .is-done) .seg--bed i { --shade: var(--bg); --ink: var(--ink-dim); box-shadow: inset 0 0 0 1px #2A3441; }

/* The bedrock: the wide layer everything stands on, and the one number. */
.bed { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px 36px; align-items: center; padding: 28px 16px 14px 24px; border: 1px solid var(--accent-line); border-radius: 10px; background: var(--panel); overflow: hidden; transition: border-color .3s ease-out; }
.bed__band { position: absolute; inset: 0 0 auto; height: 13px; box-shadow: inset 0 -1px 0 var(--accent-line); }
.bed__n { display: flex; align-items: center; gap: 16px; }
.bed__n b { min-width: 1.18em; transition: color .3s ease-out; font-size: 76px; line-height: .9; font-weight: 600; letter-spacing: -.04em; font-variant-numeric: tabular-nums; text-align: right; color: var(--accent); }
.bed__n span { font-size: 17px; line-height: 1.3; font-weight: 500; }
.bed__n .tag { margin-top: 7px; }
.tag--wait { display: none; }
.bed__groups { display: grid; gap: 3px; }
.bed__groups li { display: grid; grid-template-columns: 22px 122px 112px minmax(0, 1fr); gap: 10px; align-items: center; height: 22px; font-size: 14px; color: var(--text-2); }
.bed__groups b { font: 600 14px/1 var(--mono); text-align: right; color: var(--text); }
.bed__groups code { font: 400 13px/1 var(--mono); color: var(--text-3); white-space: nowrap; }
/* The names, struck out: flat bars where the domains would be. */
.bars { display: flex; gap: 5px; }
.bars i { height: 8px; border-radius: 4px; background: #2A3542; }
.bed__lock { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding-left: 32px; font-size: 14px; font-weight: 500; }
.bed__lock svg { flex: none; width: 14px; height: 14px; color: var(--accent); }
.bed__go { display: grid; gap: 8px; }
.bed__go .btn { padding: 0 20px; }

.js .demo:not(.is-done) .bed { border-style: dashed; border-color: #2A3441; }
.js .demo.is-bed .bed { border-color: var(--accent-line); }
.js .demo:not(.is-done) .bed__band { --shade: var(--bg); --ink: var(--ink-dim); box-shadow: none; }
/* Until the drill gets there the number is a question mark. */
.js .demo:not(.is-done) .bed__n b, .js .demo:not(.is-done) .bed__n span { color: var(--text-3); }
.js .demo:not(.is-done) .bed__n b { text-align: center; }
.js .demo:not(.is-done) .tag--sample { display: none; }
.js .demo:not(.is-done) .tag--wait { display: inline-block; background: none; padding: 0; color: var(--text-3); }
.js .demo:not(.is-done) .bed__list { visibility: hidden; }
.js .demo:not(.is-done, .has-run) .bed__go { visibility: hidden; }
.demo.is-done .bed__list { animation: rise .45s cubic-bezier(.2, .8, .2, 1) backwards; }
.demo.is-done:not(.was-run) .bed__go { animation: rise .45s .24s cubic-bezier(.2, .8, .2, 1) backwards; }
@keyframes rise { from { opacity: 0; translate: 0 8px; } }

/* ---------- sections ---------- */

h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.08; letter-spacing: -.03em; font-weight: 600; text-wrap: balance; }
/* A section link lands with the heading just under the bar, not with the section's top padding. */
.layers, .shared, .limits, .faq, .final { padding: 120px var(--gutter) 0; scroll-margin-top: -100px; }
.head { max-width: 660px; }
.head p { margin-top: 12px; font-size: 18px; line-height: 1.45; color: var(--text-2); text-wrap: pretty; }

/* What each layer answers: six log cards, each with its hatch down the left edge. */
.log { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 36px; }
.lcard { display: grid; grid-template-columns: 64px minmax(0, 1fr); border: 1px solid var(--line); border-radius: 10px; background: var(--panel); overflow: hidden; }
.lcard__core { box-shadow: inset -1px 0 0 #3A4553; }
.lcard__body { padding: 18px 22px 20px; }
.lcard h3 { display: flex; align-items: center; gap: 9px; font-size: 15px; line-height: 1.3; font-weight: 500; color: var(--text-2); }
.lcard h3 span { padding: 0 6px; border-radius: 5px; background: var(--panel-2); font: 500 12px/20px var(--mono); }
.lcard .q { margin-top: 8px; font-size: 21px; line-height: 1.2; font-weight: 600; letter-spacing: -.02em; }
.lcard .a { margin-top: 8px; font-size: 15.5px; line-height: 1.45; color: var(--text-2); text-wrap: pretty; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.chips code { padding: 0 8px; border-radius: 6px; background: var(--panel-2); font: 500 12px/24px var(--mono); color: var(--text-2); }

/* Same bedrock: text on the left, five cores on one layer on the right. */
.shared__card { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 28px 56px; align-items: center; padding: 44px; }
.shared__text > p { margin-top: 14px; font-size: 18px; line-height: 1.45; color: var(--text-2); text-wrap: pretty; }
.ties { display: grid; gap: 8px; margin-top: 26px; }
.ties li { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 1px 14px; align-items: center; padding: 12px 14px; border-radius: 10px; background: var(--panel-2); }
.ties .sw { grid-row: span 2; width: 38px; height: 38px; border-radius: 8px; --shade: var(--bg); }
.ties b { font-size: 16px; line-height: 1.3; font-weight: 600; }
.ties span { font-size: 14.5px; line-height: 1.35; color: var(--text-2); }
.shared__fig { display: grid; gap: 14px; justify-items: center; }
.fence-wrap { width: 100%; }
.fence, .lying { display: block; width: 100%; height: auto; }
.defs path, .defs circle { fill: none; stroke: #4D5B6C; stroke-width: 1.2; }
.defs #p-dots circle { fill: #4D5B6C; stroke: none; }
.defs #p-cross path { stroke: var(--accent); stroke-width: 1.3; }
.edge { fill: none; stroke: #3A4553; }
.dark { fill: rgba(4, 7, 10, .3); }
.cap { fill: #27313E; stroke: #4A5767; }
.bore--main .cap, .rim { fill: none; stroke: var(--text); stroke-width: 1.5; }
.bore--main .cap { fill: #27313E; }
.surface { fill: none; stroke: var(--rule); stroke-dasharray: 3 5; }
.fence .name { font: 500 15px var(--mono); fill: var(--text); }
.hidden { fill: #2A3542; }
.slab { fill: var(--drill); stroke: var(--accent-line); }
.plate { fill: var(--bg); stroke: var(--accent-line); }
.fence .found { font: 500 15px var(--mono); fill: var(--accent); }

/* What it does not do: four promises, each with the thing struck out. */
.nots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 36px; }
.nots li { padding: 20px 20px 24px; }
.not s { display: inline-block; padding: 0 9px; border: 1px dashed #445161; border-radius: 6px; font: 500 13px/24px var(--mono); color: var(--text-3); text-decoration: line-through; }
.nots h3 { margin-top: 18px; font-size: 20px; line-height: 1.2; font-weight: 600; letter-spacing: -.02em; }
.nots h3 + p { margin-top: 8px; font-size: 15.5px; line-height: 1.45; color: var(--text-2); text-wrap: pretty; }

/* Questions: numbered depth marks on a rail, answers as cards. */
.faq__list { position: relative; display: grid; gap: 12px; margin-top: 36px; }
.faq__list::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 7px; background: repeating-linear-gradient(to bottom, var(--rule) 0 1px, transparent 1px 11px); }
.qa { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 10px 32px; align-items: start; }
.qa h3 { display: grid; grid-template-columns: 78px minmax(0, 1fr); align-items: baseline; padding-top: 19px; font-size: 20px; line-height: 1.25; font-weight: 600; letter-spacing: -.02em; }
.qa__n { display: inline-flex; align-items: center; gap: 10px; font: 500 13px/1 var(--mono); letter-spacing: 0; color: var(--text-2); }
.qa__n::before { content: ''; width: 24px; height: 2px; background: #6B7889; }
.qa__a { padding: 18px 22px 20px; font-size: 16px; line-height: 1.5; color: var(--text-2); text-wrap: pretty; }

/* Closing: the download next to a short core on its side. */
.final__card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 56px; align-items: center; padding: 48px; }
.final h2 { font-size: clamp(32px, 3.6vw, 48px); letter-spacing: -.035em; }
.final__req { margin-top: 12px; color: var(--text-2); text-wrap: balance; }
.final .btn { margin-top: 26px; }
.tray { fill: var(--bg); stroke: #232C38; }
.ticks { fill: none; stroke: var(--rule); }

/* ---------- footer ---------- */

.foot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1.5fr); gap: 20px 48px; align-items: start; padding: 56px var(--gutter) 64px; font-size: 14px; color: var(--text-3); }
.foot .logo { justify-self: start; color: var(--text); }
.foot p { max-width: 46ch; text-wrap: pretty; }
.foot b { display: block; margin-bottom: 4px; font-weight: 600; color: var(--text-2); }

.js [data-reveal] { opacity: 0; translate: 0 18px; transition: opacity .6s ease-out, translate .7s cubic-bezier(.2, .7, .2, 1); }
.js [data-reveal].is-in { opacity: 1; translate: 0 0; }

/* ---------- smaller screens ---------- */

/* The gauge keeps only its ticks when the margin is too narrow for labels; a label shows on hover. */
@media (max-width: 1399px) {
  .gauge a { padding-left: 0; }
  .gauge span { position: absolute; right: 44px; padding: 0 9px; border-radius: 6px; background: var(--panel-2); font-size: 13px; line-height: 28px; color: var(--text); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s ease-out; }
  .gauge a:hover span, .gauge a:focus-visible span { opacity: 1; }
}
@media (max-width: 1215px) {
  .gauge { display: none; }
}
@media (max-width: 1080px) {
  .core { --gap: 28px; }
  .bed { grid-template-columns: auto minmax(0, 1fr); }
  .bed__go { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
  .bed__go .btn { height: 50px; }
  .nots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shared__card { gap: 28px 36px; padding: 32px; }
}
@media (max-width: 900px) {
  /* One column: the core runs down the left edge and every card sits to its right. */
  .core { --w: 40px; --gap: 14px; --curve: 4px; grid-template-columns: var(--w) minmax(0, 1fr); grid-template-rows: none; }
  .core__cap, .seg { grid-column: 1; }
  .seg--bed { height: 26px; }
  .stem { position: relative; width: 40px; margin: 0; background: none; }
  .stem::before { content: ''; position: absolute; left: 19px; top: 0; bottom: 0; width: 2px; background: var(--rule); }
  .field { width: 100%; }
  .layer--l .rec, .layer--r .rec { grid-column: 2; grid-row: var(--n); justify-self: stretch; max-width: none; margin: 0 0 10px var(--gap); width: auto; }
  .layer--l .rec::before, .layer--r .rec::before { left: auto; right: 100%; }
  .layer--l .rec::after, .layer--r .rec::after { left: auto; right: calc(100% + var(--gap) - 2px); }
  .js .layer:not(.is-open) .rec__body { grid-template-rows: 1fr; }
  .rows dd { white-space: normal; overflow-wrap: anywhere; }
  .log { grid-template-columns: minmax(0, 1fr); }
  .shared__card, .final__card { grid-template-columns: minmax(0, 1fr); }
  .final__card .lying { order: -1; }
  .qa { grid-template-columns: minmax(0, 1fr); }
  .qa h3 { padding-top: 12px; }
  .qa__a { margin-left: 24px; }
  .layers, .shared, .limits, .faq, .final { padding-top: 88px; scroll-margin-top: -68px; }
}
@media (max-width: 640px) {
  .bar { padding: 0 14px; }
  .hero { padding-top: 22px; }
  .lede { font-size: 16px; }
  .field { gap: 8px; padding: 0 12px; }
  .field__domain { font-size: 15px; }
  .field__status { display: none; }
  .field__short { display: block; }
  .rows > div { grid-template-columns: 70px minmax(0, 1fr); gap: 8px; }
  .bed { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 30px 16px 16px; }
  .bed__n b { font-size: 68px; }
  .bed__groups li { grid-template-columns: 22px 116px minmax(0, 1fr); }
  .bed__groups .bars { display: none; }
  .bed__go { grid-column: auto; grid-template-columns: minmax(0, 1fr); }
  .lcard { grid-template-columns: 36px minmax(0, 1fr); }
  .lcard__body { padding: 16px 16px 18px; }
  .lcard .q { font-size: 19px; }
  .shared__card { padding: 22px 18px; }
  /* On a phone the drawing is cropped to three cores so its labels stay readable. */
  .fence-wrap { overflow: hidden; }
  .fence { width: 150%; margin-left: -25%; }
  .bore--far, .hidden--far { display: none; }
  .shared__text > p, .head p { font-size: 17px; }
  .nots { grid-template-columns: minmax(0, 1fr); }
  .qa h3 { grid-template-columns: 70px minmax(0, 1fr); font-size: 19px; }
  .final__card { padding: 22px 18px 28px; }
  .final .btn { width: 100%; }
  .foot { grid-template-columns: minmax(0, 1fr); padding-top: 40px; padding-bottom: 48px; }
}
@media (max-width: 359px) {
  .field svg { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; translate: 0 0; transition: none; }
  .hatch::before, .seg i, .rec, .rec::before, .rec::after, .rec__head b, .rec__body, .rows > div, .bed, .bed__n b, .gauge a, .gauge a::after { transition: none; }
  .demo.is-done .bed__list, .demo.is-done:not(.was-run) .bed__go { animation: none; }
}

/* ---------- every screen size (added 2026-11-13) ---------- */
@media (min-width: 1600px) { :root { --gutter: max(20px, calc((100vw - min(1120px + (100vw - 1600px) * 0.9147, 1624px)) / 2)); } }
@media (min-width: 1600px) {
  h1 { font-size: clamp(44px, 17.6px + 1.65vw, 55px); }
  h2 { font-size: clamp(40px, 22px + 1.125vw, 48px); }
  .lede { font-size: clamp(17px, 11.9px + 0.3187vw, 19.55px); }
}
/* ---------- end every screen size ---------- */
