:root {
  --bg: #060606;
  --panel: #0e0e0e;
  --text: #f4f4f2;
  --muted: #8d8d8a;
  --line: rgba(255,255,255,.14);
  --font: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; background: var(--bg); }
body { background: var(--bg); color: var(--text); font-family: var(--font); font-weight: 300; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.wrap { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }

/* Nav */
nav { position: sticky; top: 0; z-index: 20; background: rgba(6,6,6,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand img { height: 13px; width: auto; display: block; }
nav ul { list-style: none; padding: 0; display: flex; gap: clamp(1rem, 3vw, 2.2rem); }
nav ul a { position: relative; display: block; padding: .5rem 0; font-size: .88rem; font-weight: 400; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); transition: color .25s; }
nav ul a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--text); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
nav ul a:hover { color: var(--text); }
nav ul a.active { color: var(--text); }
nav ul a.active::after { transform: scaleX(1); }
@media (max-width: 520px) { .brand { display: none; } nav .wrap { justify-content: center; } nav ul { gap: 1.1rem; } nav ul a { font-size: .78rem; letter-spacing: .14em; } }

/* Hero */
.hero {
  position: relative; overflow: hidden; margin-top: 1.25rem;
  border: 1px solid var(--line); border-radius: 20px;
  min-height: clamp(460px, 76vh, 700px);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(1.75rem, 5vw, 4rem);
  /* Save a photo as images/hero.jpg and it appears here */
  background:
    linear-gradient(to top, rgba(6,6,6,.9) 0%, rgba(6,6,6,.3) 55%, rgba(6,6,6,.3) 100%),
    url("../images/hero.jpg") 55% 55% / cover no-repeat,
    radial-gradient(120% 90% at 80% 0%, #2a2a2a 0%, #0b0b0b 55%, #060606 100%);
}
.hero .logo { width: clamp(220px, 46vw, 520px); height: auto; display: block; }
.hero .hi { font-size: clamp(1.05rem, 2.2vw, 1.35rem); color: var(--muted); letter-spacing: .04em; }
.hero h1 { font-weight: 300; font-size: clamp(2rem, 7vw, 4.5rem); line-height: 1.05; letter-spacing: .05em; margin: .3rem 0 1.2rem; }
.hero .tag { max-width: 36ch; font-size: clamp(1.05rem, 2vw, 1.25rem); }

/* Sections */
section { padding-block: clamp(4.5rem, 11vw, 8rem) 0; }
.head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); padding-bottom: 1rem; margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
h2 { font-weight: 300; font-size: clamp(1.8rem, 4.5vw, 3rem); letter-spacing: .08em; }

/* Links grid */
.grid { display: grid; gap: 1px; grid-template-columns: 1fr; background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.tile { display: flex; flex-direction: column; background: var(--bg); transition: background .3s; }
a.tile:hover { background: var(--panel); }
.tile .art { aspect-ratio: 16 / 10; display: grid; place-items: center; background-size: cover; background-position: center; font-size: clamp(5rem, 13vw, 7.5rem); font-weight: 200; line-height: 1; transition: letter-spacing .4s ease; }
a.tile:hover .art { letter-spacing: .08em; }
.tile .text { padding: 1.25rem 1.5rem 1.7rem; border-top: 1px solid var(--line); }
.tile h3 { font-weight: 400; font-size: 1.2rem; letter-spacing: .03em; }
.tile p { color: var(--muted); font-size: 1rem; }
.tile.soon { color: rgba(255,255,255,.22); }
.tile.soon h3 { color: rgba(255,255,255,.5); }

/* About */
.about { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .about { grid-template-columns: 1fr 1.4fr; gap: 4rem; } }
.about .lead { font-size: clamp(1.5rem, 3.2vw, 2.2rem); line-height: 1.35; font-weight: 300; }
.about .body p { color: #bdbdba; font-size: 1.1rem; max-width: 62ch; }
.about .body p + p { margin-top: 1.1rem; }

/* Contact */
.contact { border: 1px solid var(--line); border-radius: 20px; padding: clamp(2rem, 7vw, 5.5rem); background: radial-gradient(100% 120% at 100% 0%, #1b1b1b 0%, var(--bg) 60%); }
.contact .big { font-size: clamp(2.6rem, 10vw, 7.5rem); line-height: 1.02; letter-spacing: .02em; font-weight: 300; }
.contact .mail { display: inline-block; margin-top: clamp(1.5rem, 4vw, 2.5rem); font-size: clamp(1.25rem, 4.6vw, 3.2rem); font-weight: 400; word-break: break-word; border-bottom: 2px solid var(--text); padding-bottom: .2rem; transition: opacity .25s; }
.contact .mail:hover { opacity: .65; }
.chunks { display: grid; gap: 1rem; margin-top: clamp(2rem, 6vw, 4rem); grid-template-columns: 1fr; }
.chunk { display: flex; align-items: center; justify-content: space-between; padding: 1.7rem 1.6rem; border: 1px solid var(--line); border-radius: 14px; font-size: 1.4rem; font-weight: 400; transition: background .25s, color .25s; }
.chunk span { font-size: 1.5rem; transition: transform .25s; }
.chunk:hover { background: var(--text); color: var(--bg); }
.chunk:hover span { transform: translateX(6px); }

footer { padding-block: 5rem 3rem; color: var(--muted); font-size: .9rem; letter-spacing: .08em; }

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

/* Photo tiles */
.tile .art.photo { display: block; overflow: hidden; }
.tile .art.photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
a.tile:hover .art.photo img { transform: scale(1.05); }

/* Sub-pages (Harvey etc.) */
.page-hero { margin-top: 1.25rem; padding: clamp(3rem, 9vw, 6rem) clamp(1.75rem, 5vw, 4rem); border: 1px solid var(--line); border-radius: 20px; background: radial-gradient(120% 90% at 80% 0%, #2a2a2a 0%, #0b0b0b 55%, #060606 100%); }
.page-hero .hi { color: var(--muted); letter-spacing: .08em; }
.page-hero h1 { font-weight: 300; font-size: clamp(3rem, 12vw, 8rem); line-height: 1; letter-spacing: .06em; margin: .3rem 0 1rem; }
.page-hero .tag { max-width: 36ch; font-size: clamp(1.05rem, 2vw, 1.25rem); }
.back { margin-top: 2rem; }
.back a { color: var(--muted); letter-spacing: .06em; transition: color .25s; }
.back a:hover { color: var(--text); }

/* Web apps page */
.apps-hero { background: radial-gradient(55% 90% at 12% 0%, rgba(182,255,60,.22), transparent 62%), radial-gradient(55% 90% at 95% 5%, rgba(255,79,163,.28), transparent 62%), radial-gradient(70% 100% at 55% 115%, rgba(90,110,255,.32), transparent 62%), #0a0a0a; }
.apps-hero .note { margin-top: 1rem; color: var(--muted); font-size: .98rem; max-width: 52ch; }
.install { margin-top: 1.25rem; padding: clamp(1.5rem, 4vw, 2.5rem); border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(135deg, rgba(90,110,255,.14), rgba(255,79,163,.1) 60%, rgba(255,154,60,.1)), #0b0b0b; }
.install h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: .3rem; }
.install .sub { color: var(--muted); margin-bottom: 1.6rem; }
.steps { list-style: none; padding: 0; display: grid; gap: 1rem; grid-template-columns: 1fr; counter-reset: s; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { position: relative; padding: 1.2rem 1.2rem 1.3rem; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.03); counter-increment: s; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; margin-bottom: .8rem; font-weight: 500; color: #06210f; background: linear-gradient(135deg, #b6ff3c, #00c2a8); }
.steps h3 { font-weight: 500; font-size: 1.1rem; display: flex; align-items: center; gap: .5rem; }
.steps h3 svg { flex: none; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.steps p { color: var(--muted); font-size: .96rem; margin-top: .3rem; }
.apps { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
@media (min-width: 860px) { .apps { grid-template-columns: repeat(2, 1fr); } }
.app { display: flex; flex-direction: column; padding: clamp(1.4rem, 3.5vw, 2.2rem); border: 1px solid var(--line); border-radius: 26px; background: radial-gradient(120% 80% at 0% 0%, var(--glow), transparent 62%), #0b0b0b; transition: transform .25s, border-color .25s; }
.app:hover { transform: translateY(-4px); border-color: var(--a1); }
.app .top { display: flex; align-items: center; gap: 1.1rem; margin-bottom: 1.2rem; }
.app .icon { flex: none; width: 88px; height: 88px; border-radius: 22.5%; display: grid; place-items: center; background: linear-gradient(135deg, var(--a1), var(--a2)); box-shadow: 0 10px 28px -6px var(--a2), inset 0 0 0 1px rgba(255,255,255,.25); }
.app .icon svg { width: 46px; height: 46px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.app h3 { font-size: clamp(1.4rem, 3vw, 1.8rem); font-weight: 400; line-height: 1.15; }
.app .cat { color: var(--muted); font-size: .95rem; }
.app p.desc { color: #c9c9c6; font-size: 1.05rem; flex: 1; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.2rem 0 1.5rem; }
.chips span { padding: .25rem .8rem; border: 1px solid var(--line); border-radius: 999px; font-size: .85rem; color: var(--muted); }
.btn-get { align-self: flex-start; display: inline-flex; align-items: center; gap: .6rem; padding: .85rem 2rem; border-radius: 999px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; font-size: .92rem; color: var(--ink); background: linear-gradient(90deg, var(--a1), var(--a2)); box-shadow: 0 8px 22px -8px var(--a2); transition: transform .2s, filter .2s; }
.btn-get:hover { transform: translateY(-2px); filter: brightness(1.1); }
.app.more { border-style: dashed; background: transparent; align-items: center; justify-content: center; text-align: center; color: var(--muted); min-height: 220px; }
.app.more:hover { transform: none; border-color: var(--line); }
