/* ==========================================================================
   Hingst Research Consultancy
   Editorial consulting system — quiet chrome, content-led, restrained motion
   ========================================================================== */

:root {
  /* Brand color/type tokens live in assets/day3.css (report system).
     Structural scale only below. */
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;
  --s8: 64px;
  --s9: 96px;
  --s10: 128px;

  --radius: 2px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  /* --maxw: report 1240px, owned by assets/day3.css */
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ff-text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.14;
  margin: 0 0 var(--s4);
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.55rem, 2.9vw, 2.3rem); }
h3 { font-size: clamp(1.15rem, 1.7vw, 1.4rem); }
h4 { font-size: 1.02rem; font-family: var(--ff-text); font-weight: 600; letter-spacing: 0; }

p { margin: 0 0 var(--s4); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 1px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 14px 20px;
  z-index: 200;
  font-weight: 600;
}
.skip:focus { left: 0; }

/* ---------------------------------------------------------------- layout */

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--s5); }
.wrap-narrow { max-width: 760px; }

.section { padding: var(--s9) 0; }
.section-sm { padding: var(--s8) 0; }
.section-alt { background: var(--surface); }
.section-ink { background: var(--ink); color: #e8e6df; }
.section-ink h2, .section-ink h3 { color: #fff; }
.section-ink a { color: #fff; }

.grid { display: grid; gap: var(--s5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s5);
  min-height: 68px;
}

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  font-size: 0.93rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: background-color 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease);
  cursor: pointer;
}

.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--accent); color: #fff; }

.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--ink); color: #fff; }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); background: var(--surface); color: var(--ink); }

.section-ink .btn-primary { background: #fff; color: var(--ink); }
.section-ink .btn-primary:hover { background: var(--brass); color: #fff; }

/* ---------------------------------------------------------------- hero */

.hero { padding: var(--s9) 0 var(--s8); border-bottom: 1px solid var(--line); }

.eyebrow {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: var(--ink-3);
  margin-bottom: var(--s4);
}

.hero h1 { max-width: 17ch; margin-bottom: var(--s5); }

.hero-lede {
  font-size: clamp(1.06rem, 1.5vw, 1.24rem);
  color: var(--ink-2);
  max-width: 56ch;
  margin-bottom: var(--s6);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-bottom: var(--s7); }

/* ---------------------------------------------------------------- meta */

.meta-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.meta-cell { background: var(--paper); padding: var(--s5) var(--s4); }

.meta-value {
  font-family: var(--ff-display);
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.meta-label {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  font-weight: 600;
}
.meta-note { font-size: 0.78rem; color: var(--ink-3); margin-top: 6px; }

/* ---------------------------------------------------------------- sections */

.section-head { max-width: 62ch; margin-bottom: var(--s7); }
.section-head h2 { margin-bottom: var(--s3); }
.section-head p { color: var(--ink-2); font-size: 1.04rem; }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------------------------------------------------------------- cards */

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s5);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.card h3 { margin-bottom: var(--s2); }
.card p { font-size: 0.95rem; color: var(--ink-2); }

.card-link {
  margin-top: auto;
  padding-top: var(--s4);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.card-link::after { content: " \2192"; }
.card:hover .card-link { text-decoration: underline; }

.card-index {
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  color: var(--ink-3);
  letter-spacing: 0.08em;
  margin-bottom: var(--s3);
  display: block;
}

.section-alt .card { background: var(--paper); }

/* ---------------------------------------------------------------- service list */

.service-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: var(--s5);
  padding: var(--s6) 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.service-row:last-child { border-bottom: 1px solid var(--line); }
.service-num {
  font-family: var(--ff-mono);
  font-size: 0.78rem;
  color: var(--ink-3);
  padding-top: 4px;
}
.service-body h3 { margin-bottom: var(--s2); }
.service-body > p { color: var(--ink-2); max-width: 62ch; }

.sublist {
  list-style: none;
  margin: var(--s4) 0 0;
  padding: 0;
  display: grid;
  gap: var(--s2);
}
.sublist li {
  font-size: 0.93rem;
  color: var(--ink-2);
  padding-left: 18px;
  position: relative;
}
.sublist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.66em;
  width: 7px;
  height: 1px;
  background: var(--line-2);
}

/* ---------------------------------------------------------------- steps */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }

.step {
  padding: var(--s6) var(--s5) var(--s6) 0;
  border-right: 1px solid var(--line);
  padding-right: var(--s5);
}
.step:last-child { border-right: 0; }

.step-num {
  font-family: var(--ff-mono);
  font-size: 0.75rem;
  color: var(--brass);
  letter-spacing: 0.1em;
  margin-bottom: var(--s3);
  display: block;
}
.step h3 { margin-bottom: var(--s2); }
.step p { font-size: 0.95rem; color: var(--ink-2); }

/* ---------------------------------------------------------------- proof / case notes */

.case-note {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s6);
  background: var(--paper);
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: var(--s6);
}
.case-note + .case-note { margin-top: var(--s5); }

