/* =========================================================
   GDM × RRFM — Design System
   A heritage-premium aesthetic inspired by Apple's cinematic
   storytelling and the warm craft of Indian milling.
   ========================================================= */

:root {
  /* Palette — warm heritage */
  --ivory: #FAF6EF;
  --cream: #F3EADB;
  --surface: #FFFFFF;
  --ink: #1E1B16;
  --ink-soft: #3B352C;
  --muted: #6B6558;
  --line: #E8DFCF;

  /* Brand */
  --orange: #E8631C;
  --orange-deep: #C44E10;
  --mustard: #E8AB2C;
  --brick: #8B3A1A;
  --wheat: #D9B26B;
  --leaf: #5B6B3C;

  /* Gradients */
  --grad-warm: linear-gradient(135deg, #E8631C 0%, #E8AB2C 100%);
  --grad-subtle: linear-gradient(180deg, #FAF6EF 0%, #F3EADB 100%);
  --grad-hero: radial-gradient(1200px 600px at 80% 10%, rgba(232,171,44,.22), transparent 60%),
               radial-gradient(900px 500px at 10% 80%, rgba(232,99,28,.15), transparent 60%),
               linear-gradient(180deg, #FAF6EF 0%, #F3EADB 100%);

  /* Type scale */
  --serif: "Fraunces", "Playfair Display", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Motion */
  --ease-smooth: cubic-bezier(.22,.61,.36,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
  --dur-fast: 280ms;
  --dur-med:  520ms;
  --dur-slow: 900ms;

  /* Shadows */
  --shadow-sm: 0 2px 10px rgba(30,27,22,0.05);
  --shadow-md: 0 12px 40px rgba(30,27,22,0.08);
  --shadow-lg: 0 30px 80px rgba(30,27,22,0.12);

  /* Layout */
  --container: 1240px;
  --radius: 20px;
  --radius-sm: 12px;
  --radius-lg: 32px;
}

/* Animation mode toggle — user can switch via nav */
html[data-motion="subtle"]  { --dur-med: 340ms; --dur-slow: 460ms; }
html[data-motion="minimal"] { --dur-fast: 120ms; --dur-med: 180ms; --dur-slow: 220ms; }
html[data-motion="minimal"] .parallax,
html[data-motion="minimal"] .reveal-img::after { display: none; }

/* Reset & base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--ivory);
  color: var(--ink);
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

/* Typography */
h1, h2, h3, h4, h5 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.08;
}
h1 { font-size: clamp(2.6rem, 6vw, 5.2rem); font-weight: 400; }
h2 { font-size: clamp(2rem, 4.2vw, 3.6rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); }
h4 { font-size: 1.25rem; }
p  { color: var(--ink-soft); }
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1rem;
}
.lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--ink-soft); max-width: 62ch; }

/* Layout utilities */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.section { padding: clamp(80px, 12vw, 160px) 0; position: relative; }
.section-sm { padding: clamp(56px, 8vw, 96px) 0; }
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px){
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .grid-3-md { grid-template-columns: repeat(2, 1fr) !important; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600; font-size: 15px;
  transition: transform var(--dur-fast) var(--ease-smooth),
              background var(--dur-fast), color var(--dur-fast), box-shadow var(--dur-fast);
  will-change: transform;
}
.btn svg { width: 16px; height: 16px; transition: transform var(--dur-fast) var(--ease-smooth); }
.btn:hover { transform: translateY(-2px); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--ink); color: var(--ivory); }
.btn-primary:hover { background: var(--orange); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-warm { background: var(--grad-warm); color: #fff; }

/* Navigation */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 0;
  background: rgba(250,246,239,0.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(232,223,207,0.6);
  transition: transform var(--dur-med) var(--ease-smooth), background var(--dur-fast);
}
.nav.hide { transform: translateY(-100%); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav__brand { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 1.2rem; font-weight: 500; }
.nav__brand .logo { height: 52px; width: auto; object-fit: contain; }
.nav__brand .brand-text { line-height: 1; }
.nav__brand .brand-text small { display: block; font-family: var(--sans); font-size: 10px; letter-spacing: 0.18em; color: var(--muted); text-transform: uppercase; margin-top: 3px; }
.nav__links { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav__links a {
  padding: 10px 14px; font-size: 14.5px; font-weight: 500;
  border-radius: 999px; color: var(--ink-soft);
  transition: color var(--dur-fast), background var(--dur-fast);
}
.nav__links a:hover, .nav__links a.active { color: var(--ink); background: rgba(232,99,28,0.08); }
.nav__cta { display: flex; align-items: center; gap: 10px; }
.motion-toggle {
  display: flex; align-items: center; padding: 4px; border: 1px solid var(--line);
  border-radius: 999px; background: var(--surface);
}
.motion-toggle button {
  padding: 6px 12px; font-size: 11px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); border-radius: 999px;
  transition: all var(--dur-fast);
}
.motion-toggle button.on { background: var(--ink); color: var(--ivory); }
.nav__burger { display: none; width: 40px; height: 40px; border-radius: 12px; }
.nav__burger span { display: block; width: 20px; height: 1.5px; background: var(--ink); margin: 4px auto; transition: all var(--dur-fast); }
@media (max-width: 1100px){
  .nav__links, .motion-toggle { display: none; }
  .nav__burger { display: block; }
}

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99; background: var(--ivory);
  padding: 100px 32px 40px; transform: translateY(-100%);
  transition: transform var(--dur-med) var(--ease-smooth);
  display: flex; flex-direction: column; gap: 10px;
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a { font-family: var(--serif); font-size: 2rem; padding: 10px 0; border-bottom: 1px solid var(--line); }

/* ========= HERO ========= */
.hero {
  position: relative; padding: 160px 0 80px;
  min-height: 92vh; display: flex; align-items: center;
  background: var(--grad-hero);
  overflow: hidden;
}
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.6); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.hero__eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); animation: pulse 2s ease-in-out infinite; }
.hero h1 { margin-top: 28px; }
.hero h1 .accent { font-style: italic; color: var(--orange); }
.hero p.lead { margin-top: 28px; }
.hero__cta { margin-top: 40px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero__meta { margin-top: 48px; display: flex; gap: 40px; flex-wrap: wrap; }
.hero__meta div strong { display: block; font-family: var(--serif); font-size: 2rem; color: var(--ink); }
.hero__meta div span { font-size: 13px; color: var(--muted); }

.hero__visual { position: relative; height: 560px; }
.hero__visual .ring {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(232,171,44,.35), transparent 60%);
  animation: float 8s ease-in-out infinite;
}
.hero__visual .card {
  position: absolute; background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  padding: 24px; width: 260px;
}
.hero__visual .card .tag { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--orange); font-weight: 700; }
.hero__visual .card h4 { font-family: var(--serif); margin: 8px 0; }
.hero__visual .card p { font-size: 13px; color: var(--muted); }
.hero__visual .card.c1 { top: 30px; left: 0; animation: floatY 6s ease-in-out infinite; }
.hero__visual .card.c2 { top: 180px; right: 10px; animation: floatY 6s ease-in-out infinite 2s; }
.hero__visual .card.c3 { bottom: 20px; left: 60px; animation: floatY 6s ease-in-out infinite 4s; }

