/* Manrope: SIL Open Font License 1.1. See ../fonts/Manrope-OFL.txt. */
@font-face {
  font-family: Manrope;
  src: url('../fonts/manrope.ce340d485319.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --font: Manrope, Arial, sans-serif;
  --display: Futura, 'Futura PT', Manrope, Arial, sans-serif;
  --mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  --bg: #0c0717;
  --fg: #f3eafa;
  --accent: #e4a2ff;
  --muted: #aea0bf;
  --line: #372647;
  --header: #0c0717ed;
  --pink: #ff79ca;
  --pad: clamp(1.375rem, 5vw, 5rem);
  --section-space: clamp(3.5rem, 7vw, 6.5rem);
  --section-gap: clamp(1.25rem, 4.5vw, 4.5rem);
  --type-hero: clamp(2.75rem, 1.1rem + 5.65vw, 7.5rem);
  --type-heading: clamp(2rem, 1.35rem + 2.7vw, 4.75rem);
  --type-card: clamp(1.25rem, 1.1rem + 0.45vw, 1.65rem);
  --type-body: clamp(1.0625rem, 1.015rem + 0.17vw, 1.1875rem);
  --type-detail: clamp(1rem, 0.955rem + 0.15vw, 1.0625rem);
  --type-ui: clamp(0.9375rem, 0.9rem + 0.13vw, 1rem);
  --card-columns: repeat(3, minmax(0, 1fr));
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6.25rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: var(--type-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; }
h2, h3 { text-wrap: balance; }

h2 {
  font-size: var(--type-heading);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

h3 {
  font-size: var(--type-card);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
svg { display: block; }

button, a { -webkit-tap-highlight-color: transparent; }

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}

::selection { color: var(--bg); background: var(--accent); }

.wrap {
  max-width: 1600px;
  margin-inline: auto;
  padding-inline: var(--pad);
}

.skip {
  position: fixed;
  top: -6rem;
  left: 1.25rem;
  z-index: 50;
  background: var(--accent);
  color: var(--bg);
  padding: 0.75rem 1.125rem;
}

.skip:focus { top: 0.9375rem; }

.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  z-index: 40;
  pointer-events: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--header);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 5.375rem;
  gap: 1.5rem;
  padding-block: 0.75rem;
}

.wordmark { display: block; width: clamp(7.875rem, 16vw, 8.875rem); flex-shrink: 0; }
.wordmark img { width: 100%; filter: invert(1); }

.wordmark small {
  display: block;
  margin-top: 0.4375rem;
  font: 0.5rem var(--mono);
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-align: center;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.875rem);
  font-size: var(--type-ui);
  font-weight: 600;
}

.nav a:not(.nav-cta) { padding-block: 0.75rem; }
.nav a:hover { color: var(--accent); }

.nav-cta {
  border: 1px solid var(--accent);
  border-radius: 2rem;
  padding: 0.625rem 1.125rem;
  color: var(--accent);
}

.nav .nav-cta:hover { background: var(--accent); color: var(--bg); }

.menu-button {
  display: none;
  min-width: 5.25rem;
  min-height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  padding: 0.5rem 0.75rem;
  font-size: var(--type-ui);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 48px;
  max-width: 100%;
  padding: 0.625rem 1.25rem;
  border: 1px solid var(--accent);
  border-radius: 2rem;
  background: var(--accent);
  color: #1b0d29;
  font-size: var(--type-ui);
  font-weight: 700;
  transition: transform 0.2s ease;
}

.button:hover { transform: translateY(-2px); }
.button .arrow { flex-shrink: 0; font-size: 1.25em; line-height: 1; }

.hero-tagline {
  padding-top: clamp(1.5rem, 4vw, 3.5rem);
  color: var(--accent);
  font-size: clamp(1.125rem, 1rem + 0.45vw, 1.4375rem);
  font-weight: 600;
  line-height: 1.35;
  text-wrap: balance;
}

.hero-stage {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(1.75rem, 5vw, 5rem);
  padding-block: clamp(1.25rem, 2.5vw, 2.5rem) clamp(2rem, 5vw, 5rem);
}

