:root {
  --bg: #fbf3ea;
  --bg-soft: #fff8f0;
  --ink: #281026;
  --ink-2: #3b2036;
  --muted: #6d5a66;
  --line: rgba(40, 16, 38, 0.16);
  --line-strong: rgba(40, 16, 38, 0.28);
  --gold: #c58a45;
  --gold-2: #f0c986;
  --wine: #74151d;
  --white: #ffffff;
  --shadow: 0 24px 80px rgba(40, 16, 38, 0.14);
  --radius: 28px;
  --header-h: 82px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 12% 4%, rgba(197, 138, 69, .18), transparent 28rem),
    linear-gradient(135deg, rgba(40, 16, 38, .05), transparent 38%);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
::selection { background: var(--ink); color: var(--bg); }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0 clamp(1rem, 4vw, 3rem);
  background: rgba(251, 243, 234, .78);
  border-bottom: 1px solid rgba(40, 16, 38, .11);
  backdrop-filter: blur(18px);
  transition: height .25s ease, box-shadow .25s ease, background .25s ease;
}
.site-header.is-scrolled {
  height: 68px;
  box-shadow: 0 12px 36px rgba(40, 16, 38, .08);
  background: rgba(251, 243, 234, .92);
}
.brand { display: inline-flex; align-items: center; gap: .78rem; min-width: 0; }
.brand-mark { width: 42px; height: 42px; flex: 0 0 auto; }
.brand-mark svg,
.brand-mark img { width: 100%; height: 100%; }
.brand-mark-image { border-radius: 12px; overflow: hidden; }
.brand-mark-image img { object-fit: contain; display: block; }
.brand-name { display: grid; line-height: 1.05; }
.brand-name strong { font-size: .94rem; letter-spacing: -.025em; white-space: nowrap; }
.brand-name small { font-size: .68rem; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; margin-top: .18rem; }
.site-nav { display: flex; align-items: center; gap: .2rem; }
.site-nav a {
  padding: .68rem .78rem;
  border-radius: 999px;
  color: rgba(40, 16, 38, .74);
  font-size: .88rem;
  font-weight: 700;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.site-nav a:hover, .site-nav a.is-active { color: var(--ink); background: rgba(40, 16, 38, .07); }
.site-nav .nav-action { margin-left: .35rem; background: var(--ink); color: var(--bg); }
.site-nav .nav-action:hover { color: var(--bg); transform: translateY(-1px); background: var(--ink-2); }
.menu-button { display: none; width: 44px; height: 44px; border: 0; background: transparent; color: var(--ink); padding: 0; }
.menu-button span { display: block; width: 24px; height: 2px; background: currentColor; margin: 6px auto; border-radius: 10px; transition: transform .2s ease, opacity .2s ease; }
.menu-button[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-button[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

main { padding-top: var(--header-h); }
section { position: relative; }
.container, .section-intro, .text-measure, .data-section, .legal-page, .contact-shell, .cases-list, .timeline, .plan-list, .service-table-wrap { width: min(var(--max), calc(100% - 2rem)); margin-inline: auto; }

.home-hero {
  min-height: clamp(560px, 78svh, 820px);
  width: min(1380px, calc(100% - clamp(1rem, 4vw, 4rem)));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .86fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5.5rem);
  padding: clamp(1.6rem, 4vw, 4rem) 0 clamp(2.4rem, 5vw, 5rem);
}
.copy-block { max-width: 690px; }
.section-label {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: 1rem;
  color: var(--wine);
  font-size: .75rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 900;
}
.section-label::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}
h1, h2, h3, p { margin-top: 0; }
h1, h2, .display-title {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  letter-spacing: -.032em;
  line-height: .99;
}
h1 { font-size: clamp(2.85rem, 7.4vw, 6.7rem); margin-bottom: 1.05rem; max-width: 840px; }
h2 { font-size: clamp(2.15rem, 4.9vw, 4.45rem); margin-bottom: .95rem; }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.9rem); line-height: 1.08; letter-spacing: -.025em; margin-bottom: .7rem; }
p { color: var(--muted); font-size: clamp(1rem, 1.45vw, 1.16rem); }
.lead { font-size: clamp(1.04rem, 1.55vw, 1.26rem); color: rgba(40, 16, 38, .72); max-width: 730px; }
.button-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .85rem 1.15rem;
  border-radius: 999px;
  font-weight: 900;
  border: 1px solid transparent;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-dark { background: var(--ink); color: var(--bg); }
.button-gold { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #24100a; }
.button-secondary { background: rgba(255,255,255,.78); color: var(--ink); border-color: rgba(40,16,38,.14); }
.button-outline { border-color: var(--line-strong); color: var(--ink); background: rgba(255,255,255,.28); }
.button-light { background: var(--bg); color: var(--ink); }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--wine);
  font-weight: 900;
  white-space: nowrap;
}
.text-link::after { content: "↓"; font-size: .9em; }
.home-visual {
  align-self: stretch;
  min-height: 440px;
  display: grid;
  align-items: end;
  isolation: isolate;
}
.home-visual img {
  width: 100%;
  height: min(58svh, 640px);
  object-fit: cover;
  object-position: center;
  border-radius: 0 0 42% 42%;
  filter: saturate(.95) contrast(1.02);
  box-shadow: none;
}
.home-visual figcaption {
  justify-self: end;
  width: min(320px, 78%);
  margin-top: -5.5rem;
  margin-right: -1rem;
  padding: 1.1rem 1.2rem;
  border-left: 4px solid var(--gold);
  background: rgba(251, 243, 234, .86);
  backdrop-filter: blur(12px);
  color: var(--ink);
  position: relative;
  z-index: 2;
}
.home-visual strong { display: block; font-size: 2.2rem; letter-spacing: -.05em; line-height: 1; }
.home-visual span { display: block; color: var(--muted); font-size: .88rem; margin-top: .35rem; }


.hero-ornaments {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.home-hero > .copy-block,
.home-hero > .home-visual { position: relative; z-index: 1; }
.ornament-orb,
.ornament-line,
.ornament-pill {
  position: absolute;
  opacity: .7;
}
.ornament-orb {
  border-radius: 999px;
  filter: blur(6px);
  animation: floatAmbient 12s ease-in-out infinite;
}
.ornament-orb--gold {
  width: clamp(180px, 20vw, 290px);
  height: clamp(180px, 20vw, 290px);
  right: 2%;
  top: 10%;
  background: radial-gradient(circle at 30% 30%, rgba(240, 201, 134, .52), rgba(197, 138, 69, .09) 60%, transparent 72%);
}
.ornament-orb--wine {
  width: clamp(110px, 12vw, 170px);
  height: clamp(110px, 12vw, 170px);
  left: -2%;
  bottom: 14%;
  background: radial-gradient(circle at 50% 50%, rgba(116, 21, 29, .18), rgba(116, 21, 29, .04) 65%, transparent 76%);
  animation-delay: -3s;
}
.ornament-line {
  border: 1px solid rgba(40, 16, 38, .08);
  border-radius: 34px;
  animation: driftStroke 14s ease-in-out infinite;
}
.ornament-line--left {
  width: clamp(120px, 14vw, 180px);
  height: clamp(120px, 14vw, 180px);
  left: 2%;
  top: 8%;
  border-right: 0;
  border-bottom: 0;
}
.ornament-line--right {
  width: clamp(170px, 18vw, 240px);
  height: clamp(170px, 18vw, 240px);
  right: 8%;
  bottom: 6%;
  border-left: 0;
  border-top: 0;
  animation-delay: -5s;
}
.ornament-pill {
  border-radius: 999px;
  opacity: .55;
  animation: floatPill 10s ease-in-out infinite;
}
.ornament-pill--gold {
  width: 8px;
  height: 110px;
  left: 44%;
  top: 8%;
  background: linear-gradient(180deg, rgba(240, 201, 134, .7), rgba(197, 138, 69, .18));
}
.ornament-pill--wine {
  width: 10px;
  height: 74px;
  right: 0.5%;
  top: 42%;
  background: linear-gradient(180deg, rgba(116, 21, 29, .5), rgba(116, 21, 29, .12));
  animation-delay: -4s;
}
.home-plans-section {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
  padding: clamp(3rem, 6vw, 5rem) 0;
}
.home-plans-grid,
.plans-catalog-grid,
.plans-expanded-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.3rem;
}
.home-plans-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.4rem;
}
.home-plans-more {
  margin-top: 1.4rem;
}
.home-plans-more[hidden] { display: none !important; }
.plan-showcase-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(40, 16, 38, .1);
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,248,240,.92));
  box-shadow: 0 18px 44px rgba(40, 16, 38, .08);
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}
.plan-showcase-card:hover {
  transform: translateY(-4px);
  border-color: rgba(197, 138, 69, .34);
  box-shadow: 0 24px 54px rgba(40, 16, 38, .12);
}
.plan-showcase-card.is-highlighted {
  border-color: rgba(197, 138, 69, .58);
  box-shadow: 0 26px 60px rgba(116, 21, 29, .11);
}
.plan-showcase-card.is-highlighted:hover { transform: translateY(-8px); }
.plan-card-badge {
  position: absolute;
  z-index: 2;
  top: 1rem;
  left: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .48rem .78rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--bg);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.plan-card-cover {
  aspect-ratio: 16 / 10;
  background: rgba(40, 16, 38, .05);
  overflow: hidden;
}
.plan-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .65s ease;
}
.plan-showcase-card:hover .plan-card-cover img { transform: scale(1.04); }
.plan-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.2rem 1.2rem 1.25rem;
}
.plan-card-kicker {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: .7rem;
  color: var(--wine);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.plan-card-body h3 {
  margin-bottom: .45rem;
  font-size: clamp(1.45rem, 2vw, 2rem);
}
.plan-card-body p {
  font-size: .96rem;
  margin-bottom: .9rem;
}
.plan-card-price {
  display: flex;
  align-items: end;
  gap: .45rem;
  margin-bottom: .95rem;
  padding-bottom: .95rem;
  border-bottom: 1px solid rgba(40, 16, 38, .08);
}
.plan-card-price strong {
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: .92;
  letter-spacing: -.06em;
}
.plan-card-price span {
  color: var(--muted);
  font-size: .92rem;
}
.plan-card-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .7rem;
}
.plan-card-features li {
  position: relative;
  padding-left: 1.2rem;
  color: rgba(40, 16, 38, .8);
  font-size: .92rem;
}
.plan-card-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .5rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(197, 138, 69, .12);
}
.plan-card-actions {
  display: flex;
  gap: .8rem;
  margin-top: auto;
  padding-top: 1.15rem;
}
.plan-card-actions .button { width: 100%; }
.plans-stack-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.plans-catalog-section + .plans-catalog-section { margin-top: clamp(2.4rem, 5vw, 4rem); }

.page-hero {
  min-height: clamp(330px, 52svh, 500px);
  display: grid;
  align-items: end;
  padding: clamp(3rem, 6vw, 5.5rem) clamp(1rem, 4vw, 3rem);
  color: var(--bg);
  background-image: linear-gradient(90deg, rgba(40,16,38,.88), rgba(40,16,38,.62) 46%, rgba(40,16,38,.20)), var(--hero-image);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 5.5rem;
  background: linear-gradient(180deg, transparent, var(--bg));
}
.page-hero .copy-block { width: min(var(--max), 100%); margin: 0 auto; position: relative; z-index: 1; }
.page-hero .section-label, .page-hero p { color: rgba(251, 243, 234, .86); }
.page-hero h1 { max-width: 920px; }
.page-hero p { max-width: 690px; }

.editorial-section { padding: clamp(3rem, 7vw, 6rem) 0; }
.section-intro { margin-bottom: clamp(2rem, 5vw, 4rem); }
.section-intro.between { display: flex; align-items: end; justify-content: space-between; gap: 2rem; }
.section-intro p { max-width: 670px; }
.split-section {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(2.6rem, 6vw, 5rem) 0;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  border-top: 1px solid var(--line);
}
.line-list { border-top: 1px solid var(--line-strong); }
.line-list a, .line-list .line-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 1.2rem;
  align-items: center;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}
.line-list span { color: var(--gold); font-weight: 900; font-size: .9rem; }
.line-list strong { font-size: clamp(1.12rem, 2vw, 1.7rem); letter-spacing: -.035em; }
.line-list em { font-style: normal; color: var(--muted); font-size: .96rem; max-width: 320px; text-align: right; }

.home-duo {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.duo-panel {
  padding: clamp(2.2rem, 5vw, 4.2rem);
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.duo-panel:first-child { border-right: 1px solid var(--ink); }
.duo-panel p { max-width: 520px; }
.duo-panel .kicker { color: var(--gold); font-size: .8rem; font-weight: 900; text-transform: uppercase; letter-spacing: .15em; }
.duo-panel a { align-self: flex-start; margin-top: 2rem; }

.metrics-line {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}
.metrics-line span { padding: 1.4rem 1rem; border-right: 1px solid var(--line); color: var(--muted); }
.metrics-line span:last-child { border-right: 0; }
.metrics-line strong { display: block; color: var(--ink); font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1; letter-spacing: -.06em; }

.plan-list {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  padding: clamp(3rem, 6vw, 5.5rem) 0;
}
.plans-showcase {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
}
.featured-plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
  align-items: stretch;
}
.plan-spotlight {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,248,240,.95));
  border: 1px solid rgba(197, 138, 69, .34);
  border-radius: 30px;
  padding: 1.35rem 1.35rem 1.5rem;
  box-shadow: 0 18px 46px rgba(40, 16, 38, .08);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.plan-spotlight.is-highlighted {
  transform: translateY(-10px);
  border-color: rgba(197, 138, 69, .8);
  box-shadow: 0 24px 60px rgba(116, 21, 29, .12);
}
.plan-pick {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 124px;
  padding: .45rem .9rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--bg);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.plan-icon {
  width: 72px;
  height: 72px;
  margin: .5rem auto 1rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--bg);
  box-shadow: inset 0 -6px 18px rgba(0,0,0,.1);
}
.plan-icon svg { width: 30px; height: 30px; }
.plan-spotlight.is-wine .plan-icon,
.plan-stack-card.is-wine .plan-card-icon { background: var(--wine); }
.plan-spotlight.is-gold .plan-icon,
.plan-stack-card.is-gold .plan-card-icon { background: linear-gradient(180deg, var(--gold-2), var(--gold)); }
.plan-spotlight h2,
.plan-stack-card h3 {
  margin: 0;
  text-align: center;
  font-size: clamp(1.7rem, 3vw, 2.25rem);
}
.plan-kicker {
  display: block;
  text-align: center;
  margin-bottom: .2rem;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.plan-summary {
  text-align: center;
  color: var(--muted);
  margin: .45rem 0 1.25rem;
  min-height: 3.3em;
}
.plan-price {
  margin: 0 0 1.1rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(40,16,38,.08);
  border-bottom: 1px solid rgba(40,16,38,.08);
  text-align: center;
  font-size: clamp(2.6rem, 5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -.06em;
  line-height: .95;
  color: var(--ink);
}
.plan-price small {
  display: block;
  margin-top: .55rem;
  color: var(--muted);
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: 0;
}
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.4rem;
  display: grid;
  gap: .8rem;
}
.feature-list li {
  position: relative;
  padding-left: 1.55rem;
  color: rgba(40,16,38,.82);
  font-size: .95rem;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .52rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(197,138,69,.14);
}
.plan-note {
  margin-top: auto;
  padding-top: .15rem;
  color: var(--muted);
  font-size: .88rem;
}
.plan-actions {
  margin-top: 1rem;
}
.other-plans {
  display: grid;
  gap: 1.15rem;
}
.plans-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}
.plan-stack-card {
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(40,16,38,.1);
  border-radius: 24px;
  padding: 1.15rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: start;
}
.plan-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: var(--bg);
}
.plan-card-icon svg { width: 22px; height: 22px; }
.plan-stack-card h3 { text-align: left; font-size: 1.25rem; }
.plan-stack-card p { margin: .35rem 0 0; color: var(--muted); font-size: .94rem; }
.plan-stack-meta { text-align: right; }
.plan-stack-meta strong { display: block; font-size: 1.6rem; letter-spacing: -.04em; }
.plan-stack-meta span { color: var(--muted); font-size: .84rem; }
.plan-stack-foot {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: .9rem;
  border-top: 1px solid rgba(40,16,38,.08);
}
.plan-stack-foot ul {
  display: flex;
  gap: .6rem 1rem;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: .88rem;
}

.data-section { padding: clamp(3rem, 6vw, 5.5rem) 0; }
.table-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}
.filter-row { display: flex; flex-wrap: wrap; gap: .55rem; }
.filter-btn {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  border-radius: 999px;
  padding: .65rem .9rem;
  cursor: pointer;
  font-weight: 800;
  font-size: .88rem;
}
.filter-btn.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.service-table-wrap { overflow-x: auto; padding-bottom: .75rem; }
.service-table {
  width: 100%;
  min-width: 940px;
  border-collapse: collapse;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.service-table th, .service-table td {
  text-align: left;
  vertical-align: top;
  padding: 1.25rem 1rem;
  border-bottom: 1px solid var(--line);
}
.service-table th {
  color: var(--wine);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  white-space: nowrap;
}
.service-table tr:last-child td { border-bottom: 0; }
.service-table h3 { font-family: "Plus Jakarta Sans", sans-serif; font-size: 1.08rem; line-height: 1.15; letter-spacing: -.03em; margin: .35rem 0 .45rem; }
.service-table p { font-size: .94rem; max-width: 330px; margin-bottom: 0; }
.service-thumb {
  width: 86px;
  height: 64px;
  border-radius: 18px;
  object-fit: cover;
  margin-bottom: .7rem;
}
.badge { display: inline-flex; padding: .28rem .55rem; border-radius: 999px; background: rgba(40,16,38,.08); color: var(--ink); font-size: .72rem; font-weight: 900; }
.service-table ul { margin: 0; padding-left: 1.1rem; color: var(--muted); font-size: .93rem; }
.service-table li + li { margin-top: .2rem; }

.timeline {
  counter-reset: step;
  padding: clamp(3rem, 6vw, 5.5rem) 0;
  list-style: none;
}
.timeline li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: clamp(1rem, 5vw, 5rem);
  padding: clamp(1.7rem, 4vw, 3rem) 0;
  border-top: 1px solid var(--line-strong);
}
.timeline li:last-child { border-bottom: 1px solid var(--line-strong); }
.timeline li::before {
  content: counter(step, decimal-leading-zero);
  color: var(--gold);
  font-weight: 900;
  font-size: clamp(2rem, 6vw, 5rem);
  line-height: .9;
  letter-spacing: -.06em;
}
.timeline h2 { font-family: "Plus Jakarta Sans", sans-serif; font-size: clamp(1.45rem, 3.2vw, 2.8rem); line-height: 1; letter-spacing: -.055em; margin-bottom: .7rem; }
.timeline p { max-width: 740px; }

.cases-list { padding: clamp(3rem, 6vw, 5.5rem) 0; }
.case-row {
  display: grid;
  grid-template-columns: minmax(190px, .6fr) minmax(0, 1.4fr) auto;
  gap: clamp(1rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1.5rem, 4vw, 2.8rem) 0;
  border-top: 1px solid var(--line-strong);
}
.case-row:last-child { border-bottom: 1px solid var(--line-strong); }
.case-row img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 24px; }
.case-row h2 { font-family: "Plus Jakarta Sans", sans-serif; font-size: clamp(1.45rem, 3.1vw, 3rem); line-height: 1; letter-spacing: -.055em; }
.case-row p { max-width: 670px; }
.case-metric { color: var(--wine); font-weight: 900; font-size: clamp(1.4rem, 3.2vw, 2.8rem); letter-spacing: -.06em; text-align: right; }

