/* ============================================================
   Dream3 — thedream3.com
   Design tokens follow the approved Claude Design file 1:1.
   Mobile-first; the 860px breakpoint replaces the design's
   isMobile / isDesktop branches so nothing depends on JS.
   ============================================================ */

/* ---------- fonts (self-hosted, latin subset) ---------- */

@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('/fonts/bricolage-grotesque-var.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('/fonts/instrument-sans-var.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('/fonts/instrument-sans-var-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/fonts/ibm-plex-mono-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/fonts/ibm-plex-mono-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/fonts/ibm-plex-mono-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- tokens ---------- */

:root {
  --bg: #FFFFFF;
  --ink: #16130F;
  --body: #4A4238;
  --meta: #6B6252;
  --line: #E6DFCF;
  --surface: #F5F2EB;
  --accent: #1F1BE0;
  --accent-inv: #8F8AFF;
  --dark-line: #3A342C;
  --dark-meta: #A79C87;
  --wa: #1F1BE0;
  --wa-ink: #FFFFFF;
  --reel-bg: #0B0906;

  --display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --maxw: 1280px;
  --gutter: clamp(16px, 5vw, 64px);
  --sec-y: clamp(52px, 7vw, 104px);
  --rail-h: clamp(360px, 60vh, 600px);
}

/* ---------- base ---------- */

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, picture, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: #fff; }

h1, h2, h3, p, dl, dd, figure, blockquote, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

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

.sec { padding: var(--sec-y) 0; }
.sec-line { border-top: 1px solid var(--line); }
.sec-surface { background: var(--surface); border-top: 1px solid var(--line); }
.sec-dark { background: var(--ink); color: #fff; }

/* ---------- type primitives ---------- */

.mono-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--meta);
}
.mono-eyebrow-inv { color: var(--dark-meta); }

.h2 {
  margin: 10px 0 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(27px, 4vw, 48px);
  letter-spacing: -.03em;
  line-height: 1.04;
  text-wrap: balance;
}
.h2-sm { font-size: clamp(22px, 2.8vw, 32px); letter-spacing: -.025em; margin-top: 8px; }
.mw-24 { max-width: 24ch; }
.mb-lg { margin-bottom: 24px; }
.mt-xl { margin-top: clamp(40px, 5vw, 72px); }

.lede {
  margin-top: 18px;
  max-width: 56ch;
  font-size: clamp(15.5px, 1.5vw, 18px);
  line-height: 1.55;
  color: var(--body);
}
.lede-sm {
  margin-top: 10px;
  max-width: 62ch;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--body);
}

/* ---------- buttons ---------- */

.btn-dark, .btn-ghost, .btn-inv, .btn-wa, .btn-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
}
.btn-dark, .btn-ghost, .btn-inv { font-family: var(--mono); }

