/* 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; }
}

/* ---------- Websites ---------- */

.site { display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--raised); }
.site .art { aspect-ratio: 3 / 2; }
.site-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.site .kind {
  color: var(--muted); font-size: 12px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.site h3 { margin-top: 10px; font-size: 22px; line-height: 1.2; font-weight: 600; letter-spacing: -0.015em; }
.site-body > p:not(.kind) { margin-top: 10px; color: var(--muted); font-size: 16px; }
.visit {
  margin-top: auto; padding-top: 24px; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  transition: color 0.2s;
}
.visit svg { width: 9px; height: 10px; fill: var(--accent); transition: transform 0.25s var(--ease); }
.visit:hover { color: var(--accent); }
.visit:hover svg { transform: translateX(3px); }

.art .frame { stroke: rgba(255, 255, 255, 0.3); stroke-width: 1; fill: none; }
.art .thirds { stroke: rgba(255, 255, 255, 0.12); stroke-width: 1; fill: none; }
.art .thin { stroke: rgba(255, 255, 255, 0.2); stroke-width: 1; fill: none; }
.art .brk { stroke: rgba(255, 255, 255, 0.6); stroke-width: 1.5; fill: none; }

@media (max-width: 680px) {
  .bar nav { gap: 16px; }
  .bar nav a { font-size: 12px; letter-spacing: 0.06em; }
}

/* ---------- About ---------- */

.about {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 88px); align-items: start;
}
.about-body > p {
  max-width: 34em; font-size: clamp(1.05rem, 1.8vw, 1.2rem); line-height: 1.6; color: var(--muted);
}
.about-body > p + p { margin-top: 18px; }
.about-body em { font-style: normal; color: var(--text); }

.chain {
  list-style: none; margin: 44px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.chain li {
  position: relative; padding: 18px 14px 0 0;
  display: flex; flex-direction: column; gap: 4px;
}
.chain li::before {
  content: ""; position: absolute; left: 0; top: -4px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--bg);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4);
}
.chain li.is-now::before { background: var(--accent); box-shadow: none; }
.chain b { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.chain li.is-now b { color: var(--accent); }
.chain span {
  color: var(--muted); font-size: 12px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
}

@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .chain { grid-template-columns: 1fr 1fr; border-top: 0; }
  .chain li { border-top: 1px solid var(--line); padding-bottom: 24px; }
  .bar nav { gap: 12px; }
  .bar nav a { font-size: 11px; letter-spacing: 0.04em; }
  .bar nav a[aria-current="true"]::before { left: -9px; width: 4px; height: 4px; margin-top: -2px; }
}

/* Website previews: real (blurred) screenshots instead of line art. */
.art.photo { background: var(--bg); overflow: hidden; }
.art.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.site:hover .art.photo img { transform: scale(1.03); }

/* Stacked products in the left column. */
.art .rcpt { fill: rgba(255, 255, 255, 0.02); }
.art .scan { stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 5 5; fill: none; opacity: 0.8; }

/* Dearly art */
.art .cover { fill: rgba(255, 255, 255, 0.02); }
.art .band { stroke: var(--accent); stroke-width: 1.5; fill: none; }
.art .charm { stroke: var(--accent); stroke-width: 1; fill: rgba(255, 79, 0, 0.25); }
.art .cell .g { fill: none; stroke: rgba(255, 255, 255, 0.4); stroke-width: 1.5; stroke-linejoin: round; transition: stroke 0.25s; }
.art .cell .g circle, .art .cell.is-on .g circle { fill: none; }
.art .cell.is-on .g { stroke: var(--accent); }

/* Revora art */
.art .car { fill: none; }
.art .hub { fill: var(--accent); stroke: none; }
.art .node { fill: var(--bg); stroke: rgba(255, 255, 255, 0.4); stroke-width: 1; }
.art .node.on { fill: var(--accent); stroke: none; }

