/* ============================================================
   ID8 Films — Landing Page
   Layout structure replicated from synima.com/ai-video-agency/
   Theme: ID8NXT red accent (#dc1f3e) + warm off-white whitespace.
   (synima's yellow accent → red; dark bands kept; type scaled up.)
   ============================================================ */

:root {
  --red: #dc1f3e;
  --red-dark: #b01530;
  --ink: #110210;          /* synima dark purple-black bands */
  --ink-soft: #1c0a23;
  --paper: #eeede9;        /* synima off-white body bg */
  --paper-2: #f6f5f2;
  --text: #110210;
  --text-on-dark: #ffffff;
  --text-gray: #4a4a4a;
  --text-muted: #8a8a8a;
  --border: #d9d8d2;
  --border-dark: rgba(255, 255, 255, 0.14);
  --font: "Golos Text", "Inter", system-ui, sans-serif;

  --maxw: 1320px;
  --gutter: 60px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }   /* never allow horizontal scroll */
body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  font-family: var(--font);
  background: var(--paper);
  color: var(--text);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, p { margin: 0; }
::selection { background: var(--red); color: #fff; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.text-red { color: var(--red); }

/* ── Buttons (synima orange pill → red pill) ─────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 18px 38px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  background: var(--red);
  color: #fff;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn:hover { background: var(--red-dark); transform: translateY(-2px); }
.btn--lg { font-size: 1.2rem; padding: 22px 46px; }

/* ── Reveal on scroll ────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.revealed { opacity: 1; transform: none; }

/* ============================================================
   HEADER / NAV  (logo left · "Let's connect" pill + hamburger right)
   ============================================================ */
.site-header {
  position: absolute;   /* sits atop the hero and scrolls away with the page */
  inset: 0 0 auto 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px var(--gutter);
}
.site-header__logo {
  display: inline-flex;
  align-items: center;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}
.site-header__logo span { color: var(--red); }
.site-header__logo img { height: 72px; width: auto; display: block; }
.site-header__right { display: flex; align-items: center; gap: 22px; }
.site-header .btn { padding: 14px 30px; font-size: 1rem; }
.nav-burger {
  width: 46px; height: 46px;
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  background: none; border: none; cursor: pointer; padding: 0 10px;
}
.nav-burger span { height: 2.5px; background: #fff; border-radius: 2px; }

/* ============================================================
   1. HERO  — full-bleed showreel, big centered heading
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: #fff;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media video,
.hero__placeholder { width: 100%; height: 100%; object-fit: cover; }
.hero__placeholder {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(120deg, #11070f 0%, #2a1230 55%, var(--red-dark) 130%);
  color: rgba(255,255,255,0.3);
  font-size: 1rem; letter-spacing: 0.12em; text-transform: uppercase;
}
.hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(10,2,12,0.55), rgba(10,2,12,0.35) 45%, rgba(10,2,12,0.6));
}
.hero__content { position: relative; z-index: 2; max-width: 780px; padding: 0 32px; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.hero__heading {
  font-size: clamp(2.4rem, 4.2vw, 4rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
}
.hero__heading .text-red { color: var(--red); }
.hero__sub {
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  color: rgba(255,255,255,0.72);
  max-width: 560px;
  line-height: 1.65;
  font-weight: 400;
}

/* ============================================================
   2. BOOK-A-CALL CTA  — under hero, do not move
   ============================================================ */
.bookcall {
  background: var(--paper);
  color: var(--text);
  text-align: center;
  padding: 150px var(--gutter);
}
.bookcall__heading {
  font-size: clamp(2.8rem, 4.8vw, 4.2rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  max-width: 900px;
  margin: 0 auto 28px;
}
.bookcall__sub {
  font-size: 1.25rem;
  color: var(--text-gray);
  max-width: 720px;
  margin: 0 auto 44px;
}

/* ============================================================
   3-b. WORK CTA BAND  — bottom of work section, reference style
   ============================================================ */
.work-cta-band {
  background: var(--ink);
  text-align: center;
  padding: 120px var(--gutter) 40px;
}
.work-cta-band__heading {
  font-size: clamp(2.8rem, 5vw, 4.4rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: #fff;
  max-width: 700px;
  margin: 0 auto 40px;
  text-wrap: balance;
}

/* ============================================================
   3-a. WORK HEADER  — title + inline CTA link on dark bg
   ============================================================ */
.work__header {
  position: relative; z-index: 2;
  display: flex; align-items: baseline; justify-content: center;
  gap: 24px; margin-bottom: 44px;
  text-align: center;
}
.work__cta {
  font-size: 1rem; font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
  transition: color 0.2s ease;
}
.work__cta:hover { color: #fff; }

/* ============================================================
   3. OUR WORK  — dark full-bleed 2-col image grid (NO gaps/cards)
   "Our work in action"
   ============================================================ */
.work {
  position: relative;
  background: var(--ink);
  color: #fff;
  padding: 110px 0 0;
}
.work__title {
  font-size: clamp(2.8rem, 4.8vw, 4.2rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0;
  color: #fff;
}
.work__grid {
  position: relative;
  display: grid;
  /* minmax(0,1fr) lets tracks shrink below their media's intrinsic size —
     without the 0 minimum a video's natural width can blow out a column */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;                       /* edge-to-edge tiles, touching neatly */
}
/* media must never expand the tile past its cell, whatever its intrinsic size */
.work-tile__media > * { max-width: 100%; max-height: 100%; }
/* dissolve the bottom edge of the last tile row into the dark section below */
.work__grid::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 90px;
  background: linear-gradient(to bottom, rgba(17, 2, 16, 0), var(--ink) 85%);
  pointer-events: none;
  z-index: 3;                   /* above media (1-2), below captions (4) */
}
.work-tile {
  position: relative;
  aspect-ratio: 16 / 9;      /* matches the 1920x1080 media exactly (no bars) */
  overflow: hidden;
  display: block;
  background: var(--paper);  /* light fallback — no dark sliver can peek at seams */
}
/* the media wrapper itself bleeds ~1px past every tile edge, so when the tile
   clips it the fill reaches the very boundary and adjacent tiles meet seamlessly */
.work-tile__media { position: absolute; inset: -1px; }
.work-tile__media > * {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.media-ph { z-index: 0; }                       /* shown only while assets are missing */
.work-tile__img { z-index: 1; transition: transform 0.7s ease, opacity 0.35s ease; }
.work-tile:hover .work-tile__img { transform: scale(1.05); }
/* YouTube embed (injected on hover) sits above the thumbnail; scaled up a touch
   so the 16:9 iframe fully covers the tile with no letterbox edge */
.work-tile__embed {
  z-index: 2;
  border: 0;
  opacity: 0;
  transition: opacity 0.35s ease;
  /* cover the tile: overscan slightly to crop any player chrome at the edges */
  width: 100%; height: 100%;
  transform: scale(1.35);
  pointer-events: none;         /* clicks pass through to the tile / link */
}
.work-tile.is-playing .work-tile__embed { opacity: 1; }
.work-tile.is-playing .work-tile__img { opacity: 0; }
/* if a thumbnail fails to load, it collapses so the placeholder shows through */
.work-tile__img:not([src]) { display: none; }
.work-tile__shade {
  position: absolute; inset: 0;
  z-index: 3;                  /* above the img (1) and video (2) media layers */
  /* smooth fade that reaches a strong bottom so the caption is always readable */
  background: linear-gradient(
    180deg,
    rgba(17, 2, 16, 0) 0%,
    rgba(17, 2, 16, 0.08) 40%,
    rgba(17, 2, 16, 0.4) 62%,
    rgba(17, 2, 16, 0.78) 82%,
    rgba(17, 2, 16, 0.96) 100%
  );
}
.work-tile__body {
  position: absolute; left: 38px; bottom: 30px; right: 38px;
  z-index: 4;                  /* caption sits above shade + media */
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);  /* keeps text legible on bright frames */
}
.work-tile__title {
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.work-tile__title .work-tile__client { color: #fff; font-weight: 400; opacity: 0.85; }
.work-tile__title .work-tile__name { color: var(--red); }
.work-tile__link {
  display: inline-flex; align-items: center;
  font-size: 1.05rem; font-weight: 600; color: #fff;
}

/* placeholder fill */
.media-ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: repeating-linear-gradient(45deg, #241430, #241430 16px, #2c1838 16px, #2c1838 32px);
  color: rgba(255,255,255,0.4); font-size: 0.95rem; letter-spacing: 0.06em; padding: 14px;
}
.media-ph--light {
  background: repeating-linear-gradient(45deg, #e7e6e1, #e7e6e1 16px, #dedcd5 16px, #dedcd5 32px);
  color: var(--text-muted);
}

/* ============================================================
   4. WHY CHOOSE  — two-col: left sticky heading · right copy+bullets
   ============================================================ */
.why { background: var(--paper); padding: 130px 0; }
.why__grid {
  display: grid;
  grid-template-columns: 1.15fr 1.4fr;
  gap: 80px;
  align-items: start;
}
.why__heading {
  position: sticky; top: 120px;
  font-size: clamp(2.8rem, 4.8vw, 4.2rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.why__heading .text-red { color: var(--red); }
.why__body p { font-size: 1.2rem; color: var(--text-gray); margin-bottom: 30px; max-width: 760px; }
.why__list { list-style: none; padding: 0; margin: 0; }
.why__list li {
  font-size: 1.15rem;
  color: var(--text-gray);
  padding: 22px 0 22px 0;
  border-top: 1px solid var(--border);
}
.why__list li:last-child { border-bottom: 1px solid var(--border); }
.why__list strong { color: var(--text); font-weight: 700; }

/* ============================================================
   5. HORIZONTAL CAROUSEL  — image cards w/ dark caption bar + arrow
   ============================================================ */
.hcar { background: var(--paper); padding: 0 0 130px; overflow: hidden; }
.hcar__head { margin-bottom: 40px; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.hcar__title { font-size: clamp(2.8rem, 4.8vw, 4.2rem); font-weight: 600; letter-spacing: -0.01em; }
.embla { position: relative; }
.embla__track {
  display: flex; gap: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 0;
  scrollbar-width: none;
  cursor: grab;
}
.embla__track::-webkit-scrollbar { display: none; }
/* during an active drag: no smooth easing, no snap-fighting — track the finger 1:1 */
.embla__track.dragging { cursor: grabbing; scroll-behavior: auto; scroll-snap-type: none; }
.embla__slide {
  position: relative;
  flex: 0 0 20%;
  height: 60vh;
  scroll-snap-align: start;
  background: var(--ink);
  border-radius: 0;
  overflow: hidden;
}
.embla__img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* caption overlays the bottom of the image, fading in via gradient (no hard strip) */
.embla__cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 60px 26px 22px;
  color: #fff;
  background: linear-gradient(
    180deg,
    rgba(17, 2, 16, 0) 0%,
    rgba(17, 2, 16, 0.35) 45%,
    rgba(17, 2, 16, 0.85) 100%
  );
}
.embla__cap-title { font-size: 1.25rem; font-weight: 700; }
.embla__cap svg { width: 42px; height: 14px; color: var(--red); flex: 0 0 auto; }

/* ============================================================
   6. LOGO MARQUEE  — muted logos scrolling on off-white
   ============================================================ */
.logos { background: var(--paper); padding: 80px 0 110px; }
.logos__head { text-align: center; margin-bottom: 60px; }
.logos__heading {
  font-family: var(--font); font-size: clamp(2.8rem, 4.8vw, 4.2rem);
  font-weight: 600; letter-spacing: -0.03em; line-height: 1.1;
  color: var(--text); margin: 0 0 20px;
}
.logos__sub {
  font-size: 1.1rem; color: var(--text-muted); max-width: 480px;
  margin: 0 auto; line-height: 1.6;
}
.rfm {
  display: flex; width: 100%; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.rfm__strip {
  flex: 0 0 auto; min-width: 100%;
  display: flex; align-items: center;
  animation: rfm-scroll 55s linear infinite;
  will-change: transform;
}
.rfm__row { display: flex; align-items: center; gap: 72px; padding-right: 72px; }
.rfm__logo {
  height: 44px; width: auto; max-width: 140px; object-fit: contain; flex: 0 0 auto;
  filter: grayscale(1); opacity: 0.75; transition: opacity 0.2s ease;
  user-select: none; pointer-events: none;
}
@keyframes rfm-scroll { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* ============================================================
   7. FAQs  — big heading + full-width single-col accordion rows
   ============================================================ */
.faq { background: var(--paper); padding: 60px 0 140px; }
.faq__title { font-size: clamp(2.8rem, 4.8vw, 4.2rem); font-weight: 600; letter-spacing: -0.02em; margin-bottom: 50px; }
.faq__item { border-top: 1px solid var(--border); }
.faq__item:last-child { border-bottom: 1px solid var(--border); }
.faq__item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
  padding: 34px 0;
  font-size: 1.4rem; font-weight: 500;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__chev {
  flex: 0 0 auto; width: 26px; height: 26px; position: relative; transition: transform 0.3s ease;
}
.faq__chev::before, .faq__chev::after {
  content: ""; position: absolute; top: 50%; width: 14px; height: 2.5px; background: var(--red); border-radius: 2px;
}
.faq__chev::before { left: 0; transform: rotate(45deg); }
.faq__chev::after { right: 0; transform: rotate(-45deg); }
.faq__item[open] .faq__chev { transform: rotate(180deg); }
.faq__answer {
  padding: 0 80px 36px 0;
  font-size: 1.15rem; color: var(--text-gray);
  animation: faq-open 0.35s ease;
}
@keyframes faq-open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ============================================================
   8. FOOTER
   ============================================================ */
.footer { background: var(--ink); color: #fff; padding: 90px 0 50px; }

.footer__cta-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
  padding-bottom: 80px;
}
.footer__cta-heading {
  font-size: clamp(2.8rem, 5vw, 4.4rem);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.05;
  margin-bottom: 32px;
}
.footer__cta-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 1.15rem; font-weight: 600;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s ease;
}
.footer__cta-link:hover { color: #fff; }

.footer__cta-right {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px;
  align-items: start;
}
.footer__info-col h4 {
  font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--red); margin-bottom: 14px;
}
.footer__info-col p,
.footer__info-col a {
  display: block; font-size: 0.95rem;
  color: rgba(255,255,255,0.7); line-height: 1.7; margin-bottom: 4px;
  overflow-wrap: anywhere;   /* break long emails/URLs instead of overflowing */
}
.footer__info-col a:hover { color: #fff; }

.footer__bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding-top: 36px; border-top: 1px solid var(--border-dark);
}
.footer__logo img { height: 48px; width: auto; display: block; filter: brightness(0) invert(1); }
.footer__legal { display: flex; gap: 26px; }
.footer__legal a { color: rgba(255,255,255,0.6); font-size: 0.95rem; }
.footer__legal a:hover { color: #fff; }

/* ============================================================
   RESPONSIVE  — four primary ranges + height & ultra-wide edges

   Range map:
     A. 0–767px    (phones; extra care ≤359px)
     B. 768–1023px (tablets / small landscape)
     C. 1024–1439px(small laptops, chromebooks)
     D. ≥1440px    (large + ultra-wide)
   Plus: short-viewport (height ≤760px) and ultra-wide (≥1920px) edges.
   ============================================================ */

/* ─────────────────────────────────────────────────────────
   RANGE D — ≥1440px : large screens & ultra-wide

   Everything is bounded to the SAME content width (--maxw) so the
   full-bleed elements (work grid, marquee, carousel) share their left
   edge with the contained titles above them — no misalignment.
   ───────────────────────────────────────────────────────── */
@media (min-width: 1440px) {
  :root { --gutter: 80px; --maxw: 1400px; }
  .embla__slide { height: 52vh; }
}

/* Large desktops 1680–1919px */
@media (min-width: 1680px) {
  :root { --maxw: 1560px; }
}

/* Ultra-wide (≥1920px): cap ALL full-bleed elements to --maxw + gutters
   so tiles/cards/logos align with the centred titles and never balloon. */
@media (min-width: 1920px) {
  :root { --maxw: 1680px; --gutter: 100px; }

  /* work grid & carousel stay full-bleed (edge-to-edge) at every width —
     only the contained text sections are capped by --maxw via .container */

  /* carousel: 5 cards, aspect-correct height */
  .embla__slide { flex-basis: 20%; height: 26vw; max-height: 560px; }
}

/* 2560px+ true ultra-wide: hold the content box, add breathing room */
@media (min-width: 2400px) {
  :root { --maxw: 1760px; }
  .embla__slide { height: 620px; }
}

/* ─────────────────────────────────────────────────────────
   RANGE C — 1024–1439px : small laptops / chromebooks
   ───────────────────────────────────────────────────────── */
@media (max-width: 1439px) {
  :root { --gutter: 48px; }
}
@media (min-width: 1024px) and (max-width: 1439px) {
  .why__grid { grid-template-columns: 1fr 1.4fr; gap: 60px; }
  .embla__slide { height: 52vh; }
}

/* ─────────────────────────────────────────────────────────
   RANGE B — 768–1023px : tablets / small landscape
   ───────────────────────────────────────────────────────── */
@media (max-width: 1023px) {
  :root { --gutter: 40px; }

  /* stack the two-column layouts */
  .why__grid { grid-template-columns: 1fr; gap: 36px; }
  .why__heading { position: static; }

  /* footer: heading over a 3-up (still fits) info block */
  .footer__cta-row { grid-template-columns: 1fr; gap: 48px; padding-bottom: 60px; }
  .footer__cta-right { grid-template-columns: repeat(3, 1fr); gap: 28px; }

  /* trim the oversized vertical rhythm */
  .bookcall { padding: 110px var(--gutter); }
  .work { padding: 90px 0 0; }
  .work-cta-band { padding: 100px var(--gutter) 40px; }
  .why { padding: 100px 0; }
  .hcar { padding: 0 0 100px; }
  .logos { padding: 70px 0 90px; }
  .faq { padding: 50px 0 110px; }

  /* carousel: 3 cards in view */
  .embla__slide { flex-basis: 33.333%; height: 44vh; }

  /* logo marquee: smaller logos + tighter gaps */
  .rfm__row { gap: 52px; padding-right: 52px; }
  .rfm__logo { height: 38px; max-width: 120px; }
}

/* ─────────────────────────────────────────────────────────
   RANGE A — 0–767px : phones
   ───────────────────────────────────────────────────────── */
@media (max-width: 767px) {
  :root { --gutter: 24px; }
  body { font-size: 16px; }

  /* header: smaller logo, compact pill so nothing wraps */
  .site-header { padding: 20px var(--gutter); }
  .site-header__logo img { height: 52px; }
  .site-header .btn { padding: 12px 22px; font-size: 0.95rem; }

  /* hero: use dynamic vh so mobile browser chrome doesn't clip content */
  .hero { min-height: 100svh; }
  .hero__content { padding: 0 20px; gap: 22px; }
  .hero__sub { font-size: 1.02rem; }

  /* CTAs: cut the giant padding */
  .bookcall { padding: 80px var(--gutter); }
  .bookcall__sub { font-size: 1.1rem; margin-bottom: 36px; }
  .work-cta-band { padding: 72px var(--gutter) 32px; }

  /* work grid: single column of 16:9 tiles */
  .work { padding: 72px 0 0; }
  .work__grid { grid-template-columns: minmax(0, 1fr); }
  .work__grid::after { height: 60px; }
  .work-tile__body { left: 24px; right: 24px; bottom: 22px; }
  .work-tile__title { font-size: 1.35rem; margin-bottom: 8px; }
  .work-tile__link { font-size: 0.95rem; }

  /* section rhythm */
  .why { padding: 72px 0; }
  .hcar { padding: 0 0 72px; }
  .logos { padding: 56px 0 72px; }
  .faq { padding: 40px 0 80px; }

  /* why list */
  .why__body p { font-size: 1.08rem; }
  .why__list li { font-size: 1.05rem; padding: 18px 0; }

  /* carousel: ~1.2 cards so the next one peeks (affordance to swipe) */
  .embla__slide { flex-basis: 82%; height: 46vh; }
  .embla__cap { padding: 48px 20px 18px; }
  .embla__cap-title { font-size: 1.1rem; }

  /* marquee */
  .rfm__row { gap: 40px; padding-right: 40px; }
  .rfm__logo { height: 32px; max-width: 100px; }

  /* FAQ: tighter type, no right padding gutter on answers */
  .faq__item summary { font-size: 1.12rem; gap: 18px; padding: 26px 0; }
  .faq__answer { padding: 0 0 28px 0; font-size: 1.02rem; }

  /* footer: fits small phones, breathes on tall ones — vertical rhythm
     scales with viewport height (vh) between a compact and a roomy bound */
  .footer { padding: clamp(48px, 8vh, 90px) 0 clamp(28px, 4vh, 50px); }
  .footer__cta-row {
    grid-template-columns: 1fr;
    gap: clamp(26px, 5vh, 48px);
    padding-bottom: clamp(30px, 5vh, 56px);
  }
  .footer__cta-left, .footer__cta-right { min-width: 0; }
  .footer__cta-heading { font-size: clamp(1.9rem, 7.5vw, 3rem); margin-bottom: clamp(16px, 2.5vh, 28px); line-height: 1.08; }
  .footer__cta-link { font-size: 1.05rem; }
  /* two-up info grid keeps the block short; address spans full width on top */
  .footer__cta-right { grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vh, 34px) 24px; }
  .footer__info-col:first-child { grid-column: 1 / -1; }
  .footer__info-col h4 { margin-bottom: clamp(8px, 1.4vh, 14px); }
  .footer__info-col p, .footer__info-col a { font-size: 0.92rem; line-height: 1.6; margin-bottom: 3px; }
  .footer__bottom { gap: 14px; padding-top: clamp(22px, 3.5vh, 36px); }
  .footer__logo img { height: 42px; }
}

/* Extra care for very small phones (≤359px) */
@media (max-width: 359px) {
  :root { --gutter: 16px; }
  .site-header__logo img { height: 44px; }
  .site-header .btn { padding: 10px 16px; font-size: 0.85rem; }
  .btn--lg { font-size: 1.02rem; padding: 18px 26px; }
  .bookcall { padding: 64px var(--gutter); }
  .work-cta-band { padding: 60px var(--gutter) 28px; }
  .embla__slide { flex-basis: 88%; height: 42vh; }
  .work-tile__body { left: 18px; right: 18px; bottom: 18px; }
}

/* ─────────────────────────────────────────────────────────
   SHORT VIEWPORT — height ≤760px (e.g. 1366×768 laptops, landscape)
   Keep the full-height hero from swallowing the CTA button, and
   stop vh-based carousel cards from overflowing the fold.
   ───────────────────────────────────────────────────────── */
@media (max-height: 760px) and (min-width: 768px) {
  .hero { min-height: 640px; }
  .embla__slide { height: 440px; }
}
/* landscape phones: very short + narrow — let the hero shrink to content */
@media (max-height: 500px) and (max-width: 900px) {
  .hero { min-height: 460px; }
  .bookcall { padding: 56px var(--gutter); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rfm__strip { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .work-tile__img { transition: none; }
  .embla__track { scroll-behavior: auto; }
}
