/* ==========================================================================
   home.css: the home page. The water (hero), the surface line, the path, the
   picker, the two units, the steps, who it's for, trust.
   ========================================================================== */

/* The water. The canvas (wake.js) sits behind everything; the hero is the one
   place on the site that may hold a gradient, and it is light fading into water. */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(60% 55% at 72% 72%, rgba(0, 229, 255, 0.16), transparent 70%), radial-gradient(40% 30% at 30% 95%, rgba(0, 229, 255, 0.08), transparent 70%); }
.wake-canvas { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-in { display: grid; grid-template-columns: minmax(0, 44fr) minmax(0, 56fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; min-height: calc(100vh - var(--bar-height)); min-height: calc(100svh - var(--bar-height)); padding-block: clamp(3rem, 7vh, 5rem); }
.hero-copy { position: relative; z-index: 2; max-width: 36rem; }
.hero h1 { font-size: clamp(2.6rem, 1.8rem + 3vw, 4rem); }
.hero-copy .lede { margin-top: 1.5rem; }
.hero-copy .btn-row { margin-top: 2.25rem; }
.hero-line { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-top: 2.25rem; color: var(--quiet); font-size: var(--size-sm); }
.hero-line .num { color: var(--text); font-weight: 500; }
.hero-sep { width: 1px; height: 0.9em; background: var(--hair-strong); }

/* The units stand in the water: CYGM near and large (about 620 px at 1440), CYGM+
   behind and to its right at about 60 percent, both lit. The plates are the owner's
   photographs cut out as they are, screens as photographed. */
.units { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); align-items: end; min-height: 30rem; margin-right: calc(-1 * var(--gutter)); }
.unit { position: relative; margin: 0; min-width: 0; }
.unit-cygm { width: 86%; justify-self: start; z-index: 2; align-self: end; margin-top: 5rem; }
.unit-plus { position: absolute; right: -6%; top: 0; width: 62%; z-index: 1; }
.unit-shot { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.unit-shot { position: relative; }
.unit-shot img { position: relative; z-index: 1; width: 100%; height: auto; }
.unit-plus .unit-shot img { filter: brightness(0.72) saturate(0.85); }
/* The water under each unit: the screen's light pooling on the surface, and the unit's
   own reflection fading into the dark. */
.unit-shot::before { content: ""; position: absolute; left: 10%; right: 10%; bottom: -4%; height: 16%; z-index: 0; background: radial-gradient(50% 50% at 50% 50%, var(--lum-faint), transparent 70%); filter: blur(10px); }
.unit-shot img.unit-reflect { position: absolute; left: 0; right: 0; top: 97%; width: 100%; height: auto; transform: scaleY(-1); opacity: 0.28; filter: blur(5px); z-index: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent 55%); mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent 55%); }
.unit-plus .unit-reflect { opacity: 0.18; }
.unit-labels { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem 2rem; align-items: start; margin-top: 1rem; }
.unit-label { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.unit-name { font: 300 1.1rem / 1 var(--font-display); letter-spacing: 0.06em; color: var(--lum); text-shadow: 0 0 12px var(--lum-soft); }
.unit-ver { color: var(--quiet); font-size: 0.75rem; }
.unit-cap { flex-basis: 100%; color: var(--quiet); font-size: var(--size-xs); }
.unit-cap a { color: var(--mute); }
.unit-label-plus { justify-content: flex-end; text-align: right; }
.unit-label-plus .unit-name { font-size: 0.95rem; }
.unit-note { margin-top: 1.5rem; color: var(--quiet); font-size: var(--size-xs); }

@media (max-width: 64rem) {
  .hero-in { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-copy { max-width: 40rem; }
  .units { max-width: 40rem; min-height: 0; }
}
@media (max-width: 34rem) {
  .unit-cygm { width: 100%; }
  .units { margin-right: 0; }
  .unit-plus { position: static; width: 72%; justify-self: end; margin-top: 2.5rem; }
  .unit-labels { grid-template-columns: minmax(0, 1fr); }
  .unit-label-plus { justify-content: flex-start; text-align: left; }
  .unit-cygm { margin-top: 0; }
  .unit-plus .unit-shot img { filter: none; }
}

/* The surface line: a hairline band with tonight's count. */
.tonight { border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); background: var(--ink-800); }
.tonight-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 2rem; padding-block: 1rem; }
.tonight-count { color: var(--mute); font-size: var(--size-sm); }
.tonight-count a { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; color: var(--text); }
.tonight-count a:hover { color: var(--lum); }
.tonight-count b { font-weight: 500; }
.tonight-dot { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--zone-ok); box-shadow: 0 0 10px 1px rgba(34, 197, 94, 0.6); }
.tonight-links { display: flex; flex-wrap: wrap; gap: 1.5rem; font-size: var(--size-sm); }
.tonight-links a { color: var(--mute); text-decoration: none; }
.tonight-links a:hover { color: var(--lum); }

