/* ==========================================================================
   WIZKET — about.css  (Section 3: About)
   Global tokens only. Orange appears in four tiny places: the headline's full
   stop, the orbiting dot, the cursor/index dots, and the CTA hover fill.
   Desktop: copy left · sphere right · service index along the bottom.
   ≤900px: eyebrow → sphere → headline → CTA → index (stacked, sphere first).
   ========================================================================== */
.about {
  --about-pad: clamp(20px, 3.4vw, 48px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: max(100svh, 700px);
  background:
    radial-gradient(44% 60% at 68% 50%, var(--petrol) 0%, transparent 72%),
    var(--bg);
  transition: background-color 0.6s var(--ease-io);
}

/* ---------- stage (sphere) ---------- */
.about__stage {
  position: absolute;
  z-index: 1;
  top: 76px;
  bottom: 96px;
  left: 36%;
  right: 0;
  display: flex;
  flex-direction: column;
}
.about__view {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
}
.about__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  cursor: grab;
  touch-action: pan-y;           /* vertical = page scroll, horizontal = spin */
  -webkit-tap-highlight-color: transparent;
}
.about__canvas.is-dragging { cursor: grabbing; }

/* rings echo the hero's concentric ellipses; the dot is the only orange in motion */
.about__ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--orb, 640px) * 1.12);
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.about__ring--orbit {
  width: calc(var(--orb, 640px) * 1.26);
  border-color: var(--line);
  animation: about-orbit 70s linear infinite;
}
.about__ring--orbit::after {
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: var(--accent);
}
@keyframes about-orbit {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* graceful fallback if WebGL is unavailable */
.about__fallback {
  display: none;
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--orb, 60%) * 0.86);
  max-width: 86%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid var(--line2);
}
.about--nogl .about__fallback { display: block; }
.about--nogl .about__canvas { display: none; }

/* ---------- cursor chip (fine pointers only) ---------- */
.about__cursor {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  pointer-events: none;
  display: none;
  will-change: transform;
}
@media (hover: hover) and (pointer: fine) { .about__cursor { display: block; } }
.about__cursor-in {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 0 16px;
  padding: 8px 13px 8px 10px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font: 600 10.5px/1 var(--font-body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transform: scale(0.7);
  transform-origin: 0 0;
  transition: opacity 0.35s var(--ease-out), transform 0.5s var(--ease-out);
}
.about__cursor-in i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.about__cursor.is-on .about__cursor-in { opacity: 1; transform: scale(1); }

/* ---------- copy ---------- */
.about__inner {
  position: relative;
  z-index: 2;
  min-height: inherit;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(104px, 14vh, 140px) var(--about-pad) 0;
  pointer-events: none;           /* the sphere stays draggable under the text column */
}
.about__cta-wrap,
.about__services { pointer-events: auto; }
.about__cta-wrap { justify-self: start; }

.about__eyebrow {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  font: 600 12px/1 var(--font-body);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text);
}
.about__rule { width: 36px; height: 1px; background: var(--line2); }

.about__copy {
  align-self: center;
  display: grid;
  justify-items: start;
  gap: clamp(22px, 3.4vh, 34px);
  padding: 4vh 0;
}
.about__title {
  margin: 0;
  font: 400 clamp(3.6rem, min(7vw, 14vh), 8.6rem)/0.9 var(--font-display);
  letter-spacing: 0.004em;
  text-transform: uppercase;
  color: var(--text);
}
.about__line { display: block; overflow: hidden; padding-bottom: 0.05em; margin-bottom: -0.05em; }
.about__line > span { display: block; will-change: transform; }
.about__line > span.is-accent { color: var(--accent); }
.about__dot { font-style: normal; color: var(--accent); }

.about__tag {
  margin: 0;
  font: 500 clamp(0.72rem, 0.95vw, 0.84rem)/1.4 var(--font-body);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.about__tag i { font-style: normal; margin: 0 0.55em; color: var(--text); opacity: 0.55; }

.about__cta { height: 52px; padding: 0 30px; font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase; }

/* ---------- service index ---------- */
.about__services {
  margin: 0;
  padding: 18px 0 clamp(22px, 3.4vh, 34px);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  font: 500 11.5px/1 var(--font-body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.about__services li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 0;
  cursor: default;
  transition: color 0.5s var(--ease-io);
}
.about__services span { font-variant-numeric: tabular-nums; opacity: 0.55; }
.about__services i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  transform: scale(0);
  transition: transform 0.5s var(--ease-out);
}
.about__services li.is-active { color: var(--text); }
.about__services li.is-active i { transform: scale(1); }

/* swipe hint: touch screens only */
.about__hint {
  display: none;
  margin: 8px auto 0;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font: 500 11px/1 var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  transition: opacity 0.5s var(--ease-io);
}
@media (hover: none) { .about__hint { display: inline-flex; } }
.about.is-touched .about__hint { opacity: 0 !important; }

/* ---------- laptop ---------- */
@media (max-width: 1180px) {
  .about__stage { left: 40%; }
  .about__services { font-size: 10.5px; letter-spacing: 0.12em; gap: 10px; }
}

/* ---------- tablet & phone: stacked, sphere first ---------- */
@media (max-width: 900px) {
  .about {
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 104px var(--about-pad) 32px;
  }
  .about__inner { display: contents; }
  .about__eyebrow { order: 1; }
  .about__stage {
    order: 2;
    position: relative;
    inset: auto;
    margin: 4px calc(var(--about-pad) * -1) 0;
  }
  .about__view { flex: none; height: min(96vw, 60svh, 560px); }
  .about__ring, .about__ring--orbit { display: none; }
  .about__copy { order: 3; align-self: stretch; padding: 8px 0 0; gap: 22px; }
  .about__title { font-size: clamp(3.4rem, 16.5vw, 6.8rem); }
  .about__services {
    order: 5;
    display: grid;
    grid-template-columns: repeat(4, auto);
    justify-content: space-between;
    row-gap: 6px;
    margin-top: 34px;
    padding-top: 16px;
    pointer-events: auto;
  }
}
@media (max-width: 560px) {
  .about { padding-top: 96px; }
  .about__eyebrow { font-size: 11px; letter-spacing: 0.22em; }
  .about__cta-wrap { justify-self: stretch; }
  .about__cta { width: 100%; }
  .about__services { grid-template-columns: repeat(2, 1fr); font-size: 11px; }
}

/* short landscape */
@media (max-height: 640px) and (min-width: 901px) {
  .about__title { font-size: clamp(3rem, 12vh, 6rem); }
}

@media (prefers-reduced-motion: reduce) {
  .about__ring--orbit { animation: none; }
}
