/* ═══════════════════════════════════════════════════════════════════════════
   The Wolves — the site's only stylesheet.

   Four layers, in cascade order:
     1. Tokens      — Nocturne's variables, with the amber accent baked in
     2. Base        — element defaults and the Nocturne component classes used
     3. Site        — the page itself, section by section
     4. Responsive  — the three breakpoints, plus reduced motion

   Every value here comes from the approved design
   ("The Wolves - Site v2.dc.html"), which carried them as inline styles.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── 1. Tokens ───────────────────────────────────────────────────────────── */

/* Inter, self-hosted. v20 ships as a variable font, so one file per subset
   covers both the 400 body weight and the 500 heading weight. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-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;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --color-bg: #161826;
  --color-surface: #232532;
  --color-text: #e9e9ed;
  --color-divider: color-mix(in srgb, #e9e9ed 16%, transparent);

  /* Neutral ramp — Nocturne, unchanged. Generated in OKLCH on one shared
     lightness scale, so the same step of any role matches in visual value. */
  --color-neutral-100: #f3f5fe;
  --color-neutral-200: #e4e7f5;
  --color-neutral-300: #cfd3e5;
  --color-neutral-400: #b2b6ca;
  --color-neutral-500: #9397ab;
  --color-neutral-600: #75798c;
  --color-neutral-700: #595d6c;
  --color-neutral-800: #3f424d;
  --color-neutral-900: #292b31;

  /* Accent — amber, the design's chosen accent. It replaces Nocturne's
     blurple (which the mockup overrode at runtime in applyAccent()) and
     matches the sodium-vapour light in the photography. Same lightness
     scale as the neutral ramp above, so the steps stay interchangeable. */
  --color-accent: oklch(0.76 0.13 72);
  --color-accent-100: oklch(0.97 0.02 80);
  --color-accent-200: oklch(0.93 0.05 78);
  --color-accent-300: oklch(0.87 0.09 76);
  --color-accent-400: oklch(0.80 0.12 74);
  --color-accent-500: oklch(0.74 0.13 72);
  --color-accent-600: oklch(0.62 0.12 68);
  --color-accent-700: oklch(0.50 0.10 64);
  --color-accent-800: oklch(0.38 0.07 60);
  --color-accent-900: oklch(0.28 0.05 58);

  --font-heading: 'Inter', system-ui, sans-serif;
  --font-heading-weight: 500;
  --font-body: 'Inter', system-ui, sans-serif;

  --space-1: 2.8px;
  --space-2: 5.6px;
  --space-3: 8.4px;
  --space-4: 11.2px;
  --space-6: 16.8px;
  --space-8: 22.4px;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;

  /* Elevation on a dark ground is a hairline edge plus ambient darkness. */
  --shadow-sm: 0 0 0 1px #3f424d;
  --shadow-md: 0 0 0 1px #595d6c, 0 6px 18px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 0 0 1px #9397ab, 0 16px 40px rgba(0, 0, 0, 0.65);

  /* Layout constants the design repeats throughout. */
  --page-max: 1180px;
  --page-pad: clamp(20px, 4vw, 32px);
  --section-pad: clamp(72px, 10vw, 110px);
  --header-h: 58px;
}

/* ── 2. Base ─────────────────────────────────────────────────────────────── */

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

html {
  scroll-behavior: smooth;
  /* Anchor targets must clear the fixed header. */
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  line-height: 1.12;
  letter-spacing: -0.015em;
}

p { margin: 0; }

a {
  color: var(--color-accent-300);
  text-decoration: none;
  text-underline-offset: 3px;
}
a:hover { color: var(--color-accent-200); }

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

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }

/* Nocturne's image treatment: anything in the photograph darker than the page
   behind it falls away, so the pictures bleed into the ground. */
.lighten {
  mix-blend-mode: lighten;
  background-color: transparent;
}

