/* ==========================================================
   VantricMotion stylesheet, matched to vantricmotion-landing.html
   1 Tokens  2 Base  3 Buttons  4 Header  5 Hero  6 Slider
   7 Stats  8 Sections  9 Versus  10 Pipeline  11 Cards+dialog
   12 Lead  13 Formats  14 Contact+footer  15 Motion
   ========================================================== */

/* 1. TOKENS */
:root {
  --bg: #EEF0F2;
  --bg-alt: #E3E7EA;
  --surface: #FFFFFF;
  --ink: #14171C;
  --ink-soft: #565C64;
  --ink-faint: #8B9199;
  --line: #D7DBDE;
  --accent: #FF5A1F;
  --accent-soft: #FFE4D6;
  --blue: #2451FF;
  --bad: #C0392B;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;
  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'IBM Plex Sans', 'Segoe UI', sans-serif;
  --shadow: 0 1px 2px rgba(20,23,28,.04), 0 8px 24px rgba(20,23,28,.06);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14161A; --bg-alt: #1B1E23; --surface: #1F232A;
    --ink: #EDEEF0; --ink-soft: #AEB3BB; --ink-faint: #767C85;
    --line: rgba(237,238,240,.14);
    --accent: #FF6B39; --accent-soft: rgba(255,107,57,.16);
    --blue: #6E8CFF; --bad: #E58A7E;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 28px rgba(0,0,0,.35);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #14161A; --bg-alt: #1B1E23; --surface: #1F232A;
  --ink: #EDEEF0; --ink-soft: #AEB3BB; --ink-faint: #767C85;
  --line: rgba(237,238,240,.14);
  --accent: #FF6B39; --accent-soft: rgba(255,107,57,.16);
  --blue: #6E8CFF; --bad: #E58A7E;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 28px rgba(0,0,0,.35);
  color-scheme: dark;
}

/* 2. BASE */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 80px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
.muted { color: var(--ink-soft); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
}
h2 { font-size: 34px; }
h3 { font-size: 18px; }

/* 3. BUTTONS: pill shaped. .btn = outline, .primary = orange */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: 600 14.5px/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.btn:hover { border-color: var(--ink-soft); }

.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 40%, transparent);
}

/* 4. HEADER */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

/* Scroll-progress line; --progress (0 to 1) is set by the JS */
header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  transform-origin: 0 50%;
  transform: scaleX(var(--progress, 0));
  background: var(--accent);
}

.bar {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: calc(14px + env(safe-area-inset-top, 0px));
  padding-bottom: 14px;
}

.bar .btn.primary { background: var(--ink); border-color: var(--ink); color: var(--bg); padding: 9px 18px; font-size: 13.5px; }
.bar .btn.primary:hover { box-shadow: var(--shadow); }

.logo { display: block; flex: none; width: min(252px, 46vw); aspect-ratio: 9 / 1; }
.logo img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: left center; }

/* The 1:1 PNG logo replaces the wide one after the hero (.past-hero is set by the JS) */
.logo .logo-square { display: none; }
header.past-hero .logo { width: 36px; aspect-ratio: 1 / 1; }
header.past-hero .logo .logo-wide { display: none; }
header.past-hero .logo .logo-square { display: block; animation: logo-in .25s ease; }
header.swapped:not(.past-hero) .logo .logo-wide { animation: logo-in .25s ease; }
@keyframes logo-in { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }



nav { display: flex; gap: 30px; margin-left: auto; }
nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 14.5px;
  font-weight: 500;
  transition: color .15s ease;
}
nav a:hover { color: var(--ink); }
nav a.active, nav a.active:hover {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}

/* 5. HERO */
.hero { padding: 96px 0 88px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 64px;
  align-items: center;
}

.kicker { margin-bottom: 18px; font-size: 14px; font-weight: 500; color: var(--ink-faint); }

.hero h1 { font-size: 52px; max-width: 15ch; }
.hero h1 em { font-style: normal; color: var(--accent); }

.hero p.lead { margin-top: 22px; max-width: 42ch; font-size: 18px; color: var(--ink-soft); }

.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.video {
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  background: var(--bg-alt);
}
.video .play {
  width: 56px; height: 56px;
  margin: 0 auto 8px;
  padding-left: 3px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 18px;
  box-shadow: var(--shadow);
}
.video video { width: 100%; height: 100%; object-fit: cover; }

