/* mov-to-conte landing — editorial mono shell */

:root {
  --bg: #ffffff;
  --bg-muted: #f5f5f5;
  --bg-dark: #0a0a0a;
  --text: #0a0a0a;
  --text-body: #1a1a1a;
  --text-meta: #757575;
  --line: #e5e5e5;
  --line-strong: #0a0a0a;
  --ph-bg: #f0f0f0;
  --ph-border: #cfcfcf;
  --max: 1120px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --font: "Noto Sans JP", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.wrap {
  width: min(var(--max), 100% - var(--pad) * 2);
  margin-inline: auto;
}

.mono {
  font-family: var(--mono);
  font-size: 0.85em;
  letter-spacing: 0.02em;
}

.muted {
  color: var(--text-meta);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.5rem;
}

.logo {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 1.25rem;
}

.nav a {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-meta);
}

.nav a:hover {
  color: var(--text);
}

@media (max-width: 640px) {
  .nav {
    display: none;
  }
}

/* Env notice */
.env-notice {
  border-bottom: 1px solid var(--line);
  background: #fafafa;
}

.env-notice-inner {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 0 1.15rem;
}

.env-badge {
  flex: 0 0 auto;
  margin-top: 0.15rem;
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--line-strong);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  background: #fff;
}

.env-copy {
  min-width: 0;
}

.env-lead {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text);
}

.env-detail {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--text-meta);
}

@media (max-width: 560px) {
  .env-notice-inner {
    flex-direction: column;
    gap: 0.6rem;
  }
}

/* Hero */
.hero {
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--text-meta);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text);
}

.lede {
  margin: 0 0 1.75rem;
  font-size: 1.02rem;
  color: var(--text-body);
  max-width: 36em;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.2rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 1px solid var(--line-strong);
  transition: background 0.15s, color 0.15s;
}

.btn-primary {
  background: var(--text);
  color: #fff;
}

.btn-primary:hover {
  background: #333;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
}

.btn-ghost:hover {
  background: var(--bg-muted);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text-meta);
  font-size: 0.72rem;
}

.hero-meta li {
  position: relative;
}

.hero-meta li:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -0.7rem;
  top: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-meta);
  transform: translateY(-50%);
}

/* Sections */
.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.band {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.band-muted {
  background: var(--bg-muted);
}

.band-dark {
  background: var(--bg-dark);
  color: #f2f2f2;
}

.band-dark .eyebrow {
  color: #9a9a9a;
}

.band-dark h2 {
  color: #fff;
}

.section-head {
  margin-bottom: 2.5rem;
  max-width: 40em;
}

.section-head.light h2 {
  color: #fff;
}

.section-title,
.section-head h2,
.cta h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--text);
}

.section-sub {
  margin: 0.75rem 0 0;
  color: var(--text-meta);
  font-size: 0.95rem;
}

.split-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 720px) {
  .split-2 {
    grid-template-columns: 1fr;
  }
}

.prose p {
  margin: 0 0 1rem;
}

.prose .note {
  color: var(--text-meta);
  font-size: 0.8rem;
}

/* Flow */
.flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 0 0 2.5rem;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  background: var(--line);
}

@media (max-width: 800px) {
  .flow {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .flow {
    grid-template-columns: 1fr;
  }
}

.flow-step {
  background: var(--bg);
  padding: 1.35rem 1.2rem 1.5rem;
}

.flow-num {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--text-meta);
  font-size: 0.75rem;
}

.flow-step h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.flow-step p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-meta);
  line-height: 1.55;
}

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

@media (max-width: 800px) {
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

.feature {
  background: var(--bg);
  padding: 1.5rem 1.35rem 1.75rem;
}

.feature h3 {
  margin: 0 0 0.6rem;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
}

.feature p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-meta);
  line-height: 1.6;
}

/* Placeholders */
.ph {
  margin: 0;
}

