/* pages/home.css — front-page composition only (DESIGN.md §10.1). Components stay in the theme files; this adds what the
   base cannot know: per-plate crops, the sticky services intro's foot, the visit card's honest width, tablet hero geometry,
   and the phone-length diet from the stage-3 findings (ux:U3). Mobile-first. Rules marked WORKAROUND cover base-file
   behaviour reported to their owners. */

/* 1. Hero: below 782 the media column hugs the arch (320px; 416px between 640 and 781) so the caption and the hairline arc
   stay under the photo instead of drifting to the far edge of a stacked column. */
@media (max-width: 781px) {
  .ov-home-hero .ov-hero__media { max-width: 320px; }
}
@media (min-width: 640px) and (max-width: 781px) {
  .ov-home-hero .ov-hero__media { max-width: 416px; }
  .ov-home-hero .is-style-ov-arch { width: min(100%, 416px); }
}
/* the figure is as wide as its 416px photo, so the caption measure and the right-aligned arc end exactly at the photo's edge */
.ov-home-hero .is-style-ov-arch { max-width: 416px; }
/* art:E1 — at desktop the copy column (ends at the buttons) is 220px shorter than the media column (ends at the arc), leaving a
   void under the buttons. Centre the two columns on each other and let the facts row follow closer. */
@media (min-width: 1024px) {
  .ov-home-hero .ov-hero__copy { align-self: center; }   /* on the column: core pins .wp-block-columns to align-items:normal !important */
  .ov-home-hero .ov-facts { margin-block-start: var(--space-6); }
}
/* the hero meta line carries two lines (live status, then hours · address); the status reads as the first sentence, not a label */
.ov-home-hero .ov-hero__meta .ov-hours__status { color: var(--ov-ink); }

/* 2. Light band. Below 1024 the base gives the figure a 16:9 ratio; the explicit width keeps the ratio from deriving a width
   from the clamp() height (WORKAROUND, 20-layout.css + 55-dynamic.css: 320px × 16/9 overflowed phones by 179px).
   art:E2 — at ≥1440 the band is a strip of light, not a picture in a frame: --wide 1440 and up to 640px tall. */
.ov-home-band .ov-slot, .ov-home-band figure { width: 100%; }
.ov-home-band__photo img { object-position: 50% 45%; }   /* art:D3: ov-hands-back-01, hands centred, no faces */
@media (min-width: 1440px) {
  .ov-section.ov-home-band .ov-inner { max-width: 1440px; }
  .ov-home-band figure, .ov-home-band .ov-slot { height: clamp(320px, 36vw, 640px); }
}

/* 4. Services: the shoulder plate is cropped at x≈55% (DESIGN §7), the massage plate at the right edge of its frame (hands and
   towel only, art:E7); the whisper tile keeps its 4:5 on phones and, on desktop, a 225px minimum that grows with the text
   instead of clipping it (eng:E02, WCAG 1.4.12); the sage arc closes the sticky intro column on desktop only.
   On phones the row is the compact list DESIGN §1.4 asks for: numeral above the 96×120 plate, body beside them; the
   "often helps with" tag lists are left to the service pages (ux:U3, art:D11). */
.ov-plate--x55 img { object-position: 55% 50%; }
.ov-plate--x100 img { object-position: 100% 50%; }
/* art:E14 — the italic numeral shares the title's baseline (measured: title baseline sits 28px below the numeral's on phones,
   41px on desktop, at 20 / 24px numerals), so the index reads typeset rather than top-aligned */
