:root {
  color-scheme: light;
  --ink: #141518;
  --muted: #5d635f;
  --paper: #f5f7f1;
  --surface: #fffef9;
  --surface-2: #e8eee5;
  --line: #d7ded2;
  --green: #168f68;
  --green-dark: #0f5f4a;
  --copper: #c86532;
  --cyan: #177fa2;
  --black: #090a0b;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(20, 21, 24, 0.12);
  --radius: 8px;
  --max: 1180px;
  --header: 74px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
  max-width: 100%;
  overflow-x: clip;
}

@supports not (overflow: clip) {
  html,
  body {
    overflow-x: hidden;
  }
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 clamp(18px, 4vw, 48px);
  background: rgba(245, 247, 241, 0.92);
  border-bottom: 1px solid rgba(215, 222, 210, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  color: var(--white);
  background: var(--black);
  border: 2px solid var(--green);
  border-radius: 6px;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
  line-height: 1.1;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.2;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.primary-nav a {
  padding: 10px 12px;
  color: var(--muted);
  text-decoration: none;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.92rem;
}

.primary-nav a:hover,
.primary-nav a:focus-visible,
.primary-nav a[aria-current="page"] {
  color: var(--ink);
  background: var(--surface-2);
  outline: none;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 10px;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  min-height: calc(84svh - var(--header));
  display: grid;
  align-items: end;
  gap: 34px;
  padding: clamp(58px, 8vw, 110px) clamp(20px, 5vw, 64px) 34px;
  color: var(--white);
  background-image:
    linear-gradient(90deg, rgba(9, 10, 11, 0.88), rgba(9, 10, 11, 0.58) 48%, rgba(9, 10, 11, 0.14)),
    var(--hero-image);
  background-size: cover;
  background-position: center;
}

.hero-inner {
  width: min(820px, 100%);
  min-width: 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.hero .eyebrow,
.research-band .eyebrow,
.contact-cta .eyebrow {
  color: #81e6bd;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  font-weight: 900;
}

h1 {
  max-width: 900px;
  font-size: clamp(3rem, 7vw, 6.8rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.8rem);
}

h3 {
  font-size: 1.2rem;
}

.hero-lede {
  max-width: 720px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.08rem, 2.2vw, 1.45rem);
}

.hero-actions,
.footer-links,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 850;
  line-height: 1.1;
  cursor: pointer;
}

.hero-actions {
  margin-top: 30px;
}

.button.primary {
  color: var(--white);
  background: var(--green);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--green-dark);
}

.button.secondary {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line);
}

.hero .button.secondary,
.research-band .button.secondary,
.contact-cta .button.secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
}

.hero-metrics {
  width: auto;
  max-width: var(--max);
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.22);
}

.hero-metrics div {
  padding: 18px;
  background: rgba(9, 10, 11, 0.68);
}

.hero-metrics dt {
  font-weight: 950;
  font-size: clamp(1.55rem, 3vw, 2.5rem);
}

.hero-metrics dd {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.74);
}

.intro-band,
.founder-strip,
.contact-cta,
.research-band,
.section-pad,
.page-hero,
.text-hero,
.content-shell {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.intro-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 6vw, 78px);
  padding: clamp(42px, 6vw, 76px) 0;
}

.intro-band p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.section-pad {
  padding: clamp(54px, 8vw, 104px) 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: clamp(24px, 4vw, 38px);
}

.section-heading h2 {
  max-width: 720px;
}

.card-grid {
  display: grid;
  gap: 16px;
}

.card-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.link-card {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(20, 21, 24, 0.05);
}

.link-card p {
  margin: 14px 0 26px;
  color: var(--muted);
}

.link-card a {
  margin-top: auto;
  color: var(--green-dark);
  font-weight: 900;
  text-decoration: none;
}

.feature-split,
.research-band,
.page-hero,
.content-shell,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(26px, 5vw, 64px);
  align-items: center;
}

.feature-split figure,
.research-band figure,
.page-hero-media,
.prose figure {
  margin: 0;
}

