/* SidAngel: an ink masthead and a ledger. Hero, portfolio and apply sit on ink; reading sections sit on white.
   Amber is the brand accent (never text on white: it fails contrast there). */
:root {
  --ink: #0E0E0C;
  --ink-raised: #181815;
  --ink-sunk: #131311;
  --ink-line: #2C2B27;
  --ink-line-strong: #3A3934;
  --on-ink: #FFFFFF;
  --on-ink-2: #C4C2B8;
  --on-ink-3: #A09E94;
  --on-ink-nav: #E8E6DE;
  --paper: #FFFFFF;
  --mist: #F3F2EE;
  --line: #E2E0D8;
  --slate: #55534C;
  --field: #8E8C84;
  --amber: #FEBA12;
  --amber-hover: #FFC93C;
  --active: #5BD69A;
  --closed: #6E6C64;
  --footer: #090908;
  --sent: #1F6B45;
  --failed: #9B2C1F;
  --display: Poppins, "Segoe UI", Arial, sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(64px, 8vw, 112px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); text-wrap: balance; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; box-shadow: 0 0 0 6px var(--ink); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--amber); color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 600; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.dark { background: var(--ink); color: var(--on-ink); }
.section { padding-top: var(--section); padding-bottom: var(--section); }
.eyebrow { margin: 0; font-family: var(--mono); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--slate); }
.dark .eyebrow { color: var(--amber); }
.label { margin: 0; font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-ink-3); }
.big { font-weight: 700; font-size: clamp(32px, 4vw, 48px); line-height: 1.1; letter-spacing: -0.015em; }
.muted { color: var(--slate); }

