/* Judah's 3d prints
   Palette taken from the print bench: cool build-plate white, graphite frame,
   cobalt filament, oak desk, grey PLA. Motif: FDM layer lines and honeycomb infill. */

:root {
  --canvas: #F2F4F6;
  --surface: #FFFFFF;
  --surface-2: #E4E8EC;
  --ink: #131920;
  --ink-soft: #3E4853;
  --line: #6B7682;
  --rule: #C9D0D7;
  --cobalt: #1D4ED8;
  --cobalt-hover: #173FB0;
  --cobalt-deep: #0F2C82;
  --cobalt-text: #1D4ED8;
  --on-cobalt: #FFFFFF;
  --oak: #8A4F1C;
  --oak-soft: #C98B4F;
  --pla: #8C96A3;
  --band: #131920;
  --band-ink: #F2F4F6;
  --band-soft: #C9D2DC;
  --focus: #1D4ED8;
  --scrim: rgba(242, 244, 246, 0.94);
  --layer-ink: rgba(19, 25, 32, 0.05);
  --infill: rgba(29, 78, 216, 0.10);

  --font-display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --font-text: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --maxw: 78rem;
  --section: clamp(4.5rem, 9vw, 8rem);
  --header-h: 4.5rem;
  --ease: cubic-bezier(.2, .7, .2, 1);

  --chatbot-color: #1D4ED8;
  --chatbot-on-color: #FFFFFF;
  --chatbot-background: #F2F4F6;
  --chatbot-surface: #FFFFFF;
  --chatbot-text: #131920;
  --chatbot-font: "Atkinson Hyperlegible Next", system-ui, sans-serif;
  --chatbot-radius: 10px;

  color-scheme: light;
}

