/* =========================================================
   QUEEN BOAT FOREVER — كوين بوت للأبد
   Modern Minimalist Memorial / RTL / Production CSS
   ========================================================= */

/* ---------- FONT FACES (swap for performance per SEO spec) ---------- */
@font-face {
  font-family: 'KOOkies';
  src: url('../fonts/KOOkies-Regular.otf') format('opentype');
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0020-007E, U+00A9, U+2018-2019, U+201C-201D;
}
@font-face {
  font-family: 'KOOkies';
  src: url('../fonts/KOOkies-Bold.otf') format('opentype');
  font-weight: 700 900;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0020-007E, U+00A9, U+2018-2019, U+201C-201D;
}

/* ---------- DESIGN TOKENS ---------- */
:root {
  /* Palette */
  --cream:      #F9F7E8;
  --cream-2:    #F3EFD8;
  --cream-3:    #ECE7C8;
  --ink:        #1A2238;
  --ink-soft:   #2D3554;
  --teal:       #2C9A8F;
  --teal-deep:  #1F7A71;
  --coral:      #E8634B;
  --coral-deep: #C9442E;
  --gold:       #C9A961;
  --paper:      #FFFCEF;

  /* Type stacks */
  --f-display: 'KOOkies', 'Reem Kufi', 'Tajawal', serif;
  --f-body:    'Tajawal', 'KOOkies', system-ui, sans-serif;

  /* Fluid type — clamp(min, vw, max) */
  --t-hero:    clamp(4rem, 15vw, 14rem);
  --t-h2:      clamp(2.4rem, 7vw, 6.5rem);
  --t-h3:      clamp(1.25rem, 2.4vw, 1.75rem);
  --t-lead:    clamp(1.05rem, 1.4vw, 1.35rem);
  --t-body:    clamp(0.95rem, 1.05vw, 1.05rem);
  --t-eyebrow: clamp(0.7rem, 0.85vw, 0.85rem);
  --t-marquee: clamp(4rem, 14vw, 13rem);

  /* Spacing */
  --gutter:    clamp(1.25rem, 4vw, 3.5rem);
  --sec-pad-y: clamp(4rem, 10vw, 9rem);

  /* Motion */
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --side-nav-w: 14rem;
  --max-w: 1680px;
}

/* ---------- RESET / BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  background: var(--cream);
  color: var(--ink);
  font-size: var(--t-body);
  line-height: 1.6;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
::selection { background: var(--coral); color: var(--cream); }

/* Subtle paper grain layer */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(rgba(26,34,56,0.04) 1px, transparent 1px),
    radial-gradient(rgba(26,34,56,0.025) 1px, transparent 1px);
  background-size: 3px 3px, 7px 7px;
  background-position: 0 0, 1px 2px;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: multiply;
  opacity: 0.6;
}

/* ---------- TOP NAVIGATION BAR ---------- */
.top-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 0.85rem var(--gutter);
  background: var(--cream);
  border-bottom: 1px solid rgba(26, 34, 56, 0.10);
  box-shadow: 0 1px 2px rgba(26, 34, 56, 0.04);
}
.top-nav__inner {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 2.5rem;
}

.top-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  transition: color 0.3s var(--ease);
  flex-shrink: 0;
  z-index: 2;
}
.top-nav__brand:hover { color: var(--coral); }

.brand-mark {
  display: inline-block;
  font-size: 1.4em;
  color: var(--coral);
  transform: translateY(-1px);
}

/* Centered plain-text menu — teal for active section, coral on hover */
.top-nav__links {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: clamp(1.25rem, 2.4vw, 2.5rem);
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  z-index: 1;
}
.top-nav__links a {
  position: relative;
  color: var(--ink-soft);
  transition: color 0.3s var(--ease);
  white-space: nowrap;
  padding: 0.25rem 0;
}
.top-nav__links a:hover,
.top-nav__links a:focus-visible {
  color: var(--coral);
  outline: none;
}
.top-nav__links a.is-active {
  color: var(--teal);
}

.top-nav__cta {
  background: var(--coral);
  color: var(--cream);
  padding: 0.6rem 1.35rem;
  border-radius: 8px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
  flex-shrink: 0;
  z-index: 2;
  box-shadow: 0 2px 0 rgba(201, 68, 46, 0.6);
}
.top-nav__cta:hover {
  background: var(--coral-deep);
  transform: translateY(-2px);
  box-shadow: 0 4px 0 rgba(201, 68, 46, 0.6);
}

/* Ensure anchor scrolling doesn't land under the fixed nav */
section[id] { scroll-margin-top: 5rem; }

