/* Sheru Studio — fan-made demo. Palette follows the referenced dark frame. */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/bricolage-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/bricolage-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/bricolage-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Geist;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/geist-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Geist;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/geist-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Geist;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/geist-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/jetbrains-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/jetbrains-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Noto Sans Devanagari";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/devanagari-400.woff2") format("woff2");
  unicode-range: U+0900-097F, U+1CD0-1CF4, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A8E0-A8FF;
}
@font-face {
  font-family: "Noto Sans Devanagari";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/devanagari-500.woff2") format("woff2");
  unicode-range: U+0900-097F, U+1CD0-1CF4, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A8E0-A8FF;
}
@font-face {
  font-family: "Noto Sans Devanagari";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/devanagari-600.woff2") format("woff2");
  unicode-range: U+0900-097F, U+1CD0-1CF4, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A8E0-A8FF;
}

:root {
  --bg: #141412;
  --card: #1e1e1c;
  --fg: #f4f0e6;
  --muted: #b7aa96;
  --muted-2: #8f8474;
  --tan: #d4bc8b;
  --tan-2: #e4d0a8;
  --ink: #1a1610;
  --teal: #44d6d6;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: #34322c;
  --display: "Bricolage Grotesque", "Noto Sans Devanagari", Georgia, serif;
  --sans: Geist, "Noto Sans Devanagari", "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --header: 64px;
  color-scheme: dark;
}

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

[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: clip;
}

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

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

button { cursor: pointer; }

:focus { outline: none; }

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

::selection { background: rgba(212, 188, 139, 0.35); color: #fff; }

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  background: var(--tan);
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}

.skip:focus { top: 12px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(20, 20, 18, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  min-height: var(--header);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
  color: var(--fg);
}

.brand-mark,
.brand-name {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.04em;
}

.brand-mark {
  color: var(--tan);
  font-size: 26px;
  line-height: 1;
}

.brand-name { font-size: 20px; }

.brand-studio {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 10px;
  border-radius: 10px;
}

.nav a:hover { color: var(--fg); background: rgba(255, 255, 255, 0.04); }

.nav a[aria-current="true"] { color: var(--fg); }

.header-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.demo-pill {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tan);
  border: 1px solid rgba(212, 188, 139, 0.45);
  border-radius: 999px;
  padding: 5px 8px;
}

.lang {
  display: flex;
  align-items: center;
  gap: 2px;
}

.lang button {
  background: transparent;
  border: 0;
  color: var(--muted);
  padding: 6px 6px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
}

.lang button[aria-pressed="true"] { color: var(--fg); }

.lang-slash { color: var(--muted-2); }

.hero {
  position: relative;
  padding: 56px 20px 36px;
  overflow: clip;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 68% 58% at 50% 30%, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.28) 58%, transparent 78%),
    linear-gradient(180deg, rgba(20, 20, 18, 0.55) 0%, rgba(20, 20, 18, 0.18) 16%, rgba(20, 20, 18, 0.12) 46%, rgba(20, 20, 18, 0.72) 78%, #141412 100%);
}

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

.hero-copy { text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin: 0;
  border: 1px solid rgba(68, 214, 214, 0.32);
  background: rgba(68, 214, 214, 0.1);
  color: var(--teal);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
}

.hero h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(34px, 4.6vw, 56px);
  letter-spacing: -0.021em;
  line-height: 1.04;
  margin: 18px auto 0;
  max-width: 920px;
  text-wrap: balance;
}

