/* Cohen Lawyers - about template */
:root { --neutral-bg: #F9F8F6; }
body { font-size: 16px; line-height: 1.6; }
ul { list-style: none; }
button { font-family: inherit; }
:focus-visible { outline: 3px solid var(--black); outline-offset: 2px; }
.nav__link { transition: opacity var(--d-fast) var(--ease-out); }
.btn { font-family: var(--font-ui); min-height: 48px; }
.page-hero { position: relative; min-height: 68vh; display: flex; align-items: flex-end; overflow: hidden; background: #0a0a0a; }
.page-hero__bg { position: absolute; inset: 0; background-image: url('../assets/photography/Cohen_Lawyers_Glass_Building_Image_1.png'); background-size: cover; background-position: center 30%; transform: scale(1.04); transition: transform 8s var(--ease-cinematic); }
.page-hero__bg.is-loaded { transform: scale(1); }
.page-hero__overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.90) 0%, rgba(0,0,0,0.50) 45%, rgba(0,0,0,0.22) 100%); }
.page-hero__content { position: relative; z-index: 2; width: 100%; padding: 140px 48px 88px; max-width: 860px; }
.page-hero__eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-ui); font-size: 10px; font-weight: 400; letter-spacing: 0.38em; text-transform: uppercase; color: var(--paper-40); margin-bottom: 24px; opacity: 0; animation: fadeUp 500ms var(--ease-cinematic) 200ms forwards; }
.page-hero__h1 { font-family: var(--font-ui); font-weight: 700; font-style: normal; font-size: clamp(40px, 6vw, 76px); letter-spacing: -0.02em; line-height: 1.08; color: var(--white); margin-bottom: 22px; opacity: 0; animation: fadeUp 600ms var(--ease-cinematic) 500ms forwards; }
.page-hero__h1 em { font-style: normal; }
.page-hero__sub { font-family: var(--font-ui); font-weight: 300; font-size: clamp(15px, 1.6vw, 18px); color: var(--paper-60); line-height: 1.6; max-width: 520px; opacity: 0; animation: fadeUp 600ms var(--ease-cinematic) 800ms forwards; }
.breadcrumb__list { color: var(--ink-40); }
.story-section { background: var(--white); }
.story__split { display: grid; grid-template-columns: 55fr 45fr; min-height: 680px; }
.story__text-col { display: flex; flex-direction: column; justify-content: center; padding: 96px 64px 96px 80px; }
.story__photo-col { position: relative; overflow: hidden; }
.story__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.story__photo-scrim { position: absolute; left: 0; right: 0; bottom: 0; height: 46%; background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0) 100%); z-index: 1; pointer-events: none; }
.story__caption { position: absolute; left: 40px; bottom: 32px; z-index: 2; }
.story__caption-name { display: block; font-family: var(--font-ui); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; line-height: 1.1; color: var(--white); }
.story__caption-role { display: block; font-family: var(--font-ui); font-weight: 400; font-size: 10px; letter-spacing: 0.38em; text-transform: uppercase; color: var(--paper-60); margin-top: 7px; }
.story__h2 { font-family: var(--font-ui); font-weight: 700; font-style: normal; font-size: clamp(28px, 3.2vw, 44px); letter-spacing: -0.02em; line-height: 1.18; color: var(--black); margin-bottom: 32px; }
.story__h2 em { font-family: var(--font-display); font-weight: 400; font-style: normal; }
.story__p { font-family: var(--font-ui); font-weight: 300; font-size: clamp(12px, 0.9vw, 14px); line-height: 1.7; color: var(--ink-60); margin-bottom: 20px; }
.values-section { background: var(--teal); color: var(--white); }
.values__intro { text-align: center; margin-bottom: 64px; }
.values__h2 { font-family: var(--font-ui); font-weight: 700; font-style: normal; font-size: clamp(24px, 2.8vw, 38px); letter-spacing: -0.02em; line-height: 1.2; color: var(--white); }
.values__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.value-item { padding: 48px 40px; border-right: 1px solid var(--paper-08); }
.value-item:last-child { border-right: none; }
.value-item__num { font-family: var(--font-display); font-size: 13px; font-weight: 400; color: var(--paper-40); margin-bottom: 20px; letter-spacing: 0.12em; }
.value-item__h3 { font-family: var(--font-ui); font-weight: 700; font-style: normal; font-size: 18px; letter-spacing: -0.01em; line-height: 1.3; color: var(--white); margin-bottom: 14px; }
.value-item__p { font-family: var(--font-ui); font-weight: 300; font-size: clamp(12px, 0.9vw, 14px); line-height: 1.7; color: var(--paper-60); }
.team-section { background: var(--neutral-bg); }
.team__header { margin-bottom: 56px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.team__h2 { font-family: var(--font-ui); font-weight: 700; font-style: normal; font-size: clamp(28px, 3.2vw, 44px); letter-spacing: -0.02em; line-height: 1.2; color: var(--black); }
.team__view-all { font-family: var(--font-ui); font-size: 13px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--black); text-decoration: none; white-space: nowrap; padding-bottom: 3px; border-bottom: 1px solid var(--black); flex-shrink: 0; transition: opacity 200ms; }
.team__view-all:hover { opacity: 0.5; }
.team__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.team-card { background: var(--white); overflow: hidden; }
.team-card__photo-wrap { aspect-ratio: 3/4; overflow: hidden; }
.team-card__photo { width: 100%; height: 100%; object-fit: cover; object-position: 50% 10%; transition: transform 400ms var(--ease-cinematic); }
.team-card:hover .team-card__photo { transform: scale(1.04); }
.team-card__body { padding: 24px; }
.team-card__role-tag { display: inline-block; font-family: var(--font-ui); font-size: 10px; font-weight: 400; letter-spacing: 0.38em; text-transform: uppercase; color: var(--ink-40); border: 1px solid rgba(0,0,0,0.12); padding: 4px 10px; margin-bottom: 14px; }
.team-card__name { font-family: var(--font-ui); font-weight: 700; font-style: normal; font-size: 17px; letter-spacing: -0.01em; color: var(--black); margin-bottom: 4px; }
.team-card__title { font-family: var(--font-ui); font-weight: 300; font-size: clamp(12px, 0.9vw, 14px); line-height: 1.7; color: var(--ink-60); margin-bottom: 16px; }
.team-card__link { font-family: var(--font-ui); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 6px; border-bottom: 1px solid rgba(0,0,0,0.2); padding-bottom: 2px; transition: border-color var(--d-fast) var(--ease-out), gap var(--d-fast) var(--ease-cinematic); }
.team-card__link:hover { border-color: var(--black); gap: 10px; }
.heritage-section { background: var(--black); color: var(--white); }
.heritage-section .container { display: grid; grid-template-columns: 1fr 1fr; gap: 96px; align-items: center; }
.heritage__h2 { font-family: var(--font-ui); font-weight: 700; font-style: normal; font-size: clamp(26px, 3vw, 40px); letter-spacing: -0.02em; line-height: 1.2; color: var(--white); margin-bottom: 48px; }
.heritage__stats { display: flex; flex-direction: column; gap: 0; }
.heritage__stat { padding: 28px 0; border-bottom: 1px solid var(--paper-08); }
.heritage__stat:first-child { border-top: 1px solid var(--paper-08); }
.heritage__stat-num { font-family: var(--font-display); font-size: 52px; font-weight: 400; letter-spacing: -0.03em; line-height: 1; color: var(--white); margin-bottom: 6px; }
.heritage__stat-label { font-family: var(--font-ui); font-weight: 300; font-size: clamp(12px, 0.9vw, 14px); line-height: 1.7; color: var(--paper-60); }
.heritage-section .container > div:last-child { overflow: hidden; }
.heritage__photo { width: 100%; aspect-ratio: 2 / 3; min-height: 500px; background-image: url('../assets/photography/Cohen_Lawyers_Glass_Building_Image_2.png'); background-size: cover; background-position: center; background-repeat: no-repeat; }
.testimonial-section { background: var(--black); border-top: 1px solid var(--paper-08); min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.testimonial-section .container { max-width: 1100px; text-align: center; }
.testimonial__quote { font-family: var(--font-ui); font-style: normal; font-weight: 700; font-size: clamp(28px, 4vw, 56px); line-height: 1.12; letter-spacing: -0.01em; color: var(--white); }
.testimonial__attr { font-family: var(--font-ui); font-size: 12px; letter-spacing: 0.4em; text-transform: uppercase; color: var(--paper-60); margin-top: 56px; display: block; }
.testimonial__attr::before { content: ''; display: inline-block; width: 24px; height: 1px; background: var(--paper-40); vertical-align: middle; margin-right: 14px; }
.cta-section { border-top: 1px solid var(--paper-08); }
.cta__eyebrow { justify-content: center; }
.cta__h2 { font-style: normal; line-height: 1.05; }
.cta__h2 em { font-style: normal; }
.cta__phone { font-family: var(--font-ui); font-size: 14px; font-weight: 300; color: var(--paper-60); letter-spacing: 0.04em; }

@media (max-width: 1024px) {
  .nav { padding: 20px 32px; }
  .container { padding-inline: 32px; }
  .section { padding-block: 64px; }
  .story__text-col { padding: 64px 40px 64px 48px; }
  .heritage-section .container { gap: 48px; }
  .team__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 880px) {
  .story__split { grid-template-columns: 1fr; min-height: auto; }
  .story__photo-col { min-height: 420px; position: relative; }
  .values__grid { grid-template-columns: 1fr; }
  .value-item { border-right: none; border-bottom: 1px solid var(--paper-08); }
  .heritage-section .container { grid-template-columns: 1fr; gap: 40px; }
  .heritage__photo { min-height: 300px; aspect-ratio: unset; }
}

@media (max-width: 640px) {
  .nav { padding: 16px 24px; }
  .container { padding-inline: 24px; }
  .section { padding-block: 48px; }
  .page-hero__content { padding: 110px 24px 64px; }
  .breadcrumb { padding: 14px 24px; }
  .team__grid { grid-template-columns: 1fr 1fr; }
  .cta__eyebrow { display: none; }
  .cta__h2 { margin-top: -16px; }
}

@media (max-width: 480px) {
  .team__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-up { transition-duration: 0.01ms !important; }
  .page-hero__eyebrow, .page-hero__h1, .page-hero__sub { opacity: 1 !important; animation: none !important; }
  .page-hero__bg { transform: scale(1) !important; transition: none !important; }
}



.team-card { display: flex; flex-direction: column; }
.team-card__body { flex: 1; }

/* ── TEAM CARD ROW ALIGNMENT ──
   The new copy gives some people a dual role ("Director | Principal Solicitor")
   and a longer discipline line, so the role pill and the discipline wrap to a
   different number of lines on each card. Everything below them then starts at a
   different height and the row stops reading as a row.

   The floor goes on the ROW, not on the element. The card body becomes a grid
   whose pill and discipline tracks carry a minmax() floor, so a short pill keeps
   its natural height and its border still hugs its text - a min-height on the
   pill itself stretched it into a full-width box. The bio track takes 1fr and
   absorbs the slack, which lands the CTA on the card foot right across the row.
   minmax(_, auto) rather than a fixed height so an unusually long line can still
   grow instead of being clipped by the card's overflow:hidden. */
.team-card__body { display: grid; flex: 1;
  grid-template-rows:
    minmax(42px, auto)   /* role pill  - one or two lines */
    auto                 /* name       - always one line */
    minmax(72px, auto)   /* discipline - one to three lines */
    1fr                  /* bio        - absorbs the slack */
    auto;                /* CTA        - sits on the foot */
  align-items: start; }
.team-card__role-tag { display: inline-block; justify-self: start; min-height: 0; }
.team-card__title { min-height: 0; }
.team-card__link { justify-self: start; align-self: end; margin-top: 0; }

@media (max-width: 1300px) {
  .team-card__body { grid-template-rows: minmax(58px,auto) auto minmax(96px,auto) 1fr auto; }
}
@media (max-width: 1024px) {
  /* two columns - the cards are wide again, so far less wrapping */
  .team-card__body { grid-template-rows: minmax(42px,auto) auto minmax(48px,auto) 1fr auto; }
}
@media (max-width: 640px) {
  .team-card__body { grid-template-rows: minmax(34px,auto) auto auto 1fr auto; }
}

/* On the grid pages subgrid makes it exact at every width: the cards in a row
   share one set of tracks, so the floors above stop mattering there and no card
   carries dead space. The 2px row-gap moves onto the card as a border so the
   hairline seam between rows survives - with subgrid a row-gap would otherwise
   be inserted between all six tracks and split each card apart. */
@supports (grid-template-rows: subgrid) {
  .team__grid { row-gap: 0; }
  .team__grid .team-card { display: grid; grid-template-rows: subgrid; grid-row: span 6;
    border-bottom: 2px solid var(--neutral-bg, #F9F8F6); }
  .team__grid .team-card__body { grid-template-rows: subgrid; grid-row: span 5; }
}
