/* ==========================================================================
   Digi Marketing — design tokens
   ========================================================================== */
:root {
  --bg: #000000;
  --bg-elevated: #0c0c0c;
  --bg-elevated-2: #141414;
  --white: #ffffff;
  --muted: #9a9a9a;
  --faint: #636363;
  --yellow: #FFE52A;
  --yellow-dim: rgba(255, 229, 42, 0.1);
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.2);

  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;

  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-pad: clamp(4.5rem, 9vw, 8.5rem);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 84px;
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul { list-style: none; }
input { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-weight: 500; }

::selection { background: var(--yellow); color: var(--bg); }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--yellow); }
html { scrollbar-color: #2a2a2a var(--bg); scrollbar-width: thin; }

:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 2000;
  background: var(--yellow);
  color: var(--bg);
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  border-radius: 2px;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* Grain overlay */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ==========================================================================
   Layout helpers
   ========================================================================== */
.section__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
}

.section { padding: var(--section-pad) 0; position: relative; }

.section__label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 1.5rem;
}
.section__label::before {
  content: '';
  width: 22px;
  height: 1.5px;
  background: var(--yellow);
}

.section__heading {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 2.6vw + 1rem, 3.1rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
  max-width: 20ch;
  margin-bottom: 2.5rem;
}

.section__cta { margin-top: 3rem; }

em { font-style: italic; color: var(--yellow); font-family: var(--font-serif); }

.hl { color: var(--yellow); }
.hl--bold { color: var(--yellow); font-weight: 700; }

/* Scroll targets sit below the sticky header */
#top, #proces, #rezultati, #radovi, #kontakt, #zakazivanje, #marketing-score, #benefiti, #problem, #pristup {
  scroll-margin-top: calc(var(--header-h) + 12px);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 1.75rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border-radius: 3px;
  border: 1.5px solid transparent;
  white-space: nowrap;
  transition: transform 0.35s var(--ease), background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.btn svg { transition: transform 0.3s var(--ease); flex-shrink: 0; }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(0.97); }

.btn--primary {
  background: var(--yellow);
  color: #000;
}
.btn--primary:hover { background: #fff; }

.btn--outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--white);
}
.btn--outline:hover { border-color: var(--yellow); color: var(--yellow); }

.btn--sm { padding: 0.65rem 1.25rem; font-size: 0.85rem; }
.btn--lg { padding: 1.15rem 2.25rem; font-size: 1rem; }
.btn--full { width: 100%; }

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}

.nav {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav__logo {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  margin-right: auto;
}
.nav__logo-main { color: var(--white); }
.nav__logo-accent { color: var(--yellow); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}
.nav__link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  position: relative;
  padding: 0.3rem 0;
  transition: color 0.25s var(--ease);
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1.5px;
  background: var(--yellow);
  transition: width 0.3s var(--ease);
}
.nav__link:hover { color: var(--white); }
.nav__link.is-active { color: var(--white); }
.nav__link.is-active::after,
.nav__link:hover::after { width: 100%; }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 32px;
  height: 32px;
}
.nav__toggle-line {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav__toggle[aria-expanded="true"] .nav__toggle-line:first-child {
  transform: translateY(3.75px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] .nav__toggle-line:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0; bottom: 0;
  background: var(--bg);
  z-index: 490;
  padding: 2.5rem var(--gutter);
  flex-direction: column;
  gap: 0.5rem;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
.mobile-menu.is-open {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}
.mobile-menu__link {
  font-family: var(--font-serif);
  font-size: 2rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}
.mobile-menu__cta { margin-top: 2rem; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  height: calc(100vh - var(--header-h));
  min-height: 420px;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--bg);
}
.hero__video {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__video.is-active { display: block; }
.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0) 35%);
}

/* ==========================================================================
   Marquee divider
   ========================================================================== */
