/* ==========================================================================
   Tavy Studios — marketing site styles
   Brand tokens reused (by value) from the Tavy OS app so the two match.
   DARK is the default theme; <html data-theme="light"> switches to light.
   Plain CSS, no build step.
   ========================================================================== */

:root {
  /* Shape + type (theme-independent) */
  --r-md: 0.625rem;
  --r-lg: 0.75rem;
  --r-xl: 1rem;
  --r-2xl: 1.125rem;
  --r-3xl: 1.5rem;
  --container: 1120px;
  --font: 'Inter var', 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* ---- DARK theme (default) — Tavy OS dark tokens ---- */
  --bg: #09090c;
  --surface: #121217;
  --surface-2: #18181e;
  --elevated: #1c1c23;
  --border: #26262e;
  --border-strong: #34343e;
  --fg: #f4f4f8;
  --muted: #9ea0ac;
  --faint: #70727e;
  --brand: #8183f8;
  --brand-fg: #0c0c12;
  --brand-soft: #1e1e2e;
  --brand-strong: #6366f1;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #f87171;
  --info: #60a5fa;
  --header-bg: rgba(18, 18, 23, 0.82);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 28px rgba(0, 0, 0, 0.35);
  --shadow-pop: 0 16px 44px rgba(0, 0, 0, 0.55);
  color-scheme: dark;
}

/* ---- LIGHT theme — Tavy OS light tokens ---- */
:root[data-theme='light'] {
  --bg: #f7f7f9;
  --surface: #ffffff;
  --surface-2: #fafafc;
  --elevated: #ffffff;
  --border: #e8e8ee;
  --border-strong: #d8d8e0;
  --fg: #111218;
  --muted: #606470;
  --faint: #8e929e;
  --brand: #6366f1;
  --brand-fg: #ffffff;
  --brand-soft: #eeeefd;
  --brand-strong: #4f46e5;
  --success: #16a34a;
  --warning: #d97706;
  --danger: #dc2626;
  --info: #2563eb;
  --header-bg: rgba(255, 255, 255, 0.82);
  --shadow-card: 0 1px 2px rgba(17, 18, 24, 0.04), 0 6px 24px rgba(17, 18, 24, 0.06);
  --shadow-pop: 0 12px 40px rgba(17, 18, 24, 0.12);
  color-scheme: light;
}

/* ---- Reset / base -------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.3s ease, color 0.3s ease;
}
h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--fg);
}
p {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px rgba(99, 102, 241, 0.55);
  border-radius: 6px;
}
::selection {
  background: rgba(99, 102, 241, 0.24);
}

/* ---- Motion: gentle scroll-reveal --------------------------------------- */
/* Hidden start-state is scoped to html.reveal-ready (set by JS on load), so if
   JS ever fails the content is simply visible — never a blank page. Reveals
   fire once, then the element is unobserved. Neutralized under reduced-motion. */
html.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
html.reveal-ready .reveal.is-visible {
  opacity: 1;
  transform: none;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 0 0 var(--r-md) 0;
  z-index: 100;
}
.skip-link:focus {
  left: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7rem 1.15rem;
  border-radius: var(--r-xl);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease,
    box-shadow 0.15s ease, filter 0.15s ease;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--brand);
  color: var(--brand-fg);
  box-shadow: 0 1px 2px rgba(79, 70, 229, 0.25);
}
.btn-primary:hover {
  filter: brightness(1.07);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.28);
}
.btn-secondary {
  background: var(--surface);
  color: var(--fg);
  border-color: var(--border-strong);
}
.btn-secondary:hover {
  background: var(--surface-2);
  border-color: var(--faint);
}
.btn-sm {
  padding: 0.5rem 0.9rem;
  font-size: 0.875rem;
  border-radius: var(--r-lg);
}
.btn-lg {
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
}
.btn-block {
  width: 100%;
}

/* ---- Header / nav -------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand-mark {
  flex: none;
  display: block;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  overflow: hidden;
  object-fit: cover; /* square logo fills the square badge, stays crisp (downscaled) */
  background: #0c0c12; /* dark tile in BOTH themes so the logo reads cleanly */
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.brand-name {
  font-size: 1.05rem;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.nav-links a {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}
.nav-links a:hover {
  color: var(--fg);
}
.nav-links a.nav-cta {
  color: var(--brand-fg);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 9px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  cursor: pointer;
}
.nav-toggle span {
  height: 2px;
  width: 100%;
  background: var(--fg);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded='true'] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded='true'] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded='true'] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Right cluster: links + theme toggle + hamburger */
