/* =================================================================
   San Antonio Web Studio — San Antonio Web Design Studio
   Editorial Southwestern. Cream-dominant, terracotta CTAs,
   deep-teal contrast sections, amber for highlights only.
   ----------------------------------------------------------------
   Sections:
     1. Tokens (color, type, spacing)
     2. Base + reset
     3. Layout helpers
     4. Buttons
     5. Header / nav
     6. Hero
     7. Sections (services, work, process, local)
     8. Contact form
     9. Footer
    10. Reveal animation + reduced motion + responsive
   ================================================================= */

/* ---------- 1. TOKENS ---------- */
:root {
  /* Locked palette */
  --near-black: #17130E;
  --cream:      #F6F1E7;
  --terracotta: #C4622D;
  --teal:       #1F4E45;
  --amber:      #E0A458;

  /* Derived / functional tokens */
  --ink:        var(--near-black);
  --ink-soft:   #4a4138;          /* muted body text on cream */
  --bg:         var(--cream);
  --bg-card:    #fffdf8;          /* slightly lifted card surface */
  --line:       #e2d8c6;          /* hairline borders on cream */
  --terracotta-deep: #a4501f;     /* hover/active for CTAs */
  --teal-deep:  #173a33;
  --on-teal:    #f0ece0;          /* cream text on teal */
  --on-teal-soft:#bcc9c2;

  /* Type */
  --display: "Fraunces", "Hoefler Text", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
          "Apple Color Emoji", sans-serif;

  /* Spacing scale (8pt rhythm) */
  --space-1: .5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;
  --space-7: 6rem;
  --space-8: 8rem;

  --container: 1200px;
  --radius: 14px;
  --radius-sm: 10px;

  --shadow-sm: 0 1px 2px rgba(23,19,14,.05), 0 4px 16px rgba(23,19,14,.04);
  --shadow-md: 0 8px 28px rgba(23,19,14,.10), 0 2px 6px rgba(23,19,14,.06);
  --shadow-lg: 0 30px 60px -18px rgba(23,19,14,.28);

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- 2. BASE / RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

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

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 1.0625rem;            /* 17px base */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  /* Subtle warm paper grain for editorial depth */
  background-image:
    radial-gradient(1200px 700px at 85% -10%, rgba(224,164,88,.10), transparent 60%),
    radial-gradient(900px 600px at -10% 5%, rgba(31,78,69,.06), transparent 55%);
  background-attachment: fixed;
}

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

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

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.04; letter-spacing: -.01em; }

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

:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--ink); color: var(--cream);
  padding: .75rem 1.25rem; border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------- 3. LAYOUT ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.25rem, 5vw, 2.5rem); }

.section { padding-block: clamp(3rem, 7vw, 6rem); position: relative; }

.section-head { max-width: 760px; margin-bottom: clamp(1.75rem, 4.5vw, 3rem); }

.section-index {
  font-family: var(--sans);
  font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 1rem;
  display: inline-flex; align-items: center;
}
.section-index.light { color: var(--amber); }

.section-title {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  letter-spacing: -.02em;
}
.section-title.light { color: var(--cream); }

.section-lead {
  margin-top: 1.25rem;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 60ch;
}
.section-lead.light { color: var(--on-teal-soft); }

/* ---------- 4. BUTTONS ---------- */
.btn {
  --btn-bg: var(--terracotta);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--sans);
  font-weight: 600; font-size: 1rem;
  line-height: 1; cursor: pointer;
  padding: .85rem 1.4rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  transition: transform .18s var(--ease), background-color .2s var(--ease),
              color .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
  text-align: center;
}
.btn:active { transform: translateY(1px) scale(.99); }

.btn-primary { background: var(--terracotta); color: #fff; box-shadow: 0 8px 20px -8px rgba(196,98,45,.6); }
.btn-primary:hover { background: var(--amber); color: var(--ink); box-shadow: 0 12px 26px -8px rgba(224,164,88,.55); }

.btn-ghost { background: transparent; color: var(--ink); border-color: rgba(23,19,14,.22); }
.btn-ghost:hover { border-color: var(--ink); background: rgba(23,19,14,.04); }
.btn-ghost .btn-arrow { transition: transform .2s var(--ease); }
.btn-ghost:hover .btn-arrow { transform: translateX(3px); }

.btn-amber { background: var(--amber); color: var(--ink); }
.btn-amber:hover { background: #f0b96a; }

.btn-lg { padding: 1.05rem 1.7rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- 5. HEADER / NAV ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246,241,231,.78);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(246,241,231,.92); }

.nav-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 72px; }

.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; }
.brand-mark { color: var(--terracotta); display: inline-flex; }
.brand-name {
  font-family: var(--display); font-weight: 600; font-size: 1.18rem;
  letter-spacing: -.01em; color: var(--ink); white-space: nowrap;
}

