:root {
  --ink: oklch(0.18 0.02 250);
  --paper: oklch(0.975 0.012 85);
  --paper-2: oklch(0.945 0.018 85);
  --rule: oklch(0.82 0.02 80);
  --forest: oklch(0.34 0.07 155);
  --cobalt: oklch(0.48 0.18 258);
  --lime: oklch(0.86 0.19 130);
  --coral: oklch(0.68 0.2 27);
  --shadow-pop: 4px 4px 0 0 var(--ink);
  --shadow-pop-lg: 8px 8px 0 0 var(--ink);
  --radius: 16px;
  --container: 1240px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

h1,
h2,
h3,
h4 {
  margin: 0;
  letter-spacing: -0.025em;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-feature-settings: "ss01", "ss02";
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.site-main {
  min-height: 60vh;
}

.section {
  padding: 80px 0;
  border-bottom: 2px solid var(--ink);
}

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

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

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 2px solid var(--ink);
  background: var(--paper);
}

.hero__grid,
.bp-grid-soft,
.bp-grid,
.bp-grid-dark {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero__grid,
.bp-grid-soft {
  background-color: var(--paper);
  background-image: linear-gradient(rgba(24, 28, 40, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 28, 40, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
}

.bp-grid {
  background-color: var(--paper-2);
  background-image: linear-gradient(var(--ink) 1px, transparent 1px),
    linear-gradient(90deg, var(--ink) 1px, transparent 1px);
  background-size: 56px 56px;
}

.bp-grid-dark {
  background-color: var(--forest);
  background-image: linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
}

.hero__inner {
  position: relative;
  z-index: 1;
  padding: 64px 0;
}

.home .hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(180deg, rgba(248, 245, 238, 0) 0%, rgba(248, 245, 238, 0.92) 100%);
  pointer-events: none;
  z-index: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  color: color-mix(in oklab, var(--ink) 60%, white);
}

.eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--forest);
}

.eyebrow--paper {
  color: color-mix(in oklab, var(--paper) 75%, transparent);
}

.eyebrow--paper::before {
  background: var(--lime);
}

.display-xl {
  margin-top: 20px;
  max-width: 900px;
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  font-weight: 700;
  line-height: 1.04;
}

.display-lg {
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 700;
  line-height: 1.05;
}

.display-md {
  font-size: clamp(1.9rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.08;
}

.hero__lead {
  margin-top: 24px;
  max-width: 760px;
  font-size: 1.0625rem;
  color: color-mix(in oklab, var(--ink) 76%, white);
}

.hero__lead--home {
  max-width: 780px;
}

.hero__hint {
  margin-top: 18px;
  font-size: 0.8rem;
  font-weight: 600;
  color: color-mix(in oklab, var(--ink) 58%, white);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 14px 22px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: var(--shadow-pop);
  transition: transform 0.18s ease;
}

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

.button:focus-visible,
.primary-nav a:focus-visible,
.text-link:focus-visible,
.menu-toggle:focus-visible {
  outline: 3px solid var(--cobalt);
  outline-offset: 3px;
}

.button--primary {
  background: var(--forest);
  color: var(--paper);
}

.button--secondary {
  background: var(--paper);
  color: var(--ink);
}

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

.button--paper-shadow {
  box-shadow: 4px 4px 0 0 var(--paper);
}

.button--compact {
  min-height: 44px;
  padding: 10px 16px;
  font-size: 0.875rem;
}

.button--stretch {
  width: 100%;
  margin-top: auto;
}

.underline-accent {
  background-image: linear-gradient(180deg, transparent 62%, var(--lime) 62%, var(--lime) 92%, transparent 92%);
  padding: 0 0.08em;
}

.stack-lg {
  display: grid;
  gap: 32px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 2px solid var(--ink);
  background: color-mix(in oklab, var(--paper) 95%, transparent);
  backdrop-filter: blur(12px);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
}

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

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--paper);
  color: var(--forest);
}

