/* Hickry: single-page site. Nothing / Teenage Engineering direction:
   near-black ground, hairlines, one orange accent, grotesk + heavy display.
   Change --accent to re-theme. */

@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/space-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo Black";
  src: url("/assets/fonts/archivo-black-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #111214;
  --raised: #17181b;
  --text: rgba(255, 255, 255, 0.88);
  --muted: rgba(255, 255, 255, 0.52);
  --line: rgba(255, 255, 255, 0.12);
  --accent: #ff4f00;
  --error: #ff8a7a;
  --logo-name: #fff;
  --logo-dot: #fff;

  --font: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --display: "Archivo Black", "Space Grotesk", Impact, sans-serif;
  --gutter: clamp(20px, 5vw, 40px);
  --section: clamp(88px, 12vw, 136px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-padding-top: 72px;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip {
  position: absolute; left: 16px; top: -64px; z-index: 20;
  padding: 10px 14px; background: var(--raised); border: 1px solid var(--line);
}
.skip:focus { top: 12px; }

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

/* ---------- Header ---------- */

.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  background: rgba(17, 18, 20, 0.72);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.bar.is-stuck { border-bottom-color: var(--line); }
.bar-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter);
  height: 64px; display: flex; align-items: center; justify-content: space-between;
}

.brand { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.brand-name { color: var(--logo-name); }
.brand-dot { color: var(--logo-dot); }
.brand-tld { color: var(--accent); }

.bar nav { display: flex; gap: 28px; }
.bar nav a {
  position: relative; padding: 6px 0;
  font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); transition: color 0.2s;
}
.bar nav a:hover, .bar nav a[aria-current="true"] { color: var(--text); }
.bar nav a[aria-current="true"]::before {
  content: ""; position: absolute; left: -12px; top: 50%;
  width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%;
  background: var(--accent);
}

/* ---------- Hero ---------- */

.hero {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: 96px 0 10vh;
  border-bottom: 1px solid var(--line);
}
.dots {
  position: absolute; inset: 0; width: 100%; height: 100%;
  -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
  pointer-events: none;
}
.hero-inner { position: relative; }

.hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3rem, 10.5vw, 8.5rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
}
.hero h1 span { display: block; }
.hero h1 span + span { color: var(--accent); }

.hero-text {
  margin-top: 32px; max-width: 30em;
  font-size: clamp(1rem, 2vw, 1.15rem); color: var(--muted);
}

.down {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 32px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  transition: color 0.2s;
}
.down svg { width: 10px; height: 9px; fill: var(--accent); transition: transform 0.25s var(--ease); }
.down:hover { color: var(--accent); }
.down:hover svg { transform: translateY(3px); }

@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero-text, .hero .down { opacity: 0; animation: rise 0.8s var(--ease) forwards; }
  .hero-text { animation-delay: 0.14s; }
  .hero .down { animation-delay: 0.28s; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Sections ---------- */

.section { padding: var(--section) 0 0; }
.section h2 {
  font-size: 13px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent);
}
.lede {
  margin-top: 14px; max-width: 20em;
  font-size: clamp(1.6rem, 3.6vw, 2.3rem); line-height: 1.15;
  font-weight: 500; letter-spacing: -0.02em; color: var(--text);
}

/* ---------- Products ---------- */

.shelf {
  margin-top: 56px;
  display: grid; grid-template-columns: minmax(0, 2.3fr) minmax(0, 1fr); gap: 20px;
}

.product { border: 1px solid var(--line); background: var(--raised); }

.art {
  position: relative; aspect-ratio: 800 / 420;
  border-bottom: 1px solid var(--line);
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 20px 20px;
}
.art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mark { position: absolute; width: 9px; height: 9px; border: 0 solid var(--muted); opacity: 0.6; }
.mark-tl { left: 10px; top: 10px; border-width: 1px 0 0 1px; }
.mark-tr { right: 10px; top: 10px; border-width: 1px 1px 0 0; }
.mark-bl { left: 10px; bottom: 10px; border-width: 0 0 1px 1px; }
.mark-br { right: 10px; bottom: 10px; border-width: 0 1px 1px 0; }

.art .cell { cursor: crosshair; }
.art .cell rect, .art .cell path.bay {
  fill: rgba(255, 255, 255, 0.015); stroke: rgba(255, 255, 255, 0.22); stroke-width: 1;
  transition: fill 0.25s, stroke 0.25s;
}
.art .cell path.bay { fill: none; }
.art .cell rect.hit { fill: transparent; stroke: none; }
.art .cell circle { fill: rgba(255, 255, 255, 0.3); transition: fill 0.25s; }
.art .cell rect.car { fill: transparent; stroke: rgba(255, 255, 255, 0.18); }
.art .cell.is-on rect:not(.hit):not(.car) { fill: rgba(255, 79, 0, 0.14); stroke: var(--accent); }
.art .cell.is-on path.bay { stroke: var(--accent); }
.art .cell.is-on circle { fill: var(--accent); }
.art .cell.is-on rect.car { fill: var(--accent); stroke: var(--accent); }
.art .ground { stroke: rgba(255, 255, 255, 0.3); stroke-width: 1; fill: none; }
.art .ticks { stroke: rgba(255, 255, 255, 0.2); stroke-width: 1; fill: none; }