.grad { color: #e4cc9e; }

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .grad {
    background-image: linear-gradient(100deg, #f7f1e4 0%, #e7d3a4 40%, #d4bc8b 74%, #c6a56a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.lede,
.section-copy {
  color: var(--muted);
  font-size: 20px;
  line-height: 1.5;
  font-weight: 400;
}

.lede {
  max-width: 740px;
  margin: 18px auto 0;
  text-wrap: pretty;
}

.pills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 0;
  margin: 22px auto 0;
  max-width: 860px;
}

.pills li {
  border: 1px solid var(--line-strong);
  background: rgba(30, 30, 28, 0.78);
  color: var(--fg);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
}

.composer-wrap {
  max-width: 896px;
  margin: 28px auto 0;
}

.composer-glow {
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(105deg, rgba(68, 214, 214, 0.85), rgba(255, 255, 255, 0.14) 42%, rgba(212, 188, 139, 0.9));
  box-shadow:
    -22px 28px 64px -30px rgba(68, 214, 214, 0.45),
    22px 28px 64px -30px rgba(212, 188, 139, 0.42);
}

.composer {
  background: linear-gradient(180deg, #242422, #1e1e1c 38%, #191917);
  border-radius: 23px;
}

.composer-main {
  display: flex;
  gap: 16px;
  padding: 16px 16px 8px;
  align-items: flex-start;
}

.upload {
  position: relative;
  width: 96px;
  height: 96px;
  flex: 0 0 96px;
}

.upload-hit {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
}

.upload-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.upload-face {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.15;
  padding: 18px 8px 8px;
  position: relative;
}

.upload-face svg { color: var(--fg); }

.upload.has-photo .upload-empty { display: none; }

.upload-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upload-thumb[hidden] { display: none; }

.corner {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 1.5px solid rgba(68, 214, 214, 0.9);
  z-index: 1;
}

.corner.tl { top: 7px; left: 7px; border-right: 0; border-bottom: 0; }
.corner.tr { top: 7px; right: 7px; border-left: 0; border-bottom: 0; }
.corner.bl { bottom: 7px; left: 7px; border-right: 0; border-top: 0; }
.corner.br { bottom: 7px; right: 7px; border-left: 0; border-top: 0; }

.upload.has-photo .corner { display: none; }

.upload.is-drag .upload-hit { box-shadow: inset 0 0 0 1px var(--teal); }

.upload-clear {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 3;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 999px;
  background: rgba(20, 20, 18, 0.82);
  color: var(--fg);
  font-size: 14px;
  line-height: 1;
  padding: 0;
}

.upload-clear[hidden] { display: none; }

.prompt {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.prompt textarea {
  width: 100%;
  min-height: 84px;
  resize: vertical;
  border: 0;
  background: transparent;
  padding: 4px 2px;
  font-size: 18px;
  line-height: 1.45;
  color: var(--fg);
}

.prompt textarea::placeholder { color: var(--muted-2); }

.prompt-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.idea {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 4px 2px;
  border-radius: 999px;
  font-size: 13px;
}

.idea svg { color: var(--teal); }

.idea:hover { color: var(--fg); }

.count {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted-2);
}

.hint, .form-error, .photo-name {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.form-error { color: #e7b4a4; min-height: 1.2em; }

.photo-name { color: var(--muted-2); }

.composer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.28);
  border-radius: 0 0 23px 23px;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.chip, .cta {
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(20, 20, 18, 0.45);
  color: var(--fg);
  padding: 0 12px;
  font-size: 13px;
  font-weight: 500;
}

.chip[aria-checked="true"],
.chip[aria-pressed="true"] {
  border-color: rgba(68, 214, 214, 0.75);
  background: rgba(68, 214, 214, 0.12);
  color: #f3fffe;
}

.cta {
  height: 40px;
  border: 0;
  background: var(--tan);
  color: var(--ink);
  font-weight: 600;
  padding: 0 18px;
}

.cta:hover { background: var(--tan-2); }

.demo-status {
  margin: 14px auto 0;
  max-width: 896px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.section {
  padding: 88px 0;
}

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-head { text-align: center; max-width: 820px; margin: 0 auto; }

.section h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(32px, 4.2vw, 53px);
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 14px 0 0;
  text-wrap: balance;
}

.section-copy { margin: 16px auto 0; max-width: 720px; text-wrap: pretty; }

.card-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.scene-card {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 22px;
  overflow: hidden;
  background: #10100e;
  aspect-ratio: 16 / 11;
  text-align: left;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.scene-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.scene-card:hover img { transform: scale(1.04); }

.scene-card[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--teal); }

.card-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 56px 16px 16px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.28) 58%, transparent);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.card-caption strong,
.ex-title {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.02em;
  font-size: 26px;
  line-height: 1.1;
}

.card-caption span:last-child {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.4;
}

.steps {
  list-style: none;
  margin: 42px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.steps li { min-width: 0; }

.step-num {
  font-family: var(--mono);
  color: var(--teal);
  letter-spacing: 0.14em;
  font-size: 12px;
}

.steps h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 10px 0 0;
}

.steps p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.concept {
  margin: 36px auto 0;
  max-width: 820px;
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  padding: 18px 20px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.examples {
  margin-top: 40px;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 22px;
  align-items: stretch;
}

.example-list { display: grid; gap: 12px; align-content: start; }

.example {
  width: 100%;
  display: flex;
  gap: 14px;
  text-align: left;
  background: var(--card);
  border: 1px solid transparent;
  border-radius: 18px;
  padding: 16px;
  color: var(--fg);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.example[aria-pressed="true"] {
  border-color: rgba(68, 214, 214, 0.65);
  box-shadow: inset 0 0 0 1px rgba(68, 214, 214, 0.35);
}

.ex-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--teal);
  background: rgba(68, 214, 214, 0.12);
  border: 1px solid rgba(68, 214, 214, 0.28);
}

.example .kicker { color: var(--muted); }

.ex-copy {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.example-stage { min-width: 0; }

.stage {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #10100e;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stage-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 48px 20px 18px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.15) 60%, transparent);
}

.stage-caption h3 {
  margin: 4px 0 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -0.02em;
}

.stage-line {
  margin: 8px 0 0;
  font-size: 16px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
  max-width: 46ch;
}

.stage-note {
  margin: 10px 2px 0;
  color: var(--muted);
  font-size: 13px;
}

.faq {
  max-width: 820px;
  margin: 36px auto 0;
}

.faq details {
  border-bottom: 1px solid var(--line-strong);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  cursor: pointer;
  font-size: 18px;
  font-weight: 500;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq details p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.6;
}

.plus {
  width: 14px;
  height: 14px;
  position: relative;
  flex: none;
}

.plus::before,
.plus::after {
  content: "";
  position: absolute;
  background: var(--tan);
  border-radius: 1px;
}

.plus::before { left: 0; right: 0; top: 6px; height: 2px; }
.plus::after { top: 0; bottom: 0; left: 6px; width: 2px; }

details[open] .plus::after { opacity: 0; }

.site-footer {
  background: #10100e;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 48px 0 64px;
  color: var(--muted);
}

.site-footer .brand-name { font-size: 28px; }

.site-footer p { max-width: 68ch; line-height: 1.6; margin: 12px 0 0; }

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 22px;
}

.foot-links a { color: var(--fg); text-decoration: none; font-size: 14px; }

.foot-links a:hover { color: var(--tan); }

.modal[hidden] { display: none; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 7, 0.74);
}

.modal-dialog {
  position: relative;
  width: min(880px, 100%);
  max-height: min(92vh, 900px);
  overflow: auto;
  background: var(--card);
  color: var(--fg);
  border-radius: 24px;
  border: 1px solid var(--line-strong);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  padding: 28px 28px 22px;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--fg);
  font-size: 20px;
  line-height: 1;
}