.primary-nav { margin-left: auto; }
.primary-nav ul { list-style: none; padding: 0; display: flex; gap: 1.9rem; }
.primary-nav a {
  font-size: .95rem; font-weight: 500; color: var(--ink-soft);
  position: relative; padding-block: .4rem; transition: color .2s var(--ease);
}
.primary-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--terracotta); transition: width .25s var(--ease);
}
.primary-nav a:hover { color: var(--ink); }
.primary-nav a:hover::after { width: 100%; }
.primary-nav a.active { color: var(--ink); }
.primary-nav a.active::after { width: 100%; }

.btn-nav { padding: .65rem 1.2rem; font-size: .92rem; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: .5rem; margin-left: auto;
}
.nav-toggle-bar { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s var(--ease); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  border-top: 1px solid var(--line);
  background: var(--cream);
  padding: 1.5rem clamp(1.25rem, 5vw, 2.5rem) 2rem;
}
.mobile-menu ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .25rem; margin-bottom: 1.25rem; }
.mobile-menu a { display: block; padding: .85rem 0; font-family: var(--display); font-size: 1.35rem; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { width: 100%; }

/* ---------- 6. HERO ---------- */
.hero { position: relative; padding-block: clamp(1.5rem, 3vw, 2.5rem) clamp(2.5rem, 5vw, 4rem); overflow: hidden; }

/* Abstract Southwestern topographic contour motif (not kitschy) */
.hero-topo {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background-image:
    radial-gradient(ellipse 60% 80% at 78% 30%, transparent 0, transparent 18%, rgba(31,78,69,.07) 18.4%, transparent 19%),
    radial-gradient(ellipse 60% 80% at 78% 30%, transparent 0, transparent 30%, rgba(31,78,69,.06) 30.4%, transparent 31%),
    radial-gradient(ellipse 60% 80% at 78% 30%, transparent 0, transparent 44%, rgba(196,98,45,.06) 44.4%, transparent 45%),
    radial-gradient(ellipse 60% 80% at 78% 30%, transparent 0, transparent 60%, rgba(196,98,45,.05) 60.4%, transparent 61%);
}

.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .82rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--teal);
  padding: .5rem .9rem .5rem .75rem;
  border: 1px solid var(--line); border-radius: 999px; background: rgba(255,253,248,.6);
  margin-bottom: 1.1rem;
}
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--terracotta); box-shadow: 0 0 0 4px rgba(196,98,45,.18); }

.hero h1 {
  font-size: clamp(2.25rem, 4.4vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: -.025em;
  margin-bottom: 1.1rem;
}
.headline-accent { display: block; color: var(--terracotta); font-style: italic; font-weight: 500; }

.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--ink-soft); max-width: 46ch; margin-bottom: 1.5rem;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.25rem; }

.hero-trust { font-size: .95rem; color: var(--ink-soft); }
.hero-trust strong { color: var(--ink); font-weight: 600; }

/* Hero visual — demo browser */
.hero-visual { position: relative; justify-self: center; width: 100%; max-width: 460px; }

.demo-badge {
  position: absolute; top: -18px; right: 8px; z-index: 3;
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--teal); color: var(--on-teal);
  font-size: .8rem; font-weight: 600; letter-spacing: .01em;
  padding: .55rem .9rem; border-radius: 999px;
  box-shadow: var(--shadow-md);
  transform: rotate(2deg);
}
.demo-badge svg { color: var(--amber); }

.browser {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: rotate(-1.5deg);
  transition: transform .4s var(--ease);
}
.hero-visual:hover .browser { transform: rotate(0deg) translateY(-4px); }

