/* ==========================================================================
   Self-hosted fonts (no requests to Google servers)
   ========================================================================== */
/* Figtree normal – latin-ext */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/figtree-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Figtree normal – latin */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/figtree-normal-latin.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;
}
/* Figtree normal – latin-ext */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(assets/fonts/figtree-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Figtree normal – latin */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(assets/fonts/figtree-normal-latin.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;
}
/* Figtree normal – latin-ext */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(assets/fonts/figtree-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Figtree normal – latin */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(assets/fonts/figtree-normal-latin.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;
}
/* Fraunces italic – latin-ext */
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 300 500;
  font-display: swap;
  src: url(assets/fonts/fraunces-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Fraunces italic – latin */
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 300 500;
  font-display: swap;
  src: url(assets/fonts/fraunces-italic-latin.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;
}
/* Fraunces normal – latin-ext */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url(assets/fonts/fraunces-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Fraunces normal – latin */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url(assets/fonts/fraunces-normal-latin.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;
}

/* ==========================================================================
   Design tokens
   ========================================================================== */
:root {
  /* spacing (4/8 scale) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  --container: 75rem;
  --gutter: var(--space-4);

  /* type */
  --font-serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-base: 1.0625rem;
  --text-lg: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  --text-h3: clamp(1.375rem, 1.2rem + 0.6vw, 1.625rem);
  --text-h2: clamp(1.875rem, 1.4rem + 2vw, 2.875rem);
  --text-h1: clamp(2.375rem, 1.5rem + 3.6vw, 4.25rem);

  --radius-sm: 6px;
  --radius-md: 12px;

  /* motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-micro: 160ms;
  --dur-ui: 250ms;
  --dur-reveal: 560ms;
  --dur-light: 700ms;

  /* light theme: sunlit plaster wall, blush, sage, lavender */
  --color-bg: #efe2d8;
  --color-surface: #fbf4ee;
  --color-text: #3b2a30;
  --color-text-muted: #554348;
  --color-border: #d6c1b6;
  --color-accent: #8a3457;
  --color-accent-hover: #722a48;
  --color-on-accent: #ffffff;
  --color-focus: #8a3457;

  /* paper objects keep light paper in both themes */
  --ink: #3b2a30;
  --ink-muted: #63505a;
  --paper: #fffaf3;
  --note-blush: #f9e2dc;
  --note-sage: #e4eddd;
  --note-lavender: #ece4f4;
  --note-apricot: #fce6d0;
  --stamp-rose: #e9a9b6;
  --stamp-sage: #a9c2a0;
  --stamp-lavender: #bfb0d9;
  --stamp-apricot: #efbb8c;

  --wood: #d2b08a;
  --board: #c6d4ba;

  --env-hi: #fae6e0;
  --env-mid: #f1cec6;
  --env-lo: #e2b2a9;
  --env-inside: #d8a39c;
  --env-inside-lo: #b6827d;
  --env-line: #d29b92;

  --wax-hi: #de7396;
  --wax: #9c3556;
  --wax-lo: #5a1830;
  --seal: #9c3f63;

  --lav: #9b88d0;
  --lav-dark: #6d59a6;
  --lav-stem: #7f9a6c;

  --porcelain: #f7dde4;
  --porcelain-edge: #c78a9b;
  --cord: #d8c8bb;
  --cord-dark: #a8917f;

  --mb: #a9c2a0;
  --mb-hi: #d8e7cf;
  --mb-lo: #6a8561;

  --shadow-ink: rgba(70, 35, 35, 0.24);
  --shadow-ink-strong: rgba(70, 35, 35, 0.34);
  --shadow-sm: 0 1px 1px rgba(60, 35, 30, 0.14), 0 6px 10px -4px rgba(60, 35, 30, 0.28), 0 18px 24px -16px rgba(60, 35, 30, 0.32);
  --shadow-md: 0 1px 2px rgba(60, 35, 30, 0.16), 0 10px 18px -6px rgba(60, 35, 30, 0.3), 0 30px 50px -18px rgba(60, 35, 30, 0.38);

  --day-opacity: 1;
  --night-opacity: 0;
  --leaf-opacity: 0.085;
  --vignette: rgba(90, 50, 45, 0.1);
  --grain-opacity: 0.045;

  color-scheme: light;
}

/* dark theme: lights off, a warm evening lamp */
:root[data-theme="dark"] {
  --color-bg: #201820;
  --color-surface: #2d222a;
  --color-text: #f6ebe7;
  --color-text-muted: #cbb7bd;
  --color-border: #4b3b45;
  --color-accent: #eba3be;
  --color-accent-hover: #f3bdd0;
  --color-on-accent: #2a1d25;
  --color-focus: #eba3be;

  --paper: #f4ebe2;
  --note-blush: #ecd0c9;
  --note-sage: #d4dfcc;
  --note-lavender: #dbd1e8;
  --note-apricot: #efd6bd;

  --wood: #6e5443;
  --board: #3d4939;

  --env-hi: #ecd3cb;
  --env-mid: #dbb4ab;
  --env-lo: #c2988f;
  --env-inside: #aa7b77;
  --env-inside-lo: #835957;
  --env-line: #b98580;

  --porcelain: #e9c6cf;
  --porcelain-edge: #a66d7e;
  --cord: #9e8a80;
  --cord-dark: #6d5b53;

  --mb: #8aa382;
  --mb-hi: #b6cbac;
  --mb-lo: #4e6647;

  --shadow-ink: rgba(0, 0, 0, 0.45);
  --shadow-ink-strong: rgba(0, 0, 0, 0.55);
  --shadow-sm: 0 1px 1px rgba(0, 0, 0, 0.35), 0 6px 10px -4px rgba(0, 0, 0, 0.5), 0 18px 24px -16px rgba(0, 0, 0, 0.55);
  --shadow-md: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 18px -6px rgba(0, 0, 0, 0.5), 0 30px 50px -18px rgba(0, 0, 0, 0.6);

  --day-opacity: 0;
  --night-opacity: 1;
  --leaf-opacity: 0;
  --vignette: rgba(0, 0, 0, 0.55);
  --grain-opacity: 0.06;

  color-scheme: dark;
}

@media (min-width: 768px) {
  :root { --gutter: var(--space-6); }
}
@media (min-width: 1200px) {
  :root { --gutter: var(--space-7); }
}

/* gradient stops driven by tokens */
.s-env-hi { stop-color: var(--env-hi); }
.s-env-mid { stop-color: var(--env-mid); }
.s-env-lo { stop-color: var(--env-lo); }
.s-env-inside { stop-color: var(--env-inside); }
.s-env-inside-lo { stop-color: var(--env-inside-lo); }
.s-wax-hi { stop-color: var(--wax-hi); }
.s-wax { stop-color: var(--wax); }
.s-wax-lo { stop-color: var(--wax-lo); }
.s-porcelain { stop-color: var(--porcelain); }
.s-porcelain-edge { stop-color: var(--porcelain-edge); }
.s-mb { stop-color: var(--mb); }
.s-mb-hi { stop-color: var(--mb-hi); }
.s-mb-lo { stop-color: var(--mb-lo); }

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

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

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--color-bg);
  background-image: url("assets/texture-wall.svg");
  background-size: 480px 480px;
  background-blend-mode: multiply;
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  overflow-x: clip;
  transition: background-color var(--dur-light) var(--ease-in-out), color var(--dur-light) var(--ease-in-out);
}

/* fine film grain over everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

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

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: var(--space-4);
  z-index: 200;
  padding: var(--space-3) var(--space-4);
  background: var(--color-accent);
  color: var(--color-on-accent);
  border-radius: var(--radius-sm);
  font-weight: 600;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ==========================================================================
   Room light (behind all content)
   ========================================================================== */
.ambience {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1700px;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.ambience__day,
.ambience__night {
  position: absolute;
  inset: 0;
  transition: opacity var(--dur-light) var(--ease-in-out);
}
.ambience__day {
  opacity: var(--day-opacity);
  background: radial-gradient(ellipse 60% 34% at 50% 20%, rgba(255, 251, 245, 0.95) 0%, rgba(255, 249, 240, 0.55) 45%, rgba(255, 249, 240, 0) 80%);
}
.ambience__night {
  opacity: var(--night-opacity);
  background: radial-gradient(ellipse 42% 26% at 50% 22%, rgba(255, 196, 150, 0.2) 0%, rgba(255, 180, 140, 0.07) 50%, rgba(255, 180, 140, 0) 80%);
}

.leaf-shadow {
  position: absolute;
  max-width: none;
  opacity: var(--leaf-opacity);
  filter: blur(6px);
  mix-blend-mode: multiply;
  transition: opacity var(--dur-light) var(--ease-in-out);
}
.leaf-shadow--a {
  top: -7rem;
  left: -9rem;
  width: min(44rem, 95vw);
  rotate: 6deg;
}
.leaf-shadow--b {
  top: 22rem;
  right: -16rem;
  width: min(38rem, 80vw);
  transform: scaleX(-1);
  rotate: 18deg;
  filter: blur(9px);
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse 90% 80% at 50% 40%, transparent 50%, var(--vignette) 100%);
}

/* ==========================================================================
   Typography helpers
   ========================================================================== */
.display {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--text-h1);
  line-height: 1.08;
  letter-spacing: -0.015em;
  font-variation-settings: "SOFT" 50;
  text-wrap: balance;
}
.display--small { font-size: var(--text-h2); line-height: 1.15; }

.section-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--text-h2);
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-align: center;
  text-wrap: balance;
  margin-bottom: var(--space-7);
}
.section-title--left { text-align: left; margin-bottom: var(--space-5); }

