/* page-level components that sit on top of style.css */

/* ── hero: script column + studio plate ─────────────────────── */
.hero { padding: clamp(2.6rem, 5vw, 4.6rem) 0 clamp(2.6rem, 5vw, 4.4rem); }
.hero__inner {
  display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(18rem, 0.94fr);
  gap: clamp(1.8rem, 4vw, 3.6rem); align-items: center;
}
.hero h1 { margin-bottom: 1rem; }
.hero__lede { color: var(--ink-soft); font-size: 1.06rem; max-width: 32rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.7rem; }

/* the one line of live data in the hero — next intake, read off the rundown */
.hero__slate {
  display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem;
  margin-top: 1.8rem; padding-top: 1.1rem; border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--slate);
}
.hero__slate b { color: var(--ink); font-weight: 500; }

.hero__plate { position: relative; }
.hero__plate img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 35%;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
/* tally lamp — the single red thing above the fold, and it means "live" */
.tally {
  position: absolute; left: 0.9rem; top: 0.9rem;
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.36rem 0.7rem 0.36rem 0.55rem;
  background: rgba(22, 24, 26, 0.82);
  border-radius: var(--radius);
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.16em;
  color: #fff;
}
.tally__dot {
  width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--tally);
  box-shadow: 0 0 0 0 rgba(var(--tally-rgb), 0.55);
  animation: tally-pulse 2.6s var(--ease-out) infinite;
}
@keyframes tally-pulse {
  0% { box-shadow: 0 0 0 0 rgba(var(--tally-rgb), 0.5); }
  60% { box-shadow: 0 0 0 0.45rem rgba(var(--tally-rgb), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--tally-rgb), 0); }
}
@media (prefers-reduced-motion: reduce) { .tally__dot { animation: none; } }

.hero__caption {
  position: absolute; inset: auto 0.9rem 0.9rem;
  margin: 0; padding: 0.6rem 0.75rem;
  background: rgba(22, 24, 26, 0.74);
  border-radius: var(--radius);
  color: #e4e7e2; font-size: 0.74rem; line-height: 1.55;
}

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__plate { max-width: 24rem; }
  .hero__plate img { aspect-ratio: 4 / 3; }
}