.ov-home-services .ov-row__n { padding-top: 1.4em; }
.ov-home-services .ov-row > .ov-whisper { align-self: start; height: auto; min-height: 0; aspect-ratio: 4 / 5; }   /* WORKAROUND: 55-dynamic.css gives every .ov-whisper min-height:100% / aspect-ratio:auto (meant for slot posters), which stretched this block tile to the row height (96×228 on phones) */
.ov-home-services .ov-arc--sage { display: none; }
@media (max-width: 781px) {
  .ov-home-services .ov-row { grid-template-areas: "n body" "plate body"; grid-template-rows: auto 1fr; padding-block: var(--space-4); row-gap: var(--space-3); }
  .ov-home-services .ov-row > .is-style-ov-plate { align-self: start; }
}
@media (max-width: 767px) {
  .ov-home-services .ov-row__label, .ov-home-services .ov-tags { display: none; }
}
@media (max-width: 1023px) {
  .ov-home-services .ov-textlink { display: none; }   /* "Just call" is the third phone link in two screens on phones; the hero button carries it */
}
@media (min-width: 782px) {
  .ov-home-services .ov-row__n { padding-top: 1.7em; }
  .ov-home-services .ov-row > .ov-whisper { aspect-ratio: auto; min-height: 225px; }
  .ov-home-services .ov-arc--sage { display: block; margin-block-start: var(--space-7); }
}

/* 5. The navy room: the warm portrait keeps the 320px mobile arch width (DESIGN §5), so the clay keyline clears the gutter */
@media (max-width: 639px) {
  .ov-home-doctor .is-style-ov-arch-keyline { max-width: 320px; }
}

/* 6. Lead quote. WORKAROUND (40-blocks.css): .is-style-ov-lead caps at 17.4em of the BLOCK's font-size (body 18px = 313px), not
   the quote size, so the lead quote stacked 1,200px tall. Setting the quote size on the blockquote restores the 28ch measure
   (696px at 1440); the paragraph and cite carry their own explicit sizes, so nothing else changes. */
.ov-home-stories .is-style-ov-lead { font-size: var(--fs-quote); }

/* 7. Team + Visit: Kelly's fallback photo is a 1000×668 landscape (head at x≈40%, y≈33%); object-view-box frames her head and
   shoulders in the hex where supported (Chromium); elsewhere the plain cover crop shows. */
@supports (object-view-box: inset(0%)) {
  .ov-home-kelly img { object-view-box: inset(9% 39% 36.5% 19%); object-position: 50% 50%; }
}
/* art:E6 — the hexes get a little more presence next to the 480px card: 136px (sources 340–480px wide stay ≥ 2.5× sharp) and a
   deeper row gap; phones keep the base 88px 3-up. The visit card never renders its 640px photo above 480 CSS px (manifest), so
   it caps at 480 at every width and sits on the column's outer edge on desktop. */
.ov-home-people .ov-team-grid.is-layout-grid { row-gap: var(--space-7); }
.ov-home-people .ov-visit { max-width: 480px; }
@media (min-width: 768px) {
  .ov-home-people .is-style-ov-hex, .ov-home-people .ov-team-card .ov-monogram { width: 136px; }
  .ov-home-people .ov-team-card .ov-monogram { font-size: 3rem; }
}
@media (min-width: 782px) {
  .ov-home-people .ov-visit { margin-inline-start: auto; }
  /* art:E12 — the card breathes like the form card: a 32px rhythm, the phone set off above and below */
  .ov-home-people .ov-card.ov-visit > * { margin-block-start: var(--space-5); }
  .ov-home-people .ov-card.ov-visit > .ov-visit__media { margin-block-start: 0; }
  .ov-home-people .ov-visit__phone { margin-block: var(--space-5) var(--space-6); }
}
/* ux:U3 — on phones the card keeps the live status line and drops the hours table (the third copy of the hours on the page:
   hero meta line, facts row) and the third "Request a visit" button; the phone and the Maps link stay. */
@media (max-width: 781px) {
  .ov-home-people .ov-visit .ov-hours table, .ov-home-people .ov-visit .wp-block-buttons { display: none; }
  .ov-home-people .ov-visit .ov-hours__status { margin-block-start: 0; font-size: var(--fs-body); color: var(--ov-ink); }
}

/* Office tour video: soft square like every other plate */
.ov-tour-video { margin: 0; } .ov-tour-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: var(--r-md); background: var(--ov-ink); }

/* The band now holds the office tour video: natural 16:9, centred, capped so it never fills more than a screen */
.ov-home-band--video figure.ov-tour-video { height: auto; max-width: 1120px; margin-inline: auto; }
.ov-home-band--video .ov-tour-video video { box-shadow: 0 30px 60px -36px rgb(13 43 85 / .45); }
