/* ==========================================================================
   AIRNSOLE TECH — "Dusk" theme
   --------------------------------------------------------------------------
   Loaded after styles.css. A mid-tone theme that sits between light and dark:
   slate-navy surfaces, ivory type, brass and steel-blue accents, real glass
   panels, a faint blueprint grid, and three CSS-3D models.
   No purple, no neon.

   01. Tokens
   02. Canvas, ambient field, blueprint grid
   03. Masthead and navigation
   04. Buttons, tags, forms, footer
   05. Hero layout with 3D model
   06. 3D models (logo stacks and the 30-day grid)
   07. Interactive layer (progress bar, cursor light, dots, back-to-top)
   08. STARTXCEL slider adjustments
   09. Responsive and motion preferences
   ========================================================================== */


/* 01. Tokens ============================================================== */

:root {
  --surface-canvas:   #1B2433;
  --surface-raised:   #243044;
  --surface-deep:     #141B27;

  --glass-fill:        rgba(255, 255, 255, 0.055);
  --glass-fill-strong: rgba(255, 255, 255, 0.09);
  --glass-fill-hover:  rgba(255, 255, 255, 0.13);
  --glass-edge:        rgba(255, 255, 255, 0.13);
  --glass-edge-strong: rgba(255, 255, 255, 0.28);
  --glass-sheen:       rgba(255, 255, 255, 0.16);
  --glass-blur:        22px;
  --glass-glow:        0 0 44px rgba(203, 211, 223, 0.13);

  --ink-primary:       #F2EFE7;
  --ink-secondary:     #B4BCC9;
  --ink-tertiary:      #8892A2;
  --ink-inverse:       #131B28;

  --accent:            #CBD3DF;
  --accent-hover:      #E8EDF5;
  --accent-soft:       rgba(203, 211, 223, 0.12);
  --accent-line:       rgba(203, 211, 223, 0.70);
  --steel:             #7BA3C7;
  --steel-soft:        rgba(123, 163, 199, 0.16);

  --lift-resting:  inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 18px 40px -22px rgba(0, 0, 0, 0.55);
  --lift-hover:    0 28px 56px -20px rgba(0, 0, 0, 0.62), var(--glass-glow);
  --lift-floating: 0 36px 80px -28px rgba(0, 0, 0, 0.68), var(--glass-glow);
}

/* Rounded corner scale: every card, panel, field and chip reads from these. */
:root {
  --radius-xs:   0.75rem;
  --radius-sm:   1rem;
  --radius-md:   1.4rem;
  --radius-lg:   1.85rem;
  --radius-xl:   2.4rem;
  --radius-pill: 999px;
}

html { color-scheme: dark; }

body {
  background-color: var(--surface-canvas);
  color: var(--ink-secondary);
}

::selection { background: rgba(203, 211, 223, 0.32); color: var(--ink-primary); }
:focus-visible { outline-color: rgba(232, 237, 245, 0.9); }


/* 02. Canvas, ambient field, blueprint grid ================================ */

