/* ==========================================================================
   Bedaya — inner.css
   The shared system for every page below the home: the hero, the section
   vocabulary, the closing invitation. Same language as the new home:
   dark-scrim hero with centred white type and a gradient last word, flat
   field, elevation by colour-stepping, glass buttons with halos, one accent
   per page (the department colour), quiet pills, ink-scrim image cards,
   arrival motion behind prefers-reduced-motion. Never pins, never hijacks.
   ========================================================================== */
:root {
  --fs-hero: clamp(2.8rem, 6.2vw, 5.6rem);
  --fs-section: clamp(2.1rem, 4vw, 3.4rem);
  --fs-statement: clamp(2.2rem, 4.4vw, 3.8rem);
  --accent-page: var(--purple);          /* the one accent on the page: set per page (purple / sage-dark / teal-deep) */
  --accent-page-deep: var(--purple-deep);
  --accent-page-12: var(--purple-12);
  --grad-word: linear-gradient(92deg, #cfe6e6 0%, #ABCFD2 40%, #d8c6ea 100%);          /* on dark */
  --grad-word-ink: linear-gradient(92deg, var(--purple-deep) 0%, var(--purple) 45%, var(--teal-deep) 100%);   /* on the field */
}
body[data-accent="sage"] { --accent-page: var(--sage-dark); --accent-page-deep: var(--sage-dark); --accent-page-12: var(--sage-12); }
body[data-accent="teal"] { --accent-page: var(--teal-deep); --accent-page-deep: var(--teal-deep); --accent-page-12: var(--teal-12); }

/* ----- the hero: a still from the approved set, the banner's scrim, centred white type ----- */
.ihero { position: relative; min-height: 78vh; min-height: 78svh; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; background: #1a2224; color: #fff; padding: 9rem 0 5rem; isolation: isolate; }
.ihero--tall { min-height: 88vh; min-height: 88svh; }
.ihero--short { min-height: 62vh; min-height: 62svh; }
.ihero__media { position: absolute; inset: 0; z-index: 0; }
.ihero__media img { width: 100%; height: 100%; object-fit: cover; display: block; will-change: transform; transform: translate3d(0, calc(var(--py, 0) * -8%), 0) scale(1.08); }
.ihero__scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(12,16,18,.34) 0%, rgba(12,16,18,.30) 45%, rgba(12,16,18,.58) 100%), radial-gradient(60% 55% at 50% 58%, rgba(12,16,18,.26), transparent 75%); }
.ihero__inner { position: relative; z-index: 2; width: 100%; max-width: 56rem; margin: 0 auto; padding-inline: var(--gutter); display: flex; flex-direction: column; align-items: center; gap: 0; }
.ihero__eyebrow { display: flex; align-items: center; gap: 1rem; font-family: var(--font-ui); font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: #ABCFD2; margin-bottom: 1.1rem; }
.ihero__eyebrow::before, .ihero__eyebrow::after { content: ""; width: 48px; height: 1px; background: rgba(171,207,210,.6); }
.ihero__eyebrow a { color: inherit; }
.ihero__title { font-family: var(--font-display); font-weight: 200; font-size: var(--fs-hero); letter-spacing: -.03em; line-height: 1; color: #fff; text-wrap: balance; max-width: 16ch; margin: 0; text-shadow: 0 2px 30px rgba(0,0,0,.28); }
.ihero__title em { font-style: normal; background: var(--grad-word); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ihero__lead { margin: 1.4rem 0 0; max-width: 46ch; font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.7; letter-spacing: .01em; color: rgba(255,255,255,.86); text-shadow: 0 1px 18px rgba(0,0,0,.28); text-wrap: pretty; }
.ihero__actions { display: flex; gap: .75rem; flex-wrap: wrap; justify-content: center; margin-top: 1.8rem; }
.ihero .btn { color: #fff; }
.ihero .btn--halo { background: rgba(255,255,255,.12); }
.ihero .btn--primary { background: rgba(255,255,255,.14);
  box-shadow: inset 1.5px 1.5px 1px -1px rgba(255,255,255,.9), inset -1.5px -1.5px 1px -1px rgba(44,44,44,.12), 0 0 0 1.5px rgba(146,107,172,.95), 0 0 26px 4px rgba(146,107,172,.45); }
.ihero .btn--primary:hover { transform: translateY(-2px); background: rgba(255,255,255,.24);
  box-shadow: inset 1.5px 1.5px 1px -1px rgba(255,255,255,.9), inset -1.5px -1.5px 1px -1px rgba(44,44,44,.12), 0 0 0 1.5px rgba(146,107,172,1), 0 0 32px 6px rgba(146,107,172,.55); }
/* over a dark hero the nav is frosted white, so the dark menu and the purple A read (K, 11 Nov 2026; inner.js toggles .on-dark) */
.glass-nav.on-dark { background: rgba(255,255,255,.72); border-color: rgba(255,255,255,.6); -webkit-backdrop-filter: blur(16px) saturate(1.15); backdrop-filter: blur(16px) saturate(1.15); }
/* a portrait hero (practitioners): the field, no scrim, two columns */
.ihero--portrait { background: var(--bg); color: var(--text); text-align: left; min-height: 0; padding: 9rem 0 4rem; }
.ihero--portrait .ihero__inner { max-width: var(--container); display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.ihero--portrait .ihero__title { color: var(--text); text-shadow: none; }
.ihero--portrait .ihero__title em { background: var(--grad-word-ink); -webkit-background-clip: text; background-clip: text; }
.ihero--portrait .ihero__lead { color: var(--body); text-shadow: none; }
.ihero--portrait .ihero__eyebrow { color: var(--accent-page-deep); justify-content: flex-start; }
.ihero--portrait .ihero__eyebrow::before { display: none; }
.ihero--portrait .ihero__eyebrow::after { background: var(--accent-page); opacity: .6; }
.ihero--portrait .ihero__actions { justify-content: flex-start; }
.ihero--portrait .btn { color: var(--text); }
.ihero--portrait .btn--primary { background: rgba(255,255,255,.3); }
.ihero__portrait { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: top; border-radius: 200px 200px 24px 24px; background: var(--wash2); }
@media (max-width: 860px) {
  .ihero { min-height: 70svh; padding: 7.5rem 0 4rem; }
  .ihero--portrait .ihero__inner { grid-template-columns: 1fr; }
  .ihero__portrait { max-width: 320px; }
}

/* ----- sections ----- */
.isec { position: relative; padding-block: clamp(80px, 12vh, 150px); }
.isec--tall { min-height: min(92vh, 900px); display: flex; flex-direction: column; justify-content: center; }
.isec--wash { background: var(--surface); }
.isec + .isec--flush { padding-top: 0; }
.ihead { display: grid; grid-template-columns: 1fr; gap: 1.2rem; align-items: end; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
@media (min-width: 860px) { .ihead { grid-template-columns: 1.3fr 1fr; gap: 4rem; } }
.ihead p { color: var(--muted); max-width: 44ch; margin: 0; }
.ieyebrow { display: block; font-family: var(--font-ui); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-page-deep); }
.ieyebrow--muted { color: var(--muted); }
.irule { display: block; width: 56px; height: 1px; border: 0; margin: .9rem 0 1.1rem; background: var(--accent-page); opacity: .8; }
.center .irule { margin-inline: auto; }
.ititle { font-family: var(--font-display); font-weight: 200; font-size: var(--fs-section); letter-spacing: -.03em; line-height: 1.06; color: var(--text); text-wrap: balance; margin: 0; }
.ititle em { font-style: normal; background: var(--grad-word-ink); -webkit-background-clip: text; background-clip: text; color: transparent; }
.istatement { font-family: var(--font-display); font-weight: 200; font-size: var(--fs-statement); letter-spacing: -.035em; line-height: 1.06; color: var(--text); text-wrap: balance; max-width: 22ch; margin: 0; }
.istatement em { font-style: normal; background: var(--grad-word-ink); -webkit-background-clip: text; background-clip: text; color: transparent; }
.imeasure { max-width: 62ch; font-size: 1.125rem; line-height: 1.8; color: var(--body); }
.imeasure h2, .imeasure h3 { font-family: var(--font-display); font-weight: 200; letter-spacing: -.02em; color: var(--text); margin: 2.2rem 0 .8rem; }
.imeasure h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.imeasure h3 { font-size: 1.3rem; }
.imeasure p { margin: 0 0 1.1rem; }
.imeasure ul, .imeasure ol { padding-left: 1.2rem; margin: 0 0 1.1rem; }
.imeasure li { margin: .3rem 0; }
.imeasure blockquote { margin: 2rem 0; padding-left: 1.4rem; border-left: 1px solid var(--accent-page); font-family: var(--font-display); font-size: 1.5rem; line-height: 1.3; letter-spacing: -.01em; color: var(--text); }
.imeasure strong { font-weight: 400; color: var(--accent-page-deep); }

/* arrival */
@media (prefers-reduced-motion: no-preference) {
  html.js [data-arrive] > .arrive { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--breathe), transform .9s var(--breathe); }
  html.js [data-arrive].in > .arrive { opacity: 1; transform: none; }
  html.js [data-arrive].in > .arrive:nth-child(2) { transition-delay: .09s; }
  html.js [data-arrive].in > .arrive:nth-child(3) { transition-delay: .18s; }
  html.js [data-arrive].in > .arrive:nth-child(4) { transition-delay: .27s; }
}

/* ----- image cards: ink scrim, bottom-left caption (the journal language) ----- */
.igrid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.igrid--3 { grid-template-columns: repeat(3, 1fr); } .igrid--4 { grid-template-columns: repeat(4, 1fr); } .igrid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .igrid--3, .igrid--4, .igrid--2 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .igrid--3, .igrid--4, .igrid--2 { grid-template-columns: 1fr; } }
.icard { position: relative; display: block; border-radius: var(--r-card); overflow: hidden; background: var(--bg-ph); aspect-ratio: 4/5; isolation: isolate; transition: transform var(--t) var(--breathe), box-shadow var(--t) var(--breathe); }
.icard--wide { aspect-ratio: 4/3; } .icard--square { aspect-ratio: 1; } .icard--tall { aspect-ratio: 3/4; }
.icard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--breathe); }
.icard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(28,36,32,.64), rgba(28,36,32,.06) 55%, transparent); }
.icard__cap { position: absolute; z-index: 2; left: 1.2rem; right: 1.2rem; bottom: 1.1rem; color: #fff; }
.icard__cap span { display: block; font-family: var(--font-ui); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; opacity: .82; margin-bottom: .35rem; }
.icard__cap h3, .icard__cap h4 { margin: 0; color: #fff; font-family: var(--font-display); font-weight: 300; font-size: 1.25rem; letter-spacing: -.01em; line-height: 1.2; }
.icard--lead .icard__cap h3 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); }
.icard:hover { transform: translateY(-4px); box-shadow: 0 22px 48px rgba(44,44,44,.14); }
.icard:hover img { transform: scale(1.05); }
.icard:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; }

