@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-5.2.5-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-5.2.5-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-5.2.5-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-5.2.5-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Outfit;
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/outfit-5.2.5-latin-300-normal.woff2") format("woff2");
}
@font-face {
  font-family: Outfit;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/outfit-5.2.5-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: Outfit;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/outfit-5.2.5-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: Outfit;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/outfit-5.2.5-latin-600-normal.woff2") format("woff2");
}


:root {
  --bg: #000000;
  --bg-elevated: #0a0a0a;
  --bg-subtle: #111111;
  --fg: #ffffff;
  --fg-muted: #b4b4b4;
  --fg-subtle: #7a7a7a;
  --line: color-mix(in oklab, var(--fg) 14%, transparent);
  --line-strong: color-mix(in oklab, var(--fg) 28%, transparent);
  --accent: #ffffff;
  --accent-fg: #000000;
  --gold: #c09132;
  --warm: #ffffff;
  --danger: #c45c4a;
  --ok: #7d9a72;
  --font-display: Outfit, "Segoe UI", system-ui, sans-serif;
  --font-body: Outfit, "Segoe UI", system-ui, sans-serif;
  --radius-xs: 0px;
  --radius-sm: 2px;
  --radius-md: 2px;
  --radius-lg: 2px;
  --radius-xl: 2px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  --text-2xl: clamp(2rem, 1.2rem + 3vw, 3.4rem);
  --text-3xl: clamp(2.4rem, 1.2rem + 5vw, 4.6rem);
  --leading-tight: 1.05;
  --leading-snug: 1.22;
  --leading-normal: 1.55;
  --tracking-display: 0.02em;
  --wrap: 1240px;
  --header-h: 96px;
  --motion-quick: 150ms;
  --motion-fast: 250ms;
  --motion-slow: 400ms;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 24px 60px color-mix(in oklab, #000 55%, transparent);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--bg);
  color-scheme: dark;
  overflow-x: clip;
}

html, body { min-height: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-wrap: pretty;
  overflow-x: clip;
}
body.nav-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; }
button:not(:disabled), [role="button"]:not(:disabled) { cursor: pointer; }
a, button { -webkit-tap-highlight-color: color-mix(in oklab, var(--gold) 22%, transparent); touch-action: manipulation; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-display);
  text-wrap: balance;
  margin: 0;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

.skip {
  position: absolute;
  left: 12px;
  top: 12px;
  transform: translateY(-160%);
  background: var(--accent);
  color: var(--accent-fg);
  padding: 8px 12px;
  z-index: 80;
}
.skip:focus { transform: none; }

.wrap {
  width: min(var(--wrap), calc(100% - 48px));
  margin-inline: auto;
}
.wrap-narrow { width: min(720px, calc(100% - 48px)); margin-inline: auto; }

.kicker,
.panel-kicker {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg);
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 70;
  min-height: var(--header-h);
  background: transparent;
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, color-mix(in oklab, var(--gold) 70%, transparent) 50%, transparent 100%);
  opacity: 0.55;
  pointer-events: none;
  animation: gold-scan 7s linear infinite;
}
body.home .header-inner > .brand {
  visibility: hidden;
  pointer-events: none;
}
.header-inner {
  position: relative;
  z-index: 76;
  width: 100%;
  margin: 0;
  min-height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
}
.brand {
  justify-self: start;
  display: flex;
  align-items: center;
  line-height: 0;
}
.brand img {
  height: 52px;
  width: auto;
  max-width: min(168px, 62vw);
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 2px 10px #000) drop-shadow(0 0 2px #000);
}
.brand-foot img { height: 40px; max-width: 130px; }

.nav-desktop {
  display: none;
  gap: 28px;
  justify-self: center;
  overflow: visible;
}
.nav-desktop a {
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg);
  opacity: 0.88;
}
.nav-desktop a:hover,
.nav-desktop a[aria-current="page"] { opacity: 1; }

.nav-item { position: relative; display: flex; align-items: center; }
.nav-item > a { display: inline-flex; align-items: center; gap: 6px; }
.nav-caret { width: 10px; height: 7px; opacity: 0.7; }
.nav-sub {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  padding: 10px 0;
  background: #000;
  border: 1px solid var(--line);
  z-index: 80;
}
.nav-item:hover .nav-sub,
.nav-item:focus-within .nav-sub { display: grid; }
.nav-sub a {
  padding: 12px 18px;
  min-height: 44px;
  display: flex;
  align-items: center;
  letter-spacing: 0.16em;
  opacity: 1;
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-contact { display: none; }

.nav-toggle {
  position: relative;
  width: auto;
  min-width: 48px;
  height: 48px;
  padding: 0 14px 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--fg);
  z-index: 75;
  border: 1px solid color-mix(in oklab, var(--gold) 70%, var(--fg));
  overflow: visible;
  transition: background var(--motion-quick) var(--ease), color var(--motion-quick) var(--ease), border-color var(--motion-quick) var(--ease), scale var(--motion-quick) ease-out;
}
.nav-toggle::after {
  content: "Menú";
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}
.nav-toggle:hover {
  background: var(--fg);
  color: var(--accent-fg);
  border-color: var(--fg);
}
.nav-toggle:active { scale: 0.96; }
.nav-toggle-ring {
  position: absolute;
  inset: -7px;
  border: 1px solid var(--gold);
  pointer-events: none;
  animation: menu-invite 0.9s ease-in-out infinite;
}
@keyframes menu-invite {
  0%, 100% { transform: scale(1); opacity: 0.92; }
  12% { transform: scale(1.2); opacity: 0.28; }
  24% { transform: scale(1); opacity: 0.88; }
  36% { transform: scale(1.14); opacity: 0.32; }
  48% { transform: scale(1); opacity: 0.86; }
}
.nav-toggle-bars {
  width: 22px;
  height: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}
