/* ===========================================================================
   DDPrinterZ design system
   One consolidated stylesheet. Tokens first, then components, then responsive.
   Light and dark are semantic token sets, never inversions or per-page
   overrides — that is what made work.html headings unreadable before.
   =========================================================================== */

/* --- Tokens -------------------------------------------------------------- */
:root {
  color-scheme: dark;

  --bg: #0f1311;
  --bg-sunk: #0a0d0c;
  --surface: #171c1a;
  --surface-2: #1f2623;
  --line: #2c3532;
  --line-strong: #6b7975;
  --ink: #f3f5f3;
  --ink-2: #b9c1bc;
  --accent: #7dd6a4;
  --accent-quiet: #2b4638;
  --accent-ink: #08110c;
  --focus: #9ce8bd;
  --shadow-1: 0 1px 2px #00000040, 0 8px 24px #0000004d;
  --shadow-2: 0 2px 6px #00000059, 0 24px 60px #00000066;
  --scrim: #0b0f0dd1;

  /* Type: one readable sans for the whole interface. The serif is reserved
     for the maker's quote only. */
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-quote: "Iowan Old Style", "Palatino Linotype", Georgia, serif;

  --step--1: clamp(0.8rem, 0.78rem + 0.1vw, 0.86rem);
  --step-0: clamp(0.98rem, 0.95rem + 0.14vw, 1.06rem);
  --step-1: clamp(1.1rem, 1.04rem + 0.3vw, 1.3rem);
  --step-2: clamp(1.3rem, 1.18rem + 0.6vw, 1.7rem);
  --step-3: clamp(1.6rem, 1.35rem + 1.2vw, 2.35rem);
  --step-4: clamp(2rem, 1.5rem + 2.3vw, 3.4rem);
  --step-5: clamp(2.4rem, 1.65rem + 3.4vw, 4.4rem);

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: clamp(64px, 8vw, 104px);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --tap: 44px;
  --nav-h: 66px;
  --container: 1180px;
  /* Floating contact button. The footer reserves this below its last row so the
   * button never lands on a link that cannot be scrolled clear. */
  --fab-size: 54px;
}

:root[data-theme="day"] {
  color-scheme: light;

  --bg: #fbfbf9;
  --bg-sunk: #f2f3f0;
  --surface: #ffffff;
  --surface-2: #f2f3f0;
  --line: #dfe2dd;
  --line-strong: #7f8a84;
  --ink: #131816;
  --ink-2: #545d58;
  --accent: #15654a;
  --accent-quiet: #dcece4;
  --accent-ink: #ffffff;
  --focus: #0d4d38;
  --shadow-1: 0 1px 2px #1318160f, 0 6px 18px #13181614;
  --shadow-2: 0 2px 8px #13181614, 0 20px 48px #1318161f;
  --scrim: #0b0f0dd1;
}

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

