/* ==========================================================================
   Jason C. Dixon — Stylesheet
   Requires tokens.css to be loaded first.
   No media queries by design: fluidity comes from clamp(), flex-wrap,
   and grid auto-fit/auto-fill minmax().
   ========================================================================== */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--ink); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

::selection { background: var(--accent); color: var(--paper); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--paper);
  padding: 12px 18px; font-size: var(--fs-small);
}
.skip:focus { left: 12px; top: 12px; color: var(--paper); }

/* ---- Layout primitives -------------------------------------------------- */

.wrap { max-width: var(--page-max); margin: 0 auto; padding-inline: var(--gutter); }

.section { padding-bottom: var(--section-gap); }
.section > .wrap { padding-top: var(--section-top); border-top: 1px solid var(--line); }

/* Full-bleed tinted bands (used sparingly — one per page) */
.band { margin-bottom: var(--section-gap); }
.band > .wrap { padding-top: var(--section-top); padding-bottom: clamp(40px, 6vw, 64px); }
.band--blue { background: var(--band-blue); margin-bottom: clamp(56px, 8vw, 96px); }
.band--blue > .wrap { padding-top: clamp(16px, 2.5vw, 28px); padding-bottom: clamp(28px, 4vw, 44px); }
.band--sage { background: var(--band-sage); }

/* Rail + content: the signature two-column section shell */
.split { display: flex; flex-wrap: wrap; gap: var(--col-gap); }
.split__rail { flex: 0 0 var(--rail-w); min-width: 160px; }
.split__body { flex: 1 1 480px; min-width: min(300px, 100%); }

.grid { display: grid; gap: 20px; }
.grid--cards   { grid-template-columns: repeat(auto-fit,  minmax(min(300px, 100%), 1fr)); }
.grid--stats   { grid-template-columns: repeat(auto-fit,  minmax(200px, 1fr)); gap: 0; }
.grid--cols3   { grid-template-columns: repeat(auto-fit,  minmax(min(280px, 100%), 1fr)); gap: clamp(28px, 4vw, 48px); }
.grid--cols2   { grid-template-columns: repeat(auto-fit,  minmax(240px, 1fr)); gap: 12px 32px; max-width: 640px; }
.grid--gallery { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.stack--lg { gap: 36px; }

/* ---- Type -------------------------------------------------------------- */

.kicker {
  margin: 0 0 20px;
  font-size: var(--fs-kicker); font-weight: 600;
  letter-spacing: var(--ls-kicker); text-transform: uppercase;
  color: var(--faint);
}
.kicker--accent { color: var(--accent); }
.kicker--tint   { color: var(--accent-tint); }

.eyebrow {
  margin: 0 0 12px;
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-eyebrow); text-transform: uppercase;
  color: var(--faint);
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; text-wrap: pretty; }

.h1 { margin: 0 0 28px; font-size: var(--fs-h1); line-height: var(--lh-display); letter-spacing: var(--ls-tight); }
.h1--sub { margin: 0 0 20px; font-size: var(--fs-h1-sub); line-height: 1.1; letter-spacing: var(--ls-tight); max-width: 24ch; }
.h1 em { font-style: italic; color: var(--accent); }

.h2 { margin: 0 0 24px; font-size: var(--fs-h2); line-height: var(--lh-heading); letter-spacing: var(--ls-tight); max-width: 30ch; }
.h2--tight { margin-bottom: 12px; }
.h2--wide  { max-width: none; }

.h3 { margin: 0 0 14px; font-size: var(--fs-h3); line-height: 1.25; }
.h3--sm { margin: 0 0 12px; font-size: var(--fs-h3-sm); line-height: 1.25; }

.colhead {
  margin: 0 0 18px; font-family: var(--font-display); font-weight: 400;
  font-size: var(--fs-h3-sm);
  border-bottom: 1px solid var(--line); padding-bottom: 12px;
}

