/* 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%));
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .9  0 0 0 0 .8  0 0 0 0 .6  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

*,
*::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;
}

.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;
  overflow: hidden;
  filter: drop-shadow(0 12px 28px rgb(230 191 108 / 22%)) 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-sheen {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgb(255 238 196 / 22%) 50%, transparent 65%) -200% 0 / 200% 100% no-repeat;
  animation: btn-sheen 4.8s 1.4s ease-in-out infinite;
}

@keyframes btn-sheen {
  0% {
    background-position: 200% 0;
  }
  30%,
  100% {
    background-position: -200% 0;
  }
}

.btn--play > :not(.btn-sheen) {
  position: relative;
  z-index: 1;
}

.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%);
    filter: drop-shadow(0 14px 34px rgb(230 191 108 / 34%)) drop-shadow(0 2px 0 rgb(0 0 0 / 50%));
  }

  .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 button {
  min-width: 34px;
  min-height: 28px;
  padding: 0 6px;
  border: 0;
  background: transparent;
  font: 700 11px/1 var(--ui);
  letter-spacing: 0.1em;
  color: var(--ink-3);
  cursor: pointer;
}

.lang button[aria-pressed="true"] {
  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%;
}

.hero-dark {
  animation: drift 40s ease-in-out infinite alternate;
  transform-origin: 60% 30%;
}

@keyframes drift {
  from {
    transform: scale(1.04);
  }
  to {
    transform: scale(1.12) translate(-1%, 1%);
  }
}

/* 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-ray {
  position: absolute;
  top: -10%;
  left: 50%;
  width: min(60vw, 520px);
  height: 90%;
  transform: translateX(-50%);
  background: radial-gradient(50% 100% at 50% 0%, rgb(255 226 160 / 28%), transparent 70%);
  mix-blend-mode: screen;
  animation: ray 9s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes ray {
  from {
    opacity: 0.55;
  }
  to {
    opacity: 1;
  }
}

.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%);
}

.grain {
  position: absolute;
  inset: 0;
  background: var(--grain);
  opacity: 0.18;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.motes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.mote {
  position: absolute;
  bottom: -10px;
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: radial-gradient(circle, #ffe9b0, rgb(255 210 120 / 0%) 70%);
  opacity: 0;
  animation: rise var(--d) linear var(--delay) infinite;
}

@keyframes rise {
  0% {
    transform: translate(0, 0);
    opacity: 0;
  }
  12% {
    opacity: var(--o);
  }
  85% {
    opacity: var(--o);
  }
  100% {
    transform: translate(var(--x), -105vh);
    opacity: 0;
  }
}

.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);
  padding: 6px 12px;
  border: 1px solid rgb(201 168 106 / 34%);
  background: rgb(10 8 6 / 46%);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7ed08a;
  box-shadow: 0 0 0 0 rgb(126 208 138 / 60%);
  animation: pulse 2.4s ease-out infinite;
}

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

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgb(126 208 138 / 55%);
  }
  70%,
  100% {
    box-shadow: 0 0 0 8px rgb(126 208 138 / 0%);
  }
}

.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);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-left: -22px;
  color: var(--brass);
  animation: bob 2.2s ease-in-out infinite;
}

.scroll-cue .ico {
  width: 18px;
  height: 18px;
  transform: rotate(90deg);
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.6;
  }
  50% {
    transform: translateY(6px);
    opacity: 1;
  }
}

/* entrance */
.js .hero-inner > * {
  opacity: 0;
  transform: translateY(14px);
  animation: enter 0.9s var(--ease) forwards;
}

.js .hero-inner > :nth-child(1) {
  animation-delay: 0.1s;
}
.js .hero-inner > :nth-child(2) {
  animation-delay: 0.2s;
}
.js .hero-inner > :nth-child(3) {
  animation-delay: 0.45s;
}
.js .hero-inner > :nth-child(4) {
  animation-delay: 0.55s;
}
.js .hero-inner > :nth-child(5) {
  animation-delay: 0.7s;
}
.js .hero-inner > :nth-child(6) {
  animation-delay: 0.85s;
}

