/* ==========================================================================
   Vladinho — Bubble Personality
   White paper, ink hairlines, diffused shadows. The emoji carry the color.
   ========================================================================== */

:root {
  --paper: #ffffff;
  --mist: #f4f4f3;
  --mist-2: #ececea;
  --ink: #141414;
  --ink-2: #555553;      /* 7.4:1 on white */
  --ink-3: #6b6b69;      /* 5.3:1 on white, placeholders */
  --hair: rgb(20 20 20 / 0.12);
  --select: #ffe9a8;     /* fries, softened */

  --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "Geist", "Segoe UI", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "Cascadia Mono", monospace;

  --shadow-xs: 0 1px 1px rgb(20 20 20 / 0.04), 0 2px 6px -2px rgb(20 20 20 / 0.08);
  --shadow-sm: 0 1px 2px rgb(20 20 20 / 0.05), 0 8px 18px -8px rgb(20 20 20 / 0.14);
  --shadow-md: 0 2px 4px rgb(20 20 20 / 0.05), 0 18px 36px -14px rgb(20 20 20 / 0.20);
  --shadow-lg: 0 4px 10px rgb(20 20 20 / 0.05), 0 32px 64px -24px rgb(20 20 20 / 0.24);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 64px;
  --content: 1120px;
  --radius-pill: 999px;
  --radius-card: 24px;
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-color: #cfcfcc var(--paper);
  scrollbar-width: thin;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, p, figure, dl, dd, ol, ul { margin: 0; }
ul, ol { padding: 0; list-style: none; }

::selection { background: var(--select); color: var(--ink); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: #d6d6d3; border: 3px solid var(--paper); border-radius: 10px; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 8px;
}

section[id], main[id] { scroll-margin-top: calc(var(--header-h) + 8px); }

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

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-pill);
  transform: translateY(-160%);
  transition: transform 0.3s var(--ease-out);
}
.skip-link:focus-visible { transform: none; }

/* ---------- Pill button ---------- */

.pill {
  --pill-h: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--pill-h);
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-pill);
  background: var(--paper);
  box-shadow: var(--shadow-xs);
  font-family: var(--font-body);
  font-size: 0.90625rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out),
    background-color 0.25s ease,
    color 0.25s ease;
}

.pill:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.pill:active {
  transform: translateY(0) scale(0.97);
  box-shadow: 0 0 0 rgb(0 0 0 / 0), inset 0 1px 3px rgb(20 20 20 / 0.12);
  transition-duration: 0.08s;
}

.pill:focus-visible { border-radius: var(--radius-pill); }

.pill[aria-current="true"]::before {
  content: "";
  width: 5px; height: 5px;
  margin-left: -4px;
  border-radius: 50%;
  background: var(--ink);
}

.pill--quiet { border-color: var(--hair); box-shadow: none; }
.pill--quiet:hover { border-color: var(--ink); }
.pill--quiet svg { transition: transform 0.4s var(--ease-out); }
.pill--quiet:hover svg { transform: translateY(2px); }

.pill--lg { --pill-h: 54px; padding: 0 26px; font-size: 1rem; }

