/* ==================================================================
   InkDot AI – Coming Soon
   Stylesheet
   ------------------------------------------------------------------
   1.  Design tokens
   2.  Base & reset
   3.  Ambient background
   4.  Header & logo
   5.  Hero layout & typography
   6.  Status indicator & CTA
   7.  Orb stage (sphere, brand, canvas)
   8.  Platform
   9.  Capability cards
   10. Footer
   11. Animations
   12. Responsive
   13. Reduced motion / paused motion
   ================================================================== */

/* ---------- 1. Design tokens ---------- */
@property --spin {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

:root {
  /* Palette */
  --void: #03040a;
  --midnight: #060a1c;
  --navy: #0b1236;
  --blue: #3f7dff;
  --sky: #8fd0ff;
  --indigo: #7a8cff;
  --violet: #a26bff;
  --magenta: #e05cff;
  --signal: #3df5c8;

  --text: #eef1ff;
  --text-soft: #d5daf3;
  --muted: #a3aacb;
  --line: rgba(140, 165, 255, 0.22);

  --grad-brand: linear-gradient(100deg, #e9f5ff 0%, #8fd0ff 24%, #6f8bff 56%, #b27bff 88%);
  --grad-line: linear-gradient(120deg, rgba(143, 208, 255, 0.85), rgba(122, 140, 255, 0.55), rgba(192, 123, 255, 0.85));

  /* Type */
  --font-display: "Sora", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Manrope", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --container: 1480px;
  --gutter: clamp(20px, 5vw, 88px);
  --header-h: clamp(5.5rem, 12vh, 8rem);

  /* Motion */
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- 2. Base & reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--void);
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(ellipse 75% 70% at 70% 42%, #0b1342 0%, #070b22 38%, transparent 72%),
    radial-gradient(ellipse 60% 50% at 10% 100%, #0a0d26 0%, transparent 70%),
    var(--void);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, p, ul { margin: 0; }
h1, .eyebrow, .hero__subtitle { text-wrap: balance; }
.hero__desc { text-wrap: pretty; }
a { color: inherit; }
img, svg, canvas { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  background: var(--text);
  color: var(--void);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 4px;
}

/* ---------- 3. Ambient background ---------- */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.atmosphere__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
}
.atmosphere__glow--a {
  width: 46vmax; height: 46vmax;
  right: -8vmax; top: -18vmax;
  background: radial-gradient(circle, rgba(120, 70, 255, 0.28), transparent 65%);
  animation: drift-a 26s ease-in-out infinite alternate;
}
.atmosphere__glow--b {
  width: 52vmax; height: 40vmax;
  left: 34%; top: 18%;
  background: radial-gradient(circle, rgba(40, 90, 255, 0.22), transparent 65%);
  animation: drift-b 32s ease-in-out infinite alternate;
}

/* Soft vertical light falling onto the orb */
.atmosphere__beam {
  position: absolute;
  top: -10vh;
  left: 72%;
  width: 22vw;
  height: 70vh;
  transform: translateX(-50%);
  background: radial-gradient(ellipse 50% 100% at 50% 0%, rgba(130, 160, 255, 0.13), rgba(110, 120, 255, 0.04) 60%, transparent 85%);
  filter: blur(20px);
}

.atmosphere__particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.atmosphere__dunes {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: clamp(110px, 24vh, 260px);
  opacity: 0.9;
}

/* Everything visible sits above the atmosphere */
.site-header,
.hero,
.site-footer { position: relative; z-index: 1; }

/* ---------- 4. Header & logo ---------- */
.site-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
  padding-top: clamp(1.4rem, 4.5vh, 3.2rem);
  animation: fade-in 1s var(--ease-out) both;
}

.logo {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  border-radius: 6px;
}

.logo__mark {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.65rem, 2.3vw, 2.2rem);
  line-height: 1;
  letter-spacing: -0.035em;
  color: #fff;
}

/* Custom "i" whose tittle is the InkDot violet dot.
   The dotless ı and the dot share one grid cell: the dot is centred on the
   stem and lifted from the baseline by the font's own x-height (1ex), so it
   sits correctly whichever font actually loads. */
.logo__i {
  display: inline-grid;
  grid-template-areas: "i";
}
.logo__stem {
  grid-area: i;
  align-self: baseline;
}
.logo__dot {
  grid-area: i;
  justify-self: center;
  align-self: baseline;
  display: inline-block;
  width: 0.21em;
  height: 0.21em;
  translate: 0 calc(-1ex - 0.08em);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #d9c4ff, var(--violet) 60%, #7a4dff);
  box-shadow: 0 0 0.3em rgba(162, 107, 255, 0.9);
}

.logo__ai {
  margin-left: 0.28em;
  font-weight: 600;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo__by {
  margin-top: 0.7em;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--muted);
}

.tagline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 1.1em;
  padding-top: 0.55rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.tagline__x { color: var(--violet); letter-spacing: 0; opacity: 0.85; }

/* ---------- 5. Hero layout & typography ---------- */
.hero {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  grid-template-rows: 1fr auto auto 1fr;
  grid-template-areas:
    ".       visual"
    "intro   visual"
    "details visual"
    ".       visual";
  column-gap: clamp(1.5rem, 3vw, 4rem);
  min-height: calc(100svh - var(--header-h));
  padding-bottom: clamp(2rem, 6vh, 4rem);
}

.hero__intro { grid-area: intro; }
.hero__details { grid-area: details; }
.hero__visual {
  grid-area: visual;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.hero__title {
  margin-top: clamp(1.1rem, 2.6vh, 1.8rem);
  font-family: var(--font-display);
  font-size: clamp(2.7rem, min(5.5vw, 10.5svh), 5.9rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}
.hero__line { display: block; }
.hero__line:first-child { font-weight: 300; color: #fff; }
.hero__line--grad {
  font-weight: 600;
  padding-bottom: 0.06em; /* keeps descenders inside the clipped gradient */
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 0.35em rgba(110, 130, 255, 0.28));
}

.hero__subtitle {
  margin-top: clamp(0.9rem, 2vh, 1.4rem);
  font-family: var(--font-display);
  font-size: clamp(1.08rem, 1.45vw, 1.38rem);
  font-weight: 400;
  line-height: 1.4;
  color: #e3e7ff;
}

.hero__desc {
  margin-top: clamp(1rem, 2.4vh, 1.5rem);
  max-width: 31rem;
  font-size: clamp(0.96rem, 1.05vw, 1.05rem);
  line-height: 1.75;
  color: var(--muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.1rem 1.75rem;
  margin-top: clamp(1.6rem, 4vh, 2.4rem);
}

/* ---------- 6. Status indicator & CTA ---------- */
.status {
  display: inline-flex;
  align-items: center;
  gap: 0.85em;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: #d9fff5;
}
.status__dot {
  position: relative;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 10px var(--signal), 0 0 22px rgba(61, 245, 200, 0.55);
}
.status__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--signal);
  animation: ping 2.4s var(--ease-out) infinite;
}

.cta {
  --btn-bg: rgba(8, 11, 32, 0.78);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 48px;
  padding: 0.85rem 1.45rem 0.85rem 1.7rem;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid transparent;
  border-radius: 999px;
  background:
    linear-gradient(var(--btn-bg), var(--btn-bg)) padding-box,
    var(--grad-line) border-box;
  box-shadow: 0 0 18px rgba(100, 130, 255, 0.22), inset 0 0 14px rgba(110, 130, 255, 0.12);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
/* Light sweep that crosses the button on hover */
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 20%, rgba(143, 208, 255, 0.22) 45%, rgba(178, 123, 255, 0.22) 55%, transparent 80%);
  transform: translateX(-110%);
  transition: transform 0.8s var(--ease-out);
}
.cta__arrow {
  width: 20px;
  height: 20px;
  color: var(--sky);
  transition: transform 0.35s var(--ease-out);
}
.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(110, 140, 255, 0.45), 0 0 60px rgba(162, 107, 255, 0.2), inset 0 0 18px rgba(130, 150, 255, 0.2);
}
.cta:hover::before { transform: translateX(110%); }
.cta:hover .cta__arrow { transform: translateX(4px); }
.cta:active { transform: translateY(0) scale(0.98); }

