:root {
  --studio-bg: #161816;
  --studio-panel: #20231f;
  --studio-line: #3a3e38;
  --studio-text: #f1f3ed;
  --studio-muted: #aeb5aa;
  --studio-accent: #d7ff5f;
  --paper: #f2efe8;
  --ink: #161713;
  --muted: #65695f;
  --line: currentColor;
  --page-pad: clamp(1.25rem, 4vw, 5.5rem);
  --section-gap: clamp(5rem, 11vw, 11rem);
  --focus: #2c64ff;
  font-family: Inter, "Helvetica Neue", "Noto Sans JP", system-ui, sans-serif;
  color: var(--studio-text);
  background: var(--studio-bg);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body { margin: 0; }

button,
input,
textarea,
select { font: inherit; }

button,
a,
select,
input,
textarea { -webkit-tap-highlight-color: transparent; }

button { cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: .5rem;
  left: .5rem;
  padding: .75rem 1rem;
  color: #fff;
  background: #164fe0;
  transform: translateY(-160%);
}

.skip-link:focus { transform: none; }

.studio-body { min-width: 320px; background: var(--studio-bg); }

.studio-bar {
  position: sticky;
  z-index: 30;
  top: 0;
  min-height: 70px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto auto;
  gap: 1rem;
  align-items: center;
  padding: .75rem 1.25rem;
  border-bottom: 1px solid var(--studio-line);
  background: color-mix(in srgb, var(--studio-bg) 94%, transparent);
  backdrop-filter: blur(14px);
}

.studio-brand { display: grid; gap: .15rem; }
.studio-kicker,
.preview-toolbar__eyebrow {
  color: var(--studio-muted);
  font-size: .65rem;
  letter-spacing: .16em;
}

.studio-bar__modes,
.studio-bar__view,
.preview-size { display: flex; gap: .25rem; }

.segmented,
.icon-button,
.button {
  min-height: 42px;
  border: 1px solid var(--studio-line);
  border-radius: 0;
  padding: .65rem .9rem;
  color: var(--studio-text);
  background: transparent;
}

.segmented.is-active,
.icon-button.is-active {
  color: #141711;
  border-color: var(--studio-accent);
  background: var(--studio-accent);
}

.button--quiet { color: var(--studio-muted); }
.button--primary { color: #141711; border-color: var(--studio-accent); background: var(--studio-accent); font-weight: 700; }

.studio-status {
  min-height: 32px;
  padding: .45rem 1.25rem;
  color: var(--studio-muted);
  border-bottom: 1px solid var(--studio-line);
  font-size: .75rem;
}

.studio-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 300px;
  min-height: calc(100vh - 103px);
}

.studio-panel {
  min-width: 0;
  padding: 1.35rem;
  background: var(--studio-panel);
}

.studio-panel--library { border-right: 1px solid var(--studio-line); }
.studio-panel--inspector { border-left: 1px solid var(--studio-line); }

.panel-heading { margin-bottom: 1.5rem; }
.panel-heading p { margin: 0 0 .35rem; color: var(--studio-accent); font-size: .62rem; letter-spacing: .15em; }
.panel-heading h1,
.panel-heading h2 { margin: 0; font-size: 1.05rem; }

.recommend-form fieldset,
.sns-fieldset {
  display: grid;
  gap: .85rem;
  margin: 0 0 1.5rem;
  padding: 0;
  border: 0;
}

.recommend-form legend,
.sns-fieldset legend { margin-bottom: 1rem; color: var(--studio-muted); font-size: .75rem; }

.recommend-form label,
.inspector-pane label {
  display: grid;
  gap: .4rem;
  color: var(--studio-muted);
  font-size: .72rem;
}

.recommend-form select,
.inspector-pane select,
.inspector-pane input,
.inspector-pane textarea {
  width: 100%;
  min-height: 44px;
  padding: .7rem;
  color: var(--studio-text);
  border: 1px solid var(--studio-line);
  border-radius: 0;
  background: #171a16;
}

.inspector-pane textarea { resize: vertical; }

.field-help {
  color: var(--studio-muted);
  font-size: .68rem;
  line-height: 1.55;
}

.recommendation {
  padding: .8rem;
  color: #151811;
  background: var(--studio-accent);
  font-size: .72rem;
  line-height: 1.55;
}

.template-list { display: grid; gap: .5rem; }

.template-choice {
  width: 100%;
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: .1rem .65rem;
  align-items: start;
  padding: .8rem;
  color: var(--studio-text);
  text-align: left;
  border: 1px solid var(--studio-line);
  background: transparent;
}

.template-choice span { grid-row: 1 / 3; color: var(--studio-muted); font-size: .7rem; }
.template-choice strong { font-size: .86rem; }
.template-choice small { color: var(--studio-muted); }
.template-choice.is-active { border-color: var(--studio-accent); box-shadow: inset 3px 0 0 var(--studio-accent); }
.template-choice.is-recommended:not(.is-active) { border-color: #6f7b50; }

.preview-workspace { min-width: 0; padding: 1rem; overflow: hidden; background: #0e100e; }

.preview-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 48px;
  padding: 0 .25rem .75rem;
}

.preview-toolbar > div:first-child { display: grid; gap: .2rem; }

.preview-viewport {
  width: 100%;
  max-width: 1600px;
  min-height: calc(100vh - 180px);
  margin-inline: auto;
  overflow: auto;
  background: #d7d9d2;
  box-shadow: 0 15px 50px #0008;
  transition: width .25s ease;
}

.preview-viewport[data-size="tablet"] { width: min(100%, 768px); }
.preview-viewport[data-size="mobile"] { width: min(100%, 390px); }

.inspector-pane { display: grid; gap: 1rem; }
.inspector-note,
.photo-policy-note { color: var(--studio-muted); font-size: .75rem; line-height: 1.65; }
.photo-policy-note { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--studio-line); }
.photo-policy-note strong { color: var(--studio-accent); font-size: .62rem; letter-spacing: .15em; }
.section-controls { display: grid; gap: .65rem; }

.section-control {
  display: grid;
  gap: .6rem;
  padding: .85rem;
  border: 1px solid var(--studio-line);
}

.section-control__head { display: flex; justify-content: space-between; gap: .5rem; align-items: center; }
.section-control__head strong { font-size: .78rem; }
.section-control__actions { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem; }
.section-control__actions button { min-height: 38px; color: var(--studio-text); border: 1px solid var(--studio-line); background: transparent; }
.section-control__lock { color: var(--studio-muted); font-size: .68rem; }

.noscript-note { margin: 0; padding: 1rem; color: #171913; background: #ffec6b; }

html[data-surface="public"] .studio-bar,
html[data-surface="public"] .studio-status,
html[data-surface="public"] .studio-panel,
html[data-surface="public"] .preview-toolbar,
html[data-surface="public"] .noscript-note { display: none !important; }

html[data-surface="public"] .studio-shell,
html[data-surface="public"] .preview-workspace,
html[data-surface="public"] .preview-viewport {
  display: block !important;
  width: 100%;
  max-width: none;
  min-height: 100vh;
  padding: 0;
  overflow: visible;
  box-shadow: none;
}

/* Public page foundation */
.public-page {
  --page-bg: #f3f1eb;
  --page-fg: #161713;
  --page-muted: #66695f;
  --page-accent: #252c21;
  --page-line: #c8c7bf;
  min-height: 100%;
  color: var(--page-fg);
  background: var(--page-bg);
  font-family: "Helvetica Neue", "Noto Sans JP", system-ui, sans-serif;
  line-break: strict;
  overflow-wrap: anywhere;
}

.public-page a { color: inherit; }
.public-page h2,
.public-page h3,
.public-page p { margin-top: 0; }

.public-page h2 {
  margin-bottom: 1.5rem;
  font-size: clamp(3rem, 8vw, 8.5rem);
  font-weight: 580;
  line-height: .98;
  letter-spacing: -.055em;
}

.public-page h3 {
  margin-bottom: 1.25rem;
  font-size: clamp(2rem, 4.5vw, 5rem);
  font-weight: 520;
  line-height: 1.05;
  letter-spacing: -.045em;
}

.public-kicker,
.section-heading > p:first-child {
  margin-bottom: .9rem;
  color: var(--page-muted);
  font-size: .68rem;
  line-height: 1.4;
  letter-spacing: .16em;
}

.hero-lead,
.section-heading > p:last-child {
  max-width: 44rem;
  color: var(--page-muted);
  font-size: clamp(.98rem, 1.4vw, 1.3rem);
  line-height: 1.85;
}

.public-hero {
  min-height: min(900px, 92vh);
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 6rem);
  align-items: center;
  padding: var(--page-pad);
}

.hero-copy { position: relative; z-index: 1; }

.public-section { padding: var(--section-gap) var(--page-pad); }
.public-section + .public-section { border-top: 1px solid var(--page-line); }
.section-heading { margin-bottom: clamp(2rem, 5vw, 5rem); }

.public-action {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.25rem;
  padding: .9rem 1.2rem;
  color: var(--page-bg) !important;
  text-decoration: none;
  background: var(--page-accent);
}

.photo-stage {
  min-width: 0;
  margin: 0;
  color: var(--page-muted);
}

.photo-stage img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  background: color-mix(in srgb, var(--page-fg) 7%, var(--page-bg));
}