.text-measure { padding: clamp(3rem, 6vw, 5.5rem) 0; max-width: 900px; }
.text-measure p { font-size: clamp(1.08rem, 2vw, 1.35rem); }
.values-grid {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto clamp(3rem, 6vw, 5.5rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.values-grid article { padding: clamp(1.7rem, 4vw, 3rem); border-right: 1px solid var(--line-strong); }
.values-grid article:last-child { border-right: 0; }
.values-grid h2 { font-family: "Plus Jakarta Sans", sans-serif; font-size: clamp(1.25rem, 2.5vw, 2rem); line-height: 1; letter-spacing: -.04em; }

.contact-shell {
  padding: clamp(3rem, 6vw, 5.5rem) 0;
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: clamp(2rem, 5vw, 5rem);
}
.contact-form {
  display: grid;
  gap: 1rem;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label { display: grid; gap: .45rem; color: var(--ink); font-weight: 800; }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,.38);
  color: var(--ink);
  border-radius: 18px;
  padding: .95rem 1rem;
  outline: none;
}
textarea { min-height: 150px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(40,16,38,.08); }
.form-note { font-size: .9rem; }

.final-band {
  width: min(var(--max), calc(100% - 2rem));
  margin: clamp(1.5rem, 4vw, 3rem) auto clamp(4rem, 7vw, 6rem);
  padding: clamp(2.2rem, 5vw, 4.2rem);
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
}
.final-band p { color: rgba(251,243,234,.72); max-width: 620px; }
.final-band h2 { max-width: 760px; }

.legal-page { padding: clamp(3rem, 7vw, 6rem) 0; max-width: 900px; }
.legal-page h1 { font-size: clamp(2.5rem, 6.4vw, 5rem); }
.legal-page article { border-top: 1px solid var(--line-strong); padding: 1.5rem 0; }
.legal-page h2 { font-family: "Plus Jakarta Sans", sans-serif; font-size: 1.4rem; letter-spacing: -.03em; line-height: 1.1; }

.site-footer {
  background: var(--ink);
  color: var(--bg);
  padding: clamp(3rem, 7vw, 6rem) clamp(1rem, 4vw, 3rem) 1.2rem;
}
.footer-conversion {
  width: min(var(--max), 100%);
  margin: 0 auto clamp(3rem, 6vw, 5rem);
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px solid rgba(251,243,234,.22);
  padding-bottom: clamp(2rem, 5vw, 4rem);
}
.footer-conversion h2 { max-width: 720px; }
.footer-conversion .section-label, .site-footer p { color: rgba(251,243,234,.72); }
.footer-grid {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.35fr repeat(3, .7fr);
  gap: 2rem;
}
.site-footer .brand-name small, .site-footer a, .footer-bottom { color: rgba(251,243,234,.72); }
.footer-brand p { max-width: 420px; margin-top: 1rem; }
.footer-grid h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: var(--gold-2); }
.footer-grid div:not(.footer-brand) a { display: block; padding: .28rem 0; }
.footer-grid a:hover { color: var(--bg); }
.footer-bottom {
  width: min(var(--max), 100%);
  margin: 3rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(251,243,234,.16);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: .86rem;
}

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  :root { --header-h: 74px; }
  .menu-button { display: block; position: relative; z-index: 22; }
  .site-nav {
    position: fixed;
    inset: 0 0 auto 0;
    padding: calc(var(--header-h) + 1rem) 1rem 1rem;
    display: grid;
    gap: .2rem;
    background: rgba(251, 243, 234, .97);
    border-bottom: 1px solid var(--line);
    transform: translateY(-110%);
    transition: transform .25s ease;
    box-shadow: 0 24px 80px rgba(40, 16, 38, .12);
  }
  .site-nav.is-open { transform: translateY(0); }
  .site-nav a { padding: .95rem 1rem; border-radius: 18px; }
  .site-nav .nav-action { margin-left: 0; text-align: center; }
  .home-hero { grid-template-columns: 1fr; min-height: auto; padding-top: clamp(2rem, 10vw, 5rem); }
  .home-visual { min-height: 0; align-self: auto; }
  .home-visual img { height: min(58svh, 560px); border-radius: 34% 34% 0 0; }
  .home-visual figcaption { margin: -4rem 0 0 auto; }
  .split-section, .contact-shell { grid-template-columns: 1fr; }
  .section-intro.between { display: block; }
  .home-duo, .metrics-line, .values-grid { grid-template-columns: 1fr; }
  .duo-panel:first-child, .metrics-line span, .values-grid article { border-right: 0; border-bottom: 1px solid var(--line-strong); }
  .metrics-line span:last-child, .values-grid article:last-child { border-bottom: 0; }
  .featured-plans, .plans-stack { grid-template-columns: 1fr; }
  .plan-spotlight.is-highlighted { transform: none; }
  .plan-stack-card { grid-template-columns: 1fr; }
  .plan-stack-meta { text-align: left; }
  .timeline li { grid-template-columns: 1fr; gap: .75rem; }
  .case-row { grid-template-columns: 1fr; }
  .case-metric { text-align: left; }
  .footer-conversion, .footer-bottom { display: grid; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .site-header { padding-inline: 1rem; }
  .brand-name strong { max-width: 190px; overflow: hidden; text-overflow: ellipsis; }
  h1 { font-size: clamp(3.05rem, 18vw, 5.4rem); }
  h2 { font-size: clamp(2.25rem, 13vw, 4rem); }
  .button-row, .button { width: 100%; }
  .home-hero { width: calc(100% - 2rem); gap: 1.8rem; }
  .page-hero { min-height: 68svh; padding-inline: 1rem; background-image: linear-gradient(180deg, rgba(40,16,38,.78), rgba(40,16,38,.74)), var(--hero-image); }
  .line-list a, .line-list .line-item { grid-template-columns: 44px minmax(0, 1fr); }
  .line-list em { grid-column: 2; text-align: left; }
  .duo-panel { padding: 2rem 0; }
  .home-duo { border-left: 0; border-right: 0; }
  .plan-spotlight { padding: 1.25rem 1rem 1.35rem; }
  .plan-price { font-size: 2.55rem; }
  .plan-stack-foot { display: grid; }
  .plan-stack-foot .button { width: 100%; }
  .table-toolbar { display: block; }
  .filter-row { margin-top: 1rem; overflow-x: auto; flex-wrap: nowrap; padding-bottom: .3rem; }
  .filter-btn { flex: 0 0 auto; }
  .service-table { min-width: 760px; }
  .field-row { grid-template-columns: 1fr; }
  .final-band { border-radius: 22px; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* Refinamiento visual: heros más compactos, tipografía suave y animaciones ligeras */
body.is-loaded .site-header { animation: headerDrop .55s cubic-bezier(.2,.8,.2,1) both; }
body::before { animation: ambientGlow 16s ease-in-out infinite alternate; }

.page-hero {
  isolation: isolate;
  animation: heroFocus 18s ease-in-out infinite alternate;
}
.page-hero .copy-block { transform-origin: left bottom; }
.page-hero h1 { font-size: clamp(2.55rem, 5.7vw, 5.25rem); }

.home-visual img,
.plan-cover img,
.case-row img,
.service-thumb {
  transition: transform .85s cubic-bezier(.2,.8,.2,1), filter .85s ease;
}
.home-visual:hover img,
.plan-item:hover .plan-cover img,
.case-row:hover img {
  transform: scale(1.025);
  filter: saturate(1.03) contrast(1.04);
}

.button,
.text-link,
.filter-btn,
.site-nav a {
  will-change: transform;
}
.button { position: relative; overflow: hidden; }
.button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0 38%, rgba(255,255,255,.26) 50%, transparent 62%);
  transform: translateX(-125%);
  transition: transform .7s cubic-bezier(.2,.8,.2,1);
}
.button:hover::after { transform: translateX(125%); }
.button span, .button { z-index: 0; }

.line-list a,
.line-list .line-item,
.case-row,
.timeline li,
.plan-item,
.service-table tr {
  transition: background .25s ease, transform .25s ease, border-color .25s ease;
}
.line-list a:hover,
.case-row:hover,
.timeline li:hover,
.plan-item:hover {
  transform: translateY(-2px);
}
.line-list a:hover { background: rgba(255,255,255,.26); }
.service-table tbody tr:hover { background: rgba(40,16,38,.035); }
.filter-btn:hover { transform: translateY(-1px); border-color: var(--line-strong); }

.reveal {
  opacity: 0;
  transform: translateY(24px) scale(.985);
  filter: blur(8px);
  transition:
    opacity .75s cubic-bezier(.2,.8,.2,1),
    transform .75s cubic-bezier(.2,.8,.2,1),
    filter .75s ease;
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

@keyframes headerDrop {
  from { transform: translateY(-14px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes ambientGlow {
  from { opacity: .88; transform: scale(1); }
  to { opacity: 1; transform: scale(1.03); }
}
@keyframes floatAmbient {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -14px, 0); }
}
@keyframes driftStroke {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(8px, -8px, 0) rotate(2deg); }
}
@keyframes floatPill {
  0%, 100% { transform: translateY(0); opacity: .44; }
  50% { transform: translateY(-12px); opacity: .82; }
}
@keyframes heroFocus {
  from { background-position: center 50%; }
  to { background-position: center 44%; }
}

@media (max-width: 980px) {
  .home-hero { min-height: auto; padding-top: clamp(1.7rem, 7vw, 3.6rem); padding-bottom: clamp(2rem, 6vw, 4rem); }
  .home-visual img { height: min(48svh, 480px); }
  .page-hero { min-height: clamp(300px, 46svh, 440px); padding-top: clamp(2.6rem, 7vw, 4.8rem); padding-bottom: clamp(2.7rem, 7vw, 4.8rem); }
}

@media (max-width: 640px) {
  h1 { font-size: clamp(2.55rem, 14.5vw, 4.35rem); line-height: .98; }
  h2 { font-size: clamp(2rem, 10vw, 3.25rem); line-height: 1; }
  .lead { font-size: 1.02rem; }
  .page-hero { min-height: 44svh; padding-block: 2.7rem 3.2rem; }
  .page-hero h1 { font-size: clamp(2.4rem, 12vw, 3.8rem); }
  .home-visual img { height: min(42svh, 420px); }
  .home-visual figcaption { width: min(300px, 88%); margin-top: -3rem; margin-right: 0; }
}

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

/* Casos + reseñas configurables */
.site-nav a { padding-inline: .64rem; font-size: .84rem; }
.container, .section-intro, .text-measure, .data-section, .legal-page, .contact-shell, .cases-list, .timeline, .plan-list, .service-table-wrap, .case-catalog, .reviews-list { width: min(var(--max), calc(100% - 2rem)); margin-inline: auto; }

.portfolio-section,
.reviews-section {
  padding: clamp(3rem, 6vw, 5.5rem) 0;
}
.reviews-section {
  background: linear-gradient(180deg, transparent, rgba(40,16,38,.035) 18%, rgba(40,16,38,.035) 82%, transparent);
}
.section-intro > p[data-case-count],
.section-intro > p[data-review-count] {
  font-size: .86rem;
  color: var(--wine);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.case-catalog {
  display: grid;
  border-top: 1px solid var(--line-strong);
}
.portfolio-card {
  display: grid;
  grid-template-columns: minmax(260px, 38%) minmax(0, 1fr);
  gap: clamp(1.2rem, 4vw, 4rem);
  align-items: center;
  padding: clamp(1.4rem, 4vw, 3.2rem) 0;
  border-bottom: 1px solid var(--line-strong);
}
.portfolio-media {
  margin: 0;
  overflow: hidden;
  border-radius: clamp(22px, 3vw, 34px);
  background: rgba(40,16,38,.08);
}
.portfolio-media img {
  width: 100%;
  aspect-ratio: 16 / 10.5;
  object-fit: cover;
  transition: transform .85s cubic-bezier(.2,.8,.2,1), filter .85s ease;
}
.portfolio-card:hover .portfolio-media img {
  transform: scale(1.03);
  filter: saturate(1.04) contrast(1.03);
}
.portfolio-body { max-width: 760px; }
.portfolio-body h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2rem, 4.2vw, 4rem);
  line-height: .98;
  margin-bottom: .85rem;
}
.portfolio-body p { max-width: 720px; }
.portfolio-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.4rem;
  margin: 1.35rem 0 1.6rem;
}
.portfolio-metrics span {
  min-width: 118px;
  padding-top: .8rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .88rem;
}
.portfolio-metrics strong {
  display: block;
  color: var(--wine);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1;
  letter-spacing: -.05em;
}

.reviews-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}
.review-item {
  min-height: 100%;
  padding: clamp(1.15rem, 2.5vw, 2rem);
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: rgba(255,255,255,.18);
}
.review-person {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-bottom: 1.2rem;
}
.review-person img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(40,16,38,.14);
}
.review-person strong,
.review-person span { display: block; }
.review-person strong { line-height: 1.05; color: var(--ink); }
.review-person span { color: var(--muted); font-size: .84rem; }
.review-item p {
  color: rgba(40,16,38,.78);
  font-size: clamp(.96rem, 1.1vw, 1.05rem);
}
.review-item footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-top: 1.2rem;
  color: var(--gold);
  font-size: .9rem;
}
.review-item footer em {
  color: var(--wine);
  font-style: normal;
  font-weight: 800;
}

.case-modal[hidden] { display: none; }
.case-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: end center;
  padding: clamp(.8rem, 2vw, 1.4rem);
  background: rgba(40,16,38,.62);
  backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity .22s ease;
}
.case-modal.is-open { opacity: 1; }
.case-modal-panel {
  position: relative;
  width: min(1120px, 100%);
  max-height: min(92svh, 920px);
  overflow: auto;
  background: var(--bg);
  color: var(--ink);
  border-radius: clamp(24px, 3vw, 42px);
  box-shadow: 0 30px 110px rgba(0,0,0,.32);
  padding: clamp(1.2rem, 4vw, 3.4rem);
  transform: translateY(18px) scale(.985);
  transition: transform .22s cubic-bezier(.2,.8,.2,1);
}
.case-modal.is-open .case-modal-panel { transform: translateY(0) scale(1); }
.modal-close {
  position: sticky;
  top: 0;
  z-index: 2;
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(251,243,234,.92);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
}
.case-detail-head { max-width: 860px; margin-top: -.8rem; }
.case-detail-head h2 {
  font-size: clamp(2.3rem, 6vw, 5.2rem);
  line-height: .96;
  margin-bottom: 1rem;
}
.case-detail-head p { max-width: 760px; }
.case-detail-cover {
  margin: clamp(1.4rem, 3vw, 2.4rem) 0;
  overflow: hidden;
  border-radius: clamp(22px, 3vw, 34px);
}
.case-detail-cover img { width: 100%; max-height: 520px; object-fit: cover; }
.case-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.2rem, 3vw, 2.2rem);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  padding: clamp(1rem, 3vw, 2rem) 0;
}
.case-detail-grid h3,
.detail-services h3,
.case-progress h3,
.case-gallery h3,
.case-links h3 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--wine);
  margin-bottom: 1rem;
}
.client-data {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem 1.2rem;
  margin: 0;
}
.client-data dt {
  color: var(--muted);
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 800;
}
.client-data dd { margin: .15rem 0 0; font-weight: 750; }
.client-data a { color: var(--wine); }
.detail-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.detail-metrics li {
  border-left: 1px solid var(--line);
  padding-left: .95rem;
}
.detail-metrics strong {
  display: block;
  color: var(--wine);
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  line-height: 1;
  letter-spacing: -.055em;
}
.detail-metrics span { color: var(--muted); font-size: .9rem; }
.detail-services,
.case-progress,
.case-gallery,
.case-testimonial,
.case-links { padding-top: clamp(1.4rem, 3vw, 2.4rem); }
.detail-services div,
.case-links div {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}
.detail-services span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .58rem .85rem;
  color: var(--ink);
  background: rgba(255,255,255,.24);
  font-weight: 750;
  font-size: .9rem;
}
.case-story {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
  margin-top: clamp(1.4rem, 3vw, 2.4rem);
}
.case-story article {
  padding: clamp(1rem, 2.5vw, 1.8rem);
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}
.case-story span {
  display: block;
  color: var(--wine);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 900;
  margin-bottom: .75rem;
}
.case-story p { font-size: .98rem; margin: 0; }
.case-progress ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--line-strong);
  border: 1px solid var(--line-strong);
}
.case-progress li {
  display: grid;
  gap: .75rem;
  padding: clamp(1rem, 2vw, 1.4rem);
  background: var(--bg);
}
.case-progress li > span { color: var(--gold); font-weight: 900; }
.case-progress strong { display: block; margin-bottom: .35rem; }
.case-progress p { margin: 0; font-size: .92rem; }
.case-gallery div {
  display: grid;
  grid-template-columns: 1.15fr .85fr .85fr;
  gap: .75rem;
}
.case-gallery img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  border-radius: 24px;
}
.case-testimonial blockquote {
  margin: 0;
  background: var(--ink);
  color: var(--bg);
  border-radius: 28px;
  padding: clamp(1.4rem, 3vw, 2.4rem);
}
.case-testimonial p {
  color: rgba(251,243,234,.86);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  max-width: 840px;
}
.case-testimonial cite { color: var(--gold-2); font-style: normal; font-weight: 800; }
body.modal-open { overflow: hidden; }

@media (max-width: 1080px) {
  .reviews-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-progress ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .portfolio-card,
  .case-detail-grid,
  .case-story { grid-template-columns: 1fr; }
  .detail-metrics { grid-template-columns: 1fr; }
  .case-gallery div { grid-template-columns: 1fr; }
  .case-gallery img { min-height: 190px; }
}

@media (max-width: 640px) {
  .site-nav a { font-size: .95rem; }
  .portfolio-section,
  .reviews-section { padding-block: 2.8rem; }
  .portfolio-card { gap: 1.15rem; }
  .portfolio-media img { aspect-ratio: 1.05 / 1; }
  .portfolio-metrics { display: grid; grid-template-columns: 1fr; gap: .65rem; }
  .reviews-list { grid-template-columns: 1fr; }
  .client-data { grid-template-columns: 1fr; }
  .case-progress ol { grid-template-columns: 1fr; }
  .case-modal { padding: .65rem; place-items: end center; }
  .case-modal-panel { max-height: 94svh; border-radius: 26px 26px 18px 18px; }
}

/* Ajustes solicitados: equipo real, títulos hero en dos tonos y CTA con flecha */
h1, h2, .display-title,
.portfolio-body h2,
.case-detail-head h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 850;
  letter-spacing: -.045em;
}

.hero-title {
  display: grid;
  gap: .08em;
  text-transform: uppercase;
  max-width: 920px;
}
.hero-title span { display: block; }
.title-accent { color: var(--gold); }
.page-hero .title-accent { color: var(--gold-2); }
.page-hero .hero-title { color: var(--bg); }
.home-hero .hero-title { color: var(--ink); }

.button {
  gap: .62rem;
  isolation: isolate;
  overflow: hidden;
}
.button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 0 36%, rgba(255,255,255,.26) 50%, transparent 64%);
  transform: translateX(-125%);
  transition: transform .7s cubic-bezier(.2,.8,.2,1);
}
.button:hover::before { transform: translateX(125%); }
.button::after {
  content: "↗";
  position: relative;
  inset: auto;
  width: auto;
  height: auto;
  background: none;
  transform: translate(0, 0);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .92em;
  line-height: 1;
  transition: transform .22s ease;
}
.button:hover::after { transform: translate(2px, -2px); }
.button-dark:hover,
.site-nav .nav-action:hover {
  background: var(--wine);
  color: var(--white);
  border-color: var(--wine);
  box-shadow: 0 14px 34px rgba(116, 21, 29, .22);
}
.button-outline:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.site-nav .nav-action {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.site-nav .nav-action::after {
  content: "↗";
  font-size: .9em;
  transition: transform .2s ease;
}
.site-nav .nav-action:hover::after { transform: translate(2px, -2px); }

.home-hero {
  grid-template-columns: minmax(0, .98fr) minmax(300px, .92fr);
  min-height: clamp(540px, 72svh, 760px);
}
.home-visual.team-visual {
  min-height: clamp(420px, 62svh, 690px);
  align-items: end;
  justify-items: center;
  overflow: visible;
}
.home-visual.team-visual img {
  width: min(100%, 620px);
  height: min(62svh, 690px);
  object-fit: contain;
  object-position: bottom center;
  border-radius: 0;
  filter: drop-shadow(0 32px 50px rgba(40,16,38,.16));
}
.home-visual.team-visual:hover img {
  transform: translateY(-4px) scale(1.012);
  filter: drop-shadow(0 38px 58px rgba(40,16,38,.18));
}
.home-visual.team-visual figcaption { display: none; }

.hero-proof {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
}
.avatar-stack {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}
.avatar-stack img,
.avatar-stack span {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  background: var(--bg-soft);
  box-shadow: 0 8px 22px rgba(40,16,38,.12);
}
.avatar-stack img {
  object-fit: cover;
  object-position: center;
  margin-left: -10px;
}
.avatar-stack img:first-child { margin-left: 0; }
.avatar-stack span {
  display: grid;
  place-items: center;
  margin-left: -10px;
  color: var(--wine);
  font-size: .78rem;
  font-weight: 900;
}
.hero-proof p {
  margin: 0;
  display: grid;
  gap: .15rem;
  color: var(--ink);
  font-size: .86rem;
  line-height: 1.25;
}
.hero-proof p strong {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .72rem;
  color: var(--ink);
}
.hero-proof p small {
  color: var(--muted);
  font-size: .82rem;
}

.team-section {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto clamp(3rem, 6vw, 5.5rem);
  padding-top: clamp(2rem, 5vw, 4rem);
  border-top: 1px solid var(--line-strong);
}
.team-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}
.team-member {
  display: grid;
  gap: 1.1rem;
  align-content: start;
  padding: clamp(1.2rem, 3vw, 2rem);
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: rgba(255,255,255,.16);
}
.team-member img {
  width: min(100%, 260px);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 22%;
  border-radius: 50%;
  background: var(--bg-soft);
  justify-self: center;
  filter: drop-shadow(0 18px 32px rgba(40,16,38,.14));
}
.team-member span {
  display: block;
  color: var(--wine);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
  margin-bottom: .4rem;
}
.team-member h3 {
  margin-bottom: .5rem;
  font-size: clamp(1.45rem, 2.4vw, 2.2rem);
}
.team-member p { font-size: .98rem; margin-bottom: 0; }

