/* =========================================================
   Awilix Studio, Design System
   Cinema-Brutalist, premium discret
   ========================================================= */

:root {
  /* Palette */
  --black: #0A0A0A;
  --black-soft: #111111;
  --black-elevated: #161616;
  --offwhite: #F5F1E8;
  --offwhite-muted: rgba(245, 241, 232, 0.62);
  --offwhite-faint: rgba(245, 241, 232, 0.38);
  --offwhite-line: rgba(245, 241, 232, 0.12);
  --red: #D62828;
  --red-hover: #B91D1D;
  --lavender: #DAD7F7;

  /* Type */
  --font-serif: 'Playfair Display', 'GT Sectra', 'Iowan Old Style', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'IBM Plex Mono', 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Spacing scale (4px base) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 16px;
  --s-4: 24px;
  --s-5: 32px;
  --s-6: 48px;
  --s-7: 64px;
  --s-8: 96px;
  --s-9: 128px;
  --s-10: 192px;

  /* Layout */
  --container-max: 1240px;
  --container-tight: 880px;
  --container-narrow: 680px;
  --content-pad: clamp(20px, 4vw, 48px);

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* =====================
   Reset
   ===================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--offwhite);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul { padding: 0; margin: 0; list-style: none; }

/* Selection */
::selection { background: var(--red); color: var(--offwhite); }

/* Focus */
:focus-visible {
  outline: 2px solid var(--lavender);
  outline-offset: 3px;
}