.nav-toggle-bars span {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  transform-origin: center;
  transition: transform var(--motion-fast) var(--ease), opacity var(--motion-fast) var(--ease), width var(--motion-fast) var(--ease);
  animation: menu-bar-idle 1.8s ease-in-out infinite;
}
.nav-toggle-bars span:nth-child(2) { animation-delay: 0.12s; }
.nav-toggle-bars span:nth-child(3) {
  width: 62%;
  margin-left: auto;
  animation-delay: 0.24s;
}
@keyframes menu-bar-idle {
  0%, 100% { transform: scaleX(1); }
  50% { transform: scaleX(0.72); }
}
.nav-toggle:hover .nav-toggle-bars span,
body.nav-open .nav-toggle-bars span {
  animation: none;
  width: 100%;
  margin-left: 0;
}
body.nav-open .nav-toggle-ring {
  animation: none;
  opacity: 0;
}
body.nav-open .nav-toggle {
  background: var(--fg);
  color: var(--accent-fg);
  border-color: var(--fg);
}
body.nav-open .nav-toggle-bars span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
body.nav-open .nav-toggle-bars span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
body.nav-open .nav-toggle-bars span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-mobile {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 65;
  padding: calc(var(--header-h) + 8px) 28px 40px;
  overflow: auto;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--motion-fast) var(--ease), visibility var(--motion-fast) var(--ease);
}
.nav-mobile.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.nav-mobile a {
  text-decoration: none;
  padding: 14px 0;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  color: var(--fg);
  font-size: clamp(1.05rem, 2.4vw, 1.45rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
}
.nav-mobile-sub { display: grid; justify-items: end; padding: 0; }
.nav-mobile-sub a {
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  color: var(--fg-muted);
  min-height: 40px;
  padding: 8px 0;
}
.nav-mobile-contact {
  display: grid;
  gap: 10px;
  padding-top: 32px;
  margin-top: auto;
  width: min(420px, 100%);
}
.nav-mobile-contact .btn { width: 100%; }

.btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 50px;
  padding: 10px 22px;
  border-radius: 0;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 2px solid var(--fg);
  background: transparent;
  color: var(--fg);
  line-height: 1.15;
  text-align: center;
  white-space: normal;
  transition: background var(--motion-quick) var(--ease), color var(--motion-quick) var(--ease);
}
.btn-pre {
  display: block;
  font-size: calc(1em - 1pt);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: none;
  opacity: 1;
  line-height: 1.2;
}
.btn:active { transform: none; }
.btn-primary,
.btn-ghost,
.btn-lg { }
.btn-primary {
  background: var(--gold);
  color: #14110c;
  border-color: var(--gold);
}
.btn-primary:hover { background: transparent; color: var(--gold); }
.btn-ghost {
  background: var(--gold-2, #d4a34a);
  color: #14110c;
  border-color: var(--gold-2, #d4a34a);
}
.btn-ghost:hover,
.btn:hover { background: transparent; color: var(--gold); border-color: var(--gold); }
.btn-lg { min-height: 58px; padding: 10px 32px; }
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.contact-actions .btn:nth-child(1) {
  background: #c09132;
  border-color: #c09132;
  color: #14110c;
}
.contact-actions .btn:nth-child(2) {
  background: #d4a34a;
  border-color: #d4a34a;
  color: #14110c;
}
.contact-actions .btn:nth-child(3) {
  background: #a67c28;
  border-color: #a67c28;
  color: #14110c;
}
.contact-actions .btn:hover {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.home .work-item:nth-child(1) .btn {
  background: #c9a045;
  border-color: #c9a045;
  color: #14110c;
}
.home .work-item:nth-child(2) .btn {
  background: #b8892e;
  border-color: #b8892e;
  color: #14110c;
}
.home .work-item:nth-child(3) .btn {
  background: #d8b056;
  border-color: #d8b056;
  color: #14110c;
}
.home .work-item:nth-child(4) .btn:nth-child(1) {
  background: #c4a05a;
  border-color: #c4a05a;
  color: #14110c;
}
.home .work-item:nth-child(4) .btn:nth-child(2) {
  background: #e0b44a;
  border-color: #e0b44a;
  color: #14110c;
}
.home .work-item:nth-child(4) .btn:nth-child(3) {
  background: #8f6d24;
  border-color: #8f6d24;
  color: #14110c;
}
.home .work-item .btn:hover {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn-linkedin,
.contact-actions .btn-linkedin,
.contact-actions.about-social .btn {
  background: #0a66c2;
  border-color: #0a66c2;
  color: #fff;
}
.btn-linkedin:hover,
.contact-actions .btn-linkedin:hover,
.contact-actions.about-social .btn:hover,
.home .work-item .btn-linkedin:hover {
  background: transparent;
  color: #7eb8f0;
  border-color: #7eb8f0;
}
.about-social {
  margin-top: 18px;
}
.home-about .btn-linkedin {
  min-width: min(21.6em, 100%);
  width: min(21.6em, 100%);
  padding-inline: 3.4em;
  box-sizing: border-box;
}
.page-ayuntamientos .contact-actions {
  gap: 22px 28px;
}
.page-ayuntamientos .panel-copy .contact-actions + .contact-actions {
  margin-top: 22px;
}
.page-ayuntamientos .panel-copy .contact-actions:first-of-type .btn,
.page-ayuntamientos .panel-copy .contact-actions:first-of-type .btn:nth-child(1),
.page-ayuntamientos .panel-copy .contact-actions:first-of-type .btn:nth-child(2),
.page-ayuntamientos .panel-copy .contact-actions:first-of-type .btn:nth-child(3),
.page-ayuntamientos .btn-ayto-section,
.page-ayuntamientos a.btn.btn-ayto-section {
  background: #e8e2d4;
  border-color: #e8e2d4;
  color: #14110c;
}
.page-ayuntamientos .panel-copy .contact-actions:first-of-type .btn:hover,
.page-ayuntamientos .btn-ayto-section:hover,
.page-ayuntamientos a.btn.btn-ayto-section:hover {
  background: transparent;
  color: #e8e2d4;
  border-color: #e8e2d4;
}
.page-ayuntamientos .btn-linkedin {
  min-width: min(21.6em, 100%);
  width: min(21.6em, 100%);
  padding-inline: 3.4em;
  box-sizing: border-box;
}
.panel-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 22px;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.panel-links a { color: var(--fg); opacity: 0.8; }
.panel-links a:hover { opacity: 1; }

.panel {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
}
.panel-page { min-height: 88svh; }
.panel-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.panel-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: strip-ken 28s ease-in-out infinite alternate;
}
.panel-media::before {
  content: "";
  position: absolute;
  inset: -10% 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(100deg, transparent 30%, color-mix(in oklab, var(--gold) 16%, transparent) 50%, transparent 70%);
  animation: gold-sweep 8s ease-in-out infinite;
}
.panel-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, color-mix(in oklab, #000 58%, transparent) 0%, transparent 30%, color-mix(in oklab, #000 78%, transparent) 100%);
}
.panel-copy {
  width: 100%;
  margin: 0;
  padding: calc(var(--header-h) + 16px) 20px 88px;
}
.panel-copy h1,
.panel-copy h2 {
  font-size: var(--text-3xl);
  font-weight: 500;
  max-width: 16ch;
  margin: 0 0 28px;
}
.panel-copy .panel-kicker,
.panel-copy h1,
.panel-copy .panel-lead,
.panel-copy .contact-actions {
  animation: home-fade-up 700ms var(--ease) both;
}
.panel-copy h1 { animation-delay: 90ms; }
.panel-copy .panel-lead { animation-delay: 170ms; }
.panel-copy .contact-actions { animation-delay: 240ms; }

.feature-list article {
  transition: transform var(--motion-fast) var(--ease);
}
.feature-list article:hover {
  transform: translateX(8px);
}
.example {
  transition: transform var(--motion-fast) var(--ease), border-color var(--motion-fast) var(--ease);
}
.example:hover {
  transform: translateY(-4px);
}

html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
html.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

.split img {
  animation: strip-ken 26s ease-in-out infinite alternate;
}

.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in oklab, var(--gold) 55%, transparent), transparent);
  animation: gold-scan 9s linear infinite reverse;
  pointer-events: none;
}

