/*
  Firefinch site design system (hand-built pages, no page builder).
  Brand: burgundy #5b1632, gold #e8b536 (focal points only, never a background),
  pink #fdb3d8 (on dark only), cream #feebf5, white. Poppins Light headings,
  Cormorant Garamond Italic as the accent ("weight-breaker").
*/

:root {
  --wine: #5b1632;
  --wine-60: rgba(91, 22, 50, 0.66); /* 0.66 keeps small muted text above the 4.5:1 contrast minimum */
  --wine-15: rgba(91, 22, 50, 0.15);
  --gold: #e8b536;
  --pink: #fdb3d8;
  --cream: #feebf5;
  /* Deeper pink and gold for accent TEXT on white, cream or paper (readable for everyone). Brand pink and gold stay for everything else. */
  --pink-text: #dc5297;
  --gold-text: #c38800;
  --white: #ffffff;
  --ink: #2b2b2b;

  --sans: Poppins, "Helvetica Neue", Arial, sans-serif;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;

  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --section: clamp(72px, 10vw, 140px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--wine); }
p { margin: 0 0 1em; }
strong, b { font-weight: 600; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--wine); color: var(--white); padding: 10px 16px; border-radius: var(--radius); text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--sans); font-weight: 300; color: var(--wine); letter-spacing: -0.015em; margin: 0; }
h1 { font-size: clamp(36px, 4.4vw, 60px); line-height: 1.12; }
h2 { font-size: clamp(30px, 3.8vw, 52px); line-height: 1.15; }
h3 { font-size: 18px; font-weight: 600; line-height: 1.35; letter-spacing: 0; }
.accent { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; font-size: 1.12em; }

/* Section label: Poppins Semi-Bold 12px, caps, wide tracking. */
.eyebrow {
  display: flex; align-items: center; gap: 14px;
  margin: 0 0 28px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--wine);
}

.lead { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; font-weight: 300; color: var(--ink); max-width: 30ch; }
.tagline { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2vw, 28px); line-height: 1.3; color: var(--wine); max-width: 24ch; }

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 26px;
  background: var(--gold); color: var(--wine);
  border: 1px solid var(--gold); border-radius: var(--radius);
  font: 600 15px/1 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.btn:hover, .btn:focus-visible { background: var(--wine); border-color: var(--wine); color: var(--white); }
.btn:hover svg { transform: translateX(4px); }
.on-dark .btn:hover, .on-dark .btn:focus-visible { background: transparent; border-color: var(--pink); color: var(--white); }
.btn--small { padding: 11px 18px; font-size: 13px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; color: var(--wine);
  background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 1px no-repeat;
  padding-bottom: 4px; transition: background-size .4s var(--ease);
}
.link-arrow svg { width: 14px; height: 14px; color: var(--gold); transition: transform .3s var(--ease); }
.link-arrow:hover { background-size: 100% 1px; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--wine-15); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 88px; transition: height .3s var(--ease); }
.site-header.is-scrolled .wrap { height: 72px; }
.logo img { width: 128px; height: auto; transition: width .3s var(--ease); }
.site-header.is-scrolled .logo img { width: 112px; }

.nav { display: flex; align-items: center; gap: 36px; }
.nav ul { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav a:not(.btn) {
  font-size: 14px; font-weight: 400; color: var(--wine); text-decoration: none;
  background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 1px no-repeat; padding-bottom: 3px;
  transition: background-size .35s var(--ease);
}
.nav a:not(.btn):hover, .nav a[aria-current="page"] { background-size: 100% 1px; }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .js .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
    background: none; border: 0; color: var(--wine); cursor: pointer; border-radius: var(--radius);
  }
  .nav-toggle svg { width: 26px; height: 26px; }
  .js .nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: flex-start; gap: 28px;
    padding: 28px var(--gutter) 36px; background: var(--white); border-bottom: 1px solid var(--wine-15);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .js .nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav ul { flex-direction: column; gap: 20px; }
  .nav a:not(.btn) { font-size: 18px; }
  .site-header .wrap { height: 72px; }
  .logo img { width: 112px; }
  /* Without JavaScript the links simply wrap under the logo. */
  html:not(.js) .site-header .wrap { flex-wrap: wrap; height: auto; padding-block: 14px; gap: 12px; }
  html:not(.js) .nav { flex-wrap: wrap; gap: 16px; }
  html:not(.js) .nav ul { flex-direction: row; gap: 16px; }
}

