/* ==========================================================================
   TQT Labs — styles.css
   Monochrome, minimal, dependency-free. The design tokens below are the
   single source of truth: every surface is a neutral grey and the only
   colour anywhere is the green TQT Labs logo.

   Re-theming: flip the values under :root (dark) and the light-mode override
   at the bottom of the token block. Both themes are pure black / white.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Fonts — self-hosted (no third-party requests, better privacy + LCP).
   Inter and JetBrains Mono, SIL Open Font License 1.1.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/fonts/jetbrains-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/fonts/jetbrains-mono-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --------------------------------------------------------------------------
   Design tokens
   -------------------------------------------------------------------------- */
:root {
  color-scheme: dark;

  /* Surfaces — neutral greys, zero hue */
  --bg: #0a0a0b;
  --surface: #101012;
  --surface-2: #17171a;
  --border: #232327;
  --border-strong: #3a3a42;

  /* Text */
  --text: #f4f4f6;
  --muted: #9a9aa3;

  /* Monochrome emphasis — the "accent" is simply the text colour */
  --accent: #f4f4f6;

  /* Inverted (solid) button + skip link */
  --ink: #f4f4f6;
  --ink-hover: #e4e4e9;
  --ink-fg: #0a0a0b;

  /* Subtle hairlines drawn on the page background */
  --grid: rgba(255, 255, 255, 0.04);
  --glow: rgba(255, 255, 255, 0.055);

  /* Checkmark masked into the feature-list bullets (see .feature-list) */
  --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6L9 17l-5-5' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");

  /* Type */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Spacing scale */
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;
  --s8: 64px;
  --s9: 96px;
  --s10: 128px;

  /* Radius */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-pill: 999px;

  /* Shadow — very restrained, neutrals only */
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-2: 0 24px 48px -28px rgba(0, 0, 0, 0.85);

  --container: 1080px;
  --header-h: 64px;
}

/* Light mode — inverted surface/text, same structure, still monochrome. */
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;

    --bg: #ffffff;
    --surface: #fafafa;
    --surface-2: #f3f3f5;
    --border: #e7e7ea;
    --border-strong: #cfcfd5;

    --text: #09090b;
    --muted: #6b6b74;

    --accent: #09090b;

    --ink: #09090b;
    --ink-hover: #26262b;
    --ink-fg: #ffffff;

    --grid: rgba(9, 9, 11, 0.035);
    --glow: rgba(9, 9, 11, 0.055);

    --shadow-1: 0 1px 2px rgba(9, 9, 11, 0.06);
    --shadow-2: 0 24px 48px -28px rgba(9, 9, 11, 0.18);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--s5));
}

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

h1,
h2,
h3,
p,
ul,
figure {
  margin: 0;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

::selection {
  background: var(--text);
  color: var(--bg);
}

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--s5);
}

.section {
  padding-block: var(--s10);
  border-top: 1px solid var(--border);
}

.section:first-of-type {
  border-top: 0;
}

/* Mono section label with a short leading rule */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--s5);
}

.section-label::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--border-strong);
}

.h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.028em;
  max-width: 24ch;
}

/* Breathing room between a section heading and its lead paragraph.
   (Cards and lists already carry their own top margin.) */
.h2 + .lead {
  margin-top: var(--s5);
}

.lead {
  color: var(--muted);
  max-width: 62ch;
}

/* Spacing utilities (used by the legal/plain pages) */
.mt-5 { margin-top: var(--s5); }
.mt-6 { margin-top: var(--s6); }
.mt-7 { margin-top: var(--s7); }

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

.skip-link {
  position: absolute;
  top: -200%;
  left: var(--s5);
  z-index: 200;
  background: var(--ink);
  color: var(--ink-fg);
  padding: var(--s3) var(--s5);
  border-radius: var(--r-sm);
  font-weight: 600;
}

.skip-link:focus {
  top: var(--s4);
}

/* --------------------------------------------------------------------------
   Button
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  padding: 12px 20px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 550;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease,
    color 0.18s ease, transform 0.18s ease;
}

.btn .arrow {
  transition: transform 0.18s ease;
}

.btn:hover .arrow {
  transform: translateX(2px);
}

.btn:active {
  transform: translateY(0.5px);
}

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

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

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background: var(--surface);
  border-color: var(--text);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  padding-inline: var(--s3);
}

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

.btn-sm {
  padding: 9px 16px;
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   StickyHeader
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.22s ease, border-color 0.22s ease;
}

.site-header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom-color: var(--border);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s5);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
  font-weight: 600;
  letter-spacing: -0.02em;
  /* "TQT Labs", set in the site font beside the 34 px bracket mark. */
  font-size: 20px;
}

