/* Wedding pages. One template; each wedding picks a theme and can override --accent. */

:root,
[data-theme='ivory'] {
  --bg: #f6f1e9;
  --surface: #ede5d9;
  --ink: #2b2622;
  --muted: #6f645a;
  --line: rgba(43, 38, 34, 0.14);
  --accent: #7a6241;
  --on-media: #fbf8f3;
  --display: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', system-ui, sans-serif;
  --display-weight: 300;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
[data-theme='noir'] {
  --bg: #111010;
  --surface: #1b1a18;
  --ink: #eee7dc;
  --muted: #9a9184;
  --line: rgba(238, 231, 220, 0.14);
  --accent: #c9a66b;
  --display: 'Bodoni Moda', Georgia, serif;
  --display-weight: 400;
}
[data-theme='sand'] {
  --bg: #efe5d8;
  --surface: #e5d7c5;
  --ink: #3a2c22;
  --muted: #6b5b4d;
  --line: rgba(58, 44, 34, 0.15);
  --accent: #855134;
  --display: 'Fraunces', Georgia, serif;
  --sans: 'Manrope', system-ui, sans-serif;
}
[data-theme='sage'] {
  --bg: #edefe8;
  --surface: #e1e5db;
  --ink: #25302a;
  --muted: #5c675d;
  --line: rgba(37, 48, 42, 0.14);
  --accent: #5b6850;
}

/* ---- base ---- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }
::selection { background: var(--accent); color: var(--bg); }

.kicker {
  margin: 0;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}
.title {
  margin: 0.4em 0 0;
  font-family: var(--display);
  font-weight: var(--display-weight);
  font-size: clamp(2.5rem, 6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.dot { margin: 0 0.8em; opacity: 0.6; }

/* ---- monogram ---- */

.mono {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--display);
  font-weight: var(--display-weight);
  line-height: 1;
  flex: none;
}
.mono::after {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.3;
}
.mono i { font-style: italic; font-size: 0.6em; margin: 0 0.1em; color: var(--accent); transform: translateY(0.08em); }
.mono-lg { width: 128px; font-size: 44px; }
.mono-md { width: 84px; font-size: 29px; }
.mono-sm { width: 38px; font-size: 14px; }
.mono-sm::after { inset: 3px; }
img.mono { border: 0; border-radius: 0; object-fit: contain; }

/* ---- password screen ---- */

.gate {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 56px 24px 96px;
  text-align: center;
  background: radial-gradient(120% 70% at 50% 0%, var(--surface), var(--bg) 72%);
}
.gate-card { width: 100%; max-width: 420px; display: flex; flex-direction: column; align-items: center; }
.gate .mono { margin-bottom: 40px; }
.gate .kicker + .gate-names { margin-top: 18px; }
.gate-names {
  margin: 0;
  font-family: var(--display);
  font-weight: var(--display-weight);
  font-size: clamp(2.6rem, 10vw, 3.8rem);
  line-height: 1.05;
  text-wrap: balance;
}
.gate-names em, .cover-names em, .foot-names em, .letter-sign em { font-style: italic; }
.gate-names em, .foot-names em { color: var(--accent); }
.gate-meta { margin: 16px 0 0; color: var(--muted); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; }
.gate-form { width: 100%; margin-top: 56px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.gate-field {
  width: 100%;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--ink);
  transition: border-color 0.3s;
}
.gate-field:focus-within { border-color: var(--accent); }
.gate-field.is-error { border-color: #b4533c; }
.gate-field input {
  flex: 1;
  min-width: 0;
  padding: 12px 2px;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--ink);
  font: inherit;
  font-size: 20px;
  letter-spacing: 0.08em;
}
.gate-field button {
  padding: 12px 2px 12px 16px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}