html[data-theme="dark"] {
  --canvas: #0F141A;
  --surface: #18202A;
  --surface-2: #222C38;
  --ink: #E9EEF3;
  --ink-soft: #B4BFCB;
  --line: #7F8B98;
  --rule: #2E3A47;
  --cobalt: #8FB0FF;
  --cobalt-hover: #B3CAFF;
  --cobalt-deep: #3D5FB8;
  --cobalt-text: #9DBAFF;
  --on-cobalt: #0F141A;
  --oak: #E0A267;
  --oak-soft: #B97A40;
  --pla: #8C96A3;
  --band: #1A2B52;
  --band-ink: #F2F4F6;
  --band-soft: #CBD6EA;
  --focus: #9DBAFF;
  --scrim: rgba(15, 20, 26, 0.94);
  --layer-ink: rgba(233, 238, 243, 0.05);
  --infill: rgba(143, 176, 255, 0.10);

  --chatbot-color: #8FB0FF;
  --chatbot-on-color: #0F141A;
  --chatbot-background: #0F141A;
  --chatbot-surface: #18202A;
  --chatbot-text: #E9EEF3;

  color-scheme: dark;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  scrollbar-color: var(--cobalt) var(--surface-2);
}
html::-webkit-scrollbar { width: 12px; height: 12px; }
html::-webkit-scrollbar-track { background: var(--surface-2); }
html::-webkit-scrollbar-thumb { background: var(--cobalt); border: 3px solid var(--surface-2); border-radius: 8px; }
html::-webkit-scrollbar-thumb:hover { background: var(--cobalt-hover); }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p, ul, ol, dl, dd, figure, h1, h2, h3 { margin: 0; }
ul, ol { padding: 0; list-style: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 86;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}
h2 { font-size: clamp(2rem, 1.35rem + 2.4vw, 3.15rem); }
h3 { font-size: clamp(1.25rem, 1.1rem + .5vw, 1.45rem); line-height: 1.2; letter-spacing: -0.01em; }
p { text-wrap: pretty; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 3px; }
main:focus { outline: none; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  padding: .75rem 1rem; background: var(--ink); color: var(--canvas);
  border-radius: 6px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* Background world: slow light field and layer lines kept to the page edges */
.world { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.world__light {
  position: absolute; inset: -20%;
  background:
    radial-gradient(40% 35% at 12% 18%, color-mix(in srgb, var(--cobalt) 12%, transparent), transparent 70%),
    radial-gradient(35% 30% at 92% 78%, color-mix(in srgb, var(--oak-soft) 14%, transparent), transparent 70%);
}
.world__layers {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, var(--layer-ink) 0 1px, transparent 1px 5px);
  -webkit-mask-image: linear-gradient(90deg, #000 0, transparent 7%, transparent 93%, #000 100%);
          mask-image: linear-gradient(90deg, #000 0, transparent 7%, transparent 93%, #000 100%);
}
html[data-motion="ready"] .world__light { animation: drift 70s ease-in-out infinite alternate; }
@keyframes drift {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(4%, 6%, 0); }
}

/* Shared section rhythm */
main > section {
  position: relative;
  padding-block: var(--section);
  padding-inline: max(var(--gutter), calc((100% - var(--maxw)) / 2));
}

/* Buttons and links */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 3rem; padding: .75rem 1.4rem;
  background: var(--cobalt); color: var(--on-cobalt);
  border: 2px solid var(--cobalt); border-radius: 6px;
  box-shadow: 0 3px 0 var(--cobalt-deep);
  font: 700 1rem/1.2 var(--font-text);
  text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.button:hover { background: var(--cobalt-hover); border-color: var(--cobalt-hover); text-decoration: underline; text-underline-offset: .2em; transform: translateY(-1px); box-shadow: 0 4px 0 var(--cobalt-deep); }
.button:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--cobalt-deep); }
.button[disabled] {
  background: var(--surface-2); color: var(--ink-soft); border: 2px dashed var(--line);
  box-shadow: none; cursor: not-allowed; transform: none; text-decoration: none;
}
.button--small { min-height: 2.5rem; padding: .45rem 1rem; font-size: .95rem; box-shadow: 0 2px 0 var(--cobalt-deep); }
.button--ghost { background: transparent; color: var(--cobalt-text); box-shadow: none; }
.button--ghost:hover { background: var(--cobalt); color: var(--on-cobalt); box-shadow: none; }
.button--invert { background: var(--band-ink); color: #131920; border-color: var(--band-ink); box-shadow: 0 3px 0 rgba(0, 0, 0, .35); }
.button--invert:hover { background: #FFFFFF; border-color: #FFFFFF; color: #131920; box-shadow: 0 4px 0 rgba(0, 0, 0, .35); }

.text-link {
  color: var(--cobalt-text); font-weight: 700;
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .22em;
  transition: text-decoration-thickness .15s;
}
.text-link:hover { text-decoration-thickness: 3px; }

/* Filament swatches (spool seen end-on) */
.swatch {
  --c: var(--cobalt);
  flex: none; display: inline-block; width: 2.25rem; height: 2.25rem; border-radius: 50%;
  background: radial-gradient(circle, var(--canvas) 0 26%, var(--line) 27% 31%, var(--c) 32%);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.swatch--cobalt { --c: #1D4ED8; }
.swatch--graphite { --c: #232B34; }
.swatch--white { --c: #F7F8FA; }
.swatch--grey { --c: #8C96A3; }
.swatch--oak { --c: #B5793F; }

/* Shared image frame: reserved space, palette fill, graceful failure */
.media {
  position: relative; overflow: hidden;
  background:
    repeating-linear-gradient(0deg, var(--layer-ink) 0 1px, transparent 1px 6px),
    var(--surface-2);
  border-radius: 4px;
}
.media img { width: 100%; height: 100%; object-fit: cover; }
.media.is-failed {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='48' viewBox='0 0 56 48'%3E%3Cpath d='M14 1h28l14 23-14 23H14L0 24z' fill='none' stroke='%238C96A3' stroke-opacity='.45' stroke-width='2'/%3E%3C/svg%3E") center / 56px 48px,
    var(--surface-2);
}
.media.is-failed figcaption { display: none; }
.media figcaption {
  position: absolute; left: .75rem; bottom: .75rem;
  padding: .2rem .6rem; border-radius: 4px;
  background: var(--surface); color: var(--ink-soft);
  font-size: .82rem; line-height: 1.4;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--canvas) 94%, transparent);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
          backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-compact { border-bottom-color: var(--rule); box-shadow: 0 6px 18px -14px rgba(0, 0, 0, .45); }
.site-header__inner {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: var(--header-h);
  padding-inline: max(var(--gutter), calc((100% - var(--maxw)) / 2));
  transition: min-height .3s var(--ease);
}
.site-header.is-compact .site-header__inner { min-height: 3.6rem; }

.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; margin-right: auto; }
.brand__mark { width: 2rem; height: 2rem; fill: var(--cobalt); }
.brand__mark path { fill: none; stroke: var(--oak); }
.brand__name {
  font-family: var(--font-display); font-variation-settings: "wdth" 80;
  font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; line-height: 1;
}

.nav-desktop { display: none; }
.nav-desktop ul { display: flex; gap: .25rem; }
.nav-desktop a, .nav-mobile a:not(.button) {
  text-decoration: none; color: var(--ink); font-weight: 600;
}
.nav-desktop a { display: block; padding: .5rem .7rem; border-radius: 4px; }
.nav-desktop a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .35em; }
.nav-desktop a[aria-current="page"], .nav-mobile a[aria-current="page"] {
  font-weight: 800; color: var(--cobalt-text);
  text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: .35em;
}

.header-tools { display: flex; align-items: center; gap: .6rem; }
.header-cta { display: none; }

.theme-toggle, .menu-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  min-width: 2.75rem; min-height: 2.75rem; padding: 0 .65rem;
  background: var(--surface); color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 6px;
  font: 700 .95rem/1 var(--font-text); cursor: pointer;
}
.theme-toggle:hover, .menu-toggle:hover { border-color: var(--ink); }
.theme-toggle svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.theme-toggle .icon-moon { fill: currentColor; stroke: none; }
.theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: block; }

.menu-toggle__bars { display: grid; gap: 4px; width: 1.1rem; }
.menu-toggle__bars span { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-mobile {
  padding: .5rem var(--gutter) 1.5rem;
  background: var(--surface);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  max-height: calc(100svh - var(--header-h)); overflow-y: auto;
}
.nav-mobile ul { display: grid; margin-bottom: 1rem; }
.nav-mobile a:not(.button) {
  display: block; padding: .85rem 0; font-size: 1.2rem;
  border-bottom: 1px solid var(--rule);
}
.nav-mobile a:not(.button):hover { text-decoration: underline; }
.nav-mobile .button { width: 100%; }

@media (min-width: 720px) {
  .header-cta { display: inline-flex; }
}
@media (min-width: 1000px) {
  .nav-desktop { display: block; }
  .menu-toggle { display: none; }
  .nav-mobile, .nav-mobile:not([hidden]) { display: none !important; }
  .brand { margin-right: 0; }
  .nav-desktop { margin-inline: auto; }
}
@media (max-width: 380px) {
  .brand__name { font-size: 1.08rem; }
  .menu-toggle__label { display: none; }
}

/* Footer */
.site-footer {
  position: relative;
  background: var(--surface-2);
  border-top: 1px solid var(--rule);
  padding: clamp(3rem, 6vw, 4.5rem) max(var(--gutter), calc((100% - var(--maxw)) / 2)) 2.5rem;
}
.site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px;
  background: repeating-linear-gradient(0deg, color-mix(in srgb, var(--cobalt) 30%, transparent) 0 1px, transparent 1px 4px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
  pointer-events: none;
}
.site-footer__inner { display: grid; gap: 2rem; }
.site-footer__brand { display: grid; gap: .75rem; justify-items: start; max-width: 30rem; }
.site-footer__name { font-family: var(--font-display); font-variation-settings: "wdth" 80; font-weight: 800; font-size: 1.6rem; letter-spacing: -0.02em; }
.site-footer__nav ul { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.site-footer__nav a { display: inline-block; padding: .3rem 0; font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .25em; }
.site-footer__nav a:hover { text-decoration-thickness: 2.5px; }
.site-footer__note { max-width: 46rem; color: var(--ink-soft); font-size: .92rem; border-top: 1px solid var(--rule); padding-top: 1.25rem; }
@media (min-width: 860px) {
  .site-footer__inner { grid-template-columns: 1.2fr 1fr; align-items: start; }
  .site-footer__nav ul { justify-content: flex-end; }
  .site-footer__note { grid-column: 1 / -1; }
}

/* ===================== Home ===================== */

/* Hero: photo plane, scrim, layer-line plane, copy, spec card */
.hero {
  --hero-shift: 0;
  position: relative; isolation: isolate;
  display: grid;
  padding: 0 !important;
}
.hero__media { margin: 0; aspect-ratio: 4 / 3; border-radius: 0; }
.hero__media img { object-position: 78% 50%; }
.hero__scrim, .hero__lines { display: none; }
.hero__copy { padding: 2.25rem var(--gutter) 1.5rem; display: grid; gap: 1.1rem; justify-items: start; }
.hero__brand {
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 700; color: var(--oak); font-size: 1rem;
}
.hero__brand::before {
  content: ""; width: 1.6rem; height: .7rem;
  background: repeating-linear-gradient(0deg, var(--oak) 0 2px, transparent 2px 4px);
}
.hero__title {
  font-size: clamp(2.5rem, 1.5rem + 3.6vw, 4.75rem);
  font-variation-settings: "wdth" 80;
  font-weight: 750;
  line-height: 1;
  letter-spacing: -0.03em;
  max-width: 14ch;
}
.hero__lead { max-width: 34rem; font-size: 1.12rem; color: var(--ink); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: .4rem; }
.hero__spec { padding: 0 var(--gutter) 3rem; }
.hero__spec dl {
  display: grid; gap: .9rem;
  padding: 1.25rem 1.4rem;
  background: var(--surface); border: 1px solid var(--rule); border-left: 4px solid var(--cobalt);
  border-radius: 4px; box-shadow: 0 18px 30px -24px rgba(0, 0, 0, .55);
}
.hero__spec dt { font-size: .85rem; font-weight: 700; color: var(--oak); }
.hero__spec dd { font-weight: 600; line-height: 1.4; }

@media (min-width: 1100px) {
  .hero {
    min-height: min(calc(100svh - var(--header-h)), 54rem);
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    overflow: clip;
  }
  .hero__media { position: absolute; inset: 0; z-index: -3; aspect-ratio: auto; }
  .hero__media img {
    object-position: 85% 50%;
    transform: translate3d(0, calc(var(--hero-shift) * 70px), 0) scale(1.06);
    will-change: transform;
  }
  .hero__scrim {
    display: block; position: absolute; inset: 0; z-index: -2;
    background: linear-gradient(90deg,
      var(--canvas) 0,
      var(--canvas) calc(var(--gutter) + 36rem),
      var(--scrim) calc(var(--gutter) + 39rem),
      transparent calc(var(--gutter) + 52rem));
  }
  .hero__lines {
    display: block; position: absolute; z-index: -1;
    top: 8%; bottom: 8%;
    left: calc(var(--gutter) + 38.5rem); width: 9rem;
    background: repeating-linear-gradient(0deg, color-mix(in srgb, var(--cobalt) 55%, transparent) 0 1.5px, transparent 1.5px 7px);
    -webkit-mask-image: linear-gradient(90deg, #000, transparent);
            mask-image: linear-gradient(90deg, #000, transparent);
    transform: translate3d(0, calc(var(--hero-shift) * -40px), 0);
  }
  .hero__copy {
    padding: 4rem 0 4rem max(var(--gutter), calc((100% - var(--maxw)) / 2));
    max-width: calc(max(var(--gutter), calc((100% - var(--maxw)) / 2)) + 36rem);
  }
  .hero__spec {
    position: absolute; right: max(var(--gutter), calc((100% - var(--maxw)) / 2)); bottom: 2.5rem;
    width: 21rem; padding: 0;
    transform: translate3d(0, calc(var(--hero-shift) * -50px), 0);
  }
}

/* Offerings overview */
.offers { display: grid; gap: 2.5rem; }
.offers__head { display: grid; gap: 1rem; align-content: start; justify-items: start; max-width: 32rem; }
.offers__head p { color: var(--ink-soft); }
.offer-list { display: grid; }
.offer {
  display: grid; grid-template-columns: auto 1fr; gap: 1.1rem;
  padding: 1.4rem 0;
  border-top: 1px solid var(--rule);
}
.offer:last-child { border-bottom: 1px solid var(--rule); }
.offer h3 { margin-bottom: .35rem; }
.offer h3 a { text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--ink) 35%, transparent); text-decoration-thickness: 1.5px; text-underline-offset: .2em; }
.offer h3 a:hover { color: var(--cobalt-text); text-decoration-color: currentColor; text-decoration-thickness: 3px; }
.offer p { color: var(--ink-soft); max-width: 40rem; }
@media (min-width: 900px) {
  .offers { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4rem; }
  .offers__head { position: sticky; top: calc(var(--header-h) + 2rem); }
}

/* Toolpath crossing between sections */
.toolpath { position: relative; height: 7rem; margin-block: -3.5rem; pointer-events: none; z-index: 0; }
.toolpath svg { width: 100%; height: 100%; }
.toolpath path {
  fill: none; stroke: color-mix(in srgb, var(--cobalt) 45%, transparent); stroke-width: 2;
  stroke-dasharray: 6 8; vector-effect: non-scaling-stroke;
}
html[data-motion="ready"] .toolpath path { animation: toolpath 40s linear infinite; }
@keyframes toolpath { to { stroke-dashoffset: -280; } }

/* Customer needs */
.needs { display: grid; gap: 2.25rem; align-items: center; }
.needs__figure { aspect-ratio: 4 / 3; }
.needs__figure img { object-position: 42% 60%; }
.needs__copy { display: grid; gap: 1.1rem; max-width: 36rem; }
.needs__copy > p { color: var(--ink-soft); }
.needs__list { display: grid; gap: .85rem; margin-top: .4rem; }
.needs__list li { position: relative; padding-left: 2rem; font-weight: 600; }
.needs__list li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 1.1rem; height: .75rem;
  background: repeating-linear-gradient(0deg, var(--cobalt) 0 2px, transparent 2px 4.5px);
}
@media (min-width: 900px) {
  .needs { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 4.5rem; }
  .needs__figure { margin-left: calc(-1 * min(var(--gutter), 3rem)); }
}

/* Capture sequence: the photo prints from the bed up as you scroll */
.build { --capture-progress: 1; }
.build__sticky { display: grid; gap: 2rem; }
.build__stage { display: grid; gap: .75rem; }
.build__frame { aspect-ratio: 3 / 2; }
.build__frame img { position: absolute; inset: 0; }
.build__ghost { opacity: 0; }
.build__print { object-position: 50% 60%; }
.build__ghost { object-position: 50% 60%; }
.build__nozzle { display: none; }
.build__meter { display: none; }
.build__panels { display: grid; gap: 1.75rem; }
.build__panel {
  display: grid; gap: .5rem; align-content: start;
  padding: 1.4rem 1.5rem;
  background: var(--surface); border: 1px solid var(--rule); border-top: 4px solid var(--cobalt);
  border-radius: 4px;
}
.build__panel p { color: var(--ink-soft); }
.build__step {
  display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem;
  border-radius: 50%; border: 2px solid var(--cobalt); color: var(--cobalt-text);
  font-family: var(--font-display); font-weight: 800; font-size: 1.05rem;
}

@media (min-width: 900px) {
  .build__sticky { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 4rem; align-items: center; }
  .build__intro { grid-column: 1 / -1; }
}

.build[data-capture-active="true"] { height: 330vh; padding-block: 0; }
.build[data-capture-active="true"] .build__sticky {
  position: sticky; top: 0; height: 100svh;
  padding-top: calc(var(--header-h) + 1rem); padding-bottom: 1.5rem;
  align-content: center;
}
.build[data-capture-active="true"] .build__ghost { opacity: .32; filter: grayscale(1) contrast(.75) brightness(1.08); }
.build[data-capture-active="true"] .build__print {
  --built: calc(0.14 + var(--capture-progress) * 0.86);
  clip-path: inset(calc((1 - var(--built)) * 100%) 0 0 0);
}
.build[data-capture-active="true"] .build__frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .07) 0 1px, transparent 1px 5px);
}
.build[data-capture-active="true"] .build__nozzle {
  display: block; position: absolute; left: 0; right: 0; z-index: 2; height: 3px;
  top: calc((1 - (0.14 + var(--capture-progress) * 0.86)) * 100%);
  background: var(--oak-soft);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
}
.build[data-capture-active="true"] .build__meter {
  display: block; height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden;
}
.build[data-capture-active="true"] .build__meter span {
  display: block; height: 100%; width: calc(var(--capture-progress) * 100%);
  background: repeating-linear-gradient(90deg, var(--cobalt) 0 10px, var(--cobalt-hover) 10px 12px);
}
.build[data-capture-active="true"] .build__panels { display: grid; grid-template-areas: "panel"; }
.build[data-capture-active="true"] .build__panel {
  grid-area: panel;
  transition: opacity .45s var(--ease), transform .45s var(--ease), visibility 0s linear 0s;
}
.build[data-capture-active="true"] .build__panel[data-active="false"] {
  opacity: 0; visibility: hidden; transform: translateY(1rem);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
}
@media (max-width: 899px) {
  .build[data-capture-active="true"] .build__sticky { gap: .9rem; align-content: start; }
  .build[data-capture-active="true"] .build__intro h2 { font-size: 1.6rem; }
  .build[data-capture-active="true"] .build__frame { aspect-ratio: auto; height: 34svh; }
  .build[data-capture-active="true"] .build__panel { padding: 1rem 1.1rem; }
  .build[data-capture-active="true"] .build__panel h3 { font-size: 1.15rem; }
  .build[data-capture-active="true"] .build__panel p { font-size: .97rem; line-height: 1.5; }
}
@media (max-width: 899px) and (max-height: 640px) {
  .build[data-capture-active="true"] .build__frame { height: 26svh; }
}

/* Where and how */
.where__grid { display: grid; gap: 2.25rem; }
.where__copy { display: grid; gap: 1rem; justify-items: start; max-width: 38rem; }
.where__copy p { color: var(--ink-soft); }
.where__facts {
  display: grid; gap: 0; align-self: start;
  background: var(--surface); border: 1px solid var(--rule); border-radius: 4px;
}
.where__facts div { display: grid; gap: .2rem; padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--rule); }
.where__facts div:last-child { border-bottom: 0; }
.where__facts dt { font-size: .9rem; font-weight: 700; color: var(--oak); }
.where__facts dd { font-weight: 600; }
@media (min-width: 900px) {
  .where__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 4rem; }
}

