/* Three Villagers landing. Tokens mirror the game menu theme (packages/client/src/ui/theme/_base.scss);
   the logo lockup is the Home screen title (ui/react/homeScreen.module.scss .ornament/.title), scaled in em. */

@property --reveal {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 0%;
}

:root {
  --bg: #0e100c;
  --bg-2: #13110d;
  --ink: #e8e4d8;
  --ink-2: rgb(232 228 216 / 74%);
  --ink-3: rgb(232 228 216 / 52%);
  --parch: #f3eee4;
  --earth: #6b5340;
  --earth-deep: #3a2c21;
  --bronze: #8a7354;
  --edge: rgb(138 115 84 / 42%);
  --brass: #c9a86a;
  --gold: #e6bf6c;
  --gold-hi: #f6e2a8;

  --display: Cinzel, Palatino, "Palatino Linotype", serif;
  --serif: "Cormorant Garamond", Georgia, serif;
  --ui: "DM Sans", ui-sans-serif, system-ui, sans-serif;

  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --wrap: 1120px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --edge-gold: linear-gradient(180deg, #f3d895 0%, #c79a4c 48%, #7d5f33 100%);
  --fill-earth: linear-gradient(180deg, rgb(255 236 200 / 12%) 0%, transparent 48%), linear-gradient(180deg, #7b604a 0%, #3a2c21 100%);
  --fill-glass: linear-gradient(180deg, rgb(255 236 200 / 6%), transparent 60%), linear-gradient(rgb(14 12 9 / 78%), rgb(14 12 9 / 78%));
}

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

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* text for screen readers and search engines only (the h1 under the logo) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.ico {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  fill: currentColor;
}

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

/* =================================================================
   LOGO: the game's Home title (Cinzel 700, two lines, .06em tracking, line-height .8), in em so it scales.
   Only the fill may change. No ornaments, no gradient.
   ================================================================= */
.logo {
  --logo-fill: var(--parch);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: max-content;
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  line-height: 0.8;
  user-select: none;
}

.logo-word {
  display: flex;
  flex-direction: column;
  align-items: center;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--logo-fill);
  text-shadow: 0 1px 2px rgb(0 0 0 / 55%);
}

.logo-word > span {
  display: block;
}

.logo--hero {
  font-size: clamp(38px, 11.4vw, 96px);
}

.logo--bar {
  font-size: 15px;
}

.logo--final {
  font-size: clamp(30px, 8vw, 54px);
}

.logo--foot {
  font-size: 22px;
  opacity: 0.9;
}

/* =================================================================
   CHAMFER: the menu kit's octagon (.ch / .ch--frame), edge under a 1px-inset fill.
   ================================================================= */
.ch {
  --cut: 10px;
  --ch-edge: var(--edge);
  --ch-fill: var(--fill-glass);
  position: relative;
  isolation: isolate;
}

.ch::before,
.ch::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  clip-path: polygon(
    var(--cut) 0,
    calc(100% - var(--cut)) 0,
    100% var(--cut),
    100% calc(100% - var(--cut)),
    calc(100% - var(--cut)) 100%,
    var(--cut) 100%,
    0 calc(100% - var(--cut)),
    0 var(--cut)
  );
  transition: background 0.25s ease, opacity 0.25s ease;
}

.ch::before {
  inset: 0;
  background: var(--ch-edge);
}

.ch::after {
  inset: 1px;
  background: var(--ch-fill);
}

/* =================================================================
   BUTTONS
   ================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 0 20px;
  font-family: var(--ui);
  color: var(--ink);
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.2s var(--ease), filter 0.25s ease;
}

.btn:active {
  transform: translateY(1px) scale(0.99);
}

.btn-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  text-align: left;
  line-height: 1.2;
}

.btn-label {
  white-space: nowrap;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.btn-sub {
  margin-top: 3px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-2);
  white-space: nowrap;
}

.btn--play {
  --cut: 12px;
  --ch-edge: var(--edge-gold);
  --ch-fill: var(--fill-earth);
  min-height: 70px;
  padding: 0 22px 0 24px;
  filter: drop-shadow(0 2px 0 rgb(0 0 0 / 50%));
}

.btn--play .btn-label {
  font-size: 18px;
  color: var(--parch);
}

.btn--play .btn-text {
  flex: 1;
}

.btn--play .ico--play {
  width: 26px;
  height: 26px;
  color: var(--gold);
}

.btn--play .ico--chev {
  width: 16px;
  height: 16px;
  color: var(--gold);
  transition: transform 0.25s var(--ease);
}

.btn--quiet {
  --ch-edge: linear-gradient(180deg, rgb(201 168 106 / 60%), rgb(138 115 84 / 34%));
  --ch-fill: var(--fill-glass);
}

.btn--quiet .ico {
  width: 22px;
  height: 22px;
  color: #a4c639;
}

@media (hover: hover) {
  .btn--play:hover {
    --ch-fill: linear-gradient(180deg, rgb(255 236 200 / 18%) 0%, transparent 48%), linear-gradient(180deg, #8a6c52 0%, #46362a 100%);
  }

  .btn--play:hover .ico--chev {
    transform: translateX(4px);
  }

  .btn--quiet:hover {
    --ch-edge: linear-gradient(180deg, var(--gold), var(--bronze));
  }
}

/* =================================================================
   TOP BAR
   ================================================================= */
.bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(8px + env(safe-area-inset-top, 0px)) var(--gutter) 8px;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
  border-bottom: 1px solid transparent;
}

.bar.is-solid {
  background: rgb(12 11 9 / 78%);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  backdrop-filter: blur(12px) saturate(1.2);
  border-bottom-color: rgb(138 115 84 / 22%);
}

.bar-brand {
  display: block;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.35s ease, transform 0.35s var(--ease);
  pointer-events: none;
}

.bar.is-solid .bar-brand {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.bar-end {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.chip {
  --cut: 6px;
  --ch-edge: var(--edge);
  --ch-fill: linear-gradient(rgb(0 0 0 / 34%), rgb(0 0 0 / 34%));
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

.chip--support {
  --ch-edge: linear-gradient(180deg, rgb(230 191 108 / 75%), rgb(138 115 84 / 45%));
}

.chip--support .ico {
  width: 15px;
  height: 15px;
  color: #e88a7a;
}

.lang {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--edge);
  background: rgb(0 0 0 / 34%);
}

.lang a {
  display: grid;
  place-items: center;
  min-width: 34px;
  min-height: 28px;
  padding: 0 6px;
  font: 700 11px/1 var(--ui);
  letter-spacing: 0.1em;
  color: var(--ink-3);
  cursor: pointer;
}

.lang a[aria-current="page"] {
  background: linear-gradient(180deg, var(--earth), var(--earth-deep));
  color: var(--parch);
}

/* =================================================================
   HERO
   ================================================================= */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(72px + env(safe-area-inset-top, 0px)) var(--gutter) 84px;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--bg);
}

.hero-dark,
.hero-lit {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 40%;
}

/* Dawn: the lit valley spreads from the light shaft at the top. */
.hero-lit {
  opacity: 0;
  -webkit-mask-image: radial-gradient(130% 110% at 50% 0%, #000 calc(var(--reveal) - 30%), transparent var(--reveal));
  mask-image: radial-gradient(130% 110% at 50% 0%, #000 calc(var(--reveal) - 30%), transparent var(--reveal));
  transition: opacity 1.2s ease;
}

.hero.is-lit .hero-lit {
  opacity: 1;
  animation: dawn 3.2s var(--ease) forwards;
}

@keyframes dawn {
  from {
    --reveal: 0%;
  }
  to {
    --reveal: 190%;
  }
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 55% at 50% 48%, rgb(8 7 5 / 62%), rgb(8 7 5 / 18%) 70%, transparent 100%),
    linear-gradient(180deg, rgb(8 7 5 / 55%) 0%, rgb(8 7 5 / 10%) 26%, rgb(8 7 5 / 22%) 62%, var(--bg) 100%);
}

.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 760px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: clamp(18px, 3.4vh, 30px);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
}

.eyebrow-ver:not(:empty)::before {
  content: "·";
  margin-right: 8px;
}

.tagline {
  margin-top: clamp(16px, 3vh, 26px);
  max-width: 26ch;
  text-wrap: balance;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(22px, 6vw, 34px);
  line-height: 1.15;
  color: #f6efdd;
  text-shadow: 0 2px 16px rgb(0 0 0 / 80%);
}

.vows {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 14px;
  margin-top: 16px;
}

.vows li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: clamp(11px, 3.2vw, 13px);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
  text-shadow: 0 1px 8px rgb(0 0 0 / 90%);
}

.vows .ico {
  width: 14px;
  height: 14px;
  color: var(--gold);
  filter: drop-shadow(0 1px 4px rgb(0 0 0 / 80%));
}

.cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 400px;
  margin-top: clamp(22px, 4vh, 34px);
}