.brand-mark__icon {
  width: 24px;
  height: 24px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.brand-copy__title {
  font-family: "Press Start 2P", "IBM Plex Sans", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.1;
  white-space: nowrap;
}

.brand-copy__title--footer {
  font-size: clamp(20px, 4vw, 28px);
}

.brand-copy__subtitle {
  font-size: 11px;
  font-weight: 500;
  color: color-mix(in oklab, var(--ink) 55%, white);
}

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

.primary-nav a {
  display: inline-flex;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 500;
}

.primary-nav .current-menu-item > a,
.primary-nav a:hover {
  color: var(--forest);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 9px;
  border: 2px solid transparent;
  border-radius: 10px;
  background: transparent;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
  font-size: 0.75rem;
  font-weight: 600;
  color: color-mix(in oklab, var(--ink) 56%, white);
}

.breadcrumbs__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.breadcrumbs__item a:hover {
  color: var(--forest);
}

.section-header {
  display: grid;
  gap: 24px;
  margin-bottom: 40px;
}

.section-header--split {
  grid-template-columns: 1.4fr 1fr;
  align-items: end;
}

.section-intro {
  font-size: 1.05rem;
  color: color-mix(in oklab, var(--ink) 76%, white);
}

.card-grid {
  display: grid;
  gap: 24px;
}

.card-grid--services {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.card-grid--articles {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow-pop);
}

.card--service,
.card--case,
.card--article {
  height: 100%;
}

.card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.card__title {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.12;
  text-wrap: balance;
}

.card__node,
.card__summary {
  color: color-mix(in oklab, var(--ink) 74%, white);
}

.card__node {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--forest);
}

.mono-label {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  font-weight: 700;
}

.mono-label--muted {
  color: color-mix(in oklab, var(--ink) 55%, white);
}

.tag {
  padding: 5px 10px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: var(--paper-2);
  font-size: 0.72rem;
  font-weight: 700;
}

.info-box,
.highlight-box {
  padding: 14px 16px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--paper-2);
}

.info-box__label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--ink) 56%, white);
}

.info-box__label--coral {
  color: var(--coral);
}

.info-box__label--forest {
  color: var(--forest);
}

.highlight-box {
  background: var(--forest);
  color: var(--paper);
  font-weight: 600;
}

.split-boxes {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.list-points {
  display: grid;
  gap: 8px;
  font-size: 0.95rem;
}

.list-points li,
.metric-list li,
.ordered-steps li,
.simple-list li {
  display: flex;
  gap: 10px;
}

.list-points li::before {
  content: "";
  width: 12px;
  height: 4px;
  margin-top: 11px;
  background: var(--forest);
  flex-shrink: 0;
}

.split-layout {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr 1fr;
}

.stat-grid {
  display: grid;
  gap: 1px;
  border: 2px solid var(--ink);
  border-radius: 18px;
  overflow: hidden;
  background: var(--ink);
  box-shadow: var(--shadow-pop);
}

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

.stat-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-grid__item {
  padding: 24px;
  background: var(--paper);
}

.stat-grid__value {
  font-size: 2.25rem;
  font-weight: 800;
}

.metric-band {
  background: var(--forest);
  color: var(--paper);
}

.metric-band .stat-grid__item {
  background: transparent;
}

.dashed-rule {
  width: 100%;
  height: 2px;
  background-image: repeating-linear-gradient(90deg, currentColor 0 8px, transparent 8px 16px);
  opacity: 0.28;
}

.cta-band {
  background: var(--ink);
  color: var(--paper);
}

.cta-band__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  padding: 64px 0;
}

.cta-band__copy {
  display: grid;
  gap: 16px;
  max-width: 720px;
}

.faq-list {
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow-pop);
}

.faq-item + .faq-item {
  border-top: 2px solid var(--ink);
}

.faq-item summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 700;
  list-style: none;
}

.faq-item p {
  padding: 0 20px 20px;
  color: color-mix(in oklab, var(--ink) 75%, white);
}

.faq-item__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  font-weight: 700;
}

.image-frame {
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 18px;
  box-shadow: var(--shadow-pop);
}

.image-caption {
  padding: 12px 16px;
  border-top: 2px solid var(--ink);
  background: var(--paper);
  font-size: 0.78rem;
  color: color-mix(in oklab, var(--ink) 65%, white);
}

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

.footer-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  padding: 56px 0;
}

.footer-heading {
  margin-bottom: 16px;
  font-size: 0.75rem;
  font-weight: 700;
  color: color-mix(in oklab, var(--ink) 55%, white);
}

