/* Layout: one dark hero. The line sits top left, the phone with Chord's texts sits on the right, and behind
   them both a constellation of one person's people turns slowly: white stars, fine lines, nothing else.
   Deliberately dark, one look. */
:root {
  --ground: #08090C;      /* plain dark, no sky */
  --ground-2: #0E1014;    /* the faint lift behind the constellation */
  --panel: #111318;       /* the small popover */
  --line: rgba(226, 231, 240, .12);
  --star: #F2F4F8;        /* stars, headline */
  --mist: #A1A7B3;        /* secondary text */
  --faint: #646A77;
  --imsg-in: #26262A;     /* iMessage, dark mode */
  --imsg-out: #0A84FF;
  --display: "Playfair Display", "Fraunces", "Iowan Old Style", Georgia, serif;   /* Playfair supplies only the f: Fraunces's f has a big hook */
  --body: "Inter", system-ui, -apple-system, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; background: var(--ground); color: var(--star); font: 16px/1.5 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--star); outline-offset: 3px; }

/* the slow arrival */
.hero { animation: arrive 2.4s cubic-bezier(.2,.6,.2,1) both; }
@keyframes arrive { from { opacity: 0; } }
.rise { animation: rise 1.4s cubic-bezier(.2,.7,.2,1) both; animation-delay: var(--d, 1s); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); filter: blur(8px); } }

.hero { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden;
        background: radial-gradient(60% 70% at 38% 62%, var(--ground-2) 0%, var(--ground) 70%); }
#net { position: absolute; inset: -48px -24px; width: calc(100% + 48px); height: calc(100% + 96px); display: block; touch-action: pan-y; cursor: grab; }
#net.grab { cursor: grabbing; }
#net.point { cursor: pointer; }
.wrap { position: relative; z-index: 1; max-width: 1440px; margin: 0 auto; min-height: 100vh; min-height: 100svh; display: grid;
        grid-template-columns: minmax(0, 1fr) 440px; grid-template-rows: auto minmax(calc(100svh - 88px), auto); column-gap: 40px;
        padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); padding-block: 0 28px;
        pointer-events: none; }
.wrap > * { pointer-events: auto; }

.top { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; padding-block: 24px; }
.lock { display: inline-flex; align-items: baseline; gap: .07em; color: var(--star); text-decoration: none; font: 800 30px/1 var(--display);
        letter-spacing: -.045em; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; }
.lock svg { width: .792em; height: .676em; position: relative; top: .029em; overflow: visible; }
.pill { font: 500 15px var(--body); color: var(--star); text-decoration: none; padding: 11px 20px; border-radius: 99px; border: 1px solid var(--line); }
.pill:hover { background: rgba(242,244,248,.06); }

.left { display: flex; flex-direction: column; justify-content: center; pointer-events: none; padding-bottom: 122px; }   /* matches the caption under the phone, so the words and the phone share a center line */
.space { position: relative; width: min(860px, 100%); height: clamp(380px, 54vh, 560px); height: clamp(380px, 54svh, 560px); pointer-events: auto; }
.copy { position: relative; z-index: 2; pointer-events: auto; padding-top: 1vh; }   /* the text inside keeps its own measure */   /* above the constellation's label margin */
h1 { margin: 0; max-width: 11.5em; font-family: var(--display); font-weight: 400; font-size: clamp(50px, 6.2vw, 100px); line-height: .98; letter-spacing: -.04em; text-wrap: balance;
     font-variation-settings: "SOFT" 50, "WONK" 0, "opsz" 144; }
.sub { margin: 28px 0 0; color: var(--star); font-size: clamp(19px, 1.65vw, 23px); line-height: 1.45; max-width: 27em; }
.sub-2 { margin-top: 14px; color: var(--mist); font-size: clamp(17px, 1.4vw, 20px); }
.sig { margin: 34px 0 0; font-family: var(--display); font-weight: 400; font-size: clamp(24px, 2vw, 30px); letter-spacing: -.02em; color: var(--mist);
       font-variation-settings: "SOFT" 50, "WONK" 0, "opsz" 72; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 34px; }
.cta a { font: 500 18px var(--body); color: var(--ground); background: var(--star); text-decoration: none; padding: 18px 32px; border-radius: 99px;
         transition: transform .25s, box-shadow .25s; }