/* Call-to-action band */
main > section.cta-band { padding-block: 0 var(--section); }
.cta-band__inner {
  position: relative; overflow: hidden;
  display: grid; gap: 1rem; justify-items: start;
  padding: clamp(2.25rem, 5vw, 4rem);
  background: var(--band); color: var(--band-ink);
  border-radius: 6px;
}
.cta-band__inner::after {
  content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 34%;
  background: repeating-linear-gradient(0deg, rgba(143, 176, 255, .22) 0 1.5px, transparent 1.5px 7px);
  -webkit-mask-image: linear-gradient(270deg, #000, transparent);
          mask-image: linear-gradient(270deg, #000, transparent);
  pointer-events: none;
}
.cta-band h2 { color: var(--band-ink); max-width: 20ch; position: relative; z-index: 1; }
.cta-band p { color: var(--band-soft); max-width: 34rem; position: relative; z-index: 1; }
.cta-band .button { position: relative; z-index: 1; margin-top: .5rem; }
@media (max-width: 640px) { .cta-band__inner::after { display: none; } }

/* ===================== Services ===================== */

main > section.svc-open { padding-block: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 4vw, 3rem); }
.svc-open__head { display: grid; gap: 1rem; margin-bottom: 2rem; }
.svc-open__head h1 {
  font-size: clamp(3rem, 1.8rem + 5vw, 6rem);
  font-variation-settings: "wdth" 76; font-weight: 800; letter-spacing: -0.035em; line-height: .95;
}
.svc-open__head p { max-width: 34rem; font-size: 1.12rem; }
.svc-rail { display: grid; gap: .6rem; }
.svc-rail a {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: .9rem; align-items: center;
  padding: .9rem 1rem;
  background: var(--surface); border: 1px solid var(--rule); border-radius: 4px;
  text-decoration: none;
  transition: transform .2s var(--ease), border-color .2s;
}
.svc-rail .swatch { grid-row: 1 / 3; width: 2rem; height: 2rem; }
.svc-rail__name { font-weight: 700; line-height: 1.25; }
.svc-rail__hint { font-size: .9rem; color: var(--ink-soft); }
.svc-rail a:hover { border-color: var(--ink); transform: translateY(-2px); }
.svc-rail a:hover .svc-rail__name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .2em; }
@media (min-width: 640px) { .svc-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) {
  .svc-open__head { grid-template-columns: auto minmax(0, 30rem); justify-content: space-between; align-items: end; }
  .svc-rail { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .svc-rail a { grid-template-columns: 1fr; grid-template-rows: auto; row-gap: .5rem; align-content: start; padding: 1.1rem; }
  .svc-rail .swatch { grid-row: auto; }
}

.svc-list { position: relative; padding-inline: max(var(--gutter), calc((100% - var(--maxw)) / 2)); }
.svc {
  position: relative;
  display: grid; gap: 1.5rem 3rem;
  padding-block: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--rule);
  scroll-margin-top: calc(var(--header-h) + 1rem);
}
.svc__copy { display: grid; gap: 1rem; max-width: 38rem; align-content: start; }
.svc__copy p { color: var(--ink-soft); }
.svc__facts { display: grid; gap: 0; align-self: start; border-left: 3px solid var(--cobalt); }
.svc__facts div { display: grid; gap: .15rem; padding: .6rem 0 .6rem 1.1rem; }
.svc__facts dt { font-size: .9rem; font-weight: 700; color: var(--oak); }
.svc__facts dd { line-height: 1.45; }
.svc__facts--inline { margin-top: .75rem; }
.svc__figure { margin: 0; }
.svc__figure--wide { aspect-ratio: 21 / 9; }
.svc__figure--wide img { object-position: 30% 62%; }
.svc__figure--tall { aspect-ratio: 4 / 5; }
.svc__figure--tall img { object-position: 46% 50%; }
@media (min-width: 900px) {
  .svc { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .svc__copy { grid-column: 1 / span 6; }
  .svc__facts { grid-column: 8 / span 5; }
  .svc__figure--wide { grid-column: 1 / -1; margin-top: 1rem; }
  .svc--flip .svc__copy { grid-column: 6 / span 7; grid-row: 1; }
  .svc--flip .svc__facts { grid-column: 1 / span 4; grid-row: 1; }
  .svc--photo .svc__figure--tall { grid-column: 1 / span 5; grid-row: 1; }
  .svc--photo .svc__copy { grid-column: 7 / span 6; grid-row: 1; align-self: center; }
}

.materials { display: grid; gap: 2.5rem; }
.materials__head { display: grid; gap: 1rem; max-width: 36rem; }
.materials__head p { color: var(--ink-soft); }
.materials__grid { display: grid; gap: 2rem; }
.material { display: grid; gap: .6rem; align-content: start; padding-top: 1rem; position: relative; }
.material::before {
  content: ""; position: absolute; top: 0; left: 0; width: 4rem; height: 6px;
  background: repeating-linear-gradient(0deg, var(--cobalt) 0 2px, transparent 2px 4px);
}
.material h3 { font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.4rem); font-variation-settings: "wdth" 78; }
.material p { color: var(--ink-soft); }
@media (min-width: 800px) { .materials__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; } }