/* ---------- PRIDE BOAT ---------- */
.pride-boat {
  position: fixed;
  bottom: 4rem;
  left: 5%;
  width: clamp(70px, 9vw, 130px);
  z-index: 40;
  pointer-events: none;
  --boat-x: 0px;
  --boat-bob: 0px;
  --boat-tilt: 0deg;
  transform: translate(var(--boat-x), var(--boat-bob)) rotate(var(--boat-tilt));
  filter: drop-shadow(0 6px 14px rgba(26,34,56,0.18));
  will-change: transform;
}
.pride-boat .ripples {
  animation: rippleFade 3s ease-in-out infinite;
  transform-origin: 100px 120px;
}
@keyframes rippleFade {
  0%, 100% { opacity: 0.7; }
  50%      { opacity: 0.3; transform: scaleX(1.1); }
}
.pride-boat .sail {
  transform-origin: 100px 80px;
  animation: sailSway 5s ease-in-out infinite;
}
@keyframes sailSway {
  0%, 100% { transform: skewX(0deg); }
  50%      { transform: skewX(-3deg); }
}

/* ---------- SECTION UTILITIES ---------- */
section {
  position: relative;
  padding: var(--sec-pad-y) var(--gutter);
  z-index: 2;
}

.eyebrow {
  display: inline-block;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: var(--t-eyebrow);
  letter-spacing: 0.18em;
  color: var(--coral);
  padding: 0.35rem 0.85rem;
  border: 1.5px solid var(--coral);
  border-radius: 999px;
  text-transform: uppercase;
}

.section-h {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: var(--t-h2);
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin: 1rem 0 1.5rem;
  color: var(--ink);
}
.section-h em {
  font-style: normal;
  color: var(--coral);
  font-family: var(--f-display);
}

/* ============================================ */
/* HERO                                          */
/* ============================================ */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7rem var(--gutter) 4rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 20%, rgba(44,154,143,0.10), transparent 50%),
    radial-gradient(circle at 15% 80%, rgba(232,99,75,0.10), transparent 55%),
    var(--cream);
}

.deco {
  position: absolute;
  z-index: 0;
  pointer-events: none;
}
.deco--circle {
  border-radius: 50%;
  border: 1.5px solid var(--ink);
}
.deco--c1 {
  width: 18vw; height: 18vw;
  max-width: 240px; max-height: 240px;
  top: 8%; right: 12%;
  border-color: var(--teal);
  animation: floatSlow 9s ease-in-out infinite;
}
.deco--c2 {
  width: 12vw; height: 12vw;
  max-width: 160px; max-height: 160px;
  bottom: 12%; left: 8%;
  background: var(--coral);
  border: 0;
  opacity: 0.85;
  animation: floatSlow 11s ease-in-out infinite reverse;
}
.deco--bar {
  background: var(--ink);
  border-radius: 999px;
}
.deco--b1 {
  width: 8vw; height: 3rem;
  max-width: 130px;
  top: 22%; right: 25%;
  transform: rotate(-12deg);
  background: var(--gold);
}
.deco--b2 {
  width: 14vw; height: 1.2rem;
  max-width: 220px;
  bottom: 20%; right: 18%;
  background: var(--ink);
}
@keyframes floatSlow {
  0%, 100% { transform: translateY(0) rotate(0); }
  50%      { transform: translateY(-18px) rotate(3deg); }
}

.hero__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.hero__title {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: var(--t-hero);
  line-height: 1.35;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}
.hero__line { display: block; }
.hero__line .word {
  display: inline-block;
  margin: 0 0.05em;
  opacity: 0;
  transform: translateY(40%);
  animation: heroIn 0.95s var(--ease-out) forwards;
}
.hero__line.line-1 .word:nth-child(1) { animation-delay: 0.15s; }
.hero__line.line-1 .word:nth-child(2) { animation-delay: 0.35s; }
.hero__line.line-2 .word:nth-child(1) { animation-delay: 0.55s; }

@keyframes heroIn {
  0%   { opacity: 0; transform: translateY(40%) scaleY(1.15); }
  100% { opacity: 1; transform: translateY(0) scaleY(1); }
}

.hero__sub {
  font-family: var(--f-body);
  font-weight: 400;
  font-size: var(--t-lead);
  max-width: 42rem;
  margin: 2.5rem auto 0;
  color: var(--ink-soft);
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-out) 1s forwards;
}
.hero__sub em {
  font-style: italic;
  color: var(--teal);
  opacity: 0.85;
  font-size: 0.92em;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__scroll {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  margin-top: 3rem;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--ink);
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-out) 1.3s forwards;
}
.hero__scroll-bar {
  width: 1.5px;
  height: 2.5rem;
  background: var(--ink);
  position: relative;
  overflow: hidden;
}
.hero__scroll-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--coral);
  transform: translateY(-100%);
  animation: scrollDown 1.8s var(--ease) infinite;
}
@keyframes scrollDown {
  0%   { transform: translateY(-100%); }
  50%  { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

.hero__corner {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  font-family: var(--f-display);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--ink);
  opacity: 0.65;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 3;
}

/* ============================================ */
/* CONTEXT                                       */
/* ============================================ */
.context {
  background: var(--cream);
  border-top: 1px solid rgba(26,34,56,0.08);
}
.context__grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  gap: 3rem;
  max-width: var(--max-w);
  margin: 0 auto;
  align-items: start;
}
.context__label { padding-top: 1rem; }
.context__h {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 4.2vw, 3.6rem);
  line-height: 1.35;
  margin: 1rem 0 2rem;
  letter-spacing: -0.01em;
}
.context__h em {
  font-style: italic;
  color: var(--coral);
  font-family: var(--f-body);
  font-weight: 700;
}
.lead {
  font-size: var(--t-lead);
  font-weight: 500;
  line-height: 1.65;
  color: var(--ink);
}
.context__body p { max-width: 38rem; margin-bottom: 1.2rem; }
.context__body p:last-child { color: var(--ink-soft); font-style: italic; }