.lead { margin: 0 0 36px; font-size: var(--fs-lead); color: var(--muted); max-width: 54ch; text-wrap: pretty; }
.copy { margin: 0 0 18px; color: var(--body); max-width: 62ch; text-wrap: pretty; }
.copy:last-child { margin-bottom: 0; }
.note { margin: 0 0 40px; font-size: 16px; color: var(--muted); max-width: 58ch; text-wrap: pretty; }
.small { font-size: var(--fs-small); color: var(--muted); line-height: 1.5; }
.meta  { font-size: var(--fs-small); color: var(--faint); }

/* ---- Nav --------------------------------------------------------------- */

.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; padding: 20px var(--gutter);
  background: rgba(247, 245, 240, 0.92);
  backdrop-filter: var(--blur-nav);
  -webkit-backdrop-filter: var(--blur-nav);
  border-bottom: 1px solid var(--line-faint);
}
.nav__mark { font-family: var(--font-display); font-size: 20px; font-weight: 500; color: var(--ink); }
.nav__links { display: flex; flex-wrap: wrap; gap: clamp(16px, 3vw, 36px); font-size: var(--fs-small); letter-spacing: 0.02em; }
.nav__links a { color: var(--muted); padding: 6px 0; }
.nav__links a:hover { color: var(--ink); }
.nav__links a.is-cta { color: var(--ink); border-bottom: 1px solid var(--accent); padding-bottom: 2px; }

/* ---- Hero -------------------------------------------------------------- */

.hero { padding: clamp(56px, 10vw, 120px) 0 clamp(48px, 7vw, 88px); }
.hero__row { display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 72px); align-items: flex-end; }
.hero__text { flex: 1 1 520px; min-width: min(300px, 100%); }
.hero__figure { flex: 0 1 320px; min-width: min(240px, 100%); margin: 0; }
.hero__figure img {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 4.6; object-fit: cover;
  border-radius: var(--radius); filter: var(--photo-sat);
}
.hero__figure figcaption {
  margin-top: 12px; font-size: var(--fs-eyebrow);
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint);
}
.hero--sub { padding: clamp(56px, 9vw, 100px) 0 clamp(40px, 6vw, 72px); }

/* ---- Buttons ----------------------------------------------------------- */

.actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn {
  display: inline-block; background: var(--ink); color: var(--paper);
  padding: 14px 26px; font-size: var(--fs-ui); font-weight: 500;
  border-radius: var(--radius);
}
.btn:hover { background: var(--accent); color: var(--paper); }
.btn--text {
  background: none; color: var(--ink); padding: 14px 10px;
  border-bottom: 1px solid rgba(27, 29, 27, 0.3); border-radius: 0;
}
.btn--text:hover { background: none; color: var(--accent); border-bottom-color: var(--accent); }

.inline-link { border-bottom: 1px solid rgba(46, 75, 56, 0.4); }
.inline-link:hover { color: var(--accent); }

/* ---- Stats ------------------------------------------------------------- */

.stat { padding: 28px 24px 8px 0; }
.stat__num { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: var(--fs-stat); color: var(--ink); }
.stat__label { margin: 6px 0 0; font-size: var(--fs-small); color: var(--muted); line-height: 1.5; }

/* ---- Discipline list (home about) -------------------------------------- */

.disc { margin: 0; padding: 10px 0; font-size: var(--fs-meta); color: var(--muted); border-top: 1px solid var(--line-soft); }
.disc span { color: var(--accent); font-weight: 600; margin-right: 10px; }

/* ---- Cards ------------------------------------------------------------- */

.card {
  background: var(--card); border: 1px solid var(--line-faint);
  border-radius: var(--radius); padding: var(--card-pad);
}
.card--sm { padding: var(--card-pad-sm); }
.card__copy { margin: 0 0 24px; font-size: var(--fs-body-sm); color: var(--muted); max-width: 62ch; text-wrap: pretty; }
.card__metrics {
  display: flex; flex-wrap: wrap; gap: 8px 36px;
  border-top: 1px solid var(--line-faint); padding-top: 18px;
}
.card__metrics p { margin: 0; font-size: var(--fs-small); color: var(--body); }
.card__metrics strong { font-weight: 600; color: var(--accent); }