main > section.pricing { padding-top: 0; }
.pricing__inner {
  display: grid; gap: 1.25rem; justify-items: start;
  padding: clamp(1.75rem, 4vw, 3rem);
  background: var(--surface); border: 1px solid var(--rule); border-radius: 6px;
}
.pricing__inner > p { color: var(--ink-soft); max-width: 40rem; }
.pricing__list { display: grid; width: 100%; }
.pricing__list div { display: grid; gap: .2rem 2rem; padding: .9rem 0; border-top: 1px solid var(--rule); }
.pricing__list dt { font-weight: 700; }
.pricing__list dd { color: var(--ink-soft); }
@media (min-width: 720px) { .pricing__list div { grid-template-columns: 12rem 1fr; } }

/* ===================== About ===================== */

main > section.about-open {
  display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: 1.5rem;
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 3.5rem);
}
.about-open__ruler {
  align-self: stretch;
  background:
    linear-gradient(var(--cobalt), var(--cobalt)) left / 3px 100% no-repeat,
    repeating-linear-gradient(0deg, var(--line) 0 2px, transparent 2px 14px) left / 1.1rem 100% no-repeat,
    repeating-linear-gradient(0deg, var(--oak) 0 2px, transparent 2px 70px) left / 2rem 100% no-repeat;
}
.about-open__copy { display: grid; gap: 1.5rem; max-width: 52rem; }
.about-open__copy h1 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); color: var(--oak); font-variation-settings: "wdth" 86; }
.about-open__statement {
  font-family: var(--font-display); font-variation-settings: "wdth" 90;
  font-weight: 500; font-size: clamp(1.7rem, 1.1rem + 2.4vw, 3rem); line-height: 1.18; letter-spacing: -0.02em;
  max-width: 28ch;
}