/* ----- numbered blocks beside a sticky visual (services, steps, chapters) ----- */
.iblocks { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 900px) { .iblocks { grid-template-columns: 1fr 1fr; gap: clamp(3rem, 7vw, 7rem); align-items: start; } }
.iblocks__sticky { position: sticky; top: 12vh; display: none; }
@media (min-width: 900px) { .iblocks__sticky { display: block; } }
.iblocks__frame { position: relative; aspect-ratio: 4/5; max-height: 76vh; border-radius: 28px; overflow: hidden; background: var(--wash2); }
.iblocks__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.iblocks__list { position: relative; padding-left: 2.2rem; }
.iblocks__rail { position: absolute; left: 0; top: 1.2rem; bottom: 1.2rem; width: 1px; background: var(--line); }
.iblocks__rail b { position: absolute; inset: 0; background: var(--accent-page-deep); transform-origin: top; transform: scaleY(0); }
.iblock { padding-block: clamp(1.8rem, 5vh, 3rem); border-bottom: 1px solid var(--line); transition: opacity .6s var(--breathe); }
.iblock:last-child { border-bottom: 0; }
.iblock__num { font-family: var(--font-ui); font-size: .75rem; letter-spacing: .2em; color: var(--accent-page-deep); }
.iblock h3 { font-family: var(--font-display); font-weight: 200; font-size: clamp(1.6rem, 2.6vw, 2.2rem); letter-spacing: -.02em; line-height: 1.1; margin: .5rem 0 .7rem; }
.iblock p { color: var(--body); max-width: 46ch; margin: 0; }
.iblock__img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 22px; margin-bottom: 1rem; }
@media (min-width: 900px) { .iblock__img { display: none; } }
.iblock__more { display: inline-flex; align-items: center; gap: .45rem; margin-top: 1rem; color: var(--accent-page-deep); font-weight: 400; }
.iblock__more .arr { transition: transform var(--t) var(--breathe); } .iblock__more:hover .arr { transform: translateX(4px); }