/* The mark is transparent, so it ships twice — ink for light UI, white for the
   dark theme — and the browser picks the right one. The <picture> wrapper keeps
   it laid out as a single flex item. */
.brand picture,
.footer-brand picture {
  display: flex;
  flex: none;
}

.brand .mark {
  height: 30px;
  width: auto;
  flex: none;
}

.brand .wordmark,
.footer-brand .wordmark {
  flex: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--s5);
}

.site-nav a:not(.btn) {
  position: relative;
  font-size: 15px;
  color: var(--muted);
  transition: color 0.18s ease;
}

.site-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.site-nav a:not(.btn):hover {
  color: var(--text);
}

.site-nav a:not(.btn):hover::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  cursor: pointer;
}

.nav-toggle .bars {
  position: relative;
  width: 16px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: background-color 0.2s ease;
}

.nav-toggle .bars::before,
.nav-toggle .bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, top 0.2s ease;
}

.nav-toggle .bars::before {
  top: -5px;
}

.nav-toggle .bars::after {
  top: 5px;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: var(--s9) var(--s8);
}

/* Faint engineering grid + soft top glow — monochrome, decorative only. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 -30% 0;
  z-index: -1;
  background-image: linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: 58px 58px;
  -webkit-mask-image: radial-gradient(68% 52% at 25% 0%, #000 0%, transparent 68%);
  mask-image: radial-gradient(68% 52% at 25% 0%, #000 0%, transparent 68%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
    60% 55% at 18% 0%,
    var(--glow),
    transparent 70%
  );
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--s5);
}

.eyebrow__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--text) 14%, transparent);
}

.hero .h1 {
  font-size: clamp(44px, 7vw, 78px);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.04em;
  margin-bottom: var(--s5);
}

.hero .subhead {
  font-size: clamp(18px, 2vw, 22px);
  color: var(--text);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: var(--s5);
  max-width: 46ch;
}

.hero .lead {
  font-size: 18px;
  margin-bottom: var(--s7);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s4);
}

/* Hero meta strip — small proof points under the CTAs */
.hero-meta {
  list-style: none;
  padding: var(--s5) 0 0;
  margin-top: var(--s9);
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s4) var(--s8);
  font-size: 14px;
  color: var(--muted);
}

.hero-meta li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-meta__k {
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
}

/* --------------------------------------------------------------------------
   ProductCard
   -------------------------------------------------------------------------- */
.product-card {
  margin-top: var(--s7);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color 0.22s ease;
}

.product-card:hover {
  border-color: var(--border-strong);
}

.product-card__media {
  aspect-ratio: 830 / 649;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__body {
  padding: var(--s7);
}

.product-card__title {
  font-size: 22px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: var(--s4);
  max-width: 34ch;
}

.product-card__text {
  color: var(--muted);
  margin-bottom: var(--s5);
  max-width: 68ch;
}

.feature-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--s3);
  margin-bottom: var(--s6);
}

.feature-list li {
  position: relative;
  padding-left: 30px;
  color: var(--text);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.36em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--text) 7%, transparent);
  border: 1px solid var(--border-strong);
}

/* The tick is a centred mask so it can never drift off the circle, at any
   font size or line height. */
.feature-list li::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0.36em;
  width: 16px;
  height: 16px;
  background: var(--text);
  -webkit-mask: var(--tick) center / 10px 10px no-repeat;
  mask: var(--tick) center / 10px 10px no-repeat;
}

.product-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s4) var(--s5);
}

.store-note {
  display: flex;
  align-items: center;
  gap: var(--s2);
  font-size: 14px;
  color: var(--muted);
  margin-top: var(--s5);
}

.stars {
  color: var(--text);
  letter-spacing: 1px;
}

.disclaimer {
  font-size: 13px;
  color: var(--muted);
  margin-top: var(--s5);
  padding-top: var(--s5);
  border-top: 1px solid var(--border);
}

/* --------------------------------------------------------------------------
   Project cards — extra items inside "What I'm building"
   (featured item + small grid of the rest)
   -------------------------------------------------------------------------- */

/* Featured item — portrait media beside the copy (e.g. ActNow). */
.work-feature {
  margin-top: var(--s7);
  display: grid;
  grid-template-columns: 1fr;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color 0.22s ease;
}

.work-feature:hover {
  border-color: var(--border-strong);
}

.work-feature__media {
  aspect-ratio: 1174 / 1968;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.work-feature__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-feature__body {
  display: flex;
  flex-direction: column;
  padding: var(--s7);
}

@media (min-width: 760px) {
  .work-feature {
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1fr);
    align-items: stretch;
  }

  .work-feature__media {
    border-bottom: 0;
    border-right: 1px solid var(--border);
  }
}

