// jsx/App.jsx — "alpine premium" homepage (redesign 2026-06-11).
// Composition: TopNav → Hero (light type) → Altitude photo panel + floating
// Console card → Tools row → Offerings (editorial rows) → Proof (dark panel,
// Console mockups over dusk ridge) → Manifesto → Selected work → Night mission
// panel → Closing (contact form) → Footer.
// Design system: huge light Clash Display headlines, warm paper ground, dark
// photographic interludes, one magenta accent. Photos live in assets/photo/.
// All section styling is namespaced `hp-` so it never collides with site.css
// or the other pages. (The old `hl-` operator homepage is in git history.)
const { useEffect: useEffectApp } = React;

// ── Hero ─────────────────────────────────────────────────────────────────────
// Official Claude logomark (Anthropic's brand "burst"), single-colour, rendered in
// ink to sit on the warm-paper hero. Brand-accurate path (simple-icons "claude").
function PartnerMark({ className }) {
  return (
    <svg className={className} viewBox="0 0 24 24" fill="currentColor"
      aria-hidden="true" focusable="false">
      <path d="m4.7144 15.9555 4.7174-2.6471.079-.2307-.079-.1275h-.2307l-.7893-.0486-2.6956-.0729-2.3375-.0971-2.2646-.1214-.5707-.1215-.5343-.7042.0546-.3522.4797-.3218.686.0608 1.5179.1032 2.2767.1578 1.6514.0972 2.4468.255h.3886l.0546-.1579-.1336-.0971-.1032-.0972L6.973 9.8356l-2.55-1.6879-1.3356-.9714-.7225-.4918-.3643-.4614-.1578-1.0078.6557-.7225.8803.0607.2246.0607.8925.686 1.9064 1.4754 2.4893 1.8336.3643.3035.1457-.1032.0182-.0728-.164-.2733-1.3539-2.4467-1.445-2.4893-.6435-1.032-.17-.6194c-.0607-.255-.1032-.4674-.1032-.7285L6.287.1335 6.6997 0l.9957.1336.419.3642.6192 1.4147 1.0018 2.2282 1.5543 3.0296.4553.8985.2429.8318.091.255h.1579v-.1457l.1275-1.706.2368-2.0947.2307-2.6957.0789-.7589.3764-.9107.7468-.4918.5828.2793.4797.686-.0668.4433-.2853 1.8517-.5586 2.9021-.3643 1.9429h.2125l.2429-.2429.9835-1.3053 1.6514-2.0643.7286-.8196.85-.9046.5464-.4311h1.0321l.759 1.1293-.34 1.1657-1.0625 1.3478-.8804 1.1414-1.2628 1.7-.7893 1.36.0729.1093.1882-.0183 2.8535-.607 1.5421-.2794 1.8396-.3157.8318.3886.091.3946-.3278.8075-1.967.4857-2.3072.4614-3.4364.8136-.0425.0304.0486.0607 1.5482.1457.6618.0364h1.621l3.0175.2247.7892.522.4736.6376-.079.4857-1.2142.6193-1.6393-.3886-3.825-.9107-1.3113-.3279h-.1822v.1093l1.0929 1.0686 2.0035 1.8092 2.5075 2.3314.1275.5768-.3218.4554-.34-.0486-2.2039-1.6575-.85-.7468-1.9246-1.621h-.1275v.17l.4432.6496 2.3436 3.5214.1214 1.0807-.17.3521-.6071.2125-.6679-.1214-1.3721-1.9246L14.38 17.959l-1.1414-1.9428-.1397.079-.674 7.2552-.3156.3703-.7286.2793-.6071-.4614-.3218-.7468.3218-1.4753.3886-1.9246.3157-1.53.2853-1.9004.17-.6314-.0121-.0425-.1397.0182-1.4328 1.9672-2.1796 2.9446-1.7243 1.8456-.4128.164-.7164-.3704.0667-.6618.4008-.5889 2.386-3.0357 1.4389-1.882.929-1.0868-.0062-.1579h-.0546l-6.3385 4.1164-1.1293.1457-.4857-.4554.0608-.7467.2307-.2429 1.9064-1.3114Z" />
    </svg>
  );
}

function Hero() {
  return (
    <header className="hp-hero">
      <div className="shell">
        <div className="hp-hero-top">
          <h1 className="hp-h1">
            <span className="hp-line hp-line1">From AI&#8209;curious <span className="hp-turn">to</span></span>
            <span className="hp-line hp-line2">AI&#8209;operational<span className="hp-dot">.</span></span>
          </h1>
          <div className="hp-partner hp-r hp-r-badge" role="img"
            aria-label="Zarco is a Registered partner in the Claude Partner Network">
            <PartnerMark className="hp-partner-mark" />
            <span className="hp-partner-text">
              <span className="hp-partner-name">Claude Partner Network</span>
              <span className="hp-partner-tier">Registered partner</span>
            </span>
          </div>
        </div>
        <div className="hp-hero-row hp-r hp-r2">
          <p className="hp-hero-sub">Zarco is a UK studio that finds where AI genuinely pays off in your business, then builds the systems that get you there. In weeks, not quarters.</p>
          <div className="hp-hero-ctas">
            <a className="btn btn-ink" href="#contact">Book a discovery call</a>
            <a className="hp-link-quiet" href="#work">See live systems</a>
          </div>
        </div>
      </div>
    </header>
  );
}

// ── Altitude panel: cloud-sea photo + floating Console card ─────────────────
function Altitude() {
  return (
    <section className="hp-altitude hp-r hp-r3" aria-label="The Zarco Console, above the noise">
      <div className="hp-alt-frame">
        <img src="assets/photo/altitude.jpg" alt="A ridge breaking through a sea of cloud at first light" loading="eager" />
        <div className="hp-alt-cap">
          <p>The noise stays below. The systems keep running.</p>
          <span>Zarco Console · live since 2025</span>
        </div>
      </div>
      <div className="hp-console-wrap" aria-hidden="false">
      <span className="hp-console-glow" aria-hidden="true" />
      <aside className="hp-console" aria-label="Zarco Console, agents online">
        <div className="hp-con-head">
          <span className="hp-con-title"><span className="hp-zmark"><ZMark /></span> Zarco Console</span>
          <span className="hp-con-live"><span className="hp-dot-ok" /> 6 agents online</span>
        </div>
        <div className="hp-con-body">
          <div className="hp-con-row">
            <span className="hp-con-agent"><span className="hp-con-av"><AgentFace who="juno" /></span><span><span className="hp-con-name">Juno</span><span className="hp-con-role">Research</span></span></span>
            <span className="hp-con-state"><span className="hp-dot-busy" /> running competitor scan</span>
          </div>
          <div className="hp-con-row">
            <span className="hp-con-agent"><span className="hp-con-av"><AgentFace who="ezra" /></span><span><span className="hp-con-name">Ezra</span><span className="hp-con-role">Finance</span></span></span>
            <span className="hp-con-state">drafted 3 follow-ups</span>
          </div>
          <div className="hp-con-row">
            <span className="hp-con-agent"><span className="hp-con-av"><AgentFace who="mara" /></span><span><span className="hp-con-name">Mara</span><span className="hp-con-role">Support</span></span></span>
            <span className="hp-con-state">idle · memory synced</span>
          </div>
        </div>
        <div className="hp-con-foot">
          <span>2 actions awaiting your sign&#8209;off</span>
          <span className="hp-con-review">Review</span>
        </div>
      </aside>
      </div>
    </section>
  );
}