.context__photo figure { margin: 0; }
.context__photo-frame {
  position: relative;
  background: var(--ink);
  padding: 12px;
  border-radius: 4px;
  transform: rotate(-2deg);
  transition: transform 0.5s var(--ease);
  box-shadow: 0 24px 50px -20px rgba(26,34,56,0.35);
}
.context__photo-frame:hover { transform: rotate(0deg) scale(1.02); }
.context__photo-frame img {
  width: 100%;
  height: auto;
  filter: grayscale(0.4) sepia(0.15) contrast(1.05);
  border-radius: 2px;
}
.photo-tint {
  position: absolute;
  inset: 12px;
  background: linear-gradient(180deg, transparent 60%, rgba(232,99,75,0.18));
  pointer-events: none;
  mix-blend-mode: multiply;
}
.context__photo figcaption {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
  font-style: italic;
}

/* ============================================ */
/* NARRATIVE PANELS                              */
/* ============================================ */
.narrative { padding: 0; }

.narrative__panel {
  position: relative;
  min-height: 80vh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}
.narrative__panel--alt { align-items: center; }

.narrative__img {
  position: absolute;
  inset: -10% 0;
  width: 100%;
  height: 120%;
  object-fit: cover;
  z-index: 0;
  transform: translateY(var(--parallax-y, 0));
  will-change: transform;
}
.narrative__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(26,34,56,0.0) 30%, rgba(26,34,56,0.65) 100%),
    linear-gradient(90deg, rgba(26,34,56,0.45), transparent 50%);
  z-index: 1;
}
.narrative__overlay {
  position: relative;
  z-index: 2;
  padding: 4rem var(--gutter);
  color: var(--cream);
  width: 100%;
}
.narrative__overlay--right { text-align: end; }

.narrative__h {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(2.6rem, 8vw, 8rem);
  line-height: 1.3;
  margin: 0 0 1rem;
  color: var(--cream);
  letter-spacing: -0.01em;
}
.narrative__h em {
  font-style: italic;
  color: var(--coral);
  font-family: var(--f-body);
}
.narrative__num {
  display: inline-block;
  font-family: var(--f-display);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  color: var(--cream);
  opacity: 0.75;
  padding: 0.4rem 1rem;
  border: 1.5px solid var(--cream);
  border-radius: 999px;
  margin-top: 1rem;
}
.narrative__p {
  font-size: var(--t-lead);
  max-width: 28rem;
  margin: 1rem 0 0 auto;
  color: var(--cream);
  opacity: 0.92;
}

.narrative__pull {
  background: var(--cream-2);
  padding: clamp(5rem, 12vw, 10rem) var(--gutter);
  text-align: center;
  position: relative;
}
.narrative__pull::before, .narrative__pull::after {
  content: '';
  position: absolute;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--teal);
}
.narrative__pull::before { top: 3rem; right: 8%; }
.narrative__pull::after { bottom: 3rem; left: 8%; background: var(--coral); }

.narrative__pull blockquote {
  margin: 0 auto;
  max-width: 50rem;
}
.narrative__pull p {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 3rem);
  line-height: 1.4;
  color: var(--ink);
  margin: 0 0 2rem;
}
.narrative__pull p em {
  color: var(--coral);
  font-style: italic;
  font-family: var(--f-body);
}
.narrative__pull footer {
  font-family: var(--f-display);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}