/* Visible only to screen readers, until focused. */
.skip-link {
  position: absolute;
  left: var(--page-pad);
  top: 8px;
  z-index: 60;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 14px;
  box-shadow: var(--shadow-md);
  transform: translateY(-200%);
}
.skip-link:focus-visible {
  transform: none;
  color: var(--color-text);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* — Nocturne components, limited to the ones this site uses — */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  font-size: 14px;
  line-height: 1.2;
  color: var(--color-text);
  background: transparent;
  border: 1px solid transparent;
  padding: var(--space-2) calc(var(--space-3) * 1.2);
  border-radius: var(--radius-md);
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.btn-primary {
  color: var(--color-accent);
  border-color: var(--color-accent);
}
.btn-primary:hover {
  color: var(--color-accent);
  background: color-mix(in srgb, var(--color-accent) 12%, transparent);
}
.btn-primary:active { background: color-mix(in srgb, var(--color-accent) 22%, transparent); }

.btn-secondary { border-color: var(--color-divider); }
.btn-secondary:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.btn-secondary:active { background: color-mix(in srgb, var(--color-text) 14%, transparent); }

.tag {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.02em;
  padding: 3px 10px;
  border-radius: calc(var(--radius-md) * 0.75);
}
.tag-outline {
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
}

.card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}
.card-kicker {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.card-title {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  font-size: 17px;
  line-height: 1.2;
}
.card-body {
  margin: 0;
  font-size: 13px;
  opacity: 0.8;
  flex: 1;
}

/* ── 3. Site ─────────────────────────────────────────────────────────────── */

@keyframes wolves-fade {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* Film grain over the whole page — the design's signature texture. */
.grain {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .8 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Shared section furniture. */
.kicker {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.section-title {
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}

.section-head {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: 24px 48px;
  align-items: end;
}
.section-head-main {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.section-lead {
  font-size: 17px;
  line-height: 1.55;
  color: var(--color-neutral-400);
  max-width: 48ch;
  text-wrap: pretty;
}

/* A photograph veiled into the page ground at its lower edge. */
.figure {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.figure img,
.figure picture {
  display: block;
  width: 100%;
  height: 100%;
}
.figure img { object-fit: cover; }
.figure::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, var(--color-bg) 0%, transparent 45%);
}

/* — Header — */
/* Fixed rather than sticky: the hero starts at the top of the document and the
   bar floats over it. The design achieved this with a hardcoded -58px margin
   on the hero, which breaks the moment the bar's height changes. */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--color-bg) 72%, transparent);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 14px var(--page-pad);
}
.nav a { text-decoration: none; }

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text);
}
.nav-brand:hover { color: var(--color-text); }

/* The accent as a mark and a glow, never a flood. */
.brand-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 14px var(--color-accent);
}

.nav-links {
  display: flex;
  gap: 22px;
  font-size: 13px;
  color: var(--color-neutral-400);
}
.nav-links a { color: inherit; }
.nav-links a:hover { color: var(--color-accent); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-cta {
  font-size: 13px;
  padding: 8px 16px;
}

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-neutral-700);
  background: transparent;
  color: var(--color-text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.menu-btn:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.menu-btn span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
}

.menu-panel {
  border-top: 1px solid var(--color-divider);
  animation: wolves-fade 0.2s ease both;
}
.menu-panel[hidden] { display: none; }
.menu-panel-inner {
  display: flex;
  flex-direction: column;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 12px var(--page-pad) 22px;
}
.menu-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-divider);
  color: var(--color-text);
  font-size: 18px;
}
.menu-link:hover { color: var(--color-accent); }
.menu-link span:last-child {
  color: var(--color-accent);
  font-size: 12px;
  letter-spacing: 0.1em;
}
.menu-cta {
  font-size: 15px;
  padding: 12px 20px;
  margin-top: 18px;
  justify-content: center;
}

/* — Hero — */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
/* Two gradients: one lifting the ground up from the bottom for the headline to
   sit on, one darkening the left so the copy holds against the photograph. */