/* ── figures ribbon — thin data line, not stat cards ────────── */
.ribbon { border-block: 1px solid var(--line); background: var(--surface); }
.ribbon__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.ribbon__cell { padding: 1.5rem 1.2rem; border-left: 1px solid var(--line); }
.ribbon__cell:first-child { border-left: 0; padding-left: 0; }
.ribbon__num {
  display: block; font-family: var(--font-mono); font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 500; color: var(--ink); letter-spacing: -0.01em; font-variant-numeric: tabular-nums;
}
.ribbon__label { display: block; margin-top: 0.35rem; font-size: 0.8rem; color: var(--muted); line-height: 1.6; }
@media (max-width: 760px) {
  .ribbon__grid { grid-template-columns: 1fr 1fr; }
  .ribbon__cell:nth-child(3) { border-left: 0; padding-left: 0; }
  .ribbon__cell:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ── SIGNATURE: 進行表 / rundown sheet ───────────────────────── */
.rundown { border: 1px solid var(--line-strong); background: var(--surface); }
.rundown__bar {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.6rem;
  padding: 0.7rem 1rem; background: var(--night); color: #e8eae6;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.13em;
}
.rundown__bar span:last-child { color: #9aa2a8; letter-spacing: 0.06em; }

.rundown__row {
  display: grid;
  grid-template-columns: 5.2rem 1.35fr 1fr 5rem;
  gap: 1rem;
  padding: 0.95rem 1rem;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.rundown__row--head {
  border-top: 0; padding-block: 0.6rem;
  background: var(--paper-2);
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em;
  color: var(--slate); text-transform: uppercase;
}
.rundown__cue { font-family: var(--font-mono); font-size: 0.82rem; color: var(--slate); }
.rundown__row--live .rundown__cue { color: var(--tally); font-weight: 500; }
.rundown__row--live .rundown__cue::before {
  content: ""; display: inline-block; width: 0.4rem; height: 0.4rem; border-radius: 50%;
  background: var(--tally); margin-right: 0.4rem; vertical-align: 0.08em;
}
.rundown__title { font-weight: 700; font-size: 0.95rem; }
.rundown__title small { display: block; font-weight: 400; font-size: 0.82rem; color: var(--muted); margin-top: 0.15rem; }
.rundown__how { font-size: 0.86rem; color: var(--ink-soft); }
.rundown__len { font-family: var(--font-mono); font-size: 0.82rem; color: var(--slate); text-align: right; }
.rundown__foot {
  padding: 0.85rem 1rem; border-top: 1px solid var(--line-strong);
  background: var(--paper-2); font-size: 0.82rem; color: var(--ink-soft);
}
@media (max-width: 780px) {
  .rundown__row { grid-template-columns: 4.4rem 1fr; gap: 0.4rem 0.9rem; }
  .rundown__row--head { display: none; }
  .rundown__how { grid-column: 2; }
  .rundown__len { grid-column: 2; text-align: left; color: var(--muted); }
}

/* ── course list — a price sheet, not three equal cards ─────── */
.courses { border-top: 1px solid var(--line-strong); }
.course {
  position: relative;
  display: grid; grid-template-columns: 8.5rem minmax(0, 1.3fr) minmax(0, 1fr) auto;
  gap: 0.6rem 1.6rem; align-items: start;
  padding: 1.6rem 1.1rem 1.6rem 1.5rem; margin-inline: -1.1rem; border-radius: var(--radius);
  border-bottom: 1px solid var(--line);
  transition: background-color 180ms ease;
}
.courses .course:last-child { border-bottom: 0; }
/* tally-red accent, offset clear of the photo/text — not a flush edge line */
.course::before {
  content: ""; position: absolute; left: 0.5rem; top: 1.1rem; bottom: 1.1rem; width: 3px;
  border-radius: 2px; background: var(--tally); opacity: 0;
  transition: opacity 180ms var(--ease-out);
}
.course__photo {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius);
  transition: transform 220ms var(--ease-out);
}
.course__no { font-family: var(--font-mono); font-size: 0.74rem; color: var(--slate); display: block; margin-bottom: 0.3rem; }
.course h3 { font-size: 1.18rem; margin-bottom: 0.4rem; }
.course__sub { font-size: 0.88rem; color: var(--ink-soft); margin: 0; }
.course__meta { list-style: none; margin: 0; padding: 0; font-size: 0.85rem; color: var(--ink-soft); }
.course__meta li { display: flex; gap: 0.5rem; margin-bottom: 0.3em; }
.course__meta b { flex: none; width: 4.2rem; font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; color: var(--slate); padding-top: 0.15em; }
.course__price { text-align: right; }
.course__fee { display: block; font-family: var(--font-mono); font-size: 1.22rem; color: var(--ink); white-space: nowrap; }
.course__fee small { font-size: 0.72rem; color: var(--muted); }
.course__price .btn { margin-top: 0.7rem; }
.course--pick { position: relative; background: var(--tally-tint); }
.course--pick .course__badge {
  display: inline-block; margin-bottom: 0.4rem; padding: 0.18rem 0.55rem;
  background: var(--tally); color: #fff; border-radius: 999px;
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.08em;
}
@media (hover: hover) and (pointer: fine) {
  .course:hover { background: var(--paper-2); }
  .course:hover::before { opacity: 1; }
  .course--pick:hover { background: color-mix(in srgb, var(--tally-tint) 160%, transparent); }
  .course:hover .course__photo { transform: scale(1.04); }
}
@media (max-width: 820px) {
  .course { grid-template-columns: 5.5rem 1fr; gap: 0.5rem 1rem; padding-inline: 0.8rem; margin-inline: -0.8rem; }
  .course__photo { grid-row: 1 / 4; }
  .course__price { grid-column: 2; text-align: left; }
}
@media (max-width: 560px) {
  .course { grid-template-columns: 1fr; }
  .course__photo { display: none; }
}

/* ── people: no stock portraits, initials and a real CV line ── */
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.person {
  padding: 1.4rem; background: var(--surface); border: 1px solid var(--line);
  transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out), border-color 200ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .person:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
}
.person__top { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.9rem; }
.mono-badge {
  flex: none; display: grid; place-items: center;
  width: 3rem; height: 3rem; border-radius: 2px;
  background: var(--night); color: #fff;
  font-family: var(--font-mono); font-size: 0.92rem; letter-spacing: 0.02em;
}
.person__name { font-weight: 700; font-size: 0.98rem; }
.person__role { display: block; font-size: 0.79rem; color: var(--muted); margin-top: 0.1rem; }
.person p { font-size: 0.87rem; color: var(--ink-soft); margin-bottom: 0; }
@media (max-width: 860px) { .people { grid-template-columns: 1fr; } }

/* ── voices ─────────────────────────────────────────────────── */
.voices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.3rem; }
.voice {
  padding: 1.5rem; background: var(--surface); border-left: 2px solid var(--tally);
  transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .voice:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
}
.voice blockquote { margin: 0 0 1rem; font-size: 0.95rem; color: var(--ink-soft); }
.voice__who { display: flex; align-items: center; gap: 0.7rem; }
.voice__who .mono-badge { width: 2.4rem; height: 2.4rem; font-size: 0.78rem; background: var(--slate); }
.voice__who b { font-size: 0.86rem; }
/* scoped to the inner column on purpose: a bare `.voice__who span` also hits
   .mono-badge and repaints its white label grey-on-grey */
