@font-face {
  font-family: Inter;
  src: url("fonts/inter-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
}
:root {
  --ink: #141412;
  --paper: #f8f6f3;
  --gold: #f8c000;
  --mute: #b6b3ae;
  --line: #ffffff29;
  --rule: #d7d2ca;
  font-family: Inter, Arial, sans-serif;
  scroll-behavior: smooth;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: #f6f4ee; color: var(--ink); }
a { color: inherit; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #9a6c00; outline-offset: 4px; }
.skip { position: fixed; top: .5rem; left: .5rem; z-index: 20; padding: 1rem; background: var(--gold); color: var(--ink); transform: translateY(-180%); }
.skip:focus { transform: none; }
section[id], main[id], .method-board[id] { scroll-margin-top: 85px; }
.wrap { width: min(1280px, calc(100% - 104px)); margin-inline: auto; }
.header { border-bottom: 1px solid var(--rule); background: #f6f4ee; }
.bar { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; flex: none; align-items: center; }
.brand img { width: 100px; height: auto; }
nav { display: flex; gap: clamp(1.1rem, 3vw, 2.8rem); }
nav a { font-size: .9rem; font-weight: 650; text-decoration: none; }
nav a:hover { text-decoration: underline; text-underline-offset: .3em; }
.menu { display: none; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; border: 1px solid transparent; border-radius: 999px; padding: .76rem 1.25rem; text-decoration: none; text-align: center; font-size: .93rem; font-weight: 750; line-height: 1.15; transition: background .2s, color .2s, border-color .2s; }
.button-dark { background: #171714; color: #fff; }
.button-dark:hover { background: #3a3429; }
.button-gold { background: var(--gold); color: #12100a; }
.button-gold:hover { background: #ffcf36; }
.button-outline { min-height: 44px; border-color: #ffffff4d; }
.button-outline:hover { border-color: var(--gold); color: var(--gold); }
.header-cta { min-height: 42px; }
.text-link { font-size: .94rem; font-weight: 700; text-decoration-color: #a57109; text-underline-offset: .35em; }
.text-link:hover { text-decoration-thickness: 2px; }

.opening-label { margin-bottom: 1.2rem; color: #544c3f; font-size: .85rem; font-weight: 720; letter-spacing: .075em; text-transform: uppercase; }

.client-carousel { margin-top: clamp(2.2rem,4.75vw,4.5rem); background: #fff; scroll-margin-top: 1.5rem; }
.client-viewport { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
.client-viewport:focus-visible { outline-offset: -3px; }
.client-track { display: flex; width: max-content; }
.client-track .logos { display: flex; flex: none; margin: 0; padding: 0; list-style: none; }
.client-track .logos li { display: grid; flex: none; place-items: center; width: clamp(145px,15vw,205px); height: 92px; padding: .75rem 1rem; background: #fff; }
.client-track .logos img { width: auto; height: auto; max-width: 100%; max-height: 51px; object-fit: contain; }

.contact-section {
  background: radial-gradient(ellipse at 4% 100%, #574824 0, transparent 56%), #181a15;
  color: #fffdf6;
  padding-block: clamp(3.55rem,8vw,8rem);
}
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr);
  align-items: center;
  gap: clamp(2rem,6.6vw,7.15rem);
}
.contact-intro .opening-label { color: #f2ce5a; }
.contact-intro h2 {
  max-width: 13ch;
  font-size: clamp(2.65rem,5.75vw,6.35rem);
  line-height: 1;
  font-weight: 760;
  letter-spacing: -.075em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.contact-lead { max-width: 41ch; margin-top: 1.15rem; color: #e4dfd1; font-size: clamp(1rem,1.6vw,1.15rem); line-height: 1.58; }
.contact-profile {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .75rem 1rem;
  max-width: 32rem;
  margin-top: clamp(1.35rem,3vw,2.4rem);
  padding-block: .8rem;
  border-block: 1px solid #fff4d73b;
}
.contact-portrait { display: flex; align-items: center; gap: .8rem; }
.contact-portrait img { width: 58px; height: 58px; border-radius: 12px; object-fit: cover; object-position: center 32%; }
.contact-portrait figcaption { display: grid; gap: .21rem; }
.contact-portrait figcaption span, .contact-area { color: #e3dcc7; font-size: .86rem; line-height: 1.5; }
.contact-direct { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem 1rem; }
.contact-direct a { display: inline-flex; align-items: center; min-height: 44px; color: #ffe487; font-size: .91rem; text-underline-offset: .27em; }
.contact-area { margin-top: .9rem; }
#lead {
  display: grid;
  gap: 1.25rem;
  min-width: 0;
  padding: clamp(1.15rem,4vw,3rem);
  border: 1px solid #f1e8d0;
  border-radius: clamp(1rem,2.8vw,1.85rem);
  color: var(--ink);
  background: linear-gradient(165deg, #fffdf6, #fff 60%);
  box-shadow: 0 24px 65px #08090752;
}
#lead h3 { font-size: clamp(1.65rem,3vw,2.85rem); line-height: 1.03; letter-spacing: -.065em; }
.lead-fields { display: grid; gap: 1rem; min-width: 0; margin: 0; padding: 0; border: 0; }
.lead-identity { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .8rem; }
.lead-field { display: grid; gap: .45rem; min-width: 0; }
label { font-size: .91rem; font-weight: 650; }
.lead-field label span { font-size: .79rem; font-weight: 430; color: #5b5549; }
input, textarea { display: block; width: 100%; padding: .68rem; border: 1px solid #82796a; border-radius: 4px; color: var(--ink); background: #fff; }
textarea { min-height: 79px; resize: vertical; }
#lead :is(input,textarea) { min-height: 48px; padding: .75rem .85rem; border-color: #bab4a3; border-radius: .65rem; background: #fdfcf8; }
#lead textarea { min-height: 115px; }
#lead textarea::placeholder { color: #686459; }
.lead-actions { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: .35rem .7rem; }
.lead-actions .button { min-height: 52px; }
.lead-copy, .edit, .reset, .close { border: 0; color: inherit; background: none; padding: .45rem; }
.lead-copy, .edit, .reset { font-size: .85rem; text-decoration: underline; text-underline-offset: .25em; }
.lead-copy { min-height: 44px; }
.lead-notes { display: flex; flex-wrap: wrap; align-items: start; gap: .4rem 1rem; border-top: 1px solid #e8e3d7; padding-top: .8rem; }
.form-help { color: #514d46; font-size: .84rem; line-height: 1.5; }
.form-help a { text-underline-offset: .2em; }

footer { border-top: 1px solid var(--line); }
.site-footer { overflow: hidden; color: var(--paper); background: radial-gradient(ellipse at 5% 110%,#21190a,transparent 55%),#080808; }
.footer-main { display: grid; grid-template-columns: 1.3fr .65fr 1fr; gap: clamp(1.55rem,4vw,4.2rem); padding-block: clamp(3rem,7vw,6.1rem); }
.footer-brand .brand img { width: clamp(118px,15vw,184px); }
.footer-brand p { margin: .55rem 0 0; color: var(--paper); font-size: clamp(1.18rem,2.4vw,2rem); font-weight: 650; letter-spacing: -.045em; }
.footer-social { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.15rem; }
.footer-social a, .whatsapp-link {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 44px;
  padding: .5rem .75rem; border-radius: .65rem; font-size: .88rem; font-weight: 650;
  text-decoration: none;
}
.footer-social a { background: #fff; color: #242015; }
.footer-social a:hover { background: #fff4cd; }
.whatsapp-link, .site-footer .footer-links .whatsapp-link { background: #d9fae6; color: #103c28; }
.whatsapp-link:hover, .site-footer .footer-links .whatsapp-link:hover { background: #b6efcc; color: #103c28; }
.optima-chat-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; }
.optima-chat-actions .optima-chat-contact { display: inline-flex; align-items: center; min-height: 44px; }
.footer-links { display: grid; align-content: start; justify-items: start; gap: .66rem; }
.footer-links h2 { margin: .34rem 0 .52rem; color: var(--gold); font-weight: 700; font-size: .88rem; line-height: .99; letter-spacing: .075em; text-transform: uppercase; }
.footer-links a:not(.button) { color: #e2ded6; font-size: .94rem; text-decoration: none; overflow-wrap: anywhere; }
.footer-links a:not(.button):hover { color: var(--gold); text-decoration: underline; text-underline-offset: .3em; }
.footer-links .button { margin-top: .55rem; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem; border-top: 1px solid var(--line); color: var(--mute); }
.footer-bottom button:hover, .footer-policy a:hover { color: var(--gold); }
.footer-policy { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .85rem; }
.footer-policy a { text-underline-offset: .25em; }

#editor { width: min(500px,calc(100% - 2rem)); max-height: calc(100% - 2rem); border: 1px solid #777; border-radius: 12px; background: #171717; color: var(--paper); padding: 1.5rem; }
#editor::backdrop { background: #000a; }
#editor-form { display: grid; gap: .6rem; }
.editor-heading, .editor-actions { display: flex; gap: 1rem; justify-content: space-between; align-items: center; }
.editor-heading h2 { font-size: 1.55rem; letter-spacing: -.04em; }
.close { font-size: 1.5rem; }
#editor p { color: var(--mute); line-height: 1.5; font-size: .9rem; }

.policy-page { background: #10100f; color: var(--paper); }
.policy-page .header { position: sticky; top: 0; z-index: 5; background: #090909f5; border-color: var(--line); }
.policy-content { max-width: 760px; padding-block: clamp(3rem,7vw,6rem); }
.policy-content h1 { margin-bottom: .95rem; font-size: clamp(2.7rem,8vw,5.75rem); line-height: 1; letter-spacing: -.075em; }
.policy-content h2 { margin: 0 0 .75rem; font-size: clamp(1.45rem,3vw,2.1rem); line-height: 1.15; letter-spacing: -.045em; }
.policy-content section { margin-block: 2rem; }
.policy-content p, .policy-content li { color: #dedad4; line-height: 1.7; }
.policy-content p + p { margin-top: 1rem; }
.policy-content li + li { margin-top: .75rem; }
.policy-content a { text-decoration-color: var(--gold); text-underline-offset: .22em; overflow-wrap: anywhere; }
.policy-content .policy-date { margin-bottom: 1rem; color: var(--mute); font-size: .9rem; }

@media (max-width: 920px) {
  .wrap { width: calc(100% - 64px); }
  .contact-layout { gap: 2rem; }
}
@media (max-width: 680px) {
  .wrap { width: calc(100% - 36px); }
  .bar { min-height: 63px; gap: .65rem; }
  .brand img { width: 84px; }
  section[id], main[id], .method-board[id] { scroll-margin-top: 70px; }
  .menu { display: inline-flex; margin-left: auto; border: 0; padding: .55rem .35rem; background: transparent; color: inherit; font-size: .88rem; font-weight: 650; }
  nav { display: none; position: absolute; inset: 63px 0 auto; padding: .8rem 1.125rem; background: #f6f4ee; border-bottom: 1px solid var(--rule); gap: .4rem; }
  nav.open { display: grid; }
  nav a { padding-block: .48rem; }
  .header-cta { min-height: 38px; padding-inline: .8rem; font-size: .84rem; }
  .contact-layout { grid-template-columns: minmax(0,1fr); }
  .client-track .logos li { width: 137px; height: 73px; }
  .client-track .logos img { max-height: 42px; }
  .footer-main { grid-template-columns: .65fr 1.35fr; gap: 2rem 1rem; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-links .button { font-size: .84rem; padding-inline: .7rem; }
}
@media (max-width: 380px) { .lead-identity, .lead-actions { grid-template-columns: minmax(0,1fr); } }
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Optima homepage */
.editorial-home {
  --surface: #f3f1e9;
  --header-height: calc(114px + env(safe-area-inset-top, 0px));
  padding-top: var(--header-height);
  --ink: #171815;
  background: #fff;
}
#site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 15;
  padding-top: env(safe-area-inset-top, 0px);
  border-bottom-color: #dedbd1;
  background: #fff;
}
.editorial-home .bar { min-height: 67px; }
.editorial-home .header-cta { min-height: 44px; }
.editorial-hero { padding-block: clamp(2.9rem,7vw,7.5rem); background: #161814; color: #fff; }
.hero-layout { display: grid; grid-template-columns: minmax(0,1.03fr) minmax(0,.97fr); gap: clamp(1.7rem,5vw,5.25rem); align-items: center; }
.hero-copy { min-width: 0; container-type: inline-size; }
.hero-copy .opening-label { color: #ffd84b; }
.hero-copy h1 { font-size: clamp(2.4rem,5.75vw,6.45rem); font-size: clamp(2.4rem,11.6cqi,6.45rem); line-height: 1.04; letter-spacing: -.072em; font-weight: 780; }
.hero-copy h1 span { display: block; overflow-wrap: anywhere; text-wrap: pretty; }
.hero-copy h1 span + span { color: var(--gold); }
.hero-lead { max-width: 42ch; margin-top: 1.45rem; color: #e0dfd6; font-size: clamp(1.02rem,1.45vw,1.23rem); line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .85rem 1.35rem; margin-top: 1.65rem; }
.hero-actions .text-link { text-decoration-color: var(--gold); }
.hero-team { overflow: hidden; border-radius: 6px; background: #2b2c24; }
.hero-team img { width: 100%; aspect-ratio: 1.17; height: auto; object-fit: cover; object-position: center; }
.client-band { background: #fff; }
.client-band .client-carousel { margin: 0; }

@media (max-width: 760px) {
  .editorial-home { --header-height: calc(110px + env(safe-area-inset-top, 0px)); }
  .editorial-home .bar { min-height: 63px; }
  .editorial-home .header-cta { min-height: 40px; }
}
@media (max-width: 820px) {
  .hero-layout { grid-template-columns: minmax(0,1fr); }
  .hero-copy h1 { font-size: clamp(2.4rem,9.5vw,5.4rem); font-size: clamp(2.4rem,10.7cqi,5.4rem); }
  .hero-team img { aspect-ratio: 1.65; }
}
@media (prefers-reduced-motion: no-preference) {
  .editorial-home .hero-team, .editorial-home .in-frame, .editorial-home .method-panels article:not([hidden]) {
    animation: editorial-enter .62s cubic-bezier(.22,1,.36,1) both;
  }
  @keyframes editorial-enter { from { opacity: .7; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}

.editorial-home {
  --gutter: max(52px, calc((100% - 1280px) / 2));
}
.editorial-home [id]:is(main, section, article, .method-board, .client-carousel) { scroll-margin-top: calc(var(--header-height) + .75rem); }
.chapter-bar { position: relative; border-top: 1px solid #eeece5; }
.header .chapter-nav {
  position: static;
  display: flex;
  gap: clamp(.85rem,3vw,2.4rem);
  min-height: 45px;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
  padding: 0;
  border: 0;
  background: transparent;
}
.chapter-nav a {
  display: grid;
  place-items: center;
  font-size: .79rem;
  font-weight: 630;
  color: #56564d;
  border-bottom: 2px solid transparent;
}
.chapter-nav a:focus-visible { outline-offset: -3px; }
.chapter-nav a[aria-current] { border-color: #8c6700; color: var(--ink); }
.services-menu { display: flex; align-items: stretch; }
.services-menu summary {
  display: flex; align-items: center; gap: .4rem; height: 100%; min-height: 45px;
  border-bottom: 2px solid transparent; list-style: none; cursor: pointer;
  color: #56564d; font-size: .79rem; font-weight: 630;
}
.services-menu summary::-webkit-details-marker { display: none; }
.services-menu summary::after {
  content: ""; width: .43rem; height: .43rem; border-right: 1.5px solid; border-bottom: 1.5px solid;
  transform: translateY(-2px) rotate(45deg);
}
.services-menu[open] summary::after { transform: translateY(2px) rotate(225deg); }
.services-menu summary:is([aria-current], :hover) { border-color: #8c6700; color: var(--ink); }
.services-menu summary:focus-visible { outline-offset: -3px; }
.services-menu-links {
  position: absolute; z-index: 3; inset-block-start: 100%; width: min(19rem, calc(100vw - 2rem));
  max-height: min(65dvh, 23rem); overflow: auto; padding: .5rem; border: 1px solid #dedbd1;
  border-radius: .9rem; background: #fff; box-shadow: 0 16px 38px #211b1726; white-space: normal;
}
.chapter-nav .services-menu-links a {
  display: flex; align-items: center; min-height: 44px; padding: .6rem .8rem;
  border: 0; border-radius: .5rem; font-size: .92rem;
}
.chapter-nav .services-menu-links a:is(:hover, :focus-visible, [aria-current]) { background: #fff4cd; }
@media (max-width: 680px) {
  .services-menu summary { font-size: .73rem; }
  .services-menu-links { inset-inline-end: 1rem; }
}
.chapter-progress {
  position: absolute;
  bottom: -1px;
  width: 100%;
  height: 2px;
  z-index: 1;
  background: var(--gold);
  transform: scaleX(var(--chapter-progress,0));
  transform-origin: left;
  pointer-events: none;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.method-section {
  background: linear-gradient(180deg, #fff8e4 0%, #fff1cd 44%, #fffbf0 100%);
  padding-block: clamp(3.7rem,8vw,8rem);
}
.method-heading {
  display: grid;
  grid-template-columns: minmax(0,1.3fr) minmax(0,.7fr);
  align-items: end;
  gap: 1rem clamp(1.5rem,5vw,5rem);
  margin-bottom: clamp(1.6rem,4vw,3rem);
}
.method-heading h2 {
  max-width: 16ch;
  font-size: clamp(2.55rem,5.75vw,6.1rem);
  line-height: .98;
  letter-spacing: -.078em;
}
.method-heading h2 em { color: #745600; font-style: normal; }
.method-heading > p { max-width: 39ch; color: #4a483d; font-size: clamp(1rem,1.65vw,1.2rem); line-height: 1.58; }
.method-board {
  background: #fff;
  border: 1px solid #e8dfc7;
  border-radius: clamp(1rem,2.4vw,1.75rem);
  box-shadow: 0 18px 65px #5440110c;
}
.method-select {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: .45rem;
  padding: clamp(.55rem,1.4vw,1rem);
  border-bottom: 1px solid #ede7d7;
}
.method-select button {
  min-height: 48px;
  padding: .5rem;
  border: 0;
  border-radius: .65rem;
  background: #f6f3eb;
  color: #211e17;
  font-size: clamp(.79rem,1.5vw,.95rem);
  font-weight: 700;
}
.method-select button:hover { background: #f8ebbb; }
.method-select button[aria-pressed="true"] { background: var(--gold); }
.method-panels article { padding: clamp(1.15rem,3.8vw,3.2rem); }
.method-panels article + article { border-top: 1px solid #ede7d7; }
.method-select:not([hidden]) + .method-panels article { border-top: 0; min-height: clamp(15rem,32vw,23rem); }
.method-panels h3 { margin-bottom: 1.05rem; font-size: clamp(1.8rem,4vw,3.5rem); line-height: 1.02; letter-spacing: -.059em; }
.method-panels p { max-width: 62ch; line-height: 1.6; color: #46463a; }
.assessment-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .65rem; }
.assessment-grid > div { padding: clamp(.85rem,1.8vw,1.35rem); background: #f7f5ec; border-radius: .75rem; }
.assessment-grid dt { font-weight: 750; line-height: 1.2; margin-bottom: .42rem; }
.assessment-grid dd { color: #4a493d; font-size: .92rem; line-height: 1.48; }
.method-panels .method-output { margin-top: 1.25rem; padding-left: .85rem; border-left: 3px solid var(--gold); }
.method-output strong { display: block; color: #755600; }
.method-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .82rem 1.2rem; margin-top: 1.25rem; }
@media (max-width: 850px) {
  .assessment-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 680px) {
  .method-heading { grid-template-columns: minmax(0,1fr); }
  .method-select { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 350px) {
  .assessment-grid { grid-template-columns: minmax(0,1fr); }
}
.chapter-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem 2rem;
  margin-bottom: clamp(1.35rem,3.8vw,3rem);
}
.chapter-heading h2 {
  max-width: 16ch;
  font-size: clamp(2.6rem,6.1vw,6.7rem);
  letter-spacing: -.078em;
  line-height: .96;
  text-wrap: balance;
}
.chapter-heading p { max-width: 30ch; color: #53544a; line-height: 1.5; }
.services .chapter-heading p { color: #e4e6d9; }
.services {
  padding-block: clamp(3.55rem,7.2vw,7.2rem);
  background: radial-gradient(ellipse at 75% 14%,#323524,transparent 58%), #171a15;
  color: #fff;
}
.service-tabs { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.15rem; }
.service-tabs button {
  min-height: 44px;
  padding: .53rem .92rem;
  border: 1px solid #b6bca26b;
  border-radius: 999px;
  color: #f5f2e8;
  background: transparent;
  font-size: .83rem;
  font-weight: 680;
  transition: background .2s, color .2s;
}
.service-tabs button[aria-pressed="true"] { background: #f7f4e8; color: #171815; border-color: #f7f4e8; }
.gallery {
  position: relative;
  display: flex;
  gap: clamp(.75rem,1.5vw,1.35rem);
  align-items: start;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  padding: .25rem var(--gutter) .85rem;
  scrollbar-width: thin;
}
.service-gallery { align-items: stretch; }
.gallery:focus-visible { outline-offset: -4px; }
.gallery [data-slide] { flex: none; scroll-snap-align: start; min-width: 0; }
.gallery-controls { display: flex; justify-content: flex-end; gap: .5rem; margin-top: .95rem; }
.gallery-controls button {
  display: grid;
  place-items: center;
  flex: none;
  min-height: 44px;
  padding: .48rem .7rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: inherit;
  background: transparent;
  font-size: .79rem;
  line-height: 1;
  transition: background .2s, color .2s;
}
.gallery-controls button:not([aria-disabled="true"]):hover { background: var(--gold); color: #15150e; border-color: var(--gold); }
.gallery-controls button[aria-disabled="true"] { opacity: .4; cursor: default; }
.service-slide {
  --metal: #edcc61;
  --shadow: #5b4920;
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  width: min(91%, 1130px);
  min-height: clamp(320px,40vw,515px);
  padding: clamp(1.25rem,5vw,4.6rem);
  overflow: hidden;
  border: 1px solid #f5ea9a40;
  border-radius: clamp(1rem,2.6vw,2rem);
  background: radial-gradient(ellipse at 77% 42%,var(--shadow),transparent 64%), #212119;
}
.service-web { --metal: #cad3ad; --shadow: #3a5038; }
.service-shop { --metal: #b6e4dc; --shadow: #294d48; }
.service-crm { --metal: #c4c6de; --shadow: #423e5f; }
.service-social { --metal: #e9bda4; --shadow: #63463c; }
.service-design { --metal: #cbd9dd; --shadow: #31525b; }
.service-offline { --metal: #eecfa6; --shadow: #5b5241; }
.service-funnels { --metal: #f0c77e; --shadow: #58422a; }
.service-analytics { --metal: #c1d9cb; --shadow: #354e44; }
.service-seo { --metal: #cbd9ed; --shadow: #36445b; }
.service-email { --metal: #e6bfd5; --shadow: #513c4f; }
.service-outreach { --metal: #abcad9; --shadow: #304853; }
.service-copy { position: relative; display: grid; justify-items: start; gap: .85rem; max-width: 31rem; }
.service-copy h3 { max-width: 15ch; font-size: clamp(2.1rem,4.1vw,4.45rem); line-height: .95; letter-spacing: -.07em; text-wrap: balance; }
.service-copy p { max-width: 34ch; color: #f2efe3; line-height: 1.55; }
.service-copy .service-label { color: #f0dda0; font-size: .82rem; font-weight: 700; }
.service-copy .button { margin-top: .35rem; }
.service-art {
  position: absolute;
  inset: 5% 0 0 48%;
  z-index: -2;
  display: grid;
  place-items: center;
  perspective: 700px;
  transform: translateX(3%) scale(.91);
  transition: transform .72s cubic-bezier(.22,1,.36,1);
}
.service-slide.is-current .service-art { transform: none; }
.service-slide::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg,#181913cf,transparent 75%);
  pointer-events: none;
}
.service-art i {
  grid-area: 1/1;
  width: 62%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: clamp(13px,3vw,38px) solid var(--metal);
  box-shadow: inset 0 0 22px #000b, 0 0 1px 2px #fff3, 0 22px 35px #0006;
  transform: rotateX(58deg) rotateY(-27deg) translateZ(-40px);
}
.service-art i:nth-child(2) { transform: rotateX(58deg) rotateY(-27deg) translateZ(25px); opacity: .82; }
.service-art i:nth-child(3) { transform: rotateX(58deg) rotateY(-27deg) translateZ(90px); opacity: .64; }
.service-web .service-art i { border-radius: 14%; aspect-ratio: 1.35; border-width: clamp(5px,1vw,11px); }
.service-shop .service-art i { border-radius: 32% 32% 18% 18%; width: 52%; aspect-ratio: .94; }
.service-crm .service-art i { border-radius: 22%; width: 45%; rotate: 33deg; }
.service-social .service-art i { aspect-ratio: 1.5; border-radius: 32%; rotate: -22deg; }
.service-design .service-art i { border-radius: 13%; width: 47%; rotate: 35deg; }
.service-offline .service-art i { border-radius: 50% 50% 16% 16%; aspect-ratio: .95; rotate: -12deg; }

.editorial-home .works-section { background: var(--surface); padding-block: clamp(3.6rem,7vw,7.4rem); }
.case-gallery { align-items: start; }
.case-card {
  width: clamp(235px,27vw,310px);
  overflow: hidden;
  border: 1px solid #dcd8cb;
  border-radius: 15px;
  background: #fff;
}
.case-media { aspect-ratio: 1.85; overflow: hidden; background: #efede4; }
.case-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s cubic-bezier(.22,1,.36,1); }
.case-card:hover .case-media img { transform: scale(1.045); }
.case-media-barberia { background: #20170d; }
.case-media-barberia img { object-fit: contain; }
.case-media-creare img { object-position: center 53%; }
.case-media-portrait img { object-position: center 32%; }
.case-media-tulsi img { object-position: center 51%; }
.case-media-honey img { object-position: center 60%; }
.case-copy { padding-bottom: 1rem; }
.case-copy { display: grid; align-content: start; gap: .43rem; min-height: 9.2rem; padding: 1rem .95rem .6rem; }
.case-client { color: #705600; font-weight: 700; font-size: .78rem; }
.case-copy h3 { font-size: clamp(1.18rem,2.1vw,1.64rem); line-height: 1.02; letter-spacing: -.048em; }
.case-context, .case-card details :is(p,ol) { color: #505149; font-size: .86rem; line-height: 1.45; }
.case-card summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 44px;
  padding: .46rem .95rem;
  list-style: none;
  border-top: 1px solid #e8e4da;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
}
.case-card summary:focus-visible { outline-offset: -4px; }
.case-card summary::-webkit-details-marker { display: none; }
.case-card summary::after { content: "+"; color: #705600; font-size: 1.15rem; }
.case-card details[open] summary::after { content: "−"; }
.case-card details p { padding: .3rem .95rem .85rem; }
.case-card details ol { margin: 0; padding: .45rem .95rem 1rem 2rem; }
.case-card details li + li { margin-top: .35rem; }
.case-navigation { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem; margin-top: .95rem; }
.case-navigation .gallery-controls { margin-top: 0; }

@media (max-width:920px) { .editorial-home { --gutter: 32px; } }
@media (max-width:680px) {
  .editorial-home { --gutter: 18px; }
  .header .chapter-nav { justify-content: space-between; gap: .55rem; }
  .chapter-nav a { font-size: .73rem; }
  .chapter-heading { display: grid; align-items: start; }
  .service-tabs { flex-wrap: nowrap; overflow-x: auto; padding: 4px; scrollbar-width: thin; }
  .service-tabs button { flex: none; }
  .service-slide { width: 92%; align-items: end; min-height: 395px; }
  .service-art { inset: -1% -11% auto 25%; height: 62%; }
  .service-slide::after { background: linear-gradient(0deg,#181913 12%,#181913b0 48%,transparent 86%); }
  .service-copy { margin-top: 6rem; }
  .service-copy h3 { font-size: clamp(2.06rem,9vw,3.5rem); }
  .case-card { width: clamp(224px,75vw,275px); }
}
@media (prefers-reduced-motion: no-preference) {
  .editorial-home .chapter-heading.in-frame, .editorial-home .method-heading.in-frame, .editorial-home .contact-intro.in-frame {
    animation: chapter-arrive .8s cubic-bezier(.22,1,.36,1) both;
  }
  @keyframes chapter-arrive {
    from { opacity: .35; transform: translateY(28px); }
    to { opacity: 1; transform: none; }
  }
  @supports (animation-timeline: view()) {
    .hero-team img, .case-media img {
      animation: image-depth linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 48%;
    }
    @keyframes image-depth { from { scale: 1.09; } to { scale: 1; } }
  }
}

/* Il movimento segue la posizione dei contenuti nella finestra. */
.editorial-home .method-section {
  background: linear-gradient(#fff, #fff5d9 35%, #fffbf0);
}
.editorial-home .optima-faq {
  background: linear-gradient(var(--surface), #fffcf5 42%);
}
@media (prefers-reduced-motion: no-preference) {
  .editorial-home [data-reveal].in-frame, .editorial-home .hero-team {
    animation: none;
  }
  .editorial-home .hero-team img, .editorial-home .case-media img {
    animation: none;
  }
  .editorial-home .scroll-scene {
    translate: 0 var(--scene-offset, 0px);
    scale: var(--scene-scale, 1);
    opacity: var(--scene-opacity, 1);
    transform-origin: center top;
  }
  .editorial-home .hero-team img.scroll-scene {
    translate: none;
    transform-origin: center;
  }
  .editorial-home .scroll-scene:focus-within {
    translate: none;
    scale: 1;
    opacity: 1;
  }
}

.editorial-home .case-gallery {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(.85rem, 2vw, 1.65rem);
  align-items: stretch;
}
.case-gallery .case-card {
  display: flex;
  flex-direction: column;
  grid-column: span 2;
  width: auto;
  border-color: #e0dbcd;
  border-radius: clamp(1rem, 2vw, 1.6rem);
  box-shadow: 0 8px 26px #3026140a;
  transition: box-shadow .35s ease, border-color .35s ease;
}
.case-gallery .case-card:nth-child(-n+2) { grid-column: span 3; }
.case-gallery .case-copy { min-block-size: 11rem; }
.case-gallery .case-card:nth-child(-n+2) .case-copy { min-block-size: 13rem; }
.case-gallery .case-media-stradeejay img { object-position: center 61%; }
.case-gallery .case-media { aspect-ratio: 1.5; }
.case-gallery .case-media img { transition: transform .75s cubic-bezier(.22,1,.36,1); }
.case-gallery .case-card:is(:hover, :focus-within) {
  border-color: #b59c64;
  box-shadow: 0 16px 38px #30261420;
}
.case-gallery .case-card:is(:hover, :focus-within) .case-media:not(.case-media-barberia) img {
  transform: scale(1.075);
}
.case-gallery .case-copy { padding: clamp(1rem, 2.2vw, 1.7rem); }
.case-gallery .case-copy h3 { font-size: clamp(1.35rem, 2.5vw, 2.3rem); }
.case-gallery .case-card:nth-child(-n+2) h3 { font-size: clamp(1.65rem, 3.6vw, 3.55rem); }
.case-gallery .case-context, .case-gallery .case-card details :is(p, ol) { font-size: 1rem; }
.case-gallery .case-card summary { font-size: .9rem; min-block-size: 3.75rem; }
.case-gallery .case-card details { margin-top: auto; }
.case-gallery .case-card:has(details[open]) details { margin-top: 0; }
.case-navigation { justify-content: center; margin-top: clamp(1.5rem, 4vw, 3rem); }
@media (max-width: 860px) {
  .editorial-home .case-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-gallery .case-card:nth-child(n) { grid-column: auto; }
}
@media (max-width: 550px) {
  .editorial-home .case-gallery { grid-template-columns: minmax(0, 1fr); }
  .case-gallery .case-card:nth-child(n) .case-copy { min-block-size: 8rem; }
}
@media (prefers-reduced-motion: reduce) {
  .case-gallery .case-card:is(:hover, :focus-within) .case-media img { transform: none; }
}

.service-copy .service-more { color: #ffe487; text-decoration-color: currentColor; }
.service-detail-hero {
  background: radial-gradient(ellipse at 86% 20%, #44452d, transparent 62%), #181a15;
  color: #fffdf6;
  padding-block: clamp(2.6rem,6.6vw,7.25rem);
}
.service-detail-path { margin-bottom: clamp(1.25rem,3vw,2.7rem); color: #e4dcc7; font-size: .9rem; }
.service-detail-path a { text-underline-offset: .25em; }
.service-detail-hero h1 {
  max-width: 13ch;
  font-size: clamp(2.7rem,8vw,7.4rem);
  line-height: .98;
  letter-spacing: -.075em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.service-detail-intro { max-width: 58ch; margin-block: 1.15rem 1.5rem; color: #e4dfd1; font-size: clamp(1rem,1.8vw,1.2rem); line-height: 1.6; }
.service-detail-content { padding-block: clamp(2.75rem,6.8vw,6.7rem); }
.service-detail-content > h2 { margin-bottom: 1.1rem; font-size: clamp(2rem,4.7vw,4.3rem); line-height: 1; letter-spacing: -.06em; }
.service-detail-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .85rem; }
.platform-marks { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1rem; }
.platform-mark {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 2.45rem;
  padding: .35rem .65rem; border: 1px solid #e8dfc7; border-radius: .6rem;
  background: #fff; color: #242015; font-size: .88rem; font-weight: 650;
}
.platform-mark img { width: 1.35rem; height: 1.35rem; object-fit: contain; }
.service-detail-grid article, .service-detail-proof { padding: clamp(1.1rem,3vw,2rem); border: 1px solid #e8dfc7; border-radius: 1rem; background: #f7f5ec; }
.service-detail-grid h3, .service-detail-proof h2, .service-detail-related h2 { margin-bottom: .65rem; font-size: clamp(1.24rem,2.3vw,1.75rem); line-height: 1.12; letter-spacing: -.035em; }
.service-detail-content p { max-width: 65ch; color: #46463a; line-height: 1.6; }
.service-detail-proof { margin-top: clamp(1.2rem,3.8vw,3rem); background: #fff8df; }
.service-detail-proof a { display: inline-block; margin-top: .8rem; }
.service-detail-related { margin-top: clamp(1.45rem,4vw,3rem); }
.service-detail-related > div, .campaign-case-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.service-detail-related > div > a {
  display: grid; align-content: start; gap: .5rem; padding: 1.4rem; border: 1px solid #e8dfc7;
  border-radius: 1rem; background: linear-gradient(145deg,#fff8df,#fff); color: #242015;
  text-decoration: none; transition: border-color .2s, box-shadow .2s;
}
.service-detail-related > div > a:hover { border-color: #9a6c00; box-shadow: 0 8px 22px #43320d1c; }
.service-detail-related strong { font-size: 1.2rem; }
.service-detail-related span { line-height: 1.5; }
.campaign-cases { margin-top: clamp(2.5rem,6vw,5rem); }
.campaign-cases h2 { margin-bottom: 1rem; font-size: clamp(1.7rem,4vw,3rem); letter-spacing: -.05em; }
.campaign-case-grid article { border: 1px solid #e8dfc7; border-radius: 1rem; overflow: hidden; background: #fff; }
.campaign-case-grid img { width: 100%; aspect-ratio: 1.65; object-fit: cover; }
.campaign-case-grid article:first-child img { object-fit: contain; background: #20170d; }
.campaign-case-grid article > div { display: grid; gap: .55rem; padding: 1.25rem; }
.campaign-case-grid h3 { font-size: 1.35rem; letter-spacing: -.035em; }
.service-featured-case {
  display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); align-items: center;
  padding: 0; overflow: hidden; background: #fff;
}
.service-featured-case img { width: 100%; aspect-ratio: 1.55; object-fit: cover; }
.service-featured-case > div { padding: clamp(1.25rem,4vw,3rem); }
.service-featured-case .aic-photo-credit { margin-top: .8rem; font-size: .82rem; }
.aic-case-topics { padding-inline-start: 1.15rem; color: #46463a; line-height: 1.55; }
.service-visual-bridge {
  position: relative; isolation: isolate; display: grid; align-items: end;
  min-height: clamp(15rem, 35vw, 25rem); margin-block: clamp(2.2rem,6vw,5rem);
  overflow: hidden; border-radius: clamp(1rem, 2.5vw, 2rem); background: #211e16;
  text-decoration: none; color: #fff;
}
.service-visual-bridge img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .75s ease; z-index: -2; }
.service-visual-bridge::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg,#12110ff5, #12110f00 95%); }
.service-visual-bridge > span { display: grid; gap: .75rem; padding: clamp(1.25rem,4vw,3rem); }
.service-visual-bridge strong { max-width: 20ch; font-size: clamp(1.75rem,4.5vw,4rem); line-height: 1.02; letter-spacing: -.055em; }
.service-visual-bridge span span { color: #ffe487; text-decoration: underline; text-underline-offset: .25em; }
.service-visual-bridge:is(:hover, :focus-visible) img { transform: scale(1.045); }
.service-visual-campaign { align-items: center; background: #221e14; }
.service-visual-campaign img { inset-inline-start: 48%; width: 52%; object-position: center 43%; }
.service-visual-campaign::before { background: linear-gradient(90deg, #221e14 43%, #221e140d 82%); }
.service-visual-campaign strong { max-width: 13ch; }
.service-visual-social { background: #151d39; }
.service-visual-social img { object-position: center 56%; }
.service-visual-social::before { background: linear-gradient(0deg,#101730f7, #111b3655 56%, transparent); }
.service-visual-shop {
  align-items: center; background: #efe7db; color: #242015;
}
.service-visual-shop img { inset-inline-start: 51%; width: 49%; object-position: center 58%; }
.service-visual-shop::before { content: none; }
.service-visual-shop > span { width: 51%; }
.service-visual-shop span span { color: #624900; }
@media (max-width: 600px) {
  .service-visual-campaign, .service-visual-shop { display: flex; flex-direction: column; align-items: stretch; }
  .service-visual-campaign img, .service-visual-shop img {
    position: static; width: 100%; aspect-ratio: 1.8; height: auto; z-index: auto;
  }
  .service-visual-campaign::before { content: none; }
  .service-visual-shop > span { width: auto; }
}
.service-detail-related h2 { scroll-margin-top: calc(var(--header-height) + 1rem); }
.campaign-case-grid article { transition: box-shadow .25s ease, translate .25s ease; }
.campaign-case-grid article:is(:hover, :focus-within) { translate: 0 -4px; box-shadow: 0 12px 30px #43320d1c; }
@media (prefers-reduced-motion: reduce) {
  .service-visual-bridge:is(:hover, :focus-visible) img { transform: none; }
  .campaign-case-grid article:is(:hover, :focus-within) { translate: none; }
}
@media (max-width: 760px) {
  .service-detail-grid, .service-detail-related > div, .campaign-case-grid, .service-featured-case { grid-template-columns: minmax(0,1fr); }
}
