/*
 * fabero.se interim one-pager. Hand-written; ports the Start view of
 * design/reference/fabero.se.dc.html (Kaxig tone). Desktop first, one
 * switch below 860 px (the design's matchMedia('(max-width: 859px)')).
 *
 * Served with a one-year immutable cache: change this file only together
 * with a new version in its name (site.v3.css …) and in every <link>.
 */

/* ── Fonts (self-hosted, latin subset) ─────────────────────────────── */

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/cormorant-garamond-v21-latin-500.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/cormorant-garamond-v21-latin-500italic.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

/* One variable file covers Inter 400 and 600. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/inter-v20-latin-wght.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

/* Metric-matched fallbacks (same overrides the Astro build computes), so
   the swap to the web fonts barely moves the layout. */
@font-face {
  font-family: "Cormorant Garamond fallback";
  src: local("Times New Roman");
  size-adjust: 88.3692%;
  ascent-override: 104.5613%;
  descent-override: 32.4774%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Inter fallback";
  src: local("Arial");
  size-adjust: 107.1194%;
  ascent-override: 90.4365%;
  descent-override: 22.518%;
  line-gap-override: 0%;
}

/* ── Tokens ────────────────────────────────────────────────────────── */

:root {
  --navy: #00233f;
  --navy-raised: #0b3355;
  --cream: #f7f4ec;
  --gold: #c39a5f;
  --gold-ink: #8a6633;
  --slate: #3d4f63;
  --line: #dcd8ce;

  --cream-92: rgb(247 244 236 / 0.92);
  --cream-86: rgb(247 244 236 / 0.86);
  --cream-84: rgb(247 244 236 / 0.84);
  --cream-76: rgb(247 244 236 / 0.76);
  --cream-70: rgb(247 244 236 / 0.7);
  --cream-60: rgb(247 244 236 / 0.6);
  --cream-20: rgb(247 244 236 / 0.2);
  --gold-50: rgb(195 154 95 / 0.5);
  --gold-45: rgb(195 154 95 / 0.45);
  --gold-40: rgb(195 154 95 / 0.4);
  --gold-35: rgb(195 154 95 / 0.35);

  --font-display:
    "Cormorant Garamond", "Cormorant Garamond fallback", ui-serif, Georgia,
    "Times New Roman", serif;
  --font-sans:
    "Inter", "Inter fallback", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(20px, 5vw, 32px);
  --header-h: 96px;
  --ease: cubic-bezier(0.5, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);

  color-scheme: dark;
}

/* ── Base ──────────────────────────────────────────────────────────── */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--navy);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--navy);
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

main {
  flex: 1;
}

img {
  display: block;
  max-width: 100%;
}

picture {
  display: contents;
}

a {
  color: var(--gold);
  text-decoration: none;
}

a:hover {
  color: var(--cream);
  text-decoration: underline;
}

::selection {
  background: var(--gold);
  color: var(--navy);
}

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

h1,
h2,
p,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

em {
  font-style: italic;
  font-weight: 400;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
}

.tnum {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.display {
  font-family: var(--font-display);
  font-weight: 400;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding-inline: var(--gutter);
}

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

/* Skip link: off-screen until focused. */
.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
  color: var(--navy);
  text-decoration: none;
}

/* ── Buttons (pills) ───────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 11px;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.btn:hover {
  text-decoration: none;
}

.btn--gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}

.btn--gold:hover {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--navy);
}

.btn--cream {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--navy);
}

.btn--cream:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}

.btn--outline {
  background: transparent;
  border-color: var(--cream-70);
  color: var(--cream);
}

.btn--outline:hover {
  border-color: var(--cream);
  color: var(--cream);
}

.btn--navy {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--cream);
}

.btn--navy:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}

/* ── Header ────────────────────────────────────────────────────────── */

.site-header {
  position: relative;
  z-index: 30;
  background: var(--navy);
  border-bottom: 1px solid var(--gold-45);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: calc(var(--header-h) - 1px);
}

.site-header__logo {
  display: block;
  flex: none;
}