.photo-stage figcaption {
  padding-top: .55rem;
  font-size: .65rem;
  line-height: 1.5;
  letter-spacing: .08em;
}

.photo-stage.is-broken {
  min-height: 16rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--page-line);
}

.photo-stage.is-broken::before { content: "画像を表示できません"; font-size: .78rem; }
.photo-stage.is-broken img { display: none; }

.photo-sequence {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 2rem);
  align-items: start;
}

.photo-sequence > :nth-child(6n + 1) { grid-column: 1 / 8; }
.photo-sequence > :nth-child(6n + 2) { grid-column: 9 / 13; margin-top: 18%; }
.photo-sequence > :nth-child(6n + 3) { grid-column: 3 / 11; }
.photo-sequence > :nth-child(6n + 4) { grid-column: 1 / 5; }
.photo-sequence > :nth-child(6n + 5) { grid-column: 6 / 13; margin-top: 10%; }
.photo-sequence > :nth-child(6n) { grid-column: 3 / 10; }

.photo-sequence.variant-grid,
.photo-sequence.variant-masonry {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.photo-sequence.variant-grid > *,
.photo-sequence.variant-masonry > * { grid-column: auto; margin-top: 0; }

.photo-sequence.variant-horizontal,
.photo-sequence.variant-filmstrip {
  display: flex;
  gap: 1rem;
  padding-bottom: 1rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
}

.photo-sequence.variant-horizontal > *,
.photo-sequence.variant-filmstrip > * { flex: 0 0 min(72vw, 680px); margin: 0; scroll-snap-align: start; }

.photo-sequence.variant-full { display: block; }
.photo-sequence.variant-full > * + * { margin-top: 4rem; }

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 2rem;
  font-size: clamp(1rem, 1.8vw, 1.4rem);
  line-height: 1.8;
}

.profile-name { font-size: clamp(1.6rem, 3vw, 3.4rem); line-height: 1.2; }

.service-index { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--page-line); }
.service-index li { display: grid; grid-template-columns: 5rem 1fr; gap: 1rem; padding: 1.5rem 0; border-bottom: 1px solid var(--page-line); font-size: clamp(1rem, 2vw, 1.55rem); }
.service-index span { color: var(--page-muted); font-size: .7rem; }

.social-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
.social-groups > div { display: grid; align-content: start; gap: .75rem; }
.social-groups h4 { margin: 0 0 .5rem; color: var(--page-muted); font-size: .7rem; letter-spacing: .12em; }
.social-groups a { width: fit-content; text-underline-offset: .3em; }

.section-contact { min-height: 64vh; display: grid; align-content: center; justify-items: start; }
.section-contact > p:not(.public-kicker) { max-width: 40rem; line-height: 1.8; }

.public-footer { padding: 1.2rem var(--page-pad); color: var(--page-muted); border-top: 1px solid var(--page-line); font-size: .66rem; }
.public-footer p { margin: 0; }

.link-index { display: grid; gap: .75rem; }
.link-row { display: grid; grid-template-columns: 2.5rem 1fr auto; gap: 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--page-line); text-decoration: none; }
.link-row small { color: var(--page-muted); }

.event-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--page-line); }
.event-facts > div { min-height: 10rem; padding: 1.5rem; border-right: 1px solid var(--page-line); border-bottom: 1px solid var(--page-line); }
.event-facts dt { color: var(--page-muted); font-size: .68rem; letter-spacing: .12em; }
.event-facts dd { margin: 1rem 0 0; font-size: clamp(1rem, 2vw, 1.5rem); line-height: 1.5; }

