/* =============================================================
   CARPINTERÍA VALENCIANA — Brutalist Grid (warm wood palette)
   1. Tokens  2. Reset  3. Utilities  4. Typography  5. Components
   6. Sections  7. Effects  8. Responsive  9. Reduced-motion
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:        #f7f3ec;   /* warm off-white */
  --bg-panel:  #efe8db;   /* slightly deeper panel tint */
  --ink:       #17130f;   /* warm near-black */
  --ink-soft:  #4a4238;   /* muted body text */
  --accent:    #b5651d;   /* walnut amber */
  --accent-2:  #8a4a13;   /* darker walnut for hover states */
  --line:      #17130f;   /* hairline grid rule color */
  --cream:     #f7f3ec;

  --mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:   cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --container: 1360px;
  --gutter: 1px;
  --nav-h: 68px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  scroll-behavior: smooth;
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1; letter-spacing: -0.01em; }
ul { list-style: none; padding: 0; }
::selection { background: var(--accent); color: var(--cream); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 0;
}

/* No curves anywhere — brutalist invariant */
* { border-radius: 0 !important; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { max-width: var(--container); margin-inline: auto; padding-inline: 1.25rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .7rem 1.1rem; background: var(--ink); color: var(--cream);
  z-index: 9999; font-family: var(--mono); font-size: .85rem;
  transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.mono { font-family: var(--mono); }
.kicker {
  font-family: var(--mono);
  font-size: .8rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .9rem;
  display: block;
}
.eyebrow { font-family: var(--mono); font-size: .75rem; color: var(--ink-soft); }

/* =============================================================
   4. Typography
   ============================================================= */
h1 { font-family: var(--mono); font-weight: 700; }
h2, h3 { font-family: var(--mono); font-weight: 600; }
.section-title {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  line-height: 1.04;
  max-width: 20ch;
}
.section-lede {
  font-family: var(--sans);
  color: var(--ink-soft);
  font-size: 1.02rem;
  max-width: 52ch;
  line-height: 1.6;
}

/* =============================================================
   5. Components
   ============================================================= */

/* --- grid-12 --- */
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
  background: var(--line);
}
.grid-12 > * { background: var(--bg); }
.col-span-12 { grid-column: span 12; }
.col-span-7 { grid-column: span 12; }
.col-span-5 { grid-column: span 12; }
.col-span-6 { grid-column: span 12; }
.col-span-4 { grid-column: span 12; }
.col-span-3 { grid-column: span 12; }
.col-span-8 { grid-column: span 12; }

/* --- buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--mono); font-size: .86rem; font-weight: 600;
  letter-spacing: .01em;
  padding: .95rem 1.5rem;
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: var(--cream);
  transition: background .18s var(--ease-out), color .18s var(--ease-out), transform .18s var(--ease-out);
  white-space: nowrap;
}
.btn:hover { background: var(--bg); color: var(--ink); transform: translate(-2px,-2px); }
.btn-outline {
  background: var(--bg); color: var(--ink); border-color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--cream); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--cream); }
.btn-accent:hover { background: var(--bg); color: var(--accent); }
.btn-lg { padding: 1.1rem 1.9rem; font-size: .92rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* --- nav --- */
.nav {
  position: sticky; top: 0; z-index: 200;
  background: var(--bg);
  border-bottom: 1.5px solid var(--ink);
}
.nav-inner {
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
}
.nav-logo {
  font-family: var(--mono); font-weight: 700; font-size: 1.02rem;
  display: flex; align-items: center; gap: .5rem;
  letter-spacing: -0.01em;
}
.nav-logo-img { height: 38px; width: auto; display: block; }
.nav-links { display: none; align-items: center; gap: 1.8rem; }
.nav-links a {
  font-family: var(--mono); font-size: .82rem; letter-spacing: .01em;
  padding: .3rem 0; position: relative;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -3px; height: 2px;
  background: var(--accent); transition: right .2s var(--ease-out);
}
.nav-links a:hover::after { right: 0; }
.hero-claim {
  font-family: var(--mono); font-size: .92rem; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--accent); margin: -.4rem 0 1.1rem;
}
.nav-cta { display: none; }
.nav-social {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; flex: none;
  font-family: var(--mono); font-size: .72rem; font-weight: 700; letter-spacing: .02em;
  border: 1.5px solid var(--ink);
}
.nav-burger {
  display: flex; flex-direction: column; gap: 5px; padding: .5rem;
  border: 1.5px solid var(--ink);
}
.nav-burger span { width: 20px; height: 2px; background: var(--ink); }
.nav-mobile {
  display: none;
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 190;
  background: var(--bg); border-top: 1.5px solid var(--ink);
  padding: 2rem 1.25rem;
  flex-direction: column; gap: 1.4rem;
}
.nav-mobile.is-open { display: flex; }
.nav-mobile a { font-family: var(--mono); font-size: 1.2rem; }
.nav-mobile .btn { align-self: flex-start; margin-top: 1rem; }

