@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url("/assets/fonts/fraunces-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600;
  font-display: optional;
  src: url("/assets/fonts/fraunces-latin-600.woff2") format("woff2");
}

:root {
  --ink: #0b0f14;
  --ink-soft: #18202a;
  --paper: #f7f5f0;
  --paper-pure: #ffffff;
  --paper-muted: #eeeae1;
  --accent: #c96a43;
  --accent-strong: #a64f2d;
  --muted: #505864;
  --quiet: #626973;
  --rule: #d8d2c6;
  --font-ui: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-mono: "Geist Mono", "SFMono-Regular", Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.65;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgb(11 15 20 / 3%) 1px, transparent 0);
  background-size: 28px 28px;
  content: "";
  pointer-events: none;
}

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

a {
  color: inherit;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--accent-strong);
}

a:focus-visible,
summary:focus-visible {
  border-radius: 2px;
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.875rem;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  color: var(--paper);
  transform: translateY(0);
}

.shell {
  width: min(100% - 2rem, 78rem);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  background: rgb(247 245 240 / 94%);
  box-shadow: 0 1px 0 rgb(11 15 20 / 10%);
  backdrop-filter: blur(16px);
}

.header-inner {
  min-height: 4.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
}

.brand span {
  position: relative;
  display: inline-block;
}

.brand span::after {
  position: absolute;
  right: 0;
  bottom: -0.16em;
  left: 0;
  height: 2px;
  background: var(--accent);
  content: "";
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
  font-size: 0.83rem;
  font-weight: 650;
}

.site-nav a {
  text-decoration: none;
}

.site-nav .header-cta {
  padding: 0.72rem 1rem;
  background: var(--ink);
  color: var(--paper);
}

.site-nav .header-cta:hover {
  background: var(--accent-strong);
  color: var(--paper);
}

.service-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(17rem, 0.36fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: end;
  padding-block: clamp(5rem, 10vw, 9.5rem) clamp(4rem, 8vw, 7rem);
}