@media (max-width: 980px) {
  .home-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .home-visual.team-visual {
    min-height: 0;
    order: -1;
    margin-top: .5rem;
  }
  .home-visual.team-visual {
    min-height: 0;
    margin-top: .5rem;
  }
  .home-visual.team-visual img {
    height: min(54svh, 560px);
    width: min(100%, 680px);
  }
  .home-plans-grid,
  .plans-catalog-grid,
  .plans-expanded-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-plans-actions,
  .plans-stack-head { flex-direction: column; align-items: flex-start; }
  .team-list { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero-title { gap: .02em; }
  .home-hero { width: calc(100% - 1.25rem); gap: 1rem; }
  .ornament-line--left,
  .ornament-pill--gold { display: none; }
  .home-visual.team-visual img { height: min(48svh, 460px); width: 100%; }
  .home-plans-grid,
  .plans-catalog-grid,
  .plans-expanded-grid { grid-template-columns: 1fr; }
  .hero-proof { align-items: flex-start; gap: .8rem; }
  .avatar-stack img,
  .avatar-stack span { width: 40px; height: 40px; }
  .team-member img { width: min(78vw, 240px); }
}

@media (max-width: 980px) {
  .home-visual.team-visual { order: initial; }
}

.plan-spotlight:hover { transform: translateY(-4px); }
.plan-spotlight.is-highlighted:hover { transform: translateY(-12px); }
.plan-stack-card:hover { transform: translateY(-3px); border-color: rgba(197,138,69,.42); }
.button-secondary:hover { background: rgba(255,255,255,.98); color: var(--wine); border-color: rgba(116,21,29,.26); }


/* Performance + hero refinement */
body::before,
body.is-loaded .site-header,
.page-hero,
.ornament-orb,
.ornament-line,
.ornament-pill {
  animation: none !important;
}

.home-hero {
  position: relative;
  grid-template-columns: minmax(0, .78fr) minmax(420px, 1.22fr);
  min-height: clamp(600px, 82svh, 900px);
  align-items: end;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding-top: clamp(1rem, 3vw, 2rem);
  overflow: hidden;
}
.home-hero::before,
.home-hero::after {
  content: "";
  position: absolute;
  inset: auto;
  pointer-events: none;
  opacity: .7;
}
.home-hero::before {
  left: -40px;
  top: 10%;
  width: 170px;
  height: 170px;
  border-radius: 36px;
  border: 1px solid rgba(197, 138, 69, .16);
  border-right: 0;
  border-bottom: 0;
}
.home-hero::after {
  right: -10px;
  top: 18%;
  width: 6px;
  height: 140px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(197, 138, 69, .48), rgba(116, 21, 29, .08));
}
.home-hero > .copy-block,
.home-hero > .home-visual {
  position: relative;
  z-index: 1;
}
.copy-block { max-width: 640px; }
.hero-title { max-width: 740px; }
.home-visual.team-visual {
  min-height: clamp(540px, 76svh, 900px);
  justify-items: end;
  align-items: end;
  margin-right: -2.2rem;
}
.home-visual.team-visual img {
  width: min(100%, 860px);
  height: min(84svh, 900px);
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 18px 34px rgba(40,16,38,.12));
  transform: none !important;
  transition: none !important;
}
.home-visual.team-visual:hover img {
  transform: none !important;
  filter: drop-shadow(0 18px 34px rgba(40,16,38,.12)) !important;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  filter: none;
  transition: opacity .42s ease, transform .42s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: none;
}

.button,
.text-link,
.site-nav a,
.plan-showcase-card,
.portfolio-card,
.line-list a,
.line-list .line-item,
.service-table tbody tr {
  will-change: auto;
}
.button::before,
.button::after {
  transition-duration: .2s;
}
.home-visual img,
.portfolio-media img,
.plan-card-cover img,
.service-thumb,
.case-row img,
.plan-cover img {
  transition: transform .28s ease;
  filter: none !important;
}
.portfolio-card:hover .portfolio-media img,
.plan-showcase-card:hover .plan-card-cover img,
.home-visual:hover img,
.case-row:hover img,
.plan-item:hover .plan-cover img {
  transform: none;
}

.editorial-section,
.split-section,
.home-plans-section,
.final-band,
.site-footer,
.portfolio-section,
.reviews-section,
.service-table-wrap,
.plan-list,
.metrics-line,
.home-duo {
  content-visibility: auto;
  contain-intrinsic-size: 1px 900px;
}

@media (max-width: 980px) {
  .home-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    align-items: start;
    gap: 1.2rem;
    width: calc(100% - 1.25rem);
    padding-top: 1rem;
    padding-bottom: 2rem;
  }
  .home-hero::before,
  .home-hero::after {
    display: none;
  }
  .copy-block {
    max-width: none;
  }
  .hero-proof {
    align-items: flex-start;
  }
  .home-visual.team-visual {
    order: 1 !important;
    min-height: 0;
    margin-right: 0;
    justify-items: center;
  }
  .home-visual.team-visual img {
    width: min(100%, 760px);
    height: min(58svh, 560px);
  }
  .button-row {
    gap: .7rem;
  }
  .button-row .button {
    flex: 1 1 240px;
  }
}

@media (max-width: 640px) {
  .home-hero {
    width: calc(100% - 1rem);
    gap: .9rem;
    padding-bottom: 1.4rem;
  }
  .hero-title {
    max-width: 100%;
  }
  .lead {
    max-width: 100%;
  }
  .button-row {
    width: 100%;
  }
  .button-row .button {
    width: 100%;
    min-height: 50px;
  }
  .hero-proof {
    display: grid;
    grid-template-columns: 1fr;
    gap: .8rem;
  }
  .home-visual.team-visual img {
    width: 100%;
    height: min(52svh, 500px);
  }
  .home-plans-section,
  .section-intro,
  .container,
  .text-measure,
  .data-section,
  .legal-page,
  .contact-shell,
  .cases-list,
  .timeline,
  .plan-list,
  .service-table-wrap,
  .case-catalog,
  .reviews-list {
    width: calc(100% - 1rem);
  }
}

@media (max-width: 980px), (hover: none) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.about-story {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
  padding: clamp(2.5rem, 5vw, 4.5rem) 0;
  display: grid;
  grid-template-columns: minmax(280px, .95fr) minmax(0, 1.05fr);
  gap: clamp(1.2rem, 4vw, 3rem);
  align-items: center;
}
.about-story-media {
  margin: 0;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,237,225,.96));
  border: 1px solid rgba(40,16,38,.08);
  padding: clamp(1rem, 2vw, 1.6rem);
}
.about-story-media img {
  width: 100%;
  height: clamp(320px, 45vw, 560px);
  object-fit: contain;
  object-position: bottom center;
}
.about-story-copy p { max-width: 62ch; }
@media (max-width: 980px) {
  .about-story { grid-template-columns: 1fr; width: calc(100% - 1.25rem); }
}
@media (max-width: 640px) {
  .about-story { width: calc(100% - 1rem); padding: 2rem 0; }
  .about-story-media { padding: .7rem; }
  .about-story-media img { height: min(52svh, 420px); }
}


/* Ajuste Nosotros: imagen libre, sin card */
.about-story {
  grid-template-columns: minmax(320px, 1fr) minmax(0, .95fr);
  align-items: end;
}
.about-story-media {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  overflow: visible !important;
}
.about-story-media img {
  height: clamp(420px, 56vw, 720px) !important;
  object-fit: contain;
  object-position: bottom left;
  filter: drop-shadow(0 18px 34px rgba(40,16,38,.10));
}
.about-story-copy {
  padding-bottom: clamp(1rem, 5vw, 5rem);
}

/* Contacto + FAQ comercial */
.contact-options {
  display: grid;
  gap: .8rem;
  margin-top: 1.35rem;
}
.contact-option {
  display: grid;
  grid-template-columns: 44px minmax(0,1fr);
  gap: .9rem;
  align-items: center;
  padding: .9rem 0;
  border-top: 1px solid var(--line);
}
.contact-option:last-child { border-bottom: 1px solid var(--line); }
.contact-option span:first-child {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(197,138,69,.14);
  color: var(--wine);
  font-weight: 900;
}
.contact-option strong { display: block; line-height: 1.1; }
.contact-option small { color: var(--muted); }
.contact-form-panel {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: clamp(1.2rem, 3vw, 2rem) 0;
}
.faq-section {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5.5rem) 0;
}
.faq-layout {
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: start;
}
.faq-list {
  border-top: 1px solid var(--ink);
}
.faq-item {
  border-bottom: 1px solid var(--line-strong);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0;
  color: var(--ink);
  font-weight: 900;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  color: var(--wine);
  font-size: 1.25rem;
  line-height: 1;
}
.faq-item[open] summary::after { content: '–'; }
.faq-item p {
  max-width: 760px;
  margin: 0;
  padding: 0 0 1.2rem;
}
.contact-faq-preview {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto clamp(3rem, 6vw, 5rem);
  padding-top: clamp(1rem, 4vw, 2rem);
}
.contact-faq-preview .faq-list { max-width: 860px; margin-left: auto; }
@media (max-width: 980px) {
  .about-story { grid-template-columns: 1fr; align-items: start; }
  .about-story-copy { padding-bottom: 0; }
  .about-story-media img { height: min(60svh, 560px) !important; width: 100%; object-position: bottom center; }
  .faq-layout { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .faq-section,
  .contact-faq-preview { width: calc(100% - 1rem); }
  .contact-shell { width: calc(100% - 1rem); padding-top: 2.2rem; }
  .contact-option { grid-template-columns: 38px minmax(0,1fr); }
  .contact-option span:first-child { width: 38px; height: 38px; }
}

/* Dock macOS navbar: magnificación por proximidad */
.site-nav {
  --dock-scale: 1;
  isolation: isolate;
}

.site-nav a {
  position: relative;
  transform: translate3d(0, 0, 0) scale(var(--dock-scale, 1));
  transform-origin: center center;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 180ms cubic-bezier(.2, .8, .2, 1),
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.site-nav.is-docking a {
  z-index: 1;
  transition:
    transform 70ms linear,
    background 160ms ease,
    color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.site-nav:not(.is-docking) a {
  --dock-scale: 1;
}

.site-nav .nav-action,
.site-nav .nav-action:hover,
.site-nav a:hover,
.site-nav a.is-active {
  transform: translate3d(0, 0, 0) scale(var(--dock-scale, 1));
}

@media (hover: hover) and (pointer: fine) {
  .site-nav:hover a {
    will-change: transform;
  }
}

@media (hover: none), (pointer: coarse) {
  .site-nav {
    touch-action: none;
    overscroll-behavior: contain;
  }

  .site-nav a {
    transition:
      transform 86ms linear,
      background 160ms ease,
      color 160ms ease,
      border-color 160ms ease;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-nav {
    touch-action: auto;
  }

  .site-nav a {
    --dock-scale: 1 !important;
    transform: none !important;
    transition: background 160ms ease, color 160ms ease, border-color 160ms ease !important;
    will-change: auto;
  }
}



/* Team hover videos */
.team-video-wrap {
  width: min(72vw, 250px);
  aspect-ratio: 1 / 1;
  flex: 0 0 auto;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(40,16,38,.06);
}
.team-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 14%;
  transform: translate3d(0, 0, 0) scale(1.01);
  will-change: transform;
  backface-visibility: hidden;
  cursor: pointer;
}
.team-member:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 6px;
}
.team-member.is-video-playing .team-video {
  transform: translate3d(0, 0, 0) scale(1.035);
}
.about-story-media {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
}
@media (max-width: 640px) {
  .team-video-wrap {
    width: min(78vw, 240px);
    margin-inline: auto;
  }
  .team-video {
    object-position: center 12%;
  }
}




/* Cookie icon system */
:root {
  --cookie-brown: #6b371c;
  --cookie-cream: #f4d08b;
}
.cookie-icon,
.contact-option span:first-child,
.faq-item summary::after,
.values-grid article::after {
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.contact-option span:first-child {
  width: 54px;
  height: 54px;
  border-radius: 0;
  display: grid;
  place-items: center;
  background-image: url('../img/ui/cookie-vanilla.png');
  background-color: transparent;
  color: var(--cookie-brown);
  font-size: 1.1rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 12px 24px rgba(40, 16, 38, .09);
  transition: transform .22s ease;
}
.contact-option:nth-child(even) span:first-child {
  background-image: url('../img/ui/cookie-chocolate.png');
  color: var(--cookie-cream);
}
.contact-option:hover span:first-child,
.contact-option:focus-visible span:first-child {
  transform: translateY(-2px) scale(1.04);
}

.values-grid article {
  position: relative;
  padding-top: clamp(6.2rem, 8vw, 7rem);
}
.values-grid article::before,
.values-grid article::after {
  position: absolute;
  left: clamp(1.2rem, 3vw, 1.8rem);
  top: clamp(1.2rem, 3vw, 1.6rem);
}
.values-grid article::before {
  content: '';
  width: 58px;
  height: 58px;
  background-image: url('../img/ui/cookie-vanilla.png');
  background-size: cover;
  background-repeat: no-repeat;
}
.values-grid article::after {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  color: var(--cookie-brown);
  font-size: 1.2rem;
  font-weight: 900;
  content: '◎';
}
.values-grid article:nth-child(2)::before {
  background-image: url('../img/ui/cookie-chocolate.png');
}
.values-grid article:nth-child(2)::after {
  content: '✦';
  color: var(--cookie-cream);
}
.values-grid article:nth-child(3)::after {
  content: '↗';
}

.faq-item summary {
  align-items: center;
  padding-right: .3rem;
}
.faq-item summary::after {
  content: '+';
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background-image: url('../img/ui/cookie-vanilla.png');
  color: var(--cookie-brown);
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1;
}
.faq-item:nth-child(even) summary::after {
  background-image: url('../img/ui/cookie-chocolate.png');
  color: var(--cookie-cream);
}
.faq-item[open] summary::after { content: '–'; }

@media (max-width: 640px) {
  .contact-option span:first-child {
    width: 46px;
    height: 46px;
    font-size: 1rem;
  }
  .values-grid article::before,
  .values-grid article::after {
    width: 50px;
    height: 50px;
  }
  .faq-item summary::after {
    width: 40px;
    height: 40px;
  }
}


/* Expanded cookie icon decoration system */
:root {
  --cookie-size-sm: 38px;
  --cookie-size-md: 54px;
  --cookie-size-lg: 68px;
}

.section-label::before {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border-radius: 0;
  background: url('../img/ui/cookie-vanilla.png') center / contain no-repeat;
  box-shadow: none;
}
.page-hero .section-label::before,
.final-band .section-label::before,
.site-footer .section-label::before {
  background-image: url('../img/ui/cookie-chocolate.png');
}

.line-list a,
.line-list .line-item {
  grid-template-columns: 58px minmax(0, 1fr) auto;
}
.line-list a > span,
.line-list .line-item > span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  justify-self: start;
  border-radius: 0;
  background: url('../img/ui/cookie-vanilla.png') center / contain no-repeat;
  color: var(--cookie-brown);
  font-size: .76rem;
  font-weight: 950;
  line-height: 1;
  box-shadow: 0 12px 22px rgba(40,16,38,.08);
}
.line-list a:nth-child(even) > span,
.line-list .line-item:nth-child(even) > span {
  background-image: url('../img/ui/cookie-chocolate.png');
  color: var(--cookie-cream);
}

.duo-panel,
.portfolio-card,
.review-item,
.plan-showcase-card,
.contact-form-panel,
.legal-page article {
  position: relative;
}
.duo-panel::before,
.portfolio-card::before,
.review-item::before,
.plan-showcase-card::before,
.contact-form-panel::before,
.legal-page article::before {
  content: '';
  width: var(--cookie-size-md);
  height: var(--cookie-size-md);
  position: absolute;
  top: clamp(.8rem, 2vw, 1.1rem);
  right: clamp(.7rem, 2vw, 1rem);
  z-index: 0;
  background: url('../img/ui/cookie-vanilla.png') center / contain no-repeat;
  opacity: .24;
  pointer-events: none;
}
.duo-panel:nth-child(even)::before,
.portfolio-card:nth-child(even)::before,
.review-item:nth-child(even)::before,
.plan-showcase-card:nth-child(even)::before,
.legal-page article:nth-child(even)::before {
  background-image: url('../img/ui/cookie-chocolate.png');
  opacity: .2;
}
.duo-panel > *,
.portfolio-card > *,
.review-item > *,
.plan-showcase-card > *,
.contact-form-panel > *,
.legal-page article > * {
  position: relative;
  z-index: 1;
}

.plan-card-kicker {
  align-items: center;
  gap: .5rem;
}
.plan-card-kicker::before {
  content: '✦';
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: url('../img/ui/cookie-chocolate.png') center / contain no-repeat;
  color: var(--cookie-cream);
  font-size: .78rem;
  letter-spacing: 0;
}
.plan-showcase-card:nth-child(even) .plan-card-kicker::before {
  background-image: url('../img/ui/cookie-vanilla.png');
  color: var(--cookie-brown);
}
.plan-card-features li {
  padding-left: 1.55rem;
}
.plan-card-features li::before,
.feature-list li::before {
  width: 15px;
  height: 15px;
  top: .24rem;
  border-radius: 0;
  background: url('../img/ui/cookie-vanilla.png') center / contain no-repeat;
  box-shadow: none;
  opacity: .95;
}

.service-table tbody tr {
  position: relative;
}
.service-table tbody td:first-child {
  position: relative;
  padding-left: 1rem;
}
.service-table tbody td:first-child::before {
  content: '◆';
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin-bottom: .55rem;
  background: url('../img/ui/cookie-vanilla.png') center / contain no-repeat;
  color: var(--cookie-brown);
  font-size: .7rem;
  font-weight: 900;
}
.service-table tbody tr:nth-child(even) td:first-child::before {
  content: '✦';
  background-image: url('../img/ui/cookie-chocolate.png');
  color: var(--cookie-cream);
}

.timeline li {
  grid-template-columns: 118px minmax(0, 1fr);
  position: relative;
}
.timeline li::before {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  align-self: start;
  background: url('../img/ui/cookie-vanilla.png') center / contain no-repeat;
  color: var(--cookie-brown);
  font-size: clamp(1.05rem, 2.6vw, 1.75rem);
  letter-spacing: -.04em;
}
.timeline li:nth-child(even)::before {
  background-image: url('../img/ui/cookie-chocolate.png');
  color: var(--cookie-cream);
}

.metrics-line span {
  position: relative;
  display: grid;
  gap: .15rem;
  padding-left: 5.15rem;
  min-height: 86px;
}
.metrics-line span::before {
  content: '✓';
  position: absolute;
  left: 1rem;
  top: 50%;
  width: 52px;
  height: 52px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  background: url('../img/ui/cookie-vanilla.png') center / contain no-repeat;
  color: var(--cookie-brown);
  font-size: .9rem;
  font-weight: 900;
}
.metrics-line span:nth-child(2)::before {
  content: '↗';
  background-image: url('../img/ui/cookie-chocolate.png');
  color: var(--cookie-cream);
}
.metrics-line span:nth-child(3)::before {
  content: '✦';
}

.badge,
.plan-card-badge {
  gap: .35rem;
}
.badge::before,
.plan-card-badge::before {
  content: '';
  width: 16px;
  height: 16px;
  display: inline-block;
  flex: 0 0 auto;
  background: url('../img/ui/cookie-vanilla.png') center / contain no-repeat;
}
.plan-card-badge::before {
  background-image: url('../img/ui/cookie-chocolate.png');
}

.review-item {
  padding-top: clamp(2.6rem, 4vw, 3.4rem);
}
.review-item::before {
  width: 44px;
  height: 44px;
  top: .75rem;
  right: auto;
  left: clamp(1rem, 2vw, 1.4rem);
  opacity: .8;
}
.review-item:nth-child(even)::before {
  opacity: .82;
}

.portfolio-metrics span {
  position: relative;
  padding-left: 2.2rem;
}
.portfolio-metrics span::before {
  content: '';
  position: absolute;
  left: 0;
  top: .55rem;
  width: 24px;
  height: 24px;
  background: url('../img/ui/cookie-vanilla.png') center / contain no-repeat;
}
.portfolio-metrics span:nth-child(even)::before {
  background-image: url('../img/ui/cookie-chocolate.png');
}

.case-story article,
.detail-services span,
.detail-metrics li,
.case-progress li,
.client-data div {
  position: relative;
}
.case-story article::before,
.detail-services span::before,
.detail-metrics li::before,
.case-progress li::after,
.client-data div::before {
  content: '';
  width: 22px;
  height: 22px;
  display: inline-block;
  vertical-align: middle;
  margin-right: .4rem;
  background: url('../img/ui/cookie-vanilla.png') center / contain no-repeat;
}
.case-story article:nth-child(even)::before,
.detail-services span:nth-child(even)::before,
.detail-metrics li:nth-child(even)::before,
.case-progress li:nth-child(even)::after,
.client-data div:nth-child(even)::before {
  background-image: url('../img/ui/cookie-chocolate.png');
}

.contact-form label::before {
  content: '';
  width: 22px;
  height: 22px;
  display: inline-block;
  margin-right: .35rem;
  vertical-align: middle;
  background: url('../img/ui/cookie-vanilla.png') center / contain no-repeat;
}
.contact-form label:nth-child(even)::before {
  background-image: url('../img/ui/cookie-chocolate.png');
}

.footer-grid h3::before {
  content: '';
  width: 22px;
  height: 22px;
  display: inline-block;
  margin-right: .35rem;
  vertical-align: -5px;
  background: url('../img/ui/cookie-chocolate.png') center / contain no-repeat;
}

@media (max-width: 980px) {
  .timeline li {
    grid-template-columns: 88px minmax(0, 1fr);
  }
  .timeline li::before {
    width: 68px;
    height: 68px;
  }
  .metrics-line span {
    padding-left: 4.35rem;
  }
  .metrics-line span::before {
    width: 44px;
    height: 44px;
  }
}
@media (max-width: 640px) {
  .line-list a,
  .line-list .line-item {
    grid-template-columns: 50px minmax(0, 1fr);
  }
  .line-list a > span,
  .line-list .line-item > span {
    width: 42px;
    height: 42px;
    font-size: .7rem;
  }
  .timeline li {
    grid-template-columns: 1fr;
  }
  .timeline li::before {
    width: 58px;
    height: 58px;
  }
  .metrics-line span {
    min-height: 72px;
    padding-left: 4rem;
  }
  .duo-panel::before,
  .portfolio-card::before,
  .plan-showcase-card::before,
  .legal-page article::before {
    width: 44px;
    height: 44px;
    opacity: .18;
  }
}


/* Icon usage plan v2 + iPhone-style navbar
   - Navbar: cookie icons are primary navigation markers. Active/current section uses chocolate.
   - Cards: no decorative cookie watermark over plan images; icons only in labels, lists and actions.
   - Content blocks: cookies act as small semantic markers, not background noise.
*/
.plan-showcase-card::before,
.plan-showcase-card:nth-child(even)::before {
  display: none !important;
}
.plan-card-cover::before,
.plan-card-cover::after {
  content: none !important;
  display: none !important;
}

.site-header {
  gap: clamp(.8rem, 1.5vw, 1.4rem);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: .28rem;
  padding: .34rem;
  border: 1px solid rgba(40,16,38,.1);
  border-radius: 999px;
  background: rgba(255, 250, 243, .78);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.72),
    0 14px 34px rgba(40,16,38,.08);
  backdrop-filter: blur(14px);
  overflow: visible;
}
.site-nav a {
  min-height: 43px;
  display: inline-flex;
  align-items: center;
  gap: .44rem;
  padding: .37rem .68rem .37rem .42rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: rgba(40,16,38,.78);
  font-size: .79rem;
  font-weight: 850;
  line-height: 1;
  letter-spacing: -.015em;
  background: rgba(255,255,255,.26);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.48);
}
.site-nav a::before {
  content: '•';
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  display: grid;
  place-items: center;
  border-radius: 0;
  background: url('../img/ui/cookie-vanilla.png') center / contain no-repeat;
  color: var(--cookie-brown);
  font-size: .83rem;
  font-weight: 950;
  line-height: 1;
  transform: translate3d(0,0,0);
  transition: transform .2s ease, filter .2s ease;
}
.site-nav a:nth-child(1)::before { content: '⌂'; }
.site-nav a:nth-child(2)::before { content: '✦'; }
.site-nav a:nth-child(3)::before { content: '▣'; }
.site-nav a:nth-child(4)::before { content: '↗'; }
.site-nav a:nth-child(5)::before { content: '◆'; }
.site-nav a:nth-child(6)::before { content: '★'; }
.site-nav a:nth-child(7)::before { content: '◎'; }
.site-nav a:nth-child(8)::before { content: '?'; }
.site-nav a:nth-child(9)::before { content: '✉'; }
.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
  background: rgba(255,255,255,.74);
  border-color: rgba(40,16,38,.08);
  box-shadow: 0 10px 22px rgba(40,16,38,.08), inset 0 1px 0 rgba(255,255,255,.7);
}
.site-nav a:hover::before,
.site-nav a:focus-visible::before {
  transform: translateY(-1px) scale(1.08);
}
.site-nav a.is-active,
.site-nav a.is-active:hover,
.site-nav .nav-action,
.site-nav .nav-action:hover,
.site-nav .nav-action.is-active {
  color: var(--cookie-cream);
  background: linear-gradient(180deg, #7a3f20 0%, #5d2f18 100%);
  border-color: rgba(58,29,15,.28);
  box-shadow:
    0 12px 26px rgba(93,47,24,.24),
    inset 0 1px 0 rgba(255,255,255,.16);
}
.site-nav a.is-active::before,
.site-nav .nav-action::before {
  background-image: url('../img/ui/cookie-chocolate.png');
  color: var(--cookie-cream);
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.12));
}
.site-nav .nav-action {
  margin-left: .15rem;
  padding-right: .82rem;
}
.site-nav .nav-action::after {
  display: none !important;
}
.site-nav.is-docking a {
  transition:
    transform 64ms linear,
    background 170ms ease,
    color 170ms ease,
    border-color 170ms ease,
    box-shadow 170ms ease;
}

