/* Kaevo Labs sub-sites (press.kaevolabs.com, studio.kaevolabs.com).
   Same tokens and type as kaevolabs.com so the family reads as one company. */

:root {
  --paper: #ffffff;
  --ink: #000000;
  --cobalt: #1f3be0;
  --slate: #6b6b6b;
  --hairline: #e4e4e4;
  --wash: #f6f6f4;

  --gutter: clamp(1.25rem, 6vw, 6rem);
  --measure: 68ch;
  --section-gap: clamp(3.5rem, 9vw, 7.5rem);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover { text-decoration-thickness: 2px; }

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

.wrap {
  padding-inline: var(--gutter);
  max-width: 78rem;
  margin-inline: auto;
}

.prose { max-width: var(--measure); }
.prose p + p { margin-top: 1.15rem; }

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

/* ---------- header ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  padding-block: clamp(1.5rem, 3vw, 2.25rem);
}

.wordmark {
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.wordmark span { color: var(--slate); font-weight: 500; }

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1rem, 3vw, 2rem);
  list-style: none;
  padding: 0;
  font-size: 0.9375rem;
}

.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--cobalt); }

/* ---------- hero ---------- */

.hero {
  padding-top: clamp(2rem, 6vw, 4.5rem);
  padding-bottom: var(--section-gap);
}

.eyebrow {
  color: var(--slate);
  font-size: 0.9375rem;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-weight: 900;
  font-size: clamp(2.5rem, 8.5vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  max-width: 14ch;
}

.hero-support {
  max-width: 50ch;
  margin-top: clamp(1.5rem, 3.5vw, 2.5rem);
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
  margin-top: 2rem;
}

/* ---------- sections ---------- */

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

.section h2 {
  font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
}

.section-intro {
  max-width: var(--measure);
  color: var(--slate);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

/* ---------- buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.875rem;
  padding: 0.6rem 1.35rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  cursor: pointer;
}

.button:hover { background: var(--cobalt); border-color: var(--cobalt); }
.button:disabled { opacity: 0.55; cursor: progress; }

.button--ghost { background: transparent; color: var(--ink); }
.button--ghost:hover { background: transparent; color: var(--cobalt); }

/* ---------- product grid (press) ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--hairline);
  border-radius: 0.875rem;
  overflow: hidden;
  background: var(--paper);
}

.cover {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  aspect-ratio: 4 / 5;
  padding: 1.5rem;
  background: var(--wash);
  border-bottom: 1px solid var(--hairline);
}

.cover__kind {
  font-size: 0.8125rem;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cover__title {
  font-weight: 800;
  font-size: 1.625rem;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.cover--ink { background: var(--ink); }
.cover--ink .cover__title { color: var(--paper); }
.cover--ink .cover__kind { color: #a8a8a8; }
.cover--cobalt { background: var(--cobalt); }
.cover--cobalt .cover__title { color: var(--paper); }
.cover--cobalt .cover__kind { color: #c9d0fb; }

.card__body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
  padding: 1.25rem 1.5rem 1.5rem;
}

.card__body h3 {
  font-weight: 800;
  font-size: 1.1875rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.card__body p { color: var(--slate); font-size: 0.96875rem; }

.card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 0.75rem;
  font-size: 0.9375rem;
}

.price { font-weight: 700; }

.badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  color: var(--slate);
  font-size: 0.8125rem;
  white-space: nowrap;
}

/* ---------- services / process (studio) ---------- */

.list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: 0;
  border-top: 1px solid var(--hairline);
}

.list > * {
  padding: clamp(1.5rem, 3vw, 2.25rem) clamp(0rem, 2vw, 1.5rem) clamp(1.5rem, 3vw, 2.25rem) 0;
  border-bottom: 1px solid var(--hairline);
}

.list h3 {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.015em;
  margin-bottom: 0.6rem;
}

.list p { color: var(--slate); }

.step-num {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--cobalt);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.case {
  border: 1px solid var(--hairline);
  border-radius: 0.875rem;
  overflow: hidden;
}

.case__visual {
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(var(--hairline) 1px, transparent 1px) 0 0 / 2rem 2rem,
    linear-gradient(90deg, var(--hairline) 1px, transparent 1px) 0 0 / 2rem 2rem,
    var(--wash);
  display: grid;
  place-items: center;
  color: var(--slate);
  font-size: 0.875rem;
}

.case__body { padding: 1.25rem 1.5rem 1.5rem; }
.case__body h3 { font-weight: 800; font-size: 1.1875rem; letter-spacing: -0.015em; }
.case__body p { margin-top: 0.5rem; color: var(--slate); font-size: 0.96875rem; }

/* ---------- forms ---------- */

.form {
  display: grid;
  gap: 1rem;
  max-width: 40rem;
}

.form--inline {
  grid-template-columns: 1fr auto;
  align-items: end;
  max-width: 34rem;
}

.field { display: grid; gap: 0.4rem; }

.field label {
  font-size: 0.875rem;
  font-weight: 600;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid #cfcfcf;
  border-radius: 0.625rem;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

.field textarea { min-height: 9rem; resize: vertical; }

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: 2px solid var(--cobalt);
  outline-offset: 0;
  border-color: var(--cobalt);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 1rem;
}

.form-status {
  min-height: 1.5em;
  font-size: 0.9375rem;
  color: var(--slate);
}

.form--inline .form-status { grid-column: 1 / -1; }

.form-status[data-tone="ok"] { color: #11713a; }
.form-status[data-tone="error"] { color: #b42318; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

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

/* ---------- footer ---------- */

.site-footer {
  padding-block: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--hairline);
  color: var(--slate);
  font-size: 0.9375rem;
}

.site-footer .legal-name { color: var(--ink); font-weight: 800; letter-spacing: -0.02em; }

.footer-links {
  list-style: none;
  padding: 0;
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}

.copyright { margin-top: 1.25rem; }

@media (max-width: 34rem) {
  .form--inline { grid-template-columns: 1fr; }
}

/* ---------- kinetic grid (studio) ---------- */

.kinetic-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
