/* JBWebsites: dark, graded, one accent (safety yellow), condensed display type */
:root {
  --ink: #0D0E0E;
  --char: #17191A;
  --char-2: #202325;
  --paper: #F2EFE8;
  --muted: rgba(242, 239, 232, .68);
  --line: rgba(242, 239, 232, .14);
  --accent: #F5C518;
  --accent-hi: #FFD43B;

  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 136px);
  --nav-h: 76px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body { margin: 0; background: var(--ink); color: var(--paper); font: 400 18px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: .005em; line-height: .92; }
h2 { font-size: clamp(44px, 6vw, 80px); }
h3 { font-family: var(--body); font-weight: 600; font-size: 21px; line-height: 1.25; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--accent); color: var(--ink); padding: 10px 14px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Buttons: square, condensed caps */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px;
  font: 600 18px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  border: 2px solid transparent; border-radius: 2px; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn--lg { min-height: 56px; padding: 0 30px; font-size: 20px; }
.btn--accent { background: var(--accent); color: var(--ink); }
.btn--accent:hover { background: var(--accent-hi); }
.btn--outline { border-color: var(--paper); color: var(--paper); }
.btn--outline:hover { background: var(--paper); color: var(--ink); }

/* Brand wordmark */
.brand { font: 800 26px/1 var(--display); letter-spacing: .01em; text-transform: uppercase; text-decoration: none; color: var(--paper); }
.brand span { color: var(--accent); }

/* Nav: transparent over the hero, solid once scrolled past it */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h); transition: background-color .3s var(--ease), border-color .3s var(--ease); border-bottom: 1px solid transparent; }
.nav.is-solid { background: rgba(13, 14, 14, .94); border-color: var(--line); backdrop-filter: blur(8px); }
.nav__inner { display: flex; align-items: center; gap: 36px; height: 100%; }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a { font-weight: 500; font-size: 16px; text-decoration: none; color: var(--muted); padding: 6px 0; }
.nav__links a:hover { color: var(--paper); }

/* Hero: 300vh track, sticky full-screen stage under the transparent nav */
.hero { position: relative; height: 300vh; background: var(--ink); --p: 0; }
.hero__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; isolation: isolate; display: flex; align-items: center; }
.hero__still, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* One muted, darker grade over the client footage so the type reads without heavy overlays */
/* No contrast boost: it amplifies compression noise in dark, detailed areas like grass */
.hero__still, .hero__video { filter: brightness(.6) saturate(.65); }
.hero__still { z-index: -3; }
.hero__video { z-index: -2; }
.hero__shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(13, 14, 14, .55) 0%, rgba(13, 14, 14, 0) 22%),
    linear-gradient(0deg, rgba(13, 14, 14, .85) 0%, rgba(13, 14, 14, 0) 40%);
}
/* Bottom padding reserves room for the scroll hint so the teaser never touches it */
.hero__inner { text-align: center; display: flex; flex-direction: column; align-items: center; padding-top: var(--nav-h); padding-bottom: 96px; }
.hero__kicker { font: 600 18px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 22px; }
/* Sized by width AND height so the whole stack fits short laptop windows */
.hero h1 { font-size: clamp(48px, min(9.5vw, 13.5vh), 148px); max-width: 13ch; }
.hero__lede { max-width: 52ch; margin: clamp(14px, 3vh, 26px) 0 clamp(18px, 4vh, 34px); font-size: 19px; color: var(--muted); }
.hero__swap { display: grid; margin-top: clamp(14px, 2.5vh, 22px); }
.hero__swap > p { grid-area: 1 / 1; transition: opacity .5s var(--ease), transform .5s var(--ease); }
.hero__teaser { font-size: 15px; color: var(--muted); }
.hero__payoff { font: 600 22px/1.2 var(--display); letter-spacing: .02em; text-transform: uppercase; opacity: 0; transform: translateY(8px); }
.hero.is-done .hero__teaser { opacity: 0; }
.hero.is-done .hero__payoff { opacity: 1; transform: none; }