.plan-card-kicker::before { content: '▣'; }
.plan-showcase-card:nth-child(2) .plan-card-kicker::before { content: '↗'; }
.plan-showcase-card:nth-child(3) .plan-card-kicker::before { content: '⚙'; }
.plan-showcase-card:nth-child(4) .plan-card-kicker::before { content: '✦'; }
.plan-showcase-card:nth-child(5) .plan-card-kicker::before { content: '◎'; }

.line-list a > span,
.line-list .line-item > span {
  font-size: 0 !important;
}
.line-list a > span::after,
.line-list .line-item > span::after {
  content: '◆';
  font-size: .95rem;
  line-height: 1;
}
.line-list a:nth-child(1) > span::after,
.line-list .line-item:nth-child(1) > span::after { content: '✎'; }
.line-list a:nth-child(2) > span::after,
.line-list .line-item:nth-child(2) > span::after { content: '☰'; }
.line-list a:nth-child(3) > span::after,
.line-list .line-item:nth-child(3) > span::after { content: '⚙'; }
.line-list a:nth-child(4) > span::after,
.line-list .line-item:nth-child(4) > span::after { content: '↗'; }
.split-section .line-list a:nth-child(1) > span::after { content: '▣'; }
.split-section .line-list a:nth-child(2) > span::after { content: '✦'; }
.split-section .line-list a:nth-child(3) > span::after { content: '◆'; }

.values-grid article:nth-child(1)::after { content: '✓'; }
.values-grid article:nth-child(2)::after { content: '◈'; }
.values-grid article:nth-child(3)::after { content: '↗'; }
.service-table tbody td:first-child::before { content: '✦'; }
.service-table tbody tr:nth-child(2) td:first-child::before { content: '✎'; }
.service-table tbody tr:nth-child(3) td:first-child::before { content: '⌂'; }
.service-table tbody tr:nth-child(4) td:first-child::before { content: '⚙'; }
.service-table tbody tr:nth-child(5) td:first-child::before { content: '↗'; }

@media (max-width: 1180px) {
  .site-nav a {
    padding-inline: .38rem .5rem;
    font-size: .74rem;
    gap: .32rem;
  }
  .site-nav a::before {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
  }
}
@media (max-width: 980px) {
  .site-nav {
    inset: .6rem .6rem auto .6rem;
    padding: calc(var(--header-h) + .9rem) .8rem .9rem;
    gap: .5rem;
    border-radius: 30px;
    background: rgba(255, 250, 243, .98);
    box-shadow: 0 22px 70px rgba(40,16,38,.16);
  }
  .site-nav a {
    min-height: 56px;
    justify-content: flex-start;
    padding: .55rem .75rem;
    border-radius: 22px;
    font-size: .96rem;
    background: rgba(255,255,255,.52);
  }
  .site-nav a::before {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    font-size: 1rem;
  }
  .site-nav .nav-action {
    margin-left: 0;
  }
}
@media (max-width: 640px) {
  .site-nav {
    inset: .5rem .5rem auto .5rem;
    border-radius: 26px;
  }
  .site-nav a {
    min-height: 52px;
  }
}

/* Cookie icon audit fix: remove square artifacts and hard-center glyphs */
:root {
  --cookie-icon-brown: #6b371c;
  --cookie-icon-cream: #f4d08b;
}

/* Never let cookie-backed icons inherit panel/button backgrounds. */
.site-nav a::before,
.section-label::before,
.line-list a > span,
.line-list .line-item > span,
.contact-option span:first-child,
.faq-item summary::after,
.values-grid article::before,
.values-grid article::after,
.plan-card-kicker::before,
.plan-card-features li::before,
.feature-list li::before,
.service-table tbody td:first-child::before,
.timeline li::before,
.metrics-line span::before,
.badge::before,
.plan-card-badge::before,
.portfolio-metrics span::before,
.case-story article::before,
.detail-services span::before,
.detail-metrics li::before,
.case-progress li::after,
.client-data div::before,
.contact-form label::before,
.footer-grid h3::before {
  background-color: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
  filter: none !important;
  text-shadow: none !important;
  overflow: visible !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: contain !important;
}

/* Shared centering for glyphs drawn directly on the cookie image. */
.site-nav a::before,
.contact-option span:first-child,
.faq-item summary::after,
.plan-card-kicker::before,
.service-table tbody td:first-child::before,
.timeline li::before,
.metrics-line span::before {
  display: inline-grid !important;
  place-items: center !important;
  place-content: center !important;
  text-align: center !important;
  font-family: "Plus Jakarta Sans", Arial, sans-serif !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
  vertical-align: middle !important;
}

/* Row/link cookies: cookie on the host, semantic icon on a perfectly centered pseudo-element. */
.line-list a > span,
.line-list .line-item > span {
  position: relative !important;
  display: inline-grid !important;
  place-items: center !important;
  place-content: center !important;
  width: 50px !important;
  height: 50px !important;
  min-width: 50px !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  background-color: transparent !important;
}
.line-list a > span::before,
.line-list .line-item > span::before {
  content: none !important;
  display: none !important;
}
.line-list a > span::after,
.line-list .line-item > span::after {
  position: absolute !important;
  inset: 0 !important;
  display: grid !important;
  place-items: center !important;
  place-content: center !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  color: var(--cookie-icon-brown) !important;
  font-family: "Plus Jakarta Sans", Arial, sans-serif !important;
  font-size: 1rem !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  text-align: center !important;
  transform: translateY(-1px) !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
}
.line-list a:nth-child(even) > span::after,
.line-list .line-item:nth-child(even) > span::after {
  color: var(--cookie-icon-cream) !important;
}

/* Values grid uses two clean layers: cookie background + centered glyph. */
.values-grid article::before,
.values-grid article::after {
  left: clamp(1.2rem, 3vw, 1.8rem) !important;
  top: clamp(1.2rem, 3vw, 1.6rem) !important;
  width: 58px !important;
  height: 58px !important;
}
.values-grid article::before {
  display: block !important;
}
.values-grid article::after {
  display: grid !important;
  place-items: center !important;
  place-content: center !important;
  background: none !important;
  color: var(--cookie-icon-brown) !important;
  font-family: "Plus Jakarta Sans", Arial, sans-serif !important;
  font-size: 1.05rem !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  transform: translateY(-1px) !important;
}
.values-grid article:nth-child(2)::after {
  color: var(--cookie-icon-cream) !important;
}