@keyframes enter {
  to {
    opacity: 1;
    transform: none;
  }
}

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

.sec-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 640px;
  margin: 0 auto clamp(28px, 5vw, 48px);
  text-align: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brass);
}

.kicker::before,
.kicker::after {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--edge);
}

.sec-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(28px, 7vw, 48px);
  line-height: 1.08;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--parch);
}

.sec-sub {
  margin-top: 14px;
  max-width: 46ch;
  font-size: 16px;
  color: var(--ink-2);
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--rd, 0s);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---------- reel ---------- */
/* phones: a snap carousel that starts on the battle clip, neighbours peeking from both sides */
.phones {
  --phone-w: min(64vw, 280px);
  display: flex;
  gap: 14px;
  margin: 0 calc(var(--gutter) * -1);
  padding: 8px calc((100vw - var(--phone-w)) / 2) 6px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  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: center;
}

.phone--main {
  order: -1;
}

.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 {
  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;
}

/* ---------- ages ---------- */
.ages-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  position: relative;
}

.ages-row::before {
  content: "";
  position: absolute;
  left: 16%;
  right: 16%;
  top: clamp(98px, 26vw, 176px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--edge) 15%, var(--edge) 85%, transparent);
}

.age {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.age:nth-child(2) {
  --rd: 0.12s;
}
.age:nth-child(3) {
  --rd: 0.24s;
}

.age-art {
  display: grid;
  place-items: end center;
  width: 100%;
  height: clamp(96px, 26vw, 176px);
  padding-bottom: 6px;
  background: radial-gradient(50% 32% at 50% 88%, rgb(230 191 108 / 20%), transparent 100%);
}

.age-art img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: clamp(84px, 23vw, 164px);
  image-rendering: pixelated;
  filter: drop-shadow(0 10px 14px rgb(0 0 0 / 55%));
}

.age-no {
  position: relative;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin: -2px 0 10px;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
}

.age-no::before {
  content: "";
  position: absolute;
  inset: 3px;
  z-index: -1;
  border: 1px solid var(--bronze);
  background: var(--bg);
  transform: rotate(45deg);
}

.age h3 {
  font-family: var(--display);
  font-size: clamp(14px, 3.8vw, 20px);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--parch);
}

.age p {
  margin-top: 6px;
  max-width: 22ch;
  font-size: clamp(12px, 3.2vw, 14px);
  line-height: 1.4;
  color: var(--ink-3);
}

/* ---------- features ---------- */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.card {
  --cut: 12px;
  --ch-edge: linear-gradient(180deg, rgb(201 168 106 / 50%), rgb(138 115 84 / 22%));
  --ch-fill: linear-gradient(180deg, rgb(255 236 200 / 5%), transparent 40%), linear-gradient(#17140f, #110f0c);
  display: grid;
  grid-template-columns: 96px 1fr;
  grid-template-rows: auto 1fr;
  column-gap: 16px;
  align-items: center;
  padding: 18px 18px 18px 14px;
}

.card-art {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 96px;
  height: 76px;
  background: radial-gradient(50% 50% at 50% 60%, rgb(230 191 108 / 16%), transparent 75%);
}

.card-art img {
  max-width: 96px;
  max-height: 72px;
  width: auto;
  height: auto;
  image-rendering: pixelated;
  filter: drop-shadow(0 6px 8px rgb(0 0 0 / 55%));
}

.card-art--glyph .ico {
  width: 34px;
  height: 34px;
  color: var(--gold);
  filter: drop-shadow(0 2px 10px rgb(230 191 108 / 35%));
}

.card h3 {
  align-self: end;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--parch);
}

.card p {
  align-self: start;
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-2);
}

