/* Philosophy, About and Services (src/components/PhilosophyPage, AboutPage, ServicesPage), written
   by hand on system.css since 2026-11-02 in place of their boards. They share the page title (.pt,
   the homepage's section-title style, larger here), the subtitle (.ip-sub), the ruled rows and the
   arrow CTAs. */
.ip { padding-top: clamp(48px, 5vw, 80px); padding-bottom: clamp(24px, 3vw, 48px); }
/* the page titles a size up from the homepage's section titles, with enough leading that the
   descenders of one line clear the ascenders of the next */
.ip h1.pt { font-size: clamp(40px, 4.4444vw, 68px); line-height: 1.08; text-wrap: balance; }
.ip-ctas { display: flex; flex-wrap: wrap; gap: 14px 48px; margin-top: 3.6em; }

/* ---- ruled rows: a sub-heading and its text (Philosophy stacks them, Services sets them side by
   side with the covered ground under the text) ---- */
.ip-rows { list-style: none; border-bottom: 1px solid var(--hair); }
.ip-row { padding: clamp(24px, 2.2222vw, 32px) 0 clamp(28px, 2.5vw, 36px); border-top: 1px solid var(--hair); }
.ip-row .t-body { max-width: 34em; }
.ip-row .t-h3 + .t-body { margin-top: .7em !important; }

/* ---- Philosophy: title, then the photo (out to the left edge of the screen) beside the four
   principles, and taller than they are ---- */
.phl-grid { display: grid; grid-template-columns: calc(42% + var(--gutter)) minmax(0, 1fr); gap: 6.25vw; margin: clamp(40px, 4.4444vw, 72px) 0 0 calc(-1 * var(--gutter)); align-items: start; }
/* at least 2:3, and stretched past the end of the principles (the room under them) where those
   run longer, so the photo is always the taller of the two */
.phl-img { aspect-ratio: 2 / 3; align-self: stretch; }
.phl-grid > :last-child { padding-bottom: clamp(64px, 6.6667vw, 112px); }
.phl-img img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%; }

/* ---- About (src/components/AboutPage.astro): a 3:4 frame on the left, inside the page margin,
   sticky under the nav and as tall as the screen allows, holding the four photos (they are all about
   3:4, so nothing is cropped); the steps scroll by on the right, one screen each, with room to the
   right of the text. site.ts marks the step whose text is mid-screen (.on on its photo) and each step
   once it comes into view (.seen: its text fades up). On phones each step has its own photo. */
.ab { padding: 0; --nav: 59px; --pad: clamp(32px, 4vw, 64px); }
.ab-sc { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 7vw; }
.ab-stick { position: sticky; top: var(--nav); align-self: start; padding: var(--pad) 0; }
.ab-frame { position: relative; height: calc(100svh - var(--nav) - 2 * var(--pad)); max-height: 980px; aspect-ratio: 3 / 4; max-width: 44vw; overflow: hidden; background: var(--beige); }
.ab-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease; }
.ab-frame img.on { opacity: 1; }
.ab-ph { display: none; }
.ab-step { min-height: calc(100svh - var(--nav)); display: flex; align-items: center; }
.ab-txt { max-width: 32em; padding: var(--pad) 6vw var(--pad) 0; }
/* the four titles alike (the first is the page’s h1), sized for the narrower text column */
.ip .ab-txt .pt { font-size: clamp(34px, 3.4722vw, 52px); line-height: 1.06; text-wrap: balance; }
.ab-body { margin-top: 1.4em !important; line-height: 1.5; }
/* a link out (auradanton.com), in the CTA style with the small opens-elsewhere arrow */
.ab-ext { display: inline-block; margin-top: 1.8em; text-decoration: underline; text-underline-offset: .32em; text-decoration-thickness: 1px; }
.ab-ext:hover { opacity: .78; }
.ab-ext .ext-i { width: .75em; height: .75em; margin-left: .5em; vertical-align: 0; }
.ab-txt .ip-ctas { margin-top: 3.2em; }
/* the steps after the first fade up as they come into view (the first loads in like any page) */
.js .ab-later .ab-txt { opacity: 0; transform: translateY(32px); transition: opacity 1.2s ease, transform 1.4s cubic-bezier(.2, .7, .2, 1); }
.js .ab-later.seen .ab-txt { opacity: 1; transform: none; }
@media (max-width: 1079.98px) { .ab { --nav: 53px; } }
@media (prefers-reduced-motion: reduce) {
  .ab-frame img { transition: none; }
  .js .ab-later .ab-txt { opacity: 1; transform: none; transition: none; }
}

