/* =========================================================
   IDSM company profile — style.css
   Notes for replacing media:
   - Hero videos: assets/video/*.mp4 (3–6 s, ~480px wide, no audio, <1 MB each).
     Add a poster="..." image on each <video> for a fast first paint.
   - Card ratios: .r34 = portrait 3:4, .r11 = square.
   - Accent color: --mint / --mint-2 (now peach/orange). Variable names kept so nothing else needs renaming.
   ========================================================= */

:root {
  --bg: #ffffff;
  --surface: #f3f5f3;
  --surface-2: #e9ede9;
  --ink: #111412;
  --ink-soft: #5b625d;
  --mint: #f6b9a0;
  --mint-2: #fbd5c3;
  --sky: #c9dcf5;
  --radius: 28px;
  --radius-sm: 18px;
  --gap: 16px;
  --maxw: 1240px;
  --shadow: 0 10px 30px rgba(17, 20, 18, .08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

/* ---------- Helpers ---------- */
.hl {
  background: linear-gradient(90deg, var(--mint), var(--sky));
  border-radius: .25em;
  padding: 0 .18em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.chip {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .02em;
  padding: .3rem .8rem;
  border: 1px solid var(--surface-2);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-soft);
  text-transform: lowercase;
}
.section { max-width: var(--maxw); margin: 0 auto; padding: 96px 24px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; display: grid; gap: 14px; justify-items: center; }
.section-head h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1.1; font-weight: 600; letter-spacing: -.02em; }
.section-head p { color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font: inherit; font-weight: 600; font-size: .95rem;
  padding: .85rem 1.3rem; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-sm { padding: .6rem 1rem; font-size: .85rem; }
.arrow-circle {
  display: grid; place-items: center; width: 1.6rem; height: 1.6rem;
  background: #fff; color: var(--ink); border-radius: 50%; font-size: .8rem;
}
.arrow { font-size: .85em; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 12px 12px auto 12px; z-index: 50;
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 14px 10px 20px;
  background: rgba(255,255,255,.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(17,20,18,.06); border-radius: 999px;
}
.brand { display: inline-flex; align-items: center; gap: .5rem; font-weight: 800; letter-spacing: -.02em; font-size: 1.15rem; }
.brand-dot { width: 14px; height: 14px; border-radius: 50%; background: linear-gradient(135deg, var(--mint), var(--sky)); box-shadow: inset 0 0 0 2px var(--ink); }
.brand-logo img { height: 38px; width: auto; }
.nav-links { display: flex; gap: 28px; font-size: .9rem; font-weight: 500; color: var(--ink-soft); }
.nav-links a:hover { color: var(--ink); }


/* ========================================
   LANGUAGE SWITCHER
======================================== */

.language-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  z-index: 100;
}

.language-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 11px;

  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: inherit;

  background: transparent;
  border: 1px solid rgba(128, 128, 128, 0.25);
  border-radius: 8px;

  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.language-btn:hover {
  background: rgba(128, 128, 128, 0.08);
}

.language-dropdown {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;

  min-width: 145px;
  padding: 5px;

  display: flex;
  flex-direction: column;

  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 9px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.10);

  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px);

  transition: all 0.2s ease;
}

.language-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-dropdown button {
  padding: 10px 12px;
  width: 100%;

  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  color: #374151;

  background: transparent;
  border: none;
  border-radius: 6px;

  cursor: pointer;
  transition: background 0.2s ease;
}

.language-dropdown button:hover {
  background: #f3f4f6;
}

.language-dropdown button.active {
  color: #2563eb;
  font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
  .language-btn,
  .language-arrow,
  .language-dropdown,
  .language-dropdown button {
    transition: none;
  }
}

/* Group language + CTA so they sit together on the right */
.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* Flag */
.flag {
  display: inline-block; flex: none;
  width: 22px; height: 15px;
  border-radius: 3px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(17, 20, 18, .12);
}
.flag svg { display: block; width: 100%; height: 100%; }

