/* Section styles. One block per section, in DOM order:
   header, hero, showcase, cases, why, plans, process, faq, team, cta, footer. */

/* ── Header ── */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(13,13,13,.72); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-family: var(--font-display); font-weight: 600; font-size: 21px; letter-spacing: -.01em; }
.brand--lockup { display: inline-flex; align-items: center; gap: 10px; }
.brand__icon { display: block; width: 32px; height: 32px; border-radius: 7px; transition: transform .25s cubic-bezier(.16, 1, .3, 1); }
.brand__word { font-family: var(--font-display); font-weight: 600; font-size: 21px; letter-spacing: -.01em; }
.brand--lockup:hover .brand__icon { transform: scale(1.06); }
/* the "a" breaks out of the lane - the wordmark carries the concept */
.brand__a { position: relative; display: inline-block; transform: translateY(-.14em) rotate(-7deg); transition: transform .3s cubic-bezier(.16, 1, .3, 1); }
.brand__a::after { content: ''; position: absolute; left: -1px; right: -1px; bottom: -1px; height: 2px; border-radius: 1px; background: var(--accent); transform: scaleX(.85); transform-origin: left; }
.brand:hover .brand__a { transform: translateY(-.28em) rotate(-11deg); }
.nav { display: flex; gap: 28px; font-size: 15px; color: var(--text-2); }
.nav a:hover { color: var(--text); }
.lang { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-3); }
.lang button { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; padding: 4px; }
.lang button[aria-pressed="true"] { color: var(--accent); }
@media (max-width: 640px) { .nav { display: none; } }

/* ── Hero ── */
.hero { padding-top: clamp(48px, 8vw, 96px); }
.hero__accent { color: var(--accent); }
.hero .lead { margin-top: 24px; }
.hero__stats { list-style: none; display: flex; flex-wrap: wrap; gap: 32px; margin-top: 40px; }
.hero__stats li { font-size: 14px; color: var(--text-3); position: relative; padding-left: 16px; }
.hero__stats li::before { content: ''; position: absolute; left: 0; top: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); }

/* ── Showcase (editorial grid) ── */
.showcase__grid { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: clamp(180px, 23vw, 300px); gap: 16px; }
.work { display: block; }
.work__media { width: 100%; height: 100%; border-radius: var(--r); overflow: hidden; background: var(--surface-2); }
/* Vimeo background player fills the card like a silent looping clip.
   The iframe is locked to 16:9 and oversized to cover the (variable-ratio)
   card, so the clip zooms to fill with the overflow masked — no black bars. */
.work__video { position: absolute; inset: 0; overflow: hidden; background: var(--surface-2); }
.work__video iframe {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  min-width: 100%; min-height: 100%; width: auto; height: auto;
  aspect-ratio: 16 / 9; border: 0; pointer-events: none;
}
.work__media img, .work__media video { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.work:hover .work__media img, .work:hover .work__media video { transform: scale(1.04); }
.work__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.work__title { font-size: 16px; font-weight: 500; }
.work__tag { font-size: 13px; color: var(--text-3); }
.showcase__cta { margin-top: 48px; }
/* deliberate scale contrast: a lead feature, then a wide + narrow rhythm */
.showcase__grid .work:nth-child(1) { grid-column: span 4; }
.showcase__grid .work:nth-child(2) { grid-column: span 2; }
.showcase__grid .work:nth-child(3) { grid-column: span 2; }
.showcase__grid .work:nth-child(4) { grid-column: span 4; }
.showcase__grid .work:nth-child(5) { grid-column: span 3; }
.showcase__grid .work:nth-child(6) { grid-column: span 3; }
@media (max-width: 900px) {
  .showcase__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; }
  .showcase__grid .work { grid-column: auto; }
  .work__media { height: auto; aspect-ratio: 16 / 9; }
}
@media (max-width: 560px) { .showcase__grid { grid-template-columns: 1fr; } }

/* ── Cases ── */
.cases__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 24px; margin-top: 40px; }
.case__media { aspect-ratio: 16/9; border-radius: var(--r); overflow: hidden; background: var(--surface-2); }
.case__media img { width: 100%; height: 100%; object-fit: cover; }
.case__title { font-family: var(--font-display); font-size: clamp(21px, 2.5vw, 28px); font-weight: 600; margin-top: 18px; letter-spacing: -.01em; }
.case__desc { color: var(--text-2); font-size: 16px; margin-top: 8px; max-width: 46ch; }
.case__tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.case__tags span { font-size: 12px; color: var(--text-3); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; }
@media (max-width: 760px) { .cases__grid { grid-template-columns: 1fr; } }