.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top,
      var(--color-bg) 0%,
      color-mix(in srgb, var(--color-bg) 70%, transparent) 32%,
      transparent 62%),
    linear-gradient(to right,
      color-mix(in srgb, var(--color-bg) 78%, transparent) 0%,
      transparent 55%);
}
.hero-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 180px 60px rgba(0, 0, 0, 0.55);
}
.hero-body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: calc(var(--header-h) + 24px) var(--page-pad) clamp(64px, 10vw, 88px);
  animation: wolves-fade 0.9s ease both;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--color-accent);
}
.hero-title {
  font-size: clamp(44px, 6.2vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  max-width: 13ch;
  text-wrap: pretty;
}
.hero-lead {
  font-size: clamp(16px, 2.2vw, 19px);
  line-height: 1.5;
  color: var(--color-neutral-300);
  max-width: 56ch;
  text-wrap: pretty;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.btn-lg {
  font-size: 15px;
  padding: 12px 22px;
}
.btn-film {
  color: var(--color-neutral-200);
  gap: 10px;
}
.play-ring {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--color-neutral-400);
}
.play-ring::before {
  content: '';
  display: block;
  width: 0;
  height: 0;
  margin-left: 2px;
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent currentColor;
}
.hero-tag {
  position: absolute;
  right: 32px;
  bottom: 30px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-neutral-500);
}

/* — What we solve — */
.solve {
  display: flex;
  flex-direction: column;
  gap: 48px;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: var(--section-pad) var(--page-pad) 40px;
}
.solve-band { aspect-ratio: 21 / 9; }
.solve-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 32px 40px;
  padding-top: 8px;
}
.solve-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--color-divider);
}
.solve-num {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--color-accent);
}
.item-title {
  font-size: 22px;
  letter-spacing: -0.01em;
}
.item-body {
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-neutral-400);
  text-wrap: pretty;
}

/* — How we work — */
.how {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: 48px 72px;
  align-items: start;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: var(--section-pad) var(--page-pad);
}
.how-aside {
  position: sticky;
  top: calc(var(--header-h) + 38px);
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.how-figure {
  aspect-ratio: 16 / 10;
  margin-top: 10px;
}
.how-figure::after {
  background: linear-gradient(to top, var(--color-bg) 0%, transparent 40%);
}
.how-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.how-step {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 20px;
  padding: 30px 0;
  border-top: 1px solid var(--color-divider);
}
.how-step:last-child { border-bottom: 1px solid var(--color-divider); }
.how-step-num {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  font-size: 28px;
  line-height: 1;
  color: var(--color-accent);
}
.how-step-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.how-step-title {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* — How we do it — */
.principles {
  position: relative;
  padding: var(--section-pad) 0;
  overflow: hidden;
}
.principles-media {
  position: absolute;
  inset: 0;
  opacity: 0.55;
}
.principles-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
/* Ground on the left for the copy, photograph surviving on the right; both
   ends faded into the page so the band has no visible seam. */
.principles-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right,
      var(--color-bg) 0%,
      color-mix(in srgb, var(--color-bg) 92%, transparent) 45%,
      color-mix(in srgb, var(--color-bg) 40%, transparent) 100%),
    linear-gradient(to bottom,
      var(--color-bg) 0%, transparent 18%, transparent 82%, var(--color-bg) 100%);
}
.principles-body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 56px;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--page-pad);
}
.principles-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 640px;
}
.principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 20px;
}
.principles-card {
  padding: 28px;
  gap: 14px;
  background: color-mix(in srgb, var(--color-surface) 82%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
}
.principles-card .card-kicker { font-size: 11px; }
.principles-card .card-title {
  font-size: 22px;
  letter-spacing: -0.01em;
}
.principles-card .card-body {
  font-size: 15px;
  line-height: 1.55;
  opacity: 1;
  color: var(--color-neutral-400);
  text-wrap: pretty;
}

/* — Who we are — */
.who {
  display: flex;
  flex-direction: column;
  gap: 56px;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 60px var(--page-pad) var(--section-pad);
}
.who .section-lead { max-width: 46ch; }
.who-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 48px 40px;
}
.person {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.person-photo {
  aspect-ratio: 4 / 5;
  box-shadow: none;
}
.person-photo img { object-position: center top; }
/* Each portrait fades toward the page's centre line, so the pair frames the
   column of text between them. */
.person-photo--left::after {
  background:
    linear-gradient(to top, var(--color-bg) 0%, transparent 35%),
    linear-gradient(to left, var(--color-bg) 0%, transparent 18%);
}
.person-photo--right::after {
  background:
    linear-gradient(to top, var(--color-bg) 0%, transparent 35%),
    linear-gradient(to right, var(--color-bg) 0%, transparent 18%);
}
.person-name {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.person-name h3 {
  font-size: 26px;
  letter-spacing: -0.01em;
}
.person-role {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent-300);
}
.person-bio {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-neutral-400);
  text-wrap: pretty;
}

