/* Crewkeep marketing site — no framework, no build step.
   Square corners everywhere (the app's rule); the only rounded shapes are the
   drawn devices, which are hardware. Warm cream bands alternate with white,
   one accent color, big quiet headlines, thin-bordered cards. */
:root {
  --clay: #E8492B; --clay-600: #C63A20; --clay-50: #FEF1ED; --clay-100: #FBD9D1;
  --ink: #0F1114; --ink-2: #1B1E24; --ink-soft: #4A4F58; --ink-faint: #7C828D;
  --line: #E5E7EB; --line-soft: #F0F1F3;           /* the app's grays, used inside the device mocks */
  --rule: #E1DCD5; --cream: #F5F1ED; --cream-2: #ECE7E1;   /* the site's warm grays */
  --paper: #FAFAFA; --surface: #FFFFFF; --slate: #2C3A48; --profit: #258818; --pending: #A56F00; --blue: #1D4ED8;
  --display: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif; --body: var(--display);
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --max: 1200px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); color: var(--ink-2); background: var(--surface); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--display); margin: 0; color: var(--ink); }
h1 { font-size: clamp(44px, 6.4vw, 86px); line-height: .96; font-weight: 700; letter-spacing: -.035em; }
h2 { font-size: clamp(30px, 3.7vw, 46px); line-height: 1.06; font-weight: 600; letter-spacing: -.025em; }
h3 { font-size: 20px; font-weight: 600; letter-spacing: -.012em; }
p { margin: 0; }
.eyebrow { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); margin-bottom: 18px; }
.eyebrow::before { content: ''; width: 10px; height: 10px; background: var(--clay); flex: none; }
.eyebrow.light { color: rgba(255,255,255,.82); }
.lead { font-size: 18px; line-height: 1.55; color: var(--ink-soft); max-width: 60ch; }
.fine { font-size: 13px; color: var(--ink-faint); margin-top: 14px; }
.green { color: var(--profit); } .clay { color: var(--clay); }
.more { display: inline-flex; align-items: center; gap: 8px; color: var(--clay); font-weight: 600; font-size: 16px; }
.more::after { content: '→'; transition: transform .2s ease; }
.more:hover::after { transform: translateX(4px); }
.more.light { color: #fff; }
.inner { max-width: var(--max); margin: 0 auto; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; font-size: 14px; padding: 10px 16px; border: 1px solid var(--rule); background: var(--surface); color: var(--ink); white-space: nowrap; transition: transform .15s ease, background .15s ease, border-color .15s ease; cursor: pointer; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--clay); border-color: var(--clay); color: #fff; }
.btn.primary:hover { background: var(--clay-600); }
.btn.outline { background: transparent; }
.btn.outline.light { border-color: rgba(255,255,255,.4); color: #fff; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--ink); }
.btn.lg { padding: 15px 24px; font-size: 16px; }
.btn.tiny { padding: 4px 9px; font-size: 11px; font-weight: 700; }

/* announcement + nav */
.announce { position: relative; background: var(--ink); color: #fff; font-size: 13.5px; text-align: center; padding: 10px 48px; }
.announce a { color: #fff; font-weight: 600; margin-left: 10px; text-decoration: underline; text-underline-offset: 3px; }
.announce .x { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: #fff; font-size: 20px; line-height: 1; padding: 4px 10px; cursor: pointer; }
.nav { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 28px; padding: 14px 28px; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 21px; letter-spacing: -.02em; color: var(--ink); }
.links { display: flex; gap: 24px; margin-left: 8px; font-size: 15px; font-weight: 500; color: var(--ink); }
.links a:hover { color: var(--clay); }
.actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.menu { display: none; margin-left: auto; font-size: 22px; background: none; border: 1px solid var(--rule); padding: 4px 10px; }

/* hero: headline left, the pitch and the buttons right, the product below in a full-width band */
.hero { max-width: var(--max); margin: 0 auto; padding: 84px 28px 64px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: end; }
.hero-side { padding-bottom: 10px; }
.hero-side .lead { font-size: 19px; max-width: 46ch; }
.cta-row { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; margin-top: 28px; }
.cta-row.center { justify-content: center; }
.stage-band { background: var(--cream); overflow: hidden; }

/* the device */
.device { background: var(--surface); border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(27,30,36,.35), 0 1px 2px rgba(27,30,36,.06); overflow: hidden; }
.device-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--paper); }
.dots i { display: inline-block; width: 9px; height: 9px; background: var(--line); margin-right: 5px; }
.url { font-size: 12px; color: var(--ink-faint); flex: 1; text-align: center; }
.device-tabs { display: flex; border-bottom: 1px solid var(--line); }
.tab { flex: 1; font: inherit; font-size: 12px; font-weight: 700; padding: 9px 4px; background: none; border: 0; border-bottom: 3px solid transparent; color: var(--ink-faint); cursor: pointer; }
.tab.on { color: var(--clay); border-bottom-color: var(--clay); }
.stage { position: relative; height: 400px; overflow: hidden; }
.scene { position: absolute; inset: 0; padding: 16px; opacity: 0; transform: translateX(14px); transition: opacity .35s ease, transform .35s ease; pointer-events: none; }
.scene.active { opacity: 1; transform: none; pointer-events: auto; }
.caption { padding: 12px 16px; font-size: 13px; color: var(--ink-soft); border-top: 1px solid var(--line); background: var(--paper); min-height: 44px; }

/* document mock */
.doc { font-size: 12px; }
.doc-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.doc-head b { font-size: 14px; display: block; }
.sub { display: block; color: var(--ink-faint); font-size: 11px; }
.pill { font-size: 11px; font-weight: 700; padding: 2px 8px; }
.pill.draft { background: var(--line-soft); color: var(--ink-soft); } .pill.sent { background: #EAF2FF; color: var(--blue); }
.pill.green { background: rgba(37,136,24,.1); color: var(--profit); } .pill.blue { background: #EAF2FF; color: var(--blue); } .pill.gray { background: var(--line-soft); color: var(--ink-soft); }
.sec { display: flex; justify-content: space-between; font-size: 10px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-faint); font-weight: 700; padding: 6px 0 3px; border-bottom: 1px solid var(--line); }
.line { display: grid; grid-template-columns: 1fr 44px 64px 72px; gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--line-soft); font-variant-numeric: tabular-nums; }
.line .q, .line .r, .line .t { text-align: right; color: var(--ink-soft); } .line .t { font-weight: 700; color: var(--ink); }
.line .d { font-weight: 600; }
[data-scene="invoice"] .line { grid-template-columns: 1fr 80px; }
.tag { font-style: normal; font-size: 9px; color: var(--ink-faint); border: 1px solid var(--line); padding: 0 3px; margin-left: 4px; }
.totals { margin-left: auto; width: 220px; margin-top: 6px; font-variant-numeric: tabular-nums; }
.totals > div { display: flex; justify-content: space-between; padding: 1px 0; color: var(--ink-soft); }
.totals .grand { border-top: 2px solid var(--ink); margin-top: 4px; padding-top: 5px; font-family: var(--display); font-weight: 800; font-size: 14px; color: var(--ink); }
.totals .dep { color: var(--ink-faint); font-size: 11px; } .totals .paid { color: var(--profit); font-weight: 700; }
.doc-actions { display: flex; justify-content: flex-end; gap: 6px; margin-top: 6px; }
.toast { position: absolute; left: 16px; right: 16px; bottom: 8px; background: var(--ink); color: #fff; font-size: 12px; padding: 8px 12px; opacity: 0; transform: translateY(8px); }

/* scene: estimate — lines type in, total counts, Send flips to Sent */
.scene.active .line, .scene.active .sec[style] { animation: rowIn .45s ease both; animation-delay: calc(var(--i, 0) * .32s + .2s); }
@keyframes rowIn { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
.scene.active [data-send] { animation: sendPulse 1.2s ease 2.6s 2; }
@keyframes sendPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(232,73,43,.5); } 50% { box-shadow: 0 0 0 8px rgba(232,73,43,0); } }
.scene.active [data-pill] { animation: toSent .01s linear 4.4s forwards; }
@keyframes toSent { to { background: #EAF2FF; color: var(--blue); } }
.scene.active [data-toast], .scene.active [data-toast2] { animation: toastIn .4s ease 4.6s forwards; }
@keyframes toastIn { to { opacity: 1; transform: none; } }

/* scene: approve — a phone with a signature that draws itself */
[data-scene="approve"] { display: grid; grid-template-columns: 250px 1fr; gap: 18px; align-items: center; }
.phone { border: 6px solid var(--ink); background: var(--surface); padding: 0; font-size: 11px; max-height: 366px; overflow: hidden; }
.phone-top { background: var(--paper); border-bottom: 1px solid var(--line); padding: 7px 10px; font-weight: 700; font-size: 11px; }
.phone-body { padding: 10px; }
.row { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px solid var(--line-soft); }
.row.grand { border-bottom: 0; font-size: 13px; font-family: var(--display); font-weight: 800; padding-top: 6px; }
.sigbox { position: relative; border: 1px dashed var(--line); height: 60px; margin: 10px 0 8px; }
.siglabel { position: absolute; left: 8px; bottom: 4px; font-size: 9px; color: var(--ink-faint); }
.sig { position: absolute; inset: 0; width: 100%; height: 100%; }
.sig path { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.scene.active .sig path { animation: draw 1.6s ease-in-out 1s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.approve-btn { background: var(--clay); color: #fff; text-align: center; font-weight: 700; padding: 8px; }
.scene.active .approve-btn { animation: pressed .3s ease 2.9s forwards; }
@keyframes pressed { to { background: var(--clay-600); transform: scale(.98); } }
.approved, .deposit { opacity: 0; transform: translateY(6px); margin-top: 8px; padding: 7px 8px; font-weight: 700; }
.approved { background: rgba(37,136,24,.1); color: var(--profit); }
.deposit { background: var(--paper); border: 1px solid var(--line); color: var(--ink-soft); font-weight: 600; }
.scene.active .approved { animation: toastIn .4s ease 3.3s forwards; }
.scene.active .deposit { animation: toastIn .4s ease 4.1s forwards; }
.side-note { font-size: 13px; color: var(--ink-soft); }
.side-note b { display: block; color: var(--ink); font-family: var(--display); font-size: 16px; margin-bottom: 6px; }

/* scene: schedule — blocks slide onto the board */
.board { font-size: 11px; }
.board-head, .board-row { display: grid; grid-template-columns: 96px repeat(5, 1fr); gap: 4px; align-items: stretch; }
.board-head { color: var(--ink-faint); font-weight: 700; text-transform: uppercase; font-size: 9.5px; letter-spacing: .04em; padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.board-head .wx { font-style: normal; color: var(--ink-faint); font-weight: 400; text-transform: none; letter-spacing: 0; } .board-head .wx.rain { color: var(--pending); font-weight: 700; }
.board-row { padding: 4px 0; border-bottom: 1px solid var(--line-soft); min-height: 46px; }
.board-row .crew { font-weight: 700; align-self: center; } .board-row .crew small { display: block; font-weight: 400; color: var(--ink-faint); }
.cell { position: relative; min-height: 38px; background: var(--paper); }
.cell.off { display: flex; align-items: center; justify-content: center; border: 1px dashed var(--line); color: var(--ink-faint); font-size: 10px; opacity: 0; }
.blk { position: absolute; inset: 2px; display: block; padding: 4px 5px; font-style: normal; font-size: 10px; line-height: 1.2; font-weight: 600; border-left: 3px solid; opacity: 0; transform: translateY(6px); overflow: hidden; }
.blk.c1 { background: #EAF2FF; border-color: var(--blue); color: #1E3A8A; } .blk.c2 { background: var(--clay-50); border-color: var(--clay); color: #7A2415; }
.blk.c3 { background: #FFF6E5; border-color: var(--pending); color: #6B4700; } .blk.c4 { background: #EEF7EC; border-color: var(--profit); color: #1F5E14; }
.blk.amber { outline: 2px solid #F3C36B; outline-offset: -2px; }
.scene.active .blk, .scene.active .cell.off { animation: blkIn .4s ease both; animation-delay: calc(var(--i, 0) * .22s + .3s); }
@keyframes blkIn { to { opacity: 1; transform: none; } }
.blk.confirm s { text-decoration: none; display: block; color: var(--ink-faint); } .blk.confirm b { display: none; color: var(--profit); }
.scene.active .blk.confirm s { animation: hide .01s linear 2.6s forwards; } .scene.active .blk.confirm b { animation: show .01s linear 2.6s forwards; }
@keyframes hide { to { display: none; } } @keyframes show { to { display: block; } }
.board-foot { display: flex; justify-content: space-between; padding-top: 8px; color: var(--ink-faint); font-size: 10.5px; }
.board-foot .rail b { color: var(--clay); }

/* scene: invoice — the pay bar fills */
.paybar { height: 8px; background: var(--line-soft); margin-top: 10px; overflow: hidden; }
.paybar i { display: block; height: 100%; width: 0; background: var(--profit); }
.scene.active [data-fill] { animation: fill 1.4s ease-out 1.2s forwards; }
@keyframes fill { to { width: 100%; } }
.payline { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-soft); margin-top: 6px; }
.payline span { opacity: 0; } .scene.active [data-card] { animation: toastIn .4s ease 1.2s forwards; } .scene.active [data-receipt] { animation: toastIn .4s ease 2.8s forwards; }
.scene.active [data-invpill] { animation: toPaid .01s linear 2.6s forwards; }
@keyframes toPaid { to { background: rgba(37,136,24,.1); color: var(--profit); } }

/* scene: project — phases, vitals, milestones, photos */
.proj { font-size: 12px; }
.proj-head { display: flex; justify-content: space-between; align-items: flex-start; } .proj-head b { font-size: 14px; display: block; }
.phases { display: flex; margin: 10px 0 8px; }
.phases span { flex: 1; text-align: center; font-size: 10px; font-weight: 700; color: var(--ink-faint); padding: 4px 2px; border-bottom: 3px solid var(--line); }
.phases span.done { color: var(--profit); border-color: var(--profit); } .phases span.now { color: var(--clay); border-color: var(--clay); }
.phases.small span { font-size: 9px; }
.vitals { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); background: var(--surface); }
.vitals div { padding: 6px 8px; border-right: 1px solid var(--line); } .vitals div:last-child { border-right: 0; }
.vitals > div > span { display: block; font-size: 9.5px; color: var(--ink-faint); } .vitals b { font-size: 14px; font-family: var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.profitbar { position: relative; height: 10px; background: var(--line-soft); margin: 8px 0 10px; }
.profitbar i { display: block; height: 100%; width: 0; background: var(--profit); }
.profitbar span { position: absolute; right: 0; top: -14px; font-size: 9.5px; color: var(--ink-faint); }
.scene.active [data-fill2] { animation: fill63 1.4s ease-out .6s forwards; }
@keyframes fill63 { to { width: 63%; } }
.ms { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 14px; }
.m { display: flex; align-items: center; gap: 6px; font-size: 11px; padding: 2px 0; opacity: 0; }
.chk { width: 12px; height: 12px; border: 1px solid var(--line); display: inline-block; position: relative; flex-shrink: 0; }
.m:not(.open) .chk::after { content: ''; position: absolute; left: 3px; top: 0; width: 4px; height: 8px; border: solid var(--profit); border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); }
.scene.active .m { animation: toastIn .3s ease both; animation-delay: calc(var(--i, 0) * .25s + .4s); }
.scene.active .m:not(.open) .chk::after { animation: tick .25s ease forwards; animation-delay: calc(var(--i, 0) * .25s + .7s); }
@keyframes tick { to { transform: rotate(45deg) scale(1); } }
.m.open { color: var(--ink-faint); }
.photos { display: flex; align-items: center; gap: 5px; margin-top: 10px; font-size: 10.5px; color: var(--ink-faint); }
.photos i { width: 34px; height: 26px; background: linear-gradient(135deg, #D9CDBF, #B9A48E); opacity: 0; transform: scale(.8); }
.scene.active .photos i { animation: pop .3s ease both; animation-delay: calc(var(--i, 0) * .15s + 1.6s); }
@keyframes pop { to { opacity: 1; transform: none; } }


/* strip: everything the app covers, in one line */
.strip { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--surface); }
.strip .inner { padding: 18px 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 0; font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.strip p { margin-right: 24px; color: var(--ink-faint); }
.strip ul { display: flex; flex-wrap: wrap; gap: 10px 0; list-style: none; margin: 0; padding: 0; }
.strip li { padding: 0 18px; border-left: 1px solid var(--rule); } .strip li:first-child { border-left: 0; padding-left: 0; }

/* sections */
section.who, section.how, section.tracked, section.features, section.clients, section.field, section.trust, section.faq, section.final { padding: 96px 28px; }
.section-head { max-width: 760px; margin: 0 0 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }
.section-head .lead { margin-top: 16px; }
.section-head .more { margin-top: 18px; }
.cream { background: var(--cream); }
.dark { background: var(--ink); color: #fff; } .dark h2, .dark h3 { color: #fff; } .dark .lead { color: rgba(255,255,255,.72); }

/* who it's for: an illustration panel with the copy card overlapping it */
.who-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.who-art { height: 330px; display: flex; align-items: flex-start; justify-content: center; padding: 34px 28px 0; overflow: hidden; }
.who-art.sand { background: linear-gradient(165deg, #EADFD0, #D6C5B0); } .who-art.slate { background: linear-gradient(165deg, #D9E1E8, #B6C4D2); } .who-art.sage { background: linear-gradient(165deg, #DDE6D6, #BCCBB1); }
.who-text { position: relative; margin: -96px 20px 0; background: var(--surface); border: 1px solid var(--rule); padding: 24px 22px 22px; }
.who-text h3 { margin-bottom: 8px; } .who-text p { font-size: 15px; color: var(--ink-soft); margin-bottom: 16px; }
.art { width: 100%; max-width: 300px; background: var(--surface); border: 1px solid rgba(0,0,0,.08); box-shadow: 0 30px 44px -30px rgba(0,0,0,.5); padding: 14px; font-size: 12px; transform: translateY(24px); transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.who-card.in .art { transform: none; }
.art .t { display: block; font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.art .t .pill { float: right; }
.art .r { display: flex; gap: 4px; margin-bottom: 4px; align-items: center; }
.art .r span { width: 62px; flex: none; color: var(--ink-faint); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.art .r i { flex: 1; height: 22px; display: block; background: var(--paper); border-left: 3px solid transparent; }
.art .r i.c1 { background: #EAF2FF; border-color: var(--blue); } .art .r i.c2 { background: var(--clay-50); border-color: var(--clay); } .art .r i.c4 { background: #EEF7EC; border-color: var(--profit); } .art .r i.c3 { background: #FFF6E5; border-color: var(--pending); }
.art .foot { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 11.5px; }
.art .foot b { color: var(--profit); }
.art .stop { padding: 7px 9px; border: 1px solid var(--line); margin-bottom: 6px; } .art .stop b { display: block; font-weight: 600; } .art .stop span { color: var(--ink-faint); font-size: 11px; }
.art .go { background: var(--clay); color: #fff; text-align: center; font-weight: 600; padding: 8px; margin-top: 4px; }
.art .kv { font-size: 12px; }

/* how it works: four numbered cards */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { background: var(--surface); border: 1px solid var(--rule); padding: 22px; }
.num { display: block; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .14em; color: var(--clay); margin-bottom: 14px; }
.step h3 { margin: 16px 0 8px; } .step p { font-size: 14.5px; color: var(--ink-soft); }
.mini { background: var(--paper); border: 1px solid var(--line); padding: 12px; height: 120px; font-size: 12px; position: relative; overflow: hidden; }
.mini b { display: block; font-size: 12px; } .mini span, .mini em { display: block; font-style: normal; color: var(--ink-faint); font-size: 11px; margin-top: 3px; }
.mini em { color: var(--ink); font-weight: 700; margin-top: 8px; }
.mini .bar { height: 8px; background: var(--line); margin-top: 8px; overflow: hidden; } .mini .bar.short { width: 60%; }
.mini .bar i { display: block; height: 100%; width: 0; background: var(--clay); }
.in .mini-est .bar i { animation: fill 1s ease forwards; } .in .mini-est .bar:nth-of-type(2) i { animation-delay: .3s; } .in .mini-est .bar:nth-of-type(3) i { animation-delay: .6s; }
.ring { position: absolute; right: 12px; top: 12px; width: 14px; height: 14px; background: var(--clay); }
.in .mini-lead .ring { animation: ring 1.4s ease-out infinite; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(232,73,43,.5); } 100% { box-shadow: 0 0 0 14px rgba(232,73,43,0); } }
.mini .cells { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-top: 8px; }
.mini .cells i { height: 26px; background: var(--line-soft); opacity: 0; }
.in .mini-sched .cells i { animation: cellIn .4s ease both; }
.in .mini-sched .cells i:nth-child(1) { animation-delay: .1s; background: #EAF2FF; } .in .mini-sched .cells i:nth-child(2) { animation-delay: .3s; background: #EAF2FF; } .in .mini-sched .cells i:nth-child(3) { animation-delay: .5s; background: var(--clay-50); } .in .mini-sched .cells i:nth-child(4) { animation-delay: .7s; background: var(--clay-50); } .in .mini-sched .cells i:nth-child(5) { animation-delay: .9s; background: #EEF7EC; }
@keyframes cellIn { to { opacity: 1; } }
.mini .progress { height: 8px; background: var(--line); margin-top: 12px; overflow: hidden; } .mini .progress i { display: block; height: 100%; width: 0; background: var(--profit); }
.in .mini-inv .progress i { animation: fill 1.2s ease .3s forwards; }


/* projects, tracked (dark band) */
.tracked-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 64px; }
.numbers div { border-top: 1px solid rgba(255,255,255,.22); padding-top: 18px; }
.numbers b { display: block; font-size: 56px; font-weight: 700; line-height: 1; letter-spacing: -.03em; margin-bottom: 8px; } .numbers b span { font-size: inherit; color: inherit; } .numbers > div > span { color: rgba(255,255,255,.72); font-size: 14.5px; display: block; max-width: 30ch; }

/* features: nine cards with line icons */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--rule); padding: 26px; transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 30px -20px rgba(27,30,36,.35); }
.ico { display: block; width: 32px; height: 32px; color: var(--clay); margin-bottom: 18px; }
.ico svg { width: 32px; height: 32px; display: block; }
.card h3 { margin-bottom: 8px; } .card p { font-size: 14.5px; color: var(--ink-soft); }

/* client links */
.links3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.link-card h3 { margin: 18px 0 6px; } .link-card p { font-size: 14.5px; color: var(--ink-soft); max-width: 34ch; margin: 0 auto; }
.pcard { background: var(--surface); color: var(--ink); border: 1px solid var(--line); padding: 16px; font-size: 13px; }
.pcard-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; } .pcard-head b { font-family: var(--display); font-size: 15px; }
.kv { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line-soft); } .kv span { color: var(--ink-faint); } .kv:last-child { border-bottom: 0; }
.meter { height: 8px; background: var(--line-soft); margin: 6px 0; overflow: hidden; } .meter i { display: block; height: 100%; width: 0; background: var(--profit); }
.pcard.in .meter i { animation: meter 1.2s ease .4s forwards; }
@keyframes meter { to { width: var(--w, 50%); } }
.lc-screen { background: var(--surface); border: 1px solid var(--line); padding: 14px; height: 150px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; position: relative; overflow: hidden; }
.lc-screen b { font-family: var(--display); }
.lc-line { height: 8px; background: var(--line-soft); } .lc-line.short { width: 55%; }
.lc-btn { margin-top: auto; background: var(--clay); color: #fff; font-weight: 700; text-align: center; padding: 8px; font-size: 12px; }
.lc-thumbs { display: flex; gap: 6px; } .lc-thumbs i { width: 54px; height: 40px; background: linear-gradient(135deg, #D9CDBF, #B9A48E); }
.lc-ms { display: flex; gap: 4px; } .lc-ms i { flex: 1; height: 6px; background: var(--line); } .lc-ms i.on { background: var(--profit); }
.lc-photos { display: flex; gap: 6px; } .lc-photos i { width: 44px; height: 34px; background: linear-gradient(135deg, #C9D6E5, #8FA7C4); }
.link-card.in .lc-btn { animation: sendPulse 1.4s ease 1s 2; }


/* field: the copy beside the phone on a dark panel */
.field .inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.field-panel { position: relative; background: linear-gradient(160deg, #2A2E36, #14161A); padding: 56px 28px 40px; display: flex; justify-content: center; overflow: hidden; }
.field-panel::before { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 100% 28px, linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 28px 100%; }
.field-panel .tag { position: absolute; left: 20px; top: 18px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.6); }

/* trust: how payments and bank data are handled */
.trust { background: var(--slate); color: #fff; }
.trust h2 { color: #fff; } .trust .lead { color: rgba(255,255,255,.75); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.16); }
.trust-grid > div { background: var(--slate); padding: 28px 22px; }
.trust-grid b { display: block; font-size: 22px; font-weight: 600; letter-spacing: -.015em; margin-bottom: 10px; }
.trust-grid p { color: rgba(255,255,255,.78); font-size: 14.5px; }

/* faq */
.faq .inner { max-width: 840px; }
.faq h2 { margin-bottom: 24px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding: 20px 0; font-size: 20px; font-weight: 600; letter-spacing: -.012em; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-weight: 400; font-size: 28px; line-height: 1; color: var(--ink); flex: none; }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding: 0 0 22px; color: var(--ink-soft); max-width: 64ch; }

/* final band + footer */
.final .inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.final p { margin-top: 14px; color: rgba(255,255,255,.75); font-size: 18px; max-width: 46ch; }
.final .cta-row { margin-top: 30px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.16); }
.facts div { background: var(--ink); padding: 24px 22px; }
.facts b { display: block; font-size: 30px; font-weight: 700; letter-spacing: -.025em; margin-bottom: 4px; }
.facts span { color: rgba(255,255,255,.7); font-size: 14px; }
.foot { border-top: 1px solid var(--rule); background: var(--surface); font-size: 14px; }
.foot .inner { padding: 56px 28px 32px; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.foot h4 { margin: 0 0 14px; font-size: 13px; font-weight: 600; }
.foot .col a { display: block; color: var(--ink-soft); padding: 4px 0; } .foot a:hover { color: var(--clay); }
.foot-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); font-size: 18px; margin-bottom: 12px; }
.foot p { color: var(--ink-soft); max-width: 42ch; }
.foot .legal { padding: 18px 28px 32px; border-top: 1px solid var(--rule); font-size: 12.5px; color: var(--ink-faint); display: flex; gap: 18px; flex-wrap: wrap; }

/* scroll reveals */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; transition-delay: calc(var(--i, 0) * .08s); }
.reveal.in { opacity: 1; transform: none; }

/* responsive */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 20px; padding-top: 52px; }
  .steps, .tracked-grid, .grid, .links3, .numbers, .who-grid, .trust-grid { grid-template-columns: 1fr 1fr; }
  .field .inner, .final .inner { grid-template-columns: 1fr; }
  .foot .inner { grid-template-columns: 1fr 1fr; }
  .links { display: none; } .menu { display: block; } .actions { margin-left: 0; }
  .nav.open .links { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--surface); border-bottom: 1px solid var(--rule); padding: 8px 0; }
  .nav.open .links a { padding: 12px 28px; }
}
@media (max-width: 640px) {
  .nav { padding: 12px 16px; gap: 12px; } .actions .ghost { display: none; }
  .announce { font-size: 12.5px; padding: 9px 40px 9px 12px; } .announce a { display: block; margin: 2px 0 0; }
  .hero, section.who, section.how, section.tracked, section.features, section.clients, section.field, section.trust, section.faq, section.final { padding: 64px 16px; }
  .strip .inner, .foot .inner, .foot .legal { padding-left: 16px; padding-right: 16px; }
  .steps, .tracked-grid, .grid, .links3, .numbers, .who-grid, .trust-grid, .facts { grid-template-columns: 1fr; }
  .foot .inner { grid-template-columns: 1fr; gap: 20px; }
  .who-art { height: 280px; } .numbers b { font-size: 44px; } .faq summary { font-size: 17px; }
  .stage { height: 440px; } .device-tabs .tab { font-size: 11px; padding: 8px 2px; } .toast { font-size: 11px; padding: 6px 10px; }
  [data-scene="approve"] { grid-template-columns: 1fr; } .side-note { display: none; }
  .line { grid-template-columns: 1fr 64px; } .line .q, .line .r { display: none; }
  .board-head, .board-row { grid-template-columns: 64px repeat(5, 1fr); } .blk { font-size: 8.5px; padding: 3px; }
  .totals { width: 100%; }
  .vitals { grid-template-columns: 1fr 1fr; } .vitals div:nth-child(2) { border-right: 0; } .ms { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

.checks { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 8px; }
.checks li { padding-left: 26px; position: relative; color: var(--ink-soft); }
.checks li::before { content: ''; position: absolute; left: 0; top: 4px; width: 14px; height: 14px; background: var(--clay); }
.checks li::after { content: ''; position: absolute; left: 5px; top: 5px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.field-phone { display: flex; justify-content: center; }
.fp { width: 250px; border: 6px solid var(--ink); background: var(--paper); padding: 12px; font-size: 12px; }
.fp-top { font-weight: 800; font-family: var(--display); margin-bottom: 10px; }
.fp-stop { background: var(--surface); border: 1px solid var(--line); padding: 8px; margin-bottom: 8px; opacity: 0; transform: translateY(6px); }
.fp-stop b { display: block; } .fp-stop span { color: var(--ink-faint); font-size: 11px; }
.field-phone.in .fp-stop { animation: toastIn .4s ease both; animation-delay: calc(var(--i, 0) * .3s + .2s); }
.fp-clock { background: var(--clay); color: #fff; font-weight: 800; text-align: center; padding: 12px; margin-bottom: 8px; }
.fp-clock i { display: block; font-style: normal; font-weight: 600; font-size: 10px; opacity: 0; }
.field-phone.in .fp-clock i { animation: toastIn .3s ease 1.2s forwards; }
.fp-timer { text-align: center; color: var(--ink-soft); font-size: 11px; opacity: 0; }
.field-phone.in .fp-timer { animation: toastIn .3s ease 1.4s forwards; }

/* ===== Devices and 3D ====================================================
   Proportions come from the real hardware:
   MacBook Air 13 (M3): 30.41 × 21.5 × 1.13 cm, 13.6" 2560×1664 display
   (aspect 1.538) with a notch → side bezels 2.4 % of the lid width, top 3 %,
   chin 5.9 %; the deck is as deep as the lid is tall (70.7 % of the width).
   iPhone 16: 71.6 × 147.6 × 7.8 mm, 6.1" 2556×1179 (393×852 pt), display
   corner radius 47.33 pt ≈ 12 % of the screen width, body radius ≈ 15.6 % of
   the body width, Dynamic Island ≈ 32 % × 9.4 % of the screen width.
   Devices are drawn hardware, so they keep rounded corners; the app inside
   them stays square-cornered. */
.hero-3d { position: relative; max-width: 1240px; margin: 0 auto; padding: 72px 28px 200px; perspective: 3600px; perspective-origin: 50% 30%; }
.laptop { position: relative; width: 100%; max-width: 760px; margin: 0 auto 0 4%; transform-style: preserve-3d; transform: rotateX(var(--rx, -8deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease-out; }  /* front view, seen a little from above so the keyboard shows */

/* lid: 30.41 : 21.5 */
.laptop .lid { position: relative; z-index: 2; width: 100%; aspect-ratio: 30.41 / 21.5; background: linear-gradient(#1a1b1f, #0f1013); border-radius: 3.4% 3.4% 0.9% 0.9% / 4.8% 4.8% 1.3% 1.3%; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 40px 70px -30px rgba(27,30,36,.55); transform-origin: 50% 100%; transform: rotateX(var(--lid, -86deg)); transform-style: flat; /* flat, or the deck plane splits the lid's layer at the hinge */ backface-visibility: hidden; }
/* --lid is set on .laptop by app.js from the scroll position: -86deg closed, 15deg open */
/* the back of the lid: the same plane facing the other way, so the closed laptop has a top */
.laptop .lidback { position: absolute; left: 0; top: 0; width: 100%; aspect-ratio: 30.41 / 21.5; border-radius: 3.4% 3.4% 0.9% 0.9% / 4.8% 4.8% 1.3% 1.3%; background: linear-gradient(160deg, #3a3d44, #1c1e23 55%, #2a2d33); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); transform-origin: 50% 100%; transform: rotateX(var(--lid, -86deg)) translateZ(-1px) rotateY(180deg); backface-visibility: hidden; }
.laptop .lidback::after { content: ''; position: absolute; left: 50%; top: 50%; width: 9%; aspect-ratio: 1; transform: translate(-50%, -50%); background: linear-gradient(135deg, rgba(255,255,255,.22), rgba(255,255,255,.06)); }
.laptop .cam { display: none; }
.laptop .screen { position: absolute; left: 2.4%; right: 2.4%; top: 4.2%; bottom: 8.3%; background: #000; border-radius: 8px 8px 0 0; overflow: hidden; transition: background .6s ease; }
@media (min-width: 961px) {
  .laptop .screen.on { background: #E3E6EC; }
  .laptop .screen > * { opacity: 0; }
  .laptop .screen.on .menubar { animation: fadeIn .5s ease .2s both; }
  .laptop .screen.on .device { animation: appIn .8s cubic-bezier(.2,.7,.2,1) .55s both; }
  .hero-phone { opacity: 0; }
  .hero-3d.on .hero-phone { animation: phoneIn .9s cubic-bezier(.2,.7,.2,1) .9s both, floatY 5.5s ease-in-out 1.8s infinite; }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes appIn { from { opacity: 0; transform: scale(calc(var(--s, 1) * .92)) translateY(16px); } to { opacity: 1; transform: scale(var(--s, 1)); } }
@keyframes phoneIn { from { opacity: 0; transform: translateZ(60px) rotateY(-16deg) rotateX(2deg) translateY(50px); } to { opacity: 1; transform: translateZ(160px) rotateY(-16deg) rotateX(2deg); } }
.laptop .notch { position: absolute; z-index: 5; top: 0; left: 50%; width: 12%; aspect-ratio: 4.1 / 1; margin-left: -6%; background: #0f1013; border-radius: 0 0 9px 9px; }
.laptop .notch::after { content: ''; position: absolute; left: 50%; top: 32%; width: 22%; aspect-ratio: 1; margin-left: -11%; border-radius: 50%; background: #202228; box-shadow: inset 0 0 0 1px #0a0b0d; }
/* macOS menu bar under the notch, then the app at a fixed logical size scaled to the screen */
.menubar { position: absolute; left: 0; right: 0; top: 0; height: calc(20px * var(--s, 1)); background: #f4f4f6; border-bottom: 1px solid #dcdde1; }
.menubar::before { content: ''; position: absolute; left: 12px; top: 50%; width: 9px; height: 9px; margin-top: -5px; background: #1b1e24; -webkit-mask: radial-gradient(circle at 50% 60%, #000 70%, transparent 71%); mask: radial-gradient(circle at 50% 60%, #000 70%, transparent 71%); border-radius: 50%; }
.menubar::after { content: ''; position: absolute; right: 12px; top: 50%; width: 46px; height: 6px; margin-top: -3px; background: repeating-linear-gradient(90deg, #6b6f78 0 8px, transparent 8px 13px); border-radius: 1px; }
.laptop .device { position: absolute; left: 0; top: calc(20px * var(--s, 1)); width: 800px; height: 500px; transform: scale(var(--s, 1)); transform-origin: 0 0; border: 0; box-shadow: none; }
.laptop .stage { height: 386px; }

/* deck: as deep as the lid is tall, lying flat from the hinge toward you */
.laptop .base { position: absolute; left: 0; top: 100%; width: 100%; aspect-ratio: 30.41 / 21.5; transform-origin: 50% 0; transform: rotateX(90deg); transform-style: preserve-3d; background: linear-gradient(#e2e5ea, #d0d4da); border-radius: 0 0 2.2% 2.2% / 0 0 3.1% 3.1%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); margin: 0; height: auto; }
.laptop .base .notch { display: none; }
.laptop .base::after { /* trackpad 13 × 8 cm */ content: ''; position: absolute; left: 28.5%; right: 28.5%; top: 62%; bottom: 5%; border-radius: 6px; background: linear-gradient(#dadde2, #d3d6dc); box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); }
/* keyboard well: the real US layout, 14.5 key units per row, half-height function and arrow keys */
.kb { position: absolute; left: 6.5%; right: 6.5%; top: 7%; height: 51%; display: flex; flex-direction: column; gap: 2.5px; padding: 5px; background: #bfc3ca; border-radius: 5px; box-shadow: inset 0 1px 3px rgba(0,0,0,.22); }
.kr { display: flex; gap: 2.5px; flex: 1 1 0; min-height: 0; }
.kr.fn { flex: .58 1 0; }
.kr i, .arr i { flex: var(--u, 1) 1 0; display: block; min-width: 0; background: linear-gradient(#3a3d44, #24272d); border-radius: 3px; box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 1px 0 rgba(0,0,0,.4); }
.kr i.sp { background: linear-gradient(#383b42, #25282e); }
.arr { flex: 3 1 0; display: flex; gap: 2.5px; align-items: flex-end; min-width: 0; }
.arr > i { flex: 1 1 0; height: 47%; }
.arr b { flex: 1 1 0; display: flex; flex-direction: column; gap: 2.5px; height: 100%; }
.arr b i { flex: 1 1 0; }
.laptop .base .hinge { position: absolute; left: 3.5%; right: 3.5%; top: 0; height: 2.6%; background: linear-gradient(#63676f, #3a3d44); border-radius: 0 0 4px 4px; }
/* the body's thickness: the front lip, and the two sides hanging from the deck's edges */
.laptop .base .side { position: absolute; top: 0; height: 100%; width: calc(100% * 1.13 / 30.41); background: linear-gradient(90deg, #aeb2b9, #c9cdd3); }
.laptop .base .side.l { left: 0; transform-origin: 0 50%; transform: rotateY(90deg); }
.laptop .base .side.r { right: 0; transform-origin: 100% 50%; transform: rotateY(-90deg); background: linear-gradient(90deg, #c9cdd3, #aeb2b9); }
.laptop .lip { position: absolute; left: 0; right: 0; top: 100%; height: calc(100% * 1.13 / 21.5); transform-origin: 50% 0; transform: rotateX(-90deg); background: linear-gradient(#c9cdd3, #aab0b8); border-radius: 0 0 5px 5px; }
.laptop .lip::after { content: ''; position: absolute; left: 50%; top: 0; width: 13%; height: 55%; margin-left: -6.5%; background: #8f949c; border-radius: 0 0 40% 40% / 0 0 100% 100%; }
.laptop .ground { position: absolute; left: -6%; right: -6%; top: 100%; height: 100%; transform-origin: 50% 0; transform: rotateX(90deg) translateZ(-10px); background: radial-gradient(ellipse at 50% 30%, rgba(27,30,36,.35), rgba(27,30,36,0) 65%); pointer-events: none; }

/* iPhone 16 frame: --pw is the body width */
.iphone { --pw: 196px; position: relative; width: var(--pw); aspect-ratio: 71.6 / 147.6; border-radius: calc(var(--pw) * .156); background: linear-gradient(160deg, #2b2e35, #121316 45%, #1d1f24); padding: calc(var(--pw) * .047); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.22), inset 0 0 0 4px #0b0c0e, 0 40px 60px -28px rgba(27,30,36,.7); transform-style: preserve-3d; }
.iphone::before { /* side button, right */ content: ''; position: absolute; right: calc(var(--pw) * -.014); top: 31%; width: calc(var(--pw) * .014); height: 16%; background: #2c2f36; border-radius: 0 2px 2px 0; }
.iphone::after { /* action button + volume, left */ content: ''; position: absolute; left: calc(var(--pw) * -.014); top: 19%; width: calc(var(--pw) * .014); height: 32%; border-radius: 2px 0 0 2px; background: linear-gradient(#2c2f36 0 16%, transparent 16% 26%, #2c2f36 26% 58%, transparent 58% 68%, #2c2f36 68% 100%); }
.iphone .island { position: absolute; z-index: 3; top: calc(var(--pw) * .047 + var(--pw) * .906 * .028); left: 50%; width: calc(var(--pw) * .906 * .32); height: calc(var(--pw) * .906 * .094); transform: translateX(-50%); background: #000; border-radius: 999px; margin: 0; }
.ph-screen { position: absolute; inset: calc(var(--pw) * .047); border-radius: calc(var(--pw) * .906 * .12); background: var(--surface); overflow: hidden; padding: calc(var(--pw) * .24) calc(var(--pw) * .06) calc(var(--pw) * .06); font-size: 11px; min-height: 0; }

.hero-phone { position: absolute; right: 88px; bottom: 96px; --pw: 212px; transform: translateZ(160px) rotateY(-16deg) rotateX(2deg); }
@keyframes floatY { 0%, 100% { margin-bottom: 0; } 50% { margin-bottom: 12px; } }
.ph-top b { display: block; font-size: 12px; } .ph-top span { color: var(--ink-faint); }
.ph-amt { margin: 10px 0; padding: 10px; background: var(--paper); border: 1px solid var(--line); } .ph-amt span { display: block; color: var(--ink-faint); font-size: 10px; } .ph-amt b { font-family: var(--display); font-size: 20px; } .ph-amt em { font-style: normal; color: var(--pending); font-size: 10px; margin-left: 6px; }
.ph-rows div { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px solid var(--line-soft); font-variant-numeric: tabular-nums; }
.ph-thumbs { display: flex; gap: 6px; margin: 8px 0; } .ph-thumbs i { width: 46px; height: 34px; background: linear-gradient(135deg, #D9CDBF, #B9A48E); }
.ph-pay { position: relative; height: 34px; margin-top: 6px; }
.ph-btn, .ph-paid { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.ph-btn { background: var(--clay); color: #fff; animation: payCycleBtn 8s ease-in-out infinite; }
.ph-paid { background: rgba(37,136,24,.12); color: var(--profit); opacity: 0; animation: payCyclePaid 8s ease-in-out infinite; }
@keyframes payCycleBtn { 0%, 40% { opacity: 1; transform: none; } 44% { transform: scale(.96); } 50%, 90% { opacity: 0; } 100% { opacity: 1; } }
@keyframes payCyclePaid { 0%, 48% { opacity: 0; transform: translateY(6px); } 54%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
.ph-foot { text-align: center; color: var(--ink-faint); font-size: 9.5px; margin-top: 8px; }

/* the fan of client phones */
.fan { perspective: 1400px; align-items: start; }
.iphone.small { --pw: 190px; margin: 0 auto 18px; transition: transform .5s cubic-bezier(.2,.7,.2,1); transform: rotateY(0) translateZ(0); }
.iphone.small .ph-screen { padding-top: calc(var(--pw) * .22); }
.iphone.small.tilt-l { transform: rotateY(30deg) translateZ(-40px) translateX(14px); }
.iphone.small.tilt-r { transform: rotateY(-30deg) translateZ(-40px) translateX(-14px); }
.link-card:hover .iphone.small { transform: rotateY(0) translateZ(20px); }
.links3 .lc-screen { height: auto; border: 0; box-shadow: none; display: flex; flex-direction: column; gap: 8px; }
.lc-sig { display: block; height: 36px; border: 1px dashed var(--line); background: linear-gradient(transparent 62%, var(--line-soft) 62%, var(--line-soft) 64%, transparent 64%); }
.link-card { text-align: center; }

/* the Field phone */
.field-frame { --pw: 240px; animation: floatY 6s ease-in-out infinite; transform: rotateY(-10deg) rotateX(2deg); }
.field-frame .fp { width: auto; border: 0; background: var(--paper); }

/* project cards tilt toward the pointer */
.pcard { transform-style: preserve-3d; transition: transform .2s ease-out, box-shadow .2s ease-out; will-change: transform; }
.pcard.tilting { box-shadow: 0 24px 40px -24px rgba(0,0,0,.6); }

@media (max-width: 960px) {
  .hero-3d { padding: 24px 16px 40px; perspective: none; }
  .laptop { transform: none !important; max-width: none; margin: 0; }
  .laptop .lid { aspect-ratio: auto; animation: none !important; transform: none !important; padding: 8px; border-radius: 14px 14px 4px 4px; }
  .laptop .lidback { display: none; }
  .laptop .screen { position: static; border-radius: 6px; background: var(--surface); }
  .laptop .notch, .menubar, .laptop .base, .laptop .lip, .laptop .ground, .kb { display: none; }
  .laptop .device { position: static; width: auto; height: auto; transform: none; }
  .laptop .stage { height: 440px; }
  .laptop::after { content: ''; display: block; height: 14px; margin: 0 -10px; background: linear-gradient(#dfe2e7, #c5c9d0); border-radius: 0 0 12px 12px; }
  .hero-phone { display: none; }
  .iphone.small.tilt-l, .iphone.small.tilt-r { transform: none; }
}

/* the client phones: content sized for a real phone screen */
.iphone.small .lc-screen { gap: 10px; font-size: 14px; padding-left: calc(var(--pw) * .07); padding-right: calc(var(--pw) * .07); }
.iphone.small .lc-screen > b { font-size: 15px; }
.iphone.small .lc-line { height: 10px; } .iphone.small .lc-sig { height: 64px; }
.iphone.small .lc-thumbs i { width: 68px; height: 52px; } .iphone.small .lc-photos i { width: 46px; height: 40px; }
.iphone.small .lc-ms i { height: 8px; }
.lc-amt { display: block; background: var(--paper); border: 1px solid var(--line); padding: 10px; }
.lc-amt small { display: block; color: var(--ink-faint); font-size: 11px; } .lc-amt strong { font-size: 22px; letter-spacing: -.02em; }
.lc-total { display: flex; justify-content: space-between; border-top: 2px solid var(--ink); padding-top: 8px; font-weight: 700; font-size: 15px; }
.lc-note { display: block; color: var(--ink-soft); font-size: 12px; line-height: 1.35; }
.iphone.small .lc-btn { padding: 12px; font-size: 14px; }

/* footer legal row */
.foot .legal { display: flex; grid-template-columns: none; padding: 18px 28px 32px; }
