/* ============================================================
   QUIMERA — Website UI Kit
   Shared web styles built on colors_and_type.css
   ============================================================ */

@import url('colors_and_type.css');

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg-shell);
  color: var(--fg-1);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  scroll-behavior: smooth;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ============ Layout ============ */
.q-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px;
}

.q-section { padding: 120px 0; position: relative; }
.q-section.tight { padding: 80px 0; }
.q-section.loose { padding: 180px 0; }

/* Homepage rhythm: the Services CTA divider + Perspective header don't need a
   full 120+120 between them — tighten the seam so the page reads continuous. */
#services { padding-bottom: 64px; }
#perspective { padding-top: 80px; }
.q-section.paper { background: var(--bg-paper); color: var(--on-bone-1); }

/* Section eyebrow + headline header — left-aligned editorial stack
   (was a 1fr/2fr grid that floated headlines into the right column,
   leaving a dead void on the left). */
.q-section-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  margin-bottom: 72px;
}
.q-section-header .l { display: flex; flex-direction: column; gap: 12px; }
.q-section-header .num:empty { display: none; }
.q-section-header .num {
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.q-section.paper .q-section-header .num { color: var(--on-bone-3); }
.q-section-header .eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.q-section.paper .q-section-header .eyebrow { color: var(--on-bone-3); }
.q-section-header h2 {
  font-family: var(--font-title);
  font-size: 56px;
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 700;
  max-width: 1000px;
  text-wrap: balance;
}
.q-section-header h2 em { font-style: italic; font-weight: 500; color: inherit; }

/* ============ Header / nav ============ */
.q-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 8, 7, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--rule);
}
.q-header .inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 48px;
  max-width: 1400px; margin: 0 auto;
}
.q-lockup {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-1);
}
.q-lockup img { width: 22px; height: 22px; }
.q-nav { display: flex; gap: 32px; }
.q-nav a {
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-2);
  padding: 6px 0;
  position: relative;
  transition: color var(--t-base) var(--ease-quiet);
}
.q-nav a:hover { color: var(--fg-1); }
.q-nav a.active { color: var(--fg-1); }
.q-nav a.active::before {
  content: ''; position: absolute; left: -10px; top: 50%;
  width: 4px; height: 4px; background: var(--lav-300); border-radius: 50%;
  transform: translateY(-50%);
}
/* Contact — differentiated as the one standing action (gold seal, outlined) */
.q-nav a.is-contact {
  color: var(--seal);
  border: 1px solid color-mix(in srgb, var(--seal) 42%, transparent);
  border-radius: var(--r-pill);
  padding: 6px 16px;
  transition: background var(--t-base) var(--ease-quiet), border-color var(--t-base), color var(--t-base);
}
.q-nav a.is-contact:hover {
  color: var(--ink-950);
  background: var(--seal);
  border-color: var(--seal);
}
.q-nav a.is-contact.active::before { display: none; }
.q-locale {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.q-locale a {
  color: var(--fg-3);
  text-decoration: none;
  transition: color var(--t-base, 0.25s) var(--ease-quiet, ease);
  cursor: pointer;
}
.q-locale a:hover { color: var(--fg-2); }
.q-locale .sep { opacity: 0.4; }
.q-locale .active { color: var(--fg-1); }
.q-locale a.active { color: var(--fg-1); }

/* ============ Buttons ============ */
.q-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  transition: all var(--t-base) var(--ease-quiet);
  cursor: pointer;
  white-space: nowrap;
}
.q-btn.primary {
  background: var(--seal);
  color: var(--ink-950);
}
.q-btn.primary:hover { transform: translateY(-1px); background: var(--seal-bright); }
.q-btn.secondary {
  background: transparent;
  color: var(--fg-1);
  border-color: var(--rule-strong);
}
.q-btn.secondary:hover { border-color: var(--lav-300); color: var(--fg-1); }
.q-btn.ink {
  background: var(--ink-950);
  color: var(--bone-50);
}
.q-btn .arrow {
  display: inline-block;
  font-family: var(--font-mono);
  transition: transform var(--t-base) var(--ease-quiet);
}
.q-btn:hover .arrow { transform: translateX(3px); }

/* ============ Hero foot (lead + CTAs) ============ */
.q-hero-foot {
  margin-top: 44px;
}

/* ============ Contact — "Let's talk." clean close ============ */
.q-contact { padding: 16px 0; }
.q-contact-eyebrow {
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.q-contact-row {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 64px;
  align-items: center;
  margin-top: 64px;
}
.q-contact-h {
  font-family: var(--font-title);
  font-size: clamp(48px, 6.4vw, 80px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 700;
  color: var(--fg-1);
}
.q-contact-lede {
  margin-top: 36px;
  max-width: 46ch;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  font-weight: 400;
  color: var(--fg-2);
}
.q-contact-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
}
.q-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-1);
  text-decoration: none;
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: 14px;
  transition: border-color var(--t-base) var(--ease-quiet), color var(--t-base);
}
.q-contact-link .arrow { transition: transform var(--t-base) var(--ease-quiet); }
.q-contact-link:hover { border-bottom-color: var(--fg-1); }
.q-contact-link:hover .arrow { transform: translateX(5px); }
.q-contact-email {
  font-family: var(--font-body);
  font-size: 16px;
  letter-spacing: 0.01em;
  color: var(--fg-3);
  text-decoration: none;
  transition: color var(--t-base);
}
.q-contact-email:hover { color: var(--fg-1); }

@media (max-width: 820px) {
  .q-contact-row { grid-template-columns: 1fr; gap: 44px; align-items: start; }
}

