/* ─── Tokens ─────────────────────────────────────────────────────────────── */
:root {
  --lq-clay:        #B83218;
  --lq-clay-deep:   #8E2410;
  --lq-saffron:     #E9A23B;
  --lq-ink:         #141210;
  --lq-paper:       #F4EFE7;
  --lq-stone:       #8A8178;
  --lq-white:       #FFFFFF;
  --lq-line:        #D8D1C4;
  --lq-paper-deep:  #EAE4D9;

  --bg:             var(--lq-paper);
  --bg-alt:         var(--lq-paper-deep);
  --bg-invert:      var(--lq-ink);
  --surface:        var(--lq-white);
  --text:           var(--lq-ink);
  --text-muted:     var(--lq-stone);
  --text-invert:    var(--lq-paper);
  --border:         var(--lq-line);
  --accent:         var(--lq-clay);
  --accent-hover:   var(--lq-clay-deep);
  --focus:          var(--lq-clay);
}

/* ─── Reset ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html                   { scroll-behavior: smooth; }
body {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
img  { display: block; max-width: 100%; }
a    { color: inherit; }
ol, ul { list-style: none; }
address { font-style: normal; }

/* ─── Focus ───────────────────────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* ─── Skip link ───────────────────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 200;
  padding: 8px 16px;
  background: var(--lq-clay);
  color: var(--lq-white);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 3px;
}
.skip-link:focus { top: 8px; }

/* ─── Screen reader only ──────────────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* ─── Container ───────────────────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 48px;
  padding-right: 48px;
}

/* ─── Typography ──────────────────────────────────────────────────────────── */
.eyebrow {
  font-family: 'Azeret Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lq-stone);
  display: block;
}

h1 {
  font-size: 52px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
  color: var(--text);
}
h2 {
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text);
}
h3 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* ─── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: 'Instrument Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  padding: 14px 24px;
  border-radius: 3px;
  border: 1px solid transparent;
  transition: background-color 150ms ease-out, border-color 150ms ease-out, color 150ms ease-out;
  cursor: pointer;
  line-height: 1;
}
.btn-primary {
  background: var(--lq-clay);
  color: var(--lq-white);
  border-color: var(--lq-clay);
}
.btn-primary:hover {
  background: var(--lq-clay-deep);
  border-color: var(--lq-clay-deep);
}
.btn-secondary {
  background: transparent;
  color: var(--lq-ink);
  border-color: var(--lq-ink);
}
.btn-secondary:hover {
  background: var(--lq-ink);
  color: var(--lq-paper);
}

/* ─── Header ──────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 72px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  height: 72px;
  gap: 0;
}

/* Logo */
.lq-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.lq-logo span {
  font: 700 23px/1 'Instrument Sans', sans-serif;
  letter-spacing: -0.035em;
  color: var(--lq-ink);
}

/* Nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
  margin-right: 32px;
}
.site-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--lq-ink);
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: border-color 150ms ease-out;
}
.site-nav a:hover,
.site-nav a.active {
  border-bottom-color: var(--lq-clay);
}
.nav-cta { flex-shrink: 0; }

/* Mobile menu button */
.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  margin-left: auto;
  flex-shrink: 0;
}
.menu-btn span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--lq-ink);
  transition: opacity 150ms ease-out, transform 150ms ease-out;
}

/* ─── Sections ────────────────────────────────────────────────────────────── */
.section  { padding-top: 96px; padding-bottom: 96px; }
.bg-alt   { background: var(--bg-alt); }

/* ─── Hero ────────────────────────────────────────────────────────────────── */
.hero { padding-top: 96px; padding-bottom: 0; }

.hero-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 0;
  align-items: start;
  padding-bottom: 96px;
}

