:root {
  --bg: #f3efe5;
  --surface: rgba(255, 251, 245, 0.84);
  --surface-strong: #fffaf0;
  --ink: #1f2a22;
  --muted: #516057;
  --line: rgba(31, 42, 34, 0.12);
  --accent: #a6653f;
  --accent-strong: #734328;
  --highlight: #d9c6a3;
  --shadow: 0 24px 80px rgba(41, 37, 28, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max-width: 1180px;
  --hero-title-size: clamp(1.65rem, 2.05vw, 2.45rem);
  --hero-title-size-mobile: clamp(1.45rem, 3.85vw, 1.95rem);
  --hero-title-size-small: clamp(1.28rem, 5.1vw, 1.58rem);
  --subpage-hero-title-max-desktop: 28ch;
  --subpage-hero-title-max-mobile: 16ch;
  --subpage-hero-title-max-small: 15ch;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(217, 198, 163, 0.9), transparent 32%),
    radial-gradient(circle at top right, rgba(166, 101, 63, 0.16), transparent 28%),
    linear-gradient(180deg, #f6f1e7 0%, #ece6db 100%);
}

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

p {
  margin: 0;
  line-height: 1.65;
  color: var(--muted);
  overflow-wrap: break-word;
}

ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  line-height: 1.6;
}

h1,
h2,
h3,
strong,
summary {
  color: var(--ink);
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
}

h1,
h2,
h3,
.brand-name,
.button,
.nav-cta {
  letter-spacing: -0.03em;
}

h1 {
  margin: 0;
  width: min(100%, 9.8ch);
  max-width: 100%;
  font-size: clamp(2.35rem, 3.1vw, 3.55rem);
  line-height: 1.04;
  text-wrap: pretty;
}

h2 {
  margin: 0;
  max-width: 28ch;
  font-size: clamp(1.9rem, 2.15vw, 2.55rem);
  line-height: 1.14;
  text-wrap: pretty;
}

h3 {
  margin: 0 0 0.65rem;
  font-size: 1.2rem;
}

.page-shell {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.site-header {
  position: sticky;
  top: 20px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 18px;
  margin-bottom: 30px;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(255, 250, 240, 0.82);
  border-color: var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.brand-lockup {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}

.brand-kicker {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.brand-name {
  font-family: "Instrument Serif", serif;
  font-size: clamp(1.45rem, 2vw, 1.75rem);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.96rem;
  font-weight: 600;
}

.site-nav a {
  opacity: 0.9;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  opacity: 1;
}

.site-nav a.is-active {
  color: var(--accent-strong);
}

.brand-link {
  color: inherit;
}

.nav-cta {
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #faf4ea;
}

.menu-toggle {
  display: none;
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255, 250, 240, 0.78);
  font: inherit;
  font-weight: 700;
  color: var(--ink);
}

.hero,
.section,
.proof-strip,
.site-footer,
.page-hero {
  position: relative;
}

.page-shell-dashboard {
  width: min(calc(100% - 32px), 1600px);
  padding-bottom: 72px;
}

.dashboard-layout {
  display: grid;
  gap: 22px;
  width: min(100%, 1560px);
}

.dashboard-hero,
.dashboard-metric-card,
.dashboard-project-card,
.dashboard-detail-card,
.dashboard-empty-state {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 251, 245, 0.95), rgba(247, 241, 232, 0.88));
  box-shadow: var(--shadow);
}

.dashboard-hero {
  padding: 36px 40px;
}

.dashboard-hero-compact {
  display: grid;
  gap: 16px;
}

.dashboard-summary-grid,
.dashboard-project-grid,
.dashboard-detail-shell,
.dashboard-filter-shell {
  display: grid;
  gap: 18px;
}

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

.dashboard-project-grid,
.dashboard-detail-shell {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-filter-shell {
  grid-template-columns: 1fr;
}

.dashboard-metric-card,
.dashboard-project-card,
.dashboard-detail-card,
.dashboard-empty-state {
  padding: 24px 26px;
}

.dashboard-card-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 14px;
}

.dashboard-card-header h2 {
  max-width: none;
  font-size: 1.5rem;
}

