/* ==========================================================================
   Private Ableton Live Lessons — Rico Casazza (AZARYC)
   Identity: signal red, constructivist grid, sharp edges — light and dark.

   Token roles:
     --white / --paper   page ground (primary / secondary) — flips with theme
     --ink / --muted      text (primary / secondary) — flips with theme
     --line               hairline borders — flips with theme
     --red                brand red used as a FILL (solid backgrounds, small
                           icon accents) — constant across themes, already
                           verified to pass 3:1 against both grounds
     --red-accent          brand red used as TEXT/links on the page ground —
                           theme-aware so it keeps 4.5:1 against whichever
                           ground is active
     --red-dark             darker red for hover states on red fills — constant
     --red-on-dark          brand red for text sitting on the permanently-dark
                           footer — constant
     --white-fixed / --ink-fixed  literal white / near-black, for elements
                           that stay the same in both themes on purpose
                           (badge, skip link, footer, and anything sitting on
                           the solid-red blocks)

   Type: Archivo (display) / Schibsted Grotesk (body) / Azeret Mono (data).
   ========================================================================== */

:root {
  --white:      #FFFFFF;
  --paper:      #F6F5F4;
  --ink:        #0B0A0A;
  --muted:      #6B6567;
  --line:       #E2DFDE;
  --red:        #E01B14;
  --red-accent: #B31410;
  --red-dark:   #B31410;
  --red-on-dark: #FF6E64;

  --white-fixed: #FFFFFF;
  --ink-fixed:   #0B0A0A;

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Azeret Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --radius: 3px;
  --measure: 60ch;
  --wrap: 1140px;
  --pad: 32px;
  --card-shadow: 0 12px 30px rgba(11, 10, 10, 0.09);
}

/* Dark theme: system preference by default, or an explicit user choice via
   the toggle (stamped as data-theme by the inline head script + toggle JS).
   An explicit data-theme="light" always wins over the system preference. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --white:      #131316;
    --paper:      #1C1C20;
    --ink:        #F3F1EF;
    --muted:      #A8A3A2;
    --line:       #2C2C31;
    --red-accent: #FF6E64;
    --card-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
  }
}

:root[data-theme="dark"] {
  --white:      #131316;
  --paper:      #1C1C20;
  --ink:        #F3F1EF;
  --muted:      #A8A3A2;
  --line:       #2C2C31;
  --red-accent: #FF6E64;
  --card-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1 {
  font-size: clamp(2.9rem, 8vw, 5.6rem);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.038em;
}

h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.028em;
}

h3 {
  font-size: 1.06rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.012em;
}

p { margin: 0; }

a { color: var(--red-accent); }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

/* A red focus ring is invisible on the red grounds — flip it to white there */
.contact :focus-visible,
.ticker :focus-visible,
.card-highlight :focus-visible {
  outline-color: var(--white-fixed);
}

/* Available to screen readers, out of the way visually */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Skip link: hidden until focused, so keyboard users can jump the nav */
.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  background: var(--ink-fixed);
  color: var(--white-fixed);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 20px;
  border-radius: var(--radius);
  transition: top 0.15s ease;
}

.skip-link:focus { top: 12px; color: var(--white-fixed); }

.container {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad);
}

section { padding: 104px 0; }

/* Section marker: mono label sitting on a short red rule */
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red-accent);
  padding-top: 12px;
  border-top: 2px solid var(--red);
  margin-bottom: 26px;
}

.section-subtitle {
  color: var(--muted);
  max-width: var(--measure);
  margin-top: 18px;
  font-size: 1.04rem;
}

/* ---------- Scroll progress ---------- */

.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--red);
  z-index: 60;
  transition: width 0.08s linear;
}

/* ---------- Scroll reveal ---------- */
/* Added by JS only, so content stays visible if scripting fails. */

