/* ==========================================================================
   ABOUT DR. TREMBLEY  /about-dr-trembley/  — dark, masculine, editorial.
   Full-bleed working-photo hero, dark story column beside a chairside
   portrait, dark credential ledger, cinema PERL, dark teaching band.
   Colors derive from tokens.
   ========================================================================== */

/* a brass-tinted hairline for dark surfaces */
:root { --dim-line: oklch(73% 0.06 83 / 0.18); }

/* ---- HERO: full-bleed working portrait ---- */
.doc-hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: var(--cinema);
  min-height: clamp(32rem, 82vh, 48rem);
  display: flex;
}
.doc-hero__bg { position: absolute; inset: 0; z-index: 0; }
.doc-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 26%;
}
/* smooth fade from the section black into the photo (no hard edge) */
.doc-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--cinema) 0%, oklch(18.5% 0.005 85 / 0.55) 34%, transparent 64%),
    linear-gradient(0deg, var(--cinema) 0%, transparent 46%);
}
@media (min-width: 861px) {
  /* anchor the photo to the right; the left of the hero stays clean black */
  .doc-hero__bg { left: auto; width: 62%; }
  .doc-hero__bg::after {
    background: linear-gradient(90deg, var(--cinema) 0%, oklch(18.5% 0.005 85 / 0.65) 30%, transparent 66%);
  }
}
.doc-hero .wrap {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  /* standard wrap gutter: width:100% left the hero flush at x=0 on mobile */
  width: min(1200px, 100% - 3rem);
  padding-block: clamp(2rem, 5vh, 3.5rem);
}
.doc-hero .crumbs a, .doc-hero .crumbs li { color: var(--milk-soft); }
.doc-hero .crumbs a:hover { color: var(--brass-light); }
.doc-hero .crumbs li + li::before { color: var(--milk-soft); }
.doc-hero__copy { margin-top: auto; max-width: 38rem; }
@media (min-width: 861px) {
  .doc-hero__copy { max-width: 34rem; margin-left: clamp(1rem, 5vw, 5rem); }
}
.doc-hero__kicker {
  font-family: var(--font-b);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brass-light);
  margin-bottom: 1.1rem;
}
.doc-hero h1 {
  color: var(--paper);
  font-size: clamp(2.8rem, 2rem + 4.2vw, 5.2rem);
  line-height: 0.98;
  margin-bottom: 1.1rem;
}
.doc-hero__title {
  color: var(--milk-soft);
  font-size: clamp(1.05rem, 0.95rem + 0.6vw, 1.3rem);
  max-width: 42ch;
  margin-bottom: 1.9rem;
}
.doc-hero .ctarow { gap: 1.5rem; align-items: center; }
.doc-hero__sig { display: block; width: 200px; height: auto; margin-top: 2.1rem; opacity: 0.9; }

/* ---- THE STORY: chairside portrait + bio prose, on dark ---- */
.doc-story__grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.doc-story__media { margin: 0; }
.doc-story__media .frame { aspect-ratio: 3 / 4; }
.doc-story__media .frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.doc-story__media .cap { color: var(--milk-soft); margin-top: 0.85rem; }
.doc-story__prose .rule { margin-bottom: 1.4rem; }
.doc-story__prose h2 { margin-bottom: 1.5rem; }
.doc-story__prose p {
  color: var(--milk-soft);
  max-width: 60ch;
  font-size: 1.08rem;
  line-height: 1.78;
}
.doc-story__prose p + p { margin-top: 1.3rem; }
.doc-story__prose .tlink { color: var(--brass-light); }

.doc-quote { margin: clamp(2.2rem, 4vw, 3.4rem) 0; }
.doc-quote::before {
  content: "";
  display: block;
  width: 2.75rem;
  height: 2px;
  background: var(--brass);
  margin-bottom: 1.15rem;
}
.doc-quote p {
  font-family: var(--font-d);
  font-weight: 300;
  font-size: clamp(1.55rem, 1.1rem + 1.8vw, 2.5rem);
  line-height: 1.18;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--milk);
  max-width: 22ch;
}
.doc-quote__brass { color: var(--brass-light); font-weight: 600; }

/* overflow:hidden on the .cinema parent would disable sticky; allow it here */
.doc-story { overflow: visible; }
@media (min-width: 861px) {
  .doc-story__media { position: sticky; top: 6.5rem; align-self: start; }
}
@media (max-width: 860px) {
  .doc-story__grid { grid-template-columns: 1fr; }
  .doc-story__media { max-width: 24rem; }
}

/* ---- a second, slightly lighter dark tone for rhythm ---- */
.cinema--alt { background: var(--cinema-2); }