.ambient { background: linear-gradient(180deg, #202B3D 0%, #1A2231 55%, #161D2A 100%); }

.ambient__glow--crown { background: radial-gradient(closest-side, rgba(123, 163, 199, 0.34), rgba(123, 163, 199, 0) 100%); }
.ambient__glow--left  { background: radial-gradient(closest-side, rgba(203, 211, 223, 0.16), rgba(203, 211, 223, 0) 100%); }
.ambient__glow--right { background: radial-gradient(closest-side, rgba(123, 163, 199, 0.20), rgba(123, 163, 199, 0) 100%); }
.ambient__grain { opacity: 0.045; }

/* Blueprint grid that fades out away from the top of the page. */
.ambient::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 18%, #000 0%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 60% at 50% 18%, #000 0%, transparent 75%);
}

.particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

main > .band:nth-of-type(even) {
  background: rgba(10, 15, 24, 0.34);
  border-block: 1px solid rgba(255, 255, 255, 0.07);
}


/* 03. Masthead and navigation ============================================== */

.masthead {
  background: rgba(24, 32, 46, 0.66);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
          backdrop-filter: blur(18px) saturate(150%);
  border-top: 3px solid var(--accent);
  border-bottom: 1px solid var(--glass-edge);
}

.masthead { border-radius: 0 0 1.6rem 1.6rem; }

.masthead.is-scrolled {
  background: rgba(20, 27, 39, 0.9);
  border-bottom-color: var(--glass-edge-strong);
  box-shadow: 0 14px 34px -18px rgba(0, 0, 0, 0.7);
}

.wordmark__mark img { filter: drop-shadow(0 0 1.2px rgba(255, 255, 255, 0.55)); }

.navlink { color: var(--ink-secondary); }
.navlink:hover { color: var(--ink-primary); }
.navlink.is-current { color: var(--accent); }
.navlink.is-current::after,
.navlink::after { background: var(--accent); }

.menu-toggle { background: var(--glass-fill); }


/* 04. Buttons, tags, forms, footer ======================================== */

.button {
  position: relative;
  overflow: hidden;
  background: var(--glass-fill-strong);
  border-color: var(--glass-edge-strong);
  color: var(--ink-primary);
}

.button--primary {
  background: linear-gradient(180deg, #E6EBF3 0%, #AEB8C7 100%);
  border-color: #E6EBF3;
  color: var(--ink-inverse);
  font-weight: 600;
  box-shadow: 0 10px 28px -12px rgba(203, 211, 223, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.button--primary:hover {
  background: linear-gradient(180deg, #F2F5FA 0%, #BCC6D4 100%);
  border-color: #F2F5FA;
  box-shadow: 0 16px 36px -12px rgba(203, 211, 223, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.button--quiet { background: transparent; color: var(--ink-secondary); border-color: var(--glass-edge-strong); }
.button--quiet:hover { background: var(--glass-fill-hover); color: var(--ink-primary); border-color: var(--accent-line); box-shadow: 0 18px 36px -20px rgba(0, 0, 0, 0.6), var(--glass-glow); }

/* A light sweep that crosses a button on hover. */
.button::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.30), transparent);
  transform: skewX(-18deg);
  transition: left 0.7s var(--ease-out);
  pointer-events: none;
}
.button:hover::after { left: 130%; }

.tag { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent); }

.field input,
.field textarea {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--glass-edge-strong);
  color: var(--ink-primary);
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(180, 188, 201, 0.5); }
.field input:hover,
.field textarea:hover { border-color: rgba(255, 255, 255, 0.42); }
.field input:focus,
.field textarea:focus { border-color: var(--accent); background: rgba(255, 255, 255, 0.09); box-shadow: 0 0 0 3px rgba(203, 211, 223, 0.22); }
.field.is-invalid input,
.field.is-invalid textarea { border-color: #E0A38A; background: rgba(224, 163, 138, 0.08); }

.capabilities__icon, .details__icon, .social a { background: var(--glass-fill-strong); color: var(--accent); }
.social a:hover { color: var(--accent-hover); }

.portrait {
  background:
    radial-gradient(circle at 32% 24%, rgba(123, 163, 199, 0.35), rgba(123, 163, 199, 0.05) 62%),
    var(--glass-fill-strong);
  border-color: var(--glass-edge-strong);
}
.portrait::after { border-color: var(--glass-edge); }

.footer {
  background: var(--surface-deep);
  border-top: 3px solid var(--accent);
}

.hero__headline::after { mix-blend-mode: soft-light; }


/* 05. Hero layout with 3D model ============================================ */

@media (min-width: 1000px) {
  .hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    grid-template-rows: auto auto auto auto;
    column-gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
    text-align: left;
  }

  .hero__headline { grid-column: 1; grid-row: 1; max-width: 19ch; }
  .hero__subhead  { grid-column: 1; grid-row: 2; }
  .hero__actions  { grid-column: 1; grid-row: 3; justify-content: flex-start; }
  .hero__model    { grid-column: 2; grid-row: 1 / span 3; }
  .hero__facts    { grid-column: 1 / -1; grid-row: 4; width: 100%; }
}


/* 06. 3D models ============================================================ */

.model {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 26rem;
  perspective: 1200px;
  touch-action: pan-y;
  user-select: none;
}

/* Soft studio light behind each model. */
.model::before {
  content: "";
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, rgba(123, 163, 199, 0.30), rgba(123, 163, 199, 0) 100%);
  filter: blur(14px);
}

/* A slow ring and a floor shadow so the model reads as sitting in space. */
.model::after {
  content: "";
  position: absolute;
  bottom: 8%;
  width: 58%;
  height: 2.4rem;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0) 100%);
  filter: blur(6px);
}