/* ============================================ */
/* MARQUEE                                       */
/* ============================================ */
.marquee {
  padding: 0;
  background: var(--ink);
  color: var(--cream);
  overflow: hidden;
  border-block: 1px solid rgba(255,255,255,0.06);
}
.marquee__row {
  display: flex;
  overflow: hidden;
  white-space: nowrap;
  padding: 1rem 0;
}
.marquee__row + .marquee__row {
  background: var(--cream);
  color: var(--ink);
  border-top: 1px solid var(--ink);
}
.marquee__track {
  display: inline-flex;
  align-items: center;
  gap: 2.5rem;
  flex-shrink: 0;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: var(--t-marquee);
  line-height: 1;
  letter-spacing: -0.02em;
  padding-left: 2.5rem;
}
.marquee__row--rtl .marquee__track { animation: scrollRTL 28s linear infinite; }
.marquee__row--ltr .marquee__track { animation: scrollLTR 32s linear infinite; }
.marquee__row .dot {
  font-size: 0.35em;
  color: var(--coral);
  display: inline-block;
  transform: translateY(-0.2em);
}
.marquee__row--ltr .dot { color: var(--teal); }

@keyframes scrollRTL {
  0%   { transform: translateX(0); }
  100% { transform: translateX(50%); }
}
@keyframes scrollLTR {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================ */
/* OPPRESSION TIMELINE                           */
/* ============================================ */
.oppression {
  background: var(--cream);
  border-top: 1px solid rgba(26,34,56,0.08);
}
.oppression__head {
  max-width: var(--max-w);
  margin: 0 auto 4rem;
  text-align: center;
}
.oppression__head p {
  max-width: 38rem;
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: var(--t-lead);
}

.timeline {
  position: relative;
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 1100px;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: 50%;
  width: 6px;
  background: var(--ink);
  border-radius: 999px;
  transform: translateX(50%);
}

.t-item {
  position: relative;
  width: calc(50% - 3rem);
  padding: 1.75rem;
  margin-bottom: 4rem;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 18px;
  opacity: 0;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.t-item:nth-child(odd) {
  margin-right: 0;
  margin-left: auto;
  transform: translateY(40px) translateX(20px);
}
.t-item:nth-child(odd).is-revealed { transform: translateY(0) translateX(0); opacity: 1; }
.t-item:nth-child(even) {
  margin-right: auto;
  margin-left: 0;
  transform: translateY(40px) translateX(-20px);
}
.t-item:nth-child(even).is-revealed { transform: translateY(0) translateX(0); opacity: 1; }

.t-item::after {
  content: '';
  position: absolute;
  top: 2rem;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--coral);
  border: 4px solid var(--cream);
  box-shadow: 0 0 0 2px var(--ink);
}
.t-item:nth-child(odd)::after { right: -3.75rem; }
.t-item:nth-child(even)::after { left: -3.75rem; }
.t-item:nth-child(3n)::after { background: var(--teal); }
.t-item:nth-child(5n)::after { background: var(--gold); }

.t-year {
  display: inline-block;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--coral);
  margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
}
.t-body h3 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: var(--t-h3);
  margin: 0 0 0.6rem;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.t-body p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--ink-soft);
}
.t-body p em {
  font-style: italic;
  color: var(--coral);
}

/* ============================================ */
/* MAP OF PRIDE                                  */
/* ============================================ */
.pride {
  background: var(--cream-2);
  border-top: 1px solid rgba(26,34,56,0.08);
  overflow: hidden;
}
.pride__head {
  text-align: center;
  max-width: var(--max-w);
  margin: 0 auto 4rem;
}
.pride__head p {
  max-width: 38rem;
  margin: 0 auto;
  color: var(--ink-soft);
}

.pride__field {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  height: clamp(420px, 55vw, 620px);
}

