/* ==========================================================
   8Bit Enterprise — inner pages (services, work, about,
   blog, contact). Builds on styles.css tokens.
   ========================================================== */
img { height: auto; }
.is-inner { padding-top: 0; }
.is-inner .topbar { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); }
.topbar__burger { display: none; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--ink); position: relative; cursor: pointer; }
.topbar__burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: #fff; transition: transform .35s var(--ease); }
.topbar__burger span:first-child { top: 14px; } .topbar__burger span:last-child { top: 20px; }
.menu-open .topbar__burger span:first-child { transform: translateY(3px) rotate(45deg); }
.menu-open .topbar__burger span:last-child { transform: translateY(-3px) rotate(-45deg); }
.topbar__links a[aria-current="page"] { color: var(--ink); background: rgba(0,0,0,.06); }
.menu-open .topbar { z-index: 70; }

/* ---------- Page hero ---------- */
.phero { position: relative; isolation: isolate; overflow: hidden; margin: 12px; border-radius: 28px; color: #fff; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: clamp(24px, 4vw, 64px); min-height: min(76vh, 760px); padding: clamp(110px, 14vh, 150px) clamp(20px, 4vw, 64px) clamp(44px, 6vw, 72px); }
.phero__bg { position: absolute; inset: 0; z-index: -2; }
.phero__bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08) translateY(var(--py, 0px)); }
.phero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(14,10,30,.88) 0%, rgba(14,10,30,.62) 46%, rgba(14,10,30,.1) 100%); }
.phero--short { min-height: min(58vh, 560px); grid-template-columns: 1fr; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: rgba(255,255,255,.62); margin-bottom: 22px; list-style: none; letter-spacing: .005em; }
.crumbs a:hover { color: #fff; }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.phero h1 { font-weight: 600; font-size: clamp(40px, 5.4vw, 80px); line-height: 1.02; letter-spacing: -0.045em; max-width: 14ch; }
.phero--short h1 { max-width: 18ch; }
.phero h1 .mute { color: rgba(255,255,255,.55); }
.phero__lede { max-width: 540px; margin-top: 22px; font-size: clamp(17px, 1.35vw, 19px); line-height: 1.5; color: rgba(255,255,255,.82); }
.phero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.phero__art { position: relative; justify-self: end; width: min(100%, 520px); }
.phero__art img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 26px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.7), inset 0 0 0 1px rgba(255,255,255,.2); animation: drift 9s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translateY(-12px) rotate(-.6deg); } }
.phero__chips { position: absolute; left: -28px; bottom: 26px; display: grid; gap: 8px; }
.chip-glass { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 16px; background: rgba(255,255,255,.14); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 0 0 1px rgba(255,255,255,.18); font-size: 13.5px; color: #fff; }
.chip-glass b { font-weight: 600; }
.chip-glass i { width: 8px; height: 8px; border-radius: 50%; background: #7dffb3; box-shadow: 0 0 0 4px rgba(125,255,179,.18); }

/* ---------- Generic layout ---------- */
.wrap { max-width: 1312px; margin: 0 auto; }
.lead { font-size: clamp(19px, 1.7vw, 24px); line-height: 1.45; letter-spacing: -0.015em; color: var(--ink); max-width: 820px; }
.lead .mute { color: var(--mute); }
.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(30px, 6vw, 100px); align-items: start; }
.split__sticky { position: sticky; top: 100px; }

/* feature cards */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 44px; }
.feature { background: #fff; border-radius: 22px; padding: 26px; box-shadow: inset 0 0 0 1px var(--hair); display: grid; align-content: start; gap: 10px; transition: transform .5s var(--ease), box-shadow .4s var(--ease); }
.feature:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--hair), 0 24px 40px -28px rgba(0,0,0,.3); }
.feature__n { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(135deg, #f1e9ff, #ffe8dc); color: var(--maroon); font-size: 13px; font-weight: 600; }
.feature h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; margin-top: 6px; }
.feature p { color: var(--mute); font-size: 15px; line-height: 1.5; }

/* process steps */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 44px; counter-reset: s; }
.flow li { list-style: none; position: relative; padding: 26px 22px; border-radius: 22px; background: #1b1b1d; color: #fff; min-height: 230px; display: flex; flex-direction: column; }
.flow li::before { counter-increment: s; content: "0" counter(s); font-size: 13px; color: rgba(255,255,255,.5); }
.flow h3 { margin-top: auto; font-size: 22px; font-weight: 600; letter-spacing: -0.025em; }
.flow p { color: rgba(255,255,255,.65); font-size: 14.5px; margin-top: 8px; line-height: 1.5; }
.dark .flow li { background: #1f1f22; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }

/* stack / tools */
.stack { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.stack span { padding: 8px 14px; border-radius: 100px; background: #fff; box-shadow: inset 0 0 0 1px var(--hair); font-size: 14px; }
.dark .stack span { background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }

/* prose */
.prose { max-width: 720px; font-size: 18px; line-height: 1.65; color: #2c2c2e; letter-spacing: -0.005em; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; letter-spacing: -0.03em; font-weight: 600; color: var(--ink); margin-top: 1.8em; }
.prose h3 { font-size: 21px; letter-spacing: -0.02em; font-weight: 600; color: var(--ink); margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: .45em; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--maroon); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose blockquote { border-left: 3px solid var(--maroon); padding: 4px 0 4px 20px; font-size: 20px; color: var(--ink); letter-spacing: -0.015em; }
.prose .note { background: #fff; border-radius: 18px; padding: 18px 20px; box-shadow: inset 0 0 0 1px var(--hair); font-size: 16px; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 900px; }
.faq details { background: #fff; border-radius: 20px; box-shadow: inset 0 0 0 1px var(--hair); padding: 0 24px; transition: box-shadow .3s; }
.faq details[open] { box-shadow: inset 0 0 0 1px var(--hair), 0 24px 40px -30px rgba(0,0,0,.25); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 22px 0; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--bg); transition: transform .45s var(--ease), background .3s; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px; background: var(--ink); border-radius: 2px; }
.faq summary i::after { transform: rotate(90deg); transition: transform .45s var(--ease); }
.faq details[open] summary i { transform: rotate(180deg); background: #f1e9ff; }
.faq details[open] summary i::after { transform: rotate(0deg); }
.faq .faq__a { color: #3a3a3c; padding-bottom: 22px; max-width: 720px; line-height: 1.6; }

/* CTA band */
.cta-band { position: relative; isolation: isolate; overflow: hidden; margin: 0 12px 12px; border-radius: 28px; color: #fff; padding: clamp(60px, 9vw, 120px) clamp(20px, 5vw, 80px); text-align: center; }
.cta-band__bg { position: absolute; inset: 0; z-index: -2; }
.cta-band__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 90% at 50% 100%, rgba(90,26,34,.35), rgba(12,8,14,.6)); }
.cta-band h2 { font-weight: 600; font-size: clamp(36px, 5vw, 72px); line-height: 1.03; letter-spacing: -0.045em; max-width: 15ch; margin: 0 auto; }
.cta-band p { max-width: 520px; margin: 20px auto 0; color: rgba(255,255,255,.78); font-size: 18px; }
.cta-band .phero__ctas { justify-content: center; }

/* services overview cards */
.svc-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.svc-card { position: relative; display: grid; grid-template-rows: auto 1fr; border-radius: 26px; overflow: hidden; background: #fff; box-shadow: inset 0 0 0 1px var(--hair); transition: transform .6s var(--ease), box-shadow .5s var(--ease); }
.svc-card:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px var(--hair), 0 40px 60px -40px rgba(30,10,60,.45); }
.svc-card__img { aspect-ratio: 16 / 10; overflow: hidden; background: #1a1430; }
.svc-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.svc-card:hover .svc-card__img img { transform: scale(1.04); }
.svc-card__body { padding: 24px 26px 28px; display: grid; gap: 10px; align-content: start; }
.svc-card__body h2, .svc-card__body h3 { font-size: 26px; font-weight: 600; letter-spacing: -0.03em; }
.svc-card__body p { color: var(--mute); }
.svc-card__more { margin-top: 6px; font-weight: 500; color: var(--maroon); display: inline-flex; gap: 6px; }
.svc-card__more::after { content: "→"; transition: transform .4s var(--ease); }
.svc-card:hover .svc-card__more::after { transform: translateX(4px); }
.svc-card--wide { grid-column: 1 / -1; grid-template-columns: 1.2fr 1fr; grid-template-rows: none; }
.svc-card--wide .svc-card__img { aspect-ratio: auto; min-height: 320px; }
.svc-card--wide .svc-card__body { align-content: center; padding: 40px; }

/* case studies */
.cases { display: grid; gap: clamp(40px, 6vw, 90px); }
.case { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 5vw, 70px); align-items: center; }
.case:nth-child(even) .case__img { order: 2; }
.case__img { border-radius: 26px; overflow: hidden; box-shadow: var(--lift); aspect-ratio: 16 / 11; }
.case__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.case:hover .case__img img { transform: scale(1.03); }
.case__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.case__tags span { font-size: 12.5px; padding: 6px 12px; border-radius: 100px; background: #fff; box-shadow: inset 0 0 0 1px var(--hair); }
.case h2 { font-size: clamp(28px, 3vw, 40px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.08; }
.case dl { display: grid; gap: 14px; margin-top: 20px; }
.case dt { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--maroon); }
.case dd { color: #3a3a3c; margin-top: 2px; }
.case__result { display: inline-flex; align-items: baseline; gap: 10px; margin-top: 22px; padding: 14px 18px; border-radius: 18px; background: #1b1b1d; color: #fff; }
.case__result b { font-size: 30px; font-weight: 600; letter-spacing: -0.04em; }

/* blog */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.post-card { display: grid; gap: 12px; }
.post-card__img { border-radius: 22px; overflow: hidden; aspect-ratio: 16 / 10; box-shadow: var(--lift); }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.post-card:hover .post-card__img img { transform: scale(1.04); }
.post-card small { color: var(--maroon); font-weight: 600; font-size: 13px; letter-spacing: .005em; }
.post-card h2, .post-card h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.22; }
.post-card p { color: var(--mute); font-size: 15px; }
.article-cover { max-width: 1100px; margin: 0 auto; border-radius: 28px; overflow: hidden; box-shadow: var(--lift); aspect-ratio: 16 / 8; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-meta { display: flex; flex-wrap: wrap; gap: 16px; color: rgba(255,255,255,.7); font-size: 14px; margin-top: 22px; }
.article-wrap { display: grid; grid-template-columns: 220px minmax(0, 720px); gap: clamp(30px, 6vw, 90px); justify-content: center; }
.toc { position: sticky; top: 100px; align-self: start; font-size: 14px; }
.toc b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--mute); margin-bottom: 12px; }
.toc a { display: block; padding: 6px 0; color: var(--mute); transition: color .2s; }
.toc a:hover, .toc a.on { color: var(--ink); }

/* about */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 44px; }
.value { border-radius: 22px; padding: 26px; background: #fff; box-shadow: inset 0 0 0 1px var(--hair); min-height: 220px; display: flex; flex-direction: column; }
.value h3 { margin-top: auto; font-size: 21px; font-weight: 600; letter-spacing: -0.025em; }
.value p { color: var(--mute); font-size: 15px; margin-top: 8px; }
.value b { font-size: 34px; letter-spacing: -0.04em; font-weight: 600; color: var(--maroon); }
.wide-img { border-radius: 28px; overflow: hidden; box-shadow: var(--lift); aspect-ratio: 16 / 7; margin-top: 44px; }
.wide-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08) translateY(var(--py, 0px)); }

/* contact page */
.contact-grid { display: grid; grid-template-columns: 1.3fr .9fr; gap: 16px; align-items: start; }
.form-card { background: #fff; border-radius: 28px; padding: clamp(24px, 4vw, 48px); box-shadow: inset 0 0 0 1px var(--hair), var(--lift); }
.form-card h2 { font-size: 30px; font-weight: 600; letter-spacing: -0.035em; }
.form-card > p { color: var(--mute); margin-top: 8px; }
.cform { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.cform label { display: grid; gap: 6px; font-size: 13.5px; font-weight: 500; color: #3a3a3c; }
.cform .wide { grid-column: 1 / -1; }
.cform input, .cform select, .cform textarea { width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(0,0,0,.12); background: #fbfbfd; font: inherit; font-size: 16px; color: var(--ink); outline: none; transition: border-color .2s, box-shadow .2s, background .2s; resize: vertical; }
.cform input:focus, .cform select:focus, .cform textarea:focus { border-color: var(--maroon); background: #fff; box-shadow: 0 0 0 4px rgba(90,26,34,.1); }
.cform fieldset { border: 0; grid-column: 1 / -1; }
.cform legend { font-size: 13.5px; font-weight: 500; color: #3a3a3c; margin-bottom: 8px; }
.pick { display: flex; flex-wrap: wrap; gap: 8px; }
.pick label { position: relative; display: block; }
.pick input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.pick span { display: inline-block; padding: 10px 16px; border-radius: 100px; background: #fbfbfd; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); font-size: 14px; font-weight: 500; color: var(--ink); transition: background .2s, color .2s, box-shadow .2s, transform .15s; }
.pick input:checked + span { background: var(--ink); color: #fff; box-shadow: none; }
.pick input:focus-visible + span { box-shadow: 0 0 0 3px rgba(0,113,227,.5); }
.pick label:active span { transform: scale(.96); }
.cform .btn { justify-self: start; }
.cform__ok { grid-column: 1 / -1; min-height: 1.2em; font-weight: 500; color: #1d7a4c; }
.cform__ok.err { color: #b3261e; }
.side-card { background: #1b1b1d; color: #fff; border-radius: 28px; padding: clamp(24px, 3vw, 36px); display: grid; gap: 22px; }
.side-card h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.025em; }
.side-card ol { list-style: none; display: grid; gap: 14px; counter-reset: n; }
.side-card li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; color: rgba(255,255,255,.75); font-size: 15px; }
.side-card li::before { counter-increment: n; content: counter(n); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); font-size: 12px; color: #fff; }
.side-card a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.side-card small { color: rgba(255,255,255,.55); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; display: block; margin-bottom: 4px; }

/* marquee (platforms) */
.marquee { overflow: hidden; padding: 26px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; gap: 56px; width: max-content; animation: marq 40s linear infinite; }
.marquee__track span { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; color: #86868b; white-space: nowrap; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marq { to { transform: translateX(-50%); } }

/* 404 */
.nf { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 120px var(--gutter); }
.nf b { font-size: clamp(90px, 18vw, 220px); letter-spacing: -0.07em; font-weight: 600; line-height: 1; background: linear-gradient(120deg, #5a1a22, #7a5cff, #2bb5c8); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* footer (shared) */
.foot__grid--4 { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
.foot__grid h3 { display: block; color: rgba(255,255,255,.45); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; font-weight: 500; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .phero { grid-template-columns: 1fr; padding-top: 110px; min-height: 0; }
  .phero__art { justify-self: start; width: min(100%, 460px); }
  .phero__chips { left: 12px; }
  .split, .case, .contact-grid, .article-wrap { grid-template-columns: 1fr; }
  .case:nth-child(even) .case__img { order: 0; }
  .split__sticky, .toc { position: static; }
  .toc { display: none; }
  .features, .values { grid-template-columns: 1fr 1fr; }
  .flow { grid-template-columns: 1fr 1fr; }
  .svc-card--wide { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: 1fr 1fr; }
  .foot__grid--4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .topbar__burger { display: block; }
  .topbar__cta { display: none; }
}
@media (max-width: 640px) {
  .phero { margin: 8px; border-radius: 22px; }
  .features, .values, .flow, .svc-cards, .post-grid, .cform { grid-template-columns: 1fr; }
  .svc-card--wide .svc-card__body { padding: 26px; }
  .foot__grid--4 { grid-template-columns: 1fr; }
  .prose { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .phero__art img { animation: none; }
  .marquee__track { animation: none; }
}
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 12px; background: var(--ink); color: #fff; transition: top .2s; }
.skip:focus { top: 12px; }

/* open menu: the bar (with its close button) always stays reachable */
.menu-open .topbar { opacity: 1; transform: translate(-50%, 0) scale(1); pointer-events: auto; }
.menu-open .topbar__burger { display: block; }
.menu-open .topbar__links, .menu-open .topbar__cta { display: none; }
.menu-open .topbar__logo { margin-right: auto; }
