/* =====================================================================
   Tamara Hamdalla: shared styles for Work (index.html) + About
   Palette
     luster #F4F1EC · shoji #E6DFD3 · hazy #BCC8CC          (lights)
     saxony #216B88 · black #1A2235 (blue-black)            (darks)
     red #BE4236 (Caught Red-Handed)                        (the one accent)
   Soft gradients between these colors run through the sections, with a light film grain.
   Type: Montserrat (headlines + body) · Playfair Display italic (accents)
   ===================================================================== */

:root {
  --luster: #F4F1EC;
  --shoji: #E6DFD3;
  --hazy: #BCC8CC;
  --red: #BE4236;
  --saxony: #216B88;
  --black: #1A2235;

  --luster-85: rgba(244, 241, 236, .85);
  --luster-70: rgba(244, 241, 236, .7);
  --luster-40: rgba(244, 241, 236, .4);
  --luster-20: rgba(244, 241, 236, .2);
  --luster-10: rgba(244, 241, 236, .1);
  --black-80: rgba(26, 34, 53, .8);
  --black-30: rgba(26, 34, 53, .3);
  --black-15: rgba(26, 34, 53, .15);

  --f-sans: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --f-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;

  --gutter: clamp(24px, 6.5vw, 112px);
  --max: 1440px;
  --r: 12px;
  --ease: cubic-bezier(.2, .7, .1, 1);

  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1.2 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--black);
  color: var(--luster);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
em { font-family: var(--f-serif); font-style: italic; font-weight: 500; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

/* ---------- type ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--red); }

.display { font-weight: 900; text-transform: uppercase; line-height: .9; letter-spacing: -.02em; margin: 0; }

/* Highlight block: italic serif word on a solid block. Same baseline as the
   words around it; padding balanced so it sits centred on the capitals. */
.mark {
  display: inline-block;
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1;
  padding: .04em .16em .14em;
  vertical-align: baseline;
  background: var(--red);
  color: var(--luster);
}

/* ---------- section backgrounds: soft gradients ---------- */
.grad-night { background: linear-gradient(165deg, var(--black) 0%, #1e3d5e 55%, var(--saxony) 100%); }
.grad-sea   { background: linear-gradient(170deg, var(--saxony) 0%, #1d4565 50%, var(--black) 100%); }
.grad-mist  { background: linear-gradient(180deg, var(--luster) 0%, var(--shoji) 48%, var(--hazy) 100%); }
.grad-paper { background: linear-gradient(180deg, var(--hazy) 0%, var(--shoji) 40%, var(--luster) 100%); }
/* contact: black, through Saxony blue and haze, into the red lines at the bottom */
.grad-dusk  {
  --fs: clamp(220px, 26vw, 320px);   /* height of the fade below the contact content */
  background: linear-gradient(0deg,
    var(--red) 0, var(--red) 70px,
    #c9675b calc(70px + var(--fs) * .22),
    #dcb3a7 calc(70px + var(--fs) * .42),
    var(--shoji) calc(70px + var(--fs) * .58),
    var(--hazy) calc(70px + var(--fs) * .72),
    #5d93ab calc(90px + var(--fs) * .92),
    var(--saxony) calc(160px + var(--fs)),
    var(--black) 100%);
}

.light { color: var(--black); --topo-color: rgba(33, 107, 136, .14); }

/* ---------- topographic lines + film grain ---------- */
.topo { position: relative; overflow: hidden; isolation: isolate; }
.topo::before {
  content: "";
  position: absolute;
  inset: -70px -40px;
  transform: translate3d(var(--drift-x, 0px), var(--drift-y, 0px), 0);
  will-change: transform;
  z-index: -1;
  pointer-events: none;
  background: var(--topo-color, rgba(244, 241, 236, .11));
  -webkit-mask: var(--topo-img, url("topo-1.svg")) center / cover no-repeat;
  mask: var(--topo-img, url("topo-1.svg")) center / cover no-repeat;
}
.topo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .2;
  mix-blend-mode: overlay;
  background-image: var(--noise);
}
.topo--2 { --topo-img: url("topo-2.svg"); }
.topo--3 { --topo-img: url("topo-3.svg"); }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px var(--gutter);
  color: var(--luster);
  background: rgba(26, 34, 53, .92);
  border-bottom: 1px solid var(--luster-10);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: background .35s var(--ease), border-color .35s var(--ease);
}
.nav[data-over="1"]:not([data-scrolled="1"]) { background: transparent; border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand .spark { width: 30px; height: 30px; flex: none; color: var(--red); }
.brand-lock { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 800; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.brand-sub { font-family: var(--f-serif); font-style: italic; font-size: 14px; opacity: .85; }

.nav-links { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 34px); }
.nav-links a { position: relative; text-decoration: none; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 6px 0; }
.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav-links a:not(.nav-cta):hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-cta { border: 2px solid currentColor; border-radius: 999px; padding: 8px 16px !important; transition: background .25s, border-color .25s; }
.nav-cta:hover { background: var(--red); border-color: var(--red); }

@media (max-width: 560px) {
  .brand-lock { display: none; }
  .nav-links a { font-size: 12px; letter-spacing: .1em; }
  .nav-cta { padding: 6px 12px !important; }
}

/* ---------- sections ---------- */
.section { padding: clamp(72px, 10vw, 140px) 0; }

/* scroll reveal (only hides things when JS is running) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .1s; }
.js .reveal.d2 { transition-delay: .2s; }
.js .reveal.d3 { transition-delay: .3s; }

/* soft overlay for photos: black and white over a Saxony-to-black gradient */
.soft-photo { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--saxony), var(--black)); }
.soft-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); opacity: .8; }

