@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=IBM+Plex+Mono:wght@500;600&family=Source+Sans+3:wght@400;500;600;700;800&display=swap");

:root {
  --paper: #f3f4f1;
  --paper-strong: #fcfcfa;
  --paper-warm: #f7f1e9;
  --ink: #111820;
  --muted: #5b6572;
  --line: #d8dde2;
  --blue: #1767c2;
  --blue-dark: #173f6a;
  --copper: #b4743b;
  --green: #5f7a66;
  --soft-blue: #e9f1fb;
  --soft-copper: #efe6dd;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(18, 27, 36, 0.16);
  --radius: 8px;
  --max: 1180px;
  --serif: "Cormorant Garamond", Garamond, Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Avenir Next", "Helvetica Neue", Helvetica, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(17, 24, 32, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 24, 32, 0.02) 1px, transparent 1px),
    var(--paper);
  background-size: 64px 64px;
  font-family: var(--sans);
  line-height: 1.55;
  letter-spacing: 0;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  clip-path: none;
  white-space: normal;
  left: 1rem;
  top: 1rem;
  z-index: 50;
  background: var(--ink);
  color: var(--white);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  color: var(--white);
  transition: background 420ms ease-in-out, color 420ms ease-in-out, box-shadow 420ms ease-in-out;
}

.site-header[data-elevated="true"] {
  background: rgba(246, 242, 234, 0.94);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(17, 24, 32, 0.08);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 0.78rem;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: var(--serif);
  font-size: 1.05rem;
}

.brand small {
  color: currentColor;
  opacity: 0.74;
  font-size: 0.75rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 2vw, 1.5rem);
  font-size: 0.92rem;
}

.site-nav a {
  text-decoration: none;
  opacity: 0.86;
  transition: color 360ms ease-in-out, opacity 360ms ease-in-out;
}

.site-nav a:hover,
.site-nav a.is-active {
  opacity: 1;
  color: var(--copper);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: inherit;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 82svh;
  display: grid;
  align-items: center;
  padding: 7.5rem clamp(1rem, 5vw, 5rem) 3.2rem;
  background:
    linear-gradient(120deg, rgba(11, 18, 26, 0.98) 0%, rgba(15, 31, 48, 0.98) 52%, rgba(31, 40, 44, 0.98) 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 96px);
  color: var(--white);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 56px 56px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 18px;
  background: linear-gradient(90deg, var(--blue), var(--copper), var(--green));
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.hero-content {
  width: min(760px, 100%);
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--copper);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f0b674;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 700;
}

h1 {
  max-width: 820px;
  font-size: clamp(2.9rem, 5.2vw, 5.25rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 4.2rem);
}

h3 {
  font-size: 1.18rem;
}

.hero-lede {
  max-width: 650px;
  margin: 1.25rem 0 0;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  color: rgba(255, 255, 255, 0.82);
}

.hero-note {
  max-width: 620px;
  margin: 1rem 0 0;
  padding-left: 1rem;
  border-left: 3px solid var(--copper);
  color: rgba(255, 255, 255, 0.76);
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.hero-logic {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  padding: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0;
  background: rgba(252, 252, 250, 0.075);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
}

.logic-card {
  position: relative;
  min-height: 150px;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.08);
}

.logic-card.main {
  background: rgba(23, 103, 194, 0.24);
}

.logic-card.accent {
  background: rgba(180, 116, 59, 0.24);
}

.logic-card span {
  display: inline-flex;
  margin-bottom: 0.65rem;
  color: #f0b674;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 800;
}

.logic-card strong {
  display: block;
  font-size: 1.05rem;
}

.logic-card p {
  margin: 0.45rem 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.logic-rail {
  display: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.82rem 1.2rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
  transition: transform 420ms ease-in-out, background 420ms ease-in-out, color 420ms ease-in-out, border-color 420ms ease-in-out, box-shadow 420ms ease-in-out;
}

.button::after {
  content: "→";
  margin-left: 0.55rem;
  transition: transform 420ms ease-in-out;
}

.button:hover {
  transform: translateY(-2px);
}

.button:hover::after {
  transform: translateX(4px);
}

.button.primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 0 0 rgba(23, 103, 194, 0);
}

