/* =====================================================================
   Video Finesse — main stylesheet
   Fluid: type, spacing and gutters scale continuously with the viewport
   via clamp(); grids reflow intrinsically. Desktop values are the max
   end of each clamp, so the layout is unchanged at full width.
   ===================================================================== */

:root {
  --ink: #13181B;
  --ink-soft: #1B2226;
  --ink-line: rgba(244,241,232,0.14);
  --paper: #F4F1E8;
  --paper-line: rgba(20,24,21,0.12);
  --amber: #27C8C3;
  --amber-deep: #1C9A96;
  --sage: #7FA98C;
  --slate-blue: #4D7191;
  --text-dark: #1F2420;
  --text-cream: #F4F1E8;
  --muted-dark: rgba(31,36,32,0.62);
  --muted-cream: rgba(244,241,232,0.66);
  --radius: 14px;
  --maxw: 1180px;

  /* fluid spacing (320px → 1280px viewport) */
  --gutter: clamp(16px, 3.33vw, 32px);
  --section-y: clamp(28px, 2vw + 20px, 52px);
  --fs-label: clamp(13.5px, 0.16vw + 13px, 15px);
  --space-xl: clamp(40px, 3.6vw + 28px, 64px);
  --space-l: clamp(32px, 2.6vw + 24px, 58px);
  --gap-l: clamp(28px, 3.6vw + 16px, 64px);
  --gap-m: clamp(16px, 1.2vw + 12px, 24px);
  --gap-s: clamp(8px, 1vw + 5px, 18px);

  /* fluid type */
  --fs-lead: clamp(16px, 0.3vw + 15px, 19px);
  --fs-body: clamp(14px, 0.16vw + 13.5px, 15.5px);
  --fs-small: clamp(12.5px, 0.16vw + 12px, 14px);
}

/* ---------- BASE ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text-dark);
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
img, video, iframe { max-width: 100%; }
img { display: block; height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p { overflow-wrap: break-word; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; }

.eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: clamp(11px, 0.2vw + 10.5px, 12.5px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: flex; align-items: center; gap: 10px;
  margin-bottom: clamp(12px, 0.8vw + 9px, 18px);
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 26px; height: 1px; background: currentColor; opacity: 0.55;
}
.script { font-family: 'Caveat', cursive; font-weight: 700; }
h1, h2, h3 { font-family: 'Fraunces', serif; margin: 0; font-weight: 700; letter-spacing: -0.01em; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Space Mono', monospace; font-size: clamp(11px, 0.2vw + 10.5px, 12.5px); letter-spacing: 0.06em;
  text-transform: uppercase; text-decoration: none; text-align: center;
  padding: clamp(10px, 0.3vw + 9px, 12px) clamp(16px, 0.8vw + 13px, 22px); border-radius: 999px;
  background: var(--amber); color: #0A1F1E; font-weight: 700;
  border: 1px solid var(--amber);
  cursor: pointer; transition: transform .18s ease, background .18s ease;
}
.btn:hover { background: var(--amber-deep); transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--text-cream); border: 1px solid var(--ink-line); }
.btn.ghost:hover { background: rgba(244,241,232,0.08); transform: translateY(-2px); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- NAV ---------- */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 12px var(--gutter);
  background: rgba(19,24,27,0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--ink-line);
}
#nav .logo-link { display: flex; align-items: center; flex: none; }
#nav .logo-img { height: clamp(22px, 0.4vw + 20px, 26px); width: auto; filter: brightness(0) invert(1); }
#nav nav { display: flex; align-items: center; gap: clamp(16px, 2.6vw - 4px, 30px); }
#nav nav a {
  color: var(--text-cream); text-decoration: none; font-size: clamp(12.5px, 0.2vw + 11px, 13.5px);
  font-family: 'Space Mono', monospace; letter-spacing: 0.04em;
  opacity: 0.78; transition: opacity .2s;
  white-space: nowrap;
}
#nav nav a:hover { opacity: 1; }
#nav > .btn { flex: none; white-space: nowrap; }

#nav .mobile-toggle {
  display: none;
  width: 40px; height: 40px; border: 1px solid var(--ink-line);
  background: rgba(244,241,232,0.06); border-radius: 10px;
  cursor: pointer; padding: 0; align-items: center; justify-content: center;
  flex-direction: column; gap: 5px; flex: none;
}
#nav .mobile-toggle span {
  display: block; width: 20px; height: 2px; background: var(--text-cream);
  transition: transform .25s ease, opacity .25s ease;
}
#nav.open .mobile-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#nav.open .mobile-toggle span:nth-child(2) { opacity: 0; }
#nav.open .mobile-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- HERO BANNER ---------- */
/* Height tracks width (685 / 1440 ≈ 47.6vw) so the baked-in banner art
   keeps its proportions instead of cropping as the viewport narrows. */
.HeroSection {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(440px, 47.6vw, 685px);
  padding: clamp(60px, 2vw + 50px, 85px) var(--gutter) clamp(24px, 2vw, 40px);
}
.InnerBannerDiv {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2vw, 32px);
  width: 100%;
  max-width: 1440px;
  height: fit-content;
  align-self: center;
  justify-content: center;
  align-items: center;
}
.DivLeft { color: white; align-self: anchor-center; }
.DivRight {
  position: relative;
  width: 100%;
  border-radius: 16px;
  background: radial-gradient(circle at 15% 20%, #4a1a8f 0%, #1a0a3d 40%, #0a0620 100%);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
/* starfield */
.DivRight::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 20px 30px, white, transparent),
    radial-gradient(1px 1px at 90px 80px, white, transparent),
    radial-gradient(1px 1px at 150px 40px, white, transparent),
    radial-gradient(1px 1px at 220px 120px, white, transparent),
    radial-gradient(1px 1px at 300px 60px, white, transparent),
    radial-gradient(1px 1px at 380px 150px, white, transparent),
    radial-gradient(1px 1px at 450px 30px, white, transparent),
    radial-gradient(1px 1px at 520px 100px, white, transparent),
    radial-gradient(1px 1px at 600px 70px, white, transparent),
    radial-gradient(1px 1px at 700px 140px, white, transparent),
    radial-gradient(1px 1px at 800px 40px, white, transparent),
    radial-gradient(1px 1px at 880px 110px, white, transparent);
  background-repeat: repeat;
  background-size: 950px 620px;
  opacity: 0.8;
  pointer-events: none;
}
/* glowing frame */
.DivRight::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 12px;
  border: 1.5px solid rgba(220, 200, 255, 0.9);
  box-shadow:
    0 0 4px 1px rgba(200, 170, 255, 0.9),
    0 0 12px 2px rgba(160, 100, 255, 0.6),
    0 0 24px 6px rgba(130, 60, 220, 0.35),
    inset 0 0 12px 1px rgba(180, 140, 255, 0.4);
  pointer-events: none;
}

/* ---------- GALLERY + PHILOSOPHY BACKDROP ---------- */
.JustBG { position: relative; }
.JustBG::after {
  content: '';
  position: absolute;
  top: 30%;
  z-index: 1;
  height: 70%;
  width: 100%;
  background: radial-gradient(circle, rgba(39, 200, 195, 1) 0%, rgba(19, 24, 27, 1) 81%);
}
.JustBG .wrap { position: relative; z-index: 2; }