html {
  /* Anchors clear the sticky header in every navigation context. */
  scroll-padding-top: calc(var(--nav-h) + var(--space-5));
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

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

img {
  height: auto;
  display: block;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

:where(a, button, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

/* --- Layout primitives --------------------------------------------------- */
.wrap {
  width: min(100% - clamp(32px, 6vw, 80px), var(--container));
  margin-inline: auto;
}

.section {
  padding-block: var(--space-9);
}

.section + .section {
  padding-block-start: 0;
}

.section--sunk {
  background: var(--bg-sunk);
  border-block: 1px solid var(--line);
  padding-block: var(--space-9);
}

.section--sunk + .section {
  padding-block-start: var(--space-9);
}

.stack {
  display: grid;
  gap: var(--space-4);
}

.eyebrow {
  margin: 0 0 var(--space-3);
  color: var(--accent);
  font-size: var(--step--1);
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.display {
  font-size: var(--step-5);
  letter-spacing: -0.035em;
}

.h-section {
  font-size: var(--step-4);
  letter-spacing: -0.03em;
}

.lead {
  max-width: 60ch;
  color: var(--ink-2);
  font-size: var(--step-1);
  line-height: 1.55;
}

.muted {
  color: var(--ink-2);
}

.note {
  color: var(--ink-2);
  font-size: var(--step--1);
  line-height: 1.55;
}

.head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: var(--space-5) var(--space-7);
  align-items: end;
  margin-block-end: var(--space-7);
}

.head > p {
  max-width: 46ch;
  color: var(--ink-2);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
}

.skip:focus {
  left: var(--space-4);
  top: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 650;
  text-decoration: none;
}

/* --- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--tap);
  padding: var(--space-3) var(--space-5);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink);
  font-size: var(--step--1);
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}

.btn:hover {
  background: var(--surface-2);
  border-color: var(--ink-2);
}

.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.btn--primary:hover {
  background: color-mix(in srgb, var(--accent) 86%, var(--ink));
  border-color: color-mix(in srgb, var(--accent) 86%, var(--ink));
  color: var(--accent-ink);
}

.btn--quiet {
  border-color: transparent;
  background: var(--surface-2);
}

.btn--small {
  /* Compact padding and type, but still a full 44px target. */
  min-height: var(--tap);
  padding: var(--space-2) var(--space-4);
}

.btn .icon {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: currentColor;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.actions--center {
  justify-content: center;
}

/* --- Header / navigation ------------------------------------------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-block-end: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: var(--nav-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding-block: var(--space-2);
  font-size: var(--step-1);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 50%;
}

.brand span i {
  color: var(--accent);
  font-style: normal;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  color: var(--ink-2);
  font-size: var(--step--1);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links a:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.nav-links a[aria-current="page"] {
  background: var(--accent-quiet);
  color: var(--ink);
}

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: var(--tap);
  height: var(--tap);
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: transparent;
  cursor: pointer;
}

.theme-toggle:hover {
  background: var(--surface-2);
}

.theme-toggle .icon {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.theme-toggle .icon--sun {
  display: none;
}

:root[data-theme="day"] .theme-toggle .icon--sun {
  display: block;
}

:root[data-theme="day"] .theme-toggle .icon--moon {
  display: none;
}

.menu-btn {
  display: none;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--tap);
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: transparent;
  font-size: var(--step--1);
  font-weight: 650;
  cursor: pointer;
}

/* --- Hero ---------------------------------------------------------------- */
.hero {
  padding-block: clamp(40px, 6vw, 80px) var(--space-9);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero h1 {
  margin-block-end: var(--space-5);
}

.hero .actions {
  margin-block-start: var(--space-6);
}

.hero__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-2);
  box-shadow: var(--shadow-2);
}

.hero__media img {
  width: 100%;
  aspect-ratio: 900 / 1010;
  object-fit: cover;
}

.hero__caption {
  position: absolute;
  inset-inline: var(--space-4);
  inset-block-end: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  background: var(--scrim);
  color: #fff;
  font-size: var(--step--1);
  line-height: 1.4;
  backdrop-filter: blur(6px);
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
  margin-block-start: var(--space-6);
  padding-block-start: var(--space-5);
  border-block-start: 1px solid var(--line);
  color: var(--ink-2);
  font-size: var(--step--1);
  list-style: none;
  padding-inline-start: 0;
}

.trust li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.trust .icon {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  fill: var(--accent);
}

/* --- Cards / grids ------------------------------------------------------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: var(--space-5);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
  gap: var(--space-4);
}

.card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}

.card__media {
  position: relative;
  background: var(--surface-2);
  border-block-end: 1px solid var(--line);
}

.card__media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.card__tag {
  position: absolute;
  inset-block-start: var(--space-3);
  inset-inline-start: var(--space-3);
  padding: 5px var(--space-3);
  border-radius: var(--radius-pill);
  background: var(--scrim);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

.card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
}

.card__body h3 {
  font-size: var(--step-2);
}

.card__body p {
  color: var(--ink-2);
}

.card__list {
  margin: 0;
  padding-inline-start: 1.1em;
  color: var(--ink-2);
  font-size: var(--step--1);
}

.card__list li + li {
  margin-block-start: 4px;
}

.card__body .btn {
  margin-block-start: auto;
  align-self: flex-start;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  gap: var(--space-4);
}

.tile-fact {
  min-width: 0;
  padding: var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.tile-fact b {
  display: block;
  margin-block-end: var(--space-2);
  font-size: var(--step-1);
}

.tile-fact span {
  color: var(--ink-2);
  font-size: var(--step--1);
}

/* --- Gallery ------------------------------------------------------------
   Content-driven rows. No fixed grid-template-rows and no absolutely
   positioned tile content, so any number of projects lays out correctly and
   final rows never collapse.
   ------------------------------------------------------------------------ */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr));
  gap: var(--space-4);
}

.gallery--compact {
  grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr));
}