/* ---------- Hero: full-width headline, then copy beside the illustration ---------- */
.hero { padding: clamp(36px, 5vw, 72px) 0 clamp(56px, 7vw, 96px); overflow: hidden; }
.hero h1 { font-size: clamp(34px, 4.2vw, 60px); line-height: 1.12; margin-bottom: clamp(36px, 4.5vw, 64px); max-width: 18em; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero-copy .lead { margin-bottom: 20px; }
.hero-copy .tagline { margin-bottom: 40px; }
/* The animation has a transparent background; its fade panel is recoloured to the paper tone (assets/hero-animation.json). */
.hero-visual { position: relative; }
.hero-visual .lottie { aspect-ratio: 1200 / 450; width: 100%; }
.hero-visual .lottie svg { width: 100% !important; height: 100% !important; display: block; }

/* Hero accents: "before" in pink italic, "after" in gold italic (mirrors the closing call-to-action). */
.hero .accent.pink { color: var(--pink-text); }
.hero .accent.gold { color: var(--gold-text); }
.section--paper .accent.gold { color: #b37d00; } /* a hair deeper so it still reads on the darker paper texture */

/* Small screens: label and headline, then the animation, then the copy and button */
@media (max-width: 960px) {
  .hero:has(.hero-visual) { display: flex; flex-direction: column; }
  .hero:has(.hero-visual) > .wrap:not(.hero-grid) { order: 1; }
  .hero:has(.hero-visual) .hero-grid { display: contents; }
  .hero:has(.hero-visual) .hero-visual { order: 2; margin: 0 var(--gutter) 28px; }
  .hero:has(.hero-visual) .hero-copy { order: 3; padding: 0 var(--gutter); }
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section--paper { background: #f4efe8 url("/assets/paper.svg") repeat; }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 112px); align-items: start; }
.split h2 { max-width: 14ch; }
.prose p { font-size: 17px; line-height: 1.7; max-width: 60ch; }
.prose .pullquote, .pullquote {
  margin: 36px 0 0; padding: 4px 0 4px 28px; border-left: 2px solid var(--gold);
  font-family: var(--serif); font-style: italic; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.35; color: var(--wine);
}

/* "Your marketing probably needs a reset if:" as a numbered, ruled list */
.signs h2 { margin-bottom: clamp(40px, 5vw, 72px); max-width: 22ch; }
.signs-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 6vw, 96px); counter-reset: sign; }
.signs-list li {
  position: relative; counter-increment: sign;
  padding: 32px 0 36px 64px; border-top: 1px solid var(--wine-15);
}
.signs-list li::before {
  content: counter(sign, decimal-leading-zero) / "";
  position: absolute; left: 0; top: 28px;
  font-family: var(--serif); font-style: italic; font-size: 28px; line-height: 1; color: var(--gold-text);
}
.signs-list li::after { /* gold rule that draws across on hover */
  content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 100%;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.signs-list li:hover::after { transform: scaleX(1); }
.signs-list h3 { margin-bottom: 10px; }
.signs-list p { margin: 0; max-width: 46ch; }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 112px); align-items: start; }
.about h2 { margin-bottom: clamp(40px, 5vw, 64px); max-width: 20ch; }
.portrait { position: relative; margin: 0 0 28px; }
.portrait::before { content: ""; position: absolute; inset: 24px -24px -24px 24px; background: var(--cream); border-radius: var(--radius); z-index: -1; }
.portrait img { border-radius: var(--radius); width: 100%; aspect-ratio: 850 / 607; object-fit: cover; }
.who h3 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 300; margin-bottom: 4px; color: var(--pink-text); }
.who .role { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--wine); margin: 0 0 16px; }
.social-link { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border: 1px solid var(--wine-15); border-radius: 50%; color: var(--wine); transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); }
.social-link svg { width: 16px; height: 16px; }
.social-link:hover { background: var(--wine); color: var(--white); border-color: var(--wine); }
.ways-title { margin: 32px 0 12px; font-weight: 600; color: var(--wine); }
.ways { list-style: none; margin: 0 0 40px; padding: 0; }
.ways li { position: relative; padding: 14px 0 14px 32px; border-bottom: 1px solid var(--wine-15); }
.ways li::before { content: ""; position: absolute; left: 0; top: 50%; width: 16px; height: 1px; background: var(--gold); }

@media (max-width: 960px) {
  .split, .about-grid { grid-template-columns: 1fr; }
  .signs-list { grid-template-columns: 1fr; }
  .portrait { max-width: 520px; }
}