.lead {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 36rem;
  margin-inline: auto;
  text-wrap: pretty;
}

.hint {
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  text-align: center;
}

.text-link {
  color: var(--color-accent);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
  transition: color var(--dur-micro) var(--ease-out);
}
.text-link:hover { color: var(--color-accent-hover); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font: 600 var(--text-sm) / 1.2 var(--font-sans);
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color var(--dur-micro) var(--ease-out),
    color var(--dur-micro) var(--ease-out),
    border-color var(--dur-micro) var(--ease-out),
    transform var(--dur-micro) var(--ease-out);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }

.btn--primary {
  background: var(--color-accent);
  color: var(--color-on-accent);
  box-shadow: 0 1px 1px rgba(60, 20, 35, 0.2), 0 6px 12px -6px rgba(60, 20, 35, 0.45);
}
.btn--primary:hover { background: var(--color-accent-hover); }

.btn--secondary {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-text-muted);
}
.btn--secondary:hover { background: var(--color-surface); border-color: var(--color-text); }

/* ==========================================================================
   Header + pull cord
   ========================================================================== */
.site-header {
  position: relative;
  z-index: 20;
}

.site-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-5) var(--gutter) 0;
}

.site-id { display: grid; gap: var(--space-1); }
.site-id__name,
.site-id__meta {
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.4;
}
.site-id__name { font-weight: 600; text-decoration: none; }
.site-id__meta { color: var(--color-text-muted); font-variant-numeric: tabular-nums; }