.site-header__logo img {
  width: 84px;
  height: 84px;
}

.site-header__cta {
  min-height: 46px;
  padding: 0 24px;
}

/* ── Hero ──────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  height: calc(100vh - var(--header-h));
  height: calc(100svh - var(--header-h));
  min-height: 540px;
  overflow: hidden;
  background: var(--navy);
}

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 40%;
}

.hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgb(0 35 63 / 0.25) 0%,
    rgb(0 35 63 / 0) 25%,
    rgb(0 35 63 / 0) 50%,
    rgb(0 35 63 / 0.85) 100%
  );
}

.hero__strip {
  position: absolute;
  top: clamp(16px, 3vw, 28px);
  left: var(--gutter);
  right: var(--gutter);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 24px;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream-84);
}

.hero__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(28px, 5vw, 40px);
}

.hero h1 {
  max-width: 1150px;
  margin: 0 0 28px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(46px, 9vw, 148px);
  line-height: 0.96;
  letter-spacing: -0.02em;
  color: var(--cream);
  text-wrap: balance;
}

.hero h1 em {
  color: var(--gold);
}

.hero__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
}

.hero__lede {
  max-width: 440px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--cream-92);
  text-wrap: pretty;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ── Index ─────────────────────────────────────────────────────────── */

.index {
  padding-top: clamp(64px, 10vw, 96px);
  padding-bottom: clamp(40px, 7vw, 64px);
}

.index__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: clamp(14px, 3vw, 48px) clamp(24px, 4vw, 48px);
  margin-bottom: clamp(32px, 5vw, 56px);
}

.index__head h2 {
  flex: 1 1 180px;
  font-size: 11px;
  color: var(--gold);
}

.index__head p {
  flex: 2 1 420px;
  min-width: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(24px, 3vw, 44px);
  line-height: 1.15;
  color: var(--cream);
  text-wrap: balance;
}

.index__list {
  border-top: 1px solid var(--gold-50);
}

.row {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 200px 56px;
  align-items: center;
  gap: 24px;
  padding: 34px 20px;
  overflow: hidden;
  border-bottom: 1px solid var(--cream-20);
  color: var(--cream);
  text-decoration: none;
}

.row:hover {
  color: var(--cream);
  text-decoration: none;
}

.row:focus-visible {
  outline-offset: -2px;
}

.row > *:not(.row__fill) {
  position: relative;
  z-index: 1;
}

.row__fill {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  filter: blur(10px);
  background-repeat: no-repeat;
  background-size:
    108% 100%,
    108% auto;
  background-position: 100% 50%;
}

.row__num {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--cream-70);
}

.row__name-wrap {
  min-width: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.row__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 4.5vw, 64px);
  line-height: 1;
  color: var(--cream);
}

.row__meta,
.row__meta-inline {
  font-size: 10px;
  color: var(--cream-70);
}

.row__meta {
  display: block;
  text-align: right;
}

.row__meta-inline {
  display: none;
  font-size: 9.5px;
}

.row--hi .row__meta,
.row--hi .row__meta-inline {
  color: var(--gold);
}

.row__arrow {
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1;
  text-align: right;
  color: var(--gold);
  transform: translateX(-8px);
}