.hero-copy { padding-right: 64px; }
.hero-copy .eyebrow { margin-bottom: 24px; }
.hero-copy h1 {
  font-size: clamp(44px, 5.7vw, 76px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.98;
  margin-bottom: 32px;
}
.hero-intro {
  font-size: 19px;
  line-height: 1.55;
  max-width: 52ch;
  margin-bottom: 40px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-brand {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}
.hero-vr {
  width: 1px;
  background: var(--border);
  align-self: stretch;
  flex-shrink: 0;
}
.hero-brand-inner { flex: 1; padding-top: 4px; }
.hero-mark {
  width: 100%;
  max-width: 160px;
  height: auto;
  margin-bottom: 32px;
}
.hero-index {
  padding: 0;
}
.hero-index li {
  font-family: 'Azeret Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lq-stone);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.hero-index li:first-child { border-top: 1px solid var(--border); }

.hero-footer {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 28px;
  padding-bottom: 28px;
  border-top: 1px solid var(--border);
}
.hero-rule-clay {
  display: block;
  width: 40px;
  height: 1px;
  background: var(--lq-clay);
  flex-shrink: 0;
}
.hero-tag {
  font-family: 'Azeret Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lq-stone);
}

/* ─── Products ────────────────────────────────────────────────────────────── */
.section-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 64px;
}
.section-header-left .eyebrow { margin-bottom: 16px; }
.section-intro {
  font-size: 19px;
  line-height: 1.55;
  padding-top: 56px;
}

.product-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 40px;
}
.product-mark { margin-bottom: 24px; }
.product-label {
  font-family: 'Azeret Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lq-stone);
  margin-bottom: 10px;
}
.product-card h3 { margin-bottom: 14px; }
.product-desc {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 12px;
}
.product-caps {
  font-size: 14px;
  color: var(--lq-stone);
  margin-bottom: 24px;
}
.card-rule {
  border: none;
  border-top: 1px solid var(--border);
  margin-bottom: 24px;
}
.product-link {
  font-family: 'Azeret Mono', monospace;
  font-size: 14px;
  font-weight: 500;
  color: var(--lq-clay);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 150ms ease-out;
}
.product-link:hover { color: var(--lq-clay-deep); }

.product-rows { margin-top: 0; }
.product-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}
.product-row:first-child {
  border-top: 1px solid var(--border);
  margin-top: 24px;
}
.product-row-body {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}
.row-num {
  font-family: 'Azeret Mono', monospace;
  font-size: 15px;
  font-weight: 400;
  color: var(--lq-stone);
  flex-shrink: 0;
  padding-top: 3px;
}
.row-title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.row-desc {
  font-size: 16px;
  color: var(--lq-stone);
  max-width: 56ch;
  line-height: 1.55;
}
.product-row-link {
  font-family: 'Azeret Mono', monospace;
  font-size: 14px;
  font-weight: 500;
  color: var(--lq-clay);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 150ms ease-out;
}
.product-row-link:hover { color: var(--lq-clay-deep); }

/* ─── Services ────────────────────────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 96px;
  align-items: start;
}
.services-left .eyebrow { margin-bottom: 16px; }
.services-left h2      { margin-bottom: 24px; }
.services-left p {
  font-size: 16px;
  color: var(--lq-stone);
  line-height: 1.6;
}

.services-list { padding: 0; }
.services-list li:first-child { border-top: 1px solid var(--border); }
.services-list li             { border-bottom: 1px solid var(--border); }

.service-row {
  display: flex;
  gap: 32px;
  padding: 24px 0;
  align-items: flex-start;
}
.svc-num {
  font-family: 'Azeret Mono', monospace;
  font-size: 14px;
  font-weight: 500;
  color: var(--lq-stone);
  flex-shrink: 0;
  min-width: 28px;
  padding-top: 2px;
}
.service-row strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}
.service-row p {
  font-size: 15px;
  color: var(--lq-stone);
  line-height: 1.55;
  margin: 0;
}

/* ─── Company ─────────────────────────────────────────────────────────────── */
.company-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  align-items: start;
}
.company-left .eyebrow { margin-bottom: 16px; }
.company-right p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 24px;
}
.company-right p:last-child { margin-bottom: 0; }

/* ─── Dark section ────────────────────────────────────────────────────────── */
.dark-section {
  background: var(--bg-invert);
  color: var(--text-invert);
}