/* --- badge --- */
.badge {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--mono); font-size: .78rem;
  border: 1px solid var(--ink); padding: .45rem .8rem;
}
.badge-dot { width: 7px; height: 7px; background: var(--accent); flex: none; animation: pulseDot 2.2s infinite; }
@keyframes pulseDot { 0%,100%{ opacity: 1; } 50%{ opacity: .35; } }

/* --- stars --- */
.stars { color: var(--accent); font-size: .95rem; letter-spacing: .12em; }

/* --- cards --- */
.card {
  padding: 1.6rem 1.4rem;
  border: 1px solid var(--line);
}

/* --- number counters --- */
.stat-num {
  font-family: var(--mono); font-weight: 700; font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--ink); display: block; line-height: 1;
}
.stat-label { font-family: var(--sans); font-size: .88rem; color: var(--ink-soft); margin-top: .5rem; display: block; }

/* --- form --- */
.field { display: grid; gap: .4rem; margin-bottom: 1rem; }
.field label { font-family: var(--mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; }
.field input, .field textarea, .field select {
  font-family: var(--sans); font-size: .95rem;
  border: 1.5px solid var(--ink); background: var(--bg);
  padding: .8rem .9rem; width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 100px; }
.form-status { font-family: var(--mono); font-size: .82rem; min-height: 1.2em; margin-top: .6rem; }

/* --- faq accordion --- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 1.25rem 0; text-align: left;
  font-family: var(--mono); font-size: 1rem; font-weight: 600;
}
.faq-icon { font-family: var(--mono); font-size: 1.1rem; transition: transform .25s var(--ease-out); flex: none; margin-left: 1rem; }
.faq-item.is-open .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease-out); }
.faq-item.is-open .faq-answer { max-height: 300px; }
.faq-answer p { padding-bottom: 1.35rem; color: var(--ink-soft); max-width: 62ch; }

/* =============================================================
   6. Sections
   ============================================================= */
.section { border-top: 1.5px solid var(--ink); padding-block: clamp(3rem, 7vw, 5.5rem); }
.section-head { padding: 2.5rem 1.6rem 2rem; }

/* --- hero --- */
.hero { border-top: none; }
.hero-inner {
  /* full-viewport hero only applies at desktop (960px breakpoint) where copy
     and figure sit side by side; on mobile the stacked content flows naturally
     so the last line never lands under the fixed WhatsApp/chat buttons */
}
.hero-copy { padding: 3rem 1.6rem; display: flex; flex-direction: column; justify-content: center; gap: 1.4rem; }
.hero-eyebrow { display: none; }
.hero-title { font-size: clamp(2.4rem, 6.2vw, 4.6rem); line-height: .98; }
.hero-title em { font-style: normal; color: var(--accent); }
.hero-desc { font-size: 1.05rem; color: var(--ink-soft); max-width: 42ch; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: .5rem; }
.hero-figure { position: relative; min-height: 340px; }
.hero-figure img { width: 100%; height: 100%; object-fit: cover; }
.hero-figure-tag {
  position: absolute; left: 0; bottom: 0;
  background: var(--ink); color: var(--cream);
  font-family: var(--mono); font-size: .78rem;
  padding: .6rem .9rem;
}

/* --- marquee --- */
.marquee-wrap {
  border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink);
  overflow: hidden; background: var(--ink); padding-block: .9rem;
}
.marquee-track {
  display: flex; width: max-content; gap: 3rem;
  animation: marqueeScroll 28s linear infinite;
  will-change: transform;
}
.marquee-track span {
  font-family: var(--mono); font-size: clamp(1.1rem, 2.6vw, 1.7rem); font-weight: 700;
  color: var(--cream); white-space: nowrap; display: flex; align-items: center; gap: 3rem;
}
.marquee-track span::after { content: "—"; color: var(--accent); }
@keyframes marqueeScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* --- servicios --- */
.servicio-block { padding: 2.2rem 1.6rem; display: flex; flex-direction: column; gap: 1rem; }
.servicio-num { font-family: var(--mono); font-size: .82rem; color: var(--accent); }
.servicio-title { font-size: 1.35rem; }
.servicio-text { color: var(--ink-soft); font-size: .96rem; max-width: 40ch; }
.servicio-figure { min-height: 220px; }
.servicio-figure img { width: 100%; height: 100%; object-fit: cover; }
.servicio-figure.is-empty { display: none; }

