/* JR Technologies — home
   Type, materials and motion follow Apple's interface guidance translated to the web:
   size-specific tracking, leading inverse to size, translucent chrome with content
   scrolling under it, feedback on press rather than release, and rem-based spacing so
   a larger text setting scales the layout instead of breaking it. */

:root {
  --bg:        #0a0a0c;
  --bg-alt:    #0e0e12;
  --surface:   rgba(255, 255, 255, 0.04);
  --line:      rgba(255, 255, 255, 0.10);
  --text:      #e9e9ee;
  --muted:     #90909c;
  --accent:    #4fd1ff;
  --accent-dim: rgba(79, 209, 255, 0.14);
  --live:      #4ade80;

  --gutter: clamp(1.25rem, 5vw, 4rem);
  --band-y: clamp(4rem, 10vw, 7.5rem);
  --measure: 34rem;
  --radius: 0.875rem;
  --chrome-h: 3.75rem;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  /* System font first: it already ships optical sizing and legibility tuning. */
  font: 400 100%/1.6 system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Scroll-padding so anchored sections clear the floating chrome. */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--chrome-h) + 1rem); }

a { color: inherit; }

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: var(--gutter);
  top: 0.75rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--text);
  color: var(--bg);
  border-radius: 0.5rem;
  text-decoration: none;
}

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

/* ---- Chrome: a translucent layer content passes beneath, not an opaque strip ---- */

.chrome {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 12, 0.62);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

/* Scroll edge effect: a soft fade where content meets the floating chrome,
   rather than a 1px rule drawn across the whole viewport. */
.chrome::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 100%;
  height: 1.5rem;
  background: linear-gradient(to bottom, rgba(10, 10, 12, 0.5), transparent);
  pointer-events: none;
}

.chrome nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--chrome-h);
  padding-inline: var(--gutter);
}

.mark {
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--muted);
  white-space: nowrap;
}
.mark span {
  color: var(--text);
  font-weight: 650;
  letter-spacing: 0.04em;
}

.chrome ul {
  display: flex;
  gap: clamp(0.75rem, 3vw, 2rem);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
}
.chrome ul a {
  text-decoration: none;
  color: var(--muted);
  transition: color 120ms ease-out;
}
.chrome ul a:hover { color: var(--text); }
.chrome ul a:active { color: var(--accent); }

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

.hero {
  padding: clamp(4.5rem, 14vw, 9rem) var(--gutter) clamp(3.5rem, 9vw, 6rem);
  max-width: 62rem;
}

.eyebrow {
  margin: 0 0 1.25rem;
  font-size: 0.8125rem;
  font-weight: 500;
  /* Small text takes slightly positive tracking for legibility. */
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  margin: 0;
  font-size: clamp(2.35rem, 7.5vw, 5rem);
  font-weight: 640;
  /* Large text reads too loose at default spacing — tighten tracking and leading together. */
  line-height: 1.04;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

.lede {
  margin: 1.5rem 0 0;
  max-width: var(--measure);
  font-size: clamp(1.03rem, 2.1vw, 1.1875rem);
  line-height: 1.62;
  letter-spacing: 0;
  color: var(--muted);
  text-wrap: pretty;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

/* ---- Buttons: feedback lands on press, not on release ---- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.7rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 520;
  text-decoration: none;
  transition: transform 110ms ease-out, background-color 140ms ease-out, border-color 140ms ease-out;
}
.btn:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.2); }
.btn:active { transform: scale(0.97); }

.btn.primary {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
  font-weight: 600;
}
.btn.primary:hover { background: #fff; border-color: #fff; }

/* ---- Bands ---- */

.band {
  padding: var(--band-y) var(--gutter);
  border-top: 1px solid var(--line);
}
.band.alt { background: var(--bg-alt); }

h2 {
  margin: 0 0 2.5rem;
  font-size: clamp(1.4rem, 3.2vw, 1.9rem);
  font-weight: 620;
  line-height: 1.2;
  letter-spacing: -0.018em;
}

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr));
}

.card {
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.card h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 620;
  letter-spacing: -0.012em;
}
.card .role {
  margin: 0.3rem 0 1rem;
  font-size: 0.78125rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.66;
  text-wrap: pretty;
}
.card .status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.35rem;
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
}

.dot {
  width: 0.4375rem;
  height: 0.4375rem;
  border-radius: 50%;
  flex: none;
}
.dot.live     { background: var(--live);   box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.16); }
.dot.building { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }

/* ---- Brands ---- */

.brands {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}
.brands li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.brands h3 {
  margin: 0 0 0.3rem;
  font-size: 1.15rem;
  font-weight: 620;
  letter-spacing: -0.012em;
}
.brands p {
  margin: 0;
  max-width: var(--measure);
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}
.brands .soon { opacity: 0.62; }

.tag {
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.78125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

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

.contact .lede { margin-top: -1rem; margin-bottom: 2rem; }

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

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  padding: 2.25rem var(--gutter);
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--muted);
}
footer p { margin: 0; }
footer a { text-decoration-color: var(--line); text-underline-offset: 0.2em; }
footer a:hover { text-decoration-color: currentColor; }

/* ---- Narrow viewports ---- */

@media (max-width: 30rem) {
  .chrome ul { font-size: 0.8125rem; gap: 0.85rem; }
  .mark { font-size: 0.875rem; }
}

/* ---- Accessibility preferences: gentler equivalents, not the absence of feedback ---- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .btn:active { transform: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .chrome {
    background: var(--bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid var(--line);
  }
  .chrome::after { display: none; }
}

@media (prefers-contrast: more) {
  :root {
    --muted: #c4c4cc;
    --line: rgba(255, 255, 255, 0.34);
    --surface: rgba(255, 255, 255, 0.02);
  }
  .chrome { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