/* Per-row preview photos (design index rows 1–8). */
.index__list > li:nth-child(1) > .row {
  --row-img: image-set(
    url("img/row-01-1600.v1.avif") type("image/avif"),
    url("img/row-01-1600.v1.webp") type("image/webp")
  );
}
.index__list > li:nth-child(2) > .row {
  --row-img: image-set(
    url("img/row-02-1600.v1.avif") type("image/avif"),
    url("img/row-02-1600.v1.webp") type("image/webp")
  );
}
.index__list > li:nth-child(3) > .row {
  --row-img: image-set(
    url("img/row-03-1600.v1.avif") type("image/avif"),
    url("img/row-03-1600.v1.webp") type("image/webp")
  );
}
.index__list > li:nth-child(4) > .row {
  --row-img: image-set(
    url("img/row-04-1600.v1.avif") type("image/avif"),
    url("img/row-04-1600.v1.webp") type("image/webp")
  );
}
.index__list > li:nth-child(5) > .row {
  --row-img: image-set(
    url("img/row-05-1600.v1.avif") type("image/avif"),
    url("img/row-05-1600.v1.webp") type("image/webp")
  );
}
.index__list > li:nth-child(6) > .row {
  --row-img: image-set(
    url("img/row-06-1600.v1.avif") type("image/avif"),
    url("img/row-06-1600.v1.webp") type("image/webp")
  );
}
.index__list > li:nth-child(7) > .row {
  --row-img: image-set(
    url("img/row-07-1600.v1.avif") type("image/avif"),
    url("img/row-07-1600.v1.webp") type("image/webp")
  );
}
.index__list > li:nth-child(8) > .row {
  --row-img: image-set(
    url("img/row-08-1600.v1.avif") type("image/avif"),
    url("img/row-08-1600.v1.webp") type("image/webp")
  );
}

/*
 * Hover / focus state (design onRowEnter). The preview photos are only
 * attached while the pointer or focus is inside the list, so they are
 * fetched on first interaction instead of on page load. Keyboard focus
 * gets exactly the hover look on every device; the pointer version is
 * limited to fine pointers.
 */
.index__list:focus-within .row__fill {
  background-image:
    linear-gradient(
      90deg,
      rgb(0 35 63 / 0.88) 0%,
      rgb(0 35 63 / 0.55) 45%,
      rgb(0 35 63 / 0.35) 100%
    ),
    var(--row-img);
}

.row:focus-visible .row__fill {
  opacity: 1;
  filter: blur(0);
  background-position: 0% 50%;
}
.row:focus-visible .row__num {
  color: var(--gold);
}
.row:focus-visible .row__name-wrap {
  transform: translateX(12px);
}
.row:focus-visible .row__name {
  text-shadow: 0 2px 24px rgb(0 20 40 / 0.6);
}
.row:focus-visible .row__meta,
.row:focus-visible .row__meta-inline {
  color: var(--cream);
  text-shadow: 0 1px 12px rgb(0 20 40 / 0.7);
}
.row:focus-visible .row__arrow {
  transform: none;
}
.index__list:has(.row:focus-visible)
  .row:not(:focus-visible)
  :is(.row__name, .row__meta, .row__meta-inline, .row__arrow) {
  opacity: 0.6;
}

@media (hover: hover) and (pointer: fine) {
  .index__list:hover .row__fill {
    background-image:
      linear-gradient(
        90deg,
        rgb(0 35 63 / 0.88) 0%,
        rgb(0 35 63 / 0.55) 45%,
        rgb(0 35 63 / 0.35) 100%
      ),
      var(--row-img);
  }

  .row:hover .row__fill {
    opacity: 1;
    filter: blur(0);
    background-position: 0% 50%;
  }
  .row:hover .row__num {
    color: var(--gold);
  }
  .row:hover .row__name-wrap {
    transform: translateX(12px);
  }
  .row:hover .row__name {
    text-shadow: 0 2px 24px rgb(0 20 40 / 0.6);
  }
  .row:hover .row__meta,
  .row:hover .row__meta-inline {
    color: var(--cream);
    text-shadow: 0 1px 12px rgb(0 20 40 / 0.7);
  }
  .row:hover .row__arrow {
    transform: none;
  }
  .index__list:has(.row:hover)
    .row:not(:hover)
    :is(.row__name, .row__meta, .row__meta-inline, .row__arrow) {
    opacity: 0.6;
  }
}

/* ── Photo strip ───────────────────────────────────────────────────── */

