/*
Theme Name: Josh Vanecko Green
Theme URI: https://joshvanecko.com/
Author: Josh Vanecko
Author URI: https://joshvanecko.com/
Description: A fresh editorial redesign for joshvanecko.com in forest green, dark forest background with cream text. Fraunces serif headings, Inter body, asymmetric magazine layouts, film-inspired motion, and playful touches (Director's Commentary, credits crawl) that stay professional. All copy is the same as the live site. Fonts are self-hosted WOFF2 files, no CDN calls at runtime, no jQuery, no plugins.
Version: 1.3.19
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: joshvanecko-green
Tags: custom, portfolio, blog, editorial, green
*/

/* ============================================================
   Self-hosted fonts (WOFF2 variable files in fonts/)
   ============================================================ */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/fraunces-latin.woff2") format("woff2-variations");
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/fraunces-italic-latin.woff2") format("woff2-variations");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2-variations");
}

/* ============================================================
   Design tokens: the green palette, FOREST DARK (option #4,
   picked by Josh Dec 2, 2026).
   The roles are inverted from the light theme: the page sits on
   forest, text is cream, and moss/sage swap jobs (moss is now
   the light sage tone used for links and labels, sage is now
   the dark moss tone used for bands and the blob). Every rule
   in the theme reads these variables, so the whole site flips
   by changing this block alone, except for the few hardcoded
   values noted where they live.
   ============================================================ */
:root {
  --forest: #FAF9F6;
  --moss: #DAD7CD;
  --sage: #2D6A4F;
  --cream: #1B4332;
  --ink: #FAF9F6;
  --amber: #D9A441;
  --white: #FFFFFF;
  --gray: #B5B5B5;
  --line: #E3DDD0;
  --font-serif: "Fraunces", Georgia, serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --container: 1140px;
  --spacing: 20px;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  color: var(--ink);
  background-color: var(--cream);
  overflow-x: hidden;
  /* Custom cursor: a film reel everywhere (see images/). Paths
     are relative to this file at the theme root, so they resolve
     to images/. */
  cursor: url("images/film-reel-cursor.png") 16 16, auto;
}

/* Text fields keep the text cursor. */
input[type="text"],
input[type="email"],
textarea { cursor: text; }

/* Touch devices get the native cursor back. */
@media (hover: none), (pointer: coarse) {
  body { cursor: auto; }
}

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

a { color: var(--moss); text-decoration: none; }
a:hover { color: var(--forest); text-decoration: underline; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--forest);
  line-height: 1.15;
  margin: 0.5rem 0 1rem;
  padding: 0;
}
h1 { font-size: 56px; }
h2 { font-size: 40px; }
h3 { font-size: 28px; }
h4 { font-size: 22px; }
h5 { font-size: 18px; }
h6 { font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--moss); }

ul, ol { margin: 0 0 1em; padding-left: 1.5em; }
figure { margin: 0 0 1em; }
figcaption { font-size: 16px; color: var(--ink); line-height: 1.4; font-style: italic; font-weight: 400; margin-top: 0.5em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
blockquote { margin: 0 0 1em; padding-left: 1em; border-left: 3px solid var(--moss); font-family: var(--font-serif); font-style: italic; font-size: 20px; }
em { font-style: italic; }
strong, b { font-weight: 600; }

.container {
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}
.site-main { padding: 0 0 72px; }

.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px;
}

/* Hard-cut reveals: no transition anywhere, elements snap in.
   The .js class is added by theme.js itself, so if that file
   fails to load the class is never added and content stays
   visible instead of sitting at opacity 0 forever. */
.js .reveal { opacity: 0; }
.reveal.in { opacity: 1; }

/* ============================================================
   Buttons
   ============================================================ */
.btn,
a.btn,
button.btn,
input[type="submit"].btn {
  display: inline-block;
  background: var(--forest);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 28px;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
}
.btn:hover,
a.btn:hover { background: var(--moss); color: var(--cream); text-decoration: none; }

.btn-resume {
  background: var(--forest);
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 16px 40px;
  border-bottom: 4px solid var(--amber);
}
.btn-resume:hover { background: var(--moss); }

/* ============================================================
   Masthead header: newspaper top bar, brand, nav
   ============================================================ */
.site-header { background: var(--cream); border-bottom: 3px solid var(--forest); }
.masthead-top {
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}
.masthead-top .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px 24px;
}
/* Director's Commentary toggle. */
.commentary-toggle {
  appearance: none;
  background: transparent;
  border: 1px solid var(--moss);
  color: var(--forest);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 14px;
  cursor: pointer;
}
.commentary-toggle[aria-pressed="true"] {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--ink);
}

/* Split navigation: links left and right of a centered wordmark.
   The nav detaches into a floating pill once the masthead scrolls away. */
.site-nav { background: #FAF9F6; background: var(--cream); border-top: 3px double var(--moss); border-bottom: 1px solid var(--moss); }
/* Flex fallback first: if grid ever fails, the nav still splits
   (left links right-aligned, logo centered, right links
   left-aligned) instead of collapsing to one centered row. */
.nav-split { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav-split .nav-left, .nav-split .nav-right { flex: 1 1 0; min-width: 0; }
.nav-split .nav-logo { flex: 0 0 auto; }
@supports (display: grid) {
  .nav-split { display: grid; grid-template-columns: 1fr auto 1fr; }
}
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 14px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
}
.site-nav .nav-left { justify-content: flex-end; }
.site-nav .nav-right { justify-content: flex-start; }
.site-nav li { margin: 0; }
.site-nav a {
  display: block;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #1B4332;
  color: var(--forest);
  padding: 8px 28px;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover,
.site-nav .current-menu-item a,
.site-nav .current_page_item a {
  color: var(--moss);
  text-decoration: none;
  border-bottom-color: var(--moss);
}
.nav-logo { line-height: 0; }
.nav-logo a { display: block; padding: 0; border-bottom: 0; }
.nav-logo .wordmark-small {
  display: inline-block;
  /* Inter 800, not Fraunces: same squiggly-J reason as .wordmark-large. */
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 24px;
  line-height: 1;
  color: #1B4332;
  color: var(--forest);
  white-space: nowrap;
}
.nav-spacer { height: 0; }

/* Floating pill: the nav detaches on scroll (see js/theme.js).
   Rounded pill with an opaque cream background and a hard shadow.
   Sized generously so all five links plus the center wordmark fit
   with even spacing: the content measures about 750px, so the pill
   is 1060px wide with room to breathe instead of crowding. The left
   and right link groups each take half the free space (3 links vs
   2), so the center wordmark sits truly centered. Links never wrap
   inside the pill (flex-wrap: nowrap on the lists). */
.site-nav.is-floating {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: min(1060px, calc(100% - 32px));
  background: #FAF9F6;
  background: var(--cream);
  border: 2px solid var(--forest);
  border-radius: 999px;
  box-shadow: 4px 4px 0 var(--charcoal);
}
.site-nav.is-floating ul { padding: 12px 0; flex-wrap: nowrap; }
.site-nav.is-floating a { font-size: 14px; padding: 8px 16px; letter-spacing: 0.1em; }
.site-nav.is-floating .nav-logo .wordmark-small { font-size: 20px; }
.site-nav.is-floating .nav-split { display: flex; justify-content: center; gap: 12px; }
.site-nav.is-floating .nav-left,
.site-nav.is-floating .nav-right { flex: 1 1 0; min-width: 0; gap: 12px; }
.site-nav.is-floating .nav-left { justify-content: flex-end; }
.site-nav.is-floating .nav-right { justify-content: flex-start; }

/* Compact floating nav between 1024px and 1100px: the bar is only
   about 1000px wide there, so the links and wordmark shrink a step. */
@media (max-width: 1100px) {
  .site-nav.is-floating a { font-size: 12px; padding: 8px 12px; letter-spacing: 0.06em; }
  .site-nav.is-floating .nav-logo .wordmark-small { font-size: 16px; }
  .site-nav.is-floating .nav-split { gap: 12px; }
}

/* Mobile bottom navigation bar (below 1024px, see footer.php). */
.mobile-bottom-nav { display: none; }

/* ============================================================
   Projector countdown overlay (first visit only) + face loading screen
   ============================================================ */
.projector-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  animation: jvg-intro-failsafe 0.5s ease 4s forwards;
}
.projector-overlay[hidden] { display: none; }
.projector-count {
  font-family: var(--font-serif);
  font-size: 140px;
  font-weight: 700;
  line-height: 1;
  color: var(--forest);
  position: relative;
  z-index: 2;
}
.projector-circle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 120vmax;
  height: 120vmax;
  transform: translate(-50%, -50%);
  background: var(--amber);
  border-radius: 50%;
  clip-path: circle(0% at 50% 50%);
}
.projector-overlay.wiping .projector-circle {
  clip-path: circle(75% at 50% 50%);
  transition: clip-path 0.55s steps(6, end);
}
.projector-overlay.gone { display: none; }
/* CSS failsafe: if the intro JS never runs, the overlay still
   clears itself after 4 seconds instead of covering the page. */
