/* Direction C · Quiet. Light, content first, calm motion.
   Default = readable without JS / with reduced motion. html.motion adds the animation. */

:root {
  --bg: #fbfbfd;
  --bg-2: #f5f5f7;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --line: #d2d2d7;
  --accent: #e4550f;      /* one warm accent, used sparingly */
  --holo: #33b5e5;        /* Android 4.0 blue, only inside the phone */
  --sans: "Archivo", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --gutter: clamp(16px, 5vw, 64px);
  --ink: #000;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 19px/1.5 var(--sans); letter-spacing: -.005em; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
::selection { background: rgba(228, 85, 15, .2); }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 60px; z-index: 50; background: var(--text); color: #fff; padding: 8px 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* nav: translucent, like a product page's local nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 40; background: rgba(251, 251, 253, .78); -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px); border-bottom: 1px solid rgba(0,0,0,.08); }
.nav-in { max-width: 1120px; margin: 0 auto; height: 52px; padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; }
.nav a { text-decoration: none; }
.nav-name { font-weight: 640; font-size: 19px; letter-spacing: -.01em; }
.nav-name span { font-weight: 400; color: var(--text-2); font-size: 14px; }
.nav-r { display: flex; align-items: center; gap: 22px; font-size: 13px; }
.pill { background: var(--text); color: #fff; padding: 5px 12px; border-radius: 99px; }
.pill:hover { background: #333; }

.eyebrow { margin: 0 0 14px; font-size: 17px; font-weight: 600; color: var(--accent); letter-spacing: 0; }
.btn { display: inline-block; text-decoration: none; background: var(--text); color: #fff; padding: 12px 22px; border-radius: 99px; font-size: 17px; }
.btn:hover { background: #333; }
.link { text-decoration: none; color: var(--accent); font-size: 17px; }
.link:hover { text-decoration: underline; }

/* ---------- opening ---------- */
.intro { min-height: 88vh; min-height: 88svh; display: grid; place-items: center; text-align: center; padding: 100px var(--gutter) 80px; position: relative; }
.throughline { margin: 0 auto; max-width: 15ch; font-weight: 700; font-size: clamp(2.8rem, 8vw, 7.2rem); line-height: 1.02; letter-spacing: -.035em; }
.w { display: inline-block; }
.better { color: var(--accent); }
.intro-sub { margin: 28px auto 0; max-width: 32ch; font-size: clamp(1.1rem, 1.7vw, 1.45rem); line-height: 1.4; color: var(--text-2); }
.intro-ways { margin-top: 34px; display: flex; gap: 14px 26px; justify-content: center; align-items: center; flex-wrap: wrap; }
.cue { position: absolute; left: 50%; bottom: 28px; width: 1px; height: 44px; background: var(--line); overflow: hidden; }
.cue span { display: block; width: 100%; height: 40%; background: var(--text); }
html.motion .cue span { animation: cue 2s cubic-bezier(.6,0,.2,1) infinite; }
@keyframes cue { from { transform: translateY(-100%); } to { transform: translateY(260%); } }

/* ---------- one line through my life ---------- */
.life { position: relative; background: var(--bg-2); padding: 12vh var(--gutter) 8vh; }
.lifeline { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; display: none; }
.ll-base { fill: none; stroke: var(--line); stroke-width: 1.5; }
.ll-draw { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; }
.ll-head { position: absolute; left: 0; top: 0; display: none; pointer-events: none; z-index: 3; }
.ll-head::before { content: ""; position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px rgba(228, 85, 15, .15); }
.ll-head span { position: absolute; right: 16px; top: -10px; font: 600 13px/1 var(--sans); font-variant-numeric: tabular-nums; color: var(--accent); background: var(--bg-2); padding: 3px 6px; border-radius: 6px; }
html.motion .lifeline, html.motion .ll-head { display: block; }

/* each story is a narrow column hanging off the line; columns swing left and right */
.story { position: relative; z-index: 1; width: min(600px, 100%); padding: 0 0 12vh 34px; }
.s-left  { margin-left: max(0px, calc(50% - 560px)); }
.s-right { margin-left: clamp(0px, 46%, calc(100% - 600px)); }
.s-mid   { margin-left: max(0px, calc(50% - 300px)); }
.when { position: relative; margin: 0 0 10px; font-size: 15px; color: var(--text-2); }
.when b { font-size: 15px; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; margin-right: 6px; }
.node { position: absolute; left: -34px; top: 50%; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; background: var(--bg-2); border: 2px solid var(--accent); box-sizing: border-box; }
.story h2 { margin: 0 0 14px; font-size: clamp(1.9rem, 3.2vw, 2.8rem); line-height: 1.05; letter-spacing: -.035em; font-weight: 700; }
.story p { margin: 0 0 12px; font-size: clamp(1.02rem, 1.2vw, 1.12rem); line-height: 1.55; color: #424245; max-width: 50ch; }
.story em { font-style: normal; color: var(--text); font-weight: 600; }
.story .aside { color: var(--text); font-weight: 600; letter-spacing: -.01em; }
.ph { background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 100% / 0 2px; padding-bottom: 1px; }
.visual { position: relative; margin: 4vh 0 3vh; display: grid; justify-items: start; }
#phone .visual { margin-top: 13vh; padding-left: 12%; }
.story.next h2 { color: #86868b; }
.story.next { padding-bottom: 4vh; }

/* glider photo */
.photo { margin: 0; width: 100%; position: relative; }
.photo-ph { aspect-ratio: 16 / 10; border-radius: 22px; display: grid; place-items: center; text-align: center; padding: 24px; font-size: 15px; color: #86868b; background: linear-gradient(160deg, #e8e8ed, #dcdce1); }
.glider { position: absolute; left: 0; top: 18%; width: 30%; overflow: visible; display: none; }
.glider path { fill: var(--text); }
html.motion .glider { display: block; }

/* the soldered cable (shared idea with A) */
.rig { position: relative; }
.cable { display: none; }
html.motion .cable { display: block; position: absolute; left: 0; bottom: calc(100% - 4px); width: calc(var(--ph, 60vh) * .55); height: 11vh; overflow: visible; }
.cable path, .cable circle { fill: none; }
.cable-main { stroke: #3a3a3c; stroke-width: 8; stroke-linecap: round; }
.mod-wire { stroke: var(--accent); stroke-width: 2.5; }
.mod-blob { fill: #b8b8bd !important; }
.mod-label { fill: var(--text-2); font: 500 11px var(--mono); }
.spark circle { fill: rgba(255, 190, 120, .8) !important; filter: blur(3px); }
.spark path { stroke: var(--accent); stroke-width: 2; stroke-linecap: round; }

.replay { margin-top: 18px; border: 0; background: none; color: var(--accent); font: 400 15px var(--sans); cursor: pointer; padding: 6px 10px; border-radius: 99px; }
.replay:hover { background: rgba(228, 85, 15, .08); }

/* glider photo */
.photo { margin: 0; width: 100%; position: relative; }
.photo-ph { aspect-ratio: 4 / 3; border-radius: 22px; display: grid; place-items: center; text-align: center; padding: 24px; font-size: 15px; color: #86868b; background: linear-gradient(160deg, #e8e8ed, #dcdce1); }
.glider { position: absolute; left: 0; top: 18%; width: 30%; overflow: visible; display: none; }
.glider path { fill: var(--text); }
html.motion .glider { display: block; }

/* the soldered cable (shared idea with A) */
.rig { position: relative; }
.cable { display: none; }
html.motion .cable { display: block; position: absolute; left: 0; bottom: calc(100% - 4px); width: calc(var(--ph, 60vh) * .55); height: 16vh; overflow: visible; }
.cable path, .cable circle { fill: none; }
.cable-main { stroke: #3a3a3c; stroke-width: 8; stroke-linecap: round; }
.mod-wire { stroke: var(--accent); stroke-width: 2.5; }
.mod-blob { fill: #b8b8bd !important; }
.mod-label { fill: var(--text-2); font: 500 11px var(--mono); }
.spark circle { fill: rgba(255, 190, 120, .8) !important; filter: blur(3px); }
.spark path { stroke: var(--accent); stroke-width: 2; stroke-linecap: round; }

.short { padding: 16vh var(--gutter); }
.short-in { max-width: 860px; margin: 0 auto; }
.short h2 { margin: 0 0 40px; font-size: clamp(1.8rem, 3.6vw, 3rem); line-height: 1.1; letter-spacing: -.03em; }
.short dl { display: grid; grid-template-columns: max-content 1fr; gap: 16px 32px; margin: 0; border-top: 1px solid var(--line); padding-top: 26px; }
.short dt { color: var(--text-2); font-size: 15px; padding-top: 3px; }
.short dd { margin: 0; }
.short-cta { margin-top: 40px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.short-note { margin-top: 36px; font-size: 13px; color: var(--text-2); }

/* ---------- phone (shared with A, shot like a product photo on light) ---------- */
.phone {
  --ph: min(64vh, 560px);
  position: relative; height: var(--ph); aspect-ratio: 10 / 19;
  padding: calc(var(--ph) * .07) calc(var(--ph) * .028) calc(var(--ph) * .085);
  background:
    linear-gradient(160deg, rgba(255,255,255,.09), transparent 30%),
    repeating-linear-gradient(45deg, #151515 0 2px, #1b1b1b 2px 4px); /* kevlar-ish */
  clip-path: polygon(9% 0, 91% 0, 100% 5%, 100% 95%, 94% 100%, 6% 100%, 0 95%, 0 5%); /* RAZR's chamfered corners */
  box-shadow: inset 0 0 0 2px #2c2c2a;
  filter: drop-shadow(0 40px 60px rgba(0,0,0,.7));
}
.phone::after { /* chrome rim */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  clip-path: inherit; border: 1px solid rgba(255,255,255,.12);
}
.phone-speaker { position: absolute; top: 3.2%; left: 38%; right: 38%; height: 4px; border-radius: 4px; background: #050505; box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.screen {
  position: relative; width: 100%; height: 100%; overflow: hidden;
  background: #000; border-radius: 2px;
  font-family: "Roboto", "Helvetica Neue", Arial, sans-serif; /* phone UI, not the site's voice */
  box-shadow: 0 0 0 1px #000;
}
.screen::after { /* glass reflection */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,.08) 0 18%, transparent 18.5% 100%);
}
.keys { position: absolute; left: 0; right: 0; bottom: 2.6%; display: flex; justify-content: space-around; padding: 0 14%; color: rgba(255,255,255,.4); font-size: calc(var(--ph) * .026); }

.layer { position: absolute; inset: 0; opacity: 0; }
/* static mode: show the happy ending */
.s-home2 { opacity: 1; }

.s-boot { display: grid; place-items: center; background: #000; }
.s-boot span { font: 700 calc(var(--ph) * .03)/1 Arial, sans-serif; letter-spacing: .32em; color: #e9e9e9; }

.s-home, .s-home2 { color: #fff; padding: 0; }
.s-home { background: radial-gradient(120% 60% at 20% 110%, rgba(51,181,229,.55), transparent 60%), radial-gradient(90% 50% at 90% -10%, rgba(120,200,40,.35), transparent 60%), #05080c; }
.s-home2 { background: radial-gradient(120% 70% at 80% 110%, rgba(255,91,31,.55), transparent 60%), radial-gradient(80% 40% at 0% 0%, rgba(255,91,31,.18), transparent 60%), #0a0605; }
.sb { display: flex; justify-content: space-between; padding: 3px 6px; background: #000; font-size: calc(var(--ph) * .02); color: var(--holo); }
.s-home2 .sb { color: var(--accent); }
.clock { margin-top: 16%; text-align: center; font-weight: 200; font-size: calc(var(--ph) * .11); letter-spacing: -.02em; line-height: 1; }
.clock span { color: var(--holo); }
.s-home2 .clock span { color: var(--accent); }
.date { text-align: center; font-size: calc(var(--ph) * .019); text-transform: uppercase; letter-spacing: .1em; opacity: .7; margin-top: 4px; }
.apps { position: absolute; left: 9%; right: 9%; bottom: 20%; display: grid; grid-template-columns: repeat(4, 1fr); gap: calc(var(--ph) * .03) 12%; }
.apps i, .dock i, .dock b { display: block; aspect-ratio: 1; border-radius: 22%; background: rgba(255,255,255,.18); }
.apps i:nth-child(3n) { background: rgba(51,181,229,.5); }
.s-home2 .apps i:nth-child(3n) { background: rgba(255,91,31,.6); }
.dock { position: absolute; left: 6%; right: 6%; bottom: 4%; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10%; padding-top: 4%; border-top: 1px solid rgba(255,255,255,.12); }
.dock b { border-radius: 50%; background: rgba(255,255,255,.4); }

.s-term { background: #000; color: #e6e6e6; font: 400 calc(var(--ph) * .022)/1.6 var(--mono); padding: 0 8px; }
.s-term .tl { margin: 0 -8px 8px; padding: 6px 8px; background: #1d1d1d; color: #bbb; font-size: .9em; }
.s-term p { margin: 0; }
.caret { animation: blink 1s steps(1) infinite; color: var(--holo); }
@keyframes blink { 50% { opacity: 0; } }

.s-rec { background: #000; color: #f2a33a; font: 400 calc(var(--ph) * .019)/1.55 var(--mono); padding: 8px; }
.s-rec .rh { color: #fff; border-bottom: 1px solid #333; padding-bottom: 4px; margin-bottom: 6px; }
.s-rec p { margin: 0; white-space: nowrap; }
.s-rec .zips { position: relative; height: 1.55em; margin: 4px 0; color: #fff; }
.s-rec .z { position: absolute; inset: 0; opacity: 0; }
.s-rec .dim { color: #888; }
.bar-prog { height: 6px; margin-top: 10px; background: #222; }
.bar-prog i { display: block; height: 100%; width: 100%; background: #f2a33a; transform: scaleX(0); transform-origin: 0 50%; }

.s-glitch { display: grid; grid-template-rows: repeat(5, 1fr); background: #000; }
.s-glitch i { display: block; background: linear-gradient(90deg, #ff2d55 0 12%, var(--holo) 12% 40%, #fff 40% 44%, #7cff00 44% 70%, transparent 70%); mix-blend-mode: screen; }

.s-fast { background: #000; color: #fff; font: 400 calc(var(--ph) * .021)/1.5 "Courier New", var(--mono); padding: 14px 10px; }
.s-fast p { margin: 0; }
.f-st { display: grid; }
.f-st > div { grid-area: 1 / 1; }
.s-fast .f-ok { opacity: 0; }
.s-fast .f-prog i { background: #fff; }

.phone { --ph: min(50vh, 460px); filter: drop-shadow(0 30px 40px rgba(0,0,0,.22)) drop-shadow(0 8px 10px rgba(0,0,0,.12)); }

@media (max-width: 760px) {
  .nav-name span, .nav-r a:not(.pill) { display: none; }
  .life { padding-top: 8vh; padding-left: calc(var(--gutter) + 8px); }
  .s-left, .s-right, .s-mid { margin-left: 0; }
  .story { padding: 0 0 9vh 26px; }
  .node { left: -26px; }
  .ll-head span { display: none; }
  .phone { --ph: min(40svh, 380px); }
  #phone .visual { margin-top: 9vh; padding-left: 4%; }
  .story h2 { font-size: 1.75rem; }
  .short dl { grid-template-columns: 1fr; gap: 2px; }
  .short dd { margin-bottom: 14px; }
}