/* Button now matches the pill style of the nav */
.language-btn {
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
}

/* Chevron (SVG, replaces the "⌄" character) */
.language-arrow {
  width: 12px; height: 12px; flex: none;
  fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .2s ease;
}
.language-btn[aria-expanded="true"] .language-arrow { transform: rotate(180deg); }

/* Dropdown items: flag + name */
.language-dropdown button {
  display: flex; align-items: center; gap: 10px;
}

@media (max-width: 560px) {
  .nav-actions { gap: 6px; }
  #currentLanguage { display: none; } /* flag only on phones */
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  max-width: var(--maxw); margin: 0 auto;
  padding: 110px 24px 40px;
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px;
}
.hero-copy { display: grid; gap: 24px; align-content: center; }
.hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); line-height: 1.25; font-weight: 600; letter-spacing: -.03em; }
.lead { max-width: 46ch; color: var(--ink-soft); font-size: 1.05rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.tags li { font-size: .75rem; font-weight: 600; padding: .35rem .8rem; border-radius: 999px; background: var(--surface); color: var(--ink-soft); }
.tags .tag-hl { background: linear-gradient(90deg, var(--mint), var(--sky)); color: var(--ink); }

/* Video grid — columns scroll continuously, alternating up / down */
.hero-media {
  position: relative; height: min(78vh, 720px);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 88%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 88%, transparent 100%);
}
.col { display: block; animation: scroll-up 38s linear infinite; will-change: transform; }
.col.down { animation-direction: reverse; animation-duration: 44s; }
.col.slow { animation-duration: 52s; }
.card { margin: 0 0 var(--gap); position: relative; overflow: hidden; border-radius: var(--radius-sm); background: var(--surface); }
.card.r34 { aspect-ratio: 3 / 4; }
.card.r11 { aspect-ratio: 1 / 1; }
.card video { width: 100%; height: 100%; object-fit: cover; }
.card figcaption {
  position: absolute; left: 10px; bottom: 10px;
  font-size: .72rem; font-weight: 600; color: #fff;
  background: rgba(17,20,18,.62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  padding: .3rem .7rem; border-radius: 999px;
}
/* Each column holds its cards twice (script.js clones them): moving by -50% loops seamlessly */
@keyframes scroll-up { from { transform: translateY(0); } to { transform: translateY(-50%); } }

/* ---------- Marquee ---------- */
.marquee { margin-top: 24px; overflow: hidden; border-block: 1px solid var(--surface-2); padding: 18px 0; background: var(--surface); }
.marquee-track { display: flex; gap: 40px; width: max-content; animation: marquee 28s linear infinite; font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 500; letter-spacing: .02em; text-transform: uppercase; }
.marquee-track span { color: var(--ink-soft); }
.marquee-track span:nth-of-type(odd) { color: var(--ink); }
.marquee-track i { font-style: normal; color: var(--ink-soft); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.stat { background: var(--surface); border-radius: var(--radius); padding: 32px; display: grid; gap: 6px; }
.stat strong { font-size: clamp(2.6rem, 5vw, 4rem); font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.stat span { color: var(--ink-soft); font-size: .95rem; }

/* ---------- Models ---------- */
.models { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.panel { background: var(--surface); border-radius: var(--radius); padding: 40px; display: grid; gap: 18px; align-content: start; justify-items: start; }
.panel h3 { font-size: 1.8rem; font-weight: 600; letter-spacing: -.02em; }
.panel p { color: var(--ink-soft); }
.ticks { display: grid; gap: 10px; margin: 4px 0 8px; }
.ticks li { position: relative; padding-left: 28px; font-size: .95rem; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; display: grid; place-items: center; font-size: .7rem; border-radius: 50%; background: linear-gradient(135deg, var(--mint), var(--sky)); }

/* ---------- Featured role ---------- */
.feature {
  --vw: min(320px, 70%);
  background: var(--surface); border-radius: 48px;
  padding: 64px 56px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  overflow: hidden;
}
.feature-copy { display: grid; gap: 22px; justify-items: start; }
.feature h2 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.2; font-weight: 500; letter-spacing: -.02em; }
.feature-lead { color: var(--ink-soft); max-width: 52ch; }
.feature-points { display: grid; gap: 16px; margin: 4px 0 6px; }
.feature-points li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.feature-points b { display: block; font-weight: 600; }
.feature-points span:not(.ico) { color: var(--ink-soft); font-size: .93rem; }
.ico { width: 44px; height: 44px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: var(--shadow); }
.ico svg, .ico-sm svg, .vbtn svg, .fl svg, .stat-ico svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ico svg { width: 22px; height: 22px; }

.feature-media { position: relative; min-height: 580px; display: grid; justify-items: end; align-items: center; }
.vframe {
  position: relative; width: var(--vw); aspect-ratio: 9 / 15; border-radius: 34px; overflow: hidden;
  background: linear-gradient(160deg, var(--mint-2), var(--sky));
  box-shadow: 0 20px 50px rgba(17,20,18,.12);
}
.vframe video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vbtn { position: absolute; top: 18px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.92); }
.vbtn svg { width: 20px; height: 20px; }
.vbtn-1 { right: 70px; }
.vbtn-2 { right: 16px; background: rgba(255,255,255,.55); }
.vpill {
  position: absolute; left: 14px; right: 14px; bottom: 14px;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 18px 10px 10px; border-radius: 999px; background: #fff;
  font-weight: 600; font-size: .95rem; box-shadow: 0 8px 20px rgba(17,20,18,.12);
}
.ico-sm { width: 34px; height: 34px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; flex: none; }
.ico-sm svg { width: 18px; height: 18px; }

/* Floating cards around the video */
.fl { position: absolute; z-index: 2; background: #fff; box-shadow: 0 14px 36px rgba(17,20,18,.12); animation: float 6s ease-in-out infinite; }
.fl svg { width: 22px; height: 22px; }
.fl-like, .fl-team { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 16px; right: calc(var(--vw) + 18px); }
.fl-like { background: var(--ink); color: #fff; top: 11%; }
.fl-team { width: 50px; height: 50px; border-radius: 14px; top: calc(11% + 82px); animation-delay: -2s; }
.fl-stat {
  display: flex; align-items: center; gap: 14px; width: 240px; padding: 14px 16px; border-radius: 18px;
  right: calc(var(--vw) - 30px); bottom: 41%; animation-delay: -1s;
}
.stat-ico { flex: none; width: 52px; height: 52px; border-radius: 12px; background: var(--ink); color: #fff; display: grid; place-items: center; }
.fl-stat strong { display: block; font-size: 1.7rem; font-weight: 500; line-height: 1.1; }
.fl-stat span:not(.stat-ico) { display: block; font-size: .85rem; color: var(--ink-soft); line-height: 1.3; }
.fl-years {
  display: grid; gap: 4px; width: 250px; padding: 16px 18px; border-radius: 20px;
  right: calc(var(--vw) - 40px); bottom: 13%; animation-delay: -3.5s;
}
.fl-years::before, .fl-years::after { /* ghost cards stacked behind */
  content: ""; position: absolute; left: 14px; right: 14px; height: 100%; border-radius: 20px; background: #fff; z-index: -1; opacity: .7;
}
.fl-years::before { top: -12px; opacity: .55; left: 26px; right: 26px; }
.fl-years::after { top: -6px; }
.fl-years strong { font-size: 1.3rem; font-weight: 600; }
.fl-years span { font-size: .85rem; color: var(--ink-soft); }
.fl-years em { font-style: normal; font-size: .85rem; font-weight: 600; color: #4a56c8; text-align: center; margin-top: 8px; }
@keyframes float { 50% { transform: translateY(-8px); } }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); counter-reset: s; }
.step { background: #fff; border: 1px solid var(--surface-2); border-radius: var(--radius); padding: 28px; display: grid; gap: 10px; align-content: start; box-shadow: var(--shadow); }
.step b { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: #fff; font-size: .8rem; }
.step h3 { font-size: 1.15rem; font-weight: 600; margin-top: 6px; }
.step p { color: var(--ink-soft); font-size: .93rem; }

/* ---------- Roles: sticky card stack ---------- */
.stack { --stack-top: 104px; --step: 16px; padding-bottom: 8px; }
.stack-card {
  position: sticky;
  top: calc(var(--stack-top) + var(--i) * var(--step));
  margin-bottom: 14vh;
  min-height: 460px;
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; align-items: center;
  padding: 32px 32px 32px 56px;
  background: #fff;
  border: 1px solid rgba(17,20,18,.05);
  border-radius: var(--radius);
  box-shadow: 0 -8px 40px rgba(17,20,18,.07), 0 2px 8px rgba(17,20,18,.04);
  transform-origin: 50% 0;
  /* --depth (0..n) is set by script.js: how many cards are covering this one */
  transform: scale(calc(1 - var(--depth, 0) * .035));
  will-change: transform;
}
.stack-card:last-child { margin-bottom: 0; }
.stack-card::after { /* soft dimming when covered */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: #0b1a10; opacity: calc(var(--depth, 0) * .045);
}

.stack-copy { display: grid; gap: 16px; justify-items: start; }
.stack-copy h3 { font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.1; font-weight: 600; letter-spacing: -.02em; }
.stack-copy p { color: var(--ink); max-width: 42ch; }
.tag { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .4rem .75rem; border-radius: 8px; }
.tag-green { background: #fdeee6; color: #a24a24; }
.tag-blue  { background: #e8f1f6; color: #2f5f78; }
.tag-amber { background: #fbf0dd; color: #8a5a12; }
.tag-lilac { background: #eeeafa; color: #53409a; }
.bullets { display: grid; gap: 6px; color: var(--ink-soft); }
.bullets li { position: relative; padding-left: 20px; }
.bullets li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 5px; height: 5px; border-radius: 50%; background: var(--ink-soft); }
.link-arrow { display: inline-flex; align-items: center; gap: .6rem; font-weight: 600; color: #a24a24; margin-top: 6px; }
.link-badge { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: #a24a24; color: #fff; font-size: 1rem; line-height: 1; transition: transform .2s ease; }
.link-arrow:hover .link-badge { transform: translateX(4px); }

.stack-visual { align-self: stretch; border-radius: var(--radius-sm); padding: 36px 40px 0; display: grid; align-items: end; overflow: hidden; position: relative; }
.tint-mint  { background: #fdf1ea; }
.tint-sky   { background: #eaf4fa; }
.tint-amber { background: #fcf3e2; }
.tint-lilac { background: #f0ecfb; }

/* Illustrative app window shown inside each card */
.mock { background: #fff; border-radius: 14px 14px 0 0; box-shadow: 0 10px 30px rgba(17,20,18,.1); overflow: hidden; font-size: .88rem; }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: #f4f5f4; color: var(--ink-soft); font-size: .8rem; }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d4d7d4; }
.mock-bar span { margin-left: 8px; }
.mock-body { padding: 18px 20px 24px; display: grid; gap: 14px; }
.mock-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--surface-2); }
.mock-head b { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 1rem; }
.badge { font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: .3rem .6rem; border-radius: 6px; }
.badge-ok { background: #e6f3e8; color: #2e6b3f; }

.checks { display: grid; }
.checks li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--surface); }
.checks li:last-child { border-bottom: 0; }
.checks em { font-style: normal; font-weight: 600; font-size: .78rem; padding: .15rem .55rem; border-radius: 6px; }
.checks .ok { background: #e6f3e8; color: #2e6b3f; }
.checks .warn { background: #fbf0dd; color: #8a5a12; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-size: .75rem; font-weight: 600; padding: .25rem .65rem; border-radius: 999px; background: var(--surface); }
.code { margin: 0; padding: 14px 16px; border-radius: 10px; background: #172023; color: #d6e2e4; font: 500 .78rem/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow: hidden; white-space: pre; }
.code .k { color: #b58cf0; } .code .s { color: #8fd0a8; }

.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #e8603c; box-shadow: 0 0 0 0 rgba(232,96,60,.5); animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(232,96,60,0); } 100% { box-shadow: 0 0 0 0 rgba(232,96,60,0); } }
.queue { display: grid; }
.queue li { display: grid; grid-template-columns: 12px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--surface); }
.queue li:last-child { border-bottom: 0; }
.queue em { font-style: normal; font-size: .75rem; color: var(--ink-soft); }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.d-red { background: #e8603c; } .d-amber { background: #f0b43a; } .d-green { background: #4aa564; }

.timeline { display: grid; gap: 0; position: relative; padding-left: 4px; }
.timeline li { position: relative; display: flex; align-items: center; gap: 14px; padding: 10px 0; color: var(--ink-soft); }
.timeline li span { position: relative; z-index: 1; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid #d4d7d4; }
.timeline li:not(:last-child)::after { content: ""; position: absolute; left: 6px; top: 50%; width: 2px; height: 100%; background: #d4d7d4; }
.timeline li.done { color: var(--ink); }
.timeline li.done span { background: #4aa564; border-color: #4aa564; }
.timeline li.done:not(:last-child)::after { background: #4aa564; }
.timeline li.now { color: var(--ink); font-weight: 600; }
.timeline li.now span { border-color: #4aa564; box-shadow: 0 0 0 4px rgba(74,165,100,.2); }

/* ---------- Benefits ---------- */
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.benefit { background: var(--surface); border-radius: var(--radius); padding: 28px; display: grid; gap: 10px; align-content: start; }
.benefit h3 { font-size: 1.1rem; font-weight: 600; }
.benefit p { color: var(--ink-soft); font-size: .93rem; }

/* ---------- Gallery: pinned title, scrolling photos ---------- */
.gallery-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.gallery-title {
  position: sticky; top: 120px;          /* stays in place while the photos scroll */
  display: grid; gap: 20px; justify-items: start;
}
.gallery-title h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); line-height: 1.18; font-weight: 500; letter-spacing: -.02em; }
.gallery-title > p { color: var(--ink-soft); max-width: 48ch; }

.gallery-photos { position: relative; }
/* Soft blur + fade at the top edge: photos dissolve as they leave the screen */
.gallery-blur {
  position: sticky; top: 0; z-index: 4; pointer-events: none;
  height: 150px; margin: 0 -28px -150px;
  background: linear-gradient(to bottom, rgba(255,255,255,.96) 0%, rgba(255,255,255,.7) 45%, rgba(255,255,255,0) 100%);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 100%);
}
.masonry { column-count: 2; column-gap: var(--gap); padding-top: 32px; }
.shot { break-inside: avoid; margin: 0 0 var(--gap); position: relative; overflow: hidden; border-radius: 24px; background: var(--surface); }
.shot img { width: 100%; height: auto; display: block; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.shot:hover img { transform: scale(1.04); }
.shot figcaption {
  position: absolute; left: 12px; bottom: 12px;
  font-size: .75rem; font-weight: 600; color: #fff;
  background: rgba(17,20,18,.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  padding: .3rem .75rem; border-radius: 999px;
}
.masonry .shot:nth-child(even) { margin-top: 0; }

/* ---------- CTA / contact ---------- */
.cta-box { background: linear-gradient(135deg, var(--mint) 0%, var(--mint-2) 50%, var(--sky) 100%); border-radius: 36px; padding: 64px 32px; display: grid; gap: 14px; justify-items: center; text-align: center; }
.cta-box h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.cta-box .hl { background: rgba(255,255,255,.65); }
.cta-box > p { color: #2f3a33; }
.contact-form { margin-top: 16px; width: min(640px, 100%); display: grid; grid-template-columns: 1fr 1fr; gap: 14px; text-align: left; }
.contact-form label { display: grid; gap: 6px; font-size: .8rem; font-weight: 600; }
.contact-form .full { grid-column: 1 / -1; }
.contact-form input, .contact-form textarea { font: inherit; padding: .8rem 1rem; border: 1px solid transparent; border-radius: 16px; background: rgba(255,255,255,.85); outline: none; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--ink); background: #fff; }
.contact-form button { grid-column: 1 / -1; justify-self: center; }

/* ---------- Footer ---------- */
.footer { max-width: var(--maxw); margin: 80px auto 0; padding: 32px 24px 40px; display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; align-items: center; color: var(--ink-soft); font-size: .85rem; border-top: 1px solid var(--surface-2); }
.footer .brand { color: var(--ink); }
.footer a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer a:hover {
  color: var(--ink);
}

.footer-logo img {
  height: 28px;
  width: auto;
  object-fit: contain;
}

/* ---------- Scroll reveal (only when JS is on) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 96px; min-height: auto; }
  .hero-media { height: 460px; }
  .stats, .models { grid-template-columns: 1fr; }
  .steps, .benefits { grid-template-columns: repeat(2, 1fr); }
  /* Gallery: single column, title no longer pinned */
  .gallery-wrap { grid-template-columns: 1fr; gap: 32px; }
  .gallery-title { position: static; }
  .gallery-blur { margin: 0 -24px -150px; }
  .feature { grid-template-columns: 1fr; padding: 44px 32px; gap: 32px; }
  /* Single column: video on top, "years" card sits in the flow below it so nothing covers the video label */
  .feature { --vw: min(300px, 78%); }
  .feature-media { min-height: 0; justify-items: center; align-content: start; gap: 16px; }
  .fl-like, .fl-team { right: auto; left: 0; }
  .fl-stat { right: auto; left: 0; bottom: auto; top: 37%; width: 240px; }
  .fl-years { position: relative; right: auto; bottom: auto; width: min(280px, 100%); }
  .stack-card { grid-template-columns: 1fr; padding: 28px; min-height: 0; margin-bottom: 10vh; }
  .stack-visual { padding: 24px 24px 0; max-height: 300px; }
}
@media (max-width: 560px) {
  .section { padding-top: 72px; }
  .hero-media { grid-template-columns: repeat(2, 1fr); height: 400px; }
  .hero-media .col.slow { display: none; }
  .steps, .benefits { grid-template-columns: 1fr; }
  .fl-team { display: none; } /* keeps the small phone layout uncluttered */
  /* Sticky cards must fit inside the viewport on phones, so keep them compact */
  .stack { --stack-top: 92px; --step: 10px; }
  .stack-card { padding: 22px 22px 0; gap: 18px; margin-bottom: 8vh; }
  .stack-copy { gap: 12px; }
  .stack-copy h3 { font-size: 1.6rem; }
  .stack-visual { max-height: 130px; align-items: start; padding: 16px 18px 0; margin: 0 -22px; border-radius: 0 0 var(--radius-sm) var(--radius-sm); }
  .panel { padding: 28px; }
  .contact-form { grid-template-columns: 1fr; }
  .footer { flex-direction: column; align-items: flex-start; }
}

/* Short phone screens: drop the mock window so each card still fits */
@media (max-width: 560px) and (max-height: 720px) {
  .stack-visual { display: none; }
  .stack-card { padding-bottom: 22px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .col, .marquee-track, .live-dot, .fl { animation: none; }
  .stack-card { transform: none; }
  .stack-card::after { opacity: 0; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}