/* ReplySystems site
   The company frame is quiet: warm plaster neutrals, Night ink, an editorial
   serif (Newsreader) and a plain grotesk (Hanken Grotesk). Colour belongs to
   the brands, so Bark Orange and Montserrat appear only inside the BarkReply
   plate (.brand-barkreply). */

/* ── Fonts (self-hosted, subset by tools/build_fonts.py) ───────────────── */
@font-face {
  font-family: "Newsreader RS";
  src: url("../fonts/newsreader-display.woff2") format("woff2");
  font-weight: 300 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader RS";
  src: url("../fonts/newsreader-display-italic.woff2") format("woff2");
  font-weight: 300 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk RS";
  src: url("../fonts/hanken-grotesk.woff2") format("woff2");
  font-weight: 400 650;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat BR";
  src: url("../fonts/montserrat.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
/* Metric-matched fallbacks so the swap does not move the layout. */
@font-face {
  font-family: "Newsreader Fallback";
  src: local("Georgia");
  size-adjust: 98.98%;
  ascent-override: 74.26%;
  descent-override: 26.77%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Hanken Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Helvetica");
  size-adjust: 100.36%;
  ascent-override: 99.64%;
  descent-override: 30.19%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Montserrat Fallback";
  src: local("Arial"), local("Helvetica Neue");
  size-adjust: 112.15%;
  ascent-override: 86.31%;
  descent-override: 22.38%;
  line-gap-override: 0%;
}

/* ── Tokens ───────────────────────────────────────────────────────────── */
:root {
  /* ReplySystems */
  --plaster: #ddd3c2;
  --paper: #f2ede4;
  --paper-deep: #e9e2d6;
  --ink: #121010; /* Night */
  --ink-2: #3a3532;
  --ink-3: #655e58;
  --rule: rgba(18, 16, 16, 0.14);
  --on-night: #f2ede4;
  --on-night-2: #aba39a;
  --rule-night: rgba(242, 237, 228, 0.16);

  /* BarkReply (brand kit, July 2026 Refresh) */
  --br-orange: #ff5200;
  --br-orange-hover: #ff6a26;
  --br-black: #000;
  --br-text: #2a2a2a;
  --br-gray: #646464; /* Gray Husky */
  --br-white: #fff;
  --br-slot: #ffe3d4;

  --font-display: "Newsreader RS", "Newsreader Fallback", Georgia, "Times New Roman", serif;
  --font-sans: "Hanken Grotesk RS", "Hanken Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-brand: "Montserrat BR", "Montserrat Fallback", Arial, sans-serif;

  /* Motion: short for interface feedback, longer only for entrances. */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --t-fast: 160ms;
  --t-base: 280ms;
  --t-slow: 560ms;
  --t-reveal: 820ms;

  --gutter: clamp(16px, 5vw, 56px);
  --maxw: 1360px;
  --header-h: 58px;

  /* Paper grain, painted once as part of the background (no blending cost). */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .07 0 0 0 0 .06 0 0 0 0 .06 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (min-width: 720px) {
  :root { --header-h: 68px; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
}

body {
  margin: 0;
  background: var(--paper) var(--grain);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, svg, video { display: block; max-width: 100%; }
p, h1, h2, h3, ol, ul, figure { margin: 0; }
a { color: inherit; }
em { font-style: italic; }
button { font: inherit; color: inherit; }
::selection { background: var(--ink); color: var(--paper); }
.contact ::selection,
.site-footer ::selection { background: var(--on-night); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
  border-radius: 2px;
}
.contact :focus-visible,
.site-footer :focus-visible,
.site-header.is-dark :focus-visible { outline-color: var(--on-night); }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
  border-radius: 2px;
  transform: translateY(-160%);
  transition: transform var(--t-base) var(--ease-out);
}
.skip-link:focus { transform: none; }

.icon {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--t-base) var(--ease-out);
}

/* ── Header ───────────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  /* In full-screen views (home-screen apps, in-app viewers) the page runs
     under the status bar; the header grows by that inset and keeps its
     content below it. The inset is 0 in a normal browser tab. */
  height: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  display: flex;
  align-items: center;
  color: var(--ink);
  transition:
    background-color var(--t-slow) var(--ease-out),
    color var(--t-slow) var(--ease-out),
    box-shadow var(--t-slow) var(--ease-out);
}
.site-header.is-scrolled {
  background-color: rgba(242, 237, 228, 0.84);
  box-shadow: 0 1px 0 var(--rule);
  -webkit-backdrop-filter: saturate(1.3) blur(14px);
  backdrop-filter: saturate(1.3) blur(14px);
}
.site-header.is-dark { color: var(--on-night); }
.site-header.is-dark.is-scrolled {
  background-color: rgba(18, 16, 16, 0.8);
  box-shadow: 0 1px 0 var(--rule-night);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 450;
  font-size: 1.375rem;
  line-height: 1;
  letter-spacing: -0.015em;
  text-decoration: none;
  padding-block: 10px;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 36px);
  list-style: none;
  padding: 0;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.9375rem;
  font-weight: 520;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) no-repeat left calc(50% + 0.8em) / 0 1px;
  transition: background-size var(--t-base) var(--ease-out), opacity var(--t-base);
}
.site-nav a.is-current { background-size: 100% 1px; }
.site-nav__cta { padding-inline: 2px; }
.site-nav__item--wide { display: none; }
@media (min-width: 380px) {
  .site-nav__item--wide { display: block; }
}