.js-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.js-reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.logo {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.logo-mark { color: var(--red-accent); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.site-nav a:hover { color: var(--red-accent); }

.site-nav .nav-cta {
  background: var(--red);
  color: var(--white-fixed);
  padding: 10px 20px;
  border-radius: var(--radius);
}

.site-nav .nav-cta:hover { background: var(--red-dark); color: var(--white-fixed); }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.lang-switch a {
  color: var(--ink-soft, var(--ink));
  opacity: 0.55;
  text-decoration: none;
}

.lang-switch a:hover,
.lang-switch a[aria-current="true"] {
  opacity: 1;
  color: var(--red-accent);
}

.lang-switch a + a::before {
  content: "\00b7";
  margin-right: 6px;
  opacity: 0.5;
  color: var(--ink);
}

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

.hero { padding: 96px 0 76px; }

.hero-inner { max-width: 1000px; }

.hero h1 em {
  font-style: normal;
  color: var(--red-accent);
}

.hero .subtitle {
  color: var(--muted);
  font-size: 1.18rem;
  max-width: var(--measure);
  margin: 34px 0 22px;
}

.hero .subtitle strong { color: var(--ink); font-weight: 600; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Credential ticker ---------- */

.ticker {
  background: var(--red);
  color: var(--white-fixed);
  overflow: hidden;
  padding: 0;
  border: none;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 42s linear infinite;
}

.ticker-group {
  display: flex;
  align-items: center;
  flex: none;
  padding: 16px 0;
}

.ticker-group span {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 0 26px;
  position: relative;
}

.ticker-group span::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 50%;
  width: 6px;
  height: 6px;
  background: var(--white-fixed);
  transform: translateY(-50%) rotate(45deg);
  opacity: 0.55;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.97rem;
  font-weight: 600;
  padding: 15px 30px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--red);
  color: var(--white-fixed);
}

.btn-primary:hover { background: var(--red-dark); color: var(--white-fixed); }

.btn-outline {
  border: 1.5px solid var(--ink);
  color: var(--ink);
}

.btn-outline:hover { border-color: var(--red-accent); color: var(--red-accent); }

.btn-invert {
  background: var(--white-fixed);
  color: var(--red);
}

.btn-invert:hover { background: var(--ink-fixed); color: var(--white-fixed); }

/* Outline button for use on the red ground */
.btn-ghost {
  border: 1.5px solid var(--white-fixed);
  color: var(--white-fixed);
}

.btn-ghost:hover { border-color: var(--white-fixed); background: rgba(255, 255, 255, 0.12); }

/* A bigger variant for the two "Watch on YouTube" CTAs, with room for the
   play-button mark before the label */
.btn-youtube {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 32px;
  font-size: 1.04rem;
}

.btn-yt-icon { width: 26px; height: 19px; flex: none; }

/* ---------- YouTube banner (compact, sits right under the ticker) ---------- */

.yt-banner {
  padding: 0;
  border-bottom: 1px solid var(--line);
}

.yt-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px var(--pad);
}

.yt-banner-text {
  font-size: 1.02rem;
  font-weight: 500;
  max-width: 620px;
}

.yt-banner-text strong { color: var(--red-accent); }

.yt-banner .btn { flex: none; }

/* ---------- About ---------- */

.about { background: var(--paper); }

.about-body {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: var(--measure);
  margin-top: 30px;
  color: var(--muted);
}

.about-body strong { color: var(--ink); font-weight: 600; }

/* ---------- What you learn — bento grid ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 50px;
}

.bento-item {
  background: var(--white);
  padding: 32px 28px;
  grid-column: span 1;
  transition: background 0.2s ease;
}

.bento-item:hover { background: var(--paper); }

/* Two wide tiles break the rhythm and carry the strongest topics */
.bento-item.is-wide { grid-column: span 2; }

.bento-item.is-wide h3 { font-size: 1.34rem; }

.bento-item h3 {
  margin-bottom: 12px;
  padding-left: 16px;
  position: relative;
}

.bento-item h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 8px;
  height: 8px;
  background: var(--red);
}

.bento-item p {
  color: var(--muted);
  font-size: 0.94rem;
}

/* The capability promise — what you can DO after this topic */
.bento-outcome {
  display: block;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}

.bento-outcome::before {
  content: "→ ";
  color: var(--red-accent);
}

/* ---------- Film sound design (separate track, reuses .bento-item tiles) ---------- */

.film-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 50px;
}

/* ---------- Structured path ---------- */

.path { background: var(--paper); }

.path-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 50px;
  counter-reset: step;
}

.path-step {
  background: var(--white);
  padding: 30px 26px;
  position: relative;
}

.path-step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--red-accent);
  margin-bottom: 18px;
}

.path-step h3 { margin-bottom: 10px; }

