:root {
  --bg: #090d10;
  --surface: #111820;
  --surface-2: #172129;
  --paper: #f4f7f6;
  --muted: #a9b5b9;
  --mint: #a7f5d7;
  --orange: #ff744e;
  --violet: #8c7cff;
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.28);
  --shell: min(1440px, calc(100vw - 2.5rem));
  --section: clamp(5rem, 9vw, 10rem);
  --radius: 1rem;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--paper); font-family: Arial, Helvetica, system-ui, sans-serif; font-size: 1rem; line-height: 1.55; overflow-x: hidden; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
img, video { display: block; width: 100%; max-width: 100%; }
img { background: #151c21; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-weight: 500; line-height: 1.02; letter-spacing: -.045em; }
h1 { font-size: clamp(4rem, 10vw, 10rem); }
h2 { font-size: clamp(2.8rem, 6.4vw, 7rem); }
h3 { font-size: clamp(1.6rem, 2.7vw, 3rem); }
em { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; }
.shell { width: var(--shell); margin-inline: auto; }
.skip-link { position: fixed; z-index: 1000; left: 1rem; top: .75rem; padding: .8rem 1rem; background: var(--paper); color: var(--bg); transform: translateY(-160%); transition: transform .2s; }
.skip-link:focus { transform: translateY(0); }
.eyebrow, .section-code { margin: 0; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.section-code { color: var(--mint); }
.accent-mint { color: var(--mint); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.button { min-height: 3rem; display: inline-flex; align-items: center; justify-content: center; padding: .7rem 1.2rem; border: 1px solid var(--line-strong); border-radius: 999px; font-weight: 700; font-size: .92rem; transition: transform .25s var(--ease), color .25s, background .25s, border-color .25s; }
.button:hover, .button:focus-visible { transform: translateY(-2px); border-color: var(--paper); }
.button-small { min-height: 2.65rem; padding-inline: 1rem; font-size: .82rem; }
.button-mint { color: #07110d; background: var(--mint); border-color: var(--mint); }
.button-orange { color: #140906; background: var(--orange); border-color: var(--orange); }
.button-clear { background: rgba(255, 255, 255, .03); }
.text-link { display: inline-flex; width: max-content; padding-bottom: .2rem; border-bottom: 1px solid var(--mint); color: var(--paper); font-weight: 700; font-size: .92rem; }
.text-link:hover, .text-link:focus-visible { color: var(--mint); }
.text-link-orange { border-color: var(--orange); }
.text-link-orange:hover, .text-link-orange:focus-visible { color: var(--orange); }

.site-header { position: fixed; z-index: 100; top: 0; left: 0; right: 0; border-bottom: 1px solid transparent; transition: background .3s, border-color .3s, backdrop-filter .3s; }
.site-header.is-scrolled { background: rgba(9, 13, 16, .86); border-color: var(--line); backdrop-filter: blur(18px); }
.nav-wrap { min-height: 4.6rem; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; width: max-content; font-size: 1.3rem; font-weight: 700; letter-spacing: -.035em; white-space: nowrap; }
.brand span { display: flex; align-items: center; justify-content: center; width: 27px; height: 30px; border-top: 3px solid #5b6cff; border-left: 3px solid #5b6cff; color: #ff6a4a; font-size: 18px; font-weight: 400; line-height: 1; }
.brand small { color: var(--paper); font-size: .875rem; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; }
.desktop-nav { display: flex; gap: clamp(1.25rem, 3vw, 3rem); align-items: center; }
.desktop-nav a { font-size: .9rem; font-weight: 700; }
.desktop-nav a:hover, .desktop-nav a:focus-visible { opacity: .7; }
.nav-projects { color: var(--mint); }
.nav-archive { color: var(--orange); }
.nav-about { color: var(--paper); }
.header-cta { justify-self: end; }
.menu-toggle { display: none; color: var(--paper); background: transparent; border: 1px solid var(--line-strong); border-radius: 999px; min-height: 2.75rem; padding: .6rem 1rem; }
.mobile-nav { position: fixed; inset: 4.6rem 0 auto; padding: 1rem 1.25rem 1.5rem; background: rgba(9, 13, 16, .98); border-bottom: 1px solid var(--line); }
.mobile-nav a { display: block; padding: .8rem 0; font-size: 1.05rem; font-weight: 700; }

.opening { --v1-bg: #0f1115; --v1-paper: #f1eee7; --v1-muted: #b0b2bd; --v1-blue: #5b6cff; --v1-coral: #ff6a4a; --v1-line: rgba(255,255,255,.125); --v1-gutter: clamp(1.25rem,4.5vw,5rem); position: relative; height: 190svh; min-height: 1000px; background: var(--v1-bg); }
.hero-stage { position: sticky; top: 0; height: 100svh; min-height: 620px; overflow: hidden; isolation: isolate; background: var(--v1-bg); }
.hero-gridline { position: absolute; left: var(--v1-gutter); right: var(--v1-gutter); top: 84px; height: 1px; background: var(--v1-line); z-index: 3; }
.hero-gridline::after { content: ''; position: absolute; left: 50%; top: 0; width: 1px; height: 24px; background: var(--v1-line); }
.hero-copy { position: absolute; left: 50%; top: 47%; transform: translate(-50%,-50%); width: min(900px,calc(100% - 2 * var(--v1-gutter))); text-align: center; z-index: 4; opacity: var(--hero-opacity,1); }
.hero-copy .kicker { color: var(--v1-paper); margin-bottom: 1.8rem; font-size: .875rem; letter-spacing: .13em; text-transform: uppercase; line-height: 1.5; }
.hero-copy h1 { font-size: clamp(4rem,8.4vw,8.5rem); line-height: .98; margin-bottom: 1.6rem; letter-spacing: -.065em; }
.hero-copy h1 em { color: inherit; font-family: Georgia,'Times New Roman',serif; font-weight: 400; letter-spacing: -.07em; }
.hero-copy p { font-size: clamp(1rem,1.5vw,1.3rem); color: #e1ded9; }
.hero-copy .hero-tagline { margin-bottom: .55rem; }
.hero-copy .hero-subheadline { max-width: 640px; margin: .55rem auto 0; color: var(--v1-muted); font-size: clamp(.95rem,1.2vw,1.08rem); line-height: 1.55; }
.hero-copy .actions { justify-content: center; margin-top: 2rem; }
.hero-copy .hero-subheadline + .actions { margin-top: 1.5rem; }
.opening .button { min-height: 48px; padding: .75rem 1.4rem; border: 1px solid rgba(255,255,255,.31); border-radius: 99px; background: transparent; color: var(--v1-paper); font-size: 1rem; line-height: 1.4; }
.opening .button.primary { background: var(--v1-blue); border-color: var(--v1-blue); color: #fff; }
.opening .button.primary:hover { background: #7280ff; }
.hero-veil { position: absolute; inset: 0; z-index: 2; background: radial-gradient(ellipse at 50% 46%,rgba(15,17,21,.91) 0%,rgba(15,17,21,.63) 30%,transparent 63%); pointer-events: none; }
.float { position: absolute; left: 50%; top: 50%; width: clamp(125px,var(--width,14vw),225px); aspect-ratio: 3 / 4; margin: 0; border: 1px solid rgba(255,255,255,.12); overflow: hidden; box-shadow: 0 12px 50px rgba(0,0,0,.33); transform: translate(calc(-50% + var(--x,0px)),calc(-50% + var(--y,0px))) rotate(var(--angle,0deg)) scale(var(--scale,1)); will-change: transform; z-index: 1; }
.float img { width: 100%; height: 100%; object-fit: cover; background: transparent; }
.float.poster img { object-fit: cover; background: transparent; }
.float .float-caption { position: absolute; bottom: 0; left: 0; right: 0; padding: .4rem .6rem; font-size: .75rem; line-height: 1.3; background: rgba(0,0,0,.67); opacity: var(--caption-opacity,0); }
.transition-copy { position: absolute; top: 35%; left: 50%; width: min(900px,calc(100% - 2 * var(--v1-gutter))); transform: translate(-50%,-50%); text-align: center; z-index: 4; opacity: var(--direction-opacity,0); pointer-events: none; }
.transition-copy .kicker { color: var(--v1-muted); font-size: .875rem; letter-spacing: .13em; text-transform: uppercase; line-height: 1.5; }
.transition-copy h2 { font-size: clamp(2.6rem,5.4vw,5.7rem); line-height: 1.03; margin: 0 0 1.5rem; letter-spacing: -.06em; }
.transition-copy h2 span { color: var(--v1-coral); }
.hero-footer { position: absolute; bottom: 2rem; left: var(--v1-gutter); right: var(--v1-gutter); display: flex; justify-content: space-between; align-items: center; gap: 2rem; z-index: 4; font-size: .8125rem; color: var(--v1-muted); }
.scroll-line { display: flex; align-items: center; gap: .8rem; }
.scroll-line::before { content: ''; width: 1.8rem; height: 1px; background: var(--v1-coral); }
.hero-progress { width: 100px; height: 2px; background: rgba(255,255,255,.19); }
.hero-progress span { display: block; width: calc(var(--progress,0) * 100%); height: 2px; background: var(--v1-coral); }

.projects-intro { padding: var(--section) 0 clamp(2rem,4vw,4rem); }
.projects-intro > div { display: grid; grid-template-columns: .4fr 1fr; gap: 3rem; align-items: start; text-align: left; }
.projects-intro > div > * { justify-self: start; }
.projects-intro h2 { margin: 0; text-align: left; }
.projects-intro h2 em { color: var(--mint); }
.projects-intro div > div p { max-width: 35rem; margin-left: 0; color: var(--muted); font-size: 1.12rem; text-align: left; }

.project-feature, .content-section { padding: var(--section) 0; border-top: 1px solid var(--line); }
.feature-grid { display: grid; grid-template-columns: minmax(0, 1.14fr) minmax(20rem, .86fr); gap: clamp(2rem, 7vw, 8rem); align-items: center; }
.feature-reverse .feature-grid { grid-template-columns: minmax(20rem, .86fr) minmax(0, 1.14fr); }
.feature-carousel { min-width: 0; }
.feature-social-link { margin-top: 1rem; }
.feature-visual { position: relative; display: block; aspect-ratio: 9 / 16; overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.feature-visual img { height: 100%; object-fit: contain; transition: opacity .85s var(--ease), transform .7s var(--ease); }
#liv-sync .feature-visual img { object-fit: cover; }
.feature-visual:hover img { transform: scale(1.02); }
.feature-visual.is-switching img { opacity: .16; }
.media-index { position: absolute; top: 1rem; left: 1rem; display: grid; place-items: center; width: 2.8rem; aspect-ratio: 1; border-radius: 50%; background: var(--paper); color: var(--bg); font-weight: 700; }
.media-link { position: absolute; right: 1rem; bottom: 1rem; padding: .55rem .85rem; border-radius: 999px; background: rgba(9,13,16,.82); font-size: .78rem; font-weight: 700; }
.feature-selectors { display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem; margin-top: 1rem; }
.feature-selectors button { display: grid; place-items: center; min-width: 2.4rem; min-height: 2.4rem; padding: .35rem; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--muted); background: transparent; font-size: .72rem; cursor: pointer; transition: color .2s ease, border-color .2s ease, background-color .2s ease; }
.feature-selectors button:hover { color: var(--paper); border-color: var(--paper); }
.feature-selectors button[aria-pressed="true"] { color: var(--bg); border-color: var(--mint); background: var(--mint); }
.feature-copy h2 { margin: .8rem 0 1.5rem; font-size: clamp(2.8rem, 5vw, 5.8rem); }
.feature-lead { max-width: 38rem; color: var(--paper); font-size: clamp(1.05rem, 1.4vw, 1.25rem); }
.case-brief { margin: 2rem 0; border-top: 1px solid var(--line); }
.case-brief > div { display: grid; grid-template-columns: 8rem 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.case-brief span { color: var(--mint); font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.case-brief p { margin: 0; color: var(--muted); }
.spec-note { color: var(--muted); font-size: .82rem; }

.mm-feature { background: #0d1116; }
.mm-grid { display: grid; grid-template-columns: minmax(20rem,.82fr) minmax(0,1.18fr); gap: clamp(2rem,6vw,7rem); align-items: center; }
.mm-screen { position: relative; min-height: 0; aspect-ratio: 9 / 16; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.mm-screen img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: contain; transition: opacity .75s var(--ease), transform 1.2s var(--ease); }
.mm-screen.is-switching img { opacity: .25; transform: scale(1.03); }
.mm-caption { position: absolute; left: 1rem; bottom: 1rem; padding: .6rem .8rem; background: rgba(9,13,16,.8); border-radius: 999px; font-size: .8rem; }
.mm-controls { display: flex; flex-wrap: wrap; gap: .55rem; margin: 1.5rem 0; }
.mm-controls button, .social-tabs button, .gallery-controls button { min-height: 2.7rem; padding: .55rem .9rem; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--paper); background: transparent; cursor: pointer; }
.mm-controls button[aria-pressed="true"], .social-tabs button[aria-selected="true"], .gallery-controls button[aria-pressed="true"] { color: var(--bg); background: var(--mint); border-color: var(--mint); }

.section-heading { display: grid; grid-template-columns: 1fr minmax(18rem, .45fr); gap: 3rem; align-items: end; margin-bottom: clamp(2.5rem, 6vw, 5rem); }
.section-heading h2 { margin: .75rem 0 0; }
.section-heading h2 em { color: var(--mint); }
.section-heading > p { color: var(--muted); font-size: 1.1rem; }
.motion-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.motion-card { margin: 0; }
.motion-card video { aspect-ratio: 16 / 9; object-fit: contain; border-radius: var(--radius); background: var(--surface); }
.motion-card div { display: flex; justify-content: space-between; gap: 1rem; padding-top: .9rem; }
.motion-card h3 { margin: 0; font-size: 1rem; letter-spacing: -.01em; }
.motion-card span { color: var(--orange); font-size: .78rem; }
.section-action { display: flex; justify-content: space-between; gap: 1rem; align-items: center; margin-top: 2rem; }

.story-section { background: #0c1215; }
.story-layout { display: grid; grid-template-columns: 1.15fr .52fr .7fr; gap: 1rem; align-items: start; }
.story-main, .story-side a { position: relative; display: block; overflow: hidden; border-radius: var(--radius); }
.story-main img { height: auto; min-height: 0; aspect-ratio: 16 / 9; object-fit: contain; }
.story-main span { position: absolute; left: 1rem; bottom: 1rem; padding: .5rem .75rem; background: rgba(9,13,16,.82); border-radius: 999px; font-size: .78rem; }
.story-side { display: grid; grid-template-rows: 1fr 1fr; gap: 1rem; }
.story-side img { height: auto; aspect-ratio: 16 / 9; object-fit: contain; }
.story-copy { padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.story-copy .case-brief { margin-top: 0; }

.business-section { background: radial-gradient(circle at 70% 10%, rgba(255,116,78,.1), transparent 28%), var(--bg); }
.b2b-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1rem,3vw,2.5rem); }
.b2b-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.b2b-media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.b2b-media img { width: 100%; height: 100%; object-fit: cover; background: var(--bg); }
.b2b-media span, .digital-media span { position: absolute; top: .8rem; right: .8rem; padding: .42rem .66rem; border-radius: 999px; background: var(--paper); color: var(--bg); font-size: .7rem; font-weight: 700; }
.b2b-card > div:last-child { padding: clamp(1.25rem,3vw,2rem); }
.b2b-card h3 { margin: .7rem 0 1rem; }
.b2b-card p { color: var(--muted); }
.status-note { padding-top: 1rem; border-top: 1px solid var(--line); font-size: .85rem; }

.social-stage { display: grid; grid-template-columns: .2fr .95fr .65fr; gap: clamp(1rem,3vw,2.5rem); align-items: center; }
.social-tabs { display: flex; flex-direction: column; gap: .6rem; align-items: stretch; }
.social-tabs button { text-align: left; }
.social-visual { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.social-visual img, .social-visual video { width: 100%; height: 100%; object-fit: cover; }
.social-copy h3 { margin: .8rem 0 1rem; }
.social-copy > p { color: var(--muted); }
.social-copy blockquote { margin: 1.5rem 0; padding: 1.2rem 0 1.2rem 1.2rem; border-left: 2px solid var(--orange); color: var(--paper); font-family: Georgia, serif; font-size: 1.25rem; font-style: italic; }

.digital-section { background: #0c1215; }
.digital-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.digital-grid article { padding-bottom: 1rem; }
.digital-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); }
.digital-media img { width: 100%; height: 100%; object-fit: cover; background: var(--surface); }
.digital-media-fluxia img { object-position: center; }
.b2b-media img[src*="mega-bitdefender"], .social-visual img[src*="mega-bitdefender"], .digital-media img[src*="mega-bitdefender"] { object-position: 72% center; }
.digital-grid h3 { margin: 1.2rem 0 .6rem; font-size: 1.6rem; }
.digital-grid p { color: var(--muted); }
.tools-grid { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.tools-grid article { min-height: 21rem; padding: clamp(1.25rem,3vw,2.2rem); border-top: 3px solid transparent; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background-color .3s var(--ease); }
.tools-grid article:nth-child(1) { border-top-color: var(--mint); background: rgba(167,245,215,.055); }
.tools-grid article:nth-child(2) { border-top-color: var(--orange); background: rgba(255,116,78,.06); }
.tools-grid article:nth-child(3) { border-top-color: var(--violet); background: rgba(140,124,255,.075); }
.tools-grid article:nth-child(1) .eyebrow { color: var(--mint); }
.tools-grid article:nth-child(2) .eyebrow { color: #ff9a7e; }
.tools-grid article:nth-child(3) .eyebrow { color: #b5adff; }
.tools-grid article:nth-child(1) .text-link { border-color: var(--mint); }
.tools-grid article:nth-child(2) .text-link { border-color: var(--orange); }
.tools-grid article:nth-child(3) .text-link { border-color: var(--violet); }
.tools-grid h3 { margin: 2.8rem 0 1rem; }
.tools-grid p { color: var(--muted); }
.experiments-showcase { margin-top: clamp(3.5rem,7vw,7rem); }
.experiments-heading { display: grid; grid-template-columns: 1fr 2fr; gap: 2rem; align-items: end; margin-bottom: 2rem; }
.experiments-heading h3 { max-width: 12ch; margin: 0; font-size: clamp(2.4rem,5vw,5rem); line-height: .98; }
.experiments-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2.5rem 1rem; }
.experiment-card h3 { margin: .8rem 0 .25rem; font-size: 1.15rem; }
.experiment-card p { margin: 0; color: var(--muted); font-size: .8rem; }
.experiment-media { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.experiment-media img, .experiment-media video { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.experiment-media:hover img, .experiment-media:hover video { transform: scale(1.025); }
.experiment-video video { object-fit: contain; background: #050708; }
.experiment-video span { position: absolute; right: .8rem; bottom: .8rem; padding: .45rem .7rem; border-radius: 999px; background: rgba(9,13,16,.86); font-size: .74rem; }
.experiment-study-card { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0,1.7fr) minmax(16rem,.7fr); gap: clamp(1.25rem,4vw,4rem); align-items: center; padding-top: clamp(2rem,4vw,4rem); border-top: 1px solid var(--line); }
.experiment-study-card > div > p:not(.eyebrow) { color: var(--muted); }
.experiment-study-card h3 { margin: .75rem 0 1rem; font-size: clamp(1.8rem,3.2vw,3.3rem); line-height: 1; }
.experiment-study-card .text-link { display: inline-block; margin-top: 1rem; }
.study-media-grid { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: .65rem; color: inherit; }
.study-media-item { margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.study-media-item img { display: block; width: 100%; height: 100%; object-fit: cover; }
.study-media-item:first-child { grid-row: span 2; }
.study-media-item:not(:first-child) { aspect-ratio: 16 / 9; }
.study-media-wide img { object-fit: contain; }
.archive-call { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 2rem; }
.archive-call p { margin: 0; color: var(--muted); }

.about-section { background: var(--paper); color: var(--bg); }
.about-section .section-code { color: #257657; }
.about-grid { display: grid; grid-template-columns: 1fr .82fr; gap: clamp(2rem,7vw,8rem); }
.about-grid h2 { margin: .75rem 0 2rem; }
.about-grid h2 em { color: #e34c27; }
.about-numbers { display: flex; gap: 1rem; }
.about-numbers div { flex: 1; padding: 1.25rem; border: 1px solid rgba(9,13,16,.2); border-radius: var(--radius); }
.about-numbers strong { display: block; font-size: 2.3rem; }
.about-numbers span { font-size: .82rem; }
.about-copy { font-size: 1.1rem; }
.studies { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid rgba(9,13,16,.2); }
.studies span { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.studies p { margin-top: .7rem; }
.contact-section { padding: var(--section) 0; background: radial-gradient(circle at 85% 20%, rgba(255,116,78,.18), transparent 28%), radial-gradient(circle at 15% 80%, rgba(167,245,215,.1), transparent 28%), var(--bg); }
.contact-section h2 { margin: 1rem 0 2.5rem; }
.contact-section h2 em { color: var(--orange); }
.contact-links { display: flex; flex-wrap: wrap; gap: 1.3rem; margin-top: 3rem; color: var(--muted); }
.contact-links a:hover { color: var(--paper); }

.site-footer { padding: 3rem 0 1.5rem; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.2fr .6fr .7fr; gap: 2rem; }
.footer-grid p, .footer-grid a, .footer-grid span { color: var(--muted); font-size: .85rem; }
.footer-links, .footer-version { display: flex; flex-direction: column; gap: .55rem; }
.footer-grid a:hover { color: var(--paper); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .74rem; }

.inner-hero { padding: clamp(9rem,16vw,14rem) 0 clamp(4rem,8vw,8rem); background: radial-gradient(circle at 70% 20%, rgba(255,116,78,.12), transparent 34%); }
.inner-hero h1 { margin: .8rem 0 1.5rem; max-width: 12ch; }
.inner-hero h1 em { color: var(--orange); }
.inner-hero > div > p:last-child { max-width: 42rem; color: var(--muted); font-size: 1.15rem; }
.gallery-section { padding: 0 0 var(--section); }
.gallery-controls { position: sticky; z-index: 10; top: 4.6rem; display: flex; flex-wrap: wrap; gap: .55rem; padding: 1rem 0; background: rgba(9,13,16,.94); backdrop-filter: blur(16px); }
.gallery-count { color: var(--muted); font-size: .82rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(1.5rem,3vw,3rem) 1rem; }
.gallery-card[hidden] { display: none; }
.gallery-media { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.gallery-media img { height: auto; object-fit: contain; transition: transform .7s var(--ease); }
.gallery-media:hover img { transform: scale(1.025); }
.gallery-media > span { position: absolute; right: .8rem; bottom: .8rem; padding: .45rem .7rem; border-radius: 999px; background: rgba(9,13,16,.82); font-size: .74rem; }
.gallery-video { aspect-ratio: 4 / 5; display: grid; place-items: center; }
.gallery-video video { width: 100%; height: 100%; object-fit: contain; background: #090d10; }
.gallery-video-link { position: absolute; right: .8rem; bottom: .8rem; padding: .45rem .7rem; border-radius: 999px; background: rgba(9,13,16,.86); font-size: .74rem; }
.gallery-card .eyebrow { margin: 1rem 0 .5rem; color: var(--mint); }
.gallery-card h2 { margin: 0 0 .7rem; font-size: 1.55rem; letter-spacing: -.02em; }
.gallery-card > p:last-child { color: var(--muted); }
.type-cover { display: flex; height: 100%; flex-direction: column; justify-content: space-between; padding: 1.5rem; background: linear-gradient(135deg, #1b2940, #331943); }
.gallery-media > .type-cover { height: auto; aspect-ratio: 4 / 5; }
.type-cover strong { font-size: 2.2rem; line-height: 1; }

.project-hero { padding: clamp(8rem,13vw,12rem) 0 0; }
.back-link { display: inline-flex; margin-bottom: 2rem; color: var(--muted); font-size: .85rem; border-bottom: 1px solid var(--line-strong); }
.project-hero h1 { max-width: 13ch; margin: .8rem 0 1.4rem; font-size: clamp(3.5rem,8vw,8rem); }
.project-summary { max-width: 46rem; font-size: clamp(1.1rem,1.7vw,1.4rem); color: var(--muted); }
.project-notice { width: max-content; max-width: 100%; padding: .55rem .75rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .76rem; }
.project-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0 3rem; }
.project-tags span { padding: .45rem .7rem; border: 1px solid var(--line); border-radius: 999px; font-size: .75rem; }
.project-hero-media { width: min(1440px, calc(100vw - 2.5rem)); max-height: 85svh; margin: 0 auto; overflow: hidden; border-radius: var(--radius); }
.project-hero-media img { width: 100%; max-height: 85svh; object-fit: contain; object-position: center; }
.project-hero-video { width: min(760px, calc(100vw - 2.5rem)); max-height: none; overflow: visible; }
.project-hero-video video { width: 100%; max-height: 82svh; object-fit: contain; border-radius: var(--radius); background: #050708; }
.project-hero-video figcaption { padding-top: .7rem; color: var(--muted); font-size: .78rem; }
.project-overview { padding: var(--section) 0; }
.project-overview > div { display: grid; grid-template-columns: 1.15fr .7fr .7fr; gap: clamp(1.5rem,4vw,4rem); }
.project-overview span, .project-details span { color: var(--mint); font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.project-overview h2 { margin: .8rem 0 0; font-size: clamp(2rem,3.6vw,4rem); }
.project-overview p { color: var(--muted); }
.project-process { padding: var(--section) 0; background: var(--paper); color: var(--bg); }
.project-process header { display: flex; justify-content: space-between; align-items: end; gap: 2rem; }
.project-process .section-code { color: #257657; }
.project-process h2 { margin: .6rem 0 0; }
.project-process ol { display: grid; grid-template-columns: repeat(4,1fr); list-style: none; margin: 3rem 0 2rem; padding: 0; border-top: 1px solid rgba(9,13,16,.25); }
.project-process li { position: relative; padding: 1.4rem 1rem 0 0; font-size: 1.15rem; }
.project-process li::before { content: ''; position: absolute; top: -.35rem; left: 0; width: .7rem; aspect-ratio: 1; border-radius: 50%; background: #257657; }
.project-process li span { display: block; color: #697478; font-size: .72rem; }
.project-process > div > p { max-width: 50rem; color: #384148; }
.project-gallery, .project-videos { padding: var(--section) 0 0; }
.project-gallery header, .project-videos header { margin-bottom: 2rem; }
.project-gallery h2, .project-videos h2 { margin: .65rem 0 0; font-size: clamp(2.5rem,5vw,5rem); }
.project-gallery > div { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; }
.project-gallery figure, .project-videos figure { margin: 0; }
.project-gallery button { width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.project-gallery img { height: auto; object-fit: contain; border-radius: var(--radius); }
.project-gallery figcaption, .project-videos figcaption { padding-top: .65rem; color: var(--muted); font-size: .78rem; }
.project-videos > div { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.project-videos video { aspect-ratio: 16 / 9; object-fit: contain; border-radius: var(--radius); background: var(--surface); }
.project-details { display: grid; grid-template-columns: repeat(3,1fr); margin-top: var(--section); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.project-details > div { min-height: 14rem; padding: 1.5rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.project-details p { color: var(--muted); }
.project-external { margin-top: 2rem; }
.project-cta { margin-top: var(--section); padding: clamp(2rem,5vw,5rem); border-radius: var(--radius); background: var(--surface); }
.project-cta h2 { margin: .7rem 0 2rem; font-size: clamp(2.5rem,5vw,5.5rem); }
.next-project { display: flex; justify-content: space-between; gap: 1rem; align-items: center; margin: 2rem 0 var(--section); padding: 1.5rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.next-project span { color: var(--muted); font-size: .8rem; }
.next-project strong { font-size: 1.15rem; }
.lightbox { width: min(92vw, 1100px); max-width: none; max-height: 92vh; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); color: var(--paper); }
.lightbox::backdrop { background: rgba(0,0,0,.84); backdrop-filter: blur(8px); }
.lightbox > button { position: sticky; top: 0; float: right; z-index: 2; padding: .55rem .8rem; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--paper); background: var(--bg); }
.lightbox figure { margin: 0; }
.lightbox img { max-height: 80vh; object-fit: contain; background: transparent; }
.lightbox figcaption { color: var(--muted); font-size: .8rem; }

.compare-page { padding: clamp(8rem,13vw,12rem) 0 3rem; }
.compare-page h1 { margin: .8rem 0 1rem; font-size: clamp(3.4rem,7vw,7rem); }
.compare-page header > p:last-child { color: var(--muted); }
.compare-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; width: min(1700px, calc(100vw - 2rem)); margin: 3rem auto 0; }
.compare-grid article { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.compare-grid article > div { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 1rem; }
.compare-grid article a { color: var(--mint); font-size: .8rem; }
.compare-grid iframe { display: block; width: 100%; height: 76vh; border: 0; background: white; }

@media (max-width: 980px) {
  .desktop-nav, .header-cta { display: none; }
  .nav-wrap { grid-template-columns: 1fr auto; }
  .menu-toggle { display: inline-flex; }
  .hero-copy { width: min(42rem, calc(100vw - 2rem)); }
  .hero-card { opacity: .92; }
  .projects-intro > div, .feature-grid, .feature-reverse .feature-grid, .mm-grid, .section-heading, .about-grid { grid-template-columns: 1fr; }
  .feature-reverse .feature-copy { order: 2; }
  .feature-reverse .feature-visual { order: 1; }
  .feature-visual { max-height: 74rem; }
  .mm-screen { min-height: 75svh; }
  .story-layout { grid-template-columns: 1fr .55fr; }
  .story-copy { grid-column: 1 / -1; }
  .social-stage { grid-template-columns: .28fr 1fr; }
  .social-copy { grid-column: 1 / -1; }
  .digital-grid, .gallery-grid { grid-template-columns: repeat(2,1fr); }
  .experiments-grid { grid-template-columns: repeat(2,1fr); }
  .experiment-study-card { grid-template-columns: 1fr; }
  .project-overview > div { grid-template-columns: 1fr 1fr; }
  .project-overview > div > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  :root { --shell: min(100% - 1.25rem, 42rem); --section: 4.8rem; }
  body { font-size: 1rem; }
  .site-header { background: rgba(9,13,16,.84); backdrop-filter: blur(16px); }
  .nav-wrap { min-height: 4.15rem; }
  .mobile-nav { inset: 4.15rem 0 auto; }
  .opening { height: 175svh; }
  .hero-copy { top: 43%; width: calc(100vw - 1.5rem); }
  .hero-copy h1 { font-size: clamp(3.5rem,17vw,5.6rem); }
  .hero-line { font-size: 1.02rem; }
  .hero-summary { max-width: 24rem; }
  .hero-card { width: var(--card-width, clamp(5.6rem,25vw,7.5rem)); }
  .hero-card-e, .hero-card-f, .hero-card-g { display: none; }
  .transition-copy { top: 32%; width: calc(100vw - 1.5rem); }
  .transition-copy h2 { font-size: clamp(2.6rem,8.5vw,4rem); }
  .hero-bottom { grid-template-columns: 1fr auto; }
  .hero-bottom span:nth-child(2) { display: none; }
  .projects-intro > div { gap: 1.5rem; }
  .projects-intro h2, .section-heading h2 { font-size: clamp(2.6rem,13vw,4.5rem); }
  .feature-grid, .mm-grid { gap: 2rem; }
  .feature-visual, .mm-screen { aspect-ratio: 9 / 16; min-height: 0; }
  .case-brief > div { grid-template-columns: 6.2rem 1fr; }
  .section-heading { gap: 1.2rem; }
  .motion-grid { grid-template-columns: 1fr 1fr; }
  .motion-card:last-child { grid-column: 1 / -1; }
  .motion-card:last-child video { aspect-ratio: 16 / 9; }
  .section-action, .archive-call { align-items: flex-start; flex-direction: column; }
  .experiments-heading { grid-template-columns: 1fr; gap: .8rem; }
  .story-layout { grid-template-columns: 1fr; }
  .story-main img { min-height: 0; }
  .story-side { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .story-side img { aspect-ratio: 16 / 9; }
  .b2b-grid, .digital-grid, .tools-grid, .gallery-grid, .project-gallery > div, .project-videos > div, .project-details { grid-template-columns: 1fr; }
  .experiments-grid { grid-template-columns: 1fr; }
  .study-media-grid { grid-template-columns: 1fr; }
  .study-media-item:first-child { grid-row: auto; aspect-ratio: 4 / 5; }
  .study-media-item:not(:first-child) { aspect-ratio: 16 / 9; }
  .tools-grid { border-left: 0; }
  .tools-grid article { min-height: 17rem; border-left: 1px solid var(--line); }
  .social-stage { grid-template-columns: 1fr; }
  .social-tabs { flex-direction: row; overflow-x: auto; padding-bottom: .35rem; }
  .social-tabs button { white-space: nowrap; }
  .social-copy { grid-column: auto; }
  .digital-media { aspect-ratio: 4 / 5; }
  .about-numbers { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
  .gallery-controls { top: 4.15rem; flex-wrap: nowrap; overflow-x: auto; }
  .gallery-controls button { white-space: nowrap; }
  .project-hero-media { width: 100%; border-radius: 0; }
  .project-hero-video { width: calc(100% - 1.25rem); }
  .project-hero-video video { max-height: 78svh; border-radius: var(--radius); }
  .project-overview > div, .project-process ol { grid-template-columns: 1fr; }
  .project-overview > div > div:first-child { grid-column: auto; }
  .project-process ol { gap: .7rem; border-top: 0; }
  .project-process li { padding: .8rem 0 .8rem 2.7rem; border-top: 1px solid rgba(9,13,16,.2); }
  .project-process li::before { top: 1.35rem; }
  .project-process li span { position: absolute; left: 1rem; top: 1.05rem; }
  .project-gallery img { max-height: 80vh; }
  .next-project { align-items: flex-start; flex-direction: column; }
  .compare-grid { grid-template-columns: 1fr; }
  .compare-grid iframe { height: 68vh; }
}

@media (max-width: 760px) {
  .hero-gridline { top: 72px; }
  .opening { height: 170svh; min-height: 1050px; }
  .hero-stage { min-height: 660px; }
  .hero-copy { top: 43%; width: calc(100% - 2.5rem); }
  .hero-copy h1 { font-size: clamp(3.5rem,11.8vw,5.5rem); line-height: 1.02; }
  .hero-copy .kicker { font-size: .8125rem; margin-bottom: 1.3rem; }
  .hero-copy p { font-size: 1rem; max-width: 310px; margin-inline: auto; }
  .hero-copy .hero-tagline { margin-bottom: .35rem; }
  .hero-copy .hero-subheadline { max-width: 330px; font-size: .875rem; line-height: 1.45; margin-top: .35rem; }
  .hero-copy .actions { gap: .6rem; margin-top: 1.5rem; }
  .hero-copy .hero-subheadline + .actions { margin-top: 1rem; }
  .hero-copy .button { font-size: .875rem; padding-inline: 1.1rem; }
  .hero-veil { background: radial-gradient(ellipse at 50% 44%,rgba(15,17,21,.95) 0%,rgba(15,17,21,.82) 31%,transparent 72%); }
  .float { width: clamp(90px,var(--mobile-width,26vw),150px); max-height: 175px; }
  .float[data-float="4"], .float[data-float="5"], .float[data-float="6"] { display: none; }
  .transition-copy { top: 32%; }
  .transition-copy h2 { font-size: clamp(2.6rem,8.5vw,4rem); }
  .hero-footer { font-size: .75rem; bottom: 1.3rem; gap: 1rem; }
  .hero-footer .hero-credit { display: none; }
  .hero-progress { width: 70px; }
}

@media (max-width: 380px) {
  .hero-copy .actions { flex-direction: column; align-items: center; }
  .hero-copy h1 { font-size: 3.4rem; }
  .hero-footer { font-size: .75rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .opening { height: 100svh; min-height: 660px; }
  .hero-stage { position: relative; }
  .transition-copy { display: none; }
  .hero-copy { opacity: 1 !important; }
  .float { will-change: auto; }
  .hero-progress { display: none; }
}

/* Seletores numerados (01, 02, ...) dos cases em destaque: no desktop ficam em coluna,
   no espaco entre a imagem e o texto. Tamanho da imagem e altura da secao nao mudam
   (o seletor usa o "gap" da grade). Ate 980px continua embaixo da imagem. */
@media (min-width: 980.02px) {
  .feature-carousel { position: relative; }
  .feature-selectors {
    position: absolute; top: 0; bottom: 0; left: calc(100% + (clamp(2rem, 7vw, 8rem) - 2.4rem) / 2);
    flex-direction: column; flex-wrap: nowrap; justify-content: center; align-items: center;
    width: 2.4rem; margin-top: 0;
  }
  .feature-reverse .feature-selectors { left: auto; right: calc(100% + (clamp(2rem, 7vw, 8rem) - 2.4rem) / 2); }
  /* altura do seletor = altura da imagem (a variavel --img-h e definida em .project-feature) */
  .feature-selectors { bottom: auto; height: var(--img-h, 100%); }
}

/* Em Outra Vida (home): fileira com mais cenas do dorama abaixo das imagens principais.
   Telas largas (>= 1360px): o cartao de texto ocupa as duas linhas e acompanha a altura total das
   imagens (a fileira nova absorve qualquer diferenca). Telas medias: texto abaixo das imagens.
   Celular: tudo em uma coluna, cenas em 2 colunas. */
.story-more { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.story-more a { display: block; overflow: hidden; border-radius: var(--radius); aspect-ratio: 16 / 9; align-self: stretch; }
.story-more img { display: block; width: 100%; height: 100%; object-fit: cover; }
.story-main { grid-column: 1; grid-row: 1; }
.story-side { grid-column: 2; grid-row: 1; }
.story-more { grid-column: 1 / 3; grid-row: 2; }
.story-copy { grid-column: 3; grid-row: 1 / 3; align-self: stretch; }
@media (min-width: 1360px) {
  .story-layout { grid-template-rows: auto 1fr; }
  .story-more { align-self: stretch; }
}
@media (max-width: 1359.98px) {
  .story-layout { grid-template-columns: 1fr .55fr; }
  .story-more { grid-column: 1 / -1; }
  .story-copy { grid-column: 1 / -1; grid-row: 3; align-self: start; }
}
@media (max-width: 680px) {
  .story-layout { grid-template-columns: 1fr; }
  .story-main, .story-side, .story-more, .story-copy { grid-column: 1; grid-row: auto; }
  .story-more { grid-template-columns: 1fr 1fr; }
}

/* M&M's: seletor de universos (Dourado, Noite, ...) no desktop fica em coluna, no espaco entre o
   texto e a imagem, com o texto na horizontal. O espaco entre as colunas foi aberto para caber (a imagem
   fica de 4% a 10% menor). Ate 980px continua dentro da coluna de texto, como antes. */
@media (min-width: 980.02px) {
  .mm-grid { position: relative; column-gap: 10.5rem; }
  .mm-controls {
    position: absolute; top: 0; bottom: 0; margin: 0; width: 8.5rem;
    left: calc((100% - 10.5rem) * .41 + 1rem);
    flex-direction: column; flex-wrap: nowrap; justify-content: center; align-items: stretch;
  }
}

/* Subtopicos da secao 10 (Acervo de experimentos e Estudos de formacao): seguem a linguagem do
   primeiro subtopico (linha de destaque de 3px no topo + rotulo colorido), cada um com uma cor da
   paleta: coral (Acervo) e violeta (Estudos). Acervo: texto a esquerda, ao lado das imagens. */
.experiments-showcase {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem 1rem;
  border-top: 3px solid var(--orange); padding-top: clamp(1.5rem, 3vw, 2.5rem);
}
.experiments-grid { display: contents; }
.experiments-heading { display: block; grid-column: 1; align-self: center; margin: 0; }
.experiments-heading .eyebrow { color: #ff9a7e; }
.experiments-heading h3 { margin: .75rem 0 0; font-size: clamp(2.2rem, 3.4vw, 3.6rem); }
.experiment-study-card { border-top: 3px solid var(--violet); }
.experiment-study-card .eyebrow { color: #b5adff; }
.experiment-study-card .text-link { border-color: var(--violet); }
@media (max-width: 980px) {
  .experiments-showcase { grid-template-columns: repeat(2, 1fr); }
  .experiments-heading { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .experiments-showcase { grid-template-columns: 1fr; }
}

/* Acervo: ferramentas FluxIA como cartoes coloridos (igual a home, que nao usa imagem nelas),
   e ferramentas / jogos comecando uma linha nova no desktop, na sequencia da pagina inicial. */
.gallery-media > .type-cover.tool { aspect-ratio: 4 / 3; justify-content: flex-end; border-top: 3px solid transparent; }
.type-cover.tool strong { font-size: clamp(1.8rem, 2.6vw, 2.6rem); font-weight: 500; letter-spacing: -.035em; }
.gallery-media > .type-cover.tool-mint { border-top-color: var(--mint); background: rgba(167, 245, 215, .055); }
.gallery-media > .type-cover.tool-orange { border-top-color: var(--orange); background: rgba(255, 116, 78, .06); }
.gallery-media > .type-cover.tool-violet { border-top-color: var(--violet); background: rgba(140, 124, 255, .075); }
@media (min-width: 980.02px) {
  .gallery-card.row-start { grid-column-start: 1; }
}

/* Acervo: os videos (Doce Reino, Jogo da Memoria) ficam numa moldura 4:5 igual a dos cartoes ao lado,
   para titulo e texto alinharem na mesma linha. O video aparece INTEIRO dentro da moldura (contain);
   antes ele estourava a moldura e era cortado em cima e embaixo. */
.gallery-video { position: relative; display: block; aspect-ratio: 4 / 5; }
.gallery-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #090d10; }

/* Doce Reino (Acervo): recorta a barra de horario do celular (topo) e a barra de navegacao (base),
   o que deixa o video um pouco maior dentro da moldura 4:5. Janela mostrada: do pixel 46 ao 806
   dos 850 de altura do video (392x850). Os demais videos nao sao alterados. */
.gallery-video video[src*="doce-reino"] {
  inset: auto; top: -6.05%; left: 50%; height: 111.8%; width: auto; transform: translateX(-50%); object-fit: fill;
}
.gallery-video { background: #090d10; }

/* Doce Reino (home, "Acervo de experimentos"): mesmo recorte do Acervo. Tira a barra de horario do
   celular (topo, 46px) e a barra de navegacao (base, 44px) do video de 392x850; o video fica ~12% maior
   dentro da moldura 4:5. O zoom do hover continua funcionando (translateX preservado). */
.experiment-video { background: #050708; }
.experiment-video video[src*="doce-reino"] {
  position: absolute; top: -6.05%; left: 50%; height: 111.8%; width: auto; transform: translateX(-50%); object-fit: fill;
}
.experiment-media:hover video[src*="doce-reino"] { transform: translateX(-50%) scale(1.025); }

/* Celular/tablet (<=980px): no M&M's a ordem e imagem, botoes de universo (Dourado, Noite...) logo abaixo da
   imagem, e depois o texto. O bloco de texto vira "display: contents" so para reordenar os itens dele. */
@media (max-width: 980px) {
  .mm-grid { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .mm-grid > .feature-copy { display: contents; }
  .mm-grid > .mm-screen { order: 1; }
  .mm-grid .mm-controls { order: 2; margin: 1.2rem 0 2.2rem; }
  .mm-grid > .feature-copy > :not(.mm-controls) { order: 3; }
}

/* Link do TikTok (Liv Sync): alinhado a direita, abaixo da imagem/seletores (desktop e celular). */
.feature-social-link { display: flex; margin-left: auto; }

/* Cases em destaque (desktop): com a imagem grande, sobra espaco abaixo do texto. Ali entra uma miniatura
   da mesma imagem, inteira (sem corte), que acompanha a troca de imagens (criada em v3.js). Nao aparece no celular. */
.feature-mini { display: none; }
@media (min-width: 980.02px) {
  .project-feature .feature-copy { align-self: stretch; display: flex; flex-direction: column; justify-content: flex-start; }
  .project-feature .feature-mini { display: flex; justify-content: center; flex: 1 1 0; min-height: 0; margin-top: 2rem; max-height: 62svh; }
  .project-feature .feature-mini img { width: auto; max-width: 100%; height: 100%; object-fit: contain; background: transparent; border-radius: var(--radius); }
}

/* Cases em destaque: a imagem grande preenche toda a moldura (sem faixas escuras em volta). As poucas imagens
   que nao sao 9:16 (ex.: product-pack, fini-portrait) perdem um pouco das laterais. */
.feature-visual img, .mm-screen img { object-fit: cover; background: transparent; }

/* Acervo: titulo, rotulo e texto de cada cartao ficam na mesma linha dos vizinhos, mesmo quando as imagens
   tem alturas diferentes (cada cartao usa as 4 linhas da grade: imagem, rotulo, titulo, texto). A imagem
   continua inteira, alinhada ao topo; o espaco entre as fileiras vem do padding do cartao. */
.gallery-grid { row-gap: 0; }
.gallery-card { display: grid; grid-template-rows: subgrid; grid-row: span 4; row-gap: 0; padding-bottom: clamp(1.5rem, 3vw, 3rem); }
.gallery-card > .gallery-media { align-self: stretch; }
/* todas as imagens de uma fileira ficam com a mesma altura (a da mais alta) e preenchem a moldura (recorte) */
.gallery-card > .gallery-media > img { height: 100%; object-fit: cover; background: transparent; }

/* Itens "Em construcao" na home (sem link): texto discreto com sublinhado tracejado. */
.status-note { display: inline-flex; width: max-content; padding-bottom: .2rem; border-bottom: 1px dashed var(--line-strong); color: var(--muted); font-weight: 700; font-size: .92rem; }

/* Home, ferramentas em construcao: o link do case continua, com o aviso "Em construcao" ao lado. */
.tool-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.2rem; }
.tool-actions .status-note { padding: .25rem .6rem; border: 1px dashed var(--line-strong); border-radius: 999px; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; }

/* Acervo: as 3 ferramentas "Em construcao" usam o mesmo cartao colorido da pagina inicial
   (rotulo, titulo, texto e link dentro do cartao), em vez de imagem + texto abaixo. */
.gallery-card > .gallery-tool-box { min-height: 21rem; padding: clamp(1.25rem, 3vw, 2.2rem); border: 1px solid var(--line); border-top: 3px solid transparent; border-radius: var(--radius); }
.gallery-tool-box.tool-mint { border-top-color: var(--mint); background: rgba(167, 245, 215, .055); }
.gallery-tool-box.tool-orange { border-top-color: var(--orange); background: rgba(255, 116, 78, .06); }
.gallery-tool-box.tool-violet { border-top-color: var(--violet); background: rgba(140, 124, 255, .075); }
.gallery-tool-box.tool-mint .eyebrow { color: var(--mint); }
.gallery-tool-box.tool-orange .eyebrow { color: #ff9a7e; }
.gallery-tool-box.tool-violet .eyebrow { color: #b5adff; }
.gallery-tool-box.tool-mint .text-link { border-color: var(--mint); }
.gallery-tool-box.tool-orange .text-link { border-color: var(--orange); }
.gallery-tool-box.tool-violet .text-link { border-color: var(--violet); }
.gallery-tool-box .eyebrow { margin: 0; }
.gallery-tool-box h2 { margin: 2.8rem 0 1rem; font-size: clamp(1.6rem, 2.7vw, 3rem); letter-spacing: -.045em; line-height: 1.02; }
.gallery-tool-box p:not(.eyebrow) { color: var(--muted); margin-bottom: 1rem; }