@keyframes jvg-intro-failsafe {
  to { opacity: 0; visibility: hidden; }
}
.projector-skip {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--moss);
  background: transparent;
  border: 1px solid var(--moss);
  padding: 8px 16px;
  cursor: pointer;
  z-index: 3;
}

/* Page transition: Josh's face loading card (replaces the dark wipe).
   Hidden by default; shown when JS adds body.page-leaving on an
   internal link click. The card pops in with a stepped scale; the
   overlay itself is a hard cut, no fade. */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: var(--cream);
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}
body.page-leaving .page-transition {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}
.pt-card {
  width: min(520px, calc(100vw - 40px));
  padding: 20px 20px 18px;
  border: 2px solid var(--forest);
  background: var(--cream);
  box-shadow: 8px 8px 0 var(--ink);
  transform: scale(0.96);
  opacity: 0;
}
body.page-leaving .pt-card {
  animation: jvg-pt-pop-in 140ms steps(3, end) forwards;
}
@keyframes jvg-pt-pop-in {
  from { transform: scale(0.96); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.pt-photo {
  border: 2px solid var(--forest);
  background: var(--sage);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.pt-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 25%;
  display: block;
}
.pt-rule {
  height: 3px;
  background: var(--amber);
  width: 62%;
  margin: 14px 0 12px;
}
.pt-line1 {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
}

/* ============================================================
   Homepage hero
   ============================================================ */
.hero-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
  align-items: center;
  padding: 48px 0;
  position: relative;
}
.hero-text { position: relative; z-index: 1; }
/* Text always paints above the portrait blob, even if the blob
   ever reaches the text area again. */
.hero-text h6 { margin-bottom: 12px; }
.hero-divider {
  width: 56px;
  height: 3px;
  background: var(--amber);
  margin: 0 0 20px;
}
.hero-text h1 {
  /* Inter, not Fraunces: the Fraunces capital "J" renders with a
     swash the site owner dislikes. Inter keeps the name clean. */
  font-family: var(--font-body);
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: 72px;
  line-height: 1.02;
  margin: 0 0 20px;
}
/* Hero word pop-in: each word of the greeting and name pops up in
   turn on load, then the socials row and the Resume button follow.
   Pure CSS (each element carries its own --i delay), so it works
   with JS off. */
.hero-word {
  display: inline-block;
  animation: hero-pop .5s cubic-bezier(.2,.9,.3,1.2) both;
  animation-delay: calc(var(--i, 0) * 90ms);
}
.hero-socials,
.hero-resume {
  animation: hero-pop .5s cubic-bezier(.2,.9,.3,1.2) both;
  animation-delay: calc(var(--i, 0) * 90ms);
}
@keyframes hero-pop {
  from { opacity: 0; transform: translateY(14px) scale(.96); }
  to { opacity: 1; transform: none; }
}

/* Staggered pop-in for project cards and experience entries: the
   same hero-pop motion, triggered when the parent section scrolls
   into view (.in from the reveal observer). Each item carries its
   own --i delay from the template. Scoped under .js so visitors
   without JS see the content with no animation. */
.js .home-projects.in .project,
.js .home-experience.in .experience-item,
.js .about-section.in .experience-item {
  animation: hero-pop .5s cubic-bezier(.2,.9,.3,1.2) both;
  animation-delay: calc(var(--i, 0) * 110ms);
}

/* Hero socials: icon tiles like the contact page icons, no spelled
   out email address. */
.hero-socials {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--forest);
  color: var(--forest);
  text-decoration: none;
  transition: background-color 150ms ease, color 150ms ease;
}
.hero-socials a:hover { background: var(--forest); color: var(--amber); text-decoration: none; }
.hero-socials a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.hero-socials svg { width: 22px; height: 22px; fill: currentColor; }
.hero-resume { margin: 0; }
/* Blob behind the hero portrait: an organic blob, smaller than
   the old circle, filling the blank space around the
   background-removed photo without covering the screen. */
.hero-grid .hero-image { position: relative; }
.hero-grid .hero-image::before {
  content: "";
  position: absolute;
  width: 68%;
  aspect-ratio: 1;
  border-radius: 58% 42% 55% 45% / 48% 55% 45% 52%;
  background: var(--sage);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
}
.hero-grid .hero-image img { position: relative; z-index: 1; }
.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 0;
}

/* ============================================================
   Intro band with word-by-word subtitle reveal.
   Darker Alt 1 (picked by Josh Dec 2, 2026, v1.3.15): band
   #245C40 with cream text. Cream on #245C40 is 7.44:1, so the
   text color stays as-is; only the background changes. The
   cream top and bottom rules stay, separating the band from
   the hero above and the sections band below.
   ============================================================ */
.intro-text {
  background: #245C40; /* explicit — do NOT use var(--sage) here */
  border-top: 1px solid var(--forest);
  border-bottom: 1px solid var(--forest);
  padding: 48px 0;
  text-align: left;
}
.intro-text h2,
.intro-text .subtitle-reveal {
  font-size: 36px;
  font-weight: 600;
  color: var(--ink);
  max-width: 900px;
  margin: 0;
  line-height: 1.35;
}
.js .intro-text .word { opacity: 0; }
.intro-text .word.in { opacity: 1; }