.btn-dark {
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
  padding: 12px 18px;
  min-height: 44px;
}
.btn-dark:hover { color: #fff; text-decoration: none; opacity: .88; }

.btn-ghost {
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  padding: 13px 18px;
  min-height: 44px;
  transition: background-color .18s ease, color .18s ease;
}
.btn-ghost:hover { background: var(--ink); color: #fff; text-decoration: none; }

.btn-inv {
  margin-top: 28px;
  background: #fff;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  padding: 15px 22px;
}
.btn-inv:hover { color: var(--ink); text-decoration: none; opacity: .9; }

.btn-wa {
  background: var(--wa);
  color: var(--wa-ink);
  font-weight: 600;
  font-size: 15px;
  padding: 15px 22px;
  min-height: 52px;
}
.btn-wa:hover { color: var(--wa-ink); text-decoration: none; filter: brightness(.96); }

.btn-line {
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 500;
  font-size: 15px;
  padding: 15px 22px;
  min-height: 52px;
}
.btn-line:hover { border-color: var(--ink); color: var(--ink); text-decoration: none; }

.btn-block { width: 100%; padding: 15px 18px; font-family: var(--sans); font-weight: 600; font-size: 15px; letter-spacing: 0; text-transform: none; }

/* ---------- sticky top bar ---------- */

.topbar {
  position: sticky;
  inset: 0 0 auto;
  z-index: 60;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  transition: transform .28s cubic-bezier(.2, .7, .3, 1);
}
@supports (backdrop-filter: blur(10px)) {
  .topbar { backdrop-filter: blur(10px); }
}
/* the bar is permanent on every page now — sticky rather than fixed, so it
   reserves its own space and no body offset has to track its height */

.topbar-in {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 7px var(--gutter);
  display: flex;
  align-items: center;
  gap: 12px;
}
.topbar-logo {
  flex: 0 0 auto;
  font-family: var(--display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -.02em;
  color: var(--ink);
}
/* The row overflows on a phone and has to scroll. `justify-content: flex-end`
   would be the obvious way to push it right on desktop, but in an overflowing
   scroll container it makes the first item unreachable — so the nav is sized to
   its content and pushed right with a margin instead. */
.topbar-nav {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  gap: 6px;
  padding: 1px 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  /* fade the right edge so a cut-off pill reads as "more to come" rather than
     as the end of the list */
  -webkit-mask-image: linear-gradient(to right, #000 0 calc(100% - 22px), transparent 100%);
  mask-image: linear-gradient(to right, #000 0 calc(100% - 22px), transparent 100%);
}
.topbar-nav::-webkit-scrollbar { display: none; }

/* On a phone the six pills overflow and the logo is eating ~85px of the row for
   a name that is already in the masthead below and the footer. So once the page
   scrolls, the logo folds away and the pills take the whole bar.
   Scroll-driven CSS, not a scroll listener: it runs on the compositor, costs no
   JS, and where it is unsupported the logo simply stays put — which is exactly
   today's behaviour, so there is nothing to fall back to. Desktop is untouched,
   which also means the link is never collapsed for a keyboard user. */
@media (max-width: 860.98px) {
  @supports (animation-timeline: scroll()) {
    .topbar-logo {
      max-width: 12ch;
      overflow: hidden;
      white-space: nowrap;
      animation: bar-tighten linear both;
      animation-timeline: scroll(root block);
      /* fully folded by the time the masthead logo has left the screen */
      animation-range: 40px 150px;
    }
    @keyframes bar-tighten {
      to { max-width: 0; opacity: 0; margin-right: -12px; }
    }
    @media (prefers-reduced-motion: reduce) {
      .topbar-logo { animation: none; }
    }
  }
}
/* Each link is a pill. Run together as plain words at this size they read as one
   long string, which is exactly how the bar looked on a phone. */
.topbar-nav a {
  flex: 0 0 auto;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-family: var(--mono);
  font-size: clamp(10px, 2.4vw, 11.5px);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--meta);
  white-space: nowrap;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.topbar-nav a:hover {
  color: var(--ink);
  background: var(--bg);
  border-color: var(--ink);
  text-decoration: none;
}
.topbar-nav a[aria-current='page'] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

/* ---------- masthead ---------- */

.sec-top { padding: clamp(18px, 3vw, 34px) 0 clamp(22px, 3vw, 32px); }

.masthead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.wordmark {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(20px, 2.4vw, 24px);
  letter-spacing: -.03em;
}
.wordmark-sm { font-size: 21px; }
.dot { color: var(--accent); }

.rail-head {
  margin-top: clamp(16px, 2.4vw, 26px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.rail-nav { display: none; gap: 8px; }
.rail-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.rail-btn:hover { border-color: var(--ink); }
.rail-btn[disabled] { opacity: .35; cursor: default; }

/* ---------- video rail ---------- */

.rail {
  margin-top: 14px;
  display: flex;
  gap: clamp(10px, 1.4vw, 18px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: var(--gutter);
  scrollbar-width: none;
  padding: 6px 0 10px;
  cursor: grab;
  overscroll-behavior-x: contain;
}
.rail::-webkit-scrollbar { height: 0; }
.rail.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.rail-pad { flex: 0 0 var(--gutter); }

.rail-card { flex: 0 0 auto; scroll-snap-align: start; }
.rail-card-last { padding-right: var(--gutter); }

.rail-open {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  border-radius: 16px;
}
.rail-media {
  position: relative;
  display: block;
  height: var(--rail-h);
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  overflow: hidden;
  background: repeating-linear-gradient(135deg, var(--surface) 0 11px, var(--line) 11px 22px);
  box-shadow: 0 1px 2px rgba(22, 19, 15, .07), 0 18px 40px -18px rgba(22, 19, 15, .28);
}
.rail-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rail-play {
  position: absolute;
  left: 12px;
  top: 12px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(22, 19, 15, .82);
  color: #fff;
  display: grid;
  place-items: center;
  padding-left: 2px;
}
.rail-cap { width: clamp(202px, 33.7vh, 337px); padding-top: 12px; }
.rail-title {
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.45;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--ink);
}
.rail-date { font-family: var(--mono); font-size: 11px; color: var(--meta); padding-top: 5px; }

/* ---------- hero ---------- */

.sec-hero { padding: clamp(10px, 2vw, 18px) 0 clamp(44px, 6vw, 72px); }

h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(30px, 5.2vw, 64px);
  line-height: 1.02;
  letter-spacing: -.035em;
  max-width: 20ch;
  text-wrap: pretty;
}

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; padding-top: 24px; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; padding: 26px 0 22px; }
.chips button {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 10px 14px;
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.chips button[aria-pressed='true'] { background: var(--ink); border-color: var(--ink); color: #fff; }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 248px), 1fr));
  gap: clamp(12px, 1.4vw, 18px);
}
.tile { cursor: zoom-in; }
.tile picture { display: block; }
.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  background: repeating-linear-gradient(135deg, var(--surface) 0 11px, var(--line) 11px 22px);
  aspect-ratio: var(--ratio, 4 / 3);
}
.r-16-10 { --ratio: 16 / 10; }
.r-16-9 { --ratio: 16 / 9; }
.r-4-3 { --ratio: 4 / 3; }
.r-1-1 { --ratio: 1 / 1; }
.r-4-5 { --ratio: 4 / 5; }
.r-3-4 { --ratio: 3 / 4; }
.tile figcaption {
  padding-top: 10px;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: baseline;
}
.tile .t { font-size: 14.5px; font-weight: 500; }
.tile .m { font-family: var(--mono); font-size: 11px; color: var(--meta); }
.tile[hidden] { display: none; }

.gallery-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: clamp(20px, 2.6vw, 32px);
}
.gallery-foot .mono-eyebrow { letter-spacing: .1em; color: var(--ink); }

/* ---------- capability ---------- */

.cap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: 0 clamp(24px, 3vw, 56px);
  padding-top: 26px;
}
.cap { border-top: 1px solid var(--line); padding: 18px 0; }
.cap h3 { font-size: 16.5px; font-weight: 600; }
.cap p { margin-top: 6px; font-size: 14.5px; line-height: 1.55; color: var(--body); }

/* ---------- capability list: one disclosure per item below 861px ----------
   Twelve cards stacked ran past 1500px on a phone. Same shape as the material
   comparison and for the same reason: a button plus .is-open, not <details>,
   and the paragraphs stay visible until JS adds .js-cap so no-JS shows the lot.
   The heading cannot be the button — six of the twelve are links to service
   pages, and interactive content inside a <button> is invalid — so the toggle
   is a sibling and the heading keeps its link. */
.cap-toggle { display: none; }

@media (max-width: 860.98px) {
  .cap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    /* 6px, down from the 18px the open desktop cards need. Collapsed, the row
       height is set by the 44px toggle, so the padding is pure dead space —
       12 rows of it ran the section to 1.3 screens on a phone. */
    padding: 6px 0;
    /* align-content, not just align-items. .cap is a stretched item of
       .cap-grid, so between 671px and 861px — where that grid is two up — a
       closed card is stretched to its open row-mate's height. Without this the
       single auto row stretches with it and align-items re-centres the heading
       in the middle of the card, 37px adrift of its own border-top. Measured at
       760px: heading offset 26.6px, 63.3px after opening the neighbour. */
    align-content: start;
    column-gap: 10px;
  }
  .cap > h3 { grid-column: 1; }
  .cap > p { grid-column: 1 / -1; }
  .cap-toggle {
    all: unset;
    grid-column: 2;
    /* the full 44px tap target around a 26px dot. It sets the row height now
       that the padding is down to 6px, so the row is tighter and the target is
       bigger than it was before. */
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-right: -9px;
    cursor: pointer;
  }
  .cap-toggle::after {
    content: '+';
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--bg);
    font-family: var(--mono);
    font-size: 15px;
    line-height: 1;
    color: var(--accent);
    transition: transform .2s cubic-bezier(.2, .7, .3, 1);
  }
  .cap-toggle[aria-expanded='true']::after { transform: rotate(45deg); }
  .cap-toggle:focus-visible::after { outline: 2px solid var(--accent); outline-offset: 2px; }
  /* JS adds .js-cap once it can reopen them, so no-JS keeps everything open.
     Its own flag, not the board table's .js-acc — sharing one meant a failure
     in either list would hide the other's content with no working toggle. */
  .js-cap .cap > p { display: none; }
  .js-cap .cap.is-open > p { display: block; }
  /* 6px is right for a collapsed row and too tight under an open paragraph */
  .js-cap .cap.is-open { padding-bottom: 16px; }
}
.tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--meta);
  font-weight: 400;
  padding-left: 6px;
}