.hero__visual .orb {
  position: absolute; inset: 80px 80px 80px 80px;
  border-radius: 50%;
  background: var(--grad-warm);
  filter: blur(40px); opacity: .35;
}

@media (max-width: 900px){
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { height: 380px; }
}

/* ========= MARQUEE (client carousel) ========= */
.marquee {
  padding: 60px 0 80px; overflow: hidden;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.marquee__label {
  text-align: center; font-size: 12px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 36px;
}
.marquee__track {
  display: flex; gap: 80px; width: max-content;
  animation: scroll-x 38s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 3vw, 2.4rem);
  color: var(--ink); white-space: nowrap; display: flex; align-items: center; gap: 40px;
  opacity: 0.55; transition: opacity var(--dur-fast);
}
.marquee__item:hover { opacity: 1; color: var(--orange); }
.marquee__item::after { content: "·"; color: var(--wheat); }

/* ========= ACHIEVEMENTS ========= */
.stats {
  background: var(--ink); color: var(--ivory);
  padding: clamp(100px, 14vw, 180px) 0;
  position: relative; overflow: hidden;
}
.stats::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(800px 400px at 20% 20%, rgba(232,171,44,.15), transparent 60%),
              radial-gradient(900px 500px at 80% 80%, rgba(232,99,28,.12), transparent 60%);
}
.stats__inner { position: relative; z-index: 1; }
.stats h2 { color: var(--ivory); }
.stats .eyebrow { color: var(--mustard); }
.stats p { color: rgba(250,246,239,0.68); }
.stats__grid { margin-top: 80px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid rgba(250,246,239,.12); }
.stat {
  padding: 48px 28px; border-right: 1px solid rgba(250,246,239,.12);
  border-bottom: 1px solid rgba(250,246,239,.12);
  position: relative;
}
.stat:last-child { border-right: none; }
.stat__num {
  font-family: var(--serif); font-size: clamp(3rem, 6vw, 5rem); font-weight: 400;
  color: var(--ivory); letter-spacing: -0.03em; line-height: 1;
  background: var(--grad-warm); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat__label { margin-top: 16px; color: rgba(250,246,239,0.7); font-size: 14px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
.stat__desc { margin-top: 10px; color: rgba(250,246,239,0.5); font-size: 14px; }
@media (max-width: 900px){
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2n) { border-right: none; }
}

/* ========= PRODUCT SHOWCASE ========= */
.showcase { background: var(--ivory); }
.showcase__header { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 72px; flex-wrap: wrap; }
.showcase__header h2 { max-width: 12ch; }
.showcase__header p { max-width: 48ch; }

.brand-tabs { display: inline-flex; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; margin-bottom: 48px; }
.brand-tabs button {
  padding: 10px 24px; border-radius: 999px; font-weight: 600; font-size: 14px;
  color: var(--muted); transition: all var(--dur-fast);
}
.brand-tabs button.active { background: var(--ink); color: var(--ivory); }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.product-grid--2col { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px){ .product-grid, .product-grid--2col { grid-template-columns: 1fr; } }

.product-card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 0; overflow: hidden;
  transition: transform var(--dur-med) var(--ease-smooth), box-shadow var(--dur-med);
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product-card__media {
  height: 280px; position: relative; overflow: hidden;
  background: var(--grad-subtle);
  display: flex; align-items: center; justify-content: center;
}
.product-card__media::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(400px 300px at 50% 30%, rgba(232,171,44,.25), transparent 60%);
}
.product-card__media .emoji {
  font-size: 120px; filter: drop-shadow(0 16px 30px rgba(30,27,22,.18));
  transition: transform var(--dur-slow) var(--ease-smooth);
}
.product-card:hover .product-card__media .emoji { transform: scale(1.08) rotate(-3deg); }
.product-card__media img {
  width: 100%; height: 100%;
  object-fit: contain; padding: 24px;
  position: relative; z-index: 1;
  transition: transform var(--dur-slow) var(--ease-smooth);
  filter: drop-shadow(0 16px 32px rgba(30,27,22,.18));
}
.product-card:hover .product-card__media img { transform: scale(1.07) translateY(-6px); }
.product-card__body .labels { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.product-card__body .labels span {
  padding: 4px 11px; font-size: 11px; border-radius: 999px; font-weight: 600;
  background: var(--cream); color: var(--ink-soft); border: 1px solid var(--line);
}
.product-card__body .labels span.highlight {
  background: rgba(232,99,28,0.1); color: var(--orange); border-color: rgba(232,99,28,0.25);
}
.product-card__body { padding: 28px; }
.product-card__body .brand { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--orange); font-weight: 700; }
.product-card__body h3 { margin: 8px 0 8px; font-family: var(--serif); }
.product-card__body p { font-size: 14.5px; color: var(--muted); }
.product-card__body .specs { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.product-card__body .specs span { padding: 5px 12px; background: var(--cream); color: var(--ink-soft); font-size: 12px; border-radius: 999px; font-weight: 500; }

/* ========= TESTIMONIAL (short) ========= */
.testimonial-short {
  padding: clamp(100px, 12vw, 160px) 0;
  background: var(--cream);
  text-align: center;
}
.testimonial-short blockquote {
  font-family: var(--serif); font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  line-height: 1.3; max-width: 24ch; margin: 0 auto;
  color: var(--ink); font-weight: 400;
}
.testimonial-short blockquote::before { content: "\201C"; color: var(--orange); font-size: 1.4em; line-height: 0; vertical-align: -.2em; margin-right: .1em; }
.testimonial-short cite { display: block; margin-top: 32px; font-style: normal; color: var(--muted); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }

/* ========= FOOTER ========= */
.footer {
  background: var(--ink); color: rgba(250,246,239,0.7);
  padding: 100px 0 40px;
  position: relative;
}
.footer a { color: rgba(250,246,239,0.7); transition: color var(--dur-fast); }
.footer a:hover { color: var(--mustard); }
.footer h4 { color: var(--ivory); font-family: var(--sans); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; margin-bottom: 24px; font-weight: 700; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 60px; }
.footer__brand p { max-width: 38ch; font-size: 14.5px; margin-top: 20px; line-height: 1.6; }
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 14.5px; }
.footer__base { margin-top: 80px; padding-top: 30px; border-top: 1px solid rgba(250,246,239,.1); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; font-size: 13px; color: rgba(250,246,239,.4); }
@media (max-width: 900px){ .footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; } }