/* ============================================================
   Homepage sections band (darker Alt 1, picked by Josh Dec 2,
   2026, v1.3.15): the Projects + Experience section sits on a
   full-width #142E1F band — dark throughout, no sage band.
   The grid, spacing and type are unchanged; only the
   background color changes. The v1.3.14 sage band and its
   scoped dark-text overrides are gone: descendants use the
   normal dark-theme palette (cream headings and text, light
   sage links, gray dates), which all read well on #142E1F
   (cream 13.85:1, sage links 10.12:1, gray dates 7.11:1).
   ============================================================ */
.home-sections-band {
  background: #142E1F;
}
/* Director's Commentary notes on the recoloured home
   sections: on the intro band the note gets a forest panel
   so it stays visible; on the sections band the note keeps
   its default moss panel with cream text. */
body.commentary-on .intro-text .jv-note { background: var(--cream); }

/* ============================================================
   Darker Alt 1 home background (v1.3.15): the whole home page
   sits on #142E1F instead of the old forest #1B4332 — body,
   header, nav, footer, mobile bar and the intro overlays.
   Scoped to body.home (header.php prints body_class(), and
   the front page carries .home) so every other page keeps
   #1B4332. The Elementor override sets the body background
   with !important, so the body rule here needs it too.
   ============================================================ */
body.home,
body.home[class*="elementor-page-"] {
  background-color: #142E1F !important;
}
body.home .site-header,
body.home .site-nav,
body.home .site-nav.is-floating,
body.home .projector-overlay,
body.home .page-transition,
body.home .mobile-bottom-nav {
  background: #142E1F;
}
/* No body.home footer override: the home footer keeps the
   standard footer background (var(--sage), moss #2D6A4F after
   the Forest Dark inversion) so it matches every other page. */

/* ============================================================
   Homepage sections: projects, experience
   ============================================================ */
.home-sections {
  display: grid;
  grid-template-columns: 47.03% 52.97%;
  gap: 0 60px;
  padding: 72px 0 72px;
  align-items: start;
}
.home-sections > section { min-width: 0; }
.home-projects { grid-column: 1; grid-row: 1; }
.home-experience { grid-column: 2; grid-row: 1 / span 2; }

.home-sections h2 { margin-bottom: 24px; }

/* ============================================================
   Projects: rule-separated cards, full description, Learn more link
   ============================================================ */
.project {
  border: 0;
  border-top: 1px solid var(--forest);
  background: none;
  padding: 32px 0 0;
  margin-bottom: 72px;
}
.project:last-of-type { margin-bottom: 0; }
.project-number {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--moss);
  margin: 0 0 10px;
}
.project-title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 6px;
}
.project-title a { color: var(--forest); }
.project-title a:hover { color: var(--moss); text-decoration: none; }
.project-date { font-style: italic; color: var(--gray); margin: 0 0 12px; }
.project-text { font-size: 16px; margin: 0 0 16px; }
.project-text p { margin: 0; }
.project-text p + p { margin-top: 12px; }
.project-more { margin: 0; }
.project-more a {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--moss);
  text-decoration: none;
  border-bottom: 2px solid var(--amber);
  padding-bottom: 2px;
}
.project-more a:hover { color: var(--forest); text-decoration: none; }

/* ============================================================
   Experience timeline: film-strip sprocket holes + parallax
   ============================================================ */
.experience-list {
  margin: 0;
  padding: 0;
  list-style: none;
  position: relative;
  will-change: transform;
}
.experience-item {
  display: grid;
  grid-template-columns: 28% 72%;
  gap: 0;
  padding: 40px 0;
  position: relative;
}
.experience-item:last-child { padding-bottom: 0; }
/* Divider option 1: a thin forest line with a small amber dot,
   drawn between entries. Spacing lives on the item: rows sit 80px
   apart (40px item padding top and bottom), and the divider sits
   in the middle of that gap. The description panel lives in the
   same column as the role button, directly under it, so it always
   sits 8px under the role no matter how tall the date/company
   block is. */
.experience-item + .experience-item {
  border-top: 2px solid var(--forest);
  margin-top: 0;
}
/* Education rows on the About page are not accordions, so they
   keep the old roomy item spacing. */
.experience-item.education-item { padding: 0 0 48px; }
.experience-item.education-item + .experience-item.education-item {
  margin-top: 48px;
  padding-top: 48px;
}
.experience-item + .experience-item::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--amber);
}
.experience-when { text-align: right; padding: 4px 24px 0 0; }
.experience-when h6 { margin: 0 0 6px; font-size: 14px; }
.experience-when .company { margin: 0; font-size: 15px; color: var(--moss); font-weight: 600; }
.experience-what h4 { margin: 0 0 8px; text-transform: uppercase; font-size: 20px; }
.experience-what .logline { margin: 0; }

/* Clickable accordion: the role is a plain block button in the
   right column, and the description panel sits directly under it.
   One entry open at a time. */
.experience-toggle {
  display: block;
  width: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.experience-date {
  display: block;
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--moss);
  margin: 0 0 6px;
}
.experience-role {
  display: block;
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--forest);
  line-height: 1.15;
  text-transform: uppercase;
  font-size: 20px;
  margin: 0;
}
.experience-plus {
  display: inline-block;
  color: var(--moss);
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  margin-left: 10px;
  vertical-align: middle;
}
.experience-toggle[aria-expanded="true"] .experience-plus { transform: rotate(45deg); }
.experience-panel { padding: 8px 0 0; }
.experience-panel p { margin: 0; }
.more-about { margin-top: 36px; }
.more-about a { display: inline-block; color: var(--moss); }
.more-about a:hover { color: var(--forest); }
.more-about svg { width: 48px; height: 48px; display: block; }

/* ============================================================
   About / Portfolio subpage heroes
   ============================================================ */
.sub-hero {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: center;
  min-height: 60vh;
  padding: 80px 0 40px;
  position: relative;
}
.sub-hero > div:first-child { text-align: center; }
.sub-hero .hero-icon { margin-bottom: 12px; color: var(--moss); }
.sub-hero .hero-icon svg { width: 50px; height: 50px; fill: var(--moss); }
.sub-hero h1 { font-size: 56px; margin: 0; }
.sub-hero .hero-image img {
  border-radius: 0;
  border: 1px solid var(--forest);
  width: 100%;
  height: auto;
}
/* About portrait: arch frame with soft edges, no outline,
   slightly smaller than the column. */
.about-hero .hero-image img {
  border: 0;
  border-radius: 999px 999px 16px 16px;
  max-width: 480px;
  margin: 0 auto;
  display: block;
}
/* Portfolio top image: arch frame with soft edges, no outline. */
.portfolio-hero .hero-image img {
  border: 0;
  border-radius: 999px 999px 16px 16px;
}
.about-bio { padding: 120px 0; }
.about-bio h6 { margin-bottom: 12px; }
.about-bio h2 { font-size: 34px; line-height: 1.35; margin-bottom: 40px; max-width: 900px; }
.about-goals {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  padding-top: 60px;
  border-top: 1px solid var(--line);
}
.about-goals h3 { margin: 0; font-size: 28px; }
.about-goals p { font-size: 17px; }
.about-section { padding: 0 0 120px; }
.about-section h2 { margin-bottom: 32px; }
.education-item { margin-bottom: 28px; }
.education-item figure { margin-bottom: 12px; }
.edu-box { display: flex; gap: 24px; align-items: flex-start; }
.edu-box figure { flex: 0 0 220px; margin: 0; }
.edu-box figure img { width: 100%; height: auto; }
.edu-box .edu-text { min-width: 0; }
.edu-box h4 { text-transform: uppercase; margin: 0 0 8px; }