/* ---------- Inner pages ---------- */
.page-hero h1 { font-size: clamp(34px, 4.4vw, 60px); line-height: 1.12; margin-bottom: 20px; max-width: 14em; }
.page-hero .accent.gold { color: var(--gold-text); }
.page-sub { font-family: var(--serif); font-style: italic; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.25; color: var(--pink-text); margin: 0; }
/* How I help: intro, two situation tiles, the bridge line, then the Diagnostic directly beneath */
.page-hero .split { align-items: end; }
.hero-intro p { font-size: 18px; }
.hero-intro p:last-child { margin-bottom: 0; }
/* Brand bird flock (from the logo bird, outline and solid), coloured with CSS masks and drifting slowly */
.page-hero { position: relative; isolation: isolate; }
.page-hero .wrap { position: relative; z-index: 1; }
.flock { /* the right-hand third of the hero, anchored to the content area */
  position: absolute; top: 24px; bottom: 24px; right: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); width: min(34%, 480px);
  z-index: 0; pointer-events: none;
}
.hero-stack { max-width: min(62%, 820px); }
.hero-stack h1 { max-width: none; }
.hero-stack .page-sub { margin-bottom: clamp(28px, 3vw, 40px); }
.hero-intro { max-width: 60ch; }
.bird {
  position: absolute; left: var(--x); top: var(--y); width: var(--w); aspect-ratio: 772 / 412;
  -webkit-mask: var(--shape) center / contain no-repeat; mask: var(--shape) center / contain no-repeat;
  rotate: var(--r, 0deg);
  animation: bird-drift 9s ease-in-out var(--d, 0s) infinite alternate;
}
.bird--solid { --shape: url("/assets/bird-shape-solid.svg"); }
.bird--outline { --shape: url("/assets/bird-shape-outline.svg"); }
.bird--line { --shape: url("/assets/bird-shape-line.svg"); }
.bird--cream { background: var(--cream); }
.bird--grey { background: #f4f4f4; }
.bird--gold { background: var(--gold); }
.bird--wine { background: var(--wine); }
.bird--pink { background: var(--pink); }
/* The pair: a solid bird with its outline sitting slightly off register on top */
.flock--pair { display: grid; place-items: center; }
.flock--pair .bird { position: absolute; left: auto; top: auto; width: min(100%, 440px); rotate: -4deg; }
.flock--pair .bird--solid { translate: 0 0; animation: none; }
.flock--pair .bird--line { width: min(92%, 404px); translate: 16px -4px; animation: pair-line 6s ease-in-out infinite alternate; }
@keyframes pair-line {
  from { translate: 16px -4px; rotate: -4deg; }
  to   { translate: 30px -18px; rotate: -1deg; }
} }
@keyframes bird-drift { from { translate: 0 0; } to { translate: 10px -12px; } }
@media (max-width: 960px) { .hero-stack { max-width: none; } .flock { width: 60%; right: 0; bottom: auto; height: 260px; opacity: 0.6; } .bird { width: calc(var(--w) * 0.55); } .bird--outline { display: none; } }
.bridge {
  margin: clamp(28px, 3vw, 40px) 0 0;
  font-family: var(--serif); font-style: italic; font-size: clamp(28px, 3vw, 40px); line-height: 1.2; color: var(--wine);
}
.page-hero .diagnostic { align-items: start; }
@media (max-width: 960px) { .situations { grid-template-columns: 1fr; } }
.diagnostic h2 { margin-bottom: 28px; max-width: 18ch; }
.diagnostic .btn { margin-top: 12px; }
.page-hero { padding-bottom: clamp(40px, 5vw, 72px); }
.page-hero + .section { padding-top: clamp(40px, 5vw, 72px); }
.page-hero .ways { margin-bottom: 24px; }
.section--tight-top { padding-top: 0; }
.narrow { max-width: 24ch; }
.intro { font-size: 17px; max-width: 56ch; margin: 24px 0 clamp(36px, 4vw, 56px); }

/* Two ways in: two soft-pink panels side by side */
.two-ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 6vw, 96px); }
.way { position: relative; padding-top: clamp(24px, 3vw, 36px); }
.way::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--wine); transform-origin: left; }

