/* ===========================================================================
   OPS.CONSOLE — light premium portfolio (navy + gold)
   Committed light world; a navy dark variant is provided via tokens so the
   viewer's theme toggle never breaks the page.
   =========================================================================== */

:root {
  --f-display: "Inter", -apple-system, "Segoe UI", system-ui, sans-serif;
  --f-body: "Inter", -apple-system, "Segoe UI", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", "Cascadia Code", Consolas, ui-monospace, monospace;

  --step--1: clamp(0.76rem, 0.72rem + 0.16vw, 0.83rem);
  --step-0: clamp(0.98rem, 0.94rem + 0.2vw, 1.06rem);
  --step-1: clamp(1.12rem, 1.02rem + 0.5vw, 1.32rem);
  --step-2: clamp(1.5rem, 1.25rem + 1.2vw, 2.1rem);
  --step-3: clamp(2rem, 1.55rem + 2.2vw, 3.1rem);
  --step-4: clamp(2.5rem, 1.7rem + 4vw, 4.6rem);

  --wrap: 1120px;
  --radius: 18px;
  --radius-sm: 12px;

  /* brand + semantic (constant across themes) */
  --navy: #1e3a63;
  --navy-deep: #14284a;
  --gold: #f2c14e;
  --gold-deep: #d99e2b;
  --gold-ink: #8a6410;

  --live: #16a34a;
  --live-soft: #e7f6ec;
  --pending: #d9891f;
  --pending-soft: #fbf0dc;
  --planned: #64748b;
  --planned-soft: #eef1f6;
  --reason: #7c3aed;
  --reason-soft: #f1ebfd;
  --auto: #a45f53;
  --auto-soft: #f5ece9;

  /* light ground */
  --bg: #ffffff;
  --bg-soft: #f3f7fc;
  --panel: #ffffff;
  --panel-2: #f7fafd;
  --line: #e5ebf3;
  --line-2: #d5deeb;
  --ink: #0f1c34;
  --body: #384864;
  --muted: #6a788f;
  --faint: #93a0b5;

  --shadow-sm: 0 2px 8px -2px rgba(20, 40, 74, 0.1);
  --shadow: 0 20px 46px -22px rgba(20, 40, 74, 0.28);
  --shadow-lg: 0 34px 70px -30px rgba(20, 40, 74, 0.34);
  --glow-blue: rgba(96, 165, 250, 0.28);
  --glow-gold: rgba(242, 193, 78, 0.3);
  --ring: rgba(30, 58, 99, 0.4);
}

/* Light is the committed default (the Agentcy look). A navy dark variant is
   available only when the viewer explicitly toggles theme (data-theme="dark"),
   not from OS preference — so the intended light design always shows first. */
:root[data-theme="light"] {
  --bg: #ffffff; --bg-soft: #f3f7fc; --panel: #ffffff; --panel-2: #f7fafd;
  --line: #e5ebf3; --line-2: #d5deeb; --ink: #0f1c34; --body: #384864;
  --muted: #6a788f; --faint: #93a0b5;
  --live-soft: #e7f6ec; --pending-soft: #fbf0dc; --planned-soft: #eef1f6; --reason-soft: #f1ebfd;
  --shadow-sm: 0 2px 8px -2px rgba(20, 40, 74, 0.1);
  --shadow: 0 20px 46px -22px rgba(20, 40, 74, 0.28);
  --shadow-lg: 0 34px 70px -30px rgba(20, 40, 74, 0.34);
  --glow-blue: rgba(96, 165, 250, 0.28); --glow-gold: rgba(242, 193, 78, 0.3);
}
:root[data-theme="dark"] {
  --bg: #0a1526; --bg-soft: #0c1a30; --panel: #101f39; --panel-2: #0d1a30;
  --line: #1d2f4c; --line-2: #294064; --ink: #eef3fb; --body: #b9c6dc;
  --muted: #8496b2; --faint: #5f7192;
  --live-soft: rgba(22, 163, 74, 0.16); --pending-soft: rgba(217, 137, 31, 0.18);
  --planned-soft: rgba(100, 116, 139, 0.18); --reason-soft: rgba(124, 58, 237, 0.22);
  --auto: #d29385; --auto-soft: rgba(164, 95, 83, 0.22);
  --shadow-sm: 0 2px 10px -2px rgba(0, 0, 0, 0.5);
  --shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.66);
  --shadow-lg: 0 34px 70px -28px rgba(0, 0, 0, 0.72);
  --glow-blue: rgba(96, 165, 250, 0.2); --glow-gold: rgba(242, 193, 78, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--f-body);
  font-size: var(--step-0);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.wrap { width: min(var(--wrap), 100% - 2.6rem); margin-inline: auto; }
a { color: inherit; text-decoration: none; }

.skip-link {
  position: fixed; top: -60px; left: 12px; z-index: 100;
  background: var(--navy); color: var(--gold); padding: 0.6rem 1rem;
  border-radius: 10px; font-family: var(--f-mono); font-size: 0.8rem; font-weight: 600; transition: top 0.18s ease;
}
.skip-link:focus { top: 12px; }
:where(a, button, [tabindex]):focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: 8px; }

/* labels ----------------------------------------------------------------- */
.eyebrow {
  font-family: var(--f-mono); font-size: var(--step--1); font-weight: 600;
  letter-spacing: 0.2em; color: var(--gold-ink); margin: 0 0 0.85rem; text-transform: uppercase;
}
:root[data-theme="dark"] .eyebrow { color: var(--gold); }

.eyebrow-pill {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--f-mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--navy);
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 999px;
  padding: 0.5rem 0.95rem; box-shadow: var(--shadow-sm);
}
:root[data-theme="dark"] .eyebrow-pill { color: var(--ink); }
.eyebrow-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--glow-gold); }

.section-title { font-family: var(--f-display); font-weight: 800; font-size: var(--step-3); line-height: 1.04; letter-spacing: -0.03em; color: var(--ink); margin: 0; text-wrap: balance; }
.section-head { max-width: 60ch; margin: 0 auto 2.6rem; text-align: center; }
.section-lede { color: var(--muted); margin: 1rem auto 0; max-width: 58ch; font-size: var(--step-1); }