/* ========= PAGE HEADERS ========= */
.page-hero {
  padding: 180px 0 100px;
  background: var(--grad-hero);
  position: relative; overflow: hidden;
}
.page-hero h1 { max-width: 18ch; }
.page-hero .lead { margin-top: 24px; }

/* ========= SECTION TRANSITIONS ========= */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity var(--dur-slow) var(--ease-smooth), transform var(--dur-slow) var(--ease-smooth); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: 100ms; }
.reveal.delay-2 { transition-delay: 200ms; }
.reveal.delay-3 { transition-delay: 300ms; }
.reveal.delay-4 { transition-delay: 400ms; }
html[data-motion="minimal"] .reveal { opacity: 1; transform: none; }

.reveal-img { position: relative; overflow: hidden; border-radius: var(--radius); }
.reveal-img::after {
  content: ""; position: absolute; inset: 0;
  background: var(--orange);
  transform: scaleX(1); transform-origin: right;
  transition: transform 900ms var(--ease-smooth);
}
.reveal-img.in::after { transform: scaleX(0); transform-origin: left; }

/* ========= INFRASTRUCTURE — sticky scroll ========= */
.sticky-story { position: relative; }
.sticky-story__media {
  position: sticky; top: 100px; height: calc(100vh - 140px);
  background: var(--cream); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.sticky-story__content { padding: 80px 0; }
.story-card {
  min-height: 80vh; display: flex; flex-direction: column; justify-content: center;
  padding: 40px 0;
}
.story-card h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 16px; }
.story-card .num { font-family: var(--serif); font-size: 6rem; color: var(--orange); opacity: .2; line-height: 1; }

/* ========= MAP DOTS ========= */
.map-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
}
.map-wrap { position: relative; aspect-ratio: 1/1; }
.map-svg { width: 100%; height: 100%; }
.map-dot {
  fill: var(--orange); transform-origin: center;
  animation: ping 2s ease-in-out infinite;
}
@media (max-width: 900px){ .map-card { grid-template-columns: 1fr; } }

/* ========= Quote card (testimonials page) ========= */
.t-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 36px;
  transition: transform var(--dur-med) var(--ease-smooth), box-shadow var(--dur-med);
}
.t-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.t-card .stars { color: var(--mustard); font-size: 16px; letter-spacing: 2px; margin-bottom: 20px; }
.t-card blockquote { font-family: var(--serif); font-size: 1.3rem; line-height: 1.45; color: var(--ink); margin-bottom: 28px; }
.t-card .who { display: flex; align-items: center; gap: 14px; }
.t-card .avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--grad-warm); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-family: var(--serif); font-size: 20px; }
.t-card .who strong { display: block; font-weight: 600; }
.t-card .who small { color: var(--muted); font-size: 13px; }

/* ========= Client grid ========= */
.client-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 28px; display: flex; align-items: center; justify-content: center;
  aspect-ratio: 1.2/1; transition: all var(--dur-med) var(--ease-smooth); text-align: center;
  flex-direction: column;
}
.client-card:hover { transform: translateY(-4px); border-color: var(--orange); box-shadow: var(--shadow-md); }
.client-card .name { font-family: var(--serif); font-size: 1.25rem; color: var(--ink); margin-top: 14px; }
.client-card .type { font-size: 11px; color: var(--muted); letter-spacing: .18em; text-transform: uppercase; margin-top: 5px; }
.client-logo {
  max-width: 130px; max-height: 64px; width: auto; height: auto;
  object-fit: contain; margin: 0 auto;
  filter: grayscale(0.25);
  transition: filter var(--dur-med) var(--ease-smooth), transform var(--dur-med) var(--ease-smooth);
}
.client-card:hover .client-logo { filter: grayscale(0); transform: scale(1.06); }

