/* Theme: pitch black with a purple neon accent. Colours live here. */
:root {
  --bg: #000;
  --ink: #F5F5F7;
  --muted: #A1A1A6;
  --faint: #6E6E73;
  --line: rgba(255, 255, 255, 0.09);
  --card: rgba(255, 255, 255, 0.025);
  --neon: #8B5CF6;
  --neon-hi: #B79CFF;
  --neon-soft: rgba(139, 92, 246, 0.35);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  display: flex;
  flex-direction: column;
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font: 15px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(139, 92, 246, 0.4); color: #fff; }

a { color: inherit; }

.wrap {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}

/* Header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  padding-bottom: 24px;
}
.brand { display: inline-flex; }
.brand img { display: block; height: 30px; width: auto; } /* 1:1 with logo.svg, keeps it crisp */
nav { display: flex; align-items: center; gap: 26px; }
.nav-btn { padding: 0; border: 0; background: none; font-family: inherit; cursor: pointer; }
nav > a,
.nav-btn {
  position: relative;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.25s;
}
nav > a::after,
.nav-btn::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--neon-hi);
  box-shadow: 0 0 8px var(--neon);
  transform: scaleX(0);
  transition: transform 0.3s;
}
a:focus-visible { outline: 1px solid var(--neon-hi); outline-offset: 4px; border-radius: 6px; }
nav > a:hover,
.nav-btn:hover,
.nav-btn[aria-expanded="true"] { color: var(--ink); }
nav > a:hover::after,
.nav-btn:hover::after,
.nav-btn[aria-expanded="true"]::after { transform: scaleX(1); }

/* Contact dropdown under the nav */
.contact-menu { position: relative; }
.dropdown {
  position: absolute;
  top: calc(100% + 16px);
  right: 0;
  z-index: 10;
  width: max-content;
  max-width: calc(100vw - 32px);
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #050505;
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.6);
  animation: drop 0.2s ease-out;
}
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }
.dropdown-note { margin: 10px 2px 0; color: var(--faint); font-size: 13px; }

/* 1px divider that lights up in neon around the pointer */
.rule {
  position: relative;
  height: 1px;
  background: var(--line);
}
.rule::before,
.rule::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
  opacity: var(--o, 0);
  transition: opacity 0.4s;
  background: radial-gradient(220px circle at var(--x, -999px) 50%, var(--neon-hi), var(--neon-soft) 35%, transparent 70%);
}
.rule::after { top: 0; height: 1px; }
.rule::before { top: -5px; height: 11px; filter: blur(7px); opacity: calc(var(--o, 0) * 0.55); }

/* Page: content on the left, other work in a sidebar on the right */
.layout {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--nav-w, 200px); /* sidebar as wide as the nav */
  grid-template-areas: "hero side" "rule side" "apps side";
  gap: 0 64px;
  align-items: start;
  align-content: start;
}
.hero-rule { grid-area: rule; }
#apps { grid-area: apps; }
section { padding-top: 28px; padding-bottom: 44px; }
.hero { grid-area: hero; padding-top: 56px; padding-bottom: 44px; }

