/* Option 2 "Depth" - home, opt17: every service at once. The services are listed in the text column and
   every diagram floats in the sky beside them; pointing at either brings that service forward with its
   description, and a click opens it. On the phone the diagrams take a band under the nav. */

.o2-num { --acc: var(--acc-dk); }
:root[data-theme="light"] .o2-num { --acc: var(--acc-lt); }
:root { --o2-band: 38svh; }

[data-o2="home"].o2-gl .o2-svc { min-height: 100lvh; scroll-margin-top: 0.01px; }
/* rows opening and closing must not move the page: no scroll anchoring here */
[data-o2="home"].o2-gl, [data-o2="home"].o2-gl body { overflow-anchor: none; }
[data-o2="home"].o2-gl .o2-ix {
  position: relative; z-index: 3; box-sizing: border-box; width: var(--o2-col); min-height: 100lvh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--nav-h, 76px) + 2vh) 24px 4vh var(--container-pad);
}
[data-o2="home"].o2-gl .o2-intro { height: auto; padding: 0; margin: 0 0 clamp(14px, 3vh, 30px); }
[data-o2="home"].o2-gl .o2-intro .o2-tag { margin-bottom: 12px; }
[data-o2="home"].o2-gl .o2-intro h2 { font-size: clamp(1.45rem, 2.2vw, 2.15rem); max-width: 17ch; }
[data-o2="home"].o2-gl .o2-list { padding: 0; }
[data-o2="home"].o2-gl .o2-seg { height: auto; scroll-margin-top: 0; }
[data-o2="home"].o2-gl .o2-card {
  position: relative; top: auto; width: auto; margin: 0; opacity: 1; pointer-events: auto;
  display: grid; grid-template-columns: 2.6em minmax(0, 1fr); gap: 0 10px; align-items: baseline;
  padding: clamp(5px, 0.95vh, 9px) 0; border-top: 1px solid var(--line);
  transition: opacity .25s ease;
}
[data-o2="home"].o2-gl .o2-seg + .o2-seg .o2-card { border-top: 1px solid var(--line); }
[data-o2="home"].o2-gl .o2-seg:last-child .o2-card { border-bottom: 1px solid var(--line); }
[data-o2="home"].o2-gl .o2-card .o2-xn { grid-column: 1; margin: 0; letter-spacing: .12em; color: var(--dim); transition: color .2s ease; }
[data-o2="home"].o2-gl .o2-card .o2-t { grid-column: 2; margin: 0; font-size: clamp(1.02rem, 1.4vw, 1.36rem); line-height: 1.2; }
/* the description opens under the title of the service being pointed at */
[data-o2="home"].o2-gl .o2-card .o2-x { grid-column: 2; display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .3s cubic-bezier(.2, .7, .2, 1), opacity .18s ease; }
[data-o2="home"].o2-gl .o2-card .o2-xi { overflow: hidden; min-height: 0; }
[data-o2="home"].o2-gl .o2-card.on .o2-x { grid-template-rows: 1fr; opacity: 1; transition: grid-template-rows .36s cubic-bezier(.2, .7, .2, 1), opacity .28s ease .06s; }
[data-o2="home"].o2-gl .o2-card .o2-meta { margin: 8px 0 4px; }
[data-o2="home"].o2-gl .o2-card .o2-d { margin: 0 0 2px; font-size: .9rem; line-height: 1.48; max-width: 60ch; }
[data-o2="home"].o2-gl .o2-card .o2-go { min-height: 34px; }
[data-o2="home"].o2-gl .o2-card.on .o2-xn { color: var(--acc); }
[data-o2="home"].o2-gl .o2-list.has-on .o2-card:not(.on) { opacity: .46; }
[data-o2="home"].o2-gl .o2-svc.o2-hot { cursor: pointer; }
[data-o2="home"].o2-gl .o2-svc.o2-diving .o2-ix { opacity: 0; pointer-events: none; transition: opacity .22s ease; }
[data-o2="home"].o2-gl .o2-svc.o2-instant .o2-ix { transition: none; }
[data-o2="home"].o2-gl .o2-svc.o2-back .o2-card .o2-x { opacity: 0; transition: none; }