.cta .btn {
  width: 100%;
}

.hero-community {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink-2);
}

.hero-community a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 4px;
  text-shadow: 0 1px 8px rgb(0 0 0 / 90%);
  transition: color 0.2s ease;
}

.hero-community .ico {
  width: 18px;
  height: 18px;
}

.hero-community a:hover {
  color: var(--parch);
}

.hero-community .sep {
  width: 5px;
  height: 5px;
  border: 1px solid var(--bronze);
  transform: rotate(45deg);
}

/* =================================================================
   SECTIONS
   ================================================================= */
.section {
  position: relative;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(64px, 12vw, 120px) var(--gutter) 0;
}

.sec-title {
  max-width: 24ch;
  margin-bottom: clamp(20px, 4vw, 32px);
  font-family: var(--ui);
  font-weight: 700;
  font-size: clamp(26px, 5.6vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--parch);
  text-wrap: balance;
}

.sec-title--sm {
  margin-top: clamp(48px, 8vw, 72px);
  font-size: clamp(22px, 4.4vw, 30px);
}

/* ---------- moments ---------- */
/* phones: a snap carousel on a phone, one row of four on a wide screen */
.phones {
  --phone-w: min(62vw, 260px);
  display: flex;
  gap: 16px;
  margin: 0 calc(var(--gutter) * -1);
  padding: 4px var(--gutter) 6px;
  overflow-x: auto;
  /* overflow-x alone makes the row scroll vertically too (a subpixel caption height is enough): horizontal only */
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--gutter);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

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

.phone {
  flex: 0 0 auto;
  width: var(--phone-w);
  margin: 0;
  scroll-snap-align: start;
}

.phone figcaption {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--ink-2);
}

.phone-body {
  position: relative;
  aspect-ratio: 400 / 866;
  padding: 7px;
  border-radius: 34px;
  background: linear-gradient(155deg, #3a3129 0%, #0d0b09 45%, #221c16 100%);
  box-shadow:
    0 0 0 1px rgb(201 168 106 / 50%),
    0 0 0 2px rgb(8 6 5 / 90%),
    inset 0 0 0 1px rgb(255 255 255 / 6%),
    0 30px 60px -20px rgb(0 0 0 / 85%),
    0 0 80px -30px rgb(230 191 108 / 35%);
}

.phone-body img,
.phone-body video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 27px;
  background: #0b0a08;
}

.phone-island {
  position: absolute;
  top: 15px;
  left: 50%;
  width: 28%;
  height: 16px;
  transform: translateX(-50%);
  border-radius: 10px;
  background: #050403;
}

/* ---------- create: the editor ---------- */
.create {
  display: grid;
  gap: 28px;
}

.create-phone {
  order: 1;
  width: min(66vw, 280px);
  margin: 0 auto;
}

.create-list {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}

.create-list li {
  position: relative;
  padding-left: 20px;
  font-size: 16px;
  color: var(--ink-2);
}

.create-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
}

.create-note {
  margin-top: 20px;
  font-size: 14px;
  color: var(--ink-3);
}

/* ---------- about + faq ---------- */
.about-text {
  max-width: 62ch;
  font-size: clamp(16px, 4vw, 19px);
  line-height: 1.6;
  color: var(--ink);
}

.facts,
.faq {
  display: grid;
  margin: clamp(24px, 4vw, 36px) 0 0;
}

.faq {
  margin-top: 0;
}

.facts > div,
.faq > div {
  padding: 14px 0;
  border-top: 1px solid rgb(138 115 84 / 26%);
}

.facts dt {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass);
}

.facts dd,
.faq dd {
  margin: 4px 0 0;
  font-size: 16px;
  color: var(--ink-2);
}

.faq dt {
  font-size: 17px;
  font-weight: 700;
  color: var(--parch);
}

.faq dd {
  max-width: 64ch;
}

/* ---------- author / support / community ---------- */
.author {
  display: grid;
  gap: 28px;
}

.letter {
  position: relative;
  padding: 4px 0 0;
}

.letter .sec-title {
  font-size: clamp(26px, 6.4vw, 40px);
}

.letter-text {
  margin-top: 18px;
  font-family: var(--serif);
  font-size: clamp(20px, 5vw, 24px);
  font-weight: 500;
  font-style: italic;
  line-height: 1.45;
  color: #e9e1cc;
}

.side {
  display: grid;
  gap: 16px;
}

