/* Homepage layout in normal flow. Type and spacing come only from the tokens and .t-* styles in shared/site.css
   (rules: docs/type-system.md). Change a size there, not here. */
.hm-center { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hm-center > .t-body { max-width: 720px; }

/* hero */
.hm-hero { padding-top: calc(var(--header-h) + var(--sp-grid)); padding-bottom: var(--sp-section); }
.hm-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.hm-hero__photo { position: relative; margin: 0; aspect-ratio: 582 / 638; overflow: hidden; background: var(--ink); }
.hm-hero__side { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.hm-hero__media { display: flex; align-items: stretch; gap: 8px; margin-top: var(--sp-head); }
.hm-hero__portrait { display: block; width: clamp(240px, 24vw, 340px); aspect-ratio: 1; }
.hm-hero__portrait img, .hm-hero__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hm-hero__aside { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.hm-hero__caption { writing-mode: vertical-rl; }
.hm-hero__caption a { color: inherit; }
.hm-hero__caption a:hover { color: var(--accent); }
.hm-hero__thumb { display: block; width: 72px; height: 72px; }
.hm-hero__side h1 { margin-top: var(--sp-action); }
.hm-hero__link { margin-top: var(--sp-action); }

/* selected works */
.hm-works { padding-bottom: var(--sp-head); }
.hm-works__grid { display: grid; grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-grid) clamp(24px, 4vw, 64px); align-items: start; }
.hm-works__thumb img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }

/* about */
.hm-about { padding-bottom: var(--sp-section); }
.hm-about__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.hm-about__panel { padding: clamp(32px, 5vw, 72px); background: #fff7fa; }
.hm-about__media { display: flex; align-items: flex-start; gap: 8px; margin: var(--sp-action) 0; }
.hm-about__thumb { flex: none; width: 72px; }
.hm-about__portrait { width: min(100%, 300px); }
.hm-about__media img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.hm-about__photo { position: relative; margin: 0; min-height: 480px; overflow: hidden; background: var(--ink); }

/* conventions */
.hm-conv { padding-bottom: var(--sp-section); }
.hm-conv__trophy { width: 104px; margin-top: var(--sp-head); margin-bottom: var(--sp-head); }
.hm-conv__trophy img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.hm-conv__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-grid); margin: var(--sp-action) 0; }
.hm-card__img { margin-bottom: var(--sp-cap); }
.hm-card__img img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.hm-card .t-label + .t-body { margin-top: var(--sp-label); }

/* education */
.hm-edu { padding-bottom: var(--sp-section); }
.hm-edu__frame { position: relative; display: flex; align-items: stretch; min-height: 640px; padding: var(--sp-grid); }
.hm-edu__photo { position: absolute; inset: 0; margin: 0; overflow: hidden; background: #000; }
.hm-edu__card { position: relative; display: block; width: min(100%, 480px); padding: clamp(24px, 3vw, 40px); background: #fff; color: var(--ink); }
.hm-edu__top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: var(--sp-label); }
.hm-edu__thumb { flex: none; width: 88px; }
.hm-edu__thumb img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }

/* shop / courses headings */
.hm-intro { padding-bottom: var(--sp-action); }
.hm-intro--next { padding-top: var(--sp-section); }

/* links inside paragraphs (SEOMEAT copy): full underline, hover = orange without underline, as .tl */
.tx { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s ease-in-out; }
@media (hover: hover) { .tx:hover { color: var(--accent); text-decoration: none; } }
.tx:focus-visible { color: var(--accent); }
.hm-hero__side .hm-hero__intro { margin-top: var(--sp-head); max-width: 560px; }