/* ---------- SECTION 1 — GALLERY ---------- */
#gallery {
  background:
    radial-gradient(ellipse 900px 500px at 14% -10%, rgba(127,169,140,0.18), transparent 60%),
    radial-gradient(ellipse 900px 600px at 100% 10%, rgba(77,113,145,0.22), transparent 60%),
    var(--ink);
  color: var(--text-cream);
  padding-top: var(--section-y);
}
#gallery .eyebrow { color: var(--amber); }
.hero-head { max-width: 760px; }
.hero-head h1 { font-size: clamp(30px, 3vw + 20px, 58px); line-height: 1.07; }
.hero-head h1 .script { color: var(--amber); font-size: 1.08em; }
.hero-sub {
  margin-top: clamp(14px, 0.8vw + 11px, 22px); font-size: clamp(18px, 0.4vw + 16.5px, 22px); line-height: 1.6;
  color: var(--muted-cream); max-width: 520px;
}
.slate-meta {
  display: flex; gap: clamp(14px, 1.5vw + 9px, 28px); margin-top: clamp(22px, 1.3vw + 18px, 34px); flex-wrap: wrap;
  font-family: 'Space Mono', monospace; font-size: 12px; color: var(--muted-cream);
  letter-spacing: 0.04em;
}
.slate-meta b { color: var(--text-cream); font-weight: 700; }

.gallery-cue {
  margin-top: clamp(36px, 3vw + 26px, 64px);
  font-weight: 700; font-size: clamp(18px, 0.4vw + 16.5px, 22px); color: var(--text-cream);
}
.gallery-grid {
  margin-top: clamp(14px, 0.6vw + 12px, 20px);
}
.hero-head + .gallery-grid { margin-top: clamp(20px, 1.4vw + 14px, 32px); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-s);
}
.tile {
  position: relative; border: 0; padding: 0; cursor: pointer;
  border-radius: clamp(8px, 0.5vw + 6px, 12px); overflow: hidden; aspect-ratio: 1/1;
  background: #000; isolation: isolate;
}
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, filter .4s ease; }
/* thin outline on the outer edge — sits above the image without covering it */
.tile::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  border-radius: inherit; border: 2.5px solid rgba(244, 241, 232, 0.55);
  transition: border-color .3s ease;
}
.tile { transition: box-shadow .3s ease, transform .3s ease; }
.tile:hover, .tile:focus-visible { transform: translateY(-2px); box-shadow: 0 0 0 2px #3FF2EC, 0 0 22px 4px rgba(39, 200, 195, 0.75); }
.tile:hover::after, .tile:focus-visible::after { border-width: 3px; border-color: #3FF2EC; }
.tile .tag {
  position: absolute; top: clamp(6px, 0.5vw + 4px, 10px); left: clamp(6px, 0.5vw + 4px, 10px); z-index: 3;
  font-family: 'Space Mono', monospace; font-size: clamp(8px, 0.25vw + 7px, 10px); letter-spacing: 0.08em;
  color: #08201F; background: var(--amber); padding: 3px 7px; border-radius: 4px;
  font-weight: 700;
}
.tile:hover img { transform: scale(1.07); filter: saturate(1.15); }
.tile:focus-visible { outline: none; }

/* ---------- GALLERY MODAL ---------- */
#modal-overlay {
  position: fixed; inset: 0; z-index: 1000; display: none;
  background: rgba(10,12,13,0.86); backdrop-filter: blur(6px);
  align-items: center; justify-content: center; padding: clamp(12px, 2vw + 6px, 24px);
  overflow-y: auto;
}
#modal-overlay.open { display: flex; }
/* Desktop: video left; scene number, title and caption right */
.modal-card {
  position: relative;
  background: var(--ink-soft);
  color: var(--text-cream);
  max-width: 1100px;
  width: 100%;
  max-height: calc(100dvh - 2 * clamp(12px, 2vw + 6px, 24px));
  overflow: auto;
  border-radius: clamp(12px, 1vw + 9px, 18px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  border: 1px solid var(--ink-line);
  padding: clamp(20px, 1.5vw + 14px, 34px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  grid-template-areas: "media scene" "media body";
  grid-template-rows: auto 1fr;
  column-gap: clamp(22px, 2vw + 12px, 36px);
  align-items: start;
}
.modal-scene {
  grid-area: scene;
  font-family: 'Space Mono', monospace; font-size: 12px; letter-spacing: 0.1em; color: var(--amber);
  margin-bottom: 10px; padding-right: 44px; /* clear the close button */
}
.modal-media { grid-area: media; position: relative; background: #000; border: 1px solid var(--ink-line); }
/* original 16:9 proportions */
.modal-player { position: relative; aspect-ratio: 16/9; }
.modal-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.modal-body { grid-area: body; }
.modal-body h3 { font-size: 26px; line-height: 1.25; margin: 0 0 12px; }
.modal-body p { font-size: 20px; line-height: 1.6; color: var(--muted-cream); margin: 0; }
#modal-close {
  position: absolute; top: clamp(10px, 0.6vw + 8px, 16px); right: clamp(10px, 0.6vw + 8px, 16px); z-index: 2;
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--ink-line);
  background: rgba(19,24,27,0.6); color: var(--text-cream); cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
#modal-close:hover { border-color: var(--amber); color: var(--amber); }

/* ---------- LIVID SHOWCASE WINDOW (Section 3 graphics) ---------- */
#showcase-overlay {
  position: fixed; inset: 0; z-index: 1000; display: none;
  background: rgba(10,12,13,0.86); backdrop-filter: blur(6px);
  align-items: center; justify-content: center; padding: clamp(10px, 2vw + 4px, 28px);
}
#showcase-overlay.open { display: flex; }
.showcase-card {
  position: relative; width: 100%; max-width: 1280px; height: 100%; max-height: 900px;
  background: var(--ink-soft); border: 1px solid var(--ink-line);
  border-radius: clamp(12px, 1vw + 9px, 18px); overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  display: flex; flex-direction: column;
  padding-top: 56px;   /* bar for the close button, so it never covers the showcase */
}
.showcase-frame { flex: 1; min-height: 0; }
.showcase-frame iframe { display: block; width: 100%; height: 100%; border: 0; background: #0b0f11; }
#showcaseClose {
  position: absolute; top: 9px; right: 12px; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--ink-line);
  background: rgba(19,24,27,0.6); color: var(--text-cream); cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
#showcaseClose:hover { border-color: var(--amber); color: var(--amber); }
/* Mobile: scene number on top, then video, then title + caption */
@media (max-width: 760px) {
  .modal-card {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "scene" "media" "body";
    grid-template-rows: auto;
  }
  .modal-scene { margin: 4px 0 16px; }
  .modal-body { margin-top: 18px; }
  .modal-body h3 { font-size: 22px; }
  .modal-body p { font-size: 18px; }
}

/* ---------- SECTION 2 — PHILOSOPHY ---------- */
#philosophy { background: #13181B; padding-top: clamp(32px, 2vw + 26px, 50px); }
#philosophy .eyebrow { color: white; }
/* shared intro + opinion heading: centered across the section */
.ph-head { max-width: 720px; margin-inline: auto; text-align: center; }
.ph-head h2 { font-size: clamp(28px, 1.7vw + 22.5px, 44px); line-height: 1.1; color: white; }
.ph-sub { margin: clamp(12px, 0.6vw + 10px, 18px) auto 0; max-width: 600px; font-size: var(--fs-lead); line-height: 1.65; color: white; }

/* 2.1 Carousels — side by side while each gets ≥ 340px, otherwise stacked (Philosophy first) */
.carousel-row {
  margin: clamp(32px, 3vw + 22px, 60px) auto 0;
  max-width: 900px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  align-items: start;
  gap: clamp(40px, 2vw + 32px, 64px) clamp(24px, 2vw + 16px, 48px);
}
.carousel-wrap { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.carousel-viewport {
  position: relative;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 4/5;
  overflow: hidden;
  border: clamp(3px, 0.2vw + 2.4px, 5px) solid rgba(235, 245, 250, 0.9);
  border-radius: clamp(20px, 1vw + 17px, 30px);
  background: transparent;
  box-shadow:
    0 0 3px rgba(255, 255, 255, 1),
    0 0 8px rgba(255, 255, 255, 0.7),
    0 0 15px rgba(200, 220, 230, 0.35),
    inset 0 0 5px rgba(255, 255, 255, 1);
}
/* inner glass bevel */
.carousel-viewport::before {
  content: "";
  position: absolute;
  inset: clamp(5px, 0.3vw + 4px, 8px);
  border: 3px solid rgba(255, 255, 255, 0.75);
  border-radius: clamp(14px, 0.8vw + 11.5px, 22px);
  box-shadow:
    inset 2px 2px 4px rgba(255, 255, 255, 0.95),
    inset -2px -2px 4px rgba(120, 150, 165, 0.45),
    0 0 3px rgba(255, 255, 255, 0.7);
  pointer-events: none;
}
/* outer lit edge */
.carousel-viewport::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: clamp(16px, 0.9vw + 13px, 25px);
  border-top: clamp(4px, 0.3vw + 3px, 7px) solid rgba(255, 255, 255, 1);
  border-left: clamp(4px, 0.3vw + 3px, 7px) solid rgba(255, 255, 255, 0.9);
  border-right: clamp(4px, 0.3vw + 3px, 7px) solid rgba(180, 210, 225, 0.7);
  border-bottom: clamp(4px, 0.3vw + 3px, 7px) solid rgba(130, 165, 180, 0.6);
  pointer-events: none;
}
.carousel-track { display: flex; height: 100%; transition: transform .5s cubic-bezier(.65,.05,.36,1); }
.car-card {
  min-width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; background: var(--paper); border: 1px solid var(--paper-line);
  border-radius: clamp(14px, 0.6vw + 12px, 20px);
  box-shadow: 0 10px 40px rgba(20,24,21,0.08);
  overflow: hidden;
}
.car-card img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: clamp(14px, 0.6vw + 12px, 20px); }

.carousel-controls { display: flex; align-items: center; gap: clamp(12px, 0.6vw + 10px, 18px); margin-top: clamp(20px, 0.8vw + 17px, 28px); }
.car-arrow {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--paper-line);
  background: var(--paper); display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex: none; transition: background .2s ease, transform .2s ease;
}
.car-arrow:hover { background: var(--amber); transform: translateY(-1px); }
.car-arrow svg { width: 12px; height: 12px; }
.car-dots { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; justify-content: center; }
.car-dot {
  width: 7px; height: 7px; border-radius: 50%; background: white;
  border: none; cursor: pointer; padding: 0; transition: width .25s ease, background .25s ease;
}
.car-dot.active { background: var(--amber); width: 20px; border-radius: 5px; }