/* ---------- material comparison ---------- */

.mat-table { margin-top: 22px; }
.mat-head {
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -.02em;
  padding: 14px 0;
  border-top: 1px solid var(--ink);
}
.mat-cell {
  font-size: 14px;
  line-height: 1.5;
  color: var(--body);
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.mat-cell[data-label]::before {
  content: attr(data-label);
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--meta);
  padding-bottom: 3px;
}
.mat-labels { display: none; }
.mat-foot { margin-top: 20px; font-size: 14.5px; line-height: 1.55; color: var(--body); }

/* ---------- kits ---------- */

.kits-head {
  display: flex;
  gap: 20px;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
}
.kits {
  display: grid;
  /* two up on a phone, all four on one row from 700px. Left at two columns on a
     desktop each card was a 570px-tall portrait and the section ran to 1600px —
     these are a teaser for the products line, not the gallery. */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 1.2vw, 16px);
  padding-top: 22px;
}
@media (min-width: 700px) {
  .kits { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* the rest of the range lives in the main gallery under its own chip — a link
   there beats a second copy of the same twelve photographs on one page */
.kits-more { padding-top: 20px; }
.kits li picture { display: block; }
.kits li img {
  width: 100%;
  /* 4:5, and the derivatives are cut to 4:5 by tools/build-figures.js. It used
     to be a square filled with a 3:4 photo, so the browser cropped a second
     time on top of the encoder's centre crop and took the bottom off the jhula.
     One crop, picked by hand, is the whole fix. */
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 10px;
  background: var(--surface);
}
.kit-tag {
  display: block;
  padding-top: 9px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--meta);
}
.kits h3 { padding-top: 3px; font-size: 14px; font-weight: 500; }
.kits p { font-family: var(--mono); font-size: 10.5px; color: var(--meta); }

/* ---------- datasheet ---------- */

.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: 0 clamp(28px, 4vw, 72px);
  padding-top: 24px;
  font-family: var(--mono);
}
.spec-list > div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  padding: 15px 0;
  border-top: 1px solid var(--dark-line);
}
.spec-list dt {
  flex: 0 0 auto;
  min-width: 120px;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--dark-meta);
}
.spec-list dd { flex: 1 1 220px; font-size: 13px; line-height: 1.6; }
.spec-hi { color: var(--accent-inv); }