/* Contact, FAQ and plan/service glyph positioning. */
.contact-option span:first-child {
  flex: 0 0 54px !important;
  width: 54px !important;
  height: 54px !important;
  min-width: 54px !important;
  padding: 0 !important;
  margin: 0 !important;
  color: var(--cookie-icon-brown) !important;
  font-size: 1.05rem !important;
  transform: translateZ(0) !important;
}
.contact-option:nth-child(even) span:first-child {
  color: var(--cookie-icon-cream) !important;
}
.faq-item summary::after {
  flex: 0 0 44px !important;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  margin: 0 !important;
  color: var(--cookie-icon-brown) !important;
  font-size: 1.1rem !important;
  transform: translateY(-1px) !important;
}
.faq-item:nth-child(even) summary::after {
  color: var(--cookie-icon-cream) !important;
}
.plan-card-kicker::before,
.service-table tbody td:first-child::before,
.metrics-line span::before {
  transform: none !important;
}
.plan-card-kicker::before {
  font-size: .82rem !important;
}
.service-table tbody td:first-child::before {
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.timeline li::before {
  justify-self: start !important;
  padding: 0 !important;
  margin: 0 !important;
  transform: none !important;
}

/* Navbar cookies: keep the iPhone dock feel but remove any square/halo around icons. */
.site-nav a::before {
  width: 32px !important;
  height: 32px !important;
  flex: 0 0 32px !important;
  min-width: 32px !important;
  padding: 0 !important;
  margin: 0 !important;
  font-size: .9rem !important;
  transform: translateY(-1px) translateZ(0) !important;
}
.site-nav a:hover::before,
.site-nav a:focus-visible::before {
  transform: translateY(-2px) scale(1.07) translateZ(0) !important;
}
.site-nav a.is-active::before,
.site-nav .nav-action::before {
  filter: none !important;
}

/* Remove all cookie watermarks from card media and decorative card backgrounds. */
.plan-card-cover::before,
.plan-card-cover::after,
.plan-showcase-card::before,
.plan-showcase-card::after,
.duo-panel::before,
.portfolio-card::before,
.review-item::before,
.contact-form-panel::before,
.legal-page article::before {
  content: none !important;
  display: none !important;
  background: none !important;
}

/* Small inline cookie bullets are decorative; ensure they do not create square artifacts. */
.plan-card-features li::before,
.feature-list li::before,
.badge::before,
.plan-card-badge::before,
.portfolio-metrics span::before,
.case-story article::before,
.detail-services span::before,
.detail-metrics li::before,
.case-progress li::after,
.client-data div::before,
.contact-form label::before,
.footer-grid h3::before {
  opacity: 1 !important;
  background-color: transparent !important;
}

@media (max-width: 1180px) {
  .site-nav a::before {
    width: 29px !important;
    height: 29px !important;
    flex-basis: 29px !important;
    min-width: 29px !important;
    font-size: .82rem !important;
  }
}
@media (max-width: 980px) {
  .site-nav a::before {
    width: 38px !important;
    height: 38px !important;
    flex-basis: 38px !important;
    min-width: 38px !important;
    font-size: 1rem !important;
  }
  .line-list a > span,
  .line-list .line-item > span {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
  }
}
@media (max-width: 640px) {
  .line-list a > span,
  .line-list .line-item > span {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
  }
  .line-list a > span::after,
  .line-list .line-item > span::after {
    font-size: .9rem !important;
  }
  .contact-option span:first-child {
    flex-basis: 46px !important;
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
  }
  .values-grid article::before,
  .values-grid article::after {
    width: 50px !important;
    height: 50px !important;
  }
  .faq-item summary::after {
    width: 40px !important;
    height: 40px !important;
    flex-basis: 40px !important;
    min-width: 40px !important;
  }
}

/* Global contrast + cookie icon audit v4
   Scope: all current pages, dynamic cards and modal content.
   Goal: readable text on every surface and cookie icons without square artifacts. */
:root {
  --text-on-light: #281026;
  --text-muted-on-light: #513a4e;
  --text-soft-on-light: #604b5c;
  --text-on-dark: #fff7ee;
  --text-muted-on-dark: rgba(255, 247, 238, .86);
  --cookie-brown-safe: #5d2f18;
  --cookie-cream-safe: #f8d99d;
}

body { color: var(--text-on-light); }
p,
.lead,
.plan-card-body p,
.plan-card-price span,
.plan-card-features li,
.plan-summary,
.plan-note,
.plan-stack-card p,
.plan-stack-meta span,
.service-table ul,
.review-person span,
.review-item p,
.detail-metrics span,
.contact-option small,
.faq-item p,
.legal-page p,
.form-note,
.line-list em,
.metrics-line span,
.home-visual span,
.brand-name small {
  color: var(--text-muted-on-light) !important;
}

.section-label,
.plan-card-kicker,
.duo-panel .kicker,
.plan-kicker,
.case-detail-head .section-label,
.contact-option strong,
.review-person strong,
.client-data a,
.case-metric,
.review-item footer em {
  color: var(--wine) !important;
}

.line-list strong,
.plan-card-body h3,
.plan-card-price strong,
.metrics-line strong,
.values-grid h2,
.service-table h3,
.faq-item summary,
.legal-page h1,
.legal-page h2,
.contact-form label,
input,
textarea,
select {
  color: var(--text-on-light) !important;
}

.button-gold,
.plan-card-badge,
.plan-pick {
  color: #24100a !important;
}
.plan-card-badge {
  background: linear-gradient(135deg, #f6d795, #c58a45) !important;
}
.badge {
  color: var(--text-on-light) !important;
  background: rgba(40, 16, 38, .075) !important;
}
.filter-btn.is-active,
.button-dark,
.site-nav a.is-active,
.site-nav .nav-action,
.site-nav .nav-action:hover,
.site-nav .nav-action.is-active {
  color: var(--text-on-dark) !important;
}

.page-hero,
.final-band,
.site-footer,
.footer-conversion,
.case-modal-panel .button-dark {
  color: var(--text-on-dark) !important;
}
.page-hero p,
.page-hero .lead,
.page-hero .section-label,
.final-band p,
.final-band .section-label,
.site-footer p,
.site-footer a,
.site-footer .brand-name small,
.site-footer .footer-bottom,
.site-footer .section-label,
.footer-conversion .section-label {
  color: var(--text-muted-on-dark) !important;
}
.page-hero h1,
.final-band h2,
.site-footer h2,
.site-footer .brand-name strong,
.site-footer a:hover {
  color: var(--text-on-dark) !important;
}
.footer-grid h3 {
  color: #f0c986 !important;
}

/* Cookie hosts: no inherited boxes, no colored squares, no halos. */
.site-nav a::before,
.section-label::before,
.line-list a > span,
.line-list .line-item > span,
.contact-option span:first-child,
.faq-item summary::after,
.values-grid article::before,
.plan-card-kicker::before,
.plan-card-features li::before,
.feature-list li::before,
.service-table tbody td:first-child::before,
.timeline li::before,
.metrics-line span::before,
.badge::before,
.plan-card-badge::before,
.portfolio-metrics span::before,
.case-story article::before,
.detail-services span::before,
.detail-metrics li::before,
.case-progress li::after,
.client-data div::before,
.contact-form label::before,
.footer-grid h3::before {
  background-color: transparent !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: contain !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
  text-shadow: none !important;
  overflow: visible !important;
}

/* Direct glyph cookie hosts: mathematically centered. */
.site-nav a::before,
.contact-option span:first-child,
.faq-item summary::after,
.plan-card-kicker::before,
.service-table tbody td:first-child::before,
.timeline li::before,
.metrics-line span::before {
  display: inline-grid !important;
  place-items: center !important;
  place-content: center !important;
  text-align: center !important;
  font-family: "Plus Jakarta Sans", Arial, sans-serif !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  vertical-align: middle !important;
}

/* Cookie contrast by surface: dark/chocolate areas get vanilla cookies. */
.page-hero .section-label::before,
.final-band .section-label::before,
.site-footer .section-label::before,
.site-footer .footer-grid h3::before,
.site-nav a.is-active::before,
.site-nav .nav-action::before,
.filter-btn.is-active::before,
.button-dark::before,
.button-gold::before {
  background-image: url('../img/ui/cookie-vanilla.png') !important;
  color: var(--cookie-brown-safe) !important;
}

/* Light surfaces can alternate; chocolate cookies only where contrast is safe. */
.section-label::before,
.line-list a:nth-child(odd) > span,
.line-list .line-item:nth-child(odd) > span,
.contact-option:nth-child(odd) span:first-child,
.faq-item:nth-child(odd) summary::after,
.values-grid article:nth-child(odd)::before,
.plan-showcase-card:nth-child(even) .plan-card-kicker::before,
.service-table tbody tr:nth-child(odd) td:first-child::before,
.timeline li:nth-child(odd)::before,
.metrics-line span:nth-child(odd)::before {
  background-image: url('../img/ui/cookie-vanilla.png') !important;
  color: var(--cookie-brown-safe) !important;
}
.line-list a:nth-child(even) > span,
.line-list .line-item:nth-child(even) > span,
.contact-option:nth-child(even) span:first-child,
.faq-item:nth-child(even) summary::after,
.values-grid article:nth-child(even)::before,
.plan-showcase-card:nth-child(odd) .plan-card-kicker::before,
.service-table tbody tr:nth-child(even) td:first-child::before,
.timeline li:nth-child(even)::before,
.metrics-line span:nth-child(even)::before {
  background-image: url('../img/ui/cookie-chocolate.png') !important;
  color: var(--cookie-cream-safe) !important;
}

/* Line-list icons: fixes the visible square behind cookies in “Separado por páginas…” and similar blocks. */
.line-list a,
.line-list .line-item {
  align-items: center !important;
}
.line-list a > span,
.line-list .line-item > span {
  position: relative !important;
  display: inline-grid !important;
  place-items: center !important;
  place-content: center !important;
  width: 50px !important;
  height: 50px !important;
  min-width: 50px !important;
  padding: 0 !important;
  margin: 0 !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  background-color: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.line-list a > span::before,
.line-list .line-item > span::before {
  content: none !important;
  display: none !important;
}
.line-list a > span::after,
.line-list .line-item > span::after {
  position: absolute !important;
  inset: 0 !important;
  display: grid !important;
  place-items: center !important;
  place-content: center !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: var(--cookie-brown-safe) !important;
  font-family: "Plus Jakarta Sans", Arial, sans-serif !important;
  font-size: 1rem !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  text-align: center !important;
  transform: translateY(-1px) !important;
}
.line-list a:nth-child(even) > span::after,
.line-list .line-item:nth-child(even) > span::after {
  color: var(--cookie-cream-safe) !important;
}

/* Values grid: separate cookie and glyph layers, both centered. */
.values-grid article::before,
.values-grid article::after {
  left: clamp(1.2rem, 3vw, 1.8rem) !important;
  top: clamp(1.2rem, 3vw, 1.6rem) !important;
  width: 58px !important;
  height: 58px !important;
  padding: 0 !important;
  margin: 0 !important;
}
.values-grid article::before {
  content: '' !important;
  display: block !important;
}
.values-grid article::after {
  display: grid !important;
  place-items: center !important;
  place-content: center !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: var(--cookie-brown-safe) !important;
  font-family: "Plus Jakarta Sans", Arial, sans-serif !important;
  font-size: 1.04rem !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  transform: translateY(-1px) !important;
}
.values-grid article:nth-child(even)::after {
  color: var(--cookie-cream-safe) !important;
}

/* Contact + FAQ: centered and contrast-safe. */
.contact-option span:first-child {
  flex: 0 0 54px !important;
  width: 54px !important;
  height: 54px !important;
  min-width: 54px !important;
  padding: 0 !important;
  margin: 0 !important;
  font-size: 1.05rem !important;
  transform: translateZ(0) !important;
}
.contact-option:hover span:first-child,
.contact-option:focus-visible span:first-child {
  transform: translateY(-2px) scale(1.035) translateZ(0) !important;
}
.faq-item summary::after {
  flex: 0 0 44px !important;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  padding: 0 !important;
  margin: 0 !important;
  font-size: 1.1rem !important;
  transform: translateY(-1px) !important;
}

/* Navbar: selected item remains chocolate, but its cookie switches to vanilla for visibility. */
.site-nav a.is-active,
.site-nav .nav-action,
.site-nav .nav-action:hover,
.site-nav .nav-action.is-active {
  background: linear-gradient(180deg, #7a3f20 0%, #5d2f18 100%) !important;
  color: var(--text-on-dark) !important;
}
.site-nav a.is-active::before,
.site-nav .nav-action::before,
.site-nav .nav-action:hover::before {
  background-image: url('../img/ui/cookie-vanilla.png') !important;
  color: var(--cookie-brown-safe) !important;
  filter: none !important;
}
.site-nav a::before {
  display: grid !important;
  place-items: center !important;
  place-content: center !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

/* Remove remaining decorative cookie watermarks from card/media backgrounds. */
.plan-card-cover::before,
.plan-card-cover::after,
.plan-showcase-card::before,
.plan-showcase-card::after,
.duo-panel::before,
.portfolio-card::before,
.review-item::before,
.contact-form-panel::before,
.legal-page article::before {
  content: none !important;
  display: none !important;
  background: transparent !important;
}

/* Inline decorative cookie bullets should never create boxed artifacts. */
.plan-card-features li::before,
.feature-list li::before,
.badge::before,
.plan-card-badge::before,
.portfolio-metrics span::before,
.case-story article::before,
.detail-services span::before,
.detail-metrics li::before,
.case-progress li::after,
.client-data div::before,
.contact-form label::before,
.footer-grid h3::before {
  background-color: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
}

@media (max-width: 980px) {
  .site-nav {
    background: rgba(255, 250, 243, .985) !important;
    color: var(--text-on-light) !important;
  }
  .site-nav a {
    color: var(--text-on-light) !important;
  }
  .site-nav a::before {
    width: 38px !important;
    height: 38px !important;
    flex-basis: 38px !important;
    min-width: 38px !important;
  }
  .line-list a > span,
  .line-list .line-item > span {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
  }
}
@media (max-width: 640px) {
  .line-list a > span,
  .line-list .line-item > span {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
  }
  .line-list a > span::after,
  .line-list .line-item > span::after {
    font-size: .9rem !important;
  }
  .contact-option span:first-child {
    flex-basis: 46px !important;
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
  }
  .values-grid article::before,
  .values-grid article::after {
    width: 50px !important;
    height: 50px !important;
  }
  .faq-item summary::after {
    width: 40px !important;
    height: 40px !important;
    flex-basis: 40px !important;
    min-width: 40px !important;
  }
}

/* Final text contrast polish for accent titles/stars. */
.home-hero .title-accent,
.final-band .title-accent,
.split-section .title-accent,
.editorial-section .title-accent {
  color: var(--wine) !important;
}
.page-hero .title-accent {
  color: #f0c986 !important;
}
.review-item footer span {
  color: var(--wine) !important;
}
.case-progress li > span,
.case-testimonial cite,
.timeline h2 + p strong,
.case-detail-grid h3,
.detail-services h3,
.case-progress h3,
.case-gallery h3,
.case-links h3 {
  color: var(--wine) !important;
}

/* Button interaction cleanup: remove inherited shine/cookie pseudo layers from every button. */
.button::before,
a.button::before,
button.button::before,
.nav-action.button::before,
.button-dark::before,
.button-gold::before,
.button-light::before,
.button-outline::before,
.button-secondary::before {
  content: none !important;
  display: none !important;
  background: none !important;
  background-image: none !important;
  transform: none !important;
  transition: none !important;
}

.button {
  position: relative;
  isolation: auto;
  overflow: visible;
  z-index: auto;
}

.button::after,
a.button::after,
button.button::after {
  content: "↗" !important;
  position: relative !important;
  inset: auto !important;
  width: auto !important;
  height: auto !important;
  display: inline-grid !important;
  place-items: center !important;
  background: none !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  color: currentColor !important;
  font-size: .92em !important;
  line-height: 1 !important;
  transform: translate(0, 0) !important;
  transition: transform .18s ease !important;
}

.button:hover::after,
a.button:hover::after,
button.button:hover::after {
  transform: translate(2px, -2px) !important;
}

.button:focus-visible {
  outline: 2px solid rgba(197, 138, 69, .75);
  outline-offset: 4px;
}


/* Chocolate product system — reusable for plans and future services */
.plan-showcase-card.plan-chocolate-card {
  display: block;
  min-height: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  isolation: isolate;
  transition: none;
}
.plan-showcase-card.plan-chocolate-card::before,
.plan-showcase-card.plan-chocolate-card::after,
.plan-chocolate-card .plan-card-kicker::before {
  display: none !important;
  content: none !important;
}
.plan-showcase-card.plan-chocolate-card:hover,
.plan-showcase-card.plan-chocolate-card.is-highlighted:hover {
  transform: none;
  border-color: transparent;
  box-shadow: none;
}
.plan-chocolate-stage {
  position: relative;
  width: min(100%, 440px);
  margin-inline: auto;
  aspect-ratio: 4 / 7;
  color: var(--plan-ink);
  filter: drop-shadow(0 24px 28px rgba(40, 16, 38, .16));
  transform: translate3d(0, 0, 0);
  transform-origin: center bottom;
  transition: transform .28s cubic-bezier(.2,.8,.2,1), filter .28s ease;
  will-change: transform;
}
.plan-chocolate-card:hover .plan-chocolate-stage {
  transform: translate3d(0, -7px, 0) scale(1.012);
  filter: drop-shadow(0 30px 34px rgba(40, 16, 38, .2));
}
.plan-chocolate-top,
.plan-chocolate-wrapper,
.plan-chocolate-details {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}
.plan-chocolate-top {
  z-index: 1;
  object-fit: contain;
  object-position: center;
}
.plan-chocolate-wrapper {
  z-index: 2;
  object-fit: contain;
  object-position: center;
  opacity: 1 !important;
  mix-blend-mode: normal;
  filter: none;
}
.plan-chocolate-details {
  z-index: 3;
  object-fit: contain;
  object-position: center;
  opacity: 1 !important;
  mix-blend-mode: normal;
  filter: none;
}
.plan-chocolate-wrapper::before,
.plan-chocolate-wrapper::after {
  content: none;
  display: none;
}
.plan-chocolate-content {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 38%;
  bottom: 5.2%;
  width: 72%;
  display: flex;
  flex-direction: column;
  min-height: 0;
  color: var(--plan-ink);
  text-align: center;
  transform: translateX(-50%);
}
.plan-chocolate-logo {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: 35.8%;
  display: block;
  width: clamp(68px, 6.4vw, 74px);
  height: auto;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 4px 7px rgba(24, 8, 20, .24));
  transform: translate(-50%, -100%);
}
.plan-chocolate-card .plan-card-kicker {
  display: block;
  align-self: center;
  margin: 0 0 .28rem;
  color: var(--plan-detail) !important;
  font-size: clamp(.58rem, .8vw, .68rem);
  line-height: 1;
  letter-spacing: .2em;
}
.plan-chocolate-card .plan-chocolate-content h3 {
  margin: 0 0 .32rem;
  color: var(--plan-ink) !important;
  font-size: clamp(1.16rem, 1.8vw, 1.52rem);
  line-height: .98;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.plan-chocolate-card .plan-card-subtitle {
  margin: 0 0 .45rem;
  color: color-mix(in srgb, var(--plan-ink) 84%, transparent) !important;
  font-size: clamp(.7rem, 1vw, .82rem);
  line-height: 1.35;
  text-wrap: balance;
}
.plan-chocolate-card .plan-card-price {
  justify-content: center;
  gap: .3rem;
  margin: .1rem 0 .55rem;
  padding: .42rem 0 .48rem;
  border-top: 1px solid color-mix(in srgb, var(--plan-detail) 68%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--plan-detail) 68%, transparent);
}
.plan-chocolate-card .plan-card-price strong {
  color: var(--plan-detail) !important;
  font-size: clamp(1.62rem, 2.7vw, 2.12rem);
  letter-spacing: -.05em;
}
.plan-chocolate-card .plan-card-price span {
  color: color-mix(in srgb, var(--plan-ink) 78%, transparent) !important;
  font-size: .7rem;
}
.plan-chocolate-card .plan-card-features {
  gap: .34rem;
  text-align: left;
}
.plan-chocolate-card .plan-card-features li {
  padding-left: 1rem;
  color: color-mix(in srgb, var(--plan-ink) 90%, transparent) !important;
  font-size: clamp(.64rem, .88vw, .76rem);
  line-height: 1.28;
}
.plan-chocolate-card .plan-card-features li::before {
  top: .32em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--plan-detail) !important;
  box-shadow: none;
}
.plan-chocolate-card .plan-card-actions {
  width: min(90%, 396px);
  margin: 1.25rem auto 0;
  padding: 0;
}
.plan-chocolate-card .plan-chocolate-action {
  min-height: 38px;
  padding: .58rem .82rem;
  border: 1px solid color-mix(in srgb, var(--plan-detail) 72%, transparent);
  border-radius: 999px;
  background: var(--plan-detail) !important;
  color: var(--plan-button-ink) !important;
  box-shadow: none;
  font-size: .68rem;
  letter-spacing: .04em;
}
.plan-chocolate-card .plan-chocolate-action:hover,
.plan-chocolate-card .plan-chocolate-action:focus-visible {
  border-color: var(--plan-ink) !important;
  background: var(--plan-ink) !important;
  color: var(--wrapper-color) !important;
  transform: translateY(-1px);
}
.plan-chocolate-card .plan-card-badge {
  z-index: 5;
  top: 30.5%;
  left: auto;
  right: 2.5%;
  padding: .4rem .66rem;
  border: 1px solid color-mix(in srgb, var(--plan-detail) 76%, transparent);
  background: var(--plan-detail) !important;
  color: var(--plan-button-ink) !important;
  box-shadow: 0 8px 20px rgba(40,16,38,.14);
  font-size: .58rem;
}
.plan-chocolate-card.is-compact .plan-chocolate-content {
  top: 38%;
}
.plan-chocolate-card.is-compact .plan-card-subtitle {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

@media (max-width: 980px) {
  .plan-chocolate-stage { width: min(100%, 400px); }
}
@media (max-width: 640px) {
  .plan-chocolate-stage {
    width: min(96vw, 400px);
    filter: drop-shadow(0 18px 22px rgba(40,16,38,.15));
  }
  .plan-chocolate-card:hover .plan-chocolate-stage { transform: none; }
  .plan-chocolate-content {
    top: 38.6%;
    bottom: 5.4%;
    width: 72%;
  }
  .plan-chocolate-logo {
    top: 36.2%;
    width: clamp(58px, 15vw, 66px);
  }
  .plan-chocolate-card .plan-card-badge {
    top: 30.8%;
    right: 1.5%;
  }
  .plan-chocolate-card .plan-card-actions {
    width: 90%;
    margin-top: 1.15rem;
  }
  .plan-chocolate-card .plan-chocolate-content h3 { font-size: clamp(1.12rem, 5.4vw, 1.46rem); }
  .plan-chocolate-card .plan-card-subtitle { font-size: clamp(.69rem, 3.1vw, .8rem); }
  .plan-chocolate-card .plan-card-features li { font-size: clamp(.63rem, 2.9vw, .74rem); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; filter: none; }
}

/* Casos + reseñas configurables */
.site-nav a { padding-inline: .64rem; font-size: .84rem; }
.container, .section-intro, .text-measure, .data-section, .legal-page, .contact-shell, .cases-list, .timeline, .plan-list, .service-table-wrap, .case-catalog, .reviews-list { width: min(var(--max), calc(100% - 2rem)); margin-inline: auto; }

.portfolio-section,
.reviews-section {
  padding: clamp(3rem, 6vw, 5.5rem) 0;
}
.reviews-section {
  background: linear-gradient(180deg, transparent, rgba(40,16,38,.035) 18%, rgba(40,16,38,.035) 82%, transparent);
}
.section-intro > p[data-case-count],
.section-intro > p[data-review-count] {
  font-size: .86rem;
  color: var(--wine);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.case-catalog {
  display: grid;
  border-top: 1px solid var(--line-strong);
}
.portfolio-card {
  display: grid;
  grid-template-columns: minmax(260px, 38%) minmax(0, 1fr);
  gap: clamp(1.2rem, 4vw, 4rem);
  align-items: center;
  padding: clamp(1.4rem, 4vw, 3.2rem) 0;
  border-bottom: 1px solid var(--line-strong);
}
.portfolio-media {
  margin: 0;
  overflow: hidden;
  border-radius: clamp(22px, 3vw, 34px);
  background: rgba(40,16,38,.08);
}
.portfolio-media img {
  width: 100%;
  aspect-ratio: 16 / 10.5;
  object-fit: cover;
  transition: transform .85s cubic-bezier(.2,.8,.2,1), filter .85s ease;
}
.portfolio-card:hover .portfolio-media img {
  transform: scale(1.03);
  filter: saturate(1.04) contrast(1.03);
}
.portfolio-body { max-width: 760px; }
.portfolio-body h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2rem, 4.2vw, 4rem);
  line-height: .98;
  margin-bottom: .85rem;
}
.portfolio-body p { max-width: 720px; }
.portfolio-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.4rem;
  margin: 1.35rem 0 1.6rem;
}
.portfolio-metrics span {
  min-width: 118px;
  padding-top: .8rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .88rem;
}
.portfolio-metrics strong {
  display: block;
  color: var(--wine);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1;
  letter-spacing: -.05em;
}

.reviews-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}
.review-item {
  min-height: 100%;
  padding: clamp(1.15rem, 2.5vw, 2rem);
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: rgba(255,255,255,.18);
}
.review-person {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-bottom: 1.2rem;
}
.review-person img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(40,16,38,.14);
}
.review-person strong,
.review-person span { display: block; }
.review-person strong { line-height: 1.05; color: var(--ink); }
.review-person span { color: var(--muted); font-size: .84rem; }
.review-item p {
  color: rgba(40,16,38,.78);
  font-size: clamp(.96rem, 1.1vw, 1.05rem);
}
.review-item footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-top: 1.2rem;
  color: var(--gold);
  font-size: .9rem;
}
.review-item footer em {
  color: var(--wine);
  font-style: normal;
  font-weight: 800;
}

.case-modal[hidden] { display: none; }
.case-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: end center;
  padding: clamp(.8rem, 2vw, 1.4rem);
  background: rgba(40,16,38,.62);
  backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity .22s ease;
}
.case-modal.is-open { opacity: 1; }
.case-modal-panel {
  position: relative;
  width: min(1120px, 100%);
  max-height: min(92svh, 920px);
  overflow: auto;
  background: var(--bg);
  color: var(--ink);
  border-radius: clamp(24px, 3vw, 42px);
  box-shadow: 0 30px 110px rgba(0,0,0,.32);
  padding: clamp(1.2rem, 4vw, 3.4rem);
  transform: translateY(18px) scale(.985);
  transition: transform .22s cubic-bezier(.2,.8,.2,1);
}
.case-modal.is-open .case-modal-panel { transform: translateY(0) scale(1); }
.modal-close {
  position: sticky;
  top: 0;
  z-index: 2;
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(251,243,234,.92);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
}
.case-detail-head { max-width: 860px; margin-top: -.8rem; }
.case-detail-head h2 {
  font-size: clamp(2.3rem, 6vw, 5.2rem);
  line-height: .96;
  margin-bottom: 1rem;
}
.case-detail-head p { max-width: 760px; }
.case-detail-cover {
  margin: clamp(1.4rem, 3vw, 2.4rem) 0;
  overflow: hidden;
  border-radius: clamp(22px, 3vw, 34px);
}
.case-detail-cover img { width: 100%; max-height: 520px; object-fit: cover; }
.case-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.2rem, 3vw, 2.2rem);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  padding: clamp(1rem, 3vw, 2rem) 0;
}
.case-detail-grid h3,
.detail-services h3,
.case-progress h3,
.case-gallery h3,
.case-links h3 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--wine);
  margin-bottom: 1rem;
}
.client-data {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem 1.2rem;
  margin: 0;
}
.client-data dt {
  color: var(--muted);
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 800;
}
.client-data dd { margin: .15rem 0 0; font-weight: 750; }
.client-data a { color: var(--wine); }
.detail-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.detail-metrics li {
  border-left: 1px solid var(--line);
  padding-left: .95rem;
}
.detail-metrics strong {
  display: block;
  color: var(--wine);
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  line-height: 1;
  letter-spacing: -.055em;
}
.detail-metrics span { color: var(--muted); font-size: .9rem; }
.detail-services,
.case-progress,
.case-gallery,
.case-testimonial,
.case-links { padding-top: clamp(1.4rem, 3vw, 2.4rem); }
.detail-services div,
.case-links div {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}
.detail-services span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .58rem .85rem;
  color: var(--ink);
  background: rgba(255,255,255,.24);
  font-weight: 750;
  font-size: .9rem;
}
.case-story {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
  margin-top: clamp(1.4rem, 3vw, 2.4rem);
}
.case-story article {
  padding: clamp(1rem, 2.5vw, 1.8rem);
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}
.case-story span {
  display: block;
  color: var(--wine);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 900;
  margin-bottom: .75rem;
}
.case-story p { font-size: .98rem; margin: 0; }
.case-progress ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--line-strong);
  border: 1px solid var(--line-strong);
}
.case-progress li {
  display: grid;
  gap: .75rem;
  padding: clamp(1rem, 2vw, 1.4rem);
  background: var(--bg);
}
.case-progress li > span { color: var(--gold); font-weight: 900; }
.case-progress strong { display: block; margin-bottom: .35rem; }
.case-progress p { margin: 0; font-size: .92rem; }
.case-gallery div {
  display: grid;
  grid-template-columns: 1.15fr .85fr .85fr;
  gap: .75rem;
}
.case-gallery img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  border-radius: 24px;
}
.case-testimonial blockquote {
  margin: 0;
  background: var(--ink);
  color: var(--bg);
  border-radius: 28px;
  padding: clamp(1.4rem, 3vw, 2.4rem);
}
.case-testimonial p {
  color: rgba(251,243,234,.86);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  max-width: 840px;
}
.case-testimonial cite { color: var(--gold-2); font-style: normal; font-weight: 800; }
body.modal-open { overflow: hidden; }

@media (max-width: 1080px) {
  .reviews-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-progress ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .portfolio-card,
  .case-detail-grid,
  .case-story { grid-template-columns: 1fr; }
  .detail-metrics { grid-template-columns: 1fr; }
  .case-gallery div { grid-template-columns: 1fr; }
  .case-gallery img { min-height: 190px; }
}

@media (max-width: 640px) {
  .site-nav a { font-size: .95rem; }
  .portfolio-section,
  .reviews-section { padding-block: 2.8rem; }
  .portfolio-card { gap: 1.15rem; }
  .portfolio-media img { aspect-ratio: 1.05 / 1; }
  .portfolio-metrics { display: grid; grid-template-columns: 1fr; gap: .65rem; }
  .reviews-list { grid-template-columns: 1fr; }
  .client-data { grid-template-columns: 1fr; }
  .case-progress ol { grid-template-columns: 1fr; }
  .case-modal { padding: .65rem; place-items: end center; }
  .case-modal-panel { max-height: 94svh; border-radius: 26px 26px 18px 18px; }
}