.marquee {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 1.4rem 0;
  white-space: nowrap;
}
.marquee__track {
  display: inline-flex;
  align-items: center;
  animation: marquee 28s linear infinite;
}
.marquee__item {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.3rem, 2vw + 0.5rem, 2rem);
  color: var(--faint);
  padding: 0 1.75rem;
  position: relative;
}
.marquee__item::after {
  content: '—';
  position: absolute;
  right: -0.3rem;
  color: var(--border-strong);
}
.marquee__item--accent { color: var(--yellow); }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ==========================================================================
   01 — Approach
   ========================================================================== */
.approach__intro {
  font-size: clamp(1.1rem, 1vw + 0.8rem, 1.4rem);
  color: var(--muted);
  margin-bottom: 1.25rem;
}
.approach__strike {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 3.5rem;
}
.approach__strike li {
  font-size: clamp(1.1rem, 1vw + 0.8rem, 1.4rem);
  color: var(--faint);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--faint);
}
.approach__stack {
  display: flex;
  flex-direction: column;
  gap: 0.15em;
}
.approach__line {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.1rem, 4.6vw + 0.5rem, 4.5rem);
  line-height: 1.15;
  color: var(--white);
}

/* ==========================================================================
   02 — Problem
   ========================================================================== */
.problem__intro {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 3rem;
  margin-top: -1rem;
}
.problem__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}
.problem__card {
  border-radius: 4px;
  padding: clamp(1.75rem, 2.5vw, 2.75rem);
  border: 1px solid var(--border);
}
.problem__card--muted { background: var(--bg-elevated); }
.problem__card--accent {
  background: var(--bg-elevated);
  border-color: rgba(255, 229, 42, 0.35);
}
.problem__card-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 1.5rem;
}
.problem__card-label--accent { color: var(--yellow); }
.problem__strike-list { display: flex; flex-direction: column; gap: 0.9rem; }
.problem__strike-list li {
  font-size: 1.05rem;
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: var(--border-strong);
}
.problem__card-footnote {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--faint);
  font-style: italic;
  font-family: var(--font-serif);
}
.problem__question {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 1.6vw + 0.6rem, 1.7rem);
  color: var(--white);
}
.problem__question + .problem__question { margin-top: 0.9rem; }

.problem__quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.3rem, 1.6vw + 0.7rem, 1.85rem);
  line-height: 1.4;
  max-width: 34ch;
  color: var(--white);
}

/* ==========================================================================
   03 — Process
   ========================================================================== */
.process__list { display: flex; flex-direction: column; }
.process__step {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  padding: clamp(2rem, 4vw, 3rem) 0;
  border-top: 1px solid var(--border);
}
.process__step:last-child { border-bottom: 1px solid var(--border); }
.process__number-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.process__number {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--yellow);
}
.process__number-line {
  width: 1px;
  flex: 1;
  min-height: 2rem;
  margin-top: 1rem;
  background: var(--border-strong);
}
.process__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.4rem, 1.6vw + 0.8rem, 1.9rem);
  margin-bottom: 0.9rem;
}
.process__desc {
  color: var(--muted);
  max-width: 56ch;
  font-size: 1.02rem;
}

.service-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}
.service-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.55rem 1.1rem 0.55rem 0.8rem;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--muted);
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.service-pill svg { width: 17px; height: 17px; color: var(--yellow); flex-shrink: 0; }
.service-pill:hover { border-color: var(--yellow); color: var(--white); }

/* ==========================================================================
   04 — Results
   ========================================================================== */
.results__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  margin-bottom: clamp(3rem, 5vw, 4.5rem);
}
.results__story-title {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 1.6vw + 0.6rem, 1.75rem);
  margin-bottom: 1.1rem;
  color: var(--white);
}
.results__story p { color: var(--muted); font-size: 1.02rem; }
.results__story p + p { margin-top: 0.9rem; }

/* Video card component */
.video-card { position: relative; }
.video-card__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 5px;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,229,42,0.08), transparent 55%),
    linear-gradient(155deg, #171717 0%, #0a0a0a 60%);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-card__frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(255,255,255,0.025) 0 2px, transparent 2px 90px);
}
/* Real footage fades in and starts playing itself as soon as a matching
   file exists in /videos — see js/main.js. Until then it stays invisible
   and the placeholder gradient/texture underneath shows through. */
