/* ============================================================
   BarNone Labs — design system
   ============================================================ */
:root {
  /* Brand accent — warm brass / whiskey-gold. Tints derived via color-mix. */
  --accent: #d9b24a;

  /* Backgrounds */
  --bg: #100d0a;          /* page */
  --bg-alt: #15110b;      /* alternating section */
  --bg-card: #1b1711;     /* cards */

  /* Borders */
  --border-hair: #221d14;
  --border-hair-2: #2c261c;
  --border-card: #342d20;
  --border-dash: #3a3324;

  /* Text */
  --text: #f4efe4;        /* primary */
  --text-2: #a99f8c;      /* secondary */
  --text-muted: #6f6657;  /* muted */

  /* Type */
  --font-ui: 'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  /* Layout */
  --container: 1120px;
  --pad-x: 28px;
  --radius-card: 14px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.accent { color: var(--accent); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(16, 13, 10, 0.93);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border-hair);
}

.nav-bar {
  padding-top: 16px;
  padding-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.wordmark {
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--text);
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links {
  display: flex;
  gap: 26px;
  margin-right: 14px;
}

.nav-link {
  text-decoration: none;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav-link:hover { color: var(--accent); }

.nav-pill {
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  padding: 8px 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  white-space: nowrap;
  transition: background 0.2s ease;
}
.nav-pill:hover { background: color-mix(in srgb, var(--accent) 20%, transparent); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(86px, 15vh, 168px) 0 clamp(56px, 9vh, 104px);
  scroll-margin-top: 84px;
}

.hero-glow {
  position: absolute;
  top: 14%;
  left: 50%;
  transform: translateX(-50%);
  width: min(940px, 128vw);
  height: 540px;
  background: radial-gradient(
    ellipse at center,
    color-mix(in srgb, var(--accent) 24%, transparent),
    color-mix(in srgb, var(--accent) 6%, transparent) 46%,
    transparent 70%
  );
  animation: bnGlow 7s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes bnGlow {
  0%, 100% { opacity: 0.8; transform: translateX(-50%) scale(1); }
  50%      { opacity: 1;   transform: translateX(-50%) scale(1.06); }
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.kicker {
  margin: 0 0 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-title {
  margin: 0;
  font-weight: 700;
  font-size: clamp(56px, 11vw, 140px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--text);
  text-shadow: 0 0 70px color-mix(in srgb, var(--accent) 28%, transparent);
}

.hero-tagline {
  margin: clamp(26px, 4vh, 42px) 0 0;
  font-size: clamp(22px, 3.4vw, 38px);
  font-weight: 500;
  color: var(--text-2);
  letter-spacing: -0.015em;
  min-height: 1.3em;
}

.hero-rotator {
  display: inline-block;
  transition: opacity 0.42s ease;
}

.hero-fixed {
  color: var(--text);
  font-weight: 700;
}

.hero-sub {
  margin: 22px 0 0;
  max-width: 580px;
  font-size: clamp(15px, 1.7vw, 18px);
  line-height: 1.65;
  color: var(--text-2);
}

.bar-rule {
  margin-top: clamp(50px, 8vh, 90px);
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in srgb, var(--accent) 55%, transparent),
    transparent
  );
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(60px, 9vh, 100px) 0;
  scroll-margin-top: 84px;
}

.section--alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border-hair);
  border-bottom: 1px solid var(--border-hair);
}

/* contact is alt but only needs a top border */
#contact.section--alt { border-bottom: none; padding: clamp(70px, 11vh, 120px) 0; }

.section-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
}
.section-num { color: var(--text-muted); }
.section-dash {
  width: 26px;
  height: 1px;
  background: var(--border-card);
  display: inline-block;
}

.statement {
  margin: 0;
  max-width: 780px;
  font-size: clamp(20px, 2.7vw, 31px);
  line-height: 1.5;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.015em;
}

.section-intro {
  margin: 0 0 36px;
  max-width: 620px;
  font-size: clamp(15px, 1.7vw, 17px);
  line-height: 1.6;
  color: var(--text-2);
}

/* ---------- Cards (Building) ---------- */
.card-grid {
  display: grid;
  /* min(100%, 300px) lets a card shrink below 300px on very narrow phones
     instead of forcing horizontal overflow. */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 20px;
}

.card {
  border-radius: var(--radius-card);
  padding: 30px;
}

.project-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.project-card:hover {
  border-color: var(--accent);
  box-shadow:
    0 0 16px color-mix(in srgb, var(--accent) 12%, transparent),
    0 8px 30px rgba(0, 0, 0, 0.4);
  transform: translateY(-3px);
}

.card-tags {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
}

.chip {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 5px 11px;
}
.chip--tag {
  letter-spacing: 1px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 13%, transparent);
}
.chip--status {
  letter-spacing: 0.8px;
  color: var(--text);
  background: color-mix(in srgb, var(--accent) 20%, transparent);
}

.card-title {
  margin: 0 0 14px;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.card-desc {
  margin: 0;
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.65;
}

.next-tile {
  border: 1px dashed var(--border-dash);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 200px;
}
.next-label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.next-desc {
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-2);
}

/* ---------- Who we are ---------- */
.who-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: clamp(32px, 5vw, 56px);
  align-items: start;
}

.who-lead {
  margin: 0 0 20px;
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.55;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
}
.who-body {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-2);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border-hair-2);
  border-radius: var(--radius-card);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 12%, var(--bg-card));
  border: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--accent);
  font-size: 16px;
}

.team-name {
  margin: 0;
  font-weight: 600;
  color: var(--text);
  font-size: 15px;
}
.team-role {
  margin: 5px 0 0;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.team-note {
  margin: 16px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ---------- Contact ---------- */
.contact-head {
  margin: 0 0 16px;
  font-size: clamp(30px, 4.5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.05;
}
.contact-sub {
  margin: 0 0 36px;
  max-width: 540px;
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.6;
  color: var(--text-2);
}
.contact-email {
  display: inline-block;
  max-width: 100%;
  /* The email is one long unbreakable token; allow it to wrap on narrow
     phones instead of overflowing the viewport. */
  overflow-wrap: anywhere;
  text-decoration: none;
  font-weight: 700;
  font-size: clamp(22px, 3.5vw, 40px);
  letter-spacing: -0.02em;
  color: var(--accent);
  text-shadow: 0 0 40px color-mix(in srgb, var(--accent) 22%, transparent);
  transition: opacity 0.2s ease;
}
.contact-email:hover { text-decoration: underline; }
.contact-note {
  margin: 14px 0 0;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border-hair);
  padding: 34px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-text {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}
.footer-brand {
  font-weight: 700;
  color: var(--text-2);
}
.footer-mono {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--text-muted);
}

/* ---------- Scroll reveal ----------
   Hiding is scoped to .js so that, with JavaScript disabled, every section
   stays fully visible (no content ever stuck hidden). */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 680px) {
  [data-nav-links] { display: none; }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-glow { animation: none; }
  .hero-rotator { transition: none; }
  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
