/* Inertia Labs — inertialabs.xyz
   Layout: one column of full-width bands; content held at 1200px with a 24px gutter. */

/* Self-hosted fonts (SIL Open Font License 1.1, see assets/fonts/LICENSE-*). */
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 500; font-display: swap; src: url('assets/fonts/bricolage-grotesque-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 700; font-display: swap; src: url('assets/fonts/bricolage-grotesque-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('assets/fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('assets/fonts/ibm-plex-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('assets/fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('assets/fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('assets/fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2'); }

:root {
  --ground: #F2F3EF;
  --paper: #FFFFFF;
  --ink: #11161D;
  --ink-2: #2C333D;
  --muted: #4A5260;
  --line: #D4D7D0;
  --accent: #2443C9;
  --accent-hover: #16298A;
  --night: #11161D;
  --night-text: #F2F3EF;
  --night-muted: #C9CED6;
  --night-label: #A9B0BB;
  --night-line: #3A424F;
  --night-link: #8FA2F0;
  --placeholder: #ECEEE9;
  --placeholder-line: #A9B0BB;

  --font-display: 'Bricolage Grotesque', 'IBM Plex Sans', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; }

.wrap { max-width: 1200px; margin: 0 auto; padding-inline: 24px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 42em; }
.section-head .lead { color: var(--ink-2); }

.mono { font-family: var(--font-mono); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  padding-block: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand img { width: 32px; height: 32px; }
.brand span { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.site-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; font-weight: 500; }
.site-nav a { color: var(--ink); text-decoration: none; }
.site-nav a:hover { color: var(--accent); }
.site-nav .lang { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.08em; padding-left: 16px; border-left: 1px solid var(--line); }

/* Hero */
.hero {
  padding-block: 48px 72px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 56px;
  align-items: end;
}
.hero-copy { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.hero .lead { max-width: 34em; font-size: 19px; color: var(--ink-2); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 24px;
  font-weight: 600;
  text-decoration: none;
}
.btn-primary { background: var(--accent); color: #FFFFFF; }
.btn-primary:hover { background: var(--accent-hover); color: #FFFFFF; }
.btn-secondary { border: 1.5px solid var(--ink); color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--ground); }

.spec { border: 1.5px solid var(--ink); background: var(--paper); min-width: 0; }
.spec-title { padding: 12px 18px; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.spec dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.spec dl > div { padding: 18px; }
.spec dl > div:nth-child(odd) { border-right: 1px solid var(--line); }
.spec dl > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.spec dt { font-size: 13px; color: var(--muted); }
.spec dd { margin: 4px 0 0; font-family: var(--font-display); font-weight: 700; font-size: 32px; font-variant-numeric: tabular-nums; }
.spec-foot { padding: 14px 18px; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: 13px; color: var(--ink-2); line-height: 1.7; }

/* Services (dark band) */
.services { background: var(--night); color: var(--night-text); }
.services .wrap { padding-block: 80px; display: flex; flex-direction: column; gap: 40px; }
.services .eyebrow { color: var(--night-label); }
.services .section-head .lead { color: var(--night-muted); }
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  border-top: 1px solid var(--night-line);
  border-left: 1px solid var(--night-line);
}
.service {
  padding: 28px;
  border-right: 1px solid var(--night-line);
  border-bottom: 1px solid var(--night-line);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.service h3 { font-family: var(--font-display); font-size: 24px; }
.service p { color: var(--night-muted); }

/* Shared card grid (pricing, work) */
.card-grid {
  display: grid;
  border-top: 1.5px solid var(--ink);
  border-left: 1px solid var(--line);
}
.card {
  padding: 28px;
  background: var(--paper);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

/* Pricing */
.pricing { padding-block: 88px 40px; display: flex; flex-direction: column; gap: 36px; }
.pricing .card-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.price-term { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.price-card h3 { font-family: var(--font-display); font-size: 26px; }
.price-card.featured { box-shadow: inset 0 4px 0 var(--accent); }
.price { margin-top: auto; padding-top: 8px; font-family: var(--font-display); font-weight: 700; font-size: 26px; font-variant-numeric: tabular-nums; }
.price.scoped { font-size: 22px; }
.steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; font-size: 15px; color: var(--ink-2); }
.steps span { font-family: var(--font-mono); color: var(--muted); }

/* Recent work */
.work { padding-block: 56px; display: flex; flex-direction: column; gap: 36px; }
.work .card-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.work-card.lab { background: var(--ground); }
.work-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.work-head h3 { font-family: var(--font-display); font-size: 24px; }
.tag { font-family: var(--font-mono); font-size: 12px; padding: 4px 8px; }
.tag-soon { background: #F7ECD5; color: #7A4F00; }
.tag-live { background: #E2F0E7; color: #1D6B43; }
.tag-plain { background: #E6E8EC; color: var(--ink-2); }
.tag-lab { border: 1px dashed var(--muted); color: var(--ink-2); }
.work-cat { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.work-foot { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px 16px; font-family: var(--font-mono); font-size: 13px; }
.work-foot .stack { color: var(--muted); }

.shot {
  margin: 0;
  aspect-ratio: 16 / 10;
  max-width: 100%;
  overflow: hidden;
  background: var(--placeholder);
}
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.placeholder {
  border: 1px dashed var(--placeholder-line);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}

/* Founder */
.founder-band { padding-block: 40px 88px; }
.founder {
  border: 1.5px solid var(--ink);
  background: var(--paper);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
}
.founder > div { padding: 36px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.founder > div + div { border-left: 1px solid var(--line); justify-content: center; gap: 12px; }
.founder .h2 { font-size: clamp(30px, 4vw, 40px); }
.founder p { color: var(--ink-2); }
.founder .photo { width: 112px; height: 112px; object-fit: cover; }
.founder .photo.placeholder { font-size: 12px; }
.founder a { font-weight: 600; }
.clients { font-family: var(--font-display); font-weight: 500; font-size: 22px; line-height: 1.5; color: var(--ink); }
@media (max-width: 820px) { .founder > div + div { border-left: 0; border-top: 1px solid var(--line); } }

/* Contact */
.contact { border-top: 1.5px solid var(--ink); background: var(--paper); }
.contact .wrap {
  padding-block: 80px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 48px;
}
.contact .wrap > div { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.contact .wrap > div + div { gap: 14px; justify-content: center; }
.contact .lead { color: var(--ink-2); max-width: 30em; }
.email { font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 3vw, 34px); overflow-wrap: anywhere; }
.links { display: flex; flex-wrap: wrap; gap: 20px; font-weight: 500; }

.legal { font-style: normal; line-height: 1.7; }

/* Footer */
.site-footer .wrap {
  padding-block: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}
