/*
Theme Name: Merym
Theme URI: https://withmerym.com
Description: Custom child theme for Merym Belkebir photography portfolio. Editorial, minimal, fixed-sidebar layout.
Author: Web Success
Version: 3.6.0
Template: hello-elementor
Text Domain: merym
*/

/* ============================================================
   1. RESET & BASE
============================================================ */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  text-align: left;
}

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

a,
a:link,
a:visited {
  color: inherit;
  text-decoration: none;
  transition: opacity .25s ease;
}
a:hover, a:focus { opacity: .55; text-decoration: none; }

button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }

ul, ol { list-style: none; padding: 0; margin: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 300;
  font-variation-settings: "SOFT" 0, "WONK" 0;
  line-height: 1.14;
  margin: 0;
  letter-spacing: -0.012em;
}

p { margin: 0 0 1em; }

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

/* ============================================================
   2. TOKENS
============================================================ */
:root {
  --bg: #f2f1ed;
  --panel: #f7f6f3;
  --ink: #1d1c1a;
  --muted: #7a776f;
  --line: #dedcd5;
  --paper: #e9e7e1;

  /* Canela is commercial — see assets/fonts/README.txt. Fraunces is the
     free fallback and loads until the licensed files are dropped in. */
  --font-serif: "Canela", "Fraunces", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;

  --sidebar-w: clamp(230px, 21vw, 300px);
  --gutter: clamp(22px, 4vw, 56px);

  --t-xs: .7rem;
  --t-sm: .8rem;
  --t-md: 1rem;
  --t-lg: 1.15rem;
  --t-xl: clamp(1.5rem, 2.6vw, 2.1rem);
  --t-2xl: clamp(2rem, 4vw, 3.1rem);
  --t-3xl: clamp(2.5rem, 5.5vw, 4.4rem);

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
  --space-6: 96px;
}

/* ============================================================
   3. LAYOUT — FIXED SIDEBAR + MAIN
============================================================ */
.layout { min-height: 100vh; }

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-w);
  padding: clamp(34px, 4.6vh, 54px) clamp(28px, 2.4vw, 42px) clamp(30px, 4vh, 46px);
  display: flex;
  flex-direction: column;
  background: var(--bg);
  z-index: 80;
}

.site-main {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section {
  padding-top: clamp(48px, 8vw, 96px);
  padding-bottom: clamp(48px, 8vw, 96px);
}

/* ============================================================
   4. SIDEBAR CONTENT
============================================================ */
.site-brand {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-weight: 400;
  letter-spacing: 0.005em;
  line-height: 1;
  text-decoration: none !important;
  white-space: nowrap;
}

.side-nav { margin-top: clamp(48px, 8.5vh, 92px); }

.side-nav__list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: flex-start;
}

.nav-item { position: relative; }

.side-nav a,
.side-nav a:link,
.side-nav a:visited {
  font-family: var(--font-serif);
  font-size: 1.06rem;
  letter-spacing: 0.005em;
  text-transform: none;
  font-weight: 400;
  color: var(--ink);
  text-decoration: none !important;
  display: inline-block;
  padding: 1px 0;
}

.side-nav a:hover { opacity: .5; }

/* Series fly-out */
.nav-sub {
  position: absolute;
  left: calc(100% + 28px);
  top: -16px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 20px 44px -24px rgba(29,28,26,.25);
  padding: 18px 26px 20px;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-6px);
  transition: opacity .28s ease, transform .28s ease, visibility 0s linear .28s;
  z-index: 90;
}

.nav-sub::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 0;
  bottom: 0;
  width: 28px;
}

.nav-item--has-sub:hover .nav-sub,
.nav-item--has-sub:focus-within .nav-sub {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  transition: opacity .28s ease, transform .28s ease, visibility 0s;
}

.nav-sub a,
.nav-sub a:link,
.nav-sub a:visited {
  font-family: var(--font-serif);
  font-style: normal;
  font-size: 1.02rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: none;
  white-space: nowrap;
  padding: 0;
  color: var(--muted);
}

.nav-sub a:hover { color: var(--ink); opacity: 1; }
.nav-sub .is-current a { color: var(--ink); }

/* Inside the Work section the list stays open, flat under "Work" */
.nav-item--has-sub.is-open .nav-sub {
  position: static;
  opacity: 1;
  visibility: visible;
  transform: none;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 13px 0 0 14px;
  min-width: 0;
  gap: 9px;
  transition: none;
}

.nav-item--has-sub.is-open .nav-sub::before { display: none; }

.nav-item--has-sub.is-open .nav-sub a { font-size: .97rem; }

/* Small dash marking the section you are in */
.side-nav__list > .nav-item.is-current > a::after {
  content: "—";
  margin-left: 10px;
  color: var(--muted);
  font-size: .85em;
}

