/* ============================================================
   artsy.tex — Engineered to Move
   Landing Page · Pure HTML + CSS
   ============================================================ */

/* ---------- FONTS ---------- */
@font-face {
    font-family: 'Neometric';
    src: url('fonts/Neometric-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Neometric';
    src: url('fonts/Neometric-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Neometric';
    src: url('fonts/Neometric-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Neometric';
    src: url('fonts/Neometric-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Neometric';
    src: url('fonts/Neometric-ExtraBold.woff') format('woff');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Neometric';
    src: url('fonts/Neometric-Black.woff') format('woff');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* Editorial serif for italic accents */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@1,144,400;1,144,500&family=JetBrains+Mono:wght@400;500&display=swap');

/* ---------- TOKENS ---------- */
:root {
    --bg: #FFFFFF;
    --text: #182942;
    --text-2: #4A5A73;
    --accent: #B7FF1A;
    --deep: #182942;
    --gray: #666666;
    --light-gray: #EAEAEA;
    --surface: #F7F7F7;
    --border: #ECECEC;
    --border-2: #E4E4E4;
    --black: #0B1220;

    --font-sans: 'Neometric', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-serif: 'Fraunces', 'Playfair Display', Georgia, serif;
    --font-mono: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, Menlo, monospace;

    --radius-card: 20px;
    --radius-img: 24px;
    --radius-pill: 999px;

    --container: 1280px;
    --container-lg: 1440px;

    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--text);
    background: var(--bg);
    font-size: 18px;
    line-height: 1.7;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 800; letter-spacing: -0.02em; line-height: 0.95; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }
em { font-style: italic; font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.01em; }

::selection { background: var(--accent); color: var(--deep); }

/* ---------- CONTAINER ---------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 48px;
}
@media (max-width: 768px) { .container { padding: 0 24px; } }

/* ---------- TYPOGRAPHY UTILITIES ---------- */
.display {
    font-family: var(--font-sans);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.02;
}
.display--hero {
    font-size: clamp(56px, 9.5vw, 140px);
    line-height: 1.0;
    letter-spacing: -0.035em;
}
.display--h2 {
    font-size: clamp(34px, 4.4vw, 64px);
    letter-spacing: -0.025em;
    line-height: 1.08;
}
.display--cta {
    font-size: clamp(40px, 5.8vw, 92px);
    line-height: 1.02;
}
.display--cta span { display: block; }

.lede {
    font-size: clamp(17px, 1.25vw, 20px);
    line-height: 1.7;
    color: var(--text-2);
    max-width: 620px;
    font-weight: 400;
}
.lede--light { color: rgba(255,255,255,0.88); }

.body { font-size: 18px; line-height: 1.8; color: var(--text); }
.body--large { font-size: 21px; line-height: 1.65; letter-spacing: -0.005em;  }
.body--muted { color: var(--gray); max-width: 520px; font-size: 17px; line-height: 1.75; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text);
    font-weight: 500;
}
.eyebrow::before {
    content: '';
    width: 24px;
    height: 1px;
    background: currentColor;
    display: inline-block;
}
.eyebrow--light { color: rgba(255,255,255,0.7); }

.mono {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    color: var(--gray);
    text-transform: uppercase;
}
.mono--label {
    display: block;
    color: var(--text);
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 11px;
}

.rule {
    display: block;
    width: 40px;
    height: 1px;
    background: var(--text);
    margin: 24px 0;
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 26px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1;
    border-radius: var(--radius-pill);
    transition: transform 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
    cursor: pointer;
    white-space: nowrap;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}
.btn--lg { padding: 20px 34px; font-size: 15px; }
.btn__arrow { transition: transform 0.4s var(--ease); display: inline-block; }
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--dark {
    background: var(--deep);
    color: #fff;
}
.btn--dark:hover {
    background: var(--black);
    transform: scale(1.02);
}

.btn--light {
    background: #fff;
    color: var(--deep);
}
.btn--light:hover {
    background: var(--accent);
    color: var(--deep);
    transform: scale(1.02);
}

.btn--outline-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.4);
}
.btn--outline-light:hover {
    background: #fff;
    color: var(--deep);
    border-color: #fff;
}

.btn--ghost {
    background: transparent;
    color: var(--text);
    border-color: transparent;
    padding: 16px 8px;
}
.btn--ghost::after {
    content: '';
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 10px;
    height: 1px;
    background: currentColor;
    transform: scaleX(0.3);
    transform-origin: left;
    transition: transform 0.5s var(--ease);
}
.btn--ghost:hover::after { transform: scaleX(1); }
.btn--ghost.btn--light { color: #fff; }

/* ---------- NAV ---------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 0;
    transition: padding 0.35s var(--ease), background 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
}
.nav.is-scrolled {
    padding: 12px 0;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
}
.nav__inner {
    max-width: var(--container-lg);
    margin: 0 auto;
    padding: 0 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}
.nav__logo {
    display: inline-flex;
    align-items: center;
    height: 34px;
    transition: opacity 0.35s var(--ease);
    position: relative;
}
.nav__logo-img {
    height: 34px;
    width: auto;
    display: block;
    transition: opacity 0.35s var(--ease);
}
.nav__logo-img--color {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}
.nav.is-scrolled .nav__logo-img--white { opacity: 0; }
.nav.is-scrolled .nav__logo-img--color { opacity: 1; }

.logo-mark {
    display: inline-flex;
    align-items: baseline;
    font-family: var(--font-sans);
    font-weight: 900;
    letter-spacing: -0.04em;
}
.logo-mark__y {
    color: var(--accent);
    display: inline-block;
    margin: 0 -0.06em;
    transform: translateY(0.02em);
}
.logo-mark--footer {
    font-size: clamp(48px, 8vw, 120px);
    color: var(--deep);
}
.footer__logo {
    height: 48px;
    width: auto;
    display: block;
}

.nav__links {
    display: flex;
    gap: 24px;
    color: #fff;
    transition: color 0.35s var(--ease);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.01em;
}
.nav.is-scrolled .nav__links { color: var(--deep); }
.nav__links a {
    position: relative;
    padding-bottom: 3px;
    opacity: 0.85;
    transition: opacity 0.3s var(--ease);
}
.nav__links a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease);
}
.nav__links a:hover { opacity: 1; }
.nav__links a:hover::after { transform: scaleX(1); }

.nav__cta {
    background: rgba(255,255,255,0.14);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.35);
    backdrop-filter: blur(12px);
    padding: 12px 20px;
    font-size: 13px;
}
.nav__cta:hover {
    background: var(--accent);
    color: var(--deep);
    border-color: var(--accent);
}
.nav.is-scrolled .nav__cta {
    background: var(--deep);
    color: #fff;
    border-color: var(--deep);
}
.nav.is-scrolled .nav__cta:hover {
    background: var(--accent);
    color: var(--deep);
    border-color: var(--accent);
}

@media (max-width: 900px) {
    .nav__inner { padding: 0 24px; }
    .nav__links { display: none; }
}

/* ---------- HERO ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    color: #fff;
    overflow: hidden;
    display: grid;
    align-items: end;
}
.hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero__img {
    width: 100%;
    height: 115%;
    object-fit: cover;
    object-position: center 30%;
    will-change: transform;
    transform: translate3d(0,0,0) scale(1.1);
}
.hero__vignette {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(11,18,32,0.35) 0%, rgba(11,18,32,0) 30%, rgba(11,18,32,0) 55%, rgba(11,18,32,0.75) 100%),
        radial-gradient(ellipse at 30% 70%, rgba(11,18,32,0.35) 0%, transparent 60%);
}
.hero__grid {
    position: relative;
    z-index: 2;
    max-width: var(--container-lg);
    width: 100%;
    margin: 0 auto;
    padding: 140px 48px 140px;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 32px;
    align-items: end;
}
.hero__meta { grid-column: 1 / span 6; align-self: start; margin-top: -80px; }
.hero__title-wrap { grid-column: 1 / span 12; margin-bottom: 40px; }
.hero__sub { grid-column: 1 / span 12; display: flex; justify-content: space-between; align-items: end; gap: 64px; flex-wrap: wrap; }
.hero__sub .lede { grid-column: auto; flex: 1 1 400px; max-width: 520px; }
.hero__ctas { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

.display--hero .line {
    display: block;
   /* overflow: hidden;*/
}
.display--hero .line span,
.display--hero .line {
    animation: lineIn 1.4s var(--ease-out) both;
}
.display--hero .line--italic { animation-delay: 0.15s; }
.display--hero .line--italic { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.03em; }
.accent-dot { color: var(--accent); font-family: var(--font-sans); font-style: normal; }

@keyframes lineIn {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.hero__scroll {
    position: absolute;
    bottom: 24px;
    left: 48px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
}
.hero__scroll-line {
    display: block;
    width: 60px;
    height: 1px;
    background: linear-gradient(to right, #fff 30%, rgba(255,255,255,0.2) 30%);
    background-size: 200% 100%;
    animation: scrollLine 2.4s var(--ease) infinite;
}
@keyframes scrollLine {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

/* Ticker */
.hero__ticker {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    border-top: 1px solid rgba(255,255,255,0.15);
    padding: 18px 0;
    overflow: hidden;
    background: linear-gradient(180deg, transparent, rgba(11,18,32,0.45));
}
.ticker {
    display: flex;
    gap: 40px;
    width: max-content;
    animation: tickerMove 38s linear infinite;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.75);
    align-items: center;
}
.ticker span { white-space: nowrap; }
.ticker i {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}
@keyframes tickerMove {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (max-width: 768px) {
    .hero__grid { padding: 120px 24px 120px; }
    .hero__meta { margin-top: 0; }
    .hero__scroll { left: 24px; }
}

/* ---------- SECTIONS ---------- */
.section {
    padding: 80px 0;
    position: relative;
}
@media (max-width: 768px) { .section { padding: 88px 0; } }

.section__head {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-bottom: 40px;
    max-width: 900px;
}
.section__head--split {
    max-width: none;
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 64px;
    align-items: end;
}
@media (max-width: 900px) {
    .section__head--split { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.hero.reveal { opacity: 1; transform: none; } /* hero visible immediately */

/* ---------- MANIFESTO ---------- */
.grid-12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: 32px; }
.col-4 { grid-column: span 4; }
.col-8 { grid-column: span 8; }
.col-3 { grid-column: span 3; }
.col-9 { grid-column: span 9; }
@media (max-width: 900px) {
    .col-4, .col-8 { grid-column: span 12; }
	.col-3, .col-9 { grid-column: span 12; }
}

.manifesto__aside { padding-top: 12px; }
.manifesto__figure {
    margin: 96px 0 96px;
    position: relative;
    border-radius: var(--radius-img);
    overflow: hidden;
    aspect-ratio: 16 / 8.5;
}
.manifesto__figure img {
    width: 100%;
    height: 115%;
    object-fit: cover;
    transition: transform 12s var(--ease);
    will-change: transform;
}
.manifesto__figure:hover img { transform: scale(1.04); }
.manifesto__figcaption {
    position: absolute;
    bottom: 24px;
    left: 24px;
    right: 24px;
    display: flex;
    justify-content: space-between;
    color: #fff;
    text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}
.manifesto__figcaption .mono { color: rgba(255,255,255,0.9); }

/* KPI row */
.kpi-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.kpi {
    padding: 40px 24px;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
}
.kpi:last-child { border-right: none; }
.kpi__num {
    font-family: var(--font-sans);
    font-weight: 900;
    font-size: clamp(44px, 4.6vw, 78px);
    letter-spacing: -0.04em;
    line-height: 1;
    color: var(--deep);
    display: inline-block;
}
.kpi__num-suffix {
    font-family: var(--font-sans);
    font-weight: 900;
    font-size: clamp(32px, 3vw, 52px);
    color: var(--accent);
    margin-left: 4px;
    vertical-align: super;
}
.kpi__label {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray);
    line-height: 1.6;
}
@media (max-width: 900px) {
    .kpi-row { grid-template-columns: repeat(2, 1fr); }
    .kpi:nth-child(2) { border-right: none; }
    .kpi:nth-child(1), .kpi:nth-child(2) { border-bottom: 1px solid var(--border); }
}

/* ---------- DIFERENCIAIS ---------- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
@media (max-width: 900px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards-grid { grid-template-columns: 1fr; } }

.fcard {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 40px 36px 36px;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    position: relative;
    transition: transform 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
    overflow: hidden;
}
.fcard:hover {
    transform: translateY(-6px);
    border-color: var(--deep);
    box-shadow: 0 10px 40px -20px rgba(24,41,66,0.25);
}
.fcard__icon {
    width: 44px;
    height: 44px;
    color: var(--deep);
}
.fcard__icon svg { width: 100%; height: 100%; }
.fcard__title {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--deep);
}
.fcard__body {
    color: var(--gray);
    font-size: 16px;
    line-height: 1.6;
    max-width: 320px;
}
.fcard__idx {
    position: absolute;
    top: 28px;
    right: 32px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--gray);
    letter-spacing: 0.1em;
}
.fcard--accent {
    background: var(--deep);
    color: #fff;
    border-color: var(--deep);
}
.fcard--accent .fcard__title { color: #fff; }
.fcard--accent .fcard__body { color: rgba(255,255,255,0.7); }
.fcard--accent .fcard__idx { color: var(--accent); }
.fcard--accent .fcard__icon { color: var(--accent); }
.fcard--accent:hover { transform: translateY(-6px); box-shadow: 0 20px 60px -20px rgba(24,41,66,0.5); }

/* ---------- EDITORIAL ---------- */
.editorial { padding: 0 0 140px; }
.editorial__grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
    padding: 0 48px;
    max-width: var(--container-lg);
    margin: 0 auto;
}
.editorial__figure {
    grid-column: span 4;
    position: relative;
    border-radius: var(--radius-img);
    overflow: hidden;
    aspect-ratio: 3 / 4;
}
.editorial__figure--tall { grid-column: span 5; aspect-ratio: 3 / 4.4; }
.editorial__figure--wide { grid-column: span 12; aspect-ratio: 16 / 7; margin-top: 24px; }
.editorial__figure img {
    width: 100%;
    height: 115%;
    object-fit: cover;
    transition: transform 8s var(--ease);
    will-change: transform;
}
.editorial__figure:hover img { transform: scale(1.04); }
.editorial__figure figcaption {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: rgba(255,255,255,0.9);
    text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}
.editorial__quote {
    grid-column: span 3;
    display: flex;
    flex-direction: column;
    gap: 24px;
    justify-content: center;
    padding: 20px 0;
}
.pull {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(22px, 2vw, 30px);
    line-height: 1.35;
    color: var(--deep);
    letter-spacing: -0.01em;
    position: relative;
}
.pull__mark {
    font-family: var(--font-serif);
    font-size: 3em;
    color: var(--accent);
    line-height: 0;
    margin-right: 4px;
    vertical-align: -0.15em;
}

@media (max-width: 900px) {
    .editorial__grid { padding: 0 24px; }
    .editorial__figure, .editorial__figure--tall { grid-column: span 12; aspect-ratio: 4/3; }
    .editorial__quote { grid-column: span 12; padding: 24px 0; }
    .editorial__figure--wide { grid-column: span 12; }
}

/* ---------- MARCAS (marquee) ---------- */
.brand-marquee {
    margin-top: 64px;
    overflow: hidden;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 40px 0;
    mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.brand-marquee__track {
    display: flex;
    align-items: center;
    gap: 80px;
    width: max-content;
    animation: brandMove 44s linear infinite;
}
.brand-monogram {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: clamp(28px, 3vw, 44px);
    color: var(--deep);
    letter-spacing: -0.03em;
    white-space: nowrap;
    opacity: 0.85;
    transition: opacity 0.4s var(--ease);
}
.brand-monogram:hover { opacity: 1; }
.brand-monogram sup { font-size: 0.35em; vertical-align: super; }
@keyframes brandMove {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ---------- CLIENTES (logo marquee) ---------- */
.clients-marquee {
    margin-top: 72px;
    overflow: hidden;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 48px 0;
    mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.clients-marquee__track {
    display: flex;
    align-items: center;
    gap: 80px;
    width: max-content;
    animation: brandMove 42s linear infinite;
}
.client-logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: grayscale(1) contrast(0.92);
    opacity: 0.55;
    transition: filter 0.5s var(--ease), opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.client-logo:hover {
    filter: grayscale(0) contrast(1);
    opacity: 1;
    transform: scale(1.05);
}
.client-logo img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    display: block;
    border-radius: 16px;
}

/* ---------- CERTIFICAÇÕES ---------- */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
@media (max-width: 1024px) { .cert-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .cert-grid { grid-template-columns: 1fr; } }

.cert-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 36px 32px 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    transition: transform 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
    position: relative;
    overflow: hidden;
}
.cert-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top right, var(--surface) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s var(--ease);
    pointer-events: none;
}
.cert-card:hover {
    transform: translateY(-6px);
    border-color: var(--deep);
    box-shadow: 0 20px 60px -25px rgba(24,41,66,0.25);
}
.cert-card:hover::before { opacity: 1; }

.cert-card__badge {
    width: 100%;
    aspect-ratio: 1 / 1;
    max-width: 150px;
    background: var(--surface);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--border);
    position: relative;
    z-index: 1;
}
.cert-card__badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    padding: 12px;
}
.cert-card__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    z-index: 1;
}
.cert-card__title {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--deep);
    line-height: 1.1;
}
.cert-card__title sup {
    font-size: 0.4em;
    vertical-align: super;
    color: var(--gray);
    font-weight: 500;
    margin-left: 2px;
}
.cert-card__text {
    color: var(--gray);
    font-size: 15px;
    line-height: 1.6;
}


