/* ============================================================
   Dirac Tech — design system
   Anthropic-inspired: warm cream canvas, near-black ink,
   coral/clay accent, editorial serif, generous whitespace.
   ============================================================ */

:root {
  /* Surfaces */
  --canvas:        #faf9f5;   /* primary warm off-white */
  --canvas-alt:    #f0eee6;   /* alternate section band */
  --surface-warm:  #f5e3c7;   /* warm highlight (used sparingly) */
  --footer-bg:     #141413;   /* near-black warm */

  /* Ink */
  --ink:           #141413;   /* primary text */
  --ink-soft:      #3d3c37;   /* secondary text */
  --muted:         #6f6d64;   /* captions, meta */
  --on-dark:       #ecebe5;   /* text on footer */
  --on-dark-muted: #a3a199;

  /* Accent */
  --coral:         #cc785c;
  --clay:          #d97757;
  --clay-hover:    #c6613f;

  /* Lines */
  --hairline:      #e6dfd8;
  --hairline-dark: #2b2a27;

  /* Type */
  --font-serif: "Source Serif 4", Charter, "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-sans:  "Inter", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono:  "SF Mono", ui-monospace, "JetBrains Mono", Menlo, monospace;

  /* Layout */
  --maxw: 1180px;
  --gutter: 24px;
  --radius: 10px;
  --radius-pill: 9999px;
  --section-y: 96px;
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 20px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; line-height: 1.1; letter-spacing: -0.01em; }
p { margin: 0; }

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: 64px; }
.band { background: var(--canvas-alt); }
.stack > * + * { margin-top: 1.1em; }
.eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--canvas) 88%, transparent);
  backdrop-filter: saturate(1.1) blur(8px);
  border-bottom: 1px solid var(--hairline);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-serif);
  font-size: 22px; letter-spacing: -0.02em; color: var(--ink);
}
.brand__mark {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--ink); color: var(--canvas);
  font-family: var(--font-serif); font-size: 18px; line-height: 1;
  transform: translateY(-1px);
}
.brand strong { font-weight: 600; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a {
  font-family: var(--font-sans);
  font-size: 15px; font-weight: 500; color: var(--ink-soft);
  transition: color .15s ease;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { padding-block: 128px 88px; }
.hero__title {
  font-size: clamp(40px, 6.2vw, 68px);
  line-height: 1.03;
  letter-spacing: -0.025em;
  max-width: 15ch;
}
.hero__lead {
  margin-top: 28px;
  font-size: clamp(19px, 2.2vw, 23px);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 46ch;
}
.hero__actions { margin-top: 36px; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }

/* ---------- Links & buttons ---------- */
.link-arrow {
  font-family: var(--font-sans);
  font-size: 15px; font-weight: 600; color: var(--coral);
  display: inline-flex; align-items: center; gap: 7px;
}
.link-arrow::after { content: "\2192"; transition: transform .15s ease; }
.link-arrow:hover::after { transform: translateX(3px); }

.btn {
  font-family: var(--font-sans);
  font-size: 15px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: var(--radius);
  background: var(--clay); color: #fff;
  border: 1px solid transparent;
  transition: background .15s ease;
}
.btn:hover { background: var(--clay-hover); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--hairline); }
.btn--ghost:hover { background: var(--canvas-alt); }

/* ---------- Section headings ---------- */
.section-head { max-width: 60ch; }
.section-head h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  letter-spacing: -0.02em;
}
.section-head p { margin-top: 18px; color: var(--ink-soft); font-size: 20px; }

/* ---------- Statement band ---------- */
.statement {
  font-size: clamp(28px, 4.2vw, 46px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  max-width: 24ch;
}
.statement .accent { color: var(--coral); }

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

.feature { }
.feature__num {
  font-family: var(--font-mono);
  font-size: 13px; color: var(--muted); letter-spacing: 0.02em;
  margin-bottom: 16px;
}
.feature h3 { font-size: 24px; letter-spacing: -0.015em; }
.feature p { margin-top: 12px; color: var(--ink-soft); font-size: 18px; line-height: 1.55; }

/* ---------- Prose (approach page) ---------- */
.prose { max-width: 64ch; }
.prose h2 { font-size: clamp(26px, 3vw, 34px); margin-top: 64px; letter-spacing: -0.02em; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-top: 20px; color: var(--ink-soft); }
.prose p:first-of-type { color: var(--ink); }

/* ---------- Team ---------- */
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 28px; }
.person {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 28px;
  background: var(--canvas);
}
.person__avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--canvas-alt);
  display: grid; place-items: center;
  font-family: var(--font-serif); font-size: 22px; color: var(--muted);
  margin-bottom: 20px;
}
.person h3 { font-size: 21px; }
.person__role {
  font-family: var(--font-sans); font-size: 13px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--coral);
  margin-top: 6px;
}
.person p { margin-top: 14px; font-size: 16px; line-height: 1.55; color: var(--ink-soft); }

/* ---------- Contact ---------- */
.contact-email {
  font-size: clamp(26px, 3.6vw, 38px);
  letter-spacing: -0.02em;
  color: var(--ink);
  border-bottom: 2px solid var(--coral);
  display: inline-block;
  padding-bottom: 2px;
}
.contact-email:hover { color: var(--coral); }
.meta-line { font-family: var(--font-sans); font-size: 15px; color: var(--muted); }

/* ---------- Disclosure ---------- */
.disclosure {
  max-width: 72ch;
  font-family: var(--font-sans);
  font-size: 13px; line-height: 1.65; color: var(--muted);
}
.disclosure p + p { margin-top: 14px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--footer-bg); color: var(--on-dark);
  padding-block: 72px 40px;
}
.site-footer a { color: var(--on-dark-muted); }
.site-footer a:hover { color: var(--on-dark); }
.footer-top {
  display: flex; justify-content: space-between; gap: 48px;
  flex-wrap: wrap; padding-bottom: 48px;
  border-bottom: 1px solid var(--hairline-dark);
}
.footer-brand { font-family: var(--font-serif); font-size: 22px; letter-spacing: -0.02em; color: var(--on-dark); }
.footer-brand p { margin-top: 12px; font-family: var(--font-sans); font-size: 14px; color: var(--on-dark-muted); max-width: 34ch; }
.footer-nav { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col h4 {
  font-family: var(--font-sans); font-size: 12px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-dark-muted);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li + li { margin-top: 10px; }
.footer-col a { font-family: var(--font-sans); font-size: 15px; }
.footer-legal {
  margin-top: 40px;
  font-family: var(--font-sans); font-size: 12.5px; line-height: 1.7;
  color: var(--on-dark-muted); max-width: 78ch;
}
.footer-legal p + p { margin-top: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  :root { --section-y: 72px; }
  .grid--3, .grid--2, .people { grid-template-columns: 1fr; }
  .hero { padding-block: 88px 64px; }
  .nav { display: none; }
  .nav--open { display: flex; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 4px; background: var(--canvas);
    border-bottom: 1px solid var(--hairline); padding: 16px var(--gutter) 24px; }
  .nav--open a { padding: 8px 0; font-size: 17px; }
  .nav-toggle {
    display: inline-flex; background: none; border: 1px solid var(--hairline);
    border-radius: 8px; padding: 8px 12px; font-family: var(--font-sans);
    font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer;
  }
  .footer-top { flex-direction: column; gap: 40px; }
}