.cta a:hover { transform: translateY(-1px); box-shadow: 0 10px 40px -8px rgba(242,244,248,.35); }
.cta small { color: var(--mist); font-size: 15px; }

/* where Chord learns from */


/* where you know them from: tap a group to light it up */
.groups { pointer-events: auto; display: grid; gap: 10px; }
.groups p { margin: 0; color: var(--faint); font-size: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { border: 1px solid var(--line); background: rgba(8,9,12,.6); color: var(--mist); font-size: 14px; padding: 8px 14px; border-radius: 99px;
                cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.chips button b { font-weight: 400; color: var(--faint); margin-left: 4px; font-variant-numeric: tabular-nums; }
.chips button:hover { color: var(--star); }
.chips button.on { color: var(--ground); background: var(--star); border-color: var(--star); }
.chips button.on b { color: rgba(8,9,12,.55); }

/* a person, tapped */
.pop { position: absolute; z-index: 2; left: 0; top: 0; width: 250px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
       padding: 14px 16px; box-shadow: 0 24px 60px -16px rgba(0,0,0,.85); opacity: 0; pointer-events: none; transition: opacity .2s; }
.pop.open { opacity: 1; pointer-events: auto; }
.pop h3 { margin: 0 0 2px; font: 500 19px/1.2 var(--display); letter-spacing: -.015em; font-variation-settings: "SOFT" 50, "opsz" 36; }
.pop .where { margin: 0 0 10px; color: var(--mist); font-size: 13.5px; }
.pop dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 13.5px; }
.pop dt { color: var(--faint); }
.pop dd { margin: 0; }
.pop .x { position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(242,244,248,.08); cursor: pointer; line-height: 1; }

/* the phone */
.right { display: grid; align-content: center; justify-items: center; gap: 16px; padding-bottom: 40px; }   /* centered on the same line as the words */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: 400px; margin-top: 8px; }
.tabs button { border: 1px solid var(--line); background: rgba(8,9,12,.6); color: var(--mist); font-size: 13.5px; padding: 7px 13px; border-radius: 99px; cursor: pointer; }
.tabs button.on { background: var(--star); color: var(--ground); border-color: var(--star); }
.phone { position: relative; height: clamp(520px, calc(100vh - 230px), 800px); height: clamp(520px, calc(100svh - 230px), 800px); aspect-ratio: 71.5 / 149.6; max-width: 100%; border-radius: 66px; padding: 4px;
         background: linear-gradient(150deg, #6B6E75 0%, #34363B 22%, #1E1F23 50%, #2E3035 78%, #5C5F66 100%);
         box-shadow: 0 0 0 1px rgba(255,255,255,.10), 0 60px 120px -40px rgba(0,0,0,.95); }
/* side buttons: action and volume on the left, power on the right */
.phone::before, .phone::after { content: ""; position: absolute; width: 3px; border-radius: 2px; background: #3A3C42; }
.phone::before { left: -3px; top: 17%; height: 4.5%; box-shadow: 0 calc(var(--ph, 700px) * .075) 0 #3A3C42, 0 calc(var(--ph, 700px) * .15) 0 #3A3C42; }
.phone::after { right: -3px; top: 26%; height: 10%; }
.screen { position: relative; width: 100%; height: 100%; border-radius: 62px; background: #000; overflow: hidden; display: flex; flex-direction: column;
          box-shadow: inset 0 0 0 5px #000; }
.screen::after { content: ""; position: absolute; left: 50%; bottom: 8px; width: 36%; height: 5px; margin-left: -18%; border-radius: 3px; background: rgba(255,255,255,.85); z-index: 4; pointer-events: none; }
.island { position: absolute; top: 13px; left: 50%; width: 33%; height: 33px; transform: translateX(-50%); background: #000; border-radius: 20px; z-index: 3; }
.status-bar { display: flex; justify-content: space-between; align-items: center; padding: 18px 34px 0 40px; font: 600 16px var(--body); height: 56px; letter-spacing: -.01em; }
.status-bar svg { height: 12px; }
.chat-head { display: grid; justify-items: center; gap: 5px; padding: 6px 0 12px; border-bottom: 1px solid rgba(255,255,255,.07); background: rgba(22,22,24,.92); }
.chat-ava { width: 50px; height: 50px; border-radius: 50%; background: #E9EBEF; color: #0B0C0F; display: grid; place-items: center; }
.chat-ava svg { width: 26px; height: 22px; overflow: visible; }
.chat-name { font-size: 13px; color: #E5E5EA; display: flex; align-items: center; gap: 2px; }
.chat-name svg { width: 7px; height: 7px; color: var(--mist); }
.thread { flex: 1; overflow-y: auto; padding: 12px 16px 16px; display: flex; flex-direction: column; gap: 3px; scrollbar-width: none; }
.thread > * { flex-shrink: 0; }   /* a full thread scrolls; it never squeezes a message (the link card used to get squashed) */
.thread::-webkit-scrollbar { display: none; }
.stamp { align-self: center; font-size: 12.5px; color: #8E8E93; margin: 2px 0 8px; }
.stamp b { font-weight: 600; }
.msg { max-width: 76%; padding: 9px 14px; border-radius: 20px; font-size: 16.5px; line-height: 1.3; letter-spacing: -.01em; animation: arrive-msg .5s ease-out both; overflow-wrap: anywhere; }
.msg.in, .msg.typing { background: var(--imsg-in); align-self: flex-start; color: #fff; }
.msg.out { background: var(--imsg-out); align-self: flex-end; color: #fff; }
.msg.in + .msg.out, .msg.out + .msg.in, .msg.link + .msg.out, .msg.out + .msg.typing { margin-top: 7px; }
.msg.typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.msg.typing i { width: 7px; height: 7px; border-radius: 50%; background: #8E8E93; animation: dot 1s infinite; }
.msg.typing i:nth-child(2) { animation-delay: .15s; } .msg.typing i:nth-child(3) { animation-delay: .3s; }
.msg.link { align-self: flex-start; padding: 0; overflow: hidden; width: 260px; }
.msg.link .lk-top { height: 84px; background: radial-gradient(circle at 30% 30%, #2C3140, #14161C); display: grid; place-items: center; }
.msg.link .lk-top svg { width: 30px; height: 26px; color: var(--star); overflow: visible; }
.msg.link .lk-body { padding: 10px 14px 12px; }
.msg.link b { display: block; font-size: 16px; font-weight: 600; }
.msg.link small { display: block; color: #8E8E93; font-size: 13.5px; }
@keyframes dot { 0%, 60%, 100% { opacity: .35; } 30% { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.97); } }
@keyframes arrive-msg { from { opacity: 0; transform: translateY(8px); } }
.thread.leaving > * { opacity: 0; transition: opacity .7s ease; }
.compose { display: flex; align-items: center; gap: 10px; padding: 10px 16px 30px; }
.compose .plus { width: 36px; height: 36px; border-radius: 50%; background: #1C1C1E; display: grid; place-items: center; color: #8E8E93; font-size: 18px; }
.compose .field { flex: 1; height: 38px; border: 1px solid #2C2C2E; border-radius: 19px; color: #636366; font-size: 16.5px; display: flex; align-items: center; padding: 0 12px; }
.how { max-width: 380px; width: 100%; display: grid; gap: 6px; }
.how span { font-size: 12.5px; color: var(--faint); }
.how p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--mist); text-align: center; }

@media (max-width: 1080px) {
  .wrap { grid-template-rows: auto auto; }
  .left, .right { padding-bottom: 0; }
  .wrap { grid-template-columns: minmax(0, 1fr); }
  .space { height: min(90vw, 520px); }
  .right { padding-top: 64px; align-self: auto; }
}
@media (max-width: 600px) {
  .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .space { height: 100vw; }
  .phone { height: 620px; }
  .pop { width: 220px; }
}
@media (prefers-reduced-motion: reduce) { .hero, .rise, .msg { animation: none !important; } }

/* ---------- footer ---------- */
.site-foot { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: baseline; color: var(--faint); font-size: 13px;
             max-width: 1440px; margin: 0 auto; padding: 24px max(24px, env(safe-area-inset-right, 0px)) 36px max(24px, env(safe-area-inset-left, 0px)); }
.site-foot span { margin-right: auto; }
.site-foot a { color: var(--faint); text-decoration: none; }
.site-foot a:hover { color: var(--star); text-decoration: underline; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- the waitlist: a phone that opens over the page, and you text Chord ---------- */
.sheet { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center;
         padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.sheet[hidden] { display: none; }
.sheet-back { position: absolute; inset: 0; background: rgba(4,5,7,.78); animation: arrive .3s ease-out both; }
.sheet-phone { position: relative; height: min(720px, calc(100dvh - 32px)); aspect-ratio: 340 / 690; max-width: 100%; animation: lift .35s cubic-bezier(.2,.8,.2,1) both; }
@keyframes lift { from { opacity: 0; transform: translateY(24px); } }
.sheet-x { position: absolute; z-index: 4; top: 62px; left: 18px; border: 0; background: none; color: #0A84FF; font: 400 15px var(--body); cursor: pointer; padding: 4px; }
.wl-fine { margin: 0; padding: 0 16px 6px; font-size: 11px; line-height: 1.4; color: #8E8E93; }
.wl-skip { display: flex; justify-content: flex-end; padding: 0 16px 2px; }
.wl-skip[hidden] { display: none; }
.wl-skip button { border: 1px solid #3A3A3C; background: transparent; color: #E5E5EA; font: 500 14px var(--body); padding: 6px 16px; border-radius: 99px; cursor: pointer; }
.wl-skip button:hover { background: #1C1C1E; }
.wl-compose { padding-bottom: 22px; }
.wl-compose input:not(.trap) { flex: 1; min-width: 0; height: 34px; border: 1px solid #2C2C2E; border-radius: 17px; background: transparent; color: #fff;
                                font: 15px var(--body); padding: 0 12px; outline: none; }
.wl-compose input:not(.trap):focus { border-color: #48484A; }
.wl-compose input::placeholder { color: #636366; }
.wl-compose .trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.wl-compose button { width: 32px; height: 32px; flex: none; border: 0; border-radius: 50%; background: var(--imsg-out); color: #fff; display: grid; place-items: center; cursor: pointer; }
.wl-compose button svg { width: 16px; height: 16px; }
.wl-compose button:disabled { background: #2C2C2E; color: #636366; cursor: default; }
@media (max-width: 600px) {
  .sheet { padding: 0; }
  .sheet-phone { height: 100dvh; width: 100%; aspect-ratio: auto; border-radius: 0; padding: 0; }
  .sheet-phone .screen { border-radius: 0; }
  .sheet-phone .island { display: none; }
  .sheet-phone .status-bar { display: none; }   /* a real phone already shows its own */
  .sheet-x { top: 16px; }
}
@media (prefers-reduced-motion: reduce) { .sheet-back, .sheet-phone { animation: none; } }

/* ---------- the connects statement: its own section, centered, across the whole page ---------- */
.connects { grid-column: 1 / -1; pointer-events: auto; padding: 72px 0 40px; display: grid; justify-items: center; gap: 56px; }
.connects-line { margin: 0; max-width: 16em; text-align: center; font-family: var(--display); font-weight: 400; color: var(--star);
                 font-size: clamp(36px, 4.6vw, 68px); line-height: 1.05; letter-spacing: -.025em; text-wrap: balance;
                 font-variation-settings: "SOFT" 50, "WONK" 0, "opsz" 72; }
.connects-copy { display: grid; justify-items: center; gap: 18px; }
.connects-sub { margin: 0; max-width: 30em; text-align: center; color: var(--mist); font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; text-wrap: balance; }
.apps { list-style: none; margin: 0; padding: 0; width: min(1080px, 100%); display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
        border-top: 1px solid var(--line); }
.apps li { display: grid; gap: 3px; padding: 18px 20px 20px 0; border-bottom: 1px solid var(--line); }
.apps b { font-weight: 500; font-size: 17px; color: var(--mist); }
.apps span { font-size: 12.5px; color: var(--faint); }
.apps li.on b { color: var(--star); }
.apps li.on span { color: var(--star); opacity: .7; }
.apps li.on span::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--star); margin-right: 7px; vertical-align: 1px; }
@media (max-width: 600px) {
  .connects { padding-top: 48px; gap: 36px; }
  .apps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .apps b { font-size: 15.5px; }
}

/* ---------- the sections after the hero: how it works, connections, closing ---------- */
.section-title { margin: 0; text-align: center; font-family: var(--display); font-weight: 400; color: var(--star); font-size: clamp(34px, 4.2vw, 60px);
                 line-height: 1.06; letter-spacing: -.03em; text-wrap: balance; font-variation-settings: "SOFT" 50, "WONK" 0, "opsz" 72; }
.works { grid-column: 1 / -1; pointer-events: auto; padding: 96px 0 24px; display: grid; justify-items: center; gap: 56px; }
.works-grid { width: min(1120px, 100%); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.works h3 { margin: 0 0 10px; font-family: var(--display); font-weight: 400; font-size: 27px; line-height: 1.15; letter-spacing: -.02em; color: var(--star);
            font-variation-settings: "SOFT" 50, "WONK" 0, "opsz" 72; }
.works p { margin: 0; color: var(--mist); font-size: 17px; line-height: 1.55; }
.works .eg { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--faint); font-size: 15px; }
.connects { padding-top: 120px; }
.connects-copy { max-width: 760px; }
.connects-copy .connects-sub + .connects-sub { margin-top: -4px; }
.apps-now { width: min(1080px, 100%); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.apps-now div { padding: 22px 28px 24px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: baseline; }
.apps-now b { font-weight: 500; font-size: 19px; color: var(--star); }
.apps-now span { font-size: 12.5px; color: var(--star); opacity: .7; }
.apps-now span::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--star); margin-right: 7px; vertical-align: 1px; }
.apps-now p { grid-column: 1 / -1; margin: 4px 0 0; color: var(--mist); font-size: 15.5px; line-height: 1.5; max-width: 30em; }
.apps-soon { width: min(1080px, 100%); display: grid; gap: 10px; margin-top: -24px; }
.apps-soon > p { margin: 0; font-size: 13px; color: var(--faint); }
.apps-soon .apps { width: 100%; border-top: 0; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.apps-soon .apps li { padding: 12px 16px 12px 0; color: var(--mist); font-size: 16px; }
.closing { grid-column: 1 / -1; pointer-events: auto; padding: 140px 0 40px; display: grid; justify-items: center; gap: 18px; text-align: center; }
.closing .section-title { max-width: 14em; }
.closing p { margin: 0; max-width: 32em; color: var(--mist); font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; text-wrap: balance; }
.closing .closing-strong { color: var(--star); }
.closing .cta { margin-top: 18px; justify-content: center; }
@media (max-width: 900px) {
  .works-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .apps-now { grid-template-columns: minmax(0, 1fr); }
  .works { padding-top: 72px; } .connects { padding-top: 88px; } .closing { padding-top: 96px; }
}

/* ---------- photos behind the headline: small prints of friends, graded dark and warm, with black between them ---------- */
.photos { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.photos .ph { position: absolute; display: block; height: auto; opacity: .9; }
.photos .ph.rise { animation-name: ph-in; }
@keyframes ph-in { from { opacity: 0; } }
.ph-silhouette { left: 70%; top: -2%; width: 15%; }
.ph-shore { left: 50%; top: 1%; width: 11%; opacity: .8; }
.ph-booth { left: 58%; top: 50%; width: 12.5%; }
.ph-window { left: 89.5%; top: 34%; width: 9.5%; }
.ph-embrace { left: 76%; top: 66%; width: 10.5%; }
.ph-dinner { left: 46%; bottom: 0; width: 7.5%; opacity: .8; }   /* anchored to the bottom of the words, so it never reaches the constellation */
@media (max-width: 1080px) {
  .photos .ph { opacity: .75; }
}
@media (max-width: 700px) {
  /* on a phone the words need the whole width, so four of the prints sit in a staggered row above the headline */
  .photos { position: static; inset: auto; z-index: auto; display: flex; align-items: flex-start; gap: 12px; margin: 6px 0 30px; }
  .photos .ph { position: static; width: auto; flex: 1 1 0; min-width: 0; opacity: .92; }
  .ph-window, .ph-dinner { display: none !important; }
  .ph-shore { margin-top: 22px; }
  .ph-booth { margin-top: 6px; }
  .ph-embrace { margin-top: 30px; }
}