/* "Two ways in" as a burgundy band; the gold rules draw in, then the points follow one by one. */
.ways-band { background: var(--wine); color: rgba(255, 255, 255, 0.88); padding: var(--section) 0; }
.ways-band .eyebrow { color: var(--gold); margin-bottom: clamp(32px, 4vw, 48px); }
.ways-band .way::before { background: var(--gold); }
.ways-band .way h2 { color: var(--white); }
.ways-band .way-lead { color: var(--pink); }
.ways-band .ways-title { color: var(--white); }
.ways-band .ways li, .ways-band .way .ways li { border-bottom-color: rgba(255, 255, 255, 0.14); }
.js .ways-band .way[data-reveal]::before { transform: scaleX(0); transition: transform 1.1s var(--ease) .15s; }
.js .ways-band .way[data-reveal].is-visible::before { transform: scaleX(1); }
.js .ways-band .way[data-reveal] .ways li { opacity: 0; transform: translateX(-10px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .ways-band .way[data-reveal].is-visible .ways li { opacity: 1; transform: none; }
.js .ways-band .way .ways li:nth-child(1) { transition-delay: .7s; }
.js .ways-band .way .ways li:nth-child(2) { transition-delay: .85s; }
.js .ways-band .way .ways li:nth-child(3) { transition-delay: 1s; }
.js .ways-band .way .ways li:nth-child(4) { transition-delay: 1.15s; }
.ways-band .ways li::before { transition: width .4s var(--ease); }
.ways-band .ways li:hover::before { width: 24px; }
.way h2 { font-size: clamp(28px, 2.8vw, 40px); margin-bottom: 12px; }
.way-lead { font-weight: 600; color: var(--wine); font-size: 17px; margin-bottom: 20px; }
.way .ways { margin-bottom: 0; }
.way .ways li { border-bottom-color: var(--wine-15); }

/* Engagement shapes: always-visible cards, deepening from cream to burgundy */
.engagements { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.engagement {
  display: flex; flex-direction: column; gap: 14px;
  padding: 32px 26px 28px; border-radius: var(--radius); color: var(--wine);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.engagement { position: relative; overflow: hidden; --line: var(--wine); }
.engagement::before { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%; background: var(--line); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
/* Specific enough to win over the scroll-reveal end state, which also sets transform. */
.engagement:hover, .js .engagement[data-reveal].is-visible:hover { transform: translateY(-6px); box-shadow: 0 22px 44px -22px rgba(91, 22, 50, 0.45); }
.engagement:hover::before { transform: scaleX(1); }
.engagement--3, .engagement--4 { --line: var(--cream); }
.engagement h3 { font-size: 20px; font-weight: 600; line-height: 1.3; color: inherit; }
.engagement p { margin: 0; font-size: 15px; line-height: 1.6; }
.engagement-tagline { font-family: var(--serif); font-style: italic; font-size: 20px !important; line-height: 1.3 !important; }
.engagement-duration { margin-top: auto !important; padding-top: 16px; border-top: 1px solid currentColor; border-top-color: color-mix(in srgb, currentColor 25%, transparent); font-size: 13px !important; letter-spacing: 0.08em; text-transform: uppercase; }
.engagement--1 { background: var(--cream); }
.engagement--2 { background: var(--pink); }
.engagement--3 { background: #845065; color: var(--white); }
.engagement--4 { background: var(--wine); color: var(--white); }
.engagement--3 .engagement-duration { color: var(--cream); }
.engagement--4 .engagement-duration { color: var(--gold); }

/* FAQ: native disclosure widgets, so answers are in the page for search engines and work without JavaScript */
.faq-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 112px); align-items: start; }
.faq-grid h2 { margin-bottom: 36px; }
.faq-photo { margin: 0; }
.faq-photo img { border-radius: var(--radius); width: 100%; aspect-ratio: 800 / 534; object-fit: cover; }
.faq-item { border-bottom: 1px solid var(--wine-15); }
.faq-item:first-child { border-top: 1px solid var(--wine-15); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px 0; cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font-size: 17px; font-weight: 600; transition: color .3s var(--ease); }
.faq-item summary h3 { transition: transform .35s var(--ease); }
.faq-item summary:hover h3 { transform: translateX(6px); }
.faq-icon { position: relative; flex: 0 0 34px; height: 34px; border-radius: 50%; border: 1px solid var(--wine-15); transition: background-color .35s var(--ease), border-color .35s var(--ease); }
.faq-item summary:hover .faq-icon, .faq-item[open] .faq-icon { background: var(--wine); border-color: var(--wine); }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 10px; right: 10px; top: calc(50% - 0.75px); height: 1.5px; background: var(--wine); transition: transform .35s var(--ease), background-color .35s var(--ease); }
.faq-item summary:hover .faq-icon::before, .faq-item summary:hover .faq-icon::after, .faq-item[open] .faq-icon::before, .faq-item[open] .faq-icon::after { background: var(--white); }
.faq-icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-icon::after { transform: rotate(0deg); }
.faq-answer { padding: 0 0 24px; max-width: 60ch; }
.faq-answer ul { padding-left: 20px; margin: 0 0 1em; }
.faq-answer li { margin-bottom: 6px; }
.faq-answer li::marker { color: var(--gold); }
@supports (interpolate-size: allow-keywords) {
  .faq-item { interpolate-size: allow-keywords; }
  .faq-item::details-content { height: 0; overflow: clip; transition: height .4s var(--ease), content-visibility .4s allow-discrete; }
  .faq-item[open]::details-content { height: auto; }
}

@media (max-width: 1100px) { .engagements { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 960px) {
  .two-ways, .faq-grid { grid-template-columns: 1fr; }
  .faq-photo { max-width: 520px; }
}
@media (max-width: 600px) { .engagements { grid-template-columns: 1fr; } }

/* ---------- About ---------- */
.about-hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.about-hero h1 { max-width: 13em; }
.about-hero .page-sub { margin-bottom: clamp(24px, 3vw, 36px); max-width: 32ch; }
.about-portrait { margin: 0; position: relative; }
.about-portrait::before, .about-more-photo::before { /* offset cream block, as on the homepage */
  content: ""; position: absolute; inset: 24px -24px -24px 24px; background: var(--cream); border-radius: var(--radius); z-index: -1;
}
.about-more-photo { position: relative; }
/* The block sits on the same side as each photo's curved cut-out, so the colour shows through it */
.about-portrait::before { inset: -24px 24px 24px -24px; }
.about-more-photo::before { inset: 24px -24px -24px 24px; background: var(--wine); }
.about-portrait img { width: 100%; border-radius: var(--radius); }

.pillars { list-style: none; margin: clamp(36px, 4vw, 56px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); }
.pillars img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); margin-bottom: 24px; transition: transform .6s var(--ease); }
.pillars li:hover img { transform: scale(1.03); }
.pillars h3 { font-size: 20px; margin-bottom: 12px; }
.pillars p { font-size: 15.5px; line-height: 1.65; }

.band-title { color: var(--white); margin-bottom: clamp(36px, 4vw, 56px); }
/* Cream variant of the band (About: Working with me) */
.ways-band.band--cream { background: var(--cream); color: var(--ink); }
.band--cream .band-title { color: var(--wine); }
.band--cream .way::before { background: var(--gold); }
.band--cream .traits h3 { color: var(--wine); }
.traits { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); }
.traits h3 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 32px; color: var(--pink); margin-bottom: 14px; letter-spacing: 0; }
.traits p { margin: 0; font-size: 15.5px; }

