/* ============================================================
   Digital Sauce — global styles
   Skin: Midnight Studio. Near-black canvas, hairline borders,
   brand red-pink accent (#EF466F), interactive grid + spotlight
   card glows (driven by js/main.js via --mx/--my custom props).
   Type: Inter throughout, tight tracking on display sizes.
   ============================================================ */

:root {
  color-scheme: dark;
  --bg: #0a0a0f;
  --surface: #131318;
  --surface-2: #18181f;
  --ink: #f5f5f7;
  --muted: #9a9aa8;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --tint: rgba(255, 255, 255, 0.02);
  --tint-2: rgba(255, 255, 255, 0.03);
  --glass: rgba(10, 10, 15, 0.8);
  --nav-solid: rgba(10, 10, 15, 0.97);
  --ghost-hover: rgba(255, 255, 255, 0.35);
  --accent: #EF466F;
  --accent-hi: #ff7da0;
  --accent-soft: rgba(239, 70, 111, 0.12);
  --teal: #3ecf8e;
  --violet: #7c5cff;
  --gradient: linear-gradient(110deg, var(--accent), var(--accent-hi));
  --radius: 16px;
  --radius-sm: 10px;
  /* legacy aliases still used by inline styles */
  --chili: var(--accent);
  --flame: var(--accent-hi);
  --ink-60: var(--muted);
  --coral: var(--accent);
  --amber: var(--accent-hi);
  --font-display: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --container: 1140px;
}

/* ---------- light theme (toggle in nav; saved to localStorage) ---------- */

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f7fa;
  --surface: #ffffff;
  --surface-2: #f0f0f5;
  --ink: #16161d;
  --muted: #5b5b6b;
  --line: rgba(15, 15, 30, 0.10);
  --line-strong: rgba(15, 15, 30, 0.22);
  --tint: rgba(15, 15, 30, 0.025);
  --tint-2: rgba(15, 15, 30, 0.045);
  --glass: rgba(247, 247, 250, 0.8);
  --nav-solid: rgba(247, 247, 250, 0.97);
  --ghost-hover: rgba(15, 15, 30, 0.35);
  --accent-hi: #d63d68;
  --accent-soft: rgba(239, 70, 111, 0.10);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.0425rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

::selection { background: var(--accent); color: #fff; }

/* ---------- typography ---------- */

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.35rem); }

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--muted);
  max-width: 40em;
}

.squiggle {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-hi);
  margin-bottom: 1.2rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--tint-2);
}

/* ---------- layout ---------- */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

section { padding: clamp(4rem, 9vw, 7rem) 0; }

.section-head { max-width: 46em; margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.skip-link {
  position: absolute;
  left: -999px; top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.7rem 1.2rem;
  z-index: 200;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 28px rgba(239, 70, 111, 0.35);
}
.btn-primary:hover {
  background: #ff5c82;
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(239, 70, 111, 0.45);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { border-color: var(--ghost-hover); background: var(--surface); transform: translateY(-2px); }
.btn .arrow { transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(4px); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.9rem clamp(1.25rem, 4vw, 2.5rem);
  max-width: var(--container);
  margin: 0 auto;
}

.logo {
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: baseline;
}
.logo .drip {
  width: 8px; height: 8px;
  background: var(--gradient);
  border-radius: 50%;
  display: inline-block;
  margin-left: 5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2.5vw, 2.1rem);
  list-style: none;
}
.nav-links a:not(.btn) {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--muted);
  transition: color 0.2s ease;
}
.nav-links a:not(.btn):hover,
.nav-links a[aria-current="page"]:not(.btn) { color: var(--ink); }

.nav .btn { padding: 0.6rem 1.3rem; font-size: 0.88rem; }

.nav-toggle {
  display: none;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.6rem;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
}

.theme-toggle {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--line-strong); transform: rotate(15deg); }
.theme-toggle .i-moon { display: none; }
html[data-theme="light"] .theme-toggle .i-sun { display: none; }
html[data-theme="light"] .theme-toggle .i-moon { display: block; }

/* ---------- marquee ---------- */

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--tint);
  padding: 0.85rem 0;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  gap: 2.5rem;
  animation: marquee 30s linear infinite;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
}
.marquee-track span { display: inline-flex; align-items: center; gap: 2.5rem; }
.marquee-track .dot { color: var(--accent); }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- hero with interactive grid ---------- */

.hero {
  padding: clamp(4.5rem, 10vw, 8rem) 0 clamp(3.5rem, 7vw, 6rem);
  position: relative;
  overflow: hidden;
}

/* base grid — always faintly visible */
.hero-grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 0%, black 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 0%, black 25%, transparent 78%);
}
/* bright layer of the same grid, revealed only around the cursor
   (js/main.js updates --mx/--my as the pointer moves) */