/* ---- PRACTICE IDENTITY: capability bento ---- */
.doc-ident .ident-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.doc-ident .ident-head .lead { margin-top: 1rem; }

.capgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: clamp(12rem, 15vw, 16rem) clamp(12rem, 15vw, 16rem);
  grid-template-areas:
    "owner owner lab   design"
    "photo laser cad   design";
  gap: clamp(0.7rem, 1.1vw, 1rem);
}
.capcard {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-md);
  border: 1px solid var(--dim-line);
  background: var(--cinema);
  padding: clamp(1.2rem, 2vw, 1.7rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.45rem;
  transition: border-color 0.3s var(--ease), transform 0.35s var(--ease);
}
.capcard:hover { border-color: oklch(66.5% 0.083 78 / 0.5); transform: translateY(-3px); }
.capcard__num {
  font-family: var(--font-d);
  font-weight: 300;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: var(--brass-light);
  font-variant-numeric: tabular-nums;
}
.capcard__name {
  font-family: var(--font-d);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.06;
  color: var(--milk);
  font-size: clamp(1.05rem, 0.9rem + 0.5vw, 1.35rem);
}
.capcard__desc { color: var(--milk-soft); font-size: 0.92rem; line-height: 1.5; }

/* owner feature tile */
.capcard--owner {
  justify-content: center;
  background: linear-gradient(135deg, var(--cinema-2), var(--cinema));
  border-color: oklch(66.5% 0.083 78 / 0.32);
}
.capcard--owner .capcard__name { font-size: clamp(1.8rem, 1.2rem + 2vw, 3rem); }
.capcard--owner .capcard__brass { color: var(--brass-light); font-weight: 300; }
.capcard--owner .capcard__desc { max-width: 44ch; margin-top: 0.4rem; }

/* image tiles */
.capcard--img { padding: 0; }
.capcard__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.capcard--img:hover .capcard__img { transform: scale(1.06); }
.capcard__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, oklch(13% 0.004 85 / 0.92) 0%, oklch(13% 0.004 85 / 0.4) 42%, transparent 78%);
}
.capcard__body {
  position: relative;
  margin-top: auto;
  padding: clamp(1.1rem, 1.8vw, 1.5rem);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

@media (max-width: 860px) {
  .capgrid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    grid-template-areas:
      "owner owner"
      "lab   design"
      "photo design"
      "laser cad";
  }
  .capcard { min-height: 12rem; }
  .capcard--owner { min-height: 0; }
}
@media (max-width: 520px) {
  .capgrid {
    grid-template-columns: 1fr;
    grid-template-areas: "owner" "lab" "design" "photo" "laser" "cad";
  }
  .capcard { min-height: 11rem; }
  .capcard--owner { min-height: 0; }
}

/* ---- WHY HE CREATED PERL (cinema) ---- */
.perl-copy { max-width: 54ch; }
.perl-copy .tlink { min-height: 0; padding-bottom: 0.1rem; }
.perl-closer {
  font-family: var(--font-d);
  font-weight: 300;
  font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.7rem);
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--milk);
}
.perl-closer__em { color: var(--brass-light); font-weight: 600; }
.perl-side { align-self: center; }
.perl-side__cta { margin-top: 2rem; }
.cinema .rule { margin-bottom: 1.5rem; }
.cinema h2 { margin-bottom: 1.5rem; }

/* ---- TEACHING: dark band, working photo + copy ---- */
.doc-teach .teach__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.doc-teach .teach__media .frame { aspect-ratio: 4 / 3; }
.doc-teach .teach__media .frame img { width: 100%; height: 100%; object-fit: cover; }
.doc-teach .teach__copy p { color: var(--milk-soft); max-width: 56ch; }
.doc-teach .teach__copy p + p { margin-top: 1rem; }
.doc-teach .teach__btn { margin-top: 1.75rem; }
@media (max-width: 860px) {
  .doc-teach .teach__grid { grid-template-columns: 1fr; }
  .doc-teach .teach__media { order: -1; }
}

/* mobile: scrim so hero text stays readable over the photo (visual QA) */
@media (max-width: 760px) {
  .doc-hero__bg::after { background: linear-gradient(180deg, rgba(12,11,9,.62), rgba(12,11,9,.85)); }
}

/* v8 — mobile QA: card 02's light UI screenshot showed through the thin scrim zone */
.capcard--tall .capcard__scrim {
  background: linear-gradient(to top, oklch(13% 0.004 85 / 0.94) 0%, oklch(13% 0.004 85 / 0.58) 55%, oklch(13% 0.004 85 / 0.14) 100%);
}