/* ---------- MALHAS (star section) ---------- */
.malha-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 1180px) { .malha-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px)  { .malha-grid { grid-template-columns: 1fr; } }

.malha {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
    position: relative;
}
.malha:hover {
    transform: translateY(-6px);
    border-color: var(--deep);
    box-shadow: 0 30px 80px -30px rgba(24,41,66,0.28);
}
.malha__badge {
    position: absolute;
    top: 24px;
    left: 24px;
    z-index: 2;
    background: var(--accent);
    color: var(--deep);
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 500;
}
.malha__media {
    aspect-ratio: 16 / 9.5;
    overflow: hidden;
    background: var(--surface);
    position: relative;
}
.malha__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.4s var(--ease);
}
.malha:hover .malha__media img { transform: scale(1.05); }
.malha__body {
    padding: 32px 30px 30px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    flex: 1;
}
.malha__header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.malha__name {
    font-size: clamp(30px, 2.6vw, 42px);
    font-weight: 900;
    color: var(--deep);
    letter-spacing: -0.04em;
    line-height: 1.0;
    text-transform: uppercase;
}
.tag {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gray);
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
}
.malha__intro {
    font-size: 17px;
    line-height: 1.6;
    color: var(--text);
    max-width: 460px;
}
.malha__section { display: flex; flex-direction: column; gap: 10px; }