.video-card__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.video-card.has-video .video-card__video { opacity: 1; z-index: 0; }
.video-card.has-video .video-card__frame::before { opacity: 0; }

.video-card__play {
  position: relative;
  z-index: 1;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--yellow);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.video-card__play svg { margin-left: 3px; }
.video-card:hover .video-card__play { transform: scale(1.08); }
.video-card.has-video .video-card__play { opacity: 0.75; }
.video-card.has-video:hover .video-card__play { opacity: 1; }

.video-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-top: 1rem;
}
.video-card__title { font-weight: 600; font-size: 0.95rem; }
.video-card__tag { font-size: 0.82rem; color: var(--faint); text-align: right; }

/* Stats */
.stats { position: relative; margin-bottom: clamp(2.5rem, 4vw, 3.5rem); }
.stats__chart { width: 100%; height: 90px; margin-bottom: 1.5rem; opacity: 0.9; }
.stats__row {
  display: flex;
  gap: clamp(1.5rem, 5vw, 4rem);
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}
.stat { display: flex; flex-direction: column; }
.stat__value {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4vw + 0.5rem, 3.75rem);
  color: var(--yellow);
  line-height: 1;
  display: inline;
}
.stat__suffix {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2vw + 0.5rem, 2.25rem);
  color: var(--yellow);
}
.stat__label { color: var(--muted); font-size: 0.95rem; margin-top: 0.5rem; }

/* ==========================================================================
   05 — Projects
   ========================================================================== */
.projects__intro {
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 54ch;
  margin-top: -1rem;
  margin-bottom: 3rem;
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  text-align: left;
}

.project-card__frame {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  transition: border-color 0.3s var(--ease);
}
.project-card:hover .project-card__frame,
.project-card:focus-visible .project-card__frame { border-color: var(--border-strong); }

.project-card__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.project-card:hover .project-card__poster,
.project-card:focus-visible .project-card__poster { transform: scale(1.07); }

.project-card__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,0.8) 100%);
  transition: background 0.3s var(--ease);
}

.project-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--yellow);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s var(--ease);
}
.project-card__play svg { margin-left: 3px; }
.project-card:hover .project-card__play,
.project-card:focus-visible .project-card__play { transform: translate(-50%, -50%) scale(1.12); }

.project-card__site-pill {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 100px;
  padding: 0.4rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--white);
}

.project-card--featured { grid-column: span 2; }
.project-card--featured .project-card__frame {
  aspect-ratio: 16 / 9;
  border-color: rgba(255, 229, 42, 0.35);
  box-shadow: 0 20px 60px -25px rgba(255, 229, 42, 0.35);
}

.project-card--tall .project-card__frame { aspect-ratio: 9 / 16; }

.project-card__meta {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: 1rem;
}
.project-card__title { font-weight: 600; font-size: 0.98rem; }
.project-card__tag { font-size: 0.84rem; color: var(--faint); }

/* ==========================================================================
   06 — Benefits
   ========================================================================== */
.benefits__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.benefit {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 1.05rem;
  transition: border-color 0.25s var(--ease);
}
.benefit:hover { border-color: var(--border-strong); }
.benefit__icon { width: 26px; height: 26px; color: var(--yellow); flex-shrink: 0; }
.benefit--wide { grid-column: 1 / -1; }

/* ==========================================================================
   Banner — no contract
   ========================================================================== */
.banner {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: clamp(3.5rem, 6vw, 5.5rem) 0;
}
.banner__inner { max-width: 780px; text-align: center; margin: 0 auto; }
.banner__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3vw + 0.5rem, 2.9rem);
  margin-bottom: 1.25rem;
}
.banner p { color: var(--muted); font-size: 1.05rem; max-width: 52ch; margin: 0 auto; }
.banner p + p { margin-top: 0.75rem; }
.banner__emphasis { color: var(--white) !important; }

/* ==========================================================================
   07 — Booking
   ========================================================================== */
