/* home.css: the home page's scenes. */

/* ---- hero ------------------------------------------------------------------------------------------------- */
.hero { position: relative; min-height: 100svh; background: radial-gradient(ellipse 60% 50% at 78% 30%, rgba(30, 58, 95, .55), transparent 70%), radial-gradient(ellipse 40% 40% at 90% 90%, rgba(229, 90, 43, .1), transparent 70%), var(--dk); color: var(--dk-text); padding: calc(var(--hdr) + clamp(40px, 6vh, 80px)) 0 clamp(70px, 9vh, 110px); overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero-h1 { display: flex; flex-direction: column; gap: 18px; }
.h1-kw { font-family: var(--mono); font-size: 13.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--dk-mute); }
.h1-main { font-size: clamp(2.3rem, 5.3vw, 5.4rem); line-height: .95; color: #fff; letter-spacing: -.035em; font-stretch: 100%; font-weight: 800; }
.hero .lede { margin-top: 28px; font-size: clamp(1.08rem, 1.45vw, 1.26rem); max-width: 560px; line-height: 1.55; }
.hero-cd { margin-top: 40px; }
.hero-art { height: clamp(460px, 62vh, 640px); }
.hero-art .mf-plane { inset: -16% -30% -16% 10%; }
.hero-art .mf-square { top: -2%; right: 2%; width: clamp(160px, 18vw, 270px); }
.hero-art .mf-block { bottom: -3%; left: 2%; right: auto; width: clamp(90px, 9vw, 140px); background: rgba(229, 90, 43, .2); }
.hero-art .mf-dot { bottom: auto; top: 8%; left: 14%; right: auto; }
.hero-stage { inset: 0; display: grid; place-items: center; }
.hero-note { position: absolute; left: 0; right: 0; bottom: 18px; text-align: right; }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; translate: -50% 0; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--dk-mute); text-decoration: none; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
.scroll-cue i { width: 1px; height: 38px; background: linear-gradient(var(--orange), transparent); animation: cue 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* the schedule board */
.board { --label: 96px; width: min(600px, 100%); background: #fff; color: var(--ink); border-radius: 3px; padding: 16px 16px 20px; font-size: 11px; position: relative; box-shadow: 0 60px 120px -40px rgba(0, 0, 0, .75), 0 30px 60px -30px rgba(6, 11, 19, .6), 0 0 0 1px rgba(255, 255, 255, .08); transform: perspective(1800px) rotateY(var(--ry, -15deg)) rotateX(var(--rx, 7deg)) rotateZ(1deg) scale(var(--bs, 1)); transition: transform 1.2s var(--ease); }
.board::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--navy); }
.board-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.board-title { display: flex; gap: 7px; align-items: center; font-weight: 750; color: var(--navy); font-size: 13.5px; }
.board-title .i { width: 16px; height: 16px; color: var(--orange); }
.board-month { margin-left: auto; color: var(--slate-2); font-size: 11px; }
.board-legend { width: 100%; display: flex; gap: 14px; list-style: none; color: var(--slate-2); font-size: 10.5px; }
.board-legend li { display: flex; align-items: center; gap: 5px; }
.board-legend i { width: 10px; height: 10px; display: inline-block; border-radius: 1px; }
.k-in { background: var(--orange); } .k-conf { background: var(--navy); } .k-quote { border: 1.5px dashed var(--navy); } .k-turn { background: repeating-linear-gradient(45deg, #cbd5e1 0 2px, #f1f5f9 2px 4px); }
.board-grid { position: relative; }
.board-days { display: grid; grid-template-columns: repeat(var(--days), 1fr); margin-left: var(--label); color: var(--slate-2); font-size: 8.5px; padding-bottom: 6px; }
.board-days span { text-align: center; }
.board-row { display: grid; grid-template-columns: var(--label) 1fr; height: 30px; border-top: 1px solid var(--line); align-items: center; }
.board-unit { font-weight: 600; color: var(--slate); font-size: 11px; white-space: nowrap; }
.board-lane { position: relative; height: 100%; background-image: repeating-linear-gradient(90deg, transparent 0 calc(100% / var(--days) - 1px), rgba(15, 23, 42, .045) calc(100% / var(--days) - 1px) calc(100% / var(--days))); }
.bar { position: absolute; top: 5px; bottom: 5px; left: calc(var(--s) * 100% / var(--days)); width: calc(var(--n) * 100% / var(--days) - 2px); border-radius: 2px; display: flex; align-items: center; overflow: hidden; transform-origin: 0 50%; animation: barIn 1s var(--ease) both; animation-delay: calc(.7s + var(--k) * 60ms); transition: width .9s var(--ease), background-color .5s, border-color .5s; }
.bar b { font-size: 9.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 6px; }
.bar-in { background: var(--orange); color: #fff; }
.bar-conf { background: var(--navy); color: #fff; }
.bar-quote { border: 1.5px dashed var(--navy); color: var(--navy); background: rgba(30, 58, 95, .04); }
.bar-turn { background: repeating-linear-gradient(45deg, #cbd5e1 0 3px, #f1f5f9 3px 6px); color: var(--slate); }
.bar.pop { animation: pop .7s var(--ease); }
@keyframes barIn { from { transform: scaleX(0); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.06, 1.25); box-shadow: 0 0 0 4px rgba(229, 90, 43, .25); } 100% { transform: none; } }
.board-today { position: absolute; top: 0; bottom: -6px; left: calc(var(--label) + (100% - var(--label)) * var(--t) / var(--days)); width: 2px; background: var(--orange); animation: dropIn 1s var(--ease) 1.6s both; transform-origin: top; }
.board-today span { position: absolute; top: -2px; left: 4px; font-size: 8.5px; color: #fff; background: var(--orange); padding: 1px 5px; border-radius: 1px; }
@keyframes dropIn { from { transform: scaleY(0); } to { transform: none; } }
.board-toast { position: absolute; right: -22px; bottom: -26px; display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--green); padding: 11px 16px 11px 12px; font-size: 12.5px; font-weight: 600; color: var(--ink); box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .55); transform: translateZ(60px) translateY(14px); opacity: 0; transition: opacity .4s, transform .6s var(--ease); white-space: nowrap; }
.board-toast.show { opacity: 1; transform: translateZ(60px); }
.board-toast i .i { width: 18px; height: 18px; color: var(--green); }

/* ---- the strip -------------------------------------------------------------------------------------------- */
.strip { background: #fff; border-bottom: 1px solid var(--line); padding: 26px 0; }
.strip .marquee-track { animation: none; will-change: transform; align-items: center; gap: 34px; padding-right: 34px; }
.strip span { font-size: clamp(1.4rem, 2.4vw, 2.1rem); font-weight: 750; color: var(--navy); white-space: nowrap; font-stretch: 108%; letter-spacing: -.01em; }
.strip i { width: 11px; height: 11px; background: var(--orange); flex: none; }
.strip i:nth-of-type(3n) { background: none; border: 2px solid var(--navy); opacity: .35; }

/* ---- spreadsheet to board --------------------------------------------------------------------------------- */
.replace { height: 330vh; position: relative; background: var(--paper); }
.replace-stage { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; overflow: hidden; padding-top: calc(var(--hdr) * .6); }
.replace-in { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.replace-p { margin-top: 20px; color: var(--slate); font-size: 17.5px; max-width: 470px; }
.replace-steps { list-style: none; margin-top: 34px; display: grid; gap: 4px; }
.replace-steps li { padding: 14px 0 14px 20px; border-left: 3px solid var(--line); opacity: .4; transition: opacity .5s, border-color .5s; display: grid; gap: 2px; }
.replace-steps li b { color: var(--navy); font-size: 17px; }
.replace-steps li span { color: var(--slate); font-size: 15px; }
.replace-steps li.on { opacity: 1; border-color: var(--orange); }
.morph { position: relative; background: #fff; border: 1px solid var(--line); box-shadow: 0 50px 100px -50px rgba(15, 23, 42, .45); height: min(66svh, 560px); display: flex; flex-direction: column; overflow: hidden; }
.morph::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--navy); z-index: 3; transform: scaleX(var(--st, 0)); transform-origin: left; }
.morph-chrome { height: 40px; flex: none; display: flex; align-items: center; gap: 14px; padding: 0 14px; border-bottom: 1px solid var(--line); background: #f6f8fa; }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #d4dae3; }
.morph-file { position: relative; font-size: 12px; height: 18px; flex: 1; }
.morph-file b { position: absolute; left: 0; top: 0; right: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; transition: opacity .5s, transform .5s var(--ease); }
.f-xls { color: #217346; }
.f-st { color: var(--navy); opacity: 0; transform: translateY(8px); }
.morph.board-mode .f-xls { opacity: 0; transform: translateY(-8px); }
.morph.board-mode .f-st { opacity: 1; transform: none; }
.morph-body { position: relative; flex: 1; overflow: hidden; }
.mc { position: absolute; left: 0; top: 0; display: flex; align-items: center; padding: 0 8px; font-size: 11.5px; white-space: nowrap; overflow: hidden; color: #1f2937; transform-origin: 0 0; box-shadow: inset -1px -1px 0 rgba(203, 213, 225, calc(1 - var(--c, 0))); background: color-mix(in srgb, var(--bar) calc(var(--c, 0) * 100%), var(--cellbg, #fff)); will-change: transform; }
.mc .tx { opacity: calc(1 - var(--c, 0) * 2.4); }
.mc.bad { --cellbg: #fee2e2; }
.mc.warn { --cellbg: #fef9c3; }
.mh { position: absolute; display: flex; align-items: center; justify-content: center; font-size: 10.5px; color: #6b7280; background: #f3f4f6; box-shadow: inset -1px -1px 0 #e5e7eb; transition: opacity .4s; }
.mh.col-t { justify-content: flex-start; padding-left: 8px; font-weight: 700; color: #374151; background: #f9fafb; }
.th { position: absolute; display: flex; align-items: center; font-size: 10px; color: var(--slate-2); opacity: 0; transition: opacity .5s; }
.th.unit { font-weight: 650; color: var(--slate); font-size: 11.5px; padding-left: 10px; }
.th.day { justify-content: center; font-family: var(--mono); font-size: 9px; }
.tline { position: absolute; left: 0; right: 0; height: 1px; background: var(--line); opacity: 0; transition: opacity .5s; }
.board-mode .th, .board-mode .tline { opacity: 1; }
.board-mode .mh { opacity: 0; }
.bl { position: absolute; display: flex; align-items: center; padding: 0 7px; font-size: 10.5px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transition: opacity .4s; pointer-events: none; }
.bl.quote { color: var(--navy); }
.bl.on { opacity: 1; }
.mtoday { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--orange); transform: scaleY(0); transform-origin: top; transition: transform .8s var(--ease); }
.mtoday.on { transform: none; }
.morph-badge { position: absolute; left: 12px; bottom: 10px; display: flex; align-items: center; gap: 10px; max-width: calc(100% - 32px); background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--orange); padding: 10px 14px; font-size: 13px; font-weight: 600; color: var(--ink); box-shadow: 0 20px 40px -20px rgba(15, 23, 42, .45); opacity: 0; transform: translateY(10px); transition: opacity .4s, transform .5s var(--ease); z-index: 4; }
.morph-badge .i { width: 18px; height: 18px; color: var(--orange); }
.morph-badge.on { opacity: 1; transform: none; }
.morph-occ { margin-left: auto; display: flex; align-items: center; gap: 10px; background: var(--navy); color: #fff; padding: 0 12px; height: 28px; opacity: 0; transform: translateY(-6px); transition: opacity .4s, transform .5s var(--ease); }
.morph-occ span { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: #c6d5e8; }
.morph-occ b { font-size: 15px; font-weight: 800; font-stretch: 110%; min-width: 3ch; text-align: right; }
.morph-occ.on { opacity: 1; transform: none; }
.replace .note-sample { text-align: right; }
@media (max-width: 960px) {
  .replace { height: 300vh; }
  .replace-in { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .replace-p, .replace-steps li span { display: none; }
  .replace-steps { margin-top: 12px; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .replace-steps li { padding: 8px 0 8px 10px; }
  .replace-steps li b { font-size: 13px; line-height: 1.25; }
  .replace .h2 { font-size: clamp(1.8rem, 7vw, 2.4rem); }
  .replace .kicker { margin-bottom: 10px; }
  .morph { height: min(50svh, 440px); }
  .dots, .morph-occ span { display: none; }
  .morph-chrome { gap: 10px; }
  .th.unit { font-size: 10px; line-height: 1.15; padding-left: 6px; }
  .morph-badge { font-size: 12px; padding: 8px 10px; left: 8px; bottom: 8px; max-width: calc(100% - 16px); }
}

/* ---- the life of a stay ----------------------------------------------------------------------------------- */
.life { height: 520vh; position: relative; }
.life-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: clamp(20px, 3.4vh, 36px); padding-top: var(--hdr); }
.life-head { position: relative; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.life-head h2 { font-size: clamp(1.9rem, 3.6vw, 3.2rem); max-width: 780px; }
.life-count { font-size: 14px; color: var(--dk-mute); }
.life-count b { color: var(--orange); font-size: 34px; font-weight: 600; }
.life-rail { position: relative; height: 2px; background: rgba(255, 255, 255, .1); margin: 0 var(--gut); }
.life-rail-fill { position: absolute; inset: 0; background: linear-gradient(90deg, var(--navy-700), var(--orange)); transform: scaleX(var(--p, 0)); transform-origin: left; }
.life-dot { position: absolute; top: 50%; left: calc(var(--k) / 8 * 100%); width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; background: var(--dk); border: 2px solid rgba(255, 255, 255, .3); transition: background-color .3s, border-color .3s; }
.life-dot.on { background: var(--orange); border-color: var(--orange); }
.life-unit { position: absolute; top: 50%; left: calc(var(--p, 0) * 100%); width: 18px; height: 18px; margin: -9px 0 0 -9px; background: var(--orange); box-shadow: 0 0 0 6px rgba(229, 90, 43, .2), 0 0 30px rgba(229, 90, 43, .6); }
.life-track { position: relative; display: flex; gap: 26px; padding: 0 var(--gut); transform: translate3d(calc(var(--x, 0) * -1px), 0, 0); will-change: transform; }
.station { --lit: 0; flex: 0 0 clamp(290px, 29vw, 390px); background: var(--dk-2); border: 1px solid var(--dk-line); padding: 28px 26px 26px; position: relative; display: flex; flex-direction: column; opacity: calc(.45 + var(--lit) * .55); transform: translateY(calc((1 - var(--lit)) * 14px)); }
.station::before { content: ''; position: absolute; inset: -1px -1px auto -1px; height: 6px; background: color-mix(in srgb, var(--orange) calc(var(--lit) * 100%), #2c5282); }
.st-n { color: var(--orange); font-size: 13px; font-weight: 700; margin-bottom: 12px; }
.station h3 { font-size: 23px; margin-bottom: 10px; }
.st-p { font-size: 15px; color: var(--dk-mute); line-height: 1.55; min-height: 4.7em; }
.st-ui { margin-top: 22px; }
.life .note-sample { position: absolute; bottom: 14px; right: 0; left: 0; text-align: right; }
/* small screens and reduced motion get the stacked version: no pinning, every station lit */
@media (max-width: 760px), (max-height: 560px), (prefers-reduced-motion: reduce) {
  .life { height: auto; }
  .life-stage { position: relative; height: auto; padding: 90px 0; }
  .life-rail, .life-count { display: none; }
  .life-track { flex-direction: column; transform: none; gap: 18px; }
  .station { flex: none; opacity: 1; transform: none; --lit: 1; }
  .st-p { min-height: 0; }
  .life .note-sample { position: static; padding-top: 18px; }
}
@media (min-width: 761px) and (prefers-reduced-motion: reduce) {
  .life-track { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
}

/* small app screens inside the stations */
.mini { background: #fff; color: var(--ink); border-radius: 3px; padding: 16px; font-size: 13px; position: relative; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6); }
.mini-h { display: flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 700; color: var(--slate-2); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.mini-h .i { width: 15px; height: 15px; color: var(--orange); }
.mini b { color: var(--navy); }
.mini dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 10px 0 12px; font-size: 12.5px; }
.mini dt { color: var(--slate-2); }
.mini dd { margin: 0; font-weight: 600; }
.mini table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.mini td { padding: 5px 0; border-bottom: 1px solid var(--line); }
.mini td:last-child { text-align: right; font-family: var(--mono); font-weight: 600; }
.stamp { position: absolute; right: 14px; top: 12px; border: 2px solid var(--green); color: #15803d; font-weight: 800; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 3px 8px; rotate: 8deg; }
.mini ul { list-style: none; display: grid; gap: 7px; margin-bottom: 10px; }
.mini-sign li { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--line); padding-bottom: 6px; font-size: 12.5px; }
.mini-sign em { font-style: normal; color: #15803d; font-weight: 600; }
.mini-list li { padding-left: 24px; position: relative; font-size: 12.5px; }
.mini-list li::before { content: ''; position: absolute; left: 0; top: 2px; width: 14px; height: 14px; border: 1.5px solid var(--line-2); border-radius: 2px; }
.mini-list li.on::before { background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat; border-color: var(--green); }
.mini-phone { background: transparent; box-shadow: none; padding: 0; display: grid; place-items: center; }
.ph { width: 190px; background: #fff; border: 7px solid #0b1220; border-radius: 22px; padding: 18px 14px; display: grid; gap: 9px; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .7); }
.ph-hi { font-weight: 800; color: var(--navy); font-size: 16px; }
.ph-row { display: flex; justify-content: space-between; font-size: 11.5px; background: var(--paper-2); padding: 7px 9px; border-radius: 2px; }
.ph-row span { color: var(--slate-2); }
.ph-prog { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; font-size: 11px; }
.ph-prog i { height: 5px; background: linear-gradient(var(--green), var(--green)) 0 0 / var(--w) 100% no-repeat, var(--line); }
.tk { list-style: none; display: flex; gap: 6px; margin: 10px 0; padding: 0; counter-reset: none; }
.tk li { flex: 1; font-size: 10.5px; text-align: center; padding: 6px 2px; background: var(--paper-2); color: var(--slate-2); border-radius: 2px; }
.tk li.on { background: rgba(34, 197, 94, .14); color: #15803d; font-weight: 600; }
.mini-foot { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--slate); margin-top: 6px; }
.mini-foot .i { width: 14px; height: 14px; color: var(--navy); }
.ext-lane { position: relative; height: 26px; background: var(--paper-2); margin: 8px 0 10px; }
.ext-lane i { position: absolute; top: 4px; bottom: 4px; border-radius: 2px; }
.ext-a { left: 4%; width: 54%; background: var(--orange); }
.ext-b { left: 58.5%; width: 30%; background: repeating-linear-gradient(45deg, var(--orange) 0 6px, var(--orange-hi) 6px 12px); }
.station .ext-b { transform-origin: left; transform: scaleX(var(--lit)); transition: transform .4s; }
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ba span { height: 74px; background: linear-gradient(180deg, #e2e8f0 0 58%, #cbd5e1 58%); position: relative; font-size: 10px; color: var(--slate); padding: 6px; font-weight: 600; }
.ba-after::after { content: ''; position: absolute; left: 46%; top: 30%; width: 26px; height: 6px; background: #94a3b8; rotate: -12deg; box-shadow: 0 0 0 3px rgba(229, 90, 43, .45); }
.mini-close li { display: flex; justify-content: space-between; font-size: 12.5px; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.mini-close li b { font-family: var(--mono); }
.mini-close b.ok { color: #15803d; font-family: var(--sans); }

/* ---- modules bento ---------------------------------------------------------------------------------------- */
.modules { background: var(--paper-2); }
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.bento-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); padding: 34px 28px 26px; text-decoration: none; color: inherit; min-height: 330px; transition: box-shadow .45s var(--ease), border-color .3s; transform-style: preserve-3d; }
.bento-card::before { content: ''; position: absolute; inset: -1px -1px auto -1px; height: 8px; background: var(--navy); transition: background-color .25s; }
.bento-card:hover { box-shadow: 0 34px 70px -34px rgba(15, 23, 42, .4); }
.bento-card:hover::before { background: var(--orange); }
.b-bookings, .b-billing, .b-accounting { grid-column: span 2; }
.b-portals { grid-column: span 4; min-height: 0; display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 8px 28px; }
.b-portals .bento-ic { margin: 0; }
.b-portals .bento-art { margin: 0; }
.b-portals .card-more { padding: 0; }
.bento-ic { color: var(--navy); margin-bottom: 18px; }
.bento-ic .i { width: 36px; height: 36px; stroke-width: 1.75; }
.bento-card h3 { font-size: 21px; color: var(--navy); margin-bottom: 8px; font-stretch: 104%; }
.bento-card p { color: var(--slate); font-size: 15.5px; }
.bento-art { margin: 22px 0 18px; flex: 1; display: flex; align-items: flex-end; }
.bento-card .card-more { margin-top: 0; }
@media (max-width: 1060px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .b-portals { grid-column: span 2; grid-template-columns: auto 1fr; } .b-portals .bento-art { display: none; } }
@media (max-width: 640px) { .bento { grid-template-columns: minmax(0, 1fr); } .bento-card { grid-column: span 1 !important; min-height: 0; } .b-portals { grid-template-columns: 1fr; } }

.bx { width: 100%; font-size: 12.5px; }
.bx-bars { position: relative; height: 92px; background-image: repeating-linear-gradient(0deg, var(--line) 0 1px, transparent 1px 23px); }
.bx-bars i { position: absolute; height: 14px; border-radius: 2px; left: calc(var(--s) * 10%); width: calc(var(--n) * 10%); top: calc(var(--s) * 0px + 5px); background: var(--orange); transform-origin: left; animation: bxbar 6s var(--ease) infinite; }
.bx-bars i:nth-child(1) { top: 4px; } .bx-bars i:nth-child(2) { top: 27px; background: var(--navy); animation-delay: .3s; } .bx-bars i:nth-child(3) { top: 50px; animation-delay: .6s; } .bx-bars i:nth-child(4) { top: 73px; background: none; border: 1.5px dashed var(--navy); animation-delay: .9s; }
@keyframes bxbar { 0% { transform: scaleX(0); } 18%, 80% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }
.bx-ticks { list-style: none; display: grid; gap: 8px; }
.bx-ticks li { display: flex; align-items: center; gap: 10px; color: var(--slate); }
.bx-ticks li::before { content: ''; width: 16px; height: 16px; border: 1.5px solid var(--line-2); border-radius: 2px; flex: none; animation: tickon 6s steps(1) infinite; }
.bx-ticks li:nth-child(2)::before { animation-delay: .6s; } .bx-ticks li:nth-child(3)::before { animation-delay: 1.2s; } .bx-ticks li:nth-child(4)::before { animation-delay: 1.8s; }
@keyframes tickon { 0% { background: transparent; border-color: var(--line-2); } 12%, 92% { background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; border-color: var(--green); } }
.bx-units { display: grid; grid-template-columns: repeat(8, 1fr); gap: 5px; }
.bx-units i { aspect-ratio: 1; border: 1.5px solid var(--line-2); }
.bx-units i.occ { background: var(--orange); border-color: var(--orange); }
.bx-units i:nth-child(7n+3) { animation: unitflip 5s steps(1) infinite; animation-delay: calc(var(--k) * .2s); }
@keyframes unitflip { 50% { background: var(--navy); border-color: var(--navy); } }
.bx-tags, .bx-docs { list-style: none; display: grid; gap: 7px; }
.bx-tags li, .bx-docs li { display: flex; justify-content: space-between; padding: 7px 10px; background: var(--paper-2); color: var(--ink); font-weight: 550; }
.bx-tags em, .bx-docs em { font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--orange-lo); font-weight: 600; }
.bx-docs em { color: #15803d; }
.bx-status { display: flex; gap: 6px; }
.bx-status span { flex: 1; text-align: center; padding: 9px 4px; background: var(--paper-2); color: var(--slate-2); font-size: 12px; font-weight: 600; animation: stat 4.5s steps(1) infinite; }
.bx-status .s2 { animation-delay: 1.5s; } .bx-status .s3 { animation-delay: 3s; }
@keyframes stat { 0%, 33% { background: var(--navy); color: #fff; } 34% { background: var(--paper-2); color: var(--slate-2); } }
.bx-inv { border: 1px solid var(--line); padding: 14px 16px; display: grid; gap: 6px; justify-items: start; }
.bx-inv p { font-size: 11px; color: var(--slate-2); }
.bx-inv b { font-size: 26px; color: var(--navy); font-weight: 600; }
.bx-ledger { background: var(--navy-900); color: #cbd5e1; padding: 14px 16px; font-size: 12px; display: grid; gap: 6px; }
.bx-ledger p { display: flex; justify-content: space-between; gap: 12px; }
.bx-ledger p:nth-child(2) { padding-left: 18px; }
.bx-ledger b { color: #fff; font-weight: 500; }
.bx-ledger .bal { color: var(--green); justify-content: flex-end; }
.bx-pipe { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; height: 84px; }
.bx-pipe span { background: var(--paper-2); font-size: 10.5px; padding: 6px; color: var(--slate-2); font-weight: 600; }
.bx-pipe i { position: absolute; left: 4px; top: 34px; width: calc(25% - 12px); height: 34px; background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--orange); box-shadow: 0 8px 18px -10px rgba(15, 23, 42, .4); animation: pipe 8s var(--ease) infinite; }
@keyframes pipe { 0%, 15% { transform: translateX(0); } 25%, 40% { transform: translateX(calc(100% + 10px)); } 50%, 65% { transform: translateX(calc(200% + 20px)); } 75%, 95% { transform: translateX(calc(300% + 30px)); } 100% { transform: translateX(calc(300% + 30px)); opacity: 0; } }
.bx-devs { display: flex; gap: 14px; align-items: flex-end; height: 70px; }
.bx-devs i { display: block; border: 2px solid var(--navy); border-radius: 6px; background: linear-gradient(var(--paper-2), var(--paper-2)) 50% 30% / 60% 14% no-repeat; }
.d-ph { width: 34px; height: 62px; }
.d-lap { width: 100px; height: 64px; border-radius: 3px !important; border-bottom-width: 6px !important; }
.d-2 { border-color: var(--orange) !important; }

/* ---- portals ---------------------------------------------------------------------------------------------- */
.portals { overflow: hidden; }
.ptabs { position: relative; display: inline-flex; gap: 0; border: 1px solid var(--dk-line); padding: 4px; background: rgba(6, 11, 19, .4); margin-bottom: clamp(36px, 5vw, 56px); }
.ptabs button { position: relative; z-index: 1; border: 0; background: none; color: var(--dk-mute); font-weight: 650; font-size: 15px; padding: 11px 22px; transition: color .3s; }
.ptabs button[aria-selected="true"] { color: #fff; }
.ptab-ink { position: absolute; top: 4px; bottom: 4px; left: 0; width: 0; background: var(--orange); transition: transform .5s var(--ease), width .5s var(--ease); }
.ppanel { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.ppanel[hidden] { display: none; }
.ppanel.on .ppanel-copy > * { animation: pin .7s var(--ease) both; }
.ppanel.on .ppanel-copy > *:nth-child(2) { animation-delay: .08s; } .ppanel.on .ppanel-copy > *:nth-child(3) { animation-delay: .16s; }
.ppanel.on .dev { animation: devin .9s var(--ease) both; }
@keyframes pin { from { opacity: 0; transform: translateY(16px); } }
@keyframes devin { from { opacity: 0; transform: translateY(40px) rotate(-3deg); } }
.ppanel-copy h3 { font-size: clamp(1.7rem, 3vw, 2.5rem); margin-bottom: 24px; }
.ppanel-copy .checks { margin-bottom: 28px; }
.ppanel-art { position: relative; display: grid; place-items: center; min-height: 440px; }
.ppanel-art::before { content: ''; position: absolute; width: min(380px, 80%); aspect-ratio: 1; border: 2px solid rgba(148, 163, 184, .2); right: 4%; top: 2%; }
.ppanel-art::after { content: ''; position: absolute; width: 110px; aspect-ratio: 1; background: rgba(229, 90, 43, .22); left: 8%; bottom: 4%; }
.dev { position: relative; z-index: 1; background: #fff; color: var(--ink); }
.dev.phone { width: 270px; border: 10px solid #0b1220; border-radius: 34px; padding: 18px 18px 22px; box-shadow: 0 50px 90px -30px rgba(0, 0, 0, .8); }
.dev.laptop { width: min(560px, 100%); border: 12px solid #0b1220; border-bottom-width: 24px; border-radius: 10px; box-shadow: 0 50px 90px -30px rgba(0, 0, 0, .8); }
.dev-in { display: grid; gap: 12px; font-size: 13px; }
.dv-top { display: flex; justify-content: space-between; font-size: 11px; color: var(--slate-2); font-weight: 600; }
.dv-hi { font-size: 22px; font-weight: 800; color: var(--navy); }
.dv-sub { font-size: 12.5px; color: var(--slate-2); margin-top: -8px; }
.dv-due { background: var(--navy); color: #fff; padding: 14px; display: grid; gap: 2px; }
.dv-due span { font-size: 11.5px; color: #c6d5e8; }
.dv-due b { font-size: 24px; font-weight: 800; }
.dv-due em { font-style: normal; font-size: 11.5px; color: #fdba9c; }
.dv-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dv-tiles span { display: flex; flex-direction: column; gap: 6px; padding: 12px; background: var(--paper-2); font-size: 12px; font-weight: 600; color: var(--navy); }
.dv-tiles .i { width: 18px; height: 18px; color: var(--orange); }
.dv-bar { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--slate-2); padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.dv-bar i { width: 8px; height: 8px; border-radius: 50%; background: #d4dae3; }
.dv-bar span { margin-left: 8px; font-weight: 600; }
.dv-table { display: grid; font-size: 12px; }
.dv-table p { display: grid; grid-template-columns: 1fr 1fr .9fr 1fr .9fr; gap: 6px; padding: 9px 4px; border-bottom: 1px solid var(--line); }
.dv-table .dv-th { font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--slate-2); font-weight: 700; }
.dv-table p span:nth-child(4) { font-family: var(--mono); }
.ok { color: #15803d; font-weight: 650; }
.due { color: var(--orange-lo); font-weight: 650; }
.dv-pay { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; font-size: 12px; color: var(--slate); }
.dv-pay b { color: var(--navy); font-family: var(--mono); }
.dv-pay em { font-style: normal; font-weight: 700; background: var(--orange); color: var(--btn-ink); padding: 7px 14px; border-radius: 2px; }
.dv-job { border-left: 3px solid var(--orange); background: var(--paper-2); padding: 10px 12px; display: grid; gap: 2px; }
.dv-job b { color: var(--navy); }
.dv-job span { font-size: 11.5px; color: var(--slate); }
.dv-job em { font-style: normal; font-size: 11px; color: var(--orange-lo); font-weight: 650; }
.dv-docs { display: flex; gap: 10px; font-size: 12px; }
@media (max-width: 900px) { .ppanel { grid-template-columns: minmax(0, 1fr); } .ppanel-art { min-height: 0; padding: 20px 0; } .ptabs { display: flex; width: 100%; } .ptabs button { flex: 1; padding: 11px 8px; font-size: 14px; } }
@media (max-width: 560px) { .dv-table p { grid-template-columns: 1fr 1fr 1fr; } .dv-table p span:nth-child(2), .dv-table p span:nth-child(3) { display: none; } }

/* ---- the books -------------------------------------------------------------------------------------------- */
.books-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.books-p { margin: 20px 0 28px; color: var(--slate); font-size: 17.5px; }
.books .checks { margin-bottom: 28px; }
.ledger { background: var(--navy-900); color: #cbd5e1; font-size: 13px; box-shadow: 0 50px 100px -50px rgba(6, 11, 19, .9); position: relative; }
.ledger::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--navy) 0 66%, var(--orange) 66%); }
.ledger-top { display: flex; justify-content: space-between; padding: 18px 22px 12px; color: #fff; font-weight: 600; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.ledger-top span:last-child { color: var(--dk-mute); font-weight: 400; }
.ledger-body { padding: 14px 22px; min-height: 330px; display: grid; align-content: start; gap: 4px; }
.lg-je { color: #fdba9c; margin-top: 10px; font-size: 12px; }
.lg-je:first-child { margin-top: 0; }
.lg-ln { display: flex; justify-content: space-between; gap: 16px; white-space: pre; }
.lg-ln.cr { padding-left: 26px; }
.lg-ln b { color: #fff; font-weight: 500; }
.lg-caret { position: relative; }
.lg-caret::after { content: '▌'; position: absolute; right: -14px; color: var(--orange); animation: blink 1s steps(1) infinite; }
.ledger-foot { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 14px 22px 18px; border-top: 1px solid rgba(255, 255, 255, .07); }
.ledger-foot b { color: #fff; font-weight: 500; }
.ledger-ok { margin-left: auto; color: var(--green); opacity: 0; transition: opacity .5s; }
.ledger-ok.on { opacity: 1; }
@media (max-width: 900px) { .books-in { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .ledger { font-size: 11px; } .ledger-body { padding: 12px 14px; } .lg-ln.cr { padding-left: 14px; } }

/* ---- segments --------------------------------------------------------------------------------------------- */
.segs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--dk-line); border: 1px solid var(--dk-line); }
.seg { position: relative; background: var(--navy-900); padding: 40px 34px 36px; text-decoration: none; color: inherit; overflow: hidden; min-height: 250px; display: flex; flex-direction: column; transition: background-color .4s; }
.seg-sq { position: absolute; right: 24px; top: 24px; width: 54px; height: 54px; border: 2px solid rgba(148, 163, 184, .25); transition: transform .6s var(--ease), background-color .4s, border-color .4s; }
.seg:hover .seg-sq { background: var(--orange); border-color: var(--orange); transform: rotate(90deg) scale(.5); }
.seg-ic { width: 34px; height: 34px; color: var(--orange); margin-bottom: 26px; stroke-width: 1.75; }
.seg h3 { font-size: 22px; margin-bottom: 10px; }
.seg p { color: var(--dk-mute); font-size: 15.5px; max-width: 320px; }
.seg-go { margin-top: auto; padding-top: 24px; color: var(--orange); }
.seg-go .i { width: 22px; transition: transform .35s var(--ease); }
.seg:hover { background: #0b1424; }
.seg:hover .seg-go .i { transform: translateX(6px); }
@media (max-width: 960px) { .segs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .segs { grid-template-columns: minmax(0, 1fr); } .seg { min-height: 0; } }

/* ---- statement -------------------------------------------------------------------------------------------- */
.statement { padding: clamp(90px, 12vw, 170px) 0; background: var(--paper); }
.statement-t { font-size: clamp(1.7rem, 3.6vw, 3.1rem); line-height: 1.18; font-weight: 750; letter-spacing: -.022em; color: var(--navy); max-width: 1100px; font-stretch: 104%; }
.statement-t em { font-style: normal; }
.statement-t .wd { opacity: .28; transition: opacity .35s; }
.statement-t .wd.lit { opacity: 1; }
.statement-t em .wd.lit { color: var(--orange); }
.statement-cta { margin-top: 44px; }

/* ---- finale ----------------------------------------------------------------------------------------------- */
.finale { position: relative; background: var(--navy); color: #dbe6f3; padding: clamp(90px, 11vw, 160px) 0; overflow: hidden; }
.finale .bp-grid { -webkit-mask-image: radial-gradient(ellipse 70% 80% at 80% 50%, #000 20%, transparent 80%); mask-image: radial-gradient(ellipse 70% 80% at 80% 50%, #000 20%, transparent 80%); }
.finale-in { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 48px; align-items: center; }
.finale h2 { font-size: clamp(2.2rem, 4.8vw, 4rem); color: #fff; max-width: 780px; }
.finale-copy > p:not(.kicker) { margin-top: 22px; font-size: 18px; max-width: 600px; color: #c6d5e8; }
.finale .countdown { margin-top: 40px; }
.finale .cd-label { background: rgba(6, 11, 19, .5); }
.finale-art { position: relative; aspect-ratio: 1; max-width: 460px; width: 100%; justify-self: end; }
.finale-build { width: 100%; height: 100%; color: #fff; }
.finale-build path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.4s var(--ease-io); }
.finale-build path:nth-child(2) { transition-delay: .4s; } .finale-build path:nth-child(3) { transition-delay: 1s; } .finale-build path:nth-child(4) { transition-delay: 1.2s; } .finale-build path:nth-child(5) { transition-delay: 1.4s; stroke: var(--orange); }
.finale.in .finale-build path { stroke-dashoffset: 0; }
.fb { position: absolute; display: block; transition: transform 1.4s var(--ease), opacity 1s; opacity: 0; }
.fb1 { width: 26%; aspect-ratio: 1; background: rgba(229, 90, 43, .3); left: -6%; bottom: 4%; transform: translate(-40px, 40px); }
.fb2 { width: 42%; aspect-ratio: 1; border: 2px solid rgba(255, 255, 255, .14); right: -8%; top: -6%; transform: translate(40px, -40px); }
.fb3 { width: 5%; aspect-ratio: 1; background: var(--orange); right: 18%; bottom: 18%; transform: scale(0); }
.finale.in .fb { opacity: 1; transform: none; transition-delay: 1.2s; }
@media (max-width: 900px) { .finale-in { grid-template-columns: minmax(0, 1fr); } .finale-art { max-width: 280px; justify-self: start; order: -1; } }

/* ---- small screens ---------------------------------------------------------------------------------------- */
@media (max-width: 1000px) {
  .hero { min-height: 0; }
  .hero-in { grid-template-columns: minmax(0, 1fr); }
  .hero-art { height: auto; min-height: 380px; margin: 34px calc(var(--gut) * -1) 0; padding: 30px var(--gut) 44px; }
  .board { --ry: -6deg; --rx: 6deg; }
  .board-toast { right: 6px; bottom: -30px; }
  .scroll-cue { display: none; }
}
@media (max-width: 560px) {
  .h1-main { font-size: 10.4vw; }
  .board { --label: 68px; padding: 12px 10px 14px; }
  .board-unit { font-size: 9.5px; }
  .board-days span:nth-child(even) { visibility: hidden; }
  .bar b { font-size: 8px; padding: 0 4px; }
  .board-legend { gap: 8px; font-size: 9.5px; flex-wrap: wrap; }
  .board-toast { font-size: 11px; white-space: normal; max-width: 250px; }
  .cd-tile { width: 68px; }
}