/* ── Shared type ──────────────────────────────────────────────────────── */
.index {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.index__num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 340;
  font-size: 1.125rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}
.index--on-dark { color: var(--on-night-2); }
.index--on-dark .index__num { color: var(--on-night); }

.statement {
  font-family: var(--font-display);
  font-weight: 330;
  font-size: clamp(1.9rem, 1.15rem + 2.75vw, 3.6rem);
  line-height: 1.07;
  letter-spacing: -0.022em;
  max-width: 22ch;
  text-wrap: balance;
}
.lead {
  margin-top: clamp(24px, 3vw, 40px);
  max-width: 54ch;
  font-size: clamp(1.0625rem, 0.98rem + 0.32vw, 1.25rem);
  line-height: 1.6;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* ── Buttons and links ────────────────────────────────────────────────── */
.button {
  --bg: var(--ink);
  --fg: var(--paper);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 24px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.005em;
  text-decoration: none;
  color: var(--fg);
  background-color: var(--bg);
  border-radius: 2px;
  isolation: isolate;
  overflow: hidden;
  transition: background-color var(--t-base) var(--ease-out), transform var(--t-fast) var(--ease-out);
}
/* Hover: a lighter wash sweeps in from the left, the arrow leans forward. */
.button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--sweep, rgba(255, 255, 255, 0.09));
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform var(--t-slow) var(--ease-out);
}
.button:active { transform: translateY(1px); }
.button .icon { font-size: 1rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) no-repeat left calc(50% + 0.85em) / 100% 1px;
  transition: background-size var(--t-slow) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .button:hover::before { transform: scaleX(1); transform-origin: left center; }
  .button:hover .icon--down { transform: translateY(3px); }
  .button:hover .icon--external { transform: translate(2px, -2px); }
  .link-arrow:hover { background-size: 0 1px; background-position: right calc(50% + 0.85em); }
  .link-arrow:hover .icon--arrow { transform: translateX(4px); }
  .site-nav a:hover { background-size: 100% 1px; }
}

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--plaster) url("../media/hero-poster-desktop.webp") center / cover no-repeat;
}
@media (max-width: 720px) and (orientation: portrait) {
  .hero { background-image: url("../media/hero-poster-portrait.webp"); }
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.4s var(--ease-out);
}
.hero__video.is-playing { opacity: 1; }
/* Calm the plaster behind the type and melt the hero into the paper below. */
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(242, 237, 228, 0) 72%, rgba(242, 237, 228, 0.92) 100%),
    linear-gradient(90deg, rgba(242, 237, 228, 0.5) 0%, rgba(242, 237, 228, 0.26) 42%, rgba(242, 237, 228, 0) 66%),
    var(--grain);
}
@media (max-width: 720px) {
  .hero__scrim {
    background:
      linear-gradient(180deg, rgba(242, 237, 228, 0) 24%, rgba(242, 237, 228, 0.5) 52%, rgba(242, 237, 228, 0.9) 100%),
      var(--grain);
  }
}