/* Stow art */
.art .drop { stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 5 5; fill: none; opacity: 0.8; }
.art .gem rect { fill: rgba(255, 79, 0, 0.18); stroke: var(--accent); stroke-width: 1.5; }
.art .tray { fill: rgba(255, 255, 255, 0.02); }

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

.shelf { margin-top: 0; display: block; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.rail-controls[hidden] { display: none; }
.rail-controls { display: flex; align-items: center; gap: 14px; flex: none; padding-bottom: 6px; }
.rail-count {
  min-width: 5.5em; text-align: right; color: var(--muted);
  font-size: 12px; font-weight: 500; letter-spacing: 0.08em; font-variant-numeric: tabular-nums;
}
.rail-btn {
  appearance: none; width: 44px; height: 44px; padding: 0; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--text); cursor: pointer;
  border: 1px solid var(--line);
  transition: border-color 0.2s, opacity 0.2s, background 0.2s;
}
.rail-btn svg { width: 10px; height: 11px; fill: var(--accent); }
.rail-btn:hover:not([disabled]) { border-color: var(--accent); }
.rail-btn[disabled] { opacity: 0.3; cursor: default; }

.rail {
  --per: 3; --gap: 20px;
  margin-top: 40px;
  display: flex; gap: var(--gap);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.rail::-webkit-scrollbar { display: none; }
.rail.is-dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }
@media (prefers-reduced-motion: no-preference) {
  .rail { scroll-behavior: smooth; }
  .rail.is-dragging { scroll-behavior: auto; }
}