/* film grain over the landing video */
.grain { position: absolute; inset: 0; pointer-events: none; opacity: .2; mix-blend-mode: overlay; background-image: var(--noise); }

/* =====================================================================
   WORK PAGE
   ===================================================================== */

/* ---------- 1. video landing ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: var(--black); }
/* soft hue: the video keeps its light, with a pale blue wash over it */
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.65) contrast(.95); }
.hero-wash { position: absolute; inset: 0; pointer-events: none; background: rgba(120, 165, 200, .28); mix-blend-mode: color; }
.hero-shade {
  /* light blue wash, plus a gentle shade at the top and bottom so the type stays readable */
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(0deg, rgba(26, 34, 53, .5) 0%, rgba(26, 34, 53, 0) 45%),
    linear-gradient(180deg, rgba(26, 34, 53, .3) 0%, rgba(26, 34, 53, 0) 22%),
    rgba(188, 200, 204, .12);
}

.hero-play { position: absolute; inset: 0; z-index: 3; width: 100%; border: 0; padding: 0; background: transparent; cursor: pointer; }

.vf { position: absolute; z-index: 2; inset: clamp(70px, 9vh, 92px) clamp(12px, 3.2vw, 56px) clamp(12px, 2vw, 26px); pointer-events: none; }
.vf i { position: absolute; width: clamp(24px, 3vw, 44px); height: clamp(24px, 3vw, 44px); border: 0 solid var(--luster); }
.vf i:nth-child(1) { top: 0; left: 0; border-top-width: 3px; border-left-width: 3px; }
.vf i:nth-child(2) { top: 0; right: 0; border-top-width: 3px; border-right-width: 3px; }
.vf i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 3px; border-left-width: 3px; }
.vf i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 3px; border-right-width: 3px; }
.vf-meta { position: absolute; top: 14px; display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.vf-meta--l { left: clamp(18px, 2.4vw, 30px); }
.vf-meta--r { right: clamp(18px, 2.4vw, 30px); }
.rec-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--red); animation: blink 1.2s steps(1) infinite; }
@keyframes blink { 50% { opacity: .15; } }

.hero-name { position: absolute; z-index: 2; left: calc(var(--gutter) + 6px); right: calc(var(--gutter) + 6px); bottom: clamp(92px, 13vh, 132px); pointer-events: none; }
.hero-roles {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin: 0 0 clamp(10px, 1.4vw, 18px);
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(16px, 1.7vw, 23px);
}
.hero-roles .star { width: .62em; height: .62em; flex: none; fill: var(--red); }
.hero-name h1 { font-size: clamp(40px, 9.4vw, 136px); color: var(--luster); }

.hero-bar {
  position: absolute;
  z-index: 4;
  right: calc(var(--gutter) + 6px);
  bottom: clamp(30px, 4.4vh, 48px);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-size: clamp(13px, 1.25vw, 17px);
  font-weight: 600;
  pointer-events: none;
}
.hero-bar svg { width: 20px; height: 20px; flex: none; }
.hero-bar .pill { border-bottom: 2px solid var(--red); padding-bottom: 2px; }