.cta-note {
  min-height: 1.6em;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--sky);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.5s ease, transform 0.5s var(--ease-out);
}
.cta-note.is-shown { opacity: 1; transform: none; }

/* ---------- 7. Orb stage ---------- */
.orb-stage {
  position: relative;
  width: min(100%, 780px, 84svh);
  aspect-ratio: 1 / 1.12;
  container-type: inline-size;
  --px: 0;
  --py: 0;
}

/* Square area that holds the sphere, canvas and cards */
.orb-core {
  position: absolute;
  inset: 0 0 auto 0;
  aspect-ratio: 1;
  animation: float 9s ease-in-out infinite;
}

.orb-aura {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 36%, rgba(60, 120, 255, 0.6), transparent 62%),
    radial-gradient(circle at 64% 68%, rgba(170, 80, 255, 0.5), transparent 62%);
  filter: blur(52px);
  opacity: 0.85;
  animation: breathe 7s ease-in-out infinite;
}

.orb-sphere {
  position: absolute;
  left: 22%;
  top: 22%;
  width: 56%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%,
      rgba(2, 3, 12, 0.97) 0 46%,
      rgba(8, 14, 52, 0.9) 62%,
      rgba(36, 58, 190, 0.6) 80%,
      rgba(135, 150, 255, 0.75) 93%,
      rgba(225, 210, 255, 0.95) 99%,
      transparent 100%);
  box-shadow:
    0 0 14px rgba(120, 160, 255, 0.7),
    0 0 60px rgba(80, 110, 255, 0.45),
    0 0 140px rgba(140, 80, 255, 0.3),
    inset -18px -26px 60px rgba(210, 90, 255, 0.35),
    inset 18px 20px 60px rgba(70, 140, 255, 0.3);
  transition: box-shadow 0.6s ease;
}

