/* Jamali Web Tech: shared stylesheet.
   Headings are styled by role class (hero-title, title, card-title), never by tag.
   Each component sets its own stacking breakpoint from its item count. */

:root {
  --ink: #070C1F;
  --ink-2: #0E1630;
  --line-dark: rgba(255, 255, 255, .13);
  --paper: #FFFFFF;
  --mist: #F4F6FB;
  --line: #E3E7F0;
  --text: #101828;
  --muted: #4B5568;
  --on-dark: #FFFFFF;
  --muted-dark: #AEB8CF;
  --blue: #0B5CFF;
  --blue-dark: #0848CC;
  --blue-light: #7EA6FF;
  --orange: #F28C1C;
  --orange-light: #FFC285;
  --display: 'Sora', system-ui, sans-serif;
  --body: 'DM Sans', system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --gutter: clamp(20px, 4vw, 64px);
  --section-space: clamp(64px, 6.7vw, 104px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--text); font: 400 17px/1.65 var(--body); overflow-x: clip; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, h5, p, ul, ol, figure { margin: 0; padding: 0; }
h1, h2, h3, h4, h5 { font: inherit; }
ul, ol { list-style: none; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.container { max-width: 1480px; margin-inline: auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.section { padding-block: var(--section-space); overflow-x: clip; }
.section-dark { background: var(--ink); color: var(--on-dark); }
.section-light { background: var(--paper); }
.section-mist { background: var(--mist); }

/* role classes */
.hero-title { display: block; margin: 22px 0 18px; font: 700 clamp(36px, 4.4vw, 62px)/1.1 var(--display); letter-spacing: -.03em; color: inherit; text-wrap: balance; }
.hero-text { max-width: 520px; color: #CDD5E6; font-size: clamp(17px, 1.3vw, 19px); }
.title { display: block; margin: 12px 0 0; font: 700 clamp(28px, 3vw, 42px)/1.18 var(--display); letter-spacing: -.022em; color: inherit; text-wrap: balance; }
.card-title { display: block; margin: 0; font: 600 21px/1.28 var(--display); letter-spacing: -.012em; color: inherit; text-wrap: balance; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 14px/1.4 var(--body); letter-spacing: .02em; color: var(--blue); }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.section-dark .eyebrow { color: var(--blue-light); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); align-items: end; gap: 20px 56px; margin-bottom: clamp(32px, 3.4vw, 48px); }
.section-head p { color: var(--muted); }
.section-dark .section-head p { color: var(--muted-dark); }

/* buttons: padding sets the tap size */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 26px; border: 0; border-radius: 12px; font: 600 16px/22px var(--body); cursor: pointer; transition: background-color .2s, box-shadow .25s; will-change: transform; }
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .38), transparent); transform: skewX(-20deg); transition: left .6s var(--ease); }
.btn-primary:hover { background: var(--blue-dark); box-shadow: 0 12px 30px -8px rgba(11, 92, 255, .75); }
.btn-primary:hover::after { left: 125%; }
.btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .34); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px #fff; }