@media (max-width: 640px) {
  .hero-roles { font-size: 13px; gap: 6px 8px; }
  .hero-bar { font-size: 13px; }
}

/* fallback player (phones that can't full-screen a single element) */
.player { position: fixed; inset: 0; z-index: 600; background: var(--black); display: none; }
.player[data-open="1"] { display: block; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-x {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid var(--luster-70);
  background: rgba(26, 34, 53, .7);
  color: var(--luster);
  cursor: pointer;
}
.player-x:hover { background: var(--red); border-color: var(--red); }
.player-x svg { width: 20px; height: 20px; }

/* ---------- 2. highlight reels ---------- */
.reels-stagger { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 5.5vw, 90px); align-items: start; }
.reels-stagger .eyebrow { grid-column: 1 / -1; margin-bottom: clamp(30px, 4vw, 52px); }
.hl { margin: 0; }
.hl:nth-of-type(2) { margin-top: clamp(90px, 17vw, 270px); }

.hl-media { position: relative; }
.hl-media::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hl:nth-of-type(1) .hl-media::before { background: linear-gradient(135deg, var(--red), #d9786d); transform: translate(-18px, 18px); }
.hl:nth-of-type(2) .hl-media::before { border: 2px solid var(--red); transform: translate(18px, -18px); }
.hl-media::after { content: ""; position: absolute; z-index: 2; left: -1px; top: -12px; width: 2px; height: 26px; background: var(--red); }

.hl-frame { position: relative; z-index: 1; aspect-ratio: 16 / 9; background: var(--black) center / cover no-repeat; cursor: pointer; overflow: hidden; }
.hl-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(26, 34, 53, 0) 40%, rgba(26, 34, 53, .35)); transition: opacity .35s var(--ease); }
.hl-frame:hover::after { opacity: .3; }
.hl-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 3; }
.hl-frame.playing::after, .hl-frame.playing .play-btn { display: none; }

.play-btn {
  position: absolute;
  inset: 0;
  margin: auto;
  z-index: 2;
  width: clamp(58px, 6vw, 84px);
  height: clamp(58px, 6vw, 84px);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  color: var(--luster);
  transition: transform .35s var(--ease);
}
.play-btn svg { width: 38%; height: 38%; fill: currentColor; transform: translateX(8%); }
.hl-frame:hover .play-btn { transform: scale(1.08); }

.hl figcaption { display: flex; align-items: baseline; gap: 10px; margin-top: 26px; font-size: clamp(14px, 1.2vw, 17px); font-weight: 500; }
.hl figcaption em { font-size: 1.12em; }
.hl figcaption .num { font-family: var(--f-serif); font-style: italic; color: #e08a7f; font-size: 1.25em; }
.hl:nth-of-type(1) figcaption { justify-content: flex-end; }

.reels-spark { position: absolute; top: clamp(40px, 6vw, 90px); right: clamp(30px, 8vw, 140px); width: clamp(90px, 11vw, 170px); height: clamp(90px, 11vw, 170px); color: var(--red); pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .reels-spark { animation: spin 40s linear infinite; }
  @keyframes spin { to { transform: rotate(360deg); } }
}

@media (max-width: 760px) {
  .reels-stagger { grid-template-columns: 1fr; row-gap: 56px; }
  .hl:nth-of-type(2) { margin-top: 0; }
  .hl:nth-of-type(1) figcaption { justify-content: flex-start; }
  .hl:nth-of-type(1) .hl-media::before { transform: translate(-10px, 10px); }
  .hl:nth-of-type(2) .hl-media::before { transform: translate(10px, -10px); }
  .reels-spark { top: -16px; right: 0; width: 50px; height: 50px; }
}

/* ---------- 3. selected episodes (light section) ---------- */
.ep-head { display: grid; grid-template-columns: auto minmax(0, 360px); justify-content: start; align-items: end; column-gap: clamp(28px, 4vw, 56px); row-gap: 18px; margin-bottom: clamp(30px, 4vw, 44px); }
.ep-head .eyebrow { grid-column: 1 / -1; margin-bottom: 4px; }
.ep-head h2 { font-size: clamp(36px, 5.2vw, 76px); }
.ep-head p { margin: 0 0 4px; font-size: 15px; line-height: 1.65; opacity: .85; font-weight: 500; }
@media (max-width: 760px) { .ep-head { grid-template-columns: 1fr; } }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(26px, 3vw, 40px); }
.filters button {
  cursor: pointer;
  border: 2px solid var(--black-30);
  background: transparent;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: border-color .25s, background .25s, color .25s;
}
.filters button:hover { border-color: var(--black); }
.filters button.active { background: var(--red); border-color: var(--red); color: var(--luster); }