.about-photo {
  margin-left: max(var(--gutter), calc((100% - var(--maxw)) / 2));
  aspect-ratio: 21 / 9;
  border-radius: 4px 0 0 4px;
}
.about-photo img { object-position: 50% 58%; }
@media (max-width: 700px) { .about-photo { aspect-ratio: 4 / 3; margin-left: var(--gutter); } }

.approach { display: grid; gap: 2.5rem; }
.approach__head { display: grid; gap: 1rem; max-width: 34rem; align-content: start; }
.approach__head p { color: var(--ink-soft); }
.approach__items { display: grid; gap: 2.25rem; }
.approach__item { display: grid; gap: .6rem; align-content: start; }
.approach__item::before { content: ""; width: 3rem; height: 3px; background: var(--cobalt); margin-bottom: .4rem; }
.approach__item p { color: var(--ink-soft); }
@media (min-width: 900px) {
  .approach { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 4rem; }
  .approach__head { position: sticky; top: calc(var(--header-h) + 2rem); }
  .approach__items { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem; }
}

main > section.about-craft { padding-top: 0; }
.about-craft__inner {
  display: grid; gap: 2rem; align-items: end;
  padding-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--rule);
}
.about-craft__copy { display: grid; gap: 1rem; max-width: 42rem; }
.about-craft__copy p { color: var(--ink-soft); }
.about-craft__inner > .button { justify-self: start; }
@media (min-width: 900px) { .about-craft__inner { grid-template-columns: 1fr auto; } }