.support {
  --cut: 14px;
  --ch-edge: linear-gradient(180deg, #f0d48f 0%, #b88a45 50%, #6e532f 100%);
  --ch-fill: radial-gradient(90% 70% at 50% 0%, rgb(232 138 122 / 14%), transparent 70%), linear-gradient(180deg, #2a2119 0%, #15110d 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 22px 22px;
  text-align: center;
}

.support h3 {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--parch);
}

.support > p {
  margin-top: 8px;
  max-width: 34ch;
  font-size: 15px;
  color: var(--ink-2);
}

.btn--support {
  --cut: 10px;
  --ch-edge: linear-gradient(180deg, #f6c8b8, #c86a5a 60%, #7d3a30);
  --ch-fill: linear-gradient(180deg, rgb(255 230 220 / 14%), transparent 50%), linear-gradient(180deg, #8c4a3e, #4d2620);
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 300px;
  margin-top: 18px;
  filter: drop-shadow(0 10px 24px rgb(232 138 122 / 22%));
}

.btn--support .ico {
  width: 20px;
  height: 20px;
}

@media (hover: hover) {
  .btn--support:hover {
    --ch-fill: linear-gradient(180deg, rgb(255 230 220 / 20%), transparent 50%), linear-gradient(180deg, #a3584a, #5a2d26);
  }
}

.support-note {
  margin-top: 12px;
  font-size: 12px;
  color: var(--ink-3);
}

/* crypto tip: a quiet <details> under the CloudTips note; QR on a parchment tile, address, copy */
.crypto {
  width: 100%;
  max-width: 420px;
  margin-top: 18px;
  border-top: 1px solid var(--edge);
}

.crypto-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding-top: 14px;
  list-style: none;
  cursor: pointer;
  font-size: 14px;
  color: var(--ink-2);
  transition: color 0.2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.crypto-toggle::-webkit-details-marker {
  display: none;
}

.crypto-net {
  padding: 2px 8px;
  border: 1px solid rgb(201 168 106 / 55%);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold);
  clip-path: polygon(4px 0, calc(100% - 4px) 0, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 0 calc(100% - 4px), 0 4px);
  background: rgb(201 168 106 / 10%);
}

.crypto-chev {
  width: 14px;
  height: 14px;
  transition: transform 0.25s var(--ease);
}

.crypto[open] .crypto-chev {
  transform: rotate(90deg);
}

@media (hover: hover) {
  .crypto-toggle:hover {
    color: var(--parch);
  }
}

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

.crypto-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-top: 10px;
  animation: crypto-in 0.3s var(--ease) both;
}

@keyframes crypto-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}

.crypto-qr {
  flex: none;
  width: 176px;
  margin: 0;
  padding: 8px;
  color: #15110d;
  background: #fbf8f1;
  border: 2px solid var(--brass);
  border-radius: 6px;
  box-shadow: 0 0 0 4px rgb(0 0 0 / 30%), 0 14px 30px rgb(0 0 0 / 40%);
}

.crypto-qr svg {
  display: block;
  width: 100%;
  height: auto;
}

.crypto-info {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  min-width: 0;
  text-align: left;
}

.crypto-label {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}

.crypto-address {
  display: block;
  padding: 10px 12px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 14px;
  line-height: 1.45;
  color: var(--parch);
  overflow-wrap: anywhere;
  background: rgb(0 0 0 / 32%);
  border: 1px solid var(--edge);
  border-radius: 4px;
  user-select: all;
  -webkit-user-select: all;
}

.crypto-copy {
  padding: 0 20px;
  font: inherit;
  border: 0;
  background: none;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
}

.crypto-copy .btn-label {
  font-size: 13px;
}

.crypto-copy .ico {
  width: 18px;
  height: 18px;
}

.crypto-copy .ico--done,
.crypto-copy.is-copied .ico--copy {
  display: none;
}

.crypto-copy.is-copied .ico--done {
  display: block;
  color: #9fd38a;
}

.crypto-warn {
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink-3);
}

@media (prefers-reduced-motion: reduce) {
  .crypto-body {
    animation: none;
  }
}

.community-text {
  font-size: 15px;
  color: var(--ink-2);
  text-align: center;
}

.community-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.social {
  --cut: 10px;
  --ch-edge: var(--edge);
  --ch-fill: var(--fill-glass);
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 0 14px;
  line-height: 1.2;
  transition: transform 0.2s var(--ease);
}

.social .ico {
  width: 26px;
  height: 26px;
}

.social--discord .ico {
  color: #8c9eff;
}

