/* SJ Shah & Co. — dark minimal design system
   Geist, near-black surfaces, hairline borders, one blue accent. */

@font-face { font-family: "Geist"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/geist-400.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/geist-500.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/geist-600.woff2") format("woff2"); }

:root {
  --bg: #09090b;
  --surface: #101013;
  --surface-2: #17171b;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .16);
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --faint: #71717a;
  --accent: #5b8cff;
  --accent-soft: rgba(91, 140, 255, .14);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1180px;
  --font: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.03em; line-height: 1.08; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: #000; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 14px; z-index: 50; padding: 0 16px; margin-top: 14px; }
.nav {
  max-width: 880px; margin: 0 auto; height: 56px; padding: 0 10px 0 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: rgba(16, 16, 19, .72);
  -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--line); border-radius: 999px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; letter-spacing: -.01em; white-space: nowrap; }
.brand img { width: 26px; height: 26px; filter: invert(1); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { color: var(--muted); font-size: 14px; font-weight: 500; padding: 8px 14px; border-radius: 999px; transition: color .15s, background .15s; }
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.nav-links a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, .08); }
.nav-links a.nav-cta { background: var(--text); color: #09090b; margin-left: 6px; }
.nav-links a.nav-cta:hover { background: #fff; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); cursor: pointer; padding: 10px; border-radius: 999px; }
.nav-toggle span { display: block; width: 18px; height: 1.5px; background: currentColor; margin: 5px 0; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Buttons / chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-size: 15px; font-weight: 500; cursor: pointer;
  transition: background .15s, border-color .15s, transform .08s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--text); color: #09090b; }
.btn-primary:hover { background: #fff; }
.btn-ghost { background: rgba(255, 255, 255, .04); color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { background: rgba(255, 255, 255, .09); }
.btn svg { width: 15px; height: 15px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 13px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: 13px; font-weight: 500; color: var(--muted); background: rgba(255, 255, 255, .03);
}
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 112px 0 88px; text-align: center; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 30%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 70% at 50% 30%, #000 0%, transparent 75%);
  opacity: .55;
}
.hero::after {
  content: ""; position: absolute; left: 50%; top: -240px; width: 760px; height: 480px; transform: translateX(-50%); z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, var(--accent-soft), transparent);
}
.hero h1 { font-size: clamp(40px, 6.6vw, 76px); max-width: 22ch; margin: 26px auto 24px; text-wrap: balance; }
.hero h1 .dim { color: var(--faint); display: block; }
.hero p.lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); max-width: 58ch; margin: 0 auto 34px; }
.hero .btn-row { justify-content: center; }
.page-hero { padding: 88px 0 40px; text-align: left; }
.page-hero h1 { font-size: clamp(36px, 5.4vw, 60px); margin: 22px 0 18px; max-width: 18ch; }
.page-hero p.lead { margin: 0; max-width: 60ch; color: var(--muted); font-size: 18px; }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.sect-head { max-width: 640px; margin-bottom: 44px; }
.sect-head .kicker { font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.sect-head h2 { font-size: clamp(28px, 3.8vw, 42px); margin-bottom: 14px; }
.sect-head p { color: var(--muted); font-size: 17px; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------- Facts strip ---------- */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.fact { padding: 26px 28px; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; }
.fact .k { font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; }
.fact .v { font-size: 22px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.fact .s { color: var(--muted); font-size: 14px; margin-top: 4px; }

/* ---------- Project cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px; transition: border-color .2s, transform .25s, background .2s;
}
a.card:hover { border-color: var(--line-strong); transform: translateY(-3px); background: var(--surface-2); }
.card .shot { position: relative; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #000; aspect-ratio: 16 / 10; }
.card .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
a.card:hover .shot img { transform: scale(1.035); }
.card .body { padding: 20px 10px 10px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card .top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card h3 { font-size: 21px; letter-spacing: -.02em; }
.card .cat { font-size: 12px; font-weight: 500; color: var(--muted); border: 1px solid var(--line-strong); padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.card .domain { color: var(--faint); font-size: 13.5px; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.card p.desc { color: var(--muted); font-size: 15px; line-height: 1.55; }
.card .go { margin-top: auto; padding-top: 12px; font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.card .go svg { width: 14px; height: 14px; transition: transform .2s; }
a.card:hover .go svg { transform: translate(2px, -2px); }
.card.plain { padding: 28px; }
.card.plain .body { padding: 0; }

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.pillar { padding: 32px 30px 36px; border-left: 1px solid var(--line); }
.pillar:first-child { border-left: 0; }
.pillar .n { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; color: var(--accent); margin-bottom: 36px; }
.pillar h3 { font-size: 22px; margin-bottom: 12px; }
.pillar p { color: var(--muted); font-size: 15px; }
.pillar .who { margin-top: 18px; font-size: 13.5px; color: var(--faint); }

/* ---------- Company table ---------- */
.company { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
.dl { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; margin: 0; }
.dl div { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 18px 24px; border-top: 1px solid var(--line); }
.dl div:first-child { border-top: 0; }
.dl dt { color: var(--faint); font-size: 14px; }
.dl dd { margin: 0; font-size: 15px; }
.dl dd a { border-bottom: 1px solid var(--line-strong); }
.dl dd a:hover { border-color: var(--accent); color: #fff; }

/* ---------- Filter pills ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter { height: 36px; padding: 0 16px; border-radius: 999px; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; color: var(--muted); background: rgba(255, 255, 255, .03); border: 1px solid var(--line-strong); transition: all .15s; }
.filter:hover { color: var(--text); background: rgba(255, 255, 255, .08); }
.filter[aria-pressed="true"] { background: var(--text); color: #09090b; border-color: var(--text); }
.card[hidden] { display: none; }

/* ---------- CTA band ---------- */
.cta { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; padding: 64px 48px; text-align: center; background: var(--surface); }
.cta::before { content: ""; position: absolute; left: 50%; bottom: -260px; width: 720px; height: 420px; transform: translateX(-50%); background: radial-gradient(closest-side, var(--accent-soft), transparent); pointer-events: none; }
.cta h2 { position: relative; font-size: clamp(28px, 4vw, 44px); max-width: 18ch; margin: 0 auto 14px; }
.cta p { position: relative; color: var(--muted); max-width: 48ch; margin: 0 auto 30px; }
.cta .btn-row { position: relative; justify-content: center; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 500; color: var(--muted); margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 15px; color: var(--text);
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23a1a1aa' stroke-width='1.6'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field textarea { resize: vertical; min-height: 140px; }
.form-note { margin-top: 14px; font-size: 13px; color: var(--faint); }
.form-note a { color: var(--muted); border-bottom: 1px solid var(--line-strong); }

/* ---------- Legal prose ---------- */
.legal { padding: 72px 0 96px; }
.legal .container { max-width: 760px; }
.legal .eyebrow { font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.legal h1 { font-size: clamp(34px, 5vw, 52px); margin-bottom: 10px; }
.legal .updated { color: var(--faint); font-size: 14px; margin-bottom: 36px; }
.legal .lead-note { color: var(--muted); border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 20px 22px; font-size: 15.5px; }
.legal .lead-note strong { color: var(--text); font-weight: 500; }
.legal h2 { font-size: 22px; margin: 44px 0 12px; }
.legal p { color: #d4d4d8; margin-bottom: 14px; }
.legal ul { color: #d4d4d8; padding-left: 22px; margin: 0 0 16px; }
.legal li { margin-bottom: 8px; }
.legal li strong { color: var(--text); font-weight: 500; }
.legal a { color: var(--text); border-bottom: 1px solid var(--line-strong); }
.legal a:hover { border-color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 32px; margin-top: 24px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; margin-bottom: 56px; }
.site-footer .about { color: var(--muted); font-size: 14.5px; max-width: 42ch; margin-top: 18px; }
.site-footer .brand img { width: 30px; height: 30px; }
.footer-col h5 { margin: 0 0 16px; font-size: 12.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; font-size: 14.5px; color: var(--muted); }
.footer-col a { color: var(--muted); transition: color .15s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: 13px; color: var(--faint); }
.footer-legal { display: flex; gap: 22px; }
.footer-legal a:hover { color: var(--text); }

/* ---------- Motion (subtle, opt-in via JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .pillar { border-left: 0; border-top: 1px solid var(--line); }
  .pillar:first-child { border-top: 0; }
  .pillar .n { margin-bottom: 18px; }
  .company, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: span 2; }
}
@media (max-width: 680px) {
  section { padding: 64px 0; }
  .hero { padding: 80px 0 64px; }
  .page-hero { padding: 64px 0 24px; }
  .site-header { top: 10px; margin-top: 10px; }
  .nav { border-radius: 24px; height: 54px; position: relative; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 62px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 8px;
    background: rgba(16, 16, 19, .96); border: 1px solid var(--line); border-radius: 20px;
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 16px; border-radius: 12px; }
  .nav-links a.nav-cta { margin: 6px 0 0; text-align: center; }
  .facts, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .fact { border-left: 0; border-top: 1px solid var(--line); }
  .fact:first-child { border-top: 0; }
  .dl div { grid-template-columns: 1fr; gap: 4px; padding: 16px 20px; }
  .cta { padding: 44px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid > :first-child { grid-column: auto; }
}