/* 2.2 Blog */
.blog-block { margin-top: clamp(36px, 2.5vw + 26px, 60px); }
/* single centered column; future posts stack here at the same width */
.blog-list {
  margin: clamp(28px, 2vw + 20px, 48px) auto 0; max-width: 680px;
  display: flex; flex-direction: column; gap: var(--gap-m);
}
.blog-card {
  background: var(--paper); border: 1px solid var(--paper-line); border-radius: clamp(12px, 0.4vw + 11px, 16px);
  padding: clamp(22px, 0.8vw + 19px, 30px) clamp(18px, 1vw + 15px, 28px); display: flex; flex-direction: column;
}
.blog-card .bc-meta { font-family: 'Space Mono', monospace; font-size: 11px; color: var(--amber-deep); letter-spacing: 0.05em; margin-bottom: 14px; text-transform: uppercase; }
.blog-card h4 { font-family: 'Fraunces', serif; font-size: clamp(18px, 0.3vw + 17px, 21px); line-height: 1.28; margin: 0 0 12px; }
.blog-card .bc-preview { font-size: 14px; line-height: 1.65; color: var(--muted-dark); margin: 0 0 22px; }
.blog-card .bc-read {
  margin-top: auto; align-self: flex-start; font-family: 'Space Mono', monospace; font-size: 12px;
  letter-spacing: 0.05em; text-transform: uppercase; background: none; border: none; padding: 0 0 3px;
  border-bottom: 1px solid var(--text-dark); cursor: pointer; color: var(--text-dark); text-align: left;
}
.blog-card .bc-read:hover { color: var(--amber-deep); border-color: var(--amber-deep); }

/* Article overlay */
#article-overlay {
  position: fixed; inset: 0; z-index: 1000; display: none;
  background: rgba(19,24,27,0.6); backdrop-filter: blur(5px);
  overflow-y: auto; padding: clamp(16px, 5.6vw, 70px) clamp(10px, 1.1vw + 6.5px, 20px);
}
#article-overlay.open { display: block; }
.article-card {
  max-width: 680px; margin: 0 auto; background: var(--paper); border-radius: clamp(14px, 0.6vw + 12px, 20px);
  padding: 60px clamp(20px, 3.4vw + 9px, 52px) clamp(36px, 2vw + 30px, 56px);
  position: relative; box-shadow: 0 30px 80px rgba(0,0,0,0.35);
}
.article-close {
  position: absolute; top: clamp(12px, 0.8vw + 9.5px, 20px); right: clamp(12px, 0.8vw + 9.5px, 20px); width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--paper-line); background: var(--paper); cursor: pointer; font-size: 16px;
}
.article-meta { font-family: 'Space Mono', monospace; font-size: 11px; color: var(--amber-deep); letter-spacing: 0.06em; margin-bottom: 16px; text-transform: uppercase; }
.article-card h2 { font-family: 'Fraunces', serif; font-size: clamp(24px, 1.25vw + 20px, 36px); line-height: 1.2; margin-bottom: 10px; }
.article-byline { font-size: 12.5px; color: var(--muted-dark); margin-bottom: clamp(24px, 1.25vw + 20px, 36px); font-family: 'Space Mono', monospace; }
.article-body p { font-size: clamp(17px, 0.2vw + 16.3px, 19px); line-height: 1.75; color: var(--text-dark); margin: 0 0 18px; }

/* ---------- SECTION 3 — PORTFOLIO ---------- */
#portfolio {
  background:
    radial-gradient(ellipse 800px 500px at 90% 0%, rgba(127,169,140,0.16), transparent 60%),
    var(--ink);
  color: var(--text-cream);
}
#portfolio .eyebrow { color: var(--sage); }
.pf-head { max-width: 680px; }
.pf-head h2 { font-size: clamp(28px, 1.7vw + 22.5px, 44px); line-height: 1.1; color: var(--text-cream); }
.pf-head p { margin-top: 18px; font-size: var(--fs-lead); line-height: 1.7; color: var(--muted-cream); max-width: 560px; }
.pf-head p + p { margin-top: 10px; }

.capability-grid {
  margin-top: var(--space-l); display: grid; grid-template-columns: 1fr; gap: 1px;
  background: var(--ink-line); border: 1px solid var(--ink-line); border-radius: 14px; overflow: hidden;
  container-type: inline-size;
}
/* copy left, graphic right (equal widths); stacked — copy first, so it is read before the graphic — when the row is narrower than 640px */
.cap {
  background: var(--ink-soft); padding: clamp(28px, 0.6vw + 26px, 36px) clamp(24px, 0.6vw + 22px, 34px);
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw + 10px, 50px);
}
@container (max-width: 640px) { .cap { grid-template-columns: 1fr; } }
.cap .mk { font-family: 'Space Mono', monospace; font-size: 13px; color: var(--amber); letter-spacing: 0.06em; }
.cap h4 { font-family: 'Fraunces', serif; font-weight: 600; font-size: clamp(19px, 0.3vw + 18px, 22px); margin: 14px 0 8px; color: var(--text-cream); }
.cap p { font-size: clamp(16px, 0.15vw + 15.5px, 17px); line-height: 1.6; color: var(--muted-cream); margin: 0; }

