@font-face {
  font-family: "Vampiro One";
  src: url("/assets/fonts/vampiro-one-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --ink: #182a2b;
  --ink-soft: #334848;
  --muted: #526363;
  --paper: #f8f6ef;
  --paper-2: #eeebe2;
  --paper-light: #fdfcf8;
  --paper-grain: url("/assets/images/paper-grain.png");
  --forest: #254343;
  --accent: #eadbca;
  --rust: #91472f;
  --rust-deep: #733623;
  --tide: #eadbca;
  --line: #cfcec4;
  --line-light: #f8f6ef42;
  --page: min(100% - 96px, 1344px);
  --section: clamp(64px, 8vw, 116px);
  --header: 72px;
  --photo-header-scrim: linear-gradient(180deg, #142220ba, #14222099 var(--header), transparent calc(var(--header) + 95px));
  --photo-paper-fade: linear-gradient(#000 0 28%, #000e 44%, #000c 57%, #0008 69%, #0004 80%, #0002 86%, #00000006 92%, transparent 96% 100%);
  --radius: 0;
  --font-body: "Helvetica Neue", Arial, sans-serif;
  --font-headline: "Vampiro One", Georgia, serif;
  --heading-section: clamp(1.9rem, 1.4rem + 2.25vw, 3.65rem);
  --heading-narrative: clamp(1.7rem, 1.12rem + 1.75vw, 2.9rem);
  --focus: var(--rust);
  --motion-out: cubic-bezier(.23, 1, .32, 1);
}

html { scroll-padding-top: 16px; }

body {
  min-width: 0;
  background: var(--paper-grain) var(--paper);
  font-size: 1rem;
  line-height: 1.6;
  accent-color: var(--forest);
  caret-color: var(--forest);
}

:is(main, footer) :is(.board-catalogue, .related-shapes, .custom-process, .custom-form-section, .legal-page) {
  background-image: var(--paper-grain);
}


body::before { content: none; }
:where(main, footer, nav, dialog, section)[hidden] { display: none; }
::selection { color: var(--ink); background: var(--accent); }
:focus-visible { outline-color: var(--focus); }
:is(.dark-section, .site-footer, .mobile-menu, .cookie-banner) :focus-visible { outline-color: var(--accent); }

h1, h2, h3, h4, .footer-title, .mobile-menu nav > a, .mobile-menu nav .mobile-nav-primary {
  font-family: var(--font-headline);
  font-style: normal;
  font-weight: 400;
  font-synthesis: none;
  line-height: .98;
}
h1, h2 { letter-spacing: 0; }
h1 { font-size: clamp(2.8rem, 7.5vw, 6rem); }
h2 { font-size: clamp(2.25rem, 5.6vw, 5rem); }

.faq-section header h2 {
  font-size: var(--heading-narrative);
  line-height: 1.08;
  text-wrap: balance;
}

.eyebrow, .text-link, .button-link {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}
.eyebrow { font-size: .8rem; }

.text-link { font-size: .875rem; gap: 12px; }
.text-link span { border-bottom: 0; padding-bottom: 0; }
.text-link:hover span { text-decoration: underline; text-underline-offset: 5px; }
.button-link { gap: 16px; padding-inline: 16px; font-size: .875rem; }
.text-link svg, .button-link svg { width: 16px; height: 16px; }
.button-link.light { border-color: var(--accent); background: var(--accent); color: var(--ink); }
.button-link.light:is(:hover, :focus-visible) { border-color: var(--paper-light); }

:where(.icon-action:not([hidden], .menu-toggle)) {
  display: inline-flex;
}

:where(.icon-action) {
  flex: none;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

:where(.icon-action) svg {
  width: 20px;
  height: 20px;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.site-header {
  position: relative;
  z-index: 100;
  inset: auto;
  width: 100%;
  max-width: none;
  height: var(--header);
  grid-template-columns: minmax(120px, .8fr) auto minmax(max-content, .8fr);
  gap: clamp(24px, 3.6vw, 58px);
  padding: 0 max(48px, calc((100% - 1344px) / 2));
  border: 0;
  background: transparent;
  color: var(--ink);
  text-shadow: none;
  backdrop-filter: none;
  transition: none;
}

:is(.home-page, .header-over-photo) .site-header {
  position: absolute;
  inset: 0 0 auto;
}

.menu-open .site-header { position: sticky; inset: 0 0 auto; }
.menu-open :is(.home-page, .header-over-photo) .site-header { position: fixed; }

.brand { width: 118px; margin: 0; padding: 0; }
.brand img { filter: none; }
.desktop-nav { gap: clamp(20px, 2.5vw, 40px); }
.desktop-nav a, .header-cta {
  font: 650 .8125rem/1.3 var(--font-body);
  letter-spacing: .055em;
  text-transform: uppercase;
  white-space: nowrap;
}

.desktop-nav > a[data-active]::after,
.desktop-nav-primary[data-active]::after { transform: scaleX(1); }
.header-actions { justify-self: end; gap: clamp(8px, 1.4vw, 18px); }
.site-header .icon-action { width: 44px; padding: 0; border: 0; }
.site-header .icon-action:focus-visible { outline-offset: -2px; }
.header-cta {
  display: inline-flex;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding-inline: 12px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper-light);
}
.header-cta:hover { border-color: var(--forest); background: var(--forest); }
.header-cta svg {
  width: 18px;
  height: 18px;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: none;
  transition: none;
}
.desktop-nav .desktop-nav-primary { padding-inline-end: 44px; }
.desktop-nav-submenu-toggle { inset-inline-end: 0; width: 44px; }
.desktop-shape-submenu {
  top: calc(100% - 1px);
  visibility: hidden;
  border-color: var(--line);
  background: var(--paper-light);
  color: var(--ink);
  backdrop-filter: none;
}

.desktop-nav-group.is-open .desktop-shape-submenu { visibility: visible; }
.desktop-nav .desktop-shape-submenu a { border-color: var(--line); font-size: .875rem; }
.desktop-shape-submenu a span { color: var(--forest); }

.header-over-photo .site-header { color: var(--paper-light); }
.header-over-photo .brand img { filter: brightness(0) invert(1); }
.header-over-photo .header-cta { border-color: var(--accent); background: var(--accent); color: var(--ink); }
.header-over-photo .header-cta:hover { border-color: var(--paper-light); background: var(--paper-light); }
.header-over-photo .site-header :focus-visible { outline-color: var(--accent); }
.header-over-photo .desktop-shape-submenu :focus-visible { outline-color: var(--focus); }

.mobile-menu {
  inset: var(--header) 0 0;
  width: auto;
  max-width: none;
  padding: 24px max(20px, calc((100% - 676px) / 2)) 36px;
  background: var(--paper);
  color: var(--ink);
  overscroll-behavior: contain;
}

.mobile-menu:not([hidden]), .mobile-menu:not([hidden]) nav a,
.mobile-menu:not([hidden]) .mobile-menu-meta > a { animation: none; }
.mobile-menu nav > a, .mobile-menu nav .mobile-nav-primary {
  display: block;
  padding: 16px 0;
  border-color: var(--line);
  font-size: clamp(2rem, 7vw, 3.25rem);
  font-weight: 400;
  text-transform: uppercase;
}

.mobile-nav-group { border-color: var(--line); }
.mobile-shape-submenu { display: flex; flex-wrap: wrap; gap: 0 16px; padding: 0 0 8px; }
.mobile-menu nav .mobile-shape-submenu a { min-width: 44px; justify-content: center; padding: 0 8px; border: 0; font: 650 .8125rem/1.3 var(--font-body); letter-spacing: .045em; text-transform: uppercase; }
.mobile-menu nav .mobile-shape-submenu a span { display: none; }
.mobile-menu nav a[aria-current="page"] { color: var(--rust); }
.mobile-menu :focus-visible { outline-color: var(--focus); }
.mobile-menu-meta { gap: 8px; margin-top: 24px; }
.mobile-menu-meta .icon-action { border: 1px solid var(--line); border-radius: 50%; }

.photo-fade-hero {
  position: relative;
  display: grid;
  align-content: end;
  min-height: clamp(620px, 86svh, 870px);
  padding-block: calc(var(--header) + 54px) clamp(96px, 14svh, 146px);
  isolation: isolate;
  background: transparent;
  color: var(--ink);
}

.photo-fade-hero > figure {
  position: absolute;
  z-index: -1;
  inset: 0;
  margin: 0;
  overflow: hidden;
  background: var(--ink-soft);
  mask-image: var(--photo-paper-fade);
}

.photo-fade-hero > figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--photo-hero-focus, center);
}

.photo-fade-hero > figure::after {
  position: absolute;
  inset: 0;
  background:
    var(--photo-header-scrim),
    radial-gradient(ellipse 53% 56% at 17% 53%, #f8f6eff5 14%, #f8f6efda 38%, #f8f6ef91 62%, transparent 100%);
  pointer-events: none;
  content: "";
}

.photo-fade-copy {
  position: relative;
  width: var(--page);
  margin-inline: auto;
}

/* The film and its still share the same light falloff into the page. */
.home-hero {
  position: relative;
  isolation: isolate;
  min-height: 0;
  overflow: clip;
  background: transparent;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template: "copy board" auto / minmax(0, 1.28fr) minmax(0, .72fr);
  align-items: center;
  align-content: center;
  gap: clamp(20px, 3.5vw, 54px);
  width: var(--page);
  min-height: clamp(570px, 82svh, 920px);
  margin: 0 auto;
  padding: calc(var(--header) + clamp(20px, 5svh, 54px)) 0 clamp(22px, 4svh, 44px);
}

.home-hero-object {
  grid-area: board;
  justify-self: center;
  width: min(100%, 390px);
  min-width: 0;
}

.home-hero-board {
  position: relative;
  width: 100%;
  height: clamp(326px, 58svh, 625px);
  margin: 0;
}

.home-hero-board > :is(img, canvas) {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(9px 15px 12px #1728264d);
}

.home-hero-board > img {
  padding: 3.5% 0;
  object-fit: contain;
}

.home-hero-board > canvas { opacity: 0; }
.home-hero-board.has-live-board > canvas { opacity: 1; }
.home-hero-board.has-live-board > img { opacity: 0; }

.hero-motion-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  min-height: 44px;
  gap: 0 10px;
}

.hero-motion-controls:not(:has(button:not([hidden]))) { display: none; }

.hero-motion-controls button:not([hidden]) {
  display: inline-grid;
  place-items: center;
  inline-size: 44px;
  block-size: 44px;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--ink) 22%, transparent);
  border-radius: 50%;
  background: color-mix(in srgb, var(--paper) 60%, transparent);
  color: var(--ink);
  cursor: pointer;
}

.hero-motion-controls button:is(:hover, :focus-visible) {
  border-color: var(--ink);
  background: var(--paper-light);
}

.hero-motion-controls button svg { width: 22px; height: 22px; }
.hero-film-toggle[data-playing="true"] [data-icon-play],
.hero-film-toggle[data-playing="false"] [data-icon-pause],
.home-hero-board-control[data-paused="false"] [data-icon-play],
.home-hero-board-control[data-paused="true"] [data-icon-pause] { display: none; }

.hero-copy {
  grid-area: copy;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(12px, 1.5vw, 22px);
  min-width: 0;
  max-width: none;
}

.hero-grid .hero-copy h1 {
  align-self: auto;
  max-width: none;
  font-size: clamp(3.25rem, 6.6vw, 6.75rem);
  line-height: .9;
  letter-spacing: -.025em;
  text-transform: none;
  text-wrap: pretty;
}

.hero-grid h1 span { display: block; }

.hero-grid h1 .hero-title-subject {
  margin-block-start: .07em;
  font-size: .86em;
  line-height: .98;
}

.hero-grid h1 .hero-title-place {
  margin-block-start: .55em;
  color: var(--ink-soft);
  font: 600 clamp(.92rem, 1.5vw, 1.2rem) / 1.25 var(--font-body);
  letter-spacing: .025em;
}

.hero-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 0;
  border: 0;
}