.model__rig {
  position: relative;
  display: block;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(calc(var(--ry, 0deg) + var(--sy, 0deg)));
  will-change: transform;
}

.model__layer {
  position: absolute;
  inset: 0;
  display: block;
}

/* --- AIRNSOLE TECH logo, extruded from stacked layers ------------------- */
.model--logo .model__rig { width: min(26rem, 78vw); aspect-ratio: 1200 / 693; }
.model--logo .model__layer {
  background: url("logo.png") center / contain no-repeat;
}
.model--logo .model__layer--back { filter: brightness(0.38) saturate(0.7); }
.model--logo .model__layer--front { filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.5)) drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35)); }

/* --- STARTXCEL mark, extruded and tinted with a mask -------------------- */
.model--mark .model__rig { width: min(22rem, 70vw); aspect-ratio: 900 / 752; }
.model--mark .model__layer {
  background: url("startxcel-mark-side.png") center / contain no-repeat;
}
.model--mark .model__layer--front {
  background: url("startxcel-mark-face.png") center / contain no-repeat;
  filter: drop-shadow(0 0 14px rgba(203, 211, 223, 0.45)) drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35));
}

/* --- The 30-day proof-of-work grid as a block model ---------------------- */
@property --h {
  syntax: "<length>";
  inherits: true;
  initial-value: 0.35rem;
}

.model--grid { min-height: 27rem; }

.model--grid .model__rig {
  --s: 2.9rem;
  --gap: 0.5rem;
  display: grid;
  grid-template-columns: repeat(6, var(--s));
  grid-template-rows: repeat(5, var(--s));
  gap: var(--gap);
  width: calc(6 * var(--s) + 5 * var(--gap));
  height: calc(5 * var(--s) + 4 * var(--gap));
  transform: rotateX(calc(58deg + var(--rx, 0deg))) rotateZ(calc(-38deg + var(--ry, 0deg) * -1));
}

.cube {
  position: relative;
  display: block;
  transform-style: preserve-3d;
  --h: 0.35rem;
  transition: --h 0.7s var(--ease-out);
}

.cube i { position: absolute; display: block; }

/* top */
.cube .c-top {
  inset: 0;
  border-radius: 0.6rem;
  transform: translateZ(var(--h));
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.22);
  transition: background-color 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), border-color 0.5s var(--ease-out);
}
/* south */
.cube .c-south {
  left: 0;
  top: 100%;
  width: 100%;
  height: var(--h);
  transform-origin: top center;
  transform: rotateX(90deg);
  background: rgba(255, 255, 255, 0.05);
  border-inline: 1px solid rgba(255, 255, 255, 0.10);
  transition: background-color 0.5s var(--ease-out);
}
/* east */
.cube .c-east {
  left: 100%;
  top: 0;
  width: var(--h);
  height: 100%;
  transform-origin: left center;
  transform: rotateY(-90deg);
  background: rgba(255, 255, 255, 0.035);
  transition: background-color 0.5s var(--ease-out);
}

.cube.is-lit { --h: 1.35rem; }
.cube.is-lit .c-top {
  background: linear-gradient(145deg, #F2F5FA, #CBD3DF);
  border-color: rgba(250, 252, 255, 0.7);
  box-shadow: 0 0 22px rgba(203, 211, 223, 0.45);
}
.cube.is-lit .c-south { background: #76839A; }
.cube.is-lit .c-east  { background: #5C677A; }

.cube.is-tall { --h: 2.6rem; }

.cube:hover { --h: 2.1rem; }


/* 07. Interactive layer ==================================================== */

.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  z-index: 300;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--steel), var(--accent-hover));
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  z-index: 2;
  width: 34rem;
  height: 34rem;
  margin: -17rem 0 0 -17rem;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(203, 211, 223, 0.13), rgba(123, 163, 199, 0.06) 55%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s var(--ease-out);
  will-change: transform;
}
.cursor-glow.is-on { opacity: 1; }

.dots {
  position: fixed;
  right: 1.25rem;
  top: 50%;
  z-index: 90;
  display: grid;
  gap: 0.85rem;
  translate: 0 -50%;
}