/* ========= Marquee logos ========= */
.marquee__logo {
  height: 57px; width: auto; max-width: 180px;
  object-fit: contain;
}

/* ========= Contact ========= */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
@media (max-width: 900px){ .contact-grid { grid-template-columns: 1fr; } }
.contact-info { display: flex; flex-direction: column; gap: 32px; }
.contact-info .item { padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.contact-info .item .label { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--orange); font-weight: 700; margin-bottom: 10px; }
.contact-info .item .value { font-family: var(--serif); font-size: 1.25rem; color: var(--ink); }
.contact-info .item .sub { color: var(--muted); font-size: 14px; margin-top: 4px; }

form.contact-form { display: flex; flex-direction: column; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; }
form.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
form.contact-form input, form.contact-form textarea, form.contact-form select {
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px;
  font: inherit; background: var(--ivory); color: var(--ink);
  transition: border var(--dur-fast), box-shadow var(--dur-fast);
}
form.contact-form input:focus, form.contact-form textarea:focus, form.contact-form select:focus {
  outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(232,99,28,.12);
}
form.contact-form textarea { min-height: 120px; resize: vertical; }

/* ========= Scroll down indicator ========= */
.scroll-indicator {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--muted); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; font-weight: 600;
}
.scroll-indicator .line { width: 1px; height: 40px; background: var(--muted); position: relative; overflow: hidden; }
.scroll-indicator .line::after { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 50%; background: var(--orange); animation: scrollLine 2s ease-in-out infinite; }

/* ========= Animations ========= */
@keyframes scroll-x { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1);} 50% { opacity: .4; transform: scale(1.4);} }
@keyframes float { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-20px) rotate(2deg); } }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes scrollLine { 0%{ transform: translateY(-100%);} 50%{ transform: translateY(100%);} 100%{ transform: translateY(100%);} }
@keyframes ping { 0%,100%{ opacity: 1; transform: scale(1);} 50%{ opacity: .4; transform: scale(1.6);} }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px);} to { opacity: 1; transform: translateY(0);} }

/* Respect reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* =========================================================
   MOBILE OPTIMISATIONS
   A dedicated responsive layer — phones, small tablets,
   and touch devices. Loaded last so it cleanly overrides
   the desktop defaults above.
   ========================================================= */

/* Prevent horizontal scroll on any viewport */
html, body { overflow-x: hidden; max-width: 100vw; }
img, svg, video { max-width: 100%; height: auto; }

/* Burger → X animation when menu is open */
.nav__burger.open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
.nav__burger { -webkit-tap-highlight-color: transparent; }

