/* BOMBAY BIOWORKS — DESIGN SYSTEM */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Instrument+Sans:ital,wght@0,400;0,500;0,600;1,400&display=swap');

:root {
  --paper:     #F4F3EE;
  --paper-warm:#EDEAE2;
  --ink:       #0D0D0B;
  --ink-2:     #5C5C52;
  --ink-3:     #AEACA0;
  --carbon:    #0A0A08;
  --amber:     #B87010;
  --amber-lt:  #F2E4C4;
  --rule:      #DCDAD0;
  --rule-dk:   rgba(255,255,255,0.06);
  --white:     #FAFAF8;
  --green:     #243D28;

  --nav-h:  60px;
  --max:    1360px;
  --pad:    80px;
  --pad-sm: 24px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--rule); }

/* ── NAV ── */
nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad);
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
nav.on-light {
  background: rgba(244,243,238,0.97);
  border-color: var(--rule);
}
nav.on-dark {
  background: transparent;
}

.nav-logo {
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}
.nav-logo .dot { color: var(--amber); }
nav.on-dark .nav-logo { color: var(--white); }
nav.on-dark .dot { color: var(--amber); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--ink); }
nav.on-dark .nav-links a { color: rgba(250,250,248,0.45); }
nav.on-dark .nav-links a:hover,
nav.on-dark .nav-links a.active { color: var(--white); }

/* ── WRAP ── */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ── TYPE ── */
.f-display {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  line-height: 0.93;
  letter-spacing: -0.04em;
}
.f-head {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.f-head-italic {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* ── LABELS ── */
.label {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: block;
}
.label-amber { color: var(--amber); }

/* ── TEXT LINK ── */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 4px;
  transition: border-color 0.25s, color 0.25s, gap 0.25s;
}
.text-link:hover { border-color: var(--amber); color: var(--amber); gap: 14px; }

/* ── RULE ── */
hr {
  border: none;
  height: 1px;
  background: var(--rule);
}

/* ── SHARED: INTERIOR LINKS GRID ── */
.interior-section {
  padding: 0;
  border-bottom: 1px solid var(--rule);
}
.interior-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-left: 1px solid var(--rule);
}
.interior-item {
  padding: 44px 40px;
  border-right: 1px solid var(--rule);
  text-decoration: none;
  display: block;
  transition: background 0.2s;
}
.interior-item:hover { background: var(--paper-warm); }
.interior-item-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.interior-item-arrow {
  color: var(--ink-3);
  transition: transform 0.25s, color 0.25s;
}
.interior-item:hover .interior-item-arrow { transform: translateX(5px); color: var(--amber); }
.interior-item-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: clamp(17px, 1.8vw, 24px);
  color: var(--ink);
  line-height: 1.35;
}

/* ── FOOTER ── */
footer {
  background: var(--carbon);
  padding: 56px var(--pad) 44px;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--rule-dk);
}
.footer-brand {
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(250,250,248,0.4);
}
.footer-brand .dot { color: var(--amber); }
.footer-tagline {
  font-family: 'Instrument Sans', sans-serif;
  font-style: italic;
  font-weight: 400;
  font-size: 15px;
  color: rgba(250,250,248,0.18);
  margin-top: 10px;
}
.footer-nav {
  display: flex;
  gap: 28px;
  list-style: none;
}
.footer-nav a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(250,250,248,0.25);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-nav a:hover { color: rgba(250,250,248,0.6); }
.footer-copy {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(250,250,248,0.14);
  display: flex;
  justify-content: space-between;
}

/* ── MOBILE ── */
@media (max-width: 900px) {
  :root { --pad: var(--pad-sm); }
  nav { padding: 0 var(--pad-sm); }
  .nav-links { gap: 20px; }
  footer { padding: 44px var(--pad-sm) 32px; }
  .footer-row { flex-direction: column; gap: 28px; align-items: flex-start; }
  .footer-nav { flex-wrap: wrap; gap: 16px; }
  .footer-copy { flex-direction: column; gap: 8px; }
  .interior-grid { grid-template-columns: 1fr; border-left: none; }
  .interior-item { border-right: none; border-bottom: 1px solid var(--rule); }
}
@media (max-width: 600px) {
  .nav-links { display: none; }
}
