:root {
  color-scheme: light;
  --ink: #171717;
  --muted: #767676;
  --line: #e5e5e5;
  --paper: #ffffff;
  --accent: #171717;
  --sans: Arial, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); font-family: var(--sans); }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
h1, h2, h3, p, figure { margin: 0; }

.agency { background: var(--paper); }
.skip { position: absolute; top: 10px; left: 10px; transform: translateY(-150%); padding: 12px; background: #fff; z-index: 5; }
.skip:focus { transform: none; }
.agency-header {
  min-height: 72px; padding: 0 clamp(20px, 4.5vw, 76px); display: grid;
  grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; border-bottom: 1px solid var(--line);
}
.agency-wordmark { font-size: 17px; font-weight: 850; letter-spacing: -.045em; white-space: nowrap; justify-self: start; }
.agency-wordmark span { color: var(--accent); }
.agency-topnav { display: flex; flex-wrap: wrap; gap: 0 clamp(12px, 3vw, 42px); }
.agency-topnav a, .back-home { display: inline-flex; min-height: 44px; align-items: center; gap: 7px; font-size: 12px; }
.agency-topnav a { font-weight: 800; letter-spacing: .08em; color: var(--muted); }
.agency-topnav a span { font-size: 11px; font-weight: 400; letter-spacing: 0; }
.agency-topnav a[aria-current], .agency-topnav a:hover { color: var(--accent); }
.back-home { justify-self: end; white-space: nowrap; color: var(--muted); }
.back-home:hover { color: var(--ink); }
.agency-main { max-width: 1500px; margin: 0 auto; padding: 0 clamp(20px, 4.5vw, 76px) 58px; }
.agency-intro { padding: 38px 0 25px; border-bottom: 1px solid var(--line); }
.eyebrow { color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.agency-intro h1 { font-size: clamp(32px, 5vw, 72px); line-height: .98; letter-spacing: -.06em; margin-top: 11px; }
.profile-layout {
  display: grid; grid-template-columns: minmax(132px, .65fr) minmax(180px, 1.6fr) minmax(230px, 1.5fr);
  align-items: start; gap: clamp(20px, 3.2vw, 48px); padding-top: 28px;
}
.roster-group + .roster-group { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.roster-group h2 { font-size: 14px; font-weight: 800; line-height: 1.6; }
.roster-group h2 span { display: block; font-size: 9px; color: var(--muted); letter-spacing: .14em; font-weight: 600; }
.roster-group ul { margin: 7px 0 0; padding: 0; list-style: none; }
.roster-group a {
  display: flex; align-items: center; min-height: 34px; padding: 4px 0;
  font-family: 'Arial Narrow', 'Helvetica Neue', var(--sans);
  font-size: clamp(13px, 1.22vw, 17px); font-weight: 400; color: var(--muted); line-height: 1.3;
}
.roster-group a:hover, .roster-group a[aria-current] { color: var(--ink); }
.roster-add { margin-top: 10px; font-size: 13px; }
.roster-add summary { cursor: pointer; width: fit-content; padding: 7px 0; font-weight: 700; }
.roster-add form { display: grid; gap: 6px; margin-top: 6px; }
.roster-add input, .roster-add button {
  min-height: 36px; border: 1px solid var(--line); border-radius: 4px; padding: 6px 9px; font: inherit;
}
.roster-add input { min-width: 0; width: 100%; }
.roster-add button { background: var(--ink); color: var(--paper); cursor: pointer; }
.agency-feedback { margin-top: 16px; font-size: 14px; }
.artist-list {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 12px; margin: 0; padding: 0; list-style: none;
}
.artist-card { display: flex; align-items: center; gap: 12px; min-height: 80px; padding: 12px; border: 1px solid var(--line); }
.artist-card:hover { border-color: var(--ink); }
.artist-avatar {
  display: grid; place-items: center; width: 56px; height: 56px; flex: none;
  object-fit: cover; background: #f0f0f0; filter: grayscale(1); font-size: 21px;
}
.artist-caption { display: grid; gap: 6px; overflow-wrap: anywhere; }
.artist-caption > span { color: var(--muted); font-size: 10px; letter-spacing: .1em; }
.portrait {
  aspect-ratio: 4 / 5; display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(16px, 2.4vw, 27px); background: #f0f0f0; border: 1px solid var(--line); min-width: 0;
}
.portrait.portrait-with-image { display: block; aspect-ratio: auto; padding: 0; border: 0; }
.portrait-image, .photo-grid img { display: block; width: 100%; height: auto; }
.portrait-top, .portrait figcaption { display: flex; justify-content: space-between; gap: 12px; color: #565656; font-size: 10px; letter-spacing: .1em; }
.portrait-mark { text-align: center; color: #d7d7d7; font-size: clamp(78px, 14vw, 190px); line-height: .85; font-weight: 900; letter-spacing: -.1em; padding-right: .1em; }
.detail { min-width: 0; scroll-margin-top: 16px; }
.detail > h2 { font-size: clamp(30px, 3.5vw, 56px); letter-spacing: -.055em; line-height: 1.12; margin: 10px 0 13px; }
.profile-nav { display: flex; flex-wrap: wrap; gap: clamp(15px, 2.5vw, 32px); border-bottom: 1px solid var(--line); }
.profile-nav a {
  display: inline-flex; align-items: center; min-height: 43px; border-bottom: 2px solid transparent;
  color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .1em;
}
.profile-nav a[aria-current], .profile-nav a:hover { color: var(--accent); border-color: var(--accent); }
.panel { padding-top: 25px; }
.panel h3 { font-size: 15px; font-weight: 800; }
.empty-note { color: var(--muted); font-size: 14px; margin-top: 10px; line-height: 1.65; }
.works { margin-top: 34px; }
.works h3 { font-size: 23px; letter-spacing: -.04em; }
.works-row { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 15px; border-block: 1px solid var(--line); padding: 14px 0; font-size: 13px; }
.works-row span:last-child { color: var(--muted); }
.photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.photo-grid div, .video-slot { display: grid; place-items: center; background: #f0f0f0; color: #565656; letter-spacing: .12em; font-size: 10px; }
.photo-grid div { aspect-ratio: 4 / 5; }
.video-slot { aspect-ratio: 16 / 9; margin-top: 14px; }
.agency-footer { display: flex; justify-content: space-between; gap: 12px; padding: 22px clamp(20px, 4.5vw, 76px); border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; letter-spacing: .12em; }

@media (max-width: 700px) {
  .profile-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .roster { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
  .roster-group + .roster-group { margin: 0; padding: 0; border: 0; }
  .roster-group a { font-size: 14px; }
}
@media (max-width: 540px) {
  .agency-header { grid-template-columns: 1fr auto; gap: 0 12px; padding-top: 6px; }
  .agency-topnav { grid-row: 2; grid-column: 1 / -1; }
  .back-home { grid-column: 2; grid-row: 1; }
  .agency-intro { padding-top: 27px; }
  .profile-layout { grid-template-columns: minmax(0, 1fr); gap: 23px; padding-top: 19px; }
  .roster { grid-column: auto; gap: 12px; }
  .roster-group a { min-height: 36px; }
  .portrait { aspect-ratio: 1 / 1; }
  .portrait-mark { font-size: clamp(100px, 37vw, 170px); }
}
