/* Valley Orthodontics site skin: "The office, unposed"
   Colour strategy: Committed. Ink carries the first fold and the wall; gold is
   the accent everywhere and the ground of the CTA band. The signature device is
   the photo essay of the office (real chalkboards, candy wall, neon, treatment
   bay, the team) on a 12-column grid with captions; it stands in for the first
   USP row and is the page's one observed motion moment. */

.c1 .header { border-bottom-color: transparent; }
.rule { height: var(--rule); width: 72px; background: var(--gold); margin-top: var(--space-5); }

/* ---- hero: ink ground, copy left, the Gold Provider portrait breaking the right edge ---- */
.c1-hero { background: var(--ink); color: var(--white); overflow: hidden; position: relative; }
.c1-hero > * { position: relative; z-index: 1; }
/* Contours of the Valley under the headline. Dark ground is the only place this
   reads at 5%: on anything lighter it either disappears or turns to mud. */
.c1-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .05;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 620' fill='none' stroke='%23FFFFFF' stroke-width='1.6'%3E %3Cpath d='M-20 540 C 160 492 300 540 460 508 S 800 430 1220 476'/%3E %3Cpath d='M-20 486 C 170 434 310 486 470 448 S 810 366 1220 416'/%3E %3Cpath d='M-20 432 C 180 376 320 432 480 388 S 820 302 1220 356'/%3E %3Cpath d='M-20 378 C 190 318 330 378 490 328 S 830 238 1220 296'/%3E %3Cpath d='M-20 324 C 200 260 340 324 500 268 S 840 174 1220 236'/%3E %3Cpath d='M-20 270 C 210 202 350 270 510 208 S 850 110 1220 176'/%3E %3Cpath d='M-20 216 C 220 144 360 216 520 148 S 860 46 1220 116'/%3E %3C/svg%3E") no-repeat center bottom / cover;
}
.c1-hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: var(--gap-l); align-items: stretch; }
.c1-hero .intro { max-width: 54ch; }
.c1-hero .phone-link small { color: var(--mist); }
.c1-hero figure { margin-right: calc(-1 * var(--bleed)); min-height: 520px; }
.c1-hero figure img { object-position: 35% 30%; }
/* caption sits top-right so it never covers the plaque he is holding, inset to the
   wrap edge so it lines up with the page grid rather than the bled photo edge */
.c1-hero figcaption { left: auto; bottom: auto; top: 0; right: var(--bleed); color: var(--mist); }

/* proof band follows an ink hero, so it flips to light */
.c1 .proof { background: var(--white); color: var(--ink); border-bottom: 1px solid var(--line); }
.c1 .proof-cell { border-left-color: var(--line); }
.c1 .proof-note { color: var(--text-2); }

/* ---- the essay (signature device + motion moment) ---- */
.essay { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-s); margin-top: var(--gap-m); }
/* A gold thread behind the frames was tried here and cut: the captions live in the
   gutters, so any background line crosses running text and reads as a stray mark
   rather than a ridgeline. The device needs empty gaps, and this grid has none. */
/* Bento pattern, after the Tailus UI reference: a card per frame with the picture
   clipped inside it, and a hover that scales the picture within the clip while the
   card's edge firms up. What transfers is the proportion, the clipped card and the
   hover. What does not: its Tailwind classes, its dark-mode utilities, its gradient
   text and its illustrated filler. Gradients are barred on this build, and here the
   photographs are the argument, so they get the room instead of decoration. */
.essay figure {
  position: relative; display: grid; gap: var(--space-3); align-content: start;
  padding: var(--space-3); background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color var(--dur-fast) var(--ease-out);
}
.essay figure:hover { border-color: var(--ink-tint); }
.e-shot { display: block; height: 100%; overflow: hidden; border-radius: var(--radius); }
.essay figure img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: transform var(--dur-fast) var(--ease-out); }
.essay figure:hover img { transform: scale(1.05); }
.essay figcaption { font-size: var(--fs-body); line-height: 1.45; }
.essay figcaption .label { display: block; margin-bottom: 2px; }
/* Four frames on two rows. It was six on three, which read as a wall of thumbnails
   rather than an essay; the front desk and the neon went, the neon because it hangs
   over the candy wall and was photographing the same corner twice. */
.essay .e-a { grid-column: 1 / 5; grid-row: 1 / 3; }
.essay .e-b { grid-column: 5 / 13; grid-row: 1 / 2; }
.essay .e-e { grid-column: 5 / 9; grid-row: 2 / 3; }
.essay .e-f { grid-column: 9 / 13; grid-row: 2 / 3; }
/* The tall frame spans both rows, so its picture takes the slack rather than keeping
   a fixed proportion and leaving a gap under itself. */
.essay .e-a { grid-template-rows: 1fr auto; }
.essay .e-a .e-shot { min-height: 0; }
.essay .e-b .e-shot { aspect-ratio: 21 / 9; }
.essay .e-e .e-shot, .essay .e-f .e-shot { aspect-ratio: 4 / 3; }
.essay-foot { margin-top: var(--gap-m); display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-6); align-items: center; justify-content: space-between; }
.essay-foot p { font-size: var(--fs-lede); max-width: 46ch; }

/* ---- rhythm ---- */
.c1 .c1-doctor { background: var(--paper); }
/* Embossed-paper chevrons behind the hung frames. */
.c1 .c1-wall { background: var(--ink); color: var(--white); position: relative; }
.c1 .c1-wall > * { position: relative; z-index: 1; }
.c1 .c1-wall::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .035;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='92' height='54' viewBox='0 0 92 54' fill='none' stroke='%23FFFFFF' stroke-width='3'%3E %3Cpath d='M0 6 L46 34 L92 6 M0 26 L46 54 L92 26'/%3E%3C/svg%3E") repeat center / 92px 54px;
}
.c1 .cta-band { background: var(--gold); color: var(--ink); --focus-on-dark: var(--ink); --ridge-from: var(--bg); }
.c1 .cta-band .button { background: var(--ink); color: var(--white); }
.c1 .cta-band .button:hover { background: var(--white); color: var(--ink); }
.c1 .c1-reviews { background: var(--paper); }
.c1 .c1-schedule { background: var(--mist-tint); }
.c1 .footer { border-top: var(--rule) solid var(--gold); }

@media (max-width: 1100px) {
  .c1-hero figure { min-height: 440px; }
  .essay .e-a { grid-column: 1 / 7; grid-row: 1 / 2; }
  .essay .e-b { grid-column: 7 / 13; grid-row: 1 / 2; }
  .essay .e-e { grid-column: 1 / 7; grid-row: 2 / 3; }
  .essay .e-f { grid-column: 7 / 13; grid-row: 2 / 3; }
  .essay .e-a { grid-template-rows: auto auto; }
  .essay .e-a .e-shot, .essay .e-b .e-shot { aspect-ratio: 4 / 3; }
}
@media (max-width: 760px) {
  .c1-hero .wrap { grid-template-columns: 1fr; gap: 0; }
  .c1-hero figure { order: -1; margin-inline: calc(-1 * var(--bleed)); min-height: 0; height: min(56svh, 500px); }
  .c1-hero figure img { object-position: 50% 12%; }
  .c1-hero figcaption { max-width: 60%; }
  .essay { grid-template-columns: 1fr; }
  .essay figure { grid-column: auto !important; grid-row: auto !important; }
  .essay figure img { aspect-ratio: 4 / 3 !important; }
  .essay .e-a img { aspect-ratio: 3 / 4 !important; }
}
