/* Kindred — merrie.co. Walnut, brass, linen, moss. See brand/BRAND.md. */

@font-face {
  font-family: "Castoro";
  src: url("/assets/fonts/Castoro-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Castoro";
  src: url("/assets/fonts/Castoro-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/assets/fonts/HankenGrotesk-normal.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #f3ece3;
  --paper: #fbf8f3;
  --raised: #ede4d8;
  --ink: #2a1f19;
  --bark: #76665b;
  --line: #e1d6c8;
  --brass: #9c7840;
  --brass-soft: rgba(156, 120, 64, 0.16);
  --moss: #2e4a3d;
  --ember: #cf5339;
  --btn: #2e4a3d;
  --btn-ink: #f6f0e8;
  --btn-2: rgba(42, 31, 25, 0.06);
  --shadow: 0 1px 1px rgba(42, 31, 25, 0.04), 0 18px 40px -22px rgba(42, 31, 25, 0.35);
  --grain-opacity: 0.07;
  --tint-a: #ead2c0;
  --tint-b: #cddbe3;
  --tint-c: #ddd2e6;
  --tint-d: #d6e2d0;
  --tint-ink: #2a1f19;

  --serif: "Castoro", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.22, 0.8, 0.24, 1);
  --gutter: clamp(20px, 5vw, 56px);
  --measure: 34rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16100d;
    --paper: #211814;
    --raised: #2b211b;
    --ink: #f2e9dd;
    --bark: #a6968a;
    --line: #3a2e27;
    --brass: #d2ae72;
    --brass-soft: rgba(210, 174, 114, 0.14);
    --moss: #9dbba9;
    --ember: #e2664c;
    --btn: #f2e9dd;
    --btn-ink: #1b1410;
    --btn-2: rgba(242, 233, 221, 0.08);
    --shadow: 0 1px 1px rgba(0, 0, 0, 0.3), 0 24px 48px -24px rgba(0, 0, 0, 0.8);
    --grain-opacity: 0.09;
    --tint-a: #6a4a3a;
    --tint-b: #34505f;
    --tint-c: #4b4062;
    --tint-d: #3d5a44;
    --tint-ink: #f6eee3;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* A faint film grain, so flat color reads like paper and velvet instead of a screen. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.5  0 0 0 0 0.42  0 0 0 0 0.36  0 0 0 0.9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
}
@media (prefers-color-scheme: dark) {
  body::before {
    mix-blend-mode: screen;
  }
}

a {
  color: inherit;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  text-underline-offset: 0.2em;
  transition: text-decoration-color 0.3s var(--ease), color 0.3s var(--ease);
}
a:hover {
  text-decoration-color: currentColor;
}
:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 4px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  margin: 0;
  text-wrap: balance;
}
p {
  margin: 0;
  text-wrap: pretty;
}
em {
  font-style: italic;
}

.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* ---------- Header ---------- */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 22px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.375rem;
  letter-spacing: 0.01em;
}
.brand svg {
  width: 34px;
  height: 22px;
}
.top nav {
  display: flex;
  gap: 26px;
  font-size: 0.9375rem;
  color: var(--bark);
}
.top nav a {
  text-decoration: none;
}
.top nav a:hover {
  color: var(--ink);
}

/* ---------- The mark ---------- */

.mark .ring {
  fill: none;
  stroke: currentColor;
}
.mark .lens {
  fill: var(--brass);
}