.check-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    font-size: 14.5px;
    color: var(--text);
}
.check-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    line-height: 1.5;
}
.check-list li::before {
    content: '';
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    border-radius: 50%;
    background-color: var(--accent);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23182942' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><polyline points='3.5 8.5 6.5 11.5 12.5 5'/></svg>");
    background-size: 62% 62%;
    background-position: center;
    background-repeat: no-repeat;
}

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    padding: 8px 14px;
    border: 1px solid var(--border-2);
    border-radius: var(--radius-pill);
    font-size: 13px;
    color: var(--text);
    background: var(--surface);
    transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.chip:hover { background: var(--deep); color: #fff; border-color: var(--deep); }

.malha__specs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 18px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.malha__specs > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.malha__specs > div .mono--label { margin-bottom: 0; }
.malha__specs strong { font-weight: 700; font-size: 14px; color: var(--deep); line-height: 1.3; text-align: right; }
@media (max-width: 600px) {
    .check-list { grid-template-columns: 1fr; }
    .malha__body { padding: 24px 22px; }
}

.malha__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: auto; }

/* ---------- PROCESSO (Timeline) ---------- */
.timeline {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    position: relative;
    padding-top: 40px;
}
.timeline::before {
    content: '';
    position: absolute;
    top: 60px;
    left: 4%;
    right: 4%;
    height: 1px;
    background: linear-gradient(to right, var(--border) 0%, var(--border) 90%, var(--accent) 100%);
}
.tl {
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: relative;
    padding-top: 90px;
}
.tl__idx {
    position: absolute;
    top: 0;
    left: 0;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--gray);
    letter-spacing: 0.16em;
}
.tl__dot {
    position: absolute;
    top: 54px;
    left: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    border: 1.5px solid var(--deep);
}
.tl__dot--last { background: var(--accent); border-color: var(--accent); }
.tl__title {
    font-size: 26px;
    font-weight: 800;
    color: var(--deep);
    letter-spacing: -0.02em;
    margin-top: 0;
}
.tl__body {
    color: var(--gray);
    font-size: 15px;
    line-height: 1.6;
}
@media (max-width: 900px) {
    .timeline { grid-template-columns: 1fr; gap: 40px; }
    .timeline::before {
        top: 40px; bottom: 40px; left: 6px; right: auto;
        width: 1px; height: auto;
        background: linear-gradient(to bottom, var(--border) 0%, var(--border) 90%, var(--accent) 100%);
    }
    .tl { padding-top: 40px; padding-left: 32px; }
    .tl__dot { top: 46px; left: 0; }
    .tl__idx { left: 32px; }
}

