:root {
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: #fff;
  background: #101a24;
  color-scheme: dark;
  --accent: #baff51;
  --gutter: clamp(20px, 5vw, 80px);
}
* { box-sizing: border-box; }
body { margin: 0; overflow: hidden; overscroll-behavior: none; }
button { font: inherit; cursor: pointer; }
button:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.story {
  position: relative;
  display: grid;
  grid-template-rows: 1fr;
  height: 100vh;
  height: 100dvh;
  isolation: isolate;
  touch-action: none;
}
.stage, .stage::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage { z-index: -1; overflow: hidden; background: #192835; }
.media-frame {
  position: absolute;
  left: 57%;
  top: 50%;
  width: max(100vw, calc(100dvh * 1284 / 673));
  aspect-ratio: 1284 / 673;
  transform: translate(-57%, -50%);
  overflow: hidden;
}
.media-frame > * {
  position: absolute;
  inset: 0;
  width: 100%;
  height: auto;
  aspect-ratio: 1284 / 724;
}
.stage::after {
  content: "";
  pointer-events: none;
  background: linear-gradient(0deg, #081019f2, #08101988 25%, transparent 56%),
    linear-gradient(90deg, #08101970, transparent 70%),
    linear-gradient(180deg, #0810198c, transparent 20%);
}
.wordmark { display: flex; align-items: center; gap: 12px; color: white; background: none; border: 0; padding: 8px 0; font-weight: 760; font-size: 21px; }
.mark { display: block; width: clamp(38px, 4vw, 52px); height: auto; }
.content { align-self: end; margin: 0 var(--gutter) clamp(24px, 5vh, 62px); max-width: 800px; transition: opacity .2s ease, transform .2s ease; }
.copy-right .content { justify-self: end; text-align: right; }
.copy-right .description { margin-inline-start: auto; }
.copy-top .content { align-self: start; margin-top: calc(76px + clamp(20px, 4vh, 56px)); }
@media (min-width: 701px) {
  .copy-top .stage::after {
    background: linear-gradient(180deg, #081019a8, #08101940 33%, transparent 60%),
      linear-gradient(90deg, #08101950, transparent 68%);
  }
  .copy-right .stage::after {
    background: linear-gradient(0deg, #081019f2, #08101988 25%, transparent 56%),
      linear-gradient(270deg, #08101970, transparent 70%),
      linear-gradient(180deg, #0810198c, transparent 20%);
  }
}
.is-playing .content { opacity: 0; transform: translateY(8px); }
.eyebrow { margin: 0 0 12px; color: var(--accent); font-size: 14px; font-weight: 700; letter-spacing: .04em; }
h1 { font-size: clamp(38px, 6.2vw, 106px); line-height: .97; letter-spacing: -.06em; margin: 0; text-wrap: balance; }
.description { max-width: 480px; margin: 16px 0 0; color: #eef3f8; font-size: clamp(16px, 1.5vw, 20px); line-height: 1.45; }
@media (max-width: 700px) {
  body:not(.details-visible) { touch-action: none; }
  .story {
    grid-template-rows: auto auto;
    height: auto;
    padding: max(70px, calc(env(safe-area-inset-top) + 58px)) var(--gutter) 0;
  }
  .stage {
    position: relative;
    z-index: auto;
    aspect-ratio: 1284 / 673;
    height: auto;
    border-radius: 14px;
  }
  .stage::after { display: none; }
  .media-frame { inset: 0; width: 100%; transform: none; }
  .story .content { margin: 15px 0 0; }
  .story h1 { font-size: clamp(25px, 6.9vw, 44px); line-height: 1.05; }
  .story .eyebrow { margin-bottom: 5px; }
  .story .description { margin-top: 8px; font-size: 15px; }
  .story.is-playing .content { opacity: 1; transform: none; }
  #details { padding-top: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .content { transition: none; }
}
.order-button {
  margin-top: 20px;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 4px;
  background: var(--accent);
  color: #142000;
  font-weight: 750;
}
.order-dialog {
  width: min(460px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  touch-action: pan-y;
  border: 1px solid #ffffff35;
  border-radius: 12px;
  padding: clamp(18px, 4vw, 30px);
  background: #101a24;
}
.order-dialog::backdrop { background: #081019b8; }
.order-form h2 { margin: 0; font-size: 28px; }
.order-form p { line-height: 1.45; }
.order-form label { display: grid; gap: 5px; margin-block: 12px; }
.order-form input, .order-form textarea {
  width: 100%;
  border: 1px solid #ffffff50;
  border-radius: 4px;
  padding: 10px;
  background: #182636;
  color: inherit;
  font: inherit;
}
.order-form textarea { min-height: 100px; }
.order-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.order-actions .order-button { margin: 0; }
.order-close { color: inherit; background: transparent; border: 1px solid #ffffff50; border-radius: 4px; min-height: 46px; padding-inline: 14px; }
body.details-visible { overflow-y: auto; overflow-x: clip; }
.story.is-complete { touch-action: pan-y pinch-zoom; }
.story-actions:not([hidden]) { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 12px 20px; margin-top: 20px; }
.story-actions .order-button { margin: 0; }
.details-link { color: inherit; text-underline-offset: 4px; font-weight: 650; }
.details-link:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.details { background: #101a24; padding: clamp(48px, 8vw, 112px) var(--gutter); }
.details section { max-width: 1240px; margin-inline: auto; }
.details h2 { margin: 0; font-size: clamp(32px, 5vw, 68px); letter-spacing: -.055em; line-height: 1.03; text-wrap: balance; }
.details h3 { margin: 0; font-size: clamp(20px, 2.5vw, 29px); letter-spacing: -.025em; }
.details p:not(.eyebrow) { margin: 0; color: #d2dce7; line-height: 1.55; font-size: clamp(16px, 1.45vw, 19px); }
.details-intro, .faq { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 6vw, 86px); align-items: start; }
.details-intro { align-items: end; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: #ffffff29; border: 1px solid #ffffff29; margin-block: clamp(35px, 6vw, 78px); }
.service-grid article { padding: clamp(20px, 3vw, 38px); background: #16222f; }
.service-grid h3, .estimate h2 { margin-bottom: 12px; }
.estimate { padding-block: clamp(28px, 5vw, 70px); border-block: 1px solid #ffffff29; }
.faq { padding-block: clamp(42px, 7vw, 88px); }
.faq details { padding: 16px 0; border-bottom: 1px solid #ffffff29; }
.faq details:first-child { padding-top: 0; }
.faq summary { cursor: pointer; font-weight: 680; line-height: 1.35; }
.faq details p { padding-top: 12px; }
.details-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(22px, 4.5vw, 56px); background: #1d2b36; }
.details-cta .order-button { margin: 0; }
@media (max-width: 700px) {
  .details-intro, .faq, .service-grid { grid-template-columns: minmax(0, 1fr); }
  .details-cta { align-items: flex-start; flex-direction: column; }
}
.about {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  margin-block: clamp(38px, 6vw, 88px);
  border-radius: 20px;
  overflow: hidden;
  color: #111d25;
  background: #eaf0ee;
}
.about-copy { align-self: center; padding: clamp(24px, 4vw, 62px); }
.about .eyebrow { color: #375c29; }
.about h2 { font-size: clamp(29px, 3.8vw, 56px); margin-bottom: 16px; }
.details .about p:not(.eyebrow) { color: #35454b; }
.about img { width: 100%; height: 100%; min-height: 230px; object-fit: cover; object-position: center; }
.estimate { display: block; }
.estimate-heading {
  display: grid;
  grid-template-columns: 1fr .7fr;
  align-items: end;
  gap: clamp(16px, 5vw, 75px);
  margin-bottom: 28px;
}
.estimate-heading h2 { margin: 0; }
.price-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(236px, auto);
  gap: 12px;
}
.price-card {
  --card-surface: #192731;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: clamp(16px, 2vw, 26px);
  border: 1px solid #344350;
  border-radius: 20px;
  background:
    linear-gradient(0deg, #080f17f7 0%, #0a131bd9 34%, #0c17215c 75%, #0c172129 100%),
    var(--card-photo, none) center var(--photo-y, 43%) / cover no-repeat,
    var(--card-surface);
  transition: transform .45s cubic-bezier(.34, 1.4, .64, 1), opacity .35s ease;
}
.price-card--wide { grid-column: span 2; }
.price-card--featured { --card-surface: #293b29; }
.price-card:nth-child(1) { --card-photo: url("media/price-car.jpg"); --photo-y: 58%; }
.price-card:nth-child(2) { --card-photo: url("media/price-inspection.jpg"); }
.price-card:nth-child(3) { --card-photo: url("media/price-shipping.jpg"); }
.price-card:nth-child(4) { --card-photo: url("media/price-delivery.jpg"); }
.price-card:nth-child(5) { --card-photo: url("media/price-customs.jpg"); --photo-y: 54%; }
.price-card:nth-child(6) { --card-photo: url("media/price-documents.jpg"); }
.price-card h3 { margin-bottom: 10px; text-wrap: balance; }
.details .price-card p { font-size: 16px; max-width: 41ch; }
.price-card::before, .price-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: var(--hot, 0);
  transition: opacity .22s ease;
}
.price-card::before {
  z-index: -1;
  background: radial-gradient(300px circle at var(--x, 50%) var(--y, 50%), #baff512a, transparent 85%);
}
.price-card::after {
  padding: 1px;
  background: radial-gradient(300px circle at var(--x, 50%) var(--y, 50%), #baff51, transparent 78%);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
}
.price-ripple {
  position: absolute;
  z-index: -1;
  width: 42px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #baff5140;
  pointer-events: none;
}
.price-card.is-pending { opacity: 0; transform: translateY(14px); }
@media (max-width: 1000px) {
  .price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-card:nth-child(4) { grid-column: span 2; }
  .price-card:nth-child(5) { grid-column: auto; }
}
@media (max-width: 700px) {
  .about, .estimate-heading { grid-template-columns: minmax(0, 1fr); }
  .about img { min-height: auto; height: auto; aspect-ratio: 1284 / 673; object-fit: cover; clip-path: none; }
}
@media (max-width: 420px) {
  .price-grid { grid-auto-rows: minmax(164px, auto); gap: 8px; }
  .price-card { padding: 12px 10px; border-radius: 14px; }
  .price-card h3 { font-size: 16px; line-height: 1.15; overflow-wrap: anywhere; hyphens: auto; }
  .details .price-card p { font-size: 14px; line-height: 1.4; }
}
@media (prefers-reduced-motion: reduce) {
  .price-card, .price-card::before, .price-card::after { transition: none; }
  .price-card.is-pending { opacity: 1; transform: none; }
}

.pill-header {
  position: fixed;
  z-index: 5;
  inset: max(12px, env(safe-area-inset-top)) var(--gutter) auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
}
.pill-header > * { pointer-events: auto; }
.pill-header .wordmark, .pill-links, .pill-menu {
  border: 1px solid #ffffff35;
  border-radius: 999px;
  background: #101b28c9;
  backdrop-filter: blur(20px) saturate(1.5);
  box-shadow: 0 4px 20px #0003;
}
.pill-header .wordmark { padding: 11px 16px; font-size: clamp(16px, 2vw, 21px); text-decoration: none; }
.pill-header .mark { flex: none; }
.pill-links { display: flex; align-items: center; gap: 3px; padding: 4px; }
.pill-links a {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 40px;
  border-radius: 999px;
  padding: 0 15px;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 680;
  transition: color .23s ease;
}
.pill-links a::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background: var(--accent);
  transform: scale(.75, 0);
  transform-origin: center bottom;
  transition: transform .32s cubic-bezier(.25, .95, .35, 1.15);
}
.pill-links a:hover, .pill-links a:focus-visible { color: #142000; }
.pill-links a:hover::before, .pill-links a:focus-visible::before { transform: scale(1); }
.pill-links a[aria-current] { gap: 7px; }
.pill-links a[aria-current]::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.pill-links a[aria-current]:is(:hover, :focus-visible)::after { background: #142000; }
.pill-header :is(a, button):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pill-menu { display: none; color: #fff; min-height: 44px; padding-inline: 15px; font-weight: 700; }
.pill-menu span { display: inline-block; width: 12px; height: 8px; margin-left: 4px; border-block: 1px solid currentColor; }
.details, .details section[id] { scroll-margin-top: 84px; }
@media (max-width: 760px) {
  .pill-menu { display: block; }
  .pill-links {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    flex-direction: column;
    align-items: stretch;
    min-width: 165px;
    border-radius: 20px;
  }
  .pill-menu[aria-expanded="true"] + .pill-links { display: flex; }
}
@media (prefers-reduced-motion: no-preference) {
  .pill-header { animation: header-enter .4s cubic-bezier(.25, .95, .35, 1.15) both; }
  @keyframes header-enter { from { opacity: 0; transform: translateY(-12px); } }
}
@media (prefers-reduced-motion: reduce) {
  .pill-links a, .pill-links a::before { transition: none; }
}