/* ===================== How it works ===================== */

main > section.how-open { padding-block: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 4vw, 3rem); display: grid; gap: 2.25rem; }
.how-open__head { display: grid; gap: 1rem; max-width: 42rem; }
.how-open__head h1 { font-size: clamp(2.6rem, 1.7rem + 3.6vw, 4.6rem); font-variation-settings: "wdth" 80; letter-spacing: -0.03em; }
.how-open__head p { font-size: 1.12rem; }
.how-strip { display: grid; gap: .6rem; counter-reset: none; }
.how-strip a {
  position: relative; display: flex; align-items: center; gap: .9rem;
  padding: 1rem 1.1rem; min-height: 4rem;
  background: var(--surface); border: 1px solid var(--rule); border-radius: 4px;
  font-weight: 700; text-decoration: none;
}
.how-strip a:hover { border-color: var(--ink); }
.how-strip a:hover span:last-child { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .2em; }
.how-strip__n {
  flex: none; display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: var(--cobalt); color: var(--on-cobalt); font-family: var(--font-display); font-weight: 800;
}
@media (min-width: 600px) { .how-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) {
  .how-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; position: relative; }
  .how-strip li + li a { border-left: 0; border-radius: 0; }
  .how-strip li:first-child a { border-radius: 4px 0 0 4px; }
  .how-strip li:last-child a { border-radius: 0 4px 4px 0; }
  .how-strip li + li a::before {
    content: ""; position: absolute; left: -.55rem; top: 50%; width: 1.1rem; height: 1.1rem;
    background: var(--surface); border-top: 1px solid var(--rule); border-right: 1px solid var(--rule);
    transform: translateY(-50%) rotate(45deg); z-index: 1;
  }
}