.bubble {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: clamp(110px, 14vw, 170px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid var(--ink);
  font-family: var(--f-display);
  font-weight: 700;
  color: var(--ink);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
  animation: floatBubble 7s ease-in-out infinite;
  text-align: center;
  padding: 0.5rem;
}
.bubble:hover, .bubble:focus-visible, .bubble.is-active {
  transform: scale(1.08) translateY(-6px);
  box-shadow: 0 18px 36px -10px rgba(26,34,56,0.35);
  outline: none;
}
.bubble--teal  { background: var(--teal);  color: var(--cream); }
.bubble--coral { background: var(--coral); color: var(--cream); }
.bubble--navy  { background: var(--ink);   color: var(--cream); }
.bubble--gold  { background: var(--gold);  color: var(--ink); }

.bubble__city {
  font-size: clamp(0.85rem, 1.1vw, 1.1rem);
  font-weight: 700;
  line-height: 1.1;
}
.bubble__year {
  font-size: 0.72rem;
  font-weight: 400;
  opacity: 0.85;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

/* bubble positions */
.b1 { top: 5%;   right: 10%; animation-delay: 0s;   }
.b2 { top: 20%;  right: 38%; animation-delay: 0.8s; }
.b3 { top: 10%;  left: 12%;  animation-delay: 1.6s; }
.b4 { top: 45%;  left: 5%;   animation-delay: 2.2s; }
.b5 { top: 55%;  right: 22%; animation-delay: 0.4s; }
.b6 { top: 65%;  left: 32%;  animation-delay: 1.2s; }
.b7 { top: 30%;  right: 55%; animation-delay: 1.8s; }
.b8 { top: 70%;  right: 5%;  animation-delay: 0.6s; }

@keyframes floatBubble {
  0%, 100% { transform: translate(0, 0); }
  33%      { transform: translate(-6px, -10px); }
  66%      { transform: translate(8px, 6px); }
}

.quote-display {
  max-width: 38rem;
  margin: 3rem auto 0;
  padding: 2rem;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 18px;
  text-align: center;
  min-height: 8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 1.6vw, 1.4rem);
  line-height: 1.5;
  color: var(--ink);
  transition: opacity 0.4s var(--ease);
}
.quote-display.is-flashing { opacity: 0; }
.quote-display p { margin: 0; }

/* ============================================ */
/* LETTER ASSEMBLY                               */
/* ============================================ */
.letter {
  background: var(--cream);
  text-align: center;
  border-top: 1px solid rgba(26,34,56,0.08);
}
.letter__head { margin-bottom: 3rem; }

.letter__stage {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(2rem, 6.5vw, 5rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  min-height: 10rem;
  max-width: 1100px;
  margin: 0 auto;
  color: var(--ink);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.05em 0.15em;
  direction: rtl;
}
.letter__stage .L {
  display: inline-block;
  opacity: 0;
  transform: translateY(-120%) rotate(-15deg);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.letter__stage .L--space { width: 0.4em; }
.letter__stage.is-active .L {
  opacity: 1;
  transform: translateY(0) rotate(0);
}
.letter__stage .L:nth-of-type(3n) { color: var(--coral); }
.letter__stage .L:nth-of-type(5n) { color: var(--teal); }

.letter__sign {
  margin-top: 3rem;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--coral);
  letter-spacing: 0.02em;
}

/* ============================================ */
/* SUBMIT                                        */
/* ============================================ */
.submit {
  background: var(--ink);
  color: var(--cream);
  border-top: 1px solid rgba(255,255,255,0.05);
}
.submit__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  max-width: var(--max-w);
  margin: 0 auto;
  align-items: start;
}
.submit__intro .section-h { color: var(--cream); }
.submit__intro .section-h em { color: var(--coral); }
.submit__intro p {
  font-size: var(--t-lead);
  max-width: 30rem;
  color: rgba(249,247,232,0.78);
  margin-bottom: 2rem;
}
.submit__intro .eyebrow { color: var(--coral); border-color: var(--coral); }

.submit__pillars {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 0;
  list-style: none;
  margin: 2rem 0 0;
}
.submit__pillars li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  border: 1.5px solid rgba(249,247,232,0.3);
  border-radius: 999px;
  font-family: var(--f-display);
  font-size: 0.95rem;
  font-weight: 700;
}
.submit__pillars li span { font-size: 1.1em; color: var(--coral); }

.submit__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  background: rgba(255,255,255,0.03);
  padding: 2rem;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.10);
}
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field--full { grid-column: 1 / -1; }
.field__label {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  color: var(--cream);
}
.field__label em {
  font-style: italic;
  color: rgba(249,247,232,0.55);
  font-weight: 400;
  font-size: 0.85em;
}
.field input,
.field textarea {
  font-family: var(--f-body);
  font-size: 1rem;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(249,247,232,0.18);
  color: var(--cream);
  padding: 0.85rem 1rem;
  border-radius: 12px;
  transition: border 0.3s var(--ease), background 0.3s var(--ease);
  font-weight: 400;
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(249,247,232,0.35); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--coral);
  background: rgba(255,255,255,0.10);
}
.field--check {
  flex-direction: row;
  align-items: center;
  gap: 0.7rem;
  cursor: pointer;
  font-size: 0.95rem;
}
.field--check input[type='checkbox'] {
  appearance: none;
  width: 1.2rem;
  height: 1.2rem;
  border: 1.5px solid rgba(249,247,232,0.35);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.field--check input[type='checkbox']:checked {
  background: var(--coral);
  border-color: var(--coral);
}
.field--check input[type='checkbox']:checked::after {
  content: '✓';
  color: var(--cream);
  font-weight: 900;
  font-size: 0.85rem;
}

.btn-send {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 1rem 1.6rem;
  background: var(--coral);
  color: var(--cream);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.05rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}
.btn-send:hover { background: var(--coral-deep); transform: translateY(-2px); }
.btn-send svg { transform: scaleX(-1); }

.submit__status {
  grid-column: 1 / -1;
  margin: 0;
  text-align: center;
  font-family: var(--f-display);
  font-size: 0.95rem;
  color: var(--teal);
  min-height: 1.5rem;
}

/* ============================================ */
/* FOOTER                                        */
/* ============================================ */
.footer {
  background: var(--cream);
  padding: clamp(4rem, 8vw, 6rem) var(--gutter) 2.5rem;
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(26,34,56,0.08);
}
.footer__inner { max-width: var(--max-w); margin: 0 auto; }

.footer__top {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-bottom: 3rem;
  margin-bottom: 2rem;
  border-bottom: 1.5px solid var(--ink);
}
.footer__boat {
  width: clamp(70px, 8vw, 110px);
  flex-shrink: 0;
  animation: bobSmall 4.5s ease-in-out infinite;
}
@keyframes bobSmall {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50%      { transform: translateY(-6px) rotate(1.2deg); }
}
.footer__line {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 1.8vw, 1.6rem);
  margin: 0;
  color: var(--ink);
  line-height: 1.35;
}
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer__credit {
  font-family: var(--f-display);
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
}
.footer__credit strong {
  font-weight: 900;
  color: var(--coral);
  font-size: 1.2rem;
}
.footer__credit span { color: var(--ink-soft); font-size: 0.85em; }
.footer__meta {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--f-display);
  font-size: 0.85rem;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}