/* Bottom block */
.sidebar__bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.sidebar__rule {
  display: block;
  width: 26px;
  height: 1px;
  background: var(--ink);
  opacity: .45;
  margin-bottom: 18px;
}

.sidebar__tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: .94rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 10px 0 0;
  max-width: 22ch;
}

.sidebar__social {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 22px;
  margin-left: -5px;
}

.sidebar__social a {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
}

.sidebar__social svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.25;
}

.sidebar__copy {
  font-family: var(--font-serif);
  font-size: .8rem;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin-top: 26px;
}

.nav-toggle { display: none; }

/* ============================================================
   5. HOMEPAGE — FULL-HEIGHT IMAGE
============================================================ */
.home-hero {
  height: 100vh;
  overflow: hidden;
  position: relative;
  background: var(--paper);
}

.home-hero a {
  display: block;
  height: 100%;
}

.home-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Slightly left-biased so the walking figure stays in frame while the
     cliff and town still read in full. */
  object-position: 42% 50%;
  display: block;
}

/* On narrow / tall viewports a cover crop would cut the cliff, so show the
   whole frame on the paper ground instead. */
@media (max-aspect-ratio: 5/4) {
  .home-hero img { object-fit: contain; object-position: center; }
}

.home-hero__placeholder { position: absolute; inset: 0; background: var(--paper); }

/* ============================================================
   6. SECTION TITLES
============================================================ */
.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--t-xs);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: 14px;
}

.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--ink); }

.section-title {
  font-size: var(--t-2xl);
  margin-bottom: var(--space-4);
  max-width: 18ch;
}

.section-lead {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.45;
  color: var(--ink);
  max-width: 34ch;
  margin-bottom: var(--space-4);
}

/* ============================================================
   7. WORK — VISUAL INDEX
============================================================ */
.work-index {
  padding: clamp(30px, 4.5vw, 62px) var(--gutter) clamp(60px, 8vw, 110px);
  display: flex;
  justify-content: center;
}

.work-index__inner {
  width: 100%;
  max-width: 1040px;
}

.work-index__label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-sans);
  font-size: .64rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: clamp(30px, 4vw, 54px);
}

.work-index__rule {
  display: block;
  width: 26px;
  height: 1px;
  background: var(--muted);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(34px, 4.5vw, 62px) clamp(20px, 3vw, 40px);
}

.work-card { display: block; }
.work-card:hover { opacity: 1; }

.work-card__cover {
  margin: 0;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--paper);
}

.work-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.4s ease;
}

.work-card:hover .work-card__cover img { transform: scale(1.03); }

.work-card__meta {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 14px;
}

.work-card__title {
  font-family: var(--font-sans);
  font-size: .64rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink);
}

.work-card__year {
  font-family: var(--font-sans);
  font-size: .58rem;
  letter-spacing: 0.2em;
  color: var(--muted);
}

@media (max-width: 700px) {
  .work-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   8. SINGLE SERIES — INFO COLUMN + STACKED PHOTOS
============================================================ */
.series-single { padding: clamp(24px, 3.5vw, 48px) var(--gutter) clamp(48px, 6vw, 80px); }

.series-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: clamp(28px, 4vw, 56px);
}

.series-crumb {
  font-family: var(--font-serif);
  font-size: .95rem;
  color: var(--muted);
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.series-crumb a { color: var(--ink); }
.series-crumb .sep { opacity: .5; }

.series-topbar__right {
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: var(--font-serif);
  font-size: .95rem;
  color: var(--ink);
}

.series-topbar__arrows { display: flex; gap: 14px; }

.series-topbar__arrows a {
  font-size: 1.15rem;
  line-height: 1;
  padding: 4px 2px;
}

.series-topbar__arrows .is-disabled { opacity: .25; pointer-events: none; }

.series-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
}

@media (min-width: 980px) {
  .series-layout { grid-template-columns: minmax(230px, 300px) 1fr; }
}

.series-info { position: sticky; top: clamp(24px, 3.5vw, 48px); }

.series-info__title {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 1.35vw, 1.3rem);
  font-weight: 400;
  letter-spacing: 0.005em;
  color: var(--ink);
  margin: 0 0 10px;
}

.series-info__year {
  font-family: var(--font-serif);
  font-size: .95rem;
  color: var(--muted);
  margin: 0;
}

.series-photos {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 3vw, 44px);
}

.gi {
  background: var(--paper);
  overflow: hidden;
  margin: 0;
}

.gi img { width: 100%; height: auto; display: block; }

.series-prints {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--muted);
  margin: var(--space-3) 0 0;
  display: flex;
  gap: 16px;
  align-items: baseline;
  flex-wrap: wrap;
}