/* ---------- process ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 0 clamp(24px, 3vw, 56px);
  padding-top: 22px;
}
.steps li { border-top: 1px solid var(--line); padding: 18px 0; display: flex; gap: 14px; }
.step-n { font-family: var(--mono); font-size: 12px; color: var(--accent); padding-top: 3px; }
.steps h3 { font-size: 16.5px; font-weight: 600; }
.steps p { margin-top: 5px; font-size: 14.5px; line-height: 1.55; color: var(--body); }

.proc-lead {
  margin-top: 26px;
  max-width: 58ch;
  font-family: var(--mono);
  font-size: clamp(12px, 1.3vw, 13.5px);
  line-height: 1.6;
  color: var(--meta);
}
.proc-shots {
  display: grid;
  /* Fixed counts, not auto-fit — auto-fit broke 3 + 1 around 700px. One up on a
     phone: two up made 171px thumbnails, and a fabricator crouched on a floor
     is unreadable at that size. The section is long as a result, which is the
     trade the photographs are worth. These counts are what the sizes attribute
     on the figures claims, so keep the two in step. */
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(10px, 1.2vw, 16px);
  padding-top: 26px;
}
@media (min-width: 700px) {
  .proc-shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .proc-shots { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.proc-shots img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  background: repeating-linear-gradient(135deg, var(--surface) 0 11px, var(--line) 11px 22px);
}
.proc-shots figcaption {
  padding-top: 8px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--meta);
}
/* On a phone the four shots run edge to edge: pull the row out through the
   wrap's gutter so each photograph is the full width of the screen, and drop
   the corner radius, which only reads as a mistake once the image touches both
   edges. The captions keep the gutter so they stay on the text column.

   This block must stay BELOW `.proc-shots img` — same selector, same
   specificity, and a media query adds none, so it is source order that decides.
   Sitting above it, `border-radius: 0` was dead and the full-bleed photographs
   kept their 12px corners. */
@media (max-width: 699.98px) {
  .proc-shots {
    margin-inline: calc(var(--gutter) * -1);
    gap: 20px;
  }
  .proc-shots img { border-radius: 0; }
  .proc-shots figcaption { padding-inline: var(--gutter); }
}
.proc-note {
  margin-top: 22px;
  max-width: 62ch;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.5;
  font-weight: 500;
}

/* ---------- why ---------- */

.why li {
  border-top: 1px solid var(--line);
  padding: 18px 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(19px, 2.3vw, 27px);
  line-height: 1.28;
  letter-spacing: -.02em;
  max-width: 40ch;
}
.why li:last-child { border-bottom: 1px solid var(--line); }

/* ---------- team ---------- */

.team {
  display: grid;
  /* two up on a phone, all four on one row from 620px — four stacked cards
     ran to two and a half screens */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 24px);
  padding-top: 24px;
  max-width: 1120px;
}
@media (min-width: 620px) {
  .team { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.member img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 12px;
  background: repeating-linear-gradient(135deg, var(--surface) 0 11px, var(--line) 11px 22px);
}
.member h3 { padding-top: 11px; font-size: 15.5px; font-weight: 600; }
.member .role {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--meta);
  padding-top: 3px;
}
.member p:not(.role) { padding-top: 7px; font-size: 14px; line-height: 1.55; color: var(--body); }

/* ---------- client logos ---------- */

/* a right-to-left marquee: the track holds the five marks twice, so when the
   first copy has travelled its own width the second is exactly where the first
   started and the loop is seamless */