/* Ajustes solicitados: equipo real, títulos hero en dos tonos y CTA con flecha */
h1, h2, .display-title,
.portfolio-body h2,
.case-detail-head h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 850;
  letter-spacing: -.045em;
}

.hero-title {
  display: grid;
  gap: .08em;
  text-transform: uppercase;
  max-width: 920px;
}
.hero-title span { display: block; }
.title-accent { color: var(--gold); }
.page-hero .title-accent { color: var(--gold-2); }
.page-hero .hero-title { color: var(--bg); }
.home-hero .hero-title { color: var(--ink); }

.button {
  gap: .62rem;
  isolation: isolate;
  overflow: hidden;
}
.button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 0 36%, rgba(255,255,255,.26) 50%, transparent 64%);
  transform: translateX(-125%);
  transition: transform .7s cubic-bezier(.2,.8,.2,1);
}
.button:hover::before { transform: translateX(125%); }
.button::after {
  content: "↗";
  position: relative;
  inset: auto;
  width: auto;
  height: auto;
  background: none;
  transform: translate(0, 0);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .92em;
  line-height: 1;
  transition: transform .22s ease;
}
.button:hover::after { transform: translate(2px, -2px); }
.button-dark:hover,
.site-nav .nav-action:hover {
  background: var(--wine);
  color: var(--white);
  border-color: var(--wine);
  box-shadow: 0 14px 34px rgba(116, 21, 29, .22);
}
.button-outline:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.site-nav .nav-action {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.site-nav .nav-action::after {
  content: "↗";
  font-size: .9em;
  transition: transform .2s ease;
}
.site-nav .nav-action:hover::after { transform: translate(2px, -2px); }

.home-hero {
  grid-template-columns: minmax(0, .98fr) minmax(300px, .92fr);
  min-height: clamp(540px, 72svh, 760px);
}
.home-visual.team-visual {
  min-height: clamp(420px, 62svh, 690px);
  align-items: end;
  justify-items: center;
  overflow: visible;
}
.home-visual.team-visual img {
  width: min(100%, 620px);
  height: min(62svh, 690px);
  object-fit: contain;
  object-position: bottom center;
  border-radius: 0;
  filter: drop-shadow(0 32px 50px rgba(40,16,38,.16));
}
.home-visual.team-visual:hover img {
  transform: translateY(-4px) scale(1.012);
  filter: drop-shadow(0 38px 58px rgba(40,16,38,.18));
}
.home-visual.team-visual figcaption { display: none; }

.hero-proof {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
}
.avatar-stack {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}
.avatar-stack img,
.avatar-stack span {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  background: var(--bg-soft);
  box-shadow: 0 8px 22px rgba(40,16,38,.12);
}
.avatar-stack img {
  object-fit: cover;
  object-position: center;
  margin-left: -10px;
}
.avatar-stack img:first-child { margin-left: 0; }
.avatar-stack span {
  display: grid;
  place-items: center;
  margin-left: -10px;
  color: var(--wine);
  font-size: .78rem;
  font-weight: 900;
}
.hero-proof p {
  margin: 0;
  display: grid;
  gap: .15rem;
  color: var(--ink);
  font-size: .86rem;
  line-height: 1.25;
}
.hero-proof p strong {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .72rem;
  color: var(--ink);
}
.hero-proof p small {
  color: var(--muted);
  font-size: .82rem;
}

.team-section {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto clamp(3rem, 6vw, 5.5rem);
  padding-top: clamp(2rem, 5vw, 4rem);
  border-top: 1px solid var(--line-strong);
}
.team-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}
.team-member {
  display: grid;
  gap: 1.1rem;
  align-content: start;
  padding: clamp(1.2rem, 3vw, 2rem);
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: rgba(255,255,255,.16);
}
.team-member img {
  width: min(100%, 260px);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 22%;
  border-radius: 50%;
  background: var(--bg-soft);
  justify-self: center;
  filter: drop-shadow(0 18px 32px rgba(40,16,38,.14));
}
.team-member span {
  display: block;
  color: var(--wine);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
  margin-bottom: .4rem;
}
.team-member h3 {
  margin-bottom: .5rem;
  font-size: clamp(1.45rem, 2.4vw, 2.2rem);
}
.team-member p { font-size: .98rem; margin-bottom: 0; }

@media (max-width: 980px) {
  .home-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .home-visual.team-visual {
    min-height: 0;
    order: -1;
    margin-top: .5rem;
  }
  .home-visual.team-visual {
    min-height: 0;
    margin-top: .5rem;
  }
  .home-visual.team-visual img {
    height: min(54svh, 560px);
    width: min(100%, 680px);
  }
  .home-plans-grid,
  .plans-catalog-grid,
  .plans-expanded-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-plans-actions,
  .plans-stack-head { flex-direction: column; align-items: flex-start; }
  .team-list { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero-title { gap: .02em; }
  .home-hero { width: calc(100% - 1.25rem); gap: 1rem; }
  .ornament-line--left,
  .ornament-pill--gold { display: none; }
  .home-visual.team-visual img { height: min(48svh, 460px); width: 100%; }
  .home-plans-grid,
  .plans-catalog-grid,
  .plans-expanded-grid { grid-template-columns: 1fr; }
  .hero-proof { align-items: flex-start; gap: .8rem; }
  .avatar-stack img,
  .avatar-stack span { width: 40px; height: 40px; }
  .team-member img { width: min(78vw, 240px); }
}

@media (max-width: 980px) {
  .home-visual.team-visual { order: initial; }
}

.plan-spotlight:hover { transform: translateY(-4px); }
.plan-spotlight.is-highlighted:hover { transform: translateY(-12px); }
.plan-stack-card:hover { transform: translateY(-3px); border-color: rgba(197,138,69,.42); }
.button-secondary:hover { background: rgba(255,255,255,.98); color: var(--wine); border-color: rgba(116,21,29,.26); }


/* Performance + hero refinement */
body::before,
body.is-loaded .site-header,
.page-hero,
.ornament-orb,
.ornament-line,
.ornament-pill {
  animation: none !important;
}

.home-hero {
  position: relative;
  grid-template-columns: minmax(0, .78fr) minmax(420px, 1.22fr);
  min-height: clamp(600px, 82svh, 900px);
  align-items: end;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding-top: clamp(1rem, 3vw, 2rem);
  overflow: hidden;
}
.home-hero::before,
.home-hero::after {
  content: "";
  position: absolute;
  inset: auto;
  pointer-events: none;
  opacity: .7;
}
.home-hero::before {
  left: -40px;
  top: 10%;
  width: 170px;
  height: 170px;
  border-radius: 36px;
  border: 1px solid rgba(197, 138, 69, .16);
  border-right: 0;
  border-bottom: 0;
}
.home-hero::after {
  right: -10px;
  top: 18%;
  width: 6px;
  height: 140px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(197, 138, 69, .48), rgba(116, 21, 29, .08));
}
.home-hero > .copy-block,
.home-hero > .home-visual {
  position: relative;
  z-index: 1;
}
.copy-block { max-width: 640px; }
.hero-title { max-width: 740px; }
.home-visual.team-visual {
  min-height: clamp(540px, 76svh, 900px);
  justify-items: end;
  align-items: end;
  margin-right: -2.2rem;
}
.home-visual.team-visual img {
  width: min(100%, 860px);
  height: min(84svh, 900px);
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 18px 34px rgba(40,16,38,.12));
  transform: none !important;
  transition: none !important;
}
.home-visual.team-visual:hover img {
  transform: none !important;
  filter: drop-shadow(0 18px 34px rgba(40,16,38,.12)) !important;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  filter: none;
  transition: opacity .42s ease, transform .42s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: none;
}

.button,
.text-link,
.site-nav a,
.plan-showcase-card,
.portfolio-card,
.line-list a,
.line-list .line-item,
.service-table tbody tr {
  will-change: auto;
}
.button::before,
.button::after {
  transition-duration: .2s;
}
.home-visual img,
.portfolio-media img,
.plan-card-cover img,
.service-thumb,
.case-row img,
.plan-cover img {
  transition: transform .28s ease;
  filter: none !important;
}
.portfolio-card:hover .portfolio-media img,
.plan-showcase-card:hover .plan-card-cover img,
.home-visual:hover img,
.case-row:hover img,
.plan-item:hover .plan-cover img {
  transform: none;
}

.editorial-section,
.split-section,
.home-plans-section,
.final-band,
.site-footer,
.portfolio-section,
.reviews-section,
.service-table-wrap,
.plan-list,
.metrics-line,
.home-duo {
  content-visibility: auto;
  contain-intrinsic-size: 1px 900px;
}

@media (max-width: 980px) {
  .home-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    align-items: start;
    gap: 1.2rem;
    width: calc(100% - 1.25rem);
    padding-top: 1rem;
    padding-bottom: 2rem;
  }
  .home-hero::before,
  .home-hero::after {
    display: none;
  }
  .copy-block {
    max-width: none;
  }
  .hero-proof {
    align-items: flex-start;
  }
  .home-visual.team-visual {
    order: 1 !important;
    min-height: 0;
    margin-right: 0;
    justify-items: center;
  }
  .home-visual.team-visual img {
    width: min(100%, 760px);
    height: min(58svh, 560px);
  }
  .button-row {
    gap: .7rem;
  }
  .button-row .button {
    flex: 1 1 240px;
  }
}

@media (max-width: 640px) {
  .home-hero {
    width: calc(100% - 1rem);
    gap: .9rem;
    padding-bottom: 1.4rem;
  }
  .hero-title {
    max-width: 100%;
  }
  .lead {
    max-width: 100%;
  }
  .button-row {
    width: 100%;
  }
  .button-row .button {
    width: 100%;
    min-height: 50px;
  }
  .hero-proof {
    display: grid;
    grid-template-columns: 1fr;
    gap: .8rem;
  }
  .home-visual.team-visual img {
    width: 100%;
    height: min(52svh, 500px);
  }
  .home-plans-section,
  .section-intro,
  .container,
  .text-measure,
  .data-section,
  .legal-page,
  .contact-shell,
  .cases-list,
  .timeline,
  .plan-list,
  .service-table-wrap,
  .case-catalog,
  .reviews-list {
    width: calc(100% - 1rem);
  }
}

@media (max-width: 980px), (hover: none) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.about-story {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
  padding: clamp(2.5rem, 5vw, 4.5rem) 0;
  display: grid;
  grid-template-columns: minmax(280px, .95fr) minmax(0, 1.05fr);
  gap: clamp(1.2rem, 4vw, 3rem);
  align-items: center;
}
.about-story-media {
  margin: 0;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,237,225,.96));
  border: 1px solid rgba(40,16,38,.08);
  padding: clamp(1rem, 2vw, 1.6rem);
}
.about-story-media img {
  width: 100%;
  height: clamp(320px, 45vw, 560px);
  object-fit: contain;
  object-position: bottom center;
}
.about-story-copy p { max-width: 62ch; }
@media (max-width: 980px) {
  .about-story { grid-template-columns: 1fr; width: calc(100% - 1.25rem); }
}
@media (max-width: 640px) {
  .about-story { width: calc(100% - 1rem); padding: 2rem 0; }
  .about-story-media { padding: .7rem; }
  .about-story-media img { height: min(52svh, 420px); }
}


/* Ajuste Nosotros: imagen libre, sin card */
.about-story {
  grid-template-columns: minmax(320px, 1fr) minmax(0, .95fr);
  align-items: end;
}
.about-story-media {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  overflow: visible !important;
}
.about-story-media img {
  height: clamp(420px, 56vw, 720px) !important;
  object-fit: contain;
  object-position: bottom left;
  filter: drop-shadow(0 18px 34px rgba(40,16,38,.10));
}
.about-story-copy {
  padding-bottom: clamp(1rem, 5vw, 5rem);
}