.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.theme-toggle:hover {
  color: var(--fg);
  background: var(--surface-2);
  border-color: var(--border-strong);
}
/* Show the sun in dark mode (click → light); the moon in light mode. */
.icon-moon {
  display: none;
}
:root[data-theme='light'] .icon-sun {
  display: none;
}
:root[data-theme='light'] .icon-moon {
  display: block;
}

/* Language toggle (EN / ES) — matches the theme toggle's height + border. */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  height: 42px;
  padding: 0 0.7rem;
  color: var(--faint);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.lang-toggle:hover {
  background: var(--surface-2);
  border-color: var(--border-strong);
}
.lang-toggle .lang-opt {
  color: var(--faint);
  transition: color 0.15s ease;
}
.lang-toggle .lang-sep {
  color: var(--border-strong);
  font-weight: 400;
}
/* Highlight the active language. */
.lang-toggle[data-active='en'] .lang-opt[data-lang='en'],
.lang-toggle[data-active='es'] .lang-opt[data-lang='es'] {
  color: var(--fg);
}

/* ---- Hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 9vw, 7.5rem) 0 clamp(3.5rem, 7vw, 6rem);
}
.hero-glow {
  position: absolute;
  inset: -25% 0 auto 0;
  height: 560px;
  /* One restrained accent wash — no rainbow, no second gradient. */
  background: radial-gradient(50% 55% at 50% 12%, rgba(129, 131, 248, 0.12), transparent 72%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  text-align: center;
  max-width: 820px;
}
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}
.hero-title {
  font-size: clamp(2.4rem, 6.4vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.hero-title .accent {
  color: var(--brand);
}
.hero-tagline {
  margin: 1.25rem auto 0;
  max-width: 640px;
  font-size: clamp(1.05rem, 2.3vw, 1.2rem);
  color: var(--muted);
}
.hero-actions {
  margin-top: 2rem;
  display: flex;
  gap: 0.85rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-note {
  margin-top: 1.6rem;
  font-size: 0.85rem;
  color: var(--faint);
  letter-spacing: 0.01em;
}

/* ---- Marquee: one slim, slow, quiet band -------------------------------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  padding: 0.7rem 0;
  /* Fade the edges so items enter/exit softly, not abruptly. */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: 2.75rem;
  animation: marquee-scroll 42s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee-track {
  animation-play-state: paused;
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 2.75rem;
  white-space: nowrap;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}
.marquee-item::after {
  content: '·';
  color: var(--brand);
}
@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ---- Sections ------------------------------------------------------------ */
.section {
  padding: clamp(4rem, 8vw, 6.75rem) 0;
}
.section-alt {
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
/* Editorial, left-aligned, numbered section heads (01 / 02 / …). */
.section-head {
  max-width: 720px;
  margin: 0 0 clamp(2.25rem, 4vw, 3.25rem);
  text-align: left;
}
.section-head::before {
  content: attr(data-index);
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.85rem;
}
.section-head .eyebrow {
  background: none;
  padding: 0;
  margin-bottom: 0.4rem;
  color: var(--muted);
}
.section-head h2 {
  font-size: clamp(1.8rem, 4.2vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-top: 0.1rem;
}
.section-sub {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 60ch;
}

/* ---- Cards / grids ------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow-card);
}
.grid {
  display: grid;
  gap: 1.25rem;
}
.grid-services {
  grid-template-columns: repeat(3, 1fr);
}
.feature {
  padding: 1.6rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-pop);
}
/* Typographic services — a small brand tick instead of a stock emoji icon. */
.feature h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}
.feature h3::before {
  content: '';
  display: block;
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: var(--brand);
  margin-bottom: 0.9rem;
}
.feature p {
  color: var(--muted);
  font-size: 0.97rem;
}

/* ---- Pricing ------------------------------------------------------------- */
.grid-pricing {
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}
.price-card {
  position: relative;
  padding: 1.9rem 1.6rem;
  display: flex;
  flex-direction: column;
}
.price-card.featured {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand), var(--shadow-pop);
}
.badge-popular {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand);
  color: var(--brand-fg);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  white-space: nowrap;
}
.price-head h3 {
  font-size: 1.3rem;
}
.price-blurb {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 0.35rem;
  min-height: 2.6em;
}
.price {
  display: flex;
  align-items: baseline;
  gap: 0.1rem;
  margin: 1.1rem 0 0.15rem;
  font-weight: 800;
  color: var(--fg);
}
.price-currency {
  font-size: 1.4rem;
  transform: translateY(-0.35rem);
}
.price-amount {
  font-size: 2.75rem;
  letter-spacing: -0.03em;
}
.price-unit {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--muted);
}
.price-period {
  color: var(--faint);
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}
.placeholder-tag {
  display: inline-block;
  background: rgba(217, 119, 6, 0.12);
  color: var(--warning);
  font-weight: 600;
  font-size: 0.72rem;
  padding: 0.05rem 0.45rem;
  border-radius: 999px;
}
.price-features {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.6rem;
  flex: 1;
}
.price-features li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.price-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--success);
  font-weight: 800;
}

