/* Kimberly Berg — energy readings
   Candlelit, not bright: a deep warm ground, parchment type, one gold.
   The site opens on a threshold you cross rather than a landing page. */

:root {
  --ground:    #15111d;   /* deep plum-ink, not brown */
  --ground-2:  #1c1727;
  --paper:     #ece3d0;   /* the sheet the quote sits on */
  --paper-ink: #26201a;
  --parch:     #f1e6d4;
  --parch-dim: #b9a88f;
  --gold:      #dcae5a;
  --ember:     #c2603a;
  --rule:      rgba(241,230,212,.15);
  --rule-firm: rgba(241,230,212,.3);

  --display: "Playfair Display", "Iowan Old Style", Georgia, serif;
  --body:    "Playfair Display", "Iowan Old Style", Georgia, serif;

  --wrap: 1060px;
  --gutter: 24px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--parch);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.78;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--gold); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: var(--parch); }

h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0 0 .6em; line-height: 1.08; letter-spacing: -.005em; }
h1 { font-size: clamp(2.9rem, 7vw, 5rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.22rem; }
p  { margin: 0 0 1.15em; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap.narrow { max-width: var(--wrap); }

section { padding: clamp(72px, 9vw, 120px) 0; }
.hero { padding-top: clamp(40px, 6vw, 80px); }

.skip {
  position: absolute; left: -9999px;
  background: var(--parch); color: var(--ground); padding: 10px 16px; z-index: 90;
}
.skip:focus { left: 12px; top: 12px; }

/* =========================================================
   THE THRESHOLD
   Hidden entirely without JS — the page is never gated.
   ========================================================= */
.threshold { display: none; }
html.threshold-closed .threshold { display: grid; }
html.threshold-closed, html.threshold-closed body { overflow: hidden; height: 100%; }

.threshold {
  position: fixed; inset: 0; z-index: 80;
  place-items: center;
  background: var(--ground);
  transition: opacity 1.1s ease, visibility 1.1s;
}
html.threshold-crossed .threshold { opacity: 0; visibility: hidden; pointer-events: none; }

.threshold-veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(58% 48% at 50% 46%, rgba(21,17,29,.16) 0%, rgba(21,17,29,.82) 62%, rgba(21,17,29,.97) 100%),
    url("assets/backdrop-sky.jpg") center 45% / cover no-repeat;
  animation: drift 34s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to   { transform: scale(1.14) translate3d(0, -1.4%, 0); }
}
@media (prefers-reduced-motion: reduce) { .threshold-veil { animation: none; } }

.threshold-inner { position: relative; text-align: center; padding: 0 var(--gutter); }
.threshold-label {
  font-family: var(--body);
  font-size: .82rem; letter-spacing: .34em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 2.4em; opacity: .9;
}
.threshold-name {
  font-family: var(--display);
  font-size: clamp(2.6rem, 8vw, 4.6rem); line-height: 1; margin: 0 0 1.5em;
  color: var(--parch);
}

.threshold-inner { cursor: pointer; }
.enter {
  appearance: none; background: none; border: 0; cursor: pointer;
  padding: 12px 2px 10px; position: relative;
  font-family: var(--body); font-size: .92rem;
  letter-spacing: .42em; text-indent: .42em;   /* tracking pushes the centre right */
  color: var(--parch-dim);
  transition: color .6s;
}
.enter::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: rgba(220,174,90,.4);
  transform: scaleX(.34); transform-origin: 50% 50%;
  transition: transform 1s cubic-bezier(.2,.7,.3,1), background 1s;
}
.threshold-inner:hover .enter,
.enter:focus-visible { color: var(--parch); }
.threshold-inner:hover .enter::after,
.enter:focus-visible::after { transform: scaleX(1); background: var(--gold); }
.enter:focus-visible { outline: none; }

/* the page itself arrives once the threshold is crossed */
html.threshold-closed .site-header,
html.threshold-closed main,
html.threshold-closed .site-footer { opacity: 0; }
.site-header, main, .site-footer {
  opacity: 1;
  transition: opacity 1.2s ease .25s, transform 1.2s ease .25s;
}
html.threshold-closed main { transform: translateY(14px); }
@media (prefers-reduced-motion: reduce) {
  .site-header, main, .site-footer { transition: none; }
  html.threshold-closed main { transform: none; }
}

/* ---------- header ---------- */
.site-header {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  max-width: var(--wrap); margin-inline: auto;
  padding: 26px var(--gutter);
  border-bottom: 1px solid var(--rule);
}
.wordmark {
  font-family: var(--display); font-size: 1.06rem; text-decoration: none; color: var(--parch);
}
.wordmark span { color: var(--gold); padding: 0 .1em; }
.site-header nav { display: flex; gap: clamp(16px, 2.6vw, 28px); flex-wrap: wrap; }
.site-header nav a { font-size: .95rem; text-decoration: none; color: var(--parch-dim); }
.site-header nav a:hover { color: var(--gold); }

/* ---------- hero: her sentence, nothing else ----------
   No name plate, no headshot, no button pair. You cross the threshold,
   which already carried her name, and land inside what she says. */