.case-scope { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-3); font-weight: 700; margin-bottom: var(--s3); }
.case-note h3 { margin-bottom: var(--s3); }
.case-note p { color: var(--ink-2); font-size: 0.97rem; }

.case-facts { border-left: 1px solid var(--line); padding-left: var(--s5); }
.fact { padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
.fact:last-child { border-bottom: 0; }
.fact dt {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  font-weight: 700;
  margin-bottom: 4px;
}
.fact dd { margin: 0; font-size: 0.95rem; color: var(--ink); font-weight: 500; }

.placeholder {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ff-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--warn);
  background: #fbf1e6;
  border: 1px dashed #dcb98f;
  padding: 3px 8px;
  border-radius: 2px;
}

.callout {
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--brass);
  background: var(--surface);
  padding: var(--s5);
  border-radius: var(--radius);
  font-size: 0.93rem;
  color: var(--ink-2);
}
.callout strong { color: var(--ink); }

/* ---------------------------------------------------------------- segments */

.seg {
  display: flex;
  align-items: baseline;
  gap: var(--s3);
  padding: var(--s4) 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  min-height: 44px;
}
.seg:hover { color: var(--accent); }
.seg-name { font-family: var(--ff-display); font-size: 1.12rem; }
.seg-arrow { margin-left: auto; color: var(--ink-3); transition: transform 220ms var(--ease); }
.seg:hover .seg-arrow { transform: translateX(4px); color: var(--accent); }

/* ---------------------------------------------------------------- values */

.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s5); }
.value h4 { margin-bottom: var(--s2); }
.value p { font-size: 0.92rem; color: var(--ink-2); }
.value-num {
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  color: var(--brass);
  letter-spacing: 0.1em;
  margin-bottom: var(--s3);
  display: block;
}

/* ---------------------------------------------------------------- CTA band */