.modal h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 12px 0 0;
  max-width: 18ch;
}

.modal-lead { color: var(--muted); margin: 10px 0 0; max-width: 52ch; }

.modal-layout {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 20px;
  align-items: start;
}

.frame {
  border-radius: 16px;
  overflow: hidden;
  background: #10100e;
  margin-inline: auto;
}

.frame[data-aspect="9:16"] { aspect-ratio: 9 / 16; width: min(100%, 240px); }
.frame[data-aspect="1:1"] { aspect-ratio: 1; width: min(100%, 280px); }

.frame img { width: 100%; height: 100%; object-fit: cover; }

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.meta li {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  color: var(--muted);
}

.quote {
  margin: 14px 0 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.quote-note { margin: 8px 0 0; color: var(--muted); font-size: 13px; }

.local-photo {
  margin: 16px 0 0;
  display: flex;
  gap: 12px;
  align-items: center;
}

.local-photo img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
}

.local-photo figcaption { color: var(--muted); font-size: 13px; line-height: 1.4; }

.modal-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

.esc-hint {
  margin: 8px 0 0;
  color: var(--muted-2);
  font-size: 12px;
  text-align: right;
}

body.modal-open { overflow: hidden; }

@media (max-width: 980px) {
  .card-grid, .steps, .examples { grid-template-columns: 1fr; }
  .modal-layout { grid-template-columns: 1fr; }
  .frame[data-aspect="9:16"] { width: min(100%, 220px); }
}

@media (max-width: 860px) {
  .cta { flex: 1 1 100%; }
}

@media (max-width: 720px) {
  .header-inner { padding: 10px 16px; }
  .nav { order: 3; flex: 1 0 100%; justify-content: space-between; }
  .nav a { padding: 8px 6px; font-size: 13px; }
  .hero { padding: 18px 16px 20px; }
  .hero h1 { margin-top: 12px; }
  .lede { margin-top: 12px; font-size: 16px; }
  .pills { margin-top: 14px; }
  .composer-wrap { margin-top: 16px; }
  .composer-main { padding: 12px 12px 6px; gap: 12px; }
  .wrap { padding: 0 16px; }
  .section { padding: 64px 0; }
  .upload, .upload-hit { width: 80px; height: 80px; flex-basis: 80px; }
  .upload { flex-basis: 80px; }
  .prompt textarea { min-height: 72px; font-size: 16px; }
  .composer-glow {
    box-shadow: 0 16px 36px -20px rgba(68, 214, 214, 0.35), 0 16px 36px -20px rgba(212, 188, 139, 0.35);
  }
  .card-caption strong, .ex-title, .stage-caption h3, .steps h3 { font-size: 24px; }
  .section-copy { font-size: 18px; }
  .modal { padding: 12px; }
  .modal-dialog { padding: 22px 16px 16px; }
  .esc-hint, .modal-actions { text-align: left; justify-content: stretch; }
  .modal-actions .cta { width: 100%; }
}

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