/* Dimensional presentation, layered over the site's existing design system. */
html { scroll-padding-top: 104px; }
.hero-shell { position: relative; isolation: isolate; padding-top: 80px; background: #06172f; }
.ambient-scene { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.ambient-canvas, .ambient-threads { position: absolute; inset: 0; width: 100%; height: 100%; }
.ambient-canvas { opacity: 0; transition: opacity 1.2s ease; }
.webgl-ready .ambient-canvas { opacity: 1; }
.ambient-threads { opacity: .6; transform-origin: 60% 55%; }
.webgl-ready .ambient-threads { opacity: .2; }
.hero-shell::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, #041128a8, transparent 62%); }
.site-header {
  position: fixed; inset: 0 0 auto; transform: none; z-index: 50; display: block;
  width: 100%; max-width: none; height: 80px; padding: 0; margin: 0;
  border: 0; border-bottom: 1px solid #a9c9ed24; border-radius: 0; background: #082850;
  color: var(--paper); box-shadow: none;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  transition: background .25s ease, box-shadow .25s ease;
}
.header-inner { display: flex; align-items: center; gap: 34px; width: 100%; height: 100%; }
.site-header.is-scrolled { background: #082850; box-shadow: 0 5px 20px #02100818; }
.wordmark { display: inline-flex; flex-shrink: 0; line-height: 0; }
.wordmark picture { display: block; }
.brand-logo { width: 240px; height: 80px; object-fit: contain; }
.site-footer { background: #082850; }
.footer-brand { display: block; max-width: 100%; line-height: 0; font-size: 0; }
.footer-brand img { width: 540px; max-width: 100%; height: auto; }
.footer-top > p { color: #c6d0de; }
.skip-link { z-index: 100; }
.mobile-nav-quote { display: none; }
.reading-progress { position: absolute; bottom: 0; left: 0; right: 0; height: 2px; overflow: hidden; background: #96bced12; }
.reading-progress i { display: block; height: 100%; background: var(--accent); transform: scaleX(var(--reading-progress, 0)); transform-origin: left; }
.hero { z-index: 1; min-height: 570px; }
.hero-copy { padding-top: 33px; padding-bottom: 30px; }
.hero-copy > p { color: #d4e3f5; }
.hero-visual { transform-style: preserve-3d; transform-origin: 60% 55%; transition: transform .65s cubic-bezier(.2,.65,.2,1); }
.hero-visual img { filter: drop-shadow(0 20px 22px #0005); }
.hero-visual figcaption { text-shadow: 0 2px 10px #000; }
.hero-real.hero-visual { width: 49%; right: var(--gutter); bottom: 42px; }
.device-stage { position: relative; height: 490px; perspective: 1400px; }
.desktop-device { position: absolute; left: 5%; top: 70px; width: 88%; border: 8px solid #182d49; border-radius: 16px; overflow: hidden; background: #182d49; box-shadow: 0 28px 60px #0007, 0 0 0 1px #acc4e255; transform: rotateY(-8deg) rotateZ(-3deg); }
.device-chrome { display: flex; align-items: center; gap: 5px; height: 27px; padding: 0 10px; background: #182d49; }
.device-chrome i { width: 5px; height: 5px; background: #91abc9; border-radius: 50%; }
.device-chrome span { margin-left: 12px; color: #c5d5e8; font-size: 9px; letter-spacing: .03em; }
.hero-real.hero-visual img { mask-image: none; filter: none; animation: none; display: block; width: 100%; object-fit: cover; object-position: top; }
.hero-real .desktop-screen { aspect-ratio: 1.65; }
.phone-device { position: absolute; right: 1%; bottom: 8px; width: 25%; padding: 7px; border: 2px solid #7e98ba; border-radius: 30px; background: #0d1e36; box-shadow: 0 25px 45px #0008; overflow: hidden; transform: rotateZ(4deg); }
.hero-real .phone-screen { aspect-ratio: 390 / 844; border-radius: 21px; }
.phone-speaker { position: absolute; z-index: 1; top: 12px; left: 34%; width: 32%; height: 7px; border-radius: 8px; background: #071329; }
.hero-real.hero-visual figcaption { bottom: -19px; right: 2%; }
.motion-on .device-stage, .motion-paused .device-stage { animation: artwork-float 10s ease-in-out infinite; }
.scene-offscreen .device-stage, .motion-paused .device-stage, .page-hidden .device-stage { animation-play-state: paused; }
.project-screenshot img { object-position: top; }
.project-live-link { display: inline-flex; margin: 0 24px 16px 0; font-weight: 600; }
.motion-on .hero-visual { transform: perspective(1400px) rotateX(var(--art-pitch, 0deg)) rotateY(var(--art-yaw, 0deg)); }
.motion-on .hero-visual img, .motion-paused .hero-visual img { animation: artwork-float 8s ease-in-out infinite; }
.motion-on .ambient-threads, .motion-paused .ambient-threads { animation: contour-drift 18s ease-in-out infinite alternate; }
.motion-control { display: inline-flex; align-items: center; gap: 12px; margin-top: 30px; padding: 0; border: 0; background: none; color: #dce9f9; font-size: 12px; line-height: 1.4; min-height: 44px; cursor: pointer; }
.motion-control:disabled { opacity: .6; cursor: default; }
.motion-control-icon { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid #dce9f990; transition: background .2s, border-color .2s; }
.motion-control-icon svg { width: 16px; height: 16px; }
.motion-control:hover:not(:disabled) .motion-control-icon { background: #69b8ff20; border-color: var(--accent); }
.service-strip { z-index: 1; }
.button { box-shadow: 0 3px 0 #1a55951a, inset 0 1px 0 #ffffff2e; transition: transform .25s ease, box-shadow .25s ease, background .2s ease; }
.button-lime:hover { box-shadow: 0 8px 24px #2d93f530, inset 0 1px 0 #ffffff6e; }
.motion-on .hero-actions .button { transform: translate3d(var(--magnet-x, 0px), var(--magnet-y, 0px), 0); }
.button .icon { transition: transform .25s ease; }
.button:hover .icon { transform: translate(2px, -2px); }
.project { perspective: 1100px; }
.project-open { transform-style: preserve-3d; transition: transform .55s cubic-bezier(.2,.7,.2,1); border-radius: 14px; }
.project-media { border-radius: 14px; isolation: isolate; box-shadow: 0 8px 20px #102e540b, 0 1px 2px #102e5410; transition: box-shadow .45s ease; }
.project-media::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 1; border-radius: inherit; border: 1px solid #fff4; background: radial-gradient(ellipse at var(--shine-x, 50%) var(--shine-y, 15%), #ffffff20, #ffffff00 65%); opacity: 0; transition: opacity .35s; }
.motion-on .project-open:hover { transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateZ(7px); }
.project-open:hover .project-media { box-shadow: 0 22px 46px #102e5423, 0 6px 12px #102e5412; }
.motion-on .project-open:hover .project-media::after { opacity: 1; }
.round-arrow { z-index: 2; box-shadow: 0 4px 15px #0002; transition: transform .3s ease, background .2s ease; }
.project-open:hover .round-arrow { transform: translate(2px, -2px); }
.project-grid { view-transition-name: work-grid; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; }
::view-transition-group(work-grid) { animation-duration: .3s; animation-timing-function: cubic-bezier(.2,.7,.2,1); }
::view-transition-old(work-grid) { animation: work-out .16s ease both; }
::view-transition-new(work-grid) { animation: work-in .3s ease both; }
.motion-on [data-reveal] { transition: translate .4s cubic-bezier(.2,.7,.2,1); }
.motion-on [data-reveal]:not(.revealed) { opacity: 1; translate: 0 8px; }
.motion-on [data-reveal].revealed { opacity: 1; translate: none; }
.approach-section { position: relative; isolation: isolate; overflow: hidden; background: #06172f; }
.approach-section > .ambient-scene { opacity: .35; }
.approach-section > .wrap { position: relative; z-index: 1; }
.step-number span { background: linear-gradient(90deg, #69b8ff, #3d72b440); }
.steps article { position: relative; }
.steps h3 { transition: color .3s ease; }
.steps article:hover h3 { color: var(--accent); }
.capabilities summary { transition: color .25s ease, padding-inline .25s ease; }
.capabilities summary:hover { color: #185fad; padding-inline: 5px; }
.service-tags span { box-shadow: inset 0 1px 0 #fff8; }
.quote-panel { position: relative; }
.success-panel { box-shadow: 0 12px 40px #153c6c0b; background: #ffffff40; }
dialog { opacity: 0; transform: translateY(16px) scale(.98); transition: opacity .24s ease, transform .3s ease, display .3s allow-discrete, overlay .3s allow-discrete; }
dialog[open] { opacity: 1; transform: none; }
@starting-style { dialog[open] { opacity: 0; transform: translateY(16px) scale(.98); } }
dialog::backdrop { opacity: 0; transition: opacity .25s ease, display .25s allow-discrete, overlay .25s allow-discrete; }
dialog[open]::backdrop { opacity: 1; }
@starting-style { dialog[open]::backdrop { opacity: 0; } }
.motion-on:not([data-motion-interacted]) .hero-copy h1 { animation: hero-arrive .55s cubic-bezier(.2,.7,.2,1) both; }
.motion-on:not([data-motion-interacted]) .hero-copy > p { animation: hero-arrive .55s .06s cubic-bezier(.2,.7,.2,1) both; }
.motion-on:not([data-motion-interacted]) .hero-actions { animation: hero-arrive .55s .12s cubic-bezier(.2,.7,.2,1) both; }
.scene-offscreen .hero-visual img, .scene-offscreen .ambient-threads, .motion-paused .hero-visual img, .motion-paused .ambient-threads, .page-hidden .hero-visual img, .page-hidden .ambient-threads { animation-play-state: paused; }
.motion-paused [data-reveal] { opacity: 1 !important; translate: none !important; }
.motion-paused .hero-visual, .motion-paused .project-open { transform: none; }
.motion-paused .button .icon { transform: none; }
@keyframes hero-arrive { from { translate: 0 10px; } to { translate: none; } }
@keyframes artwork-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes contour-drift { from { transform: translate(-12px,12px) scale(1.02); } to { transform: translate(15px,-12px) scale(1.06); } }
@keyframes work-out { to { opacity: 0; transform: translateY(6px); } }
@keyframes work-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@supports (interpolate-size: allow-keywords) {
  .capabilities { interpolate-size: allow-keywords; }
  .capabilities details::details-content { block-size: 0; opacity: 0; overflow: clip; transition: block-size .35s ease, opacity .25s ease, content-visibility .35s allow-discrete; }
  .capabilities details[open]::details-content { block-size: auto; opacity: 1; }
}
@media (max-width: 1050px) { .header-inner { gap: 24px; } .brand-logo { width: 50px; height: 50px; border-radius: 8px; } .hero { min-height: 520px; } .hero-visual { right: -5%; } }
@media (min-width: 761px) and (max-width: 1050px) {
  .hero-real.hero-visual { width: 42%; right: var(--gutter); bottom: 36px; }
  .device-stage { height: 380px; }
  .desktop-device { top: 35px; }
  .hero-real.hero-visual figcaption { font-size: 10px; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 92px; }
  .hero-shell { padding-top: 72px; }
  .site-header { height: 72px; }
  .header-inner { gap: 14px; }
  .site-header .primary-nav.is-open { top: 100%; border: 0; border-bottom: 1px solid #7899be4d; border-radius: 0; background: #082850; margin: 0; }
  .site-header .primary-nav.is-open .mobile-nav-quote { display: block; color: var(--accent); font-weight: 600; }
  .hero { padding-top: 22px; min-height: 0; }
  .hero-copy { padding-top: 0; padding-bottom: 0; }
  .hero-visual { right: auto; margin-top: 0; }
  .hero-visual img { filter: none; }
  .motion-control { margin-top: 19px; margin-bottom: 5px; font-size: 11px; }
  .motion-control-icon { width: 28px; height: 28px; }
  .hero-visual figcaption { bottom: 19px; }
  .hero-real.hero-visual { width: calc(100% + 2 * var(--gutter)); right: auto; bottom: auto; margin: 16px calc(-1 * var(--gutter)) 0; }
  .device-stage { height: clamp(275px, 78vw, 430px); }
  .desktop-device { top: 28px; left: 5%; width: 85%; border-width: 5px; border-radius: 12px; }
  .device-chrome { height: 22px; padding-inline: 7px; }
  .device-chrome span { font-size: 7px; }
  .phone-device { right: 4%; bottom: 18px; width: 25%; padding: 4px; border-radius: 20px; }
  .hero-real .phone-screen { border-radius: 13px; }
  .phone-speaker { top: 8px; height: 4px; }
  .hero-real.hero-visual figcaption { bottom: 0; right: var(--gutter); font-size: 10px; }
  .motion-on .hero-visual { transform: none; }
  .motion-on .hero-visual img { animation-duration: 10s; }
  .project-media { border-radius: 12px; }
  .project-open:hover .project-media { box-shadow: 0 8px 20px #102e540b; }
}
@media (max-width: 390px) { .site-header .wordmark { font-size: 20px; } }
@media (prefers-reduced-motion: reduce) {
  .hero-visual, .project-open, .button, dialog, dialog[open] { transform: none !important; }
  [data-reveal] { opacity: 1 !important; translate: none !important; transition: none !important; }
  .hero-copy h1, .hero-copy > p, .hero-actions, .hero-visual img, .ambient-threads { animation: none !important; }
  .device-stage { animation: none !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* Contrast-aware interactive states share the saved brand palette. */
.site-header, .hero-shell, .approach-section, .site-footer { --focus: #91cdff; }
:root { --focus: #1769c2; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline-color: var(--focus); }
input:focus, select:focus, textarea:focus { outline-color: var(--focus); }
.footer-bottom { border-color: #385474; }
.hero-real.hero-visual figcaption { color: #dbe9f8; }