.menu-toggle {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  min-width: 44px;
  padding: 0 var(--space-3);
  margin-top: calc(-1 * var(--space-3));
  margin-right: calc(-1 * var(--space-3));
  background: transparent;
  border: 0;
  color: var(--color-text);
  font: 600 var(--text-xs) / 1 var(--font-sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.menu-toggle__bars,
.menu-toggle__bars::before,
.menu-toggle__bars::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  border-radius: 1px;
  transition: transform var(--dur-ui) var(--ease-in-out), opacity var(--dur-micro);
}
.menu-toggle__bars { position: relative; }
.menu-toggle__bars::before,
.menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle__bars::before { transform: translateY(-6px); }
.menu-toggle__bars::after { transform: translateY(6px); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: rotate(-45deg); }

.site-nav {
  position: absolute;
  top: calc(100% + var(--space-3));
  right: var(--gutter);
  z-index: 30;
  min-width: 13rem;
  padding: var(--space-2);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}
.js .site-nav { display: none; }
.js .site-nav.is-open { display: block; }

.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-text);
  transition: background-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out);
}
.site-nav a:hover { background: var(--color-bg); color: var(--color-accent); }

@media (min-width: 768px) {
  .menu-toggle { display: none; }
  .site-nav,
  .js .site-nav {
    display: block;
    position: static;
    min-width: 0;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }
  .site-nav ul { display: grid; justify-items: end; gap: 0; }
  .site-nav a {
    min-height: 1.75rem;
    padding: 0 0 0 var(--space-3);
    color: var(--color-text-muted);
  }
  .site-nav a:hover { background: none; color: var(--color-accent); }
}
@media (min-width: 768px) and (pointer: coarse) {
  .site-nav a { min-height: 44px; }
}

