/* ==========================================================================
   Club Éphémère — Y2K Cyber Barbie
   Dark grey base, neon accents used sparingly to lift key elements.
   ========================================================================== */

:root {
  /* Palette (brand sheet) */
  --pink: #FF71CE;
  --green: #05FFA1;
  --violet: #B967FF;
  --white: #F5F5F5;
  --star: #8B5CFF;

  /* Surfaces */
  --bg: #111111;
  --bg-raised: #181818;
  --line: #222222;
  --text: #F5F5F5;
  --text-muted: #9A9A9A;
  --ink: #111111; /* text on white notch */

  /* Type */
  --font-display: "Anybody", "Arial Narrow", sans-serif;
  --font-body: "Space Grotesk", system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;

  /* Spacing */
  --gutter: clamp(16px, 4vw, 48px);
  --section-y: clamp(96px, 14vw, 180px);
  --radius: 28px;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 112px; overflow-x: clip; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
em { font-style: italic; }

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

.sr-only {
  position: absolute; 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; left: 16px; top: -60px; z-index: 100;
  background: var(--white); color: var(--ink);
  padding: 10px 16px; border-radius: 999px; font-weight: 700; text-decoration: none;
  transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 16px; }

/* --------------------------------------------------------------------------
   Background grid (canvas drawn in main.js)
   -------------------------------------------------------------------------- */
.grid-bg {
  position: fixed; inset: 0; z-index: 0;
  width: 100vw; height: 100vh;
  pointer-events: none;
}

main, .footer { position: relative; z-index: 1; }

/* --------------------------------------------------------------------------
   Notch navigation — white island hanging from the top edge
   -------------------------------------------------------------------------- */
.notch {
  position: fixed; top: 16px; left: 50%; z-index: 50;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 28px;
  height: 56px;
  padding: 0 8px 0 18px;
  background: var(--white);
  color: var(--ink);
  border-radius: 28px;
  box-shadow: 0 10px 40px -10px rgba(185, 103, 255, .45), 0 2px 0 rgba(0,0,0,.04);
  transition: height .45s var(--ease-spring), gap .45s var(--ease-spring), padding .45s var(--ease-spring);
}

.notch:hover { height: 62px; gap: 34px; }

.notch__logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; font-weight: 700; letter-spacing: -.01em;
}
.notch__logo img { transition: transform .6s var(--ease-spring); }
.notch__logo:hover img { transform: rotate(-18deg) scale(1.1); }
.notch__brand {
  font-family: var(--font-display); font-style: italic; font-weight: 800;
  font-variation-settings: "wdth" 90; text-transform: uppercase; font-size: .95rem;
  white-space: nowrap;
}