.hero {
  position: relative;
  max-width: var(--wrap); margin-inline: auto;
  padding: clamp(40px, 7vh, 96px) var(--gutter) clamp(104px, 15vh, 180px);
  text-align: center;
  min-height: 80vh; min-height: 80svh;
  display: grid; align-content: center;
}
.statement {
  font-size: clamp(2.5rem, 7.4vw, 6rem);
  line-height: 1.04; letter-spacing: -.018em;
  max-width: 18ch; margin: 0 auto 1em;
  color: var(--parch); text-wrap: balance;
}
.statement-by {
  font-size: 1.08rem; color: var(--parch-dim);
  margin: 0 auto 2.2em; max-width: 52ch;
}
.statement-link {
  display: inline-block; font-size: 1.02rem; color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(220,174,90,.45); padding-bottom: 4px;
  transition: border-color .3s, color .3s;
}
.statement-link:hover { color: var(--parch); border-bottom-color: var(--parch); }


/* ---------- buttons ---------- */
.btn { display: inline-block; font-size: .96rem; text-decoration: none; }
.btn-primary {
  border: 1px solid var(--rule-firm); color: var(--parch);
  padding: 14px 30px; letter-spacing: .04em;
  transition: border-color .3s, color .3s, box-shadow .3s;
}
.btn-primary:hover { border-color: var(--gold); color: var(--gold); box-shadow: 0 0 34px -12px rgba(220,174,90,.5); }
.btn-ghost { color: var(--parch-dim); text-decoration: underline; }
.btn-ghost:hover { color: var(--gold); }
.btn-wide { display: inline-block; }
.btn:focus-visible, a:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }

/* ---------- what it is ---------- */
.two-col { display: grid; gap: clamp(30px, 5vw, 60px); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) {
  /* text first in the DOM, so the wide track is the first one */
  .two-col { grid-template-columns: .64fr .36fr; }
}
.two-col p { max-width: 62ch; color: var(--parch); margin-bottom: 1.35em; }
.two-col p.lead { font-size: 1.24rem; line-height: 1.55; color: var(--parch); }
.portrait { margin: 0; }
.portrait img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover;
  filter: saturate(.9) brightness(.94);
  border-radius: 50% 50% 4px 4px / 30% 30% 3px 3px;   /* a doorway */
}
.portrait { position: relative; }
.portrait::after {
  content: ""; position: absolute; inset: -9px;
  border: 1px solid rgba(220,174,90,.28);
  border-radius: 50% 50% 6px 6px / 29% 29% 4px 4px;
  pointer-events: none;
}

/* ---------- how it works ---------- */
/* A sequence, so it always reads as one: four across on wide screens with
   arrows between, a single stack with arrows pointing down below that.
   The 2x2 is gone - it broke the order into two unrelated rows. */
.steps { list-style: none; margin: 46px 0 0; padding: 0; display: grid; gap: 58px; grid-template-columns: 1fr; }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 40px 60px; } }
.steps li {
  position: relative;
  border: 1px solid var(--rule);
  background: rgba(236,227,208,.035);
  padding: 22px 22px 26px;
  transition: border-color .5s, background .5s;
}
.steps li:hover { border-color: rgba(220,174,90,.4); background: rgba(236,227,208,.06); }

/* arrow: a hairline with a chevron head, drawn rather than a glyph */
.steps li + li::before,
.steps li + li::after { content: ""; position: absolute; background: none; }
.steps li + li::before {
  width: 22px; height: 1px; background: rgba(220,174,90,.55);
}
.steps li + li::after {
  width: 6px; height: 6px;
  border-top: 1px solid rgba(220,174,90,.55);
  border-right: 1px solid rgba(220,174,90,.55);
}
/* stacked: pointing down, centred in the gap above each box */
.steps li + li::before { left: 50%; top: -34px; width: 1px; height: 24px; transform: translateX(-50%); }
.steps li + li::after  { left: 50%; top: -18px; transform: translateX(-50%) rotate(135deg); }
@media (min-width: 1000px) {
  /* one row: pointing across, centred in the gap between boxes */
  .steps li + li::before { left: -41px; top: 50%; width: 26px; height: 1px; transform: translateY(-50%); }
  .steps li + li::after  { left: -22px; top: 50%; transform: translateY(-50%) rotate(45deg); }
}
.step-n { display: block; font-size: .85rem; color: var(--gold); margin-bottom: 14px; }
.steps h3 { margin: 0 0 .4em; }
.steps p { color: var(--parch-dim); margin: 0; font-size: 1rem; line-height: 1.6; }

/* ---------- quote ---------- */
/* the painting is the surface the quote is laid on, not a band of its own:
   it fades into the ground top and bottom so it has no hard edges */
