/* Tri8 Media — site styles. Dark cinematic heroes, light content sections. */
:root {
  --ink: #FFFFFF;
  --ink-2: #BCC3D2;
  --muted: #8A93A6;
  --line: #262C3B;
  --paper: #0C0E15;
  --paper-2: #10131C;
  --card: #151925;
  --night: #0C0E15;
  --night-2: #151925;
  --night-line: #262C3B;
  --pink: #EB5779;
  --indigo: #445BB9;
  --blue: #40BBF7;
  --whatsapp: #25D366;
  --grad: linear-gradient(90deg, var(--pink), var(--indigo) 55%, var(--blue));
  --radius: 18px;
  --max: 1200px;
  --head: "Outfit", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--body); color: var(--ink); background: var(--paper); line-height: 1.55; -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.08; letter-spacing: -0.02em; font-weight: 700; }
.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .25s, box-shadow .25s; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.site-header.scrolled { background: rgba(12, 14, 21, .88); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--night-line); }
.brand img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { color: #D5D9E3; font-size: 15px; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--pink); padding-bottom: 4px; }
.menu-btn { display: none; background: none; border: 0; color: #fff; cursor: pointer; padding: 8px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; font-weight: 600; font-size: 15px; transition: transform .15s, box-shadow .15s, background .15s; border: 0; cursor: pointer; font-family: var(--body); }
.btn:hover { transform: translateY(-1px); }
.btn-grad { background: var(--grad); color: #fff; box-shadow: 0 10px 30px rgba(235, 87, 121, .25); }
.btn-wa { background: var(--whatsapp); color: #fff; }
.btn-ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-line { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- Dark hero ---------- */
.hero { background: var(--night); color: #fff; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--grad); }
.hero-home { min-height: min(100vh, 900px); display: flex; align-items: center; padding: 110px 0 70px; }
.hero-home .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: #AEB5C6; }
.kicker::before { content: ""; width: 28px; height: 2px; background: var(--grad); border-radius: 2px; }
.hero h1 { font-size: clamp(42px, 6.2vw, 82px); margin: 22px 0 22px; }
.hero h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 18px; color: #C3C9D6; max-width: 540px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero .facts { display: flex; gap: 34px; margin-top: 46px; flex-wrap: wrap; }
.hero .facts b { display: block; font-family: var(--head); font-size: 30px; }
.hero .facts span { color: var(--muted); font-size: 14px; }

/* Scrolling reels grid */
.reels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; height: min(78vh, 720px); overflow: hidden;
  mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent); }
.reel-col { display: flex; flex-direction: column; gap: 14px; animation: rise 38s linear infinite; }
.reel-col:nth-child(2) { animation-duration: 46s; animation-direction: reverse; }
.reel-col:nth-child(3) { animation-duration: 42s; }
@keyframes rise { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.tile { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--night-2); }
.tile video, .tile img { width: 100%; height: 100%; object-fit: cover; }
.tile .tag { position: absolute; left: 10px; bottom: 10px; font-size: 11.5px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: rgba(12, 14, 21, .7); backdrop-filter: blur(6px); color: #fff; }
.tile .tag.ai { background: var(--grad); }
@media (prefers-reduced-motion: reduce) { .reel-col { animation: none; } }

/* Page hero (inner pages) */
.hero-page { padding: 150px 0 90px; }
.hero-page .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; align-items: center; }
.hero-page h1 { font-size: clamp(40px, 5.2vw, 68px); }

/* ---------- Sections ---------- */
section.block { padding: 110px 0; }
section.alt { background: var(--paper-2); }
.sec-head { max-width: 720px; margin-bottom: 54px; }
.sec-head .kicker { color: var(--pink); }
.sec-head h2 { font-size: clamp(32px, 4vw, 50px); margin: 16px 0 14px; }
.sec-head p { color: var(--ink-2); font-size: 18px; }
.center { text-align: center; margin-inline: auto; }

/* Two paths */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.path { border-radius: 24px; overflow: hidden; position: relative; min-height: 460px; display: flex; flex-direction: column; justify-content: flex-end; padding: 38px; color: #fff; }
.path .bg { position: absolute; inset: 0; z-index: 0; }
.path .bg img, .path .bg video { width: 100%; height: 100%; object-fit: cover; }
.path::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(12,14,21,.15) 10%, rgba(12,14,21,.55) 45%, rgba(12,14,21,.95)); }
.path > *:not(.bg) { position: relative; z-index: 2; }
.path .label { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #fff; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.14); align-self: flex-start; margin-bottom: 18px; }
.path.ai .label { background: var(--grad); }
.path h3 { font-size: 34px; margin-bottom: 10px; }
.path p { color: #D5D9E3; max-width: 460px; margin-bottom: 22px; }
.path ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.path li { font-size: 13px; padding: 6px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); }

/* Cards */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; position: relative; }
.alt .card { border-color: transparent; box-shadow: 0 1px 2px rgba(18,21,31,.04), 0 8px 30px rgba(18,21,31,.05); }
.card h3 { font-size: 22px; margin-bottom: 10px; }
.card p { color: var(--ink-2); }
.icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--grad); color: #fff; margin-bottom: 20px; }
.icon svg { width: 26px; height: 26px; }
.ticks { list-style: none; margin-top: 16px; display: grid; gap: 9px; }
.ticks li { display: flex; gap: 10px; color: var(--ink-2); font-size: 15px; }
.ticks li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--pink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/11px no-repeat; }

/* Service rows */
.service { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 34px 0; }
.service + .service { border-top: 1px solid var(--line); }
.service:nth-child(even) .media { order: 2; }
.service .media { border-radius: 22px; overflow: hidden; aspect-ratio: 16 / 11; }
.service .media img, .service .media video { width: 100%; height: 100%; object-fit: cover; }
.service h3 { font-size: 34px; margin: 12px 0 14px; }
.service .num { font-family: var(--head); font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 18px; }
.service p { color: var(--ink-2); font-size: 17px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step { background: var(--paper); border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); }
.step::before { counter-increment: s; content: "0" counter(s); font-family: var(--head); font-weight: 700; font-size: 30px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; margin-bottom: 10px; }
.step h4 { font-size: 20px; margin-bottom: 8px; }
.step p { color: var(--ink-2); font-size: 15px; }

/* Sectors */
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip { padding: 12px 18px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-weight: 500; }

/* Work strip */
.work { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.work .tile { aspect-ratio: 4 / 5; }

/* ---------- Pricing ---------- */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.price { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 32px; display: flex; flex-direction: column; position: relative; }
.price.hot { border: 2px solid var(--pink); box-shadow: 0 20px 50px rgba(235, 87, 121, .14); }
.price .badge { position: absolute; top: -13px; right: 24px; background: var(--grad); color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; padding: 6px 12px; border-radius: 999px; }
.price h3 { font-size: 24px; }
.price .for { color: var(--muted); font-size: 14px; margin-top: 4px; min-height: 42px; }
.price .amt { font-family: var(--head); font-size: 44px; font-weight: 700; margin: 18px 0 2px; letter-spacing: -.02em; }
.price .amt small { font-size: 16px; color: var(--muted); font-weight: 500; }
.price .ticks { flex: 1; margin-bottom: 26px; }
.price .btn { justify-content: center; }
.vat { color: var(--muted); font-size: 14px; margin-top: 22px; }
.minis { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 22px; }
.mini { display: flex; gap: 18px; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.mini .icon { width: 46px; height: 46px; margin: 0; flex: none; }
.mini h4 { font-size: 19px; }
.mini h4 span { color: var(--pink); }
.mini p { color: var(--ink-2); font-size: 15px; margin-top: 4px; }

/* Phones */
.phones { display: flex; gap: 18px; align-items: flex-end; justify-content: center; }
.phone { width: 170px; border-radius: 30px; padding: 8px; background: #05060A; box-shadow: 0 30px 60px rgba(0,0,0,.45); border: 1px solid #2B3142; }
.phone.big { width: 210px; }
.phone img, .phone video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 23px; }

/* FAQ */
.faq { max-width: 820px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq summary { cursor: pointer; font-family: var(--head); font-size: 20px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--pink); font-size: 26px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-2); margin-top: 12px; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; align-items: start; }
.contact-info h2 { font-size: clamp(34px, 4vw, 52px); margin: 16px 0 16px; }
.contact-info p { color: var(--ink-2); font-size: 18px; }
.contact-list { list-style: none; margin: 30px 0; display: grid; gap: 16px; }
.contact-list a { display: flex; gap: 14px; align-items: center; font-weight: 600; font-size: 17px; }
.contact-list .ci { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--paper-2); color: var(--pink); }
.form { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 34px; box-shadow: 0 20px 50px rgba(18,21,31,.06); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.form .field { margin-bottom: 16px; }
.form input, .form select, .form textarea { width: 100%; font: inherit; font-size: 15px; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper-2); color: var(--ink); }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--pink); outline-offset: 1px; background: #fff; }
.form textarea { min-height: 120px; resize: vertical; }
.form .btn { width: 100%; justify-content: center; }
.form .note { font-size: 13px; color: var(--muted); margin-top: 12px; text-align: center; }
.form .status { margin-top: 12px; font-weight: 600; text-align: center; display: none; }
.form .status.ok { color: #047857; display: block; }
.form .status.err { color: #B91C1C; display: block; }
.hp { position: absolute; left: -9999px; }

/* CTA band */
.cta-band { background: var(--night); color: #fff; border-radius: 28px; padding: 60px; display: flex; justify-content: space-between; align-items: center; gap: 30px; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; inset: auto 0 0 0; height: 4px; background: var(--grad); }
.cta-band h2 { font-size: clamp(28px, 3.4vw, 42px); max-width: 620px; }
.cta-band p { color: #C3C9D6; margin-top: 10px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: #AEB5C6; padding: 70px 0 34px; }
.site-footer .top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--night-line); }
.site-footer img { height: 54px; width: auto; margin-bottom: 16px; }
.site-footer h5 { color: #fff; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; font-family: var(--body); }
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer a:hover { color: #fff; }
.site-footer .bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 26px; font-size: 13px; flex-wrap: wrap; }

/* Floating WhatsApp */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 60px; height: 60px; border-radius: 50%; background: var(--whatsapp); display: grid; place-items: center; box-shadow: 0 12px 30px rgba(37, 211, 102, .4); transition: transform .15s; }
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 32px; height: 32px; color: #fff; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-home .wrap, .hero-page .wrap, .contact, .service, .paths { grid-template-columns: 1fr; }
  .service:nth-child(even) .media { order: 0; }
  .reels { height: 520px; }
  .prices, .grid-3, .steps { grid-template-columns: 1fr; }
  .grid-4, .work { grid-template-columns: repeat(2, 1fr); }
  .minis, .grid-2 { grid-template-columns: 1fr; }
  .site-footer .top { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 40px 28px; }
  section.block { padding: 80px 0; }
}
@media (max-width: 760px) {
  .nav { position: fixed; inset: 76px 0 auto; flex-direction: column; align-items: flex-start; gap: 0; background: var(--night); padding: 10px 20px 24px; display: none; border-bottom: 1px solid var(--night-line); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; width: 100%; border-bottom: 1px solid var(--night-line); }
  .nav a[aria-current="page"] { box-shadow: none; color: var(--pink); }
  .nav .btn { margin-top: 16px; border-bottom: 0; width: auto; }
  .menu-btn { display: block; }
  .form .row { grid-template-columns: 1fr; }
  .phone { width: 120px; } .phone.big { width: 150px; }
  .hero .facts { gap: 22px; }
  .reels { grid-template-columns: repeat(2, 1fr); height: 440px; }
  .reels .reel-col:nth-child(3) { display: none; }
}

/* Prevent grid children (videos) from forcing horizontal overflow */
html, body { overflow-x: hidden; }
.wrap > *, .hero-home .wrap > *, .hero-page .wrap > *, .contact > *, .service > *, .paths > * { min-width: 0; }
.reels, .reel-col, .tile { min-width: 0; width: 100%; }

/* ---------- All-dark theme overrides ---------- */
body { background: var(--paper); color: var(--ink); }
section.alt { background: var(--paper-2); }
.card, .price, .mini, .step, .chip, .form, .service + .service { border-color: var(--line); }
.card, .price, .mini, .step, .chip, .form { background: var(--card); }
.alt .card { box-shadow: none; border-color: var(--line); }
.price.hot { box-shadow: 0 20px 60px rgba(235, 87, 121, .18); }
.btn-dark { background: #fff; color: var(--night); }
.btn-line { color: #fff; }
.form { box-shadow: 0 30px 70px rgba(0, 0, 0, .35); }
.form input, .form select, .form textarea { background: var(--paper); color: #fff; border-color: var(--line); }
.form input::placeholder, .form textarea::placeholder { color: #6B7385; }
.form input:focus, .form select:focus, .form textarea:focus { background: #0F121A; }
.form select option { background: var(--card); }
.contact-list .ci { background: var(--card); }
.cta-band { background: linear-gradient(135deg, #1A1F2E, #121623); border: 1px solid var(--line); }
.site-footer { background: #08090E; border-top: 1px solid var(--line); }
.sec-head p, .service p, .contact-info p { color: var(--ink-2); }
.hero { border-bottom: 0; }
.path::before { background: linear-gradient(180deg, rgba(12,14,21,.15) 10%, rgba(12,14,21,.6) 45%, rgba(12,14,21,.96)); }
.path { border: 1px solid var(--line); }

.tilegrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 460px; margin-left: auto; }
.tilegrid .tile:nth-child(2) { transform: translateY(28px); }
.tilegrid .tile:nth-child(4) { transform: translateY(28px); }