.series-prints a {
  font-family: var(--font-sans);
  font-style: normal;
  font-size: var(--t-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}

/* ============================================================
   9. JOURNAL — free-form editorial feed
============================================================ */
.journal {
  padding: clamp(24px, 3.5vw, 48px) var(--gutter) clamp(56px, 7vw, 96px);
  max-width: 1180px;
}

.journal-head { margin-bottom: clamp(38px, 5vw, 64px); }

.journal-head__title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 400;
  color: var(--ink);
  margin: 0 0 14px;
}

.journal-head__rule {
  display: block;
  width: 26px;
  height: 1px;
  background: var(--ink);
  opacity: .35;
  margin-bottom: 14px;
}

.journal-head__intro {
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 34ch;
  margin: 0;
}

.journal-empty {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--muted);
}

/* Feed grid: entries claim a full row or half a row */
.journal-feed {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(38px, 5vw, 72px) clamp(28px, 3.5vw, 52px);
  align-items: start;
}

.j-entry { grid-column: span 2; }
.j-entry--half { grid-column: span 1; }

/* Media beside the text */
.j-entry--media-left,
.j-entry--media-right {
  display: grid;
  gap: clamp(20px, 2.6vw, 44px);
  align-items: start;
}

.j-entry--full.j-entry--media-left  { grid-template-columns: 1.25fr 1fr; }
.j-entry--full.j-entry--media-right { grid-template-columns: 1fr 1.25fr; }
.j-entry--half.j-entry--media-left  { grid-template-columns: 1.1fr 1fr; }
.j-entry--half.j-entry--media-right { grid-template-columns: 1fr 1.1fr; }

.j-entry--media-right .j-entry__media { order: 2; }
.j-entry--media-right .j-entry__text  { order: 1; }

.j-entry--media-top .j-entry__media { margin-bottom: var(--space-3); }

/* Text-only entries stay narrow so lines keep breathing */
.j-entry--media-none .j-entry__text { max-width: 46ch; }

/* Entry text */
.j-entry__date {
  display: block;
  font-family: var(--font-sans);
  font-size: .66rem;
  letter-spacing: 0.22em;
  color: var(--muted);
  margin-bottom: 12px;
}

.j-entry__rule {
  display: block;
  width: 20px;
  height: 1px;
  background: var(--ink);
  opacity: .3;
  margin-bottom: 12px;
}

.j-entry__title {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 1.5vw, 1.4rem);
  font-weight: 400;
  color: var(--ink);
  margin: 0 0 12px;
}

.j-entry__body {
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.62;
  color: var(--ink);
}

.j-entry__body p { margin: 0 0 .85em; }
.j-entry__body p:last-child { margin-bottom: 0; }
.j-entry__body em { font-style: italic; color: var(--muted); }

.j-entry__body a {
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
}

.j-entry__body img { margin: var(--space-2) 0; }

/* Entry media */
.j-photos { display: grid; gap: 10px; }
.j-photos--grid { grid-template-columns: repeat(2, 1fr); }

.j-photos .gi { margin: 0; background: var(--paper); overflow: hidden; }
.j-photos .gi img { width: 100%; height: auto; display: block; }

.j-video { background: var(--paper); }
.j-video video { width: 100%; height: auto; display: block; }

.j-video--embed { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; }
.j-video--embed iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%; border: 0;
}

/* Single entry */
.journal-single { padding-top: clamp(24px, 3.5vw, 48px); }
.j-single { max-width: 820px; }

.j-single__title {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  font-weight: 400;
  margin: 0 0 var(--space-3);
}

.j-single__media { margin-bottom: var(--space-4); }

@media (max-width: 860px) {
  .journal-feed { grid-template-columns: 1fr; gap: clamp(34px, 8vw, 56px); }
  .j-entry, .j-entry--half { grid-column: span 1; }

  .j-entry--media-left,
  .j-entry--media-right { grid-template-columns: 1fr !important; }

  .j-entry--media-left .j-entry__media,
  .j-entry--media-right .j-entry__media { order: 0; margin-bottom: var(--space-3); }

  .j-entry--media-left .j-entry__text,
  .j-entry--media-right .j-entry__text { order: 1; }
}

/* ============================================================
   10. ABOUT
============================================================ */
.about {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(48px, 7vw, 90px) var(--gutter);
}

.about__inner {
  width: 100%;
  max-width: 860px;
}

.about__label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-sans);
  font-size: .64rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: clamp(40px, 6vw, 84px);
}

.about__rule {
  display: block;
  width: 26px;
  height: 1px;
  background: var(--muted);
}

.about__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 60px);
  align-items: start;
}

@media (min-width: 860px) {
  .about__layout { grid-template-columns: minmax(200px, 268px) 1fr; }
}

.about__image {
  margin: 0;
  background: var(--paper);
  overflow: hidden;
}

.about__image img {
  width: 100%;
  height: auto;
  display: block;
}