.panel-home .panel-copy h1,
.panel-home .panel-copy h2 {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  max-width: 12ch;
}
.panel-lead {
  max-width: 38ch;
  color: #fff;
  margin: -12px 0 28px;
  font-weight: 300;
}
.panel-scroll {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--fg);
  z-index: 2;
}
.panel-scroll svg {
  width: 22px;
  height: 12px;
  animation: panel-chevron 1.8s var(--ease) infinite;
}
@keyframes panel-chevron {
  0%, 100% { transform: translateY(0); opacity: 0.55; }
  50% { transform: translateY(7px); opacity: 1; }
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, color-mix(in oklab, #000 18%, transparent) 0%, transparent 36%, color-mix(in oklab, #000 74%, transparent) 100%);
}
.hero-inner {
  width: min(920px, calc(100% - 48px));
  margin: 0 auto 72px;
  padding-top: var(--header-h);
}
.hero h1 {
  font-size: var(--text-3xl);
  max-width: 14ch;
  margin: 12px 0 28px;
}
.hero-lead {
  max-width: 38ch;
  color: var(--fg-muted);
  font-weight: 300;
  margin-bottom: 28px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--fg-muted);
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
}
.hero-meta strong { color: var(--fg); font-weight: 500; display: block; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.72rem; }

.ticker { display: none; }