/* Buttons and links */
.button { display: inline-block; font-family: inherit; font-size: 16px; font-weight: 600; line-height: 1.2; text-decoration: none; padding: 14px 24px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; }
.button-amber { background: var(--amber); color: var(--ink); }
.button-amber:hover { background: var(--amber-hover); }
.button-amber[disabled] { opacity: 0.6; cursor: progress; }
.button-ghost { color: var(--on-ink); border-color: #6B6A63; }
.button-ghost:hover { border-color: var(--on-ink); }
.underline-link { font-weight: 600; text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* Masthead */
.masthead { background: var(--ink); }
.masthead .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand img { height: 36px; width: auto; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; }
.nav a { color: var(--on-ink-nav); text-decoration: none; font-size: 15px; font-weight: 500; padding: 10px 0; }
.nav a:hover { color: var(--on-ink); }
.nav a[aria-current="page"] { color: var(--on-ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.nav .button-amber { color: var(--ink); font-size: 15px; padding: 12px 20px; }

/* Hero */
.hero .wrap { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 48px; padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(56px, 7vw, 96px); }
.hero-copy { flex: 1 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-weight: 700; font-size: clamp(34px, 4.2vw, 56px); line-height: 1.08; letter-spacing: -0.02em; }
.nowrap { white-space: nowrap; }
.lead { margin: 0; max-width: 60ch; font-size: clamp(17px, 1.5vw, 20px); color: var(--on-ink-2); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }
.glance { flex: 0 1 380px; min-width: 0; background: var(--ink-raised); border: 1px solid var(--ink-line); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.glance dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
.glance dl div { display: flex; flex-direction: column-reverse; gap: 2px; }
.glance dt { font-size: 14px; color: var(--on-ink-3); }
.glance dd { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; }
.glance .wide { grid-column: 1 / -1; border-top: 1px solid var(--ink-line); padding-top: 16px; }
.glance .wide dd { font-family: var(--body); font-size: 18px; }

/* What we do */
.about h2 { max-width: 18ch; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 64px; }
.section-head p { margin: 0; flex: 1 1 360px; max-width: 52ch; font-size: 18px; color: var(--slate); }
.supports { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 24px; }
.supports li { border-top: 2px solid var(--ink); padding-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.supports h3 { font-weight: 600; font-size: 24px; line-height: 1.2; }
.supports p { margin: 0; color: var(--slate); }
.in-return { margin: 40px 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; padding: 20px 24px; border-radius: 14px; background: var(--mist); }
.in-return strong { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--slate); }

/* Portfolio band */
.band-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 48px; }
.band-head > div { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.band-head p { margin: 0; color: var(--on-ink-2); max-width: 56ch; }
.band-head .underline-link { color: var(--on-ink); padding: 10px 0; }
.tiles { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.tile { background: var(--ink-raised); border: 1px solid var(--ink-line); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.tile-quiet { background: var(--ink-sunk); border-style: dashed; border-color: var(--ink-line-strong); }
.tile-logo { height: 64px; display: flex; align-items: center; }
.tile-logo img { width: auto; max-width: 100%; }
.tile-name { margin: 0; font-family: var(--display); font-weight: 600; font-size: 20px; line-height: 1.25; }
.tile-meta { margin: 0; font-family: var(--mono); font-size: 13px; color: var(--on-ink-3); overflow-wrap: anywhere; }
.wordmark { font-family: var(--display); font-weight: 600; font-size: 24px; color: var(--on-ink-3); }
.status { margin: auto 0 0; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--on-ink-nav); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.dot-active { background: var(--active); }
.dot-left { border: 2px solid var(--on-ink-3); }
.dot-closed { background: var(--closed); border-radius: 0; }
.logo-soulsoft { max-height: 52px; }
.logo-square { width: 56px; height: 56px; border-radius: 12px; }
.logo-niveshak { box-shadow: 0 0 0 1px var(--ink-line-strong); }
.logo-revanta, .logo-corpcare { max-height: 34px; }
.logo-bm { max-height: 24px; }

/* Who we look for */
.statement { margin: 24px 0 40px; max-width: 28ch; font-family: var(--display); font-weight: 600; font-size: clamp(28px, 3.6vw, 44px); line-height: 1.2; letter-spacing: -0.01em; text-wrap: balance; }
.criteria { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 24px; }
.criteria div { border-top: 1px solid var(--ink); padding-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.criteria dt { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--slate); }
.criteria dd { margin: 0; font-size: 19px; font-weight: 500; }

/* Press */
.press .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 56px; padding-top: 56px; padding-bottom: 56px; border-top: 1px solid var(--line); }
.press-logos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 24px 48px; }
.press-logos img { height: 48px; width: auto; filter: grayscale(1); }

/* Apply */
.apply .wrap { display: flex; flex-wrap: wrap; gap: 48px 72px; }
.apply-copy { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.apply-copy p { margin: 0; color: var(--on-ink-2); max-width: 46ch; }
.email-link { color: var(--on-ink); font-weight: 600; text-decoration-color: var(--amber); text-underline-offset: 4px; overflow-wrap: anywhere; }
.form-card { flex: 1 1 460px; min-width: 0; background: var(--paper); color: var(--ink); border-radius: 18px; padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 18px; }
.form-card h3 { font-weight: 600; font-size: 24px; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; min-width: 0; font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid var(--field); border-radius: 10px; background: var(--paper); color: var(--ink); }
.field textarea { resize: vertical; min-height: 128px; }
.optional { font-weight: 400; color: var(--slate); }
.consent { margin: 0; font-size: 14px; color: var(--slate); }
.honeypot { display: none; }
.form-status { margin: 0; font-size: 15px; min-height: 1.6em; }
.form-status[data-state="sent"] { color: var(--sent); font-weight: 600; }
.form-status[data-state="failed"] { color: var(--failed); font-weight: 600; }
.form-card .button { align-self: flex-start; }

/* Footer */
.footer { background: var(--footer); color: var(--on-ink-nav); }
.footer .wrap { padding-top: 56px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 40px; }
.footer-cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px 48px; }
.footer-col { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer-col:first-child { flex-basis: 280px; }
.footer-col p { margin: 0; font-size: 15px; color: var(--on-ink-3); }
.footer-col .company { color: var(--on-ink-nav); font-weight: 600; }
.footer-col img { height: 32px; width: auto; }
.footer a { color: var(--on-ink-nav); text-decoration: none; padding: 4px 0; }
.footer a:hover { color: var(--on-ink); text-decoration: underline; }
.footer .email-link { color: var(--on-ink); text-decoration: underline; text-decoration-color: var(--amber); }
.legal { margin: 0; border-top: 1px solid var(--ink-line); padding-top: 20px; font-size: 14px; color: var(--on-ink-3); }

/* Inner pages */
.page-title .wrap { padding-top: clamp(48px, 6vw, 80px); padding-bottom: 32px; display: flex; flex-direction: column; gap: 16px; }
.page-title h1 { font-weight: 700; font-size: clamp(36px, 5vw, 60px); line-height: 1.05; letter-spacing: -0.02em; }
.page-title p { margin: 0; max-width: 62ch; font-size: 18px; color: var(--on-ink-2); }
.register-section .wrap { padding-top: 16px; padding-bottom: clamp(48px, 6vw, 80px); display: flex; flex-direction: column; gap: 32px; }
.register-box { overflow-x: auto; border: 1px solid var(--ink-line); border-radius: 16px; background: var(--ink-sunk); }
.register { width: 100%; min-width: 960px; border-collapse: collapse; text-align: left; }
.register th, .register td { padding: 20px; border-bottom: 1px solid var(--ink-line); vertical-align: top; }
.register thead th { padding-top: 16px; padding-bottom: 16px; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-ink-3); }
.register tbody tr:last-child > * { border-bottom: 0; }
.register thead th:nth-child(1) { width: 18%; }
.register thead th:nth-child(2) { width: 26%; }
.register thead th:nth-child(3) { width: 17%; }
.register thead th:nth-child(4) { width: 9%; }
.register thead th:nth-child(5) { width: 18%; }
.register thead th:nth-child(6) { width: 12%; }
.register tbody th { font-weight: 400; }
.startup { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.startup-name { font-family: var(--display); font-weight: 600; font-size: 18px; color: var(--on-ink); }
.register .signer { display: block; font-size: 15px; color: var(--on-ink-3); }
.register .support { font-size: 15px; color: var(--on-ink-2); }
.register .year { font-family: var(--mono); }
.register .quiet { color: var(--on-ink-3); }
.register a { color: var(--on-ink); text-decoration-color: var(--amber); text-underline-offset: 4px; }
.register .status { margin: 0; font-size: 15px; align-items: baseline; }
.register .logo-soulsoft { max-height: 36px; max-width: 140px; }
.register .logo-square { width: 40px; height: 40px; border-radius: 9px; }
.register .logo-revanta { max-height: 24px; max-width: 170px; }
.register .logo-corpcare { max-height: 28px; max-width: 150px; }
.register .logo-bm { max-height: 18px; max-width: 190px; }
.prose-section .wrap { padding-top: 16px; padding-bottom: clamp(48px, 6vw, 80px); }
.prose { max-width: 70ch; }
.prose h2 { font-size: 24px; font-weight: 600; margin: 40px 0 12px; }
.prose p, .prose ul { margin: 0 0 16px; }
.prose li { margin-bottom: 6px; }
.prose a { text-decoration-color: var(--amber); text-underline-offset: 4px; }
.notice .wrap { padding-top: var(--section); padding-bottom: var(--section); display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.notice h1 { font-weight: 700; font-size: clamp(36px, 5vw, 56px); line-height: 1.05; }
.notice p { margin: 0; max-width: 56ch; color: var(--on-ink-2); font-size: 18px; }
