/* ==========================================================
   LAPTOP — a rendered black laptop (image frames) with the
   screen content mapped onto its screen
   ========================================================== */
.lp-section { position: relative; padding: clamp(36px, 5vw, 72px) 0; }
.lp-wrap { display: grid; grid-template-columns: 1fr; gap: 18px; align-items: center; }
@media (min-width: 900px) { .lp-wrap { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(20px, 3vw, 48px); } }
.lp-copy h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 4vw, 52px); line-height: 1.05; letter-spacing: -.01em; }
.lp-copy h2 em { font-style: italic; color: var(--iris); }
.lp-copy p { margin-top: 14px; color: var(--dim); font-size: 15px; line-height: 1.6; max-width: 40ch; }
.lp { position: relative; width: 100%; max-width: 680px; justify-self: center; aspect-ratio: 1000 / 760; }
.lp canvas.lp-frames { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.lp-screen {
  position: absolute; left: 0; top: 0; width: 1280px; height: 800px; transform-origin: 0 0;
  overflow: hidden; background: #000; container-type: inline-size; opacity: 0; transition: opacity .45s ease;
  backface-visibility: hidden;
}
.lp.on .lp-screen { opacity: 1; }
.lp-glare { position: absolute; inset: 0; z-index: 30; pointer-events: none; background: linear-gradient(118deg, rgba(255,255,255,.09), rgba(255,255,255,0) 32%); }

/* screens */
.sc { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease, transform .9s cubic-bezier(.3,.75,.25,1); }
.sc.show { opacity: 1; }
.sc-tumble { background: radial-gradient(80% 90% at 50% 40%, #1d2333, #0a0c12); opacity: 1; visibility: hidden; }
.lp.on .sc-tumble { visibility: visible; }
.tb { position: absolute; left: 50%; top: 50%; width: 58%; margin: -21.75% 0 0 -29%; border-radius: 1cqw;
  box-shadow: 0 2cqw 4cqw -1cqw rgba(0,0,0,.8); opacity: 0;
  transform: translate(var(--fx, 0), -140%) rotate(var(--fr0, -30deg)) scale(.9); }
.tb.fall { opacity: 1; transform: translate(var(--tx), var(--ty)) rotate(var(--tr)) scale(1);
  transition: transform .9s cubic-bezier(.2,1.25,.4,1), opacity .25s; }
.tb.merge { transform: translate(0, 0) rotate(0) scale(1.72); opacity: 0;
  transition: transform .8s cubic-bezier(.5,0,.3,1), opacity .7s ease .15s; }
.sc-sheet { transform: scale(.94); }
.sc-sheet.show { transform: none; }
.sc-video { background: #05070b; }
.sc-video video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* the spreadsheet, filling the screen */
.lp .ss { position: absolute; inset: 0; background: #f7f8fa; color: #1d2330; font-size: 1.6cqw; overflow: hidden; }
.lp .ss-bar { display: flex; align-items: center; justify-content: space-between; background: #1f7a4d; color: #fff; padding: .9cqw 1.6cqw; font-size: 1.5cqw; }
.lp .ss-bar .dots { display: flex; gap: .7cqw; } .lp .ss-bar .dots i { width: 1cqw; height: 1cqw; border-radius: 50%; background: rgba(255,255,255,.5); }
.lp .ss-fx { display: flex; gap: 1.4cqw; padding: .8cqw 1.6cqw; border-bottom: 1px solid #dfe3ea; font-family: var(--mono); font-size: 1.5cqw; min-height: 3.6cqw; background: #fff; }
.lp .ss-fx em { font-style: italic; color: #7b8494; }
.lp .fx-t::after { content: ""; display: inline-block; width: 1px; height: 1.1em; background: #1d2330; vertical-align: -2px; animation: caret 1s steps(1) infinite; }
.lp .ss-main { display: grid; grid-template-columns: 69% 31%; height: calc(100% - 8cqw); }
.lp .ss-grid { border-right: 1px solid #e3e7ee; }
.lp .ss-r { display: grid; grid-template-columns: 6% 25% 15% 18% 18% 18%; align-items: center; height: 4.3cqw; border-bottom: 1px solid #e8ebf0; transition: background .35s; }
.lp .ss-r > * { padding: 0 .9cqw; white-space: nowrap; overflow: hidden; }
.lp .ss-r i { font-style: normal; color: #98a0ad; background: #eef1f5; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 1.2cqw; padding: 0; }
.lp .ss-r .n { text-align: right; font-family: var(--mono); font-size: 1.45cqw; font-variant-numeric: tabular-nums; }
.lp .ss-h { background: #eef1f5; font-weight: 600; color: #4a5263; font-size: 1.35cqw; }
.lp .ss-r.sel { background: #e3f1ff; }
.lp .ss-r.flag { background: #fff0ee; } .lp .ss-r.flag .v { color: #c4372c; font-weight: 700; }
.lp .ss-r.fixed { background: #e8f8ee; } .lp .ss-r.fixed .v { color: #1f7a4d; font-weight: 700; }
.lp .ss-side { display: flex; flex-direction: column; gap: 1.4cqw; padding: 1.6cqw; }
.lp .saved { background: #0f1a14; color: #d8ffe6; border-radius: 1.2cqw; padding: 1.2cqw 1.4cqw; }
.lp .saved p { font-family: var(--mono); font-size: 1.05cqw; letter-spacing: .12em; text-transform: uppercase; color: #8fb8a0; margin: 0; }
.lp .saved-n { display: block; font-size: 3.6cqw; font-weight: 700; letter-spacing: -.02em; color: #57e690; font-variant-numeric: tabular-nums; line-height: 1.1; }
.lp .spark { display: block; width: 100%; height: 2.6cqw; }
.lp .spark-p { stroke-dasharray: 160; stroke-dashoffset: 160; transition: stroke-dashoffset 3s ease; }
.lp .gain .spark-p { stroke-dashoffset: 0; }
.lp .cam { position: relative; margin: 0; align-self: center; width: 13cqw; aspect-ratio: 1; border-radius: 50%; overflow: visible; }
.lp .cam img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; box-shadow: 0 0 0 .35cqw #fff, 0 1cqw 2cqw -.6cqw rgba(0,0,0,.45); }
.lp .cam figcaption { position: absolute; left: 50%; bottom: -1.2cqw; transform: translateX(-50%); background: #111; color: #fff; font-size: 1.05cqw; padding: .25cqw .9cqw; border-radius: 100px; display: flex; align-items: center; gap: .5cqw; white-space: nowrap; }
.lp .cam figcaption i { width: .8cqw; height: .8cqw; border-radius: 50%; background: #ff4d4d; animation: rec 1.2s infinite; }
@keyframes rec { 50% { opacity: .25; } }
.lp .ss-chart { margin-top: auto; height: 11cqw; display: flex; align-items: flex-end; gap: 6%; padding: 1cqw; background: #fff; border: 1px solid #dfe3ea; border-radius: .8cqw; opacity: .25; transition: opacity .5s; }
.lp .ss-chart i { flex: 1; height: 8%; background: #1f7a4d; border-radius: 2px 2px 0 0; transition: height .9s cubic-bezier(.3,.8,.2,1); }
.lp .ss-chart i:nth-child(4), .lp .ss-chart i:nth-child(6) { background: #d9a441; }
.lp .ss.chart .ss-chart { opacity: 1; } .lp .ss.chart .ss-chart i { height: var(--h); }
.lp .ss-toast { position: absolute; left: 2%; bottom: 3%; background: #10241a; color: #d8ffe6; font-size: 1.5cqw; padding: 1cqw 1.6cqw; border-radius: 100px; opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .5s; }
.lp .ss-toast b { color: #57e690; }
.lp .ss.toast .ss-toast { opacity: 1; transform: none; }
.lp .cur { position: absolute; left: 30%; top: 40%; width: 2.2cqw; height: 2.2cqw; z-index: 5; transition: left .85s cubic-bezier(.45,.05,.2,1), top .85s cubic-bezier(.45,.05,.2,1); filter: drop-shadow(0 1px 1px rgba(0,0,0,.35)); }
.lp .cur.click { animation: curClick .3s; }
@keyframes curClick { 50% { transform: scale(.8); } }
.lp .coins { position: absolute; inset: 0; pointer-events: none; z-index: 6; }
.lp .coin { position: absolute; width: 2.8cqw; height: 2.8cqw; margin: -1.4cqw 0 0 -1.4cqw; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff3b0, #f2c14e 45%, #b8811c); box-shadow: 0 0 1cqw rgba(242,193,78,.7);
  display: grid; place-items: center; font-size: 1.6cqw; font-weight: 800; color: #7a5208; }
@media (prefers-reduced-motion: reduce) { .tb, .lp-screen { transition: none !important; } }

/* tighter: the copy and the laptop sit closer, the laptop fills its column */
.lp-section { padding: clamp(24px, 3vw, 44px) 0; }
@media (min-width: 900px) {
  .lp-wrap { max-width: 1240px; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(8px, 1.5vw, 24px); }
  .lp-wrap .lp { max-width: none; width: 116%; margin: -5% -6% -6% -10%; }
}
.lp-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 9px; }
.lp-list li { position: relative; padding-left: 24px; font-size: 15px; color: var(--white); }
.lp-list li::before { content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 6px; border-left: 1.6px solid var(--iris); border-bottom: 1.6px solid var(--iris); transform: rotate(-45deg) translateY(-3px); }
.lp-cta { display: inline-flex; align-items: center; gap: 9px; margin-top: 24px; font: 500 14.5px var(--sans); color: var(--void); background: var(--white); padding: 11px 20px; border-radius: 100px; transition: transform .25s; }
.lp-cta svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lp-cta:hover { transform: translateX(3px); }


/* ==========================================================
   3D LAPTOP — real faces in CSS 3D (base, keys, trackpad,
   ports, hinged lid). The screen content rides on the lid.
   ========================================================== */
.lp.lp3d { aspect-ratio: 1000 / 720; }
.l3-scene { position: absolute; inset: 0; perspective: 2400px; perspective-origin: 50% 30%; }
.l3-rig { position: absolute; left: 50%; top: 70%; width: 0; height: 0; transform-style: preserve-3d; }
.l3-base { position: absolute; left: 0; top: 0; transform-style: preserve-3d; border-radius: 18px;
  background: linear-gradient(160deg, #3a3c42 0%, #2a2c31 45%, #1f2125 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.07), inset 0 2px 0 rgba(255,255,255,.08); }
.l3-shadow { position: absolute; left: -4%; top: 2%; width: 108%; height: 104%; border-radius: 40px; transform: translateZ(-15px);
  background: radial-gradient(closest-side, rgba(0,0,0,.55), rgba(0,0,0,0)); filter: blur(10px); }
:root[data-theme="light"] .l3-shadow { background: radial-gradient(closest-side, rgba(20,24,40,.35), rgba(20,24,40,0)); }
.l3-bottom { position: absolute; inset: 0; border-radius: 18px; background: #16171a; transform: translateZ(-13px); }
.l3-face { position: absolute; background: linear-gradient(#2c2e33, #1a1b1f); }
.l3-face.front { left: 10px; right: 10px; top: 430px; height: 13px; transform-origin: top; transform: rotateX(-90deg); border-radius: 0 0 6px 6px; }
.l3-face.front .lip { position: absolute; left: 50%; top: 0; width: 90px; height: 5px; margin-left: -45px; border-radius: 0 0 6px 6px; background: #121316; }
.l3-face.back { left: 10px; right: 10px; top: 0; height: 13px; transform-origin: top; transform: rotateX(-90deg); }
.l3-face.side { top: 12px; bottom: 12px; width: 13px; transform-origin: left; transform: rotateY(90deg); display: flex; flex-direction: column; justify-content: center; gap: 12px; align-items: center;
  background: linear-gradient(90deg, #2d2f34, #1c1d21); }
.l3-face.side.l { left: 0; } .l3-face.side.r { left: 640px; }
.l3-face.side.r { flex-direction: column-reverse; }
.pt { display: block; width: 5px; border-radius: 3px; background: #0a0a0b; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.pt.usbc { height: 22px; } .pt.magsafe { height: 30px; } .pt.jack { height: 6px; width: 6px; border-radius: 50%; }
.pt.hdmi { height: 26px; width: 6px; border-radius: 2px; } .pt.sd { height: 34px; width: 3px; border-radius: 1px; }
.l3-grill { position: absolute; top: 30px; width: 30px; height: 228px; opacity: .55;
  background-image: radial-gradient(circle, #0c0d0f 1px, transparent 1.4px); background-size: 5px 5px; }
.l3-grill.l { left: 14px; } .l3-grill.r { right: 14px; }
.l3-kbd { position: absolute; left: 56px; right: 56px; top: 30px; height: 230px; padding: 7px; border-radius: 10px; background: #111214;
  box-shadow: inset 0 1px 3px rgba(0,0,0,.8); display: grid; grid-template-rows: .62fr repeat(5, 1fr); gap: 5px; }
.l3-row { display: flex; gap: 5px; }
.l3-key { position: relative; display: flex; align-items: center; justify-content: center; border-radius: 5px; font-style: normal;
  background: linear-gradient(180deg, #27282c, #1b1c1f); box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 1px 0 #050506; }
.l3-key b { font: 500 10px/1 var(--sans); color: #c9ccd4; letter-spacing: .01em; text-transform: lowercase; }
.l3-row:not(.fnrow) .l3-key b { text-transform: none; }
.fnrow .l3-key b { font-size: 8px; }
.l3-key.tid { background: radial-gradient(circle at 50% 50%, #2e3036, #17181b); }
.l3-key.ud { flex-direction: column; } .l3-key.ud b { font-size: 8px; }
.l3-pad { position: absolute; left: 50%; top: 278px; width: 300px; height: 134px; margin-left: -150px; border-radius: 10px;
  background: linear-gradient(170deg, #34363c, #26282c); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), inset 0 1px 0 rgba(255,255,255,.08); }
/* lid */
.l3-lid { position: absolute; left: 0; transform-origin: 50% 100%; transform-style: preserve-3d; }
.l3-lid-in { position: absolute; inset: 0; border-radius: 18px 18px 6px 6px; background: #050506; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); backface-visibility: hidden; }
.l3-disp { position: absolute; left: 12px; top: 14px; width: 616px; height: 385px; overflow: hidden; border-radius: 8px; background: #000; }
.l3-disp .lp-screen { left: 0; top: 0; }
.l3-disp::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(118deg, rgba(255,255,255,.10), rgba(255,255,255,0) 34%); z-index: 40; }
.l3-notch { position: absolute; left: 50%; top: 0; width: 84px; height: 12px; margin-left: -42px; border-radius: 0 0 8px 8px; background: #050506; z-index: 41; }
.l3-lid-out { position: absolute; inset: 0; border-radius: 18px 18px 6px 6px; transform: rotateY(180deg) translateZ(6px); backface-visibility: hidden;
  background: linear-gradient(200deg, #3b3d43, #24262b 55%, #1b1c20); box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); display: grid; place-items: center; }
.l3-mark { font: 700 15px var(--sans); letter-spacing: .32em; color: rgba(255,255,255,.18); transform: rotate(180deg); }
.l3-ledge { position: absolute; background: #1d1e22; }
.l3-ledge.top { left: 14px; right: 14px; top: 0; height: 6px; transform-origin: top; transform: rotateX(-90deg); }
.l3-ledge.l, .l3-ledge.r { top: 14px; bottom: 4px; width: 6px; transform-origin: left; transform: rotateY(90deg); }
.l3-ledge.l { left: 0; } .l3-ledge.r { left: 640px; }
.lp3d .lp-glare { display: none; }