/* the cord light switch */
.cord {
  position: absolute;
  top: -124px;
  right: 84px;
  z-index: 25;
  width: 60px;
  height: 260px;
  padding: 0;
  background: none;
  border: 0;
  cursor: grab;
  touch-action: none;
  transform-origin: 50% 0;
  -webkit-tap-highlight-color: transparent;
}
.cord:active { cursor: grabbing; }
.cord:focus-visible { outline-offset: -2px; }
.cord__svg { width: 100%; height: 100%; overflow: visible; }
.cord__shadow { fill: var(--shadow-ink); stroke: var(--shadow-ink); }
.cord__string { stroke: var(--cord); stroke-width: 2.6; }
.cord__braid { stroke: var(--cord-dark); stroke-width: 2.6; stroke-dasharray: 1.3 2.1; }
.cord__string-hi { stroke: #fff; stroke-opacity: 0.35; stroke-width: 0.7; }
.cord__band { fill: none; stroke: #c9a062; stroke-width: 1.1; }

.cord.is-pulling { animation: cord-pull 520ms var(--ease-in-out); }
.cord.is-swinging { animation: cord-swing 800ms var(--ease-in-out); }

@keyframes cord-pull {
  0% { transform: translateY(0); }
  40% { transform: translateY(28px); }
  100% { transform: translateY(0); }
}
@keyframes cord-swing {
  0% { transform: rotate(0); }
  30% { transform: rotate(3deg); }
  65% { transform: rotate(-2deg); }
  100% { transform: rotate(0); }
}

@media (min-width: 768px) {
  .cord { top: -92px; right: max(20%, 220px); }
}

/* ==========================================================================
   Hero + envelope
   ========================================================================== */
.hero {
  padding: var(--space-5) var(--gutter) var(--space-9);
  text-align: center;
}

.stage {
  container-type: inline-size;
  width: min(25rem, 100%);
  margin-inline: auto;
  aspect-ratio: 100 / 132;
  position: relative;
}

/* geometry, all in % of the stage width (cqw) */
.envelope {
  --env-h: 62.5cqw;
  --env-top: 66cqw;      /* open position */
  --rise: 64cqw;         /* how far the letter travels up */
  --closed-shift: 12cqw; /* closed envelope sits this much higher */
  position: absolute;
  left: 0;
  top: var(--env-top);
  width: 100cqw;
  height: var(--env-h);
  perspective: 900px;
  transform: translateY(0);
  transition: transform 600ms var(--ease-out) 380ms;
}

.envelope__back {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 2cqw;
  background: linear-gradient(180deg, var(--env-inside-lo), var(--env-inside) 60%);
  box-shadow: var(--shadow-md);
}

/* the letter: wrapper clips it at the envelope's bottom edge only */
.letter {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: -120cqw;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}
.letter__paper {
  position: absolute;
  left: 8cqw;
  width: 84cqw;
  height: var(--paper-h, 96cqw);
  top: calc(120cqw + 4cqw);
  padding: 6cqw 6cqw;
  background-color: var(--paper);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 30%), url("assets/texture-paper.svg");
  background-size: auto, 260px 260px;
  background-blend-mode: normal, multiply;
  color: var(--ink);
  border-radius: 0.8cqw;
  box-shadow: 0 1px 2px rgba(70, 35, 35, 0.18), 0 -4px 12px -6px rgba(70, 35, 35, 0.2), inset 0 0 0 1px rgba(150, 110, 90, 0.12);
  text-align: left;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1rem, 4.3cqw, 1.1875rem);
  line-height: 1.45;
  pointer-events: auto;
  transform: translateY(calc(-1 * var(--rise)));
  transition: transform 640ms var(--ease-out) 380ms;
}
.letter__sprig {
  position: absolute;
  top: 4cqw;
  right: 4cqw;
  width: 9cqw;
  fill: none;
  stroke: var(--stamp-sage);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.letter__greeting { padding-right: 9cqw; margin-bottom: 0.5em; }
.letter__body { font-weight: 350; }
.letter__sign { margin-top: 0.6em; }
.letter__sign span {
  font-size: 1.5em;
  font-weight: 400;
  color: var(--seal);
}

.envelope__pocket {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: 2cqw;
  overflow: hidden;
  pointer-events: none;
}
.envelope__pocket svg { width: 100%; height: 100%; overflow: visible; }
.envelope__pocket::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("assets/texture-paper.svg");
  background-size: 260px 260px;
  mix-blend-mode: multiply;
  clip-path: polygon(0 0, 48% 55%, 52% 55%, 100% 0, 100% 100%, 0 100%);
}
.envelope__crease { fill: none; stroke: rgba(120, 60, 60, 0.16); stroke-width: 0.6; vector-effect: non-scaling-stroke; }