/* ---- Services: the photo hero with the title, subtitle and CTA stacked near its top ---- */
.sv { padding-top: 0; }
.sv-hero { position: relative; display: flex; align-items: flex-start; padding-top: clamp(64px, 6.6667vw, 112px); min-height: max(560px, 62vw); max-height: 900px; box-sizing: border-box; color: #FFFFFF; overflow: hidden; background: #3F0910; }
.sv-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sv-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(28,28,28,.7) 0%, rgba(28,28,28,.46) 40%, rgba(28,28,28,0) 68%), linear-gradient(180deg, rgba(28,28,28,.25) 0%, rgba(28,28,28,0) 45%); }
.sv-hero-txt { position: relative; z-index: 2; width: min(48%, 700px); box-sizing: content-box; }
.sv-hero .cta-l { display: inline-block; margin-top: 3.6em; color: #FFFFFF; }

/* the four services: name on the left, what it is on the right with the ground it covers under it */
.sv-list { padding-top: clamp(64px, 6.6667vw, 112px); }
.sv-list .ip-rows { border-bottom: 0; }
.sv-list .ip-row:first-child { border-top: 0; padding-top: 0; }
.sv-list .ip-row { display: grid; grid-template-columns: 36% minmax(0, 1fr); gap: 7vw; }
.sv-tags { margin-top: 1.8em !important; color: var(--maroon-2); }

/* brand therapy, on beige: the photo beside the label (ruled under), the title, the two paragraphs
   in a narrower column and the CTA */
.sv-bt { display: grid; grid-template-columns: 50% minmax(0, 1fr); gap: 5.5556vw; align-items: center; margin-top: clamp(80px, 8.3333vw, 140px); margin-bottom: calc(-1 * clamp(24px, 3vw, 48px)); background: var(--beige); scroll-margin-top: 58px; }
.sv-bt-img { align-self: stretch; min-height: 640px; position: relative; }
.sv-bt-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 51% 50%; }
.sv-bt-txt { padding: 72px var(--gutter) 72px 0; }
/* the label ruled under like a homepage section header (.sh): the same room above the rule and
   below it (.sv-bt-txt raises it over the .ds p reset) */
.sv-bt-txt .sv-bt-label { padding-bottom: 14px; border-bottom: 1px solid var(--maroon); }
.sv-bt-txt .t-h2 { margin-top: clamp(32px, 3.3333vw, 56px) !important; }
.sv-bt-txt .t-body { max-width: 27em; line-height: 1.5; }
.sv-bt-txt .t-h2 + .t-body { margin-top: 1.4em !important; }
.sv-bt-txt .t-body + .t-body { margin-top: 1em !important; }

@media (max-width: 899.98px) {
  /* About: each step's photo, then its text */
  .ab-sc { display: block; padding-top: 20px; }
  .ab-stick { display: none; }
  .ab-step { display: block; min-height: 0; padding-bottom: 96px; }
  .ab-ph { display: block; position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--beige); }
  .ab-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .ab-txt { max-width: none; padding: 28px 0 0; }
  .ip .ab-txt .pt { font-size: clamp(28px, 7.4vw, 40px); }
  .ab-body { margin-top: 1em !important; }
  .phl-grid, .sv-bt { grid-template-columns: 1fr; gap: 28px; }
  /* the photo back inside the page margins like the text (no bleed to the screen edge), and tall */
  .phl-grid { margin-left: 0; }
  .phl-img { aspect-ratio: 4 / 5; align-self: auto; }
  .phl-grid > :last-child { padding-bottom: 0; }
  .sv-hero { align-items: flex-end; min-height: max(560px, calc(100svh - 52px)); max-height: none; padding: 0 var(--gutter) 48px; }
  .sv-hero::before { background: linear-gradient(180deg, rgba(28,28,28,.15) 0%, rgba(28,28,28,.72) 70%); }
  .sv-hero-txt { width: auto; }
  /* the tall crop of the wide photo centered on Aura (she sits right of center in it) */
  .sv-hero > img { object-position: 71% 50%; }
  .sv-list .ip-row { grid-template-columns: 1fr; gap: 12px; }
  .sv-bt-img { min-height: 0; aspect-ratio: 4 / 3; }
  .sv-bt-txt { padding: 0 var(--gutter) 56px; }
}