.gate-field button span::after { content: '→'; margin-left: 10px; letter-spacing: 0; transition: margin 0.3s var(--ease); }
.gate-field button:hover span::after { margin-left: 16px; }
.gate-error { margin: 0; color: #b4533c; font-size: 14px; }
[data-theme='noir'] .gate-error { color: #e08a72; }
.gate-hint { margin: 0; color: var(--muted); font-size: 14px; }
.gate-studio {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(28px + env(safe-area-inset-bottom));
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-decoration: none;
}

/* ---- top bar ---- */

.bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 max(20px, env(safe-area-inset-left));
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  backdrop-filter: saturate(1.2) blur(14px);
  border-bottom: 1px solid var(--line);
  transform: translateY(-101%);
  transition: transform 0.6s var(--ease);
}
.bar.is-on { transform: none; }
.no-js .bar { display: none; }
.bar-mono { display: flex; text-decoration: none; }
.bar-nav {
  flex: 1;
  min-width: 0;
  display: flex;
  justify-content: center;
  gap: 32px;
  overflow-x: auto;
  scrollbar-width: none;
}
.bar-nav::-webkit-scrollbar { display: none; }
.bar-nav a, .bar-exit {
  padding: 6px 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 1px solid transparent;
  transition: color 0.3s, border-color 0.3s;
}
.bar-nav a:hover, .bar-exit:hover { color: var(--ink); }
.bar-nav a.is-active { color: var(--ink); border-color: var(--accent); }
.bar-num { margin-right: 8px; color: var(--accent); font-family: var(--display); font-size: 15px; font-style: italic; letter-spacing: 0; text-transform: none; }
.bar-exit { margin-left: auto; }

/* ---- cover ---- */

.cover {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  background: #1a1714;
  color: var(--on-media);
}
.cover-media { position: absolute; inset: 0; z-index: -2; }
.cover-img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: settle 2.8s var(--ease) forwards; }
.cover::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(14, 11, 9, 0.28), rgba(14, 11, 9, 0) 28%, rgba(14, 11, 9, 0.12) 52%, rgba(14, 11, 9, 0.74));
}
.cover-inner { max-width: 820px; padding: 0 24px 128px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.cover .mono { margin-bottom: 30px; }
.cover .mono i { color: inherit; }
.cover-names {
  margin: 0;
  font-family: var(--display);
  font-weight: var(--display-weight);
  font-size: clamp(3.4rem, 12vw, 7.8rem);
  line-height: 0.95;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.cover-names em { opacity: 0.8; }
.cover-meta { margin: 24px 0 0; font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; opacity: 0.92; text-wrap: balance; }
.cover-intro {
  margin: 26px 0 0;
  max-width: 34ch;
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.25rem, 2.6vw, 1.65rem);
  line-height: 1.4;
  text-wrap: balance;
}
.cover-cue {
  position: absolute;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  text-decoration: none;
}
.cover-cue::after { content: ''; width: 1px; height: 38px; background: currentColor; opacity: 0.75; animation: cue 2.4s ease-in-out infinite; }
.js .cover-inner > * { opacity: 0; transform: translateY(16px); animation: rise 1.4s var(--ease) forwards; }
.js .cover-inner > :nth-child(2) { animation-delay: 0.15s; }
.js .cover-inner > :nth-child(3) { animation-delay: 0.3s; }
.js .cover-inner > :nth-child(4) { animation-delay: 0.45s; }

@keyframes settle { to { transform: scale(1); } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes cue {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---- notice, letter ---- */

.notice {
  max-width: 720px;
  margin: clamp(56px, 8vw, 96px) auto 0;
  padding: 24px;
  border-block: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
  text-align: center;
}
.notice .kicker { display: block; margin-bottom: 8px; }
.letter { max-width: 760px; margin: clamp(96px, 12vw, 160px) auto 0; padding: 0 24px; text-align: center; }
.letter p {
  margin: 0;
  font-family: var(--display);
  font-weight: var(--display-weight);
  font-size: clamp(1.55rem, 3.4vw, 2.25rem);
  line-height: 1.45;
  text-wrap: pretty;
}
.letter p::before { content: '“'; display: block; height: 0.55em; color: var(--accent); font-size: 2.6em; line-height: 1; }
.letter-sign { display: block; margin-top: 30px; color: var(--muted); font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; }

/* ---- sections ---- */

.film, .chapter { padding-top: clamp(96px, 14vw, 184px); }
.film-head, .chapter-head { max-width: 780px; margin: 0 auto; padding: 0 24px; text-align: center; }
.chapter-num {
  display: block;
  margin-bottom: 20px;
  color: var(--accent);
  font-family: var(--display);
  font-style: italic;
  font-weight: var(--display-weight);
  font-size: clamp(4rem, 10vw, 7rem);
  line-height: 1;
}
.chapter-intro { max-width: 46ch; margin: 24px auto 0; color: var(--muted); font-size: 17px; text-wrap: pretty; }
.badge {
  display: inline-block;
  margin: 24px 0 0;
  padding: 7px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.chapter-cover { max-width: 1320px; margin: clamp(48px, 7vw, 88px) auto 0; padding: 0 24px; }
.chapter-cover img { width: 100%; aspect-ratio: 21 / 10; object-fit: cover; background: var(--surface); }

/* ---- films ---- */

.player {
  position: relative;
  width: calc(100% - 48px);
  max-width: 1320px;
  aspect-ratio: 16 / 9;
  margin: clamp(40px, 6vw, 72px) auto 0;
  overflow: hidden;
  background: var(--surface);
}
.player-hero { max-width: 1440px; }
.player-poster { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.player:hover .player-poster { transform: scale(1.02); }
.player::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.35), transparent 40%); pointer-events: none; }
.player.is-playing::after { display: none; }
.player-play { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; color: #fff; }
.player-play span {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: transform 0.6s var(--ease), background 0.6s;
}
.player-play span::before { content: ''; margin-left: 5px; border-left: 16px solid #fff; border-block: 10px solid transparent; }
.player-play:hover span { transform: scale(1.07); background: rgba(255, 255, 255, 0.18); }
.player-meta { position: absolute; left: 22px; bottom: 18px; z-index: 1; color: #fff; font-size: 11px; letter-spacing: 0.24em; }
.player-soon {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  background: rgba(14, 11, 9, 0.28);
  color: #fff;
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
}
.player iframe, .player video { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; border: 0; background: #000; }

/* ---- clips and photos ---- */

.clips-block, .photos-block { max-width: 1320px; margin: clamp(56px, 8vw, 104px) auto 0; padding: 0 24px; }
.block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.block-note { margin: 0; color: var(--muted); font-size: 12px; letter-spacing: 0.06em; }

.clips {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(170px, 21vw, 240px);
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.clip { position: relative; aspect-ratio: 9 / 16; overflow: hidden; background: var(--surface); scroll-snap-align: start; text-align: left; }
.clip img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.clip:not(.is-soon):hover img { transform: scale(1.05); }
.clip.is-soon { cursor: default; }
.clip::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent 45%); }
.clip-play { position: absolute; top: 14px; right: 14px; z-index: 1; width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, 0.85); border-radius: 50%; }
.clip-play::before { content: ''; margin-left: 3px; border-left: 8px solid #fff; border-block: 5px solid transparent; }
.clip-soon { position: absolute; top: 14px; right: 14px; z-index: 1; padding: 4px 10px; border: 1px solid rgba(255, 255, 255, 0.7); border-radius: 999px; color: #fff; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; }
.clip-title { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 1; color: #fff; font-family: var(--display); font-style: italic; font-size: 20px; line-height: 1.2; }

/* Justified rows: each photo grows in proportion to its shape, so every row has an even height. */
.grid { --row: 240px; --gap: 10px; display: flex; flex-wrap: wrap; gap: var(--gap); }
.grid::after { content: ''; flex-grow: 1000000; }
.grid[hidden] { display: none; }
.ph {
  position: relative;
  display: block;
  min-width: 0;
  flex-grow: calc(var(--r) * 100);
  flex-basis: calc(var(--r) * var(--row));
  aspect-ratio: var(--r);
  overflow: hidden;
  background: var(--surface);
}
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity 0.8s ease; }
.js .ph img { opacity: 0; }
.js .ph img.is-loaded { opacity: 1; }
.ph:hover img { transform: scale(1.03); }
.more { display: flex; justify-content: center; margin-top: 44px; }
.more-btn, .foot-cta {
  padding: 16px 30px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}
.more-btn:hover, .foot-cta:hover { background: var(--ink); color: var(--bg); }
.photos-block > .grid + .grid { margin-top: 44px; }

/* ---- footer ---- */

.foot {
  margin-top: clamp(128px, 16vw, 208px);
  padding: clamp(80px, 10vw, 128px) 24px calc(48px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--surface);
  text-align: center;
}
.foot-names { margin: 28px 0 0; font-family: var(--display); font-weight: var(--display-weight); font-size: clamp(2.1rem, 5vw, 3.1rem); line-height: 1.1; }
.foot-meta { margin: 12px 0 0; color: var(--muted); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; }
.foot-studio { width: min(420px, 100%); margin-top: 72px; padding-top: 44px; border-top: 1px solid var(--line); }
.foot-brand { display: block; margin-top: 12px; font-family: var(--display); font-size: 30px; text-decoration: none; }
.foot-tag { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.foot-phone { display: inline-block; margin-top: 14px; font-size: 13px; letter-spacing: 0.12em; text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.foot-phone:hover { border-color: var(--accent); }
.foot-cta { margin-top: 30px; }
.foot-role { max-width: 46ch; margin: 64px 0 0; color: var(--muted); font-size: 13px; }
.foot-role a { margin-left: 6px; }

/* ---- photo viewer and clip player ---- */

.lb, .vm { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(12, 10, 9, 0.97); color: #fff; }
.lb[hidden], .vm[hidden] { display: none; }
.lb { touch-action: pinch-zoom; }
.lb-img { max-width: calc(100vw - 176px); max-height: calc(100svh - 128px); object-fit: contain; user-select: none; -webkit-user-drag: none; }
.lb-close, .vm-close { position: absolute; top: calc(14px + env(safe-area-inset-top)); right: 16px; z-index: 2; padding: 12px; font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; }
.lb-prev, .lb-next { position: absolute; top: 64px; bottom: 64px; width: 88px; }
.lb-prev { left: 0; }
.lb-next { right: 0; }
.lb-prev::before, .lb-next::before { content: ''; position: absolute; top: 50%; width: 14px; height: 14px; border: solid currentColor; opacity: 0.8; }
.lb-prev::before { left: 36px; border-width: 0 0 1px 1px; transform: translateY(-50%) rotate(45deg); }
.lb-next::before { right: 36px; border-width: 1px 1px 0 0; transform: translateY(-50%) rotate(45deg); }
.lb-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  padding: 18px 24px calc(18px + env(safe-area-inset-bottom));
  color: rgba(255, 255, 255, 0.75);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.lb-dl { color: #fff; text-decoration: none; }
.vm-frame { position: relative; height: min(86svh, 160vw); aspect-ratio: 9 / 16; background: #000; }
.vm-frame iframe, .vm-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---- scroll reveal ---- */

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---- phones ---- */

@media (max-width: 720px) {
  .bar { gap: 16px; }
  .bar-nav {
    justify-content: flex-start;
    gap: 22px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent);
    padding: 0 14px;
  }
  .cover-inner { padding-bottom: 116px; }
  .mono-lg { width: 108px; font-size: 37px; }
  .chapter-cover { padding: 0; }
  .chapter-cover img { aspect-ratio: 4 / 5; }
  .player { width: 100%; }
  .clips-block, .photos-block { padding: 0 16px; }
  .clips { margin: 0 -16px; padding: 0 16px 10px; scroll-padding: 0 16px; grid-auto-columns: min(58vw, 250px); gap: 10px; }
  .grid { --row: 150px; --gap: 6px; }
  .lb-img { max-width: 100vw; }
  .lb-prev, .lb-next { width: 25vw; }
  .lb-prev::before { left: 18px; }
  .lb-next::before { right: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cover-img { animation: none; transform: none; }
  .js .cover-inner > * { animation: none; opacity: 1; transform: none; }
  .cover-cue::after { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---- shared extras ---- */

.bismillah { margin: 0 0 22px; color: var(--accent); font-family: 'Scheherazade New', serif; font-size: 40px; line-height: 1.3; }
.cover .bismillah { color: var(--on-media); }
.js .cover-inner > :nth-child(5) { animation-delay: 0.6s; }
.chapter-soon {
  max-width: 30ch;
  margin: 48px auto 0;
  padding: 24px;
  border-block: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--display);
  font-style: italic;
  font-size: 1.4rem;
  text-align: center;
}

/* ---- midnight: navy and gold, script names, an arched doorway ---- */

:root {
  --stars: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cg fill='%23f6e7c1'%3E%3Ccircle cx='23' cy='41' r='.9' opacity='.8'/%3E%3Ccircle cx='87' cy='12' r='.6' opacity='.5'/%3E%3Ccircle cx='141' cy='77' r='1.1' opacity='.9'/%3E%3Ccircle cx='212' cy='35' r='.7' opacity='.6'/%3E%3Ccircle cx='268' cy='98' r='.9' opacity='.7'/%3E%3Ccircle cx='46' cy='156' r='.6' opacity='.5'/%3E%3Ccircle cx='118' cy='201' r='.8' opacity='.7'/%3E%3Ccircle cx='179' cy='143' r='.5' opacity='.4'/%3E%3Ccircle cx='240' cy='187' r='1' opacity='.8'/%3E%3Ccircle cx='291' cy='251' r='.6' opacity='.5'/%3E%3Ccircle cx='64' cy='262' r='.9' opacity='.6'/%3E%3Ccircle cx='152' cy='281' r='.6' opacity='.5'/%3E%3Ccircle cx='205' cy='239' r='.7' opacity='.4'/%3E%3Ccircle cx='12' cy='219' r='.5' opacity='.5'/%3E%3C/g%3E%3C/svg%3E");
  --arch: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 680'%3E%3Cg fill='none' stroke='%23d4af6a'%3E%3Cpath d='M14 680V262C14 132 108 52 200 6c92 46 186 126 186 256v418' stroke-opacity='.55'/%3E%3Cpath d='M32 680V268C32 146 118 72 200 28c82 44 168 118 168 240v412' stroke-opacity='.25'/%3E%3C/g%3E%3C/svg%3E");
}

[data-theme='midnight'] {
  --bg: #0a1430;
  --surface: #101c3d;
  --ink: #f1e7d0;
  --muted: #b5ae9a;
  --line: rgba(212, 175, 106, 0.22);
  --accent: #d4af6a;
  --on-media: #f6ecd6;
  --display: 'Cormorant Garamond', Georgia, serif;
  --sans: 'EB Garamond', Georgia, serif;
  --script: 'Pinyon Script', 'Cormorant Garamond', cursive;
  --display-weight: 400;
  --gold: linear-gradient(180deg, #f6e2a6 0%, #d9b56c 50%, #a88440 100%);
}
[data-theme='midnight'] body { font-size: 17px; font-weight: 400; }
[data-theme='midnight'] .kicker { font-family: var(--display); font-weight: 500; font-size: 12px; letter-spacing: 0.32em; }
[data-theme='midnight'] :is(.gate-names, .cover-names, .foot-names) {
  padding: 0.06em 0.12em;
  background: var(--gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: var(--script);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.2;
}
[data-theme='midnight'] :is(.gate-names, .cover-names, .foot-names) em { color: inherit; font-style: normal; opacity: 1; }
[data-theme='midnight'] .gate-names { font-size: clamp(3.1rem, 12vw, 4.8rem); }
[data-theme='midnight'] .cover-names { font-size: clamp(3.8rem, 13vw, 8.4rem); filter: drop-shadow(0 2px 16px rgba(0, 0, 0, 0.55)); }
[data-theme='midnight'] .foot-names { font-size: clamp(2.6rem, 7vw, 3.8rem); }
[data-theme='midnight'] .cover-intro { font-family: var(--display); }
[data-theme='midnight'] .mono {
  color: var(--accent);
  border-color: rgba(212, 175, 106, 0.75);
  background: radial-gradient(circle at 50% 30%, rgba(212, 175, 106, 0.16), transparent 70%);
  font-family: var(--script);
}
[data-theme='midnight'] .mono i { color: inherit; font-family: var(--display); font-size: 0.45em; }
[data-theme='midnight'] .cover .mono { color: var(--accent); background-color: rgba(10, 20, 48, 0.5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }

[data-theme='midnight'] .gate {
  overflow: hidden;
  padding-top: 112px;
  background: var(--stars), radial-gradient(90% 60% at 50% 0%, #1b2b5c, transparent 70%), var(--bg);
}
[data-theme='midnight'] .gate-card { position: relative; z-index: 1; max-width: min(330px, 76vw); }
@media (max-width: 600px) {
  /* On phones the arch stretches to the screen's height so its point clears the seal. */
  .gate .arch { width: 92vw; height: calc(100svh - 24px); aspect-ratio: auto; }
  [data-theme='midnight'] .gate { padding-top: 136px; }
  [data-theme='midnight'] .gate-meta { font-size: 11px; letter-spacing: 0.14em; }
}
[data-theme='midnight'] .gate-field { border-color: rgba(212, 175, 106, 0.55); }
[data-theme='midnight'] .gate-field button { color: var(--accent); }
.arch {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: auto;
  height: min(94svh, 880px);
  max-width: 94vw;
  aspect-ratio: 400 / 680;
  transform: translateX(-50%);
  fill: none;
  stroke: var(--accent);
  pointer-events: none;
}
.arch path { vector-effect: non-scaling-stroke; }

[data-theme='midnight'] .cover { background: var(--bg); }
[data-theme='midnight'] .cover::after {
  background:
    radial-gradient(75% 70% at 50% 55%, rgba(8, 15, 38, 0.6), rgba(8, 15, 38, 0) 72%),
    linear-gradient(to bottom, rgba(10, 20, 48, 0.55), rgba(10, 20, 48, 0.15) 30%, rgba(10, 20, 48, 0.35) 55%, rgba(10, 20, 48, 0.92));
}
[data-theme='midnight'] :is(.more-btn, .foot-cta) { border-color: var(--accent); color: var(--accent); }
[data-theme='midnight'] :is(.more-btn, .foot-cta):hover { background: var(--accent); color: var(--bg); }
[data-theme='midnight'] .foot { background: var(--stars), radial-gradient(80% 60% at 50% 100%, #1b2b5c, transparent 70%), var(--surface); }

/* The doors: two panels with half an arch each, parting to reveal the cover. */
.doors { position: fixed; inset: 0; z-index: 70; display: flex; pointer-events: none; }
.no-js .doors { display: none; }
.door {
  flex: 1;
  background: var(--arch) no-repeat, var(--stars), linear-gradient(180deg, #0f1c40, #0a1430);
  background-size: auto 86svh, auto, auto;
  transition: transform 1.9s cubic-bezier(0.7, 0, 0.2, 1);
}
.door-l { background-position: right -25.3svh bottom, 0 0, 0 0; box-shadow: inset -1px 0 0 rgba(212, 175, 106, 0.7); }
.door-r { background-position: left -25.3svh bottom, 0 0, 0 0; box-shadow: inset 1px 0 0 rgba(212, 175, 106, 0.7); }
.doors .mono { position: absolute; left: 50%; top: 50%; background-color: #0c1736; transform: translate(-50%, -50%); transition: opacity 0.6s ease, transform 0.6s ease; }
.doors.is-open .door-l { transform: translateX(-101%); }
.doors.is-open .door-r { transform: translateX(101%); }
.doors.is-open .mono { opacity: 0; transform: translate(-50%, -50%) scale(0.92); }
.js .has-doors .cover-inner > * { animation-delay: 1.5s; }
.js .has-doors .cover-inner > :nth-child(2) { animation-delay: 1.65s; }
.js .has-doors .cover-inner > :nth-child(3) { animation-delay: 1.8s; }
.js .has-doors .cover-inner > :nth-child(4) { animation-delay: 1.95s; }
.js .has-doors .cover-inner > :nth-child(5) { animation-delay: 2.1s; }

@media (prefers-reduced-motion: reduce) {
  .doors { display: none; }
}

/* ---- home page: Adnan's portfolio. Dark and cinematic, like the work: smoke, resin, low light. ---- */

.is-home {
  --bg: #0b0a09;
  --surface: #141210;
  --ink: #ede6da;
  --muted: #9c9285;
  --line: rgba(237, 230, 218, 0.12);
  --accent: #c99b5d;
  --display: 'Instrument Serif', 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --display-weight: 400;
  --pad: clamp(20px, 4vw, 56px);
}
.mono-label, .idx, .block-aside, .reel-num, .reel-meta, .credits dt, .shot figcaption span, .site-nav a, .hero-index a, .weddings-points span {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.mono-label { margin: 0; color: var(--muted); }
.mono-label .sep { margin: 0 0.6em; color: var(--accent); }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}
.pill:hover { border-color: var(--ink); }
.pill-solid { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.pill-solid:hover { background: var(--accent); border-color: var(--accent); }

/* header */
.site-head {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 var(--pad);
  border-bottom: 1px solid transparent;
  color: var(--ink);
  transition: background 0.4s, border-color 0.4s;
}
.site-head.is-solid {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-color: var(--line);
}
.no-js .site-head { position: absolute; }
.wordmark { font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: 0.32em; text-transform: uppercase; text-decoration: none; }
.site-nav { display: flex; gap: 22px; }
.site-nav a { color: var(--muted); text-decoration: none; transition: color 0.3s; }
.site-nav a::before { content: '['; margin-right: 0.35em; color: var(--accent); opacity: 0; transition: opacity 0.3s; }
.site-nav a::after { content: ']'; margin-left: 0.35em; color: var(--accent); opacity: 0; transition: opacity 0.3s; }
.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::before, .site-nav a:hover::after { opacity: 1; }

/* opening: his name large, the loop in a tall frame beside it (full screen on phones) */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: var(--pad);
  padding: 100px var(--pad) var(--pad);
  overflow: hidden;
}
.hero-media { position: relative; height: min(78svh, 820px); aspect-ratio: 9 / 16; align-self: center; overflow: hidden; border-radius: 6px; background: var(--surface); }
.hero-media::after { content: ''; position: absolute; inset: 0; border: 1px solid var(--line); border-radius: inherit; pointer-events: none; }
.hero-video { width: 100%; height: 100%; object-fit: cover; }
.hero-copy { order: -1; display: flex; flex-direction: column; align-items: flex-start; }
.hero-name {
  margin: 22px 0 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(4.4rem, 13vw, 12.5rem);
  line-height: 0.86;
  letter-spacing: -0.02em;
}
.hero-line { max-width: 34ch; margin: 28px 0 0; color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.hero-index { display: flex; gap: 28px; margin: clamp(40px, 8svh, 88px) 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); list-style: none; width: 100%; max-width: 560px; }
.hero-index a { color: var(--muted); text-decoration: none; transition: color 0.3s; }
.hero-index a:hover { color: var(--ink); }
.hero-index span { margin-right: 10px; color: var(--accent); }
.js .hero-copy > * { opacity: 0; transform: translateY(18px); animation: rise 1.3s var(--ease) forwards; }
.js .hero-copy > :nth-child(2) { animation-delay: 0.12s; }
.js .hero-copy > :nth-child(3) { animation-delay: 0.24s; }
.js .hero-copy > :nth-child(4) { animation-delay: 0.36s; }
.js .hero-copy > :nth-child(5) { animation-delay: 0.48s; }
.js .hero-media { opacity: 0; animation: fade 1.6s var(--ease) 0.2s forwards; }
@keyframes fade { to { opacity: 1; } }

/* sections */
.home-block { padding: clamp(96px, 12vw, 168px) var(--pad) 0; }
.block-top {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: baseline;
  gap: 16px;
  margin-bottom: clamp(36px, 5vw, 64px);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.idx { color: var(--accent); }
.block-title { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1; letter-spacing: -0.01em; }
.block-aside { color: var(--muted); text-align: right; }

/* films: one featured like a poster with credits, the rest as a row of reels */
.feature { display: grid; grid-template-columns: minmax(240px, 380px) 1fr; gap: clamp(28px, 5vw, 80px); align-items: end; }
.feature-frame, .reel-frame { position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 6px; background: var(--surface); }
.feature-frame img, .reel-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter 0.6s; filter: saturate(0.92); }
.feature-frame:hover img, .reel:hover .reel-frame img { transform: scale(1.04); filter: saturate(1); }
.reel-play { position: absolute; left: 14px; bottom: 14px; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, 0.8); border-radius: 50%; background: rgba(0, 0, 0, 0.18); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.reel-play::before { content: ''; margin-left: 3px; border-left: 9px solid #fff; border-block: 6px solid transparent; }
.reel-play-lg { left: 20px; bottom: 20px; width: 64px; height: 64px; }
.reel-play-lg::before { margin-left: 4px; border-left-width: 13px; border-block-width: 8px; }
.feature-title { margin: 14px 0 0; font-family: var(--display); font-style: italic; font-weight: 400; font-size: clamp(3rem, 7vw, 6.5rem); line-height: 0.95; }
.credits { display: grid; grid-template-columns: repeat(4, minmax(0, max-content)); gap: 12px 40px; margin: 32px 0 32px; }
.credits div { display: flex; flex-direction: column; gap: 6px; }
.credits dt { color: var(--muted); }
.credits dd { margin: 0; font-size: 15px; }
.reels { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: clamp(16px, 2vw, 28px); margin-top: clamp(56px, 8vw, 104px); }
.reel { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 4px 12px; text-align: left; }
.reel-frame { grid-column: 1 / -1; margin-bottom: 12px; }
.reel-num { color: var(--accent); }
.reel-title { font-family: var(--display); font-size: 1.6rem; line-height: 1.1; }
.reel-meta { grid-column: 1 / -1; color: var(--muted); }

/* photographs: an editorial grid with figure captions */
.shots { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px) clamp(16px, 2vw, 28px); align-items: start; }
.shot { margin: 0; }
.shot .ph { display: block; flex: none; aspect-ratio: var(--r); background: var(--surface); }
.shot figcaption { display: flex; gap: 14px; margin-top: 12px; color: var(--muted); font-size: 14px; line-height: 1.4; }
.shot figcaption span { flex: none; color: var(--accent); line-height: 1.6; }
.shot:nth-child(5n + 1) { grid-column: 1 / span 8; }
.shot:nth-child(5n + 2) { grid-column: 9 / span 4; margin-top: clamp(40px, 10vw, 160px); }
.shot:nth-child(5n + 3) { grid-column: 3 / span 8; }
.shot:nth-child(5n + 4) { grid-column: 1 / span 4; }
.shot:nth-child(5n + 5) { grid-column: 5 / span 8; margin-top: clamp(40px, 8vw, 120px); }

/* weddings */
.weddings { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.weddings-lead { max-width: 22ch; margin: 0; font-family: var(--display); font-size: clamp(1.9rem, 3.4vw, 3rem); line-height: 1.12; }
.weddings-points { margin: 36px 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.weddings-points li { display: flex; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.weddings-points span { flex: none; color: var(--accent); line-height: 1.9; }
/* A small gallery cover drawn in the midnight style, to show couples what they get. */
.galleries-card {
  position: relative;
  aspect-ratio: 4 / 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--stars), radial-gradient(90% 60% at 50% 0%, #1b2b5c, transparent 70%), #0a1430;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8);
  color: #d4af6a;
  text-align: center;
}
.galleries-card .arch { width: 82%; height: 92%; aspect-ratio: auto; max-width: none; stroke: #d4af6a; stroke-opacity: 0.7; }
.galleries-card .mono { position: relative; color: #d4af6a; border-color: rgba(212, 175, 106, 0.75); font-family: 'Pinyon Script', cursive; }
.galleries-card .mono i { color: inherit; font-size: 1em; }
.card-names {
  position: relative;
  background: linear-gradient(180deg, #f6e2a6, #d9b56c 50%, #a88440);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: 'Pinyon Script', cursive;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1.2;
}
.card-meta { position: relative; color: #b5ae9a; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }

/* contact */
.home-contact { margin-top: clamp(120px, 14vw, 200px); padding: clamp(80px, 10vw, 140px) var(--pad); border-top: 1px solid var(--line); }
.contact-title { margin: 22px 0 0; font-family: var(--display); font-weight: 400; font-size: clamp(3.2rem, 9vw, 8.5rem); line-height: 0.92; letter-spacing: -0.02em; }
.contact-title em { color: var(--accent); }
.contact-sub { max-width: 44ch; margin: 28px 0 0; color: var(--muted); font-size: 17px; }
.contact-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.site-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 28px var(--pad) calc(28px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* the clip viewer is reused for the films */
.is-home .vm-frame { border-radius: 6px; overflow: hidden; }

@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; }
  .feature-frame { max-width: 420px; }
  .weddings { grid-template-columns: 1fr; }
  .galleries-card { max-width: 420px; width: 100%; }
  .shots { grid-template-columns: 1fr 1fr; }
  .shot:nth-child(n) { grid-column: auto; margin-top: 0; }
  .shot:nth-child(3n + 1) { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .site-nav a:not([href='#contact']) { display: none; }
  .site-nav a::before, .site-nav a::after { opacity: 1; }
  /* on phones the loop fills the opening, with the name over it */
  .hero { grid-template-columns: 1fr; padding-top: 96px; }
  .hero-media { position: absolute; inset: 0; height: auto; aspect-ratio: auto; border-radius: 0; }
  .hero-media::after { border: 0; background: linear-gradient(to bottom, rgba(11, 10, 9, 0.55), rgba(11, 10, 9, 0.1) 30%, rgba(11, 10, 9, 0.55) 62%, rgba(11, 10, 9, 0.95)); }
  .hero-copy { position: relative; z-index: 1; }
  .hero-line { color: var(--ink); opacity: 0.85; }
  .hero-index { display: none; }
  .block-top { grid-template-columns: auto 1fr; }
  .block-aside { grid-column: 1 / -1; text-align: left; }
  .credits { grid-template-columns: repeat(2, minmax(0, max-content)); }
  .reels { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--pad)); padding: 0 var(--pad) 8px; scroll-padding: 0 var(--pad); scrollbar-width: none; }
  .reels::-webkit-scrollbar { display: none; }
  .reel { flex: 0 0 62vw; scroll-snap-align: start; }
  .shots { grid-template-columns: 1fr; }
  .shot:nth-child(n) { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .js .hero-copy > *, .js .hero-media { animation: none; opacity: 1; transform: none; }
}


/* ---- accessibility and touch: a skip link, a pause control for the moving opening, and tap areas of at least 44px ---- */

.skip {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s;
}
.skip:focus { transform: none; }
.motion-toggle {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  min-height: 36px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.site-nav a, .bar-nav a, .bar-exit, .wordmark, .bar-mono, .hero-index a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.bar-mono { justify-content: center; min-width: 44px; }
.foot-role a, .gate-studio { display: inline-block; padding: 12px 6px; }
.lb-close, .vm-close { min-width: 44px; min-height: 44px; }
.gate-field button { min-height: 44px; }
@media (max-width: 720px) {
  .motion-toggle { top: 80px; bottom: auto; right: 16px; }
}
/* The password screen's card can shrink on the narrowest phones (280px) instead of pushing the page sideways. */
.gate { grid-template-columns: minmax(0, 1fr); }
.gate-card { min-width: 0; }
.foot-phone { padding-block: 10px; }
.lb-dl { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }
/* Section titles fit the narrowest folding phones (280px). */
.block-title { min-width: 0; font-size: clamp(2.1rem, 11vw, 5rem); }
@media (min-width: 721px) { .block-title { font-size: clamp(2.6rem, 6vw, 5rem); } }

/* Portrait tablets get the phone opening too: the vertical film fills the screen, the name sits over it. */
@media (min-width: 721px) and (max-width: 1100px) and (orientation: portrait) {
  .hero { grid-template-columns: 1fr; padding-top: 96px; }
  .hero-media { position: absolute; inset: 0; height: auto; aspect-ratio: auto; border-radius: 0; }
  .hero-media::after { border: 0; background: linear-gradient(to bottom, rgba(11, 10, 9, 0.55), rgba(11, 10, 9, 0.1) 30%, rgba(11, 10, 9, 0.55) 62%, rgba(11, 10, 9, 0.95)); }
  .hero-copy { position: relative; z-index: 1; }
  .hero-line { color: var(--ink); opacity: 0.85; }
  .motion-toggle { top: 84px; bottom: auto; right: var(--pad); }
}

/* Short screens (phones held sideways, smart displays): smaller opening type so the essentials fit. */
@media (max-height: 700px) {
  .gate .mono-lg, .cover .mono-lg { width: 84px; font-size: 28px; }
  .gate .mono { margin-bottom: 18px; }
  .cover .mono { margin-bottom: 14px; }
  .bismillah { margin-bottom: 10px; font-size: 28px; }
  .gate-names { font-size: clamp(2.2rem, 8vh, 3rem); }
  [data-theme='midnight'] .gate-names { font-size: clamp(2.4rem, 9vh, 3.4rem); }
  .cover-names { font-size: clamp(2.8rem, 12vh, 5rem); }
  [data-theme='midnight'] .cover-names { font-size: clamp(3rem, 13vh, 5.4rem); }
  .cover-inner { padding-bottom: 84px; }
  .cover-meta { margin-top: 14px; }
  .cover-intro { margin-top: 12px; }
  .gate-form { margin-top: 28px; }
  [data-theme='midnight'] .gate { padding-top: 64px; }
  .hero-name { font-size: clamp(3.4rem, 17vh, 7rem); }
  .hero-actions { margin-top: 20px; }
}
/* Phones held sideways are too short for the arch and the "Begin" cue; the content stays. */
@media (max-height: 480px) {
  .gate .arch, .cover-cue { display: none; }
  .cover-inner { padding-bottom: 40px; }
}

/* Text for screen readers only. */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.reel { position: relative; }