/* 6. FRAMES + BEFORE/AFTER SLIDER */
.sheet {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 10px;
}
.sheet > .video, .sheet > #slider { border-radius: var(--radius-md); }

.titleblock {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 18px 6px 4px;
  font-size: 13.5px;
  color: var(--ink-faint);
}
.titleblock b { color: var(--ink); font-family: var(--font-display); font-size: 15px; font-weight: 600; }

#slider {
  --pos: 50%;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-alt);
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}
#slider svg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; display: block; }
#slider .before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }

.handle {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--pos);
  width: 2px;
  transform: translateX(-50%);
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,.15);
  pointer-events: none;
}
.grip {
  position: absolute;
  top: 50%; left: 50%;
  width: 38px; height: 38px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #14171C;
  font-weight: 700;
  box-shadow: var(--shadow);
}

.tag {
  position: absolute;
  bottom: 16px;
  z-index: 2;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.tag.l { left: 16px; background: rgba(20,23,28,.55); }
.tag.r { right: 16px; background: var(--accent); }

#slider input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
#slider:focus-within .grip { outline: 2px solid var(--blue); outline-offset: 3px; }

/* 7. STATS STRIP */
.strip { border-block: 1px solid var(--line); }
.strip .wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px 80px; padding-top: 32px; padding-bottom: 32px; text-align: center; }
.strip strong { display: block; font: 700 26px/1.2 var(--font-display); }
.strip span { font-size: 13.5px; font-weight: 500; color: var(--accent); }

/* BEFORE/AFTER IMAGE SLIDER OVERRIDES */
#slider .slider-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#slider #before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* 8. SECTIONS */
section { padding: 90px 0; }
section.alt { background: var(--bg-alt); }

.head { max-width: 640px; margin-bottom: 52px; }
.head p { margin-top: 14px; font-size: 16.5px; color: var(--ink-soft); }

/* 9. VERSUS */
.vs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.vs > div { padding: 36px; }
.vs > div + div { border-left: 1px solid var(--line); background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.vs h3 { margin-bottom: 20px; font-size: 20px; }
.vs ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; color: var(--ink-soft); font-size: 15.5px; }
.vs li { position: relative; padding-left: 26px; }
.vs li::before { position: absolute; left: 0; font-weight: 700; }
.vs .no li::before { content: "×"; color: var(--bad); }
.vs .yes li::before { content: "✓"; color: var(--blue); }