/* nav -------------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(14px) saturate(1.4);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--f-mono); font-weight: 600; letter-spacing: 0.04em; color: var(--ink); }
.brand__mark { width: 22px; height: 22px; border-radius: 7px; background: linear-gradient(135deg, var(--navy), var(--navy-deep)); position: relative; box-shadow: var(--shadow-sm); flex: none; }
.brand__mark::after { content: ""; position: absolute; inset: 0; margin: auto; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.nav__links { display: flex; align-items: center; gap: 1.7rem; font-size: 0.92rem; font-weight: 500; }
.nav__links a:not(.btn) { color: var(--muted); transition: color 0.16s ease; }
.nav__links a:not(.btn):hover { color: var(--ink); }
@media (max-width: 640px) { .nav__links a:not(.btn) { display: none; } }

/* buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--f-body); font-size: 1rem; font-weight: 700;
  padding: 0.95rem 1.6rem; border-radius: 12px; cursor: pointer;
  border: 1.5px solid transparent; transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.btn--sm { font-size: 0.9rem; padding: 0.6rem 1.05rem; border-radius: 10px; }
.btn--primary { background: var(--navy); color: var(--gold); border-color: var(--navy); box-shadow: 0 14px 28px -14px rgba(20, 40, 74, 0.6); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 20px 34px -14px rgba(20, 40, 74, 0.6); background: var(--navy-deep); }
.btn--ghost { background: var(--panel); border-color: var(--line-2); color: var(--navy); box-shadow: var(--shadow-sm); }
:root[data-theme="dark"] .btn--ghost { color: var(--ink); }
.btn--ghost:hover { transform: translateY(-2px); border-color: var(--navy); }
.btn__arrow { transition: transform 0.16s ease; }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* hero ------------------------------------------------------------------- */
.hero { position: relative; padding: clamp(3rem, 8vw, 6rem) 0 clamp(2rem, 5vw, 4rem); overflow: hidden; }
.hero__glow {
  position: absolute; inset: -10% 0 auto 0; height: 640px; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 60% at 50% 0%, var(--glow-blue), transparent 68%),
    radial-gradient(40% 50% at 82% 8%, var(--glow-gold), transparent 70%),
    radial-gradient(34% 44% at 12% 6%, rgba(124, 58, 237, 0.16), transparent 72%);
}
.hero__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero__title { font-family: var(--f-display); font-weight: 800; font-size: var(--step-4); line-height: 1.01; letter-spacing: -0.035em; color: var(--ink); margin: 1.4rem 0 0; max-width: 15ch; text-wrap: balance; }
.hero__sub { color: var(--muted); font-size: var(--step-1); max-width: 56ch; margin: 1.3rem 0 0; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.85rem; justify-content: center; margin-top: 2rem; }

.legend { list-style: none; margin: 2rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem 1.8rem; justify-content: center; font-family: var(--f-mono); font-size: 0.78rem; color: var(--muted); }
.legend li { display: inline-flex; align-items: center; gap: 0.55rem; }

/* console mockup --------------------------------------------------------- */
.console {
  width: min(760px, 100%); margin: clamp(2.4rem, 5vw, 3.6rem) auto 0;
  border: 1px solid var(--line-2); border-radius: var(--radius);
  background: var(--panel); box-shadow: var(--shadow-lg); overflow: hidden; text-align: left;
}
.console__chrome { display: flex; align-items: center; gap: 0.6rem; padding: 0.8rem 1.1rem; border-bottom: 1px solid var(--line); background: var(--panel-2); font-family: var(--f-mono); font-size: 0.76rem; color: var(--faint); }
.console__dots { display: inline-flex; gap: 0.4rem; }
.console__dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }
.console__dots i:nth-child(1) { background: #ff6058; } .console__dots i:nth-child(2) { background: #ffbe2e; } .console__dots i:nth-child(3) { background: #29c740; }
.console__title { margin-left: 0.4rem; }
.console__pulse { margin-left: auto; display: inline-flex; align-items: center; gap: 0.4rem; color: var(--live); font-weight: 600; }
.console__pulse i { width: 7px; height: 7px; border-radius: 50%; background: var(--live); box-shadow: 0 0 8px var(--live); animation: blink 1.6s steps(1) infinite; }

.console__body { padding: 0.85rem; display: flex; flex-direction: column; gap: 0.55rem; min-height: 300px; }
.ticket { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.75rem; padding: 0.7rem 0.85rem; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); font-size: 0.88rem; animation: ticket-in 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.ticket__id { font-family: var(--f-mono); font-size: 0.74rem; color: var(--faint); }
.ticket__txt { color: var(--ink); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ticket__state { font-family: var(--f-mono); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.03em; padding: 0.24rem 0.55rem; border-radius: 999px; white-space: nowrap; display: inline-flex; align-items: center; gap: 0.35rem; text-transform: uppercase; }
.ticket__state::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ticket[data-state="incoming"] .ticket__state { color: var(--planned); background: var(--planned-soft); }
.ticket[data-state="reasoning"] .ticket__state { color: var(--reason); background: var(--reason-soft); }
.ticket[data-state="escalated"] .ticket__state { color: var(--pending); background: var(--pending-soft); }
.ticket[data-state="resolved"] { border-color: color-mix(in srgb, var(--live) 34%, var(--line)); }
.ticket[data-state="resolved"] .ticket__state { color: var(--live); background: var(--live-soft); }
.ticket.is-leaving { animation: ticket-out 0.5s ease forwards; }

.console__foot { display: flex; align-items: center; gap: 1.3rem; padding: 0.85rem 1.1rem; border-top: 1px solid var(--line); background: var(--panel-2); font-family: var(--f-mono); font-size: 0.76rem; color: var(--muted); }
.console__foot b { color: var(--ink); font-variant-numeric: tabular-nums; }
.console__foot-live { margin-left: auto; display: inline-flex; align-items: center; gap: 0.4rem; color: var(--live); }
.console__foot-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--live); animation: blink 1.6s steps(1) infinite; }