/* ============================================================
   Portfolio
   ============================================================ */
/* Portfolio, tabbed sections: the filter buttons are tabs (All /
   Sales / Live Comedy / Creator) over a modern two-column grid of
   large images. Each cell is a big image with the category label
   and caption below it. No invented roles or bullets: the cells
   show only what the portfolio data actually holds. */
.portfolio-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  justify-content: flex-start;
  padding: 40px 0 0;
  border-bottom: 1px solid var(--line);
}
.portfolio-filter button {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--forest);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 20px 12px;
  margin-bottom: -1px;
  cursor: pointer;
}
.portfolio-filter button:hover { color: var(--moss); }
.portfolio-filter button[aria-pressed="true"] {
  background: transparent;
  color: var(--forest);
  border-bottom-color: var(--amber);
}
.portfolio-gallery {
  padding: 48px 0 100px;
  margin-top: 0;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px 40px;
}
.portfolio-item { min-width: 0; }
.portfolio-item figure { margin: 0; }
.portfolio-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.portfolio-item__body { padding-top: 20px; }
.portfolio-item__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--moss);
  margin: 0 0 8px;
}
.portfolio-item__title {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--forest);
  margin: 0 0 12px;
}
.portfolio-item__link { margin: 0; }
.portfolio-item__link a {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--moss);
  text-decoration: none;
  border-bottom: 2px solid var(--amber);
  padding-bottom: 2px;
}
.portfolio-item__link a:hover { color: var(--forest); text-decoration: none; }
.portfolio-item[hidden] { display: none; }
.portfolio-empty { text-align: center; font-family: var(--font-serif); font-style: italic; font-size: 20px; color: var(--moss); }

/* ============================================================
   Blog: rotating headline, featured post, filter index,
   lead row, masonry river, quote band
   ============================================================ */
/* Structure copied from real editorial blogs (Stripe, Substack,
   NYT, The Verge, Ghost): a 7/5 featured split, a hand-composed
   lead row that breaks the grid, then a 3-column river with three
   image shapes and CSS row spans for the masonry feel. No JS
   masonry library. Flat color only: 0 radius, no shadows, 1px
   rules. See research/blog-landing-research.md. */
.blog-page { padding: 72px 0 0; }

/* Screen-reader-only text (the filter result count line). */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Rotating headline. The slot is an inline-grid; all words stack
   in the same cell, so it sizes to the widest word once and never
   changes. Swaps are compositor-only opacity/transform. See
   research/headline-fix-plan.md. */
.blog-headline-wrap { margin-bottom: 0; }
h1.blog-headline {
  font-family: var(--font-serif);
  font-size: 43px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--forest);
  text-align: center;
  text-wrap: balance;
  margin: 0 0 8px;
}
.word-rotator {
  display: inline-grid;
  vertical-align: baseline;
  justify-items: center;
  white-space: nowrap;
  color: var(--moss);
  /* The width is set by js/word-rotator.js to the active word's
     measured width and animates between words, so short words sit
     tight against "is" instead of floating in a slot sized to the
     longest word. No contain: paint here: it would clip the outgoing
     word at the box edge while the box narrows. */
  transition: width 300ms ease;
}
.word-rotator > span {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  user-select: none;
  transform: translateY(0.2em);
  transition:
    opacity 300ms ease,
    transform 0s linear 300ms,
    visibility 0s linear 300ms;
}
.word-rotator > span.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  user-select: auto;
  transform: none;
  transition:
    opacity 300ms ease,
    transform 300ms ease,
    visibility 0s linear 0s;
}
/* Long words used to shrink to 0.72em / 0.5em, which made them look
   like a footnote mid-cycle. They now render at full headline size;
   on mobile the rotator drops to its own line (see the 767px block)
   so the longest phrase still fits. No shrink classes remain. */
/* The word "Josh." is the owner's name: Inter 800, not Fraunces,
   so the capital J never renders with the swash he dislikes. The
   rotator JS measures each word live, so the font change is picked
   up by the smooth-width sizing automatically. */
.word-rotator > span.word-name { font-family: var(--font-body); font-weight: 800; }
@media (prefers-reduced-motion: reduce) {
  .word-rotator { transition: none; }
  .word-rotator > span,
  .word-rotator > span.is-active {
    transition: none;
    transform: none;
  }
}

/* Category heading, shown when a filter is active. */
.blog-category-head { margin-top: 56px; }
.blog-category-head h2 {
  font-size: 40px;
  margin: 0 0 8px;
}
.blog-category-head p { font-size: 16px; color: var(--gray); margin: 0; }

/* Featured post: 7/5 split, image left, sage panel right,
   text bottom-aligned to the image baseline. */
.blog-featured {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 32px;
  align-items: end;
  margin-top: 56px;
  padding-bottom: 72px;
  border-bottom: 1px solid var(--ink);
}
.blog-featured__media { grid-column: 1 / span 7; }
.blog-featured__media a { display: block; overflow: hidden; background: var(--sage); }
.blog-featured__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.blog-featured__body {
  grid-column: 8 / span 5;
  background: var(--sage);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.blog-featured__kicker {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 20px;
  color: var(--forest);
  margin: 0 0 12px;
}
.blog-featured__kicker .sep { margin: 0 8px; color: var(--gray); }
.blog-featured__kicker time {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--moss);
  font-variant-numeric: tabular-nums;
}
.blog-featured__title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 4.4vw, 52px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0 0 16px;
}
.blog-featured__title a { color: var(--ink); }
.blog-featured__title a:hover { color: var(--forest); text-decoration: none; }
.blog-featured__excerpt { font-size: 18px; line-height: 1.6; color: var(--ink); max-width: 42ch; margin: 0 0 24px; }
.blog-featured__excerpt p { margin: 0; }
.blog-featured__link {
  font-size: 13px;
  font-weight: 600;
  color: var(--forest);
  border-bottom: 1px solid var(--amber);
  padding-bottom: 2px;
  align-self: flex-start;
}
.blog-featured__link:hover { text-decoration: none; color: var(--moss); }

/* Lead row: three different objects adding up to 12 columns. */
.blog-lead {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 32px;
  margin-top: 72px;
  align-items: stretch;
}
.blog-lead .blog-card--wide { grid-column: span 6; }
.blog-lead .blog-card--sage { grid-column: span 3; }
.blog-lead .blog-card--image-led { grid-column: span 3; }

/* The river: 3 columns, 8px row units, dense flow. Spans are tuned
   for the 1100px content width (column about 345px). At narrower
   widths images only get shorter, so the spans stay sufficient. */
.blog-river {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 32px;
  row-gap: 0;
  grid-auto-rows: 8px;
  grid-auto-flow: dense;
  margin-top: 72px;
}
.blog-card { position: relative; padding-bottom: 40px; }
.blog-card__media { position: relative; overflow: hidden; background: var(--sage); margin-bottom: 16px; }
.blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.blog-card:hover .blog-card__media img { transform: scale(1.02); }
/* Typographic card: posts without a featured image get a forest
   panel with a giant Inter initial instead of a blank sage tile.
   Inter, not Fraunces, so a leading J has no swash. */