.envelope__flap {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 35cqw;
  z-index: 1;
  transform-origin: 50% 0;
  transform-style: preserve-3d;
  transform: rotateX(180deg);
  pointer-events: none;
  transition: transform 460ms var(--ease-in-out), z-index 0s 230ms;
}
.envelope__flap-front,
.envelope__flap-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.envelope__flap svg { overflow: visible; }
.envelope__flap-shape,
.envelope__flap-back svg { width: 100%; height: 100%; }
.envelope__flap-shape { filter: drop-shadow(0 1.5px 1.5px rgba(74, 34, 40, 0.28)); }
.envelope__flap-back { transform: rotateY(180deg); }

/* tucked lavender + wax seal */
.lavender {
  position: absolute;
  left: 50%;
  top: 33cqw;
  z-index: 2;
  width: 38cqw;
  height: 38cqw;
  margin: -21cqw 0 0 -20cqw;
  rotate: -8deg;
  overflow: visible;
  filter: drop-shadow(0 1px 1px rgba(60, 30, 40, 0.3));
}
.lav-stem { fill: none; stroke: var(--lav-stem); stroke-width: 1.6; stroke-linecap: round; }
.lav-leaf { fill: var(--lav-stem); }
.lav-bud { fill: var(--lav); }
.lav-bud--dark { fill: var(--lav-dark); }

.seal {
  position: absolute;
  left: 50%;
  top: 33cqw;
  z-index: 3;
  width: 15cqw;
  height: 15cqw;
  margin: -7.5cqw 0 0 -7.5cqw;
  overflow: visible;
  filter: drop-shadow(0 2px 2px rgba(60, 20, 30, 0.38));
  transition: transform var(--dur-ui) var(--ease-out);
}
.seal__drip { fill: none; stroke: rgba(255, 255, 255, 0.18); stroke-width: 2; stroke-linecap: round; }
.seal__rim { fill: none; stroke: rgba(40, 5, 20, 0.3); stroke-width: 2.4; }
.seal__ring { fill: none; stroke: rgba(255, 210, 225, 0.35); stroke-width: 1.4; stroke-dasharray: 0.1 3.2; stroke-linecap: round; }
.seal__letter {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 46px;
  text-anchor: middle;
  fill: rgba(55, 8, 25, 0.75);
}
.seal__letter--hi { fill: rgba(255, 200, 215, 0.35); }

.envelope__hit {
  position: absolute;
  inset: 0;
  z-index: 6;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 2cqw;
  cursor: pointer;
}
.envelope__hit:focus-visible { outline-offset: 4px; border-radius: 2cqw; }

/* closed state (only when JS can open it again) */
.js .envelope:not(.is-open) {
  transform: translateY(calc(-1 * var(--closed-shift)));
  transition: transform 520ms var(--ease-in-out) 0ms;
}
.js .envelope:not(.is-open) .letter__paper {
  transform: translateY(0);
  transition: transform 480ms var(--ease-in-out) 0ms;
}
.js .envelope:not(.is-open) .envelope__flap {
  z-index: 4;
  transform: rotateX(0deg);
  transition: transform 440ms var(--ease-in-out) 420ms, z-index 0s 420ms;
}
.js .envelope:not(.is-open):hover .seal { transform: scale(1.02); }

.hint { margin-top: var(--space-4); }

.hero__copy { margin-top: var(--space-7); }
.hero__copy .lead { margin-top: var(--space-5); }

/* narrow phones: the letter needs to rise further to show the whole note */
@media (max-width: 479px) {
  .stage { aspect-ratio: 100 / 144; }
  .envelope { --env-top: 78cqw; --rise: 76cqw; --paper-h: 108cqw; --closed-shift: 18cqw; }
}
@media (max-width: 379px) {
  .stage { aspect-ratio: 100 / 172; }
  .envelope { --env-top: 106cqw; --rise: 104cqw; --paper-h: 140cqw; --closed-shift: 46cqw; }
}

@media (min-width: 768px) {
  .hero { padding-top: 0; }
  .stage { width: min(26rem, 100%); }
}
@media (min-width: 1024px) {
  /* the open letter may rise into the empty middle of the header */
  .stage { margin-top: calc(-1 * var(--space-8)); }
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding-block: var(--space-8); }
@media (min-width: 1024px) {
  .section { padding-block: var(--space-9); }
}