/* =====================
   Typography
   ===================== */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--offwhite);
}
h1 {
  font-size: clamp(44px, 6vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 500;
}
h2 {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
/* Rhythm: eyebrow -> h2 -> lead. Default flow when no .mt-* override is applied. */
.eyebrow + h2,
.eyebrow + h1 { margin-top: clamp(18px, 1.6vw, 28px); }
h2 + .lead,
h1 + .lead { margin-top: clamp(20px, 1.8vw, 32px); }
/* When .mt-3 is applied on a heading right after eyebrow, give it a touch more air. */
.eyebrow + h2.mt-3,
.eyebrow + h1.mt-3 { margin-top: clamp(20px, 1.8vw, 28px); }
h3 {
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
h4 {
  font-size: 18px;
  line-height: 1.3;
}
p { margin: 0; }
.lead {
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.5;
  color: var(--offwhite-muted);
  font-weight: 400;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 500;
}
.eyebrow-lav { color: var(--lavender); }
.mono { font-family: var(--font-mono); }

/* =====================
   Layout helpers
   ===================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--content-pad);
  padding-right: var(--content-pad);
}
.container-tight {
  width: 100%;
  max-width: var(--container-tight);
  margin: 0 auto;
  padding-left: var(--content-pad);
  padding-right: var(--content-pad);
}
.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding-left: var(--content-pad);
  padding-right: var(--content-pad);
}
section { padding-top: clamp(64px, 9vw, 128px); padding-bottom: clamp(64px, 9vw, 128px); }
section.compact { padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(48px, 6vw, 80px); }

.divider {
  height: 1px;
  background: var(--offwhite-line);
  margin: 0;
}

/* =====================
   Header
   ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--offwhite-line); }
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img { height: 32px; width: auto; }
.brand__text {
  font-family: var(--font-serif);
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--offwhite);
}
.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  font-size: 14px;
  color: var(--offwhite-muted);
  transition: color 0.2s var(--ease);
  position: relative;
}
.nav a:hover, .nav a.active { color: var(--offwhite); }
.nav a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: -8px;
  height: 1px;
  background: var(--red);
}
.nav-cta {
  margin-left: 8px;
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--offwhite-line);
  border-radius: 6px;
  padding: 8px 10px;
  cursor: pointer;
}
.nav-toggle svg { width: 18px; height: 18px; stroke: var(--offwhite); }

/* =====================
   Buttons
   ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  text-decoration: none;
  white-space: nowrap;
}
.btn--primary {
  background: var(--red);
  color: var(--offwhite);
}
.btn--primary:hover { background: var(--red-hover); transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--offwhite);
  border-color: var(--offwhite-line);
}
.btn--ghost:hover { border-color: var(--offwhite); }
.btn--small { padding: 10px 16px; font-size: 13px; }
.btn--lav { background: var(--lavender); color: var(--black); }
.btn--lav:hover { background: #C6C2EC; }
.btn .arrow { transition: transform 0.2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* =====================
   Hero
   ===================== */
.hero {
  position: relative;
  padding-top: clamp(72px, 10vw, 144px);
  padding-bottom: clamp(72px, 10vw, 144px);
  overflow: hidden;
}
.hero__grain {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.96  0 0 0 0 0.94  0 0 0 0 0.91  0 0 0 0.06 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}
.hero__inner { position: relative; z-index: 1; }
.hero h1 { margin-top: 22px; max-width: 14ch; }
.hero .lead {
  margin-top: 28px;
  max-width: 58ch;
}
.hero__ctas { margin-top: 40px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero__metric {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--offwhite-line);
  display: flex;
  align-items: baseline;
  gap: 18px;
  flex-wrap: wrap;
}
.hero__metric .num {
  font-family: var(--font-serif);
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  color: var(--lavender);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.hero__metric .pct { color: var(--red); }
.hero__metric .copy { color: var(--offwhite-muted); max-width: 42ch; font-size: 15px; }
.hero__metric .copy small {
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--offwhite-faint);
  letter-spacing: 0.04em;
}

/* =====================
   Problem section
   ===================== */
.problem h2 { max-width: 18ch; }
.problem .lead { margin-top: 28px; max-width: 64ch; }
.pain-list {
  margin-top: clamp(48px, 5.5vw, 72px);
  display: grid;
  gap: 1px;
  background: var(--offwhite-line);
  border: 1px solid var(--offwhite-line);
}
.pain-list li {
  background: var(--black);
  padding: 36px 32px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.pain-list .idx {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--red);
  flex-shrink: 0;
  padding-top: 6px;
}
.pain-list p { font-size: 17px; color: var(--offwhite); }
@media (min-width: 720px) {
  .pain-list { grid-template-columns: repeat(3, 1fr); }
}

/* =====================
   How it works
   ===================== */
.steps {
  margin-top: clamp(48px, 5.5vw, 80px);
  display: grid;
  gap: 1px;
  background: var(--offwhite-line);
  border: 1px solid var(--offwhite-line);
}
.step {
  background: var(--black);
  padding: 44px 36px;
}
.step__num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--red);
  margin-bottom: 24px;
}
.step h3 { margin-bottom: 18px; }
.step p { color: var(--offwhite-muted); font-size: 15.5px; line-height: 1.6; }
@media (min-width: 800px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}

/* =====================
   Network teaser / stats
   ===================== */
.stats {
  margin-top: clamp(48px, 5.5vw, 72px);
  display: grid;
  gap: 1px;
  background: var(--offwhite-line);
  border: 1px solid var(--offwhite-line);
}
.stat {
  background: var(--black);
  padding: 44px 32px;
}
.stat__num {
  font-family: var(--font-serif);
  font-size: clamp(36px, 4vw, 52px);
  line-height: 1;
  color: var(--lavender);
  letter-spacing: -0.02em;
  font-weight: 500;
}
.stat__label {
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--offwhite-muted);
  line-height: 1.5;
}
@media (min-width: 600px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
}

/* =====================
   Why / Founder
   ===================== */
.why-grid {
  margin-top: clamp(48px, 5.5vw, 72px);
  display: grid;
  gap: 56px;
}
.why-grid h3 { margin-bottom: 18px; font-size: 20px; }
.why-grid p { color: var(--offwhite-muted); font-size: 15.5px; line-height: 1.6; }
@media (min-width: 800px) {
  .why-grid { grid-template-columns: repeat(3, 1fr); gap: 48px 40px; }
}

/* =====================
   FAQ
   ===================== */