.quote-band {
  position: relative;
  padding: clamp(110px, 16vh, 200px) 0;
  background: url("assets/backdrop-sky.jpg") center 45% / cover no-repeat;
}
.quote-band::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, var(--ground) 0%, rgba(21,17,29,.42) 26%,
                    rgba(21,17,29,.42) 74%, var(--ground) 100%);
}
.quote-band .wrap { position: relative; }
.quote-band .wrap { display: grid; place-items: center; }
.pullquote {
  margin: 0; max-width: 660px; text-align: center;
  background: var(--paper); color: var(--paper-ink);
  padding: clamp(40px, 5vw, 66px) clamp(30px, 4.5vw, 58px) clamp(34px, 4vw, 52px);
  transform: rotate(-.7deg);
  box-shadow: 0 34px 70px rgba(0,0,0,.5), 0 2px 0 rgba(0,0,0,.25);
  position: relative;
}
/* the sheet has a slight tooth and a shadowed edge where it lifts */
.pullquote::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 90% at 12% 0%, rgba(255,255,255,.5), rgba(255,255,255,0) 55%),
    radial-gradient(100% 80% at 92% 100%, rgba(80,64,44,.14), rgba(80,64,44,0) 60%);
}
.pullquote p {
  font-family: var(--display); font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  line-height: 1.22; margin: 0 0 .9em; color: var(--paper-ink); text-wrap: balance; position: relative;
}
.pullquote cite { font-style: normal; font-size: .92rem; color: #6d5c46; position: relative; }

/* ---------- sessions ---------- */
#book .wrap { text-align: center; }
.cards { display: grid; gap: 0; grid-template-columns: 1fr; margin: 44px auto 0; max-width: 780px; }
@media (min-width: 720px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .card:first-child { padding-right: 44px; }
  .card + .card { padding-left: 44px; border-left: 1px solid var(--rule); }
}
.card { border-top: 1px solid var(--rule); padding: 20px 0 26px; }
.card-head { display: flex; align-items: baseline; justify-content: center; gap: 20px; }
.card-head h3 { margin: 0; }
.price { font-family: var(--display); font-size: 1.7rem; margin: 0; color: var(--gold); }
.card-list { list-style: none; margin: 14px 0 0; padding: 0; color: var(--parch-dim); font-size: 1rem; }
.card-list li { margin-bottom: 2px; }
.request { margin: 44px auto 0; }
.aside { margin: 28px auto 0; color: var(--parch-dim); max-width: 50ch; font-size: 1rem; }

/* ---------- contact ---------- */
.contact-list { list-style: none; margin: 34px 0 0; padding: 0; max-width: 560px; }
.contact-list li {
  display: flex; gap: 26px; align-items: baseline;
  padding: 16px 0; border-bottom: 1px solid var(--rule);
}
.contact-list li:first-child { border-top: 1px solid var(--rule); }
.contact-list .label {
  font-size: .76rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); min-width: 82px;
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 32px 0 46px;
  font-size: .95rem; color: var(--parch-dim);
}
.site-footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.site-footer p { margin: 0; }
.site-footer a { color: var(--parch-dim); }
.site-footer a:hover { color: var(--gold); }

/* ---------- contact ---------- */
.contact-grid { display: grid; gap: clamp(30px, 5vw, 60px); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 840px) { .contact-grid { grid-template-columns: 1.25fr .75fr; } }
.contact-photo { margin: 0; }
.contact-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: saturate(.92) brightness(.95); }

/* ---------- sparkle trail ---------- */
.sparkles { position: fixed; inset: 0; z-index: 85; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .sparkles { display: none; } }
@media (hover: none), (pointer: coarse) { .sparkles { display: none; } }

/* ---------- reveal on scroll ----------
   Only ever hidden when JS is present and motion is welcome, so the page
   is readable with script off or reduced motion on. */
html.js .reveal { opacity: 0; transform: translateY(22px); }
html.js .reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .9s cubic-bezier(.2,.7,.3,1), transform .9s cubic-bezier(.2,.7,.3,1);
}
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; }
  html.js .reveal.is-in { transition: none; }
}

/* the sheet keeps its tilt through the reveal - a bare translateY on
   .reveal would replace the rotation, and is-in's `none` would drop it */
html.js .pullquote.reveal { transform: translateY(22px) rotate(-.7deg); }
html.js .pullquote.reveal.is-in { transform: rotate(-.7deg); }

/* ---------- scroll cue ---------- */
.scroll-cue {
  position: absolute; left: 50%; bottom: clamp(26px, 5vh, 52px);
  transform: translateX(-50%);
  width: 1px; height: 56px; overflow: hidden;
  background: rgba(241,230,212,.14);
  transition: opacity .6s ease, transform .6s ease;
}
.scroll-cue span {
  position: absolute; left: 0; width: 1px; height: 60%;
  background: linear-gradient(180deg, rgba(220,174,90,0), var(--gold));
  animation: cue-fall 2.6s cubic-bezier(.65,0,.35,1) infinite;
}
@keyframes cue-fall { 0% { top: -62%; } 100% { top: 102%; } }
.scroll-cue.is-gone { opacity: 0; transform: translateX(-50%) translateY(10px); }
@media (prefers-reduced-motion: reduce) {
  .scroll-cue span { animation: none; top: 20%; }
  .scroll-cue { transition: opacity .01s; }
}