.footer-copy {
  max-width: 360px;
  margin-top: 18px;
  font-size: 0.95rem;
  color: color-mix(in oklab, var(--ink) 72%, white);
}

.footer-links {
  display: grid;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--forest);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0 28px;
  border-top: 2px solid var(--ink);
  font-size: 0.78rem;
  color: color-mix(in oklab, var(--ink) 60%, white);
}

.text-link {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--forest);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.form-shell,
.contact-form {
  display: grid;
  gap: 16px;
}

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

.field label,
.field-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: color-mix(in oklab, var(--ink) 64%, white);
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: white;
  font: inherit;
  outline: 0;
}

.field input:focus,
.field textarea:focus {
  outline: 3px solid var(--cobalt);
}

.field--full {
  grid-column: 1 / -1;
}

.notice {
  padding: 16px;
  border: 2px solid var(--forest);
  border-radius: 12px;
  background: var(--paper-2);
}

.post-content,
.article-layout {
  display: grid;
  gap: 32px;
}

.article-layout {
  grid-template-columns: 260px minmax(0, 1fr);
}

.article-toc {
  position: sticky;
  top: 100px;
  align-self: start;
  padding: 20px;
  border: 2px solid var(--ink);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: var(--shadow-pop);
}

.article-toc ul {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  font-size: 0.92rem;
}

.article-content {
  display: grid;
  gap: 24px;
}

.article-content h2 {
  font-size: 1.7rem;
  font-weight: 800;
}

.article-content p {
  color: color-mix(in oklab, var(--ink) 78%, white);
}

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

@media (max-width: 1279px) {
  .card-grid--services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-grid--articles,
  .post-nav-grid,
  .footer-grid,
  .article-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1023px) {
  .container {
    width: min(var(--container), calc(100% - 40px));
  }

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

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    padding: 14px 20px 22px;
    border-bottom: 2px solid var(--ink);
    background: var(--paper);
    box-shadow: 0 16px 32px rgba(24, 28, 40, 0.08);
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-nav .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .primary-nav a {
    width: 100%;
    padding: 10px 0;
  }

  .header-cta {
    display: none;
  }

  .section-header--split,
  .split-layout,
  .card-grid--services,
  .card-grid--cases,
  .card-grid--articles,
  .stat-grid--three,
  .field-grid,
  .footer-grid,
  .article-layout,
  .post-nav-grid,
  .split-boxes,
  .cta-band__inner {
    grid-template-columns: 1fr;
  }

  .cta-band__inner,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .article-toc {
    position: static;
  }
}

@media (max-width: 767px) {
  .section,
  .hero__inner {
    padding: 44px 0;
  }

  .home .hero__inner {
    padding: 26px 0 22px;
  }

  .header-bar {
    min-height: 78px;
    gap: 14px;
  }

  .brand-copy__title {
    font-size: 12px;
  }

  .brand-copy__subtitle {
    display: block;
    max-width: 160px;
    font-size: 10px;
    line-height: 1.18;
  }

  .display-xl {
    margin-top: 12px;
    max-width: none;
    font-size: clamp(1.82rem, 9.7vw, 2.82rem);
    line-height: 1;
  }

  .display-lg,
  .display-md {
    line-height: 1.08;
  }

  .hero__lead {
    margin-top: 14px;
    max-width: none;
    font-size: 0.92rem;
    line-height: 1.52;
  }

  .button-row {
    gap: 10px;
    margin-top: 18px;
  }

  .button {
    width: 100%;
    min-height: 46px;
    padding: 12px 18px;
    font-size: 0.9rem;
  }

  .home .hero .button--secondary {
    width: auto;
    min-height: auto;
    padding: 4px 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: color-mix(in oklab, var(--ink) 68%, white);
    justify-content: flex-start;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
  }

  .hero__hint {
    margin-top: 14px;
    font-size: 0.74rem;
  }

  .home .hero .button--secondary:hover {
    transform: none;
  }

  .card {
    gap: 14px;
    padding: 20px;
  }

  .card__title {
    font-size: 1.35rem;
  }

  .section-header {
    gap: 18px;
    margin-bottom: 28px;
  }

  .stat-grid__value {
    font-size: 1.8rem;
  }
}