.faq {
  margin-top: clamp(40px, 4.5vw, 64px);
  border-top: 1px solid var(--offwhite-line);
}
.faq details {
  border-bottom: 1px solid var(--offwhite-line);
  padding: 34px 0;
}
.faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
  letter-spacing: -0.005em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic {
  flex-shrink: 0;
  width: 24px; height: 24px;
  position: relative;
  margin-top: 4px;
}
.faq summary .ic::before,
.faq summary .ic::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 14px; height: 1.5px;
  background: var(--red);
  transform: translate(-50%, -50%);
  transition: transform 0.25s var(--ease);
}
.faq summary .ic::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] summary .ic::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq details > p {
  margin-top: 22px;
  color: var(--offwhite-muted);
  font-size: 16px;
  max-width: 68ch;
  line-height: 1.65;
}

/* =====================
   Contact / Form
   ===================== */
.contact-grid {
  margin-top: 48px;
  display: grid;
  gap: 64px;
}
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1.1fr 0.9fr; gap: 80px; align-items: start; }
}
.form { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.field label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--offwhite-muted);
}
.field input,
.field select,
.field textarea {
  background: var(--black-soft);
  border: 1px solid var(--offwhite-line);
  border-radius: 2px;
  padding: 14px 16px;
  color: var(--offwhite);
  font-size: 15px;
  font-family: var(--font-sans);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; line-height: 1.5; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--lavender);
  background: var(--black-elevated);
}
.field-row { display: grid; gap: 22px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.form__submit { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.form__note { font-size: 13px; color: var(--offwhite-faint); margin-top: 8px; }

.contact-aside { display: grid; gap: 36px; }
.contact-aside h3 { font-size: 22px; margin-bottom: 8px; }
.contact-aside p, .contact-aside a { color: var(--offwhite-muted); font-size: 15.5px; }
.contact-aside a:hover { color: var(--offwhite); }

/* =====================
   Pricing
   ===================== */
.tiers {
  margin-top: 56px;
  display: grid;
  gap: 24px;
}
.tier {
  background: var(--black-soft);
  border: 1px solid var(--offwhite-line);
  padding: 48px 36px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.tier:hover { border-color: rgba(245, 241, 232, 0.3); transform: translateY(-2px); }
.tier--featured {
  border-color: var(--red);
  background: linear-gradient(180deg, rgba(214, 40, 40, 0.04), transparent 50%), var(--black-soft);
  position: relative;
}
.tier--featured::before {
  content: 'MOST POPULAR';
  position: absolute;
  top: -1px; left: -1px; right: -1px;
  background: var(--red);
  color: var(--offwhite);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-align: center;
  padding: 6px 0;
}
.tier__name {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.tier__price {
  font-family: var(--font-serif);
  font-size: 44px;
  font-weight: 500;
  margin-top: 22px;
  letter-spacing: -0.02em;
  color: var(--lavender);
}
.tier__price .cur { color: var(--offwhite-muted); font-size: 22px; vertical-align: super; margin-right: 4px; }
.tier__price .per { color: var(--offwhite-faint); font-size: 14px; font-family: var(--font-mono); display: block; margin-top: 6px; letter-spacing: 0.05em; }
.tier__desc { color: var(--offwhite-muted); font-size: 15px; margin-top: 22px; line-height: 1.55; }
.tier__features {
  margin-top: 36px;
  display: grid;
  gap: 16px;
}
.tier__features li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 14.5px;
  color: var(--offwhite);
  line-height: 1.5;
}
.tier__features li::before {
  content: '';
  flex-shrink: 0;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--red);
  margin-top: 9px;
}
.tier__cta { margin-top: 44px; }
.tier--featured .tier__price { color: var(--red); }
@media (min-width: 880px) {
  .tiers { grid-template-columns: repeat(3, 1fr); }
}

.pricing-extras {
  margin-top: 80px;
  display: grid;
  gap: 56px;
}
@media (min-width: 880px) {
  .pricing-extras { grid-template-columns: 1fr 1fr; gap: 80px; }
}
.pricing-extras h3 { font-size: 22px; margin-bottom: 18px; }
.pricing-extras li {
  padding: 10px 0;
  font-size: 15px;
  color: var(--offwhite-muted);
  border-bottom: 1px solid var(--offwhite-line);
}
.pricing-extras li:last-child { border-bottom: none; }

.commitment {
  margin-top: 80px;
  padding: 48px;
  background: var(--black-soft);
  border: 1px solid var(--offwhite-line);
  border-left: 3px solid var(--red);
}
.commitment h3 { font-size: 24px; margin-bottom: 16px; }
.commitment p { color: var(--offwhite-muted); max-width: 64ch; line-height: 1.6; }

/* =====================
   Network page
   ===================== */
.network-steps {
  margin-top: 48px;
  counter-reset: stepc;
  display: grid;
  gap: 28px;
}
.network-steps li {
  counter-increment: stepc;
  display: flex;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--offwhite-line);
}
.network-steps li::before {
  content: counter(stepc, decimal-leading-zero);
  font-family: var(--font-mono);
  color: var(--red);
  font-size: 14px;
  letter-spacing: 0.1em;
  flex-shrink: 0;
  padding-top: 2px;
}
.network-steps li p { color: var(--offwhite-muted); line-height: 1.6; font-size: 16px; }

.publish-grid {
  margin-top: 32px;
  display: grid;
  gap: 14px;
}
.publish-tag {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid var(--offwhite-line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--offwhite-muted);
  border-radius: 2px;
  transition: all 0.2s var(--ease);
}
.publish-tag:hover { border-color: var(--lavender); color: var(--offwhite); }
.publish-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }

/* =====================
   Blog
   ===================== */
.blog-list {
  margin-top: 48px;
  border-top: 1px solid var(--offwhite-line);
}
.blog-card {
  display: grid;
  gap: 16px;
  padding: 36px 0;
  border-bottom: 1px solid var(--offwhite-line);
  transition: padding-left 0.3s var(--ease);
}
.blog-card:hover { padding-left: 12px; }
@media (min-width: 720px) {
  .blog-card { grid-template-columns: 140px 1fr auto; gap: 32px; align-items: baseline; }
}
.blog-card .date {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--offwhite-faint);
  text-transform: uppercase;
}
.blog-card h3 {
  font-size: 26px;
  line-height: 1.2;
}
.blog-card .excerpt {
  color: var(--offwhite-muted);
  font-size: 15px;
  margin-top: 8px;
}
.blog-card .arrow-cell {
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 14px;
  align-self: center;
}

.post-header { padding-top: 96px; padding-bottom: 48px; }
.post-header .date {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--lavender);
  text-transform: uppercase;
}
.post-header h1 {
  font-size: clamp(36px, 4.5vw, 56px);
  margin-top: 16px;
  letter-spacing: -0.02em;
}
.post-header .sub { color: var(--offwhite-muted); margin-top: 18px; font-size: 19px; max-width: 50ch; }
.post-body { padding-bottom: 128px; }
.post-body p { margin-top: 24px; line-height: 1.7; color: var(--offwhite-muted); }
.post-body h2 { margin-top: 56px; font-size: 28px; }

/* =====================
   Coming Soon (case-studies, research)
   ===================== */
.coming-soon {
  min-height: 70vh;
  display: flex;
  align-items: center;
}
.coming-soon h1 { max-width: 16ch; }
.coming-soon .lead { margin-top: 28px; max-width: 56ch; }
.coming-soon .tag {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--red);
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  margin-bottom: 28px;
}

/* =====================
   Footer
   ===================== */
.site-footer {
  border-top: 1px solid var(--offwhite-line);
  padding-top: 80px;
  padding-bottom: 48px;
  margin-top: 64px;
}
.footer-grid {
  display: grid;
  gap: 56px;
  grid-template-columns: 1fr;
}
@media (min-width: 800px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr 1.4fr; gap: 48px; }
}
.footer-brand img { height: 36px; margin-bottom: 18px; }
.footer-brand .tag {
  font-family: var(--font-serif);
  color: var(--offwhite-muted);
  font-style: italic;
  font-size: 17px;
  max-width: 24ch;
  line-height: 1.4;
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--offwhite-faint);
  margin-bottom: 18px;
  font-weight: 500;
}
.footer-col ul { display: grid; gap: 12px; }
.footer-col a {
  color: var(--offwhite-muted);
  font-size: 14px;
  transition: color 0.2s var(--ease);
}
.footer-col a:hover { color: var(--offwhite); }