.path-step .path-sessions {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.path-step p { color: var(--muted); font-size: 0.92rem; }

.path-note {
  margin-top: 32px;
  color: var(--muted);
  font-size: 0.94rem;
  max-width: var(--measure);
}

/* ---------- Pricing ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 50px;
  align-items: stretch;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--card-shadow);
}

.badge {
  position: absolute;
  top: 0;
  right: 0;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--ink-fixed);
  color: var(--white-fixed);
  padding: 6px 12px;
}

.price {
  font-family: var(--font-display);
  font-size: 2.9rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  margin: 18px 0 26px;
  line-height: 0.95;
}

.price-caption {
  display: block;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  flex-grow: 1;
  color: var(--muted);
  font-size: 0.93rem;
}

.card li {
  padding: 11px 0 11px 20px;
  position: relative;
  border-bottom: 1px solid var(--line);
}

.card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.28em;
  width: 8px;
  height: 2px;
  background: var(--red);
}

.card li:last-child { border-bottom: none; }

.card .btn { text-align: center; }

/* The featured tier inverts to solid red — the page's loudest moment.
   Declared after the base .card rules so these overrides actually win. */
.card-highlight {
  background: var(--red);
  border-color: var(--red);
  color: var(--white-fixed);
}

.card-highlight h3,
.card-highlight .price { color: var(--white-fixed); }

.card-highlight .price-caption { color: var(--white-fixed); }

.card-highlight ul { color: var(--white-fixed); }

.card-highlight li { border-bottom-color: rgba(255, 255, 255, 0.26); }

.card-highlight li::before { background: var(--white-fixed); }

.pricing-note {
  margin-top: 38px;
  color: var(--muted);
  font-size: 0.94rem;
}

/* ---------- Testimonials (ready for real quotes) ---------- */

.testimonials { background: var(--paper); }

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 50px;
}

.testimonial {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  padding: 30px 28px;
  margin: 0;
}

.testimonial p { color: var(--ink); font-size: 1rem; }

.testimonial cite {
  display: block;
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-style: normal;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.testimonial cite a {
  color: var(--muted);
  text-decoration: none;
}

.testimonial cite a:hover { color: var(--red-accent); }

/* Avatar: the student's real profile photo, cropped into a circle,
   linking out to their own page (SoundCloud, Instagram, etc). */
.testimonial-avatar {
  display: inline-block;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 18px;
  transition: transform 0.15s ease;
}

.testimonial-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-avatar:hover { transform: scale(1.06); }

/* ---------- YouTube ----------
   Deliberately a fixed dark "video wall" regardless of site theme — it's
   meant to evoke the channel itself, not the page. A grid of faint
   thumbnail-shaped tiles behind a dark scrim, built entirely from CSS
   gradients — no external images, no API call.

   TODO if you want the real channel banner here instead: the YouTube Data
   API (channels.list, part=brandingSettings) can return it, but only with
   an API key restricted to your domain — an unrestricted key embedded in
   this page's JS would be usable by anyone. Get a key restricted to your
   domain from Google Cloud Console, fetch it client-side, and fall back to
   this CSS pattern while the request is in flight or if it fails. */

.youtube {
  position: relative;
  background-color: var(--ink-fixed);
  background-image:
    linear-gradient(180deg, rgba(11, 10, 10, 0.94) 0%, rgba(11, 10, 10, 0.88) 60%, rgba(11, 10, 10, 0.97) 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 178px, transparent 178px 196px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0 96px, transparent 96px 114px);
  color: var(--white-fixed);
  overflow: hidden;
}

.youtube::before {
  /* Play-button glyph, repeated faintly across the tile grid — only in the
     CSS-pattern fallback; the real channel banner replaces it entirely. */
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image: radial-gradient(circle at 20px 20px, var(--red) 0 3px, transparent 3.5px);
  background-size: 197px 115px;
  background-position: 89px 48px;
  mix-blend-mode: screen;
}

/* Set by JS once the real YouTube channel banner has loaded successfully */
.youtube.has-real-banner::before { display: none; }

.youtube.has-real-banner {
  background-size: cover, cover;
  background-position: center, center 30%;
  background-repeat: no-repeat, no-repeat;
}

.youtube-inner { position: relative; }

.youtube .eyebrow { color: var(--red-on-dark); border-top-color: var(--red-on-dark); }

.youtube-inner p {
  max-width: var(--measure);
  color: rgba(255, 255, 255, 0.78);
  margin: 24px 0 36px;
}

/* Six-video proof grid — real thumbnails via i.ytimg.com/vi/<id>/hqdefault.jpg,
   which is public for any video ID and needs no API key. Full-bleed image,
   outline play mark and an overlaid caption, matching the film-card
   treatment on federicocasazza.com/filmmusic. */
.yt-video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
  max-width: 900px;
}

.yt-video {
  display: block;
  text-decoration: none;
  color: var(--white-fixed);
}

.yt-video-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background-color: rgba(255, 255, 255, 0.08);
  background-size: cover;
  background-position: center;
  border-radius: var(--radius);
  overflow: hidden;
}

/* Bottom scrim so the caption reads over any thumbnail, bright or busy */
.yt-video-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.82) 0%,
    rgba(0, 0, 0, 0.32) 48%,
    transparent 72%
  );
  transition: background 0.15s ease;
}

.yt-video:hover .yt-video-thumb::after { background-color: rgba(0, 0, 0, 0.15); }

.yt-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid var(--white-fixed);
  transition: transform 0.15s ease, background 0.15s ease;
}