.hero-grid-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 125, 160, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 125, 160, 0.5) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(220px circle at var(--mx, -999px) var(--my, -999px), black 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(220px circle at var(--mx, -999px) var(--my, -999px), black 0%, transparent 100%);
}
/* soft colour glow that follows the cursor */
.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 30%), rgba(239, 70, 111, 0.14), transparent 70%);
}
/* ambient top glow so the hero isn't flat before the first mousemove */
.hero::before {
  content: "";
  position: absolute;
  top: -35%; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 600px;
  background: radial-gradient(closest-side, rgba(239, 70, 111, 0.12), transparent 70%);
  pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.hero .lede { margin: 1.5rem 0 2.3rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.hero-note {
  margin-top: 1.6rem;
  font-size: 0.92rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.hero-note .pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(62, 207, 142, 0.5); }
  50% { box-shadow: 0 0 0 7px rgba(62, 207, 142, 0); }
}

/* ---------- stats strip (borderless, A-style) ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem 1.5rem;
}
.stat { padding: 0; background: none; border: none; }
.stat .num {
  font-size: clamp(1.9rem, 3.6vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat .label { font-size: 0.88rem; color: var(--muted); font-weight: 500; }

/* ---------- cards (spotlight border on hover) ---------- */

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow: hidden;
}
a.card { text-decoration: none; }
.card:hover { background: var(--surface-2); transform: translateY(-4px); }
/* spotlight: a radial highlight that tracks the cursor inside the card */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(239, 70, 111, 0.1), transparent 65%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.card:hover::before { opacity: 1; }

.card-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  background: var(--accent-soft);
  border: 1px solid var(--line);
}
.card h3 { font-size: 1.08rem; }
.card p { color: var(--muted); font-size: 0.93rem; }
.card .card-link {
  margin-top: auto;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent-hi);
}

.card.tint-1 .card-icon, .card.tint-2 .card-icon, .card.tint-3 .card-icon,
.card.tint-4 .card-icon, .card.tint-5 .card-icon, .card.tint-6 .card-icon { background: var(--accent-soft); }
.card.tint-2 .card-icon { background: rgba(62, 207, 142, 0.1); }
.card.tint-3 .card-icon { background: rgba(124, 92, 255, 0.12); }
.card.tint-6 .card-icon { background: rgba(62, 158, 255, 0.1); }

/* ---------- dark feature band (why-sauce / house rules) ---------- */

.sauce-section {
  background: var(--tint);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.sauce-section::before {
  content: "";
  position: absolute;
  top: -40%; right: -10%;
  width: 600px; height: 500px;
  background: radial-gradient(closest-side, rgba(239, 70, 111, 0.1), transparent 70%);
  pointer-events: none;
}
.sauce-section .container { position: relative; }
.sauce-section .lede { color: var(--muted); }

.ingredients { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.ingredient {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.ingredient:hover { border-color: rgba(239, 70, 111, 0.45); transform: translateY(-4px); }
.ingredient .emoji {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  margin-bottom: 1rem;
}
.ingredient h3 { font-size: 1.05rem; margin-bottom: 0.45rem; }
.ingredient p { font-size: 0.92rem; color: var(--muted); }

/* ---------- work cards ---------- */

.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }

.work-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  text-decoration: none;
  transition: transform 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}
.work-card:hover { transform: translateY(-5px); border-color: var(--line-strong); }

.work-thumb {
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: clamp(1.4rem, 2.8vw, 1.9rem);
  color: #fff;
  letter-spacing: -0.02em;
  padding: 1rem;
  text-align: center;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.work-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.work-card:hover .work-thumb img { transform: scale(1.04); }
.work-thumb.has-img { padding: 0; }

.work-body { padding: 1.3rem 1.5rem 1.5rem; display: flex; flex-direction: column; gap: 0.45rem; }
.work-body .tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.2rem; }
.tag {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: var(--tint-2);
}
.work-body h3 { font-size: 1.12rem; }
.work-body p { color: var(--muted); font-size: 0.93rem; }

/* ---------- process steps ---------- */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; counter-reset: step; }
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.step:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: -0.03em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  margin-bottom: 0.6rem;
}
.step h3 { font-size: 1.05rem; margin-bottom: 0.45rem; }
.step p { font-size: 0.92rem; color: var(--muted); }

/* ---------- faq ---------- */

.faq { max-width: 760px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 0.9rem;
  overflow: hidden;
  transition: border-color 0.25s ease;
}
.faq details:hover, .faq details[open] { border-color: var(--line-strong); }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  padding: 1.25rem 1.5rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.5rem;
  line-height: 1;
  color: var(--accent);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 1.5rem 1.3rem; color: var(--muted); font-size: 0.97rem; }

/* ---------- CTA band ---------- */

.cta-band {
  border-top: 1px solid var(--line);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  bottom: -55%; left: 50%;
  transform: translateX(-50%);
  width: 760px; height: 460px;
  background: radial-gradient(closest-side, rgba(239, 70, 111, 0.16), transparent 70%);
  pointer-events: none;
}
.cta-band .container { position: relative; background: none; box-shadow: none; padding-top: 0; padding-bottom: 0; }
.cta-band h2 { margin-bottom: 0.9rem; }
.cta-band p { max-width: 32em; margin: 0 auto 2rem; color: var(--muted); font-size: 1.08rem; }
.cta-band .btn-ghost { background: var(--accent); color: #fff; border: none; box-shadow: 0 8px 28px rgba(239, 70, 111, 0.35); }
.cta-band .btn-ghost:hover { background: #ff5c82; box-shadow: 0 14px 36px rgba(239, 70, 111, 0.45); }

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

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--tint);
  color: var(--ink);
  padding: clamp(3rem, 6vw, 4rem) 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.site-footer .logo { color: var(--ink); font-size: 1.2rem; }
.footer-blurb { color: var(--muted); font-size: 0.93rem; margin-top: 0.9rem; max-width: 26em; }
.site-footer h4 {
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-hi);
  margin-bottom: 1rem;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.55rem; }