.callout { background: var(--card-alt); border-radius: var(--radius); padding: var(--card-pad-sm); margin-top: 24px; }

.bullets { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; color: var(--body); }
.bullets--sm { font-size: var(--fs-small); line-height: var(--lh-body-open); }
.bullets--md { font-size: var(--fs-meta); line-height: var(--lh-body-open); max-width: 75ch; }

/* ---- Audience callouts ------------------------------------------------- */

.audience { display: flex; flex-wrap: wrap; gap: 16px; margin: 0 0 44px; }
.audience > div { flex: 1 1 300px; border-left: 2px solid var(--accent); padding: 4px 0 4px 18px; }
.audience p:first-child { margin: 0 0 4px; font-size: var(--fs-ui); font-weight: 600; }
.audience p:last-child { margin: 0; font-size: var(--fs-small); line-height: 1.6; color: var(--muted); }

.deflist { display: flex; flex-direction: column; gap: 14px; }
.deflist p { margin: 0; font-size: var(--fs-small); line-height: 1.6; color: var(--muted); }
.deflist strong { display: block; font-weight: 600; color: var(--ink); margin-bottom: 2px; }

/* ---- Experience -------------------------------------------------------- */

.role {
  display: flex; flex-wrap: wrap; gap: 4px 24px;
  justify-content: space-between; align-items: baseline;
  padding: 18px 0; border-top: 1px solid var(--line-soft);
}
.role:last-of-type { border-bottom: 1px solid var(--line-soft); }
.role__main { flex: 1 1 380px; }
.role__title { margin: 0; font-size: 16px; font-weight: 600; color: var(--ink); }
.role__where { margin: 3px 0 0; font-size: var(--fs-small); color: var(--faint); }
.role__date { margin: 0; font-size: 13.5px; letter-spacing: 0.06em; color: var(--muted); white-space: nowrap; }

.job { border-top: 1px solid var(--line-soft); padding-top: 24px; }
.job__head { display: flex; flex-wrap: wrap; gap: 4px 24px; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.job__head h3 { margin: 0; font-family: var(--font-sans); font-size: 17px; font-weight: 600; }
.job__where { margin: 0 0 14px; font-size: var(--fs-small); color: var(--faint); }

/* ---- Quotes ------------------------------------------------------------ */

.quote { margin: 0; }
.quote p {
  margin: 0 0 20px; font-family: var(--font-display); font-style: italic;
  font-size: var(--fs-quote); line-height: 1.45; color: var(--ink); text-wrap: pretty;
}
.quote footer { font-size: var(--fs-small); color: var(--muted); }
.quote footer strong { font-weight: 600; color: var(--ink); }

/* ---- Gallery ----------------------------------------------------------- */

.shot { margin: 0; }
.shot img {
  display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius); filter: saturate(0.9);
}
.shot figcaption { margin-top: 8px; font-size: var(--fs-kicker); color: var(--faint); }

/* ---- Credentials ------------------------------------------------------- */

.cred { margin: 0; font-size: var(--fs-meta); line-height: 1.55; color: var(--body); }
.cred span { display: block; font-size: var(--fs-kicker); color: var(--faint); }
.cred + .cred { margin-top: 12px; }

/* ---- Footer ------------------------------------------------------------ */

.footer { background: var(--ink); color: var(--paper); }
.footer > .wrap { padding-top: var(--section-gap); padding-bottom: 40px; }
.footer--sub > .wrap { padding-top: clamp(56px, 8vw, 90px); }
.footer .h2 { color: var(--paper); font-size: var(--fs-h2-footer); line-height: 1.12; max-width: 22ch; }
.footer__lead { margin: 0 0 40px; font-size: var(--fs-body); line-height: var(--lh-body); color: var(--footer-muted); max-width: 58ch; text-wrap: pretty; }
.footer__links { display: flex; flex-wrap: wrap; gap: 14px 32px; margin-bottom: clamp(56px, 8vw, 88px); }
.footer__links a { color: var(--paper); font-size: 16px; border-bottom: 1px solid var(--footer-link); padding-bottom: 3px; }
.footer__links a:hover { color: var(--accent-tint); border-bottom-color: var(--accent-tint); }
.footer__base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  border-top: 1px solid var(--footer-line); padding-top: 24px;
}
.footer__base p { margin: 0; font-size: var(--fs-kicker); color: var(--faint); }