/* ---------- APLICAÇÕES (Carousel horizontal) ---------- */
.app-carousel {
    position: relative;
    margin-left: calc(-1 * (100vw - min(100vw - 48px, var(--container))) / 2);
    margin-right: calc(-1 * (100vw - min(100vw - 48px, var(--container))) / 2);
}
.app-carousel__track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 max(48px, calc((100vw - var(--container)) / 2)) 8px;
    cursor: grab;
    scroll-padding-left: max(48px, calc((100vw - var(--container)) / 2));
}
.app-carousel__track::-webkit-scrollbar { display: none; }
.app-carousel__track.is-dragging { cursor: grabbing; user-select: none; }
.app-carousel__track.is-dragging img { pointer-events: none; }

.app {
    flex: 0 0 clamp(280px, 30vw, 420px);
    position: relative;
    border-radius: var(--radius-img);
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: var(--surface);
    scroll-snap-align: start;
    transition: transform 0.6s var(--ease);
}
.app:hover { transform: translateY(-6px); }
.app__img { position: absolute; inset: 0; }
.app__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.4s var(--ease);
    pointer-events: none;
}
.app:hover .app__img img { transform: scale(1.06); }
.app::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(11,18,32,0.88) 100%);
}
.app__meta {
    position: absolute;
    bottom: 28px;
    left: 28px;
    right: 28px;
    z-index: 2;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.app__meta .mono { color: rgba(255,255,255,0.7); }
.app__meta h3 {
    font-size: clamp(28px, 2.4vw, 38px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.05;
}

.app-carousel__nav {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    padding: 0 max(48px, calc((100vw - var(--container)) / 2));
}
.carousel-btn {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--border);
    color: var(--deep);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.35s var(--ease), border-color 0.35s var(--ease), color 0.35s var(--ease), transform 0.35s var(--ease);
}
.carousel-btn:hover:not(:disabled) {
    background: var(--deep);
    color: #fff;
    border-color: var(--deep);
    transform: scale(1.05);
}
.carousel-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.app-carousel__progress {
    flex: 1;
    height: 1px;
    background: var(--border);
    position: relative;
    max-width: 320px;
}
.app-carousel__progress span {
    display: block;
    height: 100%;
    width: 0;
    background: var(--deep);
    transition: width 0.35s var(--ease);
}
@media (max-width: 768px) {
    .app-carousel { margin-left: -24px; margin-right: -24px; }
    .app-carousel__track { padding: 0 24px 8px; scroll-padding-left: 24px; }
    .app-carousel__nav { padding: 0 24px; }
    .app { flex: 0 0 78vw; }
}
.nav__logo-img {
    height: 26px;
    width: auto;
    display: block;
    transition: opacity 0.35s var(--ease);
}

/* ---------- CTA FINAL ---------- */
.cta {
    position: relative;
    padding: 200px 0 200px;
    color: #fff;
    overflow: hidden;
}
.cta__media {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}
.cta__media img {
    width: 100%;
    height: 120%;
    object-fit: cover;
    object-position: center 40%;
    will-change: transform;
    position: relative;
    z-index: 1;
}
.cta__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(180deg, rgba(11,18,32,0.82) 0%, rgba(11,18,32,0.95) 100%),
        radial-gradient(ellipse at 30% 40%, rgba(11,18,32,0.35) 0%, transparent 60%);
}
.cta__inner {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 1080px;
}
.display--cta em { color: var(--accent); font-family: var(--font-serif); }
.cta__actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; }