.button.primary:hover {
  background: #0f579f;
  box-shadow: 0 16px 42px rgba(23, 103, 194, 0.24);
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.contact-form .button {
  border: 0;
}

.hero-metrics {
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(820px, 100%);
  margin: 2rem 0 0;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-metrics div {
  min-height: 92px;
  padding: 1rem;
  background: rgba(11, 20, 31, 0.58);
}

.hero-metrics dt {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
}

.hero-metrics dd {
  margin: 0.3rem 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--ink);
  color: var(--white);
}

.strip-item {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.5rem;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  text-align: center;
  font-weight: 700;
}

.section {
  padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 5vw, 5rem);
  scroll-margin-top: 92px;
}

.split-section,
.case-layout,
.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr);
  gap: clamp(2rem, 5vw, 4rem);
  max-width: var(--max);
  margin: 0 auto;
}

.section-copy p,
.section-heading p,
.contact-copy p,
.pricing-note {
  color: var(--muted);
  font-size: 1.02rem;
}

.drawer-note {
  display: grid;
  gap: 0.5rem;
  margin-top: 1.7rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(180, 116, 59, 0.35);
  border-left: 4px solid var(--copper);
  border-radius: var(--radius);
  background: rgba(252, 252, 250, 0.78);
}

.drawer-note strong {
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.2;
}

.drawer-note span {
  color: var(--muted);
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.service-card,
.case-card,
.credential-card,
.track-card,
.evidence-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-strong);
  box-shadow: 0 1px 0 rgba(17, 24, 32, 0.04);
}

.service-card {
  min-height: 210px;
  padding: 1.35rem;
}

.service-index {
  display: inline-flex;
  margin-bottom: 1.4rem;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 1.65rem;
  font-weight: 700;
}

.service-card p,
.case-card p,
.track-card p,
.track-card li,
.credential-card dd,
.evidence-card figcaption {
  color: var(--muted);
}

.method-band {
  background: #e8ece7;
}

.section-heading {
  max-width: var(--max);
  margin: 0 auto 2.5rem;
}

.section-heading.compact {
  max-width: 880px;
  margin-bottom: 2rem;
}

.argument-map {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 28px 1fr 28px 1fr 28px 1fr;
  align-items: stretch;
}

.map-step {
  min-height: 190px;
  padding: 1.25rem;
  border: 1px solid #bac5ca;
  background: var(--white);
  border-radius: var(--radius);
}

.map-step strong {
  display: block;
  font-size: 1.05rem;
}

.map-step span {
  display: block;
  margin-top: 0.75rem;
  color: var(--muted);
}

.map-connector {
  position: relative;
}

.map-connector::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 2px;
  background: var(--copper);
  transform: translate(-50%, -50%);
}

.method-note {
  display: grid;
  grid-template-columns: minmax(220px, 0.45fr) minmax(0, 1fr);
  gap: 1rem;
  max-width: var(--max);
  margin: 1rem auto 0;
  padding: 1rem 1.25rem;
  border: 1px solid #bac5ca;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.method-note strong {
  color: var(--blue-dark);
}

.method-note span {
  color: var(--muted);
}

.method-closing {
  max-width: 880px;
  margin: 1.2rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(32, 48, 62, 0.16);
  color: var(--muted);
  font-family: var(--serif);
  font-size: clamp(1.12rem, 2vw, 1.42rem);
  line-height: 1.35;
}

.case-section {
  background: var(--paper-strong);
}

.case-showcase {
  display: grid;
  gap: 1.25rem;
  max-width: var(--max);
  margin: 0 auto;
}

.case-study {
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--white);
  box-shadow: 0 12px 42px rgba(18, 27, 36, 0.08);
}

.case-study-head {
  display: grid;
  gap: 0.65rem;
  max-width: 920px;
}

.case-study-head span {
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.case-study-head h3 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.45rem);
}

.case-study-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.case-link {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(23, 103, 194, 0.24);
  border-radius: var(--radius);
  background: #eef5ff;
  color: var(--blue-dark);
  font-weight: 800;
  text-decoration: none;
  transition: background 420ms ease-in-out, border-color 420ms ease-in-out, color 420ms ease-in-out, transform 420ms ease-in-out;
}

.case-link:hover {
  border-color: rgba(23, 103, 194, 0.48);
  background: #e2efff;
  transform: translateX(3px);
}

.case-link.inline-link {
  margin: 0 0 1rem;
}

.logic-matrix {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 1.3rem;
  border: 1px solid #c8d1da;
  border-radius: 0;
  overflow: hidden;
  background: #c8d1da;
}

.logic-matrix div {
  display: grid;
  align-content: start;
  gap: 0.55rem;
  min-height: 190px;
  padding: 1.1rem;
  background: #f4f6f8;
}

.logic-matrix div:last-child {
  background: #fcfcfa;
}