/* Contacto + FAQ comercial */
.contact-options {
  display: grid;
  gap: .8rem;
  margin-top: 1.35rem;
}
.contact-option {
  display: grid;
  grid-template-columns: 44px minmax(0,1fr);
  gap: .9rem;
  align-items: center;
  padding: .9rem 0;
  border-top: 1px solid var(--line);
}
.contact-option:last-child { border-bottom: 1px solid var(--line); }
.contact-option span:first-child {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(197,138,69,.14);
  color: var(--wine);
  font-weight: 900;
}
.contact-option strong { display: block; line-height: 1.1; }
.contact-option small { color: var(--muted); }
.contact-form-panel {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: clamp(1.2rem, 3vw, 2rem) 0;
}
.faq-section {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5.5rem) 0;
}
.faq-layout {
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: start;
}
.faq-list {
  border-top: 1px solid var(--ink);
}
.faq-item {
  border-bottom: 1px solid var(--line-strong);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0;
  color: var(--ink);
  font-weight: 900;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  color: var(--wine);
  font-size: 1.25rem;
  line-height: 1;
}
.faq-item[open] summary::after { content: '–'; }
.faq-item p {
  max-width: 760px;
  margin: 0;
  padding: 0 0 1.2rem;
}
.contact-faq-preview {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto clamp(3rem, 6vw, 5rem);
  padding-top: clamp(1rem, 4vw, 2rem);
}
.contact-faq-preview .faq-list { max-width: 860px; margin-left: auto; }
@media (max-width: 980px) {
  .about-story { grid-template-columns: 1fr; align-items: start; }
  .about-story-copy { padding-bottom: 0; }
  .about-story-media img { height: min(60svh, 560px) !important; width: 100%; object-position: bottom center; }
  .faq-layout { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .faq-section,
  .contact-faq-preview { width: calc(100% - 1rem); }
  .contact-shell { width: calc(100% - 1rem); padding-top: 2.2rem; }
  .contact-option { grid-template-columns: 38px minmax(0,1fr); }
  .contact-option span:first-child { width: 38px; height: 38px; }
}

/* Dock macOS navbar: magnificación por proximidad */
.site-nav {
  --dock-scale: 1;
  isolation: isolate;
}

.site-nav a {
  position: relative;
  transform: translate3d(0, 0, 0) scale(var(--dock-scale, 1));
  transform-origin: center center;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 180ms cubic-bezier(.2, .8, .2, 1),
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.site-nav.is-docking a {
  z-index: 1;
  transition:
    transform 70ms linear,
    background 160ms ease,
    color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.site-nav:not(.is-docking) a {
  --dock-scale: 1;
}

.site-nav .nav-action,
.site-nav .nav-action:hover,
.site-nav a:hover,
.site-nav a.is-active {
  transform: translate3d(0, 0, 0) scale(var(--dock-scale, 1));
}

@media (hover: hover) and (pointer: fine) {
  .site-nav:hover a {
    will-change: transform;
  }
}

@media (hover: none), (pointer: coarse) {
  .site-nav {
    touch-action: none;
    overscroll-behavior: contain;
  }

  .site-nav a {
    transition:
      transform 86ms linear,
      background 160ms ease,
      color 160ms ease,
      border-color 160ms ease;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-nav {
    touch-action: auto;
  }

  .site-nav a {
    --dock-scale: 1 !important;
    transform: none !important;
    transition: background 160ms ease, color 160ms ease, border-color 160ms ease !important;
    will-change: auto;
  }
}



/* Team hover videos */
.team-video-wrap {
  width: min(72vw, 250px);
  aspect-ratio: 1 / 1;
  flex: 0 0 auto;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(40,16,38,.06);
}
.team-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 14%;
  transform: translate3d(0, 0, 0) scale(1.01);
  will-change: transform;
  backface-visibility: hidden;
  cursor: pointer;
}
.team-member:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 6px;
}
.team-member.is-video-playing .team-video {
  transform: translate3d(0, 0, 0) scale(1.035);
}
.about-story-media {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
}
@media (max-width: 640px) {
  .team-video-wrap {
    width: min(78vw, 240px);
    margin-inline: auto;
  }
  .team-video {
    object-position: center 12%;
  }
}




/* Cookie icon system */
:root {
  --cookie-brown: #6b371c;
  --cookie-cream: #f4d08b;
}
.cookie-icon,
.contact-option span:first-child,
.faq-item summary::after,
.values-grid article::after {
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.contact-option span:first-child {
  width: 54px;
  height: 54px;
  border-radius: 0;
  display: grid;
  place-items: center;
  background-image: url('../img/ui/cookie-vanilla.png');
  background-color: transparent;
  color: var(--cookie-brown);
  font-size: 1.1rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 12px 24px rgba(40, 16, 38, .09);
  transition: transform .22s ease;
}
.contact-option:nth-child(even) span:first-child {
  background-image: url('../img/ui/cookie-chocolate.png');
  color: var(--cookie-cream);
}
.contact-option:hover span:first-child,
.contact-option:focus-visible span:first-child {
  transform: translateY(-2px) scale(1.04);
}

.values-grid article {
  position: relative;
  padding-top: clamp(6.2rem, 8vw, 7rem);
}
.values-grid article::before,
.values-grid article::after {
  position: absolute;
  left: clamp(1.2rem, 3vw, 1.8rem);
  top: clamp(1.2rem, 3vw, 1.6rem);
}
.values-grid article::before {
  content: '';
  width: 58px;
  height: 58px;
  background-image: url('../img/ui/cookie-vanilla.png');
  background-size: cover;
  background-repeat: no-repeat;
}
.values-grid article::after {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  color: var(--cookie-brown);
  font-size: 1.2rem;
  font-weight: 900;
  content: '◎';
}
.values-grid article:nth-child(2)::before {
  background-image: url('../img/ui/cookie-chocolate.png');
}
.values-grid article:nth-child(2)::after {
  content: '✦';
  color: var(--cookie-cream);
}
.values-grid article:nth-child(3)::after {
  content: '↗';
}

.faq-item summary {
  align-items: center;
  padding-right: .3rem;
}
.faq-item summary::after {
  content: '+';
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background-image: url('../img/ui/cookie-vanilla.png');
  color: var(--cookie-brown);
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1;
}
.faq-item:nth-child(even) summary::after {
  background-image: url('../img/ui/cookie-chocolate.png');
  color: var(--cookie-cream);
}
.faq-item[open] summary::after { content: '–'; }

@media (max-width: 640px) {
  .contact-option span:first-child {
    width: 46px;
    height: 46px;
    font-size: 1rem;
  }
  .values-grid article::before,
  .values-grid article::after {
    width: 50px;
    height: 50px;
  }
  .faq-item summary::after {
    width: 40px;
    height: 40px;
  }
}


/* Expanded cookie icon decoration system */
:root {
  --cookie-size-sm: 38px;
  --cookie-size-md: 54px;
  --cookie-size-lg: 68px;
}

.section-label::before {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border-radius: 0;
  background: url('../img/ui/cookie-vanilla.png') center / contain no-repeat;
  box-shadow: none;
}
.page-hero .section-label::before,
.final-band .section-label::before,
.site-footer .section-label::before {
  background-image: url('../img/ui/cookie-chocolate.png');
}

.line-list a,
.line-list .line-item {
  grid-template-columns: 58px minmax(0, 1fr) auto;
}
.line-list a > span,
.line-list .line-item > span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  justify-self: start;
  border-radius: 0;
  background: url('../img/ui/cookie-vanilla.png') center / contain no-repeat;
  color: var(--cookie-brown);
  font-size: .76rem;
  font-weight: 950;
  line-height: 1;
  box-shadow: 0 12px 22px rgba(40,16,38,.08);
}
.line-list a:nth-child(even) > span,
.line-list .line-item:nth-child(even) > span {
  background-image: url('../img/ui/cookie-chocolate.png');
  color: var(--cookie-cream);
}

.duo-panel,
.portfolio-card,
.review-item,
.plan-showcase-card,
.contact-form-panel,
.legal-page article {
  position: relative;
}
.duo-panel::before,
.portfolio-card::before,
.review-item::before,
.plan-showcase-card::before,
.contact-form-panel::before,
.legal-page article::before {
  content: '';
  width: var(--cookie-size-md);
  height: var(--cookie-size-md);
  position: absolute;
  top: clamp(.8rem, 2vw, 1.1rem);
  right: clamp(.7rem, 2vw, 1rem);
  z-index: 0;
  background: url('../img/ui/cookie-vanilla.png') center / contain no-repeat;
  opacity: .24;
  pointer-events: none;
}
.duo-panel:nth-child(even)::before,
.portfolio-card:nth-child(even)::before,
.review-item:nth-child(even)::before,
.plan-showcase-card:nth-child(even)::before,
.legal-page article:nth-child(even)::before {
  background-image: url('../img/ui/cookie-chocolate.png');
  opacity: .2;
}
.duo-panel > *,
.portfolio-card > *,
.review-item > *,
.plan-showcase-card > *,
.contact-form-panel > *,
.legal-page article > * {
  position: relative;
  z-index: 1;
}

.plan-card-kicker {
  align-items: center;
  gap: .5rem;
}
.plan-card-kicker::before {
  content: '✦';
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: url('../img/ui/cookie-chocolate.png') center / contain no-repeat;
  color: var(--cookie-cream);
  font-size: .78rem;
  letter-spacing: 0;
}
.plan-showcase-card:nth-child(even) .plan-card-kicker::before {
  background-image: url('../img/ui/cookie-vanilla.png');
  color: var(--cookie-brown);
}
.plan-card-features li {
  padding-left: 1.55rem;
}
.plan-card-features li::before,
.feature-list li::before {
  width: 15px;
  height: 15px;
  top: .24rem;
  border-radius: 0;
  background: url('../img/ui/cookie-vanilla.png') center / contain no-repeat;
  box-shadow: none;
  opacity: .95;
}

.service-table tbody tr {
  position: relative;
}
.service-table tbody td:first-child {
  position: relative;
  padding-left: 1rem;
}
.service-table tbody td:first-child::before {
  content: '◆';
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin-bottom: .55rem;
  background: url('../img/ui/cookie-vanilla.png') center / contain no-repeat;
  color: var(--cookie-brown);
  font-size: .7rem;
  font-weight: 900;
}
.service-table tbody tr:nth-child(even) td:first-child::before {
  content: '✦';
  background-image: url('../img/ui/cookie-chocolate.png');
  color: var(--cookie-cream);
}

.timeline li {
  grid-template-columns: 118px minmax(0, 1fr);
  position: relative;
}
.timeline li::before {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  align-self: start;
  background: url('../img/ui/cookie-vanilla.png') center / contain no-repeat;
  color: var(--cookie-brown);
  font-size: clamp(1.05rem, 2.6vw, 1.75rem);
  letter-spacing: -.04em;
}
.timeline li:nth-child(even)::before {
  background-image: url('../img/ui/cookie-chocolate.png');
  color: var(--cookie-cream);
}

.metrics-line span {
  position: relative;
  display: grid;
  gap: .15rem;
  padding-left: 5.15rem;
  min-height: 86px;
}
.metrics-line span::before {
  content: '✓';
  position: absolute;
  left: 1rem;
  top: 50%;
  width: 52px;
  height: 52px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  background: url('../img/ui/cookie-vanilla.png') center / contain no-repeat;
  color: var(--cookie-brown);
  font-size: .9rem;
  font-weight: 900;
}
.metrics-line span:nth-child(2)::before {
  content: '↗';
  background-image: url('../img/ui/cookie-chocolate.png');
  color: var(--cookie-cream);
}
.metrics-line span:nth-child(3)::before {
  content: '✦';
}

.badge,
.plan-card-badge {
  gap: .35rem;
}
.badge::before,
.plan-card-badge::before {
  content: '';
  width: 16px;
  height: 16px;
  display: inline-block;
  flex: 0 0 auto;
  background: url('../img/ui/cookie-vanilla.png') center / contain no-repeat;
}
.plan-card-badge::before {
  background-image: url('../img/ui/cookie-chocolate.png');
}

.review-item {
  padding-top: clamp(2.6rem, 4vw, 3.4rem);
}
.review-item::before {
  width: 44px;
  height: 44px;
  top: .75rem;
  right: auto;
  left: clamp(1rem, 2vw, 1.4rem);
  opacity: .8;
}
.review-item:nth-child(even)::before {
  opacity: .82;
}

.portfolio-metrics span {
  position: relative;
  padding-left: 2.2rem;
}
.portfolio-metrics span::before {
  content: '';
  position: absolute;
  left: 0;
  top: .55rem;
  width: 24px;
  height: 24px;
  background: url('../img/ui/cookie-vanilla.png') center / contain no-repeat;
}
.portfolio-metrics span:nth-child(even)::before {
  background-image: url('../img/ui/cookie-chocolate.png');
}

.case-story article,
.detail-services span,
.detail-metrics li,
.case-progress li,
.client-data div {
  position: relative;
}
.case-story article::before,
.detail-services span::before,
.detail-metrics li::before,
.case-progress li::after,
.client-data div::before {
  content: '';
  width: 22px;
  height: 22px;
  display: inline-block;
  vertical-align: middle;
  margin-right: .4rem;
  background: url('../img/ui/cookie-vanilla.png') center / contain no-repeat;
}
.case-story article:nth-child(even)::before,
.detail-services span:nth-child(even)::before,
.detail-metrics li:nth-child(even)::before,
.case-progress li:nth-child(even)::after,
.client-data div:nth-child(even)::before {
  background-image: url('../img/ui/cookie-chocolate.png');
}

.contact-form label::before {
  content: '';
  width: 22px;
  height: 22px;
  display: inline-block;
  margin-right: .35rem;
  vertical-align: middle;
  background: url('../img/ui/cookie-vanilla.png') center / contain no-repeat;
}
.contact-form label:nth-child(even)::before {
  background-image: url('../img/ui/cookie-chocolate.png');
}

.footer-grid h3::before {
  content: '';
  width: 22px;
  height: 22px;
  display: inline-block;
  margin-right: .35rem;
  vertical-align: -5px;
  background: url('../img/ui/cookie-chocolate.png') center / contain no-repeat;
}

@media (max-width: 980px) {
  .timeline li {
    grid-template-columns: 88px minmax(0, 1fr);
  }
  .timeline li::before {
    width: 68px;
    height: 68px;
  }
  .metrics-line span {
    padding-left: 4.35rem;
  }
  .metrics-line span::before {
    width: 44px;
    height: 44px;
  }
}
@media (max-width: 640px) {
  .line-list a,
  .line-list .line-item {
    grid-template-columns: 50px minmax(0, 1fr);
  }
  .line-list a > span,
  .line-list .line-item > span {
    width: 42px;
    height: 42px;
    font-size: .7rem;
  }
  .timeline li {
    grid-template-columns: 1fr;
  }
  .timeline li::before {
    width: 58px;
    height: 58px;
  }
  .metrics-line span {
    min-height: 72px;
    padding-left: 4rem;
  }
  .duo-panel::before,
  .portfolio-card::before,
  .plan-showcase-card::before,
  .legal-page article::before {
    width: 44px;
    height: 44px;
    opacity: .18;
  }
}


/* Icon usage plan v2 + iPhone-style navbar
   - Navbar: cookie icons are primary navigation markers. Active/current section uses chocolate.
   - Cards: no decorative cookie watermark over plan images; icons only in labels, lists and actions.
   - Content blocks: cookies act as small semantic markers, not background noise.
*/
.plan-showcase-card::before,
.plan-showcase-card:nth-child(even)::before {
  display: none !important;
}
.plan-card-cover::before,
.plan-card-cover::after {
  content: none !important;
  display: none !important;
}

.site-header {
  gap: clamp(.8rem, 1.5vw, 1.4rem);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: .28rem;
  padding: .34rem;
  border: 1px solid rgba(40,16,38,.1);
  border-radius: 999px;
  background: rgba(255, 250, 243, .78);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.72),
    0 14px 34px rgba(40,16,38,.08);
  backdrop-filter: blur(14px);
  overflow: visible;
}
.site-nav a {
  min-height: 43px;
  display: inline-flex;
  align-items: center;
  gap: .44rem;
  padding: .37rem .68rem .37rem .42rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: rgba(40,16,38,.78);
  font-size: .79rem;
  font-weight: 850;
  line-height: 1;
  letter-spacing: -.015em;
  background: rgba(255,255,255,.26);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.48);
}
.site-nav a::before {
  content: '•';
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  display: grid;
  place-items: center;
  border-radius: 0;
  background: url('../img/ui/cookie-vanilla.png') center / contain no-repeat;
  color: var(--cookie-brown);
  font-size: .83rem;
  font-weight: 950;
  line-height: 1;
  transform: translate3d(0,0,0);
  transition: transform .2s ease, filter .2s ease;
}
.site-nav a:nth-child(1)::before { content: '⌂'; }
.site-nav a:nth-child(2)::before { content: '✦'; }
.site-nav a:nth-child(3)::before { content: '▣'; }
.site-nav a:nth-child(4)::before { content: '↗'; }
.site-nav a:nth-child(5)::before { content: '◆'; }
.site-nav a:nth-child(6)::before { content: '★'; }
.site-nav a:nth-child(7)::before { content: '◎'; }
.site-nav a:nth-child(8)::before { content: '?'; }
.site-nav a:nth-child(9)::before { content: '✉'; }
.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
  background: rgba(255,255,255,.74);
  border-color: rgba(40,16,38,.08);
  box-shadow: 0 10px 22px rgba(40,16,38,.08), inset 0 1px 0 rgba(255,255,255,.7);
}
.site-nav a:hover::before,
.site-nav a:focus-visible::before {
  transform: translateY(-1px) scale(1.08);
}
.site-nav a.is-active,
.site-nav a.is-active:hover,
.site-nav .nav-action,
.site-nav .nav-action:hover,
.site-nav .nav-action.is-active {
  color: var(--cookie-cream);
  background: linear-gradient(180deg, #7a3f20 0%, #5d2f18 100%);
  border-color: rgba(58,29,15,.28);
  box-shadow:
    0 12px 26px rgba(93,47,24,.24),
    inset 0 1px 0 rgba(255,255,255,.16);
}
.site-nav a.is-active::before,
.site-nav .nav-action::before {
  background-image: url('../img/ui/cookie-chocolate.png');
  color: var(--cookie-cream);
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.12));
}
.site-nav .nav-action {
  margin-left: .15rem;
  padding-right: .82rem;
}
.site-nav .nav-action::after {
  display: none !important;
}
.site-nav.is-docking a {
  transition:
    transform 64ms linear,
    background 170ms ease,
    color 170ms ease,
    border-color 170ms ease,
    box-shadow 170ms ease;
}

.plan-card-kicker::before { content: '▣'; }
.plan-showcase-card:nth-child(2) .plan-card-kicker::before { content: '↗'; }
.plan-showcase-card:nth-child(3) .plan-card-kicker::before { content: '⚙'; }
.plan-showcase-card:nth-child(4) .plan-card-kicker::before { content: '✦'; }
.plan-showcase-card:nth-child(5) .plan-card-kicker::before { content: '◎'; }

.line-list a > span,
.line-list .line-item > span {
  font-size: 0 !important;
}
.line-list a > span::after,
.line-list .line-item > span::after {
  content: '◆';
  font-size: .95rem;
  line-height: 1;
}
.line-list a:nth-child(1) > span::after,
.line-list .line-item:nth-child(1) > span::after { content: '✎'; }
.line-list a:nth-child(2) > span::after,
.line-list .line-item:nth-child(2) > span::after { content: '☰'; }
.line-list a:nth-child(3) > span::after,
.line-list .line-item:nth-child(3) > span::after { content: '⚙'; }
.line-list a:nth-child(4) > span::after,
.line-list .line-item:nth-child(4) > span::after { content: '↗'; }
.split-section .line-list a:nth-child(1) > span::after { content: '▣'; }
.split-section .line-list a:nth-child(2) > span::after { content: '✦'; }
.split-section .line-list a:nth-child(3) > span::after { content: '◆'; }

.values-grid article:nth-child(1)::after { content: '✓'; }
.values-grid article:nth-child(2)::after { content: '◈'; }
.values-grid article:nth-child(3)::after { content: '↗'; }
.service-table tbody td:first-child::before { content: '✦'; }
.service-table tbody tr:nth-child(2) td:first-child::before { content: '✎'; }
.service-table tbody tr:nth-child(3) td:first-child::before { content: '⌂'; }
.service-table tbody tr:nth-child(4) td:first-child::before { content: '⚙'; }
.service-table tbody tr:nth-child(5) td:first-child::before { content: '↗'; }

@media (max-width: 1180px) {
  .site-nav a {
    padding-inline: .38rem .5rem;
    font-size: .74rem;
    gap: .32rem;
  }
  .site-nav a::before {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
  }
}
@media (max-width: 980px) {
  .site-nav {
    inset: .6rem .6rem auto .6rem;
    padding: calc(var(--header-h) + .9rem) .8rem .9rem;
    gap: .5rem;
    border-radius: 30px;
    background: rgba(255, 250, 243, .98);
    box-shadow: 0 22px 70px rgba(40,16,38,.16);
  }
  .site-nav a {
    min-height: 56px;
    justify-content: flex-start;
    padding: .55rem .75rem;
    border-radius: 22px;
    font-size: .96rem;
    background: rgba(255,255,255,.52);
  }
  .site-nav a::before {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    font-size: 1rem;
  }
  .site-nav .nav-action {
    margin-left: 0;
  }
}
@media (max-width: 640px) {
  .site-nav {
    inset: .5rem .5rem auto .5rem;
    border-radius: 26px;
  }
  .site-nav a {
    min-height: 52px;
  }
}

/* Cookie icon audit fix: remove square artifacts and hard-center glyphs */
:root {
  --cookie-icon-brown: #6b371c;
  --cookie-icon-cream: #f4d08b;
}

/* Never let cookie-backed icons inherit panel/button backgrounds. */
.site-nav a::before,
.section-label::before,
.line-list a > span,
.line-list .line-item > span,
.contact-option span:first-child,
.faq-item summary::after,
.values-grid article::before,
.values-grid article::after,
.plan-card-kicker::before,
.plan-card-features li::before,
.feature-list li::before,
.service-table tbody td:first-child::before,
.timeline li::before,
.metrics-line span::before,
.badge::before,
.plan-card-badge::before,
.portfolio-metrics span::before,
.case-story article::before,
.detail-services span::before,
.detail-metrics li::before,
.case-progress li::after,
.client-data div::before,
.contact-form label::before,
.footer-grid h3::before {
  background-color: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
  filter: none !important;
  text-shadow: none !important;
  overflow: visible !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: contain !important;
}

/* Shared centering for glyphs drawn directly on the cookie image. */
.site-nav a::before,
.contact-option span:first-child,
.faq-item summary::after,
.plan-card-kicker::before,
.service-table tbody td:first-child::before,
.timeline li::before,
.metrics-line span::before {
  display: inline-grid !important;
  place-items: center !important;
  place-content: center !important;
  text-align: center !important;
  font-family: "Plus Jakarta Sans", Arial, sans-serif !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
  vertical-align: middle !important;
}

/* Row/link cookies: cookie on the host, semantic icon on a perfectly centered pseudo-element. */
.line-list a > span,
.line-list .line-item > span {
  position: relative !important;
  display: inline-grid !important;
  place-items: center !important;
  place-content: center !important;
  width: 50px !important;
  height: 50px !important;
  min-width: 50px !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  background-color: transparent !important;
}
.line-list a > span::before,
.line-list .line-item > span::before {
  content: none !important;
  display: none !important;
}
.line-list a > span::after,
.line-list .line-item > span::after {
  position: absolute !important;
  inset: 0 !important;
  display: grid !important;
  place-items: center !important;
  place-content: center !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  color: var(--cookie-icon-brown) !important;
  font-family: "Plus Jakarta Sans", Arial, sans-serif !important;
  font-size: 1rem !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  text-align: center !important;
  transform: translateY(-1px) !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
}
.line-list a:nth-child(even) > span::after,
.line-list .line-item:nth-child(even) > span::after {
  color: var(--cookie-icon-cream) !important;
}

/* Values grid uses two clean layers: cookie background + centered glyph. */
.values-grid article::before,
.values-grid article::after {
  left: clamp(1.2rem, 3vw, 1.8rem) !important;
  top: clamp(1.2rem, 3vw, 1.6rem) !important;
  width: 58px !important;
  height: 58px !important;
}
.values-grid article::before {
  display: block !important;
}
.values-grid article::after {
  display: grid !important;
  place-items: center !important;
  place-content: center !important;
  background: none !important;
  color: var(--cookie-icon-brown) !important;
  font-family: "Plus Jakarta Sans", Arial, sans-serif !important;
  font-size: 1.05rem !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  transform: translateY(-1px) !important;
}
.values-grid article:nth-child(2)::after {
  color: var(--cookie-icon-cream) !important;
}