.strip {
  display: flex;
  gap: 2px;
  padding: 0 2px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.strip::-webkit-scrollbar {
  display: none;
}

.strip:focus-visible {
  outline-offset: -4px;
}

.strip img {
  flex: 1 0 clamp(calc((100% - 4px) / 3), calc((720px - 100%) * 999), 84%);
  min-width: 0;
  height: clamp(300px, 56vh, 680px);
  object-fit: cover;
  scroll-snap-align: start;
}

.strip img:first-of-type {
  object-position: center 45%;
}

@media (hover: hover) and (pointer: fine) {
  .strip img:hover {
    transform: scale(1.05);
  }
}

/* ── Vinshowen statement (ivory) ───────────────────────────────────── */

.ivory {
  background: var(--cream);
  color: var(--navy);
  color-scheme: light;
}

.ivory :focus-visible {
  outline-color: var(--navy);
}

.ivory ::selection {
  background: var(--navy);
  color: var(--cream);
}

.show {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(32px, 6vw, 64px);
  align-items: end;
  padding-top: clamp(72px, 12vw, 120px);
  padding-bottom: clamp(72px, 12vw, 120px);
}

.show__eyebrow {
  display: block;
  margin-bottom: 28px;
  font-size: 11px;
  color: var(--navy);
}

.show h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 7vw, 120px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.show h2 em {
  color: var(--navy);
}

.show p {
  max-width: 420px;
  margin: 0 0 32px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--slate);
  text-wrap: pretty;
}

/* ── Facts ─────────────────────────────────────────────────────────── */

.facts {
  padding-top: clamp(64px, 10vw, 96px);
  padding-bottom: clamp(64px, 10vw, 96px);
}

.facts ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 64px);
}

/* Open layout: no boxes, just a short gold rule above each number. */
.facts li::before {
  content: "";
  display: block;
  width: 32px;
  height: 1px;
  margin-bottom: clamp(20px, 2.6vw, 28px);
  background: var(--gold);
}

@media (max-width: 859px) {
  .facts ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 48px;
  }
}

.facts__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 5vw, 80px);
  line-height: 0.9;
  letter-spacing: -0.02em;
}

.facts__label {
  display: block;
  margin-top: 20px;
  font-size: 10px;
  color: var(--cream-76);
}

/* ── Kontakt ───────────────────────────────────────────────────────── */

.contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(32px, 6vw, 64px);
  padding-top: clamp(72px, 11vw, 112px);
  padding-bottom: clamp(72px, 11vw, 112px);
}

/* Target of every "#kontakt" link. tabindex="-1" in the markup moves focus
   here on navigation, so keyboard users continue from Kontakt; the section
   itself is not a control, so it draws no focus ring. */
.contact {
  scroll-margin-top: 24px;
}

.contact:focus {
  outline: none;
}

.contact__eyebrow {
  display: block;
  margin-bottom: 28px;
  font-size: 11px;
  color: var(--gold);
}

.contact h2 {
  margin: 0 0 clamp(28px, 5vw, 48px);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(52px, 10vw, 160px);
  line-height: 0.88;
  letter-spacing: -0.02em;
}

.contact h2 em {
  color: var(--gold);
}

.contact__info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 24px;
  padding-top: 28px;
  border-top: 1px solid var(--gold-40);
  font-size: 15px;
  line-height: 1.65;
  color: var(--cream-86);
}

.contact__info h3 {
  display: block;
  margin: 0 0 8px;
  font-size: 10px;
  line-height: inherit;
  color: var(--gold);
}

.contact__info p {
  margin: 0;
}

.contact__map {
  display: inline-block;
  margin-top: 6px;
}

.contact__actions {
  display: grid;
  gap: 12px;
  align-content: start;
  padding-top: 8px;
}

.btn--big {
  width: 100%;
  min-height: 72px;
  font-size: 12px;
}

/* ── Footer ────────────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--gold-40);
}

.site-footer__main {
  padding-top: clamp(40px, 7vw, 64px);
  padding-bottom: clamp(28px, 5vw, 40px);
}

.site-footer__brand {
  margin-bottom: 24px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(48px, 6vw, 96px);
  line-height: 0.9;
  letter-spacing: -0.02em;
}

.site-footer__address {
  font-size: 13.5px;
  line-height: 1.65;
  font-style: normal;
  color: var(--cream-76);
}

.site-footer__legal {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 32px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream-60);
}

.site-footer__admin {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-top: 24px;
  padding: 0 20px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  transition:
    background-color 0.2s,
    color 0.2s;
}

.site-footer__admin:hover {
  background: var(--gold);
  color: var(--navy);
}

/* ── 404 ───────────────────────────────────────────────────────────── */

