/* Grid Technologies: light gray #f4f4f4, dark gray #191919 */

:root {
  --light: #f4f4f4;
  --dark: #191919;
  --paper: #ffffff;

  --ink: #191919;
  --ink-2: #4a4a4a;
  --ink-3: #6b6b6b;
  --line: #d6d6d6;

  --on-dark: #f4f4f4;
  --on-dark-2: #a6a6a6;
  --dark-line: #343434;
  --dark-raise: #212121;

  --sans: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --max: 1200px;
  --gutter: 24px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  color-scheme: light;
}

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

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

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

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6.4vw, 5.25rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
h3 { font-size: 1.35rem; letter-spacing: -0.02em; line-height: 1.2; font-weight: 600; }
h4 { font-size: 1rem; letter-spacing: -0.01em; line-height: 1.3; font-weight: 600; }

::selection { background: var(--dark); color: var(--light); }

:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--dark);
  color: var(--light);
  text-decoration: none;
}
.skip:focus { top: 16px; }

.mono { font-family: var(--mono); }

.label {
  margin: 0 0 20px;
  font-family: var(--mono);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 58ch;
}

/* Icons */
.i {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: square;
  stroke-linejoin: miter;
}
.i-lg { width: 28px; height: 28px; stroke-width: 1.6; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border: 2px solid var(--dark);
  font: 600 .95rem/1 var(--sans);
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn .i { transition: transform .2s var(--ease); }
.btn:hover .i { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }

.btn-dark { background: var(--dark); color: var(--light); }
.btn-dark:hover { background: #000; border-color: #000; }

.btn-line { background: transparent; color: var(--dark); }
.btn-line:hover { background: var(--dark); color: var(--light); }

.btn-light { background: var(--light); color: var(--dark); border-color: var(--light); }
.btn-light:hover { background: var(--paper); border-color: var(--paper); }

.btn-line-light { background: transparent; color: var(--on-dark); border-color: var(--on-dark); }
.btn-line-light:hover { background: var(--on-dark); color: var(--dark); }

.btn-block { width: 100%; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  border-bottom: 2px solid currentColor;
  padding-bottom: 2px;
}
.text-link .i { transition: transform .2s var(--ease); }
.text-link:hover .i { transform: translateX(3px); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 244, 244, .94);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--dark);
}
.brand-mark { width: 34px; height: 34px; color: #000; }
.brand-word {
  display: flex;
  flex-direction: column;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.05;
  letter-spacing: .38em;
  color: #333;
}
.brand-light, .brand-light .brand-mark, .brand-light .brand-word { color: var(--on-dark); }

.nav { display: flex; align-items: center; gap: 32px; }
.nav a:not(.btn) {
  position: relative;
  font-size: .925rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-2);
  transition: color .2s;
}
.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav a:not(.btn):hover, .nav a.active { color: var(--ink); }
.nav a:not(.btn):hover::after, .nav a.active::after { transform: scaleX(1); }
.nav-cta { min-height: 44px; padding: 0 18px; font-size: .9rem; }

