:root {
  --red: #b20f18;
  --red-dark: #820a11;
  --ink: #f5f3ef;
  --muted: #aaa7a3;
  --line: #303033;
  --soft: #151516;
  --white: #0c0c0d;
  --radius: 22px;
  --shadow: 0 24px 70px rgba(23, 18, 16, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; color: var(--ink); background: var(--white); font-family: "Manrope", sans-serif; color-scheme: dark; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.site-header { height: 84px; padding: 0 max(5vw, 30px); display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 20; background: rgba(12,12,13,.88); border-bottom: 1px solid rgba(255,255,255,.08); backdrop-filter: blur(18px); }
.brand { display: inline-flex; gap: 12px; align-items: center; }
.brand-logo { width: 48px; height: 48px; display: block; overflow: hidden; position: relative; flex: none; background: white; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; }
.brand-logo img { width: 108px; height: 108px; max-width: none; position: absolute; top: -26px; left: -31px; object-fit: cover; }
.brand > span:last-child { display: flex; flex-direction: column; line-height: 1; }
.brand strong { font-size: 21px; font-weight: 800; letter-spacing: -.04em; }
.brand small { margin-top: 6px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
nav { display: flex; gap: 31px; align-items: center; font-size: 13px; font-weight: 700; }
nav > a:not(.nav-cta) { position: relative; }
nav > a:not(.nav-cta)::after { content: ""; width: 0; height: 2px; position: absolute; left: 0; bottom: -7px; background: var(--red); transition: width .2s; }
nav > a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta { padding: 13px 22px; color: white; background: var(--red); border-radius: 99px; transition: transform .2s, background .2s; }
.nav-cta:hover { background: var(--red-dark); transform: translateY(-2px); }
.menu-toggle { display: none; }

.hero { min-height: calc(100vh - 84px); max-width: 1600px; margin: auto; padding: 60px 5vw 80px; display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 6vw; }
.hero-copy { max-width: 720px; animation: hero-copy-in .75s cubic-bezier(.2,.7,.2,1) both; }
.eyebrow { margin: 0 0 18px; color: var(--red); font-size: 11px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
h1, h2 { margin: 0; line-height: 1.03; letter-spacing: -.055em; }
h1 { max-width: 760px; font-size: clamp(48px, 5.5vw, 84px); font-weight: 800; text-wrap: balance; }
h2 { font-size: clamp(38px, 4vw, 62px); font-weight: 800; text-wrap: balance; }
.hero-text { max-width: 620px; margin: 28px 0; color: var(--muted); font-size: clamp(16px, 1.4vw, 19px); line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { min-height: 54px; padding: 0 25px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--ink); border-radius: 99px; font-size: 14px; font-weight: 800; transition: .2s; }
.button.primary { color: white; border-color: var(--red); background: var(--red); box-shadow: 0 12px 26px rgba(178,15,24,.22); }
.button.primary:hover { background: var(--red-dark); transform: translateY(-2px); }
.button.secondary { border-color: #57575a; }
.button.secondary:hover { color: #111; background: #f5f3ef; border-color: #f5f3ef; transform: translateY(-2px); }
.trust-list { display: flex; flex-wrap: wrap; gap: 22px; padding: 0; margin: 34px 0 0; list-style: none; color: var(--muted); font-size: 12px; font-weight: 600; }
.trust-list li { display: flex; align-items: center; }
.trust-list li::before { content: "✓"; width: 22px; height: 22px; margin-right: 8px; display: grid; place-items: center; color: white; background: var(--red); border-radius: 50%; font-size: 11px; font-weight: 800; }
.hero-visual { min-height: 620px; position: relative; overflow: hidden; background: #ddd; border-radius: 220px 220px 24px 24px; box-shadow: var(--shadow); animation: hero-visual-in .9s .1s cubic-bezier(.2,.7,.2,1) both; }
.hero-visual > img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; object-position: 54% center; transition: transform .8s ease; }
.hero-visual:hover > img { transform: scale(1.025); }
.hero-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.35), transparent 45%); pointer-events: none; }
.visual-card { position: absolute; z-index: 1; left: 28px; right: 28px; bottom: 28px; padding: 20px 22px; display: flex; gap: 14px; align-items: center; color: #151515; background: rgba(255,255,255,.92); border: 1px solid rgba(255,255,255,.5); border-radius: 16px; box-shadow: 0 12px 30px rgba(0,0,0,.15); backdrop-filter: blur(12px); }
.visual-card > div { display: flex; flex-direction: column; }
.status-dot { width: 12px; height: 12px; flex: none; background: #27a45c; border-radius: 50%; box-shadow: 0 0 0 6px rgba(39,164,92,.13); }
.visual-card strong { font-size: 15px; font-weight: 800; }
.visual-card div span { margin-top: 4px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

.services, .work, .story, .about, .news { padding: 120px max(5vw, 30px); }
.services { background: var(--soft); border-top: 1px solid rgba(255,255,255,.07); border-radius: 42px 42px 0 0; }
.section-heading { max-width: 780px; margin-bottom: 50px; }
.section-heading > p:last-child { max-width: 610px; margin-top: 20px; color: var(--muted); line-height: 1.7; font-size: 16px; }
.service-grid { max-width: 1600px; margin: auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.services > .section-heading, .work > .section-heading { max-width: 1600px; margin-left: auto; margin-right: auto; }
.service-card { overflow: hidden; background: #202022; border: 1px solid rgba(255,255,255,.07); border-radius: var(--radius); box-shadow: 0 8px 30px rgba(0,0,0,.22); transition: transform .3s, box-shadow .3s, border-color .3s; }
.service-card:hover { transform: translateY(-8px); border-color: rgba(255,255,255,.16); box-shadow: 0 24px 55px rgba(0,0,0,.38); }
.service-photo { height: 310px; position: relative; overflow: hidden; }
.service-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(0,0,0,.28)); }
.service-photo img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .5s; }
.service-card:hover .service-photo img { transform: scale(1.05); }
.service-number { width: 42px; height: 42px; display: grid; place-items: center; position: absolute; z-index: 1; top: 18px; right: 18px; color: white; background: rgba(18,18,18,.75); border: 1px solid rgba(255,255,255,.3); border-radius: 50%; font-size: 11px; font-weight: 800; backdrop-filter: blur(8px); }
.service-content { min-height: 390px; padding: 32px; display: flex; flex-direction: column; }
.service-card h3 { margin: 0 0 14px; font-size: clamp(22px, 2vw, 28px); line-height: 1.18; letter-spacing: -.04em; }
.service-card p { margin: 0; color: var(--muted); line-height: 1.7; font-size: 14px; }
.service-list { margin: 22px 0 26px; padding: 0; display: grid; gap: 10px; color: #c7c4c0; list-style: none; font-size: 13px; }
.service-list li { padding-left: 21px; position: relative; line-height: 1.5; }
.service-list li::before { content: ""; width: 7px; height: 7px; position: absolute; left: 0; top: .55em; background: var(--red); border-radius: 50%; }
.service-link { margin-top: auto; padding-top: 25px; display: flex; justify-content: space-between; color: var(--red); border-top: 1px solid var(--line); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.service-link b { font-size: 17px; }

.work { color: var(--ink); background: #09090a; border-top: 1px solid rgba(255,255,255,.07); }
.row-heading { display: grid; grid-template-columns: 1.5fr .5fr; align-items: end; gap: 50px; }
.row-heading > p:last-child { margin: 0 0 4px; color: #a9a9a9; }
.work .eyebrow { color: #ef6b70; }
.gallery { max-width: 1600px; margin: auto; display: grid; grid-template-columns: 1.3fr .7fr .7fr; grid-auto-rows: 330px; gap: 14px; }
.gallery figure { margin: 0; position: relative; overflow: hidden; background: #292929; border-radius: 18px; }
.gallery-main { grid-row: span 2; }
.gallery-wide { grid-column: span 2; }
.gallery img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .5s ease; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figure::after { content: ""; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.82)); pointer-events: none; }
.gallery figcaption { position: absolute; z-index: 1; left: 24px; right: 24px; bottom: 22px; color: white; font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.gallery figcaption span { margin-bottom: 6px; display: block; color: rgba(255,255,255,.65); font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }

.story { display: grid; grid-template-columns: .85fr 1.15fr; gap: 7vw; align-items: center; background: #121213; border-top: 1px solid var(--line); }
.story-media { min-height: 700px; position: relative; overflow: hidden; border-radius: 24px; box-shadow: var(--shadow); }
.story-media::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.75)); }
.story-media img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.story-year { position: absolute; z-index: 1; left: 30px; right: 30px; bottom: 28px; padding: 22px 0 0; display: flex; align-items: flex-end; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.35); }
.story-year strong { color: white; font-size: clamp(48px, 6vw, 86px); line-height: .9; letter-spacing: -.07em; }
.story-year span { max-width: 150px; color: rgba(255,255,255,.72); font-size: 11px; line-height: 1.5; text-align: right; text-transform: uppercase; letter-spacing: .08em; }
.story-content { max-width: 780px; }
.story-content > p:not(.eyebrow) { max-width: 730px; margin: 20px 0; color: var(--muted); font-size: 15px; line-height: 1.85; }
.story-content .story-lead { color: #d8d5d1; font-size: 18px; }
.story-facts { margin-top: 42px; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.story-facts > div { min-height: 120px; padding: 23px; display: flex; flex-direction: column; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.story-facts strong { margin-bottom: 8px; color: var(--ink); font-size: 15px; }
.story-facts span { color: var(--muted); font-size: 12px; line-height: 1.5; }

.about { max-width: 1800px; margin: auto; display: grid; grid-template-columns: 1fr .82fr .75fr; gap: 5vw; align-items: center; }
.about-panel > p:not(.eyebrow) { max-width: 620px; margin: 22px 0; color: var(--muted); font-size: 15px; line-height: 1.8; }
.text-link { display: inline-flex; gap: 14px; align-items: center; color: var(--red); font-size: 14px; font-weight: 800; }
.text-link span { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--red); border-radius: 50%; transition: .2s; }
.text-link:hover span { color: white; background: var(--red); transform: translateX(3px); }
.about-media { height: 500px; position: relative; overflow: hidden; border-radius: 180px 180px 20px 20px; box-shadow: var(--shadow); }
.about-media::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.55)); }
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.about-media > span { position: absolute; z-index: 1; left: 25px; bottom: 24px; color: white; font-size: 12px; line-height: 1.5; text-transform: uppercase; letter-spacing: .1em; }
.about-media > span strong { font-size: 22px; letter-spacing: -.02em; text-transform: none; }
.about-values > div { padding: 28px 0; display: grid; grid-template-columns: 54px 1fr; align-items: start; border-bottom: 1px solid var(--line); }
.about-values strong { color: var(--red); font-size: 13px; font-weight: 800; }
.about-values span { color: var(--muted); font-size: 15px; line-height: 1.5; }
.about-values span b { display: block; color: var(--ink); font-size: 17px; }

.news { background: #151516; border-top: 1px solid var(--line); }
.news > .section-heading, .post-grid { max-width: 1600px; margin-left: auto; margin-right: auto; }
.news-intro { display: flex; flex-direction: column; align-items: flex-start; }
.news-intro > p { margin: 0 0 14px; }
.news-intro > a { color: #ee565e; font-size: 12px; font-weight: 800; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.posts-empty { grid-column: 1 / -1; margin: 0; padding: 55px 25px; color: var(--muted); background: #1e1e20; border: 1px dashed #3b3b3e; border-radius: var(--radius); text-align: center; }
.post-card { overflow: hidden; background: #202022; border: 1px solid rgba(255,255,255,.07); border-radius: var(--radius); }
.post-card > img { width: 100%; height: 230px; display: block; object-fit: cover; }
.post-grid.single-post { grid-template-columns: minmax(0, 940px); }
.post-grid.single-post .post-card { display: grid; grid-template-columns: 1.08fr .92fr; }
.post-grid.single-post .post-card > img { height: 100%; min-height: 390px; }
.post-body { padding: 28px; }
.post-meta { margin-bottom: 14px; display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.post-meta span:first-child { color: #ee565e; }
.post-card h3 { margin: 0 0 12px; font-size: 23px; line-height: 1.2; letter-spacing: -.04em; }
.post-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.post-card details { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.post-card summary { color: #ee565e; cursor: pointer; font-size: 12px; font-weight: 800; list-style: none; }
.post-card summary::-webkit-details-marker { display: none; }
.post-card details p { margin-top: 16px; white-space: pre-line; }
.post-external { margin-top: 22px; padding-top: 18px; display: inline-block; color: #ee565e; border-top: 1px solid var(--line); font-size: 12px; font-weight: 800; }

.platforms { padding: 85px max(5vw, 30px); display: grid; grid-template-columns:.8fr 1.2fr; gap:7vw; align-items:center; background:#0f0f10; border-top:1px solid var(--line); }
.platform-copy h2 { font-size:clamp(34px,3.4vw,52px); }
.platform-copy > p:last-child { max-width:590px; margin:22px 0 0; color:var(--muted); font-size:15px; line-height:1.8; }
.platform-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.platform-grid > a { min-height:180px; padding:25px; display:grid; grid-template-columns:50px 1fr auto; gap:17px; align-items:start; background:#1d1d1f; border:1px solid var(--line); border-radius:18px; transition:.25s; }
.platform-grid > a:hover { transform:translateY(-5px); border-color:#525256; }
.platform-mark { width:50px; height:50px; display:grid; place-items:center; color:white; border-radius:14px; font-size:20px; font-weight:800; }
.hexora-mark { background:#3159d9; }
.wicchu-mark { background:#167765; }
.platform-grid strong { font-size:18px; }
.platform-grid p { margin:9px 0 0; color:var(--muted); font-size:12px; line-height:1.6; }
.platform-grid b { color:#ee565e; }

.contact { margin: 0 max(2vw, 16px); padding: 90px max(5vw, 30px); display: grid; grid-template-columns: 1.05fr .95fr; gap: 8vw; position: relative; overflow: hidden; color: white; background: var(--red); border-radius: 34px; }
.contact::before { content: "M"; position: absolute; right: -20px; bottom: -130px; color: rgba(255,255,255,.06); font-size: 420px; font-weight: 800; line-height: 1; }
.contact > div { position: relative; z-index: 1; }
.contact h2 { max-width: 700px; }
.eyebrow.light { color: #ffb5b8; }
.contact > div > p:last-of-type { max-width: 550px; margin: 24px 0 30px; color: rgba(255,255,255,.74); line-height: 1.7; }
.contact-cta { padding: 15px 20px; display: inline-flex; gap: 30px; align-items: center; color: #151515; background: white; border-radius: 99px; font-size: 13px; font-weight: 800; transition: transform .2s; }
.contact-cta:hover { transform: translateY(-3px); }
.contact-cta span { font-size: 18px; }
.contact-links { display: flex; flex-direction: column; }
.contact-links a { padding: 24px 0; display: flex; flex-direction: column; border-bottom: 1px solid rgba(255,255,255,.25); overflow-wrap: anywhere; transition: padding-left .2s; }
.contact-links a:hover { padding-left: 10px; }
.contact-links span { margin-bottom: 7px; color: #ffb5b8; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; }
.contact-links strong { font-size: clamp(16px, 1.7vw, 23px); }

footer { padding: 50px max(5vw, 30px); display: flex; flex-wrap: wrap; gap: 25px; align-items: center; justify-content: space-between; color: var(--muted); background: #09090a; border-top: 1px solid var(--line); font-size: 12px; }
.footer-brand { color: var(--ink); }
.social-float { display: flex; flex-direction: column; gap: 10px; position: fixed; z-index: 19; right: 20px; bottom: 20px; }
.social-button { width: 52px; height: 52px; display: grid; place-items: center; position: relative; color: white; border: 3px solid rgba(255,255,255,.9); border-radius: 50%; box-shadow: 0 10px 30px rgba(0,0,0,.3); transition: transform .2s; }
.social-button:hover { transform: translateX(-4px) scale(1.04); }
.social-button svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.social-button .social-dot { fill: currentColor; stroke: none; }
.social-button.instagram { background: linear-gradient(145deg, #833ab4, #e1306c 55%, #f77737); }
.social-button.whatsapp { background: #20a95a; }
.social-label { padding: 8px 11px; position: absolute; right: 61px; color: white; background: #262628; border: 1px solid #3b3b3e; border-radius: 8px; opacity: 0; pointer-events: none; transform: translateX(6px); transition: .2s; font-size: 11px; font-weight: 700; white-space: nowrap; }
.social-button:hover .social-label, .social-button:focus-visible .social-label { opacity: 1; transform: translateX(0); }

/* Progressive motion: classes are added by JavaScript only when supported. */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .65s ease, transform .65s cubic-bezier(.2,.7,.2,1); transition-delay: var(--reveal-delay, 0ms); }
.reveal.reveal-left { transform: translateX(-32px); }
.reveal.reveal-right { transform: translateX(32px); }
.reveal.is-visible { opacity: 1; transform: translate(0, 0); }
.story-year strong { transform-origin: left bottom; }
.story-year strong.year-animate { animation: year-in .8s cubic-bezier(.2,.8,.2,1) both; }
.post-card details[open] > p { animation: details-in .35s ease both; }

@keyframes year-in {
  from { opacity: 0; transform: translateY(20px) scale(.88); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes hero-copy-in {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes hero-visual-in {
  from { opacity: 0; transform: translateX(28px) scale(.98); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes details-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1050px) {
  .hero { grid-template-columns: 1fr 1fr; gap: 4vw; }
  .hero-visual { min-height: 520px; }
  .about { grid-template-columns: 1fr 1fr; }
  .about-values { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
}

@media (max-width: 860px) {
  .site-header { height: 74px; padding: 0 5vw; }
  .menu-toggle { display: block; border: 0; background: transparent; color: var(--ink); font: 700 14px "Manrope", sans-serif; }
  nav { display: none; position: absolute; top: 74px; left: 0; right: 0; padding: 25px 5vw; align-items: stretch; flex-direction: column; background: #151516; border-bottom: 1px solid var(--line); box-shadow: 0 15px 30px rgba(0,0,0,.35); }
  nav.open { display: flex; }
  .nav-cta { text-align: center; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding: 70px 5vw; }
  .hero-visual { min-height: 500px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { display: grid; grid-template-columns: .8fr 1.2fr; }
  .service-photo { height: 100%; min-height: 320px; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 300px; }
  .gallery-main { grid-row: span 1; grid-column: span 2; }
  .gallery-wide { grid-column: span 2; }
  .row-heading { grid-template-columns: 1fr; gap: 15px; }
  .story, .about, .contact { grid-template-columns: 1fr; }
  .platforms { grid-template-columns:1fr; }
  .story-media { min-height: 560px; }
  .about-media { height: 450px; }
  .services, .work, .story, .about, .news { padding: 90px 5vw; }
  .post-grid { grid-template-columns: 1fr 1fr; }
  .contact { padding: 75px 6vw; }
}

@media (max-width: 560px) {
  h1 { font-size: 46px; }
  h2 { font-size: 38px; }
  .brand strong { font-size: 18px; }
  .brand small { font-size: 8px; }
  .hero { padding-top: 48px; }
  .hero-visual { min-height: 400px; border-radius: 140px 140px 20px 20px; }
  .visual-card { left: 16px; right: 16px; bottom: 16px; }
  .trust-list { align-items: flex-start; flex-direction: column; gap: 11px; }
  .services { border-radius: 26px 26px 0 0; }
  .service-card { display: block; }
  .service-photo { min-height: 230px; height: 230px; }
  .service-content { min-height: 245px; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 290px; }
  .gallery-main, .gallery-wide { grid-column: span 1; }
  .about { gap: 45px; }
  .story { gap: 55px; }
  .story-media { min-height: 480px; }
  .story-year { left: 20px; right: 20px; bottom: 20px; }
  .story-facts { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: 1fr; }
  .post-grid.single-post .post-card { grid-template-columns:1fr; }
  .post-grid.single-post .post-card > img { min-height:0; height:260px; }
  .platform-grid { grid-template-columns:1fr; }
  .about-media { height: 400px; border-radius: 130px 130px 18px 18px; }
  .about-values { display: block; }
  .contact { margin: 0; border-radius: 0; }
  footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero-copy, .hero-visual, .story-year strong.year-animate, .post-card details[open] > p { animation: none !important; }
}