/* --- proyectos (before/after style showcase) --- */
.proyecto-block { padding: 0; grid-column: span 12; }
.proyecto-figure { position: relative; min-height: 300px; }
.proyecto-figure img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0); transition: filter .3s var(--ease-out); }
.proyecto-figure:hover img { filter: grayscale(0) contrast(1.05); }
.proyecto-tag {
  position: absolute; top: 1rem; left: 1rem;
  background: var(--bg); border: 1px solid var(--ink);
  font-family: var(--mono); font-size: .74rem;
  padding: .4rem .7rem;
}
.proyecto-copy { padding: 1.6rem; display: flex; flex-direction: column; justify-content: center; gap: .6rem; }
.proyecto-copy h3 { font-size: 1.2rem; }
.proyecto-copy p { color: var(--ink-soft); font-size: .92rem; }

/* --- opiniones --- */
.opinion-card { padding: 2rem 1.6rem; }
.opinion-quote { font-size: 1.2rem; line-height: 1.5; max-width: 46ch; }
.opinion-meta { margin-top: 1.1rem; font-family: var(--mono); font-size: .82rem; color: var(--ink-soft); }
.opinion-links { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.4rem; }
.opinion-link {
  font-family: var(--mono); font-size: .82rem;
  border: 1px solid var(--ink); padding: .55rem .9rem;
  display: inline-flex; align-items: center; gap: .4rem;
  transition: background .18s var(--ease-out), color .18s var(--ease-out);
}
.opinion-link:hover { background: var(--ink); color: var(--cream); }

/* --- stats strip --- */
.stats-strip { padding: 2rem 1.6rem; }

/* --- faq --- */
.faq-list { max-width: 68ch; }

/* --- contacto --- */
.contacto-info { padding: 2.4rem 1.6rem; display: flex; flex-direction: column; gap: 1.2rem; }
.contacto-form-wrap { padding: 2.4rem 1.6rem; }
.contacto-line { display: flex; align-items: baseline; gap: .8rem; font-family: var(--mono); font-size: .95rem; }
.contacto-line a:hover { color: var(--accent); }

