/* Pauline Goh Counselling | Psychotherapy — Heartwood Rings */

:root {
  /* palette */
  --forest-950: #10200f;
  --forest-900: #172b1b;
  --forest-800: #1e331e;
  --forest-700: #2a4a2e;
  --leaf: #3f7d2c;
  --leaf-bright: #86b84a;
  --amber: #c9812e;
  --amber-ink: #8a4a10;
  --amber-ink-hover: #6b3808;
  --honey: #f0c46a;
  --sapwood: #ecd6a2;
  --sapwood-deep: #e2c585;
  --bark: #33200f;
  --bark-soft: #5c3c20;
  --ivory: #f7eedb;
  --ivory-soft: #e6dcc3;

  /* type */
  --font-display: "Libre Caslon Text", "Iowan Old Style", Georgia, serif;
  --font-body: "Hanken Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  --step--1: 0.875rem;
  --step-0: 1.125rem;
  --step-1: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  --step-2: clamp(1.5rem, 1.25rem + 1vw, 2.125rem);
  --step-3: clamp(1.875rem, 1.4rem + 1.8vw, 3rem);
  --step-4: clamp(2.125rem, 1.4rem + 2.6vw, 3.75rem);

  /* space */
  --space-2xs: 0.375rem;
  --space-xs: 0.75rem;
  --space-s: 1rem;
  --space-m: 1.5rem;
  --space-l: 2.5rem;
  --space-xl: clamp(3.5rem, 2.5rem + 4vw, 6rem);
  --space-2xl: clamp(5rem, 3rem + 7vw, 9.5rem);
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 3rem);
  --measure: 66ch;

  --radius-pill: 999px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 4rem;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); overflow-x: clip; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--forest-800);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
::selection { background: var(--honey); color: var(--forest-900); }
:focus-visible { outline: 2px solid var(--honey); outline-offset: 3px; border-radius: 4px; }
.on-light :focus-visible, .on-light:focus-visible { outline-color: var(--amber-ink); }
html { scrollbar-color: var(--amber) var(--forest-900); }
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--forest-900); }
::-webkit-scrollbar-thumb { background: var(--amber); border-radius: 8px; border: 3px solid var(--forest-900); }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: var(--space-s); top: -100px; z-index: 100; background: var(--honey); color: var(--forest-900); padding: 0.6rem 1rem; border-radius: var(--radius-pill); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: var(--space-s); }

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0.7rem 1.6rem;
  border-radius: var(--radius-pill);
  background: var(--amber); color: #1d1206;
  font-family: var(--font-body); font-weight: 700; font-size: 0.9375rem;
  letter-spacing: 0.035em; text-transform: uppercase; text-decoration: none;
  border: 0; cursor: pointer;
  transition: background-color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.btn:hover { background: #dc9440; }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.btn--small { min-height: 42px; padding: 0.5rem 1.3rem; font-size: 0.875rem; }

.text-link {
  display: inline-flex; align-items: baseline; gap: 0.45em;
  font-weight: 600; color: var(--amber-ink); text-decoration: none;
  border-bottom: 1px solid currentColor; padding-bottom: 0.1em;
  transition: color 0.25s, gap 0.35s var(--ease-out);
}
.text-link svg { width: 0.85em; height: 0.85em; flex: none; align-self: center; }
.text-link:hover { color: var(--amber-ink-hover); gap: 0.7em; }
.on-dark .text-link { color: var(--honey); }
.on-dark .text-link:hover { color: #ffe0a0; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-m);
  padding: 0 clamp(1rem, 0.4rem + 1vw, 2rem);
  color: #fff;
  transition: background-color 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}
.site-header::before { content: ""; position: absolute; inset: 0 0 -3rem 0; z-index: -1; pointer-events: none; background: linear-gradient(rgba(10, 20, 10, 0.62), rgba(10, 20, 10, 0.25) 60%, rgba(10, 20, 10, 0)); transition: opacity 0.45s var(--ease-out); }
.site-header.is-solid::before, .nav-open .site-header::before { opacity: 0; }
.site-header.is-solid { background: rgba(22, 38, 22, 0.96); box-shadow: 0 1px 0 rgba(240, 196, 106, 0.18), 0 10px 30px -12px rgba(0,0,0,.45); }
@supports (backdrop-filter: blur(1px)) {
  .site-header.is-solid { background: rgba(22, 38, 22, 0.86); backdrop-filter: blur(14px) saturate(1.1); }
}
.brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out); }
.brand img:first-child { width: 42px; height: auto; }
.brand img.brand__word { width: 132px; height: auto; }
.brand__tag { display: block; font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ivory); margin-top: 2px; }
.site-header:not(.is-solid) .brand img { filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.55)); }
.site-header:not(.is-solid) .brand__tag { text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.page-home .site-header:not(.is-solid) .brand { opacity: 0; transform: translateY(-6px); pointer-events: none; }

.site-nav { display: flex; align-items: center; gap: clamp(1rem, 0.2rem + 1.6vw, 2.25rem); }
.site-nav ul { display: flex; gap: clamp(1rem, 0.2rem + 1.6vw, 2.25rem); list-style: none; margin: 0; padding: 0; }
.site-nav a { white-space: nowrap; }
.site-nav a:not(.btn) {
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
  text-decoration: none; padding: 0.4rem 0; position: relative;
}
.site-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--honey); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease-out);
}
.site-nav a:not(.btn):hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-header:not(.is-solid) .site-nav a:not(.btn) { text-shadow: 0 1px 12px rgba(0,0,0,.45); }