.notch__nav { display: flex; align-items: center; gap: 4px; }
.notch__nav a {
  position: relative;
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 0 14px;
  border-radius: 999px;
  font-size: .92rem; font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: background-color .2s ease, color .2s ease;
}
.notch__nav a:hover { background: #E6E6E6; }
.notch__nav a[aria-current="true"]::after {
  content: ""; position: absolute; left: 50%; bottom: 5px; width: 4px; height: 4px;
  border-radius: 50%; background: var(--violet); transform: translateX(-50%);
}
.notch__nav .notch__shop {
  background: var(--ink); color: var(--white); font-weight: 700;
}
.notch__nav .notch__shop:hover { background: var(--violet); color: var(--ink); }

.notch__toggle {
  display: none;
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: var(--ink); cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.notch__toggle span {
  display: block; width: 16px; height: 2px; background: var(--white); border-radius: 2px;
  transition: transform .3s var(--ease-out);
}
.notch[data-open="true"] .notch__toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
.notch[data-open="true"] .notch__toggle span:last-child  { transform: translateY(-3.5px) rotate(-45deg); }

@media (max-width: 720px) {
  .notch {
    flex-wrap: wrap; justify-content: space-between;
    width: min(calc(100vw - 32px), 420px);
    height: auto; min-height: 56px; gap: 0; padding: 6px 6px 6px 16px;
  }
  .notch:hover { height: auto; gap: 0; }
  .notch__toggle { display: flex; }
  .notch__nav {
    order: 3; width: 100%;
    flex-direction: column; align-items: stretch;
    max-height: 0; overflow: hidden; opacity: 0;
    transition: max-height .45s var(--ease-out), opacity .3s ease, padding .3s ease;
  }
  .notch[data-open="true"] .notch__nav { max-height: 320px; opacity: 1; padding: 8px 4px 10px; }
  .notch__nav a { min-height: 48px; font-size: 1.05rem; padding: 0 16px; }
  .notch__nav .notch__shop { justify-content: center; margin-top: 6px; }
}

/* --------------------------------------------------------------------------
   Hero + background flex typography
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid; place-items: center;
  padding: clamp(84px, 11vh, 120px) var(--gutter) 104px; /* bottom: room for the fixed scroll hint (70px + 20px offset) */
  overflow: hidden;
}

.flex-type {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  pointer-events: none; user-select: none;
  line-height: .82;
}
.flex-type__line {
  display: block; white-space: nowrap;
  font-family: var(--font-display);
  font-style: italic; font-weight: 900; text-transform: uppercase;
  font-size: clamp(4.5rem, 17vw, 19rem);
  letter-spacing: -.02em;
  color: var(--bg);
  /* 3px visible outline: stroke is drawn under the fill, so the bg-grey inside stays intact */
  -webkit-text-stroke: 6px #2c2c2c;
  paint-order: stroke fill;
}
.flex-type__line .ch {
  display: inline-block;
  font-variation-settings: "wdth" var(--w, 62);
  transition: font-variation-settings .5s var(--ease-out), color .5s ease, -webkit-text-stroke-color .5s ease;
}
.hero.is-flexing .flex-type__line { -webkit-text-stroke-color: rgba(185,103,255,.35); }

.hero__content {
  position: relative; z-index: 2;
  max-width: 900px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.hero__star {
  width: clamp(60px, min(16vw, 14vh), 220px); height: auto;
  filter: drop-shadow(0 0 40px rgba(139, 92, 255, .55));
  animation: float 7s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(-6deg); }
}

.tag {
  display: inline-flex; align-items: center; gap: 10px;
  margin: clamp(14px, 3vh, 28px) 0 0; padding: 8px 14px;
  border: 1px solid #2c2c2c; border-radius: 999px;
  background: rgba(17,17,17,.7); backdrop-filter: blur(6px);
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .04em; text-transform: uppercase;
  color: var(--text-muted);
}
.hero__title {
  margin: clamp(12px, 2.4vh, 20px) 0 0;
  font-family: var(--font-display); font-weight: 800; font-style: italic;
  font-variation-settings: "wdth" 110;
  font-size: clamp(2.2rem, min(6.4vw, 8vh), 5.4rem);
  line-height: .95; letter-spacing: -.02em; text-transform: uppercase;
  text-wrap: balance;
}
.hero__title em {
  color: var(--pink);
  text-shadow: -3px 0 0 rgba(185, 103, 255, .55);
}
.hero__lead {
  margin: clamp(14px, 2.8vh, 24px) auto 0; max-width: 54ch;
  color: #BDBDBD; font-size: clamp(1rem, 1.6vw, 1.15rem);
  text-wrap: pretty;
}
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: clamp(18px, 4vh, 36px); }