.booking__lead { font-size: 1.15rem; margin-bottom: 1.5rem; color: var(--white); }
.booking__list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom: 2rem;
}
.booking__list li {
  position: relative;
  padding-left: 1.75rem;
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 50ch;
}
.booking__list li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.55em;
  width: 10px; height: 1.5px;
  background: var(--yellow);
}
.booking__reassure { color: var(--faint); font-style: italic; font-family: var(--font-serif); font-size: 1.15rem; }

/* ==========================================================================
   08 — Marketing Score
   ========================================================================== */
.score { overflow: hidden; }
.score__bg-number {
  position: absolute;
  top: 50%;
  right: clamp(-2rem, 2vw, 2rem);
  transform: translateY(-50%);
  font-family: var(--font-serif);
  font-size: clamp(8rem, 22vw, 22rem);
  color: rgba(255, 255, 255, 0.025);
  z-index: 0;
  pointer-events: none;
  line-height: 1;
}
.score .section__inner { z-index: 1; }
.score__lead { font-size: 1.1rem; color: var(--white); margin-bottom: 1.25rem; }
.score__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.75rem;
}
.score__list li {
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.5rem 1.1rem;
  font-size: 0.88rem;
  color: var(--muted);
}
.score__footnote { color: var(--muted); margin-bottom: 2.5rem; max-width: 46ch; }

.score__form {
  display: flex;
  gap: 0.75rem;
  max-width: 480px;
  flex-wrap: wrap;
}
/* See the matching note on .form__success[hidden] — same equal-specificity
   cascade tie between this class and the UA `[hidden]` rule. */
.score__form[hidden] { display: none; }
.score__input {
  flex: 1;
  min-width: 220px;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--border-strong);
  padding: 0.85rem 0.25rem;
  color: var(--white);
  font-size: 1rem;
  transition: border-color 0.25s var(--ease);
}
.score__input::placeholder { color: var(--faint); }
.score__input:focus { border-color: var(--yellow); outline: none; }

.form__honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__success { color: var(--yellow); font-weight: 500; margin-top: 1.25rem; }

/* ==========================================================================
   Final CTA
   ========================================================================== */
.final-cta__lead {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.2rem, 1.4vw + 0.6rem, 1.6rem);
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.final-cta .section__heading { max-width: 24ch; }
.final-cta__list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2rem;
}
.final-cta__list li {
  font-size: clamp(1.1rem, 1.2vw + 0.7rem, 1.4rem);
  font-family: var(--font-serif);
  color: var(--white);
  padding-left: 2rem;
  position: relative;
}
.final-cta__list li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.6em;
  width: 14px; height: 1.5px;
  background: var(--yellow);
}
.final-cta__note { color: var(--faint); max-width: 50ch; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: clamp(3.5rem, 7vw, 6rem) 0 2rem;
}
.site-footer__slogan {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.6rem, 3vw + 0.5rem, 2.75rem);
  max-width: 16ch;
  margin-bottom: 2.25rem;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}
.site-footer__links { display: flex; flex-direction: column; gap: 0.75rem; }
.site-footer__links a, .site-footer__contact a { color: var(--muted); transition: color 0.2s var(--ease); }
.site-footer__links a:hover, .site-footer__contact a:hover { color: var(--yellow); }
.site-footer__contact { display: flex; flex-direction: column; gap: 0.75rem; align-items: flex-start; }
.site-footer__social { display: flex; gap: 1.25rem; }
.site-footer__bottom {
  margin-top: 3rem;
  font-size: 0.85rem;
  color: var(--faint);
}

/* ==========================================================================
   Modal
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}
.modal-overlay.is-open { opacity: 1; visibility: visible; }

.modal {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  padding: clamp(2rem, 4vw, 2.75rem);
  transform: translateY(16px) scale(0.98);
  opacity: 0;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
  max-height: 90vh;
  overflow-y: auto;
}
.modal-overlay.is-open .modal { transform: translateY(0) scale(1); opacity: 1; }

.modal__close {
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  border-radius: 50%;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.modal__close:hover { color: var(--white); background: var(--bg-elevated-2); }

.modal__eyebrow {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 0.85rem;
}
.modal__title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2vw + 0.8rem, 1.9rem);
  margin-bottom: 0.6rem;
  padding-right: 2rem;
}
.modal__desc { color: var(--muted); margin-bottom: 2rem; font-size: 0.98rem; }

.form { display: flex; flex-direction: column; gap: 1.4rem; }
/* See the matching note on .form__success[hidden] — same equal-specificity
   cascade tie between this class and the UA `[hidden]` rule. */