.voice__who div span { display: block; font-size: 0.76rem; color: var(--muted); }
@media (max-width: 720px) { .voices { grid-template-columns: 1fr; } }

/* ── faq ────────────────────────────────────────────────────── */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  padding: 1.05rem 2rem 1.05rem 0; cursor: pointer; list-style: none;
  font-weight: 700; font-size: 0.96rem; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0.2rem; top: 50%; transform: translateY(-50%);
  font-family: var(--font-mono); color: var(--slate); font-size: 1.1rem;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 1.1rem; margin: 0; color: var(--ink-soft); font-size: 0.92rem; }

/* ── access + map ───────────────────────────────────────────── */
.access { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: clamp(1.6rem, 3.5vw, 3rem); align-items: start; }
.access dl { margin: 0; display: grid; grid-template-columns: 5.6rem 1fr; gap: 0.55rem 1rem; font-size: 0.9rem; }
.access dt { font-family: var(--font-mono); font-size: 0.74rem; color: var(--slate); padding-top: 0.28em; letter-spacing: 0.06em; }
.access dd { margin: 0; color: var(--ink-soft); }
.access dd a { color: var(--ink); }
.map { border: 1px solid var(--line-strong); }
.map iframe { width: 100%; height: 340px; border: 0; display: block; }
@media (max-width: 860px) { .access { grid-template-columns: 1fr; } .map iframe { height: 280px; } }

/* ── journal ────────────────────────────────────────────────── */
.notes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.note {
  background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column;
  overflow: hidden; transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}
.note__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 260ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .note:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
  .note:hover .note__img { transform: scale(1.045); }
}
.note__body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.note__meta { font-family: var(--font-mono); font-size: 0.72rem; color: var(--slate); letter-spacing: 0.08em; margin-bottom: 0.5rem; }
.note h3 { font-size: 1.06rem; margin-bottom: 0.5rem; }
.note h3 a { text-decoration: none; }
.note h3 a:hover { color: var(--tally); }
.note p { font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 1rem; }
.note__more { margin-top: auto; font-family: var(--font-mono); font-size: 0.76rem; color: var(--tally); text-decoration: none; letter-spacing: 0.06em; }
.note__more:hover { text-decoration: underline; }
@media (max-width: 760px) { .notes { grid-template-columns: 1fr; } }

/* ── article ────────────────────────────────────────────────── */
.article { max-width: 44rem; }
.article__meta { font-family: var(--font-mono); font-size: 0.75rem; color: var(--slate); letter-spacing: 0.08em; margin-bottom: 0.8rem; }
.article h1 { margin-bottom: 1.2rem; }
.article h2 { font-size: 1.3rem; margin: 2.2rem 0 0.8rem; }
.article figure { margin: 2rem 0; }
.article figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.article figcaption { margin-top: 0.55rem; font-size: 0.79rem; color: var(--muted); }
.article blockquote {
  margin: 1.8rem 0; padding: 0.2rem 0 0.2rem 1.2rem;
  border-left: 2px solid var(--tally); color: var(--ink); font-size: 1.02rem;
}

/* ── legal pages ────────────────────────────────────────────── */
.legal { max-width: 46rem; }
.legal h2 { font-size: 1.24rem; margin: 2.2rem 0 0.7rem; }
.legal h3 { font-size: 1.02rem; margin: 1.5rem 0 0.5rem; }
.legal p, .legal li { font-size: 0.93rem; color: var(--ink-soft); }
.legal__updated { font-family: var(--font-mono); font-size: 0.76rem; color: var(--muted); }