.cta-band {
  background: var(--ink);
  color: #e8e6df;
  padding: var(--s9) 0;
}
.cta-band h2 { color: #fff; max-width: 20ch; margin-bottom: var(--s4); }
.cta-band p { color: #a9b3bd; max-width: 52ch; margin-bottom: var(--s6); }

/* ---------------------------------------------------------------- footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: var(--s8) 0 var(--s6);
  background: var(--paper);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--s6);
  padding-bottom: var(--s6);
}

.footer-col h4 {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  margin-bottom: var(--s3);
  font-weight: 700;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.footer-col a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--ink-2);
  text-decoration: none;
}
.footer-col a:hover { color: var(--accent); text-decoration: underline; }

.footer-brand p { color: var(--ink-3); font-size: 0.88rem; max-width: 34ch; }

.footer-legal {
  border-top: 1px solid var(--line);
  padding-top: var(--s4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s4);
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--ink-3);
}
.footer-legal ul { display: flex; flex-wrap: wrap; gap: var(--s4); list-style: none; margin: 0; padding: 0; }

/* ---------------------------------------------------------------- article */

.article {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s6);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.article-kicker {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--brass);
  font-weight: 700;
  margin-bottom: var(--s3);
}
.article h3 { margin-bottom: var(--s3); }
.article p { color: var(--ink-2); font-size: 0.95rem; }
.article-meta {
  margin-top: auto;
  padding-top: var(--s4);
  font-size: 0.8rem;
  color: var(--ink-3);
  border-top: 1px solid var(--line);
}

.prose { max-width: 68ch; }
.prose h2 { margin-top: var(--s7); }
.prose h3 { margin-top: var(--s5); }
.prose ul, .prose ol { padding-left: 20px; margin: 0 0 var(--s4); }
.prose li { margin-bottom: var(--s2); }
.prose blockquote {
  margin: var(--s5) 0;
  padding-left: var(--s5);
  border-left: 2px solid var(--brass);
  font-family: var(--ff-display);
  font-size: 1.16rem;
  color: var(--ink-2);
  font-style: italic;
}

/* ---------------------------------------------------------------- forms */

.form { display: grid; gap: var(--s4); max-width: 620px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.84rem; font-weight: 600; color: var(--ink-2); }
.field .hint { font-size: 0.79rem; color: var(--ink-3); }

input, select, textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}
input:hover, select:hover, textarea:hover { border-color: var(--ink-3); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
textarea { min-height: 132px; resize: vertical; }

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%235a6875' stroke-width='1.5' d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

.form-note { font-size: 0.8rem; color: var(--ink-3); }

.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--s8); align-items: start; }

.contact-block { margin-bottom: var(--s5); }
.contact-block dt {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--ink-3);
  font-weight: 700;
  margin-bottom: 6px;
}
.contact-block dd { margin: 0; font-size: 1rem; }
.contact-block dd a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); }
.contact-block dd a:hover { text-decoration-color: var(--accent); }

/* ---------------------------------------------------------------- misc */

.tag-row { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }
.tag {
  font-size: 0.76rem;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--ink-2);
  background: var(--paper);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}
.tag:hover { border-color: var(--ink); color: var(--ink); }

.breadcrumb {
  font-size: 0.78rem;
  color: var(--ink-3);
  padding: var(--s5) 0 0;
}
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--line-2); }
.breadcrumb a { color: var(--ink-3); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); text-decoration: underline; }

.pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s4); margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid var(--line); }
.pager a { font-weight: 600; text-decoration: none; font-size: 0.93rem; }
.pager a:hover { text-decoration: underline; }

.notice {
  background: var(--accent-soft);
  border: 1px solid #c3d8d0;
  border-left: 3px solid var(--accent);
  padding: var(--s4) var(--s5);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--ink-2);
}
.notice strong { color: var(--ink); }

/* ---------------------------------------------------------------- reveal */

.reveal { opacity: 0; transform: translateY(14px); }
.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 620ms var(--ease), transform 620ms var(--ease);
}

@media (max-width: 900px) {
  .meta-strip, .grid-4, .values { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--line); padding-right: 0; }
  .step:last-child { border-bottom: 0; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .case-note { grid-template-columns: 1fr; gap: var(--s5); }
  .case-facts { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: var(--s4); }
  .contact-grid { grid-template-columns: 1fr; gap: var(--s6); }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .section { padding: var(--s8) 0; }
  .hero { padding: var(--s7) 0 var(--s6); }
  .meta-strip, .grid-2, .grid-4, .values, .footer-grid { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 1fr; gap: var(--s2); }
  .hero-actions .btn { width: 100%; }
}

@media print {
  header.gn, .gn-m-menu { display: none; }
  body { background: #fff; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media (prefers-contrast: more) {
  :root { --line: #8a8578; --line-2: #5a6875; --ink-3: #3a4550; }
}