.pill--solid {
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow-sm);
}
.pill--solid:hover { background: #262626; box-shadow: var(--shadow-md); }

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 var(--gutter);
  padding-top: env(safe-area-inset-top);
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.site-header.is-scrolled {
  background: rgb(255 255 255 / 0.94);
  box-shadow: 0 1px 0 var(--hair), 0 10px 30px -24px rgb(20 20 20 / 0.3);
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 800;
  font-variation-settings: "opsz" 32;
  letter-spacing: -0.04em;
  line-height: 1;
}

.nav__list { display: flex; gap: 8px; }

.menu-toggle {
  display: none;
  place-items: center;
  width: 44px; height: 44px;
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.menu-toggle:active { transform: scale(0.94); }
.menu-toggle:focus-visible { border-radius: 50%; }

@media (max-width: 759px) {
  .nav { display: none; }
  .menu-toggle { display: grid; }
}

/* ---------- Mobile menu (dialog) ---------- */

.mobile-menu {
  position: fixed;
  inset: 0 0 auto 0;
  width: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0 16px 28px;
  padding-top: env(safe-area-inset-top);
  border: 0;
  border-radius: 0 0 32px 32px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.mobile-menu::backdrop { background: rgb(20 20 20 / 0.16); }

.mobile-menu[open] { animation: menu-in 0.5s var(--ease-out); }
.mobile-menu[open]::backdrop { animation: fade-in 0.4s ease; }
.mobile-menu.is-closing { animation: menu-out 0.26s ease-in forwards; }
.mobile-menu.is-closing::backdrop { animation: fade-out 0.26s ease-in forwards; }

@keyframes menu-in { from { transform: translateY(-24px); opacity: 0; } }
@keyframes menu-out { to { transform: translateY(-16px); opacity: 0; } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }

.mobile-menu__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 calc(var(--gutter) - 16px);
}
.mobile-menu__bar .menu-toggle { display: grid; }

.mobile-menu__list {
  display: grid;
  margin-top: 12px;
  padding: 0 calc(var(--gutter) - 16px);
}

.mobile-menu__list li + li { border-top: 1px solid var(--hair); }

.mobile-menu__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  font-variation-settings: "opsz" 72;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.mobile-menu__list a::after {
  content: "";
  width: 10px; height: 10px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.35;
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}
.mobile-menu__list a:active::after,
.mobile-menu__list a:hover::after { opacity: 1; transform: translateX(4px) rotate(45deg); }

.mobile-menu__list a[aria-current="true"]::before {
  content: "";
  width: 7px; height: 7px;
  margin-right: 12px;
  border-radius: 50%;
  background: var(--ink);
  order: -1;
}
.mobile-menu__list a[aria-current="true"] { justify-content: flex-start; }
.mobile-menu__list a[aria-current="true"]::after { margin-left: auto; }


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

.hero {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: var(--header-h);
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0) 78%, var(--paper) 100%),
    radial-gradient(110% 52% at 50% 86%, #efefed 0%, #f5f5f4 40%, rgb(255 255 255 / 0) 74%),
    var(--paper);
  isolation: isolate;
}

/* The physics world. Bodies are positioned relative to this box. */
.hero__stage {
  --emoji-size: .7;
  position: relative;
  container-type: size;
  container-name: stage;
  min-height: 22rem;
  touch-action: pan-y;
  overflow: clip;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

/* A fine horizon and its diffused shadow give the white stage a distant floor. */
.hero__stage::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: -15%;
  right: -15%;
  /* The shadow's center aligns with the physics floor, 7px above the stage edge. */
  bottom: -33px;
  height: 80px;
  background:
    radial-gradient(ellipse 50% 3% at 50% 50%, rgb(20 20 20 / 0.09), rgb(20 20 20 / 0.035) 55%, transparent),
    radial-gradient(ellipse 50% 40% at 50% 52%, rgb(20 20 20 / 0.035), transparent 90%);
  pointer-events: none;
}

/*
  Body layout contract (see CODEX_HANDOFF.md):
  --x, --y   initial center, % of stage
  --w        initial width (container units)
  --ar       height / width of the cropped asset
  --rot      initial angle
  .body             -> transform owned by physics
  .body__inner      -> one-time entrance animation only
  .body__visual     -> --scale (inflation)
  .body__blush      -> --flush 0..1 (redness)
*/
.body {
  /* Some engines report 0cqh for an indefinite grid row at its minimum height. */
  --stage-h: max(100cqh, 22rem);
  --w: calc(var(--base-w) * var(--emoji-size, 1));
  --h: calc(var(--w) * var(--ar));
  position: absolute;
  left: calc(var(--x) - var(--w) / 2);
  top: calc(var(--y) - var(--h) / 2);
  width: var(--w);
  height: var(--h);
  transform: rotate(var(--rot, 0deg));
  transform-origin: 50% 50%;
  will-change: transform;
}

.body--vlad    { --ar: 1.315; --x: 50%; --y: 48%; --base-w: min(calc(var(--stage-h) * .66), 42cqw, calc((var(--stage-h) - 28px) / 1.315 / 1.4)); --rot: 0deg; z-index: 3; }
.body--burger  { --ar: 0.947; --x: 74%; --y: 66%; --base-w: min(calc(var(--stage-h) * .37), 24cqw); --rot: 7deg; z-index: 2; }
.body--fries   { --ar: 1.067; --x: 26.5%; --y: 68%; --base-w: min(calc(var(--stage-h) * .33), 21cqw); --rot: -9deg; z-index: 1; }

@container stage (aspect-ratio < 0.9) {
  .body--vlad   { --x: 50%; --y: 39%; --base-w: min(50cqw, calc(var(--stage-h) * .38), calc((100cqw - 28px) / 1.4)); }
  .body--burger { --x: 72%; --y: 79%; --base-w: min(38cqw, calc(var(--stage-h) * .26)); }
  .body--fries  { --x: 26%; --y: 80%; --base-w: min(33cqw, calc(var(--stage-h) * .24)); }
}

.body__inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.body__shadow {
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: -3%;
  height: 12%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(20 20 20 / 0.22), rgb(20 20 20 / 0.08) 55%, rgb(20 20 20 / 0));
  pointer-events: none;
}