/* proof strip ------------------------------------------------------------ */
.proof { padding: clamp(2rem, 5vw, 3.6rem) 0; }
.proof__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.6rem 1.5rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 0.5rem; position: relative; overflow: hidden; }
.stat::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--gold), transparent); opacity: 0; transition: opacity 0.2s ease; }
.stat:hover::before { opacity: 1; }
.stat__eyebrow { font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.12em; color: var(--muted); text-transform: uppercase; }
.stat__value { font-family: var(--f-display); font-weight: 800; font-size: var(--step-2); letter-spacing: -0.03em; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat__value--accent { color: var(--navy); }
:root[data-theme="dark"] .stat__value--accent { color: var(--gold); }
.stat__sub { font-size: 0.82rem; color: var(--faint); }
@media (max-width: 760px) { .proof__grid { grid-template-columns: repeat(2, 1fr); } }

/* agents / tabs ---------------------------------------------------------- */
.agents { padding: clamp(2.4rem, 6vw, 4.4rem) 0; }
.tabs { display: flex; gap: 0.8rem; overflow-x: auto; padding: 0.3rem 0.2rem 0.9rem; margin-bottom: 1.6rem; scrollbar-width: thin; scroll-snap-type: x proximity; justify-content: flex-start; }
@media (min-width: 940px) { .tabs { justify-content: center; flex-wrap: wrap; overflow: visible; } }
.tab {
  flex: 0 0 auto; scroll-snap-align: start; cursor: pointer; text-align: left;
  min-width: 216px; max-width: 260px; padding: 1rem 1.1rem;
  background: var(--panel); border: 1.5px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-sm); color: var(--muted);
  transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
  display: flex; flex-direction: column; gap: 0.6rem;
}
.tab:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.tab[aria-selected="true"] { border-color: var(--navy); box-shadow: 0 14px 30px -16px rgba(20, 40, 74, 0.4); }
.tab[aria-selected="true"].is-reasoning { border-color: var(--reason); }
.tab__top { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.tab__co { font-family: var(--f-mono); font-size: 0.7rem; color: var(--faint); letter-spacing: 0.03em; }
.tab__name { font-family: var(--f-display); font-weight: 700; font-size: 1rem; color: var(--ink); line-height: 1.18; letter-spacing: -0.01em; }
.tab__plain { margin: 0.5rem 0 0.2rem; font-size: 0.9rem; line-height: 1.5; color: var(--body); }
.tab__meta { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }

/* pills, tags, chips ----------------------------------------------------- */
.pill { font-family: var(--f-mono); font-size: 0.65rem; font-weight: 600; letter-spacing: 0.05em; padding: 0.26rem 0.55rem; border-radius: 999px; display: inline-flex; align-items: center; gap: 0.4rem; text-transform: uppercase; white-space: nowrap; border: 1px solid transparent; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.pill--live { color: var(--live); background: var(--live-soft); border-color: color-mix(in srgb, var(--live) 26%, transparent); }
.pill--live::before { box-shadow: 0 0 7px var(--live); animation: blink 1.7s steps(1) infinite; }
.pill--in-progress { color: var(--pending); background: var(--pending-soft); border-color: color-mix(in srgb, var(--pending) 30%, transparent); }
.pill--planned { color: var(--planned); background: var(--planned-soft); border-color: color-mix(in srgb, var(--planned) 26%, transparent); }

.tag { font-family: var(--f-mono); font-size: 0.63rem; font-weight: 600; letter-spacing: 0.04em; padding: 0.26rem 0.5rem; border-radius: 7px; white-space: nowrap; border: 1px solid transparent; display: inline-flex; align-items: center; gap: 0.35rem; }
.tag--reasoning { color: var(--reason); background: var(--reason-soft); border-color: color-mix(in srgb, var(--reason) 30%, transparent); }
.tag--reasoning::before { content: "◇"; font-size: 0.72em; }
.tag--automation { color: var(--auto); background: var(--auto-soft); border-color: color-mix(in srgb, var(--auto) 30%, transparent); }
.tag--automation::before { content: "▚"; font-size: 0.72em; }

.chip { font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.02em; color: var(--body); padding: 0.3rem 0.6rem; border: 1px solid var(--line-2); border-radius: 8px; background: var(--panel-2); white-space: normal; overflow-wrap: anywhere; }

/* case study ------------------------------------------------------------- */
.case { min-height: 320px; }
.case__card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; box-shadow: var(--shadow); animation: fade-up 0.35s ease both; }
.case__hd { padding: clamp(1.5rem, 3vw, 2.2rem); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--panel-2), transparent); }
.case__nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.1rem; margin: 0 0 1.1rem; font-family: var(--f-mono); font-size: 0.74rem; }
.case__nav a { color: var(--muted); text-decoration: none; transition: color 0.16s ease; }
.case__nav a:hover { color: var(--navy); }
.case__nav a:first-child { color: var(--navy); font-weight: 600; }
.case__eyebrows { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-bottom: 1.05rem; }
.case__co { font-family: var(--f-mono); font-size: 0.74rem; color: var(--faint); letter-spacing: 0.06em; text-transform: uppercase; }
.case__title { font-family: var(--f-display); font-weight: 800; font-size: var(--step-2); letter-spacing: -0.03em; color: var(--ink); margin: 0 0 0.7rem; line-height: 1.08; }
.case__summary { color: var(--muted); font-size: clamp(0.95rem, 0.91rem + 0.22vw, 1.04rem); line-height: 1.55; max-width: 66ch; margin: 0; }

.case__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 0; }
/* builds with no demo video and no repo link: narrow side, so code + screenshots get the room */
.case__grid--tight { grid-template-columns: minmax(0, 1fr) 240px; }
.case__grid--tight .case__side { padding-left: 1.4rem; padding-right: 1.4rem; }
@media (max-width: 880px) { .case__grid, .case__grid--tight { grid-template-columns: 1fr; } .case__side { border-left: 0 !important; border-top: 1px solid var(--line); } }
.case__main { min-width: 0; padding: clamp(1.5rem, 3vw, 2.2rem); display: flex; flex-direction: column; gap: 2rem; }
.case__side { min-width: 0; padding: clamp(1.5rem, 3vw, 2.2rem); border-left: 1px solid var(--line); background: var(--panel-2); display: flex; flex-direction: column; gap: 1.8rem; }
.case__grid { min-width: 0; }
.block { min-width: 0; }

.block .block__label { font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--navy); margin: 0 0 1.4rem; display: flex; align-items: center; gap: 0.5rem; }
:root[data-theme="dark"] .block__label { color: var(--gold); }
.block__label::before { content: ""; width: 16px; height: 2px; border-radius: 2px; background: var(--gold); }
.block p { margin: 0; color: var(--body); }
.block--problem p { color: var(--muted); }