.blog-card__media--empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--forest);
}
.blog-card__initial {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 120px;
  line-height: 1;
  color: var(--cream);
}
.blog-featured__media--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--forest);
  aspect-ratio: 3 / 2;
}
.blog-featured__media--empty .blog-card__initial { font-size: 160px; }
.blog-river .blog-card[data-shape="portrait"] { grid-row: span 72; }
.blog-card[data-shape="portrait"] .blog-card__media { aspect-ratio: 4 / 5; }
.blog-river .blog-card[data-shape="square"] { grid-row: span 69; }
.blog-card[data-shape="square"] .blog-card__media { aspect-ratio: 1 / 1; }
.blog-river .blog-card[data-shape="landscape"] { grid-row: span 54; }
.blog-card[data-shape="landscape"] .blog-card__media { aspect-ratio: 3 / 2; }
.blog-river .blog-card[data-shape="portrait"] .blog-card__body { min-height: 88px; }
.blog-river .blog-card[data-shape="square"] .blog-card__body,
.blog-river .blog-card[data-shape="landscape"] .blog-card__body { min-height: 144px; }

/* The dateline: number, rule, date. The signature mark of the page. */
.blog-card__dateline {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 10px;
}
.dateline__no {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  color: var(--amber);
  white-space: nowrap;
}
.dateline__rule { flex: 1; height: 1px; background: var(--ink); transform: translateY(-3px); }
.blog-card__dateline time {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.blog-card__title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  text-wrap: balance;
  margin: 0 0 8px;
}
.blog-card__title a { color: var(--ink); }
.blog-card__title a:hover { color: var(--forest); text-decoration: none; }
/* The whole card is one link: the title link stretches over it. */
.blog-card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
}
.blog-card__excerpt {
  font-size: 15px;
  line-height: 1.55;
  color: var(--gray);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card__excerpt p { margin: 0; }
.blog-card__link {
  position: relative;
  z-index: 1;
  font-size: 13px;
  font-weight: 600;
  color: var(--forest);
  border-bottom: 1px solid var(--amber);
  padding-bottom: 2px;
  align-self: flex-start;
  margin-top: 16px;
}
.blog-card__link:hover { text-decoration: none; color: var(--moss); }

/* Lead row variants. */
.blog-card--wide .blog-card__media { aspect-ratio: 16 / 10; }
.blog-card--wide .blog-card__title { font-size: 32px; }
.blog-card--wide .blog-card__excerpt { -webkit-line-clamp: 3; }
.blog-card--wide .blog-card__body { display: flex; flex-direction: column; }
.blog-card--sage { background: var(--sage); padding: 28px 24px; }
.blog-card--sage .blog-card__body { display: flex; flex-direction: column; height: 100%; }
.blog-card--sage .blog-card__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--moss);
  margin: 0 0 12px;
}
.blog-card--sage .blog-card__title { font-size: 30px; line-height: 1.1; }
.blog-card--sage .blog-card__excerpt { -webkit-line-clamp: 4; }
.blog-card--sage .blog-card__date { margin: auto 0 0; padding-top: 24px; }
.blog-card--sage .blog-card__date time {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
}
.blog-card--image-led { display: flex; flex-direction: column; }
.blog-card--image-led .blog-card__media { position: relative; flex: 1; min-height: 280px; aspect-ratio: auto; }
.blog-card--image-led .blog-card__media img { position: absolute; inset: 0; }
.blog-card--image-led .blog-card__title { font-size: 22px; margin-top: 16px; }
.blog-card--image-led .blog-card__dateline { margin-bottom: 0; }

/* Forest-green quote band, every 7th river post. */
.blog-band {
  grid-column: 1 / -1;
  grid-row: span 30;
  background: var(--forest);
  color: var(--cream);
  padding: 40px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
.blog-band__quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 32px;
  line-height: 1.3;
  margin: 0 0 12px;
  border: 0;
  padding: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-band__quote p { margin: 0; }
.blog-band__attr { margin: 0; }
.blog-band__attr a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
}
.blog-band__attr a:hover { text-decoration: none; color: var(--cream); }
.blog-band__attr a::after { content: ""; position: absolute; inset: 0; }

/* Empty state: sage panel, latest posts below. */
.blog-empty {
  background: var(--sage);
  min-height: 360px;
  padding: 48px;
  margin-top: 72px;
}
.blog-empty h2 { font-size: 32px; margin: 0 0 12px; }
.blog-empty p { font-size: 16px; margin: 0 0 8px; }
.blog-empty a { color: var(--forest); border-bottom: 1px solid var(--amber); padding-bottom: 2px; }
.blog-empty a:hover { text-decoration: none; color: var(--moss); }
.blog-river--latest { margin-top: 72px; }

.pagination { text-align: center; margin: 10px 0 30px; }
.pagination .nav-links { display: inline-flex; gap: 8px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.pagination a, .pagination span {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--sage);
  background: var(--white);
  color: var(--forest);
  font-size: 15px;
}
.pagination a:hover { text-decoration: none; border-color: var(--moss); }
.pagination .current { background: var(--forest); border-color: var(--forest); color: var(--cream); }

/* ============================================================
   Single post
   ============================================================ */
/* Override Elementor per-page backgrounds on every page the theme
   renders (radial-gradient body backgrounds compiled to
   wp-content/uploads/elementor/css/post-*.css). Elementor's CSS is
   still enqueued for each page even though the theme never renders
   Elementor content, so without this the pages render on the old
   Elementor gradients (pink/purple/blue) instead of one cohesive
   cream background. Single posts hit this first; the same leak
   showed up on the Blog page. */
body,
body[class*="elementor-page-"] {
  background-color: var(--cream) !important;
  background-image: none !important;
}
.single-post { padding-top: 64px; }
/* Defensive visual order: the template already outputs kicker/title
   before the featured image, but staging once rendered the title
   below the image (stale template/cache). Flex order on the article
   guarantees kicker, title, image, divider, content, next-card no
   matter what order the DOM arrives in. Scoped to article so the
   body.single-post class is untouched. */