/* ----- facts strip: big thin numerals, tracked labels. Only true numbers. ----- */
.ifacts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem 2rem; padding-top: 2rem; border-top: 1px solid var(--line); }
@media (min-width: 860px) { .ifacts { grid-template-columns: repeat(4, 1fr); } }
.ifact b { display: block; font-family: var(--font-display); font-weight: 200; font-size: clamp(2.4rem, 4.6vw, 4rem); letter-spacing: -.03em; line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; }
.ifact span { display: block; margin-top: .5rem; font-family: var(--font-ui); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

/* ----- portraits: the arch, the site's own signature for people ----- */
.iportraits { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.iportrait { display: block; text-align: center; }
.iportrait img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: top; border-radius: 160px 160px 18px 18px; background: var(--wash2); transition: transform var(--t) var(--breathe), box-shadow var(--t) var(--breathe); }
.iportrait:hover img { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(44,44,44,.12); }
.iportrait h3 { margin: .9rem 0 .2rem; font-family: var(--font-display); font-weight: 300; font-size: 1.1rem; letter-spacing: -.01em; color: var(--text); }
.iportrait p { margin: 0; font-size: .9rem; color: var(--muted); }
.iportrait__meta { display: block; margin-top: .3rem; font-family: var(--font-ui); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-page-deep); }