/* Monthly maintenance (two Tavy Care tiers) */
.care-head {
  max-width: 640px;
  margin: 3rem auto 1.75rem;
  text-align: center;
}
.care-head h3 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  margin-top: 0.4rem;
}
.care-head p {
  margin-top: 0.6rem;
  color: var(--muted);
}
.grid-care {
  grid-template-columns: repeat(2, 1fr);
  max-width: 760px;
  margin: 0 auto;
}
.price-card.care .price-blurb {
  min-height: 0;
}

/* "Good to know" — compact, secondary info under pricing */
.good-to-know {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 2rem;
  max-width: 900px;
  margin: 2.5rem auto 0;
  padding: 1.25rem 1.5rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
}
.gtk-item h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--fg);
  margin: 0 0 0.3rem;
}
.gtk-item p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}
.gtk-item strong {
  color: var(--fg);
  font-weight: 600;
}

/* ---- Portfolio ----------------------------------------------------------- */
.grid-work {
  grid-template-columns: repeat(3, 1fr);
}
.work-card {
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.work-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-pop);
}
.work-thumb {
  aspect-ratio: 16 / 10;
  width: 100%;
  display: grid;
  place-items: center;
  object-fit: cover;
  background: repeating-linear-gradient(
    135deg,
    var(--brand-soft),
    var(--brand-soft) 12px,
    var(--surface-2) 12px,
    var(--surface-2) 24px
  );
  color: var(--brand);
  font-weight: 600;
  font-size: 0.9rem;
}
.work-meta {
  padding: 1rem 1.1rem 1.2rem;
}
.work-meta h3 {
  font-size: 1.05rem;
}
.work-meta p {
  color: var(--faint);
  font-size: 0.88rem;
  margin-top: 0.2rem;
}

/* ---- Work: featured case study + "what we do" trust panel ---------------- */
.work-showcase {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
}
.case-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.case-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-pop);
}
.case-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
}
.case-body {
  padding: 1.5rem 1.6rem 1.7rem;
}
.case-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.5rem;
}
.case-body h3 {
  font-size: 1.4rem;
  line-height: 1.2;
}
.case-desc {
  color: var(--muted);
  margin-top: 0.55rem;
  font-size: 0.97rem;
}
.case-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.5rem;
  margin: 1rem 0 1.1rem;
}
.case-tags li {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--fg);
  background: var(--brand-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
}
.case-link {
  display: inline-block;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--brand);
}
.case-card:hover .case-link {
  text-decoration: underline;
}
.workdo {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  padding: 1.5rem 1.6rem 1.7rem;
}
.workdo .eyebrow {
  margin-bottom: 0.4rem;
}
.workdo-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin: 0.6rem 0 1.4rem;
}
.workdo-list li {
  border-left: 2px solid var(--brand);
  padding-left: 0.85rem;
}
.workdo-list h4 {
  font-size: 1rem;
}
.workdo-list p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.15rem;
}
.workdo .btn {
  margin-top: auto;
}