/* ── Clients (logo wall) ── */
.clients__grid { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 40px; }
.client {
  height: clamp(56px, 6.5vw, 76px); display: grid; place-items: center; padding: 12px 18px;
  opacity: .78; transition: opacity .25s ease, transform .25s cubic-bezier(.16, 1, .3, 1);
}
.client img { max-width: 100%; max-height: 40px; width: auto; height: auto; object-fit: contain; display: block; }
/* square/portrait marks read smaller at a shared height cap — give them +30% */
.client--lg img { max-height: 52px; }
.client:hover { opacity: 1; transform: translateY(-2px); }
@media (max-width: 900px) { .clients__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .clients__grid { grid-template-columns: repeat(2, 1fr); } }

/* ── Why Outlane ── */
.why__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.why__list { list-style: none; display: flex; flex-direction: column; }
.why__list li { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); }
.why__list li:last-child { border-bottom: 1px solid var(--line); }
.why__k { font-weight: 500; }
.why__v { color: var(--text-2); font-size: 16px; }
@media (max-width: 760px) { .why__grid { grid-template-columns: 1fr; gap: 32px; } .why__list li { grid-template-columns: 1fr; gap: 4px; } }

/* ── Cost comparison ── */
.compare { margin-top: 56px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(24px, 3vw, 44px); display: flex; flex-direction: column; gap: 28px; }
.compare__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 12px; }
.compare__label { font-size: 15px; color: var(--text-3); }
.compare__row--brand .compare__label { color: var(--text); font-weight: 600; }
.compare__amount { font-size: clamp(20px, 2.6vw, 26px); font-weight: 700; white-space: nowrap; }
.compare__row--brand .compare__amount { color: var(--accent); }
.compare__unit { font-size: 14px; font-weight: 400; color: var(--text-3); margin-left: 1px; }
.compare__track { height: 12px; background: var(--surface-2); border-radius: 6px; overflow: hidden; }
.compare__bar { display: block; height: 100%; width: 0; border-radius: 6px; background: #3A3A3A; transition: width 1.2s cubic-bezier(.16, 1, .3, 1); }
.compare__row--brand .compare__bar { background: var(--accent); box-shadow: 0 0 24px rgba(200, 241, 53, .25); }
.compare__note { color: var(--text-3); font-size: 14px; margin-top: 2px; text-wrap: pretty; }
@media (prefers-reduced-motion: reduce) { .compare__bar { transition: none; } }

/* ── Plans ── */
.plans__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.plan { border: 1px solid var(--line); border-radius: var(--r); padding: 28px 22px; display: flex; flex-direction: column; gap: 14px; background: var(--surface); }
.plan--featured { border-color: var(--accent); position: relative; }
.plan__badge { position: absolute; top: -11px; left: 22px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 500; padding: 3px 10px; border-radius: 999px; }
.plan__name { font-size: 20px; font-weight: 600; }
.plan__for { color: var(--text-3); font-size: 14px; }
.plan ul { list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 15px; color: var(--text-2); flex: 1; }
.plan ul li { padding-left: 18px; position: relative; }
.plan ul li::before { content: ''; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); }
.plan--featured ul li::before { background: var(--accent); }
.plan .btn { justify-content: center; }
.plans__note { color: var(--text-3); font-size: 14px; margin-top: 24px; text-wrap: pretty; }
@media (max-width: 980px) { .plans__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .plans__grid { grid-template-columns: 1fr; } }

/* ── Process (vertical timeline) ── */
.process__steps { list-style: none; margin-top: 48px; max-width: 720px; }
.process__steps li {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  grid-template-areas: "num title" "num desc";
  column-gap: 24px;
  padding-bottom: 40px;
}
.process__steps li:last-child { padding-bottom: 0; }
/* connecting line between nodes */
.process__steps li:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 23px;
  top: 48px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(var(--text-3), transparent);
}
.process__n {
  grid-area: num;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .2);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  position: relative;
  z-index: 1;
}
.process__k { grid-area: title; align-self: center; font-weight: 600; font-size: clamp(17px, 2vw, 20px); }
.process__v { grid-area: desc; color: var(--text-2); font-size: 16px; margin-top: 8px; max-width: 52ch; }
@media (max-width: 700px) { .process__steps li { column-gap: 18px; } }