// ── Tools marquee ────────────────────────────────────────────────────────────
const TOOL_LOGOS = ["slack", "gmail", "hubspot", "notion", "xero", "stripe", "calendar", "onedrive", "salesforce", "drive", "sheets", "whatsapp", "monday", "airtable", "zoom", "linkedin", "github", "figma"];
function Tools() {
  const set = TOOL_LOGOS.map((k) => (<span key={k} className="hp-tool"><FloatGlyph kind={k} /></span>));
  return (
    <section className="hp-tools hp-rev">
      <p className="shell">Connected to the tools you already run</p>
      <div className="hp-marquee" aria-hidden="true">
        <div className="hp-marquee-track">{set}{set}</div>
      </div>
    </section>
  );
}

// ── Agent demo: live chat with an agent, on a faded summit (dark interlude) ──
const { useState: useStateApp, useRef: useRefApp } = React;
const DEMO_SCENARIOS = [
  { who: "ezra", name: "Ezra", role: "Finance", q: "Pull this month's numbers and flag anything that needs me.", src: ["xero", "salesforce", "onedrive"], work: "Pulling May from Xero", reply: "Revenue's £82.4k, up 11%. Two invoices are 30+ days late (£14.2k) and runway's at 7.2 months. Want me to chase them and draft the board pack?", pill: "Chase & draft the pack", skill: "board-pack v4", skillWork: "Assembling the board pack", followup: "Done. Reminders sent to both late payers and the board pack's ready for your review." },
  { who: "juno", name: "Juno", role: "Research", q: "Brief me on the week ahead and flag anything at risk.", src: ["calendar", "salesforce", "gmail"], work: "Checking calendar & pipeline", reply: "Two builds clash Thursday and Harlow & Finch have gone quiet since the 14th. Want me to rebalance Thursday and send a check-in?", pill: "Rebalance & nudge", skill: "week-planner v2", skillWork: "Rebalancing the week", followup: "Moved Thursday's 3pm to Friday and sent Harlow a friendly check-in." },
  { who: "mara", name: "Mara", role: "Support", q: "Anything in the inbox overnight that needs me?", src: ["gmail", "slack", "hubspot"], work: "Reading 38 new tickets", reply: "Two need you: a billing dispute from Harlow & Finch and an API outage report. I've drafted replies for both and resolved the other 36. Send the drafts?", pill: "Send both drafts", skill: "inbox-triage v2", skillWork: "Sending & logging", followup: "Sent. Both logged against their accounts, and the outage report's flagged to engineering." },
];
function AgentDemo() {
  const [scene, setScene] = useStateApp(DEMO_SCENARIOS[0]);
  const [msgs, setMsgs] = useStateApp([]);
  const [pill, setPill] = useStateApp(null);
  const scrollRef = useRefApp(null);
  useEffectApp(() => { if (scrollRef.current) scrollRef.current.scrollTop = scrollRef.current.scrollHeight; });
  useEffectApp(() => {
    let cancelled = false;
    const reduced = window.matchMedia && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
    const sleep = (ms) => new Promise((r) => setTimeout(r, ms));
    const setLast = (patch) => setMsgs((p) => { const c = [...p]; c[c.length - 1] = { ...c[c.length - 1], ...patch }; return c; });
    const typeUser = async (text) => {
      setMsgs((p) => [...p, { k: "user", text: "" }]);
      if (reduced) { setLast({ text }); return; }
      for (let i = 0; i < text.length; i++) { if (cancelled) return; setLast({ text: text.slice(0, i + 1) }); await sleep(15); }
    };
    const botTurn = async (o) => {
      setMsgs((p) => [...p, { k: "bot", phase: "working", src: o.src || null, work: o.work || "", skill: o.skill || null, reply: o.reply }]);
      await sleep(reduced ? 0 : 1400); if (cancelled) return;
      setLast({ phase: "done" });
    };
    const waitPill = (label) => new Promise((res) => {
      let done = false; const finish = () => { if (done) return; done = true; setPill(null); res(); };
      setPill({ label, on: finish });
      if (!reduced) setTimeout(finish, 4200);
    });
    (async function loop() {
      let i = 0;
      while (!cancelled) {
        const s = DEMO_SCENARIOS[i];
        setScene(s); setPill(null); setMsgs([]);
        await sleep(reduced ? 0 : 400); if (cancelled) return;
        await typeUser(s.q); if (cancelled) return;
        await sleep(reduced ? 0 : 350); if (cancelled) return;
        await botTurn({ src: s.src, work: s.work, reply: s.reply }); if (cancelled) return;
        if (reduced) { setPill({ label: s.pill, on: () => {} }); return; } // static snapshot for crawlers
        await waitPill(s.pill); if (cancelled) return;
        await typeUser(s.pill + "."); if (cancelled) return;
        await sleep(300); if (cancelled) return;
        await botTurn({ work: s.skillWork, skill: s.skill, reply: s.followup }); if (cancelled) return;
        await sleep(4800); if (cancelled) return;
        i = (i + 1) % DEMO_SCENARIOS.length;
      }
    })();
    return () => { cancelled = true; };
  }, []);
  return (
    <section className="hp-demo" id="demo">
      <div className="hp-demo-bg" aria-hidden="true"><img src="assets/photo/summit.jpg" alt="" loading="lazy" /></div>
      <div className="hp-demo-in shell hp-rev">
        <div className="hp-demo-copy">
          <h2 className="hp-h2-dark">Talk to it like a teammate.</h2>
          <p className="hp-demo-sub">Every Zarco agent lives where you already work, remembers everything you've told it, and does the job end to end. You stay on the decisions; it handles the rest.</p>
          <div className="hp-demo-points">
            <div className="hp-claim"><b>It does the work</b><span>Not suggestions: drafts sent, books updated, diaries moved.</span></div>
            <div className="hp-claim"><b>It checks first</b><span>Anything that matters waits for your word.</span></div>
            <div className="hp-claim"><b>It remembers</b><span>Your clients, your numbers, your way of doing things.</span></div>
          </div>
        </div>
        <div className="hp-chat">
          <div className="hp-chat-head">
            <span className="hp-chat-id"><span className="hp-chat-face"><AgentFace who={scene.who} /></span><span><span className="hp-chat-name">{scene.name}</span><span className="hp-chat-role">{scene.role} agent</span></span></span>
            <span className="hp-con-live"><span className="hp-dot-ok" /> live</span>
          </div>
          <div className="hp-chat-body" ref={scrollRef}>
            {msgs.map((m, idx) => m.k === "user" ? (
              <div key={idx} className="hp-msg hp-msg-user"><div className="hp-bub-user">{m.text}</div></div>
            ) : (
              <div key={idx} className="hp-msg hp-msg-bot">
                <span className="hp-chat-face hp-chat-face-sm"><AgentFace who={scene.who} /></span>
                <div className="hp-bot-main">
                  {m.skill && <div className="hp-skill">skill: {m.skill}</div>}
                  {m.src && <div className="hp-srcs">{m.src.map((k) => (<span key={k} className="hp-src"><FloatGlyph kind={k} /></span>))}</div>}
                  {m.phase === "working" && <div className="hp-working"><span className="hp-dots"><i /><i /><i /></span>{m.work}</div>}
                  {m.phase === "done" && <div className="hp-bub-bot">{m.reply}</div>}
                </div>
              </div>
            ))}
            {pill && <div className="hp-pillrow"><button type="button" className="hp-pill-btn" onClick={pill.on}>{pill.label} &rarr;</button></div>}
          </div>
        </div>
      </div>
    </section>
  );
}