/* booking: how a project works (SEOMEAT copy, 27 Nov 2026) — kicker + h2 left, text right, as the gallery chapters */
.hm-book { padding-bottom: var(--sp-section); }
.hm-book__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--sp-grid) clamp(32px, 6vw, 96px); align-items: start; }
.hm-book__body { max-width: 640px; }
.hm-steps { list-style: none; margin: var(--sp-action) 0 0; padding: 0; counter-reset: step; }
.hm-steps li { position: relative; padding: var(--sp-cap) 0 var(--sp-cap) 32px; border-top: 1px solid var(--line); counter-increment: step; }
.hm-steps li:last-child { border-bottom: 1px solid var(--line); }
.hm-steps li::before { content: counter(step) "."; position: absolute; left: 0; top: var(--sp-cap); font: 600 var(--fs-label)/1.6 var(--font); letter-spacing: .12em; color: var(--accent); }
.hm-book__body > .btn { margin-top: var(--sp-action); }
.hm-book__body .t-h3 { margin-top: calc(var(--sp-action) * 2); }
.hm-book__body .t-h3 + .t-body { margin-top: var(--sp-head); }
.hm-qa strong { font-weight: 700; }

/* reviews */
.hm-reviews { padding-bottom: var(--sp-section); }
.hm-reviews__frame { position: relative; overflow: hidden; padding: clamp(48px, 6vw, 80px) var(--sp-grid) var(--sp-grid); color: #fff; }
.hm-reviews__bg { position: absolute; inset: 0; }
.hm-reviews__bg img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hm-reviews__frame > .hm-center, .hm-reviews__grid { position: relative; }
.hm-reviews__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-grid); margin-top: var(--sp-action); }
.hm-review { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(20px, 2vw, 28px); background: rgba(18, 18, 18, .62); }
.hm-review__ava { width: 72px; height: 72px; margin-bottom: var(--sp-cap); }
.hm-review__ava img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hm-review a:not(.tl) { color: inherit; }
.hm-review .t-h3 { overflow-wrap: anywhere; }
.hm-review__role { margin-top: 4px; opacity: .75; }
.hm-review .t-small { margin-top: var(--sp-cap); margin-bottom: var(--sp-head); }
.hm-review .tl { margin-top: auto; color: #fff; }
@media (hover: hover) { .hm-review .tl:hover { color: #fff; opacity: .8; } }
.hm-review__script { display: flex; align-items: center; justify-content: center; padding: 16px; }
.hm-review__script img { display: block; width: min(100%, 200px); height: auto; }

/* journal */
.hm-journal { padding-bottom: var(--sp-section); }
.hm-journal__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-grid); }
.hm-journal__panel { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: clamp(32px, 5vw, 72px); background: #f2efea; text-align: center; }
.hm-journal__portrait { width: min(100%, 380px); margin-bottom: var(--sp-head); }
.hm-journal__portrait img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.hm-journal__posts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-section) var(--sp-grid); row-gap: clamp(40px, 4vw, 56px); align-content: start; }
.hm-post { display: flex; flex-direction: column; align-items: flex-start; }
.hm-post--big { grid-column: 1 / -1; }
.hm-post__img { width: 100%; margin-bottom: var(--sp-cap); }
.hm-post__img img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.hm-post--big .hm-post__img img { aspect-ratio: 581 / 284; }
.hm-post .t-small { margin-top: var(--sp-label); }
.hm-post .tl { margin-top: var(--sp-cap); }

/* big photos: slight scroll parallax inside their frame (shared/site.js) */
[data-parallax] img { position: absolute; left: 0; top: -6%; width: 100%; height: 112%; object-fit: cover; will-change: transform; }

@media (max-width: 1200px) {
  .hm-reviews__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .hm-hero__grid, .hm-about__grid, .hm-journal__grid { grid-template-columns: minmax(0, 1fr); }
  .hm-hero__media { display: none; }
  .hm-hero__side h1 { margin-top: var(--sp-head); }
  .hm-works__grid, .hm-book__grid { grid-template-columns: minmax(0, 1fr); }
  .hm-works__thumb { width: 100px; }
  .hm-about__photo { order: -1; min-height: 0; aspect-ratio: 3 / 4; }
  .hm-conv__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-edu__frame { display: block; min-height: 0; padding: 0; }
  .hm-edu__photo { position: relative; inset: auto; aspect-ratio: 4 / 3; }
  .hm-edu__card { width: 100%; padding: var(--sp-head) 0 0; }
}
@media (max-width: 640px) {
  .hm-conv__cards, .hm-reviews__grid, .hm-journal__posts { grid-template-columns: minmax(0, 1fr); }
}

/* the footer block starts with its own top space */
.hm-journal { padding-bottom: 0; }