.hero__inner {
  padding-top: calc(var(--header-h) + 64px);
  padding-bottom: clamp(56px, 10vh, 112px);
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 340;
  /* Phones: sized so "Software for running" (8.27em) fits from 320px up. */
  font-size: clamp(2.125rem, 10.7vw, 3.75rem);
  line-height: 0.97;
  letter-spacing: -0.032em;
}
@media (min-width: 600px) {
  .hero__title { font-size: clamp(3.25rem, 1.2rem + 5.2vw, 6rem); }
}
.hero__title em { font-weight: 340; letter-spacing: -0.035em; }
.line {
  display: block;
  overflow: hidden;
  /* room for descenders and the italic overhang inside the mask */
  padding: 0 0.12em 0.1em 0;
  margin: 0 -0.12em -0.1em 0;
}
.line__inner { display: block; text-wrap: balance; }
.nowrap { white-space: nowrap; }
.hero__lede {
  margin-top: clamp(22px, 3.2vh, 36px);
  max-width: 44ch;
  font-size: clamp(1.0625rem, 0.96rem + 0.45vw, 1.3125rem);
  line-height: 1.55;
  color: var(--ink-2);
  text-wrap: pretty;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 32px;
  margin-top: clamp(24px, 3.6vh, 40px);
}

/* Company → brand → product, stated once under the buttons. */
.lineage {
  display: flex;
  gap: clamp(24px, 5vw, 56px);
  width: fit-content;
  max-width: 100%;
  margin: clamp(28px, 4.4vh, 48px) 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(18, 16, 16, 0.22);
}
.lineage__item { min-width: 0; }
.lineage__item:first-child { flex: none; }
.lineage dt {
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.lineage dd {
  margin: 4px 0 0;
  font-size: 1rem;
  font-weight: 560;
  line-height: 1.35;
  color: var(--ink);
}

.motion-toggle {
  position: absolute;
  z-index: 2;
  top: calc(var(--header-h) + 12px);
  right: max(var(--gutter), env(safe-area-inset-right));
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(18, 16, 16, 0.18);
  border-radius: 50%;
  background: rgba(242, 237, 228, 0.55);
  color: var(--ink);
  cursor: pointer;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background-color var(--t-base) var(--ease-out), border-color var(--t-base) var(--ease-out), opacity var(--t-slow) var(--ease-out);
}
.motion-toggle[hidden] { display: none; }
.motion-toggle svg {
  grid-area: 1 / 1;
  width: 16px;
  height: 16px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  transition: opacity var(--t-fast) var(--ease-out), transform var(--t-base) var(--ease-out);
}
.motion-toggle__pause { fill: none; }
.motion-toggle__play { opacity: 0; transform: scale(0.6); stroke-width: 0; }
.motion-toggle.is-paused .motion-toggle__pause { opacity: 0; transform: scale(0.6); }
.motion-toggle.is-paused .motion-toggle__play { opacity: 1; transform: none; }
@media (hover: hover) and (pointer: fine) {
  .motion-toggle:hover { background-color: rgba(242, 237, 228, 0.9); border-color: rgba(18, 16, 16, 0.4); }
}
@media (min-width: 721px) {
  .motion-toggle { top: auto; bottom: clamp(56px, 10vh, 112px); }
}

/* Hero entrance (pure CSS, so it also runs without JavaScript). */
.hero__title .line__inner { animation: line-in 1s var(--ease-out) both; }
.hero__title .line:nth-child(2) .line__inner { animation-delay: 0.09s; }
.hero__title .line:nth-child(3) .line__inner { animation-delay: 0.18s; }
.step { animation: rise-in 0.9s var(--ease-out) both; }
.step--1 { animation-delay: 0.38s; }
.step--2 { animation-delay: 0.5s; }
.step--3 { animation-delay: 0.64s; }
@keyframes line-in {
  from { transform: translate3d(0, 104%, 0); }
  to { transform: none; }
}
@keyframes rise-in {
  from { opacity: 0; transform: translate3d(0, 14px, 0); }
  to { opacity: 1; transform: none; }
}

/* ── Sections ─────────────────────────────────────────────────────────── */
.section { padding-block: clamp(64px, 8vw, 116px); }
.solutions { padding-bottom: clamp(36px, 4.4vw, 60px); }
.brands { padding-top: clamp(36px, 4.4vw, 60px); }

.layout { display: grid; gap: 24px; }
@media (min-width: 960px) {
  .layout {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 32px;
  }
  .layout__aside { grid-column: 1 / span 3; }
  .layout__main { grid-column: 4 / span 9; }
  .layout__aside .index {
    position: sticky;
    top: calc(var(--header-h) + 28px);
    padding-top: 0.9em;
  }
}

/* Solutions: a ruled list, one compact row per area. */
.solutions .statement { max-width: none; }
.areas {
  margin-top: clamp(32px, 4.4vw, 60px);
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}
.area {
  position: relative;
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  column-gap: 12px;
  align-items: baseline;
  padding: 16px 0 18px;
  border-bottom: 1px solid var(--rule);
}
/* Hover: the row's rule draws across in ink. */
.area::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--t-slow) var(--ease-out);
}
.area__num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.0625rem;
  color: var(--ink-3);
  transition: color var(--t-base) var(--ease-out), transform var(--t-base) var(--ease-out);
}
.area__title {
  font-family: var(--font-display);
  font-weight: 380;
  font-size: clamp(1.4rem, 1.12rem + 1vw, 1.95rem);
  line-height: 1.14;
  letter-spacing: -0.015em;
}
.area__text {
  grid-column: 2;
  margin-top: 4px;
  max-width: 44ch;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
}
@media (min-width: 960px) {
  .area {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 32px;
    padding: 22px 0 24px;
  }
  .area__num { grid-column: 1 / span 3; }
  .area__title { grid-column: 4 / span 4; }
  .area__text { grid-column: 8 / span 5; margin-top: 0; max-width: none; }
}
@media (hover: hover) and (pointer: fine) {
  .area:hover::before { transform: scaleX(1); }
  .area:hover .area__num { color: var(--ink); transform: translateX(4px); }
}