.tile {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  transition:
    border-color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.tile:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}

.tile__media {
  position: relative;
  overflow: hidden;
  background: var(--surface-2);
}

.tile__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.tile:hover .tile__media img {
  transform: scale(1.03);
}

.tile__zoom {
  position: absolute;
  inset-block-end: var(--space-3);
  inset-inline-end: var(--space-3);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--scrim);
  color: #fff;
  backdrop-filter: blur(6px);
}

.tile__zoom .icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.tile__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  padding: var(--space-4);
  border-block-start: 1px solid var(--line);
}

.tile__body b {
  font-size: var(--step-0);
  font-weight: 650;
  line-height: 1.3;
}

.tile__body span {
  color: var(--ink-2);
  font-size: var(--step--1);
}

/* --- Pricing ------------------------------------------------------------
   The price list is the decision the visitor came to make, so it gets the
   dominant column. The material guide is a compact code-native panel.
   ------------------------------------------------------------------------ */
.pricing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.95fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.price-table {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-3) var(--space-5);
  align-items: baseline;
  padding: var(--space-4) var(--space-5);
}

.price-row + .price-row {
  border-block-start: 1px solid var(--line);
}

.price-row__name {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-2);
  font-size: var(--step-1);
  font-weight: 650;
}

.price-row__desc {
  grid-column: 1;
  color: var(--ink-2);
  font-size: var(--step--1);
}

.price-row__value {
  grid-row: 1;
  grid-column: 2;
  color: var(--accent);
  font-size: var(--step-1);
  font-weight: 700;
  white-space: nowrap;
}