/* ----- quiet pills (tags, anchors) ----- */
.ipills { display: flex; flex-wrap: wrap; gap: .5rem; }
.ipill { display: inline-flex; align-items: center; padding: .56rem 1.1rem; border-radius: var(--r-pill); font-size: .95rem; color: var(--text); background: rgba(255,255,255,.28);
  box-shadow: inset 1px 1px 1px -1px rgba(255,255,255,.9), 0 0 0 1px rgba(44,44,44,.12); transition: box-shadow var(--t) var(--breathe), transform var(--t) var(--breathe); }
.ipill:hover, .ipill:focus-visible { transform: translateY(-2px); box-shadow: inset 1px 1px 1px -1px rgba(255,255,255,.9), 0 0 0 1.5px rgba(146,107,172,.7); outline: none; }
.ipill--on { box-shadow: inset 1px 1px 1px -1px rgba(255,255,255,.9), 0 0 0 1.5px var(--accent-page); }

/* ----- three ways / info tiles: colour-stepped, no shadow ----- */
.itiles { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.itile { display: flex; flex-direction: column; gap: .5rem; padding: 1.6rem; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--ink-06); transition: transform var(--t) var(--breathe), border-color var(--t) var(--breathe); }
.itile:hover { transform: translateY(-3px); border-color: var(--accent-page-12); }
.itile h3 { margin: 0; font-family: var(--font-display); font-weight: 300; font-size: 1.25rem; letter-spacing: -.01em; color: var(--text); }
.itile p { margin: 0; color: var(--muted); font-size: .975rem; }
.itile a.more { margin-top: auto; padding-top: .8rem; color: var(--accent-page-deep); font-weight: 400; }