.yt-video:hover .yt-video-play {
  transform: translate(-50%, -50%) scale(1.08);
  background: rgba(255, 255, 255, 0.12);
}

.yt-video-play::after {
  content: "";
  width: 0;
  height: 0;
  margin-left: 3px;
  border-style: solid;
  border-width: 8px 0 8px 13px;
  border-color: transparent transparent transparent var(--white-fixed);
}

.yt-video-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 14px 16px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.4;
  text-align: center;
  color: var(--white-fixed);
}

/* ---------- FAQ ---------- */

.faq-list {
  display: flex;
  flex-direction: column;
  margin-top: 46px;
  border-top: 2px solid var(--ink);
  max-width: 820px;
}

.faq-list details { border-bottom: 1px solid var(--line); }

.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 40px 22px 0;
  position: relative;
  font-weight: 600;
  font-size: 1.02rem;
  transition: color 0.15s ease;
}

.faq-list summary:hover { color: var(--red-accent); }

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after,
.faq-list summary::before {
  content: "";
  position: absolute;
  right: 6px;
  background: var(--red);
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.faq-list summary::after {
  top: calc(50% - 1px);
  width: 14px;
  height: 2px;
}

.faq-list summary::before {
  top: calc(50% - 7px);
  right: 12px;
  width: 2px;
  height: 14px;
}

.faq-list details[open] summary::before { opacity: 0; transform: rotate(90deg); }

.faq-list details p {
  color: var(--muted);
  padding-bottom: 26px;
  max-width: var(--measure);
  font-size: 0.96rem;
}

/* ---------- Contact (full-bleed red close) ---------- */

.contact {
  background: var(--red);
  color: var(--white-fixed);
}

.contact .eyebrow {
  color: var(--white-fixed);
  border-top-color: var(--white-fixed);
}

.contact h2 { color: var(--white-fixed); }

.contact-inner { max-width: 760px; }

.contact-inner p {
  color: var(--white-fixed);
  margin: 24px 0 38px;
  font-size: 1.08rem;
}

.contact-note {
  margin-top: 26px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white-fixed);
}

.contact-divider {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.contact-form {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 640px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.form-field input,
.form-field select,
.form-field textarea {
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: var(--white-fixed);
  font-family: var(--font-body);
  font-size: 0.96rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.form-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%23FFFFFF' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 11px 7px;
  padding-right: 36px;
}

.form-field select option {
  color: var(--ink-fixed);
  background: var(--white-fixed);
}

.form-field textarea { resize: vertical; }

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--white-fixed);
  background: rgba(255, 255, 255, 0.14);
}

.contact-form .btn { align-self: flex-start; }

.form-status {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  color: var(--white-fixed);
  min-height: 1.2em;
}

.form-status.is-error { color: #FFD9D7; }

@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
}

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

.site-footer {
  background: var(--ink-fixed);
  color: rgba(255, 255, 255, 0.66);
  padding: 38px 0 calc(38px + env(safe-area-inset-bottom));
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
}

.site-footer a { color: var(--white-fixed); text-decoration: none; }

.site-footer a:hover { color: var(--red-on-dark); }

/* ---------- Sticky mobile CTA ---------- */

.mobile-cta {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: var(--white);
  border-top: 1px solid var(--line);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  transform: translateY(110%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-cta.is-visible { transform: none; }

.mobile-cta-label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.4;
}

.mobile-cta-label strong {
  display: block;
  color: var(--ink);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.mobile-cta .btn {
  padding: 13px 22px;
  font-size: 0.9rem;
  white-space: nowrap;
}

/* ---------- Theme toggle ---------- */

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.theme-toggle:hover { border-color: var(--red-accent); color: var(--red-accent); }

.theme-toggle svg { width: 18px; height: 18px; }

.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}

:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-item.is-wide { grid-column: span 2; }
  .film-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  :root { --pad: 22px; }
  section { padding: 68px 0; }
  .hero { padding: 56px 0 52px; }
  .header-inner { gap: 10px; }
  .site-nav { gap: 10px; }
  .site-nav a:not(.nav-cta) { display: none; }
  .theme-toggle { width: 32px; height: 32px; }
  .theme-toggle svg { width: 16px; height: 16px; }
  .price { font-size: 2.5rem; }
  .yt-banner-inner { padding: 20px var(--pad); }
  .yt-video-grid { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: 1fr; }
  .bento-item.is-wide { grid-column: span 1; }
  .bento-item.is-wide h3 { font-size: 1.06rem; }
  .film-grid { grid-template-columns: 1fr; }
  .mobile-cta { display: flex; }
  body { padding-bottom: 74px; }
  .card:hover { transform: none; box-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  .js-reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}