.hero-bottom > p {
  max-width: 40ch;
  color: var(--ink-soft);
  font: inherit;
  font-size: 1.0625rem;
  line-height: 1.5;
}

.hero-bottom > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  flex-direction: row;
  gap: 4px 24px;
}

.home-hero .button-link {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper-light);
}

.home-hero .button-link:hover {
  background: var(--forest);
  border-color: var(--forest);
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: .8125rem;
}

.hero-facts strong {
  color: var(--ink);
  font-size: 1.04rem;
  font-weight: 700;
  white-space: nowrap;
}

.hero-media { position: absolute; z-index: 0; inset: 0; overflow: hidden; pointer-events: none; mask-image: var(--photo-paper-fade); }
.hero-screen { position: absolute; inset: 0; overflow: hidden; background: var(--paper); }
.hero-screen > :is(img, video) { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: none; }
.hero-screen > img { object-position: 59% 52%; filter: saturate(.78) sepia(.08); }
.hero-screen > video { opacity: 0; object-position: 57% 52%; transition: opacity 620ms var(--motion-out); }
.hero-screen.has-frame > video { opacity: 1; }

.hero-media::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    var(--paper-grain),
    linear-gradient(0deg, transparent 66%, #f8f6efba),
    radial-gradient(ellipse 72% 82% at 26% 49%, #f8f6eff2 18%, #f8f6efdc 40%, #f8f6ef9c 68%, #f8f6ef28 96%, transparent);
  content: "";
}

.home-family-section {
  position: relative;
  z-index: 1;
  margin-block-start: clamp(-148px, -10vw, -72px);
  padding-block: 36px clamp(64px, 8vw, 120px);
}
.home-family-heading {
  grid-template-columns: minmax(0, 1fr) minmax(0, .56fr);
  gap: 16px clamp(40px, 7vw, 104px);
  margin-bottom: 32px;
}
.home-family-heading h2 { max-width: 20ch; margin: 0; font-size: var(--heading-section); text-wrap: balance; }
.home-family-heading > div:last-child { gap: 0; padding: 0; }
.home-family-heading > div:last-child > p { max-width: 48ch; font: inherit; color: var(--ink-soft); }

.home-family-grid {
  gap: 0;
  border: 0;
  background: radial-gradient(ellipse 62% 54% at 50% 42%, #ebe6da 16%, transparent 86%);
}
.home-family-card, .home-family-card:nth-child(2), .home-family-card:nth-child(3) { border: 0; background: transparent; }
.home-family-card > a { grid-template-rows: auto 1fr; }
.home-family-card[data-shape="b52"] {
  --outline-height: 70%;
  --outline-mobile: 194px;
  --board-angle: -8deg;
}
.home-family-card[data-shape="sage"] {
  --outline-height: 82%;
  --outline-mobile: 216px;
  --board-angle: 2deg;
}
.home-family-card[data-shape="smooth"] {
  --outline-height: 94%;
  --outline-mobile: 242px;
  --board-angle: 7deg;
}
.home-family-media {
  aspect-ratio: 1 / 1.18;
  min-height: 0;
  overflow: visible;
  background: transparent;
}
.home-family-media::after { content: none; }
.home-family-card > a .home-family-media img,
.home-family-card > a:is(:hover, :focus-visible) .home-family-media img {
  inset: auto 0 5%;
  width: 100%;
  height: var(--outline-height);
  padding: 0;
  object-fit: contain;
  transform: rotate(var(--board-angle, 0deg));
  filter: drop-shadow(5px 10px 7px #182a2b26);
  transition: none;
}

.home-family-card > a:focus-visible .home-family-copy h3 { color: var(--rust); }
.home-family-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto 1fr;
  align-content: start;
  min-height: 0;
  gap: 6px 8px;
  padding: 16px clamp(8px, 1.67vw, 24px) 16px 0;
  border-top: 0;
  border-bottom: 1px solid var(--line);
}

.home-family-copy .eyebrow { grid-column: 1 / -1; color: var(--muted); }
.home-family-copy h3 { margin: 0; font-size: clamp(2rem, 3.35vw, 3.125rem); }
.home-family-size { align-self: center; color: var(--muted); font-size: .8125rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.home-family-copy > p:not(.eyebrow) { grid-column: 1 / -1; max-width: 36ch; margin: 4px 0 0; color: var(--ink-soft); font: inherit; }
.home-family-copy > .home-family-size { min-height: 0; gap: 0; margin: 0; border-bottom: 0; font: 600 .8125rem/1.4 var(--font-body); letter-spacing: 0; }

.home-model-story {
  display: grid;
  grid-template-columns: minmax(0, .59fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
  width: var(--page);
  min-height: 0;
  margin-inline: auto;
  padding-block: clamp(48px, 7vw, 96px);
  background: none;
}

.home-model-story::after { content: none; }
.home-model-story > .home-model-story-visual {
  position: static;
  z-index: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .62fr);
  align-items: end;
  gap: 0;
  margin: 0;
  padding: 0;
}

.home-model-story-visual img { width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: contain; }
.home-model-story > figure > img:first-child,
.home-model-story:hover > figure > img:first-child { filter: drop-shadow(5px 10px 7px #182a2b26); transform: none; transition: none; }
.home-model-story-visual img + img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 46%;
  filter: saturate(.72) sepia(.16);
  mix-blend-mode: multiply;
}
.home-model-story-copy { width: auto; align-self: center; margin: 0; padding: 0; }
.home-model-story-copy h2 { max-width: none; margin: 0 0 8px; font-size: clamp(3rem, 5.6vw, 5rem); }
.home-model-story-copy > .eyebrow { margin: 0 0 16px; color: var(--muted); }
.home-model-story-copy > p:not(.eyebrow) { max-width: 36ch; color: var(--ink-soft); font: inherit; }
.home-model-story-copy > div { margin-top: 16px; gap: 4px 20px; }

.home-heritage-brief {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .84fr);
  align-items: center;
  gap: clamp(24px, 7vw, 104px);
  padding-block: clamp(64px, 8vw, 120px);
}

.home-heritage-brief figure { margin: 0; }
.home-heritage-brief img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 49% 50%;
  filter: saturate(.62) sepia(.17) contrast(.94);
  mix-blend-mode: multiply;
}
.home-heritage-brief h2 { max-width: 15ch; margin: 0; font-size: var(--heading-section); text-wrap: balance; }
.home-heritage-brief > div:last-child { align-content: center; gap: 16px; padding: 0; }
.home-heritage-brief .lede { color: var(--ink-soft); font: inherit; }
.home-heritage-brief .text-link { justify-self: start; }

/* A photographic close, followed by the practical information visitors came for. */
.site-footer {
  --footer-gutter: max(48px, calc((100% - 1344px) / 2));
  --footer-secondary: #c5ceca;
  --footer-rule: #f8f6ef2e;
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: var(--ink);
  color: var(--paper-light);
}

.footer-lead {
  position: relative;
  isolation: isolate;
  overflow: clip;
}

.footer-visual,
.footer-lead::after {
  position: absolute;
  inset: 0;
  margin: 0;
  pointer-events: none;
}

.footer-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 58%;
  filter: saturate(.76);
}

.site-footer[data-footer-context="product"] .footer-visual img { object-position: 65% 53%; }
.site-footer[data-footer-context="service"] .footer-visual img { object-position: 66% 52%; }

.footer-lead::after {
  background:
    linear-gradient(90deg, #182a2bfa 3%, #182a2be9 29%, #182a2b85 53%, #182a2b17 100%),
    linear-gradient(0deg, var(--ink) 0 5%, #182a2bdf 15%, #182a2b12 39%);
  content: "";
}

.footer-content {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  min-height: clamp(388px, 37vw, 550px);
  padding: clamp(50px, 6vw, 91px) var(--footer-gutter) clamp(48px, 7vw, 98px);
}

.footer-title {
  max-width: 13ch;
  margin: 0;
  color: var(--paper-light);
  font: 400 clamp(3rem, 5.65vw, 5.8rem) / .94 var(--font-headline);
  letter-spacing: -.033em;
  text-wrap: balance;
}

.footer-intro {
  max-width: 42ch;
  margin: 20px 0 0;
  color: var(--paper-light);
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  line-height: 1.55;
  text-wrap: pretty;
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 22px;
  margin-top: 22px;
}

.footer-action {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  padding: 10px 16px;
  border: 1px solid var(--paper-light);
  background: var(--paper-light);
  color: var(--ink);
  font: 650 .875rem / 1.3 var(--font-body);
}

.footer-action svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}

.footer-action:hover { border-color: var(--accent); background-color: var(--accent); }
.footer-action--quiet { padding-inline: 0; border-color: transparent; background: none; color: var(--paper-light); }
.footer-action--quiet:hover { border-color: transparent; background: none; color: var(--accent); text-decoration: underline; }

.footer-directory {
  padding-inline: var(--footer-gutter);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, .8fr) minmax(0, .94fr) minmax(0, 1.08fr);
  gap: clamp(22px, 3.4vw, 48px);
  padding-block: clamp(28px, 4.2vw, 62px);
}

.site-footer--compact .footer-grid { padding-block-start: clamp(42px, 6vw, 84px); }

.footer-grid > * {
  display: grid;
  min-width: 0;
  align-content: start;
}

.footer-grid .footer-identity { gap: 13px; }

.footer-brand-lockup {
  display: flex;
  align-items: center;
  width: min(100%, 262px);
  gap: 10px;
}

.footer-brand-lockup > img,
.footer-brand-lockup > a { flex: 1 1 0; min-width: 0; }
.footer-brand-lockup > a { display: grid; align-items: center; min-height: 44px; }
.footer-brand-lockup > span { color: var(--footer-secondary); font-size: 1rem; }
.footer-brand-lockup :is(.footer-logo, .footer-shapers-logo) { display: block; width: 100%; height: auto; }

.footer-certifications {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-certifications img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: invert(1) grayscale(1) brightness(2);
  opacity: .9;
}

.footer-grid .footer-label {
  margin: 0 0 10px;
  color: var(--paper-light);
  font: 700 1rem / 1.35 var(--font-body);
  text-transform: none;
}

.footer-grid :is(p, address, a) { overflow-wrap: anywhere; }
.footer-grid :is(p, address) { max-width: 30ch; margin: 0; color: var(--footer-secondary); font: .9rem / 1.55 var(--font-body); }
.footer-grid > :not(.footer-identity) a { display: flex; align-items: center; gap: 7px; min-height: 38px; font-size: .9rem; }
.footer-grid > :not(.footer-identity) a.icon-action { justify-content: center; justify-self: start; min-height: 44px; }
.footer-grid address + a { margin-top: 4px; }
.footer-grid a:not(:has(img)):hover,
.footer-bottom :is(a, button):hover { text-decoration: underline; text-underline-offset: 4px; }

.site-footer :focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.footer-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px 24px;
  padding-block: 15px 24px;
  border-top: 1px solid var(--footer-rule);
  color: var(--footer-secondary);
  font: .75rem / 1.45 var(--font-body);
}