/* ---------- Buttons ---------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 26px;
  border-radius: 999px;
  border: 0;
  font: 600 1rem/1 var(--sans);
  letter-spacing: 0.005em;
  text-decoration: none;
  cursor: pointer;
  background: var(--btn);
  color: var(--btn-ink);
  box-shadow: var(--shadow);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), background-color 0.3s var(--ease);
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:active {
  transform: scale(0.98);
  transition-duration: 0.12s;
}
.btn svg {
  width: 18px;
  height: 18px;
}
.btn.quiet {
  background: var(--btn-2);
  color: var(--ink);
  box-shadow: none;
}
.soon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  color: var(--bark);
}
.soon::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brass);
}
.fine {
  font-size: 0.875rem;
  color: var(--bark);
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
  padding-block: clamp(36px, 8vw, 120px) clamp(64px, 10vw, 140px);
}
.hero h1 {
  font-size: clamp(3rem, 6.4vw + 0.5rem, 6.25rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
}
.hero h1 em {
  color: var(--brass);
}
.hero .lede {
  margin-top: 28px;
  max-width: 31rem;
  font-size: clamp(1.0625rem, 0.4vw + 1rem, 1.25rem);
  line-height: 1.6;
  color: var(--bark);
}
.hero .actions {
  margin-top: 38px;
}
.hero .fine {
  margin-top: 18px;
}

/* The phone: a quiet portrait of the home screen. */
.phone {
  justify-self: center;
  width: min(330px, 82vw);
  aspect-ratio: 9 / 19;
  border-radius: 48px;
  padding: 11px;
  /* Always a dark walnut body with a faint brass edge, in either theme. */
  background: linear-gradient(160deg, #3b2d24, #120d0b 70%);
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.08), 0 50px 90px -40px rgba(42, 31, 25, 0.6),
    inset 0 0 0 1px rgba(210, 174, 114, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
}
.screen {
  height: 100%;
  border-radius: 38px;
  overflow: hidden;
  background: #17110e;
  color: #f2e9dd;
  display: flex;
  flex-direction: column;
  padding: 18px 18px 22px;
  position: relative;
}
.screen .status {
  display: flex;
  justify-content: space-between;
  font: 600 0.75rem/1 var(--sans);
  opacity: 0.85;
  padding: 2px 6px 0;
}
.screen h2 {
  font-size: 1.85rem;
  margin: 22px 6px 18px;
  letter-spacing: -0.01em;
}
.people {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 12px;
}
.person {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.face {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 400 2.1rem/1 var(--serif);
  color: #f6eee3;
  position: relative;
}
.face.a {
  background: radial-gradient(circle at 35% 30%, #8a6450, #4d362b 70%);
}
.face.b {
  background: radial-gradient(circle at 35% 30%, #57768a, #2c3f4b 70%);
}
.face.c {
  background: radial-gradient(circle at 35% 30%, #6e5e86, #3a3149 70%);
}
.face.d {
  background: radial-gradient(circle at 35% 30%, #5d7d62, #2f4433 70%);
}
.face.new::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #d2ae72, rgba(210, 174, 114, 0.15) 30%, #d2ae72 60%, rgba(210, 174, 114, 0.2) 85%, #d2ae72);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
  animation: sweep 6s linear infinite;
}
.person b {
  font: 400 1.1rem/1.1 var(--serif);
}
.person span {
  font-size: 0.75rem;
  color: #a6968a;
  margin-top: -4px;
}
.person span.new {
  color: #d2ae72;
  font-weight: 600;
}
.screen .invite {
  margin-top: auto;
  text-align: center;
  font: 600 0.8125rem/1 var(--sans);
  color: #d2ae72;
  letter-spacing: 0.02em;
}

/* ---------- Sections ---------- */

section {
  padding-block: clamp(72px, 10vw, 140px);
  border-top: 1px solid var(--line);
}
.eyebrow {
  font: 600 0.8125rem/1 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 22px;
}
section h2 {
  font-size: clamp(2.25rem, 3.6vw + 0.75rem, 4rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  max-width: 15ch;
}
section .lead {
  margin-top: 24px;
  max-width: var(--measure);
  font-size: clamp(1.0625rem, 0.3vw + 1rem, 1.1875rem);
  color: var(--bark);
}

/* How it goes: three moments, in order. */
.moments {
  margin-top: clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
  list-style: none;
  padding: 0;
  counter-reset: moment;
}
.moments li {
  counter-increment: moment;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.moments li::before {
  content: counter(moment);
  font: 400 0.95rem/1 var(--serif);
  color: var(--brass);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--brass) 50%, transparent);
  display: grid;
  place-items: center;
}
.moments h3 {
  font-size: 1.75rem;
  line-height: 1.1;
}
.moments p {
  color: var(--bark);
  max-width: 22rem;
}
.vignette {
  aspect-ratio: 4 / 3;
  border-radius: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  overflow: hidden;
  margin-bottom: 6px;
}
.vignette svg {
  width: 74%;
  height: auto;
  overflow: visible;
}
@media (max-width: 860px) {
  .vignette {
    aspect-ratio: 2 / 1;
  }
  .vignette svg {
    width: 56%;
  }
}

/* Vignette 1: a face with a slow brass ring, and a soft press. */
.v-face {
  fill: var(--tint-a);
}
.v-initial {
  font-family: var(--serif);
  font-size: 38px;
  fill: var(--tint-ink);
}
.v-ring {
  fill: none;
  stroke: var(--brass);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 60 260;
  transform-origin: 120px 80px;
  animation: spin 6s linear infinite;
}
.v-press {
  fill: var(--ink);
  opacity: 0;
  transform-origin: 156px 116px;
  animation: press 4.8s var(--ease) infinite;
}

/* Vignette 2: the record button turns into a rounded square while a brass ring traces time. */
.v-rec-track {
  fill: none;
  stroke: var(--line);
  stroke-width: 3;
}
.v-rec-time {
  fill: none;
  stroke: var(--brass);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 251;
  stroke-dashoffset: 251;
  transform: rotate(-90deg);
  transform-origin: 120px 80px;
  animation: trace 4.8s var(--ease) infinite;
}
.v-rec-dot {
  fill: var(--ember);
  transform-origin: 120px 80px;
  animation: morph 4.8s var(--ease) infinite;
}

/* Vignette 3: a message travels from one circle to the other, then fades from the middle. */
.v-ring-a,
.v-ring-b {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  opacity: 0.85;
}
.v-dot {
  fill: var(--brass);
  animation: travel 4.8s var(--ease) infinite;
}
.v-cloud {
  fill: none;
  stroke: var(--bark);
  stroke-width: 1.5;
  stroke-dasharray: 3 5;
  animation: forget 4.8s var(--ease) infinite;
}

/* Quality */
.quality {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: end;
}
.specs {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}
.specs div {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.specs dt {
  color: var(--bark);
}
.specs dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.25rem;
  text-align: right;
}

/* Promise */
.promise {
  margin-top: clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.promise div {
  padding: clamp(24px, 3vw, 40px) clamp(0px, 3vw, 40px) clamp(24px, 3vw, 40px) 0;
  border-bottom: 1px solid var(--line);
}
.promise div:nth-child(odd) {
  border-right: 1px solid var(--line);
}
.promise div:nth-child(even) {
  padding-left: clamp(24px, 3vw, 40px);
}
.promise h3 {
  font-size: clamp(1.5rem, 1.2vw + 1rem, 2rem);
  line-height: 1.15;
}
.promise p {
  margin-top: 10px;
  color: var(--bark);
  max-width: 26rem;
}
.more {
  margin-top: 28px;
  display: inline-block;
  font-weight: 600;
  color: var(--moss);
}

/* Closing */
.closing {
  text-align: center;
}
.closing h2 {
  margin-inline: auto;
}
.closing .lead {
  margin-inline: auto;
}
.closing .actions {
  justify-content: center;
  margin-top: 36px;
}
.closing .mark {
  width: 96px;
  height: 64px;
  margin: 0 auto 30px;
  display: block;
}

/* Footer */
footer {
  border-top: 1px solid var(--line);
  padding-block: 36px 48px;
  color: var(--bark);
  font-size: 0.9375rem;
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: center;
  justify-content: space-between;
}
footer nav {
  display: flex;
  gap: 24px;
}
footer a {
  text-decoration: none;
}
footer a:hover {
  color: var(--ink);
}

/* ---------- Prose pages (privacy) ---------- */

.prose {
  max-width: 44rem;
  padding-block: clamp(32px, 6vw, 80px) clamp(64px, 10vw, 120px);
}
.prose h1 {
  font-size: clamp(2.75rem, 4vw + 1rem, 4.5rem);
  line-height: 1;
  letter-spacing: -0.015em;
}
.prose .lead {
  margin-top: 22px;
  font-size: 1.1875rem;
  color: var(--bark);
}
.prose h2 {
  font-size: 1.875rem;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.prose ul {
  margin: 18px 0 0;
  padding-left: 1.1em;
  display: grid;
  gap: 10px;
}
.prose li::marker {
  color: var(--brass);
}
.prose p + p {
  margin-top: 14px;
}

/* ---------- Invite page ---------- */

.invite-page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
.invite-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px var(--gutter) 56px;
  max-width: 40rem;
  margin: 0 auto;
}
.invite-card > [data-state] {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.invite-face {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 400 3.25rem/1 var(--serif);
  color: var(--tint-ink);
  background: var(--tint-a);
  position: relative;
  margin-bottom: 34px;
}
.invite-face[data-tint="1"] {
  background: var(--tint-b);
}
.invite-face[data-tint="2"] {
  background: var(--tint-c);
}
.invite-face[data-tint="3"] {
  background: var(--tint-d);
}
.invite-face::after {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--brass) 55%, transparent);
}
.invite-card h1 {
  font-size: clamp(2.25rem, 4vw + 1rem, 3.5rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
}
.invite-card .lead {
  margin-top: 18px;
  color: var(--bark);
  font-size: 1.125rem;
  max-width: 28rem;
}
.invite-card .actions {
  margin-top: 36px;
  flex-direction: column;
  width: min(100%, 22rem);
}
.invite-card .btn {
  width: 100%;
}
.invite-card .fine {
  margin-top: 22px;
  max-width: 24rem;
}
.steps {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  text-align: left;
  width: min(100%, 22rem);
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  display: flex;
  gap: 12px;
  color: var(--bark);
  font-size: 0.9375rem;
}
.steps li::before {
  content: counter(step);
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font: 400 0.8rem/1 var(--serif);
  color: var(--brass);
  margin-top: 2px;
}
[hidden] {
  display: none !important;
}

/* ---------- Motion ---------- */

@keyframes sweep {
  to {
    transform: rotate(360deg);
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes press {
  0%, 55%, 100% {
    opacity: 0;
    transform: scale(0.6);
  }
  62% {
    opacity: 0.16;
    transform: scale(1);
  }
  78% {
    opacity: 0;
    transform: scale(1.6);
  }
}
@keyframes trace {
  0%, 12% {
    stroke-dashoffset: 251;
  }
  80% {
    stroke-dashoffset: 0;
  }
  92%, 100% {
    stroke-dashoffset: 0;
    opacity: 0;
  }
}
@keyframes morph {
  0%, 10% {
    transform: scale(1);
    rx: 26px;
  }
  18%, 82% {
    transform: scale(0.62);
    rx: 9px;
  }
  92%, 100% {
    transform: scale(1);
    rx: 26px;
  }
}
@keyframes travel {
  0%, 8% {
    transform: translateX(0);
    opacity: 0;
  }
  18% {
    opacity: 1;
  }
  60% {
    transform: translateX(96px);
    opacity: 1;
  }
  78%, 100% {
    transform: translateX(96px);
    opacity: 0;
  }
}
@keyframes forget {
  0%, 40% {
    opacity: 0.9;
  }
  70%, 100% {
    opacity: 0;
  }
}

/* The opening: two circles drift together and the overlap warms to brass. */
.mark-hero .ring-a {
  animation: drift-a 1.6s var(--ease) 0.15s both;
}
.mark-hero .ring-b {
  animation: drift-b 1.6s var(--ease) 0.15s both;
}
.mark-hero .lens {
  animation: warm 1.2s var(--ease) 1.3s both, breathe 6s ease-in-out 2.6s infinite;
}
@keyframes drift-a {
  from {
    transform: translateX(-26px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
@keyframes drift-b {
  from {
    transform: translateX(26px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
@keyframes warm {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes breathe {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.78;
  }
}

.rise {
  animation: rise 1.1s var(--ease) both;
}
.rise.d1 {
  animation-delay: 0.25s;
}
.rise.d2 {
  animation-delay: 0.45s;
}
.rise.d3 {
  animation-delay: 0.65s;
}
.rise.d4 {
  animation-delay: 0.85s;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* Sections settle in as they scroll into view, where the browser supports it. */
@supports (animation-timeline: view()) {
  .settle {
    animation: settle linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 55%;
  }
  @keyframes settle {
    from {
      opacity: 0.25;
      transform: translateY(42px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}

.phone {
  animation: float 9s ease-in-out infinite;
}
@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(-1.2deg);
  }
  50% {
    transform: translateY(-10px) rotate(-0.4deg);
  }
}

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

/* ---------- Small screens ---------- */

@media (max-width: 860px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }
  .quality {
    grid-template-columns: minmax(0, 1fr);
  }
  .moments {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 640px) {
  .top nav .hide-sm {
    display: none;
  }
  .promise {
    grid-template-columns: minmax(0, 1fr);
  }
  .promise div,
  .promise div:nth-child(even) {
    padding: 26px 0;
    border-right: 0;
  }
  .hero .actions .btn {
    width: 100%;
  }
}

/* ---------- The string: two faces, one line, a pulse running along it ---------- */

.string {
  justify-self: center;
  width: min(440px, 88vw);
  margin: 0;
}
.string svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.string-face {
  stroke: none;
}
.string-face.a {
  fill: var(--tint-a);
}
.string-face.b {
  fill: var(--tint-c);
}
.string-initial {
  font: 400 38px var(--serif);
  fill: var(--tint-ink);
}
.string-line {
  fill: none;
  stroke: var(--bark);
  stroke-opacity: 0.55;
  stroke-width: 1.4;
  stroke-linecap: round;
}
.string-pulse {
  fill: none;
  stroke: var(--brass);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-dasharray: 9 91;
  stroke-dashoffset: 9;
  animation: along 3.6s var(--ease) infinite;
}
@keyframes along {
  0% { stroke-dashoffset: 9; opacity: 0; }
  12% { opacity: 1; }
  70% { stroke-dashoffset: -91; opacity: 1; }
  82%, 100% { stroke-dashoffset: -91; opacity: 0; }
}

/* How it feels: three lines, nothing more. */
.feel {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(18px, 2.4vw, 28px);
  counter-reset: feel;
}
.feel li {
  counter-increment: feel;
  font: 400 clamp(1.75rem, 2.4vw + 0.8rem, 3rem) / 1.12 var(--serif);
  letter-spacing: -0.01em;
  display: grid;
  grid-template-columns: 2.4ch 1fr;
  align-items: baseline;
}
.feel li::before {
  content: counter(feel);
  font: 600 0.875rem/1 var(--sans);
  color: var(--brass);
}
.feel li:last-child {
  font-style: italic;
  color: var(--brass);
}

section h2 em {
  color: var(--brass);
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .string-pulse {
    animation: none;
    stroke-dasharray: none;
    opacity: 0;
  }
}