article.single-post { display: flex; flex-direction: column; }
article.single-post .entry-header { order: 1; }
article.single-post .featured-image { order: 2; }
article.single-post .post-divider { order: 3; }
article.single-post .entry-content { order: 4; }
article.single-post .next-time-card { order: 5; }
.single-post .entry-header { text-align: center; max-width: 900px; margin: 0 auto; }
.entry-kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--moss);
  margin: 0 0 16px;
}
.single-post .entry-title { display: block; text-align: center; font-size: 64px; line-height: 1.05; }
.single-post .entry-meta { font-size: 15px; color: var(--gray); margin-bottom: 20px; text-align: center; }
.single-post .entry-meta .sep { color: var(--moss); margin: 0 6px; }
.single-post .featured-image { margin: 40px 0 24px; text-align: center; }
.single-post .featured-image img { width: 100%; max-width: 1024px; height: auto; margin: 0 auto; }
.single-post .entry-content { font-size: 19px; line-height: 1.7; max-width: 680px; margin: 0 auto; }
.single-post .entry-content img { margin: 1em 0; }
/* Drop cap on the first paragraph. */
.single-post .entry-content > p.has-dropcap::first-letter {
  font-family: var(--font-serif);
  font-size: 76px;
  font-weight: 700;
  line-height: 0.8;
  float: left;
  padding: 8px 12px 0 0;
  color: var(--forest);
}
/* Pull quotes: big italic Fraunces with an amber left rule. */
.single-post .entry-content blockquote,
.single-post .entry-content .wp-block-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 32px;
  line-height: 1.3;
  color: var(--forest);
  border-left: 4px solid var(--amber);
  padding-left: 24px;
  margin: 40px 0;
}
.single-post .entry-content blockquote p { font-size: inherit; margin: 0; }
/* A horizontal rule in the post body becomes a CUT TO divider. */
.single-post .entry-content hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 48px 0;
  position: relative;
  overflow: visible;
}
.single-post .entry-content hr::after {
  content: "CUT TO";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--cream);
  padding: 0 16px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--moss);
}
.single-post .post-divider {
  display: flex;
  align-items: center;
  gap: 36px;
  margin: 0 auto 24px;
  max-width: 680px;
  color: var(--moss);
}
.single-post .post-divider::before,
.single-post .post-divider::after {
  content: "";
  flex: 1;
  border-top: 3px double currentColor;
}
.single-post .post-divider span { font-size: 15px; line-height: 1; font-family: var(--font-serif); font-style: italic; }
.post-navigation { display: flex; justify-content: space-between; gap: 20px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); max-width: 680px; margin-left: auto; margin-right: auto; }
.post-navigation a { font-size: 15px; }

/* "Next time on Josh" card at the end of the post. */
.next-time-card {
  max-width: 680px;
  margin: 64px auto 0;
  padding: 32px;
  background: var(--sage);
  border-top: 4px solid var(--amber);
  text-align: center;
}
.next-time-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--moss);
  margin: 0 0 12px;
}
.next-time-card h3 { margin: 0 0 20px; font-size: 28px; }
.next-time-card h3 a { color: var(--forest); }
.next-time-card p:last-child { margin-bottom: 0; }

/* ============================================================
   Comments: editorial styling to match the theme
   ============================================================ */
.comments-area {
  margin: 64px auto 0;
  max-width: 680px;
  padding-top: 48px;
  border-top: 2px solid var(--forest);
}
.comments-title {
  font-size: 32px;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  color: var(--forest);
  margin: 0 0 8px;
}
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list .comment { margin: 0; padding: 24px 0; border-bottom: 1px solid var(--line); }
.comment-list .comment:last-child { border-bottom: 0; }
.comment-list .children {
  list-style: none;
  margin: 24px 0 0 24px;
  padding: 0 0 0 24px;
  border-left: 2px solid var(--sage);
}
.comment-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.comment-author {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--forest);
  margin: 0;
}
.comment-date { margin: 0; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.comment-date a { color: var(--moss); text-decoration: none; }
.comment-date a:hover { color: var(--forest); }
.comment-text { font-size: 17px; line-height: 1.7; }
.comment-text p { margin: 0 0 12px; }
.comment-text p:last-child { margin-bottom: 0; }
.comment-text a { color: var(--moss); }
.comment-awaiting {
  background: var(--sage);
  border-left: 4px solid var(--amber);
  padding: 12px 16px;
  font-style: italic;
  margin: 0 0 12px;
}
.comment-reply { margin: 12px 0 0; }
.comment-reply a {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--forest);
  text-decoration: none;
  border-bottom: 2px solid var(--amber);
  padding-bottom: 2px;
  display: inline-block;
}
.comment-reply a:hover { color: var(--moss); text-decoration: none; }
.comment-navigation { margin: 32px 0 0; display: flex; justify-content: space-between; gap: 16px; }
.comment-navigation a { font-weight: 600; color: var(--moss); }
.no-comments { font-style: italic; color: var(--gray); margin: 32px 0 0; }

/* Comment form. */
.comment-respond { margin-top: 48px; }
.comment-reply-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 600;
  color: var(--forest);
  margin: 0 0 8px;
}
.comment-reply-title small { font-family: var(--font-body); font-size: 14px; }
.comment-reply-title small a { color: var(--moss); }
.comment-notes { font-size: 14px; color: var(--gray); font-style: italic; margin: 0 0 20px; }
.comment-form .logged-in-as { font-size: 14px; color: var(--gray); margin: 0 0 20px; }
.comment-form .logged-in-as a { color: var(--forest); }
.comment-form label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--forest); }
.comment-form .required { color: var(--amber); }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--sage);
  font-family: inherit; font-size: 15px; color: var(--ink);
  background: var(--white); margin-bottom: 16px; border-radius: 0;
}
.comment-form input:focus,
.comment-form textarea:focus { outline: none; border-color: var(--forest); }
.comment-form .form-submit { margin: 8px 0 0; }

/* ============================================================
   Contact page + forms
   ============================================================ */
/* Contact page, option 1: split layout, portrait left, headline,
   intro, contact links and form right. */
.contact-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  align-items: start;
  padding: 80px 0 40px;
}
.contact-portrait .hero-image img {
  border-radius: 0;
  border: 1px solid var(--forest);
  width: 100%;
  height: auto;
}
/* Contact portrait: arch frame with soft edges, no outline and
   no background shape behind it. */
.contact-portrait .hero-image img {
  border: 0;
  border-radius: 999px 999px 16px 16px;
}
.contact-main h1 { font-size: 64px; margin: 0 0 16px; }
.contact-main h1::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  background: var(--amber);
  margin-top: 20px;
}
.contact-intro-text { font-size: 19px; }
/* Contact socials: square icon tiles, flat fills, 0 radius. */
.contact-social-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--moss);
  margin: 32px 0 12px;
}
.contact-socials {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.contact-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--forest);
  color: var(--forest);
  text-decoration: none;
  transition: background-color 150ms ease, color 150ms ease;
}
.contact-socials a:hover { background: var(--forest); color: var(--amber); text-decoration: none; }
.contact-socials a:active { background: var(--moss); color: var(--cream); }
.contact-socials a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.contact-socials svg { width: 24px; height: 24px; fill: currentColor; }
.contact-divider { border: 0; border-top: 1px solid var(--line); margin: 0 0 32px; }
/* Underline-style inputs on the contact page, per the mockup. */
.contact-split .jvg-form input[type="text"],
.contact-split .jvg-form input[type="email"],
.contact-split .jvg-form textarea {
  border: 0;
  border-bottom: 2px solid var(--forest);
  border-radius: 0;
  background: transparent;
  padding: 10px 2px;
}
.contact-split .jvg-form input:focus,
.contact-split .jvg-form textarea:focus { border-bottom-color: var(--amber); }
.contact-split .wpforms-form input[type="text"],
.contact-split .wpforms-form input[type="email"],
.contact-split .wpforms-form textarea {
  border: 0 !important;
  border-bottom: 2px solid var(--forest) !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding: 10px 2px !important;
}
.contact-split .wpforms-form input:focus,
.contact-split .wpforms-form textarea:focus { border-bottom-color: var(--amber) !important; }
.jvg-form label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--forest); font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; }
.jvg-form input[type="text"],
.jvg-form input[type="email"],
.jvg-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--sage);
  border-radius: 0;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  background: transparent;
  margin-bottom: 18px;
}
.jvg-form input::placeholder,
.jvg-form textarea::placeholder { color: rgba(250, 249, 246, 0.55); }
.jvg-form input:focus,
.jvg-form textarea:focus { outline: none; border-color: var(--forest); }
.jvg-form input[type="submit"].btn { width: 100%; min-height: 52px; }
.jvg-form textarea { min-height: 140px; resize: vertical; }
.form-success {
  background: var(--sage);
  border: 1px solid var(--moss);
  color: var(--forest);
  padding: 14px 16px;
  margin-bottom: 16px;
}
.form-error {
  background: #FBE9E7;
  border: 1px solid #C62828;
  color: #7F1D1D;
  padding: 14px 16px;
  margin-bottom: 16px;
}