.hero h1 {
  font-size: var(--type-hero);
  line-height: 0.99;
  letter-spacing: -0.055em;
}

.hero h1 span { color: var(--accent); }

.eyebrow {
  display: block;
  margin-bottom: 0.625rem;
  color: var(--accent);
  font-size: var(--type-ui);
}

.hero-type > p {
  max-width: 31ch;
  margin-block: 1.125rem 1.5rem;
  color: var(--muted);
}

.hero-photo {
  justify-self: end;
  width: min(100%, 34rem);
}

.photo-frame {
  border: 1px solid var(--line);
  background: #251038;
  isolation: isolate;
}

.hero-photo img {
  width: 100%;
  filter: grayscale(1) sepia(0.4) hue-rotate(215deg) saturate(0.8);
  mix-blend-mode: screen;
  opacity: 0.85;
}

.leash-study { width: min(100%, 17rem); margin-top: 1.25rem; color: var(--pink); }
.leash-study svg { width: 100%; height: auto; overflow: visible; }
.leash-tether { transform-box: view-box; transform-origin: 38px 36px; animation: leash-step 5s ease-in-out infinite; }
.leash-strap, .leash-collar { fill: none; stroke-width: 2.8px; stroke-linecap: round; stroke-linejoin: round; }
.leash-strap { stroke: currentColor; }
.leash-collar { stroke: var(--accent); }

@keyframes leash-step {
  0%, 100% { transform: rotate(-0.75deg); }
  50% { transform: rotate(2deg); }
}

.about, .practice, .global { padding-block: var(--section-space); }
.about, .practice { border-top: 1px solid var(--line); }

.about, .practice-top, .manifesto .wrap, .global-intro, .signup {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--section-gap);
}

.about h2 { max-width: 16ch; }
.about h2 em { color: var(--accent); font-style: normal; }
.section-copy { max-width: 56ch; color: var(--muted); }
.about-copy p + p { margin-top: 1rem; }
.about-copy .micro { color: var(--accent); }

.practice-top { align-items: start; margin-bottom: clamp(1.75rem, 4vw, 3rem); }

.practice-grid {
  display: grid;
  grid-template-columns: var(--card-columns);
  border: 1px solid var(--line);
}

.practice-card { background: #140c23; }
.practice-card + .practice-card { border-left: 1px solid var(--line); }
.practice-card:nth-child(2) { background: #251038; }
.practice-card:nth-child(2) h3 { color: var(--accent); }

.practice-illustration {
  border-bottom: 1px solid var(--line);
  background: #160d20;
}

.practice-illustration img { width: 100%; }

.practice-card-copy { padding: clamp(1.25rem, 2.5vw, 2rem); }
.practice-card-copy h3 { margin-bottom: 0.75rem; }
.practice-card-copy { overflow-wrap: break-word; }

.practice-card-copy p, .training-list {
  max-width: 47ch;
  color: var(--muted);
  font-size: var(--type-detail);
}

.practice-card-copy p + p { margin-top: 0.75rem; }
.training-list { padding-inline-start: 1.125rem; margin: 0.75rem 0 0; }
.training-list li + li { margin-top: 0.375rem; }
.training-list li::marker { color: var(--pink); }

.manifesto { padding-block: var(--section-space); background: var(--accent); color: #1c0a28; }
.manifesto .wrap { align-items: center; }
.manifesto h2 { max-width: 15ch; }

.manifesto h2 sup {
  font: 0.43em var(--font);
  vertical-align: super;
  line-height: 0;
  letter-spacing: normal;
}

.manifesto p { max-width: 40ch; }
.manifesto p + p { margin-top: 0.75rem; }

.global-intro { align-items: start; }
.global h2 { margin-bottom: 1.125rem; }
.global .section-copy + .section-copy { margin-top: 1rem; }

.country-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--type-detail);
}

.country-list li { padding-block: 0.625rem; border-top: 1px solid var(--line); }

.park-scene {
  margin-top: clamp(2rem, 5vw, 3rem);
  border: 1px solid var(--line);
  background: #160d20;
}

.park-scene img { width: 100%; }

.park-scene figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  padding: 0.625rem 1rem;
  border-top: 1px solid var(--line);
  color: var(--accent);
  font-size: var(--type-ui);
}