.about__text {
  font-family: var(--font-serif);
  font-size: clamp(.95rem, 1.05vw, 1.05rem);
  line-height: 1.72;
  color: var(--ink);
  max-width: 52ch;
  padding-top: 4px;
}

.about__text p { margin: 0 0 1.7em; }
.about__text p:last-child { margin-bottom: 0; }

/* ============================================================
   11. CONTACT + FORM
============================================================ */
.contact {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(48px, 7vw, 90px) var(--gutter);
}

.contact__inner {
  width: 100%;
  max-width: 1000px;
}

.contact__label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-sans);
  font-size: .64rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: clamp(30px, 4vw, 52px);
}

.contact__rule {
  display: block;
  width: 26px;
  height: 1px;
  background: var(--muted);
}

.contact__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}

@media (min-width: 900px) {
  .contact__layout { grid-template-columns: 1fr 1fr; }
}

.contact__title {
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 2.2vw, 1.95rem);
  font-weight: 400;
  line-height: 1.28;
  color: var(--ink);
  margin: 0 0 clamp(28px, 3.5vw, 48px);
}

.contact__title p { margin: 0; font-family: inherit; font-size: inherit; line-height: inherit; }

.contact__email {
  font-family: var(--font-sans);
  font-size: .92rem;
  color: var(--ink);
  margin: 0;
}

.contact__email a { border-bottom: 1px solid transparent; transition: border-color .25s ease; }
.contact__email a:hover { border-bottom-color: var(--ink); opacity: 1; }

/* Form */
.book-form { display: flex; flex-direction: column; gap: clamp(24px, 3vw, 34px); }

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

.field label {
  font-family: var(--font-sans);
  font-size: .64rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field textarea {
  font-family: var(--font-sans);
  font-size: .95rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink);
  padding: 4px 0 9px;
  border-radius: 0;
  outline: none;
  width: 100%;
  transition: border-color .25s ease;
}

.field textarea { resize: vertical; min-height: 110px; line-height: 1.6; }

.field input:focus,
.field textarea:focus { border-bottom-color: var(--ink); }

.field input::placeholder,
.field textarea::placeholder { color: var(--muted); }

/* Send — a text link, not a filled button */
.send-btn {
  align-self: flex-start;
  font-family: var(--font-sans);
  font-size: .64rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink);
  background: none;
  border: 0;
  border-bottom: 1px solid var(--ink);
  padding: 0 0 8px;
  margin-top: clamp(6px, 1.5vw, 16px);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  transition: opacity .25s ease;
}

.send-btn:hover { opacity: .55; }

.form-notice {
  padding: 0 0 var(--space-3);
  font-size: .95rem;
  font-family: var(--font-serif);
}

.form-notice--ok  { color: var(--ink); }
.form-notice--err { color: #a33; }

/* ============================================================
   12. 404
============================================================ */
.error-404 {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: var(--space-3);
  padding: var(--space-6) var(--gutter);
}

.error-404 h1 { font-size: clamp(4rem, 12vw, 8rem); line-height: 1; }

/* ============================================================
   13. MOBILE — SIDEBAR BECOMES TOP BAR
============================================================ */
@media (max-width: 899px) {
  .sidebar {
    position: sticky;
    top: 0;
    bottom: auto;
    width: 100%;
    height: 64px;
    padding: 0 20px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
  }

  .site-main { margin-left: 0; }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    margin-right: -8px;
  }

  .nav-toggle span {
    width: 24px;
    height: 1px;
    background: var(--ink);
    transition: transform .3s ease, opacity .2s ease;
  }

  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .side-nav {
    position: fixed;
    inset: 64px 0 0 0;
    margin: 0;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateY(-110%);
    transition: transform .45s cubic-bezier(.22, 1, .36, 1);
    overflow-y: auto;
    padding: 40px 0;
    z-index: 70;
  }

  body.nav-open .side-nav { transform: translateY(0); }
  body.nav-open { overflow: hidden; }

  .side-nav__list { align-items: center; gap: 26px; }

  .side-nav a { font-size: .95rem; letter-spacing: 0.25em; }

  .nav-item--has-sub { text-align: center; }

  .nav-sub {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    border: 0;
    box-shadow: none;
    background: transparent;
    padding: 12px 0 0;
    gap: 10px;
    min-width: 0;
    align-items: center;
  }

  .nav-sub::before { display: none; }
  .nav-sub a { font-size: 1.1rem; letter-spacing: 0; }

  .sidebar__bottom { display: none; }

  .home-hero { height: calc(100vh - 64px); }
  .about { min-height: calc(100vh - 64px); }
  .contact { min-height: calc(100vh - 64px); }

  .series-info { position: static; }
}

/* ============================================================
   14. UTILITIES
============================================================ */
.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;
}

.js-fade { opacity: 0; transform: translateY(16px); transition: opacity 1s ease, transform 1s ease; }
.js-fade.in { opacity: 1; transform: none; }