.footer__meta [aria-hidden='true'] { color: var(--coral); }

/* ============================================ */
/* PLAYLIST                                      */
/* ============================================ */
.playlist {
  background: var(--cream-2);
  border-top: 1px solid rgba(26,34,56,0.08);
}
.playlist__head {
  text-align: center;
  max-width: var(--max-w);
  margin: 0 auto 3rem;
}
.playlist__head p {
  max-width: 38rem;
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: var(--t-lead);
}

.playlist__wrap {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 2.5rem;
}

.playlist__player {
  position: relative;
  background: var(--ink);
  border-radius: 22px;
  padding: 1.5rem;
  box-shadow: 0 30px 60px -30px rgba(26,34,56,0.4);
}
.playlist__player-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
}
.playlist__player-frame iframe,
.playlist__player-frame #ytPlayer {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.playlist__now {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.2rem;
  padding: 0 0.5rem;
  color: var(--cream);
  font-family: var(--f-display);
}
.playlist__now-label {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--coral);
  padding: 0.3rem 0.85rem;
  border: 1.5px solid var(--coral);
  border-radius: 999px;
  flex-shrink: 0;
}
.playlist__now-title {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.playlist__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
}
.track {
  display: grid;
  grid-template-columns: 3rem 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--paper);
  border: 1.5px solid rgba(26,34,56,0.10);
  border-radius: 14px;
  cursor: pointer;
  transition: transform 0.3s var(--ease), border 0.3s var(--ease), background 0.3s var(--ease);
}
.track:hover,
.track:focus-visible {
  transform: translateY(-2px);
  border-color: var(--coral);
  outline: none;
}
.track.is-active {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}
.track.is-active .track__artist { color: rgba(249,247,232,0.65); }
.track.is-active .track__icon   { color: var(--coral); }

.track__num {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--coral);
  letter-spacing: -0.02em;
  text-align: center;
}
.track__meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}
.track__title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.3;
  letter-spacing: -0.005em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.track__artist {
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.2;
}
.track__icon {
  font-size: 1.2rem;
  color: var(--ink-soft);
  transition: color 0.3s var(--ease);
  flex-shrink: 0;
}
.track:hover .track__icon { color: var(--coral); }
.track.is-playing .track__icon::after {
  content: '';
  display: inline-block;
  width: 0.45em;
  height: 0.45em;
  margin-inline-start: 0.4em;
  background: var(--coral);
  border-radius: 50%;
  animation: trackPulse 1.2s ease-in-out infinite;
  vertical-align: middle;
}
@keyframes trackPulse {
  0%, 100% { opacity: 0.35; transform: scale(0.85); }
  50%      { opacity: 1;    transform: scale(1.15); }
}

@media (max-width: 720px) {
  .playlist__player { padding: 1rem; }
  .playlist__now-title { font-size: 0.9rem; }
  .track {
    grid-template-columns: 2.25rem 1fr auto;
    padding: 0.85rem 1rem;
    gap: 0.7rem;
  }
  .track__num { font-size: 1.1rem; }
  .track__title { font-size: 0.95rem; }
  .track__artist { font-size: 0.8rem; }
}