.signup {
  margin-bottom: var(--section-space);
  padding: clamp(1.5rem, 5vw, 3.875rem);
  border: 1px solid var(--line);
  background: radial-gradient(ellipse at 90% 70%, #6a257a60, transparent 65%), #170c26;
  align-items: center;
}

.signup h2 { max-width: 13ch; }
.signup p { max-width: 36ch; margin-bottom: 1.125rem; color: var(--muted); }
.signup .button { background: var(--pink); border-color: var(--pink); }

.footer {
  border-top: 1px solid var(--line);
  padding-block: clamp(1.75rem, 4vw, 2.75rem);
  color: var(--muted);
  font-size: var(--type-ui);
}

.footer-top, .footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 1.875rem;
}

.footer-brand { max-width: 34ch; }
.footer-brand .wordmark { margin-bottom: 0.75rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
.footer-links a { display: inline-block; padding-block: 0.625rem; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { margin-top: 1.25rem; }
.copyright { font-size: 0.875rem; }

.motion-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  padding: 0.5rem 0.75rem;
}

.motion-button::before { content: 'Ⅱ'; color: var(--accent); }
.motion-button[aria-pressed=true]::before { content: '▷'; }

.reveal {
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.65, 0.25, 1);
  transition-delay: var(--delay, 0ms);
}

.animate-ready .reveal:not(.is-visible) { opacity: 0; transform: translateY(25px); }
.motion-off .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
.motion-off * { animation-play-state: paused !important; }
.delay-1 { --delay: 100ms; }
.delay-2 { --delay: 200ms; }

@media (max-width: 960px) {
  .header-inner { min-height: 4.5rem; gap: 0.75rem; flex-wrap: wrap; }
  .menu-button { display: block; }
  .nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    gap: 0;
    max-height: 65svh;
    overflow-y: auto;
    padding: 0.3125rem;
  }
  .enhanced .nav { display: none; }
  .enhanced .nav.open { display: grid; }
  .nav a:not(.nav-cta) { border-bottom: 1px solid var(--line); }
  .nav-cta { margin-top: 0.75rem; text-align: center; }
}

@media (width < 720px) {
  .hero-stage, .about, .practice-top, .practice-grid, .manifesto .wrap, .global-intro, .signup {
    grid-template-columns: minmax(0, 1fr);
  }
  h2 br { display: none; }
  .hero-photo { justify-self: start; }
  .leash-study { width: min(100%, 12rem); margin-top: 0.875rem; }
  .practice-grid { max-width: 34rem; }
  .practice-card + .practice-card { border-left: 0; border-top: 1px solid var(--line); }
}

/* Use the available width so rotation and browser chrome do not switch the grids. */
@media (min-width: 640px) and (max-width: 1023px) {
  :root { --pad: clamp(1.5rem, 3.75vw, 3rem); --section-space: 3.5rem; --section-gap: 1.75rem; }

  html { scroll-padding-top: 4.5rem; }
  .header-inner { min-height: 3.75rem; padding-block: 0.4375rem; }

  .hero-tagline { padding-top: 1.125rem; }
  .hero-stage { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--section-gap); padding-block: 1rem 1.5rem; }
  .hero-photo { justify-self: end; width: min(100%, 25rem); max-width: 68svh; }
  .hero h1 { font-size: clamp(2.75rem, 7.1vw, 4.375rem); }
  .hero-type > p { margin-block: 0.875rem 1.125rem; }
  .leash-study { width: min(100%, 11rem); margin-top: 0.75rem; }
  .practice-card-copy { padding: clamp(0.875rem, 1.8vw, 1.25rem); }
}

@media (min-width: 640px) and (width < 720px) {
  .practice-grid { max-width: none; }
  .practice-card {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: center;
    gap: 1.25rem;
    padding: 1rem;
  }
  .practice-illustration { border-bottom: 0; }
  .practice-card-copy { padding: 0; }
}

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