/* AR Connect — landing v0.1
   Palette: warm near-black, bone ink, one brass accent. No gradients as decoration. */

:root {
  --bg: #08090b;
  --bg-raise: #0e1013;
  --ink: #eae6df;
  --muted: #8b8d92;
  --faint: #5d6066;
  --line: rgba(234, 230, 223, 0.13);
  --line-soft: rgba(234, 230, 223, 0.07);
  --accent: #e9a94a;
  --accent-dim: rgba(233, 169, 74, 0.14);

  --sans: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --gut: clamp(1.25rem, 4vw, 4.5rem);
  --max: 1240px;
}

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

html { scroll-behavior: smooth; }

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

/* faint scan grid, fixed behind everything, barely visible */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right, var(--line-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-soft) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(ellipse 90% 70% at 60% 0%, #000 0%, transparent 75%);
  opacity: 0.55;
}

main, .site-head, .site-foot { position: relative; z-index: 1; }

a { color: inherit; }

h1, h2, h3 { font-weight: 500; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }

p { margin: 0; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #000;
  padding: 0.6rem 1rem;
  z-index: 10;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- header ---------- */

.site-head {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem var(--gut) 1.25rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  border-bottom: 1px solid var(--line-soft);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.brand-mark {
  width: 15px;
  height: 15px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  position: relative;
}
.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  background: var(--accent);
}
.brand-mark::before { left: 50%; top: -4px; width: 1px; height: 21px; transform: translateX(-50%); }
.brand-mark::after { top: 50%; left: -4px; height: 1px; width: 21px; transform: translateY(-50%); }

.site-nav {
  display: flex;
  gap: 1.75rem;
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.5rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.site-nav a:hover { color: var(--ink); border-color: var(--line); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1.25rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  background: transparent;
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}
.btn:hover,
.btn:focus-visible { background: var(--accent); color: #0a0a0a; }

.btn-small { min-height: 38px; padding: 0 0.9rem; font-size: 0.7rem; }

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

/* ---------- labels ---------- */

.label,
.kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.kicker { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1.75rem; }

.pulse {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 0 var(--accent-dim);
  animation: pulse 3.2s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(233, 169, 74, 0.35); }
  70%, 100% { box-shadow: 0 0 0 9px rgba(233, 169, 74, 0); }
}

/* ---------- hero ---------- */

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 9vh, 6.5rem) var(--gut) clamp(3rem, 8vh, 5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.6rem, 6.4vw, 5.1rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 500;
}

.lede {
  margin-top: 1.75rem;
  max-width: 34rem;
  color: #b9b7b2;
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  line-height: 1.65;
}

.hero-actions {
  margin-top: 2.25rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.hero-visual { margin: 0; }

.visual-frame {
  position: relative;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line-soft);
  background:
    radial-gradient(circle at 50% 45%, rgba(233, 169, 74, 0.05), transparent 62%),
    var(--bg-raise);
  overflow: hidden;
}

.visual-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.018) 0px,
    rgba(255, 255, 255, 0.018) 1px,
    transparent 1px,
    transparent 3px
  );
}

#world { display: block; width: 100%; height: 100%; }

.tag {
  position: absolute;
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.05em;
  color: var(--faint);
  padding: 0.2rem 0.4rem;
  background: rgba(8, 9, 11, 0.72);
}
.tag-tl { top: 0.75rem; left: 0.75rem; }
.tag-br { bottom: 0.75rem; right: 0.75rem; color: var(--accent); }

figcaption {
  margin-top: 0.75rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--faint);
  text-align: right;
}

/* ---------- layers ---------- */

.layers {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 8vh, 6rem) var(--gut);
  border-top: 1px solid var(--line-soft);
}

