/* Nielsen Enterprises public site.
   Palette comes from the shop: blued steel, mill-finish aluminum, and the red of the logo swoosh.
   One typeface (Archivo) set condensed and heavy for headings, like the wordmark, and regular width for reading. */

@font-face {
  font-family: 'Archivo';
  src: url('/fonts/archivo-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --ink: #141c24;
  --ink-soft: #22303c;
  --steel: #56636e;
  --line: #d3d9de;
  --mill: #eef1f3;
  --paper: #ffffff;
  --red: #e10600;
  --red-deep: #b40500;
  --blue: #1b5a8c;

  --font: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --wrap: 1200px;
  --gutter: 24px;
  --radius: 3px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--blue); text-underline-offset: 0.18em; }
a:hover { color: var(--red-deep); }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

h1, h2, h3, h4 {
  margin: 0;
  font-stretch: 72%;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }

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

.button {
  display: inline-block;
  padding: 0.8em 1.4em;
  border: 2px solid var(--red);
  border-radius: var(--radius);
  background: var(--red);
  color: #fff;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}
.button:hover { background: var(--red-deep); border-color: var(--red-deep); color: #fff; }
.button-ghost { background: transparent; border-color: rgba(255, 255, 255, 0.7); }
.button-ghost:hover { background: #fff; border-color: #fff; color: var(--ink); }
.button-light { background: #fff; border-color: #fff; color: var(--ink); }
.button-light:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- header and navigation ---------- */

.edit-bar { background: var(--ink); color: #fff; font-size: 0.875rem; padding: 6px var(--gutter); display: flex; gap: 16px; flex-wrap: wrap; }
.edit-bar a { color: #fff; }

.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: block; flex: none; }
.brand img { display: block; width: auto; height: 52px; }

.site-nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-link { display: block; padding: 26px 10px; color: var(--ink); font-weight: 600; text-decoration: none; }
.nav-link:hover, .nav-link.is-active { color: var(--red-deep); }
.nav-link.is-active { box-shadow: inset 0 -3px 0 var(--red); }

.panel-toggle { width: 28px; height: 28px; margin-left: -8px; padding: 0; border: 0; background: none; cursor: pointer; }
.panel-toggle::before {
  content: ''; display: block; width: 7px; height: 7px; margin: 0 auto 3px;
  border-right: 2px solid var(--steel); border-bottom: 2px solid var(--steel); transform: rotate(45deg);
}

.nav-panel {
  display: none;
  position: absolute; top: 100%; left: 0;
  min-width: 250px; padding: 18px 20px;
  background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--red);
  box-shadow: 0 18px 40px rgba(20, 28, 36, 0.16);
}
.nav-panel.is-wide { left: -180px; grid-template-columns: repeat(3, minmax(190px, auto)); gap: 28px; }
.nav-item:hover > .nav-panel, .nav-item:focus-within > .nav-panel, .nav-item.is-open > .nav-panel { display: block; }
.nav-item:hover > .nav-panel.is-wide, .nav-item:focus-within > .nav-panel.is-wide, .nav-item.is-open > .nav-panel.is-wide { display: grid; }
.nav-panel ul { list-style: none; margin: 0; padding: 0; }
.nav-panel li a { display: block; padding: 5px 0; color: var(--ink); text-decoration: none; white-space: nowrap; }
.nav-panel li a:hover { color: var(--red-deep); text-decoration: underline; }
.nav-group-title { display: block; margin-bottom: 6px; padding-bottom: 6px; border-bottom: 1px solid var(--line); color: var(--ink); font-stretch: 72%; font-weight: 800; font-size: 1.2rem; text-decoration: none; }

.nav-actions { display: flex; align-items: center; gap: 18px; }
.nav-phone { color: var(--ink); font-weight: 700; text-decoration: none; white-space: nowrap; }
.nav-actions .button { padding: 0.6em 1.1em; white-space: nowrap; }
.nav-toggle, .header-call { display: none; }

@media (max-width: 1080px) {
  .nav-phone { display: none; }
}

/* Between the phone menu and a full desktop width, a panel hung from its own menu item runs off the right edge.
   Line it up with the right edge of the header instead. */
@media (min-width: 901px) and (max-width: 1080px) {
  .header-row { position: relative; }
  .nav-item.has-wide { position: static; }
  .nav-panel.is-wide { left: auto; right: var(--gutter); }
}

/* Touch screens wide enough for the full menu: hover does not exist, so the arrow is the way in. Make it finger-sized. */
@media (hover: none) and (min-width: 901px) {
  .panel-toggle { width: 40px; height: 44px; margin-left: -10px; }
}

@media (max-width: 900px) {
  .header-row { min-height: 64px; flex-wrap: wrap; }
  .brand img { height: 42px; }
  .nav-toggle {
    display: block; margin-left: auto; padding: 8px 14px;
    border: 2px solid var(--ink); border-radius: var(--radius); background: none; color: var(--ink); font: inherit; font-weight: 700; cursor: pointer;
  }
  /* Phones: one tap to call, always in reach in the sticky header. */
  .header-call {
    display: inline-flex; align-items: center; gap: 6px; margin-left: auto; padding: 8px 14px;
    border: 2px solid var(--red); border-radius: var(--radius); background: var(--red); color: #fff; font-weight: 700; text-decoration: none;
  }
  .header-call:hover { background: var(--red-deep); border-color: var(--red-deep); color: #fff; }
  .header-call svg { width: 16px; height: 16px; fill: currentColor; }
  .header-call + .nav-toggle { margin-left: 10px; }
  /* While the menu is open, the page behind it stays put. */
  html.menu-open { overflow: hidden; }
  .site-nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding-bottom: 16px; max-height: calc(100vh - 64px); max-height: calc(100dvh - 64px); overflow-y: auto; overscroll-behavior: contain; }
  .site-nav.is-open { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-item { flex-wrap: wrap; border-top: 1px solid var(--line); }
  .nav-link { flex: 1; padding: 14px 0; }
  .nav-link.is-active { box-shadow: none; }
  .panel-toggle { width: 44px; height: 44px; margin: 0; }
  .nav-panel, .nav-panel.is-wide { position: static; flex-basis: 100%; min-width: 0; padding: 0 0 12px 12px; border: 0; box-shadow: none; }
  .nav-item:hover > .nav-panel, .nav-item:focus-within > .nav-panel,
  .nav-item:hover > .nav-panel.is-wide, .nav-item:focus-within > .nav-panel.is-wide { display: none; }
  .nav-item.is-open > .nav-panel, .nav-item.is-open > .nav-panel.is-wide { display: block; }
  .nav-group { margin-bottom: 12px; }
  .nav-panel li a { white-space: normal; padding: 8px 0; }
  .nav-actions { border-top: 1px solid var(--line); padding-top: 16px; justify-content: space-between; }
  .nav-phone { display: block; }
}

/* ---------- home: hero and title block ---------- */

.hero { position: relative; display: flex; align-items: center; min-height: min(78vh, 680px); background: var(--ink); color: #fff; overflow: hidden; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20, 28, 36, 0.94) 0%, rgba(20, 28, 36, 0.8) 42%, rgba(20, 28, 36, 0.15) 100%);
}
.hero-content { position: relative; z-index: 1; padding-block: 72px 132px; }
.hero h1 { max-width: 16ch; font-size: clamp(2.75rem, 7.2vw, 5.75rem); font-stretch: 66%; font-weight: 800; line-height: 0.95; }
.hero-text { max-width: 34em; margin: 28px 0 32px; font-size: 1.2rem; color: #e3e8ec; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-more { margin: 16px 0 0; }
.hero-more a { color: #fff; font-weight: 600; }
.hero-more a::after { content: ' \2192'; }

/* A drawing title block: the shop's vital statistics, laid out the way they sit in the corner of a print. */
.title-block {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.7fr repeat(4, 1fr);
  margin: -64px 0 0; background: var(--paper); border: 2px solid var(--ink);
}
.title-block > div { padding: 14px 18px 16px; border-left: 1px solid var(--ink); }
.title-block > div:first-child { border-left: 0; }
.title-block dt { margin-bottom: 6px; color: var(--steel); font-size: 0.8125rem; font-weight: 500; }
.title-block dd { margin: 0; font-stretch: 72%; font-weight: 800; font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.05; }
.title-block-shop dd { font-size: clamp(1.2rem, 1.9vw, 1.5rem); }
.title-block dd span { display: block; margin-top: 4px; color: var(--steel); font-stretch: 100%; font-weight: 400; font-size: 0.9375rem; line-height: 1.35; }

@media (max-width: 900px) {
  .hero::after { background: linear-gradient(180deg, rgba(20, 28, 36, 0.86), rgba(20, 28, 36, 0.72)); }
  .hero-content { padding-block: 56px 96px; }
  .title-block { grid-template-columns: 1fr 1fr; margin-top: -48px; }
  .title-block > div { border-left: 0; border-top: 1px solid var(--ink); }
  .title-block > div:nth-child(odd) { border-left: 1px solid var(--ink); }
  .title-block > .title-block-shop { grid-column: 1 / -1; border: 0; }
}

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

.section { padding-block: 88px; }
.section-ink { background: var(--ink); color: #fff; }
.section-mill { background: var(--mill); }

.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 48px; align-items: end; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); }
.section-head p { margin: 0; max-width: 34em; color: var(--steel); }
.section-ink .section-head p { color: #c3ccd3; }

@media (max-width: 760px) {
  .section { padding-block: 60px; }
  .section-head { grid-template-columns: 1fr; margin-bottom: 28px; }
}

/* Linked work items: used for services on the home page and for sub-pages of a section. */
.work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 40px 32px; list-style: none; margin: 0; padding: 0; }
.work-grid.after-prose { margin-top: 48px; }
.work { display: block; height: 100%; padding-bottom: 4px; color: var(--ink); text-decoration: none; }
.work img { display: block; width: 100%; aspect-ratio: 37 / 22; object-fit: cover; background: var(--mill); }
.work h2, .work h3 { margin: 16px 0 6px; padding-top: 14px; border-top: 2px solid var(--ink); font-size: 1.5rem; }
.work img + h2, .work img + h3 { margin-top: 0; border-top: 0; border-bottom: 0; box-shadow: inset 0 3px 0 var(--ink); }
.work p { margin: 0; color: var(--steel); font-size: 1rem; }
.work:hover { color: var(--ink); }
.work:hover h2, .work:hover h3 { color: var(--red-deep); box-shadow: inset 0 3px 0 var(--red); }
.work:hover img { filter: brightness(1.06); }

/* Phones: a full-width photo per item makes a list of six nearly three screens long.
   Show a square thumbnail beside the title instead, like an index. */
@media (max-width: 620px) {
  .work-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .work-grid > li { border-top: 1px solid var(--line); }
  .work-grid > li:last-child { border-bottom: 1px solid var(--line); }
  .work { padding-block: 16px; }
  .work:has(> img) { display: grid; grid-template-columns: 104px minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 16px; }
  .work img { grid-row: span 2; aspect-ratio: 1; }
  .work h2, .work h3, .work img + h2, .work img + h3 { margin: 0 0 4px; padding: 0; border: 0; box-shadow: none; font-size: 1.35rem; }
  .work:hover h2, .work:hover h3 { box-shadow: none; }
  .work p { font-size: 0.9375rem; line-height: 1.5; }
}

.software-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255, 255, 255, 0.28); }
.software-list li { border-bottom: 1px solid rgba(255, 255, 255, 0.28); }
.software-list a { display: grid; grid-template-columns: 148px minmax(0, 0.8fr) minmax(0, 1.4fr); gap: 28px; align-items: center; padding: 20px 0; color: #fff; text-decoration: none; }
.software-list img, .software-thumb { display: block; width: 148px; height: auto; aspect-ratio: 37 / 22; object-fit: cover; }
.software-thumb { background: rgba(255, 255, 255, 0.06); }
.software-name { font-stretch: 72%; font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.05; }
.software-summary { color: #c3ccd3; }
.software-list a:hover .software-name { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 3px; text-underline-offset: 0.2em; }

@media (max-width: 760px) {
  .software-list a { grid-template-columns: 96px 1fr; gap: 6px 16px; }
  .software-list img, .software-thumb { width: 96px; grid-row: span 2; align-self: start; }
}

.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: start; }
.about-image { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about-text h2 { margin-bottom: 24px; font-size: clamp(2rem, 4.2vw, 3.25rem); }

@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; gap: 28px; }
  .about-image { aspect-ratio: 16 / 10; }
}

.quotes { columns: 3 300px; column-gap: 28px; }
.quote { break-inside: avoid; margin: 0 0 28px; padding: 26px 26px 22px; background: var(--paper); border-left: 4px solid var(--red); }
.quote blockquote { margin: 0; }
.quote blockquote p { margin: 0 0 18px; font-size: 1.125rem; line-height: 1.5; }
.quote figcaption { display: flex; align-items: center; gap: 12px; color: var(--steel); font-size: 0.9375rem; line-height: 1.35; }
.quote figcaption img { width: 44px; height: 44px; object-fit: contain; }
.quote figcaption strong { color: var(--ink); }

.news-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px 48px; list-style: none; margin: 0; padding: 0; }
.news-list li { padding-top: 16px; border-top: 2px solid var(--ink); }
.news-list time, .post-list time { color: var(--steel); font-size: 0.9375rem; }
.news-list h3 { margin: 6px 0 10px; font-size: 1.6rem; }
.news-list h3 a, .post-list h2 a { color: var(--ink); text-decoration: none; }
.news-list h3 a:hover, .post-list h2 a:hover { color: var(--red-deep); text-decoration: underline; }
.news-list p { margin: 0; color: var(--steel); }

/* ---------- call to action and footer ---------- */

.cta { background: var(--red); color: #fff; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; padding-block: 48px; }
.cta h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
.cta p { margin: 8px 0 0; font-size: 1.125rem; }
.cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.cta-phone { color: #fff; font-weight: 700; }
.cta-phone:hover { color: #fff; }

.site-footer { background: var(--ink); color: #c3ccd3; font-size: 0.9688rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #fff; text-decoration-color: var(--red); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 0.8fr; gap: 40px; padding-block: 64px 40px; }
.footer-about img { display: block; width: 176px; height: auto; margin-bottom: 18px; }
.footer-about p { max-width: 26em; }
.site-footer h2 { margin-bottom: 14px; color: #fff; font-size: 1.25rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-block: 20px 28px; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.footer-base p { margin: 0; }
.social { display: flex; flex-wrap: wrap; gap: 20px; }
.social li { margin: 0; }

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; padding-block: 48px 32px; }
  /* Finger-sized links: each one gets its own tappable band instead of a 17px line. */
  .site-footer li { margin-bottom: 0; }
  .site-footer li a, .footer-visit a { display: inline-block; padding-block: 7px; }
}
@media (max-width: 520px) {
  /* Short columns side by side; the contact list, with its long addresses, gets the full width. */
  .footer-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 20px; padding-block: 40px 24px;
    grid-template-areas: 'about about' 'visit site' 'contact contact';
  }
  .footer-about { grid-area: about; }
  .footer-visit { grid-area: visit; }
  .footer-site { grid-area: site; }
  .footer-contact { grid-area: contact; }
  .footer-about img { width: 136px; margin-bottom: 12px; }
  .footer-about p { margin: 0; }
  .site-footer h2 { margin-bottom: 6px; }
  .footer-base { padding-block: 16px 24px; }
  .social { gap: 4px 20px; }
  .social a { display: inline-block; padding-block: 7px; }
}

/* ---------- inner pages ---------- */

.draft-note { margin: 0; padding: 10px var(--gutter); background: #fff3c4; color: #5c4400; text-align: center; font-weight: 600; }

.page-head { background: var(--ink); color: #fff; }
.page-head-row { display: grid; grid-template-columns: minmax(0, 1fr); align-items: stretch; }
.page-head.has-image .page-head-row { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; }
.page-head-text { align-self: center; padding-block: 56px; }
.page-head h1 { font-size: clamp(2.4rem, 5.4vw, 4.25rem); font-stretch: 68%; line-height: 0.98; }
.page-summary { max-width: 36em; margin: 20px 0 0; color: #dbe1e6; font-size: 1.1875rem; }
.page-head-image { display: block; width: 100%; height: 100%; min-height: 280px; max-height: 420px; object-fit: cover; }

.crumbs { display: flex; flex-wrap: wrap; gap: 4px 0; margin-bottom: 18px; font-size: 0.9375rem; }
.crumbs a { color: #c3ccd3; text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs a + a::before { content: '/'; display: inline-block; margin: 0 10px; color: #7f8b95; }

@media (max-width: 860px) {
  .page-head.has-image .page-head-row { grid-template-columns: 1fr; gap: 0; }
  .page-head-text { padding-block: 40px 32px; }
  .page-head-image { height: auto; min-height: 0; aspect-ratio: 16 / 9; margin-bottom: 32px; }
}
@media (min-width: 621px) and (max-width: 860px) {
  /* Tablets held upright: a full-width 16:9 picture fills most of the screen before the page starts. */
  .page-head-image { aspect-ratio: 2 / 1; }
}

.page-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; padding-block: 64px 96px; align-items: start; }
.page-body.is-section { grid-template-columns: minmax(0, 1fr); }
.page-body.is-article { grid-template-columns: minmax(0, 46rem); }
.page-body.is-section .prose { max-width: 46rem; font-size: 1.1875rem; }

.page-aside { position: sticky; top: 100px; display: grid; gap: 28px; }
.side-nav h2 { padding-bottom: 12px; border-bottom: 2px solid var(--ink); font-size: 1.375rem; }
.side-nav h2 a { color: var(--ink); text-decoration: none; }
.side-nav ul { list-style: none; margin: 0; padding: 0; }
.side-nav li a { display: block; padding: 9px 0 9px 14px; border-bottom: 1px solid var(--line); border-left: 3px solid transparent; color: var(--ink); text-decoration: none; }
.side-nav li a:hover { color: var(--red-deep); border-left-color: var(--line); }
.side-nav li a[aria-current] { border-left-color: var(--red); font-weight: 700; }
.side-quote { padding: 24px; background: var(--mill); }
.side-quote h2 { margin-bottom: 10px; font-size: 1.5rem; }
.side-quote p { color: var(--steel); font-size: 1rem; }
.side-phone { display: block; margin-top: 14px; color: var(--ink); font-weight: 700; }

.section-jump { display: none; }

@media (max-width: 960px) {
  .page-body { grid-template-columns: 1fr; gap: 48px; padding-block: 40px 64px; }
  .page-aside { position: static; }
  /* The same links now sit at the top of the page (.section-jump); don't repeat them below it. */
  .page-aside .side-nav { display: none; }

  .section-jump { display: block; margin-bottom: -16px; border: 2px solid var(--ink); }
  .section-jump summary {
    display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 16px;
    font-weight: 700; cursor: pointer; list-style: none;
  }
  .section-jump summary::-webkit-details-marker { display: none; }
  .section-jump summary span { color: var(--steel); font-weight: 400; font-size: 0.9375rem; }
  .section-jump summary::after {
    content: ''; width: 8px; height: 8px; margin: -4px 4px 0 auto;
    border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg);
  }
  .section-jump details[open] summary::after { margin-top: 4px; transform: rotate(-135deg); }
  .section-jump ul { list-style: none; margin: 0; padding: 0 16px 6px; border-top: 1px solid var(--line); }
  .section-jump li a {
    display: block; padding: 11px 0 11px 12px; border-bottom: 1px solid var(--line); border-left: 3px solid transparent;
    color: var(--ink); text-decoration: none;
  }
  .section-jump li:last-child a { border-bottom: 0; }
  .section-jump li a[aria-current] { border-left-color: var(--red); font-weight: 700; }
}

/* ---------- long-form text written in the CMS ---------- */

.prose { max-width: 44rem; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose h2 { margin: 2.2em 0 0.6em; padding-top: 0.7em; border-top: 2px solid var(--ink); font-size: 2rem; }
.prose h3 { margin: 1.8em 0 0.4em; font-size: 1.4rem; }
.prose h4 { margin: 1.5em 0 0.4em; font-size: 1.15rem; font-stretch: 100%; font-weight: 700; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.2em; }
.prose li { margin-bottom: 0.35em; padding-left: 0.2em; }
.prose ul li::marker { color: var(--red); }
.prose img { display: block; margin: 1.6em 0; border: 1px solid var(--line); }
.prose p:has(> img + img) { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 1.6em 0; }
.prose p:has(> img + img) img { width: 100%; margin: 0; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--red); color: var(--steel); }
.prose table { width: 100%; margin: 1.6em 0; border-collapse: collapse; font-size: 1rem; }
.prose th, .prose td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--mill); }
.prose .video { position: relative; aspect-ratio: 16 / 9; margin: 1.6em 0; }
.prose .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.post-list { list-style: none; margin: 0; padding: 0; }
.post-list li { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 32px; padding-block: 32px; border-top: 2px solid var(--ink); }
.post-list li:first-child { padding-top: 0; border-top: 0; }
.post-list img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post-list h2 { margin: 6px 0 12px; font-size: 2rem; }
.post-list p { max-width: 40em; margin: 0; color: var(--steel); }
.post-image { display: block; width: 100%; margin-bottom: 32px; }
.back-link { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }
.empty { color: var(--steel); }

@media (max-width: 700px) {
  .post-list li { grid-template-columns: 1fr; gap: 16px; }
}

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

.contact { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 64px; padding-block: 64px 96px; align-items: start; }
.contact-details dl { margin: 32px 0 0; }
.contact-details dt { margin-top: 20px; padding-top: 14px; border-top: 2px solid var(--ink); font-stretch: 72%; font-weight: 800; font-size: 1.25rem; }
.contact-details dd { margin: 6px 0 0; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { margin-bottom: 20px; }
.field label { display: block; margin-bottom: 6px; font-weight: 600; }
.field label span { color: var(--steel); font-weight: 400; font-size: 0.875rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid #8b97a1; border-radius: var(--radius); background: var(--paper); color: var(--ink); font: inherit;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.field [aria-invalid='true'] { border-color: var(--red); border-width: 2px; }
.field-error, .form-error { margin: 6px 0 0; color: var(--red-deep); font-weight: 600; font-size: 0.9375rem; }
.form-error { margin-bottom: 20px; padding: 12px 16px; border-left: 4px solid var(--red); background: #fdeceb; }
.field-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { margin-bottom: 32px; padding: 20px 24px; border-left: 4px solid #1f7a3d; background: #e9f6ed; }
.notice h2 { margin-bottom: 6px; font-size: 1.5rem; }
.notice p { margin: 0; }

@media (max-width: 860px) {
  .contact { grid-template-columns: 1fr; gap: 48px; padding-block: 40px 64px; }
}
@media (max-width: 520px) {
  .field-row { grid-template-columns: 1fr; gap: 0; }
  :root { --gutter: 16px; }
}

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

/* ---------- quote form ---------- */
.field input[type='file'] { padding: 10px; background: var(--mill); cursor: pointer; }
.field input[type='file']::file-selector-button {
  margin-right: 14px; padding: 8px 14px; border: 1px solid var(--ink); background: #fff; color: var(--ink);
  font: inherit; font-weight: 600; cursor: pointer;
}
.field-hint { margin: 6px 0 0; color: var(--steel); font-size: 0.9375rem; }
.field input::placeholder { color: #8b96a0; }
.page-promise { margin: 12px 0 0; color: #fff; font-weight: 600; }
.form-topic { margin: 0 0 20px; padding: 12px 16px; border-left: 4px solid var(--blue); background: var(--mill); }
.form-section { margin: 12px 0 16px; padding-top: 0.7em; border-top: 2px solid var(--ink); font-size: 1.375rem; }
.quote-pointer { margin: 20px 0 0; padding: 14px 16px; background: var(--mill); }

/* ---------- service pages: facts at a glance, and what to send ---------- */
.spec-block { display: grid; grid-template-columns: 1fr 1fr; max-width: 44rem; margin: 0 0 40px; border: 2px solid var(--ink); }
.spec-block > div { padding: 12px 16px 14px; border-top: 1px solid var(--ink); }
.spec-block > div:nth-child(even) { border-left: 1px solid var(--ink); }
.spec-block > div:nth-child(-n + 2) { border-top: 0; }
.spec-block > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.spec-block dt { margin-bottom: 4px; color: var(--steel); font-size: 0.8125rem; font-weight: 500; }
.spec-block dd { margin: 0; font-stretch: 80%; font-weight: 800; font-size: 1.1875rem; line-height: 1.2; }

.send-us { max-width: 44rem; margin-top: 56px; }
.send-us > h2 { margin-bottom: 20px; padding-top: 0.7em; border-top: 2px solid var(--ink); font-size: 2rem; }
.send-us ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; margin: 0 0 20px; padding: 0; counter-reset: send; }
.send-us li { counter-increment: send; padding: 16px; background: var(--mill); }
.send-us li::before { content: counter(send); display: block; margin-bottom: 8px; color: var(--red); font-stretch: 72%; font-weight: 800; font-size: 1.75rem; line-height: 1; }
.send-us li strong { display: block; }
.send-us p { margin: 0; }
.send-us p.send-us-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 20px; }

.side-lead { margin: 0 0 16px; padding: 10px 0; border-block: 1px solid var(--line); }
.side-quote .side-lead span { display: block; color: var(--steel); font-size: 0.8125rem; font-weight: 500; }
.side-quote .side-lead strong { color: var(--ink); font-stretch: 80%; font-weight: 800; font-size: 1.375rem; line-height: 1.2; }

/* Testimonials that belong to one page, shown on that page. */
.page-quotes { margin-top: 56px; }
.page-quotes > h2 { margin-bottom: 24px; padding-top: 0.7em; border-top: 2px solid var(--ink); font-size: 2rem; }
.page-quotes .quotes { columns: 2 300px; }
.page-quotes .quote { background: var(--mill); }

@media (max-width: 620px) {
  .spec-block { grid-template-columns: 1fr; }
  .spec-block > div:nth-child(even) { border-left: 0; }
  .spec-block > div:nth-child(2) { border-top: 1px solid var(--ink); }
  .send-us ol { grid-template-columns: 1fr; }
}

/* ---------- questions and answers on a page ---------- */
.faq { max-width: 44rem; margin-top: 56px; }
.faq > h2 { margin-bottom: 8px; padding-top: 0.7em; border-top: 2px solid var(--ink); font-size: 2rem; }
.faq-item { padding: 20px 0; border-bottom: 1px solid var(--line); }
.faq-item h3 { margin: 0 0 8px; font-size: 1.3rem; }

/* ---------- 3D animations ---------- */
/* Only what shapes the page is here. What a running animation needs (canvas, step labels, pause button) is in
   /css/3d.css, which public/js/3d/boot.js loads with the animation, so this file stays small for the first paint. */

/* Home page: the animation plays on the right of the hero, over the photo. */
.hero-content { z-index: 2; }
.hero-scene { position: absolute; z-index: 1; top: 0; right: 0; bottom: 0; width: 46%; }
.hero-scene::before {
  content: ''; position: absolute; inset: 0 0 0 -30%; opacity: 0; transition: opacity 0.9s ease;
  background: radial-gradient(ellipse 62% 70% at 58% 48%, rgba(20, 28, 36, 0.93) 0%, rgba(20, 28, 36, 0.82) 55%, rgba(20, 28, 36, 0) 100%);
}
/* The dark backing appears with the animation, or with the still picture where 3D does not run. */
.hero-scene.scene-live::before, .hero-scene:has(img[src])::before { opacity: 1; }
.hero-scene img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: contain; }
/* Text and buttons stay clickable; the empty part of the content column lets the pointer through to the animation. */
.hero.has-scene .hero-content { pointer-events: none; }
.hero.has-scene .hero-content > * { pointer-events: auto; }

@media (min-width: 901px) {
  /* Keep the headline and introduction clear of the animation. */
  .hero.has-scene h1 { max-width: min(16ch, 54%); }
  .hero.has-scene .hero-text { max-width: min(34em, 50%); }
}

/* Inner pages: the animation sits in a frame, like a view on a drawing. The still shows until it starts. */
.viewport { max-width: 44rem; margin: 0 0 40px; }
.viewport-stage { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border: 2px solid var(--ink); background: var(--ink); }
.viewport-stage img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; }
.viewport figcaption { margin-top: 10px; color: var(--steel); font-size: 0.9375rem; }

.section-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 30rem); gap: 32px 56px; align-items: center; }
.section-intro .viewport { margin: 0; }
.section-intro .viewport-stage { aspect-ratio: 4 / 3; }

.shortrun { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px 56px; align-items: center; }
.shortrun h2 { margin-bottom: 20px; font-size: clamp(2rem, 4.2vw, 3.25rem); }
.shortrun-text p { max-width: 34em; color: var(--steel); font-size: 1.125rem; }
.shortrun-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 28px; }
.shortrun .viewport { max-width: none; margin: 0; }

@media (max-width: 900px) {
  /* On a phone the hero animation sits under the buttons instead of beside the headline. */
  .hero.has-scene { flex-direction: column; align-items: stretch; }
  .hero.has-scene .hero-content { padding-bottom: 8px; }
  .hero-scene { position: relative; width: 100%; height: 300px; margin-bottom: 56px; }
  .hero-scene::before { inset: -40px 0 -56px; background: linear-gradient(180deg, rgba(20, 28, 36, 0) 0%, rgba(20, 28, 36, 0.9) 24%, rgba(20, 28, 36, 0.9) 100%); }
  .section-intro, .shortrun { grid-template-columns: 1fr; }
  .section-intro .viewport-stage { aspect-ratio: 16 / 10; }
}
@media (max-width: 620px) {
  .viewport-stage { aspect-ratio: 4 / 3; }
  /* Phones: keep the hero within about one screen, so the shop's numbers show without a long scroll. */
  .hero-content { padding-top: 36px; }
  .hero-text { margin: 18px 0 24px; font-size: 1.0625rem; }
  .hero-scene { height: 220px; margin-bottom: 52px; }
}

/* ---------- following up: the reply promise beside the send button, and the software demo links ---------- */
.form-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form-promise { margin: 0; color: var(--steel); font-size: 0.9375rem; }
.side-link { display: block; margin-top: 14px; font-weight: 600; }
.software-cta { margin: 32px 0 0; }
