@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;1,6..72,400&display=swap");

:root {
  --ink: #1a1a1a;
  --ink-soft: #4a4e52;
  --stone: #f1eee7;
  --paper: #f9f7f2;
  --line: #e5e1d8;
  --brass: #a17f3b;
  --green: #1a1a1a;
  --green-soft: #eee9df;
  --white: #ffffff;
  --shadow: none;
  --serif: Newsreader, Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2,
h3 {
  margin: 0;
}

ul {
  margin: 0;
  padding-left: 1.1rem;
}

li + li {
  margin-top: 0.7rem;
}

.container {
  width: min(1200px, calc(100% - 64px));
  margin: 0 auto;
}

.narrow {
  width: min(760px, calc(100% - 48px));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 0 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(249, 247, 242, 0.96);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-style: italic;
  line-height: 1;
}

.brand-name {
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav a {
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 26px 0 24px;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.site-nav .nav-cta {
  margin-left: 2px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--ink);
  color: var(--paper);
  padding: 9px 14px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid rgba(18, 20, 17, 0.18);
  border-radius: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  width: 17px;
  height: 1px;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: auto;
  display: grid;
  grid-template-rows: auto auto;
  align-items: center;
  overflow: visible;
  color: var(--ink);
  background: var(--paper);
  padding: 104px 0 0;
}

.hero-media {
  position: relative;
  inset: auto;
  grid-row: 2;
  width: min(1200px, calc(100% - 64px));
  height: 380px;
  margin: 76px auto 0;
  object-fit: cover;
  filter: grayscale(1);
  opacity: 0.84;
}

.hero-shade {
  display: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  grid-row: 1;
  width: min(980px, calc(100% - 64px));
  margin: 0 auto;
  padding: 0;
  text-align: center;
}

.section-label {
  color: var(--brass);
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero .section-label {
  color: var(--ink-soft);
}

.hero-brand {
  margin-top: 22px;
  color: var(--brass);
  font-family: var(--serif);
  font-size: 1.35rem;
  font-style: italic;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.08;
}

.hero h1 {
  width: min(860px, 100%);
  margin-top: 18px;
  font-size: 5.15rem;
}

.hero-copy {
  width: min(720px, 100%);
  margin-top: 28px;
  margin-left: auto;
  margin-right: auto;
  color: var(--ink-soft);
  font-size: 1.18rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 38px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  font-weight: 700;
  line-height: 1.1;
  padding: 13px 20px;
  text-transform: uppercase;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.button:hover {
  background: transparent;
  color: var(--ink);
}

.button.primary {
  border: 1px solid var(--green);
  background: var(--green);
  color: var(--white);
}

.hero .button.primary {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.button.secondary {
  border: 1px solid var(--ink);
  color: var(--ink);
}

.intro-band {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  padding: 72px 0;
}

.intro-grid,
.two-column,
.cta-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 72px;
  align-items: start;
}

.intro-grid h2,
.section-heading h2,
.cta-grid h2,
.contact-copy h2 {
  margin-top: 12px;
  font-size: 3rem;
}

.intro-grid p:last-child,
.text-stack > p,
.cta-grid p,
.page-hero p,
.contact-copy p {
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.section {
  padding: 128px 0;
}

.section.muted {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section.dark {
  background: var(--ink);
  color: var(--paper);
}

.section.dark .section-label {
  color: #d9bd89;
}

.section.dark p,
.section.dark span {
  color: rgba(255, 255, 255, 0.76);
}

.section-heading.wide {
  width: min(760px, 100%);
  margin-bottom: 42px;
}

.text-stack {
  display: grid;
  gap: 28px;
}

.rule-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.rule-list p {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

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

.service-card,
.detail-panel,
.case-card,
.insight-block,
.principles-grid article,
.contact-form {
  border: 1px solid var(--line);
  background: var(--paper);
}

.service-card {
  min-height: 280px;
  padding: 28px;
  border: 0;
  border-right: 1px solid var(--line);
}

.service-card:last-child {
  border-right: 0;
}

.service-number {
  color: var(--brass);
  font-weight: 700;
}

.service-card h3,
.detail-panel h2,
.case-card h2,
.insight-block h2,
.insight-block h3,
.principles-grid h2 {
  margin-top: 42px;
  font-size: 2rem;
}

.service-card p:last-child,
.detail-panel p,
.case-card p,
.insight-block p,
.principles-grid p {
  margin-top: 18px;
  color: var(--ink-soft);
}

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

.process-step {
  min-height: 245px;
  padding: 30px 30px 0 0;
  border-right: 1px solid var(--line);
}

.process-step:last-child {
  border-right: 0;
  padding-left: 30px;
}

.process-step:nth-child(2) {
  padding-left: 30px;
}

.process-step span {
  display: block;
  color: var(--brass);
  font-family: var(--serif);
  font-size: 2rem;
  font-style: italic;
}

.process-step p {
  margin-top: 28px;
  color: var(--ink-soft);
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.metric-row div {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 18px;
}

.metric-row strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
}

.cta-section {
  padding: 104px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}

.cta-section .section-label {
  color: var(--brass);
}

.cta-section p {
  color: var(--ink-soft);
}

.cta-section .button {
  margin-top: 26px;
}

.cta-section .button.primary {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.page-hero {
  padding: 128px 0 104px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.page-hero.compact {
  padding-bottom: 70px;
}

.page-hero h1 {
  width: min(960px, 100%);
  margin-top: 14px;
  font-size: 4.85rem;
}

.page-hero p:last-child {
  width: min(720px, 100%);
  margin-top: 26px;
}

.service-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.detail-panel {
  padding: 30px;
  border-radius: 0;
}

.detail-panel ul {
  margin-top: 28px;
  color: var(--ink-soft);
}

.intelligence-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.insight-block {
  padding: 28px;
  border-radius: 0;
}

.insight-block.large {
  grid-column: span 3;
}

.insight-block.large h2 {
  width: min(820px, 100%);
  margin-top: 12px;
  font-size: 3.4rem;
}

.insight-block.large p {
  width: min(720px, 100%);
}

.comparison-table {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 0;
  overflow: hidden;
  background: var(--paper);
}

.table-row {
  display: grid;
  grid-template-columns: 0.65fr 1.25fr 1.1fr;
  border-bottom: 1px solid var(--line);
}

.table-row:last-child {
  border-bottom: 0;
}

.table-row > div {
  padding: 20px;
  border-right: 1px solid var(--line);
}

.table-row > div:last-child {
  border-right: 0;
}

.table-head {
  background: var(--green);
  color: var(--white);
  font-weight: 700;
}

.formula-panel {
  border-left: 3px solid var(--brass);
  background: var(--green-soft);
  padding: 24px;
}

.formula-panel span {
  display: block;
  color: var(--ink-soft);
}

.formula-panel strong {
  display: block;
  margin-top: 8px;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.12;
}

.case-grid {
  display: grid;
  gap: 20px;
}

.case-card {
  padding: 34px;
  border-radius: 0;
}

.case-card h2 {
  width: min(720px, 100%);
  margin-top: 18px;
  font-size: 3rem;
}

.case-card > p:not(.section-label) {
  width: min(760px, 100%);
}

.case-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.case-stats div {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.case-stats strong {
  display: block;
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 400;
}

.case-stats span {
  color: var(--ink-soft);
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.principles-grid article {
  padding: 30px;
}

.principles-grid span {
  color: var(--brass);
  font-weight: 700;
}

.contact-section {
  padding-top: 72px;
}

.contact-copy {
  position: sticky;
  top: 112px;
}

.contact-note {
  margin-top: 34px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.contact-note strong,
.contact-note a {
  display: block;
}

.contact-note a {
  margin-top: 4px;
  color: var(--green);
  font-weight: 700;
}

.contact-form {
  display: grid;
  gap: 20px;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.contact-form label {
  display: grid;
  gap: 8px;
}

.contact-form span {
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 700;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  padding: 12px 0;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 0;
  border-color: var(--ink);
}

.contact-form button {
  justify-self: start;
  cursor: pointer;
}

.form-status {
  min-height: 24px;
  color: var(--green);
  font-weight: 700;
}

.site-footer {
  padding: 42px 0;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.footer-grid {
  display: grid;
  grid-template-columns: 0.8fr 1fr auto;
  gap: 28px;
  align-items: center;
}

.site-footer p {
  color: var(--ink-soft);
}

.site-footer nav {
  display: flex;
  gap: 18px;
}

.site-footer a:hover {
  color: var(--brass);
}

@media (max-width: 900px) {
  .site-header {
    min-height: 68px;
    padding: 0 20px;
  }

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

  .site-nav {
    position: fixed;
    inset: 68px 0 auto 0;
    display: none;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 18px 20px 24px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
  }

  body.nav-open .site-nav {
    display: grid;
  }

  .site-nav a,
  .site-nav .nav-cta {
    margin-left: 0;
    border: 0;
    padding: 14px 0;
  }

  .container,
  .narrow,
  .hero-inner {
    width: min(100% - 32px, 720px);
  }

  .hero {
    min-height: auto;
    padding-top: 72px;
  }

  .hero-inner {
    padding: 0;
  }

  .hero-media {
    width: min(100% - 32px, 720px);
    height: 270px;
    margin-top: 52px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 3.4rem;
  }

  .intro-grid,
  .two-column,
  .cta-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .intro-grid h2,
  .section-heading h2,
  .cta-grid h2,
  .contact-copy h2,
  .insight-block.large h2,
  .case-card h2 {
    font-size: 2.55rem;
  }

  .section {
    padding: 76px 0;
  }

  .service-grid,
  .service-detail-grid,
  .intelligence-grid,
  .principles-grid,
  .metric-row,
  .case-stats {
    grid-template-columns: 1fr;
  }

  .service-card,
  .service-card:last-child {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .service-card:last-child {
    border-bottom: 0;
  }

  .process {
    grid-template-columns: 1fr;
  }

  .process-step,
  .process-step:nth-child(2),
  .process-step:last-child {
    min-height: auto;
    padding: 24px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .process-step:last-child {
    border-bottom: 0;
  }

  .insight-block.large {
    grid-column: span 1;
  }

  .table-row {
    grid-template-columns: 1fr;
  }

  .table-row > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .table-row > div:last-child {
    border-bottom: 0;
  }

  .contact-copy {
    position: static;
  }

  .site-footer nav {
    flex-wrap: wrap;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
  }

  .brand-name {
    display: none;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 2.65rem;
  }

  .hero-copy,
  .intro-grid p:last-child,
  .text-stack > p,
  .cta-grid p,
  .page-hero p,
  .contact-copy p {
    font-size: 1rem;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .button {
    padding-left: 16px;
    padding-right: 16px;
  }

  .intro-grid h2,
  .section-heading h2,
  .cta-grid h2,
  .contact-copy h2,
  .insight-block.large h2,
  .case-card h2 {
    font-size: 2.2rem;
  }

  .service-card h3,
  .detail-panel h2,
  .insight-block h3,
  .principles-grid h2,
  .formula-panel strong {
    font-size: 1.75rem;
  }

  .page-hero {
    padding: 82px 0 64px;
  }

  .hero {
    padding-top: 60px;
  }

  .hero-media {
    height: 220px;
    margin-top: 44px;
  }

  .service-card,
  .detail-panel,
  .case-card,
  .insight-block,
  .principles-grid article {
    padding: 24px;
  }
}