/* Pinned to the bottom of the viewport; main.js fades it out over the first screen of scroll */
.scroll-hint {
  position: fixed; bottom: max(20px, env(safe-area-inset-bottom)); left: 50%; z-index: 40;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  min-width: 44px; padding: 4px;
  font-family: var(--font-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-muted); text-decoration: none;
  opacity: var(--hint-opacity, 1);
  transition: color .2s ease;
}
.scroll-hint:hover { color: var(--white); }
.scroll-hint__mouse {
  position: relative; width: 24px; height: 38px;
  border: 1.5px solid currentColor; border-radius: 999px;
}
.scroll-hint__mouse::after {
  content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 4px; background: var(--pink);
  animation: wheel 1.6s var(--ease-out) infinite;
}
@keyframes wheel {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* Back to top: shows once the first screen is scrolled past (toggled in main.js) */
.to-top {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 40;
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--white); color: var(--ink);
  box-shadow: 3px 3px 0 var(--violet);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s ease, visibility .3s, transform .4s var(--ease-spring), box-shadow .25s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { box-shadow: 4px 4px 0 var(--pink); transform: translateY(-2px); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px;
  border-radius: 999px;
  font-weight: 700; font-size: .95rem; text-decoration: none;
  transition: transform .25s var(--ease-spring), background-color .2s ease, color .2s ease, box-shadow .25s ease;
}
.btn:active { transform: scale(.97); }
.btn--primary {
  background: var(--white); color: var(--ink);
  box-shadow: 4px 4px 0 var(--violet);
}
.btn--primary:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--pink); }
.btn--ghost { border: 1px solid #3a3a3a; color: var(--text); background: rgba(17,17,17,.6); }
.btn--ghost:hover { border-color: var(--green); color: var(--green); }

/* --------------------------------------------------------------------------
   Marquee
   -------------------------------------------------------------------------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(17,17,17,.85);
  padding: 18px 0;
  transform: rotate(-2deg) scale(1.04);
}
.marquee__track {
  display: flex; gap: 32px; width: max-content;
  animation: marquee 28s linear infinite;
  font-family: var(--font-display); font-style: italic; font-weight: 900; text-transform: uppercase;
  font-variation-settings: "wdth" 120;
  font-size: clamp(1.6rem, 4vw, 3rem); line-height: 1;
}
.marquee__track i { font-style: normal; color: var(--violet); }
.marquee__track span:nth-of-type(3n+1) { color: var(--white); }
.marquee__track span:nth-of-type(3n+2) { color: transparent; -webkit-text-stroke: 1px var(--white); }
.marquee__track span:nth-of-type(3n)   { color: var(--pink); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section {
  max-width: 1280px; margin: 0 auto;
  padding: var(--section-y) var(--gutter) 0;
}
.section__head { margin-bottom: 48px; max-width: 720px; }
.section__head--row {
  max-width: none;
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px;
}
.kicker {
  margin: 0 0 12px;
  font-family: var(--font-mono); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--violet);
}
.section__title {
  margin: 0;
  font-family: var(--font-display); font-style: italic; font-weight: 900; text-transform: uppercase;
  font-variation-settings: "wdth" 115;
  font-size: clamp(2.4rem, 7vw, 5.5rem); line-height: .9; letter-spacing: -.02em;
}
.section__title em { color: var(--violet); }
.section__lead { margin: 18px 0 0; color: var(--text-muted); font-size: 1.1rem; max-width: 52ch; }

/* --------------------------------------------------------------------------
   Topics
   -------------------------------------------------------------------------- */
.topics {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
}
.topic {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  min-height: 300px; padding: 28px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(24,24,24,.82); backdrop-filter: blur(8px);
  transition: border-color .3s ease, transform .4s var(--ease-out);
}
.topic::before {
  /* accent glow, revealed on hover */
  content: ""; position: absolute; inset: auto -30% -60% auto; width: 80%; aspect-ratio: 1;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 35%, transparent), transparent 65%);
  opacity: 0; transition: opacity .4s ease;
}
.topic:hover { border-color: color-mix(in srgb, var(--accent) 60%, transparent); transform: translateY(-4px); }
.topic:hover::before { opacity: 1; }