.nav-toggle { display: none; }

@media (max-width: 1120px) {
  :root { --header-h: 4.25rem; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; margin-right: -8px;
    background: none; border: 0; color: inherit; cursor: pointer; border-radius: 50%;
  }
  .nav-toggle svg { width: 26px; height: 26px; }
  .nav-toggle .icon-close { display: none; }
  .nav-open .nav-toggle .icon-open { display: none; }
  .nav-open .nav-toggle .icon-close { display: block; }
  .site-nav {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; justify-content: center; align-items: flex-start; gap: var(--space-l);
    padding: calc(var(--header-h) + var(--space-l)) var(--gutter) var(--space-xl);
    background: var(--forest-900) url("../img/rings-field.svg") no-repeat 120% 110% / 150vmax auto;
    visibility: hidden; opacity: 0;
    transition: opacity 0.4s var(--ease-out), visibility 0s linear 0.4s;
  }
  .nav-open .site-nav { visibility: visible; opacity: 1; transition: opacity 0.4s var(--ease-out); }
  .site-nav ul { flex-direction: column; gap: var(--space-s); }
  .site-nav a:not(.btn) { font-family: var(--font-display); font-size: var(--step-3); font-weight: 400; letter-spacing: -0.01em; text-transform: none; }
  .nav-open .site-header { background: transparent; box-shadow: none; backdrop-filter: none; }
  .nav-open .brand { opacity: 1 !important; transform: none !important; pointer-events: auto !important; }
  .nav-open { overflow: hidden; }
}

/* ---------- fixed ("sticky") media ---------- */
.fixed-media { position: relative; clip-path: inset(0); }
.fixed-media__img { position: fixed; inset: 0; width: 100%; height: 100vh; height: 100lvh; object-fit: cover; z-index: -1; }
.fixed-media__img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- home hero ---------- */
.hero {
  min-height: max(83svh, 520px);
  display: flex; flex-direction: column; align-items: center;
  padding: max(15svh, calc(var(--header-h) + 1rem)) var(--gutter) max(24svh, 150px);
  text-align: center; color: var(--ivory);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 50% 40% at 50% 40%, rgba(12, 22, 11, 0.34), transparent 70%),
    linear-gradient(to bottom, rgba(12, 22, 11, 0.32), rgba(12, 22, 11, 0.04) 20%, rgba(12, 22, 11, 0.02) 60%, rgba(12, 22, 11, 0.3));
}
.hero__mark { width: clamp(84px, 4.2rem + 3vw, 128px); height: auto; margin-bottom: clamp(0.5rem, 1.6svh, 1.4rem); filter: drop-shadow(0 4px 18px rgba(0,0,0,.35)); }
.hero__quote { margin: 0; width: min(100%, max(42vw, 19em)); }
.hero__quote p {
  margin: 0;
  -webkit-text-stroke: 0.35px currentColor; letter-spacing: 0.004em;
  font-family: var(--font-display); font-size: clamp(1.5rem, 0.4rem + 1.55vw, 3.4rem); line-height: 1.2; letter-spacing: -0.012em;
  text-shadow: 0 2px 24px rgba(0,0,0,.45);
}
.hero__quote footer { margin-top: clamp(0.35rem, 1svh, 0.8rem); font-family: var(--font-display); font-size: clamp(0.875rem, 0.6rem + 0.35vw, 1.1rem); color: var(--ivory-soft); text-shadow: 0 1px 12px rgba(0,0,0,.5); }
.hero .btn { margin-top: clamp(1.5rem, 4svh, 2.75rem); min-height: 42px; padding: 0.5rem 1.4rem; font-size: 0.875rem; }