/* one sky: the hero's own sky stays where it is while the page scrolls, and the services are drawn in front of it */
[data-o2="home"].o2-gl.o2-sky .hero .bg { position: fixed; top: var(--o2-hero-top, 76px); left: 0; right: 0; bottom: auto; height: var(--o2-hero-h, 100svh); }
[data-o2="home"].o2-gl.o2-sky .o2-svc { background: transparent; z-index: 2; }
[data-o2="home"].o2-gl.o2-sky .o2-stage { position: fixed; top: 0; left: 0; right: 0; height: 100lvh; margin: 0; background: transparent; pointer-events: none; }
[data-o2="home"].o2-gl.o2-sky .o2-veil { display: none; }
/* the sky goes on below the hero, so its bottom edge is not settled into the page: only the glow behind the words stays */
[data-o2="home"].o2-gl.o2-sky .hero .veil { background: radial-gradient(34% 18% at 50% 50%, rgba(var(--sky-rgb), var(--veil-ink)), rgba(var(--sky-rgb), 0) 80%); }

/* each diagram's number, under it in the sky */
.o2-nums { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.o2-num { position: absolute; left: 0; top: 0; font-family: var(--mono); font-size: var(--o2-fs); letter-spacing: .12em; color: var(--acc); opacity: 0; will-change: transform, opacity;
  text-shadow: 0 0 2px rgba(var(--sky-rgb), .95), 0 0 8px rgba(var(--sky-rgb), .9); }
.o2-nogl .o2-nums { display: none; }

/* ---------- portrait / phone: the diagrams in a band under the nav, the list scrolls under it ---------- */
@media (max-aspect-ratio: 9/10) {
  [data-o2="home"].o2-gl .o2-ix { width: auto; min-height: 0; justify-content: flex-start; padding: calc(var(--nav-h, 64px) + var(--o2-band) + 16px) var(--container-pad) 12vh; }
  [data-o2="home"].o2-gl .o2-intro h2 { font-size: 1.36rem; }
  [data-o2="home"].o2-gl .o2-card { padding: 10px 0; }
  [data-o2="home"].o2-gl .o2-card .o2-t { font-size: 1.12rem; }
  [data-o2="home"].o2-gl .o2-card .o2-d { font-size: .9rem; }
}

/* ---------- short landscape (phone on its side): a compact list beside the sky ---------- */
@media (orientation: landscape) and (max-height: 520px) {
  [data-o2="home"].o2-gl .o2-ix { width: 44vw; justify-content: flex-start; padding: calc(var(--nav-h, 56px) + 8px) 12px 14px var(--container-pad); }
  [data-o2="home"].o2-gl .o2-intro { margin-bottom: 8px; }
  [data-o2="home"].o2-gl .o2-intro h2 { display: none; }
  [data-o2="home"].o2-gl .o2-intro .o2-tag { margin: 0; }
  [data-o2="home"].o2-gl .o2-card { padding: 4px 0; gap: 0 8px; }
  [data-o2="home"].o2-gl .o2-card .o2-t { font-size: .96rem; }
  [data-o2="home"].o2-gl .o2-card .o2-meta { display: none; }
  [data-o2="home"].o2-gl .o2-card .o2-d { margin-top: 4px; font-size: .82rem; line-height: 1.4; }
  [data-o2="home"].o2-gl .o2-card .o2-go { min-height: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  [data-o2="home"].o2-gl .o2-card, [data-o2="home"].o2-gl .o2-card .o2-x { transition: none; }
}
.o2-rm[data-o2="home"] .o2-card, .o2-rm[data-o2="home"] .o2-card .o2-x { transition: none !important; }