.browser-bar { display: flex; align-items: center; gap: .4rem; padding: .7rem .9rem; background: #efe7d8; border-bottom: 1px solid var(--line); }
.browser-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: #cdbfa6; }
.browser-bar .dot:nth-child(1) { background: var(--terracotta); opacity: .8; }
.browser-bar .dot:nth-child(2) { background: var(--amber); }
.browser-bar .dot:nth-child(3) { background: var(--teal); opacity: .65; }
.browser-url {
  margin-left: .6rem; flex: 1; background: var(--cream); border-radius: 6px;
  font-size: .72rem; color: var(--ink-soft); padding: .3rem .7rem; font-family: var(--sans);
}

.browser-body { padding: 1.1rem; display: flex; flex-direction: column; gap: 1rem; }
.wf-nav { display: flex; align-items: center; justify-content: space-between; }
.wf-logo { width: 46px; height: 14px; border-radius: 4px; background: var(--teal); }
.wf-links { display: flex; gap: .5rem; }
.wf-links span { width: 26px; height: 8px; border-radius: 4px; background: #ddd0ba; }

.wf-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1rem; align-items: center; }
.wf-lines { display: flex; flex-direction: column; gap: .55rem; }
.wf-line { height: 12px; border-radius: 5px; background: #e4d8c2; }
.wf-line.w-80 { width: 90%; height: 16px; background: #d8c6a8; }
.wf-line.w-60 { width: 70%; }
.wf-line.w-40 { width: 48%; }
.wf-btn { margin-top: .4rem; width: 84px; height: 22px; border-radius: 999px; background: var(--terracotta); }
.wf-block { height: 96px; border-radius: 10px; background: linear-gradient(135deg, var(--teal), #2c6657); }

.wf-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.wf-card { height: 50px; border-radius: 8px; background: #efe6d5; border: 1px solid var(--line); }
.wf-card:nth-child(2) { background: #f3e3cd; }

/* ---------- 7. SERVICES ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: #d9caae; }
.card-icon {
  width: 50px; height: 50px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 1.3rem;
  background: rgba(196,98,45,.10); color: var(--terracotta);
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.35rem; margin-bottom: .6rem; }
.card p { color: var(--ink-soft); font-size: .98rem; }

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

.work-tile { display: flex; flex-direction: column; }
.tile-link { display: block; border-radius: var(--radius); }
.tile-link:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 3px; }
.tile-canvas {
  position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--line);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.tile-canvas img {
  width: 100%; height: 100%; display: block;
  object-fit: cover; object-position: top center;
  transition: transform .5s var(--ease);
}
.work-tile:hover .tile-canvas { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.work-tile:hover .tile-canvas img { transform: scale(1.04); }

/* Honest provenance tag — live client vs demo build */
.tile-tag {
  position: absolute; top: .8rem; left: .8rem; z-index: 1;
  font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: .4rem .72rem; border-radius: 999px;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.tag-live { background: var(--terracotta); color: #fff; box-shadow: 0 4px 12px -4px rgba(196,98,45,.6); }
.tag-demo { background: rgba(23,19,14,.55); color: var(--cream); border: 1px solid rgba(246,241,231,.28); }

.tile-meta { padding: 1rem .25rem 0; }
.tile-meta h3 { font-size: 1.25rem; }
.tile-meta p { color: var(--ink-soft); font-size: .92rem; margin-top: .2rem; }

/* ---------- PROCESS (teal contrast section) ---------- */
.process { background: var(--teal); color: var(--on-teal); }
.process::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    radial-gradient(ellipse 70% 90% at 12% 18%, transparent 0 28%, rgba(224,164,88,.10) 28.3%, transparent 29%),
    radial-gradient(ellipse 70% 90% at 12% 18%, transparent 0 40%, rgba(224,164,88,.08) 40.3%, transparent 41%),
    radial-gradient(ellipse 70% 90% at 12% 18%, transparent 0 54%, rgba(246,241,231,.06) 54.3%, transparent 55%);
}
.process .container { position: relative; z-index: 1; }

.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: step; }
.step { position: relative; padding-top: 2rem; border-top: 2px solid rgba(240,236,224,.22); }
.step-num {
  font-family: var(--display); font-size: 2.2rem; font-weight: 600;
  color: var(--amber); display: block; margin-bottom: .8rem; line-height: 1;
}
.step h3 { font-size: 1.35rem; color: var(--cream); margin-bottom: .55rem; }
.step p { color: var(--on-teal-soft); font-size: .98rem; }

/* ---------- WHY LOCAL ---------- */
.local-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.local-lead { margin-top: 1.25rem; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-soft); max-width: 54ch; }

.local-points { list-style: none; padding: 0; margin-top: 2.4rem; display: flex; flex-direction: column; gap: 1.6rem; }
.local-points li { display: flex; gap: 1rem; }
.point-mark {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center; background: var(--teal); color: var(--cream);
}
.local-points h3 { font-size: 1.2rem; margin-bottom: .25rem; }
.local-points p { color: var(--ink-soft); font-size: .98rem; }

.local-stat-card {
  position: sticky; top: 100px;
  background: var(--ink); color: var(--cream);
  border-radius: var(--radius); padding: 2.2rem 2rem;
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; gap: 1.4rem;
}
.local-stat-card .stat { display: flex; flex-direction: column; gap: .2rem; }
.stat-num { font-family: var(--display); font-size: 2.6rem; font-weight: 600; color: var(--amber); line-height: 1; }
.stat-label { font-size: .9rem; color: #cbbfa9; letter-spacing: .01em; }
.stat-divider { height: 1px; background: rgba(246,241,231,.16); }

/* ---------- 8. CONTACT ---------- */
.contact { background: linear-gradient(180deg, var(--cream), #efe7d8); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.contact-lead { margin-top: 1.25rem; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-soft); max-width: 46ch; }

.contact-direct { list-style: none; padding: 0; margin-top: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.contact-direct li { display: flex; align-items: center; gap: .8rem; font-size: 1.05rem; }
.contact-ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(31,78,69,.10); color: var(--teal); flex-shrink: 0; }
.contact-direct a:hover { color: var(--terracotta); }

.contact-form {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.4rem);
  box-shadow: var(--shadow-md);
}
.field { margin-bottom: 1.25rem; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .5rem; }
.req { color: var(--terracotta); }
.field input, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--ink);
  background: var(--cream); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: .85rem 1rem; transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
  min-height: 48px;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: #a99c86; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--terracotta); background: #fff;
  box-shadow: 0 0 0 4px rgba(196,98,45,.14);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #c0392b; }
.field-error { color: #c0392b; font-size: .85rem; margin-top: .4rem; font-weight: 500; }

.btn-spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.45); border-top-color: #fff;
  animation: spin .7s linear infinite; display: none;
}
.btn.is-loading .btn-label { opacity: .65; }
.btn.is-loading .btn-spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-status { margin-top: 1.1rem; padding: .85rem 1rem; border-radius: var(--radius-sm); font-weight: 500; font-size: .95rem; }
.form-status.is-success { background: rgba(31,78,69,.12); color: var(--teal-deep); border: 1px solid rgba(31,78,69,.25); }
.form-status.is-error { background: rgba(192,57,43,.10); color: #9e2b1e; border: 1px solid rgba(192,57,43,.3); }

/* ---------- 9. FOOTER ---------- */
.site-footer { background: var(--teal); color: var(--on-teal); padding-top: clamp(3.5rem, 7vw, 5.5rem); }
.footer-grid { display: grid; grid-template-columns: 1.6fr .7fr 1fr; gap: clamp(2rem, 5vw, 3.5rem); padding-bottom: 3rem; }
.brand-footer .brand-name { color: var(--cream); }
.brand-footer .brand-mark { color: var(--amber); }
.footer-tagline { font-size: clamp(1.4rem, 2.6vw, 1.9rem); color: var(--cream); margin: 1.3rem 0 1rem; max-width: 18ch; font-weight: 600; }
.footer-areas { color: var(--on-teal-soft); font-size: .98rem; max-width: 44ch; }

.footer-nav h3, .footer-contact h3 {
  font-family: var(--sans); font-size: .78rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--amber); margin-bottom: 1.1rem;
}
.footer-nav ul, .footer-contact ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .7rem; }
.footer-nav a, .footer-contact a { color: var(--on-teal); transition: color .2s var(--ease); }
.footer-nav a:hover, .footer-contact a:hover { color: var(--amber); }
.footer-loc { color: var(--on-teal-soft); }
.footer-cta { margin-top: 1.4rem; }

.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .75rem;
  padding-block: 1.6rem; border-top: 1px solid rgba(246,241,231,.16);
  font-size: .88rem; color: var(--on-teal-soft);
}

/* ---------- 10. REVEAL + MOTION + RESPONSIVE ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
/* stagger children inside a grid/group */
.cards-grid .reveal:nth-child(2), .work-grid .reveal:nth-child(2), .steps .reveal:nth-child(2) { transition-delay: .08s; }
.cards-grid .reveal:nth-child(3), .work-grid .reveal:nth-child(3), .steps .reveal:nth-child(3) { transition-delay: .16s; }
.cards-grid .reveal:nth-child(4), .work-grid .reveal:nth-child(4), .steps .reveal:nth-child(4) { transition-delay: .24s; }
.work-grid .reveal:nth-child(5) { transition-delay: .32s; }
.work-grid .reveal:nth-child(6) { transition-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .browser, .demo-badge { transform: none; }
}

/* --- Tablet --- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero-visual { max-width: 520px; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .local-grid { grid-template-columns: 1fr; }
  .local-stat-card { position: static; flex-direction: row; flex-wrap: wrap; justify-content: space-between; }
  .local-stat-card .stat-divider { width: 1px; height: auto; align-self: stretch; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* --- Mobile --- */
@media (max-width: 720px) {
  .primary-nav, .btn-nav { display: none; }
  .nav-toggle { display: flex; }
  .site-header .brand-name { font-size: 1.05rem; }
  .cards-grid, .work-grid, .steps { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(2.4rem, 9vw, 3.2rem); }
  .demo-badge { right: auto; left: 8px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .local-stat-card { flex-direction: column; }
  .local-stat-card .stat-divider { width: 100%; height: 1px; }
}

@media (max-width: 380px) {
  .wf-hero { grid-template-columns: 1fr; }
  .wf-block { height: 70px; }
}
