.hero-art {
  padding: 0;
  background: var(--ink);
}
.hero-photo {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center;
  margin-top: -17.1%;
  clip-path: inset(12% 0 0);
  border: 0;
  box-shadow: none;
  filter: none;
}
.hero-art::before { display: none; }
.hero-art::after { display: none; }
.hero-art .fan { z-index: 2; }
.hero-art .fan-b { left: -4%; right: auto; top: 5%; transform: scaleX(-1) rotate(62deg); }
.profile-visual { overflow: visible; padding: 0; background: transparent; box-shadow: 0 20px 44px rgba(105,84,132,.14); }
.profile-visual::after { display: block; inset: -16px; border: 16px solid #f3dda0; border-radius: 16px 6px 16px 6px; box-shadow: 0 0 0 2px rgba(232,187,68,.7), 0 0 0 7px rgba(250,237,196,.58); pointer-events: none; }
.profile-visual img { width: 100%; height: 100%; object-fit: cover; object-position: 76% top; }
.profile { row-gap: 36px; background: linear-gradient(145deg, #f1ebf5 0%, #e9e0f0 100%); }
.facts div:last-child { border-bottom: 1px solid var(--line); }
.profile-details { grid-column: 1 / -1; display: grid; grid-template-columns: .9fr 1.35fr; gap: clamp(40px,7vw,100px); margin-top: 0; padding-top: 32px; border-top: 0; }
.profile-details section { min-width: 0; }
.profile-label { margin: 0 0 6px; color: var(--red); font: 700 10px/1.4 Arial,sans-serif; letter-spacing: .25em; }
.profile-details h3 { margin: 0 0 24px; font-size: 28px; letter-spacing: .08em; }
.career-timeline { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--gold); }
.career-timeline li { position: relative; padding: 0 0 22px 25px; }
.career-timeline li::before { content: ""; position: absolute; left: -5px; top: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--sumire-pastel); border: 1px solid var(--gold); }
.career-timeline time { display: block; color: var(--violet-deep); font-size: 13px; }
.career-timeline p { margin: 3px 0 0; font-size: 14px; line-height: 1.65; }
.works-groups { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1px; background: var(--line); }
.works-groups article { padding: 20px; background: linear-gradient(145deg, #faedc4 0%, #f3dda0 100%); }
.works-groups article:last-child { grid-column: 1 / -1; }
.works-groups h4 { margin: 0 0 8px; color: var(--violet-deep); font-size: 17px; }
.works-groups p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
.appearances-block { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1px; margin-top: 8px; background: var(--line); }
.appearances-block > div { padding: 28px; background: linear-gradient(145deg, #faedc4 0%, #f3dda0 100%); }
.appearances-block h3 { margin-bottom: 12px; font-size: 21px; }
.appearances-block p, .appearances-block li { font-size: 14px; color: var(--muted); }
.appearances-block ul { margin: 0; padding-left: 1.2em; }
.family-list article { padding: 0; }
.person-open { width: 100%; height: 100%; display: flex; gap: 22px; align-items: center; padding: 34px; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.person-open:hover, .person-open:focus-visible { background: rgba(205,189,222,.22); outline: 2px solid var(--gold); outline-offset: -6px; }
.family-list article img { width: 92px; height: 112px; object-fit: cover; object-position: center top; flex: 0 0 auto; border: 1px solid var(--gold-soft); background: #fff; }
.family-list .master img { width: 118px; height: 142px; filter: grayscale(1); }
.family-list article div { min-width: 0; }
.person-open p span { color: var(--violet-deep); margin-left: 5px; }
.person-dialog { width: min(760px, calc(100% - 36px)); padding: 0; border: 1px solid var(--gold); background: var(--paper); color: var(--ink); box-shadow: 0 25px 80px rgba(20,42,53,.35); }
.person-dialog::backdrop { background: rgba(11,30,39,.7); backdrop-filter: blur(3px); }
.dialog-layout { display: grid; grid-template-columns: 230px 1fr; gap: 38px; padding: 48px; }
.dialog-layout > img { width: 100%; max-height: 330px; object-fit: cover; object-position: center top; border: 1px solid var(--gold-soft); }
.dialog-layout h2 { margin: 0 0 20px; font-size: 32px; }
.dialog-layout ul { margin: 0; padding: 0; list-style: none; }
.dialog-layout li { padding: 8px 0; border-top: 1px solid var(--line); font-size: 15px; }
.dialog-close { position: absolute; right: 14px; top: 10px; width: 40px; height: 40px; border: 0; background: transparent; color: var(--violet-deep); font-size: 32px; line-height: 1; cursor: pointer; }
.school-list article { padding: 0; }
.class-open { width: 100%; padding: 24px 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.class-open:hover, .class-open:focus-visible { padding-left: 18px; background: rgba(255,255,255,.09); outline: 1px solid rgba(255,255,255,.55); outline-offset: -1px; }
.class-open small span { color: var(--gold-soft); margin-left: 5px; }
.class-dialog { width: min(680px, calc(100% - 36px)); padding: 0; border: 1px solid var(--gold); background: var(--paper); color: var(--ink); box-shadow: 0 25px 80px rgba(20,42,53,.35); }
.class-dialog::backdrop { background: rgba(11,30,39,.72); backdrop-filter: blur(3px); }
.class-dialog-content { padding: 48px; }
.class-dialog-content h2 { margin: 0 0 8px; font-size: 30px; line-height: 1.45; }
.class-venue { margin: 0 0 24px; color: var(--violet-deep); }
.class-dialog-content ul { margin: 0 0 26px; padding: 0; list-style: none; }
.class-dialog-content li { padding: 10px 0; border-top: 1px solid var(--line); }
.class-contact { display: inline-block; padding: 12px 20px; border: 1px solid var(--gold); background: var(--sumire-pastel); text-decoration: none; }
.class-dialog-close { position: absolute; right: 14px; top: 10px; width: 40px; height: 40px; border: 0; background: transparent; color: var(--violet-deep); font-size: 32px; line-height: 1; cursor: pointer; }
.original { position: relative; background: linear-gradient(145deg, #f4f0e7 0%, #ece2d3 62%, #f7f3eb 100%); overflow: hidden; }
.family { background: linear-gradient(145deg, #f1ebf5 0%, #e9e0f0 100%); }
.original-violets { position: absolute; right: 2%; top: 30px; width: 150px; opacity: .48; pointer-events: none; }
.original-violets img { width: 100%; height: auto; }
.photo-gallery { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); grid-auto-rows: 210px; gap: 14px; margin-top: 45px; }
.photo-gallery a { display: block; overflow: hidden; background: #ddd3c4; position: relative; }
.photo-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease, filter .4s ease; }
.photo-gallery a:hover img { transform: scale(1.035); filter: saturate(1.08); }
.photo-gallery .photo-feature { grid-column: span 2; grid-row: span 2; }
.photo-gallery .photo-portrait { grid-row: span 2; }
.photo-gallery a:nth-child(6n+4), .photo-gallery a:nth-child(7n+8) { grid-column: span 2; }
.archive-heading { margin: 72px 0 24px; font-size: 25px; letter-spacing: .12em; color: var(--violet-deep); }
.archive-intro { margin: -12px 0 24px; color: var(--muted); }
.original-stories { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.original-stories article { display: grid; grid-template-columns: 150px minmax(0,1fr); gap: 22px; padding: 20px; border: 1px solid var(--line); background: rgba(255,255,255,.38); }
.original-stories a { display: block; min-height: 190px; background: #ede8df; overflow: hidden; }
.original-stories img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.original-stories a:hover img { transform: scale(1.035); }
.original-stories h4 { margin: 0 0 10px; font-size: 19px; color: var(--violet-deep); }
.original-stories p { margin: 0; font-size: 13px; line-height: 1.8; color: var(--muted); }
@media(max-width:900px){
  .hero-copy { padding-bottom: 42px; }
  .hero-art { min-height: auto; padding: 0; }
  .hero-photo { width: 100%; max-height: none; }
  .profile-details { grid-template-columns: 1fr; }
  .appearances-block { grid-column: auto; }
  .photo-gallery { grid-template-columns: repeat(3,minmax(0,1fr)); grid-auto-rows: 190px; }
  .original-stories { grid-template-columns: 1fr; }
  .person-open { align-items: flex-start; }
}
@media(max-width:600px){
  .hero-copy { padding-bottom: 34px; }
  .hero-art { min-height: auto; padding: 0; }
  .hero-photo { width: 100%; box-shadow: none; }
  .works-groups, .appearances-block { grid-template-columns: 1fr; }
  .works-groups article:last-child { grid-column: auto; }
  .photo-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); grid-auto-rows: 155px; gap: 9px; }
  .photo-gallery .photo-feature { grid-column: span 2; grid-row: span 2; }
  .photo-gallery .photo-portrait { grid-row: span 2; }
  .photo-gallery a:nth-child(6n+4), .photo-gallery a:nth-child(7n+8) { grid-column: auto; }
  .original-stories article { grid-template-columns: 110px 1fr; gap: 15px; padding: 14px; }
  .original-stories a { min-height: 155px; }
  .person-open, .family-list .master .person-open { display: grid; grid-template-columns: 82px 1fr; padding: 24px; }
  .family-list article img, .family-list .master img { width: 82px; height: 102px; }
  .dialog-layout { grid-template-columns: 1fr; gap: 24px; padding: 48px 24px 28px; }
  .dialog-layout > img { width: 150px; max-height: 190px; }
  .class-dialog-content { padding: 48px 24px 28px; }
}