/* ---- Team ---------------------------------------------------------------- */
.grid-team {
  grid-template-columns: repeat(3, 1fr);
}
.team-card {
  padding: 1.75rem;
  text-align: center;
}
.avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  object-fit: cover;
  /* Dark circular initials avatars (silver on near-black), matching the logo. */
  background: radial-gradient(circle at 30% 25%, #23232e, #0c0c12);
  color: #e6e7ee;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.team-card h3 {
  font-size: 1.15rem;
}
.team-role {
  color: var(--brand);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 0.25rem;
}
.team-bio {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 0.75rem;
}

/* ---- Contact ------------------------------------------------------------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
}
.contact-info h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 800;
  margin-top: 0.5rem;
}
.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--brand);
}
.contact-email:hover {
  text-decoration: underline;
}
.contact-email-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--r-md);
  background: var(--brand-soft);
}
.contact-small {
  margin-top: 0.9rem;
  color: var(--faint);
  font-size: 0.9rem;
}
.contact-form {
  padding: 1.75rem;
}
.field {
  margin-bottom: 1.1rem;
}
.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  font: inherit;
  color: var(--fg);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  padding: 0.7rem 0.85rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field select {
  cursor: pointer;
  /* Native control themes with color-scheme (set per theme on :root). */
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
}
.field textarea {
  resize: vertical;
}
.form-status {
  margin-top: 0.9rem;
  font-size: 0.9rem;
  min-height: 1.2em;
}
.form-status.ok {
  color: var(--success);
}
.form-status.err {
  color: var(--danger);
}

/* ---- Project intake form (Start a project) ------------------------------- */
.intake-form {
  max-width: 820px;
  margin: 0 auto;
}
/* Spam honeypot — hidden from real users; bots that fill it are ignored. */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 1.25rem;
}
.form-grid .field {
  margin-bottom: 0;
}
.field-full {
  grid-column: 1 / -1;
}
.req {
  color: var(--danger);
}
.intake-form fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.intake-form legend {
  padding: 0;
  margin-bottom: 0.55rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--fg);
}
.check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.55rem 1rem;
}
.check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.93rem;
  color: var(--muted);
  cursor: pointer;
}
.check input {
  width: 1.05rem;
  height: 1.05rem;
  flex: none;
  accent-color: var(--brand);
  cursor: pointer;
}
.intake-form > .btn {
  margin-top: 1.6rem;
}
.intake-alt {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--faint);
}
.intake-alt a {
  color: var(--brand);
  font-weight: 600;
}
.intake-alt a:hover {
  text-decoration: underline;
}

/* ---- Footer -------------------------------------------------------------- */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding-top: 2.75rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
}
.footer-brand p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 0.8rem;
  max-width: 30ch;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-links a,
.footer-contact a {
  color: var(--muted);
  font-size: 0.95rem;
}
.footer-links a:hover,
.footer-contact a:hover {
  color: var(--fg);
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 1.25rem 1.25rem;
  border-top: 1px solid var(--border);
  color: var(--faint);
  font-size: 0.85rem;
}
.footer-credit {
  color: var(--faint);
}
.footer-credit a {
  color: var(--muted);
}
.footer-credit a:hover {
  color: var(--brand);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .grid-services,
  .grid-pricing,
  .grid-work,
  .grid-team {
    grid-template-columns: repeat(2, 1fr);
  }
  .work-showcase {
    grid-template-columns: 1fr;
  }
  .contact-wrap {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  /* Mobile nav */
  .nav-toggle {
    display: flex;
  }
  .nav-links {
    position: fixed;
    inset: 64px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-pop);
    padding: 0.75rem 1.25rem 1.25rem;
    transform: translateY(-140%);
    transition: transform 0.25s ease;
  }
  .nav-links.open {
    transform: translateY(0);
  }
  .nav-links a {
    padding: 0.7rem 0.25rem;
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
  }
  .nav-links a.nav-cta {
    margin-top: 0.5rem;
    border-bottom: none;
    text-align: center;
  }

  .grid-services,
  .grid-pricing,
  .grid-care,
  .grid-work,
  .grid-team,
  .good-to-know,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .price-card.featured {
    order: -1; /* show the popular plan first on mobile */
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
  /* Never hide content or move a marquee when motion is reduced. */
  html.reveal-ready .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .marquee-track {
    transform: none !important;
  }
}