/* ---------- Tablet ≤ 1024px ---------- */
@media (max-width: 1024px) {
  .container { padding: 0 24px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero__visual { height: 480px; }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

/* ---------- Small tablet / landscape phone ≤ 900px ---------- */
@media (max-width: 900px) {
  body { font-size: 16px; }
  .container { padding: 0 20px; }
  .section { padding: clamp(56px, 12vw, 96px) 0; }
  .section-sm { padding: clamp(40px, 8vw, 64px) 0; }

  .nav { padding: 12px 0; }
  .nav__brand .brand-text { font-size: 1.05rem; }
  .nav__brand .brand-text small { font-size: 9px; }
  .nav__brand .logo { width: 38px; height: 38px; }

  .hero { padding: 130px 0 60px; min-height: auto; }
  .hero__grid { grid-template-columns: 1fr; gap: 36px; }
  .hero h1 { font-size: clamp(2.2rem, 7.5vw, 3rem); }
  .hero p.lead { font-size: 1rem; }
  .hero__meta { gap: 28px; margin-top: 36px; }
  .hero__meta div strong { font-size: 1.6rem; }
  .hero__visual { height: 360px; max-width: 480px; margin: 0 auto; }
  .hero__visual .card { width: 220px; padding: 20px; }

  .page-hero { padding: 140px 0 70px; }
  .page-hero h1 { font-size: clamp(2rem, 7vw, 2.8rem); }

  .marquee { padding: 40px 0 50px; }
  .marquee__item { font-size: 1.4rem; gap: 24px; }
  .marquee__track { gap: 50px; animation-duration: 28s; }

  .showcase__header { margin-bottom: 48px; gap: 24px; }
  .brand-tabs { width: 100%; justify-content: stretch; }
  .brand-tabs button { flex: 1; padding: 12px 16px; font-size: 13px; }

  .stats { padding: 80px 0; }
  .stats__grid { margin-top: 56px; grid-template-columns: 1fr 1fr; }
  .stat { padding: 36px 22px; }
  .stat:nth-child(2n) { border-right: none; }
  .stat__num { font-size: 2.8rem; }

  .testimonial-short { padding: 80px 0; }
  .map-card { grid-template-columns: 1fr; padding: 32px; gap: 32px; }

  .footer { padding: 70px 0 30px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__base { font-size: 12px; flex-direction: column; gap: 8px; text-align: center; }
}

/* ---------- Phone ≤ 640px ---------- */
@media (max-width: 640px) {
  body { font-size: 15.5px; line-height: 1.6; }
  .container { padding: 0 18px; }
  .section { padding: 56px 0; }
  .section-sm { padding: 40px 0; }

  h1 { font-size: clamp(1.9rem, 8.5vw, 2.4rem); line-height: 1.12; }
  h2 { font-size: clamp(1.6rem, 7vw, 2rem); }
  h3 { font-size: 1.2rem; }
  .lead { font-size: 1rem; }
  .eyebrow { font-size: 11px; }

  /* Tappable buttons (min 44px tap target) */
  .btn { padding: 14px 22px; font-size: 14.5px; min-height: 48px; }
  .btn svg { width: 14px; height: 14px; }

  /* Nav — keep just the logo on small phones */
  .nav { padding: 10px 0; }
  .nav__brand .brand-text { display: none; }
  .nav__brand .logo { width: 42px; height: 42px; }
  .nav__burger { width: 44px; height: 44px; }

  /* Mobile menu — slightly tighter */
  .mobile-menu { padding: 90px 22px 30px; gap: 4px; }
  .mobile-menu a { font-size: 1.5rem; padding: 14px 0; }

  /* Hero */
  .hero { padding: 110px 0 50px; }
  .hero__eyebrow { font-size: 10px; padding: 7px 12px; }
  .hero h1 { margin-top: 22px; }
  .hero p.lead { margin-top: 20px; }
  .hero__cta { margin-top: 28px; flex-direction: column; align-items: stretch; gap: 10px; }
  .hero__cta .btn { justify-content: center; width: 100%; }
  .hero__meta { margin-top: 32px; gap: 18px; flex-wrap: wrap; }
  .hero__meta div { flex: 1 1 30%; min-width: 90px; }
  .hero__meta div strong { font-size: 1.3rem; }
  .hero__meta div span { font-size: 11px; }

  /* Hero visual — simplify on small phones */
  .hero__visual { height: 300px; max-width: 360px; }
  .hero__visual .card { width: 190px; padding: 16px; }
  .hero__visual .card h4 { font-size: 0.95rem; margin: 6px 0; }
  .hero__visual .card p { font-size: 11px; }
  .hero__visual .card.c1 { top: 10px; left: 0; }
  .hero__visual .card.c2 { top: 110px; right: 0; }
  .hero__visual .card.c3 { bottom: 0; left: 30px; }
  .hero__visual .ring { opacity: .5; }
  .hero__visual .orb  { opacity: .25; inset: 60px; }

  /* Page hero */
  .page-hero { padding: 120px 0 56px; }
  .page-hero .lead { margin-top: 18px; }

  /* Scroll hint hidden on phones */
  .scroll-indicator { display: none; }

  /* Marquee */
  .marquee { padding: 32px 0 40px; }
  .marquee__label { margin-bottom: 24px; font-size: 11px; }
  .marquee__item { font-size: 1.2rem; gap: 18px; }
  .marquee__track { gap: 36px; animation-duration: 24s; }

  /* Stats */
  .stats { padding: 64px 0; }
  .stats__grid { margin-top: 44px; }
  .stat { padding: 30px 16px; }
  .stat__num { font-size: 2.2rem; }
  .stat__label { font-size: 10.5px; margin-top: 12px; }
  .stat__desc { font-size: 12.5px; margin-top: 8px; }

  /* Product cards */
  .product-card__media { height: 220px; }
  .product-card__media .emoji { font-size: 88px; }
  .product-card__body { padding: 22px; }
  .product-card__body h3 { font-size: 1.25rem; }
  .product-card__body p { font-size: 14px; }
  .product-card__body .specs { gap: 8px; margin-top: 14px; }
  .product-card__body .specs span { font-size: 11px; padding: 4px 10px; }

  /* Brand tabs */
  .brand-tabs { padding: 4px; }
  .brand-tabs button { padding: 11px 12px; font-size: 12.5px; }

  /* Showcase header — stack title above paragraph */
  .showcase__header { flex-direction: column; align-items: flex-start; margin-bottom: 40px; }

  /* Testimonial */
  .testimonial-short { padding: 60px 0; }
  .testimonial-short blockquote { font-size: 1.4rem; }

  /* T-cards */
  .t-card { padding: 26px; }
  .t-card blockquote { font-size: 1.05rem; margin-bottom: 22px; }
  .t-card .avatar { width: 42px; height: 42px; font-size: 17px; }

  /* Client cards */
  .client-card { padding: 22px; aspect-ratio: 1.4 / 1; }
  .client-card .name { font-size: 1.1rem; }
  .client-card .type { font-size: 10px; margin-top: 6px; }
  .client-card img.client-logo { max-height: 40px; width: auto; }

  /* Map card */
  .map-card { padding: 24px; }
  .map-svg text { font-size: 10px !important; }

  /* Contact */
  .contact-grid { gap: 30px; }
  .contact-info { gap: 16px; }
  .contact-info .item { padding: 22px; }
  .contact-info .item .value { font-size: 1.1rem; }
  form.contact-form { padding: 28px 22px; gap: 14px; }
  form.contact-form input, form.contact-form textarea, form.contact-form select {
    padding: 14px 14px; font-size: 16px; /* 16px prevents iOS zoom on focus */
  }
  /* Stack the inline email/phone row */
  form.contact-form > div[style*="grid-template-columns:1fr 1fr"],
  form.contact-form > div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  /* Footer fully stacks */
  .footer { padding: 56px 0 24px; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__brand p { font-size: 14px; }

  /* Sticky story behaves like a normal flow on phones */
  .sticky-story__media { position: relative; top: auto; height: 280px; margin-bottom: 24px; }
  .story-card { min-height: auto; padding: 24px 0; }

  /* Story card numbers — smaller */
  .story-card .num { font-size: 4rem; }
}

/* ---------- Tiny phone ≤ 380px ---------- */
@media (max-width: 380px) {
  .container { padding: 0 14px; }
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.45rem; }
  .hero__eyebrow { font-size: 9.5px; padding: 6px 10px; letter-spacing: .14em; }
  .hero__meta { gap: 12px; }
  .hero__meta div strong { font-size: 1.15rem; }
  .hero__meta div span { font-size: 10px; }
  .stat { padding: 22px 12px; }
  .stat__num { font-size: 1.9rem; }
  .product-card__media { height: 180px; }
  .product-card__media .emoji { font-size: 72px; }
  .marquee__item { font-size: 1.05rem; }
  .brand-tabs { flex-wrap: wrap; border-radius: 16px; padding: 4px; gap: 4px; }
  .brand-tabs button { flex: 1 1 100%; }
  .testimonial-short blockquote { font-size: 1.2rem; }
  .footer__brand p { font-size: 13.5px; }
}

/* ---------- Landscape phones: shorter hero ---------- */
@media (max-width: 900px) and (orientation: landscape) and (max-height: 500px) {
  .hero { min-height: auto; padding: 120px 0 40px; }
  .hero__visual { display: none; } /* hide floating cards in landscape — they crowd the fold */
  .page-hero { padding: 110px 0 40px; }
}

/* ---------- Touch devices: disable hover-only effects ---------- */
@media (hover: none) and (pointer: coarse) {
  .parallax { transform: none !important; }
  .hero__visual .card { animation-duration: 12s; }
  .product-card:hover { transform: none; box-shadow: var(--shadow-sm); }
  .t-card:hover { transform: none; box-shadow: none; }
  .client-card:hover { transform: none; box-shadow: none; border-color: var(--line); }
  .btn:hover { transform: none; }
  .marquee:hover .marquee__track { animation-play-state: running; }
  .marquee__item:hover { opacity: .55; color: var(--ink); }
}

/* =========================================================
   ADDITIONS — marquee logos, client logos, product labels,
   and revised hero-visual handling on phones.
   ========================================================= */

/* --- Marquee with image logos (replaces text fallback) --- */
.marquee__logo {
  height: 56px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
  filter: grayscale(100%);
  opacity: 0.65;
  transition: filter var(--dur-fast), opacity var(--dur-fast);
}
.marquee__item:has(.marquee__logo) {
  font-size: 0;        /* kill any text spacing */
  gap: 0;
  opacity: 1;          /* the logo itself owns opacity */
}
.marquee__item:has(.marquee__logo)::after { content: none; }   /* remove the · divider for image items */
.marquee__item:hover .marquee__logo { filter: none; opacity: 1; }

/* --- Client card logos: consistent, capped --- */
.client-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; }
.client-logo {
  height: 64px;
  width: auto;
  max-width: 80%;
  object-fit: contain;
  margin-bottom: 6px;
}

/* --- Product card "labels" (used on Ramtilak SKUs) --- */
.product-card__body .labels { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.product-card__body .labels span {
  padding: 4px 10px;
  background: var(--cream);
  color: var(--ink-soft);
  font-size: 11px;
  border-radius: 999px;
  font-weight: 500;
}
.product-card__body .labels span.highlight {
  background: rgba(232,99,28,0.12);
  color: var(--orange-deep);
  font-weight: 600;
}

/* Product card images (replacing the emoji placeholder) */
.product-card__media img {
  max-width: 75%;
  max-height: 85%;
  object-fit: contain;
  filter: drop-shadow(0 16px 30px rgba(30,27,22,.16));
  transition: transform var(--dur-slow) var(--ease-smooth);
  position: relative;
  z-index: 1;
}
.product-card:hover .product-card__media img { transform: scale(1.06) rotate(-2deg); }

/* =========================================================
   MOBILE FIXES — hero visual, overflow, clients page
   ========================================================= */

@media (max-width: 900px) {
  /* Belt-and-braces overflow containment */
  .hero, .stats, .marquee, .section, .page-hero, .footer { overflow-x: clip; }

  /* Marquee logos smaller on tablet/phone */
  .marquee__logo { height: 44px; max-width: 140px; }

  /* Marquee track speed tuned for mobile */
  .marquee__track { gap: 56px; animation-duration: 26s; }
}

@media (max-width: 640px) {
  /* HERO VISUAL — hide entirely on phones.
     The floating decorative cards crowd the fold on small screens,
     duplicate info shown elsewhere, and create awkward whitespace.
     The text + meta stats above carry the message strongly enough. */
  .hero__visual { display: none; }
  .hero { padding: 120px 0 60px; }
  .hero__grid { gap: 0; }

  /* Marquee logos — visible, uniform */
  .marquee__logo { height: 38px; max-width: 110px; }
  .marquee__track { gap: 40px; animation-duration: 22s; }

  /* Client cards — tight, consistent */
  .client-card { padding: 20px 16px; aspect-ratio: auto; min-height: 160px; }
  .client-logo { height: 48px; max-width: 75%; }
  .client-card .name { font-size: 1rem; margin-top: 4px; }
  .client-card .type { font-size: 10px; }

  /* The "200+ More brands" placeholder card matches sibling heights */
  .client-card[style*="dashed"] { min-height: 160px; padding: 20px 16px; }
  .client-card[style*="dashed"] > div:first-child { font-size: 2rem !important; }

  /* Product card image sizing on phones */
  .product-card__media img { max-width: 70%; max-height: 80%; }
  .product-card__media { height: 200px; }

  /* Product card labels stay readable on phones */
  .product-card__body .labels span { font-size: 10.5px; padding: 3px 9px; }
}

@media (max-width: 380px) {
  .marquee__logo { height: 34px; max-width: 96px; }
  .client-logo { height: 42px; }
  .client-card { min-height: 140px; padding: 18px 12px; }
}

/* =========================================================
   VIDEO TESTIMONIALS  —  Branded rail + lightbox player
   A horizontal scroll rail of branded poster tiles; clicking
   a tile opens a full-screen lightbox playing the YouTube
   Short. No external thumbnails (which 404 for Shorts), no
   empty grid cells, perfect 9:16 playback inside the modal.
   ========================================================= */

/* RAIL — outer wrapper with side nav buttons & swipe hint */
.v-rail { position: relative; }
.v-rail__track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 8px 8px 28px;
  margin: 0 -8px;
  scroll-padding-left: 8px;
}
.v-rail__track::-webkit-scrollbar { display: none; }

.v-rail__hint {
  text-align: center;
  margin-top: 12px;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
@media (min-width: 1024px) {
  .v-rail__hint { display: none; }   /* desktop has arrow buttons */
}

.v-rail__nav {
  display: none;
  position: absolute;
  top: 50%;
  left: -20px; right: -20px;
  transform: translateY(-50%);
  pointer-events: none;
}
@media (min-width: 1024px) {
  .v-rail__nav { display: flex; justify-content: space-between; }
}
.v-rail__btn {
  pointer-events: auto;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  transition: transform var(--dur-fast), background var(--dur-fast), color var(--dur-fast);
  cursor: pointer;
}
.v-rail__btn svg { width: 22px; height: 22px; }
.v-rail__btn:hover { background: var(--ink); color: var(--ivory); transform: scale(1.05); }
.v-rail__btn[disabled] { opacity: 0; pointer-events: none; }

/* TILE — branded poster, no external image */
.v-tile {
  flex: 0 0 280px;
  scroll-snap-align: center;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
  transition: transform var(--dur-med) var(--ease-smooth), box-shadow var(--dur-med);
}
.v-tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
@media (hover: none) { .v-tile:hover { transform: none; box-shadow: none; } }

@media (max-width: 640px) {
  .v-tile { flex: 0 0 78vw; max-width: 320px; }
}

.v-tile__poster {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  aspect-ratio: 9 / 14;
  padding: 28px 24px 24px;
  text-align: left;
  cursor: pointer;
  border: 0;
  color: var(--ivory);
  overflow: hidden;
  background:
    radial-gradient(circle at 22% 18%, rgba(232,99,28,0.42), transparent 56%),
    radial-gradient(circle at 78% 88%, rgba(232,171,44,0.30), transparent 56%),
    linear-gradient(180deg, #2A241D 0%, #1E1B16 100%);
  font-family: var(--sans);
  transition: filter var(--dur-fast);
}
.v-tile__poster:hover { filter: brightness(1.1); }
.v-tile__poster::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.25) 100%);
  pointer-events: none;
}

/* Decorative quote mark */
.v-tile__mark {
  position: relative;
  z-index: 1;
  font-family: var(--serif);
  font-size: 6.5rem;
  line-height: 0.55;
  color: var(--mustard);
  opacity: 0.55;
}

/* Centred play button */
.v-tile__play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,0.96);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  transition: transform var(--dur-med) var(--ease-spring), background var(--dur-fast), color var(--dur-fast);
  z-index: 2;
  animation: pulse-ring 2.4s ease-out infinite;
}
.v-tile__play svg { width: 26px; height: 26px; margin-left: 3px; }
.v-tile__poster:hover .v-tile__play {
  background: var(--orange);
  color: #fff;
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 14px 36px rgba(232,99,28,0.5);
  animation: none;
}
html[data-motion="minimal"] .v-tile__play { animation: none; }