/* ============================================ */
/* NEWSLETTER (hero variant + standalone section) */
/* ============================================ */
.news-form {
  width: 100%;
  max-width: 36rem;
  margin: 2rem auto 0;
  position: relative;
  z-index: 2;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-out) 1.15s forwards;
}
.news-form__label {
  display: block;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--coral);
  margin-bottom: 0.7rem;
  text-transform: uppercase;
}
.news-form__row {
  display: grid;
  grid-template-columns: 1.5fr 1fr auto;
  gap: 0.5rem;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  padding: 0.45rem;
  box-shadow: 0 8px 24px -12px rgba(26,34,56,0.18);
}
.news-form input {
  font-family: var(--f-body);
  font-size: 0.95rem;
  background: transparent;
  border: 0;
  color: var(--ink);
  padding: 0.65rem 0.9rem;
  border-radius: 9px;
  min-width: 0;
  font-weight: 500;
}
.news-form input::placeholder { color: rgba(26,34,56,0.45); }
.news-form input:focus {
  outline: none;
  background: var(--cream-2);
}
.news-form__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.3rem;
  background: var(--coral);
  color: var(--cream);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border-radius: 9px;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
  white-space: nowrap;
  box-shadow: 0 2px 0 rgba(201, 68, 46, 0.6);
}
.news-form__btn:hover {
  background: var(--coral-deep);
  transform: translateY(-1px);
  box-shadow: 0 3px 0 rgba(201, 68, 46, 0.6);
}
.news-form__btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.news-form__status {
  margin: 0.85rem 0 0;
  text-align: center;
  font-family: var(--f-display);
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 1.3rem;
  color: var(--teal);
}
.news-form__status.is-err { color: var(--coral-deep); }
.news-form__priv {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--ink-soft);
  opacity: 0.75;
}

/* Standalone newsletter section before footer */
.news {
  background: var(--cream-2);
  border-top: 1px solid rgba(26,34,56,0.08);
  text-align: center;
}
.news__inner {
  max-width: 50rem;
  margin: 0 auto;
}
.news__lead {
  font-size: var(--t-lead);
  color: var(--ink-soft);
  max-width: 36rem;
  margin: 0 auto 2.5rem;
}
.news-form--lg { margin-top: 0; max-width: 42rem; }
.news-form--lg .news-form__row {
  padding: 0.55rem;
  border-radius: 16px;
}
.news-form--lg input { padding: 0.85rem 1rem; font-size: 1rem; }
.news-form--lg .news-form__btn { padding: 0.85rem 1.6rem; font-size: 1rem; border-radius: 11px; }

@media (max-width: 720px) {
  .news-form__row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .news-form input,
  .news-form__btn {
    width: 100%;
  }
}

/* ============================================ */
/* BILINGUAL LANGUAGE SWITCHING                  */
/* ============================================ */
/* By default, all .i18n / .i18n-block content is set by JS based on html[lang].
   When html[lang="en"], the body uses Inter for Latin script.
   When html[lang="ar"], body keeps Tajawal/KOOkies. */

html[lang="en"] body {
  font-family: 'Inter', 'Tajawal', system-ui, sans-serif;
}
html[lang="en"] {
  --f-body: 'Inter', 'Tajawal', system-ui, sans-serif;
}
html[lang="en"] .narrative__pull p,
html[lang="en"] .footer__line {
  font-family: 'Cormorant Garamond', 'Tajawal', serif;
  font-style: italic;
  font-weight: 500;
}

/* Direction-aware flips (most layout already uses logical properties,
   but a few visuals need explicit handling) */
html[lang="en"][dir="ltr"] .top-cta span,
html[lang="en"][dir="ltr"] .top-nav__cta span,
html[lang="en"][dir="ltr"] .btn-send svg {
  transform: none;
}

/* Language toggle button */
.top-nav__actions {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
  z-index: 2;
}
.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1.5px solid rgba(26, 34, 56, 0.25);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.lang-toggle:hover {
  border-color: var(--coral);
  color: var(--coral);
  transform: translateY(-1px);
}

/* ============================================ */
/* TIMELINE FILTER CHIPS                         */
/* ============================================ */
.opp-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
  max-width: 50rem;
  margin-inline: auto;
}
.opp-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.05rem;
  background: transparent;
  border: 1.5px solid rgba(26, 34, 56, 0.18);
  border-radius: 999px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
}
.opp-chip:hover {
  border-color: var(--coral);
  color: var(--coral);
}
.opp-chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}
.opp-chip__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.opp-chip__dot--pulse {
  animation: chipPulse 1.5s ease-in-out infinite;
}
@keyframes chipPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 68, 46, 0.6); }
  50%      { box-shadow: 0 0 0 6px rgba(201, 68, 46, 0); }
}

/* Hide filtered-out items */
.t-item.is-hidden {
  display: none;
}