.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  background: var(--dark);
  transition: transform .25s var(--ease), top .25s var(--ease);
}
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 25px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  padding: 88px 0 72px;
  overflow: hidden;
}
.hero::before {
  /* dashed blueprint grid, echoing the logo */
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96'%3E%3Cpath d='M0 .5H96M.5 0V96' fill='none' stroke='%23191919' stroke-opacity='.11' stroke-dasharray='9 3'/%3E%3C/svg%3E");
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 35%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 70% 35%, #000 20%, transparent 75%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
.hero h1 { margin-bottom: 28px; max-width: 13ch; }

.hero-art { justify-self: end; width: 100%; max-width: 440px; }
.frame {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .55);
}
.corner { position: absolute; width: 14px; height: 14px; border: 0 solid var(--dark); }
.corner.tl { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.corner.tr { top: -1px; right: -1px; border-top-width: 2px; border-right-width: 2px; }
.corner.bl { bottom: -1px; left: -1px; border-bottom-width: 2px; border-left-width: 2px; }
.corner.br { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }

.frame-top, .frame-bottom {
  position: absolute;
  left: 18px;
  right: 18px;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .14em;
  color: var(--ink-3);
}
.frame-top { top: 14px; }
.frame-bottom { bottom: 14px; }

.hero-mark { width: 62%; height: auto; color: #000; overflow: visible; }
.hero-mark path {
  animation: draw .7s var(--ease) both, flow 1.6s linear infinite;
  animation-play-state: running, paused;
}
.frame:hover .hero-mark path { animation-play-state: running, running; }
.hero-mark path:nth-child(1) { animation-delay: 0.15s, 0s; }
.hero-mark path:nth-child(2) { animation-delay: 0.25s, 0s; }
.hero-mark path:nth-child(3) { animation-delay: 0.35s, 0s; }
.hero-mark path:nth-child(4) { animation-delay: 0.45s, 0s; }
.hero-mark path:nth-child(5) { animation-delay: 0.55s, 0s; }
.hero-mark path:nth-child(6) { animation-delay: 0.65s, 0s; }
.hero-mark path:nth-child(7) { animation-delay: 0.75s, 0s; }
.hero-mark path:nth-child(8) { animation-delay: 0.85s, 0s; }

@keyframes draw {
  from { opacity: 0; transform: translate(-6px, -6px); }
  to { opacity: 1; transform: none; }
}
@keyframes flow {
  to { stroke-dashoffset: -21.6; }
}

.hero-strip {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 80px;
  border-top: 2px solid var(--dark);
}
.hero-strip li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 20px 0 0;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.hero-strip .mono { font-size: .75rem; font-weight: 700; color: var(--ink-3); }

/* Sections */
.section { padding: 120px 0; }
.section + .section:not(.dark):not(.ai) { border-top: 1px solid var(--line); }
.section-head { margin-bottom: 64px; }
.section-head h2 { margin-bottom: 20px; max-width: 18ch; }
.section-head.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
}
.section-head.split h2 { margin-bottom: 0; }

.dark { background: var(--dark); color: var(--on-dark); }
.dark .label { color: var(--on-dark-2); }
.dark .lead, .dark p { color: var(--on-dark-2); }

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

.card {
  display: flex;
  flex-direction: column;
  padding: 36px 32px 32px;
  border: 2px solid var(--dark);
  background: transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s;
}
.card:hover { transform: translate(-4px, -4px); box-shadow: 8px 8px 0 var(--dark); background: var(--paper); }
.card h3 { margin-bottom: 12px; }
.card > p { color: var(--ink-2); }
.card .text-link { margin-top: auto; align-self: flex-start; }

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
}
.card-top .mono { font-size: .8rem; font-weight: 700; color: var(--ink-3); }

.ticks { margin: 20px 0 32px; border-top: 1px solid var(--line); }
.ticks li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: .95rem;
  font-weight: 500;
}
.ticks li::before { content: ""; width: 10px; height: 2px; background: var(--dark); flex: none; }

.card-dark { border-color: var(--dark-line); border-width: 1px; background: var(--dark-raise); }
.card-dark:hover { background: #262626; box-shadow: 8px 8px 0 #000; }
.card-dark > p { color: var(--on-dark-2); margin-bottom: 28px; }
.card-dark .product-title { margin-bottom: 14px; }
.card-dark .product-title h3 { font-size: 1.6rem; }

.card-paper { background: var(--paper); border-width: 1px; border-color: var(--line); }
.card-paper:hover { border-color: var(--dark); }
.card-paper > p { margin: 0; }
.card-kicker {
  margin-bottom: 48px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.card-paper h3 { font-size: 1.75rem; letter-spacing: -0.035em; }

/* Products */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 64px;
  align-items: center;
  padding-bottom: 80px;
  border-bottom: 1px solid var(--dark-line);
}
.product-title { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-bottom: 8px; }
.feature .product-title h3 { font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 700; letter-spacing: -0.045em; }
.tagline { font-size: 1.25rem; font-weight: 500; color: var(--on-dark) !important; margin-bottom: 20px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border: 1px solid var(--dark-line);
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--on-dark-2);
  white-space: nowrap;
}
.badge-live { border-color: var(--on-dark); color: var(--on-dark); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--on-dark); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }

/* Product wireframe */
.mock {
  background: var(--light);
  color: var(--ink);
  border: 1px solid #000;
  box-shadow: 16px 16px 0 #000;
  font-size: 11px;
  line-height: 1.3;
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.mock-dots { display: flex; gap: 6px; }
.mock-dots i { width: 9px; height: 9px; border-radius: 50%; background: #cfcfcf; }
.mock-url {
  flex: 1;
  max-width: 280px;
  padding: 5px 12px;
  background: var(--light);
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mock-body { display: grid; grid-template-columns: 110px 1fr; min-height: 300px; }
.mock-side { padding: 14px 10px; border-right: 1px solid var(--line); background: var(--paper); }
.mock-logo, .mock-nav { display: flex; align-items: center; gap: 7px; padding: 7px 6px; }
.mock-logo { margin-bottom: 10px; }
.mock-logo i { width: 16px; height: 16px; background: var(--dark); }
.mock-logo b { height: 7px; width: 52px; background: var(--dark); }
.mock-nav i { width: 10px; height: 10px; border: 1.5px solid #9a9a9a; }
.mock-nav b { height: 5px; flex: 1; max-width: 56px; background: #d4d4d4; }
.mock-nav.on { background: var(--light); }
.mock-nav.on i { border-color: var(--dark); }
.mock-nav.on b { background: var(--dark); }

.mock-main { padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 14px; }
.mock-h { font-size: 17px; font-weight: 700; letter-spacing: -0.03em; }
.mock-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mock-stats div {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  min-width: 0;
}
.mock-stats span { font-size: 9px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-stats b { height: 12px; width: 70%; background: var(--dark); }
.mock-stats div:nth-child(2) b { width: 55%; }
.mock-stats div:nth-child(3) b { width: 30%; }
.mock-stats div:nth-child(4) b { width: 48%; }

.mock-chart {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 8%;
  min-height: 120px;
  padding: 14px 16px 0;
  background: var(--paper);
  border: 1px solid var(--line);
  background-image: repeating-linear-gradient(to top, transparent 0 29px, #ececec 29px 30px);
}
.mock-chart span {
  flex: 1;
  height: var(--h);
  background: var(--dark);
  transform-origin: bottom;
}
.js .mock.in .mock-chart span { animation: grow .9s var(--ease) both; }
.mock-chart span:nth-child(2) { animation-delay: .05s !important; }
.mock-chart span:nth-child(3) { animation-delay: .1s !important; }
.mock-chart span:nth-child(4) { animation-delay: .15s !important; }
.mock-chart span:nth-child(5) { animation-delay: .2s !important; }
.mock-chart span:nth-child(6) { animation-delay: .25s !important; }
.mock-chart span:nth-child(7) { animation-delay: .3s !important; }
.mock-chart span:nth-child(8) { animation-delay: .35s !important; }
@keyframes grow { from { transform: scaleY(0); } }

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 0;
  border-left: 1px solid var(--dark-line);
}
.features li {
  padding: 40px 32px;
  border-right: 1px solid var(--dark-line);
  border-bottom: 1px solid var(--dark-line);
}
.features .i { margin-bottom: 24px; color: var(--on-dark); }
.features h4 { margin-bottom: 8px; color: var(--on-dark); font-size: 1.05rem; }
.features p { font-size: .925rem; line-height: 1.6; }

.more-products { margin-top: 96px; }

/* Process */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.process li { padding-top: 28px; border-top: 2px solid var(--dark); }
.process-num {
  display: block;
  margin-bottom: 44px;
  font-family: var(--mono);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}
.process h3 { margin-bottom: 10px; }
.process p { color: var(--ink-2); font-size: .95rem; }

.chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 72px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.chips-label {
  margin-right: 10px;
  font-family: var(--mono);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.chip {
  padding: 8px 16px;
  border: 1px solid var(--dark);
  font-size: .9rem;
  font-weight: 500;
}

/* AI */
.ai {
  position: relative;
  border-top: 1px solid var(--line);
}
.ai::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cpath d='M24 20v8M20 24h8' fill='none' stroke='%23191919' stroke-opacity='.16' stroke-width='1.2'/%3E%3C/svg%3E");
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
  pointer-events: none;
}
.ai .wrap { position: relative; }
.note { margin-top: 40px; font-size: 1rem; color: var(--ink-2); }
.note a { font-weight: 600; color: var(--ink); text-underline-offset: 4px; text-decoration-thickness: 2px; }

/* About */
.mission { margin: 0 0 96px; }
.mission p {
  margin: 0;
  max-width: 24ch;
  font-size: clamp(1.9rem, 4.2vw, 3.4rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.04em;
  color: var(--on-dark) !important;
}
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 80px;
  padding-top: 48px;
  border-top: 1px solid var(--dark-line);
}
.about-copy p { font-size: 1.1rem; line-height: 1.7; }
.facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.facts div { padding: 18px 0; border-bottom: 1px solid var(--dark-line); }
.facts div:nth-child(odd) { padding-right: 16px; }
.facts dt {
  margin-bottom: 6px;
  font-family: var(--mono);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--on-dark-2);
}
.facts dd { margin: 0; font-weight: 600; font-size: 1.05rem; color: var(--on-dark); }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 80px;
  align-items: start;
}
.contact-info h2 { margin-bottom: 20px; }
.contact-list { margin: 48px 0 0; border-top: 1px solid var(--line); }
.contact-list div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.contact-list dt {
  padding-top: 3px;
  font-family: var(--mono);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.contact-list dd { margin: 0; font-weight: 500; }
.contact-list a { text-decoration: none; border-bottom: 1px solid var(--line); transition: border-color .2s; }
.contact-list a:hover { border-color: var(--dark); }

.form {
  padding: 40px;
  background: var(--paper);
  border: 2px solid var(--dark);
  box-shadow: 12px 12px 0 var(--dark);
}
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: end; }
.field label { font-size: .875rem; font-weight: 600; }
.opt { font-weight: 400; color: var(--ink-3); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #bdbdbd;
  border-radius: 0;
  background: var(--light);
  color: var(--ink);
  font: 400 1rem/1.4 var(--sans);
  transition: border-color .2s, background-color .2s, box-shadow .2s;
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23191919' stroke-width='1.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--dark);
  background-color: var(--paper);
  box-shadow: 0 0 0 1px var(--dark);
}
.field.invalid input, .field.invalid textarea { border-color: var(--dark); border-style: dashed; }
.form-status { margin: 16px 0 0; font-size: .9rem; color: var(--ink-2); min-height: 1.4em; }

/* Footer */
.site-footer {
  padding: 88px 0 32px;
  background: var(--dark);
  color: var(--on-dark-2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 64px;
}
.footer-brand p { margin-top: 24px; max-width: 32ch; font-size: .95rem; }
.footer-grid nav { display: flex; flex-direction: column; gap: 12px; }
.footer-grid h4 {
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--on-dark);
}
.footer-grid nav a { text-decoration: none; font-size: .95rem; transition: color .2s; }
.footer-grid nav a:hover { color: var(--on-dark); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--dark-line);
  font-size: .85rem;
}
.to-top { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.to-top:hover { color: var(--on-dark); }

/* Scroll reveal: only hides content when JS is running */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js .reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1040px) {
  .nav { gap: 22px; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-art { justify-self: start; max-width: 380px; }
  .feature { grid-template-columns: 1fr; gap: 56px; }
  .mock { margin-right: 16px; }
  .process { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }

  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--light);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s, transform .2s var(--ease), visibility .2s;
  }
  .nav.open { opacity: 1; transform: none; visibility: visible; }
  .nav a:not(.btn) {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
    color: var(--ink);
  }
  .nav a:not(.btn)::after { display: none; }
  .nav-cta { margin-top: 20px; min-height: 52px; }

  .section { padding: 88px 0; }
  .section-head { margin-bottom: 48px; }
  .section-head.split { grid-template-columns: 1fr; gap: 20px; }
  .cards-3 { grid-template-columns: 1fr; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 56px; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }

  .hero { padding: 56px 0 48px; }
  .hero h1 { max-width: none; }
  .hero-art { max-width: none; }
  .hero-strip { grid-template-columns: 1fr; margin-top: 56px; }
  .hero-strip li { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .actions .btn { flex: 1 1 100%; }

  .section { padding: 72px 0; }
  .cards-2 { grid-template-columns: 1fr; }
  .card { padding: 28px 22px 24px; }
  .card:hover { transform: none; box-shadow: none; }

  .feature { padding-bottom: 56px; }
  .mock { margin-right: 10px; box-shadow: 10px 10px 0 #000; }
  .mock-body { grid-template-columns: 1fr; min-height: 0; }
  .mock-side { display: none; }
  .mock-stats { grid-template-columns: repeat(2, 1fr); }
  .mock-chart { min-height: 110px; }

  .features { grid-template-columns: 1fr; }
  .features li { padding: 28px 22px; }
  .more-products { margin-top: 64px; }
  .process { grid-template-columns: 1fr; gap: 40px; }
  .process-num { margin-bottom: 20px; font-size: 2rem; }
  .chips { margin-top: 48px; }

  .mission { margin-bottom: 64px; }
  .facts { grid-template-columns: 1fr; }
  .facts div:nth-child(odd) { padding-right: 0; }

  .form { padding: 24px 20px; box-shadow: 8px 8px 0 var(--dark); margin-right: 8px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .contact-list div { grid-template-columns: 1fr; gap: 4px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