// ── Offerings (editorial rows, flagship first) ───────────────────────────────
const OFFERINGS = [
  { flagship: true, h: "Zarco Agents", d: "Your own team of AI agents, run from one console. Memory that compounds, skills that version, and a human hand on every approval.", href: "#contact" },
  { h: "Custom AI applications", d: "Purpose-built tools and automations, engineered around your data. Source included, owned by you.", href: "#contact" },
  { h: "AI consulting", d: "More from the AI you already run. Connected via MCP, managed and measured.", href: "#contact" },
];
function Offerings() {
  return (
    <section className="hp-off shell hp-rev" id="what-we-do">
      <p className="hp-kicker">What we build</p>
      {OFFERINGS.map((o) => (
        <a key={o.h} className={"hp-off-row hp-stag" + (o.flagship ? " hp-off-flagship" : "")} href={o.href}>
          <h3>{o.flagship && <span className="hp-off-tag">Flagship</span>}{o.h}</h3>
          <p>{o.d}</p>
          <span className="hp-off-arrow" aria-hidden="true">&rarr;</span>
        </a>
      ))}
    </section>
  );
}

// ── Proof: dark interlude with Console mockups ───────────────────────────────
function Proof() {
  return (
    <section className="hp-proof" id="proof">
      <div className="hp-proof-bg" aria-hidden="true"><img src="assets/photo/dusk.jpg" alt="" loading="lazy" /></div>
      <div className="hp-proof-in shell hp-rev">
        <h2 className="hp-h2-dark">Proof, not promises.</h2>
        <p className="hp-proof-sub">Every engagement ships on the Zarco Console: agents with memory, versioned skills, and an audit trail your compliance lead will actually like.</p>
        <div className="hp-stage">
          <div className="hp-stage-card">
            <div className="hp-sc-head"><span>Overnight run · Juno</span><em>autonomous, supervised</em></div>
            <div className="hp-run">
              <div className="hp-run-line"><span className="hp-run-t">02:14</span><span className="hp-run-msg">Spotted a pricing change on two competitor sites<small>watching 14 sources</small></span><span className="hp-badge">trigger</span></div>
              <div className="hp-run-line"><span className="hp-run-t">02:15</span><span className="hp-run-msg">Ran the analysis<br /><span className="hp-skill">skill: market&#8209;watch v3.2</span></span><span className="hp-badge hp-badge-ok">done</span></div>
              <div className="hp-run-line"><span className="hp-run-t">02:18</span><span className="hp-run-msg">Drafted a repricing memo for the morning<small>waiting for your sign&#8209;off before anything moves</small></span><span className="hp-badge hp-badge-wait">your call</span></div>
            </div>
          </div>
          <div className="hp-stage-card">
            <div className="hp-sc-head"><span>Approvals</span><em>2 pending</em></div>
            <div className="hp-run">
              <div className="hp-run-line"><span className="hp-run-msg">Send 12 follow&#8209;up emails<small>Ezra · Gmail</small></span><span className="hp-badge hp-badge-wait">approve</span></div>
              <div className="hp-run-line"><span className="hp-run-msg">Update 4 deal stages<small>Ezra · CRM</small></span><span className="hp-badge hp-badge-wait">approve</span></div>
              <div className="hp-run-line"><span className="hp-run-msg">Publish weekly digest<small>Mara · Slack</small></span><span className="hp-badge hp-badge-ok">approved</span></div>
            </div>
          </div>
        </div>
        <div className="hp-claims">
          <div className="hp-claim"><b>Memory that compounds</b><span>Agents remember decisions for months, not messages.</span></div>
          <div className="hp-claim"><b>Skills, versioned</b><span>Repeatable work becomes a named, tested skill.</span></div>
          <div className="hp-claim"><b>Human sign&#8209;off</b><span>Nothing that matters happens without a person.</span></div>
        </div>
      </div>
    </section>
  );
}

