:root {
  --ink: #0b0b0d;
  --paper: #f4f0e8;
  --white: #ffffff;
  --muted: #b7b7bd;
  --line: rgba(255,255,255,.14);
  --dark-line: rgba(11,11,13,.14);
  --accent: #d9ff43;
  --purple: #8e6cff;
  --max: 1440px;
  --radius: 32px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "DM Sans", sans-serif; background: var(--paper); color: var(--ink); overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.section-dark { background: var(--ink); color: var(--white); }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 999; background: white; color: black; padding: 12px 16px; border-radius: 8px; }
.skip-link:focus { top: 16px; }
.eyebrow { margin: 0 0 22px; text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 700; }
.display-heading { margin: 0; font-family: "Manrope", sans-serif; font-size: clamp(2.55rem, 5.6vw, 6.5rem); line-height: .98; letter-spacing: -.06em; font-weight: 500; }
.section-intro { font-size: clamp(1rem, 1.4vw, 1.25rem); line-height: 1.7; color: #57575f; max-width: 600px; }
.section-dark .section-intro { color: #b6b6bc; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; padding: 0 22px; border: 1px solid transparent; border-radius: 999px; font-weight: 700; font-size: .9rem; transition: transform .25s ease, background .25s ease, color .25s ease; }
.button:hover { transform: translateY(-2px); }
.button-light { background: var(--white); color: var(--ink); }
.button-dark { background: var(--ink); color: var(--white); }
.button-small { min-height: 42px; padding: 0 18px; font-size: .78rem; }
.text-link { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; }
.text-link span { font-size: 1.25rem; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .75s ease, transform .75s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

.site-header { position: fixed; top: 18px; left: 0; width: 100%; z-index: 100; pointer-events: none; }
.nav-shell { pointer-events: auto; width: min(calc(100% - 28px), 1500px); margin: auto; height: 66px; display: flex; align-items: center; gap: 22px; padding: 8px 10px 8px 18px; border: 1px solid rgba(255,255,255,.2); background: rgba(16,16,18,.68); backdrop-filter: blur(18px); border-radius: 999px; box-shadow: 0 18px 55px rgba(0,0,0,.22); }
.brand { width: 118px; flex: 0 0 auto; }
.brand img { width: 100%; max-height: 40px; object-fit: contain; filter: brightness(0) invert(1); }
.desktop-nav { margin-left: auto; display: flex; gap: 24px; font-size: .82rem; color: #e8e8ea; }
.desktop-nav a { position: relative; }
.desktop-nav a::after { content: ""; position: absolute; left: 0; bottom: -8px; width: 100%; height: 1px; transform: scaleX(0); transform-origin: right; background: white; transition: transform .25s; }
.desktop-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; padding: 0; }
.menu-toggle span { display: block; width: 18px; height: 2px; background: #111; margin: 5px auto; transition: transform .25s; }
.menu-toggle.is-open span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle.is-open span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.mobile-menu { display: none; pointer-events: auto; width: min(calc(100% - 28px), 520px); margin: 10px auto 0; background: white; color: black; border-radius: 24px; padding: 14px; box-shadow: 0 24px 60px rgba(0,0,0,.25); }
.mobile-menu a { display: block; padding: 15px 12px; border-bottom: 1px solid #e5e5e7; font-weight: 700; }
.mobile-menu a:last-child { border: 0; background: #111; color: white; border-radius: 14px; margin-top: 8px; text-align: center; }
.mobile-menu.is-open { display: block; }

.hero { position: relative; min-height: 100svh; padding: 160px 0 90px; overflow: hidden; isolation: isolate; }
.hero-grid-lines { position: absolute; inset: 0; z-index: -3; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 76px 76px; mask-image: linear-gradient(to bottom, black, transparent 92%); }
.hero-glow { position: absolute; z-index: -2; border-radius: 50%; filter: blur(30px); opacity: .8; }
.hero-glow-one { width: 540px; height: 540px; background: rgba(142,108,255,.45); top: 10%; right: -8%; }
.hero-glow-two { width: 420px; height: 420px; background: rgba(217,255,67,.17); bottom: -16%; left: -6%; }
.hero-content { position: relative; z-index: 2; }
.hero h1 { max-width: 1060px; margin: 0; font-family: "Manrope", sans-serif; font-size: clamp(3.6rem, 8.1vw, 9.4rem); line-height: .88; letter-spacing: -.075em; font-weight: 500; }
.hero h1 em { font-family: Georgia, serif; font-weight: 400; }
.hero-copy { max-width: 610px; margin: 34px 0 0; color: #c9c9ce; line-height: 1.65; font-size: clamp(1rem, 1.45vw, 1.25rem); }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 34px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 14px 32px; margin-top: 54px; color: #a7a7ad; font-size: .86rem; }
.hero-trust span::before { content: "•"; color: var(--accent); margin-right: 10px; }
.hero-showcase { position: absolute; z-index: 1; width: min(47vw, 680px); right: -2vw; bottom: 4vh; transform: rotate(-3deg); }
.browser-frame { border: 1px solid rgba(255,255,255,.18); background: #17171a; border-radius: 22px; padding: 10px; box-shadow: 0 40px 100px rgba(0,0,0,.46); }
.browser-bar { height: 26px; display: flex; align-items: center; gap: 6px; padding-left: 7px; }
.browser-bar span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.4); }
.browser-frame img { border-radius: 14px; width: 100%; }
.floating-card { position: absolute; background: rgba(15,15,17,.82); backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,.18); color: white; border-radius: 18px; padding: 16px 18px; box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.floating-card span { display: block; color: var(--accent); font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 4px; }
.floating-card strong { font-size: .9rem; }
.floating-card-one { left: -54px; top: 10%; }
.floating-card-two { right: 2%; bottom: -24px; }
.scroll-cue { position: absolute; left: 22px; bottom: 28px; font-size: .72rem; text-transform: uppercase; letter-spacing: .15em; color: #9d9da3; display: flex; align-items: center; gap: 12px; transform: rotate(-90deg); transform-origin: left center; }
.scroll-cue span { width: 44px; height: 1px; background: #77777d; }

.rounded-section { margin-top: -28px; position: relative; z-index: 4; border-radius: 32px 32px 0 0; }
.opening-section { padding: 120px 0 80px; background: var(--paper); }
.opening-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: clamp(50px, 9vw, 150px); }
.opening-copy { font-size: 1.06rem; line-height: 1.75; }
.opening-copy p:first-child { font-size: 1.25rem; font-weight: 700; }
.opening-copy .button { margin-top: 18px; }
.statement-strip { margin-top: 100px; padding-top: 28px; border-top: 1px solid var(--dark-line); display: flex; justify-content: space-between; gap: 30px; font-size: clamp(1.1rem, 2vw, 1.8rem); }
.statement-strip strong { text-align: right; }

.services-section { padding: 140px 0; }
.services-layout { display: grid; grid-template-columns: 410px minmax(0, 1fr); gap: clamp(50px, 8vw, 130px); align-items: start; }
.services-intro { position: sticky; top: 115px; }
.services-intro .display-heading { font-size: clamp(2.5rem, 4vw, 4.6rem); }
.service-tabs { margin: 34px 0; display: grid; gap: 6px; }
.service-tab { border: 0; border-left: 2px solid rgba(255,255,255,.15); background: transparent; color: #77777e; padding: 10px 16px; text-align: left; transition: color .2s, border-color .2s; }
.service-tab.is-active { color: white; border-color: var(--accent); }
.service-cards { display: grid; gap: 70px; }
.service-card { position: relative; min-height: 760px; padding: 34px; border: 1px solid var(--line); background: rgba(255,255,255,.055); border-radius: var(--radius); display: flex; flex-direction: column; justify-content: space-between; scroll-margin-top: 120px; overflow: hidden; }
.service-number { position: absolute; top: 26px; right: 26px; font-size: .78rem; color: #88888e; }
.service-media { height: 390px; border-radius: 24px; overflow: hidden; position: relative; display: grid; place-items: center; background: #17171a; }
.service-card-copy { margin-top: 38px; max-width: 680px; }
.service-card h3 { margin: 0 0 18px; font-family: "Manrope", sans-serif; font-size: clamp(1.9rem, 3.3vw, 3.8rem); line-height: 1.03; letter-spacing: -.05em; font-weight: 500; }
.service-card p:not(.eyebrow) { color: #b6b6bd; line-height: 1.7; }
.service-card strong { display: block; margin-top: 20px; color: var(--accent); font-size: .94rem; }
.media-gradient { background: radial-gradient(circle at 35% 20%, rgba(142,108,255,.75), transparent 38%), radial-gradient(circle at 75% 78%, rgba(217,255,67,.28), transparent 35%), #111; }
.motion-orbit { position: absolute; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; animation: orbit 9s linear infinite; }
.orbit-one { width: 280px; height: 280px; }
.orbit-two { width: 180px; height: 180px; animation-direction: reverse; animation-duration: 6s; }
.motion-copy { position: relative; text-align: center; font-size: clamp(2.3rem, 5vw, 5.7rem); line-height: .86; letter-spacing: -.08em; font-weight: 700; }
@keyframes orbit { to { transform: rotate(360deg); } }
.media-image { background: #c5ced4; }
.media-image img { width: 100%; height: 100%; object-fit: cover; }
.media-label { position: absolute; bottom: 16px; left: 16px; background: rgba(0,0,0,.72); padding: 8px 12px; border-radius: 999px; font-size: .72rem; }
.interactive-demo { background: linear-gradient(135deg, #24242a, #09090a); padding: 35px; }
.interactive-demo button { position: absolute; top: 30px; right: 30px; width: 90px; height: 90px; border-radius: 50%; border: 1px solid var(--accent); background: transparent; color: var(--accent); }
.interactive-panel { width: 80%; height: 64%; border: 1px solid rgba(255,255,255,.18); border-radius: 24px; display: flex; align-items: center; justify-content: space-evenly; background: rgba(255,255,255,.06); }
.interactive-panel span { display: grid; place-items: center; width: 90px; aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,.08); animation: pulse 2.5s ease-in-out infinite; }
.interactive-panel span:nth-child(2) { animation-delay: .35s; }
.interactive-panel span:nth-child(3) { animation-delay: .7s; }
@keyframes pulse { 50% { transform: scale(1.12); background: rgba(217,255,67,.14); } }
.portfolio-stack { background: #101014; }
.portfolio-stack img { position: absolute; width: 76%; border-radius: 14px; box-shadow: 0 25px 60px rgba(0,0,0,.45); }
.portfolio-stack img:first-child { transform: translate(-14%, 6%) rotate(-5deg); }
.portfolio-stack img:last-child { transform: translate(16%, -2%) rotate(4deg); }
.product-demo { background: radial-gradient(circle at center, #3a2c6d, #111 62%); }
.product-object { width: 170px; aspect-ratio: 1; border-radius: 32% 68% 62% 38% / 40% 36% 64% 60%; background: linear-gradient(145deg, #bdaaff, #5e43bb); transform: rotate(18deg); animation: float 4s ease-in-out infinite; box-shadow: inset -20px -30px 45px rgba(0,0,0,.25), 0 35px 60px rgba(0,0,0,.35); }
.product-callout { position: absolute; border: 1px solid rgba(255,255,255,.32); border-radius: 999px; padding: 8px 12px; font-size: .72rem; background: rgba(0,0,0,.35); }
.callout-one { top: 18%; left: 14%; }.callout-two { top: 38%; right: 12%; }.callout-three { bottom: 16%; left: 22%; }
@keyframes float { 50% { transform: translateY(-18px) rotate(24deg); } }
.custom-demo { background: #f1eee7; color: #111; display: flex; gap: 12px; flex-wrap: wrap; align-content: center; padding: 50px; font-size: clamp(1.7rem, 4vw, 4rem); font-weight: 700; letter-spacing: -.05em; }
.custom-symbol { color: var(--purple); }

.benefits-section { padding: 140px 0; }
.section-heading-row { display: grid; grid-template-columns: 1.2fr .55fr; gap: clamp(40px, 9vw, 150px); align-items: end; margin-bottom: 70px; }
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--dark-line); border-left: 1px solid var(--dark-line); }
.benefit-card { min-height: 300px; padding: 32px; border-right: 1px solid var(--dark-line); border-bottom: 1px solid var(--dark-line); transition: background .25s, transform .25s; }
.benefit-card:hover { background: white; transform: translateY(-4px); }
.benefit-card span, .audience-grid span { color: #777; font-size: .78rem; }
.benefit-card h3 { margin: 70px 0 15px; font-size: 1.55rem; line-height: 1.15; }
.benefit-card p { color: #5f5f66; line-height: 1.65; }

.work-section { padding: 140px 0; overflow: hidden; }
.work-heading { margin-bottom: 70px; }
.work-track-wrap { overflow-x: auto; scrollbar-width: none; padding: 0 max(20px, calc((100vw - var(--max))/2)); }
.work-track-wrap::-webkit-scrollbar { display: none; }
.work-track { display: flex; gap: 26px; width: max-content; padding-bottom: 24px; }
.project-card { width: min(72vw, 520px); flex: 0 0 auto; }
.project-card a { display: block; }
.project-card img { width: 100%; border-radius: 24px; transition: transform .45s ease; }
.project-card:hover img { transform: scale(.985); }
.project-card div { padding: 20px 4px 0; }
.project-card p { margin: 0 0 8px; color: #8e8e95; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; }
.project-card h3 { margin: 0; font-size: 1.7rem; }
.project-card span { display: inline-block; margin-top: 13px; color: var(--accent); }
.work-footer { margin-top: 70px; display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.work-footer p { font-size: clamp(1.2rem, 2vw, 1.8rem); }

.why-section { padding: 140px 0; background: #d9ff43; }
.why-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(60px, 8vw, 130px); align-items: start; }
.why-copy p:not(.eyebrow) { max-width: 650px; line-height: 1.75; font-size: 1.06rem; }
.why-copy .button { margin-top: 20px; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid rgba(0,0,0,.28); border-left: 1px solid rgba(0,0,0,.28); }
.stat-card { min-height: 230px; padding: 28px; border-right: 1px solid rgba(0,0,0,.28); border-bottom: 1px solid rgba(0,0,0,.28); display: flex; flex-direction: column; justify-content: space-between; }
.stat-card strong { font-size: clamp(2rem, 4vw, 4.7rem); line-height: .95; letter-spacing: -.06em; }
.stat-card span { font-size: .84rem; text-transform: uppercase; letter-spacing: .12em; }

.mobile-first-section { padding: 140px 0; }
.mobile-first-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(50px, 9vw, 140px); align-items: center; }
.device-stage { position: relative; min-height: 620px; display: grid; place-items: center; }
.desktop-device { width: 90%; background: #25252a; border: 1px solid rgba(255,255,255,.2); border-radius: 20px; padding: 10px; transform: rotate(-4deg); box-shadow: 0 45px 100px rgba(0,0,0,.48); }
.desktop-device img { border-radius: 12px; }
.phone-device { position: absolute; right: 3%; bottom: 3%; width: 27%; background: #19191c; border: 1px solid rgba(255,255,255,.2); border-radius: 28px; padding: 8px; transform: rotate(7deg); box-shadow: 0 35px 70px rgba(0,0,0,.5); }
.phone-device img { border-radius: 20px; }
.mobile-points { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 40px; }
.mobile-points article { padding-top: 18px; border-top: 1px solid var(--line); }
.mobile-points h3 { margin: 0 0 8px; font-size: 1.05rem; }
.mobile-points p { margin: 0; color: #aaaab1; line-height: 1.55; }
.mobile-first-section blockquote { margin: 42px 0 0; padding-left: 22px; border-left: 2px solid var(--accent); font-size: 1.4rem; line-height: 1.45; }

.audience-section { padding: 140px 0; }
.audience-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.audience-grid article { min-height: 270px; border: 1px solid var(--dark-line); border-radius: 24px; padding: 26px; display: flex; flex-direction: column; }
.audience-grid h3 { margin: auto 0 12px; font-size: 1.45rem; }
.audience-grid p { margin: 0; color: #5f5f66; line-height: 1.6; }

.process-section { padding: 140px 0; background: white; }
.process-list { border-top: 1px solid var(--dark-line); }
.process-step { display: grid; grid-template-columns: 80px 1fr 1.4fr; gap: 30px; padding: 32px 0; border-bottom: 1px solid var(--dark-line); align-items: start; }
.process-step span { color: #777; }
.process-step h3 { margin: 0; font-size: 1.45rem; }
.process-step p { margin: 0; color: #5f5f66; line-height: 1.65; max-width: 720px; }
.process-footer { display: flex; justify-content: space-between; gap: 30px; align-items: center; margin-top: 50px; }
.process-footer p { font-size: 1.45rem; }

.reviews-section { padding: 140px 0; }
.reviews-section .display-heading { max-width: 1020px; }
.reviews-grid { margin-top: 70px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.review-card { margin: 0; min-height: 360px; padding: 30px; border: 1px solid var(--line); border-radius: 24px; display: flex; flex-direction: column; justify-content: space-between; background: rgba(255,255,255,.035); }
.review-card p { font-size: 1.28rem; line-height: 1.55; }
.review-card footer { display: grid; gap: 4px; }
.review-card footer span { color: #88888f; font-size: .84rem; }
.rating-line { margin-top: 28px; color: var(--accent); }

.faq-section { padding: 140px 0; }
.faq-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(50px, 8vw, 130px); }
.faq-heading { position: sticky; top: 125px; align-self: start; }
.accordion { border-top: 1px solid var(--dark-line); }
.faq-item { border-bottom: 1px solid var(--dark-line); }
.faq-item button { width: 100%; border: 0; background: transparent; color: inherit; padding: 26px 0; display: flex; justify-content: space-between; gap: 20px; text-align: left; font-weight: 700; font-size: 1.18rem; }
.faq-icon { font-size: 1.5rem; transition: transform .25s; }
.faq-item button[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease; }
.faq-answer > p { overflow: hidden; margin: 0; color: #5e5e65; line-height: 1.7; }
.faq-item.is-open .faq-answer { grid-template-rows: 1fr; }
.faq-item.is-open .faq-answer > p { padding-bottom: 26px; }

.contact-section { padding: 140px 0; }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(60px, 9vw, 140px); }
.contact-copy { position: sticky; top: 120px; align-self: start; }
.direct-contact { margin-top: 42px; padding-top: 28px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.direct-contact p { color: #9a9aa1; margin: 0 0 6px; }
.direct-contact a { font-size: 1.1rem; }
.contact-form { background: #17171a; border: 1px solid var(--line); border-radius: 28px; padding: 32px; }
.contact-form label { display: grid; gap: 9px; font-size: .84rem; font-weight: 700; margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.contact-form input, .contact-form textarea, .contact-form select { width: 100%; border: 1px solid #333338; background: #0d0d0f; color: white; border-radius: 14px; padding: 15px 16px; outline: none; }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { border-color: var(--accent); }
.contact-form textarea { resize: vertical; min-height: 150px; }
.form-submit { width: 100%; border: 0; margin-top: 6px; }
.form-note, .form-status { color: #8f8f96; font-size: .78rem; text-align: center; }
.form-status { min-height: 20px; color: var(--accent); }

.final-cta { padding: 0 0 70px; }
.final-cta-inner { min-height: 530px; border-radius: 34px; padding: clamp(34px, 6vw, 90px); background: radial-gradient(circle at 12% 20%, rgba(142,108,255,.85), transparent 38%), radial-gradient(circle at 90% 80%, rgba(217,255,67,.28), transparent 35%), #151518; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.final-cta h2 { max-width: 980px; margin: 0; font-size: clamp(2.7rem, 7vw, 7.6rem); line-height: .92; letter-spacing: -.07em; font-weight: 500; }
.final-cta p:not(.eyebrow) { max-width: 620px; color: #d3d3d7; line-height: 1.65; font-size: 1.08rem; }
.final-cta .button { margin-top: 20px; }

.site-footer { background: #050506; color: white; padding: 80px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 50px; }
.footer-brand img { width: 150px; filter: brightness(0) invert(1); margin-bottom: 20px; }
.footer-brand p { max-width: 420px; color: #929299; line-height: 1.65; }
.site-footer h3 { margin: 0 0 18px; font-size: .8rem; text-transform: uppercase; letter-spacing: .13em; color: #77777e; }
.site-footer a, .site-footer div > p { display: block; margin: 10px 0; color: #c7c7cb; font-size: .9rem; }
.footer-bottom { margin-top: 60px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: #77777e; font-size: .8rem; }

@media (max-width: 1100px) {
  .desktop-nav { display: none; }
  .nav-shell { width: min(calc(100% - 28px), 620px); }
  .nav-cta { margin-left: auto; }
  .menu-toggle { display: block; }
  .hero { padding-top: 150px; }
  .hero-showcase { position: relative; width: min(100%, 760px); right: auto; bottom: auto; margin: 70px auto 0; transform: rotate(-2deg); }
  .hero h1 { font-size: clamp(3.5rem, 10vw, 7rem); }
  .services-layout { grid-template-columns: 1fr; }
  .services-intro { position: static; }
  .service-tabs { display: none; }
  .services-cta { margin-bottom: 10px; }
  .service-card { min-height: 680px; }
  .why-grid, .mobile-first-grid, .contact-grid { grid-template-columns: 1fr; }
  .contact-copy { position: static; }
  .device-stage { min-height: 520px; }
  .faq-grid { grid-template-columns: 1fr; }
  .faq-heading { position: static; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: 2 / 4; }
}

@media (max-width: 760px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .site-header { top: 10px; }
  .nav-shell { height: 58px; padding-left: 14px; }
  .brand { width: 98px; }
  .nav-cta { display: none; }
  .menu-toggle { margin-left: auto; }
  .hero { min-height: auto; padding: 130px 0 90px; }
  .hero h1 { font-size: clamp(3rem, 15vw, 5.3rem); line-height: .91; }
  .hero-copy { margin-top: 24px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 18px; }
  .hero-trust { display: grid; gap: 10px; margin-top: 38px; }
  .hero-showcase { margin-top: 54px; }
  .floating-card { display: none; }
  .scroll-cue { display: none; }
  .rounded-section { border-radius: 24px 24px 0 0; }
  .opening-section, .services-section, .benefits-section, .work-section, .why-section, .mobile-first-section, .audience-section, .process-section, .reviews-section, .faq-section, .contact-section { padding: 92px 0; }
  .opening-grid, .section-heading-row { grid-template-columns: 1fr; gap: 34px; }
  .statement-strip { margin-top: 64px; flex-direction: column; }
  .statement-strip strong { text-align: left; }
  .service-card { min-height: 0; padding: 18px; border-radius: 24px; }
  .service-media { height: 260px; }
  .service-card-copy { margin-top: 28px; }
  .custom-demo { padding: 26px; }
  .benefit-grid, .audience-grid, .reviews-grid { grid-template-columns: 1fr; }
  .benefit-card { min-height: 250px; }
  .benefit-card h3 { margin-top: 52px; }
  .project-card { width: 86vw; }
  .work-footer, .process-footer { align-items: flex-start; flex-direction: column; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-card { min-height: 180px; }
  .device-stage { min-height: 350px; }
  .desktop-device { width: 95%; }
  .phone-device { width: 29%; }
  .mobile-points { grid-template-columns: 1fr; }
  .process-step { grid-template-columns: 46px 1fr; }
  .process-step p { grid-column: 2; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 20px; }
  .final-cta { padding-bottom: 28px; }
  .final-cta-inner { min-height: 470px; border-radius: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div:last-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Refinements: heading scale, brand colour and project layout */
.display-heading {
  font-size: clamp(2.25rem, 4.35vw, 5rem);
  line-height: 1.02;
  letter-spacing: -.05em;
}

.hero h1 {
  max-width: 980px;
  font-size: clamp(3.15rem, 6.7vw, 7.6rem);
  line-height: .92;
  letter-spacing: -.065em;
}

.services-intro .display-heading {
  font-size: clamp(2.3rem, 3.45vw, 3.9rem);
}

.final-cta h2 {
  max-width: 900px;
  font-size: clamp(2.5rem, 5.4vw, 5.8rem);
  line-height: .98;
  letter-spacing: -.055em;
}

.why-section {
  background: #0b2239;
  color: #ffffff;
}

.why-section .eyebrow,
.why-section .why-copy p {
  color: rgba(255,255,255,.78);
}

.why-section .display-heading {
  color: #ffffff;
}

.why-section .button-dark {
  background: #ffffff;
  color: #0b2239;
}

.why-section .stat-card {
  border-color: rgba(255,255,255,.22);
  background: rgba(255,255,255,.045);
}

.why-section .stat-card strong,
.why-section .stat-card span {
  color: #ffffff;
}

.work-track-wrap {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
  padding: 0;
  overflow: visible;
}

.work-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 38px 24px;
  width: 100%;
  padding-bottom: 24px;
}

.project-card {
  width: auto;
  min-width: 0;
}

.project-card img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

@media (max-width: 1100px) {
  .display-heading { font-size: clamp(2.2rem, 5.4vw, 4.5rem); }
  .hero h1 { font-size: clamp(3.1rem, 8.3vw, 6.3rem); }
  .work-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .display-heading { font-size: clamp(2.05rem, 10.4vw, 3.3rem); line-height: 1.03; }
  .hero h1 { font-size: clamp(2.75rem, 12.7vw, 4.45rem); line-height: .96; }
  .services-intro .display-heading { font-size: clamp(2.05rem, 10.4vw, 3.3rem); }
  .final-cta h2 { font-size: clamp(2.35rem, 11vw, 3.8rem); line-height: 1; }
  .work-track-wrap { width: min(calc(100% - 28px), var(--max)); }
  .work-track { grid-template-columns: 1fr; gap: 36px; }
  .project-card { width: auto; }
}


/* Refined heading proportions */
.display-heading {
  max-width: 920px;
  font-size: clamp(2.05rem, 3.65vw, 4.15rem);
  line-height: 1.04;
  letter-spacing: -.045em;
}

.hero h1 {
  max-width: 900px;
  font-size: clamp(3rem, 6vw, 6.8rem);
  line-height: .95;
}

.services-intro .display-heading {
  font-size: clamp(2.05rem, 3vw, 3.35rem);
}

.service-card h3 {
  font-size: clamp(1.7rem, 2.45vw, 2.8rem);
  line-height: 1.08;
}

.contact-copy .display-heading {
  font-size: clamp(2.1rem, 3.8vw, 4.25rem);
}

.final-cta h2 {
  max-width: 760px;
  font-size: clamp(2.25rem, 4.4vw, 4.7rem);
  line-height: 1.02;
}

@media (max-width: 1100px) {
  .display-heading { font-size: clamp(2rem, 4.7vw, 3.75rem); }
  .hero h1 { font-size: clamp(2.9rem, 7.3vw, 5.55rem); }
}

@media (max-width: 760px) {
  .display-heading,
  .services-intro .display-heading,
  .contact-copy .display-heading {
    font-size: clamp(1.85rem, 8.7vw, 2.75rem);
    line-height: 1.07;
    letter-spacing: -.04em;
  }
  .hero h1 {
    font-size: clamp(2.45rem, 11vw, 3.85rem);
    line-height: .99;
  }
  .service-card h3 {
    font-size: clamp(1.55rem, 7.2vw, 2.15rem);
  }
  .final-cta h2 {
    font-size: clamp(2rem, 9vw, 3rem);
    line-height: 1.04;
  }
}

/* Centred hero with clickable floating website examples */
.hero {
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: 150px 0 100px;
}

.hero-content {
  position: relative;
  z-index: 4;
  width: min(820px, calc(100% - 48px));
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero h1 {
  max-width: 820px;
  margin-inline: auto;
}

.hero-copy {
  max-width: 620px;
  margin: 28px auto 0;
}

.hero-actions,
.hero-trust {
  justify-content: center;
}

.hero-projects {
  position: absolute;
  inset: 105px 28px 55px;
  z-index: 2;
  pointer-events: none;
}

.hero-project {
  position: absolute;
  display: block;
  width: clamp(170px, 16vw, 270px);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 18px;
  background: rgba(12,12,14,.88);
  box-shadow: 0 24px 70px rgba(0,0,0,.45);
  backdrop-filter: blur(12px);
  pointer-events: auto;
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
  animation: heroFloat 7s ease-in-out infinite;
}

.hero-project img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.hero-project span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 13px;
  color: #fff;
  font-size: .72rem;
  font-weight: 600;
}

.hero-project b {
  color: var(--accent);
  font-size: .68rem;
  white-space: nowrap;
}

.hero-project:hover,
.hero-project:focus-visible {
  z-index: 6;
  transform: translateY(-8px) scale(1.04) rotate(0deg);
  border-color: rgba(217,255,67,.75);
  box-shadow: 0 32px 85px rgba(0,0,0,.58);
  outline: none;
  animation-play-state: paused;
}

.hero-project-one { left: 2%; top: 8%; transform: rotate(-5deg); }
.hero-project-two { right: 2%; top: 12%; transform: rotate(5deg); animation-delay: -1.8s; }
.hero-project-three { left: 5%; bottom: 4%; transform: rotate(4deg); animation-delay: -3.5s; }
.hero-project-four { right: 5%; bottom: 3%; transform: rotate(-4deg); animation-delay: -5.2s; }

@keyframes heroFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}

@media (max-width: 1200px) {
  .hero-content { width: min(720px, calc(100% - 48px)); }
  .hero h1 { max-width: 720px; }
  .hero-project { width: clamp(145px, 17vw, 215px); }
  .hero-projects { inset-inline: 12px; }
}

@media (max-width: 900px) {
  .hero {
    display: block;
    min-height: auto;
    padding: 130px 0 82px;
  }
  .hero-content { width: min(680px, calc(100% - 32px)); }
  .hero-projects {
    position: relative;
    inset: auto;
    width: min(calc(100% - 28px), 760px);
    margin: 52px auto 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    pointer-events: auto;
  }
  .hero-project {
    position: relative;
    inset: auto;
    width: 100%;
    transform: none;
    animation-duration: 8s;
  }
  .hero-project-three,
  .hero-project-four { display: none; }
}

@media (max-width: 560px) {
  .hero-content { width: min(100% - 28px, 620px); }
  .hero-actions { align-items: center; }
  .hero-projects { grid-template-columns: 1fr; }
  .hero-project-two { display: none; }
  .hero-project span { font-size: .78rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-project { animation: none !important; }
}


/* Keep the desktop hero heading to two deliberate lines */
.hero h1 {
  max-width: 1180px;
  width: min(1180px, 100%);
  font-size: clamp(3rem, 5.35vw, 6.25rem);
}
.hero h1 span,
.hero h1 em {
  display: block;
  white-space: nowrap;
}
.hero-content {
  width: min(1180px, calc(100% - 420px));
}
@media (max-width: 1200px) {
  .hero-content { width: min(760px, calc(100% - 360px)); }
  .hero h1 { font-size: clamp(2.7rem, 5.3vw, 4.8rem); }
}
@media (max-width: 900px) {
  .hero-content { width: min(680px, calc(100% - 32px)); }
  .hero h1 { width: 100%; font-size: clamp(2.75rem, 8vw, 4.65rem); }
}
@media (max-width: 700px) {
  .hero h1 span,
  .hero h1 em { white-space: normal; }
}

/* Scroll-driven 3D cube service cards */
@media (min-width: 1101px) and (prefers-reduced-motion: no-preference) {
  .services-section {
    --service-count: 6;
    position: relative;
    padding-bottom: 60px;
  }

  .services-layout {
    min-height: calc(var(--service-count) * 92vh);
  }

  .services-intro {
    top: 112px;
  }

  .service-cards {
    position: sticky;
    top: 112px;
    height: calc(100vh - 150px);
    min-height: 620px;
    max-height: 790px;
    display: block;
    perspective: 1500px;
    perspective-origin: 50% 45%;
    transform-style: preserve-3d;
    overflow: hidden;
    border-radius: 32px;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-x;
  }

  .service-cards.is-dragging {
    cursor: grabbing;
  }

  .service-cards.is-dragging .service-card {
    pointer-events: none;
  }

  .service-cards::before {
    content: "";
    position: absolute;
    inset: 4% 2% -4%;
    border-radius: 34px;
    background: radial-gradient(circle at 50% 50%, rgba(117, 86, 255, .12), transparent 62%);
    filter: blur(28px);
    pointer-events: none;
  }

  .service-card {
    --cube-delta: 0;
    position: absolute;
    inset: 0;
    min-height: 0;
    height: 100%;
    backface-visibility: hidden;
    transform-origin: 50% var(--cube-origin, 50%);
    transform:
      translate3d(0, var(--cube-shift, 0%), 0)
      rotateX(var(--cube-angle, 0deg));
    opacity: var(--cube-opacity);
    visibility: hidden;
    pointer-events: none;
    will-change: transform, opacity;
    transition: visibility 0s linear .15s;
  }

  .service-card.is-cube-visible {
    visibility: visible;
    transition-delay: 0s;
  }

  .service-card.is-cube-active {
    pointer-events: auto;
  }
}

@media (max-width: 1100px), (prefers-reduced-motion: reduce) {
  .services-layout { min-height: 0; }
  .service-cards { position: static; height: auto; max-height: none; perspective: none; display: grid; }
  .service-card { position: relative; inset: auto; opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
}

/* Reliable click-and-drag control for the desktop service cube */
@media (min-width: 1101px) and (prefers-reduced-motion: no-preference) {
  .service-cards {
    touch-action: none;
    -webkit-user-drag: none;
  }
  .service-cards *,
  .service-cards img {
    -webkit-user-drag: none;
  }
  html.cube-dragging,
  html.cube-dragging body {
    cursor: grabbing !important;
    user-select: none !important;
    -webkit-user-select: none !important;
  }
}


/* Clear interaction cues and controls for the desktop service cube */
@media (min-width: 1101px) and (prefers-reduced-motion: no-preference) {
  .cube-drag-guide {
    position: absolute;
    z-index: 30;
    left: 50%;
    bottom: 18px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 14px;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 999px;
    background: rgba(8,16,31,.7);
    color: #fff;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .02em;
    backdrop-filter: blur(12px);
    transform: translateX(-50%);
    pointer-events: none;
    animation: cubeGuideNudge 2.4s ease-in-out 1.2s 2;
    transition: opacity .25s ease, transform .25s ease;
  }
  .cube-drag-guide-icon {
    font-size: 1.1rem;
    line-height: 1;
  }
  .service-cards.has-interacted .cube-drag-guide {
    opacity: 0;
    transform: translate(-50%, 8px);
  }
  .cube-position-indicator {
    position: absolute;
    z-index: 31;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
  }
  .cube-position {
    min-width: 42px;
    padding: 5px 7px;
    border-radius: 999px;
    background: rgba(8,16,31,.7);
    color: rgba(255,255,255,.82);
    font-size: .72rem;
    font-weight: 700;
    text-align: center;
    backdrop-filter: blur(12px);
  }
  @keyframes cubeGuideNudge {
    0%,100% { transform: translate(-50%,0); }
    35% { transform: translate(-50%,-7px); }
    70% { transform: translate(-50%,7px); }
  }
}
@media (max-width: 1100px), (prefers-reduced-motion: reduce) {
  .cube-drag-guide, .cube-position-indicator { display: none; }
}

/* X3WEB logo-fragment hero entrance */
.hero-brand-intro {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  pointer-events: none;
  overflow: hidden;
  background: #08090b;
  will-change: background-color, opacity;
}

.hero-brand-logo-wrap,
.hero-glass-shards {
  position: absolute;
  width: clamp(420px, 62vw, 1080px);
  max-width: 88vw;
  aspect-ratio: 1080 / 620;
}

.hero-brand-logo-wrap {
  z-index: 4;
  opacity: 0;
  filter: drop-shadow(0 28px 70px rgba(0,0,0,.72));
  will-change: transform, opacity, filter;
}

.hero-brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* This layer has the exact dimensions of the logo, not the viewport. */
.hero-glass-shards {
  z-index: 5;
  overflow: visible;
  transform-origin: center;
}

.hero-glass-shard {
  --shard-x: 0px;
  --shard-y: 0px;
  --shard-r: 0deg;
  --shard-delay: 0ms;
  position: absolute;
  left: var(--shard-left, 0px);
  top: var(--shard-top, 0px);
  width: var(--shard-w, 80px);
  height: var(--shard-h, 80px);
  opacity: 0;
  background-image: url("../images/X3WEB - Logo - No Bg.png");
  background-repeat: no-repeat;
  background-size: var(--logo-w) var(--logo-h);
  background-position: calc(-1 * var(--shard-left)) calc(-1 * var(--shard-top));
  clip-path: var(--shard-clip, polygon(50% 0,100% 28%,72% 100%,10% 72%,0 22%));
  filter: drop-shadow(0 10px 14px rgba(0,0,0,.42));
  transform-origin: center;
  will-change: transform, opacity, filter;
}

.hero-intro-running .hero-brand-intro {
  animation: heroBackdropReveal 1.42s linear .08s both;
}

.hero-intro-running .hero-brand-logo-wrap {
  animation: heroLogoPullIn 1.5s cubic-bezier(.18,.76,.22,1) .08s both;
}

.hero-intro-running .hero-glass-shard {
  animation: heroLogoFragmentBurst 1.2s cubic-bezier(.12,.68,.2,1) calc(1.18s + var(--shard-delay)) both;
}

.hero-intro-running .hero-content,
.hero-intro-running .hero-project {
  opacity: 0;
  filter: blur(10px);
}

.hero-intro-running .hero-content {
  animation: heroContentReveal .78s cubic-bezier(.2,.7,.2,1) 1.58s both;
}

.hero-intro-running .hero-project {
  animation: heroCardFromCentre .92s cubic-bezier(.18,.8,.25,1) calc(1.48s + var(--card-delay, 0s)) both;
}

.hero-intro-running .hero-project-one { --card-delay: .02s; }
.hero-intro-running .hero-project-two { --card-delay: .09s; }
.hero-intro-running .hero-project-three { --card-delay: .16s; }
.hero-intro-running .hero-project-four { --card-delay: .23s; }

.hero-intro-complete .hero-brand-intro {
  opacity: 0;
  visibility: hidden;
  transition: opacity .24s ease, visibility 0s linear .24s;
}

.hero-intro-complete .hero-content {
  opacity: 1;
  transform: none;
  filter: none;
}

.hero-intro-complete .hero-project {
  opacity: 1;
  filter: none;
  scale: 1;
  translate: 0 0;
  animation: heroFloat 7s ease-in-out infinite;
}

.hero-intro-complete .hero-project-one { animation-delay: 0s; }
.hero-intro-complete .hero-project-two { animation-delay: .8s; }
.hero-intro-complete .hero-project-three { animation-delay: 1.6s; }
.hero-intro-complete .hero-project-four { animation-delay: 2.4s; }

@keyframes heroBackdropReveal {
  0%, 66% { background-color: #08090b; }
  84%, 100% { background-color: rgba(8,9,11,0); }
}

@keyframes heroLogoPullIn {
  0% {
    opacity: 0;
    transform: scale(1.16);
    filter: blur(12px) drop-shadow(0 28px 70px rgba(0,0,0,.72));
  }
  22% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0) drop-shadow(0 28px 70px rgba(0,0,0,.72));
  }
  58% {
    opacity: 1;
    transform: scale(1);
  }
  82% {
    opacity: 1;
    transform: scale(.62);
    filter: brightness(1.2) drop-shadow(0 18px 45px rgba(0,0,0,.58));
  }
  100% {
    opacity: 0;
    transform: scale(.54);
    filter: brightness(1.75) blur(1px) drop-shadow(0 10px 22px rgba(0,0,0,.3));
  }
}

@keyframes heroLogoFragmentBurst {
  0%, 8% {
    opacity: 0;
    transform: translate(0, 0) scale(.54) rotate(0deg);
    filter: brightness(1.8) drop-shadow(0 10px 14px rgba(0,0,0,.42));
  }
  9% {
    opacity: 1;
  }
  24% {
    opacity: 1;
    transform: translate(0, 0) scale(.58) rotate(0deg);
    filter: brightness(1.35) drop-shadow(0 12px 18px rgba(0,0,0,.48));
  }
  100% {
    opacity: 0;
    transform: translate(var(--shard-x), var(--shard-y)) scale(.82) rotate(var(--shard-r));
    filter: brightness(1.08) blur(1.5px) drop-shadow(0 16px 22px rgba(0,0,0,.28));
  }
}

@keyframes heroContentReveal {
  from { opacity: 0; transform: scale(.97); filter: blur(10px); }
  to { opacity: 1; transform: scale(1); filter: blur(0); }
}

@keyframes heroCardFromCentre {
  from {
    opacity: 0;
    translate: var(--card-start-x, 0px) var(--card-start-y, 0px);
    scale: .34;
    filter: blur(12px) brightness(1.3);
  }
  to {
    opacity: 1;
    translate: 0 0;
    scale: 1;
    filter: blur(0) brightness(1);
  }
}

@media (max-width: 900px) {
  .hero-brand-logo-wrap,
  .hero-glass-shards {
    width: min(78vw, 540px);
  }

  .hero-intro-running .hero-brand-logo-wrap {
    animation-duration: 1.2s;
  }

  .hero-intro-running .hero-glass-shard {
    animation-duration: .9s;
    animation-delay: calc(.96s + var(--shard-delay));
  }

  .hero-intro-running .hero-content {
    animation-delay: 1.3s;
  }

  .hero-intro-running .hero-project {
    animation-duration: .72s;
    animation-delay: calc(1.24s + var(--card-delay, 0s));
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-brand-intro { display: none !important; }
  .hero-content,
  .hero-project {
    opacity: 1 !important;
    transform: none !important;
    translate: 0 0 !important;
    scale: 1 !important;
    filter: none !important;
    animation: none !important;
  }
}