main > section.steps { padding-top: clamp(2rem, 4vw, 3rem); }
.steps__line {
  position: absolute; left: calc(max(var(--gutter), calc((100% - var(--maxw)) / 2)) + 1.3rem);
  top: calc(clamp(2rem, 4vw, 3rem) + 1.5rem); bottom: calc(var(--section) + 1.5rem);
  width: 3px;
  background: repeating-linear-gradient(180deg, var(--cobalt) 0 10px, transparent 10px 16px);
}
.steps__list { position: relative; display: grid; gap: 2.5rem; max-width: 50rem; }
.step { display: grid; grid-template-columns: 2.75rem 1fr; gap: 1.4rem; scroll-margin-top: calc(var(--header-h) + 1.5rem); }
.step__n {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%;
  background: var(--canvas); border: 3px solid var(--cobalt); color: var(--cobalt-text);
  font-family: var(--font-display); font-weight: 800; font-size: 1.15rem;
  position: relative; z-index: 1;
}
.step h3 { margin-bottom: .45rem; padding-top: .35rem; }
.step p { color: var(--ink-soft); max-width: 40rem; }

.faq { display: grid; gap: 2rem; }
.faq__head { display: grid; gap: .75rem; max-width: 30rem; align-content: start; }
.faq__head p { color: var(--ink-soft); }
.faq__list { display: grid; border-top: 1px solid var(--rule); }
.faq__item { border-bottom: 1px solid var(--rule); }
.faq__item summary {
  position: relative; display: block; cursor: pointer; list-style: none;
  padding: 1.15rem 3rem 1.15rem 0;
  font-weight: 700; font-size: 1.1rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; position: absolute; right: .25rem; top: 50%; width: 1.5rem; height: 1.5rem; margin-top: -.75rem;
  background:
    linear-gradient(var(--cobalt), var(--cobalt)) center / 14px 2.5px no-repeat,
    linear-gradient(var(--cobalt), var(--cobalt)) center / 2.5px 14px no-repeat;
  border: 1.5px solid var(--line); border-radius: 50%;
  transition: transform .25s var(--ease);
}
.faq__item[open] summary::after {
  background: linear-gradient(var(--cobalt), var(--cobalt)) center / 14px 2.5px no-repeat;
  transform: rotate(180deg);
}
.faq__item summary:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .2em; }
.faq__item p { padding: 0 3rem 1.3rem 0; color: var(--ink-soft); max-width: 44rem; }
html[data-motion="ready"] .faq__item[open] p { animation: faq-open .35s var(--ease); }
@keyframes faq-open { from { opacity: 0; transform: translateY(-.4rem); } to { opacity: 1; transform: none; } }
@media (min-width: 900px) {
  .faq { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 4rem; }
  .faq__head { position: sticky; top: calc(var(--header-h) + 2rem); }
}