/* ---------- ring field (the cut round) ---------- */
.ring-field { position: relative; z-index: 2; background: var(--forest-800); display: flow-root; }
/* The disc is wider than a phone screen, so a full-width box clips it sideways only.
   (overflow-x: clip on the section itself also clips vertically in iOS Safari.) */
.ring-field__disc {
  --disc-w: max(74vw, 760px);
  --disc-lift: 19svh;
  position: absolute; left: 0; right: 0; top: calc(var(--disc-lift) * -1); z-index: -1;
  height: var(--disc-w);
  overflow: hidden;
  pointer-events: none;
}
.ring-field__disc::before {
  content: ""; position: absolute; left: 50%; top: 0;
  width: var(--disc-w); aspect-ratio: 1; transform: translateX(-50%);
  background: url("../img/rings-disc.svg") center / 100% 100% no-repeat;
}
.intro {
  position: relative; max-width: 72rem; margin: 0 auto;
  padding: 0 var(--gutter) var(--space-2xl);
  margin-top: calc(-9svh);
  text-align: center;
}
.intro__lead { max-width: max(37vw, 17em); margin-inline: auto; font-family: var(--font-display); font-size: clamp(1.2rem, 0.4rem + 1.12vw, 2rem); line-height: 1.42; color: var(--ivory); margin-bottom: var(--space-xl); }
.intro__lead span { display: block; }
.intro__body { text-align: left; font-size: var(--step-0); color: var(--ivory-soft); max-width: 62ch; margin: 0 auto; }
@media (min-width: 900px) {
  .intro__body { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(5rem, 3rem + 5vw, 9rem); align-items: start; }
  .intro__body > p:first-child { text-align: right; }
  .intro__body p { margin: 0; }
}
.intro__body > p:first-child { font-family: var(--font-display); font-size: var(--step-1); line-height: 1.5; color: var(--ivory); }
.intro__quote, .intro__quote blockquote { margin: 0; }
.intro__quote figcaption { margin-top: var(--space-m); padding-left: clamp(2rem, 12%, 5rem); font-size: 0.9375rem; line-height: 1.5; }
.intro__quote figcaption span { display: block; }
.intro__name { font-family: var(--font-display); font-size: var(--step-0); color: var(--honey); margin-bottom: 0.2em; }

/* the run wraps the ring field and offerings so the root line can pass between them */
@media (max-width: 899px) {
  .ring-field__disc { -webkit-mask-image: linear-gradient(to bottom, #000 0 20%, transparent 38%); mask-image: linear-gradient(to bottom, #000 0 20%, transparent 38%); }
}
.root-run { position: relative; z-index: 2; background: var(--forest-800); }
.root-run > .ring-field { background: transparent; z-index: auto; }
.root-run > .sapwood { z-index: auto; }
.root-run > .root-line { z-index: 1; }
.heartwood > .root-line { z-index: 0; }

/* ---------- root line (signature) ---------- */
.root-line { position: absolute; left: 0; top: 0; width: 100%; pointer-events: none; overflow: visible; z-index: 0; }
.root-line path { fill: none; stroke: var(--leaf-bright); stroke-width: 2; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.root-line path.is-thin { stroke-width: 1.25; opacity: 0.8; }

/* ---------- offerings (sapwood) ---------- */
.sapwood {
  position: relative; z-index: 2;
  background: var(--sapwood) url("../img/rings-sapwood.svg") no-repeat 50% 0 / max(160vw, 1600px) auto;
  color: var(--bark);
}
.offerings { padding: var(--space-2xl) var(--gutter); position: relative; }
.offerings__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2rem, 1rem + 3vw, 4.5rem);
  max-width: 82rem; margin: 0 auto;
}
.offering { display: flex; flex-direction: column; }
.slice {
  position: relative; display: grid; place-items: center;
  width: min(100%, 300px); aspect-ratio: 1; margin: 0 auto var(--space-l);
  text-decoration: none; color: var(--bark);
  isolation: isolate;
}
.slice img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; z-index: -1; transition: transform 0.9s var(--ease-out); filter: saturate(0.45) brightness(1.2) contrast(0.72) drop-shadow(0 14px 22px rgba(70, 40, 10, 0.28)); }
.slice img { transform: rotate(var(--rot, 0deg)); }
.slice:hover img { transform: rotate(calc(var(--rot, 0deg) + 8deg)) scale(1.02); }
.slice h2 {
  max-width: 60%; text-align: center; align-self: end; margin-bottom: 57%;
  font-size: clamp(1.2rem, 1rem + 0.45vw, 1.5rem); line-height: 1.12; color: #1f1206;
  -webkit-text-stroke: 0.4px #1f1206;
  text-shadow: 0 0 2px rgba(250, 232, 196, 0.95), 0 0 10px rgba(250, 232, 196, 0.85);
}
.slice__two-trees { position: absolute; top: 17%; left: 50%; width: 30%; transform: translateX(-50%); opacity: 0.9; }
.offering__text { font-size: 1.0625rem; color: var(--bark); }
.offering__text p { max-width: 60ch; }
.offering .text-link { margin-top: var(--space-m); align-self: flex-start; }
.offering .text-link span { text-align: left; }