.arch { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.85rem; counter-reset: step; }
.arch li { position: relative; padding-left: 2.6rem; color: var(--body); font-size: 0.96rem; line-height: 1.55; counter-increment: step; }
.arch li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: -0.05rem; font-family: var(--f-mono); font-size: 0.72rem; font-weight: 700; color: var(--navy); background: var(--panel-2); border: 1.5px solid var(--line-2); width: 1.85rem; height: 1.6rem; border-radius: 8px; display: grid; place-items: center; }
.case--reasoning .arch li::before { color: var(--reason); border-color: color-mix(in srgb, var(--reason) 34%, var(--line-2)); background: var(--reason-soft); }
.case--reasoning .block__label { color: var(--reason); }
.case--reasoning .block__label::before { background: var(--reason); }

.toolset { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.limits { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.limits li { position: relative; padding-left: 1.6rem; color: var(--muted); font-size: 0.9rem; line-height: 1.5; }
.limits li::before { content: "!"; position: absolute; left: 0.15rem; top: 0; font-family: var(--f-mono); font-weight: 700; color: var(--pending); }

.media { display: flex; flex-direction: column; gap: 0.7rem; }
.media__frame { border: 1.5px dashed var(--line-2); border-radius: 12px; background: var(--panel-2); aspect-ratio: 16 / 9; display: grid; place-items: center; text-align: center; color: var(--faint); font-family: var(--f-mono); font-size: 0.74rem; padding: 1rem; gap: 0.35rem; }
.media__frame b { color: var(--muted); font-weight: 700; }
.media img, .media video { width: 100%; border-radius: 12px; border: 1px solid var(--line); display: block; }

.case__empty { padding: 2.6rem; text-align: center; color: var(--muted); border: 1.5px dashed var(--line-2); border-radius: var(--radius); font-family: var(--f-mono); font-size: 0.86rem; }
.case__empty code { color: var(--navy); }

/* footer ----------------------------------------------------------------- */
.footer { border-top: 1px solid var(--line); background: var(--bg-soft); margin-top: 1.5rem; }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 0.7rem; text-align: center; padding: 2.6rem 0 3rem; }
.footer__note { color: var(--muted); font-family: var(--f-mono); font-size: 0.8rem; margin: 0; }
.footer__legal { color: var(--faint); font-size: 0.76rem; margin: 0; }

/* motion ----------------------------------------------------------------- */
@keyframes blink { 0%, 60% { opacity: 1; } 61%, 100% { opacity: 0.25; } }
@keyframes ticket-in { from { opacity: 0; transform: translateY(8px) scale(0.99); } to { opacity: 1; transform: none; } }
@keyframes ticket-out { to { opacity: 0; transform: translateX(14px); height: 0; margin: 0; padding-block: 0; border-width: 0; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ===== richer case study: results, diagram, build notes, demo, repo ===== */
.case__actions { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 1.15rem; }
.linkbtn { font-family: var(--f-mono); font-size: 0.76rem; font-weight: 600; color: var(--navy); background: var(--panel); border: 1px solid var(--line-2); border-radius: 9px; padding: 0.5rem 0.9rem; display: inline-flex; align-items: center; gap: 0.45rem; transition: border-color 0.16s ease, transform 0.16s ease; }
.linkbtn:hover { border-color: var(--navy); transform: translateY(-1px); }
.linkbtn--play::before { content: "\25B6"; font-size: 0.66em; }
.linkbtn--repo::before { content: "</>"; font-weight: 700; }
:root[data-theme="dark"] .linkbtn { color: var(--ink); }

/* results band (proof first) */
.results { padding: clamp(1.3rem, 3vw, 1.9rem) clamp(1.5rem, 3vw, 2.2rem); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, color-mix(in srgb, var(--gold) 8%, var(--panel)), var(--panel)); }
.results__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
@media (max-width: 620px) { .results__grid { grid-template-columns: 1fr; gap: 0.9rem; } }
.metric { display: flex; flex-direction: column; gap: 0.3rem; }
.metric__value { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); letter-spacing: -0.03em; color: var(--navy); line-height: 1; font-variant-numeric: tabular-nums; }
:root[data-theme="dark"] .metric__value { color: var(--gold); }
.metric__label { font-size: 0.82rem; color: var(--muted); }
.results__note { margin: 1.05rem 0 0; font-family: var(--f-mono); font-size: 0.72rem; color: var(--faint); }

/* VP-framed hook */
.block .hook { font-family: var(--f-display); font-weight: 700; font-size: var(--step-1); color: var(--ink); letter-spacing: -0.01em; margin: 0 0 0.95rem; padding-left: 0.9rem; border-left: 3px solid var(--gold); }

/* auto architecture diagram */
.diagram { margin: 0 0 1.6rem; padding: 0; display: flex; flex-direction: column; align-items: stretch; }
.dnode { display: flex; align-items: center; gap: 0.7rem; padding: 0.7rem 0.85rem; border: 1px solid var(--line-2); border-left-width: 4px; border-radius: 10px; background: var(--panel); box-shadow: var(--shadow-sm); }
.dnode__tag { font-family: var(--f-mono); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.05em; padding: 0.22rem 0.4rem; border-radius: 5px; background: var(--panel-2); color: var(--muted); flex: none; min-width: 3.3rem; text-align: center; }
.dnode__label { font-size: 0.9rem; color: var(--ink); font-weight: 500; }
.dnode[data-type="trigger"] { border-left-color: var(--navy); } .dnode[data-type="trigger"] .dnode__tag { color: var(--navy); }
.dnode[data-type="rule"] { border-left-color: var(--planned); }
.dnode[data-type="tool"] { border-left-color: #2563eb; } .dnode[data-type="tool"] .dnode__tag { color: #2563eb; }
.dnode[data-type="llm"] { border-left-color: var(--reason); } .dnode[data-type="llm"] .dnode__tag { color: var(--reason); background: var(--reason-soft); }
.dnode[data-type="human"] { border-left-color: var(--pending); } .dnode[data-type="human"] .dnode__tag { color: var(--pending); }
.dnode[data-type="output"] { border-left-color: var(--live); } .dnode[data-type="output"] .dnode__tag { color: var(--live); }
.darrow { width: 2px; height: 16px; background: var(--line-2); margin: 4px auto; position: relative; }
.darrow::after { content: ""; position: absolute; bottom: -1px; left: 50%; transform: translateX(-50%); border: 4px solid transparent; border-top-color: var(--line-2); }
.doutcomes { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
@media (max-width: 520px) { .doutcomes { grid-template-columns: 1fr; } }
.doutcome { font-size: 0.82rem; font-weight: 500; padding: 0.6rem 0.75rem; border-radius: 10px; border: 1px solid transparent; }
.doutcome[data-kind="resolved"] { color: var(--live); background: var(--live-soft); border-color: color-mix(in srgb, var(--live) 26%, transparent); }
.doutcome[data-kind="escalated"] { color: var(--pending); background: var(--pending-soft); border-color: color-mix(in srgb, var(--pending) 30%, transparent); }
.doutcome::before { content: attr(data-kind); display: block; font-family: var(--f-mono); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.25rem; opacity: 0.85; }
.arch__img { width: 100%; border-radius: 12px; border: 1px solid var(--line); margin: 0 0 1.4rem; display: block; }

/* how I built it */
.built__sub { font-family: var(--f-mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 1.2rem 0 0.65rem; }
.built__sub:first-child { margin-top: 0; }
.built__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.built__list li { position: relative; padding-left: 1.45rem; font-size: 0.92rem; color: var(--body); line-height: 1.5; }
.built__list li::before { content: ""; position: absolute; left: 0.15rem; top: 0.5rem; width: 7px; height: 7px; border-radius: 2px; background: var(--navy); }
.built__list--trade li::before { background: var(--pending); transform: rotate(45deg); }
:root[data-theme="dark"] .built__list li::before { background: var(--gold); }

/* demo */
.demo__video { width: 100%; border-radius: 12px; border: 1px solid var(--line); display: block; background: #000; }
.demo__video::cue { font-size: 65%; background: rgba(0, 0, 0, 0.6); }
.demo__chapters { list-style: none; margin: 0.6rem 0 0; padding: 0; display: grid; gap: 0.15rem; }
.demo__chapter { display: flex; gap: 0.6rem; width: 100%; padding: 0.3rem 0.4rem; border: 0; border-radius: 6px; background: none; color: var(--muted); font: inherit; font-size: 0.82rem; text-align: left; cursor: pointer; }
.demo__chapter:hover, .demo__chapter:focus-visible { background: var(--panel-2); color: var(--navy); }
.demo__chapter-t { flex: none; min-width: 2.6rem; font-family: var(--f-mono); font-size: 0.74rem; color: var(--faint); padding-top: 0.08rem; }
.demo__frame { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.4rem; text-align: center; aspect-ratio: 16 / 9; border: 1.5px dashed var(--line-2); border-radius: 12px; background: var(--panel-2); color: var(--faint); font-family: var(--f-mono); font-size: 0.74rem; padding: 1rem; text-decoration: none; }
.demo__frame b { color: var(--muted); font-weight: 700; font-size: 0.9rem; font-family: var(--f-body); }
.demo__frame--link:hover { border-color: var(--navy); color: var(--navy); }
.demo__play { width: 46px; height: 46px; border-radius: 50%; background: var(--navy); position: relative; margin-bottom: 0.3rem; box-shadow: var(--shadow-sm); }
.demo__play::after { content: ""; position: absolute; left: 54%; top: 50%; transform: translate(-50%, -50%); border: 8px solid transparent; border-left: 12px solid var(--gold); }

/* repo */
.repo__empty { margin: 0; font-size: 0.86rem; color: var(--muted); line-height: 1.5; }

/* under-the-hood code snippets */
.block--code { }
.code { margin: 0 0 1rem; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; background: var(--panel-2); }
.code:last-child { margin-bottom: 0; }
.code__cap { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; padding: 0.55rem 0.85rem; border-bottom: 1px solid var(--line); background: var(--panel); }
.code__name { font-family: var(--f-mono); font-size: 0.74rem; font-weight: 600; color: var(--ink); }
.code__lang { font-family: var(--f-mono); font-size: 0.62rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 5px; padding: 0.15rem 0.4rem; }
.code__note { margin: 0; padding: 0.6rem 0.85rem; font-size: 0.82rem; line-height: 1.5; color: var(--muted); background: var(--panel); border-bottom: 1px solid var(--line); }
.block--gallery { margin-top: 1.6rem; }
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; }
.shot { margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--panel); box-shadow: var(--shadow-sm); }
.shot__scenario { font-size: 0.9rem; line-height: 1.55; color: var(--body); padding: 0.75rem 0.95rem; border-bottom: 1px solid var(--line); background: var(--panel-2); }
/* Cap height so tall portrait captures (sidebars, emails) don't dominate; the
   whole screenshot stays visible, letterboxed on its panel background. */
.shot__img { display: block; width: 100%; height: auto; max-height: 420px; object-fit: contain; object-position: top; background: var(--panel-2); }
.shot__cap { padding: 0.6rem 0.85rem; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 0.28rem; }
.shot__ct { font-size: 0.82rem; font-weight: 600; line-height: 1.4; color: var(--body); }
.shot__cd { font-size: 0.8rem; line-height: 1.55; color: var(--muted); }
/* click any screenshot, diagram or poster to open it full size */
.shot__img, .arch__img, .demo__poster img { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 3vh 3vw; background: rgba(8, 14, 28, 0.85); cursor: zoom-out; }
.lightbox.is-open { display: flex; }
.lightbox__img { max-width: 94vw; max-height: 94vh; width: auto; height: auto; border-radius: 10px; box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55); background: #fff; cursor: default; }
.lightbox__close { position: fixed; top: 1rem; right: 1.15rem; width: 2.4rem; height: 2.4rem; border-radius: 999px; border: 0; background: rgba(255, 255, 255, 0.92); color: var(--navy, #0A1F44); font-size: 1.5rem; line-height: 1; cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3); }
.code__shot { margin: 0; border-top: 1px solid var(--line); background: var(--panel-2); }
.code__shot .shot__img { border-bottom: 1px solid var(--line); }
.code__shot .shot__cap { border-top: 0; background: var(--panel-2); }
.code__pre { margin: 0; padding: 0.85rem; overflow-x: auto; max-height: 460px; overflow-y: auto; }
.code__pre code { font-family: var(--f-mono); font-size: 0.8rem; line-height: 1.55; color: var(--body); white-space: pre; }

/* video embed (youtube / loom / vimeo) */
.demo__embed { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #000; }
.demo__embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* minimal nav label */
.nav__tag { font-family: var(--f-mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 480px) { .nav__tag { display: none; } }

/* demo poster (used in the lightweight single-file preview) */
.demo__poster { margin: 0; }
.demo__poster img { width: 100%; border-radius: 12px; border: 1px solid var(--line); display: block; }
.demo__postercap { margin: 0.5rem 0 0; font-family: var(--f-mono); font-size: 0.72rem; color: var(--faint); text-align: center; }

/* empty "coming soon" placeholder builds */
.tab--placeholder { border-style: dashed; box-shadow: none; opacity: 0.85; justify-content: center; min-height: 96px; }
.tab--placeholder:hover { opacity: 1; }
.tab--placeholder[aria-selected="true"] { border-color: var(--line-2); border-style: dashed; background: var(--panel-2); box-shadow: none; }
.tab__name--muted { color: var(--faint); font-weight: 600; }
.case__card--placeholder { box-shadow: var(--shadow-sm); border-style: dashed; }
.case__ph { padding: clamp(2.4rem, 6vw, 4rem); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 0.7rem; }
.case__ph-badge { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); border: 1px solid var(--line-2); border-radius: 999px; padding: 0.3rem 0.8rem; }
.case__ph-title { font-family: var(--f-display); font-weight: 800; font-size: var(--step-2); color: var(--ink); margin: 0.4rem 0 0; letter-spacing: -0.02em; }
.case__ph-text { color: var(--muted); max-width: 46ch; margin: 0; }

/* sample query + grounded answer */
.sample { display: flex; flex-direction: column; gap: 0.9rem; }
.sample__row { display: flex; gap: 0.7rem; align-items: flex-start; }
.sample__row p { margin: 0; }
.sample__row--q p { color: var(--ink); font-weight: 600; }
.sample__row--a p { color: var(--body); }
.sample__tag { flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-family: var(--f-mono); font-size: 0.78rem; font-weight: 700; background: var(--panel-2); border: 1px solid var(--line-2); color: var(--navy); }
.sample__tag--a { color: #fff; background: var(--reason); border-color: var(--reason); }
.sample__src { margin: 0.2rem 0 0 2.4rem; font-family: var(--f-mono); font-size: 0.76rem; color: var(--faint); line-height: 1.5; border-left: 2px solid var(--line-2); padding-left: 0.7rem; }

/* tool chips on the tab card */
.tab__tools { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.15rem; }
.tab__chip { font-family: var(--f-mono); font-size: 0.6rem; letter-spacing: 0.01em; color: var(--muted); background: var(--panel-2); border: 1px solid var(--line); border-radius: 5px; padding: 0.14rem 0.4rem; white-space: nowrap; }

/* live-demo link button (external site demos) */
.linkbtn--live { color: #fff; background: var(--navy); border-color: var(--navy); }
.linkbtn--live::before { content: "\2197"; font-weight: 700; }
.linkbtn--live:hover { background: var(--navy-deep); border-color: var(--navy-deep); transform: translateY(-1px); }

/* blurred/masked API key placeholder in code (real value never in the page) */
.code__secret { filter: blur(3.5px); -webkit-filter: blur(3.5px); user-select: none; -webkit-user-select: none; color: var(--muted); border-radius: 3px; padding: 0 1px; }

/* build-type badge: no-code / low-code / code with a 1-3 level indicator */
.buildtype { display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--f-mono); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.04em; color: var(--ink); background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 7px; padding: 0.24rem 0.5rem; white-space: nowrap; }
.bt__dots { display: inline-flex; gap: 2px; }
.bt__dots i { width: 5px; height: 5px; border-radius: 1.5px; background: var(--line-2); display: block; }
.bt__dots i.on { background: var(--navy); }
:root[data-theme="dark"] .bt__dots i.on { background: var(--gold); }
.bt__label { line-height: 1; }
/* code lines wrap-safe: pre already scrolls; ensure it never widens the card */
.code, .code__pre { max-width: 100%; }

/* labeled taxonomy spec row on each case study */
.case__hd .case__co { margin: 0 0 0.6rem; }
.spec { display: flex; flex-wrap: wrap; gap: 0.7rem 1.6rem; margin-top: 1.3rem; padding-top: 1.3rem; border-top: 1px solid var(--line); }
.spec__item { display: inline-flex; align-items: center; gap: 0.5rem; }
.spec__k { font-family: var(--f-mono); font-size: 0.63rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }

/* ===== client work section ===== */
.clients { padding: clamp(2.4rem, 6vw, 4.4rem) 0 clamp(1rem, 3vw, 2rem); }
.clientgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 1100px) { .clientgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .clientgrid { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; } }
.clientcard { display: flex; flex-direction: column; gap: 0.85rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.3rem, 2.4vw, 1.7rem); box-shadow: var(--shadow-sm); transition: transform 0.16s ease, box-shadow 0.16s ease; min-width: 0; }
.clientcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.clientcard__top { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }
.clientcard__client { font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.clientcard__name { font-family: var(--f-display); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; color: var(--ink); line-height: 1.15; margin: 0; }
.clientcard__summary { color: var(--muted); font-size: 0.92rem; margin: 0; line-height: 1.5; }
.clientcard__points { list-style: none; margin: 0.1rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.clientcard__points li { position: relative; padding-left: 1.15rem; font-size: 0.88rem; color: var(--body); line-height: 1.45; }
.clientcard__points li::before { content: ""; position: absolute; left: 0; top: 0.5rem; width: 6px; height: 6px; border-radius: 2px; background: var(--gold); }
.clientcard__tools { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: auto; padding-top: 0.4rem; }
.clientcard__plain { margin: 0; font-size: 0.9rem; line-height: 1.5; color: var(--body); }
.clientcard__demo { cursor: default; }
.clientcard__demo .demo__chapters { margin-top: 0.45rem; }
.clientcard--expandable { cursor: pointer; }
.case { scroll-margin-top: 1.5rem; }
.clientcard__toggle { display: inline-flex; align-items: center; gap: 0.35rem; align-self: flex-start; margin-top: 0.5rem; padding: 0; background: none; border: none; cursor: pointer; font-family: var(--f-mono); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy); }
:root[data-theme="dark"] .clientcard__toggle { color: var(--gold); }
.clientcard__chevron { transition: transform 0.16s ease; font-size: 0.8em; }
.clientcard.is-open .clientcard__chevron { transform: rotate(180deg); }
.clientcard__detail[hidden] { display: none; }
.clientcard__detail { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 0.7rem; padding-top: 0.9rem; border-top: 1px solid var(--line); }
.clientcard .linkbtn--live { align-self: flex-start; margin-top: 0.3rem; }

/* labeled rows on the tab cards */
.tabrow { display: flex; align-items: flex-start; gap: 0.5rem; }
.tabrow__k { flex: none; width: 4.7rem; font-family: var(--f-mono); font-size: 0.58rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--faint); padding-top: 0.32rem; }
.tabrow .tab__tools { margin-top: 0; }

/* client card: problem callout + section labels */
.clientcard__why { border-left: 3px solid var(--gold); background: var(--panel-2); border-radius: 0 8px 8px 0; padding: 0.7rem 0.85rem; }
.clientcard__why-k { display: block; font-family: var(--f-mono); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 0.35rem; }
:root[data-theme="dark"] .clientcard__why-k { color: var(--gold); }
.clientcard__why p { margin: 0; font-size: 0.88rem; color: var(--body); line-height: 1.5; }
.clientcard__pointsk { font-family: var(--f-mono); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); margin: 0; }
.clientcard .linkbtn--live { align-self: flex-start; }

/* a lone outcome spans the full width so it lines up under the centered arrow */
.doutcomes--single { grid-template-columns: 1fr; }

/* client card: labeled project status */
.clientcard__top { flex-wrap: wrap; }
.clientcard__status { display: inline-flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; justify-content: flex-end; }
.clientcard__statusk { font-family: var(--f-mono); font-size: 0.56rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }

/* ===== redesign: hero with photo, jump counts, filters, featured card ===== */
.hero__inner { flex-direction: row; align-items: center; text-align: left; gap: clamp(1.6rem, 4vw, 3.2rem); justify-content: center; }
.hero__photo { flex: none; align-self: flex-start; margin-top: 2.5rem; width: clamp(128px, 15vw, 176px); height: auto; aspect-ratio: 1; border-radius: 50%; object-fit: cover; border: 4px solid var(--panel); box-shadow: 0 0 0 2px var(--gold), var(--shadow); }
.hero__text { display: flex; flex-direction: column; align-items: flex-start; max-width: 680px; }
.hero__title { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.15rem); max-width: 22ch; margin-top: 1.1rem; }
.hero__sub { margin-top: 1.1rem; }
.hero__cta { justify-content: flex-start; margin-top: 1.6rem; }
@media (max-width: 760px) {
  .hero__inner { flex-direction: column; text-align: center; }
  .hero__text { align-items: center; }
  .hero__cta { justify-content: center; }
  .hero__photo { align-self: center; margin-top: 0; }
}

.jump { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: clamp(2.2rem, 5vw, 3.4rem); position: relative; z-index: 1; }
@media (max-width: 760px) { .jump { grid-template-columns: 1fr; } }
.jump__item { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.3rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease; }
.jump__item:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--navy); }
.jump__n { font-family: var(--f-display); font-weight: 800; font-size: 2.3rem; line-height: 1; letter-spacing: -0.04em; color: var(--navy); min-width: 2.2rem; }
.jump__txt { display: flex; flex-direction: column; line-height: 1.3; }
.jump__txt b { color: var(--ink); font-weight: 700; }
.jump__txt span { color: var(--muted); font-size: 0.84rem; }
.jump__arrow { margin-left: auto; color: var(--gold-deep); font-weight: 700; transition: transform 0.16s ease; }
.jump__item:hover .jump__arrow { transform: translateY(3px); }

/* filter chips */
.filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.6rem 1.05rem; margin: -0.8rem 0 1.6rem; }
/* Per-criterion dropdown filters */
.filtersel { display: inline-flex; align-items: center; gap: 0.62rem; }
.filtersel__k { font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.filtersel__input { font: inherit; font-size: 0.86rem; font-weight: 600; color: var(--navy); background: var(--panel); border: 1px solid var(--line-2); border-radius: 999px; padding: 0.4rem 2rem 0.4rem 0.85rem; cursor: pointer; box-shadow: var(--shadow-sm); appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5' fill='none' stroke='%236a788f' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.7rem center; transition: border-color 0.16s ease; max-width: 15rem; }
.filtersel__input:hover { border-color: var(--navy); }
.filtersel__input:focus-visible { outline: 2px solid var(--navy); outline-offset: 1px; }
.filtersel--on .filtersel__k { color: var(--navy); font-weight: 700; }
.filtersel--on .filtersel__input { border-color: var(--navy); box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.38), var(--shadow-sm); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5' fill='none' stroke='%230A1F44' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.filterbar__count { font-family: var(--f-mono); font-size: 0.74rem; color: var(--muted); }
.filterbar__clear { font: inherit; font-size: 0.8rem; font-weight: 600; color: var(--muted); background: none; border: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; padding: 0.3rem 0.2rem; }
.filterbar__clear:hover { color: var(--navy); }
.filterbar__clear[hidden] { display: none; }
.tabs__empty { text-align: center; color: var(--muted); font-size: 0.92rem; margin: 0.5rem 0 2rem; }
.tabs__empty[hidden] { display: none; }
.filter { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.45rem 0.9rem; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel); color: var(--body); font: inherit; font-size: 0.86rem; font-weight: 600; cursor: pointer; transition: all 0.16s ease; }
.filter:hover { border-color: var(--navy); color: var(--navy); }
.filter[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.filter__n { font-family: var(--f-mono); font-size: 0.7rem; opacity: 0.7; }

/* build grid: even columns instead of a wrapping row */
.tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; overflow: visible; padding: 0.3rem 0.2rem 0.4rem; }
@media (max-width: 1000px) { .tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tabs { grid-template-columns: 1fr; } }
.tab { min-width: 0; max-width: none; position: relative; overflow: hidden; padding: 1.25rem 1.2rem 1.1rem; gap: 0.5rem; }
.tab[hidden] { display: none; }
.tab::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--cat, var(--navy)); }
.tab[data-cat="agent"] { --cat: var(--reason); }
.tab[data-cat="multi"] { --cat: #2563eb; }
.tab[data-cat="rag"] { --cat: #0d9488; }
.tab[data-cat="auto"] { --cat: var(--auto); }
.tab__plain { margin: 0.15rem 0 0.4rem; flex: 1; }
.tab__tagline { margin: 0; display: flex; align-items: center; gap: 0.45rem; font-family: var(--f-mono); font-size: 0.68rem; color: var(--muted); letter-spacing: 0.01em; }
.tab__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cat, var(--navy)); flex: none; }
.tab[aria-selected="true"], .tab[aria-selected="true"].is-reasoning { border-color: var(--cat, var(--navy)); }