.badge-min {
  padding: 2px var(--space-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  color: var(--ink-2);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.price-aside {
  display: grid;
  gap: var(--space-4);
}

.material-card {
  padding: var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.material-card h3 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  font-size: var(--step-1);
}

.material-card h3 span {
  color: var(--accent);
  font-size: var(--step--1);
  font-weight: 650;
}

.material-card p {
  margin-block-start: var(--space-2);
  color: var(--ink-2);
  font-size: var(--step--1);
}

.quote-factors {
  margin: 0;
  padding: var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.quote-factors dl {
  margin: 0;
}

.quote-factors dt {
  margin-block-start: var(--space-3);
  font-size: var(--step--1);
  font-weight: 650;
}

.quote-factors dt:first-of-type {
  margin-block-start: 0;
}

.quote-factors dd {
  margin: 2px 0 0;
  color: var(--ink-2);
  font-size: var(--step--1);
}

/* --- Steps / process ----------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: var(--space-4);
  counter-reset: step;
}

.step {
  min-width: 0;
  padding: var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.step__num {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-block-end: var(--space-4);
  border-radius: 50%;
  background: var(--accent-quiet);
  color: var(--ink);
  font-size: var(--step--1);
  font-weight: 700;
}

.step h3 {
  margin-block-end: var(--space-2);
  font-size: var(--step-1);
}

.step p {
  color: var(--ink-2);
  font-size: var(--step--1);
}

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

/* --- FAQ (no JavaScript required) ---------------------------------------- */
.faq {
  display: grid;
  gap: var(--space-3);
  max-width: 76ch;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: var(--tap);
  padding: var(--space-4) var(--space-5);
  font-size: var(--step-0);
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--accent);
  font-size: var(--step-2);
  line-height: 1;
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq p {
  padding: 0 var(--space-5) var(--space-5);
  color: var(--ink-2);
}

/* --- Maker --------------------------------------------------------------- */
.maker {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.maker__media img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.maker__media figcaption {
  margin-block-start: var(--space-3);
  color: var(--ink-2);
  font-size: var(--step--1);
}

.maker blockquote {
  margin: 0 0 var(--space-5);
  font-family: var(--font-quote);
  font-size: var(--step-3);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.maker p {
  color: var(--ink-2);
}

.maker p + p {
  margin-block-start: var(--space-4);
}

/* --- Contact ------------------------------------------------------------- */
.contact-panel {
  padding: clamp(28px, 5vw, 64px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-1);
}

.contact-panel p {
  max-width: 58ch;
  color: var(--ink-2);
}

.contact-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: var(--space-4);
  margin-block-start: var(--space-6);
  padding: 0;
  list-style: none;
}

.contact-list a {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  /* The grid stretches the <li>, not the <a> inside it, so a card whose second
   * line wraps used to stand taller than the rest of the row. */
  height: 100%;
  min-height: var(--tap);
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  text-decoration: none;
}

.contact-list a:hover {
  border-color: var(--line-strong);
}

.contact-list .icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: var(--accent);
}

.contact-list b {
  display: block;
  font-size: var(--step-0);
}

.contact-list span {
  display: block;
  color: var(--ink-2);
  font-size: var(--step--1);
}

/* --- Video --------------------------------------------------------------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: var(--space-5);
}

.video-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.video-frame {
  position: relative;
  aspect-ratio: 9 / 16;
  background: var(--bg-sunk);
}

.video-frame iframe,
.video-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.video-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.video-play::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #0000 40%, #0009);
}

.video-play__disc {
  position: relative;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #ffffffec;
  box-shadow: var(--shadow-2);
}

.video-play__disc .icon {
  width: 24px;
  height: 24px;
  margin-inline-start: 3px;
  fill: #101413;
}

.video-play:hover .video-play__disc {
  background: #fff;
}

.video-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-5) var(--space-5);
}

.video-body small {
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.video-body h3 {
  font-size: var(--step-1);
}

.video-body a {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: var(--tap);
  margin-block-start: auto;
  color: var(--ink-2);
  font-size: var(--step--1);
}

/* --- Lightbox ------------------------------------------------------------ */
.lightbox {
  width: min(100% - 24px, 1100px);
  max-width: none;
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--ink);
  overflow: hidden;
}

.lightbox::backdrop {
  background: #05070699;
  backdrop-filter: blur(4px);
}

.lightbox__inner {
  display: grid;
  grid-template-rows: 1fr auto;
  max-height: calc(100dvh - 24px);
}

.lightbox__stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  padding: var(--space-5);
  background: var(--bg-sunk);
}

.lightbox__stage img {
  max-width: 100%;
  /* Whole image stays visible; nothing is cropped in the viewer. */
  max-height: min(62dvh, 720px);
  width: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

.lightbox__nav {
  position: absolute;
  inset-block-start: 50%;
  translate: 0 -50%;
  display: grid;
  place-items: center;
  width: var(--tap);
  height: var(--tap);
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  cursor: pointer;
}

.lightbox__nav:hover {
  background: var(--surface-2);
}

.lightbox__nav .icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.lightbox__nav--prev {
  inset-inline-start: var(--space-3);
}

.lightbox__nav--next {
  inset-inline-end: var(--space-3);
}

.lightbox__close {
  position: absolute;
  inset-block-start: var(--space-3);
  inset-inline-end: var(--space-3);
  display: grid;
  place-items: center;
  width: var(--tap);
  height: var(--tap);
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  cursor: pointer;
}

.lightbox__close .icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.lightbox__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3) var(--space-5);
  padding: var(--space-4) var(--space-5);
  border-block-start: 1px solid var(--line);
}

.lightbox__meta b {
  display: block;
  font-size: var(--step-1);
}

.lightbox__meta span {
  color: var(--ink-2);
  font-size: var(--step--1);
}

.lightbox__count {
  color: var(--ink-2);
  font-size: var(--step--1);
  font-variant-numeric: tabular-nums;
}

/* --- Prose pages (privacy, order policy, 404) ---------------------------- */
/* The reading measure is applied to the blocks, not to the .wrap that carries
 * it: constraining the wrap itself would either centre the column ~260px right
 * of its own left-aligned H1, or — once un-centred — drop the page gutter. The
 * wrap keeps its gutter and centring; the text inside it is what gets limited.
 * A rem value rather than ch, so headings share the body's column instead of
 * each block resolving a different measure from its own font size. */
.prose > * {
  max-width: 41rem;
}

.prose h2 {
  margin-block: var(--space-7) var(--space-3);
  font-size: var(--step-2);
}

.prose h3 {
  margin-block: var(--space-5) var(--space-2);
  font-size: var(--step-1);
}

.prose p,
.prose li {
  color: var(--ink-2);
}

.prose p + p {
  margin-block-start: var(--space-4);
}

.prose ul {
  margin: var(--space-3) 0 0;
  padding-inline-start: 1.2em;
}

.prose li + li {
  margin-block-start: var(--space-2);
}

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