.site-footer a { color: var(--muted); text-decoration: none; font-size: 0.93rem; transition: color 0.2s ease; overflow-wrap: anywhere; }
.site-footer a:hover { color: var(--ink); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--muted);
}

/* ---------- page hero (interior pages) ---------- */

.page-hero {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  top: -50%; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 500px;
  background: radial-gradient(closest-side, rgba(239, 70, 111, 0.1), transparent 70%);
  pointer-events: none;
}
.page-hero .container { position: relative; }
.page-hero .lede { margin-top: 1.3rem; }
.breadcrumbs {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.breadcrumbs li + li::before { content: "/"; margin-right: 0.5rem; opacity: 0.4; }
.breadcrumbs a { color: var(--accent-hi); text-decoration: none; font-weight: 500; }

/* ---------- checklist ---------- */

.checklist { list-style: none; display: grid; gap: 0.9rem; }
.checklist li { display: flex; gap: 0.85rem; align-items: flex-start; }
.checklist li::before {
  content: "✓";
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 7px;
  background: var(--accent-soft);
  border: 1px solid rgba(239, 70, 111, 0.4);
  color: var(--accent-hi);
  font-weight: 700;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  margin-top: 0.25rem;
}
.checklist li span { color: var(--muted); }
.checklist li strong { color: var(--ink); }

/* ---------- article / case study ---------- */

.article {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem) clamp(4rem, 8vw, 6rem);
}
.article h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 2.5rem 0 1rem; }
.article h3, .article h4 { margin: 2rem 0 0.7rem; }
.article p, .article li { color: var(--muted); margin-bottom: 1rem; }
.article ul, .article ol { padding-left: 1.4rem; margin-bottom: 1rem; }
.article a { color: var(--accent-hi); }
.article img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  margin: 1.8rem auto;
}
.article strong, .article b { color: var(--ink); }
.article blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 1.2rem;
  margin: 1.5rem 0;
  font-style: italic;
}

/* ---------- contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  display: grid;
  gap: 1.2rem;
}
.field { display: grid; gap: 0.45rem; }
.field label { font-weight: 600; font-size: 0.9rem; }
.field input, .field textarea, .field select {
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--ink);
  padding: 0.8rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(154, 154, 168, 0.6); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(239, 70, 111, 0.2);
}

/* project-size picker */
.sauceometer { display: grid; gap: 0.45rem; }
.sauceometer .options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; }
.sauceometer .options > span { display: block; position: relative; }
.sauceometer input { position: absolute; opacity: 0; pointer-events: none; }
.sauceometer .opt {
  display: block;
  height: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.4rem;
  text-align: center;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 600;
  background: var(--bg);
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.sauceometer .opt small { display: block; font-weight: 400; color: var(--muted); font-size: 0.74rem; margin-top: 0.15rem; }
.sauceometer .opt:hover { transform: translateY(-2px); border-color: rgba(239, 70, 111, 0.5); }
.sauceometer input:checked + .opt {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 22px rgba(239, 70, 111, 0.35);
}
.sauceometer input:checked + .opt small { color: rgba(255, 255, 255, 0.85); }
.sauceometer input:focus-visible + .opt { outline: none; box-shadow: 0 0 0 3px rgba(239, 70, 111, 0.35); }

.contact-aside .card { margin-bottom: 1.2rem; }

/* ---------- legal pages ---------- */

.legal { max-width: 760px; margin: 0 auto; padding: 3rem 1.5rem 5rem; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 1.5rem; }
.legal h2, .legal h3, .legal h4 { margin: 2rem 0 0.7rem; }
.legal p, .legal li { color: var(--muted); margin-bottom: 0.9rem; }
.legal ul, .legal ol { padding-left: 1.4rem; }
.legal a { color: var(--accent-hi); }

/* ---------- reveal animation ---------- */

.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-glow, .hero-grid-bg::after { display: none; }
}

/* ---------- responsive ---------- */

@media (min-width: 961px) {
  .hero-grid { grid-template-columns: 1fr; max-width: 720px; }
}

@media (max-width: 960px) {
  .contact-grid { grid-template-columns: 1fr; }
  .grid-3, .work-grid, .steps, .ingredients { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--nav-solid);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 1.4rem;
    gap: 1.2rem;
  }
  .nav-links.open { display: flex; }
  .grid-3, .grid-2, .work-grid, .steps, .ingredients { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .sauceometer .options { grid-template-columns: repeat(2, 1fr); }
}