// ── Manifesto (scroll-fill: each word inks in as it crosses the read band) ───
const MANIFESTO_WORDS = "Everyone is talking about AI.".split(" ");
const MANIFESTO_PUNCH = "We put it to work".split(" ");
function Manifesto() {
  return (
    <section className="hp-manifesto shell">
      <p className="hp-manifesto-lead">
        {MANIFESTO_WORDS.map((w, i) => (
          <span key={i} className="hp-mw" style={{ "--i": i }}>{w}</span>
        ))}
        <br />
        {MANIFESTO_PUNCH.map((w, i) => (
          <b key={i} className="hp-mw" style={{ "--i": MANIFESTO_WORDS.length + 1 + i }}>{w}</b>
        ))}
        <b className="hp-mw hp-dot" style={{ "--i": MANIFESTO_WORDS.length + MANIFESTO_PUNCH.length + 1 }}>.</b>
      </p>
      <p className="hp-manifesto-aside hp-rev">A small senior team. Engineering, not slideware. If it can't run in production with your name on it, we don't ship it.</p>
    </section>
  );
}

// ── Selected work ────────────────────────────────────────────────────────────
const WORK = [
  { h: "Claude OS · cybersecurity firm", d: "An operating layer over CRM, finance and docs. Four versioned skills running pipeline, compliance and competitor intel.", tag: "Consulting", href: "#contact" },
  { h: "Recruitment AI suite", d: "CV ranking, candidate enrichment and outreach drafting, wired into the existing ATS.", tag: "Custom apps", href: "#contact" },
  { h: "Unplugged Campers · booking platform", d: "Brand, availability engine and checkout. Twelve days from first build to live.", tag: "Web platform", href: "#contact" },
];
function SelectedWork() {
  return (
    <section className="hp-work shell hp-rev" id="work">
      <h2 className="hp-h2">Live systems, in production.</h2>
      <div className="hp-work-list">
        {WORK.map((w) => (
          <a key={w.h} className="hp-work-row hp-stag" href={w.href}>
            <h3>{w.h}</h3>
            <p>{w.d}</p>
            <span className="hp-work-tag">{w.tag}</span>
          </a>
        ))}
      </div>
    </section>
  );
}

// ── Night mission panel — also THE contact moment (form lives here now; the
// separate Closing section was retired from the homepage 2026-06-11) ─────────
function Mission() {
  return (
    <section className="hp-night hp-rev" id="contact">
      <div className="hp-night-frame">
        <img src="assets/photo/night.jpg" alt="A snow ridge under a violet night sky" loading="lazy" />
        <div className="hp-night-in">
          <div className="hp-night-grid">
            <div className="hp-night-copy">
              <h2>See your business from up here.</h2>
              <p>Tell us where the friction is. We'll map where AI pays off, then build the system that proves it. Thirty minutes, no obligation, UK&#8209;based.</p>
              <a className="hp-night-mail" href="mailto:luke@zarco.uk">Or just email luke@zarco.uk</a>
            </div>
            <div className="hp-night-form">
              <ContactForm />
            </div>
          </div>
        </div>
      </div>
    </section>
  );
}

// ── App ──────────────────────────────────────────────────────────────────────
function App() {
  useEffectApp(() => {
    const io = new IntersectionObserver((es) => es.forEach((e) => { if (e.isIntersecting) { e.target.classList.add("in"); io.unobserve(e.target); } }), { threshold: 0.1 });
    document.querySelectorAll(".hp-rev").forEach((el) => io.observe(el));
    return () => io.disconnect();
  }, []);
  return (
    <div className="home-prem">
      <TopNav current="home" />
      <Hero />
      <Altitude />
      <Tools />
      <AgentDemo />
      <Offerings />
      <Proof />
      <Manifesto />
      <SelectedWork />
      <Mission />
      <Footer />
    </div>
  );
}