.logo-marquee {
  margin-top: 22px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.logos {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: clamp(34px, 7vw, 76px);
  width: max-content;
  padding-top: 4px;
  animation: logo-scroll 34s linear infinite;
}
.logo-marquee:hover .logos { animation-play-state: paused; }
@keyframes logo-scroll { to { transform: translateX(-50%); } }
/* no box: the marks sit on the section surface, optically centred and capped
   by height so wide wordmarks and square marks read at the same weight */
.logos li { flex: 0 0 auto; display: grid; place-items: center; }
/* the canvases are pre-normalised, so one width rule keeps them balanced */
.logos img { width: clamp(150px, 34vw, 190px); height: auto; }

/* ---------- faq ---------- */

.faq { max-width: 76ch; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 17px 0;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  align-items: baseline;
  font-size: 16px;
  font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1;
  color: var(--accent);
  transition: transform .2s cubic-bezier(.2, .7, .3, 1), border-color .2s ease;
}
.faq summary:hover::after { border-color: var(--accent); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq-a { padding-bottom: 18px; }
.faq-a p { font-size: 14.5px; line-height: 1.6; color: var(--body); max-width: 64ch; }

/* ---------- contact ---------- */

.sec-contact { padding-bottom: clamp(96px, 10vw, 120px); }
.contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
  gap: clamp(26px, 3.4vw, 64px);
}

.wa-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
  background: var(--wa);
  color: var(--wa-ink);
  border-radius: 16px;
  padding: 22px 24px;
}
.wa-card:hover { color: var(--wa-ink); text-decoration: none; filter: brightness(.96); }
.wa-card-t {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(19px, 2.2vw, 25px);
  letter-spacing: -.02em;
}
.wa-card-m {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
  padding-top: 4px;
}

.nap { padding-top: 24px; font-size: 14.5px; line-height: 1.6; }
.nap > div {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.nap > div:last-child { border-bottom: 1px solid var(--line); }
.nap dt {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--meta);
}

.map { margin-top: 18px; }
.map-btn {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  background: repeating-linear-gradient(135deg, #EFEADC 0 13px, var(--line) 13px 26px);
  cursor: pointer;
}
.map-btn img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }
.map-bar {
  position: absolute;
  inset: auto 12px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink);
}
.map-bar > span { background: #fff; padding: 8px 11px; border-radius: 999px; }
.map-bar > .map-cta { background: var(--ink); color: #fff; }
.map iframe { width: 100%; aspect-ratio: 16 / 7; border: 0; border-radius: 12px; display: block; }
.map-note { padding-top: 10px; font-family: var(--mono); font-size: 10.5px; color: var(--meta); }

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(18px, 2vw, 26px);
}
.form-lead {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--meta);
}
#enquiry { display: grid; gap: 12px; padding-top: 14px; }
#enquiry label { display: grid; gap: 6px; }
#enquiry label > span {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--meta);
}
#enquiry input, #enquiry select, #enquiry textarea {
  font-family: var(--sans);
  font-size: 15px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  width: 100%;
}
#enquiry textarea { resize: vertical; }
#enquiry input[type='file'] {
  font-family: var(--mono);
  font-size: 12px;
  padding: 11px 12px;
  border: 1px dashed var(--line);
  background: var(--surface);
  color: var(--body);
}
#enquiry input:invalid:not(:placeholder-shown) { border-color: #B3261E; }
.form-note { font-family: var(--mono); font-size: 10.5px; line-height: 1.5; color: var(--meta); }

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

.footer { border-top: 1px solid var(--line); padding: clamp(40px, 5vw, 72px) 0 clamp(104px, 12vw, 112px); }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: clamp(22px, 3vw, 48px);
}
.addr { margin-top: 10px; font-size: 13.5px; line-height: 1.6; color: var(--body); max-width: 34ch; }
.fine { margin-top: 10px; font-family: var(--mono); font-size: 10.5px; line-height: 1.7; color: var(--meta); }
.footer-h {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--meta);
  padding-bottom: 10px;
}
.footer-col { display: grid; align-content: start; gap: 7px; font-size: 13.5px; }
.footer-col a { color: var(--accent); }

/* ---------- fixed UI ---------- */

.wa-bubble {
  position: fixed;
  right: 18px;
  bottom: calc(78px + env(safe-area-inset-bottom));
  z-index: 55;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--wa);
  color: var(--wa-ink);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 26px -8px rgba(22, 19, 15, .45);
}
.wa-bubble:hover { color: var(--wa-ink); text-decoration: none; }