/* Side by side: the graphic sets the row height. The copy column is taken out of flow
   (absolute) so it matches that height; number + heading stay put, the copy scrolls. */
.GridContent { position: relative; min-height: 0; }
.GridContent > .pf-inner { position: absolute; inset: 0; display: flex; flex-direction: column; }
.pf-title { flex: none; padding-bottom: 6px; }
.pf-body { flex: 1; min-height: 0; overflow-y: auto; padding-right: 10px; scrollbar-width: thin; scrollbar-color: #27C8C3 rgba(255,255,255,0.08); }
.pf-body::-webkit-scrollbar { width: 5px; }
.pf-body::-webkit-scrollbar-track { background: rgba(255,255,255,0.08); border-radius: 10px; }
.pf-body::-webkit-scrollbar-thumb { background: #27C8C3; border-radius: 10px; }
/* Stacked (phones): no scroll window — the whole copy block flows above the graphic */
@container (max-width: 640px) {
  .GridContent > .pf-inner { position: static; }
  .pf-body { overflow: visible; padding-right: 0; }
}
.GridContent p { padding: 5px 0; }
.cap .pf-intro { color: var(--text-cream); font-weight: 600; font-size: clamp(17px, 0.2vw + 16.3px, 18.5px); }
/* window sizes itself to the supplied 16:9 graphic: whole image, never cropped or stretched.
   Glow frame matches the banner video (.DivRight::after), drawn outside the artwork. */
.VideoGRibX {
  position: relative;
  align-self: start;
  width: 100%;
  border-radius: 12px;
  background: #13181B;
  overflow: hidden;
  border: 1.5px solid rgba(220, 200, 255, 0.9);
  box-shadow:
    0 0 4px 1px rgba(200, 170, 255, 0.9),
    0 0 12px 2px rgba(160, 100, 255, 0.6),
    0 0 22px 4px rgba(130, 60, 220, 0.35);
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.VideoGRibX a { display: block; }
.VideoGRibX img { display: block; width: 100%; height: auto; transition: filter .25s ease; }
/* link rollover: same edge highlight as the gallery tiles, but stronger — teal edge, wide glow, slight lift */
.VideoGRibX:hover, .VideoGRibX:focus-within {
  border-color: var(--amber);
  transform: translateY(-3px);
  box-shadow:
    0 0 0 2px var(--amber),
    0 0 12px 3px rgba(39, 200, 195, 0.85),
    0 0 26px 6px rgba(39, 200, 195, 0.45);
}
.VideoGRibX:hover img { filter: brightness(1.08) saturate(1.1); }
.VideoGRibX a:focus-visible { outline: none; }
@media (prefers-reduced-motion: reduce) { .VideoGRibX:hover, .VideoGRibX:focus-within { transform: none; } }

/* ---------- SECTION 4 — ABOUT ---------- */
#about { background: white; }
#about .eyebrow { color: var(--amber-deep); }
.about-grid { position: relative; display: grid; grid-template-columns: 0.85fr 1.15fr; gap: var(--gap-l); align-items: start; }
.about-photo {
  position: sticky; top: 80px;
  border-radius: 18px; overflow: hidden; aspect-ratio: 4/5;
  background: white;
  display: flex; align-items: center; justify-content: center;
}
.about-photo img { max-width: min(350px, 100%); height: 100%; object-fit: contain; object-position: center; }
.about-copy { min-width: 0; }
.about-copy h2 { font-size: clamp(26px, 1.25vw + 22px, 38px); line-height: 1.15; margin-bottom: clamp(16px, 0.6vw + 14px, 22px); }
.about-copy .lede { font-size: clamp(18px, 0.4vw + 16.5px, 21px); line-height: 1.7; color: var(--text-dark); margin-bottom: clamp(20px, 0.6vw + 18px, 26px); }
.about-list { display: grid; gap: clamp(14px, 0.6vw + 12px, 20px); }
/* label beside text when there's room, label above text when there isn't */
.about-item {
  display: flex; flex-wrap: wrap;
  gap: 6px 18px; padding-top: 18px; border-top: 1px solid var(--paper-line);
}
.about-item .lbl { flex: 0 0 130px;font-family: 'Space Mono', monospace; font-size: clamp(13.5px, 0.16vw + 13px, 15px); font-weight: 600; letter-spacing: 0.05em; color: var(--amber-deep); text-transform: uppercase; padding-top: 2px; }
/* About Q&A accordion */
.about-faq { margin-top: clamp(32px, 2vw + 24px, 52px); }
.about-faq h3 { font-family: 'Fraunces', serif; font-size: clamp(24px, 0.9vw + 20px, 32px); line-height: 1.2; margin-bottom: 14px; color: var(--text-dark); }
.faq-item { border-top: 1px solid var(--paper-line); }
.faq-item:last-of-type { border-bottom: 1px solid var(--paper-line); }
.faq-item summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 16px 44px 16px 0; font-weight: 600; font-size: clamp(17px, 0.2vw + 16.3px, 19px); line-height: 1.4; color: var(--text-dark);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 400; color: var(--amber-deep); border: 1px solid var(--amber); transition: background .2s ease, color .2s ease;
}
.faq-item[open] summary::after { content: "–"; background: var(--amber); color: #08201F; }
.faq-item summary:hover { color: var(--amber-deep); }
.faq-item summary:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }
.faq-answer { padding: 0 44px 18px 0; }
.faq-answer p { margin: 0 0 12px; font-size: clamp(16.5px, 0.15vw + 16px, 18px); line-height: 1.65; color: black; }
.faq-answer p:last-child { margin-bottom: 0; }
.about-item p { flex: 1 1 220px; min-width: 0; margin: 0; font-size: clamp(16.5px, 0.15vw + 16px, 18px); line-height: 1.6; color: black; }

/* ---------- SECTION 5 — NEXT STEPS ---------- */
#next-steps { background: var(--ink); color: var(--text-cream); }
#next-steps .eyebrow { color: var(--amber); }
.ns-head h2 { font-size: clamp(28px, 1.7vw + 22.5px, 44px); color: var(--text-cream); max-width: 560px; line-height: 1.12; }

.doorways { margin-top: var(--space-l); display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-m); }
.doorway {
  background: var(--ink-soft); border: 1px solid var(--ink-line); border-radius: clamp(12px, 0.4vw + 11px, 16px);
  padding: clamp(18px, 0.4vw + 17px, 22px) clamp(18px, 0.4vw + 17px, 22px) clamp(22px, 0.4vw + 21px, 26px); display: flex; flex-direction: column;
  min-width: 0;
}
.doorway h3 { font-family: 'Fraunces', serif; font-size: clamp(18px, 0.2vw + 17.4px, 20px); line-height: 1.2; margin-bottom: 12px; color: var(--text-cream); }
.doorway .dw-copy { font-size: clamp(16px, 0.15vw + 15.5px, 17.5px); line-height: 1.62; color: var(--muted-cream); margin-bottom: 20px; }
.doorway .dw-more { margin-top: auto; justify-content: center; }

/* Video thumbnail with placeholder "play in place" state */
.dw-video { position: relative; border-radius: 11px; overflow: hidden; aspect-ratio: 16/10; margin-bottom: 20px; background: #000; }
/* doorway videos: live Livid embeds at their original 16:9 */
.doorway .dw-video { aspect-ratio: 16/9; }
.dw-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.dw-thumb { position: relative; width: 100%; height: 100%; background-size: cover; background-position: center; }
.dw-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(190deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.7) 100%); }
.dw-thumb .tag {
  position: absolute; top: 9px; left: 9px; z-index: 2; font-family: 'Space Mono', monospace; font-size: 9.5px;
  letter-spacing: 0.06em; color: #08201F; background: var(--amber); padding: 3px 7px; border-radius: 4px; font-weight: 700;
}
.dw-play {
  position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer; padding: 0;
}
.dw-play span {
  width: 44px; height: 44px; border-radius: 50%; background: rgba(244,241,232,0.94);
  display: flex; align-items: center; justify-content: center; transition: transform .2s ease;
}
.dw-play:hover span { transform: scale(1.08); }
.dw-play svg { width: 14px; height: 14px; transform: translateX(1px); }
.dw-video.playing .dw-play svg { width: 12px; height: 12px; transform: none; }
.dw-progress {
  position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(244,241,232,0.18); z-index: 2;
  display: none;
}
.dw-progress i { display: block; height: 100%; width: 30%; background: var(--amber); animation: dwbar 2.6s ease-in-out infinite; }
@keyframes dwbar { 0% { width: 8%; margin-left: 0; } 50% { width: 55%; margin-left: 10%; } 100% { width: 8%; margin-left: 92%; } }
.dw-label { display: none; }
.dw-video.playing .dw-progress { display: block; }
.dw-video.playing .dw-label {
  display: block;
  position: absolute; bottom: 9px; left: 10px; z-index: 2; font-family: 'Space Mono', monospace; font-size: 9px;
  letter-spacing: 0.05em; color: rgba(244,241,232,0.75);
}