.topic__index { font-family: var(--font-mono); font-size: .8rem; color: var(--accent); }
.topic__name {
  position: relative; white-space: nowrap;
  margin: auto 0 14px; padding-top: 40px;
  font-family: var(--font-display); font-style: italic; font-weight: 900;
  font-variation-settings: "wdth" 80;
  font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: .9; letter-spacing: -.01em;
  color: var(--white);
  text-shadow: -3px 0 0 color-mix(in srgb, var(--violet) 70%, transparent), 3px 0 0 color-mix(in srgb, var(--pink) 70%, transparent);
  transition: font-variation-settings .5s var(--ease-out), text-shadow .3s ease;
}
.topic:hover .topic__name {
  font-variation-settings: "wdth" 100;
  text-shadow: -5px 0 0 color-mix(in srgb, var(--violet) 80%, transparent), 5px 0 0 color-mix(in srgb, var(--pink) 80%, transparent);
}
.topic p { position: relative; margin: 0; color: #B5B5B5; max-width: 40ch; }

.topic--cta { background: transparent; border-style: dashed; border-color: #333; }
.topic--cta:hover { transform: none; border-color: var(--white); }
.topic--cta .topic__name { color: transparent; -webkit-text-stroke: 1.5px var(--white); text-shadow: none; }
.topic--cta:hover .topic__name { text-shadow: none; }
a.topic { color: inherit; text-decoration: none; }

/* --------------------------------------------------------------------------
   Manifesto
   -------------------------------------------------------------------------- */
.manifesto { max-width: 1100px; }
.manifesto__text {
  margin: 0;
  font-family: var(--font-display); font-weight: 700; font-style: italic;
  font-variation-settings: "wdth" 95;
  font-size: clamp(1.9rem, 5vw, 4rem); line-height: 1.5; letter-spacing: -.015em;
  text-wrap: balance;
}
.hl { padding: 0 .12em; border-radius: .15em; color: var(--ink); }
.hl--pink { background: var(--pink); }
.hl--violet { background: var(--violet); }
.hl--green { background: var(--green); }

/* --------------------------------------------------------------------------
   Shop card
   -------------------------------------------------------------------------- */
.shop-card {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(20px, 4vw, 56px);
  padding: clamp(28px, 5vw, 64px);
  border-radius: calc(var(--radius) + 8px);
  background: var(--white); color: var(--ink);
  text-decoration: none;
  box-shadow: 8px 8px 0 var(--violet);
  transition: transform .35s var(--ease-spring), box-shadow .35s var(--ease-spring);
}
.shop-card:hover { transform: translate(-4px, -4px); box-shadow: 12px 12px 0 var(--pink); }
.shop-card .kicker { color: #6B3FD9; }
.shop-card__star { width: clamp(80px, 12vw, 160px); height: auto; transition: transform .8s var(--ease-spring); }
.shop-card:hover .shop-card__star { transform: rotate(-24deg) scale(1.06); }
.shop-card__title {
  margin: 0;
  font-family: var(--font-display); font-style: italic; font-weight: 900; text-transform: uppercase;
  font-variation-settings: "wdth" 120;
  font-size: clamp(2.6rem, 8vw, 6rem); line-height: .85;
}
.shop-card__title em { color: #6B3FD9; }
.shop-card__lead { margin: 14px 0 0; font-size: 1.1rem; color: #3a3a3a; }
.shop-card__arrow {
  display: grid; place-items: center;
  width: clamp(56px, 7vw, 88px); aspect-ratio: 1; border-radius: 50%;
  background: var(--ink); color: var(--white);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  transition: transform .35s var(--ease-spring), background-color .2s ease;
}
.shop-card:hover .shop-card__arrow { transform: rotate(-45deg); background: var(--violet); color: var(--ink); }
@media (max-width: 640px) {
  .shop-card { grid-template-columns: 1fr auto; }
  .shop-card__star { grid-column: 1 / -1; }
}

/* --------------------------------------------------------------------------
   Guests — line-up rows
   -------------------------------------------------------------------------- */
.guests { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); container-type: inline-size; }
.guest {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: 3rem minmax(0, 1fr) auto auto; align-items: center; gap: clamp(12px, 2vw, 28px);
  padding: clamp(14px, 2vw, 22px) clamp(8px, 2vw, 20px);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: color .3s ease;
}
.guest::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--accent);
  transform: scaleY(0); transform-origin: 50% 100%;
  transition: transform .5s var(--ease-out);
}
.guest:hover, .guest:focus-visible { color: var(--ink); }
.guest:hover::before, .guest:focus-visible::before { transform: scaleY(1); }
.guest__num { font-family: var(--font-mono); font-size: .85rem; color: var(--text-muted); transition: color .3s ease; }
.guest__name {
  font-family: var(--font-display); font-style: italic; font-weight: 900; text-transform: uppercase;
  font-variation-settings: "wdth" 70;
  /* longest name is ~9.5em at hover width: size it from the space left by the other columns */
  font-size: min(calc((100cqi - 340px) / 10.5), 5rem); line-height: .95; letter-spacing: -.01em;
  white-space: nowrap;
  transition: font-variation-settings .6s var(--ease-out);
}
.guest__handle { font-family: var(--font-mono); font-size: .85rem; color: var(--text-muted); transition: color .3s ease; }
.guest__arrow {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid #333; font-size: 1.2rem;
  transition: transform .4s var(--ease-spring), background-color .3s ease, color .3s ease, border-color .3s ease;
}
.guest:hover .guest__name { font-variation-settings: "wdth" 115; }
.guest:hover .guest__num, .guest:hover .guest__handle { color: var(--ink); }
.guest:hover .guest__arrow { background: var(--ink); color: var(--white); border-color: var(--ink); transform: rotate(45deg); }
@media (max-width: 640px) {
  .guest { grid-template-columns: 2rem minmax(0, 1fr) auto; }
  .guest__handle { display: none; }
  .guest__arrow { width: 40px; height: 40px; }
  .guest__name { font-size: calc((100cqi - 140px) / 7.4); }
  .guest:hover .guest__name { font-variation-settings: "wdth" 88; } /* less widening where space is tight */
}

/* --------------------------------------------------------------------------
   Community — follower counts
   -------------------------------------------------------------------------- */
.community {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: end; gap: clamp(28px, 5vw, 72px);
  margin-top: clamp(56px, 8vw, 104px); padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--line);
}
.community__num {
  display: block;
  font-family: var(--font-display); font-style: italic; font-weight: 900;
  font-variation-settings: "wdth" 105;
  font-size: clamp(4rem, 13vw, 10.5rem); line-height: .85; letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  text-shadow: -4px 0 0 color-mix(in srgb, var(--violet) 75%, transparent), 4px 0 0 color-mix(in srgb, var(--pink) 75%, transparent);
}
.community__label {
  display: block; margin-top: 16px;
  font-family: var(--font-mono); font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted);
}
.community__side { display: grid; gap: 16px; }
.community__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.community__kit { min-height: 56px; }
.network {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px; padding: 0 24px;
  border: 1px solid #2c2c2c; border-radius: 999px;
  background: rgba(17,17,17,.7);
  text-decoration: none;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.network__name { display: inline-flex; align-items: center; gap: 12px; font-weight: 500; }
.network__name::before {
  content: ""; width: 10px; height: 10px; background: var(--accent); transform: rotate(45deg);
  transition: background-color .25s ease;
}
.network__num {
  font-family: var(--font-display); font-style: italic; font-weight: 800;
  font-variation-settings: "wdth" 100; font-size: 1.6rem; font-variant-numeric: tabular-nums;
}
.network:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.network:hover .network__name::before { background: var(--ink); }
@media (max-width: 760px) { .community { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Contact — pill trail (cursor-driven, see main.js)
   -------------------------------------------------------------------------- */
.contact {
  position: relative; isolation: isolate; /* no clipping: pills may drift past the block edges */
  display: grid; place-items: center;
  min-height: clamp(380px, 60vh, 600px);
  padding: clamp(28px, 5vw, 64px) 0;
  text-align: center;
}
.contact__zone { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.contact__inner {
  position: relative; z-index: 2; width: 100%;
  container-type: inline-size; /* email is sized from this block's width */
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  pointer-events: none;
}
.contact__address {
  /* ~10.6em wide at its widest: 8.6cqi keeps it inside the block on any viewport */
  font-family: var(--font-display); font-style: italic; font-weight: 900;
  font-variation-settings: "wdth" 90;
  font-size: min(8.6cqi, 4.5rem); line-height: 1.1; letter-spacing: -.02em;
  white-space: nowrap;
  text-shadow: -3px 0 0 color-mix(in srgb, var(--violet) 70%, transparent), 3px 0 0 color-mix(in srgb, var(--pink) 70%, transparent);
  transition: font-variation-settings .6s var(--ease-out);
}
.contact:hover .contact__address { font-variation-settings: "wdth" 100; }
.contact__topics {
  margin: 0; max-width: 46ch;
  font-family: var(--font-mono); font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; color: var(--text-muted);
  text-wrap: balance;
}

.trail { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.trail__pill {
  position: absolute; left: 0; top: 0;
  padding: .7em 1.3em;
  border-radius: 999px;
  background: var(--c); color: var(--ink);
  font-family: var(--font-display); font-style: italic; font-weight: 800;
  font-variation-settings: "wdth" 95;
  font-size: clamp(1rem, 1.8vw, 1.4rem); line-height: 1; white-space: nowrap;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.7);
  will-change: transform, opacity;
}
.trail__pill--copied {
  font-size: clamp(1.15rem, 2.2vw, 1.7rem);
  box-shadow: 4px 4px 0 var(--violet), 0 10px 30px -10px rgba(0,0,0,.7);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  max-width: 1280px; margin: var(--section-y) auto 0;
  padding: 40px var(--gutter) 48px;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
}
.footer__brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-style: italic; font-weight: 900; text-transform: uppercase;
  font-variation-settings: "wdth" 100; font-size: 1.1rem;
}
.footer__nav { display: flex; flex-wrap: wrap; gap: 4px; }
.footer__nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  color: var(--text-muted); text-decoration: none; border-radius: 999px;
}
.footer__nav a:hover { color: var(--white); background: #1c1c1c; }
.footer__copy { margin: 0; font-family: var(--font-mono); font-size: .8rem; color: #777; }

/* --------------------------------------------------------------------------
   Reveal on scroll
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 640px) { .trail__pill { font-size: .9rem; } }

/* Phones: keep both hero buttons on one row so the hero fits above the scroll hint */
@media (max-width: 480px) {
  .hero__cta .btn { padding: 0 18px; font-size: .9rem; }
  .hero__lead { font-size: .95rem; }
}