/* --- footer --- */
.footer { border-top: 1.5px solid var(--ink); background: var(--ink); color: var(--cream); }
.footer-grid { padding: 3rem 1.6rem 2rem; display: grid; gap: 2.2rem; }
.footer-brand { font-family: var(--mono); font-weight: 700; font-size: 1.1rem; }
.footer-logo-img { height: 40px; width: auto; display: block; filter: brightness(0) invert(1); }
.footer-tagline { color: #cfc6b7; font-size: .9rem; margin-top: .6rem; max-width: 34ch; }
.footer-col-title { font-family: var(--mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--accent); margin-bottom: .8rem; }
.footer-links, .footer-contact { display: grid; gap: .55rem; }
.footer-links a, .footer-contact a { font-family: var(--mono); font-size: .88rem; color: #e7e0d2; }
.footer-links a:hover, .footer-contact a:hover { color: var(--accent); }
.footer-social { display: flex; gap: .8rem; margin-top: 1.2rem; flex-wrap: wrap; }
.footer-social a {
  border: 1px solid #4a4238; padding: .5rem .8rem; font-family: var(--mono); font-size: .8rem;
  display: inline-flex; align-items: center; gap: .4rem;
}
.footer-social a:hover { border-color: var(--accent); color: var(--accent); }
.footer-copy {
  border-top: 1px solid #3a332a; padding: 1.4rem 1.6rem;
  font-family: var(--mono); font-size: .74rem; color: #a89c88;
  grid-column: 1 / -1;
}
.footer-legal-note { grid-column: 1 / -1; font-size: .74rem; color: #a89c88; font-family: var(--mono); }

/* --- legal pages --- */
.legal-hero { padding-block: 2.4rem; }
.legal-back { font-family: var(--mono); font-size: .82rem; display: inline-block; margin-bottom: 1rem; }
.legal-back:hover { color: var(--accent); }
.legal-article { max-width: 74ch; padding-block: 2.5rem; }
.legal-article h2 { font-size: 1.15rem; margin-top: 2rem; margin-bottom: .7rem; }
.legal-article p, .legal-article li { color: var(--ink-soft); line-height: 1.65; margin-bottom: .8rem; }
.legal-article ul { padding-left: 1.2rem; list-style: disc; }
.legal-updated { font-family: var(--mono); font-size: .8rem; color: var(--ink-soft); margin-bottom: 1.5rem; }
.legal-notice {
  border: 1.5px solid var(--accent); padding: 1rem 1.2rem;
  font-size: .9rem; color: var(--ink); margin-bottom: 2rem; background: var(--bg-panel);
}

/* --- credits page --- */
.credits-list { display: grid; gap: .8rem; max-width: 70ch; padding-block: 1.5rem; }
.credits-list li { border-bottom: 1px solid var(--line); padding-bottom: .8rem; font-size: .9rem; }
.credits-list a { color: var(--accent); }

/* =============================================================
   7. Effects
   ============================================================= */

/* reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.reveal.is-revealed { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

/* hover invert (brutalist signature) */
.invert-hover { transition: background .15s var(--ease-out), color .15s var(--ease-out); }
.invert-hover:hover { background: var(--ink); color: var(--cream); }

/* cursor coordinate follower — desktop only */
.cursor-coords {
  position: fixed; top: 0; left: 0; z-index: 9998;
  font-family: var(--mono); font-size: .72rem;
  color: var(--ink); background: var(--cream);
  border: 1px solid var(--ink);
  padding: .15rem .4rem;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-999px,-999px,0);
  transition: opacity .2s var(--ease-out);
}
.cursor-coords.is-ready { opacity: .85; }

/* grid lines helper */
.grid-lines-h { border-top: 1px solid var(--line); }

/* image hover invert filter (archetype signature, used sparingly) */
.img-invert-hover { transition: filter .25s var(--ease-out); }
.img-invert-hover:hover { filter: invert(1) contrast(1.05); }

/* --- chat widget (brutalist) --- */
.chat-widget { position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 300; }
.chat-fab {
  width: 58px; height: 58px;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--cream);
  border: 1.5px solid var(--ink);
  transition: background .18s var(--ease-out), color .18s var(--ease-out);
}
.chat-fab:hover { background: var(--accent); border-color: var(--accent); }
.chat-fab-icon-close { display: none; }
.chat-widget.is-open .chat-fab-icon-open { display: none; }
.chat-widget.is-open .chat-fab-icon-close { display: block; }

.chat-panel {
  position: absolute; right: 0; bottom: 72px;
  width: min(360px, 88vw);
  max-height: 70vh;
  background: var(--bg);
  border: 1.5px solid var(--ink);
  display: flex; flex-direction: column;
}
.chat-panel[hidden] { display: none; }
.chat-panel-head {
  display: flex; align-items: center; gap: .7rem;
  padding: 1rem 1.1rem; border-bottom: 1.5px solid var(--ink);
  background: var(--ink); color: var(--cream);
}
.chat-avatar {
  width: 34px; height: 34px; flex: none;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--accent); font-size: 1rem;
}
.chat-panel-head strong { display: block; font-family: var(--mono); font-size: .95rem; }
.chat-panel-head span { font-size: .74rem; color: #cfc6b7; font-family: var(--sans); }
.chat-messages { padding: 1rem 1.1rem; overflow-y: auto; display: grid; gap: .8rem; align-content: start; flex: 1 1 auto; }
.chat-msg { max-width: 90%; padding: .65rem .85rem; font-size: .86rem; line-height: 1.5; font-family: var(--sans); border: 1px solid var(--line); }
.chat-msg-bot { background: var(--bg-panel); justify-self: start; }
.chat-msg-user { background: var(--accent); color: var(--cream); justify-self: end; border-color: var(--accent); font-weight: 500; }
.chat-msg-error { background: #fbe4dd; color: #7a2c14; justify-self: start; border-color: #c0492a; }
.chat-typing { display: inline-flex; gap: 4px; padding: .3rem .1rem; }
.chat-typing span { width: 6px; height: 6px; background: var(--ink-soft); animation: chatTyping 1.1s infinite ease-in-out; }
.chat-typing span:nth-child(2) { animation-delay: .15s; }
.chat-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes chatTyping { 0%,60%,100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.chat-suggestions { display: grid; gap: .5rem; }
.chat-suggestion {
  text-align: left; font-family: var(--sans); font-size: .82rem;
  border: 1px solid var(--line); padding: .55rem .75rem;
  transition: border-color .18s var(--ease-out), color .18s var(--ease-out);
}
.chat-suggestion:hover { border-color: var(--accent); color: var(--accent); }
.chat-form { display: flex; gap: .5rem; padding: .9rem 1rem; border-top: 1.5px solid var(--ink); }
.chat-form input {
  flex: 1; font-family: var(--sans); font-size: .88rem;
  border: 1.5px solid var(--ink); padding: .6rem .8rem; background: var(--bg);
}
.chat-form input:focus { border-color: var(--accent); outline: none; }
.chat-form button {
  width: 40px; height: 40px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--cream); border: 1.5px solid var(--ink);
}
.chat-form button:hover { background: var(--accent); border-color: var(--accent); }

/* --- whatsapp fab --- */
.whatsapp-fab {
  position: fixed; left: 1.1rem; bottom: 1.1rem; z-index: 290;
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--cream);
  border: 1.5px solid var(--ink);
  transition: transform .18s var(--ease-out), background .18s var(--ease-out);
}
.whatsapp-fab:hover { transform: translate(-2px,-2px); background: var(--ink); }

/* =============================================================
   8. Responsive (mobile-first)
   ============================================================= */
@media (min-width: 540px) {
  .btn-row { flex-wrap: nowrap; }
}

@media (min-width: 720px) {
  .col-span-6 { grid-column: span 6; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-eyebrow { display: block; }
}

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-burger { display: none; }

  .hero-inner { grid-template-columns: repeat(12, 1fr); min-height: calc(100svh - var(--nav-h)); }
  .col-span-7 { grid-column: span 7; }
  .col-span-5 { grid-column: span 5; }
  .col-span-4 { grid-column: span 4; }
  .col-span-3 { grid-column: span 3; }
  .col-span-8 { grid-column: span 8; }

  .servicio-block { grid-column: span 12; flex-direction: row; align-items: center; gap: 2.4rem; }
  .servicio-block-text { flex: 1 1 50%; }
  .servicio-figure { flex: 1 1 50%; grid-column: unset; min-height: 260px; }
  .servicio-figure.is-empty { display: none; }
  .servicio-block:nth-child(even) { flex-direction: row-reverse; }

  .proyecto-grid { grid-template-columns: repeat(2, 1fr); }
  .proyecto-block { grid-column: span 6; display: grid; grid-template-rows: 300px auto; }

  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .cursor-coords { display: block; }
}

@media (min-width: 1280px) {
  .container { padding-inline: 2rem; }
}

@media (max-width: 959px) {
  .cursor-coords { display: none; }
}

/* =============================================================
   9. Reduced-motion (only intrusive effects)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .badge-dot { animation: none; }
  /* Do NOT disable: reveal fades, hover invert, chat typing dots, counters */
}
