/* ModusDeVida — editorial, papel + tinta + bordeaux */
:root {
    --bordeaux: #7b1c2c;
    --bordeaux-deep: #5e1421;
    --wine: #1a0d10;
    --wine-2: #24131a;
    --paper: #f4efe8;
    --paper-2: #ebe4da;
    --ink: #161214;
    --muted: #5d5459;
    --cream: #eadccf;
    --line: rgba(22, 18, 20, .14);
    --line-light: rgba(234, 220, 207, .16);
    --serif: "Fraunces", Georgia, serif;
    --sans: "Instrument Sans", system-ui, sans-serif;
    --wrap: 1240px;
    --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font: 400 17px/1.65 var(--sans);
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
:focus-visible { outline: 2px solid var(--bordeaux); outline-offset: 3px; }

.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.sec { padding: clamp(80px, 11vw, 140px) 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--bordeaux); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* Tipografia */
.eyebrow {
    display: flex; align-items: center; gap: 12px;
    font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
    color: var(--bordeaux); margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.eyebrow--light { color: var(--cream); }
.eyebrow span { text-transform: none; letter-spacing: 0; font-weight: 400; opacity: .7; }
.display {
    font: 400 clamp(36px, 5.2vw, 68px)/1.05 var(--serif);
    letter-spacing: -.02em;
    max-width: 18ch;
}
.display em, .hero__title em { font-style: italic; color: var(--bordeaux); }
.display--light { color: var(--paper); }
.display--light em { color: var(--cream); }

/* Botões */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 16px 30px; border: 0; border-radius: 999px;
    background: var(--bordeaux); color: #fff;
    font: 600 15px/1 var(--sans); text-decoration: none; cursor: pointer;
    transition: background .3s, transform .3s var(--ease);
}
.btn:hover { background: var(--bordeaux-deep); transform: translateY(-2px); }
.btn--sm { padding: 11px 20px; font-size: 14px; }
.btn--full { width: 100%; }
.pill {
    display: inline-flex; align-items: center; justify-content: center;
    height: 34px; padding: 0 14px; border-radius: 999px;
    background: var(--bordeaux); color: #fff;
    font-size: 12px; font-weight: 600; letter-spacing: .08em; text-decoration: none;
    transition: background .3s;
}
.pill:hover { background: var(--bordeaux-deep); }
.link-arrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-weight: 600; font-size: 15px; text-decoration: none; color: var(--bordeaux);
    border-bottom: 1px solid currentColor; padding-bottom: 3px;
    transition: gap .3s var(--ease);
}
.link-arrow::after { content: "→"; }
.link-arrow:hover { gap: 16px; }
.link-arrow--light { color: var(--paper); }

/* Header */
.hdr {
    position: fixed; inset: 0 0 auto; z-index: 50;
    padding: 22px 0; color: var(--paper);
    transition: background .4s, padding .4s, box-shadow .4s, color .4s;
}
.hdr.is-solid { background: rgba(244, 239, 232, .94); backdrop-filter: blur(10px); padding: 12px 0; color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.hdr__in { display: flex; align-items: center; gap: 40px; }
.hdr__logo { display: block; flex-shrink: 0; }
.hdr__logo img { height: 64px; width: auto; transition: height .4s; }
.hdr.is-solid .hdr__logo img { height: 48px; }
.hdr__logo .logo-dark { display: none; }
.hdr.is-solid .logo-light, .hdr.menu-open .logo-light { display: none; }
.hdr.is-solid .logo-dark, .hdr.menu-open .logo-dark { display: block; }
.nav { display: flex; gap: 34px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 500; position: relative; padding: 4px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--bordeaux); transition: right .3s var(--ease); }
.nav a:hover::after { right: 0; }
.hdr.is-solid .nav a:hover { color: var(--bordeaux); }
.hdr__act { display: flex; align-items: center; gap: 12px; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; color: inherit; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: currentColor; transition: transform .3s, top .3s; }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.hdr.menu-open .burger span:first-child { top: 21px; transform: rotate(45deg); }
.hdr.menu-open .burger span:last-child { top: 21px; transform: rotate(-45deg); }