/* ── FAQ ── */
.faq__list { margin-top: 32px; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { list-style: none; cursor: pointer; padding: 20px 0; font-size: clamp(17px, 2vw, 20px); font-weight: 500; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: '+'; color: var(--text-3); font-size: 24px; line-height: 1; transition: color .2s ease; }
.faq__item summary:hover::after, .faq__item[open] summary::after { color: var(--text); }
.faq__item[open] summary::after { content: '–'; }
.faq__item p { color: var(--text-2); font-size: 16px; padding: 0 0 22px; max-width: 70ch; }

/* ── Team ── */
.team .lead { margin-top: 20px; }
.team__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 48px; }
.member__photo { aspect-ratio: 4/3; border-radius: var(--r); overflow: hidden; background: var(--surface-2); }
.member__photo img { width: 100%; height: 100%; object-fit: cover; }
.member__name { font-size: 22px; font-weight: 600; margin-top: 16px; }
.member__role { color: var(--text-3); font-size: 14px; margin-top: 2px; }
.member__bio { color: var(--text-2); font-size: 16px; margin-top: 12px; max-width: 46ch; }
@media (max-width: 700px) { .team__grid { grid-template-columns: 1fr; } }

/* ── CTA ── */
.cta__inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.cta .lead { max-width: 40ch; }
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }

/* ── Footer ── */
.site-footer { border-top: 1px solid var(--line); padding-block: 56px; }
.site-footer__inner { display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; align-items: start; }
.site-footer__brand p { color: var(--text-3); font-size: 14px; margin-top: 10px; max-width: 36ch; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 12px 24px; font-size: 15px; color: var(--text-2); }
.site-footer__links a:hover { color: var(--text); }
.site-footer__rights { grid-column: 1 / -1; color: var(--text-3); font-size: 13px; border-top: 1px solid var(--line); padding-top: 20px; }
@media (max-width: 640px) { .site-footer__inner { grid-template-columns: 1fr; } }

/* ════════════════════════════════════════════
   Premium polish
   ════════════════════════════════════════════ */

/* ── Header: condense on scroll + animated nav ── */
.site-header { transition: background .3s ease, border-color .3s ease; }
.site-header.is-scrolled { background: rgba(13, 13, 13, .92); }
.site-header__inner { transition: height .3s cubic-bezier(.16, 1, .3, 1); }
.site-header.is-scrolled .site-header__inner { height: 54px; }
.nav a { position: relative; padding-bottom: 4px; transition: color .2s ease; }
.nav a::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .3s cubic-bezier(.16, 1, .3, 1);
}
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.nav a.is-active { color: var(--text); }

/* ── Hero: ambient glow + gradient accent ── */
.hero { position: relative; overflow: hidden; }
.hero__inner { position: relative; z-index: 1; }
.hero__glow {
  position: absolute; top: -12%; left: 50%; transform: translateX(-50%);
  width: min(880px, 92vw); height: 560px; z-index: 0; pointer-events: none;
  background: radial-gradient(closest-side, rgba(200, 241, 53, .18), transparent 72%);
  filter: blur(30px); animation: heroGlow 9s ease-in-out infinite alternate;
}
#hero-h { position: relative; }
/* the lane the headline drives in */
#hero-h::before {
  content: ''; position: absolute; left: 0; right: -6%; bottom: .06em; height: 2px; z-index: -1;
  background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .16) 0 18px, transparent 18px 36px);
}
/* the accent line breaks out of the lane on load */
.hero__accent {
  display: inline-block; color: var(--accent); transform-origin: left center;
  animation: breakaway 1s cubic-bezier(.16, 1, .3, 1) .7s both;
}
@keyframes heroGlow { from { opacity: .6; } to { opacity: 1; } }
@keyframes breakaway {
  0%   { transform: translate(0, .2em); }
  55%  { transform: translate(8px, -.05em); text-shadow: -20px 0 16px rgba(200, 241, 53, .4); }
  100% { transform: none; text-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__glow { animation: none; }
  .hero__accent { animation: none; transform: none; }
}

/* ── Marquee = the lane/track ── */
.marquee {
  position: relative;
  overflow: hidden; padding: 20px 0 30px; background: var(--surface);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
/* dashed road markings - the visible lane */
.marquee::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 13px; height: 2px;
  background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .22) 0 22px, transparent 22px 44px);
  background-size: 44px 2px;
  animation: laneDash 1s linear infinite;
}
/* the lime racer travelling down the lane */
.marquee::before {
  content: ''; position: absolute; left: 0; bottom: 13px; height: 2px; width: 64px; z-index: 1;
  background: var(--accent); box-shadow: 0 0 12px rgba(200, 241, 53, .7);
  animation: laneRacer 3.6s cubic-bezier(.5, 0, .5, 1) infinite;
}
@keyframes laneDash { to { background-position: -44px 0; } }
@keyframes laneRacer { 0% { transform: translateX(-80px); } 100% { transform: translateX(102vw); } }
@media (prefers-reduced-motion: reduce) { .marquee::after, .marquee::before { animation: none; } }
.marquee__track {
  display: inline-flex; align-items: center; gap: 28px; white-space: nowrap;
  will-change: transform;
}
.marquee__track span {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 34px); font-weight: 600; letter-spacing: -.01em;
  text-transform: uppercase; color: var(--text-2);
}
.marquee__dot { color: var(--text-3); font-size: clamp(12px, 1.4vw, 16px); }