@media (max-width: 1000px) {
  .offerings__grid { grid-template-columns: 1fr; max-width: 40rem; gap: var(--space-2xl); }
  .slice { width: min(78vw, 280px); }
}

/* ---------- testimonials ---------- */
.voices { color: var(--ivory); text-align: center; padding: var(--space-2xl) var(--gutter); }
.voices::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgba(16, 32, 15, 0.74), rgba(16, 32, 15, 0.66)); }
.voices__stage { position: relative; max-width: 58rem; margin: 0 auto; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--space-m); }
.voices__track { display: grid; }
.voice {
  grid-area: 1 / 1; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 0.7s var(--ease-out), transform 0.9s var(--ease-out), visibility 0s linear 0.7s;
}
.voice.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity 0.9s var(--ease-out) 0.1s, transform 1.1s var(--ease-out) 0.1s; }
.voice p { font-family: var(--font-body); font-size: clamp(1.0625rem, 0.98rem + 0.3vw, 1.25rem); line-height: 1.65; max-width: 56ch; margin-inline: auto; }
.voice footer { margin-top: var(--space-m); font-family: var(--font-body); font-weight: 600; letter-spacing: 0.14em; color: var(--honey); }
.voices__arrow {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: transparent; color: var(--ivory); border: 1px solid rgba(240, 196, 106, 0.55); cursor: pointer;
  transition: background-color 0.3s, border-color 0.3s;
}
.voices__arrow:hover { background: rgba(240, 196, 106, 0.14); border-color: var(--honey); }
.voices__arrow svg { width: 22px; height: 22px; }
.voices__title { margin: 0 0 var(--space-l); font-family: var(--font-body); font-size: 0.9375rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--honey); }
.voices__controls { display: flex; justify-content: center; align-items: center; gap: 0.5rem; margin-top: var(--space-l); }
.voices__dots { display: flex; justify-content: center; gap: 0.25rem; margin: 0; list-style: none; padding: 0; }
.voices__pause { width: 32px; height: 32px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--honey); cursor: pointer; opacity: 0.75; transition: opacity 0.3s; }
.voices__pause:hover, .voices__pause:focus-visible { opacity: 1; }
.voices__pause svg { width: 14px; height: 14px; }
.voices__dots button {
  width: 32px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center;
}
.voices__dots button::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--honey); transition: background-color 0.3s, transform 0.3s; }
.voices__dots button[aria-current="true"]::before { background: var(--honey); transform: scale(1.25); }
@media (max-width: 640px) {
  .voices { padding-inline: 1.25rem; }
  .voices__stage { grid-template-columns: 1fr; }
  .voices__arrow { display: none; }
}