/* Hero */
.hero {
    position: relative; min-height: 100svh; display: flex; align-items: flex-end;
    color: var(--paper); background: var(--wine); overflow: hidden;
    padding: 150px 0 0;
}
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__veil {
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(26, 13, 16, .55) 0%, rgba(26, 13, 16, .25) 35%, rgba(26, 13, 16, .92) 100%),
        linear-gradient(90deg, rgba(94, 20, 33, .55), transparent 65%);
}
.hero__in { position: relative; width: min(var(--wrap), 100% - 48px); }
.hero__title {
    font: 400 clamp(56px, 11vw, 168px)/.92 var(--serif);
    letter-spacing: -.035em;
    margin-bottom: 44px;
}
.hero__title em { color: var(--cream); }
.hero__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; padding-bottom: 56px; }
.hero__lead { max-width: 520px; font-size: 18px; color: rgba(244, 239, 232, .82); }
.hero__cta { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.hero__brands {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line-light);
}
.hero__brands a {
    display: flex; align-items: baseline; gap: 14px;
    padding: 24px 0; text-decoration: none;
    font: 400 clamp(22px, 2.6vw, 34px)/1 var(--serif);
    transition: color .3s, padding .3s var(--ease);
}
.hero__brands li + li a { padding-left: 28px; border-left: 1px solid var(--line-light); }
.hero__brands span { font: 600 12px/1 var(--sans); letter-spacing: .1em; color: var(--cream); opacity: .6; }
.hero__brands a:hover { color: var(--cream); font-style: italic; }