/* ----- quote cards (the family's words) ----- */
.iquote { padding: 1.8rem; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--ink-06); }
.iquote blockquote { margin: 0; font-family: var(--font-display); font-weight: 200; font-size: clamp(1.2rem, 1.8vw, 1.45rem); line-height: 1.4; letter-spacing: -.01em; color: var(--text); }
.iquote figcaption { margin-top: 1rem; font-family: var(--font-ui); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-page-deep); }

/* ----- form (contact): the kit's inputs ----- */
.ifield { display: block; margin-bottom: 1rem; }
.ifield span { display: block; font-family: var(--font-ui); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .4rem; }
.ifield input, .ifield textarea, .ifield select { width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: var(--surface); border: 1px solid var(--ink-08); border-radius: 12px; padding: .8rem 1rem; }
.ifield input:focus, .ifield textarea:focus, .ifield select:focus { outline: 2px solid var(--purple); outline-offset: 1px; }

/* ----- the closing invitation: every page ends the same way ----- */
.iclose { position: relative; min-height: min(80vh, 760px); display: flex; align-items: center; overflow: hidden; background: var(--bg-purple); }
.iclose__media { position: absolute; inset: 0; }
.iclose__media img { width: 100%; height: 100%; object-fit: cover; }
.iclose__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, rgba(241,243,241,.9), rgba(241,243,241,.58) 45%, rgba(241,243,241,.16)); }
@media (max-width: 860px) { .iclose__media::after { background: linear-gradient(to top, rgba(241,243,241,.93), rgba(241,243,241,.62) 55%, rgba(241,243,241,.22)); } }
.iclose__inner { position: relative; z-index: 2; max-width: 40rem; }
.iclose h2 { font-family: var(--font-display); font-weight: 200; font-size: clamp(2rem, 4.6vw, 4rem); letter-spacing: -.03em; line-height: 1.04; margin: .4rem 0 0; color: var(--text); text-wrap: balance; }
.iclose h2 em { font-style: normal; background: var(--grad-word-ink); -webkit-background-clip: text; background-clip: text; color: transparent; }
.iclose p { color: var(--body); max-width: 40ch; margin: 1rem 0 0; }
.iclose__actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.8rem; align-items: center; }
.iclose__hours { margin-top: 1.6rem; font-family: var(--font-ui); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.iclose__hours span { white-space: nowrap; }
.btn--primary { color: var(--text); background: rgba(255,255,255,.3);
  box-shadow: inset 1.5px 1.5px 1px -1px rgba(255,255,255,.9), inset -1.5px -1.5px 1px -1px rgba(44,44,44,.12), 0 0 0 1.5px rgba(146,107,172,.95), 0 0 26px 4px rgba(146,107,172,.45);
  transition: box-shadow var(--t) var(--breathe), transform var(--t) var(--breathe), background var(--t) var(--breathe); }
.btn--primary::before { display: none; }
.btn--primary:hover { transform: translateY(-2px); background: rgba(255,255,255,.42);
  box-shadow: inset 1.5px 1.5px 1px -1px rgba(255,255,255,.9), inset -1.5px -1.5px 1px -1px rgba(44,44,44,.12), 0 0 0 1.5px rgba(146,107,172,1), 0 0 32px 6px rgba(146,107,172,.55); }

/* ----- arriving at a section from a same page link: a soft rise and a sweep of the accent
   under its eyebrow, so the glide has somewhere to land ----- */
@media (prefers-reduced-motion: no-preference) {
  .is-target > .container, .is-target > .ihead { animation: itargetRise 1s var(--breathe) both; }
  .is-target .irule { animation: itargetRule 1.1s var(--breathe) both; }
  .is-target > .container:nth-child(2) { animation-delay: .08s; }
  .is-target > .container:nth-child(3) { animation-delay: .16s; }
}
@keyframes itargetRise { from { opacity: .35; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes itargetRule { from { transform: scaleX(0); transform-origin: left; } 55% { transform: scaleX(1.6); transform-origin: left; } to { transform: scaleX(1); transform-origin: left; } }
.center .is-target .irule { transform-origin: center; }

/* ----- hygiene ----- */
.btn, .ipill, .icard, .iportrait, .itile a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
section[id] { scroll-margin-top: 7rem; }
html { scroll-padding-top: 7rem; }