/* ============ Document-coordinate ribbons ============ */
.q-coord-ribbon {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.q-section.paper .q-coord-ribbon {
  border-color: var(--rule-paper);
  color: var(--on-bone-3);
}
.q-coord-ribbon .left, .q-coord-ribbon .right { display: flex; gap: 20px; }
.q-coord-ribbon .left span:not(:last-child)::after,
.q-coord-ribbon .right span:not(:last-child)::after {
  content: '·'; margin-left: 20px; opacity: 0.5;
}

/* ============ Footer ============ */
.q-footer {
  background: var(--ink-950);
  color: var(--fg-2);
  padding: 80px 0 40px;
  border-top: 1px solid var(--rule);
}
.q-footer .top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 64px;
  margin-bottom: 64px;
}
.q-footer h4 {
  font-family: var(--font-title);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
  font-weight: 600;
  margin-bottom: 18px;
}
.q-footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.q-footer li a {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--fg-1);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-base);
}
.q-footer li a:hover { border-color: var(--lav-300); }
.q-footer .colophon {
  display: flex; justify-content: space-between; align-items: flex-end;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.q-footer .colophon .l { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.q-footer .colophon .l span { white-space: nowrap; }
.q-footer .colophon .l img { width: 18px; height: 18px; }
.q-footer .colophon .r { display: flex; gap: 24px; }

/* ============ Hairline rule ============ */
.q-rule {
  height: 1px; background: var(--rule); width: 100%;
}
.q-section.paper .q-rule { background: var(--rule-paper); }

/* ============ Editorial body type ============ */
.q-prose p {
  font-size: 17px;
  line-height: 1.6;
  max-width: 640px;
}
.q-prose p + p { margin-top: 18px; }

/* ============ Editorial card ============ */
.q-card {
  background: var(--bone-50);
  border: 1px solid var(--rule-paper);
  border-radius: var(--r-md);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all var(--t-base) var(--ease-quiet);
}
.q-card:hover {
  border-color: var(--rule-paper-strong);
  box-shadow: 0 24px 60px -16px rgba(14,13,18,0.18);
}
.q-card .eyebrow {
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-bone-3);
}
.q-card h3 {
  font-family: var(--font-display);
  font-size: 27px;
  line-height: 1.18;
  letter-spacing: -0.01em;
  font-weight: 400;
  color: var(--on-bone-1);
}
.q-card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--on-bone-2);
}

/* On-dark card variant */
.q-card.dark {
  background: var(--ink-900);
  border-color: var(--rule);
  color: var(--fg-1);
}
.q-card.dark .eyebrow { color: var(--fg-3); }
.q-card.dark h3 { color: var(--bone-50); }
.q-card.dark p { color: var(--fg-2); }

/* ============ Tag ============ */
.q-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-title);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border: 1px solid var(--rule);
  border-radius: var(--r-pill);
  color: var(--fg-2);
}
.q-section.paper .q-tag { border-color: var(--rule-paper); color: var(--on-bone-3); }

/* ============ Frosted "Includes" pane ============
   Capabilities are present in the DOM but visually gated:
   the list is blurred behind a glass sheen so visitors see
   density without legible detail. Reveal is by conversation. */
.q-includes-pane {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 6px;
}
.q-includes-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.q-includes-head > span:first-child {
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.q-includes-chip {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-3);
  padding: 4px 10px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-pill);
  white-space: nowrap;
}
.q-includes-glass {
  position: relative;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  background: linear-gradient(180deg, rgba(190, 186, 204, 0.04), rgba(190, 186, 204, 0.015) 60%, transparent);
  padding: 18px 20px;
  overflow: hidden;
  user-select: none;
}
/* Soft glass sheen on top */
.q-includes-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(140% 80% at 0% 0%, rgba(190, 186, 204, 0.10), transparent 55%),
    radial-gradient(140% 80% at 100% 100%, rgba(190, 186, 204, 0.06), transparent 55%);
  pointer-events: none;
}
/* Hairline highlight along the top edge */
.q-includes-glass::after {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rule-strong), transparent);
  pointer-events: none;
}
.q-includes-glass ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  filter: blur(5.5px) saturate(0.85);
  opacity: 0.85;
  pointer-events: none;
}
.q-includes-glass li {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  color: var(--fg-1);
  padding-left: 14px;
  position: relative;
}
.q-includes-glass li .dash {
  position: absolute;
  left: 0;
  color: var(--fg-3);
}
.q-includes-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-2);
  padding: 6px 0;
  border-bottom: 1px solid var(--rule-strong);
  transition: color var(--t-base) var(--ease-quiet), border-color var(--t-base);
}
.q-includes-cta:hover {
  color: var(--bone-50);
  border-color: var(--lav-300);
}
.q-includes-cta .arrow {
  font-family: var(--font-mono);
  transition: transform var(--t-base) var(--ease-quiet);
}
.q-includes-cta:hover .arrow { transform: translateX(3px); }

/* Paper-section tone overrides */
.q-section.paper .q-includes-head > span:first-child { color: var(--on-bone-3); }
.q-section.paper .q-includes-glass {
  border-color: var(--rule-paper);
  background: linear-gradient(180deg, rgba(14, 13, 18, 0.04), rgba(14, 13, 18, 0.015) 60%, transparent);
}
.q-section.paper .q-includes-glass li { color: var(--on-bone-1); }
.q-section.paper .q-includes-glass li .dash { color: var(--on-bone-3); }
.q-section.paper .q-includes-cta { border-bottom-color: var(--rule-paper-strong); }
.q-section.paper .q-includes-cta:hover { color: var(--on-bone-1); }