.section { padding: 88px 0; }
.section-head {
  display: grid;
  gap: 14px;
  margin-bottom: 40px;
  max-width: 38rem;
}
.section-head h2 { font-size: var(--text-2xl); }
.lede { color: var(--fg-muted); font-weight: 300; }

.family-grid { display: grid; gap: 16px; }
.family-card {
  position: relative;
  display: grid;
  min-height: 340px;
  overflow: hidden;
  text-decoration: none;
  isolation: isolate;
  border: 1px solid var(--line);
}
.family-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.family-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent, color-mix(in oklab, #000 82%, transparent) 70%);
}
.family-card-body { align-self: end; padding: 28px; display: grid; gap: 8px; }
.family-card .num {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.family-card h3 { font-size: 1.8rem; }
.family-card p { color: var(--fg-muted); font-size: 0.95rem; max-width: 36ch; }
.family-card .go {
  margin-top: 10px;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.size-grid, .who-grid, .papers-grid, .year-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.size-card, .who-card, .paper, .year-card {
  background: var(--bg);
  padding: 24px;
  display: grid;
  gap: 8px;
}
.who-card .tag, .size-card .tag {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.who-card h3, .paper h3, .year-card h3, .size-card h3 { font-size: 1.35rem; }
.who-card p, .paper p, .year-card p, .size-card p { color: var(--fg-muted); font-size: 0.95rem; }

.process { display: grid; }
.process li {
  list-style: none;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.process li:first-child { padding-top: 0; }
.process .n { font-size: 1.2rem; letter-spacing: 0.12em; padding-top: 4px; }
.process h3 { font-size: 1.35rem; margin-bottom: 6px; }
.process p { color: var(--fg-muted); }

.split { display: grid; gap: 28px; }
.split img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}
.split-copy { display: grid; gap: 14px; align-content: start; }
.split-copy h2 { font-size: var(--text-2xl); }

.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-weight: 500;
  padding: 14px 0;
  letter-spacing: 0.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 1px solid var(--fg);
  border-bottom: 1px solid var(--fg);
  transform: rotate(45deg);
  flex: 0 0 auto;
}
.faq details[open] summary::after { transform: rotate(225deg); }
.faq details p { color: var(--fg-muted); padding: 0 0 18px; max-width: 60ch; }

.cta-band { background: var(--bg); border-block: 1px solid var(--line); }
.cta-band .wrap { display: grid; gap: 18px; }
.cta-band h2 { font-size: var(--text-2xl); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.site-footer {
  position: relative;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  color: var(--fg-muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: center;
  margin-bottom: 18px;
}
.site-footer a { color: var(--fg-muted); }
.site-footer a:hover { color: var(--fg); }
.footer-brand .wordmark { color: var(--fg); margin-right: 12px; }
.legal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.7rem;
}

.wa-float {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 16px 0 12px;
  border: 2px solid var(--fg);
  background: #000;
  color: var(--fg);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  animation: wa-pulse 2.4s ease-in-out infinite;
}
.wa-float:hover { background: var(--fg); color: var(--accent-fg); }
.wa-float svg { width: 18px; height: 18px; }
body.nav-open .wa-float { visibility: hidden; }

.page-hero {
  padding: 120px 0 48px;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: var(--text-3xl); max-width: 16ch; margin: 12px 0 16px; }
.page-hero .lede { max-width: 42ch; }

.feature-list { display: grid; gap: 18px; }
.feature-list article { padding: 0 0 18px; border-bottom: 1px solid var(--line); }
.feature-list h3 { font-size: 1.35rem; margin-bottom: 6px; }
.feature-list p { color: var(--fg-muted); }

.examples { display: grid; gap: 16px; }
.example {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  padding: 22px;
}
.example h3 { font-size: 1.25rem; margin-bottom: 12px; }
.example ul { list-style: none; display: grid; gap: 8px; color: var(--fg-muted); }
.example li { padding-left: 18px; position: relative; }
.example li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 1px;
  background: var(--fg);
}

.media-full {
  width: 100%;
  height: min(52vw, 420px);
  object-fit: cover;
  display: block;
}

.subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  width: min(var(--wrap), calc(100% - 48px));
  margin: 0 auto;
  padding: calc(var(--header-h) + 8px) 0 8px;
  border-bottom: 1px solid var(--line);
}
.subnav a {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.subnav a:hover,
.subnav a[aria-current="page"] { color: var(--fg); }
.panel + .subnav { padding-top: 12px; }

.legal { padding: 120px 0 88px; color: var(--fg-muted); }
.legal h1 { color: var(--fg); font-size: var(--text-2xl); margin-bottom: 8px; }
.legal h2 { color: var(--fg); font-size: 1.25rem; margin: 28px 0 8px; }
.legal p, .legal li { margin-bottom: 10px; }
.legal ul { padding-left: 18px; }
.legal .updated { font-size: 0.82rem; color: var(--fg-subtle); }

.panel-copy .panel-kicker,
.panel-copy h1,
.panel-copy h2,
.panel-copy .panel-lead,
.home-hero .kicker,
.home-hero h1,
.home-hero .home-sub,
.home-work .kicker,
.home-work h2,
.home-work .work-item .num,
.home-work .work-item h3,
.home-work .work-item p,
.home-about .kicker,
.home-about h2,
.home-about .about-copy p,
.family-card-body .num,
.family-card-body h3,
.family-card-body p,
.family-card-body .go {
  -webkit-text-stroke: 1.5px #000;
  paint-order: stroke fill;
  text-shadow:
    1px 0 0 #000,
    -1px 0 0 #000,
    0 1px 0 #000,
    0 -1px 0 #000,
    1px 1px 0 #000,
    -1px 1px 0 #000,
    1px -1px 0 #000,
    -1px -1px 0 #000;
}
.panel-copy .btn,
.panel-copy .btn-pre,
.home-hero .btn,
.home-hero .btn-pre,
.home-work .btn,
.home-work .btn-pre,
.home-about .btn,
.home-about .btn-pre,
.contact-actions .btn,
.contact-actions .btn-pre,
.family-card .btn,
.family-card .btn-pre {
  -webkit-text-stroke: 0;
  paint-order: normal;
  text-shadow: none;
}

body.home .site-header {
  background: #000;
  border-bottom: 1px solid var(--line);
}
.home {
  padding-top: var(--header-h);
}
.home-hero {
  position: relative;
  overflow: hidden;
  padding: 48px 0 64px;
  min-height: 70svh;
  display: flex;
  align-items: center;
}
.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.5) 52%, #000 100%);
}
.home-hero .wrap {
  position: relative;
  z-index: 1;
}
.home-logo {
  margin: 0 0 28px;
  line-height: 0;
}
.home-logo img {
  width: min(88vw, 480px);
  height: auto;
  filter: drop-shadow(0 10px 36px color-mix(in oklab, var(--gold) 28%, transparent));
  animation: hero-float 8s ease-in-out 0.7s infinite;
}
.home-hero .home-logo,
.home-hero .kicker,
.home-hero h1,
.home-hero .home-sub,
.home-hero .contact-actions {
  animation: home-fade-up 700ms var(--ease) both;
}
.home-hero .kicker { animation-delay: 80ms; }
.home-hero h1 { animation-delay: 90ms; }
.home-hero .home-sub { animation-delay: 170ms; }
.home-hero .contact-actions { animation-delay: 240ms; }
.hero-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  display: grid;
  place-items: end center;
}
.hero-visual img {
  width: min(92vw, 560px);
  height: auto;
  opacity: calc(0.28 + var(--p, 0.2) * 0.5);
  mix-blend-mode: lighten;
  transform-origin: 50% 80%;
  will-change: transform, opacity;
  transform: translate3d(calc(var(--p, 0.15) * 20px), calc(var(--p, 0.15) * -64px), 0) scale(calc(0.94 + var(--p, 0) * 0.1));
}
.hero-glow {
  position: absolute;
  right: -8%;
  top: 18%;
  width: min(70vw, 520px);
  height: min(70vw, 520px);
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in oklab, var(--gold) 28%, transparent) 0%, transparent 68%);
  filter: blur(8px);
  animation: hero-glow 5.4s ease-in-out infinite;
}
.home-hero h1 {
  font-size: var(--text-3xl);
  font-weight: 500;
  letter-spacing: 0.01em;
  max-width: 22ch;
  margin: 0 0 16px;
  line-height: var(--leading-tight);
}
.home-hero .home-sub {
  margin: 0 0 32px;
  font-size: var(--text-lg);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.home-work {
  position: relative;
  overflow: hidden;
  padding: 24px 0 72px;
}
.work-visual {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(78%, 720px);
  pointer-events: none;
  opacity: 0.22;
  mix-blend-mode: lighten;
  z-index: 0;
}
.work-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  animation: work-drift 18s ease-in-out infinite alternate;
}
.home-work .wrap { position: relative; z-index: 1; }
.scroll-prop {
  pointer-events: none;
  user-select: none;
}
.scroll-prop-speaker {
  position: absolute;
  right: -8%;
  top: 4%;
  width: min(58vw, 400px);
  z-index: 0;
}
.scroll-prop-speaker img {
  width: 100%;
  height: auto;
  mix-blend-mode: lighten;
  will-change: transform, opacity;
  opacity: calc(0.14 + var(--p, 0) * 0.55);
  transform: translate3d(calc((0.5 - var(--p, 0)) * 80px), calc((0.35 - var(--p, 0)) * 100px), 0) rotate(calc((var(--p, 0) - 0.42) * 12deg)) scale(calc(0.86 + var(--p, 0) * 0.18));
}
.work-list {
  display: grid;
  border-top: 1px solid var(--line);
}
.work-item {
  display: grid;
  justify-items: start;
  gap: 12px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  transition: transform var(--motion-fast) var(--ease);
}
.home .work-item:hover {
  transform: translateX(10px);
}
.work-item .num {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-subtle);
}
.work-item h3 {
  margin: 0;
  font-size: var(--text-xl);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.work-item p {
  margin: 0;
  max-width: 46ch;
  color: var(--fg-muted);
}
.brand-strip {
  position: relative;
  height: 38vw;
  min-height: 140px;
  max-height: 260px;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.brand-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  animation: strip-ken 22s ease-in-out infinite alternate;
}
.brand-strip::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #000 0%, transparent 38%, transparent 68%, #000 100%),
    linear-gradient(180deg, #000 0%, transparent 28%, transparent 72%, #000 100%);
  pointer-events: none;
}
.brand-strip-glow {
  position: absolute;
  inset: 18% 30% 22% 30%;
  background: radial-gradient(ellipse, color-mix(in oklab, var(--gold) 18%, transparent), transparent 70%);
  pointer-events: none;
  animation: hero-glow 6s ease-in-out infinite;
}
.home-about {
  position: relative;
  overflow: hidden;
  padding: 64px 0 96px;
  border-top: 1px solid var(--line);
}
.home-about .wrap {
  position: relative;
  z-index: 1;
}
.scroll-prop-light {
  position: absolute;
  right: 0;
  top: 0;
  width: min(78vw, 580px);
  height: 100%;
  z-index: 0;
}
.scroll-prop-light img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  mix-blend-mode: lighten;
  will-change: transform, opacity;
  opacity: calc(0.08 + var(--p, 0) * 0.45);
  transform: translate3d(calc((1 - var(--p, 0)) * -56px), calc((0.5 - var(--p, 0)) * 36px), 0) scale(calc(1.02 + var(--p, 0) * 0.1));
}
.about-intro {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 8px;
}
.about-portrait-sm,
.split img.mario-portrait {
  width: 72px;
  height: 72px;
  object-fit: cover;
  object-position: center 20%;
  filter: grayscale(1);
  flex: 0 0 auto;
  opacity: 0.9;
}
.home-about h2 {
  text-transform: none;
  letter-spacing: 0.02em;
  max-width: 22ch;
}
.about-name {
  font-size: 0.52em;
  font-weight: 400;
  letter-spacing: 0.06em;
}
.about-copy {
  display: grid;
  gap: 16px;
  max-width: 52ch;
  margin: 0 0 32px;
  color: var(--fg-muted);
}
.about-copy p { margin: 0; }
#conoceme,
#ayuntamientos,
#servicios {
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  top: auto;
  z-index: 90;
  width: 100%;
  max-width: none;
  background: #000;
  border: 0;
  border-top: 1px solid var(--line-strong);
  padding: 12px 16px max(12px, env(safe-area-inset-bottom));
  display: none;
  gap: 10px;
}
.cookie-banner.is-on { display: grid; }
.cookie-banner p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--fg);
  max-width: 72ch;
}
.cookie-banner a { text-decoration: underline; }
.cookie-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  max-width: 560px;
}
.cookie-actions .btn,
.cookie-panel .btn {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 8px 10px;
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
}
.cookie-actions .btn:hover,
.cookie-panel .btn:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
}
.cookie-panel {
  display: grid;
  gap: 8px;
  max-width: 560px;
}
.cookie-panel[hidden] { display: none; }
.cookie-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--fg);
  font-size: 0.82rem;
}
.cookie-opt input {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
  flex: 0 0 auto;
}
body.cookie-open .wa-float { visibility: hidden; }
.cookie-table-wrap { overflow-x: auto; margin: 16px 0; }
.cookie-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.cookie-table th,
.cookie-table td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.cookie-table th { color: var(--fg); font-weight: 500; }
.cookie-table code { font-size: 0.85em; }