.callout {
  margin-block-start: var(--space-6);
  padding: var(--space-5);
  border: 1px solid var(--line);
  border-inline-start: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.callout p {
  color: var(--ink-2);
  font-size: var(--step--1);
}

.page-head {
  padding-block: clamp(40px, 6vw, 72px) var(--space-7);
  border-block-end: 1px solid var(--line);
  margin-block-end: var(--space-9);
}

.page-head .lead {
  margin-block-start: var(--space-4);
}

/* --- Footer / floating action -------------------------------------------- */
.site-footer {
  margin-block-start: var(--space-9);
  /* The floating WhatsApp button is fixed to the bottom-right, and the last
   * footer link sits there at the end of the document where there is no scroll
   * left to move it out from under the button. Reserve the button's height plus
   * its gutter so that link stays clickable at every width.
   * Verified by tools/qa-float-overlap.js. */
  padding-block: var(--space-7) calc(var(--space-7) + var(--fab-size) + 16px);
  border-block-start: 1px solid var(--line);
  background: var(--bg-sunk);
  color: var(--ink-2);
  font-size: var(--step--1);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5) var(--space-7);
  justify-content: space-between;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 34px;
  color: var(--ink);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer .icon {
  width: 16px;
  height: 16px;
  fill: var(--accent);
}

.float-wa {
  position: fixed;
  z-index: 55;
  inset-inline-end: max(16px, env(safe-area-inset-right));
  inset-block-end: max(16px, env(safe-area-inset-bottom));
  display: grid;
  place-items: center;
  width: var(--fab-size);
  height: var(--fab-size);
  border-radius: 50%;
  background: #1fac3f;
  box-shadow: var(--shadow-2);
  overflow: hidden;
}

.float-wa img {
  width: 34px;
  height: 34px;
}

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 1100px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  }

  .pricing-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  }
}

@media (max-width: 960px) {
  .head {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .hero__grid,
  .pricing-grid,
  .maker {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Matches the art-directed mobile crop (tools/build-images.js HERO.mobile).
   * A shorter frame here would cover-crop the tall asset back into a band and
   * slice the middle out of the object, which is what it is there to avoid. */
  .hero__media img {
    aspect-ratio: 855 / 1012;
  }
}

/* Menu breakpoint. Kept well above the point where the links would collide. */
@media (max-width: 900px) {
  .menu-btn {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    inset-inline: 0;
    inset-block-start: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--space-3);
    border-block-end: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow-2);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    min-height: var(--tap);
    padding: var(--space-3) var(--space-4);
    font-size: var(--step-0);
  }

  .site-nav__inner {
    position: relative;
  }
}

@media (max-width: 680px) {
  :root {
    --nav-h: 60px;
  }

  .lightbox {
    width: 100%;
    max-width: 100%;
    max-height: 100dvh;
    height: 100dvh;
    margin: 0;
    border: 0;
    border-radius: 0;
  }

  .lightbox__inner {
    height: 100%;
    max-height: 100dvh;
  }

  /* Extra head room so the close control never sits on top of the photo. */
  .lightbox__stage {
    padding-block-start: calc(var(--tap) + var(--space-5));
  }

  .lightbox__stage img {
    max-height: 56dvh;
  }

  .lightbox__foot {
    justify-content: stretch;
  }

  .lightbox__foot .btn {
    flex: 1;
  }

  .price-row {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: var(--space-4);
  }

  .contact-panel,
  .maker {
    padding: var(--space-5);
  }
}

@media (max-width: 420px) {
  .brand span {
    font-size: var(--step-0);
  }

  .actions .btn {
    width: 100%;
  }

  .video-play__disc {
    width: 50px;
    height: 50px;
  }
}

/* 320px reflow: nothing may exceed the viewport. */
@media (max-width: 360px) {
  .gallery,
  .gallery--compact,
  .grid-3,
  .grid-4,
  .tiles,
  .video-grid,
  .steps,
  .contact-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .brand img {
    width: 30px;
    height: 30px;
  }
}

/* Touch and pen pointers get the full 44px target on every control. */
@media (pointer: coarse) {
  .btn--small,
  .site-footer a,
  .nav-links a {
    min-height: var(--tap);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .tile:hover {
    transform: none;
  }

  .tile:hover .tile__media img {
    transform: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

@media (forced-colors: active) {
  .btn,
  .card,
  .tile,
  .price-table,
  .lightbox {
    border: 1px solid CanvasText;
  }
}

@media print {
  .site-nav,
  .float-wa,
  .lightbox {
    display: none !important;
  }
}