.logic-matrix strong {
  color: var(--blue-dark);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.logic-matrix p {
  margin: 0;
  color: var(--ink);
}

.case-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.case-detail-grid section {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--paper-strong);
}

.case-detail-grid h4 {
  margin: 0;
  color: var(--blue-dark);
  font-size: 0.95rem;
}

.case-detail-grid p {
  margin: 0.65rem 0 0;
  color: var(--muted);
}

.portfolio-note {
  display: grid;
  grid-template-columns: minmax(280px, 0.45fr) minmax(0, 1fr);
  gap: 1.25rem;
  max-width: var(--max);
  margin: 1.25rem auto 0;
  align-items: start;
}

.portfolio-card {
  display: grid;
  gap: 0.85rem;
  min-height: 300px;
  align-content: center;
  background:
    linear-gradient(135deg, #111820, #1f313e),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 70px);
  color: var(--white);
}

.portfolio-card span {
  color: #f0b674;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.portfolio-card strong {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.05;
}

.portfolio-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
}

.portfolio-list {
  padding: clamp(1.2rem, 3vw, 1.6rem);
  border: 1px solid var(--line);
  border-radius: 0;
  background: #f7f9f9;
}

.portfolio-list h3 {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.portfolio-list ul {
  margin: 1rem 0 0;
  padding-left: 1.15rem;
  color: var(--muted);
}

.portfolio-list li + li {
  margin-top: 0.75rem;
}

.case-library {
  max-width: var(--max);
  margin: 1.25rem auto 0;
  padding: clamp(1.2rem, 3vw, 1.7rem);
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--paper);
}

.case-library > h3 {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
}

.case-library > p {
  max-width: 820px;
  margin: 0.7rem 0 1.1rem;
  color: var(--muted);
}

.case-library details {
  border-top: 1px solid var(--line);
}

.case-library summary {
  cursor: pointer;
  padding: 1rem 0;
  color: var(--blue-dark);
  font-weight: 800;
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding-bottom: 1rem;
}

.library-grid p {
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--paper-strong);
  color: var(--muted);
}

.library-grid strong {
  color: var(--ink);
}

.case-visual {
  margin: 0;
  align-self: start;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.case-visual img {
  width: 100%;
  max-height: 680px;
  object-fit: contain;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: none;
  background: #eef3f8;
}

.case-visual figcaption,
.evidence-card figcaption {
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.case-card {
  display: flex;
  min-height: 220px;
  flex-direction: column;
  padding: 1.25rem;
}

.case-card span {
  margin-top: auto;
  color: var(--blue-dark);
  font-weight: 800;
}

.evidence-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(17, 24, 32, 0.98), rgba(20, 44, 68, 0.98) 58%, rgba(54, 62, 57, 0.98)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 88px);
  color: var(--white);
}

.evidence-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.085) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.28;
}

.evidence-section > * {
  position: relative;
  z-index: 1;
}

.evidence-section .eyebrow {
  color: #f0b674;
}

.evidence-section .section-heading p {
  color: rgba(255, 255, 255, 0.76);
}

.credential-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: var(--max);
  margin: 0 auto;
}

.credential-card {
  padding: 1.35rem;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(252, 252, 250, 0.08);
  color: var(--white);
  box-shadow: none;
  backdrop-filter: blur(10px);
}

.credential-card dl {
  margin: 1.2rem 0 0;
}