/* Thumbnail images */

/* "Tell Me More" popups */
.doorway-popup {
  position: fixed; inset: 0; z-index: 1000; display: none;
  background: rgba(10,12,13,0.82); backdrop-filter: blur(6px);
  align-items: center; justify-content: center; padding: clamp(12px, 2vw + 6px, 24px);
}
.doorway-popup.open { display: flex; }
.dp-card {
  background: var(--ink-soft); color: var(--text-cream); border: 1px solid var(--ink-line);
  max-width: 600px; width: 100%; max-height: 86vh; max-height: 90dvh; border-radius: clamp(12px, 1vw + 9px, 18px); overflow: hidden;
  display: flex; flex-direction: column; position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.dp-close {
  position: absolute; top: 14px; right: 14px; z-index: 5; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--ink-line); background: rgba(19,24,27,0.65); color: var(--text-cream); cursor: pointer;
}
.dp-media { flex: none; position: relative; background: #0d1113; }
.dp-media-video { aspect-ratio: 16/9; }
.dp-media-video .dw-thumb { position: absolute; inset: 0; }
.dp-media-graphic { padding: clamp(28px, 1vw + 25px, 36px) clamp(16px, 2.3vw + 9px, 30px) clamp(26px, 0.5vw + 24px, 30px); display: flex; align-items: center; justify-content: center; }

/* Book mock scales with the popup width */
.dp-book {
  position: relative; width: 100%; max-width: 340px; height: clamp(150px, 12vw + 112px, 200px);
  display: flex; align-items: center; justify-content: center;
}
.dp-book .cover-main {
  width: clamp(124px, 11vw + 88px, 170px); aspect-ratio: 17/22; height: auto; border-radius: 6px; position: absolute; left: clamp(4px, 1.4vw, 18px); top: -10px;
  background: linear-gradient(155deg, #1B2226 0%, #274049 55%, #1C9A96 130%);
  border: 1px solid rgba(244,241,232,0.18); box-shadow: 0 16px 34px rgba(0,0,0,0.4);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: clamp(10px, 0.4vw + 9px, 14px);
}
.dp-book .cover-main .kicker { font-family: 'Space Mono', monospace; font-size: clamp(7px, 0.3vw + 6px, 8.5px); letter-spacing: 0.12em; color: var(--amber); margin-bottom: 10px; }
.dp-book .cover-main .ti { font-family: 'Fraunces', serif; font-weight: 700; font-size: clamp(12px, 0.6vw + 10px, 15px); line-height: 1.25; color: var(--text-cream); }
.dp-book .cover-main .by { margin-top: clamp(8px, 1vw + 5px, 14px); font-family: 'Caveat', cursive; font-size: clamp(12px, 0.3vw + 11px, 14px); color: rgba(244,241,232,0.75); }
.dp-book .cover-cheat {
  width: clamp(110px, 9vw + 81px, 150px); aspect-ratio: 5/4; height: auto; border-radius: 6px; position: absolute; right: clamp(4px, 1vw, 14px); bottom: -16px;
  background: var(--paper); border: 1px solid rgba(20,24,21,0.14); box-shadow: 0 14px 28px rgba(0,0,0,0.35);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 10px;
}
.dp-book .cover-cheat .ti { font-family: 'Space Mono', monospace; font-weight: 700; font-size: clamp(8px, 0.3vw + 7px, 9.5px); letter-spacing: 0.04em; color: var(--text-dark); line-height: 1.4; }
.dp-book .cover-cheat .n { margin-top: 8px; font-family: 'Fraunces', serif; font-weight: 700; font-size: clamp(18px, 0.6vw + 16px, 22px); color: var(--amber-deep); }


.dp-body { padding: clamp(22px, 0.6vw + 20px, 28px) clamp(18px, 1.25vw + 14px, 30px) clamp(26px, 0.6vw + 24px, 32px); overflow-y: auto; }
.dp-body h3 { font-family: 'Fraunces', serif; font-size: clamp(22px, 0.4vw + 20.5px, 26px); line-height: 1.22; margin: 0 0 16px; color: var(--text-cream); }
.dp-body h4 { font-family: 'Fraunces', serif; font-size: 18px; margin: 22px 0 10px; color: var(--text-cream); }
.dp-body p { font-size: clamp(16px, 0.15vw + 15.5px, 17px); line-height: 1.65; color: var(--muted-cream); margin: 0 0 14px; }
.dp-body ul { margin: 0 0 16px; padding: 0; list-style: none; display: grid; gap: 10px; }
.dp-body li { font-size: clamp(15.5px, 0.15vw + 15px, 16.5px); line-height: 1.55; color: var(--muted-cream); padding-left: 18px; position: relative; }
.dp-body li::before { content: "—"; position: absolute; left: 0; color: var(--amber); }
.dp-body .btn { margin-top: 10px; justify-content: center; width: 100%; }

/* ---------- FOOTER ---------- */
footer { background: #0E1214; color: var(--muted-cream); padding: clamp(40px, 1.6vw + 35px, 56px) 0 clamp(28px, 1vw + 25px, 38px); }
.foot-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--gap-m); padding-bottom: clamp(24px, 1vw + 21px, 34px); border-bottom: 1px solid var(--ink-line); }
.foot-logo { display: flex; align-items: center; gap: 14px; }
.foot-logo img { height: 24px; width: auto; filter: brightness(0) invert(1); opacity: 0.92; }
.clap { width: 30px; height: 22px; flex: none; }
.clap .top-bar { transform-origin: 2px 19px; animation: clap 3.2s ease-in-out infinite; }
@keyframes clap {
  0%, 18% { transform: rotate(0deg); }
  9% { transform: rotate(-22deg); }
  100% { transform: rotate(0deg); }
}
footer nav { display: flex; gap: clamp(14px, 1.25vw + 10px, 26px); flex-wrap: wrap; }
footer nav a { font-family: 'Space Mono', monospace; font-size: 12.5px; text-decoration: none; color: var(--muted-cream); opacity: 0.85; }
footer nav a:hover { opacity: 1; }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 26px; font-family: 'Space Mono', monospace; font-size: 11px; line-height: 1.6; color: rgba(244,241,232,0.4); }