/* Contact, FAQ and plan/service glyph positioning. */
.contact-option span:first-child {
  flex: 0 0 54px !important;
  width: 54px !important;
  height: 54px !important;
  min-width: 54px !important;
  padding: 0 !important;
  margin: 0 !important;
  color: var(--cookie-icon-brown) !important;
  font-size: 1.05rem !important;
  transform: translateZ(0) !important;
}
.contact-option:nth-child(even) span:first-child {
  color: var(--cookie-icon-cream) !important;
}
.faq-item summary::after {
  flex: 0 0 44px !important;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  margin: 0 !important;
  color: var(--cookie-icon-brown) !important;
  font-size: 1.1rem !important;
  transform: translateY(-1px) !important;
}
.faq-item:nth-child(even) summary::after {
  color: var(--cookie-icon-cream) !important;
}
.plan-card-kicker::before,
.service-table tbody td:first-child::before,
.metrics-line span::before {
  transform: none !important;
}
.plan-card-kicker::before {
  font-size: .82rem !important;
}
.service-table tbody td:first-child::before {
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.timeline li::before {
  justify-self: start !important;
  padding: 0 !important;
  margin: 0 !important;
  transform: none !important;
}

/* Navbar cookies: keep the iPhone dock feel but remove any square/halo around icons. */
.site-nav a::before {
  width: 32px !important;
  height: 32px !important;
  flex: 0 0 32px !important;
  min-width: 32px !important;
  padding: 0 !important;
  margin: 0 !important;
  font-size: .9rem !important;
  transform: translateY(-1px) translateZ(0) !important;
}
.site-nav a:hover::before,
.site-nav a:focus-visible::before {
  transform: translateY(-2px) scale(1.07) translateZ(0) !important;
}
.site-nav a.is-active::before,
.site-nav .nav-action::before {
  filter: none !important;
}

/* Remove all cookie watermarks from card media and decorative card backgrounds. */
.plan-card-cover::before,
.plan-card-cover::after,
.plan-showcase-card::before,
.plan-showcase-card::after,
.duo-panel::before,
.portfolio-card::before,
.review-item::before,
.contact-form-panel::before,
.legal-page article::before {
  content: none !important;
  display: none !important;
  background: none !important;
}

/* Small inline cookie bullets are decorative; ensure they do not create square artifacts. */
.plan-card-features li::before,
.feature-list li::before,
.badge::before,
.plan-card-badge::before,
.portfolio-metrics span::before,
.case-story article::before,
.detail-services span::before,
.detail-metrics li::before,
.case-progress li::after,
.client-data div::before,
.contact-form label::before,
.footer-grid h3::before {
  opacity: 1 !important;
  background-color: transparent !important;
}

@media (max-width: 1180px) {
  .site-nav a::before {
    width: 29px !important;
    height: 29px !important;
    flex-basis: 29px !important;
    min-width: 29px !important;
    font-size: .82rem !important;
  }
}
@media (max-width: 980px) {
  .site-nav a::before {
    width: 38px !important;
    height: 38px !important;
    flex-basis: 38px !important;
    min-width: 38px !important;
    font-size: 1rem !important;
  }
  .line-list a > span,
  .line-list .line-item > span {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
  }
}
@media (max-width: 640px) {
  .line-list a > span,
  .line-list .line-item > span {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
  }
  .line-list a > span::after,
  .line-list .line-item > span::after {
    font-size: .9rem !important;
  }
  .contact-option span:first-child {
    flex-basis: 46px !important;
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
  }
  .values-grid article::before,
  .values-grid article::after {
    width: 50px !important;
    height: 50px !important;
  }
  .faq-item summary::after {
    width: 40px !important;
    height: 40px !important;
    flex-basis: 40px !important;
    min-width: 40px !important;
  }
}

/* Global contrast + cookie icon audit v4
   Scope: all current pages, dynamic cards and modal content.
   Goal: readable text on every surface and cookie icons without square artifacts. */
:root {
  --text-on-light: #281026;
  --text-muted-on-light: #513a4e;
  --text-soft-on-light: #604b5c;
  --text-on-dark: #fff7ee;
  --text-muted-on-dark: rgba(255, 247, 238, .86);
  --cookie-brown-safe: #5d2f18;
  --cookie-cream-safe: #f8d99d;
}

body { color: var(--text-on-light); }
p,
.lead,
.plan-card-body p,
.plan-card-price span,
.plan-card-features li,
.plan-summary,
.plan-note,
.plan-stack-card p,
.plan-stack-meta span,
.service-table ul,
.review-person span,
.review-item p,
.detail-metrics span,
.contact-option small,
.faq-item p,
.legal-page p,
.form-note,
.line-list em,
.metrics-line span,
.home-visual span,
.brand-name small {
  color: var(--text-muted-on-light) !important;
}

.section-label,
.plan-card-kicker,
.duo-panel .kicker,
.plan-kicker,
.case-detail-head .section-label,
.contact-option strong,
.review-person strong,
.client-data a,
.case-metric,
.review-item footer em {
  color: var(--wine) !important;
}

.line-list strong,
.plan-card-body h3,
.plan-card-price strong,
.metrics-line strong,
.values-grid h2,
.service-table h3,
.faq-item summary,
.legal-page h1,
.legal-page h2,
.contact-form label,
input,
textarea,
select {
  color: var(--text-on-light) !important;
}

.button-gold,
.plan-card-badge,
.plan-pick {
  color: #24100a !important;
}
.plan-card-badge {
  background: linear-gradient(135deg, #f6d795, #c58a45) !important;
}
.badge {
  color: var(--text-on-light) !important;
  background: rgba(40, 16, 38, .075) !important;
}
.filter-btn.is-active,
.button-dark,
.site-nav a.is-active,
.site-nav .nav-action,
.site-nav .nav-action:hover,
.site-nav .nav-action.is-active {
  color: var(--text-on-dark) !important;
}

.page-hero,
.final-band,
.site-footer,
.footer-conversion,
.case-modal-panel .button-dark {
  color: var(--text-on-dark) !important;
}
.page-hero p,
.page-hero .lead,
.page-hero .section-label,
.final-band p,
.final-band .section-label,
.site-footer p,
.site-footer a,
.site-footer .brand-name small,
.site-footer .footer-bottom,
.site-footer .section-label,
.footer-conversion .section-label {
  color: var(--text-muted-on-dark) !important;
}
.page-hero h1,
.final-band h2,
.site-footer h2,
.site-footer .brand-name strong,
.site-footer a:hover {
  color: var(--text-on-dark) !important;
}
.footer-grid h3 {
  color: #f0c986 !important;
}

/* Cookie hosts: no inherited boxes, no colored squares, no halos. */
.site-nav a::before,
.section-label::before,
.line-list a > span,
.line-list .line-item > span,
.contact-option span:first-child,
.faq-item summary::after,
.values-grid article::before,
.plan-card-kicker::before,
.plan-card-features li::before,
.feature-list li::before,
.service-table tbody td:first-child::before,
.timeline li::before,
.metrics-line span::before,
.badge::before,
.plan-card-badge::before,
.portfolio-metrics span::before,
.case-story article::before,
.detail-services span::before,
.detail-metrics li::before,
.case-progress li::after,
.client-data div::before,
.contact-form label::before,
.footer-grid h3::before {
  background-color: transparent !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: contain !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
  text-shadow: none !important;
  overflow: visible !important;
}

/* Direct glyph cookie hosts: mathematically centered. */
.site-nav a::before,
.contact-option span:first-child,
.faq-item summary::after,
.plan-card-kicker::before,
.service-table tbody td:first-child::before,
.timeline li::before,
.metrics-line span::before {
  display: inline-grid !important;
  place-items: center !important;
  place-content: center !important;
  text-align: center !important;
  font-family: "Plus Jakarta Sans", Arial, sans-serif !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  vertical-align: middle !important;
}

/* Cookie contrast by surface: dark/chocolate areas get vanilla cookies. */
.page-hero .section-label::before,
.final-band .section-label::before,
.site-footer .section-label::before,
.site-footer .footer-grid h3::before,
.site-nav a.is-active::before,
.site-nav .nav-action::before,
.filter-btn.is-active::before,
.button-dark::before,
.button-gold::before {
  background-image: url('../img/ui/cookie-vanilla.png') !important;
  color: var(--cookie-brown-safe) !important;
}

/* Light surfaces can alternate; chocolate cookies only where contrast is safe. */
.section-label::before,
.line-list a:nth-child(odd) > span,
.line-list .line-item:nth-child(odd) > span,
.contact-option:nth-child(odd) span:first-child,
.faq-item:nth-child(odd) summary::after,
.values-grid article:nth-child(odd)::before,
.plan-showcase-card:nth-child(even) .plan-card-kicker::before,
.service-table tbody tr:nth-child(odd) td:first-child::before,
.timeline li:nth-child(odd)::before,
.metrics-line span:nth-child(odd)::before {
  background-image: url('../img/ui/cookie-vanilla.png') !important;
  color: var(--cookie-brown-safe) !important;
}
.line-list a:nth-child(even) > span,
.line-list .line-item:nth-child(even) > span,
.contact-option:nth-child(even) span:first-child,
.faq-item:nth-child(even) summary::after,
.values-grid article:nth-child(even)::before,
.plan-showcase-card:nth-child(odd) .plan-card-kicker::before,
.service-table tbody tr:nth-child(even) td:first-child::before,
.timeline li:nth-child(even)::before,
.metrics-line span:nth-child(even)::before {
  background-image: url('../img/ui/cookie-chocolate.png') !important;
  color: var(--cookie-cream-safe) !important;
}

/* Line-list icons: fixes the visible square behind cookies in “Separado por páginas…” and similar blocks. */
.line-list a,
.line-list .line-item {
  align-items: center !important;
}
.line-list a > span,
.line-list .line-item > span {
  position: relative !important;
  display: inline-grid !important;
  place-items: center !important;
  place-content: center !important;
  width: 50px !important;
  height: 50px !important;
  min-width: 50px !important;
  padding: 0 !important;
  margin: 0 !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  background-color: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.line-list a > span::before,
.line-list .line-item > span::before {
  content: none !important;
  display: none !important;
}
.line-list a > span::after,
.line-list .line-item > span::after {
  position: absolute !important;
  inset: 0 !important;
  display: grid !important;
  place-items: center !important;
  place-content: center !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: var(--cookie-brown-safe) !important;
  font-family: "Plus Jakarta Sans", Arial, sans-serif !important;
  font-size: 1rem !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  text-align: center !important;
  transform: translateY(-1px) !important;
}
.line-list a:nth-child(even) > span::after,
.line-list .line-item:nth-child(even) > span::after {
  color: var(--cookie-cream-safe) !important;
}

/* Values grid: separate cookie and glyph layers, both centered. */
.values-grid article::before,
.values-grid article::after {
  left: clamp(1.2rem, 3vw, 1.8rem) !important;
  top: clamp(1.2rem, 3vw, 1.6rem) !important;
  width: 58px !important;
  height: 58px !important;
  padding: 0 !important;
  margin: 0 !important;
}
.values-grid article::before {
  content: '' !important;
  display: block !important;
}
.values-grid article::after {
  display: grid !important;
  place-items: center !important;
  place-content: center !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: var(--cookie-brown-safe) !important;
  font-family: "Plus Jakarta Sans", Arial, sans-serif !important;
  font-size: 1.04rem !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  transform: translateY(-1px) !important;
}
.values-grid article:nth-child(even)::after {
  color: var(--cookie-cream-safe) !important;
}

/* Contact + FAQ: centered and contrast-safe. */
.contact-option span:first-child {
  flex: 0 0 54px !important;
  width: 54px !important;
  height: 54px !important;
  min-width: 54px !important;
  padding: 0 !important;
  margin: 0 !important;
  font-size: 1.05rem !important;
  transform: translateZ(0) !important;
}
.contact-option:hover span:first-child,
.contact-option:focus-visible span:first-child {
  transform: translateY(-2px) scale(1.035) translateZ(0) !important;
}
.faq-item summary::after {
  flex: 0 0 44px !important;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  padding: 0 !important;
  margin: 0 !important;
  font-size: 1.1rem !important;
  transform: translateY(-1px) !important;
}

/* Navbar: selected item remains chocolate, but its cookie switches to vanilla for visibility. */
.site-nav a.is-active,
.site-nav .nav-action,
.site-nav .nav-action:hover,
.site-nav .nav-action.is-active {
  background: linear-gradient(180deg, #7a3f20 0%, #5d2f18 100%) !important;
  color: var(--text-on-dark) !important;
}
.site-nav a.is-active::before,
.site-nav .nav-action::before,
.site-nav .nav-action:hover::before {
  background-image: url('../img/ui/cookie-vanilla.png') !important;
  color: var(--cookie-brown-safe) !important;
  filter: none !important;
}
.site-nav a::before {
  display: grid !important;
  place-items: center !important;
  place-content: center !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

/* Remove remaining decorative cookie watermarks from card/media backgrounds. */
.plan-card-cover::before,
.plan-card-cover::after,
.plan-showcase-card::before,
.plan-showcase-card::after,
.duo-panel::before,
.portfolio-card::before,
.review-item::before,
.contact-form-panel::before,
.legal-page article::before {
  content: none !important;
  display: none !important;
  background: transparent !important;
}

/* Inline decorative cookie bullets should never create boxed artifacts. */
.plan-card-features li::before,
.feature-list li::before,
.badge::before,
.plan-card-badge::before,
.portfolio-metrics span::before,
.case-story article::before,
.detail-services span::before,
.detail-metrics li::before,
.case-progress li::after,
.client-data div::before,
.contact-form label::before,
.footer-grid h3::before {
  background-color: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
}

@media (max-width: 980px) {
  .site-nav {
    background: rgba(255, 250, 243, .985) !important;
    color: var(--text-on-light) !important;
  }
  .site-nav a {
    color: var(--text-on-light) !important;
  }
  .site-nav a::before {
    width: 38px !important;
    height: 38px !important;
    flex-basis: 38px !important;
    min-width: 38px !important;
  }
  .line-list a > span,
  .line-list .line-item > span {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
  }
}
@media (max-width: 640px) {
  .line-list a > span,
  .line-list .line-item > span {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
  }
  .line-list a > span::after,
  .line-list .line-item > span::after {
    font-size: .9rem !important;
  }
  .contact-option span:first-child {
    flex-basis: 46px !important;
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
  }
  .values-grid article::before,
  .values-grid article::after {
    width: 50px !important;
    height: 50px !important;
  }
  .faq-item summary::after {
    width: 40px !important;
    height: 40px !important;
    flex-basis: 40px !important;
    min-width: 40px !important;
  }
}

/* Final text contrast polish for accent titles/stars. */
.home-hero .title-accent,
.final-band .title-accent,
.split-section .title-accent,
.editorial-section .title-accent {
  color: var(--wine) !important;
}
.page-hero .title-accent {
  color: #f0c986 !important;
}
.review-item footer span {
  color: var(--wine) !important;
}
.case-progress li > span,
.case-testimonial cite,
.timeline h2 + p strong,
.case-detail-grid h3,
.detail-services h3,
.case-progress h3,
.case-gallery h3,
.case-links h3 {
  color: var(--wine) !important;
}

/* Button interaction cleanup: remove inherited shine/cookie pseudo layers from every button. */
.button::before,
a.button::before,
button.button::before,
.nav-action.button::before,
.button-dark::before,
.button-gold::before,
.button-light::before,
.button-outline::before,
.button-secondary::before {
  content: none !important;
  display: none !important;
  background: none !important;
  background-image: none !important;
  transform: none !important;
  transition: none !important;
}

.button {
  position: relative;
  isolation: auto;
  overflow: visible;
  z-index: auto;
}

.button::after,
a.button::after,
button.button::after {
  content: "↗" !important;
  position: relative !important;
  inset: auto !important;
  width: auto !important;
  height: auto !important;
  display: inline-grid !important;
  place-items: center !important;
  background: none !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  color: currentColor !important;
  font-size: .92em !important;
  line-height: 1 !important;
  transform: translate(0, 0) !important;
  transition: transform .18s ease !important;
}

.button:hover::after,
a.button:hover::after,
button.button:hover::after {
  transform: translate(2px, -2px) !important;
}

.button:focus-visible {
  outline: 2px solid rgba(197, 138, 69, .75);
  outline-offset: 4px;
}

/* Premium chocolate-box service cards — three aligned PNG/mask layers. */
.services-box-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2.5rem, 4vw, 4rem) clamp(1rem, 2vw, 1.75rem);
  align-items: start;
  margin-top: clamp(2rem, 4vw, 3.5rem);
}
.service-box-card {
  --service-ink: #FFFFFF;
  --service-detail: #F0C986;
  min-width: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
}
.service-box-card[hidden] { display: none !important; }
.service-box-stage {
  position: relative;
  width: min(100%, 430px);
  margin-inline: auto;
  aspect-ratio: 3 / 4;
  color: var(--service-ink);
  isolation: isolate;
  filter: drop-shadow(0 20px 24px rgba(40, 16, 38, .14));
  transform-origin: center bottom;
  transition: transform .28s cubic-bezier(.2,.8,.2,1), filter .28s ease;
}
.service-box-card:hover .service-box-stage {
  transform: translateY(-5px);
  filter: drop-shadow(0 26px 30px rgba(40, 16, 38, .18));
}
.service-box-structure {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
}
.service-box-structure { z-index: 1; }
.service-box-details {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  opacity: 1;
  visibility: visible;
  pointer-events: none;
  filter: brightness(0) saturate(100%) invert(84%) sepia(44%) saturate(698%) hue-rotate(345deg) brightness(102%) contrast(88%);
}
.service-box-logo {
  position: absolute;
  z-index: 5;
  top: 22.4%;
  left: 50%;
  width: clamp(58px, 5vw, 72px);
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: contain;
  pointer-events: none;
}
.service-box-content {
  position: absolute;
  z-index: 4;
  top: 31%;
  bottom: 9%;
  left: 50%;
  width: 69%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  transform: translateX(-50%);
  text-align: center;
  color: #fff;
}
.service-box-category {
  display: block;
  align-self: center;
  min-height: .75rem;
  margin: 0 0 .42rem;
  color: var(--service-detail);
  font-size: clamp(.58rem, .75vw, .69rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.service-box-content h3 {
  width: min(100%, 19rem);
  min-height: 2em;
  margin: 0 auto .42rem;
  display: grid;
  place-items: center;
  color: #fff !important;
  font-size: clamp(1.12rem, 1.6vw, 1.48rem);
  line-height: 1.02;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.service-box-description {
  width: min(100%, 18.5rem);
  min-height: 3.9em;
  margin: 0 auto .52rem;
  color: rgba(255,255,255,.88) !important;
  font-size: clamp(.68rem, .86vw, .79rem);
  line-height: 1.34;
  text-wrap: balance;
}
.service-box-meta {
  display: grid;
  justify-items: center;
  gap: .08rem;
  width: 94%;
  margin: .04rem auto .54rem;
  padding: .44rem 0 .48rem;
  border-top: 1px solid color-mix(in srgb, var(--service-detail) 70%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--service-detail) 70%, transparent);
}
.service-box-meta strong {
  color: var(--service-detail) !important;
  font-size: clamp(1.35rem, 2vw, 1.78rem);
  line-height: 1;
  letter-spacing: -.04em;
}
.service-box-meta span {
  color: rgba(255,255,255,.78) !important;
  font-size: .67rem;
}
.service-box-features {
  display: grid;
  gap: .34rem;
  width: 94%;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  text-align: left;
}
.service-box-features li {
  position: relative;
  padding-left: .95rem;
  color: rgba(255,255,255,.92) !important;
  font-size: clamp(.64rem, .8vw, .74rem);
  line-height: 1.25;
}
.service-box-features li::before {
  content: "";
  position: absolute;
  top: .34em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--service-detail);
}
.service-box-actions {
  width: min(88%, 380px);
  margin: .85rem auto 0;
}
.service-box-action {
  width: 100%;
  min-height: 39px;
  padding: .6rem .86rem;
  border: 1px solid color-mix(in srgb, var(--service-detail) 72%, transparent);
  border-radius: 999px;
  background: var(--service-detail) !important;
  color: #281026 !important;
  box-shadow: none;
  font-size: .69rem;
  letter-spacing: .04em;
}
.service-box-action:hover,
.service-box-action:focus-visible {
  border-color: #281026 !important;
  background: #281026 !important;
  color: #fff !important;
  transform: translateY(-1px);
}
@media (max-width: 1040px) {
  .services-box-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-box-stage { width: min(100%, 440px); }
}
@media (max-width: 680px) {
  .services-box-grid { grid-template-columns: 1fr; gap: 2.75rem; }
  .service-box-stage { width: min(94vw, 420px); filter: drop-shadow(0 17px 21px rgba(40,16,38,.14)); }
  .service-box-card:hover .service-box-stage { transform: none; }
  .service-box-logo { top: 22.5%; width: clamp(56px, 14vw, 68px); }
  .service-box-content { top: 31.2%; width: 70%; bottom: 8.8%; }
  .service-box-content h3 { font-size: clamp(1.1rem, 5vw, 1.42rem); }
  .service-box-description { font-size: clamp(.67rem, 3vw, .78rem); }
  .service-box-features li { font-size: clamp(.63rem, 2.8vw, .73rem); }
  .service-box-actions { width: min(88%, 370px); margin-top: .78rem; }
}


/* Responsive navigation hardening — phones, tablets and portrait displays. */
html.nav-open,
body.nav-open {
  overflow: hidden !important;
}

@media (max-width: 1180px), (orientation: portrait) and (max-width: 1440px) {
  :root {
    --mobile-header-height: 72px;
  }

  .site-header,
  .site-header.is-scrolled {
    height: var(--mobile-header-height) !important;
    min-height: var(--mobile-header-height) !important;
    padding-left: max(1rem, env(safe-area-inset-left)) !important;
    padding-right: max(1rem, env(safe-area-inset-right)) !important;
    gap: .75rem !important;
    z-index: 1000 !important;
  }

  .site-header .brand {
    position: relative;
    z-index: 1003;
    flex: 1 1 auto;
    max-width: calc(100% - 62px);
    overflow: hidden;
  }

  .site-header .brand-name {
    min-width: 0;
  }

  .site-header .brand-name strong,
  .site-header .brand-name small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .menu-button {
    position: relative !important;
    z-index: 1004 !important;
    flex: 0 0 48px !important;
    width: 48px !important;
    height: 48px !important;
    display: grid !important;
    place-items: center !important;
    padding: 0 !important;
    border: 1px solid rgba(40, 16, 38, .12) !important;
    border-radius: 16px !important;
    background: rgba(255, 250, 243, .94) !important;
    box-shadow: 0 8px 24px rgba(40, 16, 38, .1) !important;
    color: var(--ink) !important;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .menu-button span {
    position: absolute !important;
    left: 50% !important;
    width: 23px !important;
    height: 2px !important;
    margin: 0 !important;
    border-radius: 999px !important;
    background: currentColor !important;
    transform-origin: center !important;
  }

  .menu-button span:first-child {
    transform: translate(-50%, -4px) !important;
  }

  .menu-button span:last-child {
    transform: translate(-50%, 4px) !important;
  }

  .menu-button[aria-expanded="true"] span:first-child {
    transform: translate(-50%, 0) rotate(45deg) !important;
  }

  .menu-button[aria-expanded="true"] span:last-child {
    transform: translate(-50%, 0) rotate(-45deg) !important;
  }

  .site-nav {
    position: fixed !important;
    inset: 0 !important;
    z-index: 1002 !important;
    width: 100% !important;
    max-width: none !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    min-height: 100svh !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: .5rem !important;
    margin: 0 !important;
    padding:
      calc(var(--mobile-header-height) + env(safe-area-inset-top) + .9rem)
      max(1rem, env(safe-area-inset-right))
      calc(1.25rem + env(safe-area-inset-bottom))
      max(1rem, env(safe-area-inset-left)) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    border: 0 !important;
    border-radius: 0 !important;
    background: rgba(251, 243, 234, .985) !important;
    box-shadow: none !important;
    backdrop-filter: blur(22px) !important;
    transform: translate3d(0, -105%, 0) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition:
      transform .28s cubic-bezier(.2, .8, .2, 1),
      opacity .2s ease,
      visibility 0s linear .28s !important;
  }

  .site-nav.is-open {
    transform: translate3d(0, 0, 0) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transition:
      transform .28s cubic-bezier(.2, .8, .2, 1),
      opacity .2s ease,
      visibility 0s !important;
  }

  .site-nav a,
  .site-nav.is-docking a,
  .site-nav:not(.is-docking) a {
    --dock-scale: 1 !important;
    position: relative !important;
    z-index: auto !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    min-height: 54px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: .7rem !important;
    padding: .55rem .75rem !important;
    border-radius: 18px !important;
    font-size: .96rem !important;
    transform: none !important;
    touch-action: manipulation;
  }

  .site-nav a::before {
    flex: 0 0 38px !important;
    width: 38px !important;
    height: 38px !important;
  }

  .site-nav .nav-action {
    margin: .25rem 0 0 !important;
    justify-content: center !important;
  }
}

@media (max-width: 480px) {
  .site-header .brand-name strong {
    max-width: 150px !important;
    font-size: .85rem !important;
  }

  .site-header .brand-name small {
    font-size: .6rem !important;
  }

  .site-nav {
    gap: .38rem !important;
    padding-top: calc(var(--mobile-header-height) + env(safe-area-inset-top) + .7rem) !important;
  }

  .site-nav a,
  .site-nav.is-docking a,
  .site-nav:not(.is-docking) a {
    min-height: 50px !important;
    padding: .42rem .65rem !important;
    font-size: .9rem !important;
  }

  .site-nav a::before {
    flex-basis: 35px !important;
    width: 35px !important;
    height: 35px !important;
  }
}

@media (max-height: 680px) and (max-width: 1180px),
       (max-height: 680px) and (orientation: portrait) and (max-width: 1440px) {
  .site-nav {
    gap: .28rem !important;
    padding-top: calc(var(--mobile-header-height) + env(safe-area-inset-top) + .5rem) !important;
  }

  .site-nav a,
  .site-nav.is-docking a,
  .site-nav:not(.is-docking) a {
    min-height: 46px !important;
    padding-block: .3rem !important;
  }

  .site-nav a::before {
    flex-basis: 32px !important;
    width: 32px !important;
    height: 32px !important;
  }
}