/* featured build: two columns wide, with the demo poster */
.tab--featured { grid-column: span 2; display: flex; flex-direction: column; gap: 1rem; align-items: stretch; background: linear-gradient(135deg, var(--panel), color-mix(in srgb, var(--gold) 7%, var(--panel))); }
.tab--featured .tab__media { width: 100%; }
.tab--featured .tab__media img { aspect-ratio: auto; height: 240px; object-fit: cover; object-position: left center; }
.tab--featured .tab__plain { flex: none; }
@media (max-width: 560px) { .tab--featured { grid-column: span 1; } .tab--featured .tab__media img { height: 180px; } }
.tab__body { display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; }
.tab__badge { align-self: flex-start; font-family: var(--f-mono); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-ink); background: color-mix(in srgb, var(--gold) 22%, var(--panel)); border-radius: 999px; padding: 0.25rem 0.6rem; }
.tab--featured .tab__name { font-size: 1.25rem; }
.tab__media { position: relative; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.tab__media img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.3s ease; }
.tab--featured:hover .tab__media img { transform: scale(1.03); }
.tab__play { position: absolute; inset: 0; margin: auto; width: 52px; height: 52px; border-radius: 50%; background: var(--navy); box-shadow: 0 8px 20px -6px rgba(20, 40, 74, 0.6); }
.tab__play::after { content: ""; position: absolute; left: 55%; top: 50%; transform: translate(-50%, -50%); border: 9px solid transparent; border-left: 14px solid var(--gold); }