/* =====================================================================
   STRUCTURAL BREAKPOINTS
   Sizing is fluid everywhere above; these only switch layout structure
   (column counts, menu style) where a fluid value can't.
   ===================================================================== */

@media (max-width: 960px) {
  .doorways { grid-template-columns: 1fr; max-width: 640px; }
}

@media (max-width: 900px) {
  /* Hero stacks */
  .HeroSection { min-height: 0; padding: clamp(84px, 8vw + 58px, 130px) var(--gutter) clamp(36px, 4vw, 56px); background-position: 100% center !important; }
  .InnerBannerDiv { grid-template-columns: 1fr; gap: clamp(20px, 4vw, 34px); max-width: 720px; }
  /* The wordmark is baked into the banner image; on stacked layouts show a
     crop of it above the video so it isn't hidden behind the player. */
  .DivLeft {
    align-self: start;
    text-align: center;
    aspect-ratio: 8;
    /*background: url(../../Logo-Phone.svg) no-repeat;*/
    background-size: contain;
    padding: 10px;
    background-position: center;
  }
}

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  /* headshot as wide as the text block (up to 420px) so the face is easy to see */
  .about-photo { position: static; margin: 0 auto; width: min(100%, 420px); height: auto; aspect-ratio: auto; }
  .about-photo img { width: 100%; max-width: 100%; height: auto; margin: auto; }
}

@media (max-width: 820px) {
  /* Nav collapses to a hamburger */
  #nav { flex-wrap: wrap; gap: 0; }
  #nav .mobile-toggle { display: flex; }
  #nav > .btn { margin-left: auto; margin-right: 10px; padding: 9px 16px; font-size: 11px; }
  #nav nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(19,24,27,0.97); backdrop-filter: blur(10px);
    box-shadow: 0 14px 26px rgba(0,0,0,0.32);
    max-height: 0; overflow: hidden;
    transition: max-height .3s ease;
  }
  #nav.open nav { max-height: 70vh; overflow-y: auto; }
  #nav nav a {
    padding: 15px var(--gutter); width: 100%; font-size: 15px; opacity: 0.92;
    border-top: 1px solid var(--ink-line);
  }
}