.cta-band--quiet .cta-band__inner { background: var(--surface); color: var(--ink); border: 1px solid var(--rule); border-left: 6px solid var(--cobalt); }
.cta-band--quiet .cta-band__inner::after { display: none; }
.cta-band--quiet h2 { color: var(--ink); }
.cta-band--quiet p { color: var(--ink-soft); }
.cta-band--quiet .button--invert { background: var(--cobalt); color: var(--on-cobalt); border-color: var(--cobalt); box-shadow: 0 3px 0 var(--cobalt-deep); }
.cta-band--quiet .button--invert:hover { background: var(--cobalt-hover); border-color: var(--cobalt-hover); color: var(--on-cobalt); }

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

main > section.contact {
  display: grid; gap: 2.5rem;
  padding-block: clamp(2rem, 4vw, 3.25rem) var(--section);
}
.contact__aside { display: grid; gap: 1.75rem; align-content: start; }
.contact__aside h1 { font-size: clamp(2.4rem, 1.6rem + 3vw, 3.8rem); font-variation-settings: "wdth" 80; letter-spacing: -0.03em; }
.contact__lead { font-size: 1.12rem; max-width: 34rem; margin-top: -.75rem; }
.contact__block { display: grid; gap: .6rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); }
.contact__block h2 { font-size: 1.2rem; letter-spacing: -0.01em; }
.contact__block p { color: var(--ink-soft); }
.contact__list { display: grid; gap: .45rem; }
.contact__list li { position: relative; padding-left: 1.4rem; color: var(--ink-soft); }
.contact__list li::before { content: ""; position: absolute; left: 0; top: .62em; width: .7rem; height: 3px; background: var(--cobalt); }
@media (min-width: 960px) {
  main > section.contact { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4rem; align-items: start; }
}

.contact__panel { display: grid; gap: 1rem; }
.contact__fallback {
  padding: 1rem 1.2rem;
  background: var(--surface); color: var(--ink);
  border: 1.5px solid var(--oak); border-left-width: 6px; border-radius: 4px;
  font-weight: 600;
}
.inquiry {
  display: grid; gap: 1.15rem;
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
  background: var(--surface); border: 1px solid var(--rule); border-radius: 6px;
  box-shadow: 0 24px 40px -34px rgba(0, 0, 0, .6);
}
.inquiry__title { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem); }
.field { display: grid; gap: .4rem; }
.field label, .topics legend { font-weight: 700; }
.field input, .field textarea {
  width: 100%; padding: .8rem .9rem;
  font: 1rem/1.5 var(--font-text); color: var(--ink);
  background: var(--canvas); border: 1.5px solid var(--line); border-radius: 6px;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 9rem; }
.field input:hover, .field textarea:hover { border-color: var(--ink); }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
.field input:user-invalid, .field textarea:user-invalid { border-color: #B42318; border-style: dashed; }
html[data-theme="dark"] .field input:user-invalid, html[data-theme="dark"] .field textarea:user-invalid { border-color: #FF8A80; }
.field-pair { display: grid; gap: 1.15rem; }
@media (min-width: 560px) { .field-pair { grid-template-columns: 1fr 1fr; } }
.field__hint { font-size: .92rem; color: var(--ink-soft); margin-top: -.5rem; }
.field .field__hint { margin-top: 0; }

.topics { border: 0; padding: 0; margin: 0; display: grid; gap: .6rem; }
.topics legend { padding: 0; margin-bottom: .6rem; }
.topics legend span { font-weight: 400; color: var(--ink-soft); font-size: .92rem; }
.topics__chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.topics__chips button {
  display: inline-flex; align-items: center; gap: .4rem;
  min-height: 2.6rem; padding: .45rem .9rem;
  font: 600 .95rem/1.2 var(--font-text); color: var(--ink);
  background: var(--canvas); border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer;
}
.topics__chips button:hover { border-color: var(--ink); text-decoration: underline; text-underline-offset: .2em; }
.topics__chips button[aria-pressed="true"] { background: var(--cobalt); color: var(--on-cobalt); border-color: var(--cobalt); font-weight: 700; }
.topics__chips button[aria-pressed="true"]::before { content: "\2713"; font-weight: 800; }

.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.inquiry__submit { justify-self: start; }
.inquiry__status { min-height: 1.5em; font-weight: 700; color: var(--ink); }
.inquiry__status:empty { min-height: 0; }
.inquiry.is-unavailable .field input, .inquiry.is-unavailable .field textarea { background: var(--surface-2); }

/* ===================== Entrances (fail open) ===================== */

html[data-motion="ready"] [data-reveal] {
  transition: opacity .8s var(--ease), transform .8s var(--ease), clip-path 1.1s var(--ease);
}
html[data-motion="ready"] [data-reveal]:not(.is-visible) { opacity: 0; transform: translate3d(0, 1.5rem, 0); }
html[data-motion="ready"] [data-reveal="left"]:not(.is-visible) { transform: translate3d(-2rem, 0, 0); }
html[data-motion="ready"] [data-reveal="wipe"]:not(.is-visible) { opacity: 1; transform: none; clip-path: inset(100% 0 0 0); }
html[data-motion="ready"] .steps__line[data-reveal="wipe"]:not(.is-visible) { clip-path: inset(0 0 100% 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .hero__media img, .hero__lines, .hero__spec { transform: none !important; }
}
html[data-motion="off"] [data-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