/* glossy push pin */
.pin {
  --pin-hi: #f6dba8;
  --pin: #c48f4f;
  --pin-lo: #6a4520;
  position: absolute;
  top: -8px;
  left: 50%;
  z-index: 2;
  width: 18px;
  height: 18px;
  margin-left: -9px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #fffaf0 0 9%, var(--pin-hi) 22%, var(--pin) 58%, var(--pin-lo) 100%);
  box-shadow: 3px 5px 4px -1px rgba(40, 20, 15, 0.45), inset -1px -2px 2px rgba(0, 0, 0, 0.2);
}
.pin--rose { --pin-hi: #f8c3d1; --pin: #c25a7a; --pin-lo: #6b2340; }
.pin--lavender { --pin-hi: #ddd2f5; --pin: #8d76c4; --pin-lo: #4a3878; }

/* washi tape */
.tape {
  position: absolute;
  top: -14px;
  left: 50%;
  z-index: 2;
  width: 104px;
  height: 30px;
  margin-left: -52px;
  background-color: rgba(233, 169, 182, 0.62);
  background-image: url("assets/texture-paper.svg");
  background-size: 260px 260px;
  background-blend-mode: multiply;
  rotate: 3deg;
  clip-path: polygon(0 0, 3% 12%, 0 25%, 3% 38%, 0 50%, 3% 62%, 0 75%, 3% 88%, 0 100%, 100% 100%, 97% 88%, 100% 75%, 97% 62%, 100% 50%, 97% 38%, 100% 25%, 97% 12%, 100% 0);
}
.tape--note {
  width: 92px;
  margin-left: -46px;
  top: -13px;
  rotate: -4deg;
  background-color: rgba(169, 194, 160, 0.7);
}

/* pinboard: wooden frame + linen panel */
.board {
  max-width: 60rem;
  margin-inline: auto;
  padding: 14px;
  border-radius: 6px;
  background-color: var(--wood);
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0) 35%, rgba(0, 0, 0, 0.14)),
    url("assets/texture-wood.svg");
  background-size: auto, 640px 160px;
  background-blend-mode: normal, multiply;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -2px 0 rgba(0, 0, 0, 0.25),
    inset 1px 0 0 rgba(255, 255, 255, 0.2),
    inset -1px 0 0 rgba(0, 0, 0, 0.15),
    var(--shadow-md);
}
.board > .board__grid {
  display: grid;
  gap: var(--space-7) var(--space-6);
  padding: var(--space-7) var(--space-4) var(--space-6);
  border-radius: 2px;
  background-color: var(--board);
  background-image: url("assets/texture-linen.svg");
  background-size: 200px 200px;
  background-blend-mode: multiply;
  box-shadow: inset 0 4px 10px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(0, 0, 0, 0.18);
}
@media (min-width: 640px) {
  .board { padding: 20px; }
  .board > .board__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: var(--space-7) var(--space-6); }
}
@media (min-width: 1024px) {
  .board > .board__grid { gap: var(--space-8) var(--space-7); padding: var(--space-8) var(--space-7); }
}

/* paper surfaces */
.note,
.quote {
  --note-bg: var(--paper);
  position: relative;
  background-color: var(--note-bg);
  background-image:
    linear-gradient(160deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0) 70%, rgba(90, 55, 45, 0.07)),
    url("assets/texture-paper.svg");
  background-size: auto, 260px 260px;
  background-blend-mode: normal, multiply;
  color: var(--ink);
  border-radius: 2px;
  box-shadow: var(--shadow-sm);
  rotate: var(--r, 0deg);
}

.note {
  padding: var(--space-6) var(--space-5) var(--space-4);
  transition: translate var(--dur-ui) var(--ease-out), box-shadow var(--dur-ui) var(--ease-out);
}
.note:hover { translate: 0 -2px; box-shadow: var(--shadow-md); }
.note--blush { --note-bg: var(--note-blush); }
.note--sage { --note-bg: var(--note-sage); }
.note--lavender { --note-bg: var(--note-lavender); }
.note--apricot { --note-bg: var(--note-apricot); }

.note__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: var(--text-h3);
  line-height: 1.2;
  padding-right: 3.5rem;
  margin-bottom: var(--space-3);
}
.note__text { font-size: var(--text-base); color: var(--ink); }
.note__foot {
  margin-top: var(--space-5);
  padding-top: var(--space-3);
  border-top: 1px dashed rgba(59, 42, 48, 0.3);
  font-size: var(--text-sm);
  color: var(--ink-muted);
}