.social--telegram .ico {
  color: #5fb6e6;
}

.social b {
  display: block;
  font-size: 15px;
  letter-spacing: 0.04em;
}

.social small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--ink-3);
}

@media (hover: hover) {
  .social:hover {
    --ch-edge: linear-gradient(180deg, var(--gold), var(--bronze));
    transform: translateY(-2px);
  }
}

/* ---------- final ---------- */
.final {
  position: relative;
  margin-top: clamp(72px, 12vw, 120px);
  padding: clamp(72px, 12vw, 120px) var(--gutter) clamp(88px, 14vw, 130px);
  overflow: hidden;
  isolation: isolate;
}

.final-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("/landing/media/valley-lit.jpg") 60% 50% / cover no-repeat;
  filter: saturate(0.8) brightness(0.55);
}

/* the fade sits outside the filter, so its ends match the page colour exactly */
.final::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, var(--bg) 0%, rgb(14 16 12 / 25%) 32%, rgb(14 16 12 / 45%) 70%, var(--bg) 100%);
}

.final-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}

.final-title {
  margin-top: 26px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(34px, 9vw, 60px);
  line-height: 1;
  color: var(--parch);
  text-shadow: 0 2px 20px rgb(0 0 0 / 70%);
}

.final-sub {
  margin-top: 12px;
  font-size: 16px;
  color: var(--ink);
  text-shadow: 0 1px 10px rgb(0 0 0 / 80%);
}

.cta--final {
  margin-top: 28px;
}

/* ---------- footer ---------- */
.foot {
  padding: 40px var(--gutter) calc(110px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgb(138 115 84 / 18%);
}

.foot-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  max-width: var(--wrap);
  margin: 0 auto;
  text-align: center;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.foot-links a {
  display: inline-block;
  padding: 8px 0;
}

.foot-links a:hover {
  color: var(--parch);
}

.foot-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 10px;
  font-size: 12px;
  color: var(--ink-3);
}

/* ---------- phone dock ---------- */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  gap: 8px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgb(14 16 12 / 0%), rgb(14 16 12 / 88%) 34%);
  transform: translateY(110%);
  transition: transform 0.4s var(--ease);
  pointer-events: none;
}

.dock.is-on {
  transform: none;
  pointer-events: auto;
}

.btn--dock {
  flex: 1;
  justify-content: center;
  min-height: 56px;
}

.btn--dock .btn-label {
  font-size: 16px;
}

.btn--dock .ico--play {
  width: 22px;
  height: 22px;
}

.btn--icon {
  justify-content: center;
  width: 56px;
  min-height: 56px;
  padding: 0;
}

/* =================================================================
   WIDER SCREENS
   ================================================================= */
@media (min-width: 760px) {
  .facts {
    grid-template-columns: 1fr 1fr;
    column-gap: 40px;
  }
}

@media (min-width: 900px) {
  .cta {
    flex-direction: row;
    max-width: 600px;
  }

  .cta .btn--play {
    flex: 1.35;
  }

  .cta .btn--quiet {
    flex: 1;
  }

  .phones {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(16px, 2.4vw, 32px);
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .phone {
    width: auto;
  }

  .create {
    grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
  }

  .create-phone {
    order: 0;
    width: 100%;
  }

  .author {
    grid-template-columns: 1.15fr 1fr;
    gap: clamp(32px, 5vw, 72px);
    align-items: start;
  }

  .side {
    padding-top: 30px;
  }

  .foot-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .foot-meta {
    justify-content: flex-end;
  }

  .foot {
    padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px));
  }

  .dock {
    display: none;
  }
}

/* phones held sideways: the hero must fit one short screen */
@media (orientation: landscape) and (max-height: 520px) {
  .hero {
    padding-top: calc(60px + env(safe-area-inset-top, 0px));
    padding-bottom: 28px;
  }

  .logo--hero {
    font-size: clamp(28px, 7.4vh, 44px);
  }

  .eyebrow {
    margin-bottom: 12px;
  }

  .tagline {
    margin-top: 10px;
    max-width: none;
    font-size: 20px;
  }

  .vows {
    margin-top: 8px;
  }

  .cta {
    flex-direction: row;
    max-width: 560px;
    margin-top: 14px;
  }

  .cta .btn--play {
    min-height: 58px;
    flex: 1.3;
  }

  .cta .btn--play .btn-label {
    font-size: 16px;
  }

  .cta .btn--quiet {
    flex: 1;
  }

  .hero-community {
    display: none;
  }

  .dock {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