.feature-split img,
.research-band img,
.page-hero-media img,
.prose figure img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.88rem;
}

.feature-split p,
.research-band p,
.founder-strip p,
.contact-cta p {
  color: var(--muted);
}

.check-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 22px 0 26px;
  list-style: none;
}

.check-list li {
  padding-left: 22px;
  border-left: 4px solid var(--copper);
}

.process {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  padding: 0;
  margin: 0;
  list-style: none;
  background: var(--line);
  border: 1px solid var(--line);
}

.process-list li {
  min-height: 190px;
  padding: 24px;
  background: var(--surface);
  counter-increment: step;
}

.process-list li::before {
  content: "0" counter(step);
  display: block;
  margin-bottom: 34px;
  color: var(--cyan);
  font-weight: 950;
}

.process-list span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
}

.research-band {
  padding: clamp(42px, 7vw, 76px);
  color: var(--white);
  background: #161816;
  border-radius: 0;
}

.research-band p {
  color: rgba(255, 255, 255, 0.78);
}

.research-band figure img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.founder-strip,
.contact-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(34px, 5vw, 54px);
  margin-bottom: clamp(54px, 8vw, 94px);
  background: var(--surface);
  border: 1px solid var(--line);
}

.contact-cta {
  display: block;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(9, 10, 11, 0.92), rgba(9, 10, 11, 0.66)),
    url("/assets/images/strix-pcb-detail.jpg") center / cover;
}

.contact-cta h2 {
  max-width: 760px;
  margin-bottom: 24px;
}

.page-hero,
.text-hero {
  padding: clamp(46px, 7vw, 86px) 0;
}

.page-hero-copy p:last-child,
.text-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero *,
.page-hero *,
.text-hero * {
  min-width: 0;
}

.page-hero-media img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.cooling-page .page-hero-media img {
  aspect-ratio: 3 / 4;
}

.open-source-page .page-hero-media img {
  aspect-ratio: 1 / 1;
  object-position: center;
}

.open-source-page .page-hero-media {
  max-width: 560px;
  justify-self: center;
}

.open-source-page .page-hero h1 {
  max-width: 760px;
  font-size: clamp(2.6rem, 4.8vw, 4.4rem);
}

.content-shell {
  align-items: start;
  padding-bottom: clamp(60px, 8vw, 110px);
}

.prose {
  color: var(--ink);
}

.prose > *:first-child {
  margin-top: 0;
}

.prose h2,
.prose h3 {
  margin: 38px 0 14px;
}

.prose h2 {
  font-size: clamp(1.55rem, 3vw, 2.2rem);
}

.prose h3 {
  font-size: 1.2rem;
}

.prose p,
.prose li {
  color: #343936;
}

.prose a {
  color: var(--green-dark);
  font-weight: 800;
}

.phone-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 30px 0;
}

.phone-gallery figure {
  margin: 0;
}

.phone-gallery img {
  aspect-ratio: 9 / 19.6;
  object-fit: cover;
  object-position: top center;
}

.open-source-page .prose > figure {
  margin: 24px 0 30px;
}

.prose hr {
  height: 1px;
  margin: 32px 0;
  background: var(--line);
  border: 0;
}

.prose figure {
  margin: 28px 0;
}

.proof-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 30px 0;
}

.proof-gallery figure {
  margin: 0;
}