.public-page button.photo-open { width: 100%; padding: 0; color: inherit; text-align: inherit; border: 0; background: transparent; }

/* T01: asymmetric editorial paper */
.template-t01 {
  --page-bg: #eee9df;
  --page-fg: #1d201b;
  --page-muted: #61645b;
  --page-accent: #d7482d;
  --page-line: #bdb8ad;
  font-family: Georgia, "Noto Serif JP", serif;
}

.template-t01 .public-hero {
  min-height: 100svh;
  grid-template-columns: .9fr 1.1fr;
  padding-block: 0;
}
.template-t01 .public-hero .photo-stage {
  position: relative;
  height: 100svh;
  align-self: stretch;
}
.template-t01 .public-hero .photo-stage img { width: 100%; height: 100%; }
.template-t01 .public-hero .photo-stage figcaption {
  position: absolute;
  inset-inline: .75rem;
  inset-block-end: .65rem;
  z-index: 1;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .8);
}
.template-t01 .public-hero h2 { font-weight: 400; }
.template-t01 .public-kicker,
.template-t01 .section-heading > p:first-child,
.template-t01 .public-action { font-family: "Helvetica Neue", "Noto Sans JP", sans-serif; }
.template-t01 .section-gallery { padding-left: calc(var(--page-pad) * 1.6); }
.template-t01 .section-profile { margin-left: 12%; background: #d8d4ca; }

/* T02: white-wall gallery */
.template-t02 {
  --page-bg: #fbfbf8;
  --page-fg: #151515;
  --page-muted: #6c6c68;
  --page-accent: #151515;
  --page-line: #deded8;
}

.template-t02 .public-hero { min-height: auto; grid-template-columns: 1fr; padding-bottom: 2rem; }
.template-t02 .public-hero .hero-copy { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 2rem; }
.template-t02 .public-hero h2 { margin: 0; font-size: clamp(2rem, 5vw, 5rem); }
.template-t02 .public-hero .photo-stage { order: -1; }
.template-t02 .public-section { padding-top: clamp(7rem, 14vw, 15rem); }
.template-t02 .photo-stage figcaption { opacity: .72; }

/* T03: cold luxury */
.template-t03 {
  --page-bg: #dfe2e1;
  --page-fg: #171c1e;
  --page-muted: #586064;
  --page-accent: #263034;
  --page-line: #aab0b1;
  font-family: "Helvetica Neue", "Noto Sans JP", sans-serif;
}

.template-t03 .public-hero { background: linear-gradient(120deg, #c8cece 0 35%, #e6e9e8 35%); }
.template-t03 h2,
.template-t03 h3 { font-family: Didot, "Bodoni 72", "Noto Serif JP", serif; font-weight: 400; letter-spacing: -.035em; }
.template-t03 .public-action { border: 1px solid var(--page-fg); color: var(--page-fg) !important; background: transparent; }
.template-t03 .section-services { background: #cfd4d3; }

/* T04: neutral default */
.template-t04 { --page-bg: #f2f0e9; --page-fg: #171913; --page-muted: #62675c; --page-accent: #253326; --page-line: #c7c8bf; }
.template-t04 .public-hero { background: #e9eadf; }
.template-t04 .section-services { background: #dfe2d6; }

/* T05: independent magazine */
.template-t05 {
  --page-bg: #f4f0e6;
  --page-fg: #11120e;
  --page-muted: #575a50;
  --page-accent: #d93624;
  --page-line: #bdb8aa;
  font-family: Georgia, "Noto Serif JP", serif;
}

.template-t05 .public-hero { min-height: 96vh; grid-template-columns: .7fr 1.3fr; align-items: end; background: #e4dcce; }
.template-t05 h2 { font-size: clamp(4rem, 11vw, 12rem); font-weight: 400; text-transform: uppercase; }
.template-t05 .public-kicker,
.template-t05 .section-heading > p:first-child,
.template-t05 .public-action { font-family: "Arial Narrow", "Noto Sans JP", sans-serif; }
.template-t05 .section-story .profile-layout { column-count: 2; display: block; }
.template-t05 .section-gallery { border-top: 6px solid var(--page-fg); }

/* T06: kinetic composition with static readability */
.template-t06 {
  --page-bg: #ece8df;
  --page-fg: #10111a;
  --page-muted: #595b68;
  --page-accent: #2b4dff;
  --page-line: #abaeba;
}

.template-t06 .public-hero { position: relative; background: linear-gradient(150deg, #ff735c 0 32%, #eee8dd 32% 70%, #2b4dff 70%); }
.template-t06 h2 { font-size: clamp(4rem, 12vw, 13rem); text-transform: uppercase; }
.template-t06 .section-reel { background: #11121b; color: #f5f0e8; --page-muted: #a9a9b0; --page-line: #42434c; }
.template-t06 .section-reel .photo-stage { max-width: 70%; margin-inline: auto; }
.template-t06 .section-contact { background: #2b4dff; color: #fff; --page-muted: #dfe4ff; --page-accent: #fff; }
.template-t06 .section-contact .public-action { color: #2b4dff !important; }

.js .template-t06 .reveal-ready { opacity: 0; transform: translateY(2.5rem); transition: opacity .65s ease, transform .65s ease; }
.js .template-t06 .reveal-ready.is-visible { opacity: 1; transform: none; }

/* T07: night scene */
.template-t07 {
  --page-bg: #0b0c0d;
  --page-fg: #f1eee7;
  --page-muted: #9da0a0;
  --page-accent: #f06e38;
  --page-line: #313335;
}

.template-t07 .public-hero { background: #050606; }
.template-t07 .photo-stage img { background: #060707; }
.template-t07 .section-gallery { background: #111315; }
.template-t07 .public-action { color: #0b0c0d !important; }

/* T08: event poster and information */
.template-t08 {
  --page-bg: #f4e8d0;
  --page-fg: #182014;
  --page-muted: #5c6357;
  --page-accent: #ee4c2f;
  --page-line: #a9ad9d;
}

.template-t08 .public-hero { position: relative; min-height: 100vh; background: #b8e683; }
.template-t08 h2 { font-size: clamp(4.5rem, 13vw, 14rem); font-weight: 800; line-height: .82; text-transform: uppercase; }
.template-t08 .section-eventDetails { background: #f5a7c8; }
.template-t08 .section-ticket { background: #372eff; color: #fff; --page-muted: #d8d5ff; --page-accent: #fff; }
.template-t08 .section-ticket .public-action { color: #372eff !important; }
.template-t08 .archive-switch { position: sticky; top: 0; z-index: 2; display: flex; justify-content: flex-end; padding: .75rem var(--page-pad); background: var(--page-bg); border-bottom: 1px solid var(--page-line); }
.template-t08 .archive-switch button { min-height: 42px; padding: .6rem .9rem; color: inherit; border: 1px solid currentColor; background: transparent; }

/* T09: clear business structure */
.template-t09 {
  --page-bg: #f2f3ef;
  --page-fg: #10221c;
  --page-muted: #5a6862;
  --page-accent: #145b42;
  --page-line: #b8c1bc;
}

.template-t09 .public-hero { grid-template-columns: 1.2fr .8fr; border-bottom: 1px solid var(--page-line); }
.template-t09 .section-services { background: #e2ebe5; }
.template-t09 .section-process .service-index li { grid-template-columns: 5rem 1fr minmax(10rem, .6fr); }
.template-t09 .section-faq details { padding: 1.25rem 0; border-bottom: 1px solid var(--page-line); }
.template-t09 .section-faq summary { cursor: pointer; font-size: 1.1rem; }

/* T10: compact identity and link index */
.template-t10 {
  --page-bg: #f4f25e;
  --page-fg: #151713;
  --page-muted: #55594d;
  --page-accent: #151713;
  --page-line: #939541;
}

.template-t10 .public-hero { min-height: auto; grid-template-columns: .7fr 1.3fr; align-items: start; padding-top: clamp(3rem, 8vw, 8rem); }
.template-t10 .public-hero h2 { font-size: clamp(3rem, 8vw, 7rem); }
.template-t10 .public-hero .photo-stage { max-width: 26rem; justify-self: end; }
.template-t10 .public-section { padding-top: clamp(2.5rem, 5vw, 5rem); padding-bottom: clamp(2.5rem, 5vw, 5rem); }
.template-t10 .section-links { background: #f7f5d8; }
.template-t10 .link-row { min-height: 72px; }

/* M01: live / artist photography — long-form score, not a generic dark skin */
.template-m01 {
  --page-bg: #11100f;
  --page-fg: #f4f2ed;
  --page-muted: #bcb5a9;
  --page-accent: #f4f2ed;
  --page-line: rgb(244 242 237 / .24);
  --m01-display: "Arial Narrow", "Helvetica Neue Condensed", "Hiragino Sans", "Yu Gothic UI", sans-serif;
  --m01-reading: "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", system-ui, sans-serif;
  --m01-mincho: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  color: var(--page-fg);
  background: var(--page-bg);
  font-family: var(--m01-reading);
  overflow: clip;
}

.template-m01 .m01-scene { position: relative; isolation: isolate; min-height: 70vh; padding: clamp(5rem, 10vw, 10rem) var(--page-pad); overflow: clip; }
.template-m01 .m01-scene + .m01-scene { border-top: 1px solid var(--page-line); }
.template-m01 h2,
.template-m01 h3,
.template-m01 h4 { margin: 0; font-family: var(--m01-display); }
.template-m01 p { margin: 0; }
.template-m01 .m01-kicker,
.template-m01 .m01-chapter > p,
.template-m01 .m01-case__number {
  color: var(--page-accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .68rem;
  letter-spacing: .14em;
}
.template-m01 .m01-part-label {
  position: absolute;
  z-index: 5;
  top: 1rem;
  right: 1rem;
  padding: .35rem .5rem;
  color: #11100f;
  background: #f4f2ed;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .55rem;
  letter-spacing: .08em;
}
html[data-surface="public"] .template-m01 .m01-part-label { display: none; }

.template-m01 .m01-frame { min-width: 0; margin: 0; }
.template-m01 .m01-frame img { width: 100%; height: auto; display: block; background: #080807; }
.template-m01 .m01-frame figcaption { padding-top: .55rem; color: var(--page-muted); font-size: .62rem; line-height: 1.45; letter-spacing: .06em; }
.template-m01 .m01-frame .photo-open { width: 100%; padding: 0; border: 0; background: transparent; }
.template-m01 .m01-frame .photo-open:focus-visible { outline-color: var(--page-accent); }
.template-m01 .m01-frame.is-broken { min-height: 14rem; display: grid; place-items: center; border: 1px solid var(--page-line); }
.template-m01 .m01-frame.is-broken::before { content: "画像を表示できません"; color: var(--page-muted); font-size: .75rem; }
.template-m01 .m01-frame.is-broken img { display: none; }

.template-m01 .m01-action {
  --op-action-sweep: #f4f2ed;
  min-height: 50px;
  padding: .9rem 1.15rem;
  color: #11100f !important;
  border: 1px solid #f4f2ed;
  background: #f4f2ed;
  font-family: var(--m01-reading);
  font-size: .82rem;
  font-weight: 700;
}
@media (hover: hover) and (pointer: fine) {
  .template-m01 .m01-action:hover,
  .template-m01 .m01-action:focus-visible { color: #11100f !important; background: var(--page-accent); }
}

/* Cover: copy is allowed on the registered left safe area only. */
.template-m01 .m01-cover { min-height: 0; padding: 0; background: #090909; }
.template-m01 .m01-cover__photo { width: 100%; }
.template-m01 .m01-cover__photo img { width: 100%; height: auto; }
.template-m01 .m01-cover__shade { position: absolute; z-index: 1; inset: 0; background: linear-gradient(90deg, rgb(9 9 9 / .9) 0, rgb(9 9 9 / .38) 48%, transparent 75%), linear-gradient(0deg, rgb(9 9 9 / .82), transparent 38%); pointer-events: none; }
.template-m01 .m01-cover__copy { position: absolute; z-index: 3; left: var(--page-pad); bottom: clamp(5rem, 9vw, 9rem); width: min(55%, 50rem); }
.template-m01 .m01-cover__title { margin: .8rem 0 1.25rem; font-size: clamp(4.2rem, 10vw, 10.5rem); font-weight: 950; line-height: .86; letter-spacing: -.085em; text-transform: uppercase; }
.template-m01 .m01-cover__copy > p:not(.m01-kicker) { max-width: 35rem; color: rgb(244 242 237 / .84); font-size: clamp(.9rem, 1.2vw, 1.12rem); line-height: 1.75; }
.template-m01 .m01-cover__facts { position: absolute; z-index: 3; right: var(--page-pad); bottom: clamp(2rem, 4vw, 4rem); display: grid; grid-template-columns: repeat(3, auto); gap: 1.5rem; margin: 0; }
.template-m01 .m01-cover__facts div { padding-left: 1rem; border-left: 1px solid var(--page-line); }
.template-m01 .m01-cover__facts dt { color: var(--page-accent); font-size: .55rem; letter-spacing: .12em; }
.template-m01 .m01-cover__facts dd { margin: .3rem 0 0; font-size: .68rem; }
.template-m01 .m01-cover .op-webgl-canvas { z-index: 2; opacity: .6; mix-blend-mode: screen; }

/* Before: the vertical reading path alternates distance and scale. */
.template-m01 .m01-before { min-height: 180vh; background: #e7e2d8; color: #11100f; --page-muted: #655f57; --page-accent: #11100f; --page-line: rgb(17 16 15 / .22); }
.template-m01 .m01-chapter { display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: 2rem; align-items: start; margin-bottom: clamp(4rem, 9vw, 9rem); }
.template-m01 .m01-chapter__title { max-width: 62rem; font-size: clamp(3.2rem, 7.8vw, 8.4rem); font-weight: 930; line-height: .92; letter-spacing: -.075em; }
.template-m01 .m01-before__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 4rem); align-items: start; }
.template-m01 .m01-before__photo--1 { grid-column: 1 / 7; }
.template-m01 .m01-before__photo--2 { grid-column: 9 / 13; margin-top: 35%; }
.template-m01 .m01-before__photo--3 { grid-column: 4 / 10; margin-top: 10%; }
.template-m01 .m01-before__photo--4 { grid-column: 1 / 5; margin-top: 42%; }
.template-m01 .m01-before__photo--5 { grid-column: 7 / 13; }
.template-m01 .m01-before__photo--6 { grid-column: 3 / 9; margin-top: 18%; }
.template-m01 .m01-side-note { width: min(32rem, 60%); margin: clamp(4rem, 9vw, 9rem) 0 0 auto; font-family: var(--m01-mincho); font-size: clamp(1.25rem, 2.2vw, 2rem); line-height: 1.75; }

/* Hit: three near-full scenes give the photographs time, not a compact grid. */
.template-m01 .m01-hit { padding: 0; background: #11100f; }
.template-m01 .m01-hit__word { position: sticky; z-index: -1; top: 8vh; height: 0; padding-left: 2vw; color: rgb(244 242 237 / .18); font-family: var(--m01-display); font-size: clamp(9rem, 30vw, 34rem); font-weight: 950; line-height: .72; letter-spacing: -.11em; }
.template-m01 .m01-hit__panel { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(15rem, .38fr); gap: clamp(1.5rem, 4vw, 5rem); align-items: center; padding: clamp(5rem, 8vw, 9rem) var(--page-pad); }
.template-m01 .m01-hit__panel:nth-of-type(even) { grid-template-columns: minmax(15rem, .38fr) minmax(0, 1fr); background: #1a1816; }
.template-m01 .m01-hit__panel:nth-of-type(even) .m01-frame { grid-column: 2; }
.template-m01 .m01-hit__panel:nth-of-type(even) .m01-hit__caption { grid-column: 1; grid-row: 1; }
.template-m01 .m01-hit__panel .m01-frame { width: min(100%, 54rem); }
.template-m01 .m01-hit__caption { align-self: end; padding-bottom: 2rem; }
.template-m01 .m01-hit__caption strong { display: block; color: var(--page-accent); font-family: var(--m01-display); font-size: clamp(4rem, 8vw, 9rem); font-weight: 950; line-height: .8; letter-spacing: -.08em; }
.template-m01 .m01-hit__caption span { display: block; max-width: 20rem; margin-top: 1.5rem; color: var(--page-muted); line-height: 1.75; }

/* Pulse: native horizontal track on small screens; no scroll hijacking. */
.template-m01 .m01-pulse { min-height: 125vh; background: #f4f2ed; color: #11100f; --page-muted: rgb(17 16 15 / .72); --page-accent: #11100f; --page-line: rgb(17 16 15 / .3); }
.template-m01 .m01-pulse__heading { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(14rem, .32fr); gap: 2rem; align-items: end; }
.template-m01 .m01-pulse__title { font-size: clamp(4.2rem, 11vw, 12rem); font-weight: 950; line-height: .76; letter-spacing: -.09em; }
.template-m01 .m01-pulse__heading > p { max-width: 25rem; line-height: 1.7; }
.template-m01 .m01-pulse__track { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1.4rem; margin-top: clamp(5rem, 10vw, 10rem); align-items: start; }
.template-m01 .m01-pulse__photo { grid-column: span 3; }
.template-m01 .m01-pulse__photo--2,
.template-m01 .m01-pulse__photo--5 { margin-top: 55%; }
.template-m01 .m01-pulse__photo--3 { grid-column: span 5; }
.template-m01 .m01-pulse__photo--4 { grid-column: 2 / span 4; margin-top: 12%; }
.template-m01 .m01-pulse__photo--6 { grid-column: span 4; margin-top: 25%; }

/* After: pace falls; Mincho becomes a deliberate counter-rhythm. */
.template-m01 .m01-after { min-height: 145vh; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 5rem); align-items: start; background: #11100f; }
.template-m01 .m01-after__portrait { grid-column: 1 / 7; }
.template-m01 .m01-after__copy { grid-column: 8 / 13; padding-top: 22%; }
.template-m01 .m01-after__title { margin-bottom: 2rem; font-family: var(--m01-mincho); font-size: clamp(3rem, 5.8vw, 6.8rem); font-weight: 500; line-height: 1.08; letter-spacing: -.05em; }
.template-m01 .m01-after__copy p { color: var(--page-muted); font-size: clamp(1rem, 1.45vw, 1.3rem); line-height: 2; }
.template-m01 .m01-after__stage { grid-column: 7 / 12; margin-top: 18%; }
.template-m01 .m01-after__city { grid-column: 2 / 6; margin-top: -8%; }

/* Assignment proof: photographic case studies with business facts attached. */
.template-m01 .m01-assignments { background: #e7e2d8; color: #11100f; --page-muted: #655f57; --page-accent: #11100f; --page-line: rgb(17 16 15 / .24); }
.template-m01 .m01-proof__heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(16rem, .36fr); gap: 3rem; align-items: end; margin-bottom: clamp(7rem, 13vw, 13rem); }
.template-m01 .m01-proof__title { font-size: clamp(4rem, 8vw, 9rem); font-weight: 950; line-height: .9; letter-spacing: -.08em; }
.template-m01 .m01-proof__heading > p { line-height: 1.8; }
.template-m01 .m01-case { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(18rem, .85fr); gap: clamp(2.5rem, 6vw, 7rem); align-items: start; padding: clamp(5rem, 9vw, 9rem) 0; border-top: 1px solid var(--page-line); }
.template-m01 .m01-case:nth-of-type(even) { grid-template-columns: minmax(18rem, .85fr) minmax(0, 1.15fr); }
.template-m01 .m01-case:nth-of-type(even) .m01-case__media { grid-column: 2; }
.template-m01 .m01-case:nth-of-type(even) .m01-case__info { grid-column: 1; grid-row: 1; }
.template-m01 .m01-case__media { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.template-m01 .m01-case__media .is-main { grid-column: 1 / -1; }
.template-m01 .m01-case__info { position: sticky; top: 2rem; }
.template-m01 .m01-case__info h4 { margin: .85rem 0 1.4rem; color: #11100f; font-size: clamp(2.6rem, 5vw, 5.5rem); font-weight: 950; line-height: .88; letter-spacing: -.065em; }
.template-m01 .m01-case__info > p:not(.m01-case__number) { font-family: var(--m01-mincho); font-size: clamp(1.1rem, 1.7vw, 1.5rem); line-height: 1.8; }
.template-m01 .m01-case__info dl { margin: 2.5rem 0 0; border-top: 1px solid var(--page-line); }
.template-m01 .m01-case__info dl div { display: grid; grid-template-columns: 6rem 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--page-line); }
.template-m01 .m01-case__info dt { color: var(--page-muted); font-size: .72rem; }
.template-m01 .m01-case__info dd { margin: 0; line-height: 1.55; }

.template-m01 .m01-participants { min-height: auto; background: #d9d2c6; color: #11100f; --page-muted: #655f57; --page-accent: #11100f; --page-line: rgb(17 16 15 / .25); }
.template-m01 .m01-participants .participants { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--page-line); }
.template-m01 .m01-participants .participants > * { min-width: 0; padding: 1.25rem; color: inherit; background: #e7e2d8; text-decoration: none; }
.template-m01 .m01-participants [data-layout="directory"] { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.template-m01 .m01-participants [data-layout="detail"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.template-m01 .m01-participants .participant--detail { display: grid; grid-template-columns: 5rem 1fr; gap: 1.2rem; }
.template-m01 .m01-participants .avatar { width: 2.5rem; aspect-ratio: 1; display: block; border: 1px solid rgb(17 16 15 / .55); border-radius: 50%; background: radial-gradient(circle at 62% 36%, #f4f2ed 0 16%, transparent 17%), conic-gradient(from 25deg, #11100f, #a8a097, #11100f); }
.template-m01 .m01-participants .participant--detail .avatar { width: 5rem; }
.template-m01 .m01-participants .participant--directory { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: .7rem; align-items: center; }
.template-m01 .m01-participants .participant--directory strong,
.template-m01 .m01-participants .participant--directory small { display: block; }
.template-m01 .m01-participants .participant--directory strong { font-size: .78rem; line-height: 1.35; overflow-wrap: anywhere; }
.template-m01 .m01-participants .participant--directory small { margin-top: .2rem; color: var(--page-muted); font-size: .6rem; }
.template-m01 .m01-participants .participant--detail h3 { font-size: 1.25rem; line-height: 1.25; }
.template-m01 .m01-participants .participant--detail p { margin-top: .65rem; font-size: .78rem; line-height: 1.6; }

/* Photographer: identity remains separate from the cameraman.jp platform credit. */
.template-m01 .m01-photographer { min-height: 115vh; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2rem; align-items: center; background: #151310; }
.template-m01 .m01-photographer__name { position: absolute; z-index: -1; top: 7%; left: -1%; color: rgb(244 242 237 / .075); font-family: var(--m01-display); font-size: clamp(10rem, 25vw, 30rem); font-weight: 950; line-height: .65; letter-spacing: -.11em; }
.template-m01 .m01-photographer__image { grid-column: 1 / 7; }
.template-m01 .m01-photographer__bio { grid-column: 8 / 13; }
.template-m01 .m01-bio-lead { margin-bottom: 2rem; font-family: var(--m01-mincho); font-size: clamp(1.8rem, 3.2vw, 3.8rem); line-height: 1.48; }
.template-m01 .m01-photographer__bio > p:not(.m01-bio-lead) { color: var(--page-muted); line-height: 1.9; }
.template-m01 .m01-photographer__bio dl { margin: 2.5rem 0; border-top: 1px solid var(--page-line); }
.template-m01 .m01-photographer__bio dl div { display: grid; grid-template-columns: 6rem 1fr; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--page-line); }
.template-m01 .m01-photographer__bio dt { color: var(--page-muted); font-size: .7rem; }
.template-m01 .m01-photographer__bio dd { margin: 0; }
.template-m01 .m01-photographer__bio nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.template-m01 .m01-photographer__bio nav a { color: var(--page-accent); text-underline-offset: .3em; }

.template-m01 .m01-closing { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 0; padding: 0; background: #f4f2ed; color: #11100f; --page-muted: rgb(17 16 15 / .7); --page-accent: #11100f; }
.template-m01 .m01-closing__photo { align-self: center; padding: var(--page-pad); }
.template-m01 .m01-closing__copy { display: grid; align-content: center; justify-items: start; padding: clamp(4rem, 8vw, 9rem) var(--page-pad); border-left: 1px solid rgb(17 16 15 / .25); }
.template-m01 .m01-closing__title { margin: 1rem 0 2rem; font-size: clamp(4rem, 8vw, 9rem); font-weight: 950; line-height: .9; letter-spacing: -.08em; }
.template-m01 .m01-closing__copy > p:not(.m01-kicker) { max-width: 32rem; line-height: 1.8; }
.template-m01 .m01-closing .m01-action { --op-action-sweep: #11100f; color: #f4f2ed !important; border-color: #11100f; background: #11100f; }
@media (hover: hover) and (pointer: fine) {
  .template-m01 .m01-closing .m01-action:hover,
  .template-m01 .m01-closing .m01-action:focus-visible { color: #11100f !important; background: #f4f2ed; }
}
.template-m01 .m01-contact-note { max-width: 32rem; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid rgb(17 16 15 / .35); font-size: .78rem; line-height: 1.7; }
.template-m01 .m01-contact-note p { margin-top: .5rem; }
.template-m01 .public-footer { color: #bcb5a9; background: #11100f; border-color: rgb(244 242 237 / .24); }

/* Viewer */
.viewer {
  width: min(94vw, 1300px);
  max-width: none;
  height: min(92vh, 960px);
  padding: 0;
  color: #f4f3ed;
  border: 0;
  background: #0a0b0a;
}

.viewer::backdrop { background: #000d; }
.viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.viewer-bar,
.viewer-controls { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .75rem; }
.viewer figure { min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; place-items: center; margin: 0; overflow: hidden; }
.viewer figure img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.viewer figcaption { width: 100%; padding: .65rem 1rem; color: #bfc1b9; font-size: .75rem; }
.viewer-controls { justify-content: center; }
.viewer-controls button { min-height: 44px; padding: .65rem 1rem; color: inherit; border: 1px solid #454845; background: transparent; }

@media (max-width: 1180px) {
  .studio-shell { grid-template-columns: 240px minmax(0, 1fr); }
  .studio-panel--inspector { grid-column: 1 / -1; border-top: 1px solid var(--studio-line); border-left: 0; }
  .inspector-pane { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-controls { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photo-policy-note { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .studio-bar { position: static; grid-template-columns: 1fr auto; }
  .studio-bar__modes { grid-column: 1; }
  .studio-bar__view { grid-column: 2; }
  .studio-bar > .button { display: none; }
  .studio-shell { display: block; }
  .studio-shell[data-zone="preview"] .studio-panel { display: none; }
  .studio-shell[data-zone="edit"] .preview-workspace { display: none; }
  .studio-panel--library,
  .studio-panel--inspector { border: 0; border-bottom: 1px solid var(--studio-line); }
  .inspector-pane { grid-template-columns: 1fr; }
  .section-controls { grid-template-columns: 1fr; }
  .preview-workspace { padding: .4rem; }
  .preview-toolbar { padding-inline: .5rem; }
  .preview-size { display: none; }

  .public-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: start;
    padding-top: clamp(4rem, 18vw, 7rem);
    padding-bottom: clamp(4rem, 18vw, 7rem);
  }

  .public-page h2 { font-size: clamp(3rem, 17vw, 6.2rem); }
  .public-page h3 { font-size: clamp(2rem, 10vw, 3.5rem); }
  .hero-copy { order: 2; }
  .public-hero .photo-stage { order: 1; }
  .photo-sequence { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2.5rem 1rem; }
  .photo-sequence > :nth-child(n) { grid-column: 1 / 7; margin-top: 0; }
  .photo-sequence > :nth-child(3n + 2).is-portrait { grid-column: 2 / 7; }
  .photo-sequence > :nth-child(3n).is-landscape { grid-column: 1 / 6; }
  .photo-sequence.variant-grid,
  .photo-sequence.variant-masonry { grid-template-columns: 1fr; }
  .photo-sequence.variant-horizontal,
  .photo-sequence.variant-filmstrip { display: grid; overflow: visible; }
  .photo-sequence.variant-horizontal > *,
  .photo-sequence.variant-filmstrip > * { width: auto; }
  .profile-layout,
  .social-groups { grid-template-columns: 1fr; }
  .event-facts { grid-template-columns: 1fr; }
  .event-facts > div { min-height: auto; border-right: 0; }

  .template-t01 .public-hero { min-height: 0; grid-template-columns: 1fr; padding-block: var(--section-gap); }
  .template-t01 .public-hero .photo-stage { height: auto; }
  .template-t01 .public-hero .photo-stage img { height: auto; }
  .template-t01 .public-hero .photo-stage figcaption {
    position: static;
    color: var(--page-muted);
    text-shadow: none;
  }
  .template-t01 .section-gallery { padding-left: var(--page-pad); }
  .template-t01 .section-profile { margin-left: 0; }

  .template-t02 .public-hero .hero-copy { grid-template-columns: 1fr; }
  .template-t02 .public-hero h2 { font-size: clamp(2.4rem, 12vw, 4rem); }
  .template-t02 .public-section { padding-top: 7rem; }

  .template-t03 .public-hero { background: linear-gradient(180deg, #c8cece 0 26%, #e6e9e8 26%); }

  .template-t05 .public-hero { grid-template-columns: 1fr; min-height: auto; }
  .template-t05 h2 { font-size: clamp(4rem, 21vw, 7rem); }
  .template-t05 .section-story .profile-layout { column-count: 1; }

  .template-t06 .public-hero { background: linear-gradient(165deg, #ff735c 0 24%, #eee8dd 24% 78%, #2b4dff 78%); }
  .template-t06 .section-reel .photo-stage { max-width: 100%; }

  .template-t08 h2 { font-size: clamp(4rem, 21vw, 7.5rem); }
  .template-t08 .archive-switch { position: static; }

  .template-t09 .public-hero,
  .template-t10 .public-hero { grid-template-columns: 1fr; }
  .template-t10 .public-hero .photo-stage { max-width: 70%; justify-self: end; }
  .link-row { grid-template-columns: 2rem 1fr; }
  .link-row small { grid-column: 2; }

  /* M01 mobile is a narrative re-edit: photo, statement, then evidence. */
  .template-m01 .m01-scene { min-height: 0; padding: 5.5rem 1.15rem; }
  .template-m01 .m01-part-label { top: .65rem; right: .65rem; }
  .template-m01 .m01-cover { padding: 0; }
  .template-m01 .m01-cover__shade { display: none; }
  .template-m01 .m01-cover__copy { position: relative; left: auto; bottom: auto; width: auto; padding: 2.25rem 1.15rem 3rem; background: #11100f; }
  .template-m01 .m01-cover__title { font-size: clamp(3.5rem, 17vw, 5.2rem); line-height: .9; }
  .template-m01 .m01-cover__facts { position: relative; right: auto; bottom: auto; grid-template-columns: 1fr; gap: 0; padding: 0 1.15rem 2rem; background: #11100f; }
  .template-m01 .m01-cover__facts div { padding: .8rem 0; border-top: 1px solid var(--page-line); border-left: 0; }
  .template-m01 .m01-cover .op-webgl-canvas { display: none; }

  .template-m01 .m01-chapter { grid-template-columns: 1fr; gap: 1.25rem; margin-bottom: 4.5rem; }
  .template-m01 .m01-chapter__title { font-size: clamp(2.5rem, 10vw, 3.5rem); line-height: .96; }
  .template-m01 .m01-before { min-height: 0; }
  .template-m01 .m01-before__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 3.5rem .75rem; }
  .template-m01 .m01-before__photo--1 { grid-column: 1 / 7; }
  .template-m01 .m01-before__photo--2 { grid-column: 2 / 7; margin-top: 0; }
  .template-m01 .m01-before__photo--3 { grid-column: 1 / 6; margin-top: 0; }
  .template-m01 .m01-before__photo--4 { grid-column: 2 / 7; margin-top: 0; }
  .template-m01 .m01-before__photo--5 { grid-column: 1 / 7; }
  .template-m01 .m01-before__photo--6 { grid-column: 1 / 6; margin-top: 0; }
  .template-m01 .m01-side-note { width: 88%; margin-top: 4.5rem; font-size: 1.35rem; }

  .template-m01 .m01-hit__word { position: absolute; top: 2rem; font-size: 42vw; }
  .template-m01 .m01-hit__panel,
  .template-m01 .m01-hit__panel:nth-of-type(even) { min-height: 0; grid-template-columns: 1fr; gap: 1.5rem; padding: 6rem 1.15rem; }
  .template-m01 .m01-hit__panel:nth-of-type(even) .m01-frame,
  .template-m01 .m01-hit__panel:nth-of-type(even) .m01-hit__caption { grid-column: 1; grid-row: auto; }
  .template-m01 .m01-hit__caption { padding-bottom: 0; }
  .template-m01 .m01-hit__caption strong { font-size: clamp(4rem, 21vw, 6.5rem); }

  .template-m01 .m01-pulse { padding-inline: 0; }
  .template-m01 .m01-pulse__heading { grid-template-columns: 1fr; padding-inline: 1.15rem; }
  .template-m01 .m01-pulse__title { font-size: clamp(4rem, 20vw, 6rem); }
  .template-m01 .m01-pulse__track { display: flex; gap: .75rem; margin-top: 4rem; padding: 0 1.15rem 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
  .template-m01 .m01-pulse__photo,
  .template-m01 .m01-pulse__photo--2,
  .template-m01 .m01-pulse__photo--3,
  .template-m01 .m01-pulse__photo--4,
  .template-m01 .m01-pulse__photo--5,
  .template-m01 .m01-pulse__photo--6 { flex: 0 0 78vw; margin-top: 0; scroll-snap-align: center; }

  .template-m01 .m01-after { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4.5rem .75rem; }
  .template-m01 .m01-after__portrait { grid-column: 1 / 7; }
  .template-m01 .m01-after__copy { grid-column: 1 / 7; padding-top: 0; }
  .template-m01 .m01-after__title { font-size: clamp(3.2rem, 14vw, 5rem); }
  .template-m01 .m01-after__stage { grid-column: 2 / 7; margin-top: 0; }
  .template-m01 .m01-after__city { grid-column: 1 / 6; margin-top: 0; }

  .template-m01 .m01-proof__heading { grid-template-columns: 1fr; gap: 2rem; margin-bottom: 6rem; }
  .template-m01 .m01-proof__title { font-size: clamp(2.5rem, 10.5vw, 3.5rem); line-height: .96; }
  .template-m01 .m01-case,
  .template-m01 .m01-case:nth-of-type(even) { grid-template-columns: 1fr; gap: 2.5rem; padding: 5rem 0; }
  .template-m01 .m01-case:nth-of-type(even) .m01-case__media,
  .template-m01 .m01-case:nth-of-type(even) .m01-case__info { grid-column: 1; grid-row: auto; }
  .template-m01 .m01-case__info { position: static; }
  .template-m01 .m01-case__info h4 { font-size: clamp(3rem, 14vw, 4.8rem); }
  .template-m01 .m01-case__info dl div { grid-template-columns: 5rem 1fr; }

  .template-m01 .m01-participants .participants,
  .template-m01 .m01-participants [data-layout="directory"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .template-m01 .m01-participants [data-layout="detail"] { grid-template-columns: 1fr; }
  .template-m01 .m01-participants .participants > * { padding: .85rem; font-size: .72rem; }
  .template-m01 .m01-participants .participant--directory { display: block; text-align: center; }
  .template-m01 .m01-participants .participant--directory .avatar { margin: 0 auto .55rem; }

  .template-m01 .m01-photographer { grid-template-columns: 1fr; gap: 3rem; }
  .template-m01 .m01-photographer__name { top: 1.5rem; font-size: 37vw; }
  .template-m01 .m01-photographer__image,
  .template-m01 .m01-photographer__bio { grid-column: 1; }
  .template-m01 .m01-bio-lead { font-size: clamp(1.85rem, 8.5vw, 3rem); }

  .template-m01 .m01-closing { grid-template-columns: 1fr; }
  .template-m01 .m01-closing__photo { padding: 4rem 1.15rem 0; }
  .template-m01 .m01-closing__copy { padding: 4rem 1.15rem 6rem; border-top: 1px solid rgb(17 16 15 / .25); border-left: 0; }
  .template-m01 .m01-closing__title { font-size: clamp(3.2rem, 14vw, 4.8rem); line-height: .96; }
}

@media (max-width: 420px) {
  .studio-brand strong { font-size: .8rem; }
  .segmented { padding-inline: .65rem; font-size: .72rem; }
  .public-page { --page-pad: 1.15rem; }
  .service-index li { grid-template-columns: 2.5rem 1fr; }
  .public-footer { line-height: 1.6; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .template-t06 .reveal-ready { opacity: 1; transform: none; }
}

html[data-force-reduced-motion="true"] .js .template-t06 .reveal-ready { opacity: 1; transform: none; }
html[data-force-reduced-motion="true"] .template-m01 .op-webgl-canvas { display: none !important; }
html[data-force-reduced-motion="true"] .template-m01 .op-motion-unit { opacity: 1 !important; transform: none !important; transition: none !important; }
html[data-force-reduced-motion="true"] .template-m01 .op-action,
html[data-force-reduced-motion="true"] .template-m01 .op-action::before,
html[data-force-reduced-motion="true"] .template-m01 .op-action__arrow { transition: none !important; }

@media print {
  .studio-bar,
  .studio-status,
  .studio-panel,
  .preview-toolbar { display: none !important; }
  .studio-shell,
  .preview-workspace,
  .preview-viewport { display: block; width: auto; min-height: 0; padding: 0; overflow: visible; box-shadow: none; }
}