.ep-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 26px); }
@media (max-width: 1080px) { .ep-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .ep-grid { grid-template-columns: 1fr; } }

.ep {
  display: flex;
  flex-direction: column;
  text-align: left;
  cursor: pointer;
  padding: 0;
  color: var(--luster);
  background: linear-gradient(170deg, #262f48 0%, var(--black) 100%);
  border: 2px solid transparent;
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: 0 18px 40px -26px rgba(26, 34, 53, .6);
  transition: border-color .3s, transform .35s var(--ease);
}
.ep:hover { border-color: var(--red); transform: translateY(-4px); }
.ep.is-hidden { display: none; }
.ep-thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--black); }
.ep-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.ep:hover .ep-thumb img { transform: scale(1.04); }
.ep-thumb .play-btn { width: 52px; height: 52px; }
.ep-body { padding: 16px 18px 20px; }
.ep-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.ep-tags span { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; border: 1px solid var(--luster-40); border-radius: 999px; padding: 3px 9px; color: var(--luster-85); }
.ep h3 { margin: 0 0 6px; font-size: 16px; font-weight: 800; line-height: 1.2; text-transform: uppercase; }
.ep p { margin: 0; font-family: var(--f-serif); font-style: italic; font-size: 15px; color: var(--luster-85); }

/* ---------- 4 + 5. sideways rows: Instagram reels, X + LinkedIn posts ---------- */
.sf-head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(26px, 4vw, 70px); align-items: end; margin-bottom: clamp(34px, 4vw, 54px); }
.sf-head h2 { font-size: clamp(38px, 5.4vw, 80px); margin-top: 18px; }
.sf-head p { margin: 0 0 22px; font-size: 15px; line-height: 1.65; opacity: .85; max-width: 520px; font-weight: 500; }
.stats { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 12px clamp(18px, 2.6vw, 38px); }
.stat b { display: block; font-size: clamp(24px, 2.4vw, 34px); font-weight: 900; line-height: 1; }
.stat span { display: block; margin-top: 6px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
@media (max-width: 900px) {
  .sf-head { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, auto); }
}

