/* Client work: featured evidence, readable case previews, and accessible galleries. */
*, *::before, *::after { box-sizing: border-box; }
:root {
  --ground: #0c141c;
  --panel: #131f29;
  --panel-open: #172530;
  --line: #35424c;
  --line-soft: #2d3a45;
  --text: #f2eee6;
  --heading: #f8f4ec;
  --body: #cbd2d7;
  --role: #dde1e4;
  --muted: #b4bec5;
  --meta: #adb7be;
  --gold: #d4a853;
  --gold-bright: #edc779;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}
body { margin: 0; background: var(--ground); color: var(--text); font: 16px/1.65 var(--sans); -webkit-text-size-adjust: 100%; }
button { font: inherit; }
a { color: var(--gold-bright); text-underline-offset: 4px; }
a:hover { color: #ffe0a1; }
:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 4px; }
.page { max-width: 960px; margin: 0 auto; padding: 52px 32px 80px; display: flex; flex-direction: column; gap: 56px; }
.page-head { max-width: 730px; }
.eyebrow { margin: 0 0 12px; }
.page-head h1 { margin: 0 0 20px; font: 600 clamp(42px, 5vw, 58px)/1.12 var(--serif); letter-spacing: -.025em; color: var(--heading); }
.page-head > p:last-child { max-width: 66ch; margin: 0; font-size: 18px; line-height: 1.7; color: var(--body); }
.section-heading { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; justify-content: space-between; margin-bottom: 20px; }
.section-heading h2 { margin: 0; color: var(--heading); font: 600 27px/1.3 var(--serif); }
.section-heading p { margin: 0; font-size: 13px; color: var(--muted); }
.featured-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.featured-card { min-width: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--text); text-decoration: none; transition: border-color 160ms ease, transform 160ms ease; }
.featured-card:hover { color: var(--text); border-color: var(--gold); transform: translateY(-3px); }
.featured-media { aspect-ratio: 16 / 10; background: #0e1a23; border-bottom: 1px solid var(--line); overflow: hidden; }
.featured-media img { width: 100%; height: 100%; display: block; object-fit: contain; }
.featured-body { padding: 22px 20px; flex: 1; display: flex; flex-direction: column; align-items: flex-start; }
.featured-client { margin: 0 0 10px; color: var(--gold-bright); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.featured-body h3 { margin: 0 0 14px; font: 600 23px/1.3 var(--serif); color: var(--heading); }
.featured-summary { margin: 0 0 18px; color: var(--body); font-size: 14px; line-height: 1.65; }
.featured-role { margin: auto 0 12px; font-size: 13px; line-height: 1.5; color: var(--role); }
.featured-role span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.featured-result { margin: 0; color: var(--gold-bright); font-size: 14px; font-weight: 600; line-height: 1.5; }
.featured-link { display: inline-flex; gap: 12px; margin-top: 20px; min-height: 32px; align-items: center; color: var(--text); font-size: 13px; font-weight: 600; }
.featured-link span { font-size: 18px; }
.work-divider { border-top: 1px solid var(--line); padding-top: 26px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 13px; color: var(--muted); margin-bottom: -16px; }
.work-divider span:first-child { color: var(--role); font-weight: 600; }
.brand { display: flex; flex-direction: column; gap: 24px; }
.brand + .brand { border-top: 1px solid var(--line); padding-top: 48px; }
.brand-heading { display: grid; grid-template-columns: 160px minmax(0, 1fr); align-items: center; gap: 28px; }
.brand-logo-wrap { margin: 0; min-height: 60px; display: flex; align-items: center; }
.brand-logo { width: auto; max-width: 145px; height: auto; max-height: 52px; object-fit: contain; }
.brand[data-brand="usaa"] .brand-logo { max-height: 68px; }
.brand-blurb { margin: 0; max-width: 67ch; font-size: 15px; line-height: 1.65; color: var(--body); }
.tracks { display: flex; flex-direction: column; gap: 14px; }
.track { border: 1px solid var(--line); border-radius: 8px; background: var(--panel); scroll-margin-top: 24px; transition: background 160ms ease, border-color 160ms ease; }
.track[data-open="true"] { background: var(--panel-open); border-color: #6c6045; }
.case-preview { padding: 24px 28px; }
.case-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-bottom: 12px; color: var(--meta); font-size: 12px; line-height: 1.5; }
.case-kicker > span:first-child { margin-right: auto; }
.case-status { border: 1px solid #526071; color: #dbe1e7; background: #20313f; border-radius: 4px; padding: 3px 8px; font-size: 11px; line-height: 1.5; }
.track-heading { margin: 0 0 12px; font: inherit; }
.track-trigger { display: flex; align-items: center; width: 100%; min-height: 44px; gap: 24px; margin: 0; padding: 0; border: 0; background: none; color: var(--heading); text-align: left; cursor: pointer; }
.track-title { flex: 1; font: 600 25px/1.3 var(--serif); }
.chevron { width: 22px; height: 22px; color: var(--gold-bright); flex: 0 0 22px; transition: transform 160ms ease; }
.track-trigger[aria-expanded="true"] .chevron, .lookbook[open] > summary > .chevron { transform: rotate(180deg); }
.case-summary { margin: 0; max-width: 70ch; color: var(--body); font-size: 16px; }
.case-role-preview { margin: 12px 0 0; color: var(--role); font-size: 13px; line-height: 1.6; }
.case-role-preview span { color: var(--muted); margin-right: 10px; }
.case-outcome { margin: 14px 0 0; max-width: 74ch; color: var(--gold-bright); font-size: 14px; line-height: 1.6; font-weight: 500; }
.track-panel { padding: 0 28px 28px; }
.track-panel[hidden] { display: none; }
.role-grid { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px 24px; margin: 0 0 28px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.role-grid dt { margin: 0; color: var(--gold-bright); font-size: 12px; font-weight: 500; }
.role-grid dd { margin: 0; color: var(--role); font-size: 14px; line-height: 1.65; }
.case-evidence { margin: 0 0 32px; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: #101b23; }
.case-evidence-button { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #101b23; cursor: zoom-in; }
.case-evidence-button:focus-visible { outline-width: 4px; outline-offset: -4px; }
.case-evidence-button img { display: block; width: 100%; max-height: 460px; aspect-ratio: 16 / 9; object-fit: contain; }
.evidence-expand { position: absolute; bottom: 10px; right: 10px; display: inline-flex; gap: 6px; align-items: center; padding: 7px 10px; border: 1px solid #7f8b96; border-radius: 4px; background: #0f1923eb; color: #fff; font-size: 11px; line-height: 1.4; }
.evidence-expand svg { width: 16px; height: 16px; }
.case-evidence figcaption { padding: 14px 18px; color: var(--role); font-size: 13px; line-height: 1.6; border-top: 1px solid var(--line); }
.star { display: flex; flex-direction: column; gap: 24px; margin-bottom: 28px; }
.star-item h4 { margin: 0 0 8px; font: 600 21px/1.3 var(--serif); color: var(--heading); }
.star-item p { max-width: 72ch; margin: 0 0 12px; font-size: 16px; line-height: 1.75; color: var(--body); }
.star-item p:last-child { margin-bottom: 0; }
.case-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.case-actions:empty { display: none; }
.proto-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 10px 16px; margin: 0 0 8px; border: 1px solid #b5914d; border-radius: 5px; background: none; color: var(--gold-bright); font-size: 13px; font-weight: 600; text-decoration: none; cursor: pointer; }
.proto-btn:hover { background: #d4a85312; color: #ffe0a1; }
.proto-note { width: 100%; margin: 0 0 12px; color: var(--muted); font-size: 13px; }
.lookbook { margin-top: 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lookbook-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; min-height: 64px; padding: 15px 0; cursor: pointer; list-style: none; }
.lookbook-head::-webkit-details-marker { display: none; }
.lookbook-title { color: var(--text); font-size: 14px; font-weight: 600; }
.lookbook-count { margin-left: auto; color: var(--meta); font-size: 12px; }
.lookbook-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 14px; padding: 4px 0 24px; }
.gallery-item { min-width: 0; margin: 0; }
.thumb { position: relative; display: block; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; padding: 0; border: 1px solid #56616b; border-radius: 4px; background: #0d171f; cursor: zoom-in; }
.thumb img { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform 160ms ease; }
.thumb:hover { border-color: var(--gold); }
.thumb:hover img { transform: scale(1.02); }
.thumb-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.gallery-item figcaption { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-top: 9px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.gallery-item figcaption > span { color: var(--gold-bright); margin-right: 7px; font-variant-numeric: tabular-nums; }
.case-close { display: inline-flex; align-items: center; gap: 14px; margin-top: 16px; padding: 8px 0; min-height: 44px; border: 0; background: none; color: var(--role); font-size: 13px; cursor: pointer; }
.case-close:hover { color: var(--gold-bright); }
.lightbox { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 24px; border: 0; background: #080e14f5; color: var(--text); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: transparent; }
.lightbox-inner { position: relative; width: 100%; max-width: 1060px; max-height: 100%; display: flex; flex-direction: column; align-items: stretch; gap: 14px; }
.lightbox-close { align-self: flex-end; flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid #697680; border-radius: 50%; color: var(--text); background: #16232d; font: 26px/1 var(--sans); cursor: pointer; }
.lightbox-img, .lightbox-video { display: block; width: 100%; min-height: 0; max-height: calc(100dvh - 260px); flex: 1 1 auto; object-fit: contain; background: #101a22; border-radius: 4px; }
.lightbox-video { background: #000; }
.lightbox-caption { flex-shrink: 0; margin: 0; max-width: 84ch; max-height: 108px; overflow-y: auto; font-size: 14px; line-height: 1.6; color: var(--role); }
.lightbox-nav { flex-shrink: 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.lightbox-pos { color: var(--meta); font-size: 13px; font-variant-numeric: tabular-nums; }
.lightbox-btn { min-height: 44px; padding: 9px 18px; border: 1px solid #677681; border-radius: 4px; background: none; color: var(--text); font-size: 14px; cursor: pointer; }
.lightbox-btn:hover { border-color: var(--gold); }
@media (max-width: 820px) {
  .featured-grid { grid-template-columns: 1fr; gap: 20px; }
  .featured-card { display: grid; grid-template-columns: 42% minmax(0, 1fr); }
  .featured-media { aspect-ratio: auto; border-bottom: 0; border-right: 1px solid var(--line); }
  .featured-body { padding: 24px; }
  .featured-body h3 { font-size: 25px; }
  .featured-summary { margin-bottom: 14px; }
  .featured-role { margin-top: 0; }
  .featured-link { margin-top: 12px; }
}
@media (max-width: 640px) {
  .page { padding: 36px 16px 56px; gap: 40px; }
  .page-head > p:last-child { font-size: 17px; }
  .section-heading { margin-bottom: 16px; }
  .brand-heading { display: block; }
  .brand-logo-wrap { margin-bottom: 20px; }
  .brand + .brand { padding-top: 36px; }
  .case-preview { padding: 20px; }
  .case-kicker { align-items: flex-start; }
  .track-title { font-size: 23px; }
  .track-trigger { gap: 14px; }
  .track-panel { padding: 0 20px 22px; }
  .role-grid { grid-template-columns: 1fr; gap: 4px; }
  .role-grid dt:not(:first-child) { margin-top: 12px; }
  .role-grid dd { font-size: 15px; }
  .case-evidence figcaption { padding: 12px 14px; }
  .case-evidence-button img { aspect-ratio: 4 / 3; }
  .star-item p { font-size: 16px; line-height: 1.7; }
  .lookbook-head { gap: 4px 10px; }
  .lookbook-count { margin-left: 0; }
  .lookbook-head .chevron { margin-left: auto; }
  .lookbook-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .lightbox { padding: 12px; }
  .lightbox-inner { gap: 12px; }
  .lightbox-img, .lightbox-video { max-height: calc(100dvh - 270px); }
  .lightbox-caption { font-size: 13px; }
}
@media (max-width: 520px) {
  .featured-card { display: flex; }
  .featured-media { aspect-ratio: 16 / 10; border-right: 0; border-bottom: 1px solid var(--line); }
  .featured-body { padding: 22px; }
  .featured-body h3 { font-size: 25px; }
  .featured-summary { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .featured-card, .track, .chevron, .thumb img { transition: none; }
  .featured-card:hover { transform: none; }
}