/* Name & role at the bottom */
.v-tile__meta { position: relative; z-index: 1; }
.v-tile__meta strong {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--ivory);
  display: block;
}
.v-tile__meta small {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(250,246,239,0.62);
}

@media (max-width: 640px) {
  .v-tile__poster { padding: 24px 20px 20px; }
  .v-tile__mark { font-size: 5.5rem; }
  .v-tile__play { width: 56px; height: 56px; }
  .v-tile__play svg { width: 22px; height: 22px; }
  .v-tile__meta strong { font-size: 1.1rem; }
}

/* LIGHTBOX — full-screen modal with the actual Short */
.v-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(15, 12, 8, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity var(--dur-med) var(--ease-smooth);
}
.v-lightbox[hidden] { display: none; }
.v-lightbox.open { opacity: 1; }

.v-lightbox__close {
  position: absolute;
  top: 24px; right: 24px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: var(--ivory);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background var(--dur-fast), transform var(--dur-fast);
  z-index: 1;
}
.v-lightbox__close:hover { background: rgba(255,255,255,0.22); transform: rotate(90deg); }
.v-lightbox__close svg { width: 22px; height: 22px; }

.v-lightbox__stage {
  position: relative;
  width: min(420px, 92vw);
  aspect-ratio: 9 / 16;
  max-height: calc(100vh - 80px);
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  transform: scale(0.94);
  transition: transform var(--dur-med) var(--ease-spring);
}
.v-lightbox.open .v-lightbox__stage { transform: scale(1); }
.v-lightbox__stage iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
@media (max-width: 640px) {
  .v-lightbox { padding: 60px 16px 16px; }
  .v-lightbox__close { top: 14px; right: 14px; }
}