/* ── page hero for inner pages ──────────────────────────────── */
.page-head { padding: clamp(2.4rem, 5vw, 3.6rem) 0 clamp(1.4rem, 3vw, 2rem); border-bottom: 1px solid var(--line); }
.page-head p { color: var(--ink-soft); max-width: 40rem; margin-bottom: 0; }

/* photo variant — about/courses: a themed band, not the plain text-only head */
.page-hero {
  position: relative; overflow: hidden;
  min-height: clamp(15rem, 32vw, 20rem);
  display: flex; align-items: flex-end;
  color: #f1f2ee;
}
.page-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* two shallow gradients (not one heavy wash) — darkened only enough behind
   the text to read, most of the photo stays visible past ~55% width */
.page-hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(22,24,26,.74) 0%, rgba(22,24,26,.38) 34%, rgba(22,24,26,0) 58%),
    linear-gradient(0deg, rgba(22,24,26,.5) 0%, rgba(22,24,26,0) 60%);
}
.page-hero__body { position: relative; z-index: 1; padding: clamp(1.8rem, 4vw, 2.6rem) 0; max-width: 30rem; }
.page-hero .eyebrow { color: #e7a6a2; }
.page-hero h1 { color: #fff; font-size: clamp(1.7rem, 3.6vw, 2.5rem); text-shadow: 0 1px 12px rgba(0,0,0,.25); }
.page-hero p { color: #e4e6e0; max-width: 28rem; margin: 0.8rem 0 0; font-size: 0.96rem; text-shadow: 0 1px 8px rgba(0,0,0,.2); }
@media (max-width: 860px) {
  /* below this width the text column runs close to the hero's full width, so
     the desktop falloff (clear by 58%) would leave the right half of the
     heading sitting on bare photo — widen the dark zone instead of relying
     on the x% falloff that assumes a narrow text column */
  .page-hero__scrim {
    background:
      linear-gradient(90deg, rgba(22,24,26,.74) 0%, rgba(22,24,26,.6) 70%, rgba(22,24,26,.42) 100%),
      linear-gradient(0deg, rgba(22,24,26,.55) 0%, rgba(22,24,26,0) 65%);
  }
  .page-hero__body { max-width: none; }
  .page-hero p { max-width: none; }
}

/* ── contact split ──────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(1.8rem, 4vw, 3.4rem); align-items: start; }
.contact-routes { list-style: none; padding: 0; margin: 0 0 1.8rem; }
.contact-routes li { padding: 0.9rem 0; border-top: 1px solid var(--line); font-size: 0.9rem; }
.contact-routes li:last-child { border-bottom: 1px solid var(--line); }
.contact-routes b { display: block; font-size: 0.88rem; margin-bottom: 0.15rem; }
.contact-routes span { color: var(--ink-soft); }
.form-card { padding: clamp(1.3rem, 2.6vw, 1.9rem); background: var(--surface); border: 1px solid var(--line-strong); }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

/* ── studio break — a full-bleed cinematic pause between the rundown and
   pricing; the one place motion carries the whole section ──────────── */
.studio-break {
  position: relative; overflow: hidden;
  min-height: clamp(20rem, 46vw, 30rem);
  display: flex; align-items: flex-end;
  color: #f1f2ee;
}
.studio-break__bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 38%;
}
.studio-break__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(22,24,26,.35) 0%, rgba(22,24,26,.55) 55%, rgba(22,24,26,.88) 100%);
}
.studio-break__body { position: relative; z-index: 1; padding: clamp(2rem, 5vw, 3.2rem) 0; }
.studio-break__eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: #d9dcd6; margin-bottom: 0.7rem;
}
.studio-break__dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--tally); animation: tally-pulse 2.6s var(--ease-out) infinite; }
.studio-break h2 { color: #fff; font-size: clamp(1.4rem, 3vw, 2rem); max-width: 32rem; }
.studio-break p { color: #d9dcd6; max-width: 30rem; margin: 0.8rem 0 0; font-size: 0.95rem; }
@media (prefers-reduced-motion: reduce) { .studio-break__dot { animation: none; } }
@media (prefers-reduced-motion: reduce) { .studio-break__bg { display: none; } }