/* ---------- heartwood close ---------- */
.heartwood {
  position: relative; z-index: 2; overflow: hidden;
  background: var(--forest-800);
  padding: var(--space-2xl) var(--gutter);
  text-align: center;
  min-height: min(92svh, 900px); display: grid; place-items: center;
}
.heartwood__rings {
  position: absolute; left: 50%; top: 50%; z-index: -1; width: max(130vmax, 1400px); aspect-ratio: 1;
  transform: translate(-50%, -50%) scale(var(--ring-scale, 1));
  background: url("../img/rings-field.svg") center / contain no-repeat;
}
.heartwood__inner { max-width: 44rem; position: relative; }
.heartwood__lead { font-family: var(--font-display); font-size: clamp(1.5rem, 0.4rem + 1.55vw, 3.4rem); line-height: 1.2; letter-spacing: -0.012em; margin-bottom: var(--space-l); text-wrap: balance; }
.heartwood__lead em { font-style: italic; color: var(--honey); }
.heartwood__inner p:not(.heartwood__lead) { font-family: var(--font-display); font-size: var(--step-1); color: var(--ivory-soft); margin-bottom: 0.5em; }
.heartwood .btn { margin-top: var(--space-l); }

/* ---------- inner page hero ---------- */
.page-hero {
  min-height: max(72svh, 460px);
  display: flex; align-items: flex-end;
  color: var(--ivory);
}
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, rgba(12, 22, 11, 0.5), rgba(12, 22, 11, 0.05) 30%, rgba(12, 22, 11, 0.25)); }
.page-hero--portrait .fixed-media__img img { object-position: 28% 30%; }
.page-title {
  position: relative; z-index: 2; background: var(--forest-800); display: flow-root;
}
.page-title .ring-field__disc { --disc-w: max(72vw, 720px); --disc-lift: 14svh; }
.page-title__inner { position: relative; max-width: 50rem; margin: 0 auto; padding: 0 var(--gutter) var(--space-xl); margin-top: -4svh; text-align: center; }
.page-title h1 { font-size: var(--step-4); max-width: 14ch; margin-inline: auto; }
.page-title__format { display: block; margin-top: var(--space-s); font-size: 0.875rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--honey); }

/* ---------- prose ---------- */
.prose-band { position: relative; z-index: 2; padding: var(--space-xl) var(--gutter) var(--space-2xl); }
.prose-band.on-dark { background: var(--forest-800) url("../img/rings-field.svg") no-repeat 50% -40vmax / 150vmax auto; }
.prose { max-width: var(--measure); margin: 0 auto; }
.prose > p:first-child { font-family: var(--font-display); font-size: var(--step-1); line-height: 1.55; }
.on-dark .prose { color: var(--ivory-soft); }
.on-dark .prose > p:first-child { color: var(--ivory); }
.prose h2 { font-size: var(--step-3); margin: var(--space-xl) 0 var(--space-m); color: inherit; }
.prose h3 { font-family: var(--font-body); font-size: 0.875rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; margin: var(--space-l) 0 var(--space-s); color: var(--bark-soft); }
.on-dark .prose h3 { color: var(--honey); }
.prose .lead-in { font-family: var(--font-display); font-size: var(--step-1); margin-top: var(--space-l); }

/* list rendered as a ring of leaves */
.leaf-list { list-style: none; padding: 0; margin: var(--space-m) 0 var(--space-l); display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17.5rem), 1fr)); gap: 0 var(--space-l); }
.leaf-list li { position: relative; padding: 0.7rem 0 0.7rem 1.9rem; border-bottom: 1px solid rgba(92, 60, 32, 0.22); line-height: 1.45; }
.leaf-list li::before {
  content: ""; position: absolute; left: 0; top: 0.95rem; width: 14px; height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 14C2 7 7 2 14 2c0 7-5 12-12 12Z' fill='%233f7d2c'/%3E%3Cpath d='M3 13 11 5' stroke='%23ecd6a2' stroke-width='1.1' fill='none'/%3E%3C/svg%3E") center / contain no-repeat;
}
.on-dark .leaf-list li { border-bottom-color: rgba(240, 196, 106, 0.2); }
.leaf-list--single { grid-template-columns: 1fr; }

/* fee facts */
.facts { margin: var(--space-xl) 0 0; padding: var(--space-l) 0 0; border-top: 1px solid rgba(240, 196, 106, 0.35); list-style: none; display: grid; gap: var(--space-m); }
.on-light .facts { border-top-color: rgba(92, 60, 32, 0.35); }
.facts li { position: relative; padding-left: 2.2rem; }
.facts li::before { content: ""; position: absolute; left: 0; top: 0.2em; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: url("../img/rings-disc.svg") center / cover; box-shadow: 0 0 0 1px var(--amber); }
.facts strong { font-weight: 700; color: var(--honey); }
.on-light .facts strong { color: var(--amber-ink); }

