/* Cohen Lawyers - profile 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; }
.btn { font-family: var(--font-ui); min-height: 48px; }
.btn--primary { background: var(--black); color: var(--white); border-color: var(--black); }
.btn--primary:hover { background: #1a1a1a; }
.btn--ghost { color: var(--white); border-color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--black); }
.profile-hero { position: relative; height: 100svh; min-height: 640px; display: flex; align-items: stretch; overflow: hidden; background: #0a0a0a; }
.profile-hero__bg { position: absolute; inset: 0; overflow: hidden; }
.profile-hero__bg img { position: absolute; right: 0; top: 0; bottom: 0; width: 72%; height: 100%; object-fit: contain; object-position: right bottom; display: block; transform: scale(2.3) translateY(-7%); transform-origin: right 18%; -webkit-mask-image: linear-gradient(to right, transparent 0%, transparent 38%, black 42%); mask-image: linear-gradient(to right, transparent 0%, transparent 38%, black 42%); }
.profile-hero__overlay { position: absolute; inset: 0; background: linear-gradient(to right, #000 0%, #000 40%, transparent 64%), linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 38%); }
.profile-hero__content { position: relative; z-index: 2; width: 55%; max-width: 700px; padding: 160px 48px 80px 96px; display: flex; flex-direction: column; justify-content: flex-end; }
.profile-hero__back { display: inline-flex; align-self: flex-start; 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: 20px; padding-bottom: 4px; border-bottom: 1px solid currentColor; transition: color var(--d-fast) var(--ease-out), border-color var(--d-fast) var(--ease-out); }
.profile-hero__back:hover { color: var(--white); }
.profile-hero__name { font-family: var(--font-ui); font-weight: 700; font-style: normal; font-size: clamp(40px, 5.5vw, 72px); letter-spacing: -0.02em; line-height: 1.08; color: var(--white); margin-bottom: 8px; opacity: 0; animation: fadeUp 600ms var(--ease-cinematic) 400ms forwards; }
.profile-hero__role { font-family: var(--font-ui); font-size: clamp(13px, 1.2vw, 15px); font-weight: 400; letter-spacing: 0.18em; text-transform: uppercase; color: var(--paper-40); margin-bottom: 36px; opacity: 0; animation: fadeUp 600ms var(--ease-cinematic) 550ms forwards; }
.profile-hero__bio { font-family: var(--font-ui); font-weight: 300; font-size: clamp(14px, 1.1vw, 16px); line-height: 1.75; color: var(--paper-60); max-width: 560px; margin-bottom: 14px; opacity: 0; animation: fadeUp 600ms var(--ease-cinematic) 700ms forwards; }
.profile-hero__cta { margin-top: 28px; opacity: 0; animation: fadeUp 600ms var(--ease-cinematic) 950ms forwards; }
.profile-hero__bio-wrap { position: relative; max-width: 560px; margin-bottom: 0; opacity: 0; animation: fadeUp 600ms var(--ease-cinematic) 700ms forwards; }
.profile-hero__bio-scroll { height: 190px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.18) transparent; padding-right: 10px; }
.profile-hero__bio-scroll::-webkit-scrollbar { width: 2px; }
.profile-hero__bio-scroll::-webkit-scrollbar-track { background: transparent; }
.profile-hero__bio-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.22); border-radius: 1px; }
.profile-hero__bio-scroll .profile-hero__bio { opacity: 1; animation: none; }
.profile-hero__bio-fade { position: absolute; bottom: 0; left: 0; right: 0; height: 56px; background: linear-gradient(to bottom, transparent 0%, rgba(6,6,6,0.85) 100%); pointer-events: none; }
.profile-hero__bio-indicator { display: flex; align-items: center; gap: 6px; margin-top: 10px; position: relative; z-index: 1; }
.profile-hero__bio-wrap.bio-fits .profile-hero__bio-fade, .profile-hero__bio-wrap.bio-fits .profile-hero__bio-indicator { display: none; }
.profile-hero__bio-indicator span { font-family: var(--font-ui); font-size: 9px; letter-spacing: 0.32em; text-transform: uppercase; color: rgba(255,255,255,0.7); }
.profile-hero__bio-indicator svg { animation: scrollBounce 2s ease-in-out infinite; color: rgba(255,255,255,0.7); }
.breadcrumb__list { color: var(--ink-40); }
.bio-section { background: var(--white); }
.bio__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); margin-bottom: 0; }
.bio__statement { font-family: var(--font-ui); font-size: clamp(18px, 1.8vw, 24px); font-weight: 600; font-style: normal; line-height: 1.5; color: var(--black); margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--ink-08); max-width: 800px; }
.bio__cols { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 48px; margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--ink-08); }
.bio__list-heading { font-family: var(--font-ui); font-weight: 700; font-style: normal; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--black); margin-bottom: 16px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--ink-08); }
.bio__list-heading:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.bio__list { display: flex; flex-direction: column; gap: 10px; }
.bio__list li { font-family: var(--font-ui); font-weight: 300; font-size: clamp(12px, 0.9vw, 14px); line-height: 1.7; color: var(--ink-60); padding-left: 16px; position: relative; }
.bio__list li::before { content: '–'; position: absolute; left: 0; color: var(--ink-40); }
.practice-section { background: var(--teal); color: var(--white); }
.practice__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(--white); margin-bottom: 48px; }
.practice__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2px; }
.practice-tag { background: var(--paper-08); padding: 32px 28px; }
a.practice-tag { display: block; text-decoration: none; color: inherit; cursor: pointer; transition: background var(--d-fast) var(--ease-out); }
a.practice-tag:hover, a.practice-tag:focus-visible { background: rgba(255,255,255,0.16); }
.practice-tag__num { font-family: var(--font-display); font-size: 28px; font-weight: 400; color: var(--paper-40); margin-bottom: 16px; line-height: 1; }
.practice-tag__label { font-family: var(--font-ui); font-weight: 700; font-style: normal; font-size: 15px; letter-spacing: -0.01em; color: var(--white); margin-bottom: 8px; }
.practice-tag__sub { font-family: var(--font-ui); font-weight: 300; font-size: clamp(12px, 0.9vw, 14px); line-height: 1.7; color: var(--paper-60); }
.testimonials-section { background: var(--black); color: var(--white); }
.testimonials__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(--white); margin-bottom: 56px; }
.testimonials__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.testimonial-card { background: rgba(255,255,255,0.04); padding: 48px 40px; border: 1px solid var(--paper-08); }
.testimonial-card__mark { font-family: var(--font-display); font-size: 48px; font-weight: 400; color: var(--paper-20); line-height: 0.8; margin-bottom: 20px; display: block; }
.testimonial-card__quote { font-family: var(--font-ui); font-size: clamp(16px, 1.6vw, 20px); font-weight: 700; line-height: 1.5; color: var(--white); margin-bottom: 24px; }
.testimonial-card__attr { font-family: var(--font-ui); font-weight: 300; font-size: 12px; color: var(--paper-40); letter-spacing: 0.06em; }
.profile-cta { position: relative; overflow: hidden; background: var(--black); border-top: 1px solid var(--paper-08); display: grid; grid-template-columns: 1fr 1fr; }
.profile-cta__glow { position: absolute; inset: 0; background: radial-gradient(ellipse 80% 70% at 0% 50%, rgba(38,59,54,0.5) 0%, transparent 65%); pointer-events: none; z-index: 1; }
.profile-cta__content { position: relative; z-index: 2; padding: 96px 64px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; grid-column: 1 / -1; }
.profile-cta__photo { position: absolute; right: 0; top: 0; bottom: 0; width: 50%; overflow: hidden; z-index: 1; }
.profile-cta__seam { position: absolute; inset: 0; background: linear-gradient(to right, var(--black) 0%, transparent 55%); z-index: 1; pointer-events: none; }
.profile-cta__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 32%; }
.profile-cta__h2 { font-family: var(--font-ui); font-weight: 700; font-style: normal; font-size: clamp(36px, 5vw, 64px); letter-spacing: -0.03em; line-height: 1.05; color: var(--white); margin-bottom: 40px; }
.profile-cta__h2 em { font-family: var(--font-display); font-weight: 400; font-style: normal; }
.profile-cta__actions { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.profile-hero__bg--placeholder { display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, #141414 0%, #0a0a0a 100%); }
.profile-hero__bg--placeholder svg { width: 22%; height: auto; fill: rgba(255,255,255,0.08); }
.profile-cta__photo--placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, #141414 0%, #0a0a0a 100%); }
.profile-cta__photo--placeholder svg { width: 20%; height: auto; fill: rgba(255,255,255,0.08); }

@keyframes scrollBounce {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

@media (max-width: 880px) {
  .profile-cta { grid-template-columns: 1fr; }
  .profile-cta__photo { min-height: 340px; order: -1; }
  .profile-cta__content { padding: 56px 32px; align-items: flex-start; text-align: left; }
  .profile-cta__h2 { max-width: 60%; }
  .profile-cta__actions { justify-content: flex-start; }
  .profile-hero__content { width: 100%; padding: 110px 24px 56px; }
  .profile-hero__bg img { left: 0; right: 0; width: 100%; object-fit: cover; object-position: center 20%; transform: none; -webkit-mask-image: none; mask-image: none; }
  .profile-hero__overlay { background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.5) 42%, rgba(0,0,0,0.15) 70%, rgba(0,0,0,0.35) 100%); }
  .bio__cols { grid-template-columns: 1fr; gap: 32px; }
  .testimonials__grid { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
  .nav { padding: 20px 32px; }
  .container { padding-inline: 32px; }
  .section { padding-block: 64px; }
  .bio__cols { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 640px) {
  .nav { padding: 16px 24px; }
  .container { padding-inline: 24px; }
  .section { padding-block: 48px; }
  .breadcrumb { padding: 14px 24px; }
  .profile-hero__content { padding: 80px 24px 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-up { transition-duration: 0.01ms !important; }
  .profile-hero__name, .profile-hero__role, .profile-hero__bio, .profile-hero__cta { opacity: 1 !important; animation: none !important; }
}

/* ═══════════════════════════════════════════════════════════════════
   "CREDENTIALS & EXPERTISE" — MOBILE REDESIGN (R5_v2)
   Hero and every other section on the profile page are untouched.
   Patterned on iOS HIG grouped-inset lists + Material 3 outlined cards,
   chips and 48dp touch targets. Nothing is hidden behind disclosure:
   all credentials stay readable and crawlable.
   ═══════════════════════════════════════════════════════════════════ */