.eyebrow,
.section-kicker,
.aside-label,
.case-kicker,
.footer-label {
  margin: 0;
  color: var(--accent-strong);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.case-kicker,
.footer-label {
  color: var(--accent);
}

.service-hero h1 {
  max-width: 12ch;
  margin: 1.35rem 0 1.7rem;
  font-family: var(--font-display);
  font-size: clamp(3.25rem, 7.4vw, 7.5rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.92;
  text-wrap: balance;
}

.hero-lead {
  max-width: 43rem;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
  margin-top: 2.5rem;
}

.primary-action {
  display: inline-flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.2rem;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.primary-action:hover {
  background: var(--accent-strong);
  color: var(--paper);
}

.secondary-action {
  font-size: 0.88rem;
  font-weight: 700;
}

.hero-aside {
  padding: clamp(1.6rem, 4vw, 2.5rem);
  background: var(--ink);
  color: var(--paper);
  border-radius: 0.75rem;
}

.hero-aside .aside-label {
  color: #e29572;
}

.hero-aside > p:not(.aside-label) {
  margin: 1.2rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  font-weight: 600;
  line-height: 1.15;
}

.hero-aside dl {
  display: grid;
  gap: 1.1rem;
  margin: 2rem 0 0;
}

.hero-aside dl div {
  padding-top: 1rem;
  box-shadow: 0 -1px 0 rgb(247 245 240 / 18%);
}

.hero-aside dt {
  color: rgb(247 245 240 / 56%);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-aside dd {
  margin: 0.28rem 0 0;
  color: rgb(247 245 240 / 88%);
  font-size: 0.9rem;
}

.page-index {
  display: flex;
  gap: 0.85rem 1.5rem;
  align-items: center;
  padding-block: 1.3rem;
  overflow-x: auto;
  box-shadow: 0 -1px 0 var(--rule), 0 1px 0 var(--rule);
  scrollbar-width: none;
}

.page-index::-webkit-scrollbar {
  display: none;
}

.page-index span {
  flex: 0 0 auto;
  color: var(--quiet);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.page-index a {
  flex: 0 0 auto;
  font-size: 0.82rem;
  font-weight: 650;
  text-decoration: none;
}

.content-section {
  padding-block: clamp(4.5rem, 9vw, 8rem);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.3fr) minmax(0, 1fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: start;
  margin-bottom: clamp(2.8rem, 6vw, 5rem);
}

.section-heading h2 {
  max-width: 18ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.3vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 0.98;
  text-wrap: balance;
}

.section-intro {
  max-width: 44rem;
  margin: 1.4rem 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.decision-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.36fr);
  gap: clamp(3rem, 8vw, 8rem);
}

.signal-list,
.deliverable-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.signal-list li,
.deliverable-list li {
  position: relative;
  padding: 1.15rem 0 1.15rem 2rem;
  box-shadow: 0 1px 0 var(--rule);
}

.signal-list li:first-child,
.deliverable-list li:first-child {
  box-shadow: 0 -1px 0 var(--rule), 0 1px 0 var(--rule);
}

.signal-list li::before,
.deliverable-list li::before {
  position: absolute;
  top: 1.58rem;
  left: 0.15rem;
  width: 0.52rem;
  height: 0.52rem;
  background: var(--accent);
  border-radius: 2px;
  content: "";
}

.decision-note {
  align-self: start;
  padding: 1.6rem 0;
  box-shadow: 0 -1px 0 var(--ink), 0 1px 0 var(--ink);
}

.decision-note h3 {
  margin: 0.75rem 0 0.8rem;
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1.12;
}

.decision-note p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.service-lines {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(2rem, 7vw, 6rem);
}

.service-line {
  padding-block: 1.6rem 2.2rem;
  box-shadow: 0 -1px 0 var(--rule);
}

.service-line h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  line-height: 1.08;
}

.service-line p {
  max-width: 35rem;
  margin: 0.9rem 0 0;
  color: var(--muted);
}

.evidence-section {
  padding-block: clamp(4.5rem, 9vw, 8rem);
  background: var(--ink);
  color: var(--paper);
}

.evidence-section .section-heading h2 {
  color: var(--paper);
}

.evidence-section .section-kicker {
  color: var(--accent);
}

.evidence-section .section-intro {
  color: rgb(247 245 240 / 66%);
}

.case-list {
  display: grid;
}

.case-row {
  display: grid;
  grid-template-columns: minmax(7rem, 0.2fr) minmax(0, 1fr) auto;
  gap: 1.5rem clamp(2rem, 6vw, 6rem);
  align-items: start;
  padding-block: 1.8rem;
  box-shadow: 0 -1px 0 rgb(247 245 240 / 18%);
}

.case-row:last-child {
  box-shadow: 0 -1px 0 rgb(247 245 240 / 18%), 0 1px 0 rgb(247 245 240 / 18%);
}

.case-row h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  line-height: 1;
}

.case-row p {
  max-width: 46rem;
  margin: 0;
  color: rgb(247 245 240 / 68%);
}

.case-row a {
  color: var(--paper);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.case-row a:hover {
  color: #e29572;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3.5rem);
}

.process-step {
  padding-top: 1.2rem;
  box-shadow: 0 -1px 0 var(--ink);
}

.process-number {
  color: var(--accent-strong);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}

.process-step h3 {
  margin: 2.2rem 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.1;
}

.process-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.deliverables {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: start;
  padding: clamp(2.2rem, 5vw, 4rem);
  background: var(--paper-muted);
  border-radius: 0.75rem;
}

.deliverables h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 4.8vw, 4.2rem);
  line-height: 0.98;
}

.deliverables-copy > p {
  margin-top: 0;
  color: var(--muted);
}

.faq-list {
  box-shadow: 0 1px 0 var(--rule);
}

.faq-list details {
  box-shadow: 0 -1px 0 var(--rule);
}

.faq-list summary {
  position: relative;
  padding: 1.5rem 3rem 1.5rem 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.3vw, 1.6rem);
  font-weight: 600;
  line-height: 1.2;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  position: absolute;
  top: 50%;
  right: 0.2rem;
  color: var(--accent);
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.25rem;
  transform: translateY(-50%);
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  max-width: 50rem;
  margin: 0;
  padding: 0 3rem 1.6rem 0;
  color: var(--muted);
}