.proof-gallery img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.imported-content {
  padding: clamp(26px, 4vw, 44px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.import-note,
.form-note {
  color: var(--muted);
  font-size: 0.9rem;
}

.fact-panel,
.contact-aside {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: sticky;
  top: calc(var(--header) + 24px);
}

.fact-panel dl,
.contact-aside ul {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 22px 0;
}

.fact-panel dl div {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.fact-panel dt {
  font-weight: 900;
}

.fact-panel dd {
  margin: 4px 0 0;
  color: var(--muted);
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: clamp(22px, 4vw, 34px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.contact-form label,
.contact-form span {
  display: grid;
  gap: 8px;
}

.contact-form .honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form span {
  color: var(--muted);
  font-weight: 850;
  font-size: 0.9rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.contact-form textarea {
  resize: vertical;
}

.turnstile-shell:empty {
  display: none;
}

.form-status {
  min-height: 24px;
  margin: 0;
  font-weight: 800;
}

.form-status[data-state="pending"] {
  color: var(--cyan);
}

.form-status[data-state="success"] {
  color: var(--green-dark);
}

.form-status[data-state="error"] {
  color: #a73520;
}

.contact-form button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.span-2 {
  grid-column: 1 / -1;
}

.contact-aside h2 {
  font-size: 1.35rem;
  margin-top: 26px;
}

.contact-aside h2:first-child {
  margin-top: 0;
}

.data-embed {
  position: relative;
  min-height: 640px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.data-embed iframe {
  width: 100%;
  height: 640px;
  border: 0;
}

.site-footer {
  padding: clamp(42px, 6vw, 72px) clamp(20px, 5vw, 64px) 24px;
  color: rgba(255, 255, 255, 0.78);
  background: var(--black);
}

.footer-grid {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: clamp(28px, 5vw, 58px);
}

.footer-kicker,
.site-footer strong {
  color: var(--white);
  font-weight: 900;
}

.footer-links {
  margin-top: 22px;
}

.footer-links a {
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
}

address {
  font-style: normal;
}

.footer-bottom {
  width: min(var(--max), 100%);
  margin: 42px auto 0;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .menu-toggle {
    display: block;
  }

  .primary-nav {
    position: fixed;
    inset: var(--header) 0 auto 0;
    display: none;
    padding: 18px 20px 28px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .primary-nav.is-open {
    display: grid;
  }

  .primary-nav a {
    padding: 14px;
  }

  .hero {
    min-height: 80svh;
    background-position: 58% center;
  }

  .intro-band,
  .feature-split,
  .research-band,
  .page-hero,
  .content-shell,
  .contact-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .card-grid.four,
  .card-grid.three,
  .card-grid.two,
  .process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fact-panel,
  .contact-aside {
    position: static;
  }
}

@media (max-width: 660px) {
  :root {
    --header: 68px;
  }

  .site-header {
    padding: 0 14px;
    width: 100vw;
    max-width: 100vw;
  }

  .menu-toggle {
    display: block !important;
    position: absolute;
    top: 12px;
    right: 14px;
    border-color: #9aa89d;
  }

  .brand small {
    display: none;
  }

  h1 {
    font-size: clamp(1.9rem, 8vw, 2.2rem);
    word-break: normal;
    overflow-wrap: anywhere;
    max-width: calc(100vw - 36px);
  }

  .hero h1 {
    font-size: clamp(2.2rem, 9.5vw, 2.65rem);
  }

  .open-source-page .page-hero h1 {
    font-size: clamp(1.9rem, 8vw, 2.25rem);
  }

  .hero-lede,
  .page-hero-copy p:last-child,
  .text-hero p {
    max-width: calc(100vw - 36px);
    font-size: 1rem;
    overflow-wrap: anywhere;
  }

  .hero-lede {
    max-width: min(320px, calc(100vw - 36px));
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: min(320px, calc(100vw - 36px));
  }

  .hero-actions .button {
    width: 100%;
    padding-inline: 10px;
    font-size: 0.94rem;
  }

  .hero {
    min-height: 78svh;
    padding: 46px 18px 24px;
  }

  .hero-metrics,
  .card-grid.four,
  .card-grid.three,
  .card-grid.two,
  .proof-gallery,
  .phone-gallery,
  .process-list,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .intro-band,
  .founder-strip,
  .contact-cta,
  .research-band,
  .section-pad,
  .page-hero,
  .text-hero,
  .content-shell {
    width: min(calc(100% - 28px), var(--max));
  }

  .founder-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .process-list li,
  .link-card {
    min-height: auto;
  }

  .span-2 {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