/* resume timeline */
.timeline { list-style: none; margin: var(--space-m) 0 var(--space-l); padding: 0; border-left: 1px solid rgba(92, 60, 32, 0.35); }
.timeline li { position: relative; padding: 0 0 var(--space-m) var(--space-l); }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 0.45em; width: 13px; height: 13px; border-radius: 50%; background: var(--sapwood); border: 2px solid var(--amber); }
.on-dark .timeline { border-left-color: rgba(240, 196, 106, 0.35); }
.on-dark .timeline li::before { background: var(--forest-800); }

/* two-column prose on wide screens for resumes */
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 var(--space-xl); max-width: 76rem; margin: 0 auto; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split > .prose:last-child { padding-top: calc(var(--step-3) * 1.15 + var(--space-m)); }
  .split > .prose:last-child > h3:first-child { margin-top: var(--space-m); }
}

.pull-quote { margin: var(--space-xl) auto 0; max-width: 40rem; text-align: center; }
.pull-quote p { font-family: var(--font-display); font-size: var(--step-1); line-height: 1.55; color: var(--ivory); }
.pull-quote p { margin: 0; }
.pull-quote footer { margin-top: 0.75rem; font-weight: 600; letter-spacing: 0.02em; color: var(--honey); }

.portrait-inline { margin: var(--space-xl) calc(var(--gutter) * -1) 0; }
.portrait-inline img { width: 100%; height: auto; border-radius: 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 50rem; margin: 0 auto; border-top: 1px solid rgba(92, 60, 32, 0.35); }
.faq__item { border-bottom: 1px solid rgba(92, 60, 32, 0.35); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-m);
  padding: var(--space-m) 0; cursor: pointer; list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary h2 { font-size: var(--step-2); line-height: 1.25; text-wrap: pretty; transition: color 0.25s; }
.faq__item summary:hover h2 { color: var(--amber-ink); }
.faq__icon {
  position: relative; flex: none; width: 2.5rem; height: 2.5rem; border-radius: 50%;
  border: 1px solid var(--amber-ink); color: var(--amber-ink);
  transition: background-color 0.3s, color 0.3s;
}
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 0.9rem; height: 1.5px;
  background: currentColor; transform: translate(-50%, -50%); transition: transform 0.45s var(--ease-out);
}
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open] .faq__icon { background: var(--amber-ink); color: var(--sapwood); }
.faq__item[open] .faq__icon::after { transform: translate(-50%, -50%); }
.faq__answer { max-width: var(--measure); padding: 0 0 var(--space-l); }
.faq__answer a { color: var(--amber-ink); font-weight: 600; }
.faq__answer a:hover { color: var(--amber-ink-hover); }
.faq__fees { list-style: none; margin: 0 0 1.1em; padding: 0; font-weight: 600; }
@media (prefers-reduced-motion: no-preference) {
  @supports (interpolate-size: allow-keywords) {
    .faq__item { interpolate-size: allow-keywords; }
    .faq__item::details-content { block-size: 0; overflow: clip; transition: block-size 0.5s var(--ease-out), content-visibility 0.5s allow-discrete; }
    .faq__item[open]::details-content { block-size: auto; }
  }
}

/* ---------- blog ---------- */
.page-title--post h1 { font-size: var(--step-3); max-width: 20ch; }
.post-list { list-style: none; max-width: 50rem; margin: 0 auto; padding: 0; border-top: 1px solid rgba(92, 60, 32, 0.35); }
.post-card { padding: var(--space-l) 0; border-bottom: 1px solid rgba(92, 60, 32, 0.35); }
.post-card__date { display: block; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bark-soft); margin-bottom: var(--space-xs); }
.post-card h2 { font-size: var(--step-2); line-height: 1.25; margin-bottom: var(--space-s); }
.post-card h2 a { text-decoration: none; transition: color 0.25s; }
.post-card h2 a:hover { color: var(--amber-ink); text-decoration: underline; }
.post-card p { max-width: var(--measure); }
.post-card .text-link { margin-top: var(--space-xs); }
.post a:not(.text-link) { color: var(--amber-ink); font-weight: 600; overflow-wrap: anywhere; }
.post a:not(.text-link):hover { color: var(--amber-ink-hover); }
.post ol { margin: 0 0 1.1em; padding-left: 1.6em; }
.post ol li { padding: 0.2rem 0 0.2rem 0.3rem; }
.post ol li::marker { color: var(--amber-ink); font-weight: 700; }
.post__back { margin-top: var(--space-xl); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; z-index: 2; padding: var(--space-xl) var(--gutter); text-align: center; background: var(--forest-900); overflow: hidden; }
.cta-band::before { content: ""; position: absolute; left: 50%; top: 50%; width: 900px; aspect-ratio: 1; transform: translate(-50%, -50%); background: url("../img/rings-field.svg") center / contain no-repeat; opacity: .8; }
.cta-band > * { position: relative; }

