/*
  ============================================================
  FERREIRA CREATIVE — FRESHMADE MICROSITE
  Shared design system
  ============================================================

  FONT SETUP
  ----------
  Add your font files to the /fonts folder, then uncomment
  and update the @font-face blocks below.

  Required files:
    fonts/SalinaBlack.woff2          (or .otf / .ttf)
    fonts/FractulAlt-Regular.woff2   (subheads, emphasis)
    fonts/FractulAlt-Bold.woff2      (if you have it)
    fonts/DAXCondensed-Regular.woff2 (body)
    fonts/DAXCondensed-Bold.woff2    (if you have it)
*/

/* ─────────────────────────────────────────────
   FONTS
   ───────────────────────────────────────────── */

/* Salina Black — H1, H2, pull quotes, stat numbers */
@font-face {
  font-family: 'Salina';
  src: url('fonts/Salina-Black.otf') format('opentype'),
       url('fonts/Salina-Trial-Black.woff2') format('woff2'),
       url('fonts/Salina-Trial-Black.woff') format('woff');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Salina';
  src: url('fonts/Salina-Trial-BlackItalic.woff2') format('woff2'),
       url('fonts/Salina-Trial-BlackItalic.woff') format('woff');
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

/* Fractul Alt Bold — eyebrows, nav, section labels, captions, footer */
@font-face {
  font-family: 'Fractul';
  src: url('fonts/FractulAlt-Bold.otf') format('opentype'),
       url('fonts/FractulAlt-Bold.woff2') format('woff2'),
       url('fonts/FractulAlt-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Fractul Alt Regular — secondary UI use */
@font-face {
  font-family: 'Fractul';
  src: url('fonts/FractulAlt-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Fractul Alt Black — nav links bold, "All Work" */
@font-face {
  font-family: 'Fractul';
  src: url('fonts/FractulAlt-Black.woff2') format('woff2'),
       url('fonts/FractulAlt-Black.woff') format('woff');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* DAX Pro Condensed — loaded via Typekit (see HTML <link> tag) */

@font-face {
  font-family: 'Fractul';
  src: url('fonts/FractulAlt-Black.woff2') format('woff2'),
       url('fonts/FractulAlt-Black.woff') format('woff');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   TOKENS
   ============================================================ */

:root {
  /* Color */
  --bg:          #F5F2ED;   /* warm off-white */
  --bg-2:        #EDEAE4;   /* slightly deeper warm — section alt */
  --ink:         #1A1714;   /* near-black, warm */
  --ink-mid:     #4A4540;   /* body text */
  --ink-muted:   #8C867E;   /* captions, metadata */
  --rule:        #8ec8e1;   /* dividers — AF brand blue */
  --accent:      #2A2420;   /* strong dark for hover states */
  --hover-bg:    #1A1714;   /* tile hover overlay */
  --af-blue:     #8ec8e1;   /* AF brand accent */

  /* Type — with font fallbacks active until font files are added */
  --font-display:  'Salina', Georgia, serif;
  --font-sub:      'Fractul', Georgia, serif;
  --font-body:     'dax-pro-condensed', 'Helvetica Neue', sans-serif;
  --font-ui:       'Fractul', 'Helvetica Neue', sans-serif;

  /* Scale */
  --space-xs:    8px;
  --space-sm:    16px;
  --space-md:    32px;
  --space-lg:    64px;
  --space-xl:    120px;

  /* Motion */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ============================================================
   RESET & BASE
   ============================================================ */

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

html {
  font-size: 16px;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ============================================================
   SITE HEADER (used on case study pages)
   ============================================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(245, 242, 237, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.site-header.scrolled {
  border-color: var(--rule);
}

.site-header .logo {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.site-header .logo img {
  height: 52px !important;
  width: auto;
  display: block;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-header nav a {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  transition: color 0.2s ease;
  text-decoration: none;
}

.site-header nav a:hover {
  color: var(--af-blue);
}

.site-header nav a.back-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-ui);
  font-weight: 700;
}

/* back-link arrow is in text, no pseudo-element needed */

/* ============================================================
   CASE STUDY PAGE LAYOUT
   ============================================================ */

.cs-page {
  padding-top: 80px; /* clear fixed header */
}

/* Hero */
.cs-hero {
  width: 100%;
  height: 70vh;
  min-height: 480px;
  max-height: 700px;
  overflow: hidden;
  position: relative;
  background: var(--bg-2);
}

.cs-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.cs-hero-caption {
  position: absolute;
  bottom: 40px;
  left: 48px;
  right: 48px;
}

.cs-hero-caption .cs-client {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 8px;
}

.cs-hero-caption h1 {
  font-family: var(--font-display); /* Salina Black */ font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1;
  color: #fff;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 32px rgba(0,0,0,0.35);
}

/* Content wrapper */
.cs-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 48px 120px;
}

/* Text blocks: centered in the column, left-aligned text, max 640px wide */
.cs-section-label,
.cs-section h2,
.cs-section p,
.cs-pullquote {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* cs-section wrapper itself centered so all children center together */
.cs-section {
  margin-bottom: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;  /* centers the fixed-width children */
}

/* But text stays LEFT-aligned within its own box */
.cs-section-label,
.cs-section h2,
.cs-section p {
  text-align: left;
  width: 100%;
}

/* Meta bar */
.cs-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  padding: 40px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-bottom: 72px;
}

.cs-meta-item .label {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 6px;
}

.cs-meta-item .value {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.4;
}

/* Section headings inside case studies */
.cs-section {
  margin-bottom: 72px;
}

.cs-section-label {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 20px;

}

.cs-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 24px;
  letter-spacing: -0.02em;

}

.cs-section p {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink-mid);
  margin-bottom: 20px;

}

.cs-section p:last-child {
  margin-bottom: 0;
}

/* Pull quote */
.cs-pullquote {
  border-left: 3px solid var(--af-blue);
  margin: 48px auto;
  padding: 8px 0 8px 32px;
  max-width: 640px;
  width: 100%;
}

.cs-pullquote p {
  font-family: var(--font-display);
  font-size: 1.3rem !important;
  font-weight: 900;
  line-height: 1.3 !important;
  color: var(--ink) !important;
  font-style: italic;
  margin: 0 !important;
  text-align: left;
}

/* Result stats */
.cs-stat .number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 10px;
}

.cs-stat .stat-label {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--ink-muted);
  line-height: 1.4;
}

/* Full-width image blocks */
.cs-image-full {
  width: 100%;
  margin-bottom: 72px;
  overflow: hidden;
  background: var(--bg-2);
}

.cs-image-full img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Caption under full-width images */
.cs-image-full figcaption {
  max-width: 800px;
  margin: 0 auto;
  padding: 16px 48px 0;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}

/* ============================================================
   IMAGE ROWS — mosaic.js sets exact pixel width+height on each
   <img> at runtime so all images in a row are the same height
   with no cropping and no dead space. CSS just provides the
   flex container and gap. Do NOT set fixed heights here.
   ============================================================ */

.cs-image-grid,
.cs-image-grid-3,
.cs-image-grid-4,
.cs-image-grid-6,
.cs-image-grid-3x2-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 4px;
  margin-bottom: 4px;   /* tight between consecutive rows; section adds 72px after group */
  overflow: visible;
}

/* When an image row is the LAST before copy, restore normal spacing */
.cs-image-grid + .cs-section,
.cs-image-grid-3 + .cs-section,
.cs-image-grid-4 + .cs-section,
.cs-image-grid-6 + .cs-section,
.cs-image-grid-3x2 + .cs-section,
.cs-compare + .cs-section,
.cs-compare-labels + .cs-section {
  margin-top: 68px; /* 72 - 4 already consumed */
}

/* After the last image in a group, add section spacing via a wrapper */
.cs-image-group {
  margin-bottom: 72px;
}

.cs-image-group .cs-image-grid,
.cs-image-group .cs-image-grid-3,
.cs-image-group .cs-image-grid-4,
.cs-image-group .cs-image-grid-6 {
  margin-bottom: 4px;
}

.cs-image-group .cs-image-grid:last-child,
.cs-image-group .cs-image-grid-3:last-child,
.cs-image-group .cs-image-grid-4:last-child,
.cs-image-group .cs-image-grid-6:last-child {
  margin-bottom: 0;
}

/* cs-image-grid-3x2 wraps two cs-image-grid-3x2-row children */
.cs-image-grid-3x2 {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 72px;
}

.cs-image-grid-3x2-row {
  margin-bottom: 0; /* gap handled by parent column flex */
}

/* Images: JS overrides width/height at runtime */
.cs-image-grid img,
.cs-image-grid-3 img,
.cs-image-grid-4 img,
.cs-image-grid-6 img,
.cs-image-grid-3x2-row img {
  display: block;
  flex: 0 0 auto;
  /* width + height set by mosaic.js */
}

/* Single full-width image — no mosaic layout */
.cs-image-grid.single-image {
  display: block;
}

.cs-image-grid.single-image img {
  width: 100% !important;
  height: auto !important;
  max-height: 700px;
  object-fit: contain;
}

/* Edge-to-edge full-bleed strip — intentional cover crop */
.cs-image-grid.full-bleed {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  gap: 0;
}

.cs-image-grid.full-bleed img {
  width: 100% !important;
  height: 520px !important;
  object-fit: cover;
  flex: 1 1 100%;
}


/* Image placeholder — shows slot label until real image is added */
.img-placeholder {
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  text-align: center;
  padding: 40px;
  border: 2px dashed var(--rule);
}

.img-placeholder .slot-label {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rule);
  line-height: 1.8;
}

/* Before / After comparison — mosaic.js sets equal pixel heights */
.cs-compare {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 4px;
  margin-bottom: 8px;
}

.cs-compare-item {
  flex: 0 0 auto;
}

.cs-compare-item img {
  display: block;
  flex: 0 0 auto;
  /* width + height set by mosaic.js */
}

.cs-compare-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 12px;
}

/* Project nav at bottom of case studies */
.cs-nav {
  margin-top: 120px;
  padding-top: 48px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}

.cs-nav a {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s ease;
}

.cs-nav a:hover { color: var(--af-blue); }
.cs-nav .prev::before { content: '←'; }
.cs-nav .next::after  { content: '→'; }

.cs-nav .back-home {
  font-family: var(--font-ui);
  font-weight: 700;
  font-weight: 900;
  font-size: 0.85rem;
}

/* ============================================================
   FOOTER (all pages)
   ============================================================ */

.site-footer {
  padding: 48px;
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-footer .footer-name {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.site-footer .footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-footer .footer-links a {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  transition: color 0.2s ease;
  font-family: var(--font-ui);
  font-weight: 700;
}

.site-footer .footer-links a:hover {
  color: var(--ink);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up {
  animation: fadeUp 0.9s var(--ease-out) both;
}

.fade-up-delay-1 { animation-delay: 0.1s; }
.fade-up-delay-2 { animation-delay: 0.2s; }
.fade-up-delay-3 { animation-delay: 0.3s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
  .site-header { padding: 16px 24px; }
  .cs-hero-caption { left: 24px; right: 24px; bottom: 24px; }
  .cs-content { padding: 48px 24px 80px; }
  .cs-meta { grid-template-columns: 1fr 1fr; }
  .cs-stats { grid-template-columns: 1fr 1fr; }
  .cs-image-grid { grid-template-columns: 1fr; }
  .cs-image-grid-3 { grid-template-columns: 1fr 1fr; }
  .cs-compare { grid-template-columns: 1fr; }
  .cs-nav { flex-direction: column; align-items: flex-start; }
  .site-footer { flex-direction: column; align-items: flex-start; padding: 32px 24px; }
}

@media (max-width: 480px) {
  .cs-meta { grid-template-columns: 1fr; }
  .cs-stats { grid-template-columns: 1fr; }
  .cs-image-grid-3 { grid-template-columns: 1fr; }
  .site-header nav { gap: 16px; }
}

/* ============================================================
   LIGHTBOX
   ============================================================ */

.lightbox-trigger {
  cursor: zoom-in;
}

.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26,23,20,0.94);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-img-wrap {
  position: relative;
  max-width: 90vw;
  max-height: 84vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 84vh;
  object-fit: contain;
  display: block;
  border: none;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  transition: color 0.2s;
}

.lightbox-close:hover { color: #fff; }

.lightbox-nav {
  display: flex;
  gap: 40px;
  margin-top: 20px;
  align-items: center;
}

.lightbox-nav button {
  background: none;
  border: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.7);
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 20px;
  cursor: pointer;
  transition: all 0.2s;
}

.lightbox-nav button:hover {
  border-color: var(--af-blue);
  color: var(--af-blue);
}

.lightbox-counter {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.12em;
}

.lightbox-caption {
  margin-top: 12px;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.45);
  text-align: center;
  max-width: 600px;
}

/* ============================================================
   3×2 ILLUSTRATION GRID (Top Pot)
   ============================================================ */

/* 3x2 grid — two flex rows, each with fixed pixel height */
.cs-image-grid-3x2 {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 72px;
}

.cs-image-grid-3x2-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 4px;
  overflow: hidden;
}

.cs-image-grid-3x2-row img {
  display: block;
  height: 380px;
  width: auto;
  flex: 0 0 auto;
}

/* Fallback: direct img children of 3x2 (no row wrapper) */
.cs-image-grid-3x2 > img {
  display: block;
  height: 380px;
  width: auto;
  flex: 0 0 auto;
}


/* ============================================================
   BIO PAGE — FLOAT HEADSHOT
   ============================================================ */

.bio-photo-wrap {
  width: 100%;
  display: block;
}

.bio-photo-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 640px) {
  .bio-photo-wrap {
  width: 100%;
  display: block;
}
}

/* ============================================================
   CENTERED FIGCAPTION STRIPS
   ============================================================ */
.cs-image-full figcaption {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 16px 48px;
  text-align: center;
}

/* Larger footer logo */
.site-footer .footer-name img {
  height: 56px !important;
}

/* Next link in header */
.site-header nav a.next-link {
  color: var(--af-blue);
  font-weight: 700;
}
.site-header nav a.next-link:hover {
  color: var(--ink);
}

/* Bio photo - centered, not float */
.bio-photo-wrap {
  width: 100%;
  display: block;
}
.bio-photo-wrap img {
  width: 100%;
  display: block;
}

@media (max-width: 640px) {
  .bio-photo-wrap {
  width: 100%;
  display: block;
}
}

/* Centered pull quote variant */
.cs-pullquote.centered {
  border-left: none;
  border-top: 1px solid var(--af-blue);
  border-bottom: 1px solid var(--af-blue);
  padding: 32px 48px;
  text-align: center;
  margin: 48px 0;
}

.cs-pullquote.centered p {
  font-style: italic;
}

/* cs-main matches cs-content width */
.cs-main {
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 48px 120px;
}

/* Bio quote — sits below photo, aligned to photo edges */
.bio-photo-quote {
  padding: 28px 48px 0;
  font-family: var(--font-body);
}

.bio-photo-quote blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  font-weight: 900;
  font-style: italic;
  line-height: 1.35;
  color: var(--ink);
  margin: 0 0 16px;
  border: none;
  padding: 0;
}