/* ==========================================================================
   Motion & interaction enhancements (JS adds .js to <html>)
   Everything degrades gracefully: no JS → fully visible, no motion.
   prefers-reduced-motion → all of this is switched off below.
   ========================================================================== */

/* ---- Scroll reveal ------------------------------------------------------ */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--d, 0ms);
}
.js .reveal.in { opacity: 1; transform: none; }

/* ---- Hero entrance ------------------------------------------------------ */

@keyframes rise-in {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}
.js .hero .kicker,
.js .hero .h1,
.js .hero .lead,
.js .hero .actions,
.js .hero .hero__figure,
.js .hero--sub .h1--sub {
  animation: rise-in 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.js .hero .h1            { animation-delay: 0.08s; }
.js .hero .lead          { animation-delay: 0.18s; }
.js .hero .actions       { animation-delay: 0.28s; }
.js .hero .hero__figure  { animation-delay: 0.2s; }

/* ---- Nav: animated underline -------------------------------------------- */

.nav__links a { position: relative; }
.nav__links a:not(.is-cta)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  border-bottom: 1px solid var(--accent);
  transition: right 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav__links a:not(.is-cta):hover::after { right: 0; }

/* ---- Cards, shots, stats: hover life ------------------------------------ */

.card, .callout {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.35s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(46, 75, 56, 0.25);
  box-shadow: 0 14px 34px -18px rgba(27, 29, 27, 0.28);
}

.shot { overflow: hidden; }
.shot img { transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), filter 0.6s ease; }
.shot:hover img { transform: scale(1.035); filter: saturate(1); }

.hero__figure img { transition: filter 0.6s ease; }
.hero__figure:hover img { filter: saturate(1); }

.btn { transition: background 0.25s ease, transform 0.25s ease; }
.btn:hover { transform: translateY(-1px); }
.btn--text:hover { transform: none; }

.role { transition: background 0.25s ease; }
.role:hover { background: rgba(46, 75, 56, 0.04); }

.quote { transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
.quote:hover { transform: translateY(-2px); }

a, .inline-link, .footer__links a { transition: color 0.2s ease, border-color 0.2s ease; }

/* ---- Cookie consent banner ---------------------------------------------- */

.cc-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60;
  display: none; flex-wrap: wrap; gap: 12px 24px; align-items: center;
  max-width: 720px; margin: 0 auto;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 20px;
  box-shadow: 0 18px 44px -20px rgba(27, 29, 27, 0.35);
}
.cc-banner.on { display: flex; }
.cc-text { margin: 0; flex: 1 1 320px; font-size: var(--fs-kicker); line-height: 1.55; color: var(--muted); }
.cc-text a { color: var(--accent); border-bottom: 1px solid rgba(46, 75, 56, 0.4); }
.cc-actions { display: flex; gap: 18px; }
.cc-btn {
  background: none; border: none; cursor: pointer; padding: 8px 0;
  font-family: var(--font-sans); font-size: var(--fs-small); font-weight: 600;
}
.cc-accept  { color: var(--accent); border-bottom: 1px solid var(--accent); }
.cc-decline { color: var(--faint); }
.cc-accept:hover  { color: var(--ink); border-bottom-color: var(--ink); }
.cc-decline:hover { color: var(--ink); }

/* ---- Reduced motion: switch it all off ---------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .hero .kicker, .js .hero .h1, .js .hero .lead,
  .js .hero .actions, .js .hero .hero__figure, .js .hero--sub .h1--sub { animation: none; }
  .card, .callout, .shot img, .hero__figure img, .btn, .role, .quote,
  .nav__links a:not(.is-cta)::after { transition: none; }
  .card:hover, .quote:hover, .btn:hover { transform: none; }
  .shot:hover img { transform: none; }
}