/* =========================================================
   TESTIMONIAL RAIL — DESKTOP BENTO GRID
   On screens >= 1024px the horizontal rail converts to a
   static editorial grid: one featured card on the left flanked
   by a 2x2 arrangement of supporting cards. Premium, full-width,
   zero empty cells. Mobile/tablet keep the scroll carousel.
   ========================================================= */

@media (min-width: 1024px) {
  /* Convert flex-scroll rail into a 6-column bento grid */
  .v-rail__track {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 280px;
    gap: 22px;
    overflow: visible;
    padding: 0;
    margin: 0;
    scroll-snap-type: none;
  }

  .v-tile {
    flex: none;
    width: auto;
    scroll-snap-align: unset;
  }

  /* Feature tile: spans 2 cols × 2 rows = tall portrait */
  .v-tile:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  /* Four supporting tiles: each spans 2 cols × 1 row = landscape */
  .v-tile:nth-child(n+2) { grid-column: span 2; }

  /* Poster fills the grid cell (no forced 9/14 aspect) */
  .v-tile__poster {
    aspect-ratio: auto;
    height: 100%;
  }

  /* Featured card: bigger everything */
  .v-tile:nth-child(1) .v-tile__poster { padding: 36px 32px 32px; }
  .v-tile:nth-child(1) .v-tile__mark   { font-size: 9rem; line-height: 0.5; }
  .v-tile:nth-child(1) .v-tile__meta strong { font-size: 1.7rem; }
  .v-tile:nth-child(1) .v-tile__meta small  { font-size: 12px; }
  .v-tile:nth-child(1) .v-tile__play   { width: 84px; height: 84px; }
  .v-tile:nth-child(1) .v-tile__play svg { width: 32px; height: 32px; margin-left: 4px; }
  .v-tile:nth-child(1) .v-tile__poster {
    background:
      radial-gradient(circle at 18% 16%, rgba(232,99,28,0.5), transparent 55%),
      radial-gradient(circle at 82% 88%, rgba(232,171,44,0.35), transparent 55%),
      linear-gradient(180deg, #2C2620 0%, #1A1812 100%);
  }

  /* Smaller landscape cards: compact inner layout */
  .v-tile:nth-child(n+2) .v-tile__poster {
    padding: 26px 28px 24px;
  }
  .v-tile:nth-child(n+2) .v-tile__mark      { font-size: 4.5rem; line-height: 0.5; }
  .v-tile:nth-child(n+2) .v-tile__meta strong { font-size: 1.1rem; }
  .v-tile:nth-child(n+2) .v-tile__meta small  { font-size: 10.5px; }
  .v-tile:nth-child(n+2) .v-tile__play       { width: 58px; height: 58px; }
  .v-tile:nth-child(n+2) .v-tile__play svg   { width: 22px; height: 22px; }

  /* Hide carousel chrome on desktop */
  .v-rail__nav { display: none; }
  .v-rail__hint { display: none; }
}

/* Mid-desktop (1024–1280): keep grid but slightly tighter */
@media (min-width: 1024px) and (max-width: 1280px) {
  .v-rail__track { grid-auto-rows: 240px; gap: 18px; }
}

/* Tablet (768–1023): show ~3 tiles at once in the rail */
@media (min-width: 768px) and (max-width: 1023px) {
  .v-tile { flex: 0 0 calc(33.333% - 14px); }
  .v-rail__hint { display: none; }
}

/* Poster button — looks like a card by default, becomes an iframe on click */
.video-card__media {
  position: relative;
  display: block;
  width: 100%;
  background: var(--ink);
  aspect-ratio: 9 / 16;
  max-height: 560px;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  border: 0;
  color: inherit;
}
.video-card__media img,
.video-card__media video,
.video-card__media iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: var(--ink);
  border: 0;
}

