/* ============================================================
   QUIMERA — Dedicated page components
   Services / Work / Perspective landing pages. Built on the same
   tokens + section system as the main page.
   ============================================================ */

/* ---------- page hero ---------- */
.q-page-hero {
  padding: 168px 0 88px;
  position: relative;
  border-bottom: 1px solid var(--rule);
}
.q-page-hero .eyebrow {
  font-family: var(--font-body);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 28px;
}
.q-page-hero h1 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--fg-1);
  max-width: 16ch;
  text-wrap: balance;
}
.q-page-hero .lede {
  margin-top: 32px;
  max-width: 620px;
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.55;
  color: var(--fg-2);
}
.q-page-hero .meta {
  margin-top: 44px;
  display: flex; gap: 28px; flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--fg-3);
}
.q-page-hero .meta span { white-space: nowrap; }

/* ---------- expanded service layer ---------- */
.q-layer {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
  padding: 72px 0;
  border-top: 1px solid var(--rule);
  align-items: start;
}
.q-layer:last-of-type { border-bottom: 1px solid var(--rule); }
.q-layer .rail { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 16px; }
.q-layer .rail .n {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.2em; color: var(--fg-3);
}
.q-layer .rail .verb {
  font-family: var(--font-body); font-size: 15px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg-2); line-height: 1;
}
.q-layer .rail .tagline {
  font-family: var(--font-body); font-size: 14px; line-height: 1.5; color: var(--fg-2); max-width: 220px;
}
.q-layer .body h2 {
  font-family: var(--font-display); font-size: 34px; line-height: 1.12;
  letter-spacing: -0.01em; font-weight: 400; color: var(--fg-1); margin-bottom: 22px;
}
.q-layer .body p { font-family: var(--font-body); font-size: 17px; line-height: 1.62; color: var(--fg-2); max-width: 640px; text-align: justify; -webkit-hyphens: auto; hyphens: auto; }
.q-layer .body p + p { margin-top: 16px; }
.q-layer .diff {
  margin-top: 26px;
  text-align: justify; -webkit-hyphens: auto; hyphens: auto;
  font-family: var(--font-body); font-size: 15px; line-height: 1.55; color: var(--fg-1);
  border-left: 1px solid var(--lav-300); padding-left: 18px; max-width: 600px;
}

/* ---------- process steps ---------- */
.q-process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
}
.q-step {
  display: flex; flex-direction: column; gap: 14px;
  padding-top: 22px; border-top: 1px solid var(--rule-strong);
}
.q-step .n { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.2em; color: var(--fg-3); }
.q-step h3 { font-family: var(--font-title); font-size: 19px; line-height: 1.2; letter-spacing: -0.01em; font-weight: 600; color: var(--fg-1); }
.q-step p { font-family: var(--font-body); font-size: 14px; line-height: 1.55; color: var(--fg-2); }

/* Paper-section tone — the step tokens default to dark-surface greys, which
   wash out on bone. Re-map to the on-bone scale for legible contrast. */
.q-section.paper .q-step { border-top-color: var(--rule-paper-strong); }
.q-section.paper .q-step .n { color: var(--on-bone-3); }
.q-section.paper .q-step h3 { color: var(--on-bone-1); }
.q-section.paper .q-step p { color: var(--on-bone-2); font-size: 15px; }

/* Frosted steps — the same translucent bone panel the Manifesto cards use, so
   each step reads as glass over the hourglass watermark. Bleeds to the cell
   edges (margin -20px) so text still aligns; a single rule tops the grid. */
.q-section.paper .q-process { border-top: 1px solid var(--rule-paper-strong); padding-top: 56px; }
.q-section.paper .q-step.frost {
  padding: 20px;
  margin: -20px;
  border: none;
  border-radius: 4px;
  background: rgba(244, 241, 234, 0.22);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  box-shadow: none;
}

/* ---------- case study block ---------- */
.q-case {
  padding: 64px 0;
  border-top: 1px solid var(--rule);
}
.q-case:last-of-type { border-bottom: 1px solid var(--rule); }
.q-case .index {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.2em; color: var(--fg-3); margin-bottom: 18px;
}
.q-case h2 {
  font-family: var(--font-display); font-size: clamp(30px, 3.6vw, 42px); line-height: 1.1;
  letter-spacing: -0.015em; font-weight: 300; color: var(--fg-1); max-width: 20ch;
}
.q-case .tags { margin-top: 18px; display: flex; gap: 8px; flex-wrap: wrap; }
.q-case-grid {
  margin-top: 40px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
}
.q-case-col h4 {
  font-family: var(--font-title); font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 14px;
}
.q-case-col p { font-family: var(--font-body); font-size: 15px; line-height: 1.62; color: var(--fg-2); }