.notice {
  border: 1px solid var(--line);
  padding: 14px 16px;
  font-size: 0.88rem;
  color: var(--fg-muted);
}

@media (max-width: 719px) {
  :root {
    --text-xs: 1rem;
    --text-sm: 1.1rem;
    --text-base: 1.2rem;
    --text-lg: 1.32rem;
    --text-xl: clamp(1.9rem, 7vw, 2.35rem);
    --text-2xl: clamp(2.2rem, 8vw, 2.85rem);
    --text-3xl: clamp(2.4rem, 8.5vw, 3.05rem);
    --leading-tight: 1.18;
    --leading-snug: 1.32;
    --leading-normal: 1.65;
  }
  body {
    font-size: 1.2rem;
    line-height: 1.65;
  }
  .wrap,
  .wrap-narrow {
    width: calc(100% - 32px);
  }
  .header-inner {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
    gap: 10px;
  }
  .nav-toggle {
    overflow: hidden;
    max-width: min(52vw, 180px);
    min-height: 48px;
    padding: 0 12px 0 10px;
    gap: 8px;
  }
  .nav-toggle::after {
    font-size: 0.95rem;
    letter-spacing: 0.12em;
  }
  .nav-toggle-ring { inset: -3px; }
  .brand img { height: 44px; max-width: min(140px, 46vw); }
  .nav-mobile {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
    align-items: stretch;
  }
  .nav-mobile a {
    font-size: 1.35rem;
    min-height: 56px;
    justify-content: center;
    text-align: center;
  }
  .nav-mobile-sub a { font-size: 1.1rem; }
  .nav-mobile-contact {
    width: 100%;
  }
  .kicker,
  .panel-kicker {
    font-size: 1rem;
    letter-spacing: 0.16em;
    margin-bottom: 14px;
  }
  .lede,
  .panel-lead,
  .about-copy p,
  .work-item p,
  .feature-list p,
  .process p,
  .faq details p,
  .legal p,
  .legal li {
    font-size: 1.2rem;
    line-height: 1.65;
  }
  .panel-lead {
    max-width: none;
    font-size: 1.22rem;
  }
  .panel-copy .panel-kicker,
  .panel-copy h1,
  .panel-copy h2,
  .panel-copy .panel-lead,
  .home-hero .kicker,
  .home-hero h1,
  .home-hero .home-sub,
  .home-work .kicker,
  .home-work h2,
  .home-work .work-item .num,
  .home-work .work-item h3,
  .home-work .work-item p,
  .home-about .kicker,
  .home-about h2,
  .home-about .about-copy p,
  .family-card-body .num,
  .family-card-body h3,
  .family-card-body p,
  .family-card-body .go {
    -webkit-text-stroke: 2.5px #000;
    paint-order: stroke fill;
    text-shadow:
      2px 0 0 #000,
      -2px 0 0 #000,
      0 2px 0 #000,
      0 -2px 0 #000,
      2px 2px 0 #000,
      -2px 2px 0 #000,
      2px -2px 0 #000,
      -2px -2px 0 #000;
  }
  .panel-copy .btn,
  .panel-copy .btn-pre,
  .home-hero .btn,
  .home-hero .btn-pre,
  .home-work .btn,
  .home-work .btn-pre,
  .home-about .btn,
  .home-about .btn-pre,
  .contact-actions .btn,
  .contact-actions .btn-pre {
    -webkit-text-stroke: 0;
    paint-order: normal;
    text-shadow: none;
  }
  .home-hero h1,
  .panel-copy h1,
  .panel-copy h2 {
    max-width: none;
    line-height: 1.2;
  }
  .home-hero .home-sub {
    font-size: 1.15rem;
    letter-spacing: 0.1em;
  }
  .feature-list h3,
  .example h3,
  .process h3,
  .who-card h3,
  .paper h3 {
    font-size: 1.45rem;
  }
  .faq summary {
    font-size: 1.2rem;
    min-height: 64px;
    line-height: 1.4;
  }
  .example li {
    font-size: 1.12rem;
    line-height: 1.5;
  }
  .work-item .num,
  .subnav a {
    font-size: 0.95rem;
  }
  .site-footer,
  .legal-row,
  .legal .updated {
    font-size: 1rem;
    letter-spacing: 0.04em;
  }
  .home-hero {
    min-height: 0;
    min-height: 62svh;
    min-height: 62dvh;
    padding: 24px 0 40px;
  }
  .home-logo { margin-bottom: 18px; }
  .home-logo img { width: min(76vw, 260px); }
  .hero-visual { place-items: end center; }
  .hero-visual img {
    width: min(68vw, 260px);
    opacity: calc(0.16 + var(--p, 0.2) * 0.28);
    transform: translate3d(0, calc(var(--p, 0.15) * -28px), 0) scale(calc(0.96 + var(--p, 0) * 0.05));
  }
  .hero-glow {
    width: 180px;
    height: 180px;
    filter: blur(3px);
    right: 4%;
    top: auto;
    bottom: 8%;
  }
  .scroll-prop-speaker {
    width: min(42vw, 170px);
    right: -2%;
    top: auto;
    bottom: 6%;
  }
  .scroll-prop-speaker img {
    transform: translate3d(0, calc((0.5 - var(--p, 0)) * 28px), 0) scale(calc(0.94 + var(--p, 0) * 0.06));
  }
  .scroll-prop-light {
    width: min(70vw, 240px);
    height: 70%;
    top: auto;
    bottom: 0;
  }
  .scroll-prop-light img {
    transform: translate3d(0, calc((0.5 - var(--p, 0)) * 20px), 0);
  }
  .contact-actions,
  .hero-actions,
  .hero-actions .contact-actions {
    display: grid;
    width: calc(100vw - 32px);
    max-width: none;
    margin-left: calc(50% - 50vw + 16px);
    gap: 12px;
  }
  .btn,
  .btn-lg,
  a.btn,
  .contact-actions .btn,
  .contact-actions .btn-lg,
  .home-about .btn-linkedin,
  .page-ayuntamientos .btn-linkedin,
  .work-item > .btn,
  .nav-mobile-contact .btn {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: none;
    min-width: 0;
    min-height: 64px;
    padding: 14px 16px;
    font-size: 1.12rem;
    letter-spacing: 0.08em;
    text-align: center;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
  }
  .page-ayuntamientos .btn-ayto-section,
  .page-ayuntamientos a.btn.btn-ayto-section,
  .page-ayuntamientos .panel-copy .contact-actions:first-of-type .btn,
  .page-ayuntamientos .panel-copy .contact-actions:first-of-type .btn:nth-child(1),
  .page-ayuntamientos .panel-copy .contact-actions:first-of-type .btn:nth-child(2),
  .page-ayuntamientos .panel-copy .contact-actions:first-of-type .btn:nth-child(3) {
    background: #e8e2d4;
    border-color: #e8e2d4;
    color: #14110c;
  }
  .btn-pre {
    font-size: 1rem;
    font-weight: 600;
  }
  .work-item > .btn,
  .about-social {
    width: calc(100vw - 32px);
    max-width: none;
    margin-left: calc(50% - 50vw + 16px);
  }
  .about-social .btn {
    width: 100%;
  }
  .wa-float {
    display: none;
  }
  .panel,
  .page-hero {
    min-height: 100svh;
    min-height: 100dvh;
  }
  .panel-page {
    min-height: 78svh;
    min-height: 78dvh;
  }
  .panel-media img,
  .split img,
  .brand-strip img {
    animation: none;
  }
  .panel-media::before { display: none; }
  .brand-strip {
    height: 30vw;
    min-height: 110px;
    max-height: 150px;
  }
  .site-footer {
    padding-bottom: max(28px, env(safe-area-inset-bottom));
  }
  .cookie-banner.is-on {
    grid-template-columns: 1fr;
    padding: 12px 16px max(12px, env(safe-area-inset-bottom));
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
  }
  .cookie-banner p {
    font-size: 0.95rem;
    line-height: 1.45;
  }
  .cookie-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    width: 100%;
    max-width: none;
    margin-left: 0;
  }
  .cookie-actions .btn,
  .cookie-panel .btn {
    display: flex;
    width: 100%;
    min-height: 48px;
    padding: 8px 6px;
    font-size: 0.78rem;
  }
  .panel-copy, .hero-inner { margin-bottom: 0; padding-bottom: 88px; }
  .home .work-item:hover,
  .feature-list article:hover,
  .example:hover {
    transform: none;
  }
}