.dots a {
  position: relative;
  display: block;
  width: 0.7rem;
  height: 0.7rem;
  border: 1.5px solid var(--glass-edge-strong);
  border-radius: 50%;
  background: transparent;
  transition: background-color var(--transition), border-color var(--transition), transform var(--transition);
}

.dots a::before {
  content: attr(data-label);
  position: absolute;
  right: 1.6rem;
  top: 50%;
  translate: 8px -50%;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius-pill);
  background: rgba(20, 27, 39, 0.92);
  color: var(--ink-primary);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), translate var(--transition);
}

.dots a:hover::before,
.dots a:focus-visible::before { opacity: 1; translate: 0 -50%; }
.dots a:hover { transform: scale(1.25); border-color: var(--accent-line); }
.dots a.is-active { background: var(--accent); border-color: var(--accent); transform: scale(1.2); }

.to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 95;
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  border: 1px solid var(--glass-edge-strong);
  border-radius: 50%;
  background: rgba(24, 32, 46, 0.78);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
  color: var(--accent);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  translate: 0 12px;
  transition: opacity var(--transition), translate var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.to-top svg { width: 1.1rem; height: 1.1rem; }
.to-top.is-on { opacity: 1; pointer-events: auto; translate: 0 0; }
.to-top:hover { border-color: var(--accent-line); box-shadow: 0 12px 26px -12px rgba(0, 0, 0, 0.7), var(--glass-glow); }