.mobile-bar {
  position: fixed;
  inset: auto 0 0;
  z-index: 58;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #fff;
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.mobile-bar a {
  min-height: 56px;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
  border-left: 1px solid var(--line);
}
.mobile-bar a:first-child { background: var(--wa); color: var(--wa-ink); border-left: 0; }
.mobile-bar a:hover { text-decoration: none; }

/* ---------- lightbox ---------- */

.lb {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(22, 19, 15, .9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 56px);
  cursor: zoom-out;
}
.lb[hidden] { display: none; }
.lb-panel { max-width: 1100px; width: 100%; cursor: auto; }
.lb-media { border-radius: 12px; overflow: hidden; background: repeating-linear-gradient(135deg, var(--surface) 0 13px, var(--line) 13px 26px); }
.lb-media img { width: 100%; max-height: 74vh; object-fit: contain; }
.lb-meta { padding-top: 14px; color: #fff; }
.lb-title { font-family: var(--display); font-weight: 700; font-size: clamp(19px, 2.2vw, 26px); letter-spacing: -.02em; }
.lb-sub { font-family: var(--mono); font-size: 11.5px; color: var(--dark-meta); padding-top: 5px; }

.ov-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(11, 9, 6, .5);
  color: #fff;
  cursor: pointer;
}

/* ---------- reels player ---------- */

.reels {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: var(--reel-bg);
  /* width of the 9:16 video column — the overlay chrome is sized and centred
     to match it, so every control sits on the video, never on a letterbox */
  --stage-w: min(100vw, calc(100vh * 9 / 16));
}
@supports (height: 100dvh) {
  .reels { --stage-w: min(100vw, calc(100dvh * 9 / 16)); }
}
.reels[hidden] { display: none; }
/* The player is NOT natively scrolled. A hard flick on a scroll-snap container
   carries its momentum across several slides and snap simply accepts wherever
   it lands — which is how one throw could reach the last reel. The track is
   translated instead, so a gesture can only ever resolve to the neighbouring
   slide: the target is computed from the index the gesture started on. */
.reels-scroll {
  position: absolute;
  inset: 0;
  overflow: hidden;
  overscroll-behavior: contain;
  touch-action: none;
}
.reels-track {
  height: 100%;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}
.reels-scroll::-webkit-scrollbar { width: 0; }
.reel-slide {
  position: relative;
  height: 100%;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
/* the slide's own poster, blown up and blurred, fills whatever the 9:16 video
   does not — so a wide window never shows a flat black bar */
.reel-slide::before {
  content: '';
  position: absolute;
  inset: -6%;
  background: var(--poster) center / cover no-repeat;
  filter: blur(44px) brightness(.42) saturate(1.1);
  transform: scale(1.1);
}
.reel-stage {
  position: relative;
  height: min(100%, calc(100vw * 16 / 9));
  aspect-ratio: 9 / 16;
  max-width: 100%;
  background: repeating-linear-gradient(135deg, #221D16 0 13px, #171310 13px 26px);
  box-shadow: 0 24px 70px -20px rgba(0, 0, 0, .7);
}
.reel-stage video { width: 100%; height: 100%; object-fit: cover; }
/* The quote button is a full-width bar pinned 14px off the bottom, so the caption
   has to clear its whole height (46px) plus that offset plus the safe area —
   otherwise the green sits straight on top of the text. */
.reel-info {
  position: absolute;
  inset: auto 0 0;
  padding: 40px 16px calc(74px + env(safe-area-inset-bottom));
  background: linear-gradient(to top,
    rgba(11, 9, 6, .92) 0,
    rgba(11, 9, 6, .82) 34%,
    rgba(11, 9, 6, .42) 68%,
    rgba(11, 9, 6, 0) 100%);
}
.reel-date { font-family: var(--mono); font-size: 11px; color: var(--dark-meta); }
.reel-cap {
  color: #fff;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.5;
  text-transform: uppercase;
  padding-top: 6px;
}
.reel-place { color: var(--dark-meta); font-size: 13px; padding-top: 4px; }

.reels-dots {
  position: absolute;
  right: calc(50% - var(--stage-w) / 2 + 10px);
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  gap: 7px;
  z-index: 2;
}
.reels-dots i {
  display: block;
  width: 3px;
  height: 16px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .32);
  box-shadow: 0 0 6px rgba(0, 0, 0, .5);
}
.reels-dots i.on { background: #fff; }

/* control rows, centred on the video column */
.reels-ui,
.reels-foot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: var(--stage-w);
  padding: 0 12px;
  display: flex;
  z-index: 2;
}
.reels-ui {
  top: calc(12px + env(safe-area-inset-top));
  justify-content: space-between;
  gap: 10px;
}
.reels-foot {
  bottom: calc(14px + env(safe-area-inset-bottom));
  justify-content: flex-end;
  pointer-events: none;
}

.ov-btn,
.reels-ui .ov-close {
  position: static;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(11, 9, 6, .42);
  color: #fff;
  cursor: pointer;
}
@supports (backdrop-filter: blur(6px)) {
  .ov-btn, .reels-ui .ov-close { backdrop-filter: blur(6px); }
}
.ov-btn:hover, .reels-ui .ov-close:hover { background: rgba(11, 9, 6, .68); }

.ov-btn .i-on, .ov-btn .i-off { display: none; }
.ov-btn[aria-pressed='false'] .i-off { display: block; }
.ov-btn[aria-pressed='true'] .i-on { display: block; }

.reels-cta {
  pointer-events: auto;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  background: var(--wa);
  color: var(--wa-ink);
  font-weight: 600;
  font-size: 13.5px;
  border-radius: 999px;
  box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .6);
}
.reels-cta:hover { color: var(--wa-ink); text-decoration: none; filter: brightness(.96); }

/* on a phone the video covers the whole screen — no band above or below, so
   every control sits on the footage. Desktop keeps the 9:16 column, because
   cropping a portrait clip to a landscape window would throw the piece away. */
@media (max-width: 860px) {
  .reels { --stage-w: 100vw; }
  .reel-stage {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    box-shadow: none;
  }
  .reel-slide::before { display: none; }
}

/* a blue focus ring reads as decoration on top of video — go white in overlays */
.reels :focus-visible,
.lb :focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* ---------- scroll reveal ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s cubic-bezier(.2, .7, .3, 1);
}
.js [data-reveal].shown { opacity: 1; transform: none; }

