:root {
  color-scheme: light;
  --paper: #fffaf7;
  --blush: #f9edf0;
  --ink: #30282d;
  --muted: #5f5058;
  --rose: #7c435b;
  --wine: #593348;
  --line: #e8d5de;
  --serif: 'Literata', Georgia, 'Times New Roman', serif;
  --sans: 'Golos Text', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.65 var(--sans); }
a { color: inherit; text-underline-offset: .21em; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #9b526e; outline-offset: 4px; }
img { display: block; max-width: 100%; }
figure, dd { margin: 0; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; line-height: 1.06; }
h2 { font-size: clamp(2.25rem, 5vw, 4.2rem); letter-spacing: -.048em; margin-bottom: 2rem; }
h3 { font-size: 1.135rem; line-height: 1.38; margin-bottom: .5rem; }
section[id] { scroll-margin-top: 1rem; }
.wrap { width: min(1180px, 100% - 5rem); margin-inline: auto; }
.skip { position: fixed; top: .5rem; left: .5rem; z-index: 5; padding: .5rem 1rem; background: white; clip-path: inset(50%); }
.skip:focus { clip-path: none; }

.top { border-bottom: 1px solid var(--line); }
.top-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.brand { display: inline-flex; align-items: center; gap: .63rem; text-decoration: none; font: 1.22rem var(--serif); white-space: nowrap; }
.brand span { color: var(--rose); font-size: 1.55rem; }
.top nav { display: flex; flex-wrap: wrap; gap: 1.75rem; align-items: center; }
.top nav a, .top-contact { font-size: .93rem; font-weight: 550; }
.top nav a { text-decoration: none; }
.top nav a:hover { color: var(--rose); text-decoration: underline; }
.top-contact { color: var(--rose); }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: 'heading art' 'details art'; align-items: center; gap: 0 2rem; padding-block: clamp(3rem, 6vw, 5.5rem); }
.hero-heading { grid-area: heading; align-self: end; }
.hero-details { grid-area: details; align-self: start; min-width: 0; }
.eyebrow { margin: 0 0 .95rem; color: var(--rose); text-transform: uppercase; font: 650 .875rem/1.45 var(--sans); letter-spacing: .13em; }
.eyebrow span { margin-inline: .2rem; }
.hero h1 { font-size: clamp(3.85rem, 7.8vw, 7.6rem); letter-spacing: -.065em; line-height: .88; margin: 0 0 1.65rem; }
.hero h1 em { color: var(--rose); font-weight: 400; }
.hero-role { max-width: 36rem; margin-bottom: .85rem; font-weight: 650; }
.hero-role span { color: var(--rose); margin-inline: .13rem; }
.hero-intro { max-width: 33rem; color: var(--muted); margin-bottom: 1.5rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; }
.button { display: inline-flex; min-height: 48px; justify-content: center; align-items: center; border: 1px solid transparent; border-radius: 999px; padding: .55rem .95rem; text-align: center; text-decoration: none; font: 650 .95rem/1.35 var(--sans); transition: background-color .16s, color .16s; }
.button-primary { background: #edc5d6; color: var(--ink); }
.button-primary:hover { background: #e4b5c9; }
.button-outline { border-color: #c99dac; color: var(--wine); }
.button-outline:hover { background: #f7e6ed; }
.availability { display: flex; flex-wrap: wrap; align-items: center; column-gap: .58rem; margin: 1.1rem 0 0; color: var(--muted); font-size: .895rem; }
.availability span:first-child { width: 7px; height: 7px; border-radius: 50%; background: #596b4f; }
.availability .divider { color: #8e636f; }
.hero-art { grid-area: art; position: relative; isolation: isolate; min-width: 0; aspect-ratio: 1.035; }
.sakura { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 78% center; border-radius: 48% 48% 4px 4px; }
.portrait-frame { position: absolute; inset: 23% 35% 1% 8%; border: 1px solid #d6a9ba; border-radius: 49% 49% 2px 2px / 35% 35% 2px 2px; padding: 6px; background: #fff8f3d9; }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 36%; border-radius: inherit; }

.blossom {
  display: block;
  width: 1em;
  height: 1em;
  background:
    radial-gradient(circle at 50% 52%, #d88cab 0 9%, transparent 10%),
    radial-gradient(ellipse at 50% 24%, #f3c4d7 0 18%, transparent 19%),
    radial-gradient(ellipse at 77% 43%, #edb5cc 0 18%, transparent 19%),
    radial-gradient(ellipse at 67% 74%, #f3c4d7 0 18%, transparent 19%),
    radial-gradient(ellipse at 33% 74%, #f0bbd1 0 18%, transparent 19%),
    radial-gradient(ellipse at 23% 43%, #f5cdde 0 18%, transparent 19%);
  transform: rotate(-13deg);
}
.hero-blossom { position: absolute; right: 7%; bottom: 7%; font-size: clamp(2.2rem, 5vw, 4.5rem); }

.petals { position: fixed; z-index: 2; inset: 0; pointer-events: none; overflow: hidden; }
.petals i {
  position: absolute;
  top: -18px;
  left: 2px;
  width: 8px;
  height: 13px;
  background: linear-gradient(160deg, #f6cbdc, #d995b0);
  border-radius: 72% 25% 70% 38%;
  opacity: .66;
  animation: petal-fall 21s linear infinite;
}
.petals i:nth-child(even) { left: auto; right: 2px; }
.petals i:nth-child(2) { animation-delay: -6s; animation-duration: 25s; }
.petals i:nth-child(3) { animation-delay: -12s; animation-duration: 28s; }
.petals i:nth-child(4) { animation-delay: -18s; animation-duration: 23s; }
.petals i:nth-child(5) { animation-delay: -21s; animation-duration: 26s; }
.petals i:nth-child(6) { animation-delay: -11s; animation-duration: 19s; }
@keyframes petal-fall {
  0% { transform: translateY(0) rotate(-25deg); }
  40% { transform: translateY(40vh) rotate(90deg); }
  70% { transform: translateY(70vh) rotate(190deg); }
  100% { transform: translateY(calc(100vh + 28px)) rotate(300deg); }
}

.numbers { background: #f6e1e9; color: var(--ink); padding-block: 1.95rem 2.35rem; }
.numbers .eyebrow { color: var(--rose); }
.stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: .8rem; margin: 0; }
.stats div { border-left: 1px solid #dbb8c6; padding-left: clamp(.56rem, 1.5vw, 1.1rem); }
.stats dt { font: 400 clamp(1.9rem, 3.4vw, 3.25rem)/1.12 var(--serif); white-space: nowrap; margin-bottom: .46rem; }
.stats dt small { color: var(--rose); font: 550 .875rem var(--sans); }
.stats dd { color: var(--muted); font-size: .875rem; line-height: 1.48; }

.section { padding-block: clamp(3.6rem, 8vw, 6.6rem); }
.section-tint { background: var(--blush); }
.profile { display: grid; grid-template-columns: minmax(220px, .72fr) 1.28fr; grid-template-areas: 'photo heading' 'photo copy'; column-gap: clamp(2rem, 7vw, 6rem); align-items: center; }
.profile-heading { grid-area: heading; align-self: end; }
.profile-copy { grid-area: copy; align-self: start; }
.profile-photo { grid-area: photo; aspect-ratio: .94; border-radius: 50% 50% 2px 2px / 35% 35% 2px 2px; overflow: hidden; }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-heading h2 { margin-bottom: 1.3rem; }
.profile-copy p:not(.eyebrow), .education p:not(.credits), .skills-extra p { color: var(--muted); }
.profile-copy p:last-child { margin-bottom: 0; }
.rule { display: flex; align-items: center; gap: .7rem; }
.rule::before { content: ''; width: 1.75rem; height: 1px; background: #b2778f; }

.timeline { margin-bottom: 2rem; }
.timeline article { display: grid; grid-template-columns: minmax(8.5rem, 20%) 1fr; gap: 1.2rem; padding-block: 1.28rem; border-top: 1px solid #e5cbd5; }
.timeline article:last-child { border-bottom: 1px solid #e5cbd5; }
.timeline h3 { font-family: var(--serif); font-size: 1.42rem; font-weight: 400; }
.timeline .period { margin: .1rem 0 0; color: var(--rose); font-size: .92rem; font-weight: 650; }
.timeline ul { padding-left: 1.2rem; margin: 0; color: var(--muted); }
.timeline li::marker { color: var(--rose); }
.timeline li + li { margin-top: .2rem; }
.practice-card { display: grid; grid-template-columns: minmax(170px, .36fr) 1fr; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.practice-card > img { width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: center 61%; }
.practice-copy { padding: clamp(1rem, 3vw, 1.65rem); }
.practice-card h3 { margin-bottom: 1rem; }
.practice-card dl, .education, .documents { display: grid; gap: 1.1rem; margin: 0; }
.practice-card dl { grid-template-columns: repeat(3, 1fr); }
.practice-card dt { color: var(--wine); font-weight: 650; }
.practice-card dd { color: var(--muted); font-size: .95rem; }
.education, .documents { grid-template-columns: repeat(2, 1fr); }
.education article, .skill-groups article, .skills-extra article { border: 1px solid var(--line); background: var(--paper); border-radius: 3px; padding: clamp(1rem, 3vw, 1.65rem); }
.credits { color: var(--rose); font-size: .9rem; font-weight: 650; margin-bottom: .42rem; }
.education .institution { font-weight: 650; margin-bottom: .5rem; }
.education article p:last-child, .skills-extra p:last-child { margin-bottom: 0; }
.training-note { border-left: 2px solid var(--rose); background: var(--blush); margin-top: 1.1rem; padding: .9rem 1rem; }
.training-note p { margin: 0; }
.training-note p + p { margin-top: .3rem; }

.skill-groups { display: grid; grid-template-columns: 1.1fr 1fr .75fr; gap: 1.1rem; }
.chips { display: flex; flex-wrap: wrap; gap: .46rem; list-style: none; padding: 0; margin: .9rem 0 0; }
.chips li { border: 1px solid #e8d3dd; border-radius: 4px; font-size: .875rem; line-height: 1.32; padding: .33rem .55rem; color: var(--wine); background: #fff6f8; }
.skills-extra { display: grid; grid-template-columns: 1fr 1.5fr; gap: 1.1rem; margin-top: 1.1rem; }
.languages { margin: 0; }
.languages div { display: flex; justify-content: space-between; gap: .7rem; padding: .35rem 0; border-bottom: 1px solid var(--line); }
.languages div:last-child { border: 0; }
.languages dd { text-align: right; color: var(--muted); }

.document { border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.document-image { display: grid; place-items: center; aspect-ratio: 1.85; padding: 1rem; background: #faedf1; }
.document-image img { width: 100%; height: 100%; object-fit: contain; max-height: clamp(175px, 23vw, 320px); }
.document-image:hover { background: #f5dfe8; }
.document > div { padding: 1rem 1.15rem; }
.document p, .pdf-row p { color: var(--muted); margin: 0; }
.pdf-row { margin-top: 1.4rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; padding-block: .95rem; gap: 1rem; }
.pdf-row h3 { margin: 0; }

.gallery { max-width: 50rem; }
.gallery-heading { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem .65rem; margin-bottom: 1.2rem; }
.gallery-heading h2 { margin: 0; }
.gallery-heading .blossom { font-size: clamp(1.7rem, 4vw, 3.1rem); }
.gallery-count { margin: 0 0 0 auto; color: var(--muted); font-size: .9rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.4rem, 1.5vw, .9rem); }
.gallery-photo { display: block; overflow: hidden; aspect-ratio: 1; border: 1px solid var(--line); border-radius: clamp(.5rem, 1.2vw, .9rem); background: var(--paper); cursor: zoom-in; }
.gallery-photo img { width: 100%; height: 100%; object-fit: cover; }
.gallery-photo:hover { border-color: var(--rose); }
.gallery-more { margin-top: 1.05rem; text-align: center; }
.gallery-more summary { background: var(--paper); cursor: pointer; list-style: none; }
.gallery-more summary::-webkit-details-marker { display: none; }
.gallery-more summary:hover { background: #f7e6ed; }
.gallery-more[open] .gallery-show, .gallery-more:not([open]) .gallery-hide { display: none; }
.gallery-more .gallery-grid { margin-top: 1.05rem; }

.contact { background: #f6e1e9; color: var(--ink); padding-block: clamp(2.5rem, 6vw, 4.3rem); }
.contact-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.5rem; }
.contact h2 { font-size: clamp(2.2rem, 4.3vw, 3.65rem); margin-bottom: .65rem; }
.contact p:not(.eyebrow) { margin-bottom: 0; }
.contact .eyebrow, .contact-blossom, .contact .location { color: var(--rose); }
.contact .location { margin-top: .35rem; font-size: .9rem; }
.contact-blossom { font-size: 2.9rem; }
.button-light { background: #f1cedc; color: var(--wine); }
.button-light:hover { background: #f7dce2; }
.button-inverse { border-color: #bc8ba0; color: var(--wine); }
.button-inverse:hover { background: #e4b5c9; }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .65rem; padding-block: 1.2rem; color: var(--muted); font-size: .9rem; }

#document-preview { border: 1px solid var(--line); border-radius: 5px; padding: .8rem; background: var(--paper); max-width: min(100% - 2rem, 1100px); max-height: 95vh; }
#document-preview::backdrop { background: #25161be0; }
#document-preview form { display: flex; justify-content: end; margin-bottom: .55rem; }
#document-preview img { max-width: 100%; max-height: 82vh; object-fit: contain; margin-inline: auto; }
.dialog-close { border: 1px solid var(--line); padding: .45rem .85rem; background: white; color: var(--ink); font: 650 .9rem var(--sans); cursor: pointer; }

@media (max-width: 970px) {
  .wrap { width: calc(100% - 3.5rem); }
  .stats { grid-template-columns: repeat(3, 1fr); row-gap: 1.2rem; }
  .stats dt { font-size: 2.5rem; }
  .contact-inner { grid-template-columns: auto 1fr; }
  .contact .actions { grid-column: 2; }
}

@media (max-width: 730px) {
  .wrap { width: calc(100% - clamp(1.5rem, 8vw, 3rem)); }
  .top-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; min-height: 0; gap: 0 .5rem; }
  .brand { min-height: 46px; font-size: clamp(1.03rem, 4.5vw, 1.22rem); gap: .36rem; }
  .top-contact { display: grid; align-content: center; min-height: 44px; }
  .top nav { order: 2; grid-column: 1 / -1; justify-content: space-between; gap: 0 .38rem; border-top: 1px solid var(--line); }
  .top nav a { display: grid; min-height: 43px; align-content: center; font-size: clamp(.77rem, 2.9vw, .875rem); }
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'heading' 'art' 'details'; gap: .9rem; padding-block: 1.45rem 1.8rem; }
  .hero h1 { font-size: clamp(2.84rem, 11.6vw, 5.75rem); margin-bottom: .82rem; }
  .hero-heading .eyebrow { margin-bottom: .62rem; }
  .hero-role { margin-bottom: 0; font-size: .94rem; line-height: 1.45; }
  .hero-art { width: 100%; aspect-ratio: auto; height: clamp(11.5rem, 53vw, 18rem); }
  .hero-art .sakura { border-radius: 12px 42px 12px 12px; object-position: right 42%; }
  .portrait-frame { inset: 7% 52% 0 7%; padding: 4px 4px 0; border-bottom: 0; }
  .portrait-frame img { object-position: center 35%; }
  .hero-intro { margin-bottom: .9rem; font-size: .96rem; line-height: 1.52; }
  .hero .actions { gap: .45rem; }
  .hero .button { min-height: 46px; padding-inline: .72rem; font-size: .88rem; }
  .availability { display: block; margin-top: .72rem; line-height: 1.45; }
  .availability span:first-child { display: inline-block; margin-right: .24rem; }
  .numbers { padding-block: 1.35rem 1.6rem; }
  .stats { gap: .55rem; }
  .stats div { min-width: 0; border: 1px solid #dbb8c6; border-top: 2px solid #d7a3b8; border-radius: 6px; background: #fffaf79c; padding: .6rem .63rem .68rem; }
  .stats dt { font-size: clamp(1.85rem, 6vw, 2.45rem); margin-bottom: .25rem; }
  .stats dt small { font-size: .8rem; }
  .section { padding-block: 3rem; }
  h2 { margin-bottom: 1.4rem; }
  .profile { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'heading' 'photo' 'copy'; gap: 1rem; }
  .profile-heading h2 { margin-bottom: 0; }
  .profile-photo { position: relative; aspect-ratio: auto; height: clamp(12rem, 50vw, 18rem); border-radius: 10px 54px 10px 10px; background: var(--blush) url('assets/sakura.webp') right 43% / cover no-repeat; }
  .profile-photo img { width: 62%; margin-left: 6%; object-position: center 35%; border-radius: 48% 48% 0 0 / 45% 45% 0 0; border: 4px solid #fffaf7c2; border-bottom: 0; }
  .timeline { position: relative; margin-left: .37rem; padding-left: .95rem; border-left: 1px solid #bd8c9e; }
  .timeline article { position: relative; grid-template-columns: minmax(0, 1fr); gap: .22rem; padding-block: 1rem; }
  .timeline article::before { content: ''; position: absolute; top: 1.34rem; left: -1.24rem; width: .51rem; height: .51rem; border: 1px solid var(--blush); border-radius: 50%; background: var(--rose); }
  .timeline article:first-child { padding-top: 0; border-top: 0; }
  .timeline article:first-child::before { top: .32rem; }
  .timeline article:last-child { border-bottom: 0; }
  .practice-card { grid-template-columns: minmax(0, 1fr); }
  .practice-card > img { height: clamp(12rem, 51vw, 18rem); object-position: center 63%; }
  .practice-card dl, .skill-groups, .skills-extra { grid-template-columns: 1fr; }
  .practice-card dl > div + div { border-top: 1px solid var(--line); padding-top: .75rem; }
}

@media (max-width: 490px) {
  .hero .actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .education, .documents { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; gap: .75rem; }
  .contact-blossom { font-size: 1.9rem; line-height: 1; }
  .contact .actions { grid-column: auto; }
}

@media (max-width: 490px) and (max-height: 700px) {
  .hero-art { height: clamp(9.5rem, 46vw, 12rem); }
  .hero-details { display: flex; flex-direction: column; }
  .hero-intro { order: 1; margin: .7rem 0 0; }
  .availability { order: 2; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
  .petals { display: none; }
}