/* Dark gradient overlay for play-button contrast */
.video-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
              rgba(0,0,0,0.05) 0%,
              rgba(0,0,0,0.15) 50%,
              rgba(0,0,0,0.45) 100%);
  transition: opacity var(--dur-fast) var(--ease-smooth);
  pointer-events: none;
  z-index: 1;
}
.video-card__media:hover::after { opacity: 0.7; }

/* Once a click loads the iframe, kill the overlay & cursor */
.video-card__media:has(iframe)::after { display: none; }
.video-card__media:has(iframe) { cursor: default; }

/* Play button */
.video-card__play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255,255,255,0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35),
              0 2px 6px rgba(0,0,0,0.2);
  transition: transform var(--dur-med) var(--ease-spring),
              background var(--dur-fast),
              color var(--dur-fast),
              box-shadow var(--dur-fast);
  z-index: 2;
}
.video-card__play svg {
  width: 30px;
  height: 30px;
  margin-left: 4px; /* optical centering of the triangle */
}
.video-card__media:hover .video-card__play {
  background: var(--orange);
  color: #fff;
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 14px 40px rgba(232,99,28,0.45);
}
.video-card__media:active .video-card__play {
  transform: translate(-50%, -50%) scale(0.96);
}
.video-card__media:has(iframe) .video-card__play { display: none; }

/* Subtle pulse on the play button to invite the click */
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(255,255,255,0.5), 0 10px 30px rgba(0,0,0,0.35); }
  70%  { box-shadow: 0 0 0 18px rgba(255,255,255,0),  0 10px 30px rgba(0,0,0,0.35); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0),    0 10px 30px rgba(0,0,0,0.35); }
}
.video-card__play { animation: pulse-ring 2.4s ease-out infinite; }
.video-card__media:hover .video-card__play,
.video-card__media:has(iframe) .video-card__play { animation: none; }
html[data-motion="minimal"] .video-card__play { animation: none; }

.video-card__body {
  padding: 20px 24px 24px;
  background: var(--surface);
}
.video-card__body strong {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--ink);
  display: block;
}
.video-card__body p {
  color: var(--muted);
  font-size: 13px;
  margin: 6px 0 0;
}

/* Tighter padding on small phones */
@media (max-width: 480px) {
  .video-card__media { max-height: 420px; }
  .video-card__body { padding: 16px 20px 20px; }
}