/* 10. PIPELINE (tabs built by the JS) */
.pipe {
  display: grid;
  grid-template-columns: 300px 1fr;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.pipe [role="tablist"] { display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.pipe [role="tab"] {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 22px 26px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  font: 600 15.5px/1.3 var(--font-body);
  text-align: left;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.pipe [role="tab"]:last-child { border-bottom: 0; }
.pipe [role="tab"]:hover { color: var(--ink); }
.pipe [role="tab"] i {
  flex: none;
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  font: 700 13px var(--font-display);
  font-style: normal;
  color: var(--ink-faint);
}
.pipe [role="tab"][aria-selected="true"] { background: var(--accent-soft); color: var(--ink); }
.pipe [role="tab"][aria-selected="true"] i { background: var(--accent); color: #fff; }

.pipe [role="tabpanel"] { padding: 44px; }
.pipe [role="tabpanel"] h3 { font-size: 24px; }
.pipe [role="tabpanel"] p { margin-top: 14px; max-width: 56ch; font-size: 16.5px; color: var(--ink-soft); }

/* 11. PROJECT CARDS + DIALOG */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .2s ease;
}
.card:hover { transform: translateY(-3px); }

.ph {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-faint);
  background: var(--bg-alt);
}
.card .in { display: flex; flex-direction: column; flex: 1; gap: 10px; padding: 24px; }
.card .field {
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 600;
}
.card p { flex: 1; font-size: 14.5px; color: var(--ink-soft); }
.card .btn { width: 100%; margin-top: 8px; }

.card .ph {
  position: relative;
  overflow: hidden;
}

.card .ph .project-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

dialog {
  width: calc(100% - 32px);
  max-width: 560px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(0,0,0,.25);
}
dialog::backdrop { background: rgba(10,12,16,.6); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
dialog h3 { font-size: 24px; }
dialog dl { margin: 20px 0 0; border-top: 1px solid var(--line); }
dialog dt { padding-top: 14px; font-size: 13px; font-weight: 600; color: var(--accent); }
dialog dd { margin: 2px 0 0; padding-bottom: 14px; border-bottom: 1px solid var(--line); color: var(--ink-soft); font-size: 15px; }
dialog .row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

/* 12. TECHNICAL LEAD */
.lead-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }

/*.portrait {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-faint);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}*/
.portrait {
  width: 100%;
  max-width: 100px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-faint);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.lead-grid h2 { font-size: 30px; }
.role { margin-top: 8px; font-weight: 600; color: var(--accent); }
.lead-grid blockquote { max-width: 58ch; margin: 18px 0 24px; font-size: 17px; line-height: 1.6; color: var(--ink-soft); }
.links { display: flex; flex-wrap: wrap; gap: 10px; }
.links .btn { padding: 9px 18px; font-size: 13.5px; }
.links .btn.primary { background: var(--ink); border-color: var(--ink); color: var(--bg); }

.links .btn.icon-btn {
  padding: 9px 14px;
}
.links .btn.icon-btn img {
  width: 30px;
  height: 30px;
  display: block;
  filter: invert(1) brightness(2);
}

/* 13. FORMATS */
.fmt { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.fmt > div {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.fmt h3 { margin-bottom: 6px; font-size: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.chips li {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--bg-alt);
  font-size: 13.5px;
  font-weight: 500;
}
.fmt .out li { background: var(--accent-soft); color: var(--accent); font-weight: 600; }

/* 14. CONTACT + FOOTER */
.contact { padding-top: 0; }
.contact .panel { background: var(--ink); color: var(--bg); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow); }
.contact-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 48px;
  align-items: start;
  padding: 40px 36px;
  border: 1px solid color-mix(in srgb, var(--bg) 18%, transparent);
  border-radius: calc(var(--radius-lg) - 8px);
}
.contact h2 { font-size: 30px; color: var(--bg); }
.contact h3 { font-size: 20px; color: var(--bg); }
.contact p { color: color-mix(in srgb, var(--bg) 65%, transparent); }

.mail { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
.mail strong { margin-right: auto; font: 600 18px var(--font-display); }

.contact .btn { border-color: color-mix(in srgb, var(--bg) 30%, transparent); color: var(--bg); }
.contact .btn:hover { border-color: var(--bg); }
.contact .btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }

.contact ol { display: grid; gap: 12px; margin: 16px 0 0; padding-left: 20px; color: color-mix(in srgb, var(--bg) 80%, transparent); font-size: 15px; }
.contact ol li::marker { color: var(--accent); font-weight: 700; }

footer { padding: 46px 0 60px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-soft); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 28px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }

/* RESPONSIVE */
@media (max-width: 880px) {
  .wrap { padding: 0 22px; }
  nav { display: none; }
  .bar {
    padding-top: calc(20px + env(safe-area-inset-top, 0px));
    padding-bottom: 20px;
  }
  .bar .btn { margin-left: auto; }
  section { padding: 60px 0; }
  .hero { padding: 64px 0 56px; }
  .hero-grid, .lead-grid, .contact-grid, .fmt { grid-template-columns: 1fr; }
  .hero-grid { gap: 40px; }
  .hero h1 { font-size: 38px; }
  .cards { grid-template-columns: 1fr; }
  .contact-grid { padding: 30px 22px; gap: 36px; }
  .portrait { max-width: 280px; }
}

@media (max-width: 760px) {
  .vs, .pipe { grid-template-columns: 1fr; }
  .vs > div { padding: 28px 24px; }
  .vs > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .pipe [role="tablist"] { border-right: 0; border-bottom: 1px solid var(--line); }
  .pipe [role="tabpanel"] { padding: 28px 22px; }
  .strip .wrap { gap: 20px 40px; }
}

/* 15. MOTION */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .btn { transition: none; }
  header.past-hero .logo .logo-square,
  header.swapped .logo .logo-wide { animation: none; }
  .card:hover, .btn.primary:hover { transform: none; }
}
