/* Awanex home: "How it works." One pinned stage: the heading and the step rail stay put while three
   cards swap in place as you scroll — the next card rises in while the old one lifts away, so there is
   always a card on screen and nothing is ever cut. (how.js) Greys, chrome, white, Reicon icons. */
.how { --ch: min(60vh, 680px); position: relative; z-index: 2; background: #000; margin-top: -2vh; }
.how-pin { height: 100vh; height: 100svh; display: flex; align-items: flex-start; padding-top: max(110px, calc((100vh - var(--ch)) / 2 - 50px)); box-sizing: border-box; }
.how-wrap {
  width: min(1160px, 100vw - 48px); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: center;
}
.how-head h2 { margin: 0; white-space: nowrap; font-size: clamp(40px, 4.4vw, 68px); font-weight: 700; line-height: 1; letter-spacing: -.04em; color: #FFFFFF; }

/* the rail: three steps with a chrome line that fills step by step */
.how-rail { position: relative; margin: 44px 0 0; padding: 0 0 0 26px; list-style: none; display: flex; flex-direction: column; gap: 20px; }
.how-rail::before, .how-rail-fill { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 2px; border-radius: 2px; background: rgba(255, 255, 255, .12); }
.how-rail-fill { background: linear-gradient(180deg, #FFFFFF, #D8DBDE 60%, #8E9297); transform-origin: 50% 0; transform: scaleY(.333); transition: transform .5s var(--ease); }
.how-rail li { font-size: 20px; font-weight: 600; letter-spacing: -.01em; color: rgba(255, 255, 255, .32); transition: color .35s var(--ease); }
.how-rail li.on { color: #FFFFFF; }

/* the stage: the three cards share one spot */
.how-stack { position: relative; height: var(--ch); min-height: 360px; }
.how-card .how-copy { overflow: visible; }
.how-stack .how-card { overflow: hidden; }
.how-card {
  position: absolute; inset: 0; border-radius: 28px; overflow: hidden; will-change: transform, opacity, filter;
  background: radial-gradient(120% 140% at 85% 0%, #3A3D42 0%, #0B0C0D 72%);
  box-shadow: inset 0 0 0 1px rgba(216, 219, 222, .18), inset 0 1px 0 rgba(255, 255, 255, .22), 0 40px 80px rgba(0, 0, 0, .6);
}
.how-sheen { /* a soft light that travels across the glass as you scroll the steps */
  position: absolute; top: -20%; bottom: -20%; width: 36%; pointer-events: none; z-index: 0;
  background: linear-gradient(100deg, rgba(255,255,255,0), rgba(255,255,255,.07) 50%, rgba(255,255,255,0)); transform: skewX(-12deg); }
.how-card::after { content: ""; position: absolute; left: 8%; right: 8%; top: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.7), rgba(220,20,60,.5) 70%, rgba(255,255,255,0)); }
.how-card:nth-child(2) { background: radial-gradient(120% 140% at 85% 0%, #45484E 0%, #0E0F10 72%); }
.how-card:nth-child(3) { background: radial-gradient(120% 140% at 85% 0%, #2E3034 0%, #060607 72%); }
.how-card:not(:first-child) { opacity: 0; background: none; box-shadow: none; } /* later steps live inside the first card's frame */
.how-card:not(:first-child)::after { display: none; }
/* the copy sits on the left of the card, the phone on the right */
.how-copy { position: absolute; left: 40px; bottom: 40px; width: calc(48% - 40px); z-index: 2; }
.how-copy h3 { margin: 0; font-size: clamp(42px, 4vw, 60px); font-weight: 700; line-height: .96; letter-spacing: -.045em; color: #FFFFFF; text-wrap: balance; }
.how-copy h3 .hw2 { display: inline-block; }
.how-copy h3 .hw2:first-child { display: block; } /* every title is two lines: We / talk., We / build it., You / go live. */
.how-copy p { margin: 16px 0 0; max-width: 300px; text-wrap: pretty; font-size: clamp(16px, 1.2vw, 19px); line-height: 1.5; color: rgba(255, 255, 255, .72); }

/* ---- the phone (Nov 25): a call, then the site builds itself, then it goes live ---- */
.how-phone { position: absolute; z-index: 1; right: 7%; top: 50%; width: calc(300px * var(--ps, 1)); height: calc(620px * var(--ps, 1)); margin-top: calc(-310px * var(--ps, 1)); }
.how-phone .ph { zoom: var(--ps, 1); } /* real size, not a scaled picture: text and edges stay sharp */
.ph { position: relative; width: 300px; height: 620px; border-radius: 54px; transform-style: preserve-3d;
  background: linear-gradient(145deg, #F2F3F4 0%, #9A9EA4 18%, #4A4D52 42%, #C9CCD0 62%, #6E7277 82%, #E6E8EA 100%);
  box-shadow: 0 0 0 1px rgba(0,0,0,.6), 0 50px 90px rgba(0,0,0,.65), 0 18px 30px rgba(0,0,0,.5); padding: 4px; box-sizing: border-box; }
.ph::before { content: ""; position: absolute; inset: 4px; border-radius: 50px; background: #050505; box-shadow: inset 0 0 0 1.5px #1A1B1D; }
.ph-btn { position: absolute; width: 3px; border-radius: 2px; background: linear-gradient(90deg, #5A5D62, #C9CCD0); }
.ph-btn-a { left: -3px; top: 116px; height: 30px; } .ph-btn-b { left: -3px; top: 166px; height: 56px; } .ph-btn-c { right: -3px; top: 176px; height: 84px; transform: scaleX(-1); }
.ph-screen { position: absolute; inset: 13px; border-radius: 42px; overflow: hidden; background: #000; color: #fff; font-family: Geist, system-ui, sans-serif; isolation: isolate; }
.ph-glare { position: absolute; inset: 13px; border-radius: 42px; pointer-events: none; z-index: 5;
  background: linear-gradient(118deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,.03) 28%, rgba(255,255,255,0) 40%); }
.ph-status { position: absolute; z-index: 4; left: 0; right: 0; top: 0; height: 46px; display: flex; align-items: center; justify-content: space-between; padding: 4px 26px 0 32px; box-sizing: border-box; font-size: 14px; }
.ph-status b { font-weight: 600; letter-spacing: -.01em; }
.ph-island { position: absolute; left: 50%; top: 11px; width: 96px; height: 28px; margin-left: -48px; border-radius: 20px; background: #000; }
.ph-bars { display: flex; align-items: center; gap: 5px; } .ph-bars svg { fill: #fff; }
.ph-batt { position: relative; width: 24px; height: 11.5px; border-radius: 3.5px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.45); padding: 2px; box-sizing: border-box; }
.ph-batt i { display: block; width: 80%; height: 100%; border-radius: 1.5px; background: #fff; }
.ph-home { position: absolute; z-index: 4; left: 50%; bottom: 8px; width: 112px; height: 4.5px; margin-left: -56px; border-radius: 3px; background: rgba(255,255,255,.85); }

/* call screen */
.ph-call { position: absolute; inset: 0; z-index: 2; clip-path: inset(44px 0 0 0); /* never slides over the status bar */ display: flex; flex-direction: column; align-items: center; padding-top: 86px; box-sizing: border-box;
  background: radial-gradient(120% 70% at 50% 0%, #2E3034 0%, #0B0C0D 70%); }
.ph-who { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; font-size: 26px; font-weight: 600; letter-spacing: -.02em; }
.ph-av { width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; font-size: 32px; font-weight: 700; color: #111;
  background: linear-gradient(160deg, #FFFFFF 0%, #D8DBDE 40%, #8E9297 62%, #E6E8EA 100%); box-shadow: 0 8px 24px rgba(0,0,0,.5); }
.ph-time { margin: 6px 0 0; font-size: 15px; color: rgba(255,255,255,.6); font-variant-numeric: tabular-nums; }
.ph-wave { display: flex; align-items: center; gap: 4px; height: 34px; margin-top: 30px; }
.ph-wave i { width: 4px; height: 100%; border-radius: 2px; background: #DC143C; transform: scaleY(.2); }
.ph-keys { display: grid; grid-template-columns: repeat(3, 68px); gap: 18px; margin-top: 46px; }
.ph-keys span { display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 11.5px; color: rgba(255,255,255,.75); }
.ph-keys i { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.12); backdrop-filter: blur(10px); }
.ph-keys svg { width: 24px; height: 24px; fill: #fff; }
.ph-end { position: absolute; bottom: 52px; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: #DC143C; box-shadow: 0 10px 24px rgba(220,20,60,.35); }
.ph-end svg { width: 30px; height: 30px; fill: #fff; }

/* the website */
.ph-site { position: absolute; inset: 0; z-index: 1; padding: 50px 16px 0; box-sizing: border-box; background: #0A0A0B; }
.ph-url { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 10px; background: #1C1D1F; font-size: 11.5px; color: rgba(255,255,255,.8); }
.ph-url svg { fill: rgba(255,255,255,.7); }
.ph-sub { display: flex; align-items: center; }
.ph-live { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 600; color: #fff; opacity: 0; }
.ph-live i { width: 6px; height: 6px; border-radius: 50%; background: #DC143C; box-shadow: 0 0 0 3px rgba(220,20,60,.25), 0 0 10px rgba(220,20,60,.9); }
.ph-nav { display: flex; align-items: center; justify-content: space-between; margin: 18px 2px 0; }
.ph-nav b { font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.ph-nav span { display: flex; flex-direction: column; gap: 4px; } .ph-nav span i { width: 17px; height: 1.6px; border-radius: 1px; background: #fff; }
.ph-h { margin: 26px 2px 0; font-size: 33px; font-weight: 700; line-height: .98; letter-spacing: -.045em; }
.ph-sub { margin: 9px 2px 0; font-size: 12.5px; color: rgba(255,255,255,.6); }
.ph-cta { display: flex; gap: 8px; margin: 18px 0 0; }
.ph-cta span { flex: 1; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; font-weight: 600; }
.ph-call-btn { background: #DC143C; box-shadow: 0 8px 20px rgba(220,20,60,.35); } .ph-call-btn svg { fill: #fff; }
.ph-dir { background: #1C1D1F; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.ph-map { position: relative; height: 112px; margin-top: 14px; border-radius: 14px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.ph-map svg { display: block; width: 100%; height: 100%; }
.ph-pin { position: absolute; left: 50%; top: 50%; margin: -29px 0 0 -11px; filter: drop-shadow(0 4px 6px rgba(0,0,0,.6)); }
.ph-hours { list-style: none; margin: 12px 0 0; padding: 0; font-size: 12px; }
.ph-hours li { display: flex; justify-content: space-between; padding: 9px 2px; border-bottom: 1px solid rgba(255,255,255,.08); color: rgba(255,255,255,.62); }
.ph-hours li span:last-child { color: #fff; }
.ph-skel { position: absolute; border-radius: 8px; background: linear-gradient(90deg, #17181A, #222326 50%, #17181A); opacity: 0; pointer-events: none; }
.ph-sel { position: absolute; left: 0; top: 0; width: 10px; height: 10px; pointer-events: none; opacity: 0; border-radius: 6px;
  box-shadow: 0 0 0 1.5px #DC143C, 0 0 14px rgba(220,20,60,.35); }
.ph-sel i { position: absolute; width: 6px; height: 6px; background: #fff; border: 1.5px solid #DC143C; border-radius: 1.5px; box-sizing: border-box; }
.ph-sel i:nth-child(1) { left: -3px; top: -3px; } .ph-sel i:nth-child(2) { right: -3px; top: -3px; } .ph-sel i:nth-child(3) { left: -3px; bottom: -3px; } .ph-sel i:nth-child(4) { right: -3px; bottom: -3px; }

/* the call that comes in once the site is live */
.ph-note { position: absolute; z-index: 3; left: 10px; right: 10px; top: 47px; display: flex; align-items: center; gap: 10px; padding: 7px 12px 7px 8px; border-radius: 20px;
  background: rgba(36, 37, 40, .97); backdrop-filter: blur(16px); box-shadow: 0 12px 30px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.08); opacity: 0; }
.ph-note-ic { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: #34C759; } .ph-note-ic svg { fill: #fff; }
.ph-note span:nth-child(2) { display: flex; flex-direction: column; font-size: 12.5px; } .ph-note b { font-weight: 600; } .ph-note small { font-size: 11.5px; color: rgba(255,255,255,.6); }
.ph-note em { margin-left: auto; align-self: flex-start; font-style: normal; font-size: 10.5px; color: rgba(255,255,255,.5); }

@media (max-width: 820px) {
  .how { margin-top: 0; }
  .how-pin { padding-top: 92px; }
  .how-wrap { grid-template-columns: 1fr; gap: 28px; }
  .how-head h2 { font-size: 44px; }
  /* on phones the rail turns into one row of three steps under the heading */
  .how-rail { flex-direction: row; gap: 18px; margin-top: 18px; padding: 0 0 14px; }
  .how-rail::before, .how-rail-fill { top: auto; bottom: 0; left: 0; right: 0; width: auto; height: 2px; }
  .how-rail-fill { transform-origin: 0 50%; transform: scaleX(.333); }
  .how-rail li { font-size: 15px; }
  .how { --ch: min(560px, calc(100svh - 236px)); }
  .how-copy { left: 22px; right: 22px; top: 22px; bottom: auto; width: auto; }
  .how-copy h3 { font-size: 36px; }
  .how-copy h3 .hw2:first-child { display: inline-block; }
  .how-copy p { margin-top: 8px; font-size: 15px; max-width: 100%; }
  .how-phone { right: auto; left: 50%; top: auto; bottom: 20px; margin: 0 0 0 calc(-150px * var(--ps, 1)); }
  .how-card { border-radius: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .how-stack { height: auto; display: flex; flex-direction: column; gap: 16px; }
  .how-card { position: relative; height: var(--ch); opacity: 1 !important; }
}
/* Nov 25, 11 PM (Sir: "Yes, fix them"): the small phone labels are at least 12px so they are easy to read */
.ph-keys span { font-size: 12.5px; } .ph-note small, .ph-note em, .ph-url, .ph-live { font-size: 12px; }