/* The path a reading takes: four points on one line, the last one lit. */
.path { position: relative; list-style: none; margin: 0 0 clamp(2.5rem, 5vw, 4rem); padding: 2rem 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.path::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, var(--hair-strong) 0%, var(--hair-strong) 72%, var(--wake) 100%); }
.path li { position: relative; display: grid; gap: 0.3rem; }
.path li::before { content: ""; position: absolute; top: calc(-2rem - 4px); left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--hair-strong); }
.path li b { font: 400 1.15rem / 1.2 var(--font-display); color: var(--text); }
.path li span { color: var(--mute); font-size: var(--size-sm); }
.path-lit b { color: var(--lum); text-shadow: 0 0 12px var(--lum-soft); }
.path-lit::before { background: var(--wake) !important; box-shadow: 0 0 14px 2px var(--lum-soft); }
@media (max-width: 52rem) {
  .path { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; padding: 0 0 0 1.75rem; }
  .path::before { top: 0.4rem; bottom: 0.4rem; left: 4px; right: auto; width: 1px; height: auto; background: linear-gradient(180deg, var(--hair-strong) 0%, var(--hair-strong) 72%, var(--wake) 100%); }
  .path li::before { top: 0.45em; left: -1.75rem; }
}

/* The picker: a pane with the live tab's three steps. */
.picker { max-width: 48rem; }
.picker-q { margin-bottom: 1rem; }
.picker-panel { padding: 1.5rem 0 0; display: grid; gap: 1.1rem; }
.picker-fits { color: var(--quiet); font-size: var(--size-sm); }
.picker-steps { margin: 0; padding: 0; list-style: none; counter-reset: ps; display: grid; gap: 0.75rem; }
.picker-steps li { counter-increment: ps; position: relative; padding-left: 2.4rem; color: var(--mute); }
.picker-steps li::before { content: counter(ps); position: absolute; left: 0; top: 0.05em; width: 1.6rem; height: 1.6rem; display: grid; place-items: center; border: 1px solid var(--lum-soft); border-radius: 50%; color: var(--lum); font: 500 0.8rem / 1 var(--font-mono); }
.picker-steps b { color: var(--text); font-weight: 600; }

/* The two units: CYGM's pane is the live one and takes seven columns of twelve. */
.models { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.25rem, 2.5vw, 2rem); align-items: start; }
.model { padding: clamp(1.25rem, 2.5vw, 2rem); display: grid; gap: 1.25rem; }
.model-head { display: flex; align-items: center; gap: 0.75rem; }
.model-head h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 300; letter-spacing: 0.02em; }
.model-ver { color: var(--quiet); font-size: 0.8rem; }
.model-photo { display: block; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--hair); }
.model-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.model-plus .model-photo img { aspect-ratio: 4 / 3; }
.model-sum { color: var(--mute); }
.model .specs > div { grid-template-columns: 5.5rem minmax(0, 1fr); }
.model .btn-row { gap: 1.25rem; }
@media (max-width: 52rem) { .models { grid-template-columns: minmax(0, 1fr); } }

/* Who it's for. */
.who { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; padding-top: clamp(1.5rem, 3vw, 2.5rem); }
.who-photo { overflow: hidden; border-radius: var(--radius-card); border: 1px solid var(--hair); }
.who-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.who-copy { display: grid; gap: 1rem; }
.who-copy p { color: var(--mute); }
@media (max-width: 52rem) { .who { grid-template-columns: minmax(0, 1fr); } }

/* Trust. */
.trust { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.trust-col { display: grid; gap: 1.25rem; }
.trust h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); }
.quote { font: 300 clamp(1.3rem, 1.05rem + 1vw, 1.8rem) / 1.35 var(--font-display); color: var(--lum); text-shadow: var(--lum-text-shadow); letter-spacing: -0.01em; }
.quote::before { content: "\201C"; margin-right: 0.1em; opacity: 0.6; }
.quote-by { display: flex; align-items: center; gap: 0.9rem; color: var(--mute); font-size: var(--size-sm); }
.quote-by img { width: 3.25rem; height: 3.25rem; border-radius: 50%; border: 1px solid var(--hair-strong); }
.quote-by b { display: block; color: var(--text); }
.hint { color: var(--quiet); font-size: var(--size-sm); }
@media (max-width: 52rem) { .trust { grid-template-columns: minmax(0, 1fr); } }

/* The released unit's card photo: the desk shot, cropped in on the unit. */
.model-photo-close img { transform: scale(1.45); transform-origin: 52% 48%; }