/* ============================================================
   860px and up — replaces the design's isDesktop branch
   ============================================================ */

@media (min-width: 861px) {
  html { scroll-behavior: smooth; }

  /* wide enough for the whole row — stop scrolling it and let it sit right */
  .topbar-nav {
    flex: 0 0 auto;
    margin-left: auto;
    overflow: visible;
    gap: 7px;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .rail-nav { display: flex; }
  .mobile-bar { display: none; }
  .wa-bubble { bottom: 22px; }
  .footer { padding-bottom: clamp(40px, 5vw, 72px); }

  .tile.wide { grid-column: span 2; }

  /* material comparison becomes the designed 5-column table. The counts are
     variables so the same module can compare two things (router vs laser) or
     four (the boards); the defaults are the homepage's own numbers.
     Note the table gets its own breakpoint below — five to seven columns are
     unreadable between 861 and 1180, so it stays stacked until 1180. */
  .mat-table {
    display: grid;
    grid-template-columns: auto repeat(var(--cmp-cols, 4), minmax(0, 1fr));
    grid-template-rows: repeat(var(--cmp-rows, 7), auto);
    grid-auto-flow: column;
    column-gap: clamp(18px, 2.4vw, 40px);
  }
  .mat-col { display: contents; }
  .mat-labels { display: contents; }
  .mat-labels .mat-cell {
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--meta);
  }
  .mat-cell[data-label]::before { display: none; }
  .mat-head { font-size: 21px; }
}

@media (min-width: 1100px) {
  .lb-media img { max-height: 70vh; }
}

/* ============================================================
   reduced motion
   ============================================================ */

@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; transform: none; }
  .topbar { transition: none; }
}

/* ============================================================
   service pages — hero, prose, comparison module, related list
   Everything else on a service page reuses the classes above.
   ============================================================ */

/* the homepage bar slides in once the video rail has scrolled past; a service
   page has no rail, so the same bar simply sticks from the first pixel */


.sec-hero-svc { padding: clamp(14px, 2.4vw, 26px) 0 clamp(34px, 4.5vw, 58px); }

.crumb {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--meta);
}
.crumb a { color: var(--meta); }
.crumb a:hover { color: var(--ink); }
.crumb [aria-current] { color: var(--ink); }

.h1-svc {
  margin-top: 18px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(30px, 5.2vw, 64px);
  line-height: 1.02;
  letter-spacing: -.035em;
  max-width: 19ch;
  text-wrap: pretty;
}
.hero-lede {
  margin-top: 16px;
  max-width: 56ch;
  font-size: clamp(15.5px, 1.5vw, 18px);
  line-height: 1.55;
  color: var(--body);
}

.hero-strip {
  margin-top: clamp(24px, 3.2vw, 40px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(8px, 1.2vw, 16px);
}
/* height is fixed in CSS and the intrinsic size is on the tag, so the strip
   reserves its box before the first byte of image arrives — CLS stays at 0 */
.hero-strip img {
  width: 100%;
  height: clamp(150px, 26vw, 300px);
  object-fit: cover;
  border-radius: 12px;
  background: var(--surface);
}
.hero-foot {
  padding-top: 12px;
  display: flex;
  gap: 10px 20px;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: baseline;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--meta);
}

/* ---------- body copy ---------- */

.prose { max-width: 68ch; padding-top: 14px; }
.prose p { font-size: 15.5px; line-height: 1.65; color: var(--body); }
.prose > p:first-child {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.55;
  color: var(--ink);
  font-weight: 500;
}
.prose > * + * { margin-top: 16px; }
.prose h3 { margin-top: 26px; font-size: 16.5px; font-weight: 600; }
.prose h3 + p { margin-top: 7px; }
.prose ul { display: grid; gap: 9px; }
.prose li {
  position: relative;
  padding-left: 17px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--body);
}
.prose li::before { content: '·'; position: absolute; left: 5px; color: var(--accent); }
.prose strong { color: var(--ink); font-weight: 600; }

/* ---------- related services ---------- */

.rel-list { display: grid; padding-top: 10px; }
.rel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 18px;
  align-items: baseline;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
}
.rel:last-child { border-bottom: 1px solid var(--line); }
.rel:hover { color: var(--accent); text-decoration: none; }
.rel-t {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(17px, 1.9vw, 21px);
  letter-spacing: -.02em;
}
.rel-d {
  grid-column: 1;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.5;
  color: var(--meta);
}
.rel-i { grid-row: 1 / span 2; align-self: center; color: var(--meta); }

/* ---------- casual-copy deterrent ----------
   A speed bump, not protection. This suppresses the iOS/Android long-press
   "Save Image" sheet and the desktop drag-to-desktop gesture. It does NOT stop
   a screenshot, devtools, or reading the file straight out of sitemap.xml —
   and it must not, because the image sitemap and the ImageObject schema exist
   precisely so Google Images can find this work. See README, "Image copying". */