@media (max-width: 380px) {
  #nav > .btn { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* =====================================================================
   WORDPRESS THEME ADDITIONS
   Styles that were inline in the static index.html, plus WP-only pieces
   (admin bar, Contact Form 7, single posts, generic pages).
   ===================================================================== */

/* previously inline in index.html */
.doorways .btn.ghost.dw-more { background: #27C8C3; color: black; }
.DivLeft img { padding-right: 90px; }
@media (max-width: 900px) {
  .DivLeft img { padding-right: 0; }
  .DivLeft { padding: 0 50px; }
}
.HeroSection { background-position: top center; background-size: cover; background-repeat: no-repeat; }

/* Field Guide sign-up (Contact Form 7 inside .dp-emailform) */
.dp-emailform { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.dp-emailform .wpcf7 form, .dp-emailform .vf-cf7-fields { display: flex; flex-direction: column; gap: 10px; }
.dp-emailform p { margin: 0; }
.dp-emailform br { display: none; }
.dp-emailform .wpcf7-form-control-wrap { display: block; }
.dp-emailform input[type="text"], .dp-emailform input[type="email"] {
  width: 100%; font-family: 'Inter', sans-serif; font-size: 16px; padding: 12px 14px;
  border: 1px solid var(--ink-line); border-radius: 8px; outline: none;
  background: #10161A; color: var(--text-cream);
}
.dp-emailform input::placeholder { color: rgba(244,241,232,0.42); }
.dp-emailform input:focus { border-color: var(--amber); }
.dp-emailform input[type="submit"], .dp-emailform .btn { width: 100%; justify-content: center; }
.dp-emailform input[type="submit"] {
  font-family: 'Space Mono', monospace; font-weight: 700; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 14px 18px; border: 0; border-radius: 999px; background: var(--amber); color: #08201F; cursor: pointer;
}
.dp-emailform input[type="submit"]:disabled { opacity: 0.6; cursor: default; }
.dp-emailform .wpcf7-spinner { margin: 6px auto 0; display: block; }
.dp-emailform .wpcf7 form:not(.submitting) .wpcf7-spinner { display: none; }
.dp-emailform .wpcf7-not-valid-tip { font-size: 12px; color: #e37b6b; margin-top: 4px; }
.dp-emailform .wpcf7-response-output { margin: 4px 0 0 !important; padding: 8px 10px !important; font-size: 13px; border-radius: 8px; color: var(--muted-cream); }
.dp-emailform .wpcf7 form.sent .wpcf7-response-output { display: none; }
.dp-emailform-fine { font-size: 12px; color: rgba(244,241,232,0.45); text-align: center; margin-top: 2px; }
.dp-emailform.is-hidden { display: none; }
.dp-emailform-success { display: none; text-align: center; padding-top: 4px; }
.dp-emailform-success.is-visible { display: block; }
.dp-emailform-success .ok-icon { font-size: 26px; margin-bottom: 8px; }
.dp-emailform-success p { color: var(--muted-cream); font-size: 16px; line-height: 1.6; margin: 0; }
.dp-emailform-success a { color: var(--amber); text-decoration: underline; }
.vf-admin-note { font-size: 14px; color: #e3b46b; border: 1px dashed currentColor; border-radius: 8px; padding: 10px 12px; }

/* WordPress admin bar sits above the fixed nav */
body.admin-bar #nav { top: 32px; }
@media (max-width: 782px) { body.admin-bar #nav { top: 46px; } }

/* Single posts and generic pages (blog posts also open in the on-page reader) */
.vf-page { background: var(--paper); color: var(--text-dark); padding: calc(var(--section-y) + 64px) 0 var(--section-y); min-height: 70vh; }
.vf-page .wrap { max-width: 760px; }
.vf-page .article-meta a { color: inherit; text-decoration: none; }
.vf-page h1 { font-family: 'Fraunces', serif; font-size: clamp(30px, 2vw + 22px, 46px); line-height: 1.15; margin-bottom: 12px; }
.vf-page .article-body > * { margin: 0 0 18px; }
.vf-page .article-body p, .vf-page .article-body li { font-size: clamp(17px, 0.2vw + 16.3px, 19px); line-height: 1.75; }
.vf-page .article-body img { max-width: 100%; height: auto; border-radius: 10px; }
.vf-page .vf-back { display: inline-block; margin-top: 30px; font-family: 'Space Mono', monospace; font-size: 13px; color: var(--amber-deep); }
.vf-post-list { display: flex; flex-direction: column; gap: var(--gap-m); }
.vf-post-list .blog-card h2 { font-family: 'Fraunces', serif; font-size: clamp(20px, 0.4vw + 18.7px, 24px); margin: 0 0 12px; }
.vf-post-list .blog-card h2 a { color: inherit; text-decoration: none; }
.vf-pagination { margin-top: 30px; display: flex; gap: 12px; font-family: 'Space Mono', monospace; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption-text { font-size: 13px; color: var(--muted-dark); }
.logo-text { font-family: 'Fraunces', serif; font-weight: 700; font-size: 20px; color: var(--text-cream); text-decoration: none; }

/* =====================================================================
   FIELD GUIDE PAGE (template-field-guide.php)
   ===================================================================== */
.vf-guide { background: #0E1214; color: var(--text-cream); }
.vf-guide [id] { scroll-margin-top: 14px; }
.fg-wrap { max-width: 780px; margin: 0 auto; padding: 0 var(--gutter); }
.fg-wrap-wide { max-width: var(--maxw); }

/* Hero: supplied artwork, full width, below the fixed nav */
.fg-hero { padding-top: 62px; background: #0E1214; }
.fg-hero-img { display: block; width: 100%; max-width: 1671px; height: auto; margin: 0 auto; }

/* Two big actions overlapping the bottom edge of the hero */
.fg-actions {
  position: relative; z-index: 2;
  display: flex; justify-content: center; gap: clamp(14px, 2vw, 28px); flex-wrap: wrap;
  max-width: 960px; margin: calc(-1 * clamp(28px, 4vw, 56px)) auto 0; padding: 0 var(--gutter);
}
.fg-btn {
  flex: 1 1 340px; max-width: 460px;
  display: flex; align-items: center; justify-content: center; gap: 16px;
  padding: clamp(14px, 1vw + 10px, 20px) clamp(18px, 1.5vw + 12px, 30px);
  border-radius: 14px; text-decoration: none; cursor: pointer;
  font-family: 'Inter', sans-serif; text-align: left;
  box-shadow: 0 16px 40px rgba(0,0,0,0.45);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.fg-btn:hover { transform: translateY(-3px); box-shadow: 0 20px 46px rgba(0,0,0,0.55); }
.fg-btn:focus-visible { outline: 3px solid var(--text-cream); outline-offset: 3px; }
.fg-btn-read { background: var(--amber); color: #fff; border: 0; }
.fg-btn-read:hover { background: #2fd6d1; }
.fg-btn-pdf {
  background: rgba(22, 25, 27, 0.45); color: #fff; border: 1px solid rgba(255, 255, 255, 0.45);
  -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2);
}
.fg-btn-pdf:hover { background: rgba(22, 25, 27, 0.62); }
.fg-btn-icon svg, .fg-btn-arrow svg { display: block; width: clamp(30px, 1.5vw + 24px, 44px); height: auto; }
.fg-btn-arrow svg { width: clamp(20px, 0.8vw + 16px, 26px); }
.fg-btn-text { display: flex; flex-direction: column; line-height: 1.2; }
.fg-btn-text strong { font-size: clamp(19px, 0.8vw + 15px, 26px); font-weight: 600; }
.fg-btn-text small { font-size: clamp(13px, 0.3vw + 12px, 16px); opacity: 0.85; margin-top: 4px; }

/* Part one: reading layout on paper */
.fg-doc { background: var(--paper); color: var(--text-dark); padding: clamp(64px, 4vw + 36px, 96px) 0 var(--section-y); margin-top: calc(-1 * clamp(28px, 4vw, 56px)); }
.fg-titleblock { text-align: center; margin-bottom: clamp(36px, 3vw + 24px, 64px); }
.fg-titleblock h2 { font-family: 'Fraunces', serif; font-size: clamp(30px, 2.4vw + 20px, 52px); line-height: 1.08; letter-spacing: 0.01em; }
.fg-byline { margin-top: 12px; font-family: 'Caveat', cursive; font-size: clamp(24px, 0.8vw + 20px, 30px); color: var(--amber-deep); }
.fg-kicker { font-family: 'Space Mono', monospace; font-size: clamp(12px, 0.2vw + 11.5px, 14px); letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber-deep); font-weight: 700; margin-bottom: 14px; }
.fg-rte p, .fg-rte li { font-size: clamp(17px, 0.2vw + 16.3px, 19px); line-height: 1.75; }
.fg-rte p { margin: 0 0 18px; }
.fg-rte ol, .fg-rte ul { margin: 0 0 18px; padding-left: 1.4em; }
.fg-rte a { color: inherit; }
.fg-intro { padding-bottom: clamp(28px, 2vw + 20px, 48px); }
.fg-principle { border-top: 1px solid var(--paper-line); padding: clamp(28px, 2vw + 20px, 48px) 0; }
.fg-quote { margin: 0 0 28px; padding: 4px 0 4px 22px; border-left: 3px solid var(--amber); }
.fg-quote p { margin: 0; font-family: 'Fraunces', serif; font-style: italic; font-size: clamp(20px, 0.6vw + 18px, 26px); line-height: 1.45; color: #2b302c; }
.fg-principle-head { margin-bottom: 8px; }
.fg-label { font-family: 'Space Mono', monospace; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--amber-deep); }
.fg-principle h3 { font-family: 'Fraunces', serif; font-size: clamp(28px, 1.6vw + 22px, 42px); line-height: 1.12; margin: 6px 0 8px; }
.fg-subtitle { font-size: clamp(18px, 0.3vw + 17px, 21px); font-style: italic; color: var(--muted-dark); margin: 0; }
.fg-principle h4 { font-family: 'Space Mono', monospace; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber-deep); margin: 30px 0 10px; }
.fg-takeaway {
  margin-top: 32px; padding: clamp(22px, 1.4vw + 16px, 34px) clamp(22px, 1.8vw + 14px, 38px);
  background: rgba(31, 36, 32, 0.07); color: var(--text-dark); border-radius: 14px; border-left: 6px solid var(--amber);
  box-shadow: 0 10px 28px rgba(31, 36, 32, 0.08);
}
.fg-takeaway span { display: block; font-family: 'Space Mono', monospace; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber-deep); font-weight: 700; margin-bottom: 8px; }
.fg-takeaway strong { display: block; font-family: 'Fraunces', serif; font-size: clamp(24px, 1vw + 19px, 32px); line-height: 1.25; text-transform: none; }

/* Part two: Camera Language Primer (dark) */
.fg-primer { padding: var(--section-y) 0; background: var(--ink); }
.fg-primer .eyebrow { color: var(--amber); }
.fg-primer h2 { font-family: 'Fraunces', serif; font-size: clamp(32px, 2.4vw + 22px, 56px); line-height: 1.05; color: var(--text-cream); }
.fg-epigraph { margin: 18px 0 28px; font-family: 'Fraunces', serif; font-style: italic; font-size: clamp(21px, 0.8vw + 18px, 28px); line-height: 1.4; color: var(--amber); }
.fg-primer .fg-rte p { color: rgba(244,241,232,0.86); }
.fg-tagline { margin: 26px 0 0; text-align: center; font-family: 'Caveat', cursive; font-size: clamp(26px, 1vw + 22px, 34px); color: var(--amber); }
.fg-camera-group { margin-top: clamp(32px, 2.5vw + 24px, 60px); }
.fg-group-title {
  font-family: 'Fraunces', serif; font-size: clamp(24px, 1.2vw + 19px, 34px); color: var(--text-cream);
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px;
  padding-bottom: 14px; margin-bottom: clamp(20px, 1.5vw + 14px, 32px); border-bottom: 1px solid var(--ink-line);
}
.fg-group-title span { font-family: 'Space Mono', monospace; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber); }
.fg-terms { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: var(--gap-m); }
.fg-term { margin: 0; background: var(--ink-soft); border: 1px solid var(--ink-line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.fg-term img { display: block; width: 100%; height: auto; aspect-ratio: 2.1; object-fit: cover; background: #fff; }
.fg-term figcaption { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.fg-term strong { font-family: 'Fraunces', serif; font-size: 20px; color: var(--text-cream); }
.fg-term figcaption span { font-size: 16px; line-height: 1.6; color: var(--muted-cream); }
.fg-after { margin-top: clamp(36px, 2.5vw + 26px, 64px); }

/* Next steps */
.fg-next { background: var(--paper); color: var(--text-dark); padding: var(--section-y) 0; }
.fg-next h2 { font-family: 'Fraunces', serif; font-size: clamp(30px, 2vw + 22px, 48px); line-height: 1.1; margin-bottom: 20px; }
.fg-options { margin-top: clamp(28px, 2vw + 20px, 48px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: var(--gap-m); }
.fg-option { background: #fff; border: 1px solid var(--paper-line); border-radius: 16px; padding: clamp(24px, 1.5vw + 18px, 36px); display: flex; flex-direction: column; }
.fg-option h3 { font-family: 'Fraunces', serif; font-size: clamp(22px, 0.8vw + 19px, 28px); line-height: 1.2; margin: 6px 0 16px; }
.fg-option .btn { margin-top: auto; align-self: flex-start; padding: 13px 22px; }

/* DONE READING at the end of the guide */
.done-reading-wrapper { text-align: center; padding: 40px 20px 60px; }
#done-reading-btn {
  background: #27C8C3; color: #ffffff; border: none; padding: 16px 35px;
  font-size: 14px; font-weight: 600; letter-spacing: 2px; cursor: pointer; transition: all 0.3s ease;
}
#done-reading-btn:hover { background: #333333; }

/* Sign-up popup: picture of the Camera Language Cheat Sheet */
.dp-cheat-img { display: block; width: auto; max-width: 100%; max-height: min(46vh, 420px); height: auto; margin: 0 auto; border-radius: 6px; box-shadow: 0 10px 30px rgba(0,0,0,0.45); }

/* Footer: social icons (shown unlinked until a profile URL is set in Theme Settings) */
.foot-social { display: flex; gap: 12px; align-items: center; }
.foot-social a, .foot-social span { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--ink-line); color: var(--text-cream); opacity: 0.85; transition: opacity .2s ease, border-color .2s ease, color .2s ease; }
.foot-social a:hover { opacity: 1; border-color: var(--amber); color: var(--amber); }
.foot-social svg { width: 18px; height: 18px; fill: currentColor; }

/* Sign-up popup: one button per PDF after a successful sign-up */
.dp-downloads { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.dp-downloads .btn { justify-content: center; }

/* Every small mono label across the site shares one size (the bio section's labels) */
.eyebrow, .btn, .slate-meta, .modal-scene, .blog-card .bc-meta, .blog-card .bc-read,
.article-meta, .article-byline, .cap .mk, .fg-kicker, .fg-label, .fg-principle h4,
.fg-takeaway span, .fg-group-title span, footer nav a, .foot-bottom, .vf-page .vf-back,
.dp-emailform input[type="submit"], .dp-emailform-fine { font-size: var(--fs-label); }
@media (min-width: 821px) { #nav nav a { font-size: var(--fs-label); } }
.tile .tag { font-size: clamp(10.5px, 0.4vw + 9.5px, 13.5px); }

/* Field Guide intro: a headline to match the principle titles */
.fg-intro-title { font-family: 'Fraunces', serif; font-size: clamp(28px, 1.6vw + 22px, 42px); line-height: 1.12; text-transform: uppercase; margin: 0 0 18px; }

/* Blog reader: DONE READING straddles the bottom edge of the article card */
.article-card { margin-bottom: 44px; }
.article-done {
  position: absolute; left: 50%; bottom: 0; transform: translate(-50%, 50%);
  padding: 15px 34px; border: 0; cursor: pointer; white-space: nowrap;
  background: var(--amber); color: #08201F;
  font-family: 'Space Mono', monospace; font-size: var(--fs-label); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  transition: background .2s ease;
}
.article-done:hover { background: #2fd6d1; }
.article-done:focus-visible { outline: 3px solid var(--text-dark); outline-offset: 2px; }

/* =====================================================================
   CHARACTER SPRINT PAGE (template-character-sprint.php)
   ===================================================================== */
.vf-sprint { background: var(--paper); color: var(--text-dark); padding-bottom: var(--section-y); }
.sp-hero { background: var(--ink); color: var(--text-cream); text-align: center; padding: calc(var(--section-y) + 64px) var(--gutter) var(--section-y); }
.sp-banner { display: block; width: 100%; max-width: 900px; height: auto; margin: 0 auto clamp(24px, 2vw + 16px, 40px); border-radius: clamp(10px, 0.6vw + 8px, 16px); }
.sp-hero h1 { font-family: 'Fraunces', serif; font-size: clamp(36px, 3.4vw + 22px, 68px); line-height: 1.06; max-width: 900px; margin: 0 auto; }
.sp-stack { max-width: 860px; margin: var(--section-y) auto 0; padding: 0 var(--gutter); display: flex; flex-direction: column; gap: var(--gap-m); }
.sp-card { background: #fff; border: 1px solid var(--paper-line); border-radius: 16px; padding: clamp(24px, 2.4vw + 14px, 48px); }
.sp-card h2 { font-family: 'Fraunces', serif; font-size: clamp(28px, 1.6vw + 22px, 42px); line-height: 1.12; margin-bottom: 16px; }
.sp-body p, .sp-body li { font-size: clamp(17px, 0.2vw + 16.3px, 19px); line-height: 1.7; }
.sp-body p { margin: 0 0 16px; }
.sp-body > :last-child { margin-bottom: 0; }
.sp-body ul { margin: 0 0 16px; padding-left: 1.3em; }
.sp-body li { margin-bottom: 8px; }
.sp-body li::marker { color: var(--amber-deep); }
.sp-body h4 { font-family: 'Fraunces', serif; font-size: clamp(20px, 0.5vw + 18px, 25px); line-height: 1.3; margin: 0 0 8px; }
.sp-body p + h4 { margin-top: 20px; }
.sp-body h4 + p { margin-top: 20px; }
/* The page's premise (first paragraph of the first card): set like the headline, larger than the lines below it */
.sp-stack > .sp-card:first-child .sp-body > p:first-child { font-family: 'Fraunces', serif; font-size: clamp(26px, 1.8vw + 18px, 44px); line-height: 1.25; margin-bottom: 28px; }
.sp-apply { display: flex; width: fit-content; max-width: 100%; margin: 24px auto 0; padding: 15px 28px; white-space: normal; justify-content: center; }
.sp-price, .sp-closing { text-align: center; background: var(--ink); color: var(--text-cream); border-color: var(--ink); }
.sp-closing .sp-body h4 { margin-top: 22px; color: var(--amber); }
.sp-closing .sp-body p { color: var(--muted-cream); margin: 0; }
.sp-price .sp-body p { color: rgba(244,241,232,0.86); }
.sp-card p.sp-price { background: none; border: 0; margin: 0 0 16px; font-family: 'Fraunces', serif; font-weight: 700; font-size: clamp(52px, 4vw + 36px, 88px); line-height: 1; color: var(--amber); }
.sp-form h3 { font-family: 'Fraunces', serif; font-size: clamp(22px, 0.6vw + 20px, 27px); line-height: 1.2; margin: 0 0 8px; padding-right: 36px; color: var(--text-cream); }
.sp-form label { display: block; font-size: 15px; color: var(--muted-cream); }
.sp-form .wpcf7-form-control-wrap { margin-top: 6px; }
.sp-form textarea {
  width: 100%; font-family: 'Inter', sans-serif; font-size: 16px; padding: 12px 14px; resize: vertical;
  border: 1px solid var(--ink-line); border-radius: 8px; outline: none; background: #10161A; color: var(--text-cream);
}
.sp-form textarea:focus { border-color: var(--amber); }

@media (max-width: 640px) {
  .fg-actions { margin-top: 16px; }
  .fg-doc { margin-top: 0; padding-top: 48px; }
  .fg-btn { flex-basis: 100%; }
}