/* ─── Contact ─────────────────────────────────────────────────────────────── */
.contact-section { padding-bottom: 80px; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  align-items: start;
}
.eyebrow-muted { color: var(--lq-stone); }

.contact-h2 {
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text-invert);
  line-height: 1.1;
}
.saffron { color: var(--lq-saffron); }

.contact-right > p {
  font-size: 16px;
  color: var(--lq-stone);
  line-height: 1.6;
  margin-bottom: 32px;
}
.contact-right .btn { margin-bottom: 32px; display: inline-block; }

.contact-address {
  font-family: 'Azeret Mono', monospace;
  font-size: 14px;
  color: var(--lq-stone);
  line-height: 1.9;
}

/* ─── Footer ──────────────────────────────────────────────────────────────── */
.footer-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.site-footer { padding: 48px 0; }
.footer-inner {
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}
.footer-logo { height: 40px; width: auto; }
.footer-nav {
  display: flex;
  gap: 32px;
}
.footer-nav a {
  font-size: 14px;
  color: var(--lq-stone);
  text-decoration: none;
  transition: color 150ms ease-out;
}
.footer-nav a:hover { color: var(--text-invert); }
.footer-copy {
  font-family: 'Azeret Mono', monospace;
  font-size: 12px;
  color: var(--lq-stone);
  margin-left: auto;
}

/* ─── Tablet / small desktop (761–1050px) ─────────────────────────────────── */
@media (max-width: 1050px) {
  .container       { padding-left: 32px; padding-right: 32px; }
  .hero-copy       { padding-right: 40px; }
  .hero-grid       { grid-template-columns: 3fr 2fr; }
  .section-header  { gap: 32px; }
  .company-grid    { gap: 48px; }
  .contact-grid    { gap: 48px; }
  .services-grid   { gap: 56px; }
}

/* ─── Mobile (760px and below) ────────────────────────────────────────────── */
@media (max-width: 760px) {
  .container { padding-left: 24px; padding-right: 24px; }
  .section   { padding-top: 56px; padding-bottom: 56px; }

  /* Header */
  .site-nav, .nav-cta { display: none; }
  .menu-btn           { display: flex; }

  .site-nav.is-open {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 8px 24px;
    z-index: 50;
    margin: 0;
  }
  .site-nav.is-open a {
    padding: 16px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--border) !important;
    border-bottom-color: var(--border) !important;
  }
  .site-nav.is-open a:last-child { border-bottom: none !important; }

  /* Hero */
  .hero        { padding-top: 56px; }
  .hero-grid   { grid-template-columns: 1fr; gap: 48px; padding-bottom: 56px; }
  .hero-copy   { padding-right: 0; order: 0; }
  .hero-brand  { order: 1; }
  .hero-vr     { display: none; }
  .hero-brand-inner { padding-top: 0; }
  .hero-mark   { max-width: 96px; margin-bottom: 24px; }

  /* Section headers */
  .section-header { grid-template-columns: 1fr; gap: 16px; margin-bottom: 40px; }
  .section-intro  { padding-top: 0; font-size: 17px; }

  /* Product rows */
  .product-row     { flex-direction: column; align-items: flex-start; gap: 16px; }
  .product-row-body { gap: 20px; }

  /* Services */
  .services-grid { grid-template-columns: 1fr; gap: 40px; }

  /* Company */
  .company-grid { grid-template-columns: 1fr; gap: 32px; }

  /* Contact */
  .contact-section { padding-bottom: 56px; }
  .contact-grid    { grid-template-columns: 1fr; gap: 32px; }

  /* Footer */
  .footer-inner { gap: 24px; }
  .footer-copy  { margin-left: 0; width: 100%; }
}

/* ─── Narrow mobile (620px and below) ────────────────────────────────────── */
@media (max-width: 620px) {
  .product-cards  { grid-template-columns: 1fr; }
  .hero-actions   { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { width: 100%; text-align: center; }
}

/* ─── Reduced motion ──────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn,
  .site-nav a,
  .product-link,
  .product-row-link,
  .footer-nav a,
  .menu-btn span { transition: none; }
}