.dashboard-inline-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.dashboard-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(31, 42, 34, 0.08);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 700;
}

.dashboard-chip-priority {
  background: rgba(166, 101, 63, 0.14);
  color: var(--accent-strong);
  text-transform: capitalize;
}

.dashboard-chip-blocked {
  background: rgba(135, 32, 52, 0.12);
  color: #6b1c2c;
}

.dashboard-chip-in_progress {
  background: rgba(166, 101, 63, 0.15);
  color: var(--accent-strong);
}

.dashboard-chip-in_review {
  background: rgba(47, 96, 76, 0.14);
  color: #214b39;
}

.dashboard-chip-todo {
  background: rgba(90, 101, 130, 0.14);
  color: #33405c;
}

.dashboard-chip-done {
  background: rgba(61, 122, 77, 0.14);
  color: #255131;
}

.dashboard-footnote {
  margin-top: 18px;
  font-size: 0.92rem;
}

.dashboard-footnote code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.84rem;
}

.dashboard-filter-row,
.dashboard-filter-controls,
.dashboard-view-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dashboard-filter-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255, 250, 240, 0.72);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
}

.dashboard-filter-pill.is-active {
  background: var(--ink);
  color: #fff7ee;
}

.dashboard-select-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 700;
}

.dashboard-select-wrap select {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  padding: 8px 10px;
  font: inherit;
}

.dashboard-progress-wrap {
  margin: 14px 0;
}

.dashboard-progress-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.dashboard-progress-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(31, 42, 34, 0.12);
  overflow: hidden;
}

.dashboard-progress-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
}