.product-body {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.product-copy { padding: clamp(24px, 3.4vw, 40px); }
.product-spec {
  padding: clamp(24px, 3.4vw, 40px);
  border-left: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
}

.app-icon {
  width: 56px; height: 56px; border-radius: 12.5px; margin-bottom: 22px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.product h3 { font-size: 26px; line-height: 1.2; font-weight: 600; letter-spacing: -0.015em; }
.product-copy p { margin-top: 10px; color: var(--muted); font-size: 16px; }

.spec > div {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px;
}
.spec > div:first-child { padding-top: 0; }
.spec dt {
  color: var(--muted); font-size: 12px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; padding-top: 2px;
}
.spec dd { text-align: right; }

/* Teasers */
.soon { display: grid; grid-template-rows: 1fr 1fr; gap: 20px; }
.tease {
  position: relative; overflow: hidden; isolation: isolate;
  border: 1px solid var(--line); background: var(--raised); min-height: 180px;
}
.tease img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.14); filter: blur(18px) saturate(1.15);
  transition: filter 0.5s var(--ease);
}
.tease:hover img { filter: blur(13px) saturate(1.15); }
.tease::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(17, 18, 20, 0.8), rgba(17, 18, 20, 0) 60%);
}
.tease figcaption {
  position: absolute; left: 16px; bottom: 14px; z-index: 2;
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
}
.tease figcaption::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}

/* ---------- Buttons ---------- */

.btn {
  appearance: none; display: inline-flex; align-items: center; justify-content: center;
  align-self: flex-start;
  height: 46px; padding: 0 24px; border: 0; border-radius: 999px;
  background: var(--accent); color: #111214;
  font: inherit; font-size: 14px; font-weight: 600; letter-spacing: 0.02em;
  cursor: pointer;
  transition: filter 0.2s, transform 0.2s var(--ease);
}
.btn:hover { filter: brightness(1.1); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.6; cursor: progress; filter: none; transform: none; }
.btn-store.is-soon {
  background: transparent; color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line);
  cursor: default; filter: none; transform: none; gap: 10px;
}
.btn-store.is-soon::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}

.text-button {
  appearance: none; border: 0; padding: 0; background: none; color: var(--text);
  font: inherit; font-weight: 600; cursor: pointer;
  text-decoration: underline; text-decoration-color: rgba(255, 79, 0, 0.55);
  text-decoration-thickness: 2px; text-underline-offset: 5px;
}
.text-button:hover { color: var(--accent); }

/* ---------- Contact ---------- */

.contact {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 88px); align-items: start;
}
.contact-intro .lede { font-size: 1.15rem; line-height: 1.5; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.contact-intro h2 { font-family: var(--display); font-weight: 400; font-size: clamp(2.4rem, 5vw, 3.6rem); text-transform: none; letter-spacing: -0.03em; color: var(--text); line-height: 1; }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.field { margin-bottom: 26px; }
.field label {
  display: block; margin-bottom: 4px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
input[type="text"], input[type="email"], textarea {
  width: 100%; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  background: transparent; color: var(--text);
  font: inherit; font-size: 18px; padding: 10px 0; height: 46px;
  transition: border-color 0.2s;
}
textarea { height: auto; min-height: 130px; line-height: 1.55; resize: vertical; }
input:hover, textarea:hover { border-bottom-color: rgba(255, 255, 255, 0.3); }
input:focus-visible, textarea:focus-visible { outline: none; border-bottom-color: var(--accent); }
.field.has-error input, .field.has-error textarea { border-bottom-color: var(--error); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.actions { margin-top: 8px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.status { font-size: 14px; color: var(--muted); }
.status.is-error { color: var(--error); }
.fine { margin-top: 20px; font-size: 13px; color: var(--muted); }
.cf-turnstile { margin: 4px 0 12px; }

.sent { padding: 28px; border: 1px solid var(--line); background: var(--raised); }
.sent[hidden], #contact-form[hidden] { display: none; }
.sent h3 { font-size: 22px; font-weight: 600; }
.sent p { margin: 8px 0 18px; color: var(--muted); }
.sent p span { color: var(--text); }
@media (prefers-reduced-motion: no-preference) {
  .sent:not([hidden]) { animation: rise 0.5s var(--ease); }
}

/* ---------- Footer ---------- */

.foot { margin-top: var(--section); padding: 24px 0 36px; border-top: 1px solid var(--line); }
.foot-inner {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--muted);
}
.to-top {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; transition: color 0.2s;
}
.to-top svg { width: 10px; height: 9px; fill: var(--accent); }
.to-top:hover { color: var(--text); }

/* ---------- Small screens ---------- */

@media (max-width: 900px) {
  .shelf { grid-template-columns: 1fr; }
  .soon { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .tease { aspect-ratio: 4 / 3; min-height: 0; }
  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .product-body { grid-template-columns: 1fr; }
  .product-spec { border-left: 0; border-top: 1px solid var(--line); }
  .row { grid-template-columns: 1fr; gap: 0; }
  .bar nav { gap: 22px; }
}