.footer-bottom p { margin: 0; }
.footer-bottom p:last-child { justify-self: end; text-align: end; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 0 16px; }
.footer-bottom :is(a, button) { display: flex; align-items: center; min-height: 44px; }
.footer-bottom button { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }

@media (hover: hover) {
  :is(.site-header, .mobile-menu-meta) .icon-action:hover { color: var(--rust); }
  .header-over-photo .site-header .icon-action:hover,
  .site-footer .icon-action:hover { color: var(--accent); }
}

.cookie-banner {
  right: 14px;
  bottom: max(14px, env(safe-area-inset-bottom));
  width: min(calc(100% - 28px), 425px);
  padding: 16px;
  border-color: var(--line);
  background: var(--paper-light);
  color: var(--ink);
  box-shadow: 0 4px 16px #182a2b19;
}

.cookie-banner div { margin-top: 10px; }
.cookie-banner button, .cookie-banner button:last-child { min-height: 44px; border-color: var(--line); background: transparent; font: 600 .8125rem/1.3 var(--font-body); letter-spacing: 0; text-transform: none; }
.cookie-banner button:hover, .cookie-banner button:last-child:hover { background: var(--paper-2); border-color: var(--muted); }
.cookie-banner :focus-visible { outline-color: var(--focus); }
.menu-open .cookie-banner { visibility: hidden; }