.hero__hint { position: absolute; left: 50%; bottom: 36px; transform: translateX(-50%); display: grid; justify-items: center; gap: 10px; font: 600 13px/1 var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); transition: opacity .4s var(--ease); }
.hero__bar { display: block; width: 120px; height: 2px; background: var(--line); overflow: hidden; }
.hero__bar span { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(var(--p)); }
.hero.is-near-end .hero__hint { opacity: 0; }
.hero__toggle { position: absolute; right: var(--gutter); bottom: 30px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--line); background: rgba(13, 14, 14, .5); color: var(--paper); cursor: pointer; }
.hero__toggle svg { width: 16px; height: 16px; fill: currentColor; }
.hero__toggle .i-play, .hero__toggle[aria-pressed="true"] .i-pause { display: none; }
.hero__toggle[aria-pressed="true"] .i-play { display: block; }

.hero.is-static { height: auto; }
.hero.is-static .hero__sticky { position: relative; min-height: 100svh; height: auto; padding: 120px 0 80px; }
.hero.is-static .hero__video, .hero.is-static .hero__hint, .hero.is-static .hero__toggle, .hero.is-static .hero__swap { display: none; }

/* Work */
.work { padding: var(--section) 0; }
.work h2 { margin-bottom: 56px; }
.demo { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.demo__shot { display: block; border: 1px solid var(--line); background: var(--char); padding: 10px; transition: border-color .25s var(--ease); }
.demo__shot:hover { border-color: var(--accent); }
.demo__meta { font-size: 15px; color: var(--accent); margin-bottom: 10px; }
.demo h3 { font: 800 clamp(34px, 3.6vw, 46px)/1 var(--display); text-transform: uppercase; }
.demo__body > p:not(.demo__meta) { margin-top: 18px; color: var(--muted); }
.demo__features { list-style: none; margin: 24px 0 32px; padding: 0; display: grid; gap: 10px; }
.demo__features li { display: flex; gap: 12px; align-items: baseline; }
.demo__features li::before { content: ""; flex: none; width: 10px; height: 2px; background: var(--accent); transform: translateY(-5px); }

/* Included */
.included { background: var(--char); padding: var(--section) 0; }
.included__inner { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.included__head p { margin-top: 22px; color: var(--muted); max-width: 40ch; }
.included__list { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 40px; margin: 0; }
.included__list div { border-top: 2px solid var(--accent); padding-top: 16px; }
.included__list dt { font-weight: 600; font-size: 19px; }
.included__list dd { margin: 8px 0 0; color: var(--muted); font-size: 16px; }

/* Process */
.process { padding: var(--section) 0; }
.process__list { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin: 56px 0 0; padding: 0; }
.process__list li { counter-increment: step; }
.process__list li::before { content: counter(step); display: block; font: 800 96px/.8 var(--display); color: transparent; -webkit-text-stroke: 1.5px var(--accent); margin-bottom: 20px; }
.process__list p { margin-top: 10px; color: var(--muted); max-width: 32ch; }

/* Contact */
.contact { background: var(--accent); color: var(--ink); padding: var(--section) 0; }
.contact h2 { font-size: clamp(56px, 9vw, 128px); }
.contact__inner > p { margin-top: 22px; max-width: 48ch; font-size: 20px; }
.contact__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; margin-top: 40px; }
.contact .btn--accent { background: var(--ink); color: var(--accent); }
.contact .btn--accent:hover { background: var(--char-2); }
.contact__email { font-weight: 600; font-size: 20px; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.contact :focus-visible { outline-color: var(--ink); }

/* Footer */
.footer { padding: 40px 0; border-top: 1px solid var(--line); }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer p { font-size: 14px; color: var(--muted); }

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__cta { margin-left: auto; }
  .demo, .included__inner { grid-template-columns: 1fr; }
  .process__list { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  :root { --nav-h: 64px; }
  .brand { font-size: 22px; }
  .nav__cta { min-height: 40px; padding: 0 14px; font-size: 16px; }
  .hero__lede { font-size: 17px; margin: 20px 0 28px; }
  .included__list { grid-template-columns: 1fr; }
}
/* Short windows: tighten the hero so nothing is clipped by the stage edges */
@media (max-height: 700px) {
  .hero__kicker { margin-bottom: 12px; font-size: 15px; }
  .hero__lede { font-size: 16px; line-height: 1.5; }
  .hero .btn--lg { min-height: 48px; font-size: 18px; }
  .hero__hint { display: none; }
  .hero__inner { padding-bottom: 24px; }
}
@media (max-height: 520px) {
  .hero__lede { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