/* ---------- vow ---------- */
.vow {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.vow-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(56px, 10vw, 96px) var(--gutter);
  text-align: center;
  background:
    radial-gradient(60% 80% at 50% 50%, rgb(230 191 108 / 10%), transparent 70%),
    linear-gradient(180deg, transparent, rgb(58 44 33 / 28%) 30%, rgb(58 44 33 / 28%) 70%, transparent);
}

.vow-inner::before,
.vow-inner::after {
  content: "";
  position: absolute;
  left: 50%;
  width: min(80%, 560px);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--edge), transparent);
}

.vow-inner::before {
  top: 0;
}

.vow-inner::after {
  bottom: 0;
}

.vow-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 20px;
  color: var(--gold);
}

.vow-mark .ico {
  width: 30px;
  height: 30px;
}

.vow-title {
  max-width: 16ch;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(38px, 10vw, 76px);
  line-height: 1;
  color: var(--parch);
  text-wrap: balance;
}

.vow-text {
  max-width: 44ch;
  margin-top: 20px;
  font-size: clamp(15px, 4vw, 18px);
  color: var(--ink-2);
}

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

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

.letter .kicker::before {
  display: none;
}

.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;
}

.letter-text::first-letter {
  float: left;
  margin: 0.06em 0.1em 0 0;
  font-family: var(--display);
  font-style: normal;
  font-weight: 700;
  font-size: 3.1em;
  line-height: 0.82;
  color: var(--gold);
}

.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: 28px 22px 22px;
  text-align: center;
}

.support-heart {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 12px;
  color: #e88a7a;
  filter: drop-shadow(0 4px 16px rgb(232 138 122 / 45%));
  animation: beat 2.6s ease-in-out infinite;
}

.support-heart .ico {
  width: 40px;
  height: 40px;
}

@keyframes beat {
  0%,
  60%,
  100% {
    transform: scale(1);
  }
  10% {
    transform: scale(1.12);
  }
  20% {
    transform: scale(1);
  }
  30% {
    transform: scale(1.08);
  }
}

.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);
}

.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: 560px) {
  .cards {
    grid-template-columns: 1fr 1fr;
  }

  .card {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    justify-items: center;
    padding: 24px 20px 26px;
    text-align: center;
  }

  .card-art {
    grid-row: auto;
    width: 100%;
    height: 96px;
    margin-bottom: 14px;
  }

  .card-art img {
    max-width: 120px;
    max-height: 96px;
  }

  .card-art--wide img {
    max-width: 150px;
  }

  .card p {
    margin-top: 8px;
  }

}

@media (min-width: 760px) {
  .phones {
    justify-content: center;
    align-items: center;
    gap: clamp(20px, 3vw, 40px);
    margin: 0;
    padding: 20px 0 10px;
    overflow: visible;
  }

  .phone {
    width: clamp(200px, 22vw, 268px);
  }

  .phone--main {
    order: 0;
    width: clamp(240px, 26vw, 310px);
  }

  .phone--side:first-child {
    transform: rotate(-4deg) translateY(24px);
  }

  .phone--side:last-child {
    transform: rotate(4deg) translateY(24px);
  }

  .js .phone--side:first-child[data-reveal] {
    transform: rotate(-4deg) translateY(46px);
  }

  .js .phone--side:last-child[data-reveal] {
    transform: rotate(4deg) translateY(46px);
  }

  .js .phone--side:first-child[data-reveal].is-in {
    transform: rotate(-4deg) translateY(24px);
  }

  .js .phone--side:last-child[data-reveal].is-in {
    transform: rotate(4deg) translateY(24px);
  }

  .phone--main {
    --rd: 0.1s;
  }

  .phone--side:last-child {
    --rd: 0.2s;
  }
}

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

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

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

  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .card:nth-child(3n + 2) {
    --rd: 0.08s;
  }

  .card:nth-child(3n) {
    --rd: 0.16s;
  }

  .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,
  .scroll-cue {
    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;
  }

  .hero-dark {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }
}