@media (max-width: 768px) { .cta { padding: 120px 0; } }

/* ---------- FOOTER ---------- */
.footer {
    background: var(--bg);
    color: var(--deep);
    padding: 96px 0 40px;
    border-top: 1px solid var(--border);
    position: relative;
}
.footer__top {
    display: grid;
    grid-template-columns: 1fr 2.4fr;
    gap: 64px;
    padding-bottom: 80px;
    border-bottom: 1px solid var(--border);
}
.footer__brand { display: flex; flex-direction: column; gap: 12px; }
.footer__tag {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 22px;
    color: var(--gray);
}
.footer__cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.footer__col {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 15px;
    color: var(--text);
}
.footer__col a { color: var(--text); transition: color 0.3s var(--ease); }
.footer__col a:hover { color: var(--deep); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--accent); }

.footer__wordmark {
    text-align: center;
    margin: 60px 0 40px;
    width: 100%;
    display: block;
    padding: 0 24px;
}
.footer__wordmark-img {
    width: 100%;
    max-width: 1080px;
    height: auto;
    margin: 0 auto;
    display: block;
    opacity: 0.9;
    mask-image: linear-gradient(180deg, #000 0%, #000 55%, rgba(0,0,0,0.08) 100%);
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, rgba(0,0,0,0.08) 100%);
}
.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}
@media (max-width: 900px) {
    .footer__top { grid-template-columns: 1fr; gap: 40px; }
    .footer__cols { grid-template-columns: repeat(2, 1fr); }
    .footer__bottom { justify-content: flex-start; }
}

/* ---------- HIDE emergent badge (branding) ---------- */
/* keep emergent badge visible per policy — style unchanged */
