/* HypeReel Agency — premium preview stylesheet
   Graphite base, white type, purple accent; cyan/magenta only where they echo the logo. */

:root {
  --bg: #0d0e12;
  --bg-2: #111218;
  --surface: #16171e;
  --surface-2: #1c1d26;
  --line: #2a2b38;
  --line-soft: rgba(255, 255, 255, .07);
  --text: #f6f6f9;
  --muted: #b9bac8;      /* ≈10:1 on --bg */
  --dim: #9293a6;        /* ≈6.3:1 on --bg */
  --violet: #9d00ff;     /* brand purple: fills, borders, large shapes */
  --violet-text: #cfa6ff;/* purple for small text on graphite (≈9:1) */
  --cyan: #3cc4ff;
  --magenta: #ff2fd2;
  --grad: linear-gradient(120deg, var(--cyan) 0%, var(--violet) 50%, var(--magenta) 100%);
  --radius: 16px;
  --radius-sm: 10px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 17px; line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -80px; z-index: 300; background: var(--text); color: #000; padding: 10px 16px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ---------- Preview-only markers (remove before launch) ---------- */
.preview-bar { background: #2b1c08; color: #ffe3b0; font-size: 13px; text-align: center; padding: 7px var(--gutter); border-bottom: 1px solid #5a3d10; }
.preview-bar strong { color: #fff; }
.pending { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #ffd98a; background: rgba(255, 190, 60, .1); border: 1px dashed rgba(255, 200, 90, .55); padding: 3px 9px; border-radius: 999px; vertical-align: middle; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; height: var(--header-h); background: rgba(13, 14, 18, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line-soft); }
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { width: 40px; height: 44px; object-fit: contain; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 2px; }
.nav a { display: block; text-decoration: none; color: var(--muted); font-size: 15px; padding: 8px 13px; border-radius: 999px; transition: color .2s, background .2s; }
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang-switch a { text-decoration: none; font-size: 13px; font-weight: 700; padding: 6px 11px; border-radius: 999px; color: var(--dim); min-width: 44px; text-align: center; }
.lang-switch a[aria-current="page"] { background: var(--surface-2); color: var(--text); }
.lang-switch a:hover { color: var(--text); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 999px; font-weight: 800; font-size: 15px; letter-spacing: .01em; text-decoration: none; cursor: pointer; border: 0; transition: transform .25s var(--ease), background .25s, border-color .25s; }
.btn-primary { background: var(--violet); color: #fff; }
.btn-primary:hover { background: #8a00e0; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid rgba(255, 255, 255, .24); }
.btn-ghost:hover { background: rgba(255, 255, 255, .07); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.link-arrow { color: var(--violet-text); font-weight: 700; text-decoration: none; font-size: 15px; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section.alt { background: var(--bg-2); }
.kicker { font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--violet-text); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 52px); }
.section-head h2 { font-size: clamp(32px, 4.8vw, 54px); font-weight: 900; margin-top: 12px; }
.section-head p { color: var(--muted); font-size: clamp(17px, 1.5vw, 19px); margin-top: 16px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 104px); isolation: isolate; border-bottom: 1px solid var(--line-soft); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(48% 60% at 76% 46%, rgba(157, 0, 255, .14), transparent 70%), linear-gradient(180deg, #101117 0%, var(--bg) 100%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero h1 { font-size: clamp(40px, 6vw, 76px); font-weight: 900; letter-spacing: -0.035em; margin-top: 16px; }
.hero h1 .accent { color: var(--violet-text); }
.hero .lede { color: var(--muted); font-size: clamp(17px, 1.6vw, 20px); max-width: 590px; margin-top: 22px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.hero-tags li { font-size: 13px; color: var(--muted); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; }

/* ---------- HypeReel Core ---------- */
.core-stage { position: relative; aspect-ratio: 1; width: min(100%, 500px); margin-inline: auto; perspective: 1000px; }
.core { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.core-layer { position: absolute; inset: 0; transform-style: preserve-3d; }
.core-layer svg { width: 100%; height: 100%; overflow: visible; }
.core.is-3d .core-l1 { transform: translateZ(0); }
.core.is-3d .core-l2 { transform: translateZ(22px); }
.core.is-3d .core-l3 { transform: translateZ(44px); }
.core-glow { position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(circle, rgba(157, 0, 255, .32), transparent 68%); filter: blur(24px); }
.core.is-3d .core-glow { transform: translateZ(-50px); }
.core-floor { position: absolute; left: 20%; right: 20%; bottom: 0; height: 6%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .7), transparent); }
.core-caption { text-align: center; color: var(--dim); font-size: 13px; margin-top: 12px; }

/* ---------- Client Orbit ---------- */
.orbit-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.orbit { position: relative; aspect-ratio: 1.2; width: 100%; max-width: 600px; margin-inline: auto; }
.orbit-plane { position: absolute; inset: 0; perspective: 900px; }
.orbit-ring { position: absolute; left: 6%; right: 6%; top: 8%; bottom: 8%; border-radius: 50%; border: 1px solid rgba(207, 166, 255, .3); transform: rotateX(64deg); box-shadow: 0 0 0 1px rgba(255, 255, 255, .02), inset 0 0 60px rgba(157, 0, 255, .1); }
.orbit-ring.inner { left: 22%; right: 22%; top: 24%; bottom: 24%; border-color: rgba(60, 196, 255, .2); border-style: dashed; }
.orbit-core { position: absolute; left: 50%; top: 46%; width: 30%; transform: translate(-50%, -50%); }
.orbit-node { position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 10px; background: rgba(22, 23, 30, .92); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px 8px 8px; cursor: pointer; text-align: left; transition: border-color .25s, background .25s, transform .25s var(--ease); white-space: nowrap; }
.orbit-node .pin { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid rgba(207, 166, 255, .35); font-size: 12px; font-weight: 800; color: var(--violet-text); flex: none; }
.orbit-node .name { font-size: 14px; font-weight: 700; display: block; line-height: 1.2; }
.orbit-node .tag { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--dim); display: block; }
.orbit-node:hover { border-color: rgba(207, 166, 255, .6); }
.orbit-node[aria-selected="true"] { border-color: var(--violet); background: #221838; transform: translate(-50%, -50%) scale(1.04); }
.orbit-node[aria-selected="true"] .pin { background: var(--violet); color: #fff; border-color: var(--violet); }
.orbit-node.n1 { left: 24%; top: 20%; }
.orbit-node.n2 { left: 80%; top: 50%; }
.orbit-node.n3 { left: 30%; top: 84%; }
.orbit-hint { text-align: center; color: var(--dim); font-size: 13px; margin-top: 8px; }
.client-panels { display: grid; gap: 16px; }
.client-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.client-panel[hidden] { display: none; }
.client-panel .media { aspect-ratio: 16 / 9; background: #0a0a0e; overflow: hidden; }
.client-panel .media img { width: 100%; height: 100%; object-fit: cover; }
.client-panel .media.textual { display: grid; place-items: center; padding: 24px; background: radial-gradient(90% 120% at 0% 0%, rgba(157, 0, 255, .18), transparent 60%), #121319; }
.client-panel .media.textual span { font-size: clamp(24px, 3vw, 34px); font-weight: 900; text-align: center; line-height: 1.15; }
.client-panel .body { padding: 22px 24px 26px; }
.status { display: inline-block; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(207, 166, 255, .5); color: var(--violet-text); }
.status.current { background: var(--violet); border-color: var(--violet); color: #fff; }
.client-panel h3 { font-size: clamp(22px, 2.4vw, 28px); margin-top: 12px; }
.client-panel .meta { color: var(--dim); font-size: 14px; margin-top: 4px; }
.client-panel p.desc { color: var(--muted); margin-top: 12px; font-size: 16px; }
.client-panel .actions { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }

/* ---------- Selected work ---------- */
.work-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.work-card { grid-column: span 6; position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.work-card.wide { grid-column: span 12; display: grid; grid-template-columns: 1.15fr 1fr; }
.work-media { position: relative; background: #000; overflow: hidden; }
.work-media img, .work-media video { width: 100%; height: 100%; object-fit: cover; }
.work-card:not(.wide) .work-media { aspect-ratio: 16 / 10; }
.work-media.pair { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2px; }
.work-media.pair img { aspect-ratio: auto; height: 100%; }
.work-body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 10px; }
.work-body h3 { font-size: clamp(24px, 2.6vw, 32px); }
.work-body .meta { color: var(--dim); font-size: 14px; }
.work-body p { color: var(--muted); font-size: 16px; }
.work-body .actions { margin-top: auto; padding-top: 10px; display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.credit { font-size: 13px; color: var(--dim); }
.credit strong { color: var(--muted); font-weight: 700; }
.reel-card .work-media { aspect-ratio: 16 / 9; }
.attribution-check { margin-top: 28px; border: 1px dashed rgba(255, 200, 90, .45); border-radius: var(--radius); padding: 20px 22px; background: rgba(255, 190, 60, .04); }
.attribution-check h3 { font-size: 17px; margin-top: 8px; }
.attribution-check p { color: var(--muted); font-size: 15px; margin-top: 6px; }
.attribution-check ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
.attribution-check figure { margin: 0; }
.attribution-check img { border-radius: 8px; aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.attribution-check figcaption { font-size: 13px; color: var(--dim); margin-top: 6px; }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { border-top: 2px solid var(--line); padding-top: 20px; position: relative; }
.step::before { content: ""; position: absolute; top: -2px; left: 0; width: 44px; height: 2px; background: var(--violet); }
.step .num { font-size: 13px; font-weight: 800; letter-spacing: .1em; color: var(--violet-text); }
.step h3 { font-size: 22px; margin-top: 8px; }
.step p { color: var(--muted); margin-top: 8px; font-size: 16px; }
.approval-note { margin-top: 28px; color: var(--muted); font-size: 16px; border-left: 3px solid var(--violet); padding: 4px 0 4px 16px; max-width: 760px; }

/* ---------- Beachhead ---------- */
.bb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.bb-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.bb-card .num { font-size: 13px; font-weight: 800; color: var(--violet-text); letter-spacing: .1em; }
.bb-card h3 { font-size: 21px; margin-top: 12px; }
.bb-card p { color: var(--muted); margin-top: 8px; font-size: 16px; }
.bb-foot { margin-top: 24px; color: var(--muted); max-width: 760px; }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; background: var(--surface); }
.service h3 { font-size: 20px; line-height: 1.25; }
.service p { color: var(--muted); font-size: 16px; margin-top: 10px; flex: 1; }
.service .scope { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.service .scope li { font-size: 12.5px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
.service .price-note { margin-top: 16px; font-size: 14px; color: var(--violet-text); font-weight: 700; }
.services-foot { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; color: var(--muted); font-size: 15px; }

/* ---------- Evidence (Two Brothers case) ---------- */
.case { border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); background: var(--surface); padding: clamp(22px, 4vw, 44px); }
.case-top h3 { font-size: clamp(30px, 4.2vw, 48px); font-weight: 900; }
.case-top .meta { color: var(--dim); font-size: 14px; margin-top: 8px; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; margin: 28px 0 0; }
.metrics > div { background: #121319; padding: 20px; display: flex; flex-direction: column; }
.metrics dt { font-size: 14px; color: var(--muted); order: 2; margin-top: 4px; }
.metrics dd { margin: 0; font-size: clamp(32px, 3.6vw, 44px); font-weight: 900; letter-spacing: -.03em; order: 1; font-variant-numeric: tabular-nums; }
.metrics .period { order: 3; font-size: 12.5px; color: var(--dim); margin-top: 6px; }
.metrics a { order: 4; margin-top: 10px; font-size: 13px; color: var(--violet-text); text-decoration: none; font-weight: 700; }
.metrics a:hover { text-decoration: underline; }
.case-story { display: grid; grid-template-columns: minmax(220px, 330px) 1fr; gap: clamp(24px, 4vw, 52px); margin-top: 36px; align-items: start; }
.film { margin: 0; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); background: #000; }
.film video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
.film figcaption { font-size: 13px; color: var(--dim); padding: 10px 14px; }
.story-blocks { display: grid; gap: 26px; }
.story-blocks h4 { font-size: clamp(21px, 2.2vw, 26px); margin-top: 8px; }
.story-blocks p { color: var(--muted); margin-top: 8px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tags li { font-size: 13px; border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; color: var(--muted); }
.evidence-head { margin-top: 44px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: end; }
.evidence-head h4 { font-size: clamp(21px, 2.2vw, 26px); margin-top: 8px; }
.evidence-head p { color: var(--dim); font-size: 14px; }
.proofs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 20px; }
.proof { margin: 0; }
.proof a { display: block; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); background: #000; position: relative; }
.proof img { width: 100%; aspect-ratio: 9 / 13; object-fit: cover; object-position: top; }
.proof a::after { content: "⤢"; position: absolute; right: 10px; top: 10px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: rgba(0, 0, 0, .75); font-size: 15px; }
.proof figcaption { margin-top: 10px; font-size: 14px; }
.proof figcaption strong { display: block; }
.proof figcaption span { color: var(--dim); }
.source-note { color: var(--dim); font-size: 13.5px; margin-top: 18px; max-width: 780px; }
.more-proofs { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.more-proofs summary { cursor: pointer; font-weight: 700; color: var(--violet-text); font-size: 15px; min-height: 44px; display: flex; align-items: center; }
.more-proofs .proofs { grid-template-columns: repeat(2, minmax(0, 260px)); }
.case-result { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.case-result h4 { font-size: clamp(24px, 3vw, 36px); }
.pattern { font-size: clamp(18px, 2vw, 22px); font-weight: 800; margin-top: 12px; font-variant-numeric: tabular-nums; }
.pattern span { color: var(--dim); font-weight: 500; }
.evidence-others { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.evidence-others > div { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; background: var(--surface); }
.evidence-others h3 { font-size: 20px; margin-top: 10px; }
.evidence-others p { color: var(--muted); font-size: 15.5px; margin-top: 8px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.contact-aside ul { margin-top: 24px; display: grid; gap: 10px; }
.contact-aside a { display: flex; align-items: center; gap: 12px; text-decoration: none; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); transition: border-color .2s; }
.contact-aside a:hover { border-color: rgba(207, 166, 255, .6); }
.contact-aside .label { display: block; font-size: 12px; color: var(--dim); letter-spacing: .08em; text-transform: uppercase; }
.contact-aside svg { width: 22px; height: 22px; flex: none; color: var(--violet-text); }
.contact-aside .based { margin-top: 22px; color: var(--muted); font-size: 15px; }
.form { border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); background: var(--surface); padding: clamp(22px, 3vw, 34px); display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 700; }
.field .opt { color: var(--dim); font-weight: 500; }
.input { width: 100%; min-height: 48px; padding: 12px 14px; background: var(--bg); color: var(--text); border: 1px solid #3a3b4e; border-radius: var(--radius-sm); font: inherit; font-size: 16px; transition: border-color .2s, box-shadow .2s; }
.input::placeholder { color: #85869a; }
.input:focus { outline: none; border-color: var(--violet-text); box-shadow: 0 0 0 3px rgba(157, 0, 255, .35); }
.input[aria-invalid="true"] { border-color: #ff7a8a; }
.field-error { color: #ff9aa6; font-size: 13.5px; min-height: 0; }
.field-error:empty { display: none; }
textarea.input { min-height: 130px; resize: vertical; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.form .btn { width: 100%; }
.form-note { color: var(--dim); font-size: 14px; }
.form-status { font-size: 15px; color: var(--muted); }
.form-status:empty { display: none; }
.form-status { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; background: var(--bg); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line-soft); padding: 40px 0; color: var(--dim); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
.site-footer nav ul { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-footer a { text-decoration: none; color: var(--muted); }
.site-footer a:hover { color: var(--text); }

/* ---------- Lightbox ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 560px); max-height: 94vh; overflow: visible; }
.lightbox::backdrop { background: rgba(0, 0, 0, .88); }
.lightbox img { max-height: 84vh; width: auto; margin-inline: auto; border-radius: var(--radius-sm); }
.lightbox p { color: #ddd; text-align: center; font-size: 14px; margin-top: 10px; }
.lightbox .close { position: fixed; top: 14px; right: 14px; width: 48px; height: 48px; border-radius: 50%; border: 1px solid #555; background: #111; color: #fff; cursor: pointer; font-size: 24px; line-height: 1; }

/* Reveal — content is visible by default; only enhanced when JS confirms support */
.js-reveal .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js-reveal .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .nav { display: none; }
  .header-actions { margin-left: auto; }
  .hero-grid, .orbit-layout, .contact-grid { grid-template-columns: 1fr; }
  .core-stage { width: min(70vw, 360px); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .services { grid-template-columns: repeat(2, 1fr); }
  .work-card.wide { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .header-actions .btn { display: none; }
  .hero-grid { gap: 8px; }
  .hero .core-stage { order: -1; width: min(56vw, 230px); }
  .core-caption { display: none; }
  .bb-grid, .services, .steps, .evidence-others { grid-template-columns: 1fr; }
  .work-card, .work-card.wide { grid-column: 1 / -1; }
  .work-media.pair { grid-template-columns: 1fr 1fr; }
  .case-story { grid-template-columns: 1fr; }
  .film { max-width: 320px; }
  .proofs { grid-template-columns: 1fr 1fr; }
  .proofs .proof:last-child:nth-child(odd) { grid-column: 1 / -1; max-width: 50%; }
  .more-proofs .proofs { grid-template-columns: 1fr 1fr; }
  .form { grid-template-columns: 1fr; }
  .attribution-check ul { grid-template-columns: 1fr 1fr; }
  /* Orbit graphic is desktop-only; on mobile all three client cards are shown in full */
  .orbit, .orbit-hint { display: none; }
  .client-panel[hidden] { display: block; }
}
@media (max-width: 400px) {
  .metrics { grid-template-columns: 1fr; }
  .proofs, .more-proofs .proofs { grid-template-columns: 1fr; }
  .proofs .proof:last-child:nth-child(odd) { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .001ms !important; animation: none !important; }
  .js-reveal .reveal { opacity: 1; transform: none; }
}
@media print { .site-header, .preview-bar, .lightbox { display: none !important; } }

/* Text-only project media (used while client assets are pending) */
.work-media.textual { display: grid; place-items: center; aspect-ratio: 16 / 10; background: radial-gradient(90% 120% at 0% 0%, rgba(157, 0, 255, .18), transparent 60%), #121319; }
.work-media.textual span { font-size: clamp(24px, 3vw, 34px); font-weight: 900; text-align: center; padding: 24px; line-height: 1.15; }

/* ---------- Refinements after first visual pass ---------- */
:root { --header-h: 76px; }
.brand img { width: 54px; height: 60px; }
.hero h1 { font-size: clamp(40px, 5.4vw, 70px); }
.status { align-self: flex-start; }
.orbit-node { text-decoration: none; color: var(--text); }
.orbit-core { aspect-ratio: 1; }
.orbit-core .core-floor { display: none; }
.orbit-ring { left: 2%; right: 2%; top: 12%; bottom: 12%; }
.orbit-ring.inner { left: 20%; right: 20%; top: 28%; bottom: 28%; }
.orbit-node.n1 { left: 22%; top: 16%; }
.orbit-node.n2 { left: 82%; top: 52%; }
.orbit-node.n3 { left: 30%; top: 86%; }
.orbit-node { white-space: normal; max-width: 46%; }
.orbit-node.n1 { left: 50%; top: 9%; }
.orbit-node.n2 { left: 25%; top: 87%; }
.orbit-node.n3 { left: 75%; top: 87%; }
.orbit-core { top: 48%; width: 26%; }
.orbit-node { width: 45%; max-width: none; border-radius: 20px; }
@media (max-width: 760px) { .header-actions .btn { display: inline-flex; min-height: 40px; padding: 0 14px; font-size: 13.5px; } .lang-switch a { min-width: 40px; padding: 6px 8px; } }
.metrics a { display: inline-flex; align-items: center; min-height: 28px; align-self: flex-start; }
@media (max-width: 760px) { .hero .core-stage { width: min(40vw, 160px); margin: 0 0 8px; } .hero { padding-top: 28px; } }

/* =====================================================================
   v2 — slimmer home, case page, Core volume
   ===================================================================== */
.preview-bar { font-size: 12.5px; padding: 5px var(--gutter); background: #1b1610; border-bottom-color: #3a2c14; }
.preview-bar a { color: #ffe3b0; }

/* Core: thickness + light */
.core-edge svg { filter: brightness(var(--edge-b, 1)); }
.core-edge { --edge-b: calc(1 - var(--i) * .08); }
.core:not(.is-3d) .core-edge { transform: translateY(calc(var(--i) * .55%)); }
.core.is-3d .core-edge { transform: translateZ(calc(var(--i) * -4px)); }
.core.is-3d .core-l4 { transform: translateZ(56px); }
.core-l4 { pointer-events: none; mix-blend-mode: screen; }
.core-glow { inset: 18%; background: radial-gradient(circle, rgba(157, 0, 255, .26), transparent 66%); }

/* Home metric summary inside the Two Brothers card */
.metrics.compact { grid-template-columns: repeat(2, 1fr); margin: 6px 0 2px; }
.metrics.compact > div { padding: 14px 16px; }
.metrics.compact dd { font-size: clamp(26px, 2.6vw, 34px); }
.metrics.compact dt { font-size: 13.5px; }
.metrics.compact .period { font-size: 12px; }

/* Case page */
.case-h1 { font-size: clamp(36px, 5.4vw, 64px); font-weight: 900; margin-top: 12px; }
.story-blocks h3, .evidence-head h3, .case-result h3 { font-size: clamp(21px, 2.2vw, 28px); margin-top: 8px; }
.story-blocks h2, .evidence-head h2, .case-result h2 { margin: 0; }
.case-cta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: center; justify-content: space-between; border: 1px solid rgba(157, 0, 255, .4); border-radius: var(--radius); padding: 26px 28px; background: radial-gradient(120% 140% at 0% 0%, rgba(157, 0, 255, .16), transparent 60%), var(--surface); }
.case-cta h2 { font-size: clamp(22px, 2.6vw, 30px); }
.case-cta p { color: var(--muted); margin-top: 6px; }

/* Contact headings (were inline styles) */
.contact-title { font-size: clamp(32px, 4.8vw, 54px); font-weight: 900; margin-top: 12px; }
.contact-intro { color: var(--muted); margin-top: 16px; }
.services-foot .price-note { margin: 0; font-size: 15px; }

/* Mobile: shorter first visit — no duplicated imagery, fewer chips */
@media (max-width: 760px) {
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 24px; }
  .hero-tags { display: none; }
  .client-panel .media { display: none; }
  .client-panel .body { padding: 18px 18px 20px; }
  .client-panels { gap: 10px; }
  .work-media.pair { max-height: 300px; }
  .work-body { padding: 18px 18px 22px; }
  .service { padding: 18px 20px; }
  .service .scope { display: none; }
  .bb-card { padding: 20px; }
  .steps { gap: 12px; }
  .step { padding-top: 14px; }
  .approval-note { margin-top: 18px; }
}
.work-card.wide { align-items: start; }
.work-card.wide .work-media.pair { aspect-ratio: 5 / 4; }
@media (max-width: 1020px) { .work-card.wide .work-media.pair { aspect-ratio: 16 / 10; } }
@media (max-width: 760px) { .client-panel .media.textual { display: none; } }
.preview-bar a { display: inline-block; padding: 3px 4px; min-height: 24px; line-height: 18px; }
.orbit-node { background: #16171e; } .orbit-node .tag { color: #a9aabd; }
/* v2b — stronger, still lightweight, volume */
.core-edge { --edge-b: calc(.95 - var(--i) * .05); }
.core:not(.is-3d) .core-edge { transform: translateY(calc(var(--i) * .38%)); }
.core.is-3d .core-edge { transform: translateZ(calc(var(--i) * -5px)); }
.core.is-3d .core-l2 { transform: translateZ(18px); }
.core.is-3d .core-l3 { transform: translateZ(46px); }
.core.is-3d .core-l4 { transform: translateZ(64px); }
.core-floor { bottom: -3%; height: 8%; background: radial-gradient(closest-side, rgba(0, 0, 0, .85), transparent); }

/* =====================================================================
   v3 — packages, extras, WhatsApp
   ===================================================================== */
.packages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.package { display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: var(--surface); }
.package:nth-child(2) { border-color: rgba(157, 0, 255, .5); background: linear-gradient(170deg, rgba(157, 0, 255, .14), var(--surface) 55%); }
.package h3 { font-size: clamp(24px, 2.4vw, 30px); font-weight: 900; }
.package p { color: var(--muted); font-size: 16px; }
.package .pkg-for { color: var(--violet-text); font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.pkg-items { display: grid; gap: 6px; margin: 4px 0 6px; }
.pkg-items li { position: relative; padding-left: 24px; color: var(--text); font-size: 15.5px; }
.pkg-items li::before { content: "✓"; position: absolute; left: 0; color: var(--violet-text); font-weight: 900; }
.package .price-note { margin-top: auto; font-size: 14px; color: var(--violet-text); font-weight: 700; }
.package .btn { align-self: flex-start; }
.extras { margin-top: 22px; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; }
.extras h3 { font-size: 16px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.extras ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 22px; margin-top: 14px; }
.extras li strong { display: block; font-size: 16px; }
.extras li span { color: var(--muted); font-size: 14.5px; }
.contact-wa { margin-top: 20px; }
.contact-wa .btn svg { width: 20px; height: 20px; }
.footer-contacts { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.footer-contacts a { display: inline-flex; align-items: center; min-height: 28px; }
@media (max-width: 1020px) { .packages { grid-template-columns: 1fr; } .extras ul { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .package { padding: 20px; } .extras ul { grid-template-columns: 1fr; } .extras { padding: 18px 20px; } }
.contact-aside .contact-wa a.btn { display: inline-flex; background: var(--violet); color: #fff; border: 0; border-radius: 999px; padding: 0 22px; min-height: 48px; } .contact-aside .contact-wa a.btn:hover { background: #8a00e0; } .contact-aside .contact-wa a.btn svg { color: #fff; }

/* v4 — Victor's photo card (renders only when the three gallery files are present) */
.victors-card .vic-grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 2px; aspect-ratio: 5 / 4; }
.victors-card .vic-photo { margin: 0; position: relative; overflow: hidden; }
.victors-card .vic-photo:first-child { grid-row: 1 / 3; }
.victors-card .vic-photo img { width: 100%; height: 100%; object-fit: cover; }
.victors-card .vic-photo figcaption { position: absolute; inset: auto 0 0 0; padding: 22px 10px 8px; font-size: 12.5px; color: #fff; background: linear-gradient(0deg, rgba(0, 0, 0, .85), transparent); }
@media (max-width: 1020px) { .victors-card .vic-grid { aspect-ratio: 16 / 10; } }
@media (max-width: 760px) { .victors-card .vic-grid { aspect-ratio: auto; grid-template-columns: 1fr 1fr; grid-template-rows: auto; } .victors-card .vic-photo:first-child { grid-row: auto; grid-column: 1 / -1; } .victors-card .vic-photo img { aspect-ratio: 4 / 3; } }

/* v4b — Victor's photos at native aspect ratio (no cropping) */
.victors-card .vic-grid { display: flex; flex-direction: column; gap: 2px; aspect-ratio: auto !important; grid-template-columns: none; grid-template-rows: none; align-self: start; background: #000; }
.victors-card .vic-row { display: flex; gap: 2px; align-items: flex-start; }
.victors-card .vic-photo:first-child { grid-row: auto; grid-column: auto; }
.victors-card .vic-photo { min-width: 0; }
.victors-card .vic-photo img { width: 100%; height: auto; object-fit: initial; aspect-ratio: var(--ar, auto) !important; display: block; } /* v7: --ar (set per image) reserves the space before lazy load; avoids layout shift */
.victors-card .vic-photo figcaption { font-size: 13px; }
.client-panel .media.natural { aspect-ratio: auto; }
.client-panel .media.natural img { height: auto; object-fit: initial; }
@media (max-width: 760px) { .victors-card .vic-grid { aspect-ratio: auto; } .victors-card .vic-row { flex-direction: row; } .victors-card .vic-photo figcaption { font-size: 12px; padding: 18px 8px 6px; } }
/* captions below the photos, never on top of people or products */
.victors-card .vic-photo figcaption { position: static; background: #0c0d12; padding: 7px 10px 9px; color: var(--muted); font-size: 13px; line-height: 1.35; }

/* v5 — offers with prices, included list, one-off Content Day */
.pkg-price { margin: 0; }
.pkg-price strong { font-size: clamp(26px, 2.6vw, 32px); font-weight: 900; color: var(--text); letter-spacing: -.02em; }
.pkg-price span { color: var(--muted); font-size: 15px; }
.pkg-proposed { border: 1px dashed rgba(255, 200, 90, .5); border-radius: var(--radius-sm); padding: 10px 12px; background: rgba(255, 190, 60, .05); }
.pkg-proposed .pkg-items { margin: 8px 0 0; }
.package .btn { margin-top: auto; }
.included { margin-top: 18px; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; background: var(--surface); }
.included h3 { font-size: 16px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.included-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.included-list li { font-size: 14px; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; color: var(--text); }
.plan-notes { margin-top: 16px; display: grid; gap: 6px; }
.plan-notes li { position: relative; padding-left: 20px; color: var(--muted); font-size: 15px; }
.plan-notes li::before { content: "•"; position: absolute; left: 4px; color: var(--violet-text); }
.included .price-note { margin-top: 12px; font-size: 14px; color: var(--violet-text); font-weight: 700; }
.oneoff { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; }
.oneoff > div { max-width: 760px; }
.oneoff h3 { font-size: clamp(22px, 2.2vw, 26px); font-weight: 900; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-top: 6px; }
.oneoff p { color: var(--muted); font-size: 16px; margin-top: 8px; }
.oneoff .pkg-for { color: var(--violet-text); font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-top: 0; }
@media (max-width: 760px) { .included, .oneoff { padding: 18px 20px; } .included-list li { font-size: 13px; } }
.oneoff .pkg-price > span { font-weight: 500; letter-spacing: 0; }

/* v6 — approved plans */
.pkg-highlights { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.pkg-highlights li { font-size: 12.5px; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; color: var(--muted); }
.lang-switch a { min-width: 40px; }
@media (max-width: 400px) { .lang-switch a { min-width: 34px; padding: 6px 6px; } .header-actions { gap: 6px; } .header-actions .btn { padding: 0 10px; font-size: 12.5px; } }

/* ---------- v7 (2026-10-07): compact mobile menu, direct language-switch jump, site-languages note ---------- */
html.jump { scroll-behavior: auto; }
.mobile-menu { display: none; }
.mobile-menu > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 999px; color: var(--text); }
.mobile-menu > summary::-webkit-details-marker { display: none; }
.mobile-menu > summary:hover { background: rgba(255, 255, 255, .06); }
.mobile-menu .m-close { display: none; }
.mobile-menu[open] .m-open { display: none; }
.mobile-menu[open] .m-close { display: inline; }
.menu-panel { position: absolute; left: 0; right: 0; top: 100%; background: #0d0e12; isolation: isolate; border-bottom: 1px solid var(--line); box-shadow: 0 18px 40px rgba(0, 0, 0, .45); }
.menu-panel ul { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; padding: 8px 0 14px; display: grid; }
.menu-panel a { display: block; padding: 14px 4px; min-height: 48px; color: var(--text); font-size: 18px; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line-soft); }
.menu-panel li:last-child a { border-bottom: 0; }
.menu-panel a:hover { color: var(--cyan); }
@media (max-width: 1020px) { .mobile-menu { display: block; } }
@media (max-width: 400px) { .mobile-menu > summary { width: 38px; height: 38px; } .site-header .wrap { gap: 10px; } }
.site-footer .site-langs { flex-basis: 100%; font-size: 14px; color: var(--muted); }

/* ---------- v8 (2026-10-07): brand application — horizontal logo + circular symbol hero ---------- */
/* Horizontal logo: intrinsic ratio comes from the width/height attributes (320×73), so the box is reserved before load. */
.brand img.logo-h { height: 40px; width: auto; aspect-ratio: 320 / 73; object-fit: contain; display: block; }
.site-footer .brand img.logo-h { height: 34px; }
@media (max-width: 1020px) { .brand img.logo-h { height: 34px; } }

/* Hero symbol: a flat image. Desktop + fine pointer + motion allowed → small perspective tilt (JS sets --rx/--ry, ≤ 8°).
   Otherwise (touch, small screens, reduced motion, no JS) it stays static and flat. */
.symbol-stage { perspective: 1100px; }
.core-symbol img { position: absolute; inset: 4%; width: 92%; height: auto; aspect-ratio: 480 / 458; margin: auto; display: block; }
.core-symbol .core-glow { inset: 16%; }
.core-symbol.is-3d .core-glow { transform: none; }
.core-symbol:not(.is-3d) { transform: none; }
@media (prefers-reduced-motion: reduce) { .core-symbol { transform: none !important; } }

/* Narrow phones: two-row header so logo, contact, menu and EN/PT/ES all stay legible without sideways scroll.
   Row 1: logo · contact · menu. Row 2: full-width language switch. */
@media (max-width: 560px) {
  :root { --header-h: 104px; }
  .site-header { height: auto; }
  .site-header .wrap { height: auto; flex-wrap: wrap; row-gap: 6px; column-gap: 8px; padding: 8px 0 8px; }
  .site-header .brand { order: 1; margin-right: auto; }
  .header-actions { display: contents; }
  .header-actions .btn { order: 2; }
  .mobile-menu { order: 3; }
  .lang-switch { order: 4; flex: 1 0 100%; display: flex; }
  .lang-switch a { flex: 1; min-width: 0; padding: 6px 0; font-size: 13px; }
  .brand img.logo-h { height: 28px; }
  .site-footer .brand img.logo-h { height: 30px; }
}

/* ---------- v9 (2026-10-07): phones — primary CTA in the first screen (360×800), compact two-row header ---------- */
@media (max-width: 560px) {
  :root { --header-h: 92px; }
  .site-header .wrap { padding: 6px 0; row-gap: 4px; }
  .lang-switch { padding: 2px; }
  .lang-switch a { padding: 5px 0; min-height: 30px; display: inline-flex; align-items: center; justify-content: center; }
  .hero { padding-top: 18px; }
  .hero .core-stage.symbol-stage { width: 112px; margin: 0 0 6px; }
  .hero h1 { margin-top: 12px; }
  .hero .lede { margin-top: 14px; }
  .hero-ctas { margin-top: 22px; }
}

/* ---------- v10 (2026-10-07): Minas — confirmed pieces shown whole (no crop), equal heights ---------- */
.work-media.pieces { display: flex; align-items: center; gap: 12px; padding: clamp(14px, 2.4vw, 28px); background: radial-gradient(80% 90% at 30% 20%, rgba(157, 0, 255, .12), transparent 70%), #0a0a0e; aspect-ratio: auto !important; max-height: none !important; }
.work-media.pieces img { min-width: 0; width: 100%; height: auto; object-fit: initial; border-radius: 6px; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }

/* ---------- v12 (2026-10-07): Minas pieces open full size; compact Minas Orbit panel ---------- */
.work-media.pieces .piece-link { display: block; position: relative; min-width: 0; border-radius: 6px; cursor: zoom-in; }
.work-media.pieces .piece-link img { width: 100%; height: auto; }
.work-media.pieces .piece-link:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }
.zoom-badge { position: absolute; right: 8px; bottom: 8px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: rgba(13, 14, 18, .78); color: #fff; font-size: 16px; line-height: 1; border: 1px solid rgba(255, 255, 255, .25); pointer-events: none; }
.lightbox.is-piece { max-width: min(92vw, 760px); }
.lightbox.is-piece img { width: auto; height: auto; max-width: 100%; max-height: 82vh; object-fit: contain; }
.lightbox.is-piece::backdrop { background: rgba(0, 0, 0, .95); }
.lightbox.is-piece p { width: fit-content; max-width: 100%; margin: 10px auto 0; padding: 8px 12px; border-radius: 8px; background: rgba(13, 14, 18, .92); color: #e6e6ee; }
