.hero2 { position: relative; display: flex; align-items: center; min-height: min(900px, calc(100svh - 65px)); padding: clamp(40px, 6vw, 72px) 0; overflow: hidden; isolation: isolate; }
.stage { position: absolute; inset: 0; z-index: -1; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ground) 0%, rgba(13, 14, 18, 0.9) 26%, rgba(13, 14, 18, 0) 56%), linear-gradient(0deg, var(--ground) 0%, rgba(13, 14, 18, 0) 18%); pointer-events: none; }
.lens { position: absolute; top: 0; right: 12%; height: 100%; width: auto; max-width: none; object-fit: cover; opacity: 0; transition: opacity 1s ease; --lx: 50%; --ly: 36%; --lr: 240px;
  -webkit-mask-image: radial-gradient(circle var(--lr) at var(--lx) var(--ly), #000 0%, #000 42%, transparent 100%), linear-gradient(90deg, transparent 0%, #000 16%, #000 84%, transparent 100%);
  mask-image: radial-gradient(circle var(--lr) at var(--lx) var(--ly), #000 0%, #000 42%, transparent 100%), linear-gradient(90deg, transparent 0%, #000 16%, #000 84%, transparent 100%);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
.lens.on { opacity: 1; }
.hero2-copy { max-width: 600px; }
.hero2 h1 { font-family: var(--mono); font-weight: 500; font-size: clamp(34px, 5.4vw, 76px); line-height: 1.02; letter-spacing: -0.04em; }
.hero2 h1 span { display: block; color: var(--ember); }
.hero2 .lede { max-width: 30em; }

.scenes { margin-top: clamp(28px, 4vw, 44px); max-width: 540px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 20px; background: rgba(13, 14, 18, 0.62); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.scene-line { display: none; font-family: var(--mono); font-size: 14px; line-height: 1.6; min-height: 4.8em; }
.scene-line.on { display: block; animation: surface 0.6s ease both; }
.scene-line .params { display: block; margin-top: 4px; }
.scene-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.scene-tabs { display: flex; gap: 4px; }
.scene-tabs button { position: relative; width: 48px; height: 38px; font-family: var(--mono); font-size: 12px; color: var(--tertiary); text-align: left; transition: color 0.2s; }
.scene-tabs button::before, .scene-tabs button::after { content: ""; position: absolute; left: 0; right: 8px; bottom: 6px; height: 2px; border-radius: 2px; background: var(--line); }
.scene-tabs button::after { background: var(--ember); transform: scaleX(0); transform-origin: left; }
.scene-tabs button[aria-pressed="true"] { color: var(--text); }
.scene-tabs button[aria-pressed="true"]::after { transform: scaleX(1); }
.scene-tabs.auto button[aria-pressed="true"]::after { animation: fill 7s linear both; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes surface { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.tool { display: grid; grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr); gap: clamp(28px, 6vw, 88px); align-items: center; }
.tool.flip { grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.78fr); }
.tool.flip > :first-child { order: 2; }
.no { font-family: var(--mono); font-size: 13px; color: var(--ember); margin-bottom: 18px; }
.no span { color: var(--secondary); margin-left: 10px; }
.promptbox .copy { flex: none; white-space: nowrap; }
.demo { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: clamp(16px, 2.4vw, 28px); }

.prompt-text { font-family: var(--mono); font-size: clamp(14px, 1.35vw, 16px); line-height: 1.65; overflow-wrap: anywhere; }
.prompt-text span { transition: opacity 0.3s; }
.prompt-text span.off { opacity: 0.22; text-decoration: line-through; }
.slot { font-weight: 500; box-shadow: inset 0 -2px 0 rgba(255, 90, 56, 0.9); }
.bars { display: flex; align-items: center; gap: 3px; height: 34px; margin-bottom: 16px; overflow: hidden; }
.bars i { flex: 1 1 0; min-width: 2px; max-width: 7px; border-radius: 3px; background: var(--tone); height: var(--h); transition: opacity 0.3s, height 0.4s; }
.bars i.off { opacity: 0.18; }

.idea { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 20px; border: 1px solid rgba(62, 207, 142, 0.55); border-radius: 999px; background: var(--deep); font-family: var(--mono); font-size: clamp(14px, 1.5vw, 17px); box-shadow: 0 0 40px -12px rgba(62, 207, 142, 0.5); }
.idea > span:first-child { color: var(--green); }
.caret { width: 2px; height: 1.2em; margin-left: -8px; background: var(--green); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.take-tabs { display: flex; gap: 8px; margin: 20px 0 14px; }
.take-tabs button { height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); font-family: var(--mono); font-size: 13px; color: var(--secondary); transition: color 0.2s, border-color 0.2s, background 0.2s; }
.take-tabs button:hover { border-color: rgba(255, 255, 255, 0.3); }
.take-tabs button[aria-selected="true"] { color: var(--ground); background: var(--text); border-color: var(--text); }
.takes { position: relative; padding-top: 14px; }
.takes::before, .takes::after { content: ""; position: absolute; left: 5%; right: 5%; top: 0; height: 40px; border: 1px solid var(--line); border-bottom: 0; border-radius: 20px 20px 0 0; background: #1A1C22; }
.takes::after { left: 2.5%; right: 2.5%; top: 7px; background: #1C1E24; }
.take { position: relative; z-index: 1; background: var(--field); border: 1px solid var(--line); border-radius: 22px; padding: clamp(18px, 2.4vw, 26px); }
.take.on { animation: surface 0.45s ease both; }
.take h3 { font-family: var(--mono); font-weight: 400; font-size: 13px; color: var(--tertiary); margin-bottom: 10px; }
.take .prompt-text { min-height: 9.9em; }
.take .params, .read .params, .doctor .params, .wall-panel .params { color: var(--ember); }

.read { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); gap: clamp(16px, 2.4vw, 28px); align-items: center; }
.read-photo { position: relative; }
.read-photo img { width: 100%; border-radius: 18px; }
.tag { position: absolute; max-width: 62%; padding: 6px 12px; border-radius: 999px; font-family: var(--mono); font-size: clamp(10px, 1vw, 12px); font-weight: 500; color: var(--ground); background: var(--tone); border: 1.5px solid var(--tone); box-shadow: 0 6px 18px -6px rgba(0, 0, 0, 0.7); white-space: nowrap; transition: background 0.25s, color 0.25s, transform 0.25s; }
.tag:hover { transform: translateY(-2px); }
.tag[aria-pressed="false"] { background: rgba(13, 14, 18, 0.7); color: var(--tone); }
.t-subject { --tone: var(--text); }
.t-style { --tone: var(--rose); }
.t-light { --tone: var(--amber); }
.t-camera { --tone: var(--green); }
.t-palette { --tone: var(--sky); }
.subject { display: block; margin-top: 18px; }
.subject span { display: block; font-family: var(--mono); font-size: 12px; color: var(--tertiary); margin-bottom: 8px; }
.subject input { width: 100%; height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--deep); color: var(--text); font-family: var(--mono); font-size: 14px; transition: border-color 0.2s; }
.subject input::placeholder { color: var(--tertiary); }
.subject input:focus { outline: none; border-color: var(--ember); }

.doctor { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); gap: clamp(16px, 2.4vw, 28px); align-items: start; }
.compare { position: relative; border-radius: 18px; overflow: hidden; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.compare img { width: 100%; }
.compare .before { position: absolute; inset: 0; height: 100%; object-fit: cover; clip-path: inset(0 calc(100% - var(--split)) 0 0); }
.handle { position: absolute; top: 0; bottom: 0; left: var(--split); width: 2px; margin-left: -1px; background: var(--text); pointer-events: none; }
.handle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; background: var(--text) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230D0E12' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 7l-5 5 5 5M15 7l5 5-5 5'/%3E%3C/svg%3E") center / 20px no-repeat; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6); }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare:focus-within .handle::after { outline: 2px solid var(--ember); outline-offset: 3px; }
.lab { position: absolute; top: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(7, 8, 11, 0.7); font-family: var(--mono); font-size: 11px; pointer-events: none; }
.lab-before { left: 12px; }
.lab-after { right: 12px; }
.orig { font-family: var(--mono); font-size: 13px; line-height: 1.7; color: var(--secondary); }
.orig mark { background: none; color: var(--secondary); box-shadow: inset 0 -1.5px 0 rgba(255, 90, 56, 0.65); transition: background 0.2s, color 0.2s; }
.orig mark.hot { color: var(--ground); background: var(--ember); box-shadow: none; border-radius: 3px; }
.causes { margin: 14px 0 16px; border-top: 1px solid var(--line); }
.causes button { display: block; width: 100%; padding: 12px 0; text-align: left; border-bottom: 1px solid var(--line); }
.causes b { display: block; font-family: var(--sans); font-weight: 600; font-size: 15px; transition: color 0.2s; }
.causes span { display: block; margin-top: 2px; font-size: 14px; color: var(--secondary); }
.causes button:hover b, .causes button.hot b { color: var(--ember); }

.wall-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.wall { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.wall button { position: relative; display: block; width: 100%; border-radius: 16px; overflow: hidden; outline-offset: 3px; }
.wall img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.3s; opacity: 0.62; }
.wall button:hover img { transform: scale(1.05); opacity: 0.9; }
.wall button[aria-pressed="true"] img { opacity: 1; }
.wall button[aria-pressed="true"]::after { content: ""; position: absolute; inset: 0; border: 2px solid var(--ember); border-radius: 16px; }
.wall span { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 8px; background: linear-gradient(0deg, rgba(7, 8, 11, 0.85), transparent); font-family: var(--mono); font-size: 11px; text-align: left; opacity: 0; transition: opacity 0.25s; }
.wall button:hover span, .wall button:focus-visible span, .wall button[aria-pressed="true"] span { opacity: 1; }
.wall-panel { position: sticky; top: 92px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(20px, 2.6vw, 30px); }
.wall-panel .group { font-family: var(--mono); font-size: 12px; color: var(--tertiary); }
.wall-panel h3 { margin: 6px 0 18px; font-family: var(--mono); font-weight: 500; font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -0.02em; }
.wall-panel .prompt-text { min-height: 8.3em; }
.wall-panel.swap h3, .wall-panel.swap .prompt-text, .wall-panel.swap .bars { animation: surface 0.4s ease both; }
#library .numbers { margin-top: clamp(40px, 6vw, 72px); }

.blend-out { margin-top: 28px; max-width: 440px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.phrase { min-height: 4.95em; }
.phrase span { transition: color 0.3s; }
.phrase i { font-style: normal; color: var(--secondary); }
.pad { position: relative; width: min(100%, 520px); aspect-ratio: 1; justify-self: center; border-radius: 32px; background: radial-gradient(closest-side, rgba(255, 90, 56, 0.1), transparent 70%), var(--surface); border: 1px solid var(--line); touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; outline-offset: 4px; }
.pad.drag { cursor: grabbing; }
.faces { position: absolute; left: 28%; top: 25%; width: 44%; height: 44%; border-radius: 50%; overflow: hidden; background: var(--deep); box-shadow: 0 0 0 1px var(--line), 0 30px 60px -20px rgba(0, 0, 0, 0.8); pointer-events: none; }
.faces img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dot { position: absolute; width: 16%; aspect-ratio: 1; margin: -8% 0 0 -8%; border-radius: 50%; border: 2px solid var(--tone); padding: 0; overflow: visible; transition: transform 0.25s, box-shadow 0.25s; }
.dot img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; pointer-events: none; }
.dot span { position: absolute; left: 50%; top: 100%; transform: translate(-50%, 6px); padding: 2px 8px; border-radius: 999px; background: var(--tone); color: var(--ground); font-family: var(--mono); font-size: 10px; font-weight: 500; white-space: nowrap; pointer-events: none; }
.dot.near { transform: scale(1.12); box-shadow: 0 0 0 5px color-mix(in srgb, var(--tone) 25%, transparent); }
.puck { position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: var(--text); border: 4px solid var(--ground); box-shadow: 0 0 0 2px var(--text), 0 10px 26px rgba(0, 0, 0, 0.7); pointer-events: none; }

.shots .reel { position: relative; flex: 0 0 clamp(220px, 62vw, 272px); width: auto; }
.shots .reel video { width: 100%; aspect-ratio: 1320 / 2868; object-fit: cover; border-radius: 22px; border: 1px solid var(--line); background: var(--deep); }
.shots .reel::before { display: none; }

@media (max-width: 1000px) {
  .tool, .tool.flip { grid-template-columns: 1fr; }
  .tool.flip > :first-child { order: 0; }
  .wall-grid { grid-template-columns: 1fr; }
  .wall-panel { position: static; }
  .pad { justify-self: start; }
}
@media (max-width: 900px) {
  .hero2 { display: block; min-height: 0; padding: 0 0 40px; }
  .stage { position: relative; height: 58svh; min-height: 360px; max-height: 620px; }
  .stage::after { background: linear-gradient(0deg, var(--ground) 0%, rgba(13, 14, 18, 0) 34%); }
  .lens { right: auto; left: 50%; transform: translateX(-50%); }
  .hero2-copy { position: relative; margin-top: -64px; max-width: none; }
  .hero2 h1 { font-size: clamp(34px, 10.4vw, 64px); }
  .scenes { max-width: none; }
}
@media (max-width: 640px) {
  .read, .doctor { grid-template-columns: 1fr; }
  .wall { grid-template-columns: repeat(3, 1fr); }
  .wall span { opacity: 1; font-size: 10px; }
  .take .prompt-text, .wall-panel .prompt-text { min-height: 0; }
  .take-tabs button { flex: 1; padding: 0 8px; }
  .dot span { font-size: 9px; }
  .pad { border-radius: 24px; }
  .demo { border-radius: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .caret, .scene-tabs.auto button[aria-pressed="true"]::after, .scene-line.on, .take.on, .wall-panel.swap h3, .wall-panel.swap .prompt-text, .wall-panel.swap .bars { animation: none; }
  .lens { transition: none; }
}