@media (hover: none) {
  .home .work-item:hover,
  .feature-list article:hover,
  .example:hover {
    transform: none;
  }
}

@media (min-width: 720px) {
  .family-grid { grid-template-columns: 1fr 1fr; }
  .family-grid .family-card:first-child { grid-column: 1 / -1; min-height: 400px; }
  .family-grid.four .family-card:first-child { grid-column: auto; min-height: 340px; }
  .size-grid { grid-template-columns: repeat(3, 1fr); }
  .who-grid { grid-template-columns: 1fr 1fr; }
  .papers-grid { grid-template-columns: 1fr 1fr; }
  .year-grid { grid-template-columns: 1fr 1fr; }
  .examples { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1.05fr 0.95fr; align-items: center; }
  .split img { height: 420px; }
  .split.split-mario {
    grid-template-columns: 96px 1fr;
    align-items: start;
  }
  .split.split-mario img.mario-portrait {
    width: 96px;
    height: 96px;
  }
}

@media (min-width: 980px) {
  .nav-desktop { display: flex; }
  .header-inner { padding: 0 40px; }
  .brand img { height: 62px; max-width: 210px; }
  .panel-copy, .hero-inner {
    width: 100%;
    padding: calc(var(--header-h) + 24px) 56px 120px;
  }
  .family-grid { grid-template-columns: repeat(3, 1fr); }
  .family-grid .family-card:first-child { grid-column: auto; min-height: 420px; }
  .family-grid.four { grid-template-columns: 1fr 1fr; }
  .family-grid.four .family-card { min-height: 400px; }
  .who-grid { grid-template-columns: repeat(4, 1fr); }
  .papers-grid { grid-template-columns: repeat(3, 1fr); }
  .year-grid { grid-template-columns: repeat(3, 1fr); }
  .process { max-width: 720px; }
  .home-hero { padding: 72px 0 96px; min-height: 78svh; }
  .home-hero::before {
    background: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.82) 34%, transparent 72%);
  }
  .hero-visual { place-items: center end; }
  .hero-visual img {
    width: min(50vw, 700px);
    margin: 0 1vw 0 0;
  }
  .hero-glow { right: 6%; top: 10%; opacity: 0.85; }
  .home-logo img { width: min(42vw, 560px); }
  .work-list { grid-template-columns: 1fr 1fr; column-gap: 48px; }
  .work-item { padding: 32px 0; }
  .scroll-prop-speaker { width: min(38vw, 420px); right: -2%; }
  .home-about { padding: 88px 0 120px; }
  .about-portrait-sm,
  .split img.mario-portrait {
    width: 96px;
    height: 96px;
  }
}

@keyframes home-fade-up {
  from { opacity: 0; transform: translateY(14px); filter: blur(4px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}
@keyframes hero-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-16px) scale(1.025); }
}
@keyframes hero-glow {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}
@keyframes work-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-3%, 2%, 0) scale(1.06); }
}
@keyframes strip-ken {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to { transform: scale(1.08) translate3d(-2%, -1%, 0); }
}

@keyframes gold-scan {
  0% { opacity: 0.25; transform: scaleX(0.4); transform-origin: left; }
  50% { opacity: 0.85; transform: scaleX(1); transform-origin: center; }
  100% { opacity: 0.25; transform: scaleX(0.4); transform-origin: right; }
}
@keyframes gold-sweep {
  0% { transform: translateX(-40%); opacity: 0; }
  30% { opacity: 0.7; }
  70% { opacity: 0.4; }
  100% { transform: translateX(40%); opacity: 0; }
}
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--gold) 0%, transparent); }
  50% { box-shadow: 0 0 0 8px color-mix(in oklab, var(--gold) 18%, transparent); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .panel-scroll svg { animation: none; }
}