@media (max-width: 1100px) {
  .site-header { grid-template-columns: minmax(0, 1fr) auto; }
}

@media (max-width: 1000px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-bottom { grid-template-columns: 1fr; }
  .footer-bottom p:last-child { justify-self: start; text-align: start; }
}

@media (max-width: 800px) {
  :root { --page: calc(100% - 40px); --section: 60px; --header: 64px; }
  .site-header { gap: 16px; padding-inline: 20px; }
  .brand { width: 96px; }
  .hero-grid {
    min-height: clamp(555px, 76svh, 715px);
    grid-template-columns: minmax(0, 1fr) clamp(150px, 29vw, 228px);
    gap: 20px;
    padding-block: calc(var(--header) + clamp(20px, 4svh, 42px)) clamp(20px, 3svh, 36px);
  }
  .home-hero-board { height: clamp(266px, 49svh, 448px); }
  .hero-grid .hero-copy h1 { font-size: clamp(2.85rem, 7.25vw, 4.85rem); }
  .hero-bottom > p { font-size: 1rem; }
  .hero-screen > :is(img, video) { object-position: 54% 53%; }
  .hero-media::after {
    background:
      var(--paper-grain),
      var(--hero-copy-wash, none),
      linear-gradient(180deg, color-mix(in srgb, var(--paper) 61%, transparent), color-mix(in srgb, var(--paper) 84%, transparent) 17%, color-mix(in srgb, var(--paper) 93%, transparent) 31%, color-mix(in srgb, var(--paper) 81%, transparent) 47%, transparent 67%, transparent 76%, var(--paper) 98%);
  }
  .home-family-heading { grid-template-columns: 1fr; gap: 12px; margin-bottom: 20px; }
  .home-model-story { gap: 24px; }
  .home-model-story-copy > div { flex-direction: row; align-items: center; }
  .home-heritage-brief { gap: 24px; }
  .site-footer { --footer-gutter: 20px; }
  .footer-lead::after {
    background: linear-gradient(0deg, var(--ink) 0 10%, #182a2bf8 34%, #182a2bd6 59%, #182a2b25 92%);
  }
  .footer-content {
    min-height: 0;
    padding-block: clamp(150px, 41vw, 245px) 35px;
  }
  .footer-title { font-size: clamp(2.65rem, 8.8vw, 4.3rem); }
  .footer-grid > :not(.footer-identity) a { min-height: 44px; }
}

@media (max-width: 650px) {
  .photo-fade-hero {
    min-height: clamp(610px, 88svh, 760px);
    padding-block: calc(var(--header) + 90px) clamp(72px, 13svh, 110px);
  }
  .photo-fade-hero > figure::after {
    background:
      var(--photo-header-scrim),
      radial-gradient(ellipse 102% 47% at 29% 67%, #f8f6eff4 22%, #f8f6efb5 60%, transparent 100%);
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) clamp(76px, 24vw, 130px);
    grid-template-areas: "title board" "summary summary" "motion motion";
    grid-template-rows: auto auto auto;
    align-content: center;
    min-height: clamp(490px, 68svh, 585px);
    gap: 12px clamp(10px, 3vw, 20px);
    padding-block: calc(var(--header) + clamp(16px, 3svh, 30px)) clamp(16px, 3svh, 28px);
  }
  .home-hero-object { grid-area: board; }
  .home-hero-board { height: clamp(162px, 26svh, 224px); }
  .hero-copy { display: contents; }
  .hero-grid .hero-copy h1 { grid-area: title; }
  .hero-grid .hero-bottom { grid-area: summary; }
  .hero-motion-controls { grid-area: motion; }
  .hero-media {
    --hero-copy-wash: radial-gradient(ellipse 90% 32% at 38% 62%, color-mix(in srgb, var(--paper) 68%, transparent) 24%, transparent 94%);
  }
}

@media (650px < width <= 800px) {
  .journal-rest .journal-card:last-child > a { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 540px) {
  .site-header { gap: 10px; }
  .brand { width: clamp(72px, 24vw, 96px); }
  .header-actions { gap: clamp(4px, 1.5vw, 8px); }
  .header-cta { padding-inline: 10px; font-size: .6875rem; }
  .cookie-banner { padding: 12px; }
  .cookie-banner div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .cookie-banner button { padding-inline: 6px; white-space: normal; }
  .hero-grid .hero-copy h1 { font-size: clamp(2rem, 9.45vw, 3.2rem); line-height: .95; }
  .hero-bottom { gap: 8px; }
  .hero-bottom > div { gap: 4px 16px; }
  .home-family-section { margin-block-start: -76px; padding-block-start: 18px; }
  .home-family-grid { grid-template-columns: 1fr; gap: 16px; background: none; }
  .home-family-card > a { grid-template-columns: minmax(0, .76fr) minmax(0, 1.24fr); grid-template-rows: auto; gap: 16px; }
  .home-family-media {
    aspect-ratio: auto;
    min-height: var(--outline-mobile, 194px);
    background: radial-gradient(ellipse, var(--paper-2), transparent 75%);
  }
  .home-family-card > a .home-family-media img,
  .home-family-card > a:is(:hover, :focus-visible) .home-family-media img { height: calc(var(--outline-mobile, 194px) - 16px); }
  .home-family-copy { align-content: center; grid-template-rows: auto auto auto; gap: 6px; padding: 8px 0; }
  .home-family-copy h3 { font-size: clamp(1.65rem, 6.5vw, 2.1rem); }
  .home-family-copy > p:not(.eyebrow) { font-size: .9rem; line-height: 1.45; }
  .home-model-story, .home-heritage-brief { grid-template-columns: minmax(0, 1fr); }
  .home-heritage-brief img { aspect-ratio: 3 / 2; }
  .footer-grid { gap: 24px 16px; }
  .footer-grid > :is(.footer-identity, .footer-contact) { grid-column: 1 / -1; }
  .footer-contact { padding-top: 18px; border-top: 1px solid var(--footer-rule); }
  .footer-bottom { row-gap: 3px; }
}

@media (375px <= width <= 540px) {
  .hero-bottom > div { gap: 4px 12px; }
  .hero-bottom :is(.button-link, .text-link) { gap: 8px; font-size: .8125rem; }
  .hero-bottom .button-link { padding-inline: 12px; }
  .hero-bottom :is(.button-link, .text-link) svg { width: 14px; height: 14px; }
}

@media (max-width: 360px) {
  .hero-grid {
    gap: 8px 10px;
    padding-block: calc(var(--header) + 12px) 14px;
  }

  .home-hero-board { height: clamp(154px, 24svh, 204px); }
}

@media (hover: hover) and (pointer: fine) {
  .home-family-card > a:hover .home-family-copy h3 { color: var(--rust); }

  @media (prefers-reduced-motion: no-preference) {
    .hero-bottom .text-link[href="#familles"]:hover svg { transform: translateY(3px); }

    .home-family-card > a .home-family-media img,
    .home-family-card > a:is(:hover, :focus-visible) .home-family-media img {
      transition: transform 220ms var(--motion-out);
    }

    .home-family-card > a:hover .home-family-media img {
      transform: translateY(-8px) rotate(var(--board-angle, 0deg)) scale(1.05);
    }

    .home-page :is(.text-link, .button-link) svg { transition: transform 200ms var(--motion-out); }
    .home-page :is(.text-link, .button-link):hover svg { transform: translateX(4px); }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-screen > video { transition: none; }
}

/* The film recedes as the quiver enters the viewport. */
@keyframes home-film-drift {
  from { transform: translateY(0); opacity: 1; }
  to { transform: translateY(var(--film-travel, 58px)); opacity: .48; }
}

@media screen and (prefers-reduced-motion: no-preference) {
  :is(.button-link, .header-cta, .hero-film-toggle) { transition: scale 150ms var(--motion-out); }
  :is(.button-link, .header-cta, .hero-film-toggle):active:not(:focus-visible) { scale: .975; }

  .home-hero-board.has-live-board > :is(img, canvas) {
    transition: opacity 160ms ease-out;
  }

  @supports (animation-timeline: view()) and (animation-range: exit 0% exit 90%) {
    .home-hero { view-timeline-name: --home-opening; }

    .hero-screen {
      animation: home-film-drift linear both;
      animation-timeline: --home-opening;
      animation-range: exit 0% exit 90%;
    }
  }

  @media (max-width: 800px) {
    .hero-screen { --film-travel: 20px; }
  }
}