/* ── BarkReply plate: BarkReply's own visual language, kept compact ───── */
.brand-barkreply { font-family: var(--font-brand); }

.plate {
  display: grid;
  background: var(--br-white);
  color: var(--br-black);
  border-top: 4px solid var(--br-orange);
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(18, 16, 16, 0.06), 0 32px 64px -48px rgba(18, 16, 16, 0.45);
}
.plate__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(24px, 3.2vw, 40px);
}
.plate__kicker {
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--br-gray);
}
.plate__logo { margin-top: clamp(16px, 2vw, 22px); }
.plate__logo img { width: clamp(164px, 16vw, 196px); height: auto; }
.plate__text {
  margin-top: clamp(16px, 1.8vw, 20px);
  max-width: 44ch;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--br-text);
  text-wrap: pretty;
}
.plate__action { margin-top: clamp(20px, 2.2vw, 26px); }
.button--orange {
  --bg: var(--br-orange);
  --fg: var(--br-black);
  --sweep: var(--br-orange-hover);
  font-family: var(--font-brand);
  font-weight: 700;
}

/* The call → conversation → appointment-request loop joins from tablet up;
   phones keep the plate to logo, sentence and link. */
.plate__visual { display: none; }
@media (min-width: 720px) {
  .plate {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    border-top: 0;
  }
  .plate__visual {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    padding: 24px clamp(8px, 1.4vw, 20px);
    background: var(--br-orange);
    color: var(--br-black);
  }
}
.plate__lottie {
  width: 100%;
  aspect-ratio: 720 / 400;
}
/* Labels sit under the three stages of the animation (1/6, 1/2, 5/6). */
.plate__steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 8px;
  text-align: center;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.plate__steps span { text-wrap: balance; }