/* Clientes */
.clients { background: var(--paper); border-bottom: 1px solid var(--line); }
.clients__in { display: flex; align-items: center; gap: 48px; padding: 34px 0; }
.clients__label { flex-shrink: 0; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.clients__list { list-style: none; margin: 0; padding: 0; flex: 1; display: grid; grid-template-columns: repeat(8, 1fr); gap: 32px; align-items: center; }
.clients__list img { max-height: 34px; width: auto; margin: auto; filter: grayscale(1) contrast(1.1); opacity: .6; mix-blend-mode: multiply; transition: filter .3s, opacity .3s; }
.clients__list img:hover { filter: none; opacity: 1; }

/* Sobre */
.about__head { margin-bottom: clamp(48px, 7vw, 90px); }
.about__head .display { max-width: 22ch; }
.about__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 110px); }
.about__text p { font-size: 17px; color: var(--ink); }
.about__text p + p { margin-top: 20px; }
.about__text strong { color: var(--bordeaux); font-weight: 600; }
.principles { list-style: none; margin: 0; padding: 0; counter-reset: p; display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.principles li { counter-increment: p; padding: 28px 0 32px; border-top: 1px solid var(--line); }
.principles li::before { content: "0" counter(p); display: block; font: italic 400 15px/1 var(--serif); color: var(--bordeaux); margin-bottom: 18px; }
.principles h3 { font: 600 20px/1.25 var(--serif); margin-bottom: 10px; }
.principles p { font-size: 15px; color: var(--muted); }

/* Números */
.stats { background: var(--bordeaux); color: #fff; }
.stats__in { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 52px 28px; text-align: left; }
.stat + .stat { border-left: 1px solid rgba(255, 255, 255, .18); }
.stat .count { display: block; font: 400 clamp(44px, 5.5vw, 76px)/1 var(--serif); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat p { margin-top: 12px; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; opacity: .78; }

/* Marcas */
.brands { background: var(--wine); color: var(--paper); position: relative; overflow: hidden; }
.brands::before, .brands::after {
    content: ""; position: absolute; border-radius: 50%; pointer-events: none;
    animation: drift 18s ease-in-out infinite alternate var(--play, running);
}
.brands::before {
    width: 900px; height: 900px; right: -300px; top: -380px;
    background: radial-gradient(circle, rgba(123, 28, 44, .5), transparent 65%);
}
.brands::after {
    width: 700px; height: 700px; left: -260px; bottom: -280px;
    background: radial-gradient(circle, rgba(160, 36, 58, .28), transparent 65%);
    animation-duration: 24s; animation-direction: alternate-reverse;
}
@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-120px, 90px) scale(1.12); }
    100% { transform: translate(60px, 160px) scale(.94); }
}
.brands .wrap { position: relative; z-index: 1; }
.brands__head { position: relative; display: grid; grid-template-columns: 1fr; gap: 0; margin-bottom: clamp(48px, 7vw, 80px); }
.brands__intro { max-width: 620px; margin-top: 28px; font-size: 18px; color: rgba(244, 239, 232, .72); }
.brand-list { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.brand {
    position: relative; isolation: isolate; overflow: hidden;
    display: flex; flex-direction: column; gap: 12px;
    padding: 26px 30px 24px; border-radius: 4px;
    background: var(--wine-2); border: 1px solid var(--line-light);
    transition: transform .5s var(--ease), border-color .4s;
}
/* Luz que segue o cursor */
.brand::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(234, 220, 207, .13), transparent 60%);
    transition: opacity .4s;
}
.brand:hover::before { opacity: 1; }
.brand:hover, .brands .brand.reveal.is-visible:hover {
    transform: perspective(900px) translateY(-6px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    border-color: rgba(234, 220, 207, .4);
    transition: transform .2s ease-out, border-color .4s;
}
.brand__name { transition: transform .6s var(--ease); }
.brand:hover .brand__name { transform: translateX(6px); }
/* SiteUp: pulsar forte */
.brand--featured {
    z-index: 2;
    background: linear-gradient(160deg, #9a2338 0%, var(--bordeaux) 45%, var(--bordeaux-deep) 100%);
    border-color: rgba(234, 220, 207, .35);
    animation: featured-pulse 2.4s ease-in-out infinite var(--play, running);
}
.brand--featured:hover { border-color: var(--cream); }
.brand--featured > p:not(.brand__claim) { color: rgba(244, 239, 232, .85); }
/* Brilho que atravessa o cartão */
.brand--featured::after {
    content: ""; position: absolute; top: -20%; bottom: -20%; left: -60%; width: 45%; z-index: -1; pointer-events: none;
    background: linear-gradient(100deg, transparent, rgba(255, 236, 220, .16), transparent);
    transform: skewX(-18deg); animation: featured-sheen 4.8s ease-in-out infinite var(--play, running);
}
.brand__up { font-style: italic; color: var(--cream); display: inline-block; animation: up-beat 2.4s ease-in-out infinite var(--play, running); }
.brand--featured .checks { border-top-color: rgba(234, 220, 207, .3); }
@keyframes featured-pulse {
    0% { box-shadow: 0 0 0 0 rgba(196, 48, 74, .65), 0 30px 70px -20px rgba(123, 28, 44, .7); }
    55% { box-shadow: 0 0 0 22px rgba(196, 48, 74, 0), 0 40px 110px -10px rgba(190, 44, 70, .85); }
    100% { box-shadow: 0 0 0 0 rgba(196, 48, 74, 0), 0 30px 70px -20px rgba(123, 28, 44, .7); }
}
@keyframes featured-sheen { 0%, 55% { left: -60%; } 100% { left: 130%; } }
@keyframes up-beat { 0%, 100% { transform: none; } 12% { transform: scale(1.12); } 24% { transform: none; } 36% { transform: scale(1.06); } 48% { transform: none; } }
.brand__top { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--cream); opacity: .75; }
.brand__name { font: 400 clamp(44px, 4.4vw, 60px)/1 var(--serif); letter-spacing: -.02em; margin-top: 10px; }
.brand__claim { font: italic 400 20px/1.3 var(--serif); color: var(--cream); }
.brand > p:not(.brand__claim) { font-size: 15px; color: rgba(244, 239, 232, .72); }
.brand .link-arrow { margin-top: auto; align-self: flex-start; }
.checks { list-style: none; margin: 2px 0 4px; padding: 14px 0 0; border-top: 1px solid var(--line-light); display: grid; gap: 7px; font-size: 15px; }
.checks li { display: flex; gap: 12px; align-items: baseline; }
.checks li::before { content: ""; flex-shrink: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--cream); transform: translateY(-2px); transition: transform .4s var(--ease); }
.brand:hover .checks li::before { transform: translateY(-2px) scale(1.6); }
.js .brand.reveal .checks li { opacity: 0; transform: translateX(-12px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .brand.reveal.is-visible .checks li { opacity: 1; transform: none; }
.js .brand.reveal .checks li:nth-child(1) { transition-delay: .35s; }
.js .brand.reveal .checks li:nth-child(2) { transition-delay: .42s; }
.js .brand.reveal .checks li:nth-child(3) { transition-delay: .49s; }
.js .brand.reveal .checks li:nth-child(4) { transition-delay: .56s; }
.js .brand.reveal .checks li:nth-child(5) { transition-delay: .63s; }

/* Serviços */
.services__in { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.services__head { position: sticky; top: 120px; }
.services__head .display { font-size: clamp(34px, 4vw, 54px); margin-bottom: 34px; }
.svc { list-style: none; margin: 0; padding: 0; position: relative; }
.svc > li {
    position: relative; isolation: isolate; overflow: hidden;
    display: grid; grid-template-columns: 96px 1fr; gap: 20px;
    padding: 36px 24px 36px 0; border-bottom: 1px solid var(--ink);
    transition: padding .5s var(--ease), color .4s;
}
/* Linha superior que se desenha ao entrar no ecrã */
.svc > li::after {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--ink);
    transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease) .15s;
}
.svc > li.is-visible::after, html:not(.js) .svc > li::after { transform: scaleX(1); }
/* Varrimento bordeaux no hover */
.svc > li::before {
    content: ""; position: absolute; inset: 0; z-index: -1; background: var(--bordeaux);
    transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease);
}
.svc > li:hover { padding-left: 24px; color: var(--paper); }
.svc > li:hover::before { transform: scaleX(1); }
.svc span {
    font: italic 400 64px/.9 var(--serif); letter-spacing: -.03em;
    color: transparent; -webkit-text-stroke: 1px var(--bordeaux);
    transition: color .4s, -webkit-text-stroke-color .4s, transform .6s var(--ease);
}
.svc > li:hover span { color: var(--cream); -webkit-text-stroke-color: var(--cream); transform: translateX(-4px) rotate(-4deg); }
.svc h3 { font: 600 26px/1.2 var(--serif); margin-bottom: 10px; transition: color .3s; }
.svc p { color: var(--muted); font-size: 16px; max-width: 56ch; transition: color .4s; }
.svc > li:hover p { color: rgba(244, 239, 232, .82); }
.svc__tags { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.svc__tags li {
    padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px;
    font-size: 13px; font-weight: 500; color: var(--ink);
    transition: border-color .4s, color .4s, transform .4s var(--ease);
}
.svc > li:hover .svc__tags li { border-color: rgba(234, 220, 207, .4); color: var(--paper); }
.svc > li:hover .svc__tags li:nth-child(odd) { transform: translateY(-3px); }

/* CTA com selo rotativo */
.services__cta { display: flex; align-items: center; gap: 22px; }
.orbit { position: relative; width: 112px; height: 112px; flex-shrink: 0; display: grid; place-items: center; color: var(--ink); text-decoration: none; }
.orbit__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 16s linear infinite var(--play, running); overflow: visible; }
.orbit__ring text { font: 600 10.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; fill: currentColor; }
.orbit__arrow {
    width: 44px; height: 44px; padding: 11px; border-radius: 50%;
    background: var(--bordeaux); color: #fff; transition: transform .5s var(--ease), background .3s;
}
.orbit:hover .orbit__arrow { transform: rotate(45deg) scale(1.08); background: var(--bordeaux-deep); }
.orbit:hover .orbit__ring { animation-duration: 6s; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Contactos */
.contact { background: var(--wine); color: var(--paper); }
.contact__in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.contact__lead { margin-top: 24px; font-size: 21px; color: rgba(244, 239, 232, .72); }
.contact__list { margin: 44px 0 0; display: grid; gap: 0; }
.contact__list div { display: grid; grid-template-columns: 110px 1fr; padding: 18px 0; border-top: 1px solid var(--line-light); }
.contact__list dt { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--cream); opacity: .6; padding-top: 4px; }
.contact__list dd { margin: 0; font: 400 18px/1.35 var(--serif); }
.contact__list a { text-decoration: none; transition: color .3s; }
.contact__list a:hover { color: var(--cream); font-style: italic; }
.form { background: var(--paper); color: var(--ink); padding: clamp(28px, 4vw, 48px); border-radius: 4px; display: grid; gap: 22px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: grid; gap: 8px; }
.field span { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea {
    width: 100%; font: 400 17px/1.5 var(--sans); color: var(--ink);
    background: transparent; border: 0; border-bottom: 1px solid rgba(22, 18, 20, .3);
    padding: 8px 0; border-radius: 0; resize: vertical; transition: border-color .3s;
}
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--bordeaux); box-shadow: 0 1px 0 var(--bordeaux); }
.field.is-invalid input, .field.is-invalid textarea { border-bottom-color: var(--bordeaux); box-shadow: 0 1px 0 var(--bordeaux); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { font-size: 15px; min-height: 1px; }
.form__status.is-error { color: var(--bordeaux); }
.form__status.is-ok { color: #2f6b45; }
.form__status a { color: var(--bordeaux); font-weight: 600; }

/* Footer */
.ftr { background: #120809; color: rgba(244, 239, 232, .7); padding: 80px 0 34px; font-size: 15px; }
.ftr__in { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 60px; }
.ftr__brand img { height: 64px; width: auto; margin-bottom: 20px; }
.ftr__brand p { font: italic 400 18px/1.4 var(--serif); color: var(--cream); max-width: 26ch; }
.ftr__col { display: grid; gap: 10px; align-content: start; }
.ftr__col h4 { font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--paper); margin-bottom: 10px; }
.ftr a { text-decoration: none; transition: color .3s; }
.ftr__col a:hover, .ftr__bottom a:hover { color: #fff; }
.ftr__bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid var(--line-light); font-size: 13px; }

.totop {
    position: fixed; right: 22px; bottom: 22px; z-index: 40;
    width: 48px; height: 48px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--bordeaux); color: #fff;
    opacity: 0; visibility: hidden; transform: translateY(12px);
    transition: opacity .3s, transform .3s, visibility .3s, background .3s;
}
.totop.is-shown { opacity: 1; visibility: visible; transform: none; }
.totop:hover { background: var(--bordeaux-deep); }

/* Animações */
.js .rise { opacity: 0; transform: translateY(28px); animation: rise 1s var(--ease) forwards; }
.js .rise:nth-child(2) { animation-delay: .12s; }
.js .rise:nth-child(3) { animation-delay: .26s; }
.js .rise:nth-child(4) { animation-delay: .4s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .rise, .js .reveal { opacity: 1; transform: none; animation: none; transition: none; }
    .hero__video { display: none; }
    .brand--featured, .brand--featured::after, .brand__up, .brands::before, .brands::after, .orbit__ring { animation: none; }
    .js .brand.reveal .checks li { opacity: 1; transform: none; transition: none; }
    .svc > li::after { transform: scaleX(1); transition: none; }
}

/* Responsivo */
@media (max-width: 1100px) {
    .clients__list { grid-template-columns: repeat(4, 1fr); gap: 28px 32px; }
    .brand-list { grid-template-columns: 1fr; }
    .brand--featured { order: -1; }
    .brand { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 40px; }
    .brand__top, .brand__name, .brand__claim { grid-column: 1; }
    .brand > p:not(.brand__claim) { grid-column: 1; }
    .brand .checks { grid-column: 2; grid-row: 1 / span 4; border-top: 0; padding-top: 0; align-self: center; }
    .brand .link-arrow { grid-column: 1; }
}
@media (max-width: 900px) {
    .nav {
        position: fixed; inset: 0; z-index: -1;
        flex-direction: column; justify-content: center; gap: 8px;
        padding: 0 32px; background: var(--paper); color: var(--ink);
        opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
    }
    .nav.is-open { opacity: 1; visibility: visible; }
    .nav a { font: 400 40px/1.3 var(--serif); }
    .hdr.menu-open { color: var(--ink); }
    .burger { display: block; }
    .hdr__act { margin-left: auto; }
    .hdr__act .btn { display: none; }
    .about__grid, .services__in, .contact__in { grid-template-columns: 1fr; }
    .services__head { position: static; }
    .stats__in { grid-template-columns: 1fr 1fr; }
    .stat:nth-child(3) { border-left: 0; }
    .stat:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .18); }
    .ftr__in { grid-template-columns: 1fr 1fr; }
    .ftr__brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    body { font-size: 16px; }
    .wrap, .hero__in { width: calc(100% - 36px); }
    .hdr__logo img, .hdr.is-solid .hdr__logo img { height: 40px; }
    .hero { padding-top: 120px; }
    .hero__title { margin-bottom: 28px; }
    .hero__foot { padding-bottom: 36px; }
    .hero__brands a { font-size: 20px; padding: 18px 0; gap: 8px; flex-direction: column; }
    .hero__brands li + li a { padding-left: 16px; }
    .clients__in { flex-direction: column; align-items: flex-start; gap: 22px; }
    .clients__list { width: 100%; }
    .principles { grid-template-columns: 1fr; }
    .stat { padding: 34px 18px; }
    .brand { display: flex; padding: 24px 22px; }
    .brand .checks { border-top: 1px solid var(--line-light); padding-top: 14px; align-self: stretch; }
    .svc > li { grid-template-columns: 52px 1fr; gap: 12px; padding-right: 12px; }
    .svc > li:hover { padding-left: 12px; }
    .svc span { font-size: 42px; }
    .services__cta { gap: 16px; }
    .orbit { width: 96px; height: 96px; }
    .svc h3 { font-size: 21px; }
    .form__row { grid-template-columns: 1fr; }
    .contact__list div { grid-template-columns: 1fr; gap: 4px; }
    .contact__list dd { font-size: 19px; overflow-wrap: anywhere; }
    .ftr__in { grid-template-columns: 1fr; }
}