.credential-card div {
  display: grid;
  grid-template-columns: minmax(130px, 0.4fr) 1fr;
  gap: 1rem;
  padding: 0.8rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.credential-card dt {
  color: #f0b674;
  font-weight: 800;
}

.credential-card dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.verification-note {
  grid-column: 1 / -1;
  display: grid;
  gap: 0.7rem;
  padding: clamp(1.2rem, 3vw, 1.6rem);
  border: 1px solid rgba(240, 182, 116, 0.34);
  border-left: 4px solid var(--copper);
  background: rgba(11, 18, 26, 0.46);
}

.verification-note span {
  color: #f0b674;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.verification-note strong {
  max-width: 880px;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  line-height: 1.1;
}

.verification-note p {
  max-width: 920px;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
}

.cooperation-section {
  background:
    linear-gradient(180deg, #f8f5ef 0%, #e7edf4 100%);
  border-top: 1px solid rgba(17, 24, 32, 0.08);
  border-bottom: 1px solid rgba(17, 24, 32, 0.08);
}

.track-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: var(--max);
  margin: 0 auto;
}

.track-card {
  min-height: 390px;
  padding: clamp(1.3rem, 3vw, 2rem);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 58px rgba(18, 27, 36, 0.08);
}

.track-card.recommended {
  border-color: rgba(23, 103, 194, 0.48);
  background: var(--white);
}

.track-label {
  display: inline-flex;
  margin-bottom: 1.2rem;
  padding: 0.36rem 0.62rem;
  border-radius: 999px;
  background: #e6edf7;
  color: var(--blue-dark);
  font-size: 0.78rem;
  font-weight: 800;
}

.track-card ul {
  margin: 1rem 0 0;
  padding-left: 1.15rem;
}

.track-card li + li {
  margin-top: 0.5rem;
}

.boundary-note {
  display: grid;
  gap: 0.45rem;
  margin-top: 1rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(23, 103, 194, 0.22);
  border-radius: 0;
  background: #f2f6f8;
}

.boundary-note strong {
  color: var(--blue-dark);
}

.boundary-note span {
  color: var(--muted);
}

.pricing-note {
  max-width: var(--max);
  margin: 1rem auto 0;
  padding: 1.1rem 1.25rem;
  border-left: 4px solid var(--copper);
  background: rgba(17, 24, 32, 0.055);
  color: #46525f;
}

.contact-section {
  max-width: none;
  margin: 0;
  align-items: start;
  background:
    linear-gradient(135deg, #111820 0%, #14263a 52%, #243a42 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 84px);
  color: var(--white);
}

.contact-lines {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.contact-lines p {
  margin: 0.35rem 0;
  color: rgba(255, 255, 255, 0.78);
}

.contact-section .eyebrow {
  color: #f0b674;
}

.contact-section .contact-copy p {
  color: rgba(255, 255, 255, 0.76);
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem 1.1rem;
  padding: 1.5rem 0 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 800;
  color: var(--white);
}

.contact-form .full {
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 0;
  padding: 0.78rem 0 0.74rem;
  color: var(--white);
  background: transparent;
  font: inherit;
  transition: border-color 420ms ease-in-out, box-shadow 420ms ease-in-out, background 420ms ease-in-out;
}

.contact-form select option {
  color: var(--ink);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.52);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 0;
  border-bottom-color: #f0b674;
  box-shadow: inset 0 -1px 0 #f0b674;
}

.contact-form [aria-invalid="true"] {
  border-bottom-color: #ffb5a5;
  box-shadow: inset 0 -1px 0 #ffb5a5;
}

.field-error {
  color: #ffd0c7;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
}

.contact-form textarea {
  min-height: 132px;
  resize: vertical;
}

.checkbox-line {
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: flex-start;
  gap: 0.65rem !important;
  color: rgba(255, 255, 255, 0.72) !important;
  font-weight: 600 !important;
}

.checkbox-line input {
  width: 18px;
  min-height: 18px;
  margin-top: 0.18rem;
}

.hidden-field {
  position: absolute;
  left: -10000px;
  opacity: 0;
}

.form-status {
  grid-column: 1 / -1;
  min-height: 1.4rem;
  margin: 0;
  color: #f0b674;
  font-weight: 700;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem clamp(1rem, 5vw, 5rem);
  background: var(--ink);
  color: var(--white);
}

.site-footer div {
  display: grid;
  gap: 0.15rem;
}

.site-footer span {
  color: rgba(255, 255, 255, 0.72);
}

.site-footer a {
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
}

.case-page {
  background: var(--paper);
}

.case-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  background: var(--ink);
  color: var(--white);
}

.case-back {
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
  transition: color 420ms ease-in-out, transform 420ms ease-in-out;
}

.case-back:hover {
  color: #f0b674;
  transform: translateX(-3px);
}

.case-hero {
  padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 5vw, 5rem) clamp(2rem, 5vw, 4rem);
  background:
    linear-gradient(120deg, rgba(11, 18, 26, 0.98), rgba(15, 31, 48, 0.98), rgba(31, 40, 44, 0.98)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 96px);
  color: var(--white);
}

.case-hero > * {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.case-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.8rem);
}

.case-subtitle,
.case-status {
  color: rgba(255, 255, 255, 0.78);
}

.case-subtitle {
  margin-top: 1rem;
  font-size: 1.08rem;
}

.case-status {
  max-width: 820px;
  margin-top: 0.65rem;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.dossier-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  max-width: var(--max);
  margin-top: 1.45rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  font-family: var(--mono);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.dossier-strip span {
  padding: 0.72rem 0.82rem;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.065);
  color: rgba(255, 255, 255, 0.82);
}

.dossier-strip span:last-child {
  border-right: 0;
}

