@import url("https://fonts.googleapis.com/css2?family=Archivo:wdth,wght@100..125,200..800&family=Bagel+Fat+One&family=Fredoka:wght@400;500;600;700&family=IBM+Plex+Sans:wght@400;500;600&display=swap");

:root,
[data-theme="light"] {
  color-scheme: light;
  --cream: #fff7f0;
  --surface: #fffdfa;
  --soft: #fff0e2;
  --ink: #141311;
  --muted: #685d55;
  --deep: #111111;
  --sun: #ffe1c5;
  --tangerine: #ff9f50;
  --bubble: #f07d2d;
  --mint: #ffd0a8;
  --sky: #fff0e2;
  --peach: #ffe1c5;
  --accent-ink: #141311;
  --line: rgba(20, 19, 17, 0.14);
  --shadow: #111111;
  --on-dark: #fff7f0;
}

[data-theme="dark"] {
  color-scheme: dark;
  --cream: #0d0d0d;
  --surface: #181818;
  --soft: #242424;
  --ink: #fff7f0;
  --muted: #cfc4bc;
  --deep: #050505;
  --sun: #ffd0a8;
  --tangerine: #ff9f50;
  --bubble: #f07d2d;
  --mint: #ffb36f;
  --sky: #242424;
  --peach: #ffbf85;
  --accent-ink: #141311;
  --line: rgba(255, 255, 255, 0.13);
  --shadow: #000000;
  --on-dark: #fff7f0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background-color: var(--cream);
  background-image:
    radial-gradient(
      ellipse 66% 64% at 50% 46%,
      transparent 0%,
      transparent 22%,
      rgba(255, 247, 240, 0.66) 58%,
      rgba(255, 247, 240, 0.96) 78%,
      #fff7f0 88%
    ),
    linear-gradient(rgba(121, 76, 44, 0.065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(121, 76, 44, 0.065) 1px, transparent 1px),
    radial-gradient(
      ellipse 66% 64% at 50% 46%,
      #ffe9d8 0%,
      #fff4ea 48%,
      #fff7f0 86%
    );
  background-position: center, 0 0, 0 0, center;
  background-repeat: no-repeat, repeat, repeat, no-repeat;
  background-size: 100vw 100vh, 48px 48px, 48px 48px, 100vw 100vh;
  background-attachment: fixed;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

[data-theme="dark"] body {
  background-image:
    radial-gradient(
      ellipse 66% 64% at 50% 46%,
      transparent 0%,
      transparent 22%,
      rgba(13, 13, 13, 0.66) 58%,
      rgba(13, 13, 13, 0.96) 78%,
      #0d0d0d 88%
    ),
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    radial-gradient(
      ellipse 66% 64% at 50% 46%,
      rgba(240, 125, 45, 0.2) 0%,
      #17120f 48%,
      #0d0d0d 86%
    );
}

a,
button,
input,
.card,
.panel {
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  border-bottom: 4px solid var(--ink);
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.topbar-inner {
  display: flex;
  width: min(100%, 1280px);
  min-height: 72px;
  margin: 0 auto;
  padding: 10px 20px;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.topbar img {
  display: block;
  width: auto;
  height: 46px;
}

.logo-on-dark {
  display: none !important;
}

[data-theme="dark"] .logo-on-light {
  display: none !important;
}

[data-theme="dark"] .logo-on-dark {
  display: block !important;
}

.page-nav {
  display: flex;
  margin-left: auto;
  align-items: center;
  gap: clamp(16px, 2vw, 30px);
}

.page-nav a,
.topbar a {
  font-weight: 600;
  text-decoration: none;
}

.page-nav a {
  color: color-mix(in srgb, var(--ink) 84%, transparent);
  font-size: 0.94rem;
}

.page-nav a:hover,
.page-nav a:focus-visible {
  color: var(--tangerine);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 2px 2px 0 var(--shadow);
  font: 700 1rem/1 "IBM Plex Sans", system-ui, sans-serif;
  cursor: pointer;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  transform: translateY(2px);
  box-shadow: none;
}

.button,
button:not(.theme-toggle) {
  display: inline-flex;
  margin: 0;
  padding: 11px 20px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ink);
  border-radius: 999px;
  color: var(--accent-ink);
  background: var(--tangerine);
  box-shadow: 2px 2px 0 var(--shadow);
  font: 600 0.95rem/1.2 "IBM Plex Sans", system-ui, sans-serif;
  text-decoration: none;
  cursor: pointer;
}

.button:hover,
.button:focus-visible,
button:not(.theme-toggle):hover,
button:not(.theme-toggle):focus-visible {
  transform: translateY(2px);
  box-shadow: none;
}

main {
  width: min(100%, 1180px);
  min-height: 60vh;
  margin: 0 auto;
  padding: clamp(54px, 8vw, 96px) 20px clamp(76px, 9vw, 112px);
}

.hero {
  position: relative;
  max-width: 980px;
  padding: 0 0 clamp(34px, 5vw, 54px);
}

.eyebrow {
  display: inline-flex;
  padding: 7px 16px;
  align-items: center;
  border: 2px solid var(--ink);
  border-radius: 999px;
  color: var(--accent-ink);
  background: var(--sun);
  box-shadow: 2px 2px 0 var(--shadow);
  font-size: 0.9rem;
  font-weight: 600;
}

h1,
h2 {
  margin: 0;
  font-family: "Archivo", system-ui, sans-serif;
  font-variation-settings: "wdth" 116;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 900px;
  margin-top: 24px;
  font-size: clamp(3.25rem, 8vw, 6.75rem);
  font-weight: 650;
  line-height: 0.94;
}

h2 {
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  font-weight: 620;
  line-height: 1.05;
}

p,
li {
  font-size: 1rem;
  line-height: 1.65;
  text-wrap: pretty;
}

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

.lead {
  max-width: 780px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  line-height: 1.55;
}

.stack {
  display: grid;
  gap: 24px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.panel,
.card {
  position: relative;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 4px;
  box-shadow: 4px 4px 0 var(--shadow);
}

.panel {
  padding: clamp(24px, 4vw, 38px);
  border-left-width: 10px;
  border-left-color: var(--tangerine);
  background: var(--surface);
}

.card {
  min-height: 190px;
  padding: clamp(24px, 3.4vw, 34px);
  background: var(--surface);
}

.grid .card:nth-child(even) {
  color: var(--accent-ink);
  background: var(--tangerine);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 7px 7px 0 var(--shadow);
}

.panel h2 + p,
.card h2 + p {
  margin: 14px 0 0;
  color: var(--muted);
}

.grid .card:nth-child(even) h2 + p {
  color: color-mix(in srgb, var(--accent-ink) 74%, transparent);
}

.panel ul,
.card ul {
  margin: 16px 0 0;
  padding-left: 22px;
}

.panel li + li,
.card li + li {
  margin-top: 7px;
}

.contact-panel > h2 {
  font-weight: 750;
}

.contact-intro {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--muted);
  text-wrap: pretty;
}

.contact-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(26px, 4vw, 46px) clamp(30px, 6vw, 72px);
  margin-top: clamp(34px, 5vw, 54px);
}

.contact-detail {
  padding-top: 18px;
  border-top: 2px solid var(--ink);
}

.contact-detail-wide {
  grid-column: 1 / -1;
}

.contact-detail h3 {
  margin: 0 0 10px;
  font-family: "Archivo", system-ui, sans-serif;
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  font-variation-settings: "wdth" 116;
  font-weight: 750;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.contact-detail p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  text-wrap: pretty;
}

.contact-detail a {
  color: var(--ink);
  font-weight: 700;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}

.contact-detail .contact-legal {
  margin-top: 10px;
  font-size: 0.86rem;
  font-weight: 600;
}

.accent {
  border-left-color: var(--ink);
  color: var(--accent-ink);
  background: var(--peach);
}

.fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.field-control {
  min-width: 0;
}

.field-error {
  margin: 7px 2px 0;
  color: #9e2f00;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
}

.field-error[hidden] {
  display: none;
}

input {
  width: 100%;
  min-width: 0;
  padding: 14px 16px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  outline: none;
  color: var(--ink);
  background: var(--surface);
  font: inherit;
}

input:focus {
  border-color: var(--ink);
  box-shadow: 4px 4px 0 var(--tangerine);
}

input[aria-invalid="true"] {
  border-color: #b33800;
  box-shadow: 0 0 0 3px rgba(179, 56, 0, 0.18);
}

input[aria-invalid="true"]:focus {
  box-shadow: 4px 4px 0 #b33800;
}

.accent button {
  margin-top: 18px;
  color: var(--on-dark);
  background: var(--deep);
}

.muted {
  margin-bottom: 0;
  color: color-mix(in srgb, var(--ink) 68%, transparent);
  font-size: 0.92rem;
}

.accent .muted {
  color: #141311;
}

/* About page: a compact editorial story instead of feature lists. */
.about-page {
  width: min(100%, 1280px);
}

.about-hero {
  display: grid;
  max-width: none;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  align-items: end;
  gap: clamp(24px, 5vw, 68px);
}

.about-hero-copy {
  position: relative;
  z-index: 1;
  container-type: inline-size;
}

.about-hero h1 {
  font-size: clamp(1.5rem, 9.5cqw, 5.6rem);
  line-height: 0.86;
}

.about-title-light,
.about-title-bold {
  display: block;
}

.about-title-light {
  font-weight: 200;
  white-space: nowrap;
}

.about-title-bold {
  font-weight: 750;
}

.about-hero-art {
  display: flex;
  min-height: 300px;
  align-items: flex-end;
  justify-content: center;
}

.about-hero-art img {
  display: block;
  width: min(100%, 470px);
  height: auto;
}

.about-manifesto {
  position: relative;
  overflow: hidden;
  padding: clamp(30px, 5vw, 58px);
  border: 2px solid #141311;
  border-radius: 4px;
  color: #ffffff;
  background: #141311;
  box-shadow: 7px 7px 0 var(--tangerine);
}

.about-manifesto::after {
  content: "BUILD • TEST • DISCOVER";
  position: absolute;
  right: -1rem;
  bottom: -0.35em;
  color: rgba(255, 255, 255, 0.055);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.about-label {
  position: relative;
  z-index: 1;
  display: inline-block;
  color: #ff9f50;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.about-manifesto h2 {
  position: relative;
  z-index: 1;
  max-width: 850px;
  margin-top: 14px;
  font-size: clamp(2.7rem, 6vw, 5.7rem);
  line-height: 0.96;
}

.about-manifesto p {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1.05rem, 1.8vw, 1.24rem);
}

.about-principles {
  display: grid;
  margin-top: clamp(34px, 5vw, 60px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.about-principle {
  position: relative;
  min-height: 300px;
  padding: clamp(24px, 3vw, 36px);
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--surface);
  box-shadow: 4px 4px 0 var(--shadow);
}

.about-principle:nth-child(2) {
  color: var(--accent-ink);
  background: var(--sun);
}

.about-index {
  display: block;
  margin-bottom: clamp(52px, 7vw, 86px);
  color: color-mix(in srgb, currentColor 48%, transparent);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.about-principle h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 0.98;
}

.about-principle p {
  margin: 18px 0 0;
  color: var(--muted);
}

.about-principle:nth-child(2) p {
  color: color-mix(in srgb, var(--accent-ink) 72%, transparent);
}

.about-invitation {
  display: grid;
  margin-top: clamp(34px, 5vw, 60px);
  padding: clamp(28px, 4vw, 44px);
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 28px;
  border: 2px solid var(--ink);
  border-left: 10px solid var(--tangerine);
  border-radius: 4px;
  background: var(--peach);
  box-shadow: 4px 4px 0 var(--shadow);
}

.about-invitation .about-label {
  color: var(--bubble);
}

.about-invitation h2 {
  max-width: 860px;
  margin-top: 12px;
  font-size: clamp(2rem, 4.2vw, 3.7rem);
  line-height: 1;
}

.about-invitation-light,
.about-invitation-bold {
  display: block;
}

.about-invitation-light {
  font-weight: 200;
}

.about-invitation-bold {
  font-weight: 750;
}

.no-orphan {
  white-space: nowrap;
}

.about-invitation .button {
  flex: none;
  white-space: nowrap;
}

@media (min-width: 701px) {
  .about-invitation {
    position: relative;
    grid-template-columns: minmax(0, 1fr);
  }

  .about-invitation h2 {
    max-width: none;
    font-size: clamp(1.6rem, 4.2vw, 3.7rem);
  }

  .about-purpose-line {
    display: block;
    white-space: nowrap;
  }

  .about-invitation .button {
    position: absolute;
    right: clamp(28px, 4vw, 44px);
    bottom: clamp(28px, 4vw, 44px);
  }
}

.site-footer {
  width: 100%;
  border-top: 0;
  color: #ffffff;
  background: #111111;
  font-family: "Fredoka", system-ui, sans-serif;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer img {
  display: block;
  width: auto;
  height: 64px;
}

.footer-shell {
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: 40px 20px;
}

.footer-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.footer-action {
  display: inline-flex;
  min-height: 44px;
  margin: 0;
  padding: 10px 20px;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  border-radius: 999px;
  color: #141311 !important;
  background: #ffffff;
  font-size: 0.875rem;
  font-family: "Fredoka", system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.25;
}

.footer-action-email {
  border-color: var(--sun);
  background: var(--sun);
}

.footer-action:hover,
.footer-action:focus-visible {
  transform: translateY(-2px);
}

.footer-links {
  display: grid;
  margin-top: 32px;
  padding-top: 28px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-group h2 {
  color: #ffe1c5;
  font-family: "Bagel Fat One", "Fredoka", system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.footer-group ul {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.footer-group li + li {
  margin-top: 8px;
}

.footer-group a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  line-height: 1.45;
}

.footer-group a:hover,
.footer-group a:focus-visible {
  color: #ffffff;
}

.footer-meta {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  line-height: 1.5;
  text-wrap: pretty;
}

@media (max-width: 980px) {
  .page-nav {
    display: none;
  }

  .about-hero {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.45fr);
  }

  .about-principles {
    grid-template-columns: 1fr 1fr;
  }

  .about-principle:last-child {
    grid-column: 1 / -1;
    min-height: 250px;
  }
}

@media (min-width: 768px) {
  .site-footer img {
    height: 80px;
  }

  .footer-shell {
    padding-block: 48px;
  }
}

@media (max-width: 700px) {
  .topbar-inner {
    min-height: 64px;
    gap: 16px;
  }

  .topbar img {
    height: 34px;
  }

  .button {
    padding: 10px 14px;
    font-size: 0.84rem;
    line-height: 1.05;
  }

  main {
    padding-top: 48px;
  }

  h1 {
    font-size: clamp(3rem, 16vw, 5rem);
  }

  .engineering-title {
    max-width: 100%;
    font-size: clamp(2.65rem, 13vw, 4.25rem);
  }

  p,
  li,
  .lead,
  .about-manifesto p {
    font-size: 1rem;
    line-height: 1.4;
  }

  .grid,
  .fields {
    grid-template-columns: 1fr;
  }

  .contact-details {
    grid-template-columns: 1fr;
  }

  .contact-detail-wide {
    grid-column: auto;
  }

  .about-hero {
    grid-template-columns: 1fr;
  }

  .about-hero-art {
    min-height: 0;
    margin-top: -20px;
  }

  .about-hero-art img {
    width: min(88%, 380px);
  }

  .about-principles {
    grid-template-columns: 1fr;
  }

  .about-principle,
  .about-principle:last-child {
    min-height: 0;
    grid-column: auto;
  }

  .about-index {
    margin-bottom: 48px;
  }

  .about-invitation {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .about-invitation .button {
    justify-self: start;
  }

  .card {
    min-height: 0;
  }

  .footer-intro {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .footer-actions {
    justify-content: flex-start;
  }

  .footer-links {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 460px) {
  .topbar-inner {
    padding-inline: 14px;
  }

  .theme-toggle {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .button {
    padding-inline: 12px;
  }

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

  .footer-action {
    width: auto;
    padding-inline: 14px;
    white-space: nowrap;
  }
}

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