.dashboard-progress-bar.is-completed span { background: #2f7d32; }
.dashboard-progress-bar.is-waiting span { background: #a87a14; }
.dashboard-progress-bar.is-active span { background: #2d6799; }
.dashboard-progress-bar.is-blocked span { background: #9b2236; }
.dashboard-progress-bar.is-neutral span { background: #6d6f76; }

.dashboard-tech-details {
  margin: 14px 0;
}

.dashboard-tech-details summary {
  cursor: pointer;
  font-weight: 700;
}

.dashboard-tech-details code {
  display: block;
  margin-top: 10px;
  overflow-x: auto;
  font-size: 0.82rem;
}

.dashboard-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 251, 245, 0.9);
  box-shadow: var(--shadow);
}

.dashboard-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

.dashboard-table th:nth-child(1),
.dashboard-table td:nth-child(1) { width: 16rem; }

.dashboard-table th:nth-child(8),
.dashboard-table td:nth-child(8) { width: 24rem; }

.dashboard-table th:nth-child(2),
.dashboard-table td:nth-child(2),
.dashboard-table th:nth-child(3),
.dashboard-table td:nth-child(3),
.dashboard-table th:nth-child(4),
.dashboard-table td:nth-child(4) { width: 8rem; }

.dashboard-table th:nth-child(7),
.dashboard-table td:nth-child(7) { width: 11rem; }

.dashboard-table th,
.dashboard-table td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.dashboard-table th {
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-strong);
}

.dashboard-issue-link {
  color: var(--accent-strong);
  text-decoration: underline;
}

.dashboard-issue-list {
  display: grid;
  gap: 12px;
}

.dashboard-issue-row {
  display: grid;
  gap: 12px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
}

.dashboard-issue-row strong {
  display: block;
  margin-bottom: 6px;
}

.dashboard-issue-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.review-banner {
  margin-bottom: 16px;
  padding: 14px 18px;
  border: 1px solid rgba(115, 67, 40, 0.16);
  border-radius: 999px;
  background: rgba(255, 248, 239, 0.9);
  color: var(--accent-strong);
  font-size: 0.92rem;
  font-weight: 700;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 400px);
  gap: 20px;
  align-items: start;
  padding: 30px 0 24px;
}

.hero-copy,
.hero-panel,
.proof-card,
.service-card,
.timeline-step,
.comparison-card,
.fit-card,
.faq-list details,
.legal-card,
.cta-card {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  min-width: 0;
}

.hero-copy,
.hero-panel,
.legal-card,
.cta-card {
  background: linear-gradient(180deg, rgba(255, 251, 245, 0.95), rgba(247, 241, 232, 0.88));
  border-radius: var(--radius-xl);
}

.hero-copy {
  padding: 36px 40px 34px;
  overflow: visible;
}

.hero-copy h1 {
  width: min(100%, 17.5ch);
  max-width: 17.5ch;
  font-size: var(--hero-title-size);
  line-height: 1.08;
  text-wrap: balance;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.hero-text,
.hero-supporting {
  max-width: 58ch;
  font-size: 1.03rem;
}

.hero-supporting {
  margin-top: 1rem;
  max-width: 54ch;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
}

.button-primary {
  background: var(--accent-strong);
  color: #fff8f0;
}

.button-secondary {
  background: rgba(255, 250, 240, 0.82);
  border: 1px solid var(--line);
}

.hero-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.hero-panel-visual {
  gap: 14px;
}

.hero-panel-visual .visual-card {
  background: linear-gradient(180deg, rgba(255, 247, 236, 0.96), rgba(244, 234, 221, 0.9));
}

.hero-visual-card,
.support-visual-card {
  background: linear-gradient(180deg, rgba(255, 247, 236, 0.96), rgba(244, 234, 221, 0.9));
}

.hero-visual-card .motif,
.support-visual-card .motif {
  height: 96px;
}

.hero-visual-card p,
.support-visual-card p {
  margin-bottom: 0.85rem;
}

.local-nav-label {
  display: inline-block;
  margin: 4px 2px 0;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

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

.panel-card {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(248, 242, 232, 0.9);
}

.panel-card-large {
  min-height: 0;
  background:
    linear-gradient(135deg, rgba(31, 42, 34, 0.96), rgba(77, 57, 40, 0.92)),
    #20261f;
}

.panel-card-large strong,
.panel-card-large p,
.panel-card-large li,
.panel-card-large .panel-label {
  color: #f4eee3;
}

.panel-card strong {
  display: block;
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
}

.panel-label {
  display: inline-block;
  margin-bottom: 0.6rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 8px 0 70px;
}

.proof-card,
.service-card,
.timeline-step,
.comparison-card,
.fit-card,
.faq-list details {
  border-radius: var(--radius-lg);
  background: rgba(255, 249, 240, 0.74);
}

.proof-card {
  padding: 20px;
}

.proof-card strong {
  display: block;
  margin-bottom: 0.55rem;
}

.proof-card-link,
.timeline-link {
  display: block;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.proof-card-link:hover,
.proof-card-link:focus-visible,
.timeline-link:hover,
.timeline-link:focus-visible,
.service-card:hover,
.service-card:focus-within {
  transform: translateY(-2px);
  border-color: rgba(115, 67, 40, 0.28);
  box-shadow: 0 28px 80px rgba(41, 37, 28, 0.16);
}

.service-card-link {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 100%;
  min-width: 0;
}

.service-card-link.is-static {
  gap: 10px;
}

.text-link {
  margin-top: auto;
  padding-top: 1rem;
  font-weight: 700;
  color: var(--accent-strong);
}

.section {
  margin-bottom: 72px;
}

.section-heading {
  max-width: 1120px;
  margin-bottom: 24px;
  min-width: 0;
}

.section-heading h2 {
  max-width: 30ch;
}

.section-heading p:last-child {
  max-width: 78ch;
}

.section-heading p:last-child {
  margin-top: 1rem;
}

.services .section-heading {
  max-width: min(100%, 1040px);
}

.services .section-heading h2 {
  max-width: 36ch;
}

.services .section-heading p:last-child {
  max-width: 84ch;
}

.service-grid,
.timeline,
.comparison-grid,
.fit-grid {
  display: grid;
  gap: 18px;
}

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

.service-group-label {
  margin: 0 0 16px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.service-card,
.timeline-step,
.comparison-card,
.fit-card {
  padding: 24px;
}

.service-card-primary {
  background: linear-gradient(180deg, rgba(255, 250, 242, 0.96), rgba(244, 234, 221, 0.9));
}

.service-meta,
.breadcrumb,
.local-nav a {
  font-size: 0.82rem;
  font-weight: 700;
}

.service-meta {
  color: var(--accent-strong);
}

.service-card-lede {
  max-width: 34ch;
}

.service-bullets {
  margin-top: 0.1rem;
}

.service-card-footer {
  margin-top: auto;
  padding-top: 0.25rem;
  font-weight: 800;
  color: var(--accent-strong);
}

.timeline-link {
  color: inherit;
}

.section-actions {
  margin-top: 22px;
}

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

.timeline-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: rgba(166, 101, 63, 0.12);
  color: var(--accent-strong);
  font-weight: 800;
}

.timeline-step strong {
  display: block;
  margin-top: 1rem;
}

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

.comparison-card-muted {
  background: rgba(237, 231, 220, 0.76);
}

.comparison-card-accent {
  background: linear-gradient(180deg, rgba(166, 101, 63, 0.16), rgba(255, 248, 239, 0.94));
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-list details {
  padding: 18px 20px;
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
}

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

.faq-list summary::after {
  content: "▼";
  float: right;
  transition: transform 180ms ease;
}
details[open] .faq-list summary::after,
.faq-list details[open] summary::after {
  transform: rotate(180deg);
}

.faq-list details p {
  margin-top: 0.9rem;
}

.legal-card,
.cta-card {
  padding: 30px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 4px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.subpage-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 340px);
  gap: 20px;
  align-items: start;
}

.subpage-hero .hero-copy {
  padding: 32px 40px 30px;
}

.breadcrumb {
  margin: 0 0 1rem;
  color: var(--muted);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.breadcrumb li + li::before {
  content: "/";
  color: var(--muted);
}

.breadcrumb [aria-current="page"] {
  color: var(--ink);
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible,
.local-nav a:hover,
.local-nav a:focus-visible,
.service-card-link:hover,
.service-card-link:focus-visible,
.related-link:hover,
.related-link:focus-visible {
  color: var(--accent-strong);
}

.local-nav {
  display: grid;
  gap: 12px;
  padding: 10px 2px 2px;
}

.local-nav a {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 249, 240, 0.8);
  color: var(--ink);
}

.detail-grid,
.related-grid {
  display: grid;
  gap: 18px;
}

.legal-grid {
  align-items: start;
}

.legal-card-block {
  display: grid;
  gap: 14px;
}

.legal-list {
  display: grid;
  gap: 16px;
  margin: 0;
}

.legal-list div {
  display: grid;
  gap: 6px;
}

.legal-list dt {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.legal-list dd {
  margin: 0;
  color: var(--ink);
}

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

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

.related-grid--3 {
  margin-top: 1rem;
}

.related-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
}

.related-link {
  padding: 24px;
  border-radius: var(--radius-lg);
}

.info-band .cta-card h2 {
  max-width: 26ch;
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 420px);
  gap: 20px;
  align-items: start;
  margin-bottom: 72px;
}

.page-breadcrumb {
  margin-bottom: 1rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--accent-strong);
}

.page-breadcrumb a {
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.14em;
}

.page-panel {
  gap: 18px;
}

.subpage-hero .hero-copy h1,
.page-hero .hero-copy h1 {
  width: min(100%, var(--subpage-hero-title-max-desktop));
  max-width: var(--subpage-hero-title-max-desktop);
  font-size: var(--hero-title-size);
}

.page-summary-card,
.metric-card,
.content-card,
.visual-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 249, 240, 0.78);
  box-shadow: var(--shadow);
}

.metric-list,
.page-content-grid,
.visual-grid {
  display: grid;
  gap: 18px;
}

.metric-card,
.content-card,
.visual-card {
  padding: 22px;
}

.visual-card p + ul,
.content-card p + ul {
  margin-top: 0.9rem;
}

.visual-list {
  display: grid;
  gap: 0.45rem;
  padding-left: 1rem;
}

.support-visual-grid {
  align-items: start;
  margin-bottom: 18px;
}

.support-visual-copy {
  display: grid;
  gap: 14px;
}

.support-visual-section .section-heading {
  margin-bottom: 18px;
}

.support-visual-copy strong {
  display: block;
  margin-bottom: 0.35rem;
}

.visual-asset-frame,
.visual-asset-card {
  margin: 0;
}

.visual-asset-frame img,
.visual-asset-card img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fffaf0;
}

