/* 2026-11-12 — the home pages reordered for enquiries (shared by / and /en/).
   Not a rebuild: same typefaces, colours, background films and photo entrances, shorter page.
   Order: 3D room → media & awards → about me (age selector) → research / SNS (short)
          → Web production → tutoring → projects → consultation box.
   Loaded after the 2026-10-31 refresh and before the shared type rules. */

:root {
  --cv-web: #5fe9db;
  --cv-web-ink: #04110f;
  --cv-tutor: #ffc46b;
  --cv-tutor-ink: #1c1205;
  --cv-panel: linear-gradient(135deg, rgba(4, 9, 15, .86), rgba(4, 9, 15, .74));
  --cv-line: rgba(255, 255, 255, .12);
}

/* ---------- loader: the name and the real 3D progress, nothing else ---------- */
html body #load { display: grid !important; place-items: center; align-content: center; gap: clamp(26px, 5vh, 46px); }
html body #load::before,
html body #load::after,
html body #load .lmark,
html body #load .lplan { display: none !important; }
html body #load .llabel { position: static !important; transform: none !important; animation: none !important; }
html body #load .lwrap {
  position: static !important;
  display: grid !important;
  width: min(360px, 76vw);
  transform: none !important;
  gap: 12px;
}
html body #load .lmeta {
  display: flex !important;
  justify-content: space-between;
  align-items: baseline;
  color: rgba(220, 249, 243, .66);
  font: 600 .66rem/1.4 var(--sans);
  letter-spacing: .18em;
  text-transform: none;
}
html body #load .lmeta b {
  position: static !important;
  display: inline !important;
  margin: 0 !important;
  color: #f0fffc;
  font: 400 1.05rem/1 var(--rf-serif) !important;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
}
html body #load .lmeta b::after { content: "%"; margin-left: 3px; color: var(--teal); font: 700 .62rem/1 var(--sans); }
html body #load .lbar { display: block !important; height: 1px; background: rgba(255, 255, 255, .16); }
html body #load .lbar i { transition: transform .2s linear; }

/* ---------- the opening room takes less scrolling; the page script paces the turn ---------- */
html body .heroscroll { height: 190vh !important; }
@media (max-width: 760px) { html body .heroscroll { height: 165vh !important; } }

/* ---------- sections: shorter, full width like the rest ---------- */
html body :is(#news, #profile, #research, #youtube, #web, #bansou, #projects, #consult).block {
  min-height: 0 !important;
  padding: clamp(56px, 7vw, 96px) 0 !important;
}
html body :is(#web, #consult).block > .wrap {
  max-width: none !important;
  width: 100% !important;
  padding-inline: var(--rf-gutter) !important;
}
html body :is(#web, #bansou, #projects, #consult) .compact-heading,
html body #profile .profile-brief__copy,
html body #research .brief-entry__copy,
html body #youtube .sns-head__copy {
  background: var(--rf-panel);
  border: 1px solid var(--rf-panel-line);
  border-radius: 4px;
  padding: clamp(18px, 2.2vw, 32px);
}
.cv-kicker { margin: 0 0 10px; color: var(--teal); font: 700 .7rem/1.5 var(--sans); letter-spacing: .24em; }