.notfound {
  padding-top: clamp(72px, 11vw, 112px);
  padding-bottom: clamp(72px, 11vw, 112px);
}

.notfound h1 {
  margin: 0 0 clamp(28px, 5vw, 48px);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(52px, 10vw, 160px);
  line-height: 0.88;
  letter-spacing: -0.02em;
}

.notfound h1 em {
  color: var(--gold);
}

.notfound p {
  max-width: 440px;
  margin-bottom: 32px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--cream-92);
}

/* ── Mobile (< 860 px), the design's single breakpoint ─────────────── */

@media (max-width: 859px) {
  .site-header__inner {
    height: 67px;
  }

  .site-header__logo img {
    width: 52px;
    height: 52px;
  }

  .site-header__cta {
    min-height: 44px;
    padding: 0 20px;
    font-size: 10.5px;
  }

  .row {
    grid-template-columns: 26px minmax(0, 1fr) 22px;
    gap: 14px;
    padding: 24px 4px;
  }

  .row__name-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .row__name {
    font-size: clamp(30px, 8.6vw, 40px);
  }

  .row__meta {
    display: none;
  }

  .row__meta-inline {
    display: block;
  }

  .row__arrow {
    font-size: 26px;
  }

  .row__fill {
    background-size:
      100% 100%,
      cover;
  }
}

/* Coarse pointers: grow the hit area of the short inline links without
   moving the layout (vertical padding on an inline box does not affect
   line boxes). */
@media (pointer: coarse) {
  .contact__info a,
  .site-footer a {
    padding-block: 11px;
  }

  .site-footer a.site-footer__admin {
    padding-block: 0;
  }
}

/* ── Motion (design easing; off when the user asks for less motion) ── */

@media (prefers-reduced-motion: no-preference) {
  .row__fill {
    transition:
      opacity 0.3s ease-out,
      filter 0.35s ease-out,
      background-position 0.7s var(--ease-out);
  }
  .row__num,
  .row__meta,
  .row__meta-inline {
    transition:
      color 0.18s,
      opacity 0.2s;
  }
  .row__name {
    transition: opacity 0.2s;
  }
  .row__name-wrap {
    transition: transform 0.3s var(--ease);
  }
  .row__arrow {
    transition:
      transform 0.3s var(--ease),
      opacity 0.2s;
  }
  .strip img {
    transition: transform 0.6s var(--ease-out);
  }
  .btn {
    transition:
      background-color 0.2s,
      border-color 0.2s,
      color 0.2s;
  }
}

/* ── Hero video (assets/hero.v1.js) ────────────────────────────────── */

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  opacity: 0;
  pointer-events: none;
}

.hero__video.is-playing {
  opacity: 1;
}

.hero__toggle {
  position: absolute;
  top: calc(clamp(16px, 3vw, 28px) + 28px);
  right: var(--gutter);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--cream-70);
  border-radius: 999px;
  background: rgb(0 35 63 / 0.35);
  color: var(--cream);
  cursor: pointer;
}

.hero__toggle[hidden] {
  display: none;
}

.hero__toggle:hover {
  border-color: var(--cream);
  background: rgb(0 35 63 / 0.6);
}

.hero__toggle svg {
  fill: currentColor;
}

.hero__toggle[aria-pressed="false"] .hero__toggle-play,
.hero__toggle[aria-pressed="true"] .hero__toggle-pause {
  display: none;
}

@media (prefers-reduced-motion: no-preference) {
  .hero__video {
    transition: opacity 0.8s ease-out;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__video,
  .hero__toggle {
    display: none;
  }
}

.nowrap {
  white-space: nowrap;
}

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