.rail > .product, .rail > .site {
  flex: 0 0 calc((100% - (var(--per) - 1) * var(--gap)) / var(--per));
  scroll-snap-align: start;
  display: flex; flex-direction: column;
}
.product > .art { aspect-ratio: 800 / 420; min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
.product-body { flex: 1; display: flex; flex-direction: column; }
.product-copy, .product-spec { padding: 24px; }
.product-spec { flex: 1; border-left: 0; border-top: 1px solid var(--line); gap: 24px; }
.product-copy p { font-size: 15px; }
.spec > div { font-size: 14px; }

@media (max-width: 1100px) { .rail { --per: 2; } }
@media (max-width: 680px) {
  .rail { --per: 1; --gap: 14px; margin-right: calc(var(--gutter) * -1); padding-right: var(--gutter); }
  .rail > .product, .rail > .site { flex-basis: 84%; }
  .rail-count { display: none; }
  .section-head { align-items: flex-start; }
}

/* ---------- One section per screen ---------- */
html { scroll-padding-top: 0; scroll-snap-type: y mandatory; }
.hero, .section { scroll-snap-align: start; scroll-snap-stop: normal; }
.section {
  --top: 88px; --bottom: 40px;
  min-height: 100vh; min-height: 100svh;
  padding: var(--top) 0 var(--bottom);
  display: flex; flex-direction: column; justify-content: center;
}
#contact { min-height: calc(100svh - 82px); }
.foot { margin-top: 0; scroll-snap-align: end; }

/* Compact product cards so the whole shelf fits one screen */
#products .section-head + .shelf .rail { margin-top: 28px; }
.product > .art { aspect-ratio: 800 / 260; }
.product-copy {
  padding: 20px 22px 16px;
  display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center;
}
.product-copy .app-icon { width: 44px; height: 44px; margin: 0; border-radius: 10px; }
.product-copy h3 { font-size: 22px; }
.product-copy p { grid-column: 1 / -1; margin-top: 12px; font-size: 14px; line-height: 1.5; }
.product-spec { padding: 14px 22px 22px; gap: 18px; }
.spec > div { padding: 8px 0; font-size: 13.5px; }
.spec > div:first-child { padding-top: 0; }
.btn-store { height: 42px; }
@media (max-height: 820px) and (min-width: 681px) { .product > .art { display: none; } }
@media (max-width: 680px) {
  .section { --top: 80px; --bottom: 24px; }
  .product > .art { aspect-ratio: 800 / 220; }
  .product-copy { padding: 16px 18px 12px; }
  .product-spec { padding: 12px 18px 18px; gap: 14px; }
  .spec > div { padding: 7px 0; }
  #products .section-head + .shelf .rail { margin-top: 20px; }
  .lede { font-size: 1.45rem; }
}
@media (max-height: 920px) { .section { --top: 76px; --bottom: 24px; } }
@media (max-width: 680px) { #about { --top: 72px; --bottom: 12px; } }

/* ---------- Phones: compact so every section fits one screen ---------- */
@media (max-width: 680px) {
  .section { --top: 76px; --bottom: 16px; }
  #about { --top: 76px; --bottom: 16px; }
  .foot { padding: 14px 0 20px; }
  #contact { min-height: calc(100svh - 58px); }

  /* About */
  .about { gap: 14px; }
  .about-body > p { font-size: 14.5px; line-height: 1.5; }
  .about-body > p + p { margin-top: 10px; }
  .chain { margin-top: 18px; }
  .chain li { padding: 12px 10px 14px 0; gap: 2px; }
  .chain b { font-size: 14px; }
  .chain span { font-size: 10.5px; letter-spacing: 0.06em; }
  #about .lede, #about h2 + .lede { font-size: 1.3rem; margin-top: 8px; }

  /* Products */
  .product > .art { display: none; }
  .product-copy { padding: 16px 18px 12px; }
  .product-copy p { font-size: 13.5px; margin-top: 10px; }
  .spec > div { padding: 6px 0; font-size: 13px; }
  .product-spec { padding: 10px 18px 16px; gap: 12px; }
  .btn-store { height: 40px; font-size: 13px; }
  #products .section-head + .shelf .rail { margin-top: 16px; }

  /* Contact */
  .contact { gap: 14px; }
  .contact-intro h2 { font-size: 2.2rem; }
  .contact-intro .lede { font-size: 1rem; margin-top: 8px; }
  .field { margin-bottom: 12px; }
  input[type="text"], input[type="email"], textarea { font-size: 16px; padding: 6px 0; height: 38px; }
  textarea { min-height: 84px; height: 84px; }
  .actions { margin-top: 4px; }
  .fine { margin-top: 10px; font-size: 12px; }
}
@media (max-width: 680px) {
  .section, #about { --bottom: 24px; }
  #contact { min-height: calc(100svh - 56px); }
  .site .art { aspect-ratio: 2 / 1; }
}

/* The last screen (contact + footer) snaps by its end edge: the document
   end is always reachable, so iOS never bounces back to the previous section. */
#contact { scroll-snap-align: none; }
.foot { scroll-snap-align: end; }

/* Products: art, copy and spec share rows across every card, so the spec lists line up */
.products {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--per) - 1) * var(--gap)) / var(--per));
  grid-template-rows: auto auto 1fr;
  column-gap: var(--gap); row-gap: 0;
}
.products > .product {
  display: grid; grid-row: 1 / span 3; grid-template-rows: subgrid; flex: none;
}
.products > .product > .art { grid-row: 1; }
.products > .product > .product-body { display: contents; }
.products .product-copy { grid-row: 2; }
.products .product-spec { grid-row: 3; }
@media (max-width: 680px) {
  .products { grid-auto-columns: 84%; }
}
.products .product-copy { align-content: start; }

/* Live App Store link: filled pill with a small arrow */
.btn-store.is-live { gap: 10px; text-decoration: none; }
.btn-store.is-live::after {
  content: ""; width: 0; height: 0; border-style: solid; border-width: 4.5px 0 4.5px 7px;
  border-color: transparent transparent transparent currentColor; transition: transform 0.25s var(--ease);
}
.btn-store.is-live:hover::after { transform: translateX(3px); }
.btn-store.is-live:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }

/* Apps with more than one store button (Stow: iPhone + Mac) sit side by side */
.store-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.store-row .btn-store { padding: 0 16px; font-size: 13px; white-space: nowrap; align-self: auto; }
@media (max-width: 680px) {
  .store-row { gap: 6px; }
  .store-row .btn-store { padding: 0 12px; font-size: 12.5px; gap: 8px; }
}