.work-grid {
  margin-top: var(--s5);
  display: grid;
  gap: var(--s5);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.work-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s6);
  transition: border-color 0.22s ease;
}

.work-card:hover {
  border-color: var(--border-strong);
}

.work-card__title {
  font-size: 19px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.015em;
}

/* "Open source" pill shown beside a work title */
.work-card__badge {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin-left: var(--s2);
  padding: 3px 9px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.work-feature__actions,
.work-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
}

/* The small card has no feature list above, so add the spacing here */
.work-card__actions {
  margin-top: var(--s5);
}

.work-card__text {
  margin-top: var(--s3);
  color: var(--muted);
  font-size: 15.5px;
}

.work-card__meta {
  margin-top: auto;
  padding-top: var(--s5);
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   RoadmapSection
   -------------------------------------------------------------------------- */
.roadmap .lead {
  font-size: 18px;
}

.roadmap .lead + .lead {
  margin-top: var(--s5);
}

/* --------------------------------------------------------------------------
   AboutBlock
   -------------------------------------------------------------------------- */
.about .lead + .lead {
  margin-top: var(--s5);
}

/* --------------------------------------------------------------------------
   FounderCard
   -------------------------------------------------------------------------- */
.founder-card {
  margin-top: var(--s7);
  display: flex;
  gap: var(--s7);
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s7);
  transition: border-color 0.22s ease;
}

.founder-card:hover {
  border-color: var(--border-strong);
}

.founder-card__avatar {
  flex: none;
  width: 88px;
  height: 88px;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
}

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

.founder-card__bio {
  color: var(--muted);
  margin-top: var(--s4);
  max-width: 62ch;
}

.founder-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s5);
  margin-top: var(--s5);
  font-size: 15px;
}

.founder-card__links a {
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 2px;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.founder-card__links a:hover {
  border-color: var(--text);
}

/* --------------------------------------------------------------------------
   ContactCTA
   -------------------------------------------------------------------------- */
.contact-list {
  list-style: none;
  padding: 0;
  margin-top: var(--s6);
  display: grid;
  gap: var(--s3);
}

.contact-list li {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  align-items: baseline;
}

.contact-list .k {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  min-width: 150px;
}

.contact-list a {
  color: var(--text);
  border-bottom: 1px solid var(--border-strong);
}

.contact-list a:hover {
  border-color: var(--text);
}

.contact-location {
  margin-top: var(--s5);
}

.contact-cta .cta-row {
  margin-top: var(--s7);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: var(--s8) var(--s8);
  color: var(--muted);
  font-size: 14px;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s5) var(--s7);
  justify-content: space-between;
  align-items: flex-start;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 18px;
}

.footer-brand .mark {
  height: 24px;
  width: auto;
  flex: none;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s5);
}

.footer-links a {
  transition: color 0.18s ease;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-note {
  margin-top: var(--s7);
  padding-top: var(--s5);
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3) var(--s5);
  justify-content: space-between;
}

/* --------------------------------------------------------------------------
   Motion — fade + translateY on scroll (see main.js)
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   Responsive — breakpoints 900 / 768 / 640
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  :root {
    --container: 100%;
  }
}

@media (max-width: 768px) {
  .section {
    padding-block: var(--s8);
  }

  .hero-meta {
    margin-top: var(--s7);
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(var(--header-h) + var(--s2));
    right: var(--s5);
    left: var(--s5);
    flex-direction: column;
    align-items: stretch;
    gap: var(--s1);
    padding: var(--s4);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-2);
    display: none;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a:not(.btn) {
    padding: var(--s3) var(--s2);
    font-size: 16px;
  }

  .site-nav a:not(.btn)::after {
    display: none;
  }

  .site-nav .btn {
    justify-content: center;
    margin-top: var(--s2);
  }

  .product-card__body,
  .work-feature__body,
  .founder-card {
    padding: var(--s5);
  }

  .founder-card {
    flex-direction: column;
    gap: var(--s5);
  }

  .contact-list .k {
    min-width: 100%;
  }
}

@media (max-width: 640px) {
  .header-inner .brand .wordmark {
    display: none;
  }

  .h2 {
    max-width: none;
  }

  .product-card__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-meta {
    gap: var(--s3) var(--s5);
  }
}

/* --------------------------------------------------------------------------
   Reduced motion — disable all animation
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Print
   -------------------------------------------------------------------------- */
@media print {
  .site-header,
  .nav-toggle,
  .skip-link {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }
}
