/* "Good trips. Before you ask." The one phone on the page nobody is using. It rests on its lock screen until Awaya's text lands.
   The screen has no fill, so the photo behind it is the wallpaper and always lines up. Sizes come from the phone's own width, in points of the 402pt screen, so none of this needs JavaScript. */
.ga { --ga-h:clamp(500px,calc(100svh - 170px),640px); --ims-phone:clamp(320px,calc((var(--ga-h) - 44px) * .69),400px); display:grid; grid-template-columns:clamp(290px,27vw,400px) minmax(0,1fr); column-gap:clamp(32px,4.5vw,72px); align-items:center; padding:clamp(64px,9svh,100px) 0 clamp(64px,9svh,100px) max(40px,calc((100vw - 1120px) / 2)); color:#292530; font-family:Manrope,sans-serif; }
/* The hero links to this heading. The margin lands the whole scene in view, not just the words. */
html[data-awaya-theme] body .ga h2 { margin:0; color:inherit; font-size:clamp(36px,3.6vw,50px); font-weight:600; line-height:1.1; letter-spacing:-.035em; text-align:left; scroll-margin-top:calc((var(--ga-h) - 276px) / 2); }
html[data-awaya-theme] body .ga-copy p { margin:18px 0 0; max-width:360px; color:#514959; font-size:16px; line-height:1.6; text-align:left; }
html[data-awaya-theme] body .ga-copy p { text-wrap:pretty; }
.ga-copy p span { display:block; }

/* The gradient stands in for the photo's sky, sea and terrace until it loads. */
.ga-scene { position:relative; height:var(--ga-h); overflow:hidden; border-radius:24px 0 0 24px; background:linear-gradient(#8db4d4 0,#2f6f9e 46%,#9a8a74 82%); isolation:isolate; }
.ga-photo { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:100% 46%; }

/* --pt is one point of the 402pt screen: the phone's width less its 9px of metal and bezel on each side. */
.ga-phone { --pt:calc((100cqw - 18px) / 402); position:absolute; z-index:1; left:clamp(24px,4vw,60px); top:40px; width:var(--ims-phone); display:block; container-type:inline-size; }

/* The phone's metal and bezel become rings, so the view shows through the middle. */
.ga-phone .ims-phone { width:100%; padding:0; background:none; border-radius:calc(var(--pt) * 62 + 9px); box-shadow:0 28px 64px -12px rgba(8,14,30,.5), 0 8px 22px rgba(8,14,30,.22); }
.ga-phone .ims-phone::before { content:""; position:absolute; inset:0; padding:3px; border-radius:inherit; background:linear-gradient(135deg,#8f8c87 0%,#dcd9d3 16%,#85827d 30%,#55534f 50%,#8d8a85 68%,#e2dfd9 86%,#8b8883 100%); -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0); mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0); -webkit-mask-composite:xor; mask-composite:exclude; pointer-events:none; }
.ga-phone .ims-bezel { margin:3px; padding:0; border:6px solid #050506; border-radius:calc(var(--pt) * 62 + 6px); background:none; }
.ga-phone .ims-viewport { border-radius:calc(var(--pt) * 62); background:none; }
.ga-phone .ims-viewport::before, .ga-phone .ims-viewport::after { content:""; position:absolute; inset:0; pointer-events:none; }
/* Keeps the date and clock readable over any part of the view. The soft inner edge makes it read as glass, not a hole. */
.ga-phone .ims-viewport::before { border-radius:inherit; background:linear-gradient(to bottom,rgba(12,28,62,.52),rgba(12,28,62,.3) 32%,rgba(12,28,62,0) 58%); box-shadow:inset 0 0 calc(var(--pt) * 26) rgba(6,12,28,.24); }
/* The screen when it's asleep. */
.ga-phone .ims-viewport::after { background:#06070d; opacity:0; transition:opacity 1s cubic-bezier(.16,1,.3,1); }
.ga-phone .ims-screen { z-index:1; width:100%; height:100%; transform:none; background:none; color:#fff; }

.ga-phone .ims-status { height:calc(var(--pt) * 59); padding:calc(var(--pt) * 6) calc(var(--pt) * 30) 0 calc(var(--pt) * 46); }
.ga-phone .ims-time { visibility:hidden; font-size:calc(var(--pt) * 17); }
.ga-phone .ims-status-icons { gap:calc(var(--pt) * 6); }
.ga-phone .ims-status-icons svg { height:auto; }
.ga-phone .ims-status-icons svg:nth-child(1) { width:calc(var(--pt) * 19); }
.ga-phone .ims-status-icons svg:nth-child(2) { width:calc(var(--pt) * 17); }
.ga-phone .ims-status-icons svg:nth-child(3) { width:calc(var(--pt) * 27); }
.ga-phone .ims-island { top:calc(var(--pt) * 11); left:calc(var(--pt) * 138); width:calc(var(--pt) * 126); height:calc(var(--pt) * 37); border-radius:calc(var(--pt) * 20); }
.ga-phone .ims-island span { top:calc(var(--pt) * 12.5); right:calc(var(--pt) * 12); width:calc(var(--pt) * 12); height:calc(var(--pt) * 12); }

.ga-lock { position:absolute; z-index:2; inset:calc(var(--pt) * 96) calc(var(--pt) * 14) 0; display:flex; flex-direction:column; align-items:center; }
.ga-padlock { position:absolute; top:calc(var(--pt) * -38); left:50%; width:calc(var(--pt) * 15); height:auto; margin-left:calc(var(--pt) * -7.5); }
.ga-date { font-size:calc(var(--pt) * 22); font-weight:600; line-height:1.3; letter-spacing:-.01em; text-shadow:0 1px 14px rgba(8,20,48,.4); }
.ga-clock { font-size:calc(var(--pt) * 104); font-weight:600; line-height:1; letter-spacing:-.035em; text-shadow:0 2px 28px rgba(8,20,48,.34); transition:opacity .9s ease; }

/* It rests low on the screen, as it does on a real lock screen, so the view stays open under the clock. The phone's crop always shows this far down. */
.ga-note { position:absolute; left:0; right:0; bottom:calc(var(--pt) * 342); display:grid; grid-template-columns:auto minmax(0,1fr); column-gap:calc(var(--pt) * 12); align-items:start; padding:calc(var(--pt) * 14) calc(var(--pt) * 16); border-radius:calc(var(--pt) * 28); background:rgba(246,246,248,.84); -webkit-backdrop-filter:blur(26px) saturate(1.7); backdrop-filter:blur(26px) saturate(1.7); box-shadow:0 18px 50px rgba(8,16,36,.28); color:#000; transition:transform .7s cubic-bezier(.16,1,.3,1) .12s, opacity .3s ease .12s; }
.ga-note-avatar { position:relative; display:grid; place-items:center; width:calc(var(--pt) * 46); height:calc(var(--pt) * 46); border-radius:50%; background:linear-gradient(165deg,#f5f0fa,#d9cfe9); }
.ga-note-avatar img { display:block; width:calc(var(--pt) * 30); height:calc(var(--pt) * 30); }
/* Messages' own badge on the sender's picture, as iOS shows for a text. */
.ga-note-badge { position:absolute; right:calc(var(--pt) * -6); bottom:calc(var(--pt) * -4); width:calc(var(--pt) * 20); height:calc(var(--pt) * 20); border-radius:calc(var(--pt) * 5); box-shadow:0 0 0 calc(var(--pt) * 1.5) rgba(246,246,248,.92); }
.ga-note-head { display:flex; align-items:baseline; justify-content:space-between; column-gap:calc(var(--pt) * 8); }
.ga-note strong { font-weight:600; }
.ga-note strong, html[data-awaya-theme] body .ga-note p { margin:0; color:#000; font-size:calc(var(--pt) * 19); line-height:calc(var(--pt) * 24); letter-spacing:calc(var(--pt) * -.3); text-align:left; text-wrap:pretty; }
.ga-note time { color:rgba(60,60,67,.72); font-size:calc(var(--pt) * 16); letter-spacing:calc(var(--pt) * -.2); }

/* Added by proactive.js until the phone is in view, then taken away as the text lands. It only animates on the way out: the screen lights, then the text rises into place. */
.ga.is-asleep .ims-viewport::after { opacity:.8; transition:none; }
.ga.is-asleep .ga-clock { opacity:.6; transition:none; }
.ga.is-asleep .ga-note { opacity:0; transform:translateY(calc(var(--pt) * 28)) scale(.96); transition:none; }

@media (max-width:860px) {
  .ga { --ims-phone:min(84vw,340px); display:block; padding:64px 0; }
  html[data-awaya-theme] body .ga h2 { scroll-margin-top:0; }
  .ga-copy { padding:0 20px; }
  .ga-scene { height:calc(88px + var(--ims-phone) * 1.47); margin-top:28px; border-radius:0; }
  .ga-photo { object-position:72% 40%; }
  .ga-phone { left:50%; top:88px; margin-left:calc(var(--ims-phone) / -2); }
}
@media (prefers-reduced-motion:reduce) {
  .ga-phone .ims-viewport::after, .ga-clock, .ga-note { transition:none; }
}

/* On a phone the lock screen's phone matches the conversation's, 240px wide, and the text link goes,
   since the header's Join the beta is on screen throughout. */
@media (max-width:760px) {
  .ga { --ims-phone:240px; }
  .ga-copy .text-action { display:none; }
}
