
/* ================================================================ v2: the line */
.hdr__new { gap: 8px; }
.hdr__new::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--heat); box-shadow: 0 0 0 3px rgba(226, 104, 60, .18); }

.line { position: relative; background: var(--paper); }
.line__stage { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: var(--paper); }
.line__poster, .line__poster img, .line__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.line__poster img { object-fit: cover; background: var(--paper); }
.line__canvas { opacity: 0; transition: opacity .9s var(--ease); touch-action: pan-y; }
.line.is-3d .line__canvas { opacity: 1; }
.line.is-3d .line__poster { opacity: 0; transition: opacity .9s .2s; }
.line__shade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(243, 241, 236, .95) 0%, rgba(243, 241, 236, .88) 30%, rgba(243, 241, 236, .5) 40%, rgba(243, 241, 236, 0) 50%); }

.line__panels { position: absolute; inset: var(--hdr) auto 0 var(--gut); width: min(520px, 38vw); display: grid; align-items: center; z-index: 3; }
.lp { grid-area: 1 / 1; opacity: var(--w, 0); transform: translate3d(0, calc(var(--d, 0) * -42px), 0); pointer-events: none; will-change: opacity, transform; }
.lp.is-on { pointer-events: auto; }
.line:not(.is-ready) .lp:not(.lp--hero) { opacity: 0; }
.lp__photo { display: none; }
.lp__kick { display: flex; align-items: center; gap: 10px; color: var(--muted); margin-bottom: 18px; }
.lp__kick b { color: var(--blue); font-weight: 500; }
.lp__kick span { margin-right: 6px; }
.lp--hero .lp__kick, .lp--end .lp__kick { color: var(--blue); }
.lp--hero .lp__kick::before, .lp--end .lp__kick::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.lp__h1 { font-size: clamp(46px, 6.2vw, 108px); line-height: .92; font-weight: 680; font-stretch: 92%; letter-spacing: -.035em; margin-bottom: 26px; }
.lp__h1--end { font-size: clamp(44px, 5.4vw, 92px); }
.lp--hero .lp__h1 .ln > span { transform: none; transition: none; animation: lnUp 1.1s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms + 60ms); }
@keyframes lnUp { from { transform: translateY(105%); } }
.lp__sub { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.5; color: var(--muted); max-width: 34ch; margin-bottom: 30px; }
.lp__ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.lp__name { font-size: clamp(54px, 6.4vw, 118px); line-height: .88; font-weight: 760; font-stretch: 78%; letter-spacing: -.035em; }
.lp__type { font-size: 17px; font-weight: 560; color: var(--blue); margin: 12px 0 18px; }
.lp__line { font-size: clamp(20px, 1.7vw, 26px); line-height: 1.25; font-weight: 520; letter-spacing: -.01em; max-width: 22ch; margin-bottom: 26px; }
.lp__specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; border-top: 1px solid var(--line); padding-top: 16px; margin-bottom: 24px; }
.lp__specs dt { font-size: clamp(24px, 2.1vw, 32px); font-weight: 680; font-stretch: 90%; letter-spacing: -.02em; line-height: 1; white-space: nowrap; }
.lp__specs dt small { font-size: 13px; font-weight: 550; margin-left: 4px; color: var(--muted); letter-spacing: 0; }
.lp__specs dd { margin: 6px 0 0; font-size: 12.5px; line-height: 1.35; color: var(--muted); }
.lp__foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.lp__link { display: inline-flex; align-items: center; gap: 12px; padding: 6px 16px 6px 6px; border-radius: 16px; background: #fff; box-shadow: 0 1px 0 var(--line), 0 10px 30px -18px rgba(12, 26, 33, .35); transition: transform .4s var(--ease); }
.lp__link:hover { transform: translateY(-2px); }
.lp__link small { display: block; font-size: 10px; color: var(--muted); }
.lp__link b { font-size: 15px; font-weight: 650; }
.lp__thumb { width: 52px; height: 52px; border-radius: 11px; background: var(--paper); display: grid; place-items: center; overflow: hidden; }
.lp__thumb img { width: 100%; height: 100%; object-fit: contain; background: transparent; }
.lp__vid { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px 0 8px; font-size: 14px; font-weight: 600; border-radius: 999px; }
.lp__vid i { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); position: relative; }
.lp__vid i::after { content: ""; position: absolute; left: 12px; top: 10px; border: 5px solid transparent; border-left: 8px solid #fff; }
.lp__vid:hover i { background: var(--blue); }

.line__rail { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 4; display: flex; gap: 4px; transition: opacity .5s; background: rgba(243, 241, 236, .82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); padding: 5px; border-radius: 999px; box-shadow: 0 0 0 1px var(--line); }
.line__rail a { display: flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 999px; color: var(--muted); transition: background-color .35s, color .35s; }
.line__rail span { font-size: 10.5px; letter-spacing: .08em; }
.line__rail b { font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.line__rail a:hover { color: var(--ink); }
.line__rail a.on { background: var(--ink); color: #fff; }
.line.at-hero .line__rail, .line.at-end .line__rail { opacity: 0; pointer-events: none; }
.line__hint { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 4; display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--muted); transition: opacity .5s; }
.line__hint i { width: 1px; height: 38px; background: linear-gradient(var(--ink), transparent); animation: hint 1.8s var(--ease) infinite; transform-origin: top; }
.line__hint.off { opacity: 0; }
@keyframes hint { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
.line__note { position: absolute; left: var(--gut); bottom: 30px; z-index: 4; color: var(--muted); font-size: 10.5px; }
.line__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(12, 26, 33, .07); z-index: 4; }
.line__bar span { display: block; height: 100%; background: var(--blue); transform-origin: left; transform: scaleX(0); }

/* labels pinned to the 3D parts */
.line__callouts { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.co { position: absolute; left: 0; top: 0; display: none; will-change: transform, opacity; }
.co__dot { position: absolute; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px rgba(0, 98, 139, .2), 0 0 0 1px #fff inset; }
.co__ln { position: absolute; left: 0; top: 0; width: 48px; height: 1.5px; background: var(--ink); transform-origin: 0 50%; transform: rotate(-38deg); }
.co__t { position: absolute; left: 36px; top: -54px; white-space: nowrap; font: 500 12.5px/1.2 "Plex Mono", ui-monospace, monospace; letter-spacing: .02em; color: var(--ink); background: rgba(255, 255, 255, .94); padding: 8px 11px; border-radius: 9px; box-shadow: 0 8px 24px -12px rgba(12, 26, 33, .45); }
.co--l .co__ln { transform: rotate(-142deg); }
.co--l .co__t { left: auto; right: 36px; }
.co--d .co__ln { transform: rotate(38deg); }
.co--d .co__t { top: 22px; }
.co--dl .co__ln { transform: rotate(142deg); }
.co--dl .co__t { top: 22px; left: auto; right: 36px; }

/* no WebGL, reduced motion or no GSAP: a calm stacked version */
.no-3d .line__canvas, .no-3d .line__callouts { display: none; }
.line.is-static .line__stage, .no-3d .line.is-static .line__stage { height: auto; overflow: visible; }
.line.is-static .line__poster { position: relative; height: 70vh; }
.line.is-static .line__panels { position: relative; inset: auto; width: auto; display: block; padding: 48px var(--gut) 80px; }
.line.is-static .lp { opacity: 1; transform: none; pointer-events: auto; padding: 48px 0; border-top: 1px solid var(--line); max-width: 640px; }
.line.is-static .lp--hero { position: absolute; top: calc(var(--hdr) + 40px); border: 0; }
.line.is-static .lp__photo { display: block; max-width: 420px; margin-bottom: 20px; }
.line.is-static .line__rail, .line.is-static .line__hint, .line.is-static .line__bar, .line.is-static .line__shade, .line.is-static .line__canvas, .line.is-static .line__callouts { display: none; }
.no-3d .line:not(.is-static) .lp__photo { display: block; position: fixed; right: 8vw; top: 50%; width: 40vw; max-width: 620px; transform: translateY(-50%); pointer-events: none; }
.no-3d .line:not(.is-static) .lp__photo img { background: transparent; }
.no-3d .line:not(.is-static) .lp:not(.lp--hero):not(.lp--end) ~ * {}

/* the reel */
.reel { position: relative; min-height: 92vh; display: flex; align-items: flex-end; overflow: hidden; }
.reel__media { position: absolute; inset: -10% 0; }
.reel__video { width: 100%; height: 100%; object-fit: cover; }
.reel__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 26, 33, .15), rgba(12, 26, 33, .1) 40%, rgba(12, 26, 33, .85)); }
.reel__in { position: relative; display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; padding-top: 140px; padding-bottom: 64px; }
.reel .h2 { max-width: 14ch; }

@media (max-width: 1180px) {
  .lp__specs dd { font-size: 12px; }
  .line__rail a:not(.on) b { display: none; }
}
@media (max-width: 759px) {
  .line__shade { background: linear-gradient(0deg, rgba(243, 241, 236, .97) 0%, rgba(243, 241, 236, .92) 40%, rgba(243, 241, 236, 0) 60%); }
  .line__panels { inset: auto var(--gut) 18px var(--gut); width: auto; height: 50%; align-items: end; }
  .lp--hero { align-self: end; }
  .lp__h1 { font-size: clamp(40px, 12vw, 58px); margin-bottom: 16px; }
  .lp__sub { font-size: 15.5px; margin-bottom: 20px; }
  .lp__name { font-size: clamp(44px, 13vw, 62px); }
  .lp__type { font-size: 14px; margin: 6px 0 8px; }
  .lp__line { font-size: 18px; margin-bottom: 14px; }
  .lp__kick { margin-bottom: 10px; font-size: 11px; }
  .lp__specs { gap: 8px; padding-top: 10px; margin-bottom: 14px; }
  .lp__specs dt { font-size: 21px; }
  .lp__specs dd { font-size: 11px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .lp__thumb { width: 40px; height: 40px; }
  .lp__link { padding: 4px 12px 4px 4px; }
  .lp__link b { font-size: 13.5px; }
  .lp__vid { height: 40px; font-size: 13px; }
  .line__rail { display: none; }
  .line__hint { display: none; }
  .line__note { top: calc(var(--hdr) + 12px); bottom: auto; right: var(--gut); }
  .co__t { font-size: 11px; padding: 6px 8px; top: -44px; left: 26px; white-space: normal; width: max-content; max-width: 150px; }
  .co--d .co__t, .co--dl .co__t { top: 18px; }
  .co__ln { width: 36px; }
  .co--l .co__t { right: 26px; }
  .reel { min-height: 70vh; }
  .reel__in { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .lp__h1 .ln > span { animation: none !important; }
  .line__hint i { animation: none; }
}

/* ================================================================ product page: 3D model */
.p3d { padding: clamp(64px, 9vw, 130px) 0 clamp(48px, 7vw, 100px); border-top: 1px solid var(--line); }
.p3d__in { display: grid; grid-template-columns: minmax(280px, 0.8fr) 1.6fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.p3d__note { color: var(--muted); max-width: 34ch; margin: 18px 0 26px; font-size: 15.5px; }
.p3d__ctrl { display: flex; align-items: center; gap: 16px; margin-bottom: 40px; }
.p3d__drag { color: var(--muted); font-size: 11px; }
.p3d__line p { color: var(--muted); margin-bottom: 12px; font-size: 11px; }
.p3d__line ol { display: flex; flex-wrap: wrap; gap: 6px; }
.p3d__line a { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 560; box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); transition: background-color .3s, color .3s; }
.p3d__line a .mono { font-size: 10px; letter-spacing: .06em; }
.p3d__line a:hover { color: var(--ink); background: #fff; }
.p3d__line li.on a { background: var(--ink); color: #fff; box-shadow: none; }
.p3d__stage { position: relative; aspect-ratio: 16 / 11; border-radius: var(--r-lg); overflow: hidden; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.p3d__stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .8s var(--ease); cursor: grab; touch-action: pan-y; }
.p3d__stage canvas:active { cursor: grabbing; }
.p3d.is-3d .p3d__stage canvas { opacity: 1; }
.p3d__poster { position: absolute; inset: 12%; width: 76%; height: 76%; object-fit: contain; background: transparent; transition: opacity .6s; }
.p3d.is-3d .p3d__poster { opacity: 0; }
.p3d.no-3d .p3d__ctrl, .p3d.no-3d .p3d__note { display: none; }
.p3d__callouts { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

/* ================================================================ builder */
.page-bld .ftr { position: relative; z-index: 2; }
.bld { display: grid; grid-template-columns: minmax(420px, 0.9fr) 1.25fr; min-height: 100vh; }
.bld__stage { position: sticky; top: 0; height: 100vh; height: 100svh; grid-column: 2; grid-row: 1; background: var(--paper); border-left: 1px solid var(--line); }
.bld__stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .8s; cursor: grab; touch-action: pan-y; }
.bld.is-3d .bld__stage canvas { opacity: 1; }
.bld__empty { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; transition: opacity .5s; }
.bld__empty span { color: var(--muted); padding: 10px 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); background: rgba(255, 255, 255, .6); }
.bld.has-line .bld__empty { opacity: 0; }
.bld__note { position: absolute; right: var(--gut); bottom: 22px; color: var(--muted); font-size: 10.5px; }
.bld__ui { grid-column: 1; grid-row: 1; padding: calc(var(--hdr) + 56px) clamp(20px, 3.4vw, 56px) 80px var(--gut); }
.bld__h1 { font-size: clamp(42px, 4.6vw, 76px); line-height: .95; font-weight: 680; font-stretch: 92%; letter-spacing: -.035em; }
.bld__sub { color: var(--muted); margin: 18px 0 40px; max-width: 40ch; }
.bld__step { border: 0; padding: 26px 0 30px; margin: 0; border-top: 1px solid var(--line); min-width: 0; transition: opacity .4s; }
.bld__step[disabled] { opacity: .35; }
.bld__step legend { display: flex; align-items: center; gap: 12px; font-size: 21px; font-weight: 650; letter-spacing: -.01em; padding: 0; margin-bottom: 18px; float: left; width: 100%; }
.bld__step > :not(legend) { clear: both; }
.bld__step legend .mono { color: var(--blue); }
.bld__opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.bopt { position: relative; display: grid; grid-template-rows: auto auto 1fr; gap: 4px; padding: 10px 10px 14px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; transition: box-shadow .3s, transform .4s var(--ease); }
.bopt:hover { transform: translateY(-2px); }
.bopt input { position: absolute; opacity: 0; pointer-events: none; }
.bopt__img { display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--paper); margin-bottom: 8px; }
.bopt__img img { width: 100%; height: 100%; object-fit: cover; }
.bopt__t { font-weight: 650; font-size: 15px; line-height: 1.2; }
.bopt__s { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.bopt:has(input:checked) { box-shadow: 0 0 0 2px var(--blue), 0 12px 30px -18px rgba(0, 98, 139, .6); }
.bopt:has(input:focus-visible) { outline: 2px solid var(--sky); outline-offset: 3px; }
.bq { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 6px 16px; margin-bottom: 18px; }
.bq[hidden], .bq__tog[hidden], .bq__txt[hidden] { display: none; }
.bq label { font-size: 15px; font-weight: 560; color: var(--muted); }
.bq output { font-size: clamp(30px, 3vw, 44px); font-weight: 700; font-stretch: 88%; letter-spacing: -.02em; line-height: 1; }
.bq output small { font-size: 15px; font-weight: 560; color: var(--muted); letter-spacing: 0; }
.bq input[type=range] { grid-column: 1 / -1; width: 100%; -webkit-appearance: none; appearance: none; height: 28px; background: transparent; margin: 6px 0 0; }
.bq input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--blue), var(--blue)) 0 / var(--fill, 40%) 100% no-repeat, rgba(12, 26, 33, .12); }
.bq input[type=range]::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(12, 26, 33, .12); }
.bq input[type=range]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--blue); }
.bq input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -10px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--blue), 0 4px 12px rgba(12, 26, 33, .2); }
.bq input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--blue); }
.bq__scale { grid-column: 1 / -1; display: flex; justify-content: space-between; color: var(--muted); font-size: 10.5px; }
.bq__tog { display: inline-flex; align-items: center; gap: 12px; font-weight: 560; margin: 4px 0 20px; cursor: pointer; }
.bq__tog input { position: absolute; opacity: 0; }
.bq__tog span { width: 42px; height: 24px; border-radius: 999px; background: rgba(12, 26, 33, .15); position: relative; transition: background-color .3s; }
.bq__tog span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .35s var(--ease); }
.bq__tog input:checked + span { background: var(--blue); }
.bq__tog input:checked + span::after { transform: translateX(18px); }
.bq__tog input:focus-visible + span { outline: 2px solid var(--sky); outline-offset: 3px; }
.bq__txt { font-size: 17px; max-width: 36ch; }
.bres { display: grid; gap: 8px; margin-bottom: 18px; }
.bres li { display: grid; grid-template-columns: 34px 1fr; align-items: baseline; padding: 14px 16px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--line); font-weight: 560; animation: bres .6s var(--ease) both; animation-delay: calc(var(--i) * 70ms); }
.bres li .mono { color: var(--blue); }
@keyframes bres { from { opacity: 0; transform: translateY(10px); } }
.bld__fine { font-size: 13px; color: var(--muted); max-width: 52ch; margin-bottom: 22px; }
.bld__ctas { display: flex; flex-wrap: wrap; gap: 10px; }

@media (max-width: 980px) {
  .p3d__in { grid-template-columns: 1fr; }
  .bld { grid-template-columns: 1fr; }
  .bld__stage { grid-column: 1; grid-row: 1; height: 44vh; height: 44svh; top: var(--hdr); z-index: 2; border-left: 0; border-bottom: 1px solid var(--line); }
  .bld__ui { grid-row: 2; padding-top: 40px; }
  .page-bld main { padding-top: var(--hdr); }
}
@media (max-width: 759px) {
  .bld__opts { grid-template-columns: repeat(2, 1fr); }
  .bopt__s { font-size: 11.5px; }
  .p3d__stage { aspect-ratio: 4 / 5; }
}
body.in-line .badge { opacity: 0 !important; pointer-events: none; }
@media print {
  .hdr, .ftr, .badge, .bld__stage, .bld__step:not(.bld__res), .bld__ctas, .mnav { display: none !important; }
  .bld { display: block; } .bld__ui { padding: 0; }
  .bres li { box-shadow: none; border-bottom: 1px solid #ccc; border-radius: 0; }
}