.body__visual {
  position: relative;
  width: 100%;
  height: 100%;
  transform: scale(var(--scale-x, 1), var(--scale-y, 1));
  transform-origin: 50% 55%;
}

/* Touch arbitration must be set before pointerdown; empty stage space still scrolls. */
.is-interactive .body { cursor: grab; touch-action: none; }
.is-interactive .body.is-dragging { cursor: grabbing; }
.body--vlad:focus-visible { outline: none; }
.body--vlad:focus-visible:not(.is-pointer-focus) .body__visual {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 50%;
}

.body__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 14px 18px rgb(20 20 20 / 0.13)) drop-shadow(0 2px 3px rgb(20 20 20 / 0.08));
  -webkit-user-drag: none;
  pointer-events: none;
}

/* Redness layer, masked to Vlad's silhouette. Inert at --flush: 0. */
.body__blush {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 30% 18% at 27% 57%, #ff4d3d, rgb(255 77 61 / 0)),
    radial-gradient(ellipse 30% 18% at 73% 57%, #ff4d3d, rgb(255 77 61 / 0)),
    radial-gradient(ellipse 40% 28% at 50% 38%, rgb(255 77 61 / 0.8), rgb(255 77 61 / 0));
  -webkit-mask: url("../img/vlad-640.webp") center / 100% 100% no-repeat;
  mask: url("../img/vlad-640.webp") center / 100% 100% no-repeat;
  mix-blend-mode: multiply;
  opacity: calc(var(--flush, 0) * var(--flush, 0) * 0.48);
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .body__inner {
    animation: body-arrive 1.1s var(--ease-spring) both;
    animation-delay: calc(var(--i, 0) * 120ms + 150ms);
  }
}

@keyframes body-arrive {
  from { opacity: 0; transform: translateY(28px) scale(0.82); }
  60% { opacity: 1; }
}

.hero__caption {
  display: grid;
  justify-items: center;
  width: 100%;
  max-width: calc(var(--content) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 8px var(--gutter) clamp(28px, 6vh, 64px);
  text-align: center;
}

.hero__aside {
  display: grid;
  justify-items: center;
  gap: 16px;
  max-width: 46ch;
}

.hero__lede, .hero__hint { color: var(--ink-2); font-size: 1.0625rem; line-height: 1.5; text-wrap: balance; }

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

.section {
  position: relative;
  width: 100%;
  max-width: calc(var(--content) + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(5.5rem, 12vw, 9.5rem) var(--gutter) 0;
}

.section__head {
  display: grid;
  gap: 12px;
  max-width: 34rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5.4vw, 3.75rem);
  font-weight: 750;
  font-variation-settings: "opsz" 80;
  letter-spacing: -0.04em;
  line-height: 0.98;
  text-wrap: balance;
}

.section__title--xl { font-size: clamp(2.75rem, 7.4vw, 5.5rem); line-height: 0.92; }

.section__lede {
  max-width: 44ch;
  color: var(--ink-2);
  font-size: 1.0625rem;
  text-wrap: pretty;
}

/* ---------- Socials ---------- */

.socials__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 819px) {
  .socials__list { grid-template-columns: 1fr; gap: 12px; }
}

.social {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  min-height: 76px;
  padding: 12px 26px 12px 14px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-pill);
  background: var(--paper);
  box-shadow: var(--shadow-xs);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}

.social__icon {
  box-sizing: content-box;
  width: 26px; height: 26px;
  padding: 12px;
  border-radius: 50%;
  background: var(--mist);
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.5s var(--ease-out);
}
.social__icon .fill { fill: var(--ink); stroke: none; }

.social__text { display: grid; gap: 2px; }