.stamp {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 42px;
  rotate: 4deg;
  filter: drop-shadow(0 1px 1px rgba(60, 35, 30, 0.25));
}
.stamp__edge { fill: #fffdf9; stroke: rgba(59, 42, 48, 0.18); stroke-width: 1; stroke-dasharray: 2 2.6; }
.stamp__face--rose { fill: var(--stamp-rose); }
.stamp__face--sage { fill: var(--stamp-sage); }
.stamp__face--lavender { fill: var(--stamp-lavender); }
.stamp__face--apricot { fill: var(--stamp-apricot); }
.stamp__ink { fill: none; stroke: rgba(59, 42, 48, 0.7); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* about */
.about {
  display: grid;
  gap: var(--space-8);
  align-items: center;
}
@media (min-width: 768px) {
  .about { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-8); }
}
@media (min-width: 1024px) {
  .about { max-width: 62rem; }
}

.polaroid {
  position: relative;
  width: min(20rem, 85%);
  margin-inline: auto;
  padding: var(--space-3) var(--space-3) var(--space-4);
  background-color: #fffdf8;
  background-image: url("assets/texture-paper.svg");
  background-size: 260px 260px;
  background-blend-mode: multiply;
  box-shadow: var(--shadow-md);
  rotate: -2.5deg;
}
.polaroid__photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--note-lavender);
}
.polaroid__caption {
  margin-top: var(--space-3);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--text-base);
  color: var(--ink);
  text-align: center;
}

.about__text { max-width: 65ch; }
.about__text p + p { margin-top: var(--space-4); }
.about__tools { color: var(--color-text-muted); }
.about__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-5);
  margin-top: var(--space-4);
}
.about__links a,
.site-footer__social a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.board-note {
  max-width: 40rem;
  margin: var(--space-7) auto 0;
  text-align: center;
  color: var(--color-text-muted);
}

/* steps */
.steps {
  display: grid;
  gap: var(--space-6);
  max-width: 64rem;
  margin-inline: auto;
}
@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-7); }
}
.step {
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
}
.step__num {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}
.step__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: var(--text-h3);
  line-height: 1.2;
  margin-bottom: var(--space-2);
}
.step p { color: var(--color-text-muted); max-width: 40ch; }

/* testimonials */
.quotes {
  display: grid;
  gap: var(--space-7);
  max-width: 62rem;
  margin-inline: auto;
}
@media (min-width: 768px) {
  .quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-8) var(--space-7); align-items: start; }
}
.quote {
  max-width: 28rem;
  width: 100%;
  margin-inline: auto;
  padding: var(--space-6) var(--space-5) var(--space-5);
}
.quote blockquote { margin: 0; font-size: var(--text-base); line-height: 1.55; }
.quote__name {
  margin-top: var(--space-5);
  padding-top: var(--space-3);
  border-top: 1px dashed rgba(59, 42, 48, 0.3);
  font-weight: 600;
  font-size: var(--text-sm);
}
.quote__role { font-size: var(--text-sm); color: var(--ink-muted); }

/* ==========================================================================
   Lead magnet journey: paper tags on a clothesline
   ========================================================================== */
.nobr { white-space: nowrap; }

.section-intro {
  max-width: 40rem;
  margin: calc(-1 * var(--space-5)) auto var(--space-8);
  text-align: center;
  color: var(--color-text-muted);
  text-wrap: pretty;
}