.eyebrow {
  position: relative;
  width: fit-content;
  margin: 0 0 12px;
  color: var(--faint);
  font-size: clamp(12px, 1.1vw, 14px);
  font-weight: 300;
  letter-spacing: 0.02em;
}
/* The same text laid over itself, lit in neon around the pointer, with a blurred copy for the glow */
.eyebrow::before,
.eyebrow::after {
  content: attr(data-text) / "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: var(--o, 0);
  transition: opacity 0.35s;
  background: radial-gradient(160px circle at var(--x, -999px) var(--y, -999px), #E4DBFF, var(--neon-hi) 25%, var(--neon-soft) 50%, transparent 75%);
  background-clip: text;
  color: transparent;
}
.eyebrow::before { filter: blur(4px); }
h1, h2, h3 { margin: 0; font-weight: 600; }
h1 {
  margin-bottom: 12px;
  font-size: clamp(20px, 2.2vw, 24px);
  line-height: 1.25;
  letter-spacing: -0.02em;
}
h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #E4DBFF, var(--neon-hi) 50%, var(--neon));
  background-clip: text;
  color: transparent;
}
h2 {
  margin-bottom: 14px;
  color: var(--faint);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
h2.is-flash { animation: flash 1.6s ease-out; }
@keyframes flash {
  0%, 30% { color: var(--neon-hi); text-shadow: 0 0 14px var(--neon); }
}
h3 { font-size: 15px; letter-spacing: -0.01em; line-height: 1.25; }
.lead { margin: 0; max-width: 62ch; color: var(--muted); font-size: 15px; }
p { margin: 0 0 10px; }

/* Cards with a neon border that follows the pointer */
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)); /* two apps per row */
  gap: 14px;
  max-width: 720px;
}
.card {
  position: relative;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.card::before,
.pill::before {
  content: "";
  position: absolute;
  inset: -1px;
  padding: 1px;
  border-radius: inherit;
  pointer-events: none;
  opacity: var(--o, 0);
  transition: opacity 0.35s;
  background: radial-gradient(260px circle at var(--x, -999px) var(--y, -999px), var(--neon-hi), var(--neon-soft) 35%, transparent 65%);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}
.card > p { margin-bottom: 0; color: var(--muted); font-size: 13px; }
.card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.icon {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: #fff;
}
.meta { margin: 2px 0 0; color: var(--faint); font-size: 12px; }

/* Store icons hang from short strings; Google Play swings away from the pointer */
.links {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-top: 6px;
}
.hang {
  --a: 0deg;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--ink);
  transform: rotate(var(--a));
  transform-origin: 50% 0;
}
.string { width: 1px; height: 16px; background: rgba(255, 255, 255, 0.35); }
.bob {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: var(--bg);
}
.bob svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentcolor;
  stroke-width: 1.5;
  stroke-linejoin: round;
}
.hang.is-soon { color: var(--faint); cursor: default; }
.hang.is-soon .string { background: rgba(255, 255, 255, 0.14); }
.hang.is-soon .bob { border-color: rgba(255, 255, 255, 0.14); }
.text-link {
  margin-left: auto;
  line-height: 38px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.25s;
}
.text-link:hover { color: var(--neon-hi); }

/* Other work: a column of small banners that grows downwards */
.side {
  grid-area: side;
  position: sticky;
  top: 24px;
  padding-top: var(--side-top, 132px); /* lines up with the intro text, set in script.js */
  padding-bottom: 44px;
}
.banners {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px 6px 6px;
  border-radius: 12px;
  text-decoration: none;
}
.banner .icon { width: 26px; height: 26px; border-radius: 7px; }
.banner-text { display: grid; min-width: 0; line-height: 1.25; }
.banner-text strong { font-size: 12px; font-weight: 600; }
.banner-text span { color: var(--faint); font-size: 11px; }

.subhead { margin: -8px 0 16px; color: var(--faint); font-size: 13px; font-weight: 300; }

/* Email pill and copy button in the contact dropdown */
.mail-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.pill svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--neon-hi);
  stroke-width: 1.5;
  stroke-linejoin: round;
}
.copy {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--faint);
  cursor: pointer;
  transition: color 0.25s;
}
.copy svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentcolor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.copy .icon-done,
.copy.is-done .icon-copy { display: none; }
.copy.is-done .icon-done { display: block; }
.copy:hover { color: var(--ink); }
.copy.is-done { color: var(--neon-hi); }

/* Footer */
.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 24px;
  padding-bottom: 32px;
  color: var(--faint);
  font-size: 12px;
}
.foot p { margin: 0; }
.foot strong { color: var(--muted); font-weight: 600; }

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; grid-template-areas: "hero" "rule" "apps" "side"; }
  .side { position: static; padding-top: 0; }
}

@media (max-width: 760px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  nav { gap: 16px; }
  section { padding-top: 36px; padding-bottom: 36px; }
  .hero { padding-top: 36px; padding-bottom: 40px; }
  .cards { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