.ph-frame {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  background:
    linear-gradient(135deg, transparent 49.5%, var(--ph-border) 49.5%, var(--ph-border) 50.5%, transparent 50.5%),
    linear-gradient(45deg, transparent 49.5%, var(--ph-border) 49.5%, var(--ph-border) 50.5%, transparent 50.5%),
    var(--ph-bg);
  background-size: 24px 24px, 24px 24px, auto;
  border: 1px dashed var(--ph-border);
  color: var(--text-meta);
  text-align: center;
  padding: 1.5rem;
}

/* When real images are dropped in, replace .ph-frame contents with <img class="fill"> */
.ph-frame img.fill,
.ph img.fill {
  width: 100%;
  height: 100%;
  /* contain, not cover: a storyboard page must never be cropped */
  object-fit: contain;
  display: block;
}

/* A frame holding a real image drops the placeholder scaffolding. */
.ph-frame:has(img.fill) {
  padding: 0;
  gap: 0;
  border: 1px solid var(--rule, #e5e5e5);
  background: #fff;
}

.ratio-16x9 {
  aspect-ratio: 16 / 9;
}

/* Let the image set its own height — for wide crops (a single storyboard row)
   that a fixed ratio would letterbox into illegibility. */
.ratio-free {
  aspect-ratio: auto;
}

.ratio-free img.fill {
  height: auto;
}

.ratio-4x3 {
  aspect-ratio: 4 / 3;
}

.ratio-21x9 {
  aspect-ratio: 21 / 9;
}

.ph-label {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  background: rgba(255, 255, 255, 0.85);
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--line);
}

.ph-hint {
  font-size: 0.8rem;
  max-width: 18em;
  line-height: 1.45;
  background: rgba(255, 255, 255, 0.75);
  padding: 0.25rem 0.5rem;
}

.ph figcaption {
  margin-top: 0.5rem;
  color: var(--text-meta);
  font-size: 0.72rem;
}

.ph-hero .ph-frame,
.ph-main .ph-frame,
.ph-wide .ph-frame {
  border-style: solid;
}

.ph-main,
.ph-wide {
  margin-top: 0.5rem;
}

/* Flow SVG illustration */
.flow-figure {
  margin: 0.5rem 0 0;
}

.flow-svg-wrap {
  border: 1px solid var(--line);
  background: var(--bg-muted);
  overflow: hidden;
}

.flow-svg {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.flow-figure figcaption {
  margin-top: 0.5rem;
  font-size: 0.72rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}

@media (max-width: 720px) {
  .gallery,
  .pair {
    grid-template-columns: 1fr;
  }
}

/* Spec */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem 2rem;
  margin: 0;
}

@media (max-width: 720px) {
  .spec-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.spec-grid div {
  border-top: 1px solid #333;
  padding-top: 0.85rem;
}

.spec-grid dt {
  margin: 0 0 0.35rem;
  color: #9a9a9a;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.spec-grid dd {
  margin: 0;
  color: #f2f2f2;
  font-size: 0.88rem;
  line-height: 1.45;
}

/* Use */
.use-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 2.5rem;
}

@media (max-width: 800px) {
  .use-grid {
    grid-template-columns: 1fr;
  }
}

.checklist {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}

.checklist li::before {
  content: "→";
  position: absolute;
  left: 0;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-meta);
}

.code-block {
  background: var(--bg-dark);
  color: #e8e8e8;
  padding: 1.25rem 1.35rem 1.5rem;
  border: 1px solid #222;
}

.code-label {
  margin: 0 0 0.85rem;
  color: #888;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.code-block pre {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-all;
}

.stack-ph {
  margin-top: 0.5rem;
}

/* CTA */
.cta {
  padding: clamp(4rem, 10vw, 7rem) 0;
  border-top: 1px solid var(--line);
  text-align: center;
}

.cta-inner {
  max-width: 36rem;
}

.cta h2 {
  margin-bottom: 1rem;
}

.cta .mono {
  display: block;
  margin-bottom: 1.75rem;
  color: var(--text-meta);
}

.cta .hero-cta {
  justify-content: center;
  margin-bottom: 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.25rem 0 2rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  font-size: 0.75rem;
  color: var(--text-meta);
}
