.hero { position: relative; isolation: isolate; overflow: hidden; background: #37353d; }
.hero-photo { position: absolute; z-index: -2; inset: 0; background: url("../brand/london-bridge.webp") center center / cover no-repeat; filter: var(--sky-grade); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(16 17 19 / .37), transparent 71%), linear-gradient(0deg, rgb(16 17 19 / .5), transparent 35%); }
.hero-inner { width: min(100%, 1560px); margin: auto; padding: clamp(2rem, 6vh, 5rem) var(--gutter); min-height: clamp(630px, 86svh, 890px); display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(290px, .93fr); align-items: center; gap: clamp(1rem, 4vw, 4rem); }
.pitch { max-width: 47rem; }
.wordmark { display: block; width: clamp(225px, 28vw, 410px); max-width: 100%; height: auto; margin-bottom: clamp(1.75rem, 3.3vw, 3.25rem); }
h1 { font-weight: 500; max-width: 17ch; font-size: clamp(2.65rem, 4.3vw, 4.65rem); text-wrap: balance; }
.lead { max-width: 33em; font-size: clamp(1.04rem, 1.45vw, 1.4rem); margin: 1.35rem 0 1.85rem; }
.gold-button span { margin-left: .75rem; }
.fee { width: fit-content; max-width: 35em; padding: .25rem .45rem; border-radius: 3px; background: rgb(25 26 28 / .75); margin-top: 1rem; font-size: .875rem; line-height: 1.4; color: var(--ivory); }
.demo { justify-self: center; margin: 0; }
.phone-stage { width: 346px; height: 542px; display: grid; place-items: center; }
.phone { width: 254px; height: 482px; position: relative; padding: 5px; border-radius: 36px; background: linear-gradient(102deg,#242323 0%,#a09a89 1.4%,#e7dfca 2%,#565247 4%,#27292b 55%,#aaa69a 95%,#eeeadb 96%,#605f5a 98%); transform: perspective(980px) rotateY(-15deg) rotateX(3deg) rotateZ(7deg); box-shadow: 7px 5px 0 #353434, 10px 8px 0 #191919, 12px 23px 34px rgb(0 0 0 / .42); color: var(--ivory); font-family: var(--body-font); }
.phone::before, .phone::after { content: ""; position: absolute; width: 3px; border-radius: 2px; background: #77746d; }
.phone::before { height: 41px; left: -2px; top: 117px; }
.phone::after { height: 49px; right: -5px; top: 134px; }
.glass { display: flex; flex-direction: column; position: relative; height: 100%; overflow: hidden; border: 3px solid #0b0b0c; border-radius: 31px; background: #202123; }
.statusbar { height: 25px; padding: 7px 16px 0; display: flex; align-items: baseline; justify-content: space-between; font: 650 9px/1 Arial,sans-serif; }
.statusbar i { width: 65px; height: 12px; position: absolute; top: 5px; left: calc(50% - 32.5px); background: #080809; border-radius: 9px; }
.screen-top { margin: 0 14px; padding: 10px 0 11px; border-bottom: 1px solid var(--rule); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.screen-top img { width: 96px; height: auto; }
.screen-top span { font-size: 8px; color: var(--muted); }
/* Phone scenes */
.homebar { margin: 6px auto; width: 60px; height: 3px; background: #bdb8b0; border-radius: 2px; }
[hidden] { display: none !important; }
.workflow { padding: clamp(3rem, 6vw, 6rem) var(--gutter); max-width: 1560px; margin: auto; }
.workflow h2 { font-size: clamp(2rem, 3.3vw, 3.5rem); margin-bottom: 2rem; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.steps section { border-top: 1px solid var(--rule); padding-top: 1rem; }
.steps h3 { color: var(--gold); font-size: 1.2rem; margin-bottom: .4rem; }
.steps p { color: var(--muted); max-width: 36ch; }
@media (min-width: 761px) and (max-width: 980px) { .phone-stage { zoom: .85; } .hero-inner { gap: .75rem; grid-template-columns: minmax(0, 1.3fr) minmax(245px, .8fr); } }
@media (max-width: 760px) {
  .hero-inner { grid-template-columns: 1fr; gap: .6rem; padding-top: 2.5rem; padding-bottom: 1.5rem; }
  .hero-photo { inset: auto 0 0; height: 57%; background-position: 68% bottom; }
  .hero::before { background: linear-gradient(180deg,#37353d 0%,#37353d 42%,transparent 62%,rgb(16 17 19 / .12) 100%); }
  .wordmark { width: min(260px, 72vw); margin-bottom: 1.55rem; }
  h1 { font-size: clamp(2.5rem, 8vw, 3.3rem); }
  .lead { margin: 1rem 0 1.25rem; }
  .phone-stage { zoom: .83; }
  .steps { grid-template-columns: 1fr; gap: 1.3rem; }
}
@media (max-width: 355px) { .phone-stage { zoom: .72; } }

.case-heading { flex: none; margin: 15px 16px 3px; color: var(--muted); font-size: 11px; }
.phone-content { position: relative; flex: 1; min-height: 0; isolation: isolate; }
.phone-scene { position: absolute; inset: 0; padding: 5px 16px 0; visibility: hidden; opacity: 0; transform: translateY(7px); }
.phone-scene.is-current { visibility: visible; opacity: 1; transform: none; }
.scene-title { font: 650 25px/1.08 var(--display-font); letter-spacing: -.048em; }
.sheet-caption { display: block; font: 700 9px/1.4 var(--body-font); letter-spacing: .09em; text-transform: uppercase; }
.dispatch-art, .review-art { position: relative; height: 142px; margin: 12px 0 4px; display: grid; place-items: center; }
.file-stack, .case-sheet, .review-sheet { width: 155px; height: 112px; border-radius: 5px; }
.file-stack { position: absolute; top: 22px; left: 24px; background: #b69e6e; transform: rotate(-8deg); box-shadow: 0 7px 14px #0004; }
.case-sheet, .review-sheet { position: relative; padding: 13px 14px; background: var(--ivory); color: var(--charcoal); box-shadow: 0 4px 15px #0004; }
.case-sheet { transform: rotate(3deg); }
.case-sheet strong, .review-sheet strong { display: block; margin: 4px 0 1px; font: 650 24px/1.12 var(--display-font); letter-spacing: -.04em; }
.case-sheet > span:not(.sheet-caption) { display: block; font-size: 8px; }
.document-lines { display: grid; gap: 4px; margin-top: 9px; }
.document-lines i { width: 100%; height: 2px; background: #cec8b9; }
.document-lines i:nth-child(2) { width: 83%; }
.document-lines i:nth-child(3) { width: 55%; }
.dispatch-arrow { position: absolute; bottom: 5px; right: 9px; display: grid; place-items: center; width: 35px; height: 35px; color: var(--charcoal); background: var(--gold); border: 3px solid var(--surface); border-radius: 100%; font: 700 22px/1 var(--body-font); }
.file-row, .review-list li { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--rule); font-size: 12px; }
.file-row { padding: 12px 0; }
.file-status { color: var(--gold); font-size: 10px; }
.action-label { margin: 13px 0 6px; font-size: 11px; color: var(--muted); }
.transfer-track, .scene-meters i { overflow: hidden; background: #4a4741; border-radius: 3px; }
.transfer-track { height: 3px; }
.transfer-track i, .scene-meters i::after { display: block; height: 100%; background: var(--gold); transform-origin: left; }
.review-art { height: 116px; overflow: hidden; margin-bottom: 2px; border: 1px solid #494744; border-radius: 7px; background: #27282a; }
.review-sheet { width: 158px; height: 89px; padding: 10px 14px; }
.review-sheet strong { font-size: 16px; }
.scan-beam { position: absolute; left: 6%; right: 6%; top: 13px; height: 2px; background: #fad792; box-shadow: 0 -5px 9px 3px #ddab4d55; opacity: 0; }
.review-list { list-style: none; margin: 0; padding: 0; }
.review-list li { padding: 6px 0; }
.review-list li span { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--gold); color: var(--charcoal); font-size: 11px; font-weight: 700; }
.decision-letter { position: relative; margin: 7px 0 0; text-align: center; background: linear-gradient(145deg,#fffaf0,#f1e9d9); color: var(--charcoal); border-radius: 9px; padding: 18px 12px 17px; box-shadow: inset 0 0 0 1px #f6f2e9, 0 8px 22px #0003; }
.seal { display: grid; place-items: center; width: 62px; height: 62px; margin: 0 auto 10px; border-radius: 50%; background: radial-gradient(circle at 35% 28%,#f8eac7,#dec387); box-shadow: inset 0 0 0 2px #c9a86d,inset 0 0 0 5px #f2e4c4; }
.seal svg { stroke: #70582d; }
.seal-ring { stroke-width: 1.4; stroke-dasharray: 1; }
.seal-tick { stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; }
.decision-letter .sheet-caption { color: #6d593c; }
.decision-letter .scene-title { margin: 5px 0 10px; font-size: 27px; }
.letter-rule { display: block; height: 1px; margin: 0 8px 12px; background: #cdc1a7; }
.amount-label, .approved-term { display: block; font-size: 10px; color: #514b40; }
.approved-amount { display: block; font: 650 31px/1.2 var(--display-font); letter-spacing: -.05em; }
.phone-bottom { flex: none; margin: 0 15px; }
.scene-meters { display: flex; gap: 4px; margin: 0 0 9px; }
.scene-meters i { height: 2px; flex: 1; }
.scene-meters i::after { content: ""; transform: scaleX(1); }
.phone[data-animated] .scene-meters i::after { transform: scaleX(0); }
.phone[data-animated] .scene-meters i.complete::after { transform: scaleX(1); }
.phone-foot { display: flex; justify-content: space-between; font-size: 9px; color: var(--muted); }
.motion-toggle { position: absolute; inset: 3px; border-radius: 35px; padding: 0; border: 0; background: transparent; }
.motion-toggle:focus-visible { outline-offset: 4px; }
@media (prefers-reduced-motion: no-preference) {
  .phone[data-animated] .phone-scene { transition: opacity .24s, transform .34s, visibility 0s .34s; }
  .phone[data-animated] .phone-scene.is-current { transition: opacity .28s .10s, transform .36s .06s, visibility 0s; z-index: 1; }
  .phone[data-animated] .is-current .case-sheet { animation: dispatch 3.4s cubic-bezier(.25,.7,.3,1) both; }
  .phone[data-animated] .is-current .dispatch-arrow { animation: rise .45s .8s both; }
  .phone[data-animated] .is-current .transfer-track i { animation: advance 2.5s .5s both; }
  .phone[data-animated] .is-current .scan-beam { animation: scan 1.5s .2s 2; }
  .phone[data-animated] .is-current .review-list li span { animation: stamp .4s both; }
  .review-list li:nth-child(1) { --check-delay: .9s; }
  .review-list li:nth-child(2) { --check-delay: 1.65s; }
  .review-list li:nth-child(3) { --check-delay: 2.4s; }
  .phone[data-animated] .is-current .review-list li span { animation-delay: var(--check-delay); }
  .phone[data-animated] .is-current .decision-letter { animation: unfold .7s cubic-bezier(.2,.75,.2,1) both; transform-origin: top; }
  .phone[data-animated] .is-current .seal { animation: stamp .55s .25s both; }
  .phone[data-animated] .is-current .seal-ring { animation: draw .55s .4s both; }
  .phone[data-animated] .is-current .seal-tick { animation: draw .4s .85s both; }
  .phone[data-animated] .is-current .approved-amount { animation: rise .4s .8s both; }
  .phone[data-animated] .scene-meters i.current::after { animation: advance var(--duration) linear both; }
  .phone[data-paused] *, .phone[data-paused] *::after { animation-play-state: paused !important; }
  @keyframes advance { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  @keyframes dispatch { 0% { opacity: 0; transform: translate(-14px,19px) rotate(-8deg); } 22%,76% { opacity: 1; transform: rotate(3deg); } 100% { opacity: 0; transform: translate(21px,-24px) rotate(6deg); } }
  @keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
  @keyframes stamp { 0% { opacity: 0; transform: scale(.7); } 70% { opacity: 1; transform: scale(1.07); } 100% { opacity: 1; transform: scale(1); } }
  @keyframes scan { 0% { opacity: 0; transform: translateY(0); } 15%,85% { opacity: 1; } 100% { opacity: 0; transform: translateY(87px); } }
  @keyframes unfold { from { opacity: 0; transform: perspective(450px) rotateX(-11deg) translateY(13px); } to { opacity: 1; transform: none; } }
  @keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
}