/* show all */
.more { display: flex; justify-content: center; margin: 1.2rem 0 2rem; }
.more__btn[hidden] { display: none; }
/* label above the headline: no decorative dot; no gap when the subhead is empty */
.hero .eyebrow-pill::before { display: none; }
.hero__sub:empty { display: none; }
.eyebrow-pill:empty { display: none; }
/* client card: real outputs (e.g. sites a system built) */
.clientcard__examples { display: flex; flex-direction: column; gap: 0.45rem; }
.clientcard__exk { font-family: var(--f-mono); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.clientcard__exgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.clientcard__ex { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.74rem; font-weight: 600; color: var(--navy); }
.clientcard__ex img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform 0.16s ease, box-shadow 0.16s ease; }
.clientcard__ex:hover img { transform: translateY(-2px); box-shadow: var(--shadow); }
.clientcard__ex span::after { content: " ↗"; color: var(--gold-deep); }
/* small video preview on non-featured build cards that have a demo video */
.tab__thumb { position: relative; margin: -0.2rem 0 0.35rem; border-radius: 9px; overflow: hidden; border: 1px solid var(--line); }
.tab__thumb img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.3s ease; }
.tab:hover .tab__thumb img { transform: scale(1.04); }
.tab__play--sm { width: 38px; height: 38px; }
.tab__play--sm::after { border-width: 7px; border-left-width: 11px; }
.tab__thumbtag { position: absolute; left: 0.45rem; bottom: 0.45rem; font-family: var(--f-mono); font-size: 0.58rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; background: rgba(15, 28, 52, 0.75); border-radius: 5px; padding: 0.15rem 0.4rem; }