/* header */
.scroll-bar { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; width: 100%; height: 3px; background: linear-gradient(90deg, var(--blue), var(--orange)); transform: scaleX(0); transform-origin: 0 50%; z-index: 70; }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(7, 12, 31, .78); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, background-color .3s; }
.site-header.scrolled { border-color: var(--line-dark); background: rgba(7, 12, 31, .94); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 16px; }
.logo img { height: 40px; width: auto; }
.nav { display: flex; gap: 30px; color: #E6EAF3; font-size: 15.5px; font-weight: 500; }
.nav a { position: relative; padding: 10px 0; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: 4px; width: 100%; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: 0 50%; transition: transform .28s var(--ease); }
.nav a:hover::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-actions .btn { padding: 11px 20px; font-size: 15px; white-space: nowrap; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .1); color: #fff; align-items: center; justify-content: center; cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; }

/* hero */
.hero { position: relative; overflow: hidden; background: var(--ink); color: #fff; --mx: 70%; --my: 40%; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(520px circle at var(--mx) var(--my), rgba(11, 92, 255, .3), transparent 70%); pointer-events: none; }
.hero-row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; gap: 40px; padding-block: clamp(48px, 5vw, 80px) clamp(56px, 6vw, 92px); }
.hero-media { position: relative; }
/* three images cross-fade in this box, so it reserves their shared shape */
.hero-stage { position: relative; aspect-ratio: 1600 / 1040; transition: transform .25s ease-out; }
.hero-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transform: scale(.97); transition: opacity .9s, transform 1.2s var(--ease); }
.hero-stage img.active { opacity: 1; transform: none; }
.badge { display: inline-flex; align-items: center; gap: 9px; padding: 7px 15px; border-radius: 999px; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px var(--line-dark); font-size: 14px; font-weight: 500; color: #E6EAF3; }
.badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); animation: ping 2.4s ease-out infinite; }
.line-mask { display: block; overflow: hidden; padding-bottom: .1em; }
.line-mask > span { display: inline-block; animation: rise .9s var(--ease) both; }
.line-mask:nth-child(2) > span { animation-delay: .12s; }
.gradient-text { font-style: normal; background: linear-gradient(95deg, var(--blue-light) 0%, #FFB56B 70%, var(--orange) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 220% 100%; animation: sheen 7s ease-in-out infinite alternate; }
.fade-up { animation: fadeUp .8s var(--ease) both; }
.delay-1 { animation-delay: .3s; }
.delay-2 { animation-delay: .42s; }
.delay-3 { animation-delay: .54s; }
.word-swap { display: inline-block; overflow: hidden; height: 1.65em; vertical-align: bottom; }
.word-swap b { display: block; font-weight: 600; color: var(--orange-light); transition: transform .55s var(--ease), opacity .4s; }
.word-swap b.leaving { transform: translateY(-110%); opacity: 0; }
.word-swap b.entering { transform: translateY(110%); opacity: 0; transition: none; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.chip { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: rgba(14, 22, 48, .88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px var(--line-dark), 0 20px 40px -18px #000; font-size: 14px; font-weight: 500; color: #fff; animation: bob 6s ease-in-out infinite; }
.chip svg { width: 18px; height: 18px; color: var(--orange); flex: none; }
.chip-top { left: -2%; top: 6%; }
.chip-bottom { right: 0; bottom: -3%; animation-delay: 1.4s; }

/* client logos */
.brands { background: var(--paper); padding-block: 30px; border-bottom: 1px solid var(--line); }
.brands p { text-align: center; font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 18px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display: flex; align-items: center; gap: 56px; width: max-content; animation: slide 60s linear infinite; }
.brands img { height: 42px; width: auto; max-width: none; filter: grayscale(1); opacity: .7; transition: filter .25s, opacity .25s; }
/* mouse only: on touch screens a tap leaves :hover stuck on and would stop the strip for good */
@media (hover: hover) and (pointer: fine) {
  .marquee:hover .marquee-track { animation-play-state: paused; }
  .brands img:hover { filter: none; opacity: 1; }
  .creative img:hover { transform: scale(1.07); }
}

/* about: photo beside copy holds two columns to 900px */
.about-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: clamp(40px, 5vw, 72px); }
.about-media { position: relative; isolation: isolate; }
.about-media > img { width: 100%; height: auto; border-radius: 22px; }
.about-ring { position: absolute; left: -7%; top: -12%; width: 40%; height: auto; z-index: -1; animation: spin 40s linear infinite; }
.office { position: absolute; right: 14px; bottom: 14px; background: #fff; border-radius: 14px; padding: 12px 16px; box-shadow: 0 22px 40px -18px rgba(16, 24, 40, .4); font-size: 14px; color: var(--muted); line-height: 1.4; }
.office b { display: block; color: var(--text); font-size: 15.5px; }
.about-copy > p { margin-top: 16px; color: var(--muted); max-width: 62ch; }
mark { background: linear-gradient(transparent 62%, rgba(242, 140, 28, .34) 62%); color: inherit; font-weight: 600; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 32px; }
.stats div { position: relative; border-top: 2px solid var(--line); padding-top: 12px; }
.stats div::before { content: ""; position: absolute; top: -2px; left: 0; width: 34%; height: 2px; background: var(--blue); }
.stats b { display: block; font: 700 34px/1.2 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stats span { font-size: 14.5px; color: var(--muted); }

/* services */
.services { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.service { --x: 50%; --y: 50%; position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 26px; border-radius: 20px; background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-dark); transition: transform .25s ease-out; }
.service::before { content: ""; position: absolute; inset: 0; background: radial-gradient(340px circle at var(--x) var(--y), rgba(126, 166, 255, .22), transparent 70%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.service:hover::before { opacity: 1; }
.service > * { position: relative; }
.service p { margin-top: 6px; color: var(--muted-dark); font-size: 15.5px; line-height: 1.55; }
.span-8 { grid-column: span 8; }
.span-7 { grid-column: span 7; }
.span-5 { grid-column: span 5; }
.span-4 { grid-column: span 4; }
.span-3 { grid-column: span 3; }
.demo { position: relative; height: 190px; margin-bottom: 22px; border-radius: 14px; background: var(--ink); box-shadow: inset 0 0 0 1px var(--line-dark); overflow: hidden; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tags span { font-size: 13px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .07); color: #D5DCEA; }
.icon { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; margin-bottom: 16px; border-radius: 12px; background: rgba(11, 92, 255, .2); color: var(--blue-light); transition: background-color .25s, color .25s, transform .35s var(--ease); }
.icon svg { width: 24px; height: 24px; }
.service:hover .icon { background: var(--orange); color: var(--ink); transform: rotate(-6deg) scale(1.06); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line-dark); }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #2B3656; }
.browser-bar i:first-child { background: var(--orange); }
.browser-url { flex: 1; height: 18px; margin-left: 8px; padding-left: 8px; border-radius: 6px; background: rgba(255, 255, 255, .07); font-size: 11px; line-height: 18px; color: var(--muted-dark); }
.browser-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; padding: 14px; }
.browser-col { display: grid; gap: 9px; align-content: start; }
.block { border-radius: 6px; background: #26314F; transform-origin: 0 50%; animation: build 6s var(--ease) infinite; animation-delay: var(--d, 0s); }
.block-blue { background: var(--blue); }
.block-orange { background: var(--orange); }
.phones { display: flex; justify-content: center; gap: 18px; padding-top: 18px; }
.phone-demo { width: 104px; height: 210px; padding: 7px; overflow: hidden; border-radius: 18px; background: #000; box-shadow: inset 0 0 0 2px #39445F; }
.phone-demo:nth-child(2) { margin-top: -26px; }
.phone-screen { height: 100%; overflow: hidden; border-radius: 12px; background: #fff; }
.phone-list { display: grid; gap: 6px; padding: 7px; animation: phoneScroll 9s ease-in-out infinite alternate; }
.phone-demo:nth-child(2) .phone-list { animation-direction: alternate-reverse; }
.phone-list i { display: block; height: 44px; border-radius: 7px; background: #E5EBF8; }
.phone-list i:nth-child(3n+1) { background: var(--blue); }
.phone-list i:nth-child(5n) { background: var(--orange); }
.demo svg { display: block; width: 100%; height: 100%; }
.nodes line { stroke: rgba(126, 166, 255, .38); stroke-width: 1.5; stroke-dasharray: 5 7; animation: flow 2.4s linear infinite; }
.nodes circle { fill: var(--blue-light); animation: nodePulse 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; animation-delay: var(--d, 0s); }
.nodes circle.hot { fill: var(--orange); }
.bars { position: absolute; inset: 18px 18px 16px; display: flex; align-items: flex-end; gap: 9px; }
.bars i { flex: 1; height: var(--h); border-radius: 5px 5px 0 0; background: linear-gradient(var(--blue-light), var(--blue)); transform-origin: 50% 100%; animation: grow 4.5s var(--ease) infinite; animation-delay: var(--d, 0s); }
.bars i:last-child { background: linear-gradient(var(--orange-light), var(--orange)); }
.trend path { fill: none; stroke-linecap: round; }
.trend .trend-line { stroke: var(--orange); stroke-width: 3; stroke-dasharray: 420; animation: draw 5s var(--ease) infinite; }
.trend .trend-grid { stroke: rgba(255, 255, 255, .08); stroke-width: 1; }
.trend circle { fill: #fff; opacity: 0; animation: dotIn 5s var(--ease) infinite; }

/* portfolio: the row height is part of the design because the devices are placed inside it */
.projects { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
.project { --brand: #0B5CFF; --tint: #E6EEFF; --px: 50%; --py: 30%; position: relative; display: block; height: clamp(420px, 34vw, 520px); overflow: hidden; border-radius: 24px; background: var(--tint); color: var(--text); container-type: inline-size; isolation: isolate; }
.project::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--brand); clip-path: circle(0 at var(--px) var(--py)); transition: clip-path .7s cubic-bezier(.3, .7, .2, 1); }
.project:hover::before, .project:focus-visible::before { clip-path: circle(150% at var(--px) var(--py)); }
.project-info { position: absolute; left: 24px; right: 76px; top: 22px; transition: color .3s; }
.project-info p { font-size: 14.5px; color: var(--muted); transition: color .3s; }
.project:hover .project-info, .project:focus-visible .project-info, .project:hover .project-info p, .project:focus-visible .project-info p { color: #fff; }
.project-arrow { position: absolute; right: 20px; top: 20px; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--ink); box-shadow: 0 8px 18px -8px rgba(16, 24, 40, .4); transition: transform .35s var(--ease); }
.project-arrow svg { width: 18px; height: 18px; }
.project:hover .project-arrow { transform: rotate(45deg) scale(1.08); }
.screen { position: absolute; overflow: hidden; background: #fff; box-shadow: 0 24px 44px -20px rgba(10, 17, 40, .5); transition: translate .5s var(--ease), rotate .5s var(--ease); }
.screen-view { position: absolute; overflow: hidden; background: #fff; container-type: size; }
/* the floor keeps the image at least as tall as its frame, so a scroll can never show white. main.js moves these images together */
.screen img { width: 100%; height: auto; min-height: 100%; object-fit: cover; object-position: top; max-width: none; }
.screen-desktop { left: 21cqw; right: -5cqw; top: 102px; bottom: -26px; border-radius: 12px 12px 0 0; }
.screen-bar { position: absolute; left: 0; right: 0; top: 0; height: 30px; display: flex; align-items: center; gap: 5px; padding: 0 12px; background: #F1F3F8; }
.screen-bar i { width: 8px; height: 8px; border-radius: 50%; background: #C6CCD8; }
.screen-bar i:first-child { background: var(--orange); }
.screen-desktop .screen-view { inset: 30px 0 0; }
/* tablet and phone are device shapes, so they keep a fixed ratio */
.screen-tablet { left: 5cqw; bottom: -36px; width: max(24cqw, 118px); aspect-ratio: 3 / 4; border-radius: 14px; background: #0E1016; }
.screen-tablet .screen-view { inset: 7px; border-radius: 7px; }
.screen-phone { left: calc(5cqw + max(17cqw, 84px)); bottom: 18px; width: max(13cqw, 74px); aspect-ratio: 9 / 19; border-radius: 17px; background: #0E1016; }
.screen-phone .screen-view { inset: 5px; border-radius: 12px; }
.project:hover .screen-desktop, .project:focus-visible .screen-desktop { translate: 0 -12px; }
.project:hover .screen-tablet, .project:focus-visible .screen-tablet { translate: -6px -12px; rotate: -3deg; }
.project:hover .screen-phone, .project:focus-visible .screen-phone { translate: 8px -18px; rotate: 3deg; }
.project-cta { display: flex; flex-direction: column; justify-content: flex-end; padding: 26px; background: var(--ink); color: #fff; }
.project-cta::before { display: none; }
.project-cta svg.rings { position: absolute; right: -90px; top: -90px; width: 320px; height: 320px; animation: spin 30s linear infinite; }
.project-cta .card-title { position: relative; font-size: clamp(24px, 2.2vw, 30px); font-weight: 700; margin-bottom: 12px; }
.project-cta-link { position: relative; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--orange-light); }
.project-cta-link svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.project-cta:hover .project-cta-link svg { transform: translateX(5px); }
.cursor-label { position: fixed; left: 0; top: 0; z-index: 55; padding: 9px 16px; border-radius: 999px; background: var(--ink); color: #fff; font: 600 14px var(--body); white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .2s; will-change: transform; }
.cursor-label.visible { opacity: 1; }

/* creative strip */
.creative-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 24px; margin-bottom: 6px; }
.creative-head p { color: var(--muted); font-size: 15.5px; }
.creative { padding-block: 24px; }
.creative .marquee-track { gap: 20px; animation-duration: 80s; }
.creative img { height: clamp(210px, 20vw, 280px); width: auto; max-width: none; border-radius: 16px; box-shadow: 0 18px 34px -18px rgba(16, 24, 40, .45); transition: transform .35s var(--ease); }
.creative img:nth-child(odd) { transform: rotate(-1.6deg); }
.creative img:nth-child(even) { transform: rotate(1.4deg) translateY(10px); }

/* process: four steps stay in one row to 900px */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.steps::before, .steps::after { content: ""; position: absolute; left: 24px; right: 24px; top: 23px; height: 2px; background: var(--line); }
.steps::after { background: linear-gradient(90deg, var(--blue), var(--orange)); transform-origin: 0 50%; transition: transform 1.6s var(--ease); }
.steps.waiting::after { transform: scaleX(0); }
.step { position: relative; z-index: 1; }
.step i { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-bottom: 16px; border-radius: 50%; background: var(--ink); color: #fff; font: 600 16px var(--display); box-shadow: 0 0 0 7px var(--mist); transition: background-color .25s, transform .3s var(--ease); }
.step:hover i { background: var(--orange); color: var(--ink); transform: scale(1.1); }
.step p { margin-top: 5px; font-size: 15.5px; color: var(--muted); }

/* technologies: orbit beside copy holds two columns to 900px */
.tech-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(40px, 4vw, 56px); }
.tech-copy > p { margin: 14px 0 22px; color: var(--muted-dark); max-width: 52ch; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chips span { padding: 6px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-dark); color: #DDE3F0; font-size: 14px; transition: background-color .2s, color .2s; }
.chips span:hover { background: var(--orange); color: var(--ink); }
/* the orbit is drawn on a circle, so it needs a square box */
.orbit { position: relative; width: 100%; max-width: 540px; margin-inline: auto; aspect-ratio: 1 / 1; container-type: inline-size; }
.orbit-ring { position: absolute; left: 50%; top: 50%; border-radius: 50%; translate: -50% -50%; box-shadow: inset 0 0 0 1px var(--line-dark); }
.orbit-ring-inner { width: 52%; height: 52%; }
.orbit-ring-outer { width: 88%; height: 88%; }
.orbit-track { position: absolute; inset: 0; animation: spin var(--t) linear infinite; }
.orbit-track.reverse { animation-direction: reverse; }
.orbit-item { position: absolute; left: 50%; top: 50%; width: 12.5cqw; height: 12.5cqw; margin: -6.25cqw 0 0 -6.25cqw; transform: rotate(var(--a)) translateY(calc(var(--r) * -1)) rotate(calc(var(--a) * -1)); }
.orbit-item div { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 1.4cqw; overflow: hidden; border-radius: 50%; background: #fff; box-shadow: 0 10px 24px -8px #000; animation: spin var(--t) linear infinite reverse; }
.orbit-track.reverse .orbit-item div { animation-direction: normal; }
.orbit-item img { max-height: 100%; width: auto; }
.orbit-core { position: absolute; left: 50%; top: 50%; display: flex; align-items: center; justify-content: center; width: 21cqw; height: 21cqw; border-radius: 50%; translate: -50% -50%; background: #fff; animation: halo 3s ease-out infinite; }
.orbit-core img { width: 70%; height: auto; }

/* contact */
.contact-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); overflow: hidden; border-radius: 26px; background: var(--paper); box-shadow: 0 40px 80px -40px rgba(16, 24, 40, .35); }
.contact-info { position: relative; overflow: hidden; padding: clamp(28px, 3.2vw, 44px) clamp(22px, 3vw, 40px); background: var(--blue); color: #fff; }
.contact-info > * { position: relative; }
.contact-info .title { margin: 10px 0 12px; }
.contact-info svg.rings { position: absolute; right: -140px; bottom: -140px; width: 420px; height: 420px; animation: spin 34s linear infinite; }
.tea-cup { display: block; width: 84px; height: 78px; }
.tea-cup .steam { stroke-dasharray: 50; animation: steam 3.4s ease-in-out infinite; }
.tea-cup .steam-late { animation-delay: 1.1s; }
.contact-list { display: grid; gap: 16px; margin-top: 26px; font-size: 15.5px; }
.contact-list b { display: block; font-weight: 600; }
.contact-list a { text-decoration: underline; text-underline-offset: 3px; }
.contact-form { display: grid; align-content: start; gap: 16px; padding: clamp(28px, 3.2vw, 44px) clamp(22px, 3vw, 40px); color: var(--text); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { position: relative; display: block; }
.field input, .field select, .field textarea { display: block; width: 100%; padding: 24px 14px 8px; border: 1px solid #C9D0DE; border-radius: 12px; background: #fff; color: var(--text); font: 400 16px/22px var(--body); transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; }
.field span { position: absolute; left: 15px; top: 17px; color: var(--muted); font-size: 16px; line-height: 22px; pointer-events: none; transition: transform .18s var(--ease), font-size .18s, color .18s; transform-origin: 0 0; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(11, 92, 255, .14); }
.field input:focus + span, .field input:not(:placeholder-shown) + span, .field textarea:focus + span, .field textarea:not(:placeholder-shown) + span, .field select + span { transform: translateY(-11px); font-size: 12.5px; color: var(--blue-dark); }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { padding: 10px 14px; border-radius: 10px; font-size: 15px; font-weight: 500; }
.form-note.ok { background: #E7F7EE; color: #0B6B3A; }
.form-note.error { background: #FDECEA; color: #A32016; }

/* footer */
.site-footer { background: var(--ink); color: var(--muted-dark); padding-block: clamp(40px, 4vw, 56px) 26px; border-top: 1px solid var(--line-dark); font-size: 15.5px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; margin-bottom: 34px; }
.footer-col { display: grid; gap: 7px; align-content: start; }
.footer-col b { color: #fff; font-weight: 600; }
.footer-col a:hover { color: var(--orange-light); }
.footer-logo { width: 240px; }
.footer-base { border-top: 1px solid var(--line-dark); padding-top: 18px; font-size: 14.5px; }

/* gentle entrance below the fold; stays readable before it plays */
.reveal { transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--delay, 0s); }
.reveal.waiting { opacity: .2; transform: translateY(26px); }

@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(242, 140, 28, .6); } 80%, 100% { box-shadow: 0 0 0 10px rgba(242, 140, 28, 0); } }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes sheen { to { background-position: 100% 0; } }
@keyframes bob { 50% { transform: translateY(-10px); } }
@keyframes slide { to { transform: translateX(-50%); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes build { 0% { transform: scaleX(0); opacity: 0; } 12%, 82% { transform: none; opacity: 1; } 100% { transform: none; opacity: 0; } }
@keyframes phoneScroll { to { transform: translateY(-52%); } }
@keyframes flow { to { stroke-dashoffset: -24; } }
@keyframes nodePulse { 50% { transform: scale(1.35); } }
@keyframes grow { 0% { transform: scaleY(.12); } 30%, 75% { transform: none; } 100% { transform: scaleY(.12); } }
@keyframes draw { 0% { stroke-dashoffset: 420; } 55%, 90% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes dotIn { 0%, 45% { opacity: 0; } 55%, 90% { opacity: 1; } 100% { opacity: 0; } }
@keyframes halo { 0% { box-shadow: 0 0 0 0 rgba(11, 92, 255, .6); } 100% { box-shadow: 0 0 0 8cqw rgba(11, 92, 255, 0); } }
@keyframes steam { 0% { stroke-dashoffset: 50; opacity: 0; } 35% { opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }

/* services: four small cards go two-up first */
@media (max-width: 1100px) {
  .services .span-3 { grid-column: span 6; }
}

/* photo-beside-copy rows, hero and steps */
@media (max-width: 900px) {
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; padding: 8px max(var(--gutter), env(safe-area-inset-left, 0px)) 16px; background: var(--ink); border-bottom: 1px solid var(--line-dark); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; }
  .nav-toggle { display: inline-flex; }
  .hero-row { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hero-media { max-width: 680px; }
  .about-row, .tech-row { grid-template-columns: minmax(0, 1fr); }
  .about-media, .orbit { order: -1; }
  .about-media { max-width: 680px; }
  .orbit { max-width: 460px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps::before, .steps::after { display: none; }
  .projects .project { grid-column: span 6; height: clamp(400px, 52vw, 460px); }
  .projects .project-cta { grid-column: span 12; height: auto; padding-top: 56px; }
  .project-cta svg.rings { width: 220px; height: 220px; right: -60px; top: -80px; }
}

/* contact panel */
@media (max-width: 820px) {
  .contact-panel { grid-template-columns: minmax(0, 1fr); }
  .contact-info svg.rings { right: -250px; bottom: -250px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: span 2; }
}

/* three-up service cards and the section intro */
@media (max-width: 760px) {
  .section-head { grid-template-columns: minmax(0, 1fr); }
  .services .span-7, .services .span-5, .services .span-4 { grid-column: span 12; }
}

/* portfolio goes single column */
@media (max-width: 640px) {
  .projects .project { grid-column: span 12; height: 420px; }
  .projects .project-cta { height: auto; }
  .creative-head p { width: 100%; }
}

@media (max-width: 560px) {
  .logo img { height: 32px; }
  .header-actions .btn { padding: 11px 14px; }
  .services .span-3 { grid-column: span 12; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .chip { display: none; }
}

@media (max-width: 480px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-brand { grid-column: auto; }
  .hero-actions .btn { flex: 1 1 100%; }
}

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