/* ── Stats ── */
.stats { padding-block: clamp(48px, 7vw, 90px); }
.stats__grid { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat__num { font-family: var(--font-display); font-size: clamp(38px, 5.2vw, 64px); font-weight: 600; letter-spacing: -.02em; line-height: 1; color: var(--text); }
.stat__label { font-size: 14px; color: var(--text-3); }
@media (max-width: 640px) { .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; } }

/* ── Showcase cards: tilt + hover overlay ── */
.work { position: relative; transform-style: preserve-3d; transition: opacity .6s cubic-bezier(.16, 1, .3, 1), transform .25s ease, box-shadow .3s ease; }
.work:hover { box-shadow: 0 26px 60px -22px rgba(0, 0, 0, .65); }
.work__media { position: relative; }
.work__media::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(13, 13, 13, .9), rgba(13, 13, 13, .1) 52%, transparent 72%);
}
.work__meta {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 16px;
}
.work__title { color: var(--text); font-weight: 500; }
.work__tag { color: var(--text-2); }

/* ── Featured plan: pulsing glow ── */
.plan--featured { box-shadow: 0 0 0 1px var(--accent), 0 18px 50px -28px rgba(200, 241, 53, .22); }

/* ── Accent button: arrow + overtake streak ── */
.btn-accent { position: relative; overflow: hidden; }
.btn-accent::after { content: '→'; font-size: 16px; transition: transform .25s cubic-bezier(.16, 1, .3, 1); }
.btn-accent:hover::after { transform: translateX(4px); }
.btn-accent::before {
  content: ''; position: absolute; top: 0; bottom: 0; left: -45%; width: 45%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-18deg); opacity: 0; pointer-events: none;
}
.btn-accent:hover::before { animation: overtake .6s ease; }
@keyframes overtake { 0% { left: -45%; opacity: 0; } 25% { opacity: 1; } 100% { left: 130%; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .btn-accent:hover::before { animation: none; } }

/* ── Boost (FULL SEND easter egg) ── */
.boost-flash {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: end center;
  padding-bottom: clamp(56px, 14vh, 180px);
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(34px, 8vw, 110px); letter-spacing: -.02em; text-align: center;
  color: var(--accent); pointer-events: none;
  text-shadow: 0 0 44px rgba(200, 241, 53, .6);
  background: radial-gradient(circle at center, rgba(200, 241, 53, .08), transparent 60%);
  animation: boostFlash 2.6s cubic-bezier(.16, 1, .3, 1);
}
@keyframes boostFlash {
  0% { opacity: 0; transform: scale(.92) skewX(-6deg); }
  15% { opacity: 1; }
  80% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: scale(1.04) translateX(40px) skewX(-6deg); }
}
body.is-boost .grain { opacity: .12; }
body.is-boost::after {
  content: ''; position: fixed; inset: 0; z-index: 190; pointer-events: none;
  background-image: repeating-linear-gradient(90deg, transparent 0 58px, rgba(200, 241, 53, .10) 58px 60px);
  animation: speedLines .4s linear infinite;
}
@keyframes speedLines { to { background-position: -60px 0; } }
@media (prefers-reduced-motion: reduce) {
  .boost-flash { animation: none; }
  body.is-boost::after { display: none; }
}