/* Cards gain a gold hairline that follows the pointer. */
.glass[data-tilt]:not([data-tilt-3d])::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(18rem circle at var(--pointer-x, 50%) var(--pointer-y, 0%), rgba(232, 237, 245, 0.75), rgba(232, 237, 245, 0) 62%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
@media (hover: hover) and (pointer: fine) {
  .glass[data-tilt]:not([data-tilt-3d]):hover::after { opacity: 1; }
}


/* 08. STARTXCEL slider adjustments ======================================== */

.appshow__arrow,
.appshow__playpause { background: var(--glass-fill-strong); color: var(--ink-primary); }
.appshow__arrow:hover,
.appshow__playpause:hover { background: var(--glass-fill-hover); border-color: var(--accent-line); }
.appshow__tab:hover { color: var(--ink-primary); border-color: var(--accent-line); }
.appshow__tab-progress { background: rgba(255, 255, 255, 0.28); }
.device { background: linear-gradient(160deg, #3A4A63, #121A27); }
.device::before { background: linear-gradient(160deg, rgba(203, 211, 223, 0.7), rgba(203, 211, 223, 0)); }


/* 09. Responsive and motion preferences ==================================== */

@media (max-width: 1080px) {
  .model { order: -1; width: 100%; min-height: 21rem; }
  .dots { display: none; }
}

@media (max-width: 999px) {
  .hero__model { margin-top: var(--space-lg); min-height: 19rem; }
  .hero__inner { align-items: center; }
}

@media (max-width: 900px) {
  .masthead__nav { background: rgba(20, 27, 39, 0.97); }
}

@media (max-width: 560px) {
  .model--grid .model__rig { --s: 2.2rem; --gap: 0.38rem; }
  .model { min-height: 18rem; }
  .to-top { right: 0.75rem; bottom: 0.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  .cursor-glow, .particles { display: none; }
  .model__rig { transform: rotateX(8deg) rotateY(-14deg); }
  .model--grid .model__rig { transform: rotateX(58deg) rotateZ(-38deg); }
}

@media print {
  .scroll-progress, .cursor-glow, .dots, .to-top, .particles { display: none !important; }
}

/* Spacing for the showcase call to action. */
.showcase__body > .button { margin-top: var(--space-md); }
.appshow__pane .tag { justify-self: start; }


/* ==========================================================================
   10. Rounded corners, round two
   ========================================================================== */

.field input, .field textarea { border-radius: 1rem; }
.appshow__tab, .navlink, .tag, .button { border-radius: 999px; }
.capabilities__icon, .details__icon { border-radius: 0.9rem; }
.capabilities__icon { border-radius: 50%; }
.dots a::before { border-radius: 999px; }
.consent input[type="checkbox"] { border-radius: 0.35rem; }
.skip-link { border-radius: 999px; }
.footer { border-radius: 2.2rem 2.2rem 0 0; margin-top: -1px; }
.model--grid .cube .c-top { border-radius: 0.65rem; }


/* ==========================================================================
   11. More motion and 3D
   ========================================================================== */

/* Page fade between pages */
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }
body { animation: page-in 0.6s var(--ease-out) both; }
body.is-leaving { opacity: 0; transition: opacity 0.26s ease; }

/* Section rule draws itself when the heading reveals */
.band__head .band__title::after {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1s var(--ease-out) 0.35s;
}
.band__head.is-visible .band__title::after { transform: scaleX(1); }
.no-js .band__head .band__title::after { transform: none; }

/* Orbit rings that circle the logo models */
.orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 128%;
  aspect-ratio: 1;
  margin: -64% 0 0 -64%;
  border: 1.5px solid rgba(203, 211, 223, 0.32);
  border-radius: 50%;
  transform-style: preserve-3d;
  pointer-events: none;
  animation: orbit-a 18s linear infinite;
}
.orbit::after {
  content: "";
  position: absolute;
  top: -0.4rem;
  left: 50%;
  width: 0.8rem;
  height: 0.8rem;
  margin-left: -0.4rem;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #FFFFFF, #CBD3DF 70%);
  box-shadow: 0 0 16px rgba(203, 211, 223, 0.75);
}
.orbit--2 {
  width: 150%;
  margin: -75% 0 0 -75%;
  border-color: rgba(123, 163, 199, 0.30);
  animation: orbit-b 26s linear infinite reverse;
}
.orbit--2::after {
  background: radial-gradient(circle at 32% 30%, #E4F1FF, #7BA3C7 70%);
  box-shadow: 0 0 16px rgba(123, 163, 199, 0.7);
}
@keyframes orbit-a {
  from { transform: rotateX(74deg) rotateZ(0deg); }
  to   { transform: rotateX(74deg) rotateZ(360deg); }
}
@keyframes orbit-b {
  from { transform: rotateX(68deg) rotateY(26deg) rotateZ(0deg); }
  to   { transform: rotateX(68deg) rotateY(26deg) rotateZ(360deg); }
}

/* Floating glass chips drifting around each model */
.float-chip {
  position: absolute;
  width: var(--sz, 2.6rem);
  height: var(--sz, 2.6rem);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 26%;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.20), rgba(255, 255, 255, 0.03));
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  pointer-events: none;
  animation: chip-float 7s ease-in-out infinite;
}
.float-chip--gold {
  border-color: rgba(232, 237, 245, 0.5);
  background: linear-gradient(145deg, rgba(232, 237, 245, 0.38), rgba(203, 211, 223, 0.06));
}
@keyframes chip-float {
  0%, 100% { translate: 0 0; rotate: -8deg; }
  50%      { translate: 0 -16px; rotate: 10deg; }
}

/* Gyroscope: three rings on three axes */
.gyro {
  position: absolute;
  right: 5%;
  top: 50%;
  width: 15rem;
  height: 15rem;
  margin-top: -7.5rem;
  perspective: 900px;
  pointer-events: none;
  opacity: 0.95;
}
.gyro i {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(203, 211, 223, 0.55);
  border-radius: 50%;
  transform-style: preserve-3d;
}
.gyro i:nth-child(1) { animation: gy-x 11s linear infinite; }
.gyro i:nth-child(2) { inset: 12%; border-color: rgba(123, 163, 199, 0.6); animation: gy-y 9s linear infinite; }
.gyro i:nth-child(3) { inset: 26%; border-color: rgba(242, 239, 231, 0.5); animation: gy-z 7s linear infinite; }
.gyro b {
  position: absolute;
  inset: 41%;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #FFFFFF, #CBD3DF 70%);
  box-shadow: 0 0 30px rgba(203, 211, 223, 0.6);
}
@keyframes gy-x { to { transform: rotateX(360deg); } }
@keyframes gy-y { to { transform: rotateY(360deg); } }
@keyframes gy-z { from { transform: rotateX(70deg) rotateZ(0deg); } to { transform: rotateX(70deg) rotateZ(360deg); } }
@media (max-width: 1100px) { .gyro { display: none; } }

/* Marquee ribbon */
.marquee {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-block: 1px solid var(--glass-edge);
  background: rgba(255, 255, 255, 0.035);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 46s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span {
  display: inline-flex;
  align-items: center;
  gap: 1.6rem;
  padding: 1.15rem 1.6rem 1.15rem 0;
  color: var(--ink-secondary);
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-style: italic;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.marquee__track span::after {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 0.18rem;
  background: var(--accent);
  rotate: 45deg;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* Pointer ring and button ripple */
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  z-index: 400;
  width: 2.2rem;
  height: 2.2rem;
  margin: -1.1rem 0 0 -1.1rem;
  border: 1.5px solid rgba(232, 237, 245, 0.65);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease, width 0.3s var(--ease-out), height 0.3s var(--ease-out), margin 0.3s var(--ease-out), background-color 0.3s ease;
  will-change: transform;
}
.cursor-ring.is-on { opacity: 1; }
.cursor-ring.is-hover {
  width: 3.6rem;
  height: 3.6rem;
  margin: -1.8rem 0 0 -1.8rem;
  background: rgba(203, 211, 223, 0.12);
}
.ripple {
  position: absolute;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  pointer-events: none;
  animation: ripple 0.65s var(--ease-out) forwards;
}
@keyframes ripple { to { transform: scale(24); opacity: 0; } }

/* Cards: icons lift and glow when the card is hovered */
.person .details__icon { transition: transform var(--transition), box-shadow var(--transition), color var(--transition); }
.person:hover .details__icon { transform: translateY(-4px) rotate(-4deg); box-shadow: 0 14px 26px -12px rgba(203, 211, 223, 0.5); color: var(--accent-hover); }

/* Hero headline: soft brass underline sweep on the final word group */
@media (prefers-reduced-motion: reduce) {
  .orbit, .float-chip, .gyro i, .marquee__track { animation: none; }
  .orbit { transform: rotateX(74deg); }
}
@media print { .marquee, .gyro, .cursor-ring { display: none !important; } }

/* ==========================================================================
   12. Cleanup
   ========================================================================== */

/* Floating chips removed. */
.float-chip { display: none !important; }

/* Headline sheen: wider, gentler band that fades out softly at every edge,
   so the glass effect never ends in a visible rectangle. */
@media (prefers-reduced-motion: no-preference) {
  .hero__headline::after {
    inset: -8% -5%;
    background: linear-gradient(100deg, transparent 26%, rgba(190, 210, 245, 0.45) 50%, transparent 74%);
    background-size: 280% 100%;
    background-position: 160% 0;
    -webkit-mask-image: radial-gradient(ellipse 60% 64% at 50% 50%, #000 30%, transparent 100%);
            mask-image: radial-gradient(ellipse 60% 64% at 50% 50%, #000 30%, transparent 100%);
    mix-blend-mode: soft-light;
    animation: heading-shimmer 9s ease-in-out infinite;
    animation-delay: 1.4s;
  }
}
/* The enquiry form's Send button stays exactly where it is: no magnetic pull,
   no hover lift, no press shrink. Colour and glow still respond. */
.enquiry .button,
.enquiry .button:hover,
.enquiry .button:active,
.enquiry .button.is-magnetic {
  transform: none !important;
  translate: none !important;
}

/* Photo portrait (replaces the initials circle when a photo is available) */
.portrait--photo {
  width: 6.5rem;
  height: 6.5rem;
  padding: 0.22rem;
  background: linear-gradient(145deg, rgba(232, 237, 245, 0.95), rgba(123, 163, 199, 0.75));
  border-color: transparent;
  box-shadow: 0 16px 34px -16px rgba(0, 0, 0, 0.7), 0 0 30px rgba(203, 211, 223, 0.18);
  transition: transform var(--transition), box-shadow var(--transition);
}
.portrait--photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
  border-radius: 50%;
  background: #E9EEF3;
}
.portrait--photo::after { inset: -0.55rem; border-color: rgba(203, 211, 223, 0.30); }
.person:hover .portrait--photo { transform: scale(1.05); box-shadow: 0 22px 40px -16px rgba(0, 0, 0, 0.75), 0 0 38px rgba(203, 211, 223, 0.3); }

/* Pointer ring removed. */
.cursor-ring { display: none !important; }


/* ==========================================================================
   13. Phone optimisation  (screens up to 900px only; desktop is untouched)
   --------------------------------------------------------------------------
   Lighter rendering (no live blur, no particles, smaller glows), text first
   in the hero, larger touch targets, and nothing allowed to stick out
   sideways.
   ========================================================================== */

@media (max-width: 900px) {

  /* Never scroll sideways, even on browsers without overflow: clip */
  html, body { overflow-x: hidden; max-width: 100%; }

  /* Rendering cost: drop the heaviest effects on phones */
  .ambient__grain,
  .ambient__glow--left,
  .cursor-glow { display: none; }
  .ambient__glow--crown,
  .ambient__glow--right { filter: blur(44px); }

  .glass,
  .button,
  .masthead,
  .to-top,
  .float-chip {
    -webkit-backdrop-filter: none;
            backdrop-filter: none;
  }

  /* Without live blur, give glass a denser fill so text stays readable */
  .glass { background: rgba(38, 50, 70, 0.78); }
  .showcase { background: rgba(40, 53, 74, 0.86); }
  .masthead { background: rgba(21, 28, 41, 0.94); }

  /* Decorative 3D rings and the gyroscope are hidden to save work */
  .orbit,
  .gyro { display: none !important; }
  .model { overflow: hidden; }

  /* Hero: text first, the logo model below the buttons */
  .hero__model {
    order: 0;
    min-height: 15rem;
    margin: var(--space-md) 0 var(--space-sm);
  }
  .model--logo .model__rig { width: min(18rem, 72vw); }
  .model--mark .model__rig { width: min(15rem, 62vw); }
  .model--grid { min-height: 17rem; }
  .model { min-height: 16rem; }

  /* Comfortable touch targets */
  .button { min-height: 3rem; }
  .menu-toggle { width: 3rem; height: 3rem; }
  .navlink { padding: 0.95rem 1rem; }
  .footer__col ul { gap: 0; }
  .footer__col a { display: inline-block; padding: 0.7rem 0; }
  .wordmark { padding-block: 0.4rem; }
  .social a { width: 2.9rem; height: 2.9rem; }
  .social--compact a { width: 2.75rem; height: 2.75rem; }
  .appshow__tab { padding: 0.65rem 1rem; }
  .appshow__arrow, .appshow__playpause { width: 3rem; height: 3rem; }
  .field input, .field textarea { font-size: 1rem; }   /* stops iOS zooming into fields */
  .consent input[type="checkbox"] { width: 1.4rem; height: 1.4rem; }

  /* Calmer spacing and corners */
  .band { padding-block: clamp(3.25rem, 11vw, 5rem); }
  .band__head { margin-bottom: 1.75rem; }
  .masthead { border-radius: 0 0 1.2rem 1.2rem; }
  .footer { border-radius: 1.5rem 1.5rem 0 0; }

  /* Marquee a little tighter */
  .marquee__track span { padding: 0.9rem 1.2rem 0.9rem 0; font-size: 0.95rem; }

  /* Long words and emails must wrap, never push the page wider */
  h1, h2, h3, p, li, a, .details__value { overflow-wrap: anywhere; }
  img, svg, canvas, video { max-width: 100%; }
}

@media (max-width: 560px) {
  .hero__headline { font-size: clamp(2.1rem, 9.2vw, 2.9rem); }
  .band__title { font-size: clamp(1.75rem, 8vw, 2.3rem); }
  .showcase { padding: 1.4rem 1.1rem; }
  .person { padding: 1.5rem 1.25rem; }
  .to-top { width: 2.8rem; height: 2.8rem; }
}
@media (max-width: 900px) { a.details__value { display: inline-block; padding: 0.55rem 0; } }

/* Phones: the first section of every inner page starts below the fixed header,
   so titles such as "Contact Us" are never hidden underneath it. */
@media (max-width: 900px) {
  main > section:first-child:not(.hero) {
    padding-top: calc(var(--masthead-height) + 3px + 2.25rem);
  }
}

/* ==========================================================================
   14. Phone performance  (screens up to 900px; the look stays the same)
   --------------------------------------------------------------------------
   Same visuals, cheaper to draw: pre-shaded images instead of live CSS
   filters on every 3D layer, no continuous background animation or
   scroll-linked restyling, and the costly blend/mask on the headline sheen
   is left out. The dot rain stays on.
   ========================================================================== */
@media (max-width: 900px) {
  .model--logo .model__layer--shade {
    background: url("logo-dark.png") center / contain no-repeat;
    filter: none;
  }
  .model--mark .model__layer--shade {
    background: url("startxcel-mark-dark.png") center / contain no-repeat;
    filter: none;
  }

  /* Background glows hold still (no per-frame blur repaint) */
  .ambient__glow--crown,
  .ambient__glow--right { animation: none !important; }
  .ambient { contain: strict; }

  /* The sheen on the headline needs blend + mask every frame: skip on phones */
  .hero__headline::after { display: none !important; }

  /* Fewer always-promoted layers */
  .glass[data-tilt-3d] { will-change: auto; transform-style: flat; }
  body { text-rendering: auto; }
  .marquee__track { will-change: transform; }
  .scroll-progress { will-change: transform; }

  /* Cheaper first paint while sections fade in */
  .reveal { transition-duration: 0.6s; }
}


/* ==========================================================================
   Platinum silver theme: one small steel-blue pop for the key interactions
   ========================================================================== */
.navlink.is-current { color: #A9CBEA; }
.navlink.is-current::after { background: #A9CBEA; }
.scroll-progress { background: linear-gradient(90deg, #7BA3C7, #E8EDF5); }
.dots a.is-active { background: #A9CBEA; border-color: #A9CBEA; }
.tag { color: #E8EDF5; }


/* All buttons stay exactly where they are: no cursor pull, no hover lift, no press shrink.
   Colour, glow and the light sweep still respond. */
.button,
.button:hover,
.button:active,
.button:focus-visible,
.button.is-magnetic,
.button--primary:hover,
.button--quiet:hover {
  transform: none !important;
  translate: none !important;
}

/* Contact form: error messages sit on their own row, so showing them never
   changes the width of the checkbox column or moves the agreement text. */
.field.consent .field__error { grid-column: 1 / -1; }
.field.consent { align-items: start; }
.field__error { margin: 0; }
/* No line along the top edge of the header. */
.masthead { border-top: 0; }

/* Founder cards: every portrait the same size so names line up. */
.team .portrait { width: 6.5rem; height: 6.5rem; }


/* ==========================================================================
   15. Smooth on every device
   --------------------------------------------------------------------------
   Same look, less work: pre-shaded images instead of live filters on every 3D
   layer, animations that pause when off screen, a lighter background layer,
   and an automatic lighter mode (html.perf-lite) for devices that cannot keep
   up. Layout and content never change.
   ========================================================================== */

/* Pre-shaded 3D layers (no per-layer filter) */
.model--logo .model__layer--shade,
.model--logo .model__layer--back {
  background: url("logo-dark.png") center / contain no-repeat;
  filter: none;
}
.model--mark .model__layer--shade {
  background: url("startxcel-mark-shade.png") center / contain no-repeat;
  filter: none;
}
.model--mark .model__layer--mid {
  background: url("startxcel-mark-mid.png") center / contain no-repeat;
  filter: none;
}

/* A smaller, cheaper frosted-glass blur: visually the same, far less GPU work */
:root { --glass-blur: 18px; }

/* The grain overlay no longer needs to be twice the size of the screen */
.ambient__grain { inset: 0; }
.ambient { contain: strict; }
.ambient__glow { will-change: transform; }

/* Looping animations rest while their element is off screen */
.is-offscreen .orbit,
.gyro.is-offscreen i,
.marquee.is-offscreen .marquee__track { animation-play-state: paused; }
.hero__headline.is-offscreen::after { animation-play-state: paused; }

/* Automatic lighter mode for slow devices */
.perf-lite .glass,
.perf-lite .button,
.perf-lite .masthead,
.perf-lite .to-top,
.perf-lite .float-chip {
  -webkit-backdrop-filter: none;
          backdrop-filter: none;
}
.perf-lite .glass { background: rgba(38, 50, 70, 0.78); }
.perf-lite .showcase { background: rgba(40, 53, 74, 0.86); }
.perf-lite .masthead { background: rgba(21, 28, 41, 0.94); }
.perf-lite .ambient__glow { animation: none !important; }
.perf-lite .ambient__grain,
.perf-lite .particles,
.perf-lite .orbit,
.perf-lite .gyro,
.perf-lite .cursor-glow { display: none !important; }
.perf-lite .hero__headline::after { display: none !important; }
.perf-lite .button::after { display: none; }
.perf-lite .reveal { transition-duration: 0.45s; }