/* ── Contact (Night) ──────────────────────────────────────────────────── */
.contact {
  background: var(--ink);
  color: var(--on-night);
  padding-block: clamp(80px, 10vw, 152px) clamp(64px, 8vw, 112px);
}
.contact__headline {
  font-family: var(--font-display);
  font-weight: 320;
  font-size: clamp(2.6rem, 1.3rem + 5.4vw, 6.75rem);
  line-height: 0.98;
  letter-spacing: -0.032em;
  max-width: 13ch;
  text-wrap: balance;
}
.contact__text {
  margin-top: clamp(24px, 3vw, 36px);
  max-width: 46ch;
  font-size: clamp(1.0625rem, 0.98rem + 0.32vw, 1.25rem);
  color: var(--on-night-2);
  text-wrap: pretty;
}
.contact__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: clamp(36px, 5vw, 56px);
}
.contact__email {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 340;
  font-size: clamp(1.5rem, 0.95rem + 2.2vw, 2.9rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-decoration: none;
  overflow-wrap: anywhere;
  background: linear-gradient(currentColor, currentColor) no-repeat left 100% / 100% 1px;
  padding-bottom: 6px;
  transition: background-size var(--t-slow) var(--ease-out);
}
.contact__email .icon { font-size: 0.6em; stroke-width: 1.4; }
.copy-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--rule-night);
  border-radius: 2px;
  background: transparent;
  color: var(--on-night);
  font-size: 0.875rem;
  font-weight: 560;
  cursor: pointer;
  transition: border-color var(--t-base) var(--ease-out), background-color var(--t-base) var(--ease-out);
}
.copy-button.is-done { border-color: rgba(242, 237, 228, 0.5); }
@media (hover: hover) and (pointer: fine) {
  .contact__email:hover { background-size: 0 1px; background-position: right 100%; }
  .contact__email:hover .icon { transform: translateX(5px); }
  .copy-button:hover { border-color: rgba(242, 237, 228, 0.5); background-color: rgba(242, 237, 228, 0.06); }
}

/* ── Footer ───────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  color: var(--on-night-2);
  font-size: 0.875rem;
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 32px;
  padding-top: 28px;
  padding-bottom: max(36px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--rule-night);
}
.site-footer__inner > :first-child { margin-right: auto; }
.site-footer a { color: var(--on-night); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.wordmark--footer { color: var(--on-night); font-size: 1.125rem; padding: 0; }

/* ── Scroll reveals (only when JavaScript is running) ─────────────────── */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition:
    opacity var(--t-reveal) var(--ease-out),
    transform var(--t-reveal) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
/* The area rows keep their own hover transitions after revealing. */
.js .area[data-reveal].is-visible { transition-delay: 0ms; }

/* ── Reduced motion: everything is in place, nothing travels. ─────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__title .line__inner,
  .step { animation: none; }
  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero__video { display: none; }
  .button::before,
  .area::before,
  .icon { transition: none; }
}

/* ── Print ────────────────────────────────────────────────────────────── */
@media print {
  .site-header, .hero__media, .motion-toggle, .plate__visual, .copy-button { display: none !important; }
  .hero { min-height: 0; background: none; }
  .contact, .site-footer { background: none; color: #000; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