.tile img,
.hero-strip img,
.proc-shots img,
.lb-media img {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  /* clicks fall through to the figure, which is what opens the lightbox */
  pointer-events: none;
}


/* ============================================================
   design update 08.2026 — components the refreshed design adds
   ============================================================ */

/* the comparison table needs more room than the nav breakpoint gives it:
   it stays in stacked card form until 1180px, then becomes the grid */
@media (min-width: 861px) and (max-width: 1179.98px) {
  .mat-table { display: block; }
  .mat-col { display: block; }
  .mat-labels { display: none; }
  .mat-cell[data-label]::before { display: block; }
  .mat-head { font-size: 19px; }
}

/* accent a cell whose value is the reason to pick that column */
.mat-cell.mat-hi { color: var(--accent); }

/* filled pill — the design's resting state for "load more", inverting on hover */
.btn-fill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 13px 20px;
  min-height: 44px;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease;
}
.btn-fill:hover { background: transparent; color: var(--ink); text-decoration: none; }
/* the arrow is drawn in CSS, not markup: script.js relabels this button with
   textContent, which would wipe a markup span, and script.js has 13 spare bytes */
.btn-fill::after { content: '\2193'; font-size: 13px; line-height: 1; }

/* hero trust pills — only claims already made elsewhere on the page */
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding-top: 20px;
}
.pills li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 9px 13px;
  border-radius: 999px;
  line-height: 1.2;
}
.pills li::before { content: '\2713'; color: var(--accent); font-size: 11px; }

/* capability headings link to the service page that covers them */
.cap h3 a { color: var(--ink); }
.cap h3 a:hover { color: var(--accent); text-decoration: none; }

/* secondary sections carry a shorter rhythm than the primary ones */
.sec-sm { padding: clamp(44px, 6vw, 80px) 0; }

/* related services as photo cards, replacing the text row list */
.rel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: clamp(12px, 1.6vw, 20px);
  padding-top: clamp(18px, 2.4vw, 28px);
}
.rel-card { display: block; color: var(--ink); }
.rel-card:hover { color: var(--accent); text-decoration: none; }
.rel-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  background: var(--surface);
}
.rel-card .rel-t {
  display: block;
  padding-top: 11px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -.02em;
}
.rel-card .rel-d {
  display: block;
  padding-top: 3px;
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.5;
  color: var(--meta);
}

/* gallery closer on the service pages */
.mt-cta { padding-top: clamp(20px, 2.6vw, 32px); }
/* the materials escape hatch, sitting under the cross-link note */
.mat-ask { margin-top: 8px; font-size: 14.5px; line-height: 1.55; color: var(--body); }

/* ---------- material comparison: accordion below 1180px, table above ----------
   Plain divs, not <details>: Chrome wraps details content in a ::details-content
   box, which with display:contents handed the grid two items per board instead
   of seven and scattered every row. A button plus .is-open behaves the same and
   works everywhere. Cells are visible by default so no-JS shows everything. */
.mat-toggle {
  all: unset;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  cursor: pointer;
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -.02em;
  color: var(--ink);
}
.mat-sum {
  flex: 1 1 auto;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0;
  line-height: 1.35;
  color: var(--meta);
}
.mat-toggle::after {
  content: '+';
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1;
  color: var(--accent);
  transition: transform .2s cubic-bezier(.2, .7, .3, 1);
}
.mat-toggle[aria-expanded='true']::after { transform: rotate(45deg); }

@media (max-width: 1179.98px) {
  .mat-col { border-top: 1px solid var(--line); }
  .mat-col:last-child { border-bottom: 1px solid var(--line); }
  .mat-col > .mat-head { border-top: 0; padding: 15px 0; }
  /* JS adds .js-acc once it can restore them, so no-JS keeps everything open */
  .js-acc .mat-col > .mat-cell { display: none; }
  .js-acc .mat-col.is-open > .mat-cell { display: block; }
  .mat-col > .mat-cell:first-of-type { border-top: 0; }
  .mat-col > .mat-cell:last-of-type { padding-bottom: 16px; }
}

@media (min-width: 1180px) {
  .mat-toggle { cursor: default; font: inherit; color: inherit; }
  .mat-toggle::after, .mat-sum { display: none; }
}

/* ---------- mobile action bar: icons ---------- */
.mobile-bar a {
  gap: 3px;
  align-content: center;
  justify-items: center;
  font-size: 9.5px;
  letter-spacing: .06em;
}
.mobile-bar svg { width: 20px; height: 20px; }

@media (prefers-reduced-motion: reduce) {
  /* a moving logo strip is exactly what this preference is for */
  .logos { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .logo-marquee { -webkit-mask-image: none; mask-image: none; }
}


/* two-item quick-contact bar */
.mobile-bar-2 { grid-template-columns: repeat(2, 1fr); }