.rail {
  display: flex;
  gap: clamp(14px, 1.6vw, 22px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: var(--gutter);
  padding: 4px var(--gutter) 6px;
  scrollbar-width: none;           /* no scroll bar: the arrows do the work */
  -ms-overflow-style: none;
}
.rail::-webkit-scrollbar { display: none; }
.reel { flex: 0 0 clamp(326px, 24vw, 360px); scroll-snap-align: start; display: flex; flex-direction: column; gap: 10px; }

/* Instagram embed, cropped to just the video: the profile header is pushed above
   the frame and the likes / comments area below it is cut off. */
.reel-card { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; background: linear-gradient(160deg, var(--saxony), var(--black)); }
.reel-card iframe { position: absolute; left: 0; top: -55px; width: 100%; height: calc(100% + 360px); border: 0; }
.reel-label { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.reel-label .plat { padding: 2px 7px; border-radius: 4px; background: var(--red); color: var(--luster); letter-spacing: .08em; }

/* X + LinkedIn embeds, shown as each platform renders them */
.post { flex: 0 0 clamp(300px, 30vw, 440px); scroll-snap-align: start; display: flex; flex-direction: column; gap: 10px; }
.post-card { height: 680px; border-radius: var(--r); overflow: hidden; background: #fff; box-shadow: 0 20px 44px -28px rgba(26, 34, 53, .55); }
.post-card iframe { width: 100%; height: 100%; border: 0; }
.post-card--x { overflow-y: auto; padding: 0 2px; }
.post-card--x .twitter-tweet { margin: 0 auto !important; }
.post-card--x blockquote { margin: 0; padding: 24px; font: 600 14px/1.5 var(--f-sans); color: var(--black); }

.rail-btns { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }
.rail-btns button {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid currentColor;
  background: transparent;
  cursor: pointer;
  transition: background .25s, border-color .25s, color .25s, opacity .25s;
}
.rail-btns button:hover:not(:disabled) { background: var(--red); border-color: var(--red); color: var(--luster); }
.rail-btns button:disabled { opacity: .3; cursor: default; }
.rail-btns svg { width: 20px; height: 20px; }

/* ---------- episode popup (sized so it always fits on screen) ---------- */
.modal { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 20px; opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s; }
.modal[data-open="1"] { opacity: 1; visibility: visible; }
.modal-bg { position: absolute; inset: 0; background: rgba(26, 34, 53, .84); }
.modal-card {
  position: relative;
  width: min(860px, 100%, calc((100vh - 320px) * 16 / 9));
  width: min(860px, 100%, calc((100svh - 320px) * 16 / 9));
  min-width: min(100%, 420px);
  max-height: calc(100svh - 40px);
  overflow: hidden auto;
  background: linear-gradient(170deg, #262f48, var(--black));
  border: 1px solid var(--luster-20);
  border-radius: var(--r);
}
.modal-video { position: relative; aspect-ratio: 16 / 9; background: #000; }
.modal-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.modal-x { position: absolute; top: 10px; right: 10px; z-index: 2; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 0; background: var(--red); color: var(--luster); cursor: pointer; }
.modal-x svg { width: 18px; height: 18px; }
.modal-info { display: flex; gap: 26px; justify-content: space-between; padding: 18px 22px 22px; }
.modal-info .cat { font-family: var(--f-serif); font-style: italic; font-size: 16px; color: var(--luster-85); }
.modal-info h3 { margin: 2px 0 8px; font-size: clamp(18px, 1.9vw, 24px); font-weight: 900; line-height: 1.1; text-transform: uppercase; }
.modal-info p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--luster-85); max-width: 62ch; }
.m-meta { flex: none; display: grid; gap: 10px; min-width: 170px; align-content: start; }
.m-meta div { display: flex; flex-direction: column; border-top: 1px solid var(--luster-20); padding-top: 6px; }
.m-meta span:first-child { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--luster-70); }
.m-meta span:last-child { font-size: 14px; font-weight: 600; }
@media (max-width: 720px) {
  .modal-info { flex-direction: column; gap: 14px; }
  .m-meta { grid-template-columns: repeat(3, 1fr); min-width: 0; }
}

/* =====================================================================
   CONTACT / FOOTER (both pages)
   ===================================================================== */
.contact { padding-top: clamp(72px, 9vw, 130px); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(18px, 2.4vw, 34px); align-items: stretch; }
.contact-grid--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.contact-grid--flip .c-photo { order: 2; }
.c-photo { min-height: 420px; border-radius: var(--r); }
.c-right { display: flex; flex-direction: column; gap: clamp(18px, 2vw, 26px); min-width: 0; }
.c-right h2 { font-size: clamp(32px, 4vw, 60px); }

/* editing-timeline contact panel */
.tl {
  border: 1px solid var(--luster-20);
  border-radius: var(--r);
  background: linear-gradient(170deg, rgba(26, 34, 53, .75), rgba(26, 34, 53, .6));
  padding: clamp(12px, 1.6vw, 20px);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.tl-top { display: flex; justify-content: space-between; gap: 12px; color: var(--luster-70); margin-bottom: 12px; }
.tl-top .tc { color: var(--luster); }
.tl-grid { position: relative; display: grid; grid-template-columns: var(--head, 118px) minmax(0, 1fr); row-gap: 8px; }
.tl-ruler {
  grid-column: 2;
  height: 22px;
  border-bottom: 1px solid var(--luster-40);
  background:
    repeating-linear-gradient(90deg, var(--luster-40) 0 1px, transparent 1px 10%) bottom / 100% 9px no-repeat,
    repeating-linear-gradient(90deg, var(--luster-20) 0 1px, transparent 1px 2.5%) bottom / 100% 5px no-repeat;
}
.tl-head { grid-column: 1; display: flex; align-items: center; gap: 8px; padding-right: 10px; min-width: 0; }
.tl-head b { flex: none; display: grid; place-items: center; width: 30px; height: 22px; border-radius: 4px; border: 1px solid var(--luster-40); font-size: 10px; }
.tl-head span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: .08em; font-size: 12px; text-transform: none; font-weight: 600; }
.tl-lane { grid-column: 2; position: relative; height: 48px; border-radius: 4px; background: rgba(0, 0, 0, .22); display: flex; align-items: stretch; gap: 3px; padding: 4px 0; overflow: hidden; }

/* a clip; "cuts" are the thin dark gaps between clips */
.clip { flex: none; min-width: 0; border-radius: 4px; background: linear-gradient(180deg, #c9d3d6, var(--hazy)); border: 1px solid var(--black-15); }
.clip--ghost { background: transparent; border-color: transparent; }
.clip--grow { flex: 1 1 0; }
/* only the clip with the text in it is the link, and only it lights up */
.clip--link {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px 0 12px;
  color: var(--black);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: none;
  white-space: nowrap;
  overflow: hidden;
  transition: background .25s, color .25s;
}
.clip--link:hover, .clip--link:focus-visible { background: var(--red); color: var(--luster); }
.clip--link svg { width: 16px; height: 16px; flex: none; }
.clip--link .txt { overflow: hidden; text-overflow: ellipsis; }
.clip--audio { background: linear-gradient(180deg, rgba(190, 66, 54, .22), rgba(190, 66, 54, .1)); border-color: rgba(190, 66, 54, .6); display: flex; align-items: center; gap: 2px; padding: 0 5px; overflow: hidden; }
.clip--audio i { flex: none; width: 2px; border-radius: 2px; background: #d9786d; }

.playhead { position: absolute; top: 0; bottom: 0; left: calc(var(--head, 118px) + 26%); width: 2px; background: var(--red); z-index: 3; pointer-events: none; }
.playhead::before { content: ""; position: absolute; top: 0; left: -6px; border: 7px solid transparent; border-top: 10px solid var(--red); border-bottom: 0; }
@media (prefers-reduced-motion: no-preference) {
  .playhead { animation: scrub 16s linear infinite; }
  @keyframes scrub { from { left: var(--head, 118px); } to { left: calc(100% - 2px); } }
  /* clips lay themselves down track by track when the panel scrolls into view */
  .js .tl-ruler, .js .tl-lane { clip-path: inset(0 100% 0 0); transition: clip-path 1.1s var(--ease); }
  .js .in .tl-ruler { clip-path: inset(0); transition-delay: .15s; }
  .js .in .tl-lane { clip-path: inset(0); transition-delay: var(--d, .3s); }
}

@media (max-width: 900px) {
  .contact-grid, .contact-grid--flip { grid-template-columns: 1fr; }
  .contact-grid--flip .c-photo { order: 0; }
  .c-photo { min-height: 0; aspect-ratio: 4 / 3; }
}
@media (max-width: 560px) {
  .tl { --head: 46px; }
  .tl-head span { display: none; }
  .tl-head b { width: auto; padding: 0 6px; }
  .tl-lane .deco { display: none; }
  .clip--link { flex: 1 1 auto; font-size: 12px; padding: 0 9px; gap: 6px; }
  .tl-lane { height: 44px; }
}

/* empty space where the section fades into the footer red */
.fade-space { height: var(--fs, 260px); }

.foot {
  background: transparent;
  color: var(--luster);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  padding: 22px var(--gutter) 26px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* =====================================================================
   ABOUT PAGE (light, with dark and colored cards)
   ===================================================================== */
.about-main { padding: clamp(110px, 14vw, 170px) 0 clamp(72px, 9vw, 120px); }
.about-title { font-size: clamp(54px, 10vw, 150px); margin-bottom: clamp(28px, 4vw, 54px); }

.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-areas:
    "in in in in in in in in ap ap ap ap"
    "wd wd wd wd wd wd wd wd bl bl bl bl"
    "c1 c1 c1 c1 c2 c2 c2 c2 bl bl bl bl"
    "c3 c3 c3 c3 c4 c4 c4 c4 bl bl bl bl";
  gap: 14px;
}
.card { border-radius: var(--r); padding: clamp(20px, 2.2vw, 30px); }
.card--black  { background: linear-gradient(160deg, #283252 0%, var(--black) 100%); color: var(--luster); }
.card--red    { background: linear-gradient(160deg, var(--red) 0%, #a5362b 100%); color: var(--luster); }
.card--saxony { background: linear-gradient(160deg, #2a7a99 0%, var(--saxony) 100%); color: var(--luster); }
.card--hazy   { background: linear-gradient(160deg, #cdd6d9 0%, var(--hazy) 100%); color: var(--black); border: 1px solid var(--black-15); box-shadow: 0 16px 34px -26px rgba(26, 34, 53, .55); }
.card--line   { border: 2px solid var(--black-30); background: rgba(244, 241, 236, .35); }

.c-intro { grid-area: in; display: flex; align-items: center; }
.c-intro p { margin: 0; font-size: clamp(20px, 2.15vw, 30px); line-height: 1.38; font-weight: 500; }

.c-approach { grid-area: ap; }
.c-approach h2, .c-label h2 { margin: 0 0 12px; font-size: clamp(22px, 2vw, 28px); font-weight: 900; text-transform: uppercase; line-height: 1; letter-spacing: -.01em; }
.c-approach p { margin: 0; font-size: 15px; line-height: 1.6; font-weight: 500; }

.c-label { grid-area: wd; padding-top: 16px; padding-bottom: 16px; display: flex; align-items: center; gap: 22px; }
.c-label h2 { margin: 0; font-size: clamp(26px, 2.6vw, 38px); flex: none; }
.c-label::after { content: ""; flex: 1; height: 3px; background: currentColor; border-radius: 2px; opacity: .85; }

.c-do h3 { display: inline; margin: 0; font-size: 15px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; line-height: 1.9; }
.c-do h3 span { padding-bottom: 5px; background: linear-gradient(var(--red), var(--red)) left bottom / 100% 2px no-repeat; }
.card--saxony.c-do h3 span { background-image: linear-gradient(var(--luster), var(--luster)); }
.c-do p { margin: 10px 0 0; font-size: 15px; line-height: 1.6; opacity: .9; font-weight: 500; }
.c1 { grid-area: c1; } .c2 { grid-area: c2; } .c3 { grid-area: c3; } .c4 { grid-area: c4; }

.c-bullets { grid-area: bl; }
.c-bullets ol { position: relative; list-style: none; margin: 0; padding: 0 0 0 18px; display: grid; gap: 16px; counter-reset: step; }
.c-bullets ol::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 2px; background: var(--red); transform-origin: top; }
.c-bullets li { counter-increment: step; display: grid; grid-template-columns: 34px 1fr; gap: 6px; font-size: 15px; line-height: 1.5; font-weight: 500; }
.c-bullets li::before { content: counter(step, decimal-leading-zero); font-family: var(--f-serif); font-style: italic; font-size: 19px; line-height: 1.2; color: var(--red); }

@media (max-width: 1023px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "in in" "wd wd" "c1 c2" "c3 c4" "ap ap" "bl bl"; }
}
@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; grid-template-areas: "in" "wd" "c1" "c2" "c3" "c4" "ap" "bl"; }
}

/* About page motion: light, CSS-only, triggered once as each card scrolls in */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal .mark { clip-path: inset(0 100% 0 0); transition: clip-path .9s var(--ease) .35s; }
  .js .reveal.in .mark { clip-path: inset(0 0 0 0); }
  .js .c-do h3 span { background-size: 0% 2px; transition: background-size .8s var(--ease) .35s; }
  .js .c-do.in h3 span { background-size: 100% 2px; }
  .js .c-label::after { transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease) .3s; }
  .js .c-label.in::after { transform: scaleX(1); }
  .js .c-bullets ol::before { transform: scaleY(0); transition: transform 1.2s var(--ease) .2s; }
  .js .c-bullets.in ol::before { transform: scaleY(1); }
  .js .c-bullets li { opacity: 0; transform: translateX(-10px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
  .js .c-bullets.in li { opacity: 1; transform: none; }
  .js .c-bullets.in li:nth-child(1) { transition-delay: .3s; }
  .js .c-bullets.in li:nth-child(2) { transition-delay: .45s; }
  .js .c-bullets.in li:nth-child(3) { transition-delay: .6s; }
  .js .c-bullets.in li:nth-child(4) { transition-delay: .75s; }
  .js .c-bullets.in li:nth-child(5) { transition-delay: .9s; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .topo::before { transform: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .rec-dot { animation: none; }
}