.section-head {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.section-head h2,
.anchors h2,
.closer h2 {
  font-size: clamp(1.65rem, 3.1vw, 2.5rem);
  line-height: 1.12;
  max-width: 22ch;
}

.stack { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }

.layer {
  display: grid;
  grid-template-columns: 96px minmax(0, 0.9fr) minmax(0, 1.3fr) 200px;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: clamp(1.75rem, 3.5vw, 2.75rem) 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.layer-num {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--faint);
  padding-top: 0.5rem;
}

.layer h3 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); line-height: 1.1; }

.layer p {
  color: #a8a6a1;
  font-size: 0.98rem;
  max-width: 46ch;
}

.spec {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--faint);
}
.spec li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.42rem 0;
  border-bottom: 1px dashed var(--line-soft);
}
.spec li:last-child { border-bottom: 0; }
.spec li span:last-child { color: var(--muted); text-align: right; }

/* ---------- anchors ---------- */

.anchors {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 8vh, 6rem) var(--gut);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  border-top: 1px solid var(--line-soft);
}

.anchor-copy .label { margin-bottom: 1.25rem; }
.anchor-copy h2 { margin-bottom: 1.5rem; }

.body {
  color: #a8a6a1;
  max-width: 46ch;
  font-size: 1rem;
}
.body + .body { margin-top: 1rem; }
.muted { color: var(--faint); }

.anchor-figure {
  position: relative;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line-soft);
  display: grid;
  place-items: center;
  background: var(--bg-raise);
  overflow: hidden;
}

.ring {
  position: absolute;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.ring-1 { width: 30%; height: 30%; border-color: var(--accent); opacity: 0.45; }
.ring-2 { width: 58%; height: 58%; opacity: 0.7; }
.ring-3 { width: 88%; height: 88%; border-style: dashed; opacity: 0.6; }

.crosshair {
  position: absolute;
  width: 1px;
  height: 88%;
  background: linear-gradient(to bottom, transparent, var(--line), transparent);
}
.crosshair::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 88vh;
  max-width: 88%;
  height: 1px;
  background: var(--line);
  transform: translate(-50%, -50%);
}

.coord {
  position: absolute;
  font-family: var(--mono);
  font-size: 0.64rem;
  color: var(--faint);
  letter-spacing: 0.05em;
}
.coord-a { top: 12%; left: 12%; }
.coord-b { bottom: 16%; right: 12%; }
.coord-c { top: 50%; right: 8%; color: var(--accent); }

/* ---------- closer ---------- */

.closer {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3.5rem, 9vh, 7rem) var(--gut);
  border-top: 1px solid var(--line-soft);
}
.closer .label { margin-bottom: 1.25rem; }
.closer h2 { margin-bottom: 1.25rem; max-width: 16ch; }
.closer .body { margin-bottom: 2rem; }

/* ---------- footer ---------- */

.site-foot {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem var(--gut) 2.5rem;
  border-top: 1px solid var(--line-soft);
  display: flex;
  gap: 1.5rem;
  align-items: center;
  font-size: 0.78rem;
  color: var(--faint);
}
.site-foot .mono { font-family: var(--mono); }
.site-foot a { margin-left: auto; color: var(--faint); text-decoration: none; }
.site-foot a:hover { color: var(--ink); }

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .visual-frame { aspect-ratio: 16 / 10; max-width: 34rem; }
  .section-head { grid-template-columns: 1fr; gap: 0.75rem; }
  .layer { grid-template-columns: 48px minmax(0, 1fr); row-gap: 1rem; }
  .layer p { grid-column: 2; }
  .spec { grid-column: 2; max-width: 22rem; }
  .anchors { grid-template-columns: 1fr; }
  .anchor-figure { max-width: 26rem; }
}

@media (max-width: 620px) {
  .site-nav { display: none; }
  .site-head { justify-content: space-between; }
  .site-head .btn { margin-left: auto; }
  .hero { padding-top: 2rem; }
  .hero-visual { display: none; }
  .layer { grid-template-columns: 1fr; }
  .layer p, .spec { grid-column: 1; }
  .layer-num { padding-top: 0; }
  .site-foot { flex-wrap: wrap; }
  .site-foot a { margin-left: 0; }
}

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