:root {
  --paper: #f4f5ef;
  --surface: #ffffff;
  --ink: #171918;
  --muted: #626761;
  --line: #cfd2c9;
  --night: #171b19;
  --lime: #d9ff58;
  --coral: #ff624d;
  --cyan: #54c8d7;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.zoom-media,
.zoom-host { position: relative; }
.zoomable-image { cursor: zoom-in; }
.image-zoom-button {
  position: absolute;
  z-index: 8;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 2px;
  background: rgba(13,16,15,.82);
  color: white;
  cursor: zoom-in;
  backdrop-filter: blur(8px);
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}
.image-zoom-button svg { width: 17px; height: 17px; }
.image-zoom-button:hover,
.image-zoom-button:focus-visible { border-color: var(--lime); background: var(--lime); color: #101411; outline: 0; }
.compare > .image-zoom-button { top: 62px; right: 18px; }

.image-lightbox {
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  margin: 0;
  padding: 54px 28px 24px;
  border: 0;
  background: rgba(8,10,9,.96);
  color: white;
  overflow: hidden;
}
.image-lightbox::backdrop { background: rgba(8,10,9,.92); }
.image-lightbox[open] { display: grid; place-items: center; }
.lightbox-content {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  justify-items: center;
  width: 100%;
  height: 100%;
  min-height: 0;
}
.lightbox-content img {
  width: auto;
  height: auto;
  max-width: min(100%, 1500px);
  max-height: calc(100vh - 116px);
  object-fit: contain;
  box-shadow: 0 18px 60px rgba(0,0,0,.42);
}
.lightbox-content p {
  min-height: 24px;
  margin: 12px 0 0;
  color: #c6ccc8;
  font-size: 13px;
  text-align: center;
}
.lightbox-close {
  position: fixed;
  z-index: 2;
  top: 18px;
  right: 20px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid #555b57;
  border-radius: 2px;
  background: #111513;
  color: white;
  cursor: pointer;
}
.lightbox-close svg { width: 20px; height: 20px; }
.lightbox-close:hover,
.lightbox-close:focus-visible { border-color: var(--lime); color: var(--lime); outline: 0; }
body.lightbox-open { overflow: hidden; }

.progress {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: 3px;
  background: transparent;
}
.progress span { display: block; width: 0; height: 100%; background: var(--coral); }

.site-header {
  position: sticky;
  z-index: 90;
  top: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 66px;
  padding: 0 max(24px, calc((100vw - var(--max)) / 2));
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.brand { display: inline-flex; gap: 10px; align-items: center; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; }
.brand-mark { display: grid; place-items: center; width: 28px; height: 28px; background: var(--ink); color: var(--lime); font-family: Georgia, serif; font-size: 17px; }
.header-nav { display: flex; justify-content: center; gap: 32px; font-size: 13px; color: var(--muted); }
.header-nav a { position: relative; }
.header-nav a::after { content: ""; position: absolute; right: 0; bottom: -6px; left: 0; height: 2px; background: var(--ink); transform: scaleX(0); transition: transform .2s ease; }
.header-nav a:hover::after, .header-nav a.is-active::after { transform: scaleX(1); }
.open-gemini { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; }
.open-gemini svg { width: 18px; height: 18px; }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, .6fr);
  align-items: end;
  min-height: min(760px, calc(100vh - 66px));
  max-width: var(--max);
  margin: auto;
  padding: clamp(80px, 12vh, 150px) 24px 90px;
  overflow: hidden;
}
.hero::before {
  content: "GEM";
  position: absolute;
  top: 4%;
  right: -2%;
  color: transparent;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(180px, 28vw, 420px);
  line-height: .8;
  -webkit-text-stroke: 1px #d8dad2;
  pointer-events: none;
}
.hero-copy { position: relative; z-index: 1; min-width: 0; max-width: 800px; }
.eyebrow { margin: 0 0 18px; font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.hero h1 { margin: 0; font-size: clamp(64px, 9vw, 132px); line-height: .88; letter-spacing: 0; font-weight: 800; }
.hero h1 span { color: var(--coral); font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 400; }
.hero-lead { max-width: 680px; margin: 38px 0 30px; overflow-wrap: anywhere; font-size: clamp(20px, 2vw, 29px); line-height: 1.5; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-meta span { padding: 8px 12px; border: 1px solid var(--ink); font-size: 12px; font-weight: 700; }
.hero-principle { position: relative; z-index: 1; align-self: center; border-left: 1px solid var(--ink); padding: 20px 0 20px 38px; }
.principle-index { color: var(--coral); font-family: Georgia, serif; font-size: 16px; }
.hero-principle p { margin: 28px 0 0; font-family: Georgia, "Songti SC", serif; font-size: clamp(28px, 3vw, 44px); line-height: 1.35; }
.hero-route { position: absolute; z-index: 2; right: 24px; bottom: 24px; left: 24px; display: flex; align-items: center; gap: 16px; border-top: 1px solid var(--line); padding-top: 16px; }
.hero-route div { display: flex; align-items: center; gap: 9px; font-size: 12px; }
.hero-route b { color: var(--coral); font-family: Georgia, serif; font-size: 14px; }
.hero-route i { flex: 1; height: 1px; background: var(--line); }

.band { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.definition {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 44px;
  align-items: center;
  padding: 64px max(24px, calc((100vw - var(--max)) / 2));
  background: var(--lime);
}
.section-number { align-self: stretch; border-right: 1px solid var(--ink); font-family: Georgia, serif; font-size: 18px; }
.definition h2, .quick-reference h2 { max-width: 800px; margin: 0; font-size: clamp(30px, 4vw, 52px); line-height: 1.25; letter-spacing: 0; }
.definition-copy > p:last-child { margin: 16px 0 0; }
.split-pill { display: grid; min-width: 220px; border: 1px solid var(--ink); background: var(--paper); }
.split-pill span { padding: 13px 16px; font-size: 13px; }
.split-pill span + span { border-top: 1px solid var(--ink); }
.split-pill b { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 8px; background: var(--ink); color: white; }

.section { padding: 110px max(24px, calc((100vw - var(--max)) / 2)); scroll-margin-top: 65px; }
.section-heading { display: grid; grid-template-columns: 1fr minmax(260px, 410px); align-items: end; gap: 40px; margin-bottom: 56px; }
.section-heading h2, .create-intro h2 { margin: 0; font-size: clamp(40px, 5vw, 70px); line-height: 1.02; letter-spacing: 0; }
.section-heading > p { margin: 0; color: var(--muted); font-size: 17px; }

.steps-layout { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 48px; align-items: start; }
.steps { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.steps li { display: grid; grid-template-columns: 42px 1fr; gap: 16px; padding: 24px 6px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .2s ease, padding .2s ease; }
.steps li:hover, .steps li.is-active { padding-right: 14px; padding-left: 14px; background: var(--surface); }
.steps li > span { color: var(--coral); font-family: Georgia, serif; }
.steps b { font-size: 17px; }
.steps p { margin: 5px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.annotated-figure { margin: 0; }
.image-stage { position: relative; overflow: hidden; border: 1px solid var(--ink); background: #111; }
.image-stage img { width: 100%; }
.callout { position: absolute; left: var(--x); top: var(--y); display: grid; place-items: center; width: 19px; height: 19px; padding: 0; transform: translate(-50%, -50%); border: 1px solid white; border-radius: 50%; background: var(--coral); color: white; box-shadow: 0 0 0 2px rgba(255, 98, 77, .25); font-size: 9px; font-weight: 800; cursor: default; transition: transform .2s ease, background .2s ease; }
.callout.is-active { transform: translate(-50%, -50%) scale(1.08); background: var(--lime); color: var(--ink); }
.annotated-figure figcaption { display: flex; flex-wrap: wrap; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.annotated-figure figcaption b { display: inline-grid; place-items: center; width: 21px; height: 21px; margin-right: 6px; background: var(--ink); color: white; }
.simple-rule { display: grid; grid-template-columns: auto 1fr minmax(260px, 440px); align-items: center; gap: 24px; margin: 88px 0 36px; padding: 30px 34px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.rule-icon { display: grid; place-items: center; width: 52px; height: 52px; background: var(--lime); }
.rule-icon svg { width: 25px; }
.simple-rule .eyebrow { margin-bottom: 4px; }
.simple-rule h3 { margin: 0; font-size: 25px; }
.simple-rule > p { margin: 0; color: var(--muted); }
.result-figure { max-width: 1060px; margin-left: auto; }
.setup-figures { display: grid; gap: 34px; min-width: 0; }
.setup-figures .annotated-figure + .annotated-figure { padding-top: 34px; border-top: 1px solid var(--line); }
.preset-banner { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; margin-bottom: 44px; padding: 28px 32px; border: 1px solid var(--ink); background: var(--surface); }
.preset-banner .eyebrow { margin-bottom: 4px; color: var(--coral); }
.preset-banner h3 { margin: 0 0 6px; font-size: 25px; }
.preset-banner p { margin: 0; color: var(--muted); }
.preset-copy { margin: 0; white-space: nowrap; }

.section-retry { background: var(--night); color: white; }
.light-heading > p { color: #aab0ac; }
.regenerate-figure { margin: 0; }
.regenerate-stage { position: relative; overflow: hidden; border: 1px solid #4b514e; }
.regenerate-stage img { width: 100%; }
.regenerate-figure figcaption { padding: 16px 0; border-bottom: 1px solid #4b514e; color: #d7dbd8; font-size: 15px; }
.regenerate-figure figcaption b { color: var(--lime); }
.field-note { display: grid; grid-template-columns: 180px 1fr; gap: 12px 34px; margin-top: 34px; padding: 28px 32px; background: var(--lime); color: var(--ink); }
.field-note > span { grid-row: 1 / 3; font-size: 12px; font-weight: 800; letter-spacing: .1em; }
.field-note p { margin: 0; font-size: 19px; }
.field-note small { color: #51564f; }

.case-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.result-tabs { display: inline-flex; border: 1px solid var(--ink); }
.result-tabs button { min-width: 96px; padding: 10px 16px; border: 0; background: transparent; cursor: pointer; }
.result-tabs button + button { border-left: 1px solid var(--ink); }
.result-tabs button.is-active { background: var(--ink); color: white; }
.case-legend { display: flex; gap: 20px; color: var(--muted); font-size: 12px; }
.compare { --position: 50%; position: relative; aspect-ratio: 1 / 1; max-height: min(78vh, 900px); margin: auto; overflow: hidden; border: 1px solid var(--ink); background: #111; }
.compare-base, .compare-overlay { width: 100%; height: 100%; object-fit: cover; }
.compare-overlay { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--position)); }
.compare-divider { position: absolute; z-index: 3; top: 0; bottom: 0; left: var(--position); width: 2px; transform: translateX(-1px); background: white; pointer-events: none; }
.compare-divider span { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 48px; height: 48px; transform: translate(-50%, -50%); border: 2px solid white; border-radius: 50%; background: var(--ink); color: white; }
.compare-divider svg { width: 24px; }
.compare input { position: absolute; z-index: 4; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare-tag { position: absolute; z-index: 5; top: 18px; padding: 7px 11px; background: var(--ink); color: white; font-size: 11px; font-weight: 800; pointer-events: none; }
.compare-tag.before { left: 18px; }
.compare-tag.after { right: 18px; background: var(--lime); color: var(--ink); }
.case-observation { display: grid; grid-template-columns: 100px 1fr minmax(260px, 390px); gap: 30px; align-items: start; padding: 28px 0; border-bottom: 1px solid var(--ink); }
.case-observation > span { color: var(--coral); font-size: 12px; font-weight: 800; }
.case-observation p { margin: 0; font-size: 18px; }
.case-observation aside { padding-left: 20px; border-left: 1px solid var(--line); color: var(--muted); font-size: 13px; }

.section-dual { background: #f0ece5; }
.dual-formula { display: grid; grid-template-columns: minmax(0, .8fr) 54px minmax(220px, .7fr) 54px minmax(0, 1fr); align-items: center; gap: 18px; }
.dual-formula figure { min-width: 0; margin: 0; }
.dual-formula figure > span { display: block; margin-bottom: 10px; color: var(--coral); font-family: Georgia, serif; font-size: 11px; letter-spacing: .08em; }
.dual-formula figure img { width: 100%; aspect-ratio: 1 / 1; border: 1px solid var(--ink); object-fit: cover; background: white; }
.dual-formula figcaption { padding: 11px 0; border-bottom: 1px solid var(--ink); font-size: 12px; }
.formula-sign { text-align: center; font-family: Georgia, serif; font-size: 38px; }
.formula-sign.arrow { color: var(--coral); }
.dual-output img { box-shadow: 14px 14px 0 var(--lime); }
.dual-use-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 70px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.dual-use-grid article { min-height: 230px; padding: 26px; }
.dual-use-grid article + article { border-left: 1px solid var(--ink); }
.dual-use-grid span { color: var(--coral); font-family: Georgia, serif; }
.dual-use-grid h3 { margin: 70px 0 8px; font-size: 20px; }
.dual-use-grid p { margin: 0; color: var(--muted); font-size: 13px; }
.dual-preset { margin: 44px 0 0; background: var(--lime); }
.dual-note { margin-top: 12px; }
.dual-presets { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 44px; }
.preset-version { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 28px 30px; border: 1px solid var(--line); background: var(--surface); }
.preset-version .eyebrow { margin-bottom: 4px; color: var(--lime); }
.preset-version .eyebrow span { display: inline-block; margin-left: 7px; padding: 2px 6px; background: var(--lime); color: #101411; letter-spacing: 0; }
.preset-version h3 { margin: 0 0 5px; font-size: 24px; }
.preset-version p { margin: 0; color: var(--muted); font-size: 13px; }
.preset-version.is-recommended { border-color: var(--lime); }

.prompt-case-layout { display: grid; grid-template-columns: minmax(320px, .8fr) minmax(0, 1.2fr); gap: 52px; align-items: stretch; }
.prompt-reference { margin: 0; }
.prompt-reference > span, .prompt-output-head > span { display: block; margin-bottom: 10px; color: var(--lime); font-family: Georgia, serif; font-size: 11px; letter-spacing: .08em; }
.prompt-reference img { width: 100%; aspect-ratio: 1 / 1; border: 1px solid var(--line); object-fit: cover; }
.prompt-reference figcaption { padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.prompt-output { display: flex; flex-direction: column; padding: 30px; border: 1px solid var(--line); background: var(--surface); }
.prompt-output-head b { display: block; font-size: 30px; }
.prompt-fields { display: flex; flex-wrap: wrap; gap: 7px; margin: 26px 0; }
.prompt-fields span { padding: 6px 9px; border: 1px solid var(--line); color: #c8ceca; font-size: 11px; }
.prompt-sample { margin-top: auto; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.prompt-sample p { margin: 0 0 13px; }
.prompt-sample p:last-child { margin-bottom: 0; }
.prompt-sample b { color: var(--ink); }
.prompt-use-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 58px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.prompt-use-grid article { min-height: 210px; padding: 25px; }
.prompt-use-grid article + article { border-left: 1px solid var(--line); }
.prompt-use-grid span { color: var(--lime); font-family: Georgia, serif; }
.prompt-use-grid h3 { margin: 62px 0 7px; font-size: 20px; }
.prompt-use-grid p { margin: 0; color: var(--muted); font-size: 13px; }
.prompt-preset { margin-top: 44px; }

.section-rules { background: var(--surface); }
.rule-lines { border-top: 1px solid var(--ink); }
.rule-lines article { display: grid; grid-template-columns: 180px 1fr 1fr; gap: 30px; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--line); }
.rule-lines span { color: var(--coral); font-family: Georgia, serif; font-size: 13px; }
.rule-lines h3 { margin: 0; font-size: 24px; }
.rule-lines p { margin: 0; color: var(--muted); }
.full-prompt { margin-top: 40px; border: 1px solid var(--ink); }
.full-prompt summary { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; cursor: pointer; font-weight: 700; list-style: none; }
.full-prompt summary::-webkit-details-marker { display: none; }
.full-prompt summary svg { width: 21px; transition: transform .2s ease; }
.full-prompt[open] summary svg { transform: rotate(180deg); }
.prompt-body { padding: 26px 24px 30px; border-top: 1px solid var(--ink); columns: 2; column-gap: 54px; color: #3f443f; }
.prompt-body h4 { break-after: avoid; margin: 24px 0 4px; color: var(--ink); }
.prompt-body p { margin: 0 0 15px; }

.section-create { background: var(--cyan); }
.create-intro { display: grid; grid-template-columns: 1fr minmax(280px, 440px); gap: 40px; align-items: end; }
.create-intro .eyebrow { grid-column: 1 / -1; margin-bottom: -12px; }
.create-intro > p:last-child { margin: 0; font-size: 18px; }
.create-flow { display: grid; grid-template-columns: repeat(4, 1fr); margin: 70px 0 40px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.create-flow article { min-height: 220px; padding: 24px; }
.create-flow article + article { border-left: 1px solid var(--ink); }
.create-flow span { font-family: Georgia, serif; color: #155a62; }
.create-flow h3 { margin: 60px 0 8px; font-size: 19px; }
.create-flow p { margin: 0; font-size: 13px; }
.creator-tool { display: grid; grid-template-columns: .8fr 1.2fr; border: 1px solid var(--ink); background: var(--paper); }
.creator-copy { display: flex; flex-direction: column; align-items: flex-start; padding: 42px; }
.tool-label { color: var(--coral); font-family: Georgia, serif; font-size: 12px; }
.creator-copy h3 { margin: 56px 0 10px; font-size: 34px; }
.creator-copy p { color: var(--muted); }
.copy-button { display: inline-flex; align-items: center; gap: 10px; margin-top: auto; padding: 13px 18px; border: 1px solid var(--ink); border-radius: 0; background: var(--ink); color: white; cursor: pointer; transition: background .2s ease, color .2s ease; }
.copy-button:hover { background: var(--lime); color: var(--ink); }
.copy-button svg { width: 20px; height: 20px; }
.copy-status { min-height: 22px; margin: 8px 0 0; font-size: 12px; }
.creator-tool pre { max-height: 440px; margin: 0; padding: 38px; overflow: auto; border-left: 1px solid var(--ink); white-space: pre-wrap; color: #d8ddd9; background: var(--night); font-family: "Microsoft YaHei UI", sans-serif; font-size: 13px; line-height: 1.8; }
.editor-figure { margin-top: 56px; }

.quick-reference { display: grid; grid-template-columns: 120px .7fr 1fr; gap: 44px; padding: 70px max(24px, calc((100vw - var(--max)) / 2)); background: var(--coral); }
.quick-reference ol { margin: 0; padding: 0; list-style: none; counter-reset: quick; }
.quick-reference li { padding: 12px 0; border-bottom: 1px solid rgba(23,25,24,.35); }
.quick-reference li:first-child { border-top: 1px solid rgba(23,25,24,.35); }
footer { display: flex; justify-content: space-between; padding: 28px max(24px, calc((100vw - var(--max)) / 2)); background: var(--night); color: white; font-size: 11px; letter-spacing: .08em; }

@media (max-width: 900px) {
  .header-nav { display: none; }
  .site-header { grid-template-columns: 1fr auto; padding: 0 18px; }
  .hero { grid-template-columns: 1fr; min-height: 760px; padding: 80px 20px 120px; }
  .hero-principle { display: none; }
  .hero-route { flex-wrap: wrap; }
  .hero-route i { min-width: 30px; }
  .definition, .quick-reference { grid-template-columns: 64px 1fr; gap: 24px; padding: 48px 20px; }
  .definition .split-pill, .quick-reference ol { grid-column: 2; }
  .section { padding: 82px 20px; }
  .section-heading, .create-intro { grid-template-columns: 1fr; gap: 20px; }
  .steps-layout { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(odd) { border-right: 1px solid var(--line); }
  .simple-rule { grid-template-columns: auto 1fr; }
  .simple-rule > p { grid-column: 2; }
  .case-observation { grid-template-columns: 80px 1fr; }
  .case-observation aside { grid-column: 2; }
  .create-flow { grid-template-columns: 1fr 1fr; }
  .create-flow article:nth-child(3) { border-left: 0; border-top: 1px solid var(--ink); }
  .create-flow article:nth-child(4) { border-top: 1px solid var(--ink); }
  .creator-tool { grid-template-columns: 1fr; }
  .creator-tool pre { border-top: 1px solid var(--ink); border-left: 0; }
  .dual-formula { grid-template-columns: 1fr 38px 1fr; }
  .dual-formula .arrow { grid-column: 1 / -1; transform: rotate(90deg); }
  .dual-output { grid-column: 1 / -1; width: min(600px, 100%); margin: 0 auto !important; }
}

@media (max-width: 620px) {
  .brand > span:last-child { display: none; }
  .open-gemini { gap: 0; font-size: 0; }
  .open-gemini svg { width: 21px; height: 21px; }
  .hero { min-height: 690px; }
  .hero h1 { font-size: 58px; }
  .hero h1 span { display: block; margin-bottom: 10px; }
  .hero-lead { font-size: 19px; }
  .hero-meta span { font-size: 10px; }
  .hero-route { align-items: flex-start; gap: 8px; }
  .hero-route div { width: 100%; }
  .hero-route i { display: none; }
  .definition, .quick-reference { grid-template-columns: 1fr; }
  .section-number { border-right: 0; border-bottom: 1px solid var(--ink); padding-bottom: 10px; }
  .definition .split-pill, .quick-reference ol { grid-column: 1; }
  .definition h2, .quick-reference h2 { font-size: 31px; }
  .section-heading h2, .create-intro h2 { font-size: 42px; }
  .steps { grid-template-columns: 1fr; }
  .steps li:nth-child(odd) { border-right: 0; }
  .simple-rule { grid-template-columns: 1fr; margin-top: 56px; padding: 24px 0; }
  .simple-rule > p { grid-column: 1; }
  .field-note { grid-template-columns: 1fr; padding: 24px; }
  .field-note > span { grid-row: auto; }
  .case-toolbar { align-items: flex-end; gap: 12px; }
  .case-legend { display: grid; gap: 2px; text-align: right; }
  .compare-divider span { width: 40px; height: 40px; }
  .case-observation { grid-template-columns: 1fr; gap: 12px; }
  .case-observation aside { grid-column: 1; padding-top: 12px; padding-left: 0; border-top: 1px solid var(--line); border-left: 0; }
  .rule-lines article { grid-template-columns: 1fr; gap: 5px; padding: 22px 0; }
  .prompt-body { columns: 1; }
  .create-flow { grid-template-columns: 1fr; }
  .create-flow article { min-height: 180px; }
  .create-flow article + article { border-top: 1px solid var(--ink); border-left: 0; }
  .create-flow h3 { margin-top: 35px; }
  .creator-copy { min-height: 370px; padding: 28px; }
  .creator-tool pre { max-height: 360px; padding: 24px; }
  .annotated-figure figcaption { gap: 10px; }
  .annotated-figure figcaption span { width: 100%; }
  .callout { width: 16px; height: 16px; font-size: 8px; }
  .preset-banner { grid-template-columns: 1fr; padding: 24px; }
  .preset-copy { width: 100%; justify-content: center; white-space: normal; }
  .dual-formula { grid-template-columns: 1fr; gap: 18px; }
  .dual-formula .formula-sign { transform: none; }
  .dual-formula .arrow { grid-column: 1; transform: rotate(90deg); }
  .dual-output { grid-column: 1; }
  .dual-use-grid { grid-template-columns: 1fr; }
  .dual-use-grid article { min-height: 170px; }
  .dual-use-grid article + article { border-top: 1px solid var(--ink); border-left: 0; }
  .dual-use-grid h3 { margin-top: 36px; }
  .dual-presets { grid-template-columns: 1fr; }
  .preset-version { grid-template-columns: 1fr; padding: 24px; }
  .prompt-case-layout { grid-template-columns: 1fr; gap: 32px; }
  .prompt-use-grid { grid-template-columns: 1fr; }
  .prompt-use-grid article { min-height: 170px; }
  .prompt-use-grid article + article { border-top: 1px solid var(--line); border-left: 0; }
  .prompt-use-grid h3 { margin-top: 36px; }
  .prompt-output { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* Unified dark editorial theme */
:root {
  --paper: #121715;
  --surface: #171d1a;
  --ink: #f4f6f2;
  --muted: #a8afaa;
  --line: #3b4440;
  --night: #121715;
  --lime: #d8ff45;
  --coral: #d8ff45;
  --cyan: #121715;
  --max: 1240px;
}

body { background: var(--paper); color: var(--ink); }
.section-heading > *, .create-intro > *, .definition > *, .quick-reference > * { min-width: 0; }
.section-heading h2, .create-intro h2, .definition h2, .quick-reference h2 { overflow-wrap: anywhere; word-break: break-word; }
.progress span { background: var(--lime); }
.site-header {
  min-height: 62px;
  background: rgba(18, 23, 21, .94);
  border-color: var(--line);
}
.brand-mark { background: var(--lime); color: #101411; }
.header-nav { color: #aeb5b0; }
.header-nav a::after { background: var(--lime); }
.open-gemini { color: var(--ink); }

.hero {
  grid-template-columns: minmax(0, 1.4fr) minmax(250px, .6fr);
  min-height: min(690px, calc(100vh - 62px));
  padding-top: clamp(90px, 13vh, 140px);
  padding-bottom: 88px;
}
.hero::before { display: none; }
.hero h1 { max-width: 840px; font-size: clamp(62px, 8vw, 112px); line-height: .96; }
.hero h1 span { color: var(--ink); font-family: inherit; font-style: normal; font-weight: 800; }
.hero-lead { color: #c5cbc7; font-size: clamp(19px, 1.7vw, 25px); }
.hero-meta span { border-color: var(--line); color: #c7cdc9; }
.hero-principle { border-color: var(--line); }
.principle-index, .hero-route b, .eyebrow { color: var(--lime); }
.hero-principle p { color: var(--ink); font-family: inherit; font-size: clamp(26px, 2.6vw, 38px); font-weight: 700; }
.hero-route { border-color: var(--line); color: #b8bfba; }
.hero-route i { background: var(--line); }

.band { border-color: var(--line); }
.definition, .quick-reference {
  background: var(--surface);
  border-color: var(--line);
}
.section-number { border-color: var(--line); color: var(--lime); }
.definition-copy > p:last-child { color: var(--muted); }
.split-pill { border-color: var(--line); background: var(--paper); }
.split-pill span + span { border-color: var(--line); }
.split-pill b { background: var(--lime); color: #101411; }

.section { padding-top: 105px; padding-bottom: 105px; border-bottom: 1px solid var(--line); }
.section-use, .section-case, .section-dual, .section-rules, .section-create, .section-retry { background: var(--paper); color: var(--ink); }
.section-heading { margin-bottom: 50px; }
.section-heading h2, .create-intro h2 { max-width: 820px; font-size: clamp(42px, 5vw, 68px); }
.section-heading > p, .create-intro > p:last-child, .light-heading > p { color: var(--muted); }

.preset-banner {
  border-color: var(--line);
  background: var(--surface);
}
.preset-banner .eyebrow { color: var(--lime); }
.preset-banner p { color: var(--muted); }
.copy-button {
  border-color: var(--lime);
  background: var(--lime);
  color: #101411;
}
.copy-button:hover { background: transparent; color: var(--lime); }

.steps, .steps li, .annotated-figure figcaption, .simple-rule, .image-stage { border-color: var(--line); }
.steps li:hover, .steps li.is-active { background: var(--surface); }
.steps li > span { color: var(--lime); }
.steps p, .annotated-figure figcaption, .simple-rule > p { color: var(--muted); }
.annotated-figure figcaption b { background: var(--lime); color: #101411; }
.rule-icon { background: var(--lime); color: #101411; }
.callout { background: var(--lime); color: #101411; border-color: #101411; box-shadow: 0 0 0 2px rgba(216,255,69,.22); }
.callout.is-active { background: white; color: #101411; }

.section-retry { border-top: 0; }
.regenerate-stage { border-color: var(--line); background: #0d100f; }
.regenerate-figure figcaption { color: #d7dcd8; border-color: var(--line); }
.field-note {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}
.field-note > span { color: var(--lime); }
.field-note small { color: var(--muted); }

.result-tabs { border-color: var(--line); }
.result-tabs button { color: var(--ink); }
.result-tabs button + button { border-color: var(--line); }
.result-tabs button.is-active { background: var(--lime); color: #101411; }
.case-legend { color: var(--muted); }
.compare { border-color: var(--line); }
.compare-divider span { border-color: var(--lime); background: #101411; color: var(--lime); }
.compare-tag { background: #101411; color: white; }
.compare-tag.after { background: var(--lime); color: #101411; }
.case-observation { border-color: var(--line); }
.case-observation > span { color: var(--lime); }
.case-observation aside { border-color: var(--line); color: var(--muted); }

.dual-formula figure > span, .dual-use-grid span { color: var(--lime); }
.dual-formula figure img, .dual-formula figcaption, .dual-use-grid, .dual-use-grid article + article { border-color: var(--line); }
.formula-sign.arrow { color: var(--lime); }
.dual-use-grid p { color: var(--muted); }
.dual-output img { box-shadow: none; }
.dual-preset { background: var(--surface); }

.rule-lines, .rule-lines article, .full-prompt { border-color: var(--line); }
.rule-lines span { color: var(--lime); }
.rule-lines p { color: var(--muted); }
.full-prompt summary { color: var(--ink); }
.prompt-body { border-color: var(--line); background: var(--surface); color: #c0c6c2; }
.prompt-body h4 { color: var(--ink); }

.create-flow { border-color: var(--line); }
.create-flow article + article { border-color: var(--line); }
.create-flow span, .tool-label { color: var(--lime); }
.create-flow p, .creator-copy p { color: var(--muted); }
.creator-tool { border-color: var(--line); background: var(--surface); }
.creator-tool pre { border-color: var(--line); background: #0d100f; color: #cbd0cc; }
.quick-reference li { border-color: var(--line); }
.quick-reference li:first-child { border-color: var(--line); }
footer { border-top: 1px solid var(--line); background: #0d100f; color: #aeb5b0; }

@media (max-width: 900px) {
  .section { padding-top: 78px; padding-bottom: 78px; }
  .create-flow article:nth-child(3), .create-flow article:nth-child(4) { border-color: var(--line); }
}

@media (max-width: 620px) {
  .hero { min-height: 720px; padding-bottom: 150px; }
  .hero h1 { font-size: 54px; }
  .hero h1 span { margin-bottom: 0; }
  .section-heading h2, .create-intro h2 { font-size: 38px; line-height: 1.14; }
  .definition h2, .quick-reference h2 { font-size: 29px; line-height: 1.25; }
  .hero-lead { max-width: 100%; }
  .dual-use-grid article + article, .create-flow article + article { border-color: var(--line); }
}

/* Case library views */
[hidden] { display: none !important; }

.home-view {
  min-height: calc(100vh - 62px);
  max-width: var(--max);
  margin: 0 auto;
  padding: 78px 24px 96px;
}
.library-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
  gap: 70px;
  align-items: end;
  padding-bottom: 64px;
}
.library-intro .eyebrow { grid-column: 1 / -1; margin-bottom: -40px; }
.library-intro h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(56px, 7vw, 96px);
  line-height: .98;
  letter-spacing: 0;
}
.library-intro > p:last-child {
  max-width: 470px;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 18px;
}
.directory-heading {
  display: flex;
  justify-content: space-between;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
}
.case-directory {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.case-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 22px;
  transition: background .2s ease;
}
.case-card + .case-card { border-left: 1px solid var(--line); }
.case-card:hover,
.case-card:focus-visible { background: var(--surface); outline: 0; }
.case-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #0b0e0d;
}
.case-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,.12);
  pointer-events: none;
}
.case-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.case-card:hover .case-card-image { transform: scale(1.018); }
.case-card-copy { display: flex; flex: 1; flex-direction: column; padding-top: 22px; }
.case-card-index { color: var(--lime); font-family: Georgia, serif; font-size: 11px; }
.case-card h2 {
  margin: 28px 0 12px;
  max-width: 330px;
  font-size: clamp(24px, 2.2vw, 32px);
  line-height: 1.26;
}
.case-card p { margin: 0 0 30px; color: var(--muted); font-size: 13px; }
.case-card-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
}
.case-card-link svg { width: 18px; height: 18px; color: var(--lime); }
.guide-entry {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-top: 28px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.guide-entry b { margin-right: 10px; color: var(--ink); }
.guide-entry svg { width: 20px; min-width: 20px; color: var(--lime); }

.case-page-header {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr);
  gap: 70px;
  align-items: end;
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px 24px 68px;
  border-bottom: 1px solid var(--line);
}
.back-to-directory {
  grid-column: 1 / -1;
  width: max-content;
  color: var(--muted);
  font-size: 12px;
}
.back-to-directory:hover { color: var(--lime); }
.case-page-header .eyebrow { margin-bottom: 22px; }
.case-page-header h1 {
  margin: 0;
  max-width: 820px;
  overflow-wrap: anywhere;
  font-size: clamp(48px, 6vw, 82px);
  line-height: 1.06;
}
.case-page-header > p {
  max-width: 430px;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 16px;
}
.case-preset-slot {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 36px 24px 64px;
  border-bottom: 1px solid var(--line);
}
.case-preset-slot .preset-banner,
.case-preset-slot .dual-presets,
.case-preset-slot .prompt-preset,
.case-preset-slot .placement-prompts { margin: 0; }
.case-preset-slot + .section { padding-top: 48px; }
.case-route-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px 24px 74px;
  color: var(--muted);
  font-size: 12px;
}
.case-route-nav a:last-child { text-align: right; }
.case-route-nav a:hover { color: var(--lime); }
.case-route-nav span { color: var(--lime); font-family: Georgia, serif; }

body[data-route="case/dual-fusion"] #case-dual > .section-heading,
body[data-route="case/prompt-reverse"] #case-prompt > .section-heading { display: none; }

@media (max-width: 900px) {
  .home-view { padding: 58px 20px 76px; }
  .library-intro { grid-template-columns: 1fr; gap: 24px; padding-bottom: 48px; }
  .library-intro .eyebrow { grid-column: 1; margin-bottom: 6px; }
  .library-intro > p:last-child { max-width: 620px; }
  .case-directory { grid-template-columns: 1fr; }
  .case-card { display: grid; grid-template-columns: minmax(220px, .8fr) minmax(0, 1.2fr); gap: 24px; }
  .case-card + .case-card { border-top: 1px solid var(--line); border-left: 0; }
  .case-card-copy { padding-top: 0; }
  .case-card h2 { margin-top: 18px; }
  .case-page-header { grid-template-columns: 1fr; gap: 22px; padding: 56px 20px 52px; }
  .case-page-header > p { max-width: 620px; }
  .case-preset-slot { padding: 32px 20px 52px; }
  .case-preset-slot + .section { padding-top: 38px; }
}

@media (max-width: 620px) {
  .home-view { padding-top: 46px; }
  .library-intro h1 { font-size: 50px; line-height: 1.04; }
  .library-intro > p:last-child { font-size: 15px; }
  .directory-heading { padding-top: 12px; }
  .case-card { display: flex; padding: 18px 0 24px; }
  .case-card h2 { max-width: none; font-size: 27px; }
  .case-card p { margin-bottom: 24px; }
  .guide-entry { align-items: flex-start; }
  .case-page-header h1 { font-size: 42px; line-height: 1.14; }
  .case-preset-slot { padding: 24px 20px 42px; }
  .case-preset-slot + .section { padding-top: 32px; }
  .case-route-nav { grid-template-columns: 1fr 1fr; padding-bottom: 54px; }
  .case-route-nav span { display: none; }
}

/* Case directory and camera-angle case */
.case-directory { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.case-card + .case-card { border-left: 0; }
.case-card:nth-child(even) { border-left: 1px solid var(--line); }
.case-card:nth-child(n + 3) { border-top: 1px solid var(--line); }
.case-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 30px;
}
.case-card:last-child:nth-child(odd) .case-card-copy { padding-top: 0; }

.section-angle { background: var(--paper); color: var(--ink); }
.angle-request {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 28px;
  align-items: baseline;
  margin-bottom: 48px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.angle-request span { color: var(--lime); font-size: 11px; font-weight: 800; }
.angle-request p { margin: 0; font-size: 20px; }
.angle-output-section { margin-bottom: 58px; }
.angle-output-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  gap: 56px;
  align-items: end;
  margin-bottom: 30px;
}
.angle-output-heading h2 { margin: 0; font-size: clamp(34px, 4vw, 52px); line-height: 1.12; }
.angle-output-heading > p { margin: 0 0 5px; color: var(--muted); font-size: 14px; }
.angle-output-heading mark { padding: 2px 5px; background: var(--lime); color: #101411; }
.angle-parameter-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.angle-parameter-strip span { margin-right: auto; color: var(--lime); font-size: 11px; font-weight: 800; }
.angle-parameter-strip b { padding: 5px 9px; border: 1px solid var(--line); color: #d3d8d4; font-size: 11px; font-weight: 500; }
.angle-output-list { border-top: 1px solid var(--line); }
.angle-output-list article {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 42px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}
.angle-output-meta span { color: var(--lime); font-family: Georgia, serif; font-size: 11px; }
.angle-output-meta h3 { margin: 20px 0 0; font-size: 22px; }
.angle-output-text { max-width: 900px; color: #d4d9d5; font-size: 14px; }
.angle-output-text p { margin: 0 0 13px; }
.angle-output-text p:last-child { margin-bottom: 0; }
.angle-output-en { padding-left: 18px; border-left: 1px solid var(--lime); color: var(--muted); }
.angle-comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.angle-comparison figure { min-width: 0; margin: 0; }
.angle-comparison figure > span {
  display: block;
  margin-bottom: 10px;
  color: var(--lime);
  font-family: Georgia, serif;
  font-size: 11px;
  letter-spacing: .08em;
}
.angle-comparison img { width: 100%; aspect-ratio: 1084 / 1451; border: 1px solid var(--line); object-fit: cover; }
.angle-comparison figcaption {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.angle-change-note {
  display: grid;
  grid-template-columns: 110px 1fr minmax(280px, 390px);
  gap: 28px;
  align-items: start;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
.angle-change-note > span { color: var(--lime); font-size: 11px; font-weight: 800; }
.angle-change-note p { margin: 0; font-size: 18px; }
.angle-change-note aside { padding-left: 22px; border-left: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.angle-use-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 54px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.angle-use-grid article { min-height: 205px; padding: 24px; }
.angle-use-grid article + article { border-left: 1px solid var(--line); }
.angle-use-grid span { color: var(--lime); font-family: Georgia, serif; }
.angle-use-grid h3 { margin: 58px 0 8px; font-size: 20px; }
.angle-use-grid p { margin: 0; color: var(--muted); font-size: 13px; }

@media (max-width: 900px) {
  .case-directory { grid-template-columns: 1fr; }
  .case-card:nth-child(even) { border-left: 0; }
  .case-card + .case-card { border-top: 1px solid var(--line); }
  .case-card:last-child:nth-child(odd) { grid-column: auto; }
  .angle-change-note { grid-template-columns: 90px 1fr; }
  .angle-change-note aside { grid-column: 2; }
  .angle-output-heading { grid-template-columns: 1fr; gap: 20px; }
}

/* Product-placement case */
.section-placement { background: var(--paper); color: var(--ink); }
.placement-prompts { border-top: 1px solid var(--line); }
.placement-prompt-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .75fr);
  gap: 44px;
  align-items: end;
  padding: 26px 0 30px;
  border-bottom: 1px solid var(--line);
}
.placement-prompt-intro .eyebrow { grid-column: 1 / -1; margin: 0; }
.placement-prompt-intro h2 { margin: 0; font-size: clamp(32px, 4vw, 50px); line-height: 1.12; }
.placement-prompt-intro > p:last-child { margin: 0 0 4px; color: var(--muted); font-size: 14px; }
.placement-prompts > article {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 220px;
  gap: 28px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.placement-prompt-meta { display: flex; gap: 18px; align-items: baseline; }
.placement-prompt-meta span { color: var(--lime); font-family: Georgia, serif; font-size: 11px; }
.placement-prompt-meta h3 { margin: 0; font-size: 18px; }
.placement-prompts pre {
  min-width: 0;
  margin: 0;
  color: #d9ddd9;
  font: inherit;
  font-size: 13px;
  line-height: 1.75;
  white-space: pre-wrap;
}
.placement-prompts .copy-button { width: 100%; }
.placement-lead {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  gap: 54px;
  align-items: end;
  margin-bottom: 32px;
}
.placement-lead h2 { margin: 10px 0 0; font-size: clamp(34px, 4vw, 52px); line-height: 1.12; }
.placement-lead > p { margin: 0 0 6px; color: var(--muted); font-size: 14px; }
.placement-reference-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 82px; }
.placement-reference-grid figure,
.placement-step figure,
.placement-final figure { min-width: 0; margin: 0; }
.placement-reference-grid figure > span,
.placement-step figure > span {
  display: block;
  margin-bottom: 10px;
  color: var(--lime);
  font-family: Georgia, serif;
  font-size: 11px;
  letter-spacing: .08em;
}
.placement-reference-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  background: #0b0e0d;
  object-fit: contain;
}
.placement-reference-grid figcaption {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.placement-step-list { border-top: 1px solid var(--line); }
.placement-step { padding: 58px 0 72px; border-bottom: 1px solid var(--line); }
.placement-step > header {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 30px;
  margin-bottom: 32px;
}
.placement-step > header > span { color: var(--lime); font-family: Georgia, serif; font-size: 11px; }
.placement-step h2 { margin: 0 0 8px; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.15; }
.placement-step header p { margin: 0; color: var(--muted); font-size: 14px; }
.placement-step-media { display: grid; grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr); gap: 20px; align-items: start; }
.placement-step-media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  background: #050505;
  object-fit: cover;
}
.placement-step-media .placement-process img { object-fit: contain; }
.placement-final {
  display: grid;
  grid-template-columns: minmax(250px, .55fr) minmax(0, 1fr);
  gap: 70px;
  align-items: start;
  padding-top: 76px;
}
.placement-final > div { position: sticky; top: 96px; }
.placement-final h2 { margin: 12px 0 16px; font-size: clamp(42px, 5vw, 68px); line-height: 1.08; }
.placement-final p:last-child { margin: 0; color: var(--muted); font-size: 14px; }
.placement-final img { display: block; width: 100%; max-height: 980px; border: 1px solid var(--line); object-fit: contain; }

@media (max-width: 900px) {
  .placement-prompts > article { grid-template-columns: 120px minmax(0, 1fr); }
  .placement-prompts .copy-button { grid-column: 2; width: min(100%, 280px); }
  .placement-lead { grid-template-columns: 1fr; gap: 18px; }
  .placement-final { gap: 36px; }
}

@media (max-width: 620px) {
  .case-card:last-child:nth-child(odd) { display: flex; }
  .placement-prompt-intro { grid-template-columns: 1fr; gap: 14px; }
  .placement-prompt-intro .eyebrow { grid-column: 1; }
  .placement-prompts > article { grid-template-columns: 1fr; gap: 16px; padding: 22px 0; }
  .placement-prompts .copy-button { grid-column: 1; width: 100%; }
  .placement-reference-grid { grid-template-columns: 1fr; gap: 34px; margin-bottom: 58px; }
  .placement-step { padding: 44px 0 54px; }
  .placement-step > header { grid-template-columns: 1fr; gap: 12px; }
  .placement-step-media { grid-template-columns: 1fr; gap: 34px; }
  .placement-final { grid-template-columns: 1fr; gap: 28px; padding-top: 58px; }
  .placement-final > div { position: static; }
}

@media (max-width: 620px) {
  .angle-request { grid-template-columns: 1fr; gap: 8px; margin-bottom: 36px; }
  .angle-request p { font-size: 17px; }
  .angle-output-section { margin-bottom: 46px; }
  .angle-parameter-strip { display: grid; grid-template-columns: 1fr; }
  .angle-parameter-strip span { margin: 0 0 4px; }
  .angle-output-list article { grid-template-columns: 1fr; gap: 20px; padding: 26px 0; }
  .angle-output-meta h3 { margin-top: 8px; }
  .angle-output-text { font-size: 13px; }
  .angle-comparison { grid-template-columns: 1fr; gap: 34px; }
  .angle-change-note { grid-template-columns: 1fr; gap: 12px; }
  .angle-change-note aside { grid-column: 1; padding-top: 12px; padding-left: 0; border-top: 1px solid var(--line); border-left: 0; }
  .angle-use-grid { grid-template-columns: 1fr; }
  .angle-use-grid article { min-height: 165px; }
  .angle-use-grid article + article { border-top: 1px solid var(--line); border-left: 0; }
  .angle-use-grid h3 { margin-top: 34px; }
}