.case-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 1rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 5vw, 5rem) 0;
}

.case-page-card {
  padding: clamp(1.2rem, 3vw, 1.6rem);
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--paper-strong);
}

.case-page-card h2,
.argument-column h2,
.whitepaper-section h2 {
  font-size: clamp(1.45rem, 2.4vw, 2.05rem);
}

.case-page-card p {
  color: var(--muted);
}

.accent-card {
  background: #f7f9f9;
}

.case-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 1rem 0 0;
  border: 1px solid var(--line);
  border-radius: 0;
  overflow: hidden;
}

.case-meta div {
  padding: 0.85rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.case-meta dt {
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--blue-dark);
  font-weight: 800;
}

.case-meta dd {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

.full-argument-map {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem clamp(1rem, 5vw, 5rem) clamp(2rem, 5vw, 4rem);
}

.argument-column {
  display: grid;
  align-content: start;
  gap: 0.8rem;
  padding: clamp(1.2rem, 3vw, 1.6rem);
  border: 1px solid rgba(162, 172, 181, 0.62);
  border-radius: 0;
  background: var(--white);
  background-image:
    linear-gradient(rgba(17, 24, 32, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 24, 32, 0.02) 1px, transparent 1px);
  background-size: 28px 28px;
}

.argument-column span {
  color: var(--copper);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0;
  font-weight: 800;
}

.argument-column p {
  margin: 0;
  color: var(--muted);
}

.argument-column.examiner {
  background: #f4f6f8;
}

.argument-column.fixer {
  border-color: rgba(23, 103, 194, 0.26);
  background: var(--white);
}

.argument-column.result {
  border-color: rgba(180, 116, 59, 0.3);
  background-color: #faf5ee;
}

.cn-text {
  padding-top: 0.8rem;
  border-top: 1px solid rgba(17, 24, 32, 0.1);
  font-size: 0.95rem;
}

.whitepaper-section {
  padding: clamp(3rem, 7vw, 5rem) clamp(1rem, 5vw, 5rem);
  background: var(--paper-strong);
}

.source-dossier {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 42px rgba(18, 27, 36, 0.08);
}

.source-dossier h3 {
  margin-bottom: 1rem;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}

.source-dossier p {
  margin: 0 0 0.75rem;
  color: var(--ink);
  font-size: 0.98rem;
}

.deep-case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: var(--max);
  margin: 0 auto;
}

.deep-case-grid article,
.case-review-note {
  padding: clamp(1.1rem, 3vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--white);
}

.deep-case-grid h3,
.case-review-note h3 {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.deep-case-grid ul {
  margin: 1rem 0 0;
  padding-left: 1.15rem;
  color: var(--muted);
}

.deep-case-grid li + li {
  margin-top: 0.75rem;
}

.case-review-note {
  max-width: var(--max);
  margin: 1rem auto 0;
  background: #f7f9f9;
}

.case-review-note p {
  color: var(--muted);
}

@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-logic {
    max-width: 620px;
  }

  .split-section,
  .case-layout,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .argument-map {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .method-note {
    grid-template-columns: 1fr;
  }

  .case-detail-grid,
  .deep-case-grid,
  .library-grid,
  .case-page-grid,
  .full-argument-map,
  .portfolio-note {
    grid-template-columns: 1fr;
  }

  .map-connector {
    min-height: 18px;
  }

  .map-connector::before {
    width: 2px;
    height: 100%;
  }

  .evidence-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header {
    padding: 0.8rem 1rem;
  }

  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 0.5rem);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper-strong);
    color: var(--ink);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.85rem 0.8rem;
  }

  .hero {
    min-height: 80svh;
    padding: 6.4rem 1rem 2rem;
  }

  .hero-logic {
    grid-template-columns: 1fr;
  }

  .logic-card {
    min-height: 126px;
  }

  h1 {
    font-size: clamp(2.15rem, 9vw, 2.95rem);
  }

  .hero-metrics,
  .trust-strip,
  .service-list,
  .case-grid,
  .logic-matrix,
  .track-grid,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .hero-metrics div {
    min-height: auto;
  }

  .section {
    padding: 3.5rem 1rem;
  }

  .credential-card,
  .contact-form .full {
    grid-column: 1;
  }

  .credential-card div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .contact-form textarea {
    min-height: 160px;
  }

  .site-footer {
    flex-direction: column;
  }

  .case-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .case-meta {
    grid-template-columns: 1fr;
  }
}

@media print {
  .skip-link,
  .nav-toggle,
  .site-nav {
    display: none !important;
  }
}