/* — Contact — */
.contact {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.contact-media {
  position: absolute;
  inset: 0;
}
.contact-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.contact-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    var(--color-bg) 0%,
    color-mix(in srgb, var(--color-bg) 55%, transparent) 40%,
    color-mix(in srgb, var(--color-bg) 55%, transparent) 70%,
    var(--color-bg) 100%);
}
.contact-body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: clamp(80px, 12vw, 120px) var(--page-pad);
}
.contact-title {
  font-size: clamp(40px, 5.4vw, 72px);
  line-height: 1;
  letter-spacing: -0.025em;
  max-width: 14ch;
  text-wrap: pretty;
}
.contact-lead {
  font-size: 18px;
  line-height: 1.5;
  color: var(--color-neutral-300);
  max-width: 46ch;
  text-wrap: pretty;
}
.contact-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 8px;
}
.contact-note {
  font-size: 13px;
  color: var(--color-neutral-500);
}

/* — Film modal — */
.film {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 4vw, 32px);
  background: rgba(10, 11, 18, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: wolves-fade 0.25s ease both;
}
.film[hidden] { display: none; }
.film-frame {
  position: relative;
  width: min(1100px, 100%);
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #000;
}
.film-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}
.film-close {
  position: absolute;
  top: 22px;
  right: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--color-neutral-600);
  background: transparent;
  color: var(--color-neutral-200);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.film-close:hover {
  color: var(--color-text);
  background: color-mix(in srgb, var(--color-text) 10%, transparent);
}

/* — Consent banner — */
.consent {
  position: fixed;
  left: var(--page-pad);
  right: var(--page-pad);
  bottom: var(--page-pad);
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--color-surface) 94%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
  animation: wolves-fade 0.3s ease both;
}
.consent[hidden] { display: none; }
.consent-text {
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-neutral-300);
  max-width: 68ch;
}
.consent-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.consent-actions .btn { font-size: 13px; padding: 8px 16px; }

/* — Footer — */
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px 28px;
  flex-wrap: wrap;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 28px var(--page-pad) 40px;
  font-size: 12px;
  color: var(--color-neutral-500);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-neutral-400);
}
.footer-tagline { color: var(--color-neutral-500); }
.footer-legal {
  display: flex;
  align-items: center;
  gap: 8px 16px;
  flex-wrap: wrap;
}
.footer-legal a { color: var(--color-neutral-400); }
.footer-legal a:hover { color: var(--color-accent); }

/* — Sub-pages (privacy, terms, 404) — */
.doc {
  max-width: 78ch;
  margin: 0 auto;
  padding: calc(var(--header-h) + clamp(48px, 8vw, 96px)) var(--page-pad)
           clamp(72px, 10vw, 110px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.doc-title {
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.doc-meta {
  font-size: 13px;
  color: var(--color-neutral-500);
  margin-bottom: 20px;
}
.doc h2 {
  font-size: 22px;
  letter-spacing: -0.01em;
  margin-top: 28px;
}
.doc h3 {
  font-size: 17px;
  margin-top: 18px;
}
.doc p,
.doc li {
  font-size: 15px;
  line-height: 1.65;
  color: var(--color-neutral-300);
  text-wrap: pretty;
}
.doc ul {
  margin: 4px 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.doc-note {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-accent-800);
  background: color-mix(in srgb, var(--color-accent) 7%, transparent);
  font-size: 14px;
  color: var(--color-neutral-300);
}
.doc-back {
  margin-top: 32px;
  font-size: 14px;
}

.notfound {
  min-height: 70vh;
  align-items: flex-start;
  justify-content: center;
}

/* ── 4. Responsive ───────────────────────────────────────────────────────── */

@media (max-width: 960px) {
  /* Below two full columns the aside has nothing to stick alongside. */
  .how-aside { position: static; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .hero-tag { display: none; }
  .menu-btn { display: flex; }
}

@media (max-width: 420px) {
  .nav-cta { display: none; }
}

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