/* Makes a long email address break at the "@" rather than mid-domain. CSS
   treats every "." as a valid break point, so otherwise the browser picks the
   last dot that fits and orphans "au" on its own line. inline-block keeps the
   domain together as one unit that moves to the next line when it does not
   fit — but, unlike white-space: nowrap, it can still wrap inside itself on
   very narrow screens instead of overflowing the viewport. No effect on
   desktop, where the address fits on one line either way. */
.bio__nb { display: inline-block; overflow-wrap: anywhere; }

/* Column-count fix. The 1-column rule for <=880px is declared BEFORE the
   <=1024px 2-column rule, so at phone widths both matched and the later
   2-column rule won — which is why the lists were squeezed into two ~90px
   columns. Re-asserted last so 1 column actually applies. 881-1024px keeps
   its intended 2-column tablet layout. */
@media (max-width: 880px) {
  .bio__cols { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  /* ── Section rhythm: tighter lead-in, cards do the separating ── */
  .bio__h2 { font-size: 27px; line-height: 1.22; letter-spacing: -0.015em; }
  .bio__statement { font-size: 17px; line-height: 1.55; margin-top: 24px; padding-top: 24px; }
  .bio__cols { display: flex; flex-direction: column; gap: 10px; margin-top: 28px; padding-top: 28px; }

  /* ── Each credential group = one grouped-inset card ──
     iOS grouped table view / Material 3 outlined card: 14px radius,
     hairline outline, 16px inner gutters, no shadow (flat, print-like
     to suit the brand rather than Material's elevation). */
  .bio__cols > aside {
    background: #F8F8F7;
    border: 1px solid var(--ink-08);
    border-radius: 14px;
    padding: 20px 16px;
  }

  /* Group header. Inside a card the original top rule/margin is redundant. */
  .bio__cols > aside .bio__list-heading {
    font-size: 12px;
    letter-spacing: 0.08em;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--ink-08);
  }
  .bio__cols > aside .bio__list-heading:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
  }

  /* ── Default group = grouped list rows ──
     12px dash-bulleted text is below a comfortable mobile reading size, and
     the dashes read as noise once each group is boxed. Rows are separated by
     hairlines instead, at 15px — the smallest size that still sits in the
     iOS/Material body range for long strings like admissions. */
  .bio__list { gap: 0; }
  .bio__list li {
    font-size: 15px;
    line-height: 1.5;
    padding: 11px 0;
    border-bottom: 1px solid var(--ink-08);
  }
  .bio__list li:last-child { border-bottom: none; padding-bottom: 0; }
  .bio__list li:first-child { padding-top: 0; }
  .bio__list li::before { content: none; }
  .bio__list li { padding-left: 0; }

  /* ── Practice / Focus Areas = chips ──
     Short taxonomy labels (median 15 characters) scan far better as wrapping
     pills than as five stacked rows, and it cuts the group's height by ~60%.
     The first aside is Practice Areas / Focus Areas on all 13 profiles.
     Long labels are allowed to wrap rather than overflow the screen. */
  .bio__cols > aside:first-child .bio__list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }
  .bio__cols > aside:first-child .bio__list li {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid rgba(0, 0, 0, 0.14);
    border-bottom: 1px solid rgba(0, 0, 0, 0.14);
    border-radius: 999px;
    background: var(--white);
    color: var(--black);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.35;
    max-width: 100%;
  }

  /* ── Contact = action rows ──
     The contact list is always the last list of the last card. Phone and
     email become full-width rows at a 52px minimum height, clearing both
     the iOS 44pt and Material 48dp touch-target minimums (they were ~20px
     inline text links before). Leading glyph, trailing chevron. */
  .bio__cols > aside:last-child > .bio__list:last-of-type li {
    padding: 0;
    border-bottom: 1px solid var(--ink-08);
  }
  .bio__cols > aside:last-child > .bio__list:last-of-type li:last-child { border-bottom: none; }
  /* Block (not flex) so the address is a single normal text flow that can wrap.
     As flex items the glyph and the address could not line-break together and
     a long address overflowed the viewport on 320px screens. */
  .bio__list a[href^="tel:"],
  .bio__list a[href^="mailto:"] {
    display: block;
    position: relative;
    min-height: 52px;
    padding: 16px 18px 16px 30px;
    color: var(--black);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.4;
    text-decoration: none;
    -webkit-tap-highlight-color: rgba(38, 59, 54, 0.12);
    touch-action: manipulation;
  }
  /* Email addresses run to 29 characters, which cannot fit one line at a
     readable size on a 375px screen (let alone 320px). Rather than shrink the
     type to a marginal fit, a long value wraps onto a second line with the
     glyph aligned to the first — the iOS Contacts long-value pattern. */
  .bio__list a[href^="mailto:"] { font-size: 14px; }
  /* leading glyph — drawn in CSS so no new asset is needed */
  .bio__list a[href^="tel:"]::before,
  .bio__list a[href^="mailto:"]::before {
    content: '';
    position: absolute;
    left: 0;
    top: 17px;
    width: 18px;
    height: 18px;
    background: var(--teal);
    -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
    -webkit-mask-position: center; mask-position: center;
    -webkit-mask-size: 18px 18px; mask-size: 18px 18px;
  }
  .bio__list a[href^="tel:"]::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.13.96.36 1.9.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.9.34 1.85.57 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
            mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.13.96.36 1.9.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.9.34 1.85.57 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
  }
  .bio__list a[href^="mailto:"]::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m2 7 10 6 10-6'/%3E%3C/svg%3E");
            mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m2 7 10 6 10-6'/%3E%3C/svg%3E");
  }
  /* trailing chevron — the standard "this row does something" affordance */
  .bio__list a[href^="tel:"]::after,
  .bio__list a[href^="mailto:"]::after {
    content: '';
    position: absolute;
    right: 4px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-right: 1.5px solid var(--ink-40);
    border-bottom: 1.5px solid var(--ink-40);
    transform: translateY(-50%) rotate(-45deg);
  }
  .bio__list a[href^="tel:"]:active,
  .bio__list a[href^="mailto:"]:active { opacity: 0.55; }
}