.newsletter { display: grid; gap: 12px; max-width: 360px; }
.newsletter p { font-size: 13px; color: var(--offwhite-muted); line-height: 1.5; }
.newsletter form {
  display: flex;
  gap: 0;
  border: 1px solid var(--offwhite-line);
}
.newsletter input {
  flex: 1;
  background: transparent;
  border: 0;
  padding: 12px 14px;
  color: var(--offwhite);
  font-size: 14px;
}
.newsletter input:focus { outline: none; background: var(--black-soft); }
.newsletter button {
  background: var(--offwhite);
  color: var(--black);
  border: 0;
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s var(--ease);
}
.newsletter button:hover { background: var(--lavender); }

.footer-bottom {
  margin-top: 80px;
  padding-top: 32px;
  border-top: 1px solid var(--offwhite-line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--offwhite-faint);
  letter-spacing: 0.04em;
}

/* =====================
   Mobile nav
   ===================== */
@media (max-width: 880px) {
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header.is-open .nav {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--black);
    border-bottom: 1px solid var(--offwhite-line);
    padding: 16px var(--content-pad) 24px;
  }
  .site-header.is-open .nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--offwhite-line);
  }
  .site-header.is-open .nav .nav-cta { margin: 14px 0 0; align-self: flex-start; border: 0; }
}

/* =====================
   Reveal-on-scroll
   ===================== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal:nth-child(2) { transition-delay: 0.06s; }
.reveal:nth-child(3) { transition-delay: 0.12s; }
.reveal:nth-child(4) { transition-delay: 0.18s; }

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

/* =====================
   Imagery
   ===================== */
/* Hero background photo behind text. Strong overlay so headlines stay AAA. */
.hero--photo { isolation: isolate; }
.hero--photo .hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero--photo .hero__bg img,
.hero--photo .hero__bg picture,
.hero--photo .hero__bg picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  filter: grayscale(0.15) contrast(1.05);
}
.hero--photo .hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 10, 10, 0.72) 0%, rgba(10, 10, 10, 0.88) 50%, rgba(10, 10, 10, 0.96) 100%),
    radial-gradient(ellipse at 70% 20%, rgba(214, 40, 40, 0.12), transparent 55%);
  pointer-events: none;
}
.hero--photo .hero__grain { z-index: 1; }
.hero--photo .hero__inner { z-index: 2; }

/* Full-width section divider photo. Sits between two sections, ~50vh tall, dark overlay. */
.section-photo {
  position: relative;
  height: clamp(280px, 38vw, 460px);
  overflow: hidden;
  background: var(--black);
}
.section-photo img,
.section-photo picture,
.section-photo picture img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(0.1) contrast(1.04);
}
.section-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 10, 10, 0.55) 0%, rgba(10, 10, 10, 0.25) 50%, rgba(10, 10, 10, 0.7) 100%),
    linear-gradient(to bottom, rgba(214, 40, 40, 0.08), transparent 40%);
  pointer-events: none;
}

/* Inline accent photo, contained inside a section. */
.media-block {
  margin-top: clamp(48px, 5.5vw, 80px);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--offwhite-line);
  aspect-ratio: 16 / 9;
}
.media-block img,
.media-block picture,
.media-block picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.1) contrast(1.04);
}
.media-block::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 60%, rgba(10, 10, 10, 0.55)),
    linear-gradient(to bottom, rgba(214, 40, 40, 0.06), transparent 30%);
  pointer-events: none;
}

/* Small contact-aside accent photo. Square, framed. */
.media-aside {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--offwhite-line);
  aspect-ratio: 4 / 5;
  margin-top: 8px;
}
.media-aside img,
.media-aside picture,
.media-aside picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.15) contrast(1.05);
}
.media-aside::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10, 10, 10, 0.6));
  pointer-events: none;
}

/* =====================
   Utilities
   ===================== */
.text-center { text-align: center; }
.mt-3 { margin-top: var(--s-3); }
.mt-4 { margin-top: var(--s-4); }
.mt-5 { margin-top: var(--s-5); }
.mt-6 { margin-top: var(--s-6); }
.mt-7 { margin-top: var(--s-7); }
.mt-8 { margin-top: var(--s-8); }
.lavender { color: var(--lavender); }
.red { color: var(--red); }
.muted { color: var(--offwhite-muted); }
.hidden { display: none !important; }