.social__name {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  font-variation-settings: "opsz" 48;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.social__handle { color: var(--ink-2); font-size: 0.875rem; }

.social__arrow {
  width: 18px; height: 18px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.45s var(--ease-out);
}

.social:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.social:hover .social__icon { transform: rotate(-8deg) scale(1.08); }
.social:hover .social__arrow { transform: translate(3px, -3px); }
.social:active { transform: translateY(0) scale(0.985); box-shadow: var(--shadow-xs); transition-duration: 0.1s; }
.social:focus-visible { border-radius: var(--radius-pill); }

/* ---------- Pinned decorations ---------- */

.pinned {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

.pinned img {
  width: 100%;
  height: auto;
  filter: drop-shadow(3px 9px 8px rgb(20 20 20 / 0.17)) drop-shadow(0 1px 1px rgb(20 20 20 / 0.12));
}

.pinned .pin { top: 10%; left: 50%; }

.pin {
  position: absolute;
  z-index: 2;
  width: 15px; height: 15px;
  margin: -7.5px 0 0 -7.5px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 30%, #ffffff 0 10%, rgb(255 255 255 / 0.6) 18%, rgb(255 255 255 / 0) 38%),
    conic-gradient(from 210deg, #8b9098, #e9ebee, #a4a9b1, #6d727a, #d6d9de, #8b9098);
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 0.35),
    inset 0 -2px 2px rgb(0 0 0 / 0.28),
    0 1px 1px rgb(20 20 20 / 0.35),
    2px 4px 4px rgb(20 20 20 / 0.22);
}

/* Shadow of the needle, cast down-right onto the page */
.pin::after {
  content: "";
  position: absolute;
  left: 9px; top: 10px;
  width: 11px; height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgb(20 20 20 / 0.32), rgb(20 20 20 / 0));
  transform: rotate(40deg);
  transform-origin: 0 50%;
  filter: blur(0.5px);
  z-index: -1;
}

.pinned--burger {
  top: clamp(4.5rem, 10vw, 7.5rem);
  right: var(--gutter);
  width: clamp(68px, 9vw, 112px);
  transform: rotate(-8deg);
}

.pinned--fries {
  top: clamp(5rem, 11vw, 8rem);
  right: calc(var(--gutter) + clamp(4px, 3vw, 48px));
  width: clamp(60px, 8vw, 100px);
  transform: rotate(10deg);
}

@media (max-width: 759px) {
  .socials .section__head,
  .collabs .section__head { padding-right: 84px; }
}

/* ---------- Collabs (menu) ---------- */

.menu { border-top: 1px solid var(--ink); }

.menu__row,
.menu__cta {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 84px;
}

.menu__row { border-bottom: 1px solid var(--hair); }

.menu__logo {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  overflow: hidden;
}
.menu__logo img { width: 100%; height: 100%; object-fit: contain; }

.is-placeholder .menu__logo { border: 1px dashed rgb(20 20 20 / 0.28); }

.menu__name {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 2.6vw, 1.75rem);
  font-weight: 650;
  font-variation-settings: "opsz" 48;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.menu__leader {
  align-self: center;
  height: 1px;
  margin-top: 8px;
  background-image: radial-gradient(circle, rgb(20 20 20 / 0.35) 0.75px, transparent 1px);
  background-size: 7px 2px;
  background-repeat: repeat-x;
}

.menu__meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-2);
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.is-placeholder .menu__name,
.is-placeholder .menu__meta { color: var(--ink-3); }

.menu__empty {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: clamp(2.5rem, 6vw, 3.75rem) 0;
  border-bottom: 1px solid var(--hair);
  text-align: center;
}

.menu__leaf {
  box-sizing: content-box;
  width: 40px; height: 40px;
  padding: 20px;
  border-radius: 50%;
  background: var(--mist);
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform-origin: 50% 70%;
  animation: leaf-sway 5s ease-in-out infinite;
}

@keyframes leaf-sway {
  0%, 100% { transform: rotate(-4deg); }
  50% { transform: rotate(4deg); }
}

.menu__empty-text { color: var(--ink-2); font-size: 1.0625rem; }

.menu__row--open { display: block; border-bottom: 1px solid var(--ink); }
.menu__cta { grid-column: 1 / -1; grid-template-columns: auto 1fr auto; padding-left: 62px; }

.menu__cta .menu__meta { color: var(--ink); font-weight: 500; }
.menu__cta svg { transition: transform 0.4s var(--ease-out); }
.menu__cta:hover svg { transform: translateX(4px); }
.menu__cta:hover .menu__name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.menu__cta:focus-visible { outline-offset: 0; }

