/* HydeConnects site styles. No inline styles anywhere, so the Content-Security-Policy can stay strict. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/space-grotesk-latin-wght-normal.woff2") format("woff2");
}

:root {
  --ink: #0f172a;
  --ink-deep: #0b1220;
  --panel-dark: #111a2e;
  --line-dark: #1e293b;
  --ground: #f7f7f5;
  --card: #ffffff;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --muted: #475569;
  --muted-2: #64748b;
  --on-dark: #cbd5e1;
  --on-dark-2: #94a3b8;
  --accent: #1d4ed8;
  --accent-deep: #1e3a8a;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
a:hover { color: var(--accent-deep); }
h1, h2, h3 { font-family: var(--display); margin: 0; }
p, ul, ol, figure { margin: 0; }
:focus-visible { outline: 3px solid #1d4ed8; outline-offset: 3px; border-radius: 4px; }
.top :focus-visible, .foot :focus-visible, .dark-panel :focus-visible { outline-color: #60a5fa; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: #fff; color: var(--ink); padding: 10px 14px; border-radius: 8px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .wrap { padding: 0 20px; } }

/* Header and hero */
.top { background: var(--ink-deep); color: #fff; }
.bar { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; padding-top: 24px; padding-bottom: 24px; }
.brand { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.01em; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.crumb { display: flex; align-items: center; gap: 14px; }
.crumb .sep { color: #475569; font-size: 22px; }
.crumb .here { font-family: var(--display); font-weight: 600; font-size: 20px; color: #e2e8f0; }
.nav { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 15px; font-weight: 500; }
.nav a { color: var(--on-dark); text-decoration: none; padding: 6px 0; }
.nav a:hover { color: #fff; }

.hero { padding-top: 96px; padding-bottom: 112px; display: flex; flex-direction: column; gap: 28px; }
.hero.split { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 80px; padding-bottom: 104px; }
.hero-text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-2); }
.hero h1 { max-width: 860px; font-weight: 600; font-size: clamp(38px, 6vw, 68px); line-height: 1.05; letter-spacing: -0.02em; }
.hero.split h1 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.08; }
.lede { max-width: 640px; font-size: 19px; line-height: 1.6; color: var(--on-dark); }
.hero.split .lede { font-size: 18px; max-width: 560px; }
.note-dark { font-size: 14px; color: var(--on-dark-2); }
.tags { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.meta-mono { font-family: var(--mono); font-size: 13px; color: var(--on-dark-2); }

.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; border-radius: 10px; font-weight: 600; font-size: 16px; text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); color: #fff; }
.btn-ghost { border: 1px solid #334155; color: #fff; }
.btn-ghost:hover { border-color: #64748b; color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #1e293b; color: #fff; }

/* Sections */
.section { padding-top: 96px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 32px; }
.section.tight { padding-top: 24px; padding-bottom: 72px; }
.section-head { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-end; }
.section-head > div { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.h2 { font-weight: 600; font-size: 40px; letter-spacing: -0.015em; line-height: 1.15; }
.h2.sm { font-size: 34px; }
.sub { font-size: 17px; line-height: 1.6; color: var(--muted); }
.kicker { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); }

/* Filter chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.section-head > .chips { flex-direction: row; max-width: none; gap: 10px; }
.chip { min-height: 44px; padding: 0 18px; border-radius: 999px; font: 500 15px var(--body); background: #fff; color: var(--ink); border: 1px solid var(--line-strong); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Venture cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
@media (max-width: 400px) { .grid { grid-template-columns: 1fr; } }
.card { display: flex; flex-direction: column; gap: 18px; padding: 28px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; color: var(--ink); text-decoration: none; min-height: 240px; }
a.card { transition: border-color .15s ease, transform .15s ease; }
a.card:hover { border-color: #94a3b8; transform: translateY(-2px); color: var(--ink); }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.mono-tile { width: 48px; height: 48px; flex-shrink: 0; border-radius: 12px; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 600; font-size: 17px; }
.card-body { display: flex; flex-direction: column; gap: 8px; flex-grow: 1; }
.card h3 { font-weight: 600; font-size: 24px; }
.card p { font-size: 15px; line-height: 1.55; color: var(--muted); }
.card-foot { display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 500; color: var(--accent); }
.card-foot.muted { color: var(--muted-2); }
.card-foot svg { flex-shrink: 0; }

.pill { padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.pill-live { background: #dcfce7; color: #166534; }
.pill-beta { background: #ede9fe; color: #5b21b6; }
.pill-private { background: #dbeafe; color: #1e40af; }
.pill-soon { background: #fef3c7; color: #92400e; }
.pill-concept { background: #e2e8f0; color: #334155; }

/* Consulting */
.panel { display: flex; flex-wrap: wrap; gap: 48px; padding: 48px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; }
@media (max-width: 640px) { .panel { padding: 28px; gap: 32px; } }
.panel > div, .panel > ul { flex: 1 1 380px; min-width: 0; }
.panel-intro { display: flex; flex-direction: column; gap: 16px; }
.panel-intro .actions { padding-top: 8px; }
.svc { list-style: none; padding: 0; display: flex; flex-direction: column; }
.svc li { padding: 18px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.svc li:last-child { border-bottom: 0; }
.svc h3 { font-size: 21px; font-weight: 600; }
.svc p { font-size: 15px; line-height: 1.55; color: var(--muted); }

/* About */
.about { padding-top: 24px; padding-bottom: 112px; display: flex; flex-wrap: wrap; gap: 48px; }
.about h2 { flex: 1 1 280px; }
.about div { flex: 2 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.about p { font-size: 19px; line-height: 1.65; color: #1e293b; }
.about p + p { font-size: 17px; color: var(--muted); }

/* Footer */
.foot { background: var(--ink-deep); color: var(--on-dark); font-size: 14px; }
.foot .wrap { padding-top: 40px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 20px; }
.foot-row { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; }
.foot-row > div { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.foot .brand { font-size: 18px; }
.fine { font-size: 13px; line-height: 1.6; color: var(--on-dark-2); }

/* HydePerf page */
.flows { flex: 1 1 480px; min-width: 0; background: var(--panel-dark); border: 1px solid var(--line-dark); border-radius: 16px; overflow: hidden; }
.flows-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line-dark); }
.flows-head span:first-child { font-family: var(--mono); font-size: 13px; color: #e2e8f0; }
.flows-head span:last-child { font-size: 12px; color: var(--on-dark-2); }
.flows-scroll { overflow-x: auto; }
.flows table { width: 100%; min-width: 460px; border-collapse: collapse; font-family: var(--mono); font-size: 13px; color: var(--on-dark); }
.flows th { text-align: left; padding: 10px 12px; font-weight: 500; color: var(--on-dark-2); }
.flows td { padding: 12px; border-top: 1px solid var(--line-dark); }
.flows th:first-child, .flows td:first-child { padding-left: 18px; }
.flows th:last-child, .flows td:last-child { padding-right: 18px; text-align: right; }
.flows .num { text-align: right; }
.flows td.prog { color: #fff; }
.flows tr.flag { background: #2a1f0b; }
.flows tr.flag td:nth-child(2) { color: #fcd34d; }
.flows figcaption { padding: 14px 18px; border-top: 1px solid var(--line-dark); font-size: 13px; color: var(--on-dark-2); }

.notice { background: #fffbeb; border-bottom: 1px solid #fde68a; }
.notice .wrap { padding-top: 28px; padding-bottom: 28px; display: flex; gap: 16px; align-items: flex-start; }
.notice svg { flex-shrink: 0; margin-top: 2px; }
.notice p { font-size: 16px; line-height: 1.6; color: #78350f; }

.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.feat { padding: 28px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; display: flex; flex-direction: column; gap: 14px; }
.feat h3 { font-size: 21px; font-weight: 600; }
.feat ul, .req ul { padding-left: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.5; color: var(--muted); }

.dark-panel { display: flex; flex-wrap: wrap; gap: 48px; padding: 48px; background: var(--ink-deep); color: #fff; border-radius: 20px; }
@media (max-width: 640px) { .dark-panel { padding: 28px; } }
.dark-panel > div { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.dark-panel .kicker { color: var(--on-dark-2); }
.dark-panel h2 { font-size: 36px; font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }
.dark-panel > div > p { font-size: 17px; line-height: 1.6; color: var(--on-dark); }
.ai-list { flex: 2 1 520px; min-width: 0; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px 32px; }
.ai-list li { display: flex; flex-direction: column; gap: 6px; }
.ai-list h3 { font-family: var(--body); font-size: 17px; font-weight: 600; }
.ai-list p { font-size: 15px; line-height: 1.55; color: var(--on-dark); }

.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px; }
.principles div { padding: 24px; border-top: 2px solid var(--ink); display: flex; flex-direction: column; gap: 8px; }
.principles h3 { font-size: 19px; font-weight: 600; }
.principles p { font-size: 15px; line-height: 1.55; color: var(--muted); }

.how { display: flex; flex-wrap: wrap; gap: 48px; padding-top: 48px; padding-bottom: 48px; }
.how > div:first-child { flex: 3 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.how > div:first-child p { font-size: 17px; line-height: 1.7; color: #334155; }
.req { flex: 2 1 340px; min-width: 0; padding: 28px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; display: flex; flex-direction: column; gap: 14px; }
.req h3 { font-size: 21px; font-weight: 600; }

.limits { padding: 36px; border: 1px solid var(--line-strong); border-radius: 16px; display: flex; flex-direction: column; gap: 18px; }
.limits h2 { font-size: 26px; font-weight: 600; }
.limits ul { padding-left: 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 10px 36px; font-size: 15px; line-height: 1.55; color: #334155; }

.request { padding-top: 72px; padding-bottom: 112px; display: flex; flex-wrap: wrap; gap: 56px; }
.request > div { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.steps { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.steps li { display: flex; gap: 16px; align-items: flex-start; }
.steps .n { flex-shrink: 0; width: 32px; height: 32px; border-radius: 999px; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; }
.steps h3 { font-family: var(--body); font-size: 16px; font-weight: 600; }
.steps p { margin-top: 4px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.ask { padding: 36px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; display: flex; flex-direction: column; gap: 18px; }
.ask h3 { font-size: 24px; font-weight: 600; }
.ask p, .ask li { font-size: 15px; line-height: 1.6; color: var(--muted); }
.ask ul { padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.ask .small { font-size: 13px; color: var(--muted-2); }

/* Plain text pages */
.prose { max-width: 760px; padding-top: 72px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 18px; }
.prose h1 { font-size: 40px; font-weight: 600; letter-spacing: -0.015em; }
.prose h2 { font-size: 22px; font-weight: 600; margin-top: 16px; }
.prose p, .prose li { font-size: 17px; line-height: 1.7; color: #334155; }
.prose ul { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  a.card { transition: none; }
  a.card:hover { transform: none; }
}

/* Consulting: core competence */
.panel > .core { flex: 1 1 100%; }
.core { padding: 32px; background: #f1f5f9; border-radius: 16px; display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 640px) { .core { padding: 22px; } }
.core .kicker { color: var(--accent); }
.core h3 { font-size: 26px; font-weight: 600; line-height: 1.2; }
.core-lede { max-width: 760px; font-size: 16px; line-height: 1.6; color: var(--muted); }
.core-list { list-style: none; padding: 0; margin-top: 8px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.core-list li { padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; display: flex; flex-direction: column; gap: 6px; }
.core-list h4 { margin: 0; font-family: var(--display); font-size: 18px; font-weight: 600; }
.core-list p { font-size: 15px; line-height: 1.55; color: var(--muted); }
.core > p:last-child a { font-weight: 600; font-size: 15px; }

/* PortfolioIQ page */
.piq-hero { padding-bottom: 104px; }
.piq-quote { margin: 0; max-width: 720px; padding-left: 20px; border-left: 3px solid var(--accent); font-size: 20px; line-height: 1.55; font-style: italic; color: #e2e8f0; }
.piq-cta { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; }
.piq-cta .pill { margin-right: 6px; }
.piq-cta p { font-size: 15px; color: var(--muted); }
.top .piq-cta p { color: var(--on-dark-2); }
.piq-problem { gap: 16px; }
.piq-problem .sub { max-width: 820px; }
.piq-num { font-family: var(--mono); font-size: 13px; color: var(--muted-2); }
.feat .piq-p { font-size: 15px; line-height: 1.55; color: var(--muted); }
.piq-cols { flex: 2 1 560px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px 32px; }
.dark-panel .piq-cols > div { display: flex; flex-direction: column; gap: 12px; }
.piq-cols h3 { font-family: var(--body); font-size: 17px; font-weight: 600; }
.piq-cols ul { padding-left: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.55; color: var(--on-dark); }
.piq-cols code, .piq-mono { font-family: var(--mono); font-size: 13px; }
.piq-cols code { color: #fff; background: var(--line-dark); padding: 1px 5px; border-radius: 4px; }
.piq-table { border-collapse: collapse; font-size: 15px; color: var(--on-dark); }
.piq-table th, .piq-table td { text-align: left; padding: 8px 16px 8px 0; border-bottom: 1px solid var(--line-dark); }
.piq-table th { font-weight: 500; color: #fff; }
.piq-small { font-size: 14px; color: var(--on-dark-2); }
.piq-honest { display: flex; flex-wrap: wrap; gap: 40px; padding: 40px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; }
@media (max-width: 640px) { .piq-honest { padding: 26px; } }
.piq-honest > div { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.piq-example { padding: 24px; background: #f1f5f9; border-left: 3px solid var(--accent); border-radius: 8px; }
.piq-example p { font-size: 15px; line-height: 1.6; color: #334155; }
.piq-example .piq-mono { padding: 10px 14px; background: var(--ink-deep); color: #fcd34d; border-radius: 6px; }
.piq-band { padding: 40px 48px; background: var(--ink); color: #fff; border-radius: 20px; display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: center; }
@media (max-width: 640px) { .piq-band { padding: 28px; } }
.piq-band h2 { flex: 1 1 280px; font-size: 32px; font-weight: 600; }
.piq-band p { flex: 2 1 420px; font-size: 17px; line-height: 1.6; color: var(--on-dark); }
.piq-proof { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.piq-proof div { padding: 24px; border-top: 2px solid var(--ink); display: flex; flex-direction: column; gap: 6px; }
.piq-stat { font-family: var(--display); font-size: 22px; font-weight: 600; color: var(--ink); }
.piq-proof p:last-child { font-size: 15px; color: var(--muted); }
.piq-enter { padding-top: 48px; padding-bottom: 112px; }
.piq-entries { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.piq-entries a { padding: 20px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; display: flex; flex-direction: column; gap: 4px; }
.piq-entries a:hover { border-color: #94a3b8; }
.piq-entries span:first-child { font-family: var(--display); font-size: 19px; font-weight: 600; color: var(--ink); }
.piq-entries span:last-child { font-size: 14px; color: var(--muted); }
