:root {
  --bg: #0b0806;
  --bg2: #120c08;
  --o: #f2902b;
  --o2: #ffb35c;
  --o3: #c2621c;
  --txt: #f1eae3;
  --mut: #a2968d;
  --dim: #6f655e;
  --line: rgba(255, 236, 220, .08);
  --line2: rgba(255, 236, 220, .14);
  --ok: #5bd68a;
  --glass: linear-gradient(180deg, rgba(40, 28, 20, .62), rgba(20, 14, 10, .58));
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --pad: clamp(20px, 4vw, 64px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--txt); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: rgba(242, 144, 43, .35); }
.i { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* film grain over everything, like the key art */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 50; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap { width: 100%; padding: 0 var(--pad); margin: 0 auto; max-width: 1760px; }

/* nav: transparent over the key art, solid once you scroll */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 30; transition: background .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.nav.solid { background: rgba(11, 8, 6, .72); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 30px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.tile { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: linear-gradient(180deg, #ffb35c, #ef8a24); box-shadow: 0 0 22px rgba(242, 144, 43, .45), inset 0 1px 0 rgba(255, 255, 255, .35); }
.nav-links { display: flex; gap: 26px; }
.nav-links a { text-decoration: none; color: rgba(241, 234, 227, .72); font-size: 15px; transition: color .15s; }
.nav-links a:hover { color: #fff; }
.nav .sp { flex: 1; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 48px; padding: 0 22px;
  border-radius: 10px; border: 1px solid var(--line2); text-decoration: none;
  font: 600 15.5px/1 var(--sans); color: var(--txt); cursor: pointer;
  background: rgba(20, 14, 10, .55); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  transition: border-color .15s, transform .1s, background .15s;
}
.btn:hover { border-color: rgba(255, 236, 220, .3); background: rgba(30, 20, 14, .7); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: linear-gradient(180deg, #ffb35c, #ef8a24); color: #1a1006; border-color: transparent; box-shadow: 0 10px 40px -10px rgba(242, 144, 43, .8), inset 0 1px 0 rgba(255, 255, 255, .4); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.sm { height: 38px; padding: 0 14px; font-size: 14px; border-radius: 9px; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- the key art */
.key { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.key picture, .key .art { position: absolute; inset: 0; z-index: -2; }
.key .art { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; image-rendering: pixelated; transform: scale(1.04); transform-origin: 50% 20%; animation: breathe 14s ease-in-out infinite alternate; }
@keyframes breathe { to { transform: scale(1.09); } }
.key::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(11, 8, 6, .7) 0, rgba(11, 8, 6, 0) 14%),
    linear-gradient(0deg, var(--bg) 0, rgba(11, 8, 6, .94) 20%, rgba(11, 8, 6, .55) 42%, rgba(11, 8, 6, 0) 62%),
    radial-gradient(120% 70% at 50% 40%, transparent 55%, rgba(11, 8, 6, .55) 100%); }
.key-copy { width: 100%; text-align: center; padding-bottom: clamp(36px, 6vh, 70px); }
.getit { background: var(--bg); padding: 10px 0 46px; text-align: center; }
.getit .install { margin-top: 0; }
h1 { font-weight: 500; font-size: clamp(40px, 5.4vw, 88px); line-height: .98; letter-spacing: -.045em; margin: 0 auto; max-width: 16ch; text-shadow: 0 4px 40px rgba(0, 0, 0, .6); }
.lede { color: rgba(241, 234, 227, .78); font-size: clamp(16.5px, 1.5vw, 20px); max-width: 640px; margin: 22px auto 0; text-shadow: 0 2px 20px rgba(0, 0, 0, .8); }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }

.install {
  display: flex; align-items: center; gap: 10px; max-width: 660px; margin: 26px auto 0;
  padding: 7px 7px 7px 18px; border-radius: 12px; border: 1px solid var(--line2);
  background: rgba(8, 6, 4, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); text-align: left;
}
.install code { flex: 1; min-width: 0; font: 400 14px/1.5 var(--mono); color: #e0d6cd; white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
.install code::-webkit-scrollbar { display: none; }
.install code b { color: var(--o2); font-weight: 400; }
.copy { flex: none; height: 36px; padding: 0 13px; border-radius: 8px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .05); color: var(--mut); font: 500 13px/1 var(--sans); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.copy:hover { color: var(--txt); }
.copy svg { width: 15px; height: 15px; }
.copy.done { color: var(--ok); border-color: rgba(91, 214, 138, .3); }
.hint { color: var(--mut); font-size: 13.5px; margin-top: 12px; }
code.k { font: 400 .9em var(--mono); color: #eadfd4; background: rgba(255, 255, 255, .07); padding: 1px 6px; border-radius: 5px; }

/* ---------- sections */
section { position: relative; }
h2 { font-weight: 500; font-size: clamp(34px, 4.6vw, 72px); line-height: 1.02; letter-spacing: -.04em; margin: 0; }
h2 em, h1 em { font-style: normal; color: var(--o2); }
.sub { color: var(--mut); font-size: clamp(16.5px, 1.3vw, 19px); max-width: 620px; margin: 20px 0 0; }

/* the platforms strip under the key art */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg2); }
.strip .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.strip .cell { display: flex; align-items: center; gap: 14px; padding: 26px 0; color: var(--mut); font-size: 15px; }
.strip .cell + .cell { padding-left: clamp(16px, 2.5vw, 40px); border-left: 1px solid var(--line); }
.strip .cell b { display: block; color: var(--txt); font-weight: 600; font-size: 16px; }
.strip svg { width: 26px; height: 26px; color: var(--o2); flex: none; }

/* a full-bleed chapter: big words on one side, a big picture on the other */
.chap { padding: clamp(90px, 12vw, 170px) 0 0; }
.chap .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); gap: clamp(30px, 5vw, 90px); align-items: center; }
.chap.flip .wrap { grid-template-columns: minmax(0, 8fr) minmax(0, 5fr); }
.chap.flip .txt { order: 2; }
.chap .txt p { color: var(--mut); font-size: 17.5px; margin: 20px 0 0; max-width: 520px; }
.shot { border-radius: 16px; overflow: hidden; border: 1px solid var(--line2); background: #120c08; box-shadow: 0 50px 140px -40px rgba(194, 98, 28, .55), 0 0 0 1px rgba(0, 0, 0, .5); }
.bleed-r { margin-right: calc(-1 * var(--pad)); border-radius: 16px 0 0 16px; border-right: 0; }
.bleed-l { margin-left: calc(-1 * var(--pad)); border-radius: 0 16px 16px 0; border-left: 0; }

/* the three-up row */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: clamp(90px, 12vw, 170px); }
.trio > div { background: var(--bg); padding: clamp(28px, 3.5vw, 56px) var(--pad); }
.trio svg { width: 28px; height: 28px; color: var(--o2); }
.trio h4 { margin: 18px 0 0; font-size: 21px; font-weight: 600; letter-spacing: -.015em; }
.trio p { margin: 10px 0 0; color: var(--mut); font-size: 15.5px; max-width: 420px; }

/* everywhere: three surfaces side by side, full width */
.every { padding: clamp(90px, 12vw, 170px) 0 0; }
.every .head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.every .head .sub { margin: 0; max-width: 520px; }
.surfaces { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 18px; margin-top: 46px; align-items: start; }
.surfaces figure { margin: 0; }
.surfaces figcaption { color: var(--mut); font-size: 14.5px; margin-top: 14px; max-width: 560px; }
.surfaces figcaption b { color: var(--txt); font-weight: 600; }
.surfaces a { color: var(--o2); }

/* small Gary: the app version of the giant */
.small { padding: clamp(90px, 12vw, 170px) 0 0; }
.small .wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(30px, 5vw, 90px); align-items: center; }
.ggrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.g { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 26px 8px 18px; background: var(--bg); transition: background .2s; }
.g:hover { background: #160e09; }
.g img { width: 120px; max-width: 100%; height: auto; aspect-ratio: 5 / 3; image-rendering: pixelated; }
.g span { font-size: 13px; color: var(--mut); text-align: center; }

/* the close: the key art again, dimmer */
.close { margin-top: clamp(110px, 14vw, 200px); position: relative; overflow: hidden; isolation: isolate; padding: clamp(110px, 16vw, 220px) 0 clamp(80px, 10vw, 140px); text-align: center; border-top: 1px solid var(--line); }
.close .art { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; opacity: .55; image-rendering: pixelated; }
.close::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--bg) 0, rgba(11, 8, 6, .55) 30%, rgba(11, 8, 6, .75) 70%, var(--bg) 100%); }
.close h2 { margin: 0 auto; max-width: 14ch; }
.close .sub { margin: 18px auto 0; }