const homeCss = `
/* ── reveal motion ── */
.hp-rev{opacity:0;transform:translateY(24px);transition:opacity .9s var(--ease-out-quint,var(--ease)),transform .9s var(--ease-out-quint,var(--ease))}
.hp-rev.in{opacity:1;transform:none}
.hp-r{opacity:0;transform:translateY(18px);animation:hp-rise .85s var(--ease) both}
.hp-r2{animation-delay:.34s}.hp-r3{animation-delay:.5s}
@keyframes hp-rise{to{opacity:1;transform:none}}

/* signature entrance: headline lines rise and settle from a soft blur */
.hp-line{display:block;opacity:0;transform:translateY(34px);filter:blur(10px);animation:hp-line-in .9s var(--ease) both}
.hp-line1{animation-delay:.06s}
.hp-line2{animation-delay:.18s}
@keyframes hp-line-in{60%{filter:blur(0)}to{opacity:1;transform:none;filter:blur(0)}}

/* staggered children: when a revealed section lands, its rows cascade */
.hp-stag{opacity:0;transform:translateY(16px);transition:opacity .7s var(--ease),transform .7s var(--ease)}
.hp-rev.in .hp-stag{opacity:1;transform:none}
.hp-rev.in .hp-stag:nth-child(2){transition-delay:.07s}
.hp-rev.in .hp-stag:nth-child(3){transition-delay:.14s}
.hp-rev.in .hp-stag:nth-child(4){transition-delay:.21s}
.hp-rev.in .hp-stag:nth-child(5){transition-delay:.28s}
.hp-rev.in .hp-stag:nth-child(6){transition-delay:.34s}
.hp-rev.in .hp-stag:nth-child(7){transition-delay:.4s}
.hp-rev.in .hp-stag:nth-child(8){transition-delay:.46s}
.hp-rev.in .hp-stag:nth-child(9){transition-delay:.52s}

@media (prefers-reduced-motion: reduce){.hp-rev,.hp-r,.hp-line,.hp-stag{animation:none;opacity:1;transform:none;filter:none}}

.hp-dot{color:var(--magenta)}

/* ── hero ── */
.hp-hero{padding:clamp(56px,8vh,100px) 0 0;position:relative;isolation:isolate;overflow-x:clip}
/* aurora field: soft colour splashes lift the paper without leaving the light theme
   (Glean/Base44 move — pastel radial washes, never saturated blocks) */
.hp-hero::before{
  content:"";position:absolute;inset:-20% -10% -30%;z-index:-1;pointer-events:none;
  background:
    radial-gradient(36% 44% at 80% 16%, oklch(0.9 0.075 350 / .85), transparent 70%),
    radial-gradient(32% 40% at 10% 58%, oklch(0.91 0.06 235 / .75), transparent 70%),
    radial-gradient(28% 34% at 56% 88%, oklch(0.93 0.06 65 / .65), transparent 70%);
  filter:blur(44px);
}
.hp-h1{
  font-family:var(--font-display);font-weight:300;
  font-size:clamp(52px,7.4vw,104px);line-height:.98;letter-spacing:-.03em;
  margin:0;max-width:12ch;
}
.hp-turn{color:var(--ink-40)}
.hp-hero-row{display:flex;align-items:flex-end;justify-content:space-between;gap:48px;margin-top:36px;flex-wrap:wrap}
.hp-hero-sub{max-width:46ch;color:var(--ink-60);font-size:18px;line-height:1.55;margin:0}
.hp-hero-ctas{display:flex;align-items:center;gap:22px;padding-bottom:4px}
.hp-link-quiet{font-size:16px;color:var(--ink-60);text-decoration:none;border-bottom:1px solid var(--ink-40);padding-bottom:2px;transition:color .2s,border-color .2s}
.hp-link-quiet:hover{color:var(--magenta);border-color:var(--magenta);text-decoration:none}

/* hero top row: headline left, Claude Partner Network credential top-right */
.hp-hero-top{display:flex;align-items:flex-start;justify-content:space-between;gap:clamp(24px,5vw,64px)}
.hp-partner{display:inline-flex;align-items:center;gap:11px;flex-shrink:0;margin-top:12px}
.hp-partner-mark{width:27px;height:27px;color:#D97757;flex-shrink:0} /* official Claude brand colour */
.hp-partner-text{display:flex;flex-direction:column;line-height:1.22}
.hp-partner-name{font-family:var(--font-sans);font-weight:500;font-size:14px;letter-spacing:-.01em;color:var(--ink)}
.hp-partner-tier{font-family:var(--font-sans);font-weight:400;font-size:12.5px;color:var(--ink-60)}
.hp-r-badge{animation-delay:.26s}
@media (max-width:900px){
  .hp-hero-top{flex-direction:column-reverse;align-items:flex-start;gap:22px}
  .hp-partner{margin-top:0}
}

/* ── altitude photo panel + floating console ── */
/* full-width section; the frame grows from an inset card to full-bleed on scroll */
.hp-altitude{
  margin-top:clamp(44px,7vh,80px);position:relative;width:100%;
  --alt-inset:max(calc((100vw - 1200px) / 2 + 40px), 20px);
}
.hp-alt-frame{
  position:relative;overflow:hidden;min-height:clamp(440px,66vh,680px);background:#c9cdd2;
  /* static fallback: inset rounded card (browsers without scroll-driven animations) */
  margin:0 var(--alt-inset);border-radius:28px;
}
.hp-alt-frame img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:saturate(.55) contrast(1.04)}

/* scroll cinema: the page performs as you move. Photos wipe open and settle
   from a zoom, captions and the Console drift at their own rates, the manifesto
   inks in word by word. CSS scroll-driven animations where supported; static
   (already composed) elsewhere. */
@supports (animation-timeline: view()) {
  .hp-alt-frame img, .hp-night-frame img{
    transform:scale(1.1);
    animation:hp-dezoom 1ms linear both;
    animation-timeline:view();
    animation-range:entry 0% cover 55%;
  }
  /* the hero photo grows from an inset card to FULL-BLEED as you scroll into it */
  .hp-alt-frame{
    margin:0;border-radius:0;
    clip-path:inset(6% var(--alt-inset) round 32px);
    animation:hp-bleed 1ms linear both;
    animation-timeline:view();
    animation-range:entry 0% cover 60%;
  }
  /* layers drift at different rates over the hero photo */
  .hp-alt-cap{
    animation:hp-cap-drift 1ms linear both;
    animation-timeline:view();
    animation-range:entry 30% cover 60%;
  }
  .hp-console-wrap{
    animation:hp-console-drift 1ms linear both;
    animation-timeline:view();
    animation-range:entry 20% exit 0%;
  }
  .hp-proof-bg img{
    transform:scale(1.14) translateY(3%);
    animation:hp-dezoom 1ms linear both;
    animation-timeline:view();
    animation-range:entry 0% cover 70%;
  }
  .footer-watermark{
    transform:translateX(-50%) translateY(34%);
    animation:hp-wm-rise 1ms linear both;
    animation-timeline:view();
    animation-range:entry 0% cover 90%;
  }
  /* the hero drifts up and away the moment you start scrolling */
  .hp-hero .shell{
    animation:hp-hero-exit 1ms linear both;
    animation-timeline:view();
    animation-range:exit 0% exit 75%;
  }
  /* manifesto: words ink in sequence as the line crosses the read band
     (inline-block so each word is a real box that view() can track) */
  .hp-mw{
    display:inline-block;margin-right:.26em;
    animation:hp-word-ink 1ms linear both;
    animation-timeline:view();
    animation-range:entry calc(18% + var(--i,0) * 1.6%) entry calc(46% + var(--i,0) * 1.6%);
  }
  .hp-mw.hp-dot{animation-name:hp-word-magenta;margin-left:-.26em}
}
@keyframes hp-dezoom{to{transform:scale(1) translateY(0)}}
@keyframes hp-wm-rise{to{transform:translateX(-50%) translateY(0)}}
@keyframes hp-bleed{to{clip-path:inset(0 0 round 0)}}
@keyframes hp-cap-drift{from{transform:translateY(46px);opacity:.0}to{transform:none;opacity:1}}
@keyframes hp-console-drift{from{transform:translateY(54px)}to{transform:translateY(-16px)}}
@keyframes hp-word-ink{from{color:var(--ink-20)}to{color:var(--ink)}}
@keyframes hp-word-magenta{from{color:var(--ink-20)}to{color:var(--magenta)}}
@keyframes hp-hero-exit{from{opacity:1;transform:none}to{opacity:0;transform:translateY(-52px)}}
.hp-alt-frame::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(250,250,247,0) 38%,rgba(14,14,14,.38) 100%)}
.hp-alt-cap{position:absolute;left:calc(var(--alt-inset) + clamp(22px,3vw,40px));bottom:clamp(22px,3.4vw,40px);z-index:2;color:var(--panel-ink);max-width:30ch}
.hp-alt-cap p{font-family:var(--font-display);font-weight:300;font-size:clamp(22px,2.4vw,32px);line-height:1.12;letter-spacing:-.01em;margin:0}
.hp-alt-cap span{display:block;margin-top:10px;font-size:14px;color:var(--panel-ink-60)}

.hp-console-wrap{position:absolute;inset:0;z-index:3;pointer-events:none}
.hp-console-wrap > *{pointer-events:auto}
.hp-console{
  position:absolute;right:calc(var(--alt-inset) + clamp(2px,1.5vw,22px));bottom:-72px;z-index:3;
  width:min(420px,82vw);background:var(--panel);border-radius:18px;overflow:hidden;
  border:1px solid rgba(255,255,255,.08);
  box-shadow:0 40px 90px -30px rgba(14,14,14,.5);
  transition:transform .35s var(--ease),box-shadow .35s var(--ease);
}
.hp-console:hover{transform:translateY(-4px);box-shadow:0 52px 110px -34px rgba(14,14,14,.55)}
/* iridescent rim behind the floating Console (the "shiny product" moment) */
.hp-console-glow{
  position:absolute;right:calc(var(--alt-inset) - 18px);bottom:-112px;z-index:2;pointer-events:none;
  width:min(500px,92vw);height:360px;border-radius:40px;
  background:conic-gradient(from 210deg, oklch(0.72 0.19 350 / .6), oklch(0.75 0.12 290 / .45), oklch(0.8 0.1 230 / .5), oklch(0.72 0.19 350 / .6));
  filter:blur(34px);opacity:.65;
}
.hp-dot-busy{animation:hp-pulse 1.6s var(--ease) infinite}
@keyframes hp-pulse{0%,100%{box-shadow:0 0 0 0 rgba(255,0,102,.45)}55%{box-shadow:0 0 0 5px rgba(255,0,102,0)}}
.hp-con-head{display:flex;align-items:center;justify-content:space-between;padding:13px 17px;border-bottom:1px solid var(--panel-line)}
.hp-con-title{display:flex;align-items:center;gap:10px;color:var(--panel-ink);font-size:14px;font-weight:500}
.hp-zmark{width:22px;height:22px;border-radius:6px;background:var(--paper);display:inline-flex;align-items:center;justify-content:center;padding:3px}
.hp-zmark svg{width:100%;height:100%}
.hp-con-live{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--panel-ink-60)}
.hp-dot-ok{width:7px;height:7px;border-radius:50%;background:#2BD576;flex:none}
.hp-dot-busy{width:7px;height:7px;border-radius:50%;background:var(--magenta);flex:none}
.hp-con-body{padding:7px 9px}
.hp-con-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px;border-radius:10px}
.hp-con-row:hover{background:var(--panel-2)}
.hp-con-agent{display:flex;align-items:center;gap:11px}
.hp-con-av{width:30px;height:30px;border-radius:9px;background:var(--panel-2);display:inline-flex;overflow:hidden;border:1px solid var(--panel-line);flex:none}
.hp-con-av svg{width:100%;height:100%}
.hp-con-name{display:block;color:var(--panel-ink);font-size:14px;font-weight:500;line-height:1.2}
.hp-con-role{display:block;color:var(--panel-ink-40);font-size:12px}
.hp-con-state{font-size:12px;color:var(--panel-ink-60);display:flex;align-items:center;gap:7px;text-align:right}
.hp-con-foot{padding:12px 17px;border-top:1px solid var(--panel-line);display:flex;justify-content:space-between;align-items:center}
.hp-con-foot > span:first-child{font-size:12.5px;color:var(--panel-ink-40)}
.hp-con-review{font-size:12.5px;color:var(--panel-ink);background:rgba(255,255,255,.1);padding:6px 13px;border-radius:999px;border:1px solid var(--panel-line)}

/* ── tools marquee ── */
.hp-tools{padding:clamp(128px,16vh,168px) 0 0;text-align:center}
.hp-tools p{font-size:14px;color:var(--ink-40);margin:0}
.hp-marquee{
  margin-top:24px;overflow:hidden;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 12%,#000 88%,transparent);
  mask-image:linear-gradient(90deg,transparent,#000 12%,#000 88%,transparent);
}
.hp-marquee-track{
  display:inline-flex;gap:clamp(16px,2.4vw,28px);padding:6px 0;white-space:nowrap;
  animation:hp-marquee 46s linear infinite;will-change:transform;
}
.hp-marquee-track > :last-child{margin-right:clamp(16px,2.4vw,28px)}
.hp-marquee:hover .hp-marquee-track{animation-play-state:paused}
@keyframes hp-marquee{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@media (prefers-reduced-motion: reduce){.hp-marquee-track{animation:none}}
.hp-tool{flex:none;width:46px;height:46px;border-radius:13px;display:inline-flex;align-items:center;justify-content:center;background:var(--paper-pure);border:1px solid var(--ink-10);box-shadow:0 8px 18px -14px rgba(14,14,14,.25)}
.hp-tool svg{width:55%;height:55%}

/* ── agent demo (dark interlude on the summit) ── */
.hp-demo{margin-top:clamp(100px,14vh,160px);background:var(--panel);position:relative;overflow:hidden}
.hp-demo::before{
  content:"";position:absolute;inset:0;z-index:2;pointer-events:none;opacity:.05;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hp-demo-bg{position:absolute;inset:0;opacity:.45}
.hp-demo-bg img{width:100%;height:100%;object-fit:cover;filter:saturate(.3) brightness(.62)}
.hp-demo-bg::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,var(--panel) 0%,rgba(20,16,19,.2) 55%,var(--panel) 100%)}
.hp-demo-in{position:relative;z-index:3;padding-top:clamp(88px,12vh,136px);padding-bottom:clamp(88px,12vh,136px);display:grid;grid-template-columns:1fr minmax(380px,460px);gap:clamp(36px,6vw,88px);align-items:center}
.hp-demo-sub{color:var(--panel-ink-60);font-size:17.5px;line-height:1.55;max-width:44ch;margin:22px 0 0}
.hp-demo-points{display:flex;flex-direction:column;gap:22px;margin-top:clamp(30px,4vh,44px)}

.hp-chat{
  background:rgba(255,255,255,.045);border:1px solid var(--panel-line);border-radius:18px;
  overflow:hidden;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);
  box-shadow:0 40px 90px -36px rgba(0,0,0,.6);
}
.hp-chat-head{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-bottom:1px solid var(--panel-line)}
.hp-chat-id{display:flex;align-items:center;gap:11px}
.hp-chat-face{width:34px;height:34px;border-radius:10px;overflow:hidden;display:inline-flex;flex:none;background:var(--panel-2);border:1px solid var(--panel-line)}
.hp-chat-face svg{width:100%;height:100%}
.hp-chat-face-sm{width:28px;height:28px;border-radius:8px}
.hp-chat-name{display:block;color:var(--panel-ink);font-size:14px;font-weight:500;line-height:1.2}
.hp-chat-role{display:block;color:var(--panel-ink-40);font-size:12px}
.hp-chat-body{padding:16px;display:flex;flex-direction:column;gap:13px;height:330px;overflow-y:auto;scroll-behavior:smooth;scrollbar-width:none}
.hp-chat-body::-webkit-scrollbar{display:none}
.hp-msg{display:flex}
.hp-msg-user{justify-content:flex-end}
.hp-bub-user{background:var(--magenta);color:#fff;padding:9px 13px;border-radius:14px 14px 4px 14px;font-size:13.5px;line-height:1.45;max-width:84%;min-height:19px;box-shadow:0 8px 20px -12px rgba(255,0,102,.55)}
.hp-msg-bot{gap:10px;align-items:flex-start}
.hp-bot-main{flex:1;min-width:0}
.hp-bub-bot{background:rgba(255,255,255,.07);border:1px solid var(--panel-line);color:var(--panel-ink);border-radius:4px 14px 14px 14px;padding:10px 13px;font-size:13.5px;line-height:1.5}
.hp-working{display:flex;align-items:center;gap:8px;font-size:12.5px;color:var(--panel-ink-40);height:19px}
.hp-dots i{width:5px;height:5px;border-radius:50%;background:var(--magenta);display:inline-block;margin-right:3px;animation:hp-bnc 1s infinite}
.hp-dots i:nth-child(2){animation-delay:.15s}.hp-dots i:nth-child(3){animation-delay:.3s}
@keyframes hp-bnc{0%,80%,100%{transform:translateY(0);opacity:.4}40%{transform:translateY(-4px);opacity:1}}
.hp-srcs{margin-top:9px;display:flex;gap:6px;flex-wrap:wrap}
.hp-src{width:26px;height:26px;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;background:rgba(255,255,255,.92);flex:none}
.hp-src svg{width:60%;height:60%}
.hp-pillrow{display:flex;justify-content:flex-end;margin-top:2px}
.hp-pill-btn{font-family:var(--font-sans);font-size:12.5px;font-weight:600;color:#FF7AAE;background:rgba(255,0,102,.1);border:1px solid rgba(255,0,102,.4);border-radius:999px;padding:7px 14px;cursor:pointer;transition:background .15s,color .15s}
.hp-pill-btn:hover{background:var(--magenta);color:#fff}
@media (prefers-reduced-motion: reduce){.hp-dots i{animation:none}}

/* ── offerings ── */
.hp-off{padding-top:clamp(90px,12vh,150px)}
.hp-kicker{font-size:15px;color:var(--ink-40);margin:0 0 16px}
.hp-off-row{
  display:grid;grid-template-columns:1.1fr 1fr auto;gap:32px;align-items:baseline;
  padding:clamp(26px,4vh,38px) 0;border-top:1px solid var(--ink-10);
  text-decoration:none;color:inherit;
}
.hp-off-row:hover{text-decoration:none}
.hp-off-row:last-of-type{border-bottom:1px solid var(--ink-10)}
.hp-off-row h3{font-family:var(--font-display);font-weight:400;font-size:clamp(28px,3.2vw,42px);letter-spacing:-.02em;line-height:1.05;margin:0}
.hp-off-flagship h3{font-size:clamp(34px,4.2vw,54px);font-weight:300}
.hp-off-row p{color:var(--ink-60);font-size:16.5px;line-height:1.55;max-width:42ch;margin:0}
.hp-off-tag{display:block;font-family:var(--font-sans);font-size:13px;color:var(--magenta);font-weight:500;margin-bottom:8px;letter-spacing:0}
.hp-off-arrow{font-family:var(--font-display);font-size:24px;color:var(--ink-40);transition:transform .25s var(--ease),color .2s}
.hp-off-row:hover .hp-off-arrow{transform:translateX(6px);color:var(--magenta)}
.hp-off-row:hover h3{color:var(--ink)}

/* ── proof (dark interlude) ── */
.hp-proof{margin-top:clamp(100px,14vh,160px);background:var(--panel);position:relative;overflow:hidden}
/* film grain on the dark interludes so they read as photographic, not flat fill */
.hp-proof::before,.hp-night-frame::before{
  content:"";position:absolute;inset:0;z-index:2;pointer-events:none;opacity:.05;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hp-proof-bg{position:absolute;inset:0;opacity:.62}
.hp-proof-bg img{width:100%;height:100%;object-fit:cover;filter:saturate(.45) brightness(.66)}
.hp-proof-bg::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,var(--panel) 0%,rgba(20,16,19,.12) 58%,var(--panel) 100%)}
.hp-proof-in{position:relative;z-index:2;padding-top:clamp(88px,12vh,136px);padding-bottom:clamp(88px,12vh,136px)}
.hp-h2-dark{
  font-family:var(--font-display);font-weight:300;color:var(--panel-ink);
  font-size:clamp(44px,5.4vw,74px);letter-spacing:-.025em;line-height:1;margin:0;max-width:16ch;
}
.hp-proof-sub{color:var(--panel-ink-60);font-size:17.5px;line-height:1.55;max-width:52ch;margin:22px 0 0}
.hp-stage{margin-top:clamp(40px,6vh,60px);display:grid;grid-template-columns:1.5fr 1fr;gap:18px;align-items:stretch}
.hp-stage-card{background:rgba(255,255,255,.045);border:1px solid var(--panel-line);border-radius:18px;overflow:hidden;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.hp-sc-head{padding:13px 17px;border-bottom:1px solid var(--panel-line);display:flex;justify-content:space-between;align-items:center;gap:12px}
.hp-sc-head span{color:var(--panel-ink);font-size:14px;font-weight:500}
.hp-sc-head em{font-style:normal;font-size:12px;color:var(--panel-ink-40)}
.hp-run{padding:5px 9px 9px}
.hp-run-line{display:flex;gap:12px;padding:10px;border-radius:10px;align-items:flex-start;opacity:0;transform:translateY(10px);transition:opacity .55s var(--ease),transform .55s var(--ease)}
.hp-rev.in .hp-run-line{opacity:1;transform:none}
.hp-rev.in .hp-run-line:nth-child(1){transition-delay:.25s}
.hp-rev.in .hp-run-line:nth-child(2){transition-delay:.45s}
.hp-rev.in .hp-run-line:nth-child(3){transition-delay:.65s}
.hp-badge-wait{animation:hp-badge-glow 2.4s var(--ease) infinite}
@keyframes hp-badge-glow{0%,100%{box-shadow:0 0 0 0 rgba(255,0,102,0)}50%{box-shadow:0 0 14px -2px rgba(255,0,102,.35)}}
@media (prefers-reduced-motion: reduce){.hp-run-line{opacity:1;transform:none}.hp-dot-busy,.hp-badge-wait{animation:none}}
.hp-run-line:hover{background:rgba(255,255,255,.05)}
.hp-run-t{font-family:var(--font-mono);font-size:11.5px;color:var(--panel-ink-40);padding-top:3px;white-space:nowrap}
.hp-run-msg{color:var(--panel-ink);font-size:14px;line-height:1.45;flex:1}
.hp-run-msg small{display:block;color:var(--panel-ink-40);font-size:12.5px;margin-top:2px}
.hp-badge{margin-left:auto;font-size:11.5px;color:var(--panel-ink-60);border:1px solid var(--panel-line);border-radius:999px;padding:3px 10px;white-space:nowrap;flex:none}
.hp-badge-ok{color:#2BD576;border-color:rgba(43,213,118,.35)}
.hp-badge-wait{color:#FF7AAE;border-color:rgba(255,0,102,.4)}
.hp-skill{display:inline-flex;align-items:center;gap:7px;background:rgba(255,0,102,.12);border:1px solid rgba(255,0,102,.3);color:#FF7AAE;font-size:12px;border-radius:999px;padding:3px 11px;margin-top:6px}
.hp-claims{display:flex;gap:clamp(24px,5vw,64px);margin-top:clamp(38px,6vh,54px);flex-wrap:wrap}
.hp-claim{max-width:24ch}
.hp-claim b{display:block;color:var(--panel-ink);font-weight:500;font-size:15.5px;margin-bottom:6px}
.hp-claim span{color:var(--panel-ink-40);font-size:14px;line-height:1.5}

/* ── manifesto ── */
.hp-manifesto{padding-top:clamp(104px,14vh,170px)}
.hp-manifesto-lead{
  font-family:var(--font-display);font-weight:300;
  font-size:clamp(38px,4.6vw,62px);letter-spacing:-.025em;line-height:1.08;
  max-width:22ch;margin:0;
}
.hp-manifesto-lead b{font-weight:500}
.hp-manifesto-aside{margin:26px 0 0;color:var(--ink-60);font-size:16px;line-height:1.55;max-width:52ch}

/* ── work ── */
.hp-work{padding-top:clamp(96px,12vh,150px);overflow-x:clip}
.hp-h2{font-family:var(--font-display);font-weight:300;font-size:clamp(40px,4.8vw,62px);letter-spacing:-.025em;line-height:1;margin:0}
.hp-work-list{margin-top:clamp(34px,5vh,48px)}
.hp-work-row{
  display:grid;grid-template-columns:1.4fr 1.6fr auto;gap:32px;align-items:center;
  padding:28px 0;border-top:1px solid var(--ink-10);text-decoration:none;color:inherit;
}
/* ledger rows slide in from alternating sides */
.hp-work-list .hp-stag:nth-child(odd){transform:translateX(-36px)}
.hp-work-list .hp-stag:nth-child(even){transform:translateX(36px)}
.hp-rev.in .hp-work-list .hp-stag{transform:none}
.hp-work-row:hover{text-decoration:none}
.hp-work-row:last-of-type{border-bottom:1px solid var(--ink-10)}
.hp-work-row h3{font-family:var(--font-display);font-weight:400;font-size:clamp(22px,2.3vw,29px);letter-spacing:-.015em;line-height:1.15;margin:0;transition:color .2s}
.hp-work-row:hover h3{color:var(--magenta)}
.hp-work-row p{color:var(--ink-60);font-size:15.5px;line-height:1.5;max-width:48ch;margin:0}
.hp-work-tag{font-size:13px;color:var(--ink-60);border:1px solid var(--ink-10);padding:6px 14px;border-radius:999px;white-space:nowrap}

/* ── night mission panel (grows to full-bleed like the hero photo) ── */
.hp-night{
  margin-top:clamp(110px,15vh,180px);width:100%;
  --alt-inset:max(calc((100vw - 1200px) / 2 + 40px), 20px);
}
.hp-night-frame{
  position:relative;overflow:hidden;
  min-height:clamp(460px,64vh,640px);display:flex;align-items:flex-end;background:var(--panel);
  /* full-bleed the whole time (Luke 2026-06-11: no fold-open here, unlike the hero) */
  margin:0;border-radius:0;
}
.hp-night-frame img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:saturate(.75) brightness(.8)}
.hp-night-frame::after{content:"";position:absolute;inset:0;background:linear-gradient(200deg,rgba(14,14,14,.05) 0%,rgba(14,14,14,.66) 78%)}
.hp-night-in{position:relative;z-index:3;padding:clamp(34px,5vw,64px) calc(var(--alt-inset) + clamp(20px,3vw,44px));color:var(--panel-ink);width:100%}
.hp-night-grid{display:grid;grid-template-columns:1.2fr minmax(350px,430px);gap:clamp(32px,5vw,72px);align-items:end}
.hp-night-copy h2{
  font-family:var(--font-display);font-weight:300;
  font-size:clamp(40px,4.8vw,68px);letter-spacing:-.028em;line-height:.98;margin:0;max-width:13ch;
}
.hp-night-copy p{color:var(--panel-ink-60);max-width:44ch;font-size:17px;line-height:1.55;margin:26px 0 0}
.hp-night-mail{display:inline-block;margin-top:18px;font-size:15px;color:var(--panel-ink);text-decoration:none;border-bottom:1px solid var(--panel-line);padding-bottom:2px;transition:color .2s,border-color .2s}
.hp-night-mail:hover{color:#FF7AAE;border-color:#FF7AAE;text-decoration:none}
/* the form card floats on the night sky */
.hp-night-form .contact-card{box-shadow:0 40px 90px -36px rgba(0,0,0,.7);border:none}

@media (max-width: 900px){
  .hp-hero-row{flex-direction:column;align-items:flex-start}
  .hp-console-wrap{position:static;animation:none}
  .hp-console{position:relative;right:auto;bottom:auto;margin:-56px auto 0;display:block}
  .hp-tools{padding-top:64px}
  .hp-off-row{grid-template-columns:1fr;gap:10px}
  .hp-demo-in{grid-template-columns:1fr}
  .hp-stage{grid-template-columns:1fr}
  .hp-work-row{grid-template-columns:1fr;gap:8px;align-items:start}
  .hp-night-grid{grid-template-columns:1fr}
  .hp-night-frame{min-height:520px}
}
`;

window.App = App;
window.homeCss = homeCss;
