﻿/* Connections page */
.cn-hero .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
.cn-hero h1 { font-size: clamp(2.3rem, 3.3vw, 3.2rem); }
.cn-hero h1 span { display: block; }
.cn-hero-stage { aspect-ratio: 5 / 4; max-height: 640px; margin-right: -2vw; }

/* list section: copy beside a tilted product card that runs off the right edge */
.cn-list { overflow: clip; }
.cn-list-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.cn-list-copy .lede { margin-top: 20px; }
.cn-tilt { perspective: 1600px; margin-right: -5vw; }
.cn-ui { transform: rotateY(-9deg) rotateX(3deg) rotateZ(.6deg); transform-origin: left center; transition: transform .5s var(--ease); position: relative; min-width: 700px; box-shadow: 0 50px 90px -40px rgba(14, 16, 32, .35), 0 0 0 1px rgba(14, 16, 32, .02); }
.cn-tools { display: flex; align-items: center; gap: 8px; padding: 14px 16px 6px; font-size: .8rem; }
.cn-chip { padding: 5px 12px; border-radius: 8px; border: 1px solid var(--line); color: var(--ink-2); font-weight: 500; }
.cn-chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.cn-search { margin-left: auto; padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); min-width: 160px; }
.cn-new { padding: 6px 12px; border-radius: 8px; background: var(--brand); color: #fff; font-weight: 600; }
.cn-tbl td b { font-weight: 600; }
.cn-dim { color: var(--muted); white-space: nowrap; }
.cn-more { color: var(--muted); letter-spacing: 2px; text-align: right; }
.cn-tbl tbody tr:first-child td { background: var(--brand-soft); }
.cn-tbl td .tag + .tag { margin-left: 2px; }
.cn-menu { position: absolute; right: 22px; top: 156px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px -16px rgba(14, 16, 32, .35); padding: 10px 14px; display: grid; gap: 2px; font-size: .82rem; }
.cn-menu b { font-size: .72rem; color: var(--muted); font-weight: 500; }
.cn-menu span { font-weight: 600; }

/* sticky fan-out section */
.cn-fan { padding-bottom: clamp(40px, 6vw, 80px); }
.cn-fan-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
.cn-fan-stage { position: sticky; top: calc(var(--nav-h) + 12px); height: calc(100dvh - var(--nav-h) - 24px); display: grid; align-items: center; max-height: 760px; }
.cn-fan-3d { aspect-ratio: auto; height: min(100%, 640px); max-height: none; }
.cn-fan-head { padding: clamp(8px, 4vh, 40px) 0 clamp(40px, 12vh, 140px); }
.cn-fan-head .lede { margin-top: 20px; }
.cn-step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 14px; opacity: .38; transition: opacity .5s var(--ease); border-left: 2px solid var(--line); padding-left: clamp(18px, 2.4vw, 32px); }
.cn-step.is-on { opacity: 1; border-left-color: var(--brand); }
.cn-step p { color: var(--ink-2); font-size: 1.12rem; max-width: 40ch; }
.cn-step-tag { font-size: .92rem; font-weight: 600; color: var(--brand); }
.cn-step:last-child { margin-bottom: 4vh; }

/* works with: 3D hub beside four product cards */
.cn-works { padding: clamp(48px, 7vw, 96px) 0 0; }
.cn-works-head { max-width: 560px; margin-bottom: clamp(20px, 3vw, 36px); border-top: 1px solid var(--line); padding-top: 32px; }
.cn-works-head p { margin-top: 14px; color: var(--ink-2); font-size: 1.1rem; }
.cn-works-body { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: center; }
.cn-works-stage { aspect-ratio: 5 / 4; max-height: 480px; }
.cn-works-links { display: grid; gap: 12px; }
.cn-works-card { display: grid; gap: 4px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 18px; background: #fff; text-decoration: none; transition: transform .3s var(--ease), border-color .2s, box-shadow .3s var(--ease); }
.cn-works-card b { font-size: 1.25rem; letter-spacing: -.02em; transition: color .2s; }
.cn-works-card span { color: var(--muted); font-size: .95rem; }
.cn-works-card:hover, .cn-works-card:focus-visible { transform: translateX(6px); border-color: var(--brand); box-shadow: 0 14px 30px -18px rgba(79, 70, 229, .5); }
.cn-works-card:hover b { color: var(--brand); }

@media (max-width: 980px) {
  .cn-hero .hero-grid { grid-template-columns: 1fr; }
  .cn-hero-stage { margin-right: 0; aspect-ratio: 1 / 1; }
  .cn-list-grid, .cn-fan-grid { grid-template-columns: 1fr; }
  .cn-tilt { margin-right: 0; overflow-x: auto; padding-bottom: 20px; }
  .cn-ui { transform: none; min-width: 640px; }
  .cn-fan-stage { top: calc(var(--nav-h) + 4px); height: 40vh; background: #fff; z-index: 5; margin: 0 -24px; padding: 0 24px; }
  .cn-fan-3d { height: 100%; width: 100%; }
  .cn-step { min-height: 46vh; }
  .cn-works-body { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .cn-ui { transform: none; }
  .cn-step { opacity: 1; }
}


@media (max-width: 560px) { .cn-fan-stage { margin: 0 -16px; padding: 0 16px; } }


/* no tinted bands behind the 3D scenes */
.section.soft.cn-fan { background: #fff; }
