@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/BarlowCondensed-600.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/BarlowCondensed-700.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/assets/fonts/BarlowCondensed-800.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/fonts/IBMPlexSans.woff2") format("woff2");
}

:root {
  --bg: #12110f;
  --bg-raise: #1b1a17;
  --bg-hero: #0d0c0b;
  --paper: #efe8d8;
  --ink: #141210;
  --text: #f3eee4;
  --muted: #b4ada0;
  --gold: #f0b400;
  --gold-2: #f8c000;
  --orange: #ee7418;
  --line: rgba(243, 238, 228, 0.12);
  --line-strong: rgba(243, 238, 228, 0.22);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --sans: "IBM Plex Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  --display: "Barlow Condensed", "Arial Narrow", "Franklin Gothic Medium", sans-serif;
  --max: 1120px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 14px;
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--gold-2);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 20;
  background: var(--gold);
  color: var(--ink);
  padding: 0.5rem 0.8rem;
  font-weight: 600;
}

.skip:focus {
  top: 0.75rem;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
  box-sizing: border-box;
}

.kicker {
  margin: 0 0 0.7rem;
  font-family: var(--display);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(18, 17, 15, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  text-decoration: none;
  min-width: 0;
}

.brand:hover {
  color: var(--text);
}

.brand svg {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.05;
  white-space: nowrap;
}

.brand-short {
  display: none;
}

.nav {
  display: flex;
  gap: 0.15rem 1.15rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

.nav a:hover {
  color: var(--gold);
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(3rem, 8vw, 6.5rem);
  background:
    radial-gradient(900px 420px at 85% 10%, rgba(240, 180, 0, 0.14), transparent 55%),
    radial-gradient(700px 380px at 0% 100%, rgba(238, 116, 24, 0.1), transparent 50%),
    var(--bg-hero);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    104deg,
    transparent 0 46px,
    rgba(240, 180, 0, 0.045) 46px 47px
  );
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 2.5rem;
  align-items: end;
}

@media (min-width: 860px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 3.5rem;
  }
}

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(3.1rem, 9.4vw, 7rem);
  line-height: 0.86;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.hero h1 .line {
  display: block;
}

.hero h1 .accent {
  display: block;
  color: var(--gold);
}

.lede {
  max-width: 38rem;
  margin: 1.4rem 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-top: 1.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--gold);
  color: var(--ink);
}

.btn-primary:hover {
  background: var(--gold-2);
  color: var(--ink);
}

.btn-ghost {
  color: var(--text);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.hero-aside {
  border: 1px solid var(--line);
  background: rgba(27, 26, 23, 0.55);
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem 1.35rem;
}

.hero-aside p {
  margin: 0;
  color: var(--muted);
}

.hero-aside p + p {
  margin-top: 0.9rem;
}

.hero-aside strong {
  color: var(--text);
  font-weight: 600;
}

/* Facts */

.facts {
  border-block: 1px solid var(--line);
  background: var(--bg-raise);
}

.facts-grid {
  display: grid;
  grid-template-columns: 1fr;
}

@media (max-width: 959px) {
  .fact + .fact {
    border-top: 1px solid var(--line);
  }
}

@media (min-width: 960px) {
  .facts-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .fact {
    padding: 1.6rem 1.5rem 1.6rem 0;
  }

  .fact + .fact {
    border-left: 1px solid var(--line);
    padding-left: 1.5rem;
  }
}

.fact {
  padding: 1.35rem 0;
}

.fact dt {
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.fact dd {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Sections */

.section {
  padding: clamp(3.2rem, 7vw, 5.5rem) 0;
  scroll-margin-top: 4.5rem;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.2rem;
}

.section h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 0.95;
}

.section-head p {
  margin: 0.85rem 0 0;
  color: var(--muted);
}

.about-copy {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 800px) {
  .about-copy {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: start;
  }
}

.about-copy p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.note {
  border-left: 3px solid var(--orange);
  padding: 0.15rem 0 0.15rem 1rem;
  color: var(--text);
}

/* Products */

.products {
  background:
    linear-gradient(180deg, rgba(240, 180, 0, 0.05), transparent 180px),
    var(--bg);
}

.product-list {
  display: grid;
  gap: 1rem;
}

.product {
  display: grid;
  gap: 1rem;
  padding: 1.4rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raise);
}

@media (min-width: 800px) {
  .product {
    grid-template-columns: 8.5rem 1fr;
    gap: 1.5rem 2rem;
    padding: 1.7rem 1.7rem 1.8rem;
  }
}

.product-index {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.product h3 {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
}

.product .tagline {
  margin: 0 0 1rem;
  color: var(--text);
  font-weight: 500;
}

.product p {
  margin: 0 0 0.85rem;
  color: var(--muted);
}

.product p:last-child {
  margin-bottom: 0;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.1rem;
}

.meta span {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.22rem 0.7rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--paper);
}

/* Contact */

.contact {
  background: var(--paper);
  color: var(--ink);
}

.contact .kicker {
  color: var(--orange);
}

.contact h2 {
  color: var(--ink);
}

.contact .section-head p {
  color: #4a453c;
}

.contact-card a {
  color: #4a453c;
}

.contact-card a:hover {
  color: #9a4a0c;
}

.contact-card .stack-title {
  margin-top: 1.4rem;
}

.contact-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 800px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

.contact-card,
.contact-cta {
  background: #fffdf8;
  border: 1px solid rgba(20, 18, 16, 0.1);
  border-radius: var(--radius);
  padding: 1.3rem 1.25rem 1.4rem;
}

.contact-card h3 {
  margin: 0 0 0.65rem;
  font-family: var(--display);
  font-size: 1.2rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-card p {
  margin: 0;
  color: #4a453c;
}

.contact-card p + p {
  margin-top: 0.85rem;
}

.contact-cta {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.contact-cta .kicker {
  color: var(--gold);
}

.contact-cta p {
  margin: 0.4rem 0 0;
  color: var(--muted);
}

.contact-cta a.btn {
  align-self: flex-start;
}

.big-link {
  display: block;
  color: var(--gold);
  font-family: var(--display);
  font-size: clamp(1.15rem, 2.2vw, 1.7rem);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.01em;
  overflow-wrap: break-word;
}

.big-link:hover {
  color: var(--gold-2);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.4rem 0 1.8rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.footer-inner {
  display: grid;
  gap: 0.8rem;
}

@media (min-width: 800px) {
  .footer-inner {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
}

.legal {
  margin: 0;
}

.social {
  display: flex;
  gap: 1rem;
}

.social a {
  color: var(--muted);
  text-decoration: none;
}

.social a:hover {
  color: var(--gold);
}

.page-404 {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.page-404 main {
  display: grid;
  place-items: center;
  padding: 4rem var(--pad);
  text-align: center;
}

.page-404 h1 {
  margin: 0 0 0.6rem;
  font-family: var(--display);
  font-size: clamp(2.4rem, 8vw, 6rem);
  line-height: 0.9;
  text-transform: uppercase;
  padding-inline: var(--pad);
}

.page-404 .lede {
  margin-inline: auto;
  padding-inline: var(--pad);
}

@media (max-width: 720px) {
  .header-inner {
    flex-wrap: wrap;
    align-items: center;
    min-height: 0;
    padding-block: 0.7rem;
    row-gap: 0.45rem;
  }

  .brand-full {
    display: none;
  }

  .brand-short {
    display: inline;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
    gap: 1rem;
  }

  .nav a {
    font-size: 0.92rem;
  }

  .hero h1 {
    font-size: clamp(2.4rem, 11vw, 3.8rem);
  }
}

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