/* Swirling colour inside the glass */
.orb-sphere__nebula {
  position: absolute;
  inset: 3%;
  border-radius: 50%;
  background: conic-gradient(from var(--spin) at 50% 50%,
    transparent 0 12%,
    rgba(40, 120, 255, 0.42) 24%,
    transparent 40%,
    rgba(160, 80, 255, 0.38) 58%,
    transparent 72%,
    rgba(230, 90, 255, 0.32) 86%,
    transparent 100%);
  -webkit-mask: radial-gradient(circle, transparent 38%, #000 78%);
  mask: radial-gradient(circle, transparent 38%, #000 78%);
  filter: blur(10px);
  animation: spin 30s linear infinite;
}

/* Thin rotating iridescent rim */
.orb-sphere__rim {
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  background: conic-gradient(from var(--spin), #8fd0ff, #4f63ff, #b06bff, #ff6be6, #6f8bff, #8fd0ff);
  -webkit-mask: radial-gradient(closest-side, transparent 95.5%, #000 98.5%, transparent 100%);
  mask: radial-gradient(closest-side, transparent 95.5%, #000 98.5%, transparent 100%);
  filter: blur(0.6px);
  animation: spin 14s linear infinite;
}

/* Glass specular highlight */
.orb-sphere__shine {
  position: absolute;
  left: 14%;
  top: 7%;
  width: 50%;
  height: 30%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 45%, rgba(255, 255, 255, 0.26), rgba(170, 205, 255, 0.07) 48%, transparent 70%);
  transform: rotate(-30deg);
  filter: blur(2px);
}

/* Energy pulse fired by the CTA */
.orb-stage.is-pulsing .orb-sphere {
  box-shadow:
    0 0 26px rgba(150, 190, 255, 0.95),
    0 0 110px rgba(90, 120, 255, 0.7),
    0 0 220px rgba(160, 90, 255, 0.5),
    inset -18px -26px 70px rgba(220, 100, 255, 0.5),
    inset 18px 20px 70px rgba(80, 150, 255, 0.45);
}

.orb-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.orb-brand {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
}
.orb-brand__word {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.4vw, 4.3rem);
  font-size: 8.8cqi;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #fff;
  text-shadow: 0 0 0.25em rgba(170, 195, 255, 0.55), 0 0 0.7em rgba(110, 120, 255, 0.35);
}
.orb-brand__ai {
  margin-top: 0.5em;
  margin-right: -0.48em; /* offsets trailing letter-spacing so it stays centred */
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(0.9rem, 1.7vw, 1.6rem);
  font-size: 3.4cqi;
  letter-spacing: 0.48em;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- 8. Platform ---------- */
.platform {
  position: absolute;
  left: 50%;
  top: 86cqi;
  width: 90cqi;
  height: 15cqi;
  transform: translateX(-50%);
  pointer-events: none;
}

.platform__ring {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.platform__ring--1 {
  width: 100%;
  height: 100%;
  border: 1.5px solid rgba(130, 150, 255, 0.75);
  box-shadow: 0 0 12px rgba(110, 130, 255, 0.65), 0 6px 26px rgba(170, 90, 255, 0.45), inset 0 0 14px rgba(160, 110, 255, 0.4);
  background: radial-gradient(ellipse at 50% 50%, rgba(20, 30, 90, 0.55), rgba(6, 9, 30, 0.85) 70%);
}
/* Travelling glint on the outer ring */
.platform__ring--1::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: conic-gradient(from var(--spin), transparent 0 62%, rgba(190, 215, 255, 0.95) 80%, rgba(210, 120, 255, 0.6) 88%, transparent 100%);
  -webkit-mask: radial-gradient(closest-side, transparent 92%, #000 97%, transparent 100%);
  mask: radial-gradient(closest-side, transparent 92%, #000 97%, transparent 100%);
  animation: spin 9s linear infinite;
}
.platform__ring--2 {
  width: 76%;
  height: 72%;
  border: 1px solid rgba(150, 170, 255, 0.55);
  box-shadow: 0 0 10px rgba(110, 140, 255, 0.45);
}
.platform__ring--3 {
  width: 46%;
  height: 40%;
  background: radial-gradient(ellipse at 50% 50%, rgba(210, 235, 255, 0.95), rgba(90, 150, 255, 0.75) 30%, rgba(70, 90, 255, 0.25) 62%, transparent 72%);
  filter: blur(3px);
  animation: breathe 5s ease-in-out infinite;
}

/* Light column rising from the platform to the orb */
.platform__beam {
  position: absolute;
  left: 50%;
  bottom: 50%;
  width: 26%;
  height: 120%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse 50% 100% at 50% 100%, rgba(130, 185, 255, 0.5), rgba(110, 120, 255, 0.12) 65%, transparent 85%);
  filter: blur(6px);
}

/* Glossy floor reflection */
.platform__reflection {
  position: absolute;
  left: 12%;
  right: 12%;
  top: 70%;
  height: 120%;
  background:
    repeating-linear-gradient(90deg, rgba(110, 120, 255, 0) 0 3%, rgba(120, 140, 255, 0.5) 4%, rgba(190, 100, 255, 0.4) 6%, rgba(110, 120, 255, 0) 8% 11%);
  -webkit-mask: linear-gradient(180deg, #000 0%, transparent 85%);
  mask: linear-gradient(180deg, #000 0%, transparent 85%);
  filter: blur(6px);
  opacity: 0.45;
}

/* ---------- 9. Capability cards ---------- */
.caps {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 4;
  aspect-ratio: 1;
  padding: 0;
  list-style: none;
  pointer-events: none;
}

.cap {
  --depth: 1;
  position: absolute;
  width: 21cqi;
  translate: calc(var(--px) * 14px * var(--depth)) calc(var(--py) * 10px * var(--depth));
}
.cap--design      { left: 3%;  top: 14%; rotate: 7deg;   --depth: 1.2; }
.cap--marketing   { right: 1%; top: 9%;  rotate: -11deg; --depth: 0.8; }
.cap--development { left: 0;   top: 55%; rotate: 4deg;   --depth: 1; }
.cap--content     { right: 0;  top: 53%; rotate: 6deg;   --depth: 1.4; }

.cap__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5cqi;
  padding: 2cqi 1.4cqi 1.8cqi;
  border-radius: 2.2cqi;
  border: 1px solid rgba(150, 175, 255, 0.32);
  background: linear-gradient(150deg, rgba(40, 52, 120, 0.38), rgba(8, 10, 32, 0.62) 60%);
  -webkit-backdrop-filter: blur(10px) saturate(130%);
  backdrop-filter: blur(10px) saturate(130%);
  box-shadow:
    inset 0 1px 0 rgba(200, 215, 255, 0.18),
    0 12px 40px rgba(0, 0, 0, 0.55),
    0 0 22px rgba(90, 110, 255, 0.28);
  text-align: center;
  animation: card-float 7s ease-in-out infinite alternate;
}
.cap--marketing .cap__card   { animation-delay: -2.4s; animation-duration: 8s; }
.cap--development .cap__card { animation-delay: -4.1s; animation-duration: 7.5s; }
.cap--content .cap__card     { animation-delay: -1.2s; animation-duration: 8.6s; }

.cap__icon {
  width: 5cqi;
  height: 5cqi;
  min-width: 22px;
  min-height: 22px;
  fill: none;
  stroke: url(#ink-grad);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 5px rgba(140, 150, 255, 0.7));
}
.cap__title {
  margin-top: 0.4cqi;
  font-family: var(--font-display);
  font-size: clamp(0.72rem, 2.25cqi, 1.05rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: #f1f3ff;
}
.cap__text {
  font-size: clamp(0.6rem, 1.5cqi, 0.78rem);
  line-height: 1.35;
  color: var(--muted);
}

/* Smaller stages: titles only, slightly larger cards */
@container (max-width: 520px) {
  .cap { width: 25cqi; }
  .cap__text { display: none; }
  .cap__card { padding: 2.6cqi 1.6cqi 2.4cqi; border-radius: 3cqi; }
  .cap__title { font-size: clamp(0.68rem, 3.4cqi, 0.9rem); }
  .cap__icon { width: 6.4cqi; height: 6.4cqi; }
}

/* ---------- 10. Footer ---------- */
.site-footer {
  padding-block: 0 1.8rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.site-footer__divider {
  width: min(1100px, 88%);
  height: 1px;
  margin: 0 auto 1.6rem;
  background: linear-gradient(90deg, transparent, rgba(120, 160, 255, 0.75) 30%, rgba(176, 107, 255, 0.75) 70%, transparent);
  box-shadow: 0 0 12px rgba(120, 130, 255, 0.6);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem 2rem;
}

.logo--sm .logo__mark { font-size: 1.15rem; }

.site-footer__note a {
  color: var(--text-soft);
  text-decoration: none;
  background-image: linear-gradient(var(--indigo), var(--violet));
  background-size: 100% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 2px;
}
.site-footer__note a:hover { color: #fff; }

.motion-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 36px;
  padding: 0.4rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10, 14, 36, 0.6);
  font-size: 0.78rem;
  color: var(--text-soft);
  cursor: pointer;
  transition: border-color 0.3s ease, color 0.3s ease;
}
.motion-toggle:hover { border-color: rgba(150, 175, 255, 0.55); color: #fff; }
/* Pause icon (two bars) -> play icon (triangle) when paused */
.motion-toggle__icon {
  width: 9px;
  height: 10px;
  border-left: 3px solid currentColor;
  border-right: 3px solid currentColor;
}
.motion-toggle[aria-pressed="true"] .motion-toggle__icon {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 0 5px 9px;
  border-color: transparent transparent transparent currentColor;
}

/* ---------- 11. Animations ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: none; }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes orb-in {
  from { opacity: 0; scale: 0.9; filter: blur(12px); }
  to   { opacity: 1; scale: 1; filter: none; }
}
@keyframes card-in {
  from { opacity: 0; scale: 0.82; }
  to   { opacity: 1; scale: 1; }
}
@keyframes float {
  0%, 100% { transform: translateY(-1.1%); }
  50%      { transform: translateY(1.1%); }
}
@keyframes card-float {
  from { transform: translateY(0); }
  to   { transform: translateY(-1.6cqi); }
}
@keyframes spin { to { --spin: 360deg; } }
@keyframes breathe {
  0%, 100% { opacity: 0.75; }
  50%      { opacity: 1; }
}
@keyframes ping {
  0%   { transform: scale(1); opacity: 0.9; }
  80%, 100% { transform: scale(3.2); opacity: 0; }
}
@keyframes drift-a { to { transform: translate(-6vmax, 5vmax); } }
@keyframes drift-b { to { transform: translate(5vmax, -4vmax) scale(1.08); } }

.anim { animation: rise 0.95s var(--ease-out) both; }
.anim--1 { animation-delay: 0.15s; }
.anim--2 { animation-delay: 0.28s; }
.anim--3 { animation-delay: 0.4s; }
.anim--4 { animation-delay: 0.55s; }
.anim--5 { animation-delay: 0.7s; }
.anim--6 { animation-delay: 0.85s; }

.anim-orb { animation: orb-in 1.5s var(--ease-out) 0.2s both; }
.anim-card { animation: card-in 1s var(--ease-out) both; }
.anim-card--1 { animation-delay: 1s; }
.anim-card--2 { animation-delay: 1.15s; }
.anim-card--3 { animation-delay: 1.3s; }
.anim-card--4 { animation-delay: 1.45s; }

/* ---------- 12. Responsive ---------- */

/* Small laptops & landscape tablets */
@media (max-width: 1180px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .atmosphere__beam { left: 70%; }
}

/* Portrait tablets & phones: stacked, centred composition */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    grid-template-areas:
      "intro"
      "visual"
      "details";
    justify-items: center;
    min-height: 0;
    padding-top: clamp(1rem, 4vh, 2.5rem);
    text-align: center;
  }
  .hero__intro,
  .hero__details { width: 100%; max-width: 38rem; }
  .hero__visual { width: 100%; margin-top: clamp(0.5rem, 3vw, 1.5rem); }
  .orb-stage { width: min(100%, 560px, 60svh); }
  .hero__title { font-size: clamp(2.7rem, 11.5vw, 4.6rem); }
  .atmosphere__dunes { opacity: 0.55; }
  .hero__desc { margin-inline: auto; }
  .hero__actions { justify-content: center; flex-direction: column; }
  .atmosphere__beam { left: 50%; top: 18vh; width: 60vw; }
  .atmosphere__glow--b { left: 0; top: 30%; }
  .site-footer__inner { justify-content: center; text-align: center; flex-direction: column; }
}

/* Phones */
@media (max-width: 640px) {
  .site-header {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
  }
  .logo { align-items: center; }
  .tagline {
    justify-content: center;
    padding-top: 0;
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    gap: 0 0.8em;
  }
  .eyebrow { font-size: 0.64rem; letter-spacing: 0.32em; }
  .hero__title { margin-top: 0.9rem; }
  .orb-stage { width: min(100%, 460px); aspect-ratio: 1 / 1.08; }
  .hero__visual { margin-inline: calc(var(--gutter) * -0.5); width: calc(100% + var(--gutter)); }

  /* Cards move to the four corners so they never collide */
  .cap--design      { left: 0;  top: 9%;  rotate: 5deg; }
  .cap--marketing   { right: 0; top: 5%;  rotate: -8deg; }
  .cap--development { left: 0;  top: 66%; rotate: 3deg; }
  .cap--content     { right: 0; top: 65%; rotate: 5deg; }

  .platform { top: 88cqi; }

  /* Lighter glass on phones: skip the per-frame backdrop blur */
  .cap__card {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: linear-gradient(150deg, rgba(34, 44, 106, 0.72), rgba(8, 10, 32, 0.9) 60%);
  }
}

@media (max-width: 360px) {
  .tagline { letter-spacing: 0.22em; }
  .cta { padding-inline: 1.35rem 1.2rem; }
}

/* Short desktop windows: keep the orb within view */
@media (min-width: 901px) and (max-height: 720px) {
  .orb-stage { width: min(100%, 680px, 78svh); }
}

/* ---------- 13. Reduced motion / paused motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Set by the "Pause motion" control (WCAG 2.2.2) */
.motion-paused *,
.motion-paused *::before,
.motion-paused *::after {
  animation-play-state: paused !important;
}

/* Browsers without container-query units: sensible fallbacks */
@supports not (width: 1cqi) {
  .cap { width: 150px; }
  .platform { top: 86%; width: 90%; height: 13%; }
}

/* ---------- 404 page ---------- */
.notfound {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  padding-block: 3rem;
  text-align: center;
}
.notfound__orb {
  width: min(320px, 70vw);
  height: auto;
  margin-bottom: 0.5rem;
  -webkit-mask: radial-gradient(circle at 50% 45%, #000 52%, transparent 72%);
  mask: radial-gradient(circle at 50% 45%, #000 52%, transparent 72%);
}
.notfound__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.notfound .hero__desc { margin: 0 auto 0.8rem; }
.notfound .cta { text-decoration: none; }