@media (max-width: 559px) {
  .menu__row { grid-template-columns: auto 1fr; gap: 4px 14px; padding: 16px 0; }
  .menu__logo { grid-row: span 2; }
  .menu__leader { display: none; }
  .menu__cta { grid-template-columns: 1fr auto; padding-left: 0; }
}

/* ---------- Contact ---------- */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(3rem, 8vw, 7rem);
  padding-bottom: clamp(5rem, 10vw, 8rem);
}

.contact__copy { display: grid; gap: 20px; }

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.contact__address {
  flex-basis: 100%;
  color: var(--ink-2);
  font-size: 0.9375rem;
}

/* Receipt */
.receipt {
  position: relative;
  width: 264px;
  transform: rotate(3deg);
  filter: drop-shadow(0 18px 22px rgb(20 20 20 / 0.12)) drop-shadow(0 2px 3px rgb(20 20 20 / 0.08));
}

.receipt .pin { top: 18px; left: 50%; }

.receipt__paper {
  --zz: 10px;
  padding: 40px 24px calc(28px + var(--zz));
  background: linear-gradient(180deg, #ffffff, #fbfbfa);
  font-family: var(--font-mono);
  font-size: 0.78125rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
  -webkit-mask:
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--zz)) 100%;
  mask:
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--zz)) 100%;
}

.receipt__head {
  padding-bottom: 14px;
  border-bottom: 1px dashed rgb(20 20 20 / 0.35);
  text-align: center;
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: 0.12em;
  line-height: 1.5;
}
.receipt__head span { font-size: 0.6875rem; font-weight: 400; letter-spacing: 0.14em; color: var(--ink-2); }

.receipt__lines { display: grid; gap: 10px; padding: 16px 0; }
.receipt__lines div { display: flex; justify-content: space-between; gap: 12px; }
.receipt__lines dd { color: var(--ink-2); text-align: right; }

.receipt__total {
  display: flex;
  justify-content: space-between;
  padding: 12px 0 18px;
  border-top: 1px dashed rgb(20 20 20 / 0.35);
  font-weight: 500;
  font-size: 0.875rem;
}

.receipt__foot { text-align: center; color: var(--ink-2); font-size: 0.6875rem; letter-spacing: 0.14em; }

@media (max-width: 819px) {
  .contact { grid-template-columns: 1fr; }
  .receipt { justify-self: center; margin-top: 8px; }
}

/* ---------- Footer ---------- */

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: calc(var(--content) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 28px var(--gutter) calc(28px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--hair);
  color: var(--ink-2);
  font-size: 0.875rem;
}

.footer__links { display: flex; gap: 20px; margin-right: auto; }

.footer__links a,
.footer__credit a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--hair); text-underline-offset: 4px; transition: text-decoration-color 0.25s ease; }
.footer__links a:hover,
.footer__credit a:hover { text-decoration-color: var(--ink); }

@media (max-width: 759px) {
  .site-footer { flex-wrap: wrap; }
  .footer__links { order: 3; flex-basis: 100%; }
  .footer__credit { order: 4; flex-basis: 100%; }
}

.footer__top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  color: var(--ink);
  font-weight: 500;
}
.footer__top svg { transition: transform 0.4s var(--ease-out); }
.footer__top:hover svg { transform: translateY(-3px); }

/* ---------- Legal pages ---------- */

.legal .site-header { position: static; }

.legal__main {
  max-width: calc(68ch + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 5rem) var(--gutter) clamp(4rem, 9vw, 6rem);
}

.legal__updated { margin-top: 16px; color: var(--ink-2); font-size: 0.9375rem; }

.legal__body { margin-top: clamp(2rem, 5vw, 3rem); }

.legal__body h2 {
  margin: 2.5rem 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  font-variation-settings: "opsz" 32;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.legal__body p,
.legal__body ul { color: var(--ink-2); text-wrap: pretty; }
.legal__body p + p,
.legal__body p + ul,
.legal__body ul + p { margin-top: 0.75rem; }
.legal__body ul { padding-left: 1.25rem; list-style: disc; }
.legal__body li + li { margin-top: 0.375rem; }
.legal__body strong { color: var(--ink); font-weight: 600; }
.legal__body a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 60;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--paper);
  font-size: 0.9375rem;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.45s var(--ease-out);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast:empty { visibility: hidden; }

/* ---------- Reduced motion ---------- */

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