/* ===========================================================
   Abdelrahman Nagy — Portfolio
   Direction: "On Air" — editorial broadcast aesthetic.
   =========================================================== */

:root {
  --ink: #0a0a0b;
  --ink-2: #121214;
  --ink-3: #1b1b1f;
  --line: rgba(243, 239, 231, 0.12);
  --cream: #f3efe7;
  --muted: #a39e94;
  --red: #ff3b1f;
  --red-soft: rgba(255, 59, 31, 0.14);
  --lime: #d7ff3a;
  --radius: 22px;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --f-display: "Unbounded", system-ui, sans-serif;
  --f-body: "Manrope", system-ui, sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

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

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

img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--red); color: var(--ink); }

:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--lime); color: var(--ink); padding: 10px 16px; border-radius: 999px; font-weight: 700;
}
.skip:focus { left: 8px; }

/* grain overlay */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 90; opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

/* ---------- type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.h-section {
  font-family: var(--f-display); font-weight: 600; letter-spacing: -0.03em;
  font-size: clamp(34px, 6vw, 80px); line-height: 0.98; margin: 18px 0 0;
}
.serif { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.accent { color: var(--red); }
.lede { color: var(--muted); font-size: clamp(17px, 1.6vw, 20px); max-width: 60ch; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 50;
  width: min(calc(100% - 24px), 1100px);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 10px 10px 20px; border-radius: 999px;
  background: rgba(18, 18, 20, 0.66); border: 1px solid var(--line);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  transition: transform 0.4s var(--ease);
}
.nav.hide { transform: translate(-50%, -140%); }
.brand { font-family: var(--f-display); font-weight: 700; font-size: 15px; letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px; }
.brand .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 var(--red); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,59,31,.6); } 70% { box-shadow: 0 0 0 10px rgba(255,59,31,0); } 100% { box-shadow: 0 0 0 0 rgba(255,59,31,0); } }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav ul a { padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted); transition: color .2s, background .2s; }
.nav ul a:hover { color: var(--cream); background: var(--ink-3); }
.lang-switch { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang-switch button { font-size: 12px; font-weight: 800; padding: 6px 10px; border-radius: 999px; color: var(--muted); }
.lang-switch button[aria-pressed="true"] { background: var(--cream); color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 8px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  padding: 14px 22px; border-radius: 999px; font-weight: 800; font-size: 15px;
  transition: transform .25s var(--ease), background .25s, color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-red { background: var(--red); color: var(--ink); }
.btn-red:hover { background: var(--lime); }
.btn-ghost { border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--cream); }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn svg { width: 18px; height: 18px; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; padding: 130px 0 60px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg video, .hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .38; filter: grayscale(.35) contrast(1.08); }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(80% 60% at 80% 20%, rgba(255,59,31,.22), transparent 60%),
    linear-gradient(180deg, rgba(10,10,11,.55) 0%, rgba(10,10,11,.2) 40%, var(--ink) 96%);
}
.hero .wrap { position: relative; z-index: 1; }
.onair {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 12px; border-radius: 999px;
  border: 1px solid rgba(255,59,31,.5); background: var(--red-soft); font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
}
.onair i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: pulse 1.6s infinite; }
.hero h1 {
  font-family: var(--f-display); font-weight: 700; letter-spacing: -0.05em; line-height: .88;
  font-size: clamp(34px, 10.4vw, 146px); margin: 26px 0 0;
}
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line span { display: inline-block; transform: translateY(105%); animation: rise 1.1s var(--ease) forwards; }
.hero h1 .line:nth-child(2) span { animation-delay: .12s; }
@keyframes rise { to { transform: translateY(0); } }
.hero h1 .serif { font-weight: 400; letter-spacing: -0.03em; color: var(--red); }
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; margin-top: 36px; }
.roles { font-size: clamp(19px, 2.2vw, 28px); line-height: 1.3; font-weight: 500; max-width: 26ch; }
.roles .rot { color: var(--lime); display: inline-block; min-width: 1ch; }
.roles .rot::after { content: "▍"; color: var(--red); animation: blink 1s steps(1) infinite; margin-left: 2px; }
@keyframes blink { 50% { opacity: 0; } }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; font-weight: 600; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 16px; height: 16px; color: var(--red); }

/* ---------- marquee ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 22px 0; background: var(--ink-2); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: scroll 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: var(--f-display); font-weight: 600; font-size: clamp(20px, 2.6vw, 34px); letter-spacing: -0.02em; white-space: nowrap; display: inline-flex; align-items: center; gap: 56px; color: var(--cream); }
.marquee-track span::after { content: "✦"; color: var(--red); font-size: .6em; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
section { position: relative; }
.section { padding: clamp(80px, 12vw, 160px) 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; margin-bottom: clamp(40px, 6vw, 72px); }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 34px 24px 10px 0; border-right: 1px solid var(--line); }
.stat + .stat { padding-left: 24px; }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-family: var(--f-display); font-weight: 600; font-size: clamp(44px, 6vw, 84px); letter-spacing: -0.05em; line-height: 1; }
.stat b sup { color: var(--red); font-size: .45em; vertical-align: top; margin-left: 2px; }
.stat p { margin: 12px 0 0; color: var(--muted); font-size: 15px; max-width: 22ch; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.portrait { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; background: var(--ink-3); }
.portrait img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.portrait:hover img { transform: scale(1.04); }
.portrait .tag {
  position: absolute; left: 16px; bottom: 16px; right: 16px; display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; border-radius: 14px; background: rgba(10,10,11,.7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 13px; font-weight: 700;
}
.portrait .tag em { font-style: normal; color: var(--red); }
.about-copy p { font-size: clamp(18px, 1.7vw, 22px); line-height: 1.55; margin: 0 0 20px; }
.about-copy p.big { font-family: var(--f-display); font-weight: 500; font-size: clamp(24px, 2.8vw, 38px); letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 30px; }
.about-copy p.muted { color: var(--muted); font-size: 17px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.chip { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--cream); }
.chip.hot { border-color: var(--red); background: var(--red-soft); }

/* ---------- services ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.service {
  position: relative; padding: 30px 28px 32px; border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--line);
  overflow: hidden; transition: transform .4s var(--ease), border-color .3s; min-height: 290px; display: flex; flex-direction: column;
}
.service::before {
  content: ""; position: absolute; inset: 0; background: radial-gradient(400px 220px at var(--mx, 50%) var(--my, 0%), rgba(255,59,31,.16), transparent 70%);
  opacity: 0; transition: opacity .3s;
}
.service:hover { transform: translateY(-4px); border-color: rgba(255,59,31,.45); }
.service:hover::before { opacity: 1; }
.service .num { font-family: var(--f-display); font-size: 13px; color: var(--muted); font-weight: 600; }
.service .ico { width: 52px; height: 52px; border-radius: 16px; background: var(--ink-3); display: grid; place-items: center; margin: 22px 0 22px; color: var(--red); }
.service .ico svg { width: 26px; height: 26px; }
.service h3 { font-family: var(--f-display); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 10px; line-height: 1.15; }
.service p { color: var(--muted); margin: 0; font-size: 15.5px; }
.service ul { list-style: none; padding: 0; margin: auto 0 0; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 6px; }
.service li { font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: var(--ink-3); color: var(--cream); }
.service.feature { grid-column: span 2; background: linear-gradient(135deg, #1c0d0a 0%, var(--ink-2) 60%); }

/* ---------- work ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; font-weight: 700; color: var(--muted); transition: all .2s; }
.filters button:hover { color: var(--cream); border-color: var(--cream); }
.filters button[aria-pressed="true"] { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  position: relative; border-radius: var(--radius); overflow: hidden; background: var(--ink-2); border: 1px solid var(--line);
  display: flex; flex-direction: column; transition: transform .4s var(--ease), border-color .3s, opacity .3s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(243,239,231,.3); }
.card[hidden] { display: none; }
.card .media { position: relative; aspect-ratio: 16/10; background: var(--ink-3); overflow: hidden; }
.card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .4s; filter: saturate(.9); }
.card:hover .media img { transform: scale(1.05); filter: saturate(1.1); }
.card .media .ph {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px;
  background: radial-gradient(120% 90% at 20% 10%, var(--ph1, #3a1209), transparent 60%), radial-gradient(90% 80% at 90% 90%, var(--ph2, #1f2a05), transparent 60%), var(--ink-3);
}
.card .media .ph span { font-family: var(--f-display); font-weight: 700; font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -0.03em; line-height: 1; }
.card .play {
  position: absolute; right: 14px; bottom: 14px; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--red); color: var(--ink); transition: transform .3s var(--ease), background .3s;
}
.card:hover .play { transform: scale(1.1); background: var(--lime); }
.card .play svg { width: 20px; height: 20px; margin-left: 2px; }
.card .badge { position: absolute; left: 14px; top: 14px; padding: 6px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: rgba(10,10,11,.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.3; }
.card .meta { font-size: 13px; color: var(--muted); font-weight: 600; }
.card p { margin: 4px 0 0; font-size: 15px; color: var(--muted); }
.card .open { position: absolute; inset: 0; z-index: 2; }
.card.wide { grid-column: span 2; }
.card.wide .media { aspect-ratio: 16/8.2; }

/* ---------- featured films (case study) ---------- */
.case { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.case .reel-copy { grid-column: 1 / -1; flex-direction: row; align-items: flex-end; flex-wrap: wrap; }
.case .reel-copy > div { flex: 1 1 380px; }
.case .reel-copy ul { flex: 1 1 380px; }
.film { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--ink-3); aspect-ratio: 16/9; border: 1px solid var(--line); }
.film video { width: 100%; height: 100%; object-fit: cover; }
.film figcaption { position: absolute; left: 14px; bottom: 14px; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; background: rgba(10,10,11,.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.film .sound {
  position: absolute; right: 12px; top: 12px; z-index: 2; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(10,10,11,.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.film .sound svg { width: 18px; height: 18px; }
.film .sound[aria-pressed="true"] { background: var(--red); color: var(--ink); }

/* ---------- brands managed ---------- */
.brands { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 16px; }
.brand-card { padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--ink-2); display: flex; flex-direction: column; gap: 4px; transition: border-color .3s, transform .4s var(--ease); }
.brand-card:hover { border-color: var(--red); transform: translateY(-3px); }
.brand-card small { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.brand-card b { font-family: var(--f-display); font-weight: 600; font-size: 20px; letter-spacing: -0.02em; line-height: 1.15; margin-top: 6px; }
.brand-card span { color: var(--muted); font-size: 14px; }
.brand-card em { font-style: normal; color: var(--cream); font-weight: 800; font-size: 13px; margin-top: 12px; }
.brand-card em::after { content: " ↗"; color: var(--red); }
.subhead { font-family: var(--f-display); font-weight: 600; font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -0.02em; margin: clamp(56px, 8vw, 96px) 0 0; }
.reel-copy { padding: 34px; border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.reel-copy h3 { font-family: var(--f-display); font-weight: 600; font-size: clamp(26px, 3vw, 40px); letter-spacing: -0.03em; line-height: 1.05; margin: 0; }
.reel-copy ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.reel-copy li { display: flex; gap: 12px; color: var(--muted); font-size: 15.5px; }
.reel-copy li b { color: var(--cream); }
.reel-copy li::before { content: "→"; color: var(--red); font-weight: 800; }

/* ---------- voice ---------- */
.voice { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.vo {
  position: relative; padding: 26px 24px; border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 18px; min-height: 230px; transition: border-color .3s, transform .4s var(--ease);
}
.vo:hover { border-color: var(--red); transform: translateY(-3px); }
.vo .lang { font-family: var(--f-display); font-weight: 600; font-size: 28px; letter-spacing: -0.03em; line-height: 1; }
.vo .lang small { display: block; font-family: var(--f-body); font-size: 13px; color: var(--muted); letter-spacing: 0; margin-top: 8px; font-weight: 600; }
.bars { display: flex; align-items: center; gap: 3px; height: 38px; margin-top: auto; }
.bars i { flex: 1; background: var(--line); border-radius: 2px; height: 30%; transition: background .3s; }
.vo:hover .bars i { background: var(--red); animation: eq 0.9s ease-in-out infinite alternate; }
.vo .bars i:nth-child(3n) { animation-delay: -.3s; } .vo .bars i:nth-child(4n) { animation-delay: -.6s; } .vo .bars i:nth-child(5n) { animation-delay: -.15s; }
@keyframes eq { from { transform: scaleY(.4); } to { transform: scaleY(1.6); } }
.vo .listen { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; }
.vo .listen::after { content: "↗"; color: var(--red); }

/* ---------- journey ---------- */
.journey { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.stop { padding: 32px 28px 10px 0; border-right: 1px solid var(--line); }
.stop + .stop { padding-left: 28px; }
.stop:last-child { border-right: 0; }
.stop .flag { font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.stop h3 { font-family: var(--f-display); font-weight: 600; font-size: clamp(34px, 4.4vw, 60px); letter-spacing: -0.04em; margin: 10px 0 14px; line-height: 1; }
.stop p { color: var(--muted); margin: 0 0 14px; font-size: 15.5px; }
.stop ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.stop li { font-size: 15px; font-weight: 600; padding-left: 16px; position: relative; }
.stop li::before { content: ""; position: absolute; left: 0; top: .65em; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }

/* ---------- languages ---------- */
.langs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 16px; }
.langc { padding: 22px 24px; border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.langc b { font-family: var(--f-display); font-weight: 600; font-size: 20px; letter-spacing: -0.02em; }
.langc span { font-size: 13px; color: var(--muted); font-weight: 700; }
.meter { display: flex; gap: 4px; }
.meter i { width: 18px; height: 6px; border-radius: 3px; background: var(--line); }
.meter i.on { background: var(--red); }

/* ---------- contact ---------- */
.contact { padding: clamp(90px, 14vw, 180px) 0 60px; text-align: center; background: radial-gradient(70% 60% at 50% 0%, rgba(255,59,31,.18), transparent 70%); border-top: 1px solid var(--line); }
.contact h2 { font-family: var(--f-display); font-weight: 700; letter-spacing: -0.05em; line-height: .92; font-size: clamp(46px, 10vw, 150px); margin: 22px 0 28px; }
.contact h2 .serif { color: var(--red); font-weight: 400; }
.contact .lede { margin: 0 auto 36px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.socials { display: flex; justify-content: center; gap: 10px; margin-top: 44px; }
.socials a { width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: all .25s; }
.socials a:hover { background: var(--cream); color: var(--ink); }
.socials svg { width: 20px; height: 20px; }
footer { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 28px 0; margin-top: 80px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 600; text-align: left; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 80; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(5,5,6,.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.modal.open { display: flex; }
.modal-inner { position: relative; width: min(1100px, 100%); }
.modal-frame { position: relative; aspect-ratio: 16/9; border-radius: 18px; overflow: hidden; background: #000; }
.modal-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.modal-frame.vertical { aspect-ratio: 9/16; width: min(420px, 100%, calc((100svh - 140px) * 9 / 16)); margin: 0 auto; background: #fff; }
.modal-close { position: absolute; top: -52px; right: 0; width: 42px; height: 42px; border-radius: 50%; background: var(--cream); color: var(--ink); display: grid; place-items: center; font-size: 22px; font-weight: 800; }
.modal-title { margin-top: 14px; font-weight: 700; color: var(--muted); font-size: 15px; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .services, .work-grid { grid-template-columns: repeat(2, 1fr); }
  .voice { grid-template-columns: repeat(2, 1fr); }
  .brands { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav ul { display: none; }
  .hero-grid, .about-grid { grid-template-columns: 1fr; }
  .hero-cta { justify-content: flex-start; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: 0; padding-left: 0 !important; border-bottom: 1px solid var(--line); padding-bottom: 24px; }
  .journey { grid-template-columns: 1fr; }
  .stop { border-right: 0; padding-left: 0 !important; border-bottom: 1px solid var(--line); padding-bottom: 28px; }
  .langs { grid-template-columns: 1fr; }
  .portrait { aspect-ratio: 4/4.4; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .services, .work-grid, .voice { grid-template-columns: 1fr; }
  .service.feature, .card.wide { grid-column: auto; }
  .card.wide .media { aspect-ratio: 16/10; }
  .case { grid-template-columns: 1fr; }
  .reel-copy { padding: 24px; }
  .brands { grid-template-columns: 1fr; }
  .nav { padding-left: 16px; }
  .nav .btn-sm { display: none; }
  .hero { padding-top: 110px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero h1 .line span { transform: none; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* waveform: static bar heights */
.bars i:nth-child(8n+1) { height: 35%; } .bars i:nth-child(8n+2) { height: 70%; } .bars i:nth-child(8n+3) { height: 50%; }
.bars i:nth-child(8n+4) { height: 90%; } .bars i:nth-child(8n+5) { height: 40%; } .bars i:nth-child(8n+6) { height: 65%; }
.bars i:nth-child(8n+7) { height: 30%; } .bars i:nth-child(8n) { height: 55%; }
.bars i { background: rgba(243, 239, 231, 0.22); }