/* hero credential badge ---------------------------------------------------- */
.cred { margin-top: 1.4rem; max-width: 100%; width: min(34rem, 100%); box-sizing: border-box; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm); text-align: left; transition: border-color 0.16s ease, box-shadow 0.16s ease; }
.cred:hover, .cred[open] { border-color: var(--navy); box-shadow: var(--shadow); }
.cred__card { display: flex; align-items: center; gap: 0.85rem; padding: 0.55rem 0.9rem 0.55rem 0.55rem; cursor: pointer; list-style: none; border-radius: 14px; }
.cred__card::-webkit-details-marker { display: none; }
.cred__card:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.cred__img { flex: none; width: 56px; height: 56px; object-fit: contain; }
.cred__txt { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.cred__k { font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.cred__txt b { color: var(--ink); font-weight: 700; font-size: 0.95rem; }
.cred__more { flex: none; margin-left: auto; font-size: 0.78rem; font-weight: 700; color: var(--ink); border: 1px solid var(--line-2); border-radius: 8px; padding: 0.3rem 0.6rem; white-space: nowrap; }
.cred__chev { display: inline-block; transition: transform 0.16s ease; }
.cred[open] .cred__chev { transform: rotate(180deg); }
.cred__panel { padding: 0.2rem 1rem 1rem; border-top: 1px solid var(--line); }
.cred__stats { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; margin: 0.9rem 0 0; padding: 0; }
.cred__stats li { display: flex; flex-direction: column; align-items: flex-start; padding: 0.55rem 0.7rem; background: var(--bg-soft, var(--panel-2)); border-radius: 10px; }
.cred__stats b { font-family: var(--f-display); font-weight: 800; font-size: 1.35rem; line-height: 1.1; color: var(--ink); letter-spacing: -0.02em; }
.cred__stats span { font-size: 0.74rem; color: var(--body); line-height: 1.25; }
.cred__lede { margin: 1rem 0 0.6rem; font-size: 0.85rem; color: var(--body); }
.cred__topics { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.cred__topics li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0.35rem 1rem; align-items: center; padding: 0.55rem 0; border-top: 1px solid var(--line); }
.cred__topics li:first-child { border-top: 0; }
.cred__t { display: flex; flex-direction: column; line-height: 1.3; }
.cred__t b { font-size: 0.86rem; color: var(--ink); font-weight: 700; }
.cred__t small { font-size: 0.76rem; color: var(--body); }
.cred__chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.cred__chips a { display: inline-flex; align-items: center; gap: 0.28rem; color: var(--navy); background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 0.2rem 0.65rem; font-size: 0.76rem; font-weight: 600; text-decoration: none; cursor: pointer; transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease; }
.cred__chips a::after { content: "\2197"; font-size: 0.72rem; opacity: 0.55; }
.cred__chips a:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.cred__chips a:hover::after { opacity: 1; }
.cred__verify { display: inline-block; margin-top: 1rem; font-size: 0.8rem; font-weight: 700; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 560px) {
  .cred__stats { grid-template-columns: repeat(2, 1fr); }
  .cred__topics li { grid-template-columns: 1fr; }
  .cred__more { font-size: 0; padding: 0.3rem 0.5rem; }
  .cred__more .cred__chev { font-size: 0.85rem; }
}

.hero__text { min-width: 0; max-width: min(680px, 100%); }