.about-more { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.about-more h2 { margin-bottom: 28px; }
.about-more-photo { margin: 0; }
.about-more-photo img { width: 100%; border-radius: var(--radius); }

@media (max-width: 1100px) { .traits { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 960px) {
  .about-hero-grid, .about-more { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  /* Stacked: photos sit inside the text (hero: between the two paragraphs; more: under the heading) */
  .about-hero-grid, .about-more { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .about-hero-grid > div, .about-hero-grid .prose, .about-more > div, .about-more .prose { display: contents; }
  .about-portrait { order: 1; margin: 48px 0 32px 24px; }
  .about-hero-grid .prose p + p { order: 2; }
  .about-more h2 { order: 0; }
  .about-more-photo { order: 1; margin: 0 24px 48px 0; }
  .about-more .prose p { order: 2; }
}
@media (max-width: 600px) { .traits { grid-template-columns: 1fr; } }

/* ---------- Insights and category listings ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.page-hero.listing-hero { padding-bottom: clamp(24px, 3vw, 40px); }
.listing-hero h1 { margin-bottom: 18px; }
.listing-intro { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; max-width: 52ch; margin: 0; }
.listing-count { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--wine-60); }
.crumbs { display: flex; gap: 10px; margin-bottom: 16px; font-size: 14px; }
.crumbs a { color: var(--wine); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.crumbs span { color: var(--wine-60); }
.insights { padding-top: 8px; }

.insights-tools { display: grid; grid-template-columns: minmax(0, 1fr) 260px; align-items: start; gap: 24px 40px; margin-bottom: clamp(32px, 4vw, 56px); }
@media (max-width: 860px) { .insights-tools { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a {
  padding: 9px 16px; border: 1px solid var(--wine-15); border-radius: 999px;
  font-size: 13.5px; color: var(--wine); text-decoration: none; white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.chips a:hover { border-color: var(--wine); }
.chips a[aria-current="page"] { background: var(--wine); border-color: var(--wine); color: var(--white); }
.search { position: relative; }
.search svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; translate: 0 -50%; color: var(--wine-60); pointer-events: none; }
.search input {
  width: 100%; padding: 11px 16px 11px 42px; border: 1px solid var(--wine-15); border-radius: 999px; background: var(--white);
  font: 300 15px/1.4 var(--sans); color: var(--ink); transition: border-color .25s var(--ease);
}
.search input:focus { outline: none; border-color: var(--gold); }
html:not(.js) .search { display: none; }

.post-feature, .post-grid { list-style: none; margin: 0; padding: 0; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(36px, 4vw, 56px) clamp(24px, 3vw, 40px); }
.post-card__link { display: flex; flex-direction: column; gap: 18px; height: 100%; text-decoration: none; color: inherit; }
.post-card__img { display: block; overflow: hidden; border-radius: var(--radius); background: var(--white); aspect-ratio: 16 / 9; position: relative; }
.post-card__img::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--wine-15); border-radius: inherit; pointer-events: none; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.post-card__link:hover .post-card__img img { transform: scale(1.04); }
.post-card__body { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--wine-60); }
.post-card__meta span { color: var(--wine); }
.post-card__title { font-size: 19px; font-weight: 500; line-height: 1.35; color: var(--wine); }
.post-card__desc { font-size: 16px; line-height: 1.6; color: var(--ink); }
.post-card .link-arrow { margin-top: auto; align-self: flex-start; }
.post-card__link:hover .link-arrow { background-size: 100% 1px; }
.post-card__link:hover .link-arrow svg { transform: translateX(4px); }

.post-feature { margin-bottom: clamp(48px, 6vw, 80px); }
.post-card--feature .post-card__link { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.post-card--feature .post-card__title { font-size: clamp(26px, 2.6vw, 36px); font-weight: 300; line-height: 1.2; letter-spacing: -0.01em; }
.post-card--feature .post-card__body { gap: 16px; }
.post-empty { margin: 24px 0 0; color: var(--wine-60); }
.post-card[hidden] { display: none; }

/* Pagination: "Load more" for people, numbered pages for search engines and no-JS visitors */
.pager { display: flex; flex-direction: column; align-items: center; gap: 22px; margin-top: clamp(48px, 6vw, 72px); }
.btn--outline { background: transparent; color: var(--wine); border-color: var(--wine); }
.btn--outline:hover, .btn--outline:focus-visible { background: var(--wine); color: var(--white); }
.btn.is-loading { opacity: .6; pointer-events: none; }
.pager-pages { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; font-size: 14px; }
.pager-pages a, .pager-pages span { min-width: 36px; padding: 7px 12px; border-radius: 999px; text-align: center; text-decoration: none; color: var(--wine); border: 1px solid var(--wine-15); }
.pager-pages a:hover { border-color: var(--wine); }
.pager-pages span[aria-current] { background: var(--wine); border-color: var(--wine); color: var(--white); }
.js .pager.is-enhanced .pager-pages { display: none; }

@media (max-width: 1100px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .post-card--feature .post-card__link { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .post-grid { grid-template-columns: 1fr; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 4px; -webkit-mask-image: linear-gradient(to right, #000 85%, transparent); mask-image: linear-gradient(to right, #000 85%, transparent); }
  .chips::-webkit-scrollbar { display: none; }
}

/* ---------- Single post ---------- */
.post { --measure: 720px; padding-top: clamp(36px, 5vw, 72px); }
.post-head .wrap, .post-image, .post-body, .post-foot { max-width: calc(var(--measure) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.post-head h1 { font-size: clamp(32px, 4vw, 52px); line-height: 1.14; margin-bottom: 20px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--wine-60); }
.post-image { margin-top: clamp(32px, 4vw, 48px); margin-bottom: clamp(40px, 5vw, 64px); position: relative; }
.post-image::before { /* offset cream block, as on the other pages */
  content: ""; position: absolute; inset: 20px calc(var(--gutter) - 20px) -20px calc(var(--gutter) + 20px); background: var(--cream); border-radius: var(--radius); z-index: -1;
}
.post-image img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: 0 0 0 1px var(--wine-15); }

/* Body copy: comfortable measure, clear rhythm between headings */
.post-body { font-size: 17.5px; line-height: 1.75; }
.post-body > * { margin: 0 0 1.15em; }
.post-body h2 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.2; margin: 1.9em 0 0.6em; }
.post-body h3 { font-size: 21px; font-weight: 500; line-height: 1.35; margin: 1.7em 0 0.5em; }
.post-body h4, .post-body h5, .post-body h6 { font-size: 17.5px; font-weight: 600; line-height: 1.4; color: var(--wine); margin: 1.5em 0 0.4em; }
.post-body h4 strong { font-weight: inherit; }
.post-body > :first-child { margin-top: 0; }
.post-body a { color: var(--wine); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 4px; transition: text-decoration-color .25s var(--ease); }
.post-body a:hover { text-decoration-color: var(--wine); }
.post-body strong, .post-body b { font-weight: 600; color: var(--wine); }
.post-body ul, .post-body ol { padding-left: 1.4em; }
.post-body li { margin-bottom: 0.45em; padding-left: 0.3em; }
.post-body ul li::marker { color: var(--gold); font-size: 1.1em; }
.post-body ol li::marker { color: var(--wine); font-weight: 600; }
.post-body img { max-width: 100%; height: auto; border-radius: var(--radius); }
.post-body small { font-size: 14.5px; color: var(--wine-60); }
.post-body blockquote { margin: 1.6em 0; padding-left: 28px; border-left: 2px solid var(--gold); font-family: var(--serif); font-style: italic; font-size: 24px; line-height: 1.4; color: var(--wine); }
.post-body .pullquote { margin: 1.6em 0; font-size: clamp(24px, 2.4vw, 30px); }
.post-body .cols { columns: 3 200px; column-gap: 40px; margin: 1.6em 0; }
.post-body .cols-2 { columns: 2 260px; }
.post-body .cols > * { break-inside: avoid; }
.post-body .cols h4 { margin-top: 0; break-after: avoid; }
.post-body .callout { margin: 2.2em 0 0; padding: clamp(24px, 3vw, 36px); background: var(--cream); border-radius: var(--radius); }
.post-body .callout > :last-child { margin-bottom: 0; }
.post-body .table-wrap { overflow-x: auto; margin: 1.6em 0; }
.post-body table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.5; }
.post-body th, .post-body td { padding: 12px 14px; text-align: center; border-bottom: 1px solid var(--wine-15); }
.post-body th { font-weight: 600; color: var(--wine); }
.post-body th:first-child, .post-body td:first-child { text-align: left; }
.post-body td:last-child, .post-body th:last-child { color: var(--wine); background: var(--cream); }
@media (max-width: 600px) { .post-body { font-size: 16.5px; } .post-image::before { inset: 12px calc(var(--gutter) - 10px) -12px calc(var(--gutter) + 12px); } .post-body table { font-size: 14px; } .post-body th, .post-body td { padding: 10px 8px; } }

/* Downloadable guide (budget post) */
.post-body .guide { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); align-items: center; margin: 2.4em 0 0; padding: clamp(24px, 3vw, 36px); background: var(--cream); border-radius: var(--radius); }
.post-body .guide__cover img { display: block; width: 100%; transition: transform .5s var(--ease); }
.post-body .guide__cover:hover img { transform: translateY(-4px) rotate(-1deg); }
.post-body .guide h2 { font-size: clamp(22px, 2.2vw, 28px); margin: 0 0 .6em; }
.post-body .guide h2 a { text-decoration: none; }
.post-body .guide p { font-size: 16px; }
.post-body .guide .btn { margin-top: 6px; text-decoration: none; color: var(--wine); }
.post-body .guide .btn:hover, .post-body .guide .btn:focus-visible { color: var(--white); }

.post-foot { margin-top: clamp(40px, 5vw, 56px); }
.post-cats { margin: 0; padding-top: 24px; font-size: 14px; color: var(--ink); }
.post-cats a { color: var(--wine); text-decoration: none; }
.post-cats a:hover { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }

.keep-reading h2 { margin-bottom: clamp(32px, 4vw, 48px); }

/* Reading progress: thin gold line under the header */
.read-progress { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 60; pointer-events: none; }
.read-progress span { display: block; height: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; }
html:not(.js) .read-progress { display: none; }

/* Closing call to action */
.cta { background: var(--wine); color: var(--white); padding: var(--section) 0; position: relative; overflow: hidden; }
.cta .wrap { position: relative; z-index: 1; }
.cta-bird { /* the firefinch bird from the logo, shown whole, tucked into the bottom-right corner */
  position: absolute; right: var(--gutter); bottom: clamp(28px, 4vw, 56px);
  width: clamp(220px, 26vw, 400px); height: auto;
  opacity: 0.16; pointer-events: none;
}
@media (max-width: 760px) {
  .cta { padding-bottom: 180px; }
  .cta-bird { top: auto; bottom: 32px; transform: none; width: 180px; opacity: 0.14; }
}
.cta .eyebrow { color: var(--gold); }
.cta h2 { color: var(--white); max-width: 18ch; margin-bottom: 28px; font-size: clamp(34px, 4.6vw, 64px); }
.cta h2 .accent.pink { color: var(--pink); }
.cta h2 .accent.gold { color: var(--gold); }
.cta p { font-size: 18px; max-width: 44ch; margin-bottom: 40px; color: rgba(255, 255, 255, 0.88); }

/* ---------- Footer ---------- */
.site-footer { background: var(--cream); color: var(--wine); padding: 64px 0 28px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; padding-bottom: 40px; border-bottom: 1px solid var(--wine-15); }
.footer-top .logo img { width: 150px; }
.footer-nav { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.footer-nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.footer-nav a { text-decoration: none; font-size: 15px; }
.footer-nav a:hover { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.footer-social { display: flex; gap: 10px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; font-size: 13px; }
.footer-bottom ul { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { text-decoration: underline; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: clamp(16px, 3vw, 32px); bottom: clamp(16px, 3vw, 32px); z-index: 55;
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%;
  background: var(--wine); color: var(--white); box-shadow: 0 10px 24px -10px rgba(91, 22, 50, 0.5);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s, background-color .3s var(--ease);
}
.to-top svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.to-top.is-shown { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--gold); color: var(--wine); }
.to-top:hover svg { transform: translateY(-2px); }
html:not(.js) .to-top { display: none; }
@media (max-width: 860px) { .cookie-bar:not([hidden]) ~ .to-top { bottom: 190px; } }

/* ---------- Cookie notice ---------- */
.cookie-bar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60;
  max-width: 760px; margin: 0 auto; padding: 16px 20px;
  display: flex; align-items: center; gap: 20px;
  background: var(--white); color: var(--wine); border: 1px solid var(--wine-15); border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(91, 22, 50, 0.12); font-size: 14px; line-height: 1.5;
}
.cookie-bar p { margin: 0; }
.cookie-bar[hidden] { display: none; }
@media (max-width: 600px) {
  .btn { padding: 15px 20px; font-size: 13px; letter-spacing: 0.08em; }
}
@media (max-width: 600px) { .cookie-bar { flex-direction: column; align-items: flex-start; } }

/* ---------- Scroll reveal (only when JavaScript runs, so bots and no-JS visitors see everything) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--delay, 0s); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

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

/* Legal pages (Privacy, Cookies): same reading column as posts, no image */
.legal { padding-bottom: var(--section); }
.legal .post-head { margin-bottom: clamp(32px, 4vw, 48px); }
.legal .post-head h1 { margin-bottom: 0; }
.legal .post-body h2 { font-size: clamp(22px, 2.2vw, 28px); }

/* 404 */
.not-found { padding-block: clamp(72px, 10vw, 140px); }
.not-found .lead { max-width: 40ch; margin: 0 0 32px; }
.not-found__links { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.listing-intro { max-width: 60ch; margin: 0 0 14px; font-size: 17px; line-height: 1.6; }

/* Accessibility: heading levels fixed in a few posts without changing their look */
.post-body .cols h3, .post-body .h-small { font-size: 17.5px; font-weight: 600; line-height: 1.4; margin: 1.5em 0 0.4em; }
.post-body .cols h3 { margin-top: 0; break-after: avoid; }
.post-body .h-small strong { font-weight: inherit; }
.post-body .post-kicker { font-size: 21px; font-weight: 500; line-height: 1.35; color: var(--wine); }
/* Keyboard focus ring: burgundy on light backgrounds, gold on burgundy ones */
:focus-visible { outline-color: var(--wine); }
.on-dark :focus-visible, .ways-band:not(.band--cream) :focus-visible { outline-color: var(--gold); }

/* Home icon in the top nav (label shown in the mobile menu only) */
.nav .nav-home { display: inline-flex; align-items: center; gap: 10px; }
.nav-home svg { width: 18px; height: 18px; flex: none; transform: translateY(4px); }
.nav ul { align-items: center; }
.nav-home__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 860px) {
  .nav-home__label { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .nav-home svg { width: 20px; height: 20px; transform: none; }
  .nav ul { align-items: flex-start; }
}

/* Budget guide: the cover image has wide built-in margins, so crop in on the tablet */
.post-body .guide { grid-template-columns: 260px minmax(0, 1fr); }
.post-body .guide__cover { display: block; overflow: hidden; border-radius: var(--radius); aspect-ratio: 3 / 4; }
.post-body .guide__cover img { height: 100%; object-fit: cover; transform: scale(1.22); }
.post-body .guide__cover:hover img { transform: scale(1.22) translateY(-4px) rotate(-1deg); }
@media (max-width: 600px) {
  .post-body .guide { grid-template-columns: 1fr; }
  .post-body .guide__cover { width: 100%; max-width: 240px; }
}

/* Homepage B: hero proof line */
.hero-copy .hero-proof { font-size: 16px; line-height: 1.6; color: var(--wine); max-width: 44ch; margin-bottom: 32px; }