.visual-asset-card picture {
  display: block;
}

.hero-asset-frame img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.visual-asset-caption {
  display: block;
  margin-top: 0.9rem;
}

.visual-asset-caption strong {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 1.04rem;
}

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

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

.visual-card strong,
.metric-card strong {
  display: block;
  margin-bottom: 0.6rem;
  font-size: 1.04rem;
}

.reading-guide {
  margin-top: -6px;
}

.reading-guide .section-heading h2 {
  max-width: 24ch;
}

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

.reading-guide-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 250, 242, 0.82);
  box-shadow: var(--shadow);
}

.reading-guide-card .eyebrow {
  margin-bottom: 0.65rem;
}

.reading-guide-card h3 {
  margin-bottom: 0.55rem;
}

.scan-note {
  margin-bottom: 1rem;
}

.analysis-question-grid,
.process-step-grid {
  margin-top: 1rem;
}

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

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

.analysis-question-grid h3,
.process-step-grid h3 {
  margin-bottom: 0.6rem;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.data-signal-grid {
  margin-top: 1rem;
}

.key-takeaway-card {
  margin-top: 1rem;
  border-style: dashed;
}

.trust-boundary-card {
  background: linear-gradient(180deg, rgba(255, 247, 236, 0.94), rgba(255, 243, 229, 0.84));
}

.trust-boundary-card .visual-list {
  margin-bottom: 0.95rem;
}

.visual-grid-linked {
  margin-top: 1rem;
}

.detail-section .content-card {
  max-width: 86ch;
}

.detail-section .content-card > h3 {
  margin-bottom: 0.9rem;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.detail-section .content-card p + p {
  margin-top: 0.95rem;
}

.page-ecommerce-analysen .hero-text,
.page-ecommerce-analysen .section-heading p:last-child,
.page-ecommerce-analysen .content-card p,
.page-ecommerce-analysen .visual-card p,
.page-ecommerce-analysen .reading-guide-card p,
.page-ecommerce-analysen .faq-list details p,
.page-ecommerce-analysen .cta-card p {
  font-size: clamp(1.06rem, 0.99rem + 0.34vw, 1.13rem);
  line-height: 1.72;
}

.page-ecommerce-analysen .content-card li,
.page-ecommerce-analysen .visual-card li,
.page-ecommerce-analysen .faq-list li {
  font-size: clamp(1.04rem, 0.98rem + 0.27vw, 1.1rem);
  line-height: 1.7;
}

.page-ecommerce-analysen .content-card p + p,
.page-ecommerce-analysen .visual-card p + p,
.page-ecommerce-analysen .reading-guide-card p + p,
.page-ecommerce-analysen .faq-list details p + p {
  margin-top: 1.15rem;
}

.page-automatisierung-ki-prozesse .hero-asset-frame img {
  aspect-ratio: 1440 / 790;
  object-fit: contain;
}

.page-automatisierung-ki-prozesse .image-feature-grid {
  align-items: stretch;
}

.page-automatisierung-ki-prozesse .process-image-card {
  display: flex;
  flex-direction: column;
}

.page-automatisierung-ki-prozesse .process-image-card img {
  object-fit: contain;
}

.page-automatisierung-ki-prozesse .process-image-card .visual-asset-caption {
  margin-top: auto;
  padding-top: 0.9rem;
}

.motif {
  position: relative;
  height: 82px;
  margin-bottom: 1rem;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(166, 101, 63, 0.16), rgba(255, 248, 239, 0.84)),
    rgba(250, 244, 234, 0.9);
  overflow: hidden;
}

.motif span {
  position: absolute;
  display: block;
  background: rgba(115, 67, 40, 0.22);
}

.motif-ledger span:nth-child(1),
.motif-ledger span:nth-child(2),
.motif-ledger span:nth-child(3) {
  left: 12%;
  right: 12%;
  height: 8px;
  border-radius: 999px;
}

.motif-ledger span:nth-child(1) {
  top: 20px;
}

.motif-ledger span:nth-child(2) {
  top: 38px;
  right: 28%;
}

.motif-ledger span:nth-child(3) {
  top: 56px;
  right: 44%;
}

.motif-flow span:nth-child(1),
.motif-flow span:nth-child(2),
.motif-flow span:nth-child(3) {
  top: 34px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
}

.motif-flow span:nth-child(1) {
  left: 14%;
}

.motif-flow span:nth-child(2) {
  left: calc(50% - 9px);
}

.motif-flow span:nth-child(3) {
  right: 14%;
}

.motif-flow::after {
  content: "";
  position: absolute;
  top: 42px;
  left: 18%;
  right: 18%;
  height: 2px;
  background: rgba(115, 67, 40, 0.3);
}

.motif-signal span:nth-child(1),
.motif-signal span:nth-child(2),
.motif-signal span:nth-child(3) {
  bottom: 16px;
  width: 14px;
  border-radius: 999px 999px 0 0;
}

.motif-signal span:nth-child(1) {
  left: 22%;
  height: 24px;
}

.motif-signal span:nth-child(2) {
  left: calc(50% - 7px);
  height: 38px;
}

.motif-signal span:nth-child(3) {
  right: 22%;
  height: 54px;
}

.motif-stack span:nth-child(1),
.motif-stack span:nth-child(2),
.motif-stack span:nth-child(3) {
  left: 20%;
  right: 20%;
  height: 18px;
  border-radius: 12px;
}

.motif-stack span:nth-child(1) {
  top: 18px;
}

.motif-stack span:nth-child(2) {
  top: 36px;
  left: 25%;
  right: 15%;
}

.motif-stack span:nth-child(3) {
  top: 54px;
  left: 30%;
  right: 10%;
}

.motif-check span:nth-child(1) {
  width: 24px;
  height: 10px;
  left: 26%;
  top: 46px;
  transform: rotate(42deg);
  border-radius: 999px;
}

.motif-check span:nth-child(2) {
  width: 42px;
  height: 10px;
  left: 40%;
  top: 36px;
  transform: rotate(-46deg);
  border-radius: 999px;
}

.motif-check span:nth-child(3) {
  inset: 16px;
  border: 2px solid rgba(115, 67, 40, 0.16);
  background: transparent;
  border-radius: 18px;
}

.motif-bars span:nth-child(1),
.motif-bars span:nth-child(2),
.motif-bars span:nth-child(3) {
  bottom: 16px;
  width: 18%;
  border-radius: 12px 12px 0 0;
}

.motif-bars span:nth-child(1) {
  left: 16%;
  height: 34px;
}

.motif-bars span:nth-child(2) {
  left: 41%;
  height: 48px;
}

.motif-bars span:nth-child(3) {
  right: 16%;
  height: 24px;
}

.motif-grid span:nth-child(1),
.motif-grid span:nth-child(2),
.motif-grid span:nth-child(3) {
  top: 18px;
  bottom: 18px;
  width: 18%;
  border-radius: 14px;
}

.motif-grid span:nth-child(1) {
  left: 16%;
}

.motif-grid span:nth-child(2) {
  left: 41%;
}

.motif-grid span:nth-child(3) {
  right: 16%;
}

.motif-matrix span:nth-child(1),
.motif-matrix span:nth-child(2),
.motif-matrix span:nth-child(3) {
  top: 18px;
  bottom: 18px;
  width: 2px;
  border-radius: 999px;
}

.motif-matrix span:nth-child(1) {
  left: 24%;
}

.motif-matrix span:nth-child(2) {
  left: 50%;
}

.motif-matrix span:nth-child(3) {
  right: 24%;
}

.motif-matrix::before,
.motif-matrix::after {
  content: "";
  position: absolute;
  left: 16%;
  right: 16%;
  height: 2px;
  border-radius: 999px;
  background: rgba(115, 67, 40, 0.28);
}

.motif-matrix::before {
  top: 30px;
}

.motif-matrix::after {
  bottom: 26px;
}

.motif-friction span:nth-child(1),
.motif-friction span:nth-child(2),
.motif-friction span:nth-child(3) {
  border-radius: 999px;
}

.motif-friction span:nth-child(1) {
  left: 16%;
  top: 22px;
  width: 34%;
  height: 10px;
  transform: rotate(14deg);
}

.motif-friction span:nth-child(2) {
  right: 18%;
  top: 42px;
  width: 28%;
  height: 10px;
  transform: rotate(-18deg);
}

.motif-friction span:nth-child(3) {
  left: calc(50% - 9px);
  top: 30px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(115, 67, 40, 0.34);
}

.motif-board span:nth-child(1) {
  top: 16px;
  left: 16%;
  width: 30%;
  height: 14px;
  border-radius: 10px;
}

.motif-board span:nth-child(2) {
  top: 16px;
  right: 16%;
  width: 24%;
  height: 14px;
  border-radius: 10px;
}

.motif-board span:nth-child(3) {
  left: 16%;
  right: 16%;
  bottom: 18px;
  height: 34px;
  border-radius: 16px;
}

.motif-board::before,
.motif-board::after {
  content: "";
  position: absolute;
  height: 2px;
  background: rgba(115, 67, 40, 0.28);
}

.motif-board::before {
  top: 38px;
  left: 30%;
  width: 18%;
  transform: rotate(18deg);
}

.motif-board::after {
  top: 38px;
  right: 28%;
  width: 18%;
  transform: rotate(-18deg);
}

@media (max-width: 1240px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .subpage-hero,
  .page-hero {
    grid-template-columns: 1fr;
  }

  .section-heading {
    max-width: 880px;
  }
}

@media (max-width: 1080px) {
  .page-shell-dashboard,
  .dashboard-layout,
  .dashboard-project-grid.is-table {
    width: 100%;
    max-width: 100%;
  }

  .dashboard-table {
    table-layout: auto;
    min-width: 1100px;
  }

  .dashboard-summary-grid,
  .dashboard-project-grid,
  .dashboard-detail-shell,
  .service-grid,
  .timeline,
  .proof-strip,
  .comparison-grid,
  .fit-grid,
  .detail-grid,
  .related-grid,
  .page-content-grid,
  .visual-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .page-shell {
    width: min(calc(100% - 16px), var(--max-width));
    padding-top: 12px;
    padding-bottom: 40px;
  }

  .site-header {
    top: 10px;
    gap: 12px;
    padding: 14px 16px;
    margin-bottom: 20px;
    border-radius: 28px;
  }

  .brand-lockup {
    min-width: 0;
    gap: 8px;
  }

  .brand-kicker {
    font-size: 0.72rem;
    letter-spacing: 0.15em;
  }

  .brand-name {
    font-size: 1.35rem;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 12px;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 250, 240, 0.94);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
  }

  .site-nav a {
    padding: 8px 4px;
  }

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

  .nav-cta {
    width: 100%;
    text-align: center;
  }

  .hero-copy,
  .hero-panel,
  .dashboard-hero,
  .dashboard-metric-card,
  .dashboard-project-card,
  .dashboard-detail-card,
  .dashboard-empty-state,
  .proof-card,
  .service-card,
  .timeline-step,
  .comparison-card,
  .fit-card,
  .faq-list details,
  .legal-card,
  .cta-card,
  .metric-card,
  .content-card,
  .visual-card {
    border-radius: 24px;
  }

  .hero {
    gap: 18px;
    padding: 16px 0 16px;
  }

  .hero-copy {
    padding: 30px 24px;
  }

  h1 {
    max-width: none;
    width: 100%;
    font-size: clamp(1.95rem, 5.1vw, 2.8rem);
    line-height: 1.08;
  }

  .hero-copy h1 {
    width: min(100%, 15.5ch);
    max-width: 15.5ch;
    font-size: var(--hero-title-size-mobile);
  }

  .subpage-hero .hero-copy h1,
  .page-hero .hero-copy h1 {
    width: min(100%, var(--subpage-hero-title-max-mobile));
    max-width: var(--subpage-hero-title-max-mobile);
    font-size: var(--hero-title-size-mobile);
  }

  h2 {
    max-width: none;
    font-size: clamp(1.55rem, 5.2vw, 2rem);
    line-height: 1.12;
  }

  .eyebrow {
    margin-bottom: 0.8rem;
    font-size: 0.76rem;
    letter-spacing: 0.15em;
  }

  .hero-text,
  .hero-supporting,
  .section-heading p:last-child,
  .legal-card p,
  .cta-card p {
    font-size: 0.98rem;
  }

  .page-ecommerce-analysen .hero-text,
  .page-ecommerce-analysen .section-heading p:last-child,
  .page-ecommerce-analysen .content-card p,
  .page-ecommerce-analysen .visual-card p,
  .page-ecommerce-analysen .reading-guide-card p,
  .page-ecommerce-analysen .faq-list details p,
  .page-ecommerce-analysen .cta-card p,
  .page-ecommerce-analysen .content-card li,
  .page-ecommerce-analysen .visual-card li,
  .page-ecommerce-analysen .faq-list li {
    font-size: 1.01rem;
    line-height: 1.68;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 1.5rem;
  }

  .button {
    width: 100%;
    min-height: 50px;
    padding: 0 16px;
  }

  .hero-panel,
  .dashboard-hero,
  .dashboard-metric-card,
  .dashboard-project-card,
  .dashboard-detail-card,
  .dashboard-empty-state,
  .legal-card,
  .cta-card,
  .metric-card,
  .content-card,
  .visual-card {
    padding: 22px 18px;
  }

  .panel-card,
  .proof-card,
  .service-card,
  .timeline-step,
  .comparison-card,
  .fit-card,
  .faq-list details {
    padding: 20px 18px;
  }

  .panel-card-large {
    min-height: 0;
  }

  .section {
    margin-bottom: 52px;
  }

  .section-heading {
    margin-bottom: 18px;
  }

  .proof-strip,
  .service-grid,
  .timeline,
  .comparison-grid,
  .fit-grid,
  .reading-guide-grid,
  .detail-grid,
  .related-grid,
  .page-content-grid,
  .visual-grid,
  .process-step-grid,
  .analysis-question-grid {
    grid-template-columns: 1fr;
  }

  .service-group-label {
    margin-bottom: 12px;
    font-size: 0.74rem;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-top: 12px;
  }

  .dashboard-card-header {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: clamp(1.6rem, 7vw, 2.05rem);
    line-height: 1.1;
  }

  h2 {
    font-size: clamp(1.32rem, 5.8vw, 1.72rem);
    line-height: 1.12;
  }

  h3 {
    font-size: 1.08rem;
  }

  .page-shell {
    width: min(calc(100% - 12px), var(--max-width));
  }

  .site-header {
    padding: 12px 14px;
  }

  .brand-lockup {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .hero-copy {
    padding: 24px 18px;
  }

  .hero-copy h1 {
    width: min(100%, 14.5ch);
    max-width: 14.5ch;
    font-size: var(--hero-title-size-small);
  }

  .subpage-hero .hero-copy h1,
  .page-hero .hero-copy h1 {
    width: min(100%, var(--subpage-hero-title-max-small));
    max-width: var(--subpage-hero-title-max-small);
    font-size: var(--hero-title-size-small);
  }

  .hero-panel,
  .dashboard-hero,
  .dashboard-metric-card,
  .dashboard-project-card,
  .dashboard-detail-card,
  .dashboard-empty-state,
  .legal-card,
  .cta-card,
  .panel-card,
  .proof-card,
  .service-card,
  .timeline-step,
  .comparison-card,
  .fit-card,
  .faq-list details,
  .metric-card,
  .content-card,
  .visual-card {
    padding-left: 16px;
    padding-right: 16px;
  }

  .proof-strip {
    margin-bottom: 48px;
  }

  .service-group-label,
  .breadcrumb,
  .local-nav a {
    font-size: 0.76rem;
  }

  .footer-links {
    gap: 10px;
  }
}