.related-section {
  padding-block: clamp(3.5rem, 7vw, 6rem);
  background: var(--paper-pure);
}

.related-heading {
  display: flex;
  gap: 2rem;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 2.5rem;
}

.related-heading h2 {
  max-width: 20ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
}

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

.related-link {
  min-height: 10rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
  background: var(--paper-muted);
  border-radius: 0.75rem;
  text-decoration: none;
}

.related-link span:first-child {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.08;
}

.related-link span:last-child {
  color: var(--quiet);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.related-link:hover {
  background: #e7dfd2;
  color: var(--ink);
}

.case-page .service-hero h1 {
  max-width: 15ch;
  font-size: clamp(3.2rem, 6.5vw, 6.6rem);
}

.case-media-section {
  padding-block: clamp(2rem, 5vw, 4rem) clamp(4.5rem, 9vw, 8rem);
}

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

.case-figure {
  margin: 0;
  overflow: hidden;
  background: var(--ink);
  border-radius: 0.5rem;
}

.case-figure--wide {
  grid-column: 1 / -1;
}

.case-figure img {
  width: 100%;
  height: auto;
}

.case-figure figcaption {
  padding: 0.9rem 1rem 1rem;
  color: rgb(247 245 240 / 68%);
  font-size: 0.78rem;
}

.contact-section {
  padding-block: clamp(4.5rem, 8vw, 7rem);
  background: var(--accent-strong);
  color: #fffaf5;
}

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3rem;
  align-items: end;
}

.contact-inner h2 {
  max-width: 17ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.5vw, 5rem);
  line-height: 0.95;
}

.contact-inner p {
  max-width: 42rem;
  margin: 1.25rem 0 0;
  color: #fffaf5;
}

.contact-inner .primary-action {
  background: var(--ink);
  color: var(--paper);
  white-space: nowrap;
}

.site-footer {
  padding-block: 4rem 2rem;
  background: var(--ink);
  color: var(--paper);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3rem;
  align-items: start;
}

.footer-brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
}

.footer-copy {
  max-width: 34rem;
  margin: 0.8rem 0 0;
  color: rgb(247 245 240 / 62%);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(9rem, 1fr));
  gap: 1.5rem 3rem;
}

.footer-links div {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: rgb(247 245 240 / 82%);
  font-size: 0.84rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: #e29572;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 2rem;
  justify-content: space-between;
  margin-top: 4rem;
  padding-top: 1.5rem;
  color: rgb(247 245 240 / 48%);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  box-shadow: 0 -1px 0 rgb(247 245 240 / 16%);
}

@media (max-width: 900px) {
  .service-hero,
  .section-heading,
  .decision-grid,
  .deliverables,
  .contact-inner,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .service-hero {
    gap: 3.5rem;
    align-items: start;
  }

  .hero-aside {
    max-width: 36rem;
  }

  .section-heading {
    gap: 1.2rem;
  }

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

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

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

  .case-figure--wide {
    grid-column: auto;
  }

  .related-link {
    min-height: 8rem;
  }

  .contact-inner {
    align-items: start;
  }
}

@media (max-width: 680px) {
  .shell {
    width: min(100% - 1.4rem, 78rem);
  }

  .header-inner {
    min-height: 4.25rem;
  }

  .site-nav > a:not(.header-cta) {
    display: none;
  }

  .service-hero {
    padding-top: 4.2rem;
  }

  .service-hero h1 {
    font-size: clamp(3rem, 16vw, 4.7rem);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-action {
    width: 100%;
  }

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

  .case-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .case-row a {
    margin-top: 0.4rem;
  }

  .deliverables {
    padding: 1.6rem;
  }

  .related-heading {
    align-items: start;
    flex-direction: column;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