footer { border-top: 1px solid var(--line); padding: 30px 0 46px; color: var(--dim); font-size: 14px; }
footer .wrap { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
footer a { color: var(--mut); text-decoration: none; }
footer a:hover { color: var(--txt); }
footer .sp { flex: 1; }

/* ---------- inner pages (ios-beta, privacy, 404) */
.inner { position: relative; padding: 150px 0 40px; overflow: hidden; isolation: isolate; min-height: 70vh; }
.inner .art { position: absolute; inset: 0 0 auto 0; height: 640px; width: 100%; object-fit: cover; object-position: 50% 12%; opacity: .5; z-index: -2; image-rendering: pixelated; }
.inner::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 640px; z-index: -1; background: linear-gradient(180deg, rgba(11, 8, 6, .45), var(--bg) 92%); }
.narrow { width: min(600px, 100% - 40px); margin: 0 auto; text-align: center; }
.narrow h1 { font-size: clamp(40px, 6vw, 68px); }
.panel {
  margin-top: 36px; padding: 30px; border-radius: 16px; border: 1px solid var(--line2); text-align: left;
  background: rgba(16, 11, 8, .78); backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 240, 225, .07), 0 40px 120px -40px rgba(194, 98, 28, .6);
}
label { display: block; font-size: 14px; font-weight: 500; color: var(--txt); margin-bottom: 8px; }
label small { color: var(--dim); font-weight: 400; }
input, textarea { width: 100%; border-radius: 10px; border: 1px solid var(--line2); background: rgba(8, 6, 4, .6); color: var(--txt); font: 400 16px/1.4 var(--sans); padding: 12px 14px; outline: none; transition: border-color .15s, box-shadow .15s; }
textarea { resize: vertical; min-height: 84px; }
input:focus, textarea:focus { border-color: rgba(242, 144, 43, .6); box-shadow: 0 0 0 3px rgba(242, 144, 43, .15); }
input::placeholder, textarea::placeholder { color: var(--dim); }
.field + .field { margin-top: 18px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.panel .btn { width: 100%; margin-top: 22px; }
.panel .btn[disabled] { opacity: .6; cursor: default; }
.msg { margin: 14px 0 0; font-size: 14.5px; min-height: 1.4em; }
.msg.err { color: #ff8c7a; }
.fine { color: var(--dim); font-size: 13.5px; margin-top: 16px; }
.fine a { color: var(--mut); }
.done-box { text-align: center; padding: 10px 0 4px; }
.done-box img { width: 120px; height: 72px; image-rendering: pixelated; margin: 0 auto; }
.done-box h3 { font-weight: 500; font-size: 24px; letter-spacing: -.02em; margin: 14px 0 0; }
.done-box p { color: var(--mut); margin: 10px 0 0; }
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 14px; text-align: left; }
.steps li { display: flex; gap: 14px; color: var(--mut); font-size: 15px; }
.steps b { flex: none; width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; font: 500 13px/1 var(--mono); color: var(--o2); background: rgba(242, 144, 43, .1); border: 1px solid rgba(242, 144, 43, .22); }
.steps strong { color: var(--txt); font-weight: 500; }
.prose { text-align: left; }
.prose h1 { margin: 0; max-width: none; }
.prose h2 { font-size: 22px; font-weight: 600; letter-spacing: -.01em; margin: 40px 0 0; }
.prose p { color: var(--mut); }
.prose .date { color: var(--dim); font-size: 14px; margin-top: 12px; }
.prose a { color: var(--o2); }

@media (max-width: 1000px) {
  .nav-links { display: none; }
  .strip .wrap { grid-template-columns: 1fr 1fr; }
  .strip .cell:nth-child(3) { border-left: 0; padding-left: 0; }
  .strip .cell:nth-child(n+3) { border-top: 1px solid var(--line); }
  .chap .wrap, .chap.flip .wrap, .small .wrap, .surfaces { grid-template-columns: minmax(0, 1fr); }
  .chap.flip .txt { order: 0; }
  .trio { grid-template-columns: minmax(0, 1fr); }
  .ggrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .key { display: block; min-height: 0; }
  .key picture, .key .art { position: relative; inset: auto; }
  .key .art { height: 74vw; min-height: 300px; width: 100%; object-position: 50% 20%; transform: none; animation: none; }
  .key::before { background: linear-gradient(180deg, rgba(11, 8, 6, .7) 0, rgba(11, 8, 6, 0) 18%), linear-gradient(0deg, var(--bg) 0, rgba(11, 8, 6, 0) 22%); height: 74vw; min-height: 300px; bottom: auto; }
  .key-copy { margin-top: -30px; position: relative; padding-bottom: 26px; }
}
@media (max-width: 600px) {
  .nav .btn.gh span { display: none; }
  .strip .wrap { grid-template-columns: minmax(0, 1fr); }
  .strip .cell, .strip .cell + .cell { border-left: 0; padding: 16px 0; border-top: 1px solid var(--line); }
  .strip .cell:first-child { border-top: 0; }
  .cta .btn { flex: 1 1 100%; }
  .panel { padding: 22px; }
  .ggrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .key .art { animation: none; } }