/* ---------- perspective: featured + index ---------- */
.q-featured {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center;
  padding: 8px 0 12px;
}
.q-featured .read {
  border: 1px solid var(--rule); border-radius: var(--r-md);
  background: var(--ink-900);
  padding: 40px;
}
.q-featured .read .kicker {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--fg-3); margin-bottom: 18px;
}
.q-featured .read h2 {
  font-family: var(--font-display); font-size: clamp(28px, 3vw, 38px); line-height: 1.14;
  letter-spacing: -0.01em; font-weight: 400; color: var(--bone-50); margin-bottom: 22px;
}
.q-featured .read p { font-family: var(--font-body); font-size: 16px; line-height: 1.66; color: var(--fg-2); }
.q-featured .read p + p { margin-top: 16px; }
.q-featured .read .byline {
  margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-3);
}
.q-featured .frame {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.2vw, 52px); line-height: 1.08; letter-spacing: -0.015em;
  font-weight: 300; color: var(--fg-1);
}
.q-featured .frame em { font-style: italic; font-weight: 500; color: inherit; }
.q-featured .frame .note {
  display: block; margin-top: 24px; font-family: var(--font-body); font-size: 16px;
  font-weight: 400; line-height: 1.6; letter-spacing: 0; color: var(--fg-2); max-width: 380px;
}

.q-theme-head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding-bottom: 18px; margin-bottom: 4px; border-bottom: 1px solid var(--rule-strong);
}
.q-theme-head .t {
  font-family: var(--font-title); font-size: 13px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-bone-3);
}
.q-theme-head .c { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; color: var(--fg-3); }

.q-article-row {
  display: grid; grid-template-columns: 80px 1fr auto; gap: 32px; align-items: baseline;
  padding: 26px 0; border-bottom: 1px solid var(--rule);
  transition: padding-left var(--t-base) var(--ease-quiet), background var(--t-base);
}
.q-article-row:hover { padding-left: 12px; background: rgba(190,186,204,0.03); }
.q-article-row .date { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; color: var(--fg-3); }
.q-article-row .title {
  font-family: var(--font-display); font-size: 25px; line-height: 1.22; letter-spacing: -0.01em;
  font-weight: 400; color: var(--fg-1); transition: color var(--t-base);
}
.q-article-row:hover .title { color: var(--seal-deep); }
.q-article-row .read { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-3); white-space: nowrap; }

/* ---------- who we work with — frosted, centered, standalone moment ---------- */
.q-who { position: relative; overflow: hidden; padding-top: 104px; padding-bottom: 104px; }
.q-who-aurora {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(58% 64% at 50% -6%, rgba(190, 186, 204, 0.12), transparent 60%),
    radial-gradient(40% 50% at 50% 108%, rgba(190, 186, 204, 0.06), transparent 62%);
}
.q-who > .q-container { position: relative; z-index: 1; }

.q-who-head { text-align: center; margin-bottom: 44px; }
.q-who-eyebrow {
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lav-300);
}

.q-who-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}
.q-frost-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  padding: 44px 32px;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  background: linear-gradient(180deg, rgba(190, 186, 204, 0.06), rgba(190, 186, 204, 0.02) 60%, transparent);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  backdrop-filter: blur(10px) saturate(140%);
  overflow: hidden;
}
/* lavender glass sheen */
.q-frost-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(130% 80% at 50% 0%, rgba(190, 186, 204, 0.10), transparent 58%),
    radial-gradient(120% 80% at 50% 100%, rgba(190, 186, 204, 0.05), transparent 58%);
  pointer-events: none;
}
/* hairline highlight along the top edge */
.q-frost-card::after {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--lav-300), transparent);
  opacity: 0.4;
  pointer-events: none;
}
.q-frost-card h3 {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 2.3em;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-weight: 600;
  color: var(--fg-1);
}
.q-frost-card p {
  position: relative;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-2);
  max-width: 26ch;
}

.q-who-calibrate {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 64px;
  text-align: center;
}
.q-who-calibrate .div {
  width: 40px;
  height: 1px;
  background: var(--lav-300);
  opacity: 0.4;
}
.q-who-calibrate .words {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.005em;
  font-weight: 400;
  color: var(--fg-1);
}

/* ---------- shared closing CTA band on pages ---------- */
.q-page-cta {
  padding: 96px 0;
  border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap;
}
.q-page-cta .t {
  font-family: var(--font-display); font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1;
  letter-spacing: -0.015em; font-weight: 300; color: var(--fg-1); max-width: 18ch;
}
.q-page-cta .t em { font-style: italic; font-weight: 500; color: inherit; }

/* ============================================================
   PAGE BREAKPOINTS
   ============================================================ */
@media (max-width: 1024px) {
  .q-process { grid-template-columns: repeat(2, 1fr); gap: 28px 36px; }
  .q-featured { grid-template-columns: 1fr; gap: 36px; }
  .q-who-grid { max-width: none; gap: 16px; }
}
@media (max-width: 900px) {
  .q-page-hero { padding: 132px 0 64px; }
  .q-layer { grid-template-columns: 1fr; gap: 24px; padding: 48px 0; }
  .q-layer .rail { position: static; flex-direction: row; align-items: baseline; gap: 18px; }
  .q-layer .rail .verb { font-size: 30px; }
  .q-layer .rail .tagline { display: none; }
  .q-case-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 640px) {
  .q-process { grid-template-columns: 1fr; }
  .q-who-grid { grid-template-columns: 1fr; max-width: 380px; }
  .q-article-row { grid-template-columns: 1fr; gap: 6px; }
  .q-article-row .read { display: none; }
  .q-featured .read { padding: 28px; }
}