/* Página legal */
.legal-hero { padding: clamp(150px, 16vw, 210px) 0 clamp(48px, 6vw, 72px); border-bottom: 1px solid var(--line); }
.legal-hero .display { max-width: 16ch; }
.legal-hero p:not(.eyebrow) { margin-top: 24px; max-width: 620px; font-size: 18px; color: var(--muted); }
.legal { padding: clamp(56px, 7vw, 96px) 0 clamp(80px, 10vw, 130px); }
.legal__in { display: grid; grid-template-columns: 300px 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.legal__side { position: sticky; top: 100px; max-height: calc(100vh - 120px); overflow-y: auto; scrollbar-width: thin; display: grid; gap: 24px; padding-right: 8px; }
.toc summary { display: none; }
.toc h2 { font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--bordeaux); margin: 0 0 12px; }
.toc ol { list-style: none; margin: 0 0 28px; padding: 0; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 5px 0 5px 16px; margin-left: -1px; border-left: 2px solid transparent; font-size: 14px; color: var(--muted); text-decoration: none; transition: color .2s, border-color .2s; }
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--bordeaux); border-left-color: var(--bordeaux); font-weight: 600; }
.help { background: var(--wine); color: var(--paper); padding: 28px; border-radius: 4px; }
.help h2 { font: 400 24px/1.2 var(--serif); margin-bottom: 14px; }
.help h2 em { color: var(--cream); }
.help a { display: block; text-decoration: none; padding: 6px 0; font-size: 15px; color: rgba(244, 239, 232, .8); transition: color .2s; }
.help a:hover { color: #fff; }

.prose { max-width: 760px; }
.prose > h2 {
    font: 400 clamp(30px, 3.6vw, 44px)/1.1 var(--serif); letter-spacing: -.01em;
    padding-top: 12px; margin: 0 0 32px; scroll-margin-top: 110px;
}
.prose > h2 em { color: var(--bordeaux); }
.prose > h2:not(:first-child) { margin-top: 88px; padding-top: 56px; border-top: 1px solid var(--line); }
.prose h3 { font: 600 21px/1.3 var(--serif); margin: 44px 0 14px; scroll-margin-top: 110px; display: flex; gap: 14px; align-items: baseline; }
.prose h3 span { font: italic 400 16px/1 var(--serif); color: var(--bordeaux); min-width: 22px; }
.prose p, .prose li { font-size: 16.5px; color: #3e3539; }
.prose p + p { margin-top: 14px; }
.prose ul { margin: 14px 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.prose li { display: flex; gap: 12px; align-items: baseline; }
.prose li::before { content: ""; flex-shrink: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--bordeaux); transform: translateY(-2px); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--bordeaux); text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.prose .note { margin-top: 28px; padding: 22px 26px; background: var(--paper-2); border-left: 3px solid var(--bordeaux); }
.prose .end { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }

@media (max-width: 900px) {
    .legal__in { grid-template-columns: 1fr; }
    .legal__side { position: static; max-height: none; overflow: visible; padding-right: 0; }
    .toc { border: 1px solid var(--line); border-radius: 4px; background: var(--paper-2); }
    .toc summary {
        display: flex; justify-content: space-between; align-items: center;
        padding: 16px 20px; cursor: pointer; list-style: none;
        font-weight: 600; font-size: 15px;
    }
    .toc summary::-webkit-details-marker { display: none; }
    .toc summary::after { content: "+"; font: 400 24px/1 var(--serif); color: var(--bordeaux); transition: transform .3s; }
    .toc[open] summary::after { transform: rotate(45deg); }
    .toc__body { padding: 4px 20px 8px; }
    .help { display: none; }
}