/* WPForms styling to match the green theme. */
.wpforms-container { margin-bottom: 0; }
.wpforms-container .wpforms-field { padding: 0 0 18px; }
.wpforms-container .wpforms-field-label { font-weight: 600; color: var(--forest); font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; }
.wpforms-container input[type="text"],
.wpforms-container input[type="email"],
.wpforms-container textarea {
  border: 1px solid var(--sage) !important;
  border-radius: 0 !important;
  padding: 12px 14px !important;
  font-size: 16px !important;
  color: var(--ink) !important;
}
.wpforms-container button[type="submit"],
.wpforms-container .wpforms-submit {
  background: var(--forest) !important;
  color: var(--cream) !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 14px 28px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  width: 100% !important;
  min-height: 52px !important;
}

/* ============================================================
   Footer: deep forest, cream text, subscribe, credits crawl
   ============================================================ */
.site-footer {
  background-color: var(--forest);
  color: var(--cream);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 0.7fr 1.2fr;
  gap: 60px;
  align-items: start;
  max-width: 1400px;
  margin: 0 auto;
}
.footer-brand h3 {
  /* Inter 800, not Fraunces: the brand is the owner's name, and the
     Fraunces capital "J" renders with a swash he dislikes. */
  font-family: var(--font-body);
  font-size: 32px;
  font-weight: 800;
  color: var(--cream);
  margin: 0 0 20px;
}
.footer-brand h3 a { color: var(--cream); }
.footer-brand h3 a:hover { color: var(--sage); text-decoration: none; }
.footer-social {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  gap: 24px;
  align-items: center;
}
.footer-social a { color: var(--cream); display: inline-flex; }
.footer-social a:hover { color: var(--amber); text-decoration: none; }
.footer-social svg { width: 20px; height: 20px; fill: currentColor; }
.footer-copy { font-size: 13px; color: var(--sage); margin: 0 0 20px; }

/* Footer navigation column. */
.footer-nav h3 {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
  margin: 0 0 16px;
}
.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-nav li { margin: 0 0 10px; }
.footer-nav a {
  color: var(--cream);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}
.footer-nav a:hover { color: var(--amber); text-decoration: none; }