.line {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: var(--space-7);
  max-width: 76rem;
  margin-inline: auto;
}
@media (min-width: 560px) {
  .line { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .line { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
  .line { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

.line__item {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 30px 6px 0;
  filter: drop-shadow(0 6px 8px rgba(60, 35, 30, 0.22));
}
/* sagging rope segment; neighbouring segments join into one line */
.line__item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 28px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 28' preserveAspectRatio='none'%3E%3Cpath d='M0 9 Q50 31 100 9' fill='none' stroke='%23000' stroke-opacity='.12' stroke-width='2.2' vector-effect='non-scaling-stroke'/%3E%3Cpath d='M0 4 Q50 26 100 4' fill='none' stroke='%23a8917f' stroke-width='2.2' vector-effect='non-scaling-stroke'/%3E%3Cpath d='M0 4 Q50 26 100 4' fill='none' stroke='%23fff' stroke-opacity='.35' stroke-width='.7' stroke-dasharray='1.5 2.5' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
/* wooden clothespin at the lowest point of the rope */
.line__item::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  z-index: 2;
  width: 10px;
  height: 34px;
  margin-left: -5px;
  border-radius: 2px 2px 3px 3px;
  background:
    linear-gradient(180deg, transparent 44%, #8c6a46 44%, #8c6a46 52%, transparent 52%),
    linear-gradient(90deg, #b48a5e, #e3c49b 40%, #c9a173 70%, #9c7650);
  box-shadow: 1px 2px 2px rgba(40, 20, 10, 0.3);
}

.tag {
  --note-bg: var(--paper);
  position: relative;
  width: min(100%, 15rem);
  padding: var(--space-6) var(--space-4) var(--space-5);
  background-color: var(--note-bg);
  background-image:
    linear-gradient(160deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 45%),
    url("assets/texture-paper.svg");
  background-size: auto, 260px 260px;
  background-blend-mode: normal, multiply;
  color: var(--ink);
  clip-path: polygon(14% 0, 86% 0, 100% 9%, 100% 100%, 0 100%, 0 9%);
  transform-origin: 50% 0;
  rotate: -1.5deg;
  transition: rotate var(--dur-ui) var(--ease-out);
}
.line__item:nth-child(even) .tag { rotate: 1.5deg; }
.line__item:nth-child(3n) .tag { rotate: -0.5deg; }
.line__item:hover .tag { rotate: 0deg; }

.tag--blush { --note-bg: var(--note-blush); }
.tag--sage { --note-bg: var(--note-sage); }
.tag--lavender { --note-bg: var(--note-lavender); }
.tag--apricot { --note-bg: var(--note-apricot); }

.tag__num {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--seal);
  margin-bottom: var(--space-2);
}
.tag__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.2;
  margin-bottom: var(--space-2);
}
.tag p { font-size: 1rem; line-height: 1.5; }

.magnet__cta {
  margin-top: var(--space-8);
  text-align: center;
  color: var(--color-text-muted);
}
.magnet__cta .btn { margin-top: var(--space-4); }

/* ==========================================================================
   Contact + mailbox
   ========================================================================== */
.section--contact { padding-bottom: var(--space-9); }
.contact { text-align: center; }
.contact .display { margin-top: var(--space-7); }
.contact .lead { margin-top: var(--space-5); }

.mailbox {
  display: block;
  width: clamp(240px, 22vw, 300px);
  max-width: 100%;
  aspect-ratio: 1;
  margin-inline: auto;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
}
.mailbox__svg { width: 100%; height: 100%; overflow: visible; }
.mailbox__shadow { fill: var(--shadow-ink-strong); }
.mailbox__foot { fill: var(--mb-lo); }
.mailbox__door { fill: none; stroke: var(--mb-lo); stroke-width: 2; }
.mailbox__door-hi { fill: none; stroke: rgba(255, 255, 255, 0.4); stroke-width: 1.4; }
.mailbox__emboss {
  font: 600 11px var(--font-sans);
  letter-spacing: 3px;
  text-anchor: middle;
  fill: var(--mb-lo);
}
.mailbox__emboss--hi { fill: rgba(255, 255, 255, 0.45); }
.mailbox__name {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  text-anchor: middle;
  fill: #4a3320;
}
.mailbox__name--hi { fill: rgba(255, 240, 210, 0.6); }
.mailbox__lid-shadow { fill: rgba(30, 20, 15, 0.32); }
.mailbox__slot-lip { stroke: rgba(255, 255, 255, 0.55); stroke-width: 1.2; stroke-linecap: round; }
.mailbox__env-edge { stroke: var(--env-line); }
.mailbox__flag-cloth { fill: var(--seal); stroke: rgba(40, 5, 20, 0.35); stroke-width: 0.8; }

.mailbox__envelope { transition: transform 520ms var(--ease-in-out); }
.mailbox:hover .mailbox__envelope { transform: translateY(-4px); }
.mailbox__flag {
  transform-box: view-box;
  transform-origin: 204px 188px;
  transform: rotate(90deg);
  transition: transform 380ms var(--ease-out) 360ms;
}
.mailbox.is-sent .mailbox__envelope { transform: translateY(84px); }
.mailbox.is-sent .mailbox__flag { transform: rotate(0deg); }

.hint--static { margin-top: var(--space-2); }
.contact__newsletter {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.sent {
  min-height: 1.6em;
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-accent);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding-block: var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4) var(--space-6);
}
.site-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-5);
}

/* ==========================================================================
   Scroll reveal (only with JS)
   ========================================================================== */
.js .reveal {
  opacity: 0;
  translate: 0 16px;
  transition: opacity var(--dur-reveal) var(--ease-out), translate var(--dur-reveal) var(--ease-out);
}
.js .reveal.is-visible { opacity: 1; translate: 0 0; }

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    transition-delay: 0ms !important;
  }
  .js .reveal { translate: none; transition: opacity 300ms linear !important; }
  .cord.is-pulling,
  .cord.is-swinging { animation: none; }
}
