/* Reset */
*, *::before, *::after { box-sizing: border-box; }

html:focus-within { scroll-behavior: smooth; }

body {
  margin: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }

/* Tokens */
:root {
  --bg: #f7f6f5;
  --ink: #17181c;
  --ink-2: #4b4f5c;
  --tint: #efeae7;
  --accent: #1e40ff;
  --highlight: #ffe9a3;
  --radius-lg: 24px;
  --container: 1200px;
  --black: #232323;
  --space-16: 1rem;
  --space-24: 1.5rem;
  --space-32: 2rem;
}

/* Base */
body {
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 16px;
  line-height: 1.75;
}

@media (min-width: 430px) { body { font-size: 17px; } }
@media (min-width: 768px) { body { font-size: 18px; } }
@media (min-width: 1024px) { body { font-size: 19px; } }
@media (min-width: 1366px) { body { font-size: 20px; } }

h1 { font-size: clamp(32px, 4vw, 64px); line-height: 1.15; margin: 0.5em 0 0.25em; }
h2 { font-size: clamp(24px, 2.5vw, 36px); line-height: 1.25; margin: 0 0 0.25em; }
h3 { font-size: clamp(18px, 2vw, 24px); line-height: 1.3; margin: 0 0 0.25em; }

.lead {
  font-size: clamp(16px, 1.2vw, 20px);
  color: var(--ink-2);
}

/* Layout */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-16);
}

@media (min-width: 1024px) {
  .container { padding-left: var(--space-24); padding-right: var(--space-24); }
}

.section { padding: 56px 0; }

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1.25rem;
}

.section-head .lead { max-width: 70ch; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .hero .grid-2 { grid-template-columns: 1.6fr 1fr; gap: 2rem; }
}

.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .two-col { grid-template-columns: 1.2fr 1fr; }
}

/* Navigation */
#navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px var(--space-16) 0;
}

@media (min-width: 1024px) {
  #navbar { padding-left: var(--space-24); padding-right: var(--space-24); }
}

.brand { text-decoration: none; }

.brand img {
  display: block;
  height: 28px;
  width: auto;
}

/* Hero */
.hero-title { font-size: clamp(40px, 4vw, 64px); }

.u-underline { background: linear-gradient(transparent 65%, var(--highlight) 0); }

.u-underline--sm {
  background-size: 100% 16px;
  background-repeat: no-repeat;
  background-position: 0 100%;
}

.quote {
  font-style: italic;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.6;
  margin: 1.5rem 0;
  padding: 0.5rem;
  color: var(--ink);
  background: var(--tint);
  border-left: 4px solid var(--ink);
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-2);
  border: 1px solid rgba(23, 24, 28, 0.15);
  border-radius: 9999px;
  padding: 0.25rem 0.5rem;
}

.tick-list {
  padding-left: 1.1rem;
  margin: 0;
}

.tick-list li { margin: 0.5rem 0; }

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 600px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: #fff;
  border: 1px solid rgba(23, 24, 28, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}

.card-media {
  display: block;
  aspect-ratio: 16 / 9;
  background: #111;
}

.card-body { padding: 1rem; }

.meta { color: var(--ink-2); }

.feature-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  background: #fff;
  border: 1px solid rgba(23, 24, 28, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.feature-media { display: block; }
.feature-body { padding: 1rem; }

@media (min-width: 900px) {
  .feature-card { grid-template-columns: 1.4fr 1fr; }
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
}

.pill-list li {
  border: 1px solid rgba(23, 24, 28, 0.15);
  border-radius: 9999px;
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  color: var(--ink-2);
}

.card-locked { position: relative; }

.card-locked .card-media img {
  filter: blur(6px) saturate(0.6) brightness(0.9);
}

.card-locked::after {
  content: "🔒 Available on request";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.5rem 1rem;
  background: rgba(11, 13, 20, 0.88);
  color: #fff;
  text-align: center;
  transform: translateY(100%);
  transition: transform 0.2s ease;
}

.card-locked:hover::after { transform: translateY(0); }

figure figcaption {
  color: var(--ink-2);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.inline-cta {
  color: var(--accent);
  text-decoration: underline;
}

/* Article filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.chip {
  border: 1px solid rgba(23, 24, 28, 0.2);
  border-radius: 999px;
  background: #fff;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
}

.chip.is-active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* CTAs */
.cta-contact,
.yt-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-24);
  width: 200px;
  height: 48px;
  border-radius: 9999px;
  font-weight: 400;
  text-decoration: none;
}

.cta-contact {
  background-color: var(--black);
  color: #fff;
}

.cta-contact:hover {
  text-decoration: none;
  filter: brightness(0.95);
}

.yt-cta {
  box-shadow: inset 0 0 0 2px var(--black);
  color: var(--black);
}

.yt-cta:hover { text-decoration: none; }

.yt-cta:hover .cta-icon { content: url(../assets/yt-icon-color.png); }

.cta-icon {
  height: var(--space-32);
  width: auto;
  flex-shrink: 0;
}

#navbar .cta-contact { flex-shrink: 0; }

.footer-cta {
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
}

@media (min-width: 600px) {
  .footer-cta { flex-direction: row; gap: var(--space-16); }
}

/* Footer */
.site-footer {
  background: #f9f9f9;
  padding: var(--space-24) var(--space-16);
}

.site-footer p {
  margin: var(--space-24) 0 0;
}

@media (min-width: 1024px) {
  .site-footer { padding: var(--space-24); }
}

/* Accessibility */
.skip-link {
  position: absolute;
  left: -999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: var(--space-16);
  top: 8px;
  width: auto;
  height: auto;
  padding: 0.5rem;
  background: #000;
  color: #fff;
  border-radius: 6px;
}

:focus-visible {
  outline: 3px solid #9bb1ff;
  outline-offset: 2px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  html:focus-within { scroll-behavior: auto; }
  .card-locked::after { transition: none; }
}