/* ---------- media & awards ---------- */
.authority-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: clamp(18px, 2.4vw, 30px) 0 0; padding: 0; list-style: none; background: var(--cv-line); border: 1px solid var(--cv-line); }
.authority-stats .story-stat { margin: 0; padding: clamp(14px, 1.6vw, 22px); background: rgba(4, 9, 15, .84); opacity: 1 !important; transform: none !important; }
.authority-stats .story-stat b { display: block; color: #fff; font: 400 clamp(1.8rem, 3vw, 2.8rem)/1 var(--rf-serif); font-variant-numeric: lining-nums; }
.authority-stats .story-stat span { display: block; margin-top: 8px; color: #c9d5df; font-size: .8rem; line-height: 1.7; }
html body #news .media-stories { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 22px); }
html body #news .media-story figure { aspect-ratio: 16 / 9; }
html body #news .media-story h3 { font-size: clamp(.92rem, 1.05vw, 1.05rem); line-height: 1.6; }
#awards-area { margin-top: clamp(28px, 3.4vw, 48px); }
.awards-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-bottom: 14px; }
.awards-head .story-phase { margin: 0; color: var(--gold); }
.awards-head h3 { margin: 0; color: #fff; font: 400 clamp(1.25rem, 2vw, 1.8rem)/1.35 var(--rf-serif); text-shadow: 0 2px 18px rgba(0, 0, 0, .8); }
.awards-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 18px); }
.award-item { display: grid; grid-template-rows: auto 1fr; margin: 0; overflow: hidden; color: inherit; text-decoration: none; background: rgba(4, 9, 15, .84); border: 1px solid rgba(242, 198, 109, .28); border-radius: 4px; transition: border-color .25s ease, transform .25s ease; }
a.award-item:hover, a.award-item:focus-visible { border-color: var(--gold); transform: translateY(-3px); }
.award-shot { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #e9e4d8; }
html body .award-shot img { display: block; width: 100%; height: 100%; object-fit: cover !important; object-position: center top !important; }
.award-copy { display: grid; gap: 4px; padding: 12px 14px 14px; }
.award-copy small { color: var(--gold); font: 700 .7rem/1 var(--sans); letter-spacing: .14em; }
.award-copy b { color: #fff; font-size: .92rem; line-height: 1.55; }
.award-copy span { color: #b9c6d1; font-size: .76rem; line-height: 1.6; }
.awards-more { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.awards-more li { padding: 7px 12px; color: #e6dcc6; font-size: .78rem; background: rgba(4, 9, 15, .8); border: 1px solid rgba(242, 198, 109, .24); border-radius: 2px; }

/* ---------- about me: short brief and one panel per age ---------- */
.profile-brief { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(18px, 3vw, 48px); align-items: stretch; margin-bottom: clamp(20px, 2.6vw, 36px); }
.profile-brief__copy h3 { margin: 0 0 12px; color: #fff; font: 400 clamp(1.5rem, 2.6vw, 2.4rem)/1.3 var(--rf-serif); }
.profile-brief__copy p { margin: 0; color: #dbe4ec; font-size: 1rem; line-height: 2; }
.profile-brief__portrait { position: relative; margin: 0; min-height: 260px; overflow: hidden; border-radius: 4px; background: #0b1520; }
html body .profile-brief__portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover !important; object-position: center 30% !important; }
.profile-brief__portrait figcaption { position: absolute; left: 12px; bottom: 12px; padding: 4px 8px; color: #e8f1f6; font-size: .66rem; letter-spacing: .18em; background: rgba(4, 9, 15, .76); }
.age-browser { background: rgba(4, 9, 15, .8); border: 1px solid var(--cv-line); border-radius: 4px; }
.age-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-bottom: 1px solid var(--cv-line); }
.age-tab { display: grid; gap: 4px; justify-items: start; min-height: 64px; padding: 12px clamp(10px, 1.4vw, 20px); color: #aebccb; text-align: left; background: transparent; border: 0; border-right: 1px solid var(--cv-line); cursor: pointer; font: inherit; transition: color .2s ease, background .2s ease; }
.age-tab:last-child { border-right: 0; }
.age-tab:hover { color: #fff; background: rgba(70, 230, 211, .06); }
.age-tab[aria-selected="true"] { color: #fff; background: linear-gradient(180deg, rgba(70, 230, 211, .16), rgba(70, 230, 211, .02)); box-shadow: inset 0 -2px 0 var(--teal); }
.age-tab:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; }
.age-tab__age { font-size: 1rem; font-weight: 700; line-height: 1.2; }
.age-tab small { color: inherit; opacity: .7; font-size: .7rem; letter-spacing: .08em; }
.age-panel { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(18px, 3vw, 44px); padding: clamp(18px, 2.4vw, 34px); }
.age-panel[hidden] { display: none; }
.age-panel:focus-visible { outline: 2px solid var(--teal); outline-offset: -4px; }
.age-panel .story-phase { margin: 0 0 8px; color: #a993ff; }
.age-panel .story-title { margin: 0 0 12px; color: #fff; font: 400 clamp(1.3rem, 2vw, 1.9rem)/1.4 var(--rf-serif); }
.age-panel .story-text { margin: 0; color: #d6e0e8; font-size: .95rem; line-height: 1.95; }
.age-panel .story-links { margin-top: 14px; }
.age-panel__media { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-content: start; }
.age-panel__media--n1 { grid-template-columns: minmax(0, 1fr); }
.age-panel__media--n3 > :first-child { grid-column: 1 / -1; }
.age-panel .story-shot { margin: 0; opacity: 1 !important; transform: none !important; }
.age-panel .story-shot__frame { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 3px; background: #0b1520; }
.age-panel .story-shot.is-tall .story-shot__frame { aspect-ratio: 3 / 4; }
.age-panel__media--n3 > :first-child .story-shot__frame { aspect-ratio: 16 / 9; }
html body .age-panel .story-shot img { display: block; width: 100%; height: 100%; object-fit: cover !important; }
html body .age-panel .story-shot.is-tall img { object-fit: contain !important; }

/* ---------- research and SNS: short entrances ---------- */
.brief-entry { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(16px, 2.6vw, 40px); align-items: stretch; }
html body .brief-entry__copy h2 { margin: 0 0 10px; color: #fff; font: 400 clamp(1.4rem, 2.4vw, 2.2rem)/1.35 var(--rf-serif); letter-spacing: 0; }
.brief-entry__copy p { margin: 0 0 18px; color: #d8e2ea; line-height: 1.95; }
.brief-entry__photo { position: relative; display: block; min-height: 220px; overflow: hidden; border-radius: 4px; background: #071216; }
html body .brief-entry__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover !important; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.brief-entry__photo:hover img { transform: scale(1.04); }
.brief-entry__cap { position: absolute; left: 12px; bottom: 12px; padding: 4px 8px; color: #fff; font-size: .66rem; letter-spacing: .16em; background: rgba(4, 9, 15, .76); }
.cv-link { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 12px 18px; color: var(--teal); font-weight: 700; font-size: .9rem; text-decoration: none; border: 1px solid var(--teal-d); border-radius: 2px; background: rgba(4, 9, 15, .6); transition: background .2s ease, color .2s ease; }
.cv-link:hover, .cv-link:focus-visible { color: #04110f; background: var(--teal); }
.cv-link--quiet { min-height: 0; padding: 4px 0; color: #c9d6e0; font-weight: 600; font-size: .82rem; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .3); border-radius: 0; background: none; }
.cv-link--quiet:hover, .cv-link--quiet:focus-visible { color: var(--teal); background: none; border-color: var(--teal); }
.sns-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(16px, 2.6vw, 40px); align-items: center; }
.sns-head__copy h2 { margin: 0 0 8px; }
.sns-head__copy p { margin: 0; color: #d8e2ea; line-height: 1.9; }
html body #youtube [data-sns-links] .social-directory { margin: 0; }
.sns-more { margin-top: clamp(16px, 2vw, 26px); }
.sns-more > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 14px 18px; color: #fff; font-weight: 700; cursor: pointer; list-style: none; background: rgba(4, 9, 15, .82); border: 1px solid var(--cv-line); border-radius: 4px; }
.sns-more > summary::-webkit-details-marker { display: none; }
.sns-more > summary::after { content: "+"; color: var(--teal); font: 400 1.5rem/1 var(--rf-serif); transition: transform .25s ease; }
.sns-more[open] > summary::after { transform: rotate(45deg); }
.sns-more > summary:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.sns-more__body { padding-top: clamp(16px, 2vw, 28px); }

/* ---------- services ---------- */
.service-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(16px, 2.6vw, 40px); align-items: stretch; margin-top: clamp(16px, 2vw, 26px); }
.service-copy { display: grid; align-content: start; gap: 18px; padding: clamp(20px, 2.4vw, 34px); background: var(--cv-panel); border: 1px solid var(--cv-line); border-top: 3px solid var(--accent, var(--cv-web)); border-radius: 4px; }
#web { --accent: var(--cv-web); --accent-ink: var(--cv-web-ink); }
#bansou { --accent: var(--cv-tutor); --accent-ink: var(--cv-tutor-ink); }
.service-scope { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.service-scope li { display: grid; grid-template-columns: minmax(0, 9em) minmax(0, 1fr); gap: 4px 18px; padding: 12px 0; border-top: 1px solid var(--cv-line); }
.service-scope li:first-child { border-top: 0; padding-top: 0; }
.service-scope b { color: #fff; font-size: .98rem; }
.service-scope span { color: #cfd9e2; font-size: .9rem; line-height: 1.8; }
.service-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 0; padding: 14px 16px; background: rgba(255, 255, 255, .04); border-left: 3px solid var(--accent); }
.service-price small { color: #cdd8e1; font-size: .8rem; }
.service-price strong { color: #fff; font: 400 clamp(1.9rem, 3.4vw, 2.9rem)/1 var(--rf-serif); font-variant-numeric: lining-nums; letter-spacing: .01em; }
.service-price strong span { margin-left: 4px; font-family: var(--sans); font-size: .95rem; font-weight: 700; }
.service-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.cv-cta { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 14px 22px; color: var(--accent-ink); font-weight: 800; font-size: .95rem; text-decoration: none; background: var(--accent); border: 1px solid var(--accent); border-radius: 2px; box-shadow: 0 12px 28px rgba(0, 0, 0, .35); transition: transform .2s ease, box-shadow .2s ease; }
.cv-cta::after { content: "→"; }
.cv-cta:hover, .cv-cta:focus-visible { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(0, 0, 0, .45); }
.cv-cta:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.service-example { position: relative; display: grid; grid-template-rows: minmax(0, 1fr) auto; margin: 0; overflow: hidden; color: inherit; text-decoration: none; background: rgba(4, 9, 15, .86); border: 1px solid var(--cv-line); border-radius: 4px; }
.service-example__shot { position: relative; min-height: 240px; overflow: hidden; background: #0b1520; }
.service-example__bar { position: absolute; z-index: 1; inset: 0 0 auto; display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: rgba(4, 9, 15, .82); }
.service-example__bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .3); }
.service-example__bar em { margin-left: 6px; color: #c9d6e0; font-style: normal; font-size: .72rem; letter-spacing: .06em; }
html body .service-example__shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover !important; object-position: top center !important; transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.service-example:hover .service-example__shot img { transform: scale(1.03); }
.service-example__copy { display: grid; gap: 6px; padding: 16px 18px 18px; }
.service-example__copy small { color: var(--accent); font-weight: 700; font-size: .72rem; letter-spacing: .14em; }
.service-example__copy b { color: #fff; font: 400 1.3rem/1.35 var(--rf-serif); }
.service-example__copy span { color: #cfd9e2; font-size: .88rem; line-height: 1.8; }
.service-example__copy em { color: var(--accent); font-style: normal; font-size: .8rem; }

/* tutoring plan */
.plan-card { display: grid; align-content: start; gap: 14px; padding: clamp(20px, 2.4vw, 34px); background: radial-gradient(120% 90% at 100% 0%, rgba(255, 196, 107, .16), transparent 60%), rgba(4, 9, 15, .88); border: 1px solid rgba(255, 196, 107, .38); border-radius: 4px; }
.plan-card__name { margin: 0; color: var(--cv-tutor); font-weight: 800; font-size: .8rem; letter-spacing: .16em; }
.plan-card h3 { margin: 0; color: #fff; font: 400 clamp(1.9rem, 3.4vw, 2.9rem)/1.1 var(--rf-serif); font-variant-numeric: lining-nums; }
.plan-card h3 small { color: #e8dcc4; font: 600 .9rem/1 var(--sans); }
html body #bansou .service-ctas .bansou-open { min-height: 52px; padding: 12px 18px; color: var(--cv-tutor); font-size: .92rem; background: transparent; border: 1px solid rgba(255, 196, 107, .6); box-shadow: none; }
html body #bansou .service-ctas .bansou-open:hover,
html body #bansou .service-ctas .bansou-open:focus-visible { color: var(--cv-tutor-ink); background: var(--cv-tutor); }
.plan-card__terms { margin: 0; color: #e8edf2; font-size: .95rem; }
.plan-card ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.plan-card li { position: relative; padding-left: 22px; color: #dbe4ec; font-size: .92rem; line-height: 1.75; }
.plan-card li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 9px; height: 5px; border-left: 2px solid var(--cv-tutor); border-bottom: 2px solid var(--cv-tutor); transform: rotate(-45deg); }
html body #bansou .bansou-teaching { margin-top: clamp(16px, 2vw, 26px); }
html body #bansou .tt-strip { margin-inline: 0; }
html body #bansou .tt-flow { margin-top: 14px; }

/* ---------- projects ---------- */
.venture-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); margin-top: clamp(16px, 2vw, 26px); }
.venture-card { position: relative; display: grid; grid-template-rows: minmax(0, 1fr) auto; min-height: clamp(300px, 30vw, 420px); overflow: hidden; color: inherit; text-decoration: none; background: rgba(4, 9, 15, .88); border: 1px solid var(--cv-line); border-radius: 4px; }
.venture-card__visual { position: relative; overflow: hidden; background: #0b1520; }
html body .venture-card__visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover !important; object-position: top center !important; transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
a.venture-card:hover .venture-card__visual img { transform: scale(1.03); }
.venture-card__visual--soon { display: grid; place-items: center; background: radial-gradient(90% 80% at 30% 20%, rgba(70, 230, 211, .2), transparent 60%), radial-gradient(80% 80% at 80% 90%, rgba(255, 159, 67, .18), transparent 60%), #08111a; }
.venture-card__visual--soon span { color: rgba(255, 255, 255, .86); font: 400 clamp(2.4rem, 5vw, 4.4rem)/1 var(--rf-serif); letter-spacing: .08em; }
.venture-card__copy { display: grid; gap: 6px; padding: 18px 20px 20px; }
.venture-card__copy small { color: var(--teal); font-weight: 700; font-size: .72rem; letter-spacing: .14em; }
.venture-card__copy b { color: #fff; font: 400 clamp(1.4rem, 2.2vw, 1.9rem)/1.3 var(--rf-serif); }
.venture-card__copy span { color: #cfd9e2; font-size: .9rem; line-height: 1.8; }
.venture-card__copy em { color: var(--teal); font-style: normal; font-size: .82rem; }
.venture-badge { justify-self: start; padding: 4px 10px; color: #1d0d00 !important; font-weight: 800; letter-spacing: .12em !important; background: #ff9f43; border-radius: 2px; }
.venture-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 14px; padding: 12px 16px; background: rgba(4, 9, 15, .78); border: 1px solid var(--cv-line); border-radius: 4px; }
.venture-links > span { color: #aebccb; font-size: .76rem; letter-spacing: .12em; }

/* ---------- consultation box at the end of the home pages ---------- */
.consult-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(16px, 3vw, 48px); align-items: start; margin-top: clamp(16px, 2vw, 26px); }
.consult-aside { display: grid; gap: 12px; color: #d8e2ea; font-size: .92rem; line-height: 1.9; }
.consult-aside p { margin: 0; }
.consult-aside a { color: var(--teal); }
html body #consult .consult-box { display: grid; gap: 16px; margin: 0; padding: clamp(20px, 2.6vw, 36px); background: var(--cv-panel); border: 1px solid var(--cv-line); border-radius: 4px; }
html body #consult .consult-topic { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
html body #consult .consult-topic legend { margin-bottom: 8px; padding: 0; color: #fff; font-weight: 700; font-size: .92rem; }
html body #consult .consult-topic__options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
html body #consult .consult-topic label { position: relative; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 14px; color: #e6edf3; font-size: .9rem; line-height: 1.4; background: rgba(255, 255, 255, .04); border: 1px solid var(--cv-line); border-radius: 2px; cursor: pointer; transition: border-color .2s ease, background .2s ease; }
html body #consult .consult-topic input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--teal); }
html body #consult .consult-topic label:has(input:checked) { border-color: var(--teal); background: rgba(70, 230, 211, .1); }
html body #consult .consult-topic label:has(input:focus-visible) { outline: 2px solid var(--teal); outline-offset: 2px; }
html body #consult .consult-topic.is-invalid label { border-color: #ff8a8a; }
html body #consult .consult-field { display: grid; gap: 8px; color: #fff; font-weight: 700; font-size: .92rem; }
html body #consult .consult-field :is(input, textarea) { width: 100%; padding: 13px 14px; color: #fff; font: 400 1rem/1.7 var(--sans); background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .22); border-radius: 2px; }
html body #consult .consult-field :is(input, textarea):focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: transparent; }
html body #consult .consult-field [aria-invalid="true"] { border-color: #ff8a8a; }
html body #consult .consult-trap { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
html body #consult .consult-send { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
html body #consult .consult-send button { --accent: var(--cv-web); --accent-ink: var(--cv-web-ink); cursor: pointer; font-family: inherit; }
html body #consult .consult-send button:disabled { opacity: .6; cursor: progress; transform: none; }
html body #consult .consult-note { flex: 1 1 260px; margin: 0; color: #b9c6d1; font-size: .8rem; line-height: 1.8; }
html body #consult .consult-note a { color: var(--teal); }
html body #consult .consult-status { min-height: 1.6em; margin: 0; font-size: .92rem; line-height: 1.7; }
html body #consult .consult-status[data-state="error"] { color: #ffb4b4; }
html body #consult .consult-status[data-state="done"] { color: var(--teal); }
html body #consult .consult-status[data-state="pending"] { color: #dfe7ee; }
html body :is(#web, #consult) { scroll-margin-top: 70px; }

/* ---------- still frames on the remaining film buttons ---------- */
html body .vcta-media img.vcta-still { display: block; width: 100%; height: 100%; object-fit: cover !important; object-position: 50% 50% !important; transform: scale(1.01); transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.vcta:hover .vcta-media img.vcta-still,
html body #youtube .sns-banner:hover .vcta-media img.vcta-still { transform: scale(1.05); }

/* ---------- tablets and phones ---------- */
@media (max-width: 1000px) {
  .profile-brief, .brief-entry, .sns-head, .service-layout, .consult-layout { grid-template-columns: minmax(0, 1fr); }
  .awards-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html body #news .media-stories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .age-panel { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  html body :is(#news, #profile, #research, #youtube, #web, #bansou, #projects, #consult).block { padding: 44px 0 !important; }
  .authority-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* long rows become sideways strips so the page stays short */
  html body #news .media-stories,
  .awards-row,
  .venture-grid {
    display: grid;
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: 78%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
  }
  html body #news .media-stories > *, .awards-row > *, .venture-grid > * { scroll-snap-align: start; }
  .venture-card { min-height: 300px; }
  .age-tabs { display: flex; overflow-x: auto; scroll-snap-type: x proximity; }
  .age-tab { flex: 0 0 auto; min-width: 7.5em; scroll-snap-align: start; }
  .profile-brief__portrait { min-height: 220px; }
  .service-scope li { grid-template-columns: minmax(0, 1fr); }
  html body #consult .consult-topic__options { grid-template-columns: minmax(0, 1fr); }
  .cv-cta { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .cv-cta, .award-item, .venture-card__visual img, .service-example__shot img, .brief-entry__photo img, html body .vcta-media img.vcta-still { transition: none !important; transform: none !important; }
}
html[lang="ja"] :is(.service-copy, .plan-card, .venture-card__copy, .age-panel, .profile-brief__copy, .brief-entry__copy, .consult-aside) :is(h3, b, p, span) { word-break: auto-phrase; }

/* Final density pass: keep the photography, shorten the default reading path. */
html body .compact-disclosure { margin: 18px auto; max-width: 1200px; color: #e6edf3; }
html body .compact-disclosure > summary { display:flex; align-items:center; justify-content:space-between; gap:16px; min-height:54px; padding:14px 20px; cursor:pointer; list-style:none; background:rgba(4,9,15,.88); border:1px solid rgba(70,230,211,.25); border-radius:4px; font-size:.95rem; }
html body .compact-disclosure > summary::-webkit-details-marker { display:none; }
html body .compact-disclosure > summary::after { content:'+'; color:var(--teal); font-size:1.5rem; }
html body .compact-disclosure[open] > summary::after { content:'−'; }
html body .compact-disclosure > summary:focus-visible { outline:2px solid var(--teal); outline-offset:3px; }
html body .background-more { padding-inline:20px; }
html body #bansou .tt-strip { grid-template-columns:repeat(4,minmax(0,1fr)); }
html body #bansou .tt-photo { min-height:0; aspect-ratio:16/10; }
.contact-anchor { position:absolute; top:0; left:0; scroll-margin-top:90px; }
@media(max-width:760px){
  html body #bansou .tt-strip { display:flex; overflow-x:auto; scroll-snap-type:x mandatory; }
  html body #bansou .tt-photo { flex:0 0 74%; scroll-snap-align:start; }
}

@media(max-width:760px){
 html body :is(#news,#web,#bansou,#projects,#consult) .compact-heading h2 { font-size:clamp(1.25rem,6.5vw,1.9rem); line-height:1.4; text-wrap:balance; }
 html body #consult .compact-heading h2 .nb { display:inline-block; white-space:nowrap; max-width:none; }
}