/* Timeline date label */
.t-date {
  display: block;
  font-family: var(--f-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--coral);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

/* Timeline tags */
.t-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(26, 34, 56, 0.1);
}
.t-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  font-family: var(--f-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 6px;
  background: rgba(26, 34, 56, 0.05);
  color: var(--ink-soft);
}
.t-tag strong {
  color: var(--coral);
  font-weight: 900;
}
.t-tag--arrest { color: #C9442E; background: rgba(232, 99, 75, 0.10); }
.t-tag--law    { color: #8E7A45; background: rgba(201, 169, 97, 0.15); }
.t-tag--inst   { color: var(--teal-deep); background: rgba(44, 154, 143, 0.10); }
.t-tag--vig    { color: #2F4D9C; background: rgba(75, 111, 201, 0.12); }
.t-tag--mem    { color: var(--ink); background: rgba(26, 34, 56, 0.10); }
.t-tag--pending {
  color: #C9442E;
  background: rgba(232, 99, 75, 0.12);
  border: 1px solid var(--coral);
  animation: tagPulse 2s ease-in-out infinite;
}
@keyframes tagPulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.7; }
}

/* Featured pending case */
.t-item--pending .t-body {
  background: linear-gradient(135deg, rgba(232, 99, 75, 0.04), var(--paper));
  border-color: rgba(232, 99, 75, 0.35);
  position: relative;
}
.t-item--pending .t-body::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--coral), transparent);
  border-radius: 4px 0 0 4px;
}
html[dir="rtl"] .t-item--pending .t-body::before {
  left: auto;
  right: 0;
  border-radius: 0 4px 4px 0;
}
.t-callout {
  margin-top: 1rem !important;
  padding: 0.85rem 1rem;
  background: rgba(232, 99, 75, 0.06);
  border-inline-start: 3px solid var(--coral);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--coral-deep);
  font-weight: 500;
}
html[dir="rtl"] .t-callout {
  border-radius: 8px 0 0 8px;
}

/* ============================================ */
/* RESPONSIVE — Tablet                           */
/* ============================================ */
@media (max-width: 1024px) {
  .top-nav { padding: 0.7rem var(--gutter); }
  /* On tablet, drop absolute positioning so the menu flows in the bar */
  .top-nav__links {
    position: static;
    transform: none;
    font-size: 0.82rem;
    gap: 1rem;
  }
  .context__grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .context__label { grid-column: 1 / -1; }
  .context__body { grid-column: 1 / -1; }
  .context__photo { grid-column: 1 / -1; max-width: 28rem; }
  .submit__grid { grid-template-columns: 1fr; }
}

/* ============================================ */
/* RESPONSIVE — Mobile                           */
/* ============================================ */
@media (max-width: 720px) {
  /* Collapse top nav to brand + CTA only on mobile */
  .top-nav__links { display: none; }
  .top-nav__inner { justify-content: space-between; }
  .top-nav { padding: 0.7rem 1rem; }
  .top-nav__cta { padding: 0.5rem 1rem; font-size: 0.8rem; }
  .top-nav__brand { font-size: 0.98rem; }

  .hero { padding-top: 6rem; }
  .hero__corner {
    right: 1rem;
    bottom: 1rem;
    font-size: 0.7rem;
  }

  /* Pride Boat — 40% smaller on mobile per spec */
  .pride-boat {
    width: clamp(45px, 12vw, 80px);
    bottom: 2rem;
    left: 4%;
  }

  /* Marquee slows down on mobile for readability */
  .marquee__row--rtl .marquee__track { animation-duration: 42s; }
  .marquee__row--ltr .marquee__track { animation-duration: 48s; }

  /* Timeline stacks vertically full-width */
  .timeline { padding-right: 2.5rem; }
  .timeline::before {
    right: 0.6rem;
    transform: none;
    width: 4px;
  }
  .t-item,
  .t-item:nth-child(odd),
  .t-item:nth-child(even) {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    transform: translateY(40px);
  }
  .t-item:nth-child(odd).is-revealed,
  .t-item:nth-child(even).is-revealed {
    transform: translateY(0);
  }
  .t-item::after,
  .t-item:nth-child(odd)::after,
  .t-item:nth-child(even)::after {
    right: -2.65rem;
    left: auto;
    top: 1.5rem;
    width: 18px; height: 18px;
  }

  .narrative__overlay { padding: 2rem 1.5rem; }

  .submit__form { grid-template-columns: 1fr; padding: 1.5rem; }
  .field--check { flex-direction: row; }

  .footer__top { flex-direction: column; align-items: flex-start; text-align: start; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }

  .hero__sub { margin-top: 1.75rem; }
  .hero__scroll { margin-top: 2rem; }

  .pride__field { height: clamp(520px, 90vw, 700px); }
  .bubble { width: clamp(90px, 22vw, 130px); }
}

/* ============================================ */
/* TOUCH DEVICES — tap replaces hover            */
/* ============================================ */
@media (hover: none) and (pointer: coarse) {
  .bubble:hover { transform: none; box-shadow: none; }
  .bubble.is-active {
    transform: scale(1.08) translateY(-6px);
    box-shadow: 0 18px 36px -10px rgba(26,34,56,0.35);
  }
  .context__photo-frame:hover { transform: rotate(-2deg); }
}

/* ============================================ */
/* REDUCED MOTION                                */
/* ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .hero__line .word { opacity: 1; transform: none; }
  .hero__sub, .hero__scroll { opacity: 1; }
  .letter__stage .L { opacity: 1; transform: none; }
  .t-item { opacity: 1; transform: none !important; }
  .pride-boat { animation: none; }
}