/* Footer bottom bar. */
.footer-bottom {
  max-width: 1400px;
  margin: 64px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(250, 249, 246, 0.25);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
  font-size: 13px;
  color: var(--sage);
}
.footer-bottom a { color: var(--cream); }
.footer-bottom a:hover { color: var(--amber); text-decoration: none; }
.credits-toggle {
  appearance: none;
  background: transparent;
  border: 1px solid var(--sage);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 10px 18px;
  cursor: pointer;
}
.credits-toggle:hover { border-color: var(--amber); color: var(--amber); }
.footer-subscribe h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--cream);
  margin: 0 0 16px;
}
.footer-subscribe .jvg-form label { color: var(--sage); }
.footer-subscribe .jvg-form input[type="text"],
.footer-subscribe .jvg-form input[type="email"] {
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--amber);
  color: var(--cream);
  padding: 10px 0;
}
.footer-subscribe .jvg-form input::placeholder { color: rgba(250, 249, 246, 0.6); }
.footer-subscribe .jvg-form input:focus { border-bottom-color: var(--cream); }
.footer-subscribe .form-success { background: var(--cream); color: var(--forest); border-color: var(--cream); }
.footer-subscribe .form-error { background: var(--cream); color: #7F1D1D; border-color: var(--cream); }

/* Forest Dark footer: moss, not the light footer the variable
   flip would give. The footer rules above resolve to a cream
   footer with dark text after the inversion; these overrides
   put it back on moss with cream text, matching the option #4
   mock Josh picked. Later rules win at equal specificity. */
.site-footer { background-color: var(--sage); color: var(--forest); }
.footer-brand h3 a { color: var(--forest); }
.footer-brand h3 a:hover { color: var(--amber); }
.footer-social a { color: var(--forest); }
.footer-copy { color: var(--forest); }
.footer-nav h3 { color: var(--forest); }
.footer-nav a { color: var(--forest); }
.footer-bottom { color: var(--forest); }
.footer-bottom a { color: var(--forest); }
.credits-toggle { border-color: var(--forest); color: var(--forest); }
.footer-subscribe h3 { color: var(--forest); }
.footer-subscribe .jvg-form label { color: var(--forest); }
.footer-subscribe .jvg-form input[type="text"],
.footer-subscribe .jvg-form input[type="email"] { color: var(--forest); }
.footer-subscribe .jvg-form input:focus { border-bottom-color: var(--forest); }
.footer-subscribe .form-success { background: var(--forest); color: var(--sage); border-color: var(--forest); }
.footer-subscribe .form-error { background: var(--forest); color: #7F1D1D; border-color: var(--forest); }

/* Credits crawl: replaces the footer grid while rolling. Fast on
   purpose: the old 22s crawl started with the content fully below
   the viewport, so nothing was visible for about 7 seconds. Now the
   roll fades in at once and the content starts 25% down the
   viewport, so the first credit is visible immediately, and the
   whole list scrolls through in 9 seconds. */
.credits-roll { display: none; text-align: center; }
.site-footer.credits-rolling .footer-grid { display: none; }
.site-footer.credits-rolling .credits-roll { display: block; animation: jvg-credits-in 0.3s ease-out; }
@keyframes jvg-credits-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.credits-viewport { height: 280px; overflow: hidden; position: relative; }
.credits-inner { animation: jvg-credits 10s linear infinite; }
.credits-roll:hover .credits-inner, .credits-roll:focus-within .credits-inner { animation-play-state: paused; }
@keyframes jvg-credits {
  from { transform: translateY(280px); }
  to { transform: translateY(-100%); }
}
.credits-roll h3 { color: var(--amber); font-size: 28px; margin: 0 0 24px; }
.credits-roll dl { margin: 0; }
.credits-roll dt {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
}
.credits-roll dd {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--cream);
  margin: 0 0 24px;
}
/* The owner's name in the credits renders in Inter 800, never
   Fraunces, so the capital J has no swash. */
.credits-roll dd.credit-name-josh {
  font-family: var(--font-body);
  font-weight: 800;
}

/* ============================================================
   Director's Commentary notes (hidden until toggled on)
   ============================================================ */
.jv-note { display: none; }
body.commentary-on .jv-note {
  display: block;
  background: var(--sage);
  border-left: 4px solid var(--amber);
  padding: 14px 18px;
  margin: 12px 0 20px;
  max-width: 520px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 17px;
  color: var(--ink);
}
.jv-note-label {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 4px;
}

/* ============================================================
   Generic page / archive / 404
   ============================================================ */
.page-hero { text-align: center; padding: 80px 0 0; }
.page-hero h1 { font-size: 56px; margin: 0; }
.page-content { max-width: 800px; padding-top: 60px; }
.page-content .entry-content { font-size: 19px; }
.archive-header { margin-bottom: 32px; padding-top: 60px; }
.not-found { text-align: center; padding: 80px 0; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; padding: 16px 0 40px; gap: 24px; }
  /* v1.3.19: mobile hero is RIGHT-aligned (Josh's correction —
     he meant right, not left). Greeting, name, socials and the
     Resume button all hug the right edge. */
  .hero-text { text-align: right; }
  .hero-divider { margin: 0 0 20px auto; }
  .hero-socials { justify-content: flex-end; }
  .hero-text h1 { font-size: 56px; }
  .hero-image { padding: 0; }
  .hero-image img { width: 100%; max-width: 520px; margin: 0 0 0 auto; }
  .hero-grid .hero-image::before {
    /* Cap the blob so it can never outgrow the portrait: the image
       is capped at 520px wide (347px tall), but the blob is sized
       against the full container width, so on tablet/landscape
       widths it grew taller than the image and overflowed into the
       hero text above and the intro band below. 320px keeps it
       inside the 347px-tall image at every stacked width. */
    width: min(60%, 320px);
    /* The portrait is right-aligned now, so the blob must center on
       the image, not on the full-width container: the image is
       min(100%, 520px) wide and hugs the right edge, so its centre
       is min(50%, 260px) from the container's right edge. right +
       translate(50%) puts the blob centre exactly there. */
    left: auto;
    right: min(50%, 260px);
    transform: translate(50%, -50%);
  }
  /* Mobile header is just the slim masthead bar (nav hidden):
     trim its padding so the hero starts higher. */
  .masthead-top { padding: 6px 0; }
  /* No circled next-arrow under Experience on mobile. */
  .more-about { display: none; }
  /* Shorter mobile page: tighter experience rows and sections. */
  .experience-item { padding: 24px 0; }
  .intro-text { padding: 48px 0; }
  .intro-text h2 { font-size: 24px; }
  .home-sections {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 32px 0;
  }
  .about-bio { padding: 80px 0; }
  .about-goals { grid-template-columns: 1fr; gap: 24px; }
  .about-section { padding-bottom: 80px; }
  .sub-hero { grid-template-columns: 1fr; min-height: 0; padding: 60px 0 20px; gap: 24px; }
  .sub-hero h1 { font-size: 44px; }
  .sub-hero .hero-image img { width: 100%; max-width: 520px; margin: 0 auto; }
  .portfolio-gallery { padding: 60px 0; }
  .portfolio-grid { grid-template-columns: 1fr; gap: 40px; }
  /* Blog: featured stacks, lead row goes 2 columns, river goes 2
     columns with auto rows (spans off, varied aspect ratios carry
     the masonry feel). */
  .blog-featured { grid-template-columns: 1fr; row-gap: 24px; }
  .blog-featured__media, .blog-featured__body { grid-column: 1; }
  .blog-featured__body { padding: 32px; }
  .blog-lead { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .blog-lead .blog-card--wide { grid-column: 1 / -1; }
  .blog-lead .blog-card--sage, .blog-lead .blog-card--image-led { grid-column: span 1; }
  .blog-river {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: auto;
    align-items: start;
    row-gap: 48px;
  }
  .blog-river .blog-card[data-shape] { grid-row: auto; }
  .blog-river .blog-card { padding-bottom: 0; }
  .blog-river .blog-card__body { min-height: 0; }
  .blog-band { grid-row: auto; }
  .contact-split { grid-template-columns: 1fr; gap: 40px; padding: 48px 0 24px; }
  .contact-portrait .hero-image img { width: 100%; max-width: 520px; margin: 0 auto; }
  .contact-main h1 { font-size: 48px; }
  .footer-grid { grid-template-columns: 1fr; gap: 48px; }
  /* Desktop nav hides; the bottom bar takes over. */
  .site-nav { display: none; }
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    background: var(--forest);
    border-top: 3px solid var(--amber);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .mobile-bottom-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: var(--cream);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 6px 2px;
    min-height: 44px;
  }
  .mobile-bottom-nav a svg { width: 22px; height: 22px; fill: currentColor; }
  .mobile-bottom-nav a[aria-current="page"] { color: var(--amber); }
  /* Forest Dark: the bar stays dark (the variable flip would make
     it cream with dark text). */
  .mobile-bottom-nav { background: var(--cream); }
  .mobile-bottom-nav a { color: var(--forest); }
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
}
@media (max-width: 767px) {
  h1 { font-size: 40px; }
  h2 { font-size: 30px; }
  .hero-text h1 { font-size: 46px; }
  .experience-item { grid-template-columns: 1fr; gap: 8px; }
  .experience-when { text-align: left; padding: 0; }
  .experience-toggle { padding: 0; }
  .experience-panel { padding: 8px 0 0; }
  .edu-box { flex-direction: column; }
  .edu-box figure { flex: none; max-width: 280px; }
  h1.blog-headline { font-size: 32px; }
  /* Blog headline: the rotating word drops to its own line on mobile
     so long words ("condescending.", "just read already...") render
     at full size instead of shrinking or overflowing beside
     "This blog is". The rotator stays a grid, so the words still
     stack in one cell and the JS width animation keeps working;
     margin auto centers the block-level grid. */
  .word-rotator { display: grid; margin: 6px auto 0; max-width: 100%; }
  .blog-featured__body { padding: 24px; }
  .blog-featured__kicker { font-size: 16px; }
  .blog-lead, .blog-river { grid-template-columns: 1fr; }
  .blog-lead .blog-card--wide, .blog-lead .blog-card--sage, .blog-lead .blog-card--image-led { grid-column: 1; }
  .blog-card--image-led .blog-card__media { aspect-ratio: 4 / 5; flex: none; min-height: 0; }
  .blog-river .blog-card[data-shape] .blog-card__media { aspect-ratio: 3 / 2; }
  .blog-river .blog-card[data-shape="portrait"] .blog-card__media { aspect-ratio: 4 / 5; }
  .blog-band { padding: 28px; }
  .blog-band__quote { font-size: 26px; }
  .blog-empty { min-height: 0; padding: 32px 24px; }
  .single-post { padding-top: 40px; }
  .single-post .entry-title { font-size: 40px; }
  .single-post .entry-content blockquote { font-size: 26px; }
  .site-footer { padding: 60px 0 40px; }
}

/* ============================================================
   Reduced motion: everything static
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; }
  .intro-text .word { opacity: 1; }
  .hero-word,
  .hero-socials,
  .hero-resume { animation: none; }
  .credits-inner { animation: none; }
  .credits-viewport { overflow-y: auto; }
}

/* Custom cursor over links and buttons too: the reel everywhere.
   The !important keeps this ahead of the scattered cursor: pointer
   rules on buttons and links. The native pointer is the fallback
   if a cursor image fails to load. Text fields keep cursor: text. */
a, button, [role="button"] { cursor: url("images/film-reel-cursor.png") 16 16, pointer !important; }