/* ---------- contact form ---------- */
.form { max-width: 40rem; margin: 0 auto; display: grid; gap: var(--space-m); }
.field { display: grid; gap: 0.45rem; }
.field label { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--honey); }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ivory);
  background: rgba(16, 32, 15, 0.55); border: 1px solid rgba(240, 196, 106, 0.4); border-radius: 12px;
  padding: 0.85rem 1rem; transition: border-color 0.25s, background-color 0.25s; caret-color: var(--honey);
}
.field textarea { min-height: 11rem; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: rgba(240, 196, 106, 0.7); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--honey); background: rgba(16, 32, 15, 0.8); box-shadow: 0 0 0 3px rgba(240, 196, 106, 0.25); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #f08a6a; }
.field__error { font-size: 0.9375rem; color: #ffb49c; min-height: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__status { min-height: 1.6em; font-weight: 600; }
.form__status[data-state="success"] { color: var(--leaf-bright); }
.form__status[data-state="error"] { color: #ffb49c; }
.form .btn { justify-self: start; }
.btn.is-loading { pointer-events: none; opacity: .75; }

/* contact page: intro above the form, other ways to reach her below it, all on the form's width */
.contact { max-width: 40rem; margin: 0 auto; }
.contact .prose { max-width: none; }
.contact__intro { margin-bottom: var(--space-xl); }
.contact__intro .text-link { display: inline; }
.contact__more { margin-top: var(--space-xl); padding-top: var(--space-l); border-top: 1px solid rgba(240, 196, 106, 0.35); }
.contact__ways { list-style: none; margin: var(--space-s) 0 0; padding: 0; display: grid; gap: var(--space-2xs); }
.contact__ways strong { font-weight: 700; color: var(--honey); }
.contact__ways a { color: var(--ivory); }
.contact__ways a:hover { color: var(--honey); }
.contact .facts { margin-top: var(--space-l); }

/* ---------- footer ---------- */
.site-footer { position: relative; z-index: 2; background: var(--forest-950); color: var(--ivory-soft); padding: var(--space-xl) var(--gutter) var(--space-l); }
.site-footer__inner { max-width: 82rem; margin: 0 auto; display: grid; gap: var(--space-l); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 860px) { .site-footer__inner { grid-template-columns: 1.2fr 2fr auto; } }
.site-footer .brand img:first-child { width: 54px; }
.site-footer .brand img.brand__word { width: 150px; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-l); }
.footer-nav a { text-decoration: none; font-size: 0.9375rem; }
.footer-nav a:hover { color: var(--honey); text-decoration: underline; }
.site-footer__base { max-width: 82rem; margin: var(--space-xl) auto 0; padding-top: var(--space-m); border-top: 1px solid rgba(240, 196, 106, 0.18); font-size: 0.875rem; color: rgba(230, 220, 195, 0.75); }

/* On narrow screens the disc is masked to fade out below its top 152px, so the
   viewport-height offsets are capped: in a tall, narrow window they would otherwise
   lift the disc and the opening text clear of the section they belong to. */
@media (max-width: 899px) {
  .ring-field__disc { --disc-lift: min(19svh, 150px); }
  .page-title .ring-field__disc { --disc-lift: min(14svh, 130px); }
  .intro { margin-top: max(-9svh, -64px); }
  .page-title__inner { margin-top: max(-4svh, -32px); }
}

/* ---------- light-section tokens ---------- */
.on-light { color: var(--bark); }
.on-light .prose > p:first-child { color: var(--bark); }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .heartwood__rings { transform: translate(-50%, -50%) !important; }
}