.form[hidden] { display: none; }
.form__field { display: flex; flex-direction: column; gap: 0.5rem; }
.form__field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.form__optional { font-weight: 400; text-transform: none; color: var(--faint); }
.form__field input {
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--border-strong);
  padding: 0.6rem 0.1rem;
  color: var(--white);
  font-size: 1.02rem;
  transition: border-color 0.25s var(--ease);
}
.form__field input:focus { border-color: var(--yellow); outline: none; }

.form__success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  padding: 1.5rem 0;
  color: var(--yellow);
}
/* `.form__success { display: flex }` and the UA `[hidden] { display: none }`
   rule are equal specificity (0-1-0), so without this, author CSS wins the
   cascade tie and the hidden attribute is silently defeated — the success
   message would render at all times, stacked under the form. */
.form__success[hidden] { display: none; }
.form__success svg { color: var(--yellow); }
.form__success p { color: var(--white); font-size: 1.05rem; max-width: 30ch; }

/* ==========================================================================
   Project video lightbox
   ========================================================================== */
.video-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}
.video-modal-overlay.is-open { opacity: 1; visibility: visible; }

.video-modal {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  overflow: hidden;
  transform: translateY(16px) scale(0.98);
  opacity: 0;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
}
.video-modal-overlay.is-open .video-modal { transform: translateY(0) scale(1); opacity: 1; }

.video-modal__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 68vh;
  background: #000;
}
.video-modal__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.video-modal__close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  z-index: 2;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  border-radius: 50%;
  transition: background 0.2s var(--ease);
}
.video-modal__close:hover { background: rgba(0, 0, 0, 0.85); }

.video-modal__footer {
  padding: 1.25rem 1.4rem 0.5rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.video-modal__info { display: flex; flex-direction: column; gap: 0.3rem; }
.video-modal__title { font-family: var(--font-serif); font-size: 1.2rem; }
.video-modal__tag { font-size: 0.84rem; color: var(--faint); }
.video-modal__site-link[hidden] { display: none; }

.video-modal__credit {
  padding: 0.6rem 1.4rem 1.4rem;
  font-size: 0.78rem;
  color: var(--faint);
  font-style: italic;
  font-family: var(--font-serif);
}
.video-modal__credit[hidden] { display: none; }

@media (max-width: 640px) {
  .video-modal { max-width: 100%; }
  .video-modal__footer { padding: 1.1rem 1.1rem 0.4rem; }
  .video-modal__credit { padding: 0.5rem 1.1rem 1.1rem; }
}

/* ==========================================================================
   Reveal animation
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee__track { animation: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .mobile-menu { display: flex; }

  .problem__grid { grid-template-columns: 1fr; }
  .results__grid { grid-template-columns: 1fr; }
  .projects__grid { grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
  .benefits__list { grid-template-columns: 1fr; }
  .benefit--wide { grid-column: auto; }
  .process__step { grid-template-columns: 60px 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 640px) {
  :root { --header-h: 72px; }
  .nav { gap: 1rem; }
  .nav__logo { font-size: 1rem; }

  .problem__card { padding: 1.5rem; }
  .process__step { grid-template-columns: 1fr; gap: 0.75rem; }
  .process__number-col { flex-direction: row; align-items: center; gap: 0.75rem; }
  .process__number-line { flex: none; width: 28px; min-height: 0; height: 1px; margin-top: 0; }

  .projects__grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .project-card--featured { grid-column: span 1; }

  .stats__row { gap: 2rem; }

  .score__form { flex-direction: column; }
  .score__form .btn { width: 100%; }

  .site-footer__grid { grid-template-columns: 1fr; }
  .site-footer__contact { align-items: flex-start; }
}