.bio-photo-quote cite {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: block;
}

/* cs-compare label */
.cs-compare-label {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding: 8px 0 0;
  text-align: center;
}

/* Row of labels sitting below compare images */
.cs-compare-labels {
  display: flex;
  flex-direction: row;
  gap: 4px;
  margin-bottom: 72px;
}

.cs-compare-labels .cs-compare-label {
  flex: 1 1 0;
  padding: 6px 0;
}

/* 2×2 mosaic: two rows of two, tight gap */
.cs-image-2x2 {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 72px;
}

.cs-image-2x2-row {
  display: flex;
  flex-direction: row;
  gap: 4px;
}

.cs-image-2x2-row img {
  display: block;
  flex: 0 0 auto;
}

/* Single-image full-width block with label below */
.cs-image-solo {
  margin-bottom: 4px;
}

.cs-image-solo img {
  display: block;
  width: 100%;
  height: auto;
}

.cs-image-solo-label {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-align: center;
  padding: 6px 0 0;
}

/* YouTube video embed */
.cs-video-wrap {
  position: relative;
  margin-bottom: 4px;
  background: #000;
}

.cs-video-wrap iframe {
  display: block;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  border: 0;
}

.cs-video-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}

.cs-video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: #000;
  margin-bottom: 4px;
}

.cs-video-container iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

.cs-video-label {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-align: center;
  padding: 6px 0 0;
}

/* Result stats — center them */
.cs-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin: 0 auto 56px;
  padding: 48px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  max-width: 640px;
  width: 100%;
}



.site-header nav a.nav-about {
  font-family: var(--font-ui);
  font-weight: 700;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--rule);
  color: var(--ink-mid);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 28px;
  transition: border-color 0.2s ease, color 0.2s ease;
  text-decoration: none;
}
.btn-ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
}
