:root {
  --bg: #f4efe6;
  --surface: rgba(255, 255, 255, 0.8);
  --surface-strong: #fff9f1;
  --text: #201d1a;
  --muted: #61584f;
  --line: rgba(32, 29, 26, 0.12);
  --brand: #b85d2a;
  --brand-dark: #8f431a;
  --accent: #1b6a68;
  --accent-soft: rgba(27, 106, 104, 0.12);
  --shadow: 0 28px 80px rgba(46, 29, 12, 0.12);
  --radius: 24px;
  --font-display: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Avenir Next", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  background:
    radial-gradient(circle at 10% 0%, rgba(184, 93, 42, 0.14), transparent 28%),
    radial-gradient(circle at 85% 15%, rgba(27, 106, 104, 0.16), transparent 24%),
    linear-gradient(180deg, #fbf6ee 0%, var(--bg) 100%);
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: #fff;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  z-index: 20;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.narrow {
  max-width: 760px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  overflow: visible;
  backdrop-filter: blur(18px);
  background: rgba(251, 246, 238, 0.78);
  border-bottom: 1px solid var(--line);
}

.header-row {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.65rem;
}

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

.brand-mark {
  width: 2.8rem;
  height: 2.8rem;
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
}

.brand small,
.eyebrow,
.footer-note,
.stat-strip span,
.text-link {
  color: var(--muted);
}

.brand strong,
.site-footer h2,
.site-footer h3 {
  display: block;
}

.brand span:last-child {
  min-width: 0;
}

.brand small {
  display: block;
  max-width: 34ch;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-height: 46px;
  padding: 0.7rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  font: inherit;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle span {
  display: block;
  font-size: 0.8125rem;
}

.nav-shell {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.main-nav {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 0.5rem;
}

.main-nav a,
.lang-switch {
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a[aria-current="page"],
.lang-switch:hover {
  background: rgba(255, 255, 255, 0.8);
}

.lang-switch {
  border: 1px solid var(--line);
  font-weight: 700;
}

.hero-section,
.page-hero {
  padding: 4.5rem 0 2rem;
}

.hero-grid,
.split-grid,
.contact-layout,
.cta-band,
.footer-grid {
  display: grid;
  gap: 1.5rem;
}

.hero-grid {
  grid-template-columns: 1.4fr 0.95fr;
  align-items: center;
}

.hero-section h1,
.page-hero h1,
.article-shell h1,
.section-heading h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 6vw, 5rem);
  line-height: 0.94;
  letter-spacing: -0.03em;
}

.page-hero h1,
.article-shell h1 {
  font-size: clamp(2.3rem, 5vw, 4rem);
}

.hero-copy,
.page-hero p,
.article-lead {
  font-size: 1.1rem;
  max-width: 60ch;
}

.eyebrow {
  margin: 0 0 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.84rem;
}

.button-row,
.cta-band {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
}

.button-primary {
  background: linear-gradient(135deg, var(--brand), #d67b49);
  color: #fff;
  box-shadow: var(--shadow);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.84);
  border-color: var(--line);
}

.panel,
.card,
.case-card,
.contact-form,
.mini-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.panel,
.card,
.case-card,
.contact-form,
.mini-box {
  padding: 1.4rem;
}

.card-accent {
  background: linear-gradient(180deg, rgba(27, 106, 104, 0.12), rgba(255, 255, 255, 0.78));
}

.card-plain {
  background: rgba(255, 255, 255, 0.68);
}

.stat-strip {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.stat-strip li {
  min-width: 160px;
}

.stat-strip strong,
.case-stat {
  display: block;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--brand-dark);
}

.page-section {
  padding: 1.5rem 0 3rem;
}

.section-accent {
  background: linear-gradient(180deg, rgba(27, 106, 104, 0.08), rgba(255, 255, 255, 0));
}

.section-heading {
  margin-bottom: 1.5rem;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.card-grid,
.case-grid,
.faq-list {
  display: grid;
  gap: 1.25rem;
}

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

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

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

.feature-list,
.check-list {
  padding-left: 1.2rem;
}

.feature-list li,
.check-list li {
  margin-bottom: 0.55rem;
}

.text-link {
  font-weight: 700;
}

.cta-band {
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(27, 106, 104, 0.1));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
}

.faq-item {
  padding: 1rem 1.2rem;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
  border-radius: 1rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
}

.faq-item p {
  margin: 0.8rem 0 0;
}

.faq-item h3 {
  margin: 0;
  font-size: 1.02rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-form label {
  display: grid;
  gap: 0.45rem;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  font: inherit;
  background: rgba(255, 255, 255, 0.92);
}

.contact-form input:focus,
.contact-form textarea:focus,
.main-nav a:focus,
.nav-toggle:focus,
.lang-switch:focus,
.button:focus,
.text-link:focus,
.faq-item summary:focus {
  outline: 3px solid rgba(27, 106, 104, 0.28);
  outline-offset: 3px;
}

.form-status {
  min-height: 1.5rem;
  margin: 0;
  color: var(--accent);
  font-weight: 700;
}

.article-shell {
  padding: 4rem 0;
}

.service-page .page-hero {
  padding-top: 5rem;
}

.home-page .page-hero {
  position: relative;
  padding-top: 5.75rem;
}

.home-page .page-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 100%;
  background:
    radial-gradient(circle at 12% 18%, rgba(184, 93, 42, 0.16), transparent 30%),
    radial-gradient(circle at 88% 16%, rgba(27, 106, 104, 0.16), transparent 26%);
  pointer-events: none;
}

.home-page .page-hero .container,
.home-summary-section .container,
.home-page .page-section .container {
  position: relative;
  z-index: 1;
}

.service-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 1.5rem;
  align-items: start;
}

.service-hero-copy {
  max-width: 760px;
}

.home-page .service-hero-copy h1 {
  max-width: 12ch;
}

.home-page .service-hero-copy > p:not(.eyebrow) {
  max-width: 58ch;
  font-size: 1.14rem;
}

.service-hero-copy .button-row {
  margin-top: 1.4rem;
}

.home-capability-strip {
  gap: 0.9rem;
}

.home-capability-strip li {
  min-width: 0;
  flex: 1 1 180px;
  padding: 1rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(8px);
}

.home-capability-strip strong {
  font-size: 1.1rem;
  letter-spacing: 0.01em;
}

.home-capability-strip span {
  display: block;
  margin-top: 0.35rem;
}

.service-hero-panel {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(27, 106, 104, 0.14), rgba(255, 255, 255, 0.86)),
    rgba(255, 255, 255, 0.82);
}

.home-page .service-hero-panel {
  padding: 1.7rem;
  border-color: rgba(27, 106, 104, 0.18);
  box-shadow: 0 28px 88px rgba(29, 24, 18, 0.12);
}

.service-hero-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--accent), var(--brand));
}

.service-hero-panel h2,
.service-detail-card h2,
.service-not-fit-card h2,
.service-process-card h3 {
  margin-top: 0;
}

.service-hero-note {
  margin: 1rem 0 0;
  color: var(--muted);
}

.home-summary-section {
  padding-top: 0.6rem;
}

.home-summary-grid {
  align-items: stretch;
}

.home-summary-card,
.home-principle-card,
.home-service-card,
.home-focus-card,
.home-process-card,
.home-insight-card {
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.home-summary-card {
  padding: 1.6rem;
}

.home-summary-card h2,
.home-principle-card h2 {
  margin-top: 0;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  line-height: 0.98;
}

.home-service-grid,
.home-focus-grid,
.home-insights-grid {
  align-items: stretch;
}

.home-service-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 249, 241, 0.84));
}

.home-service-card h3,
.home-focus-card h3,
.home-process-card h3,
.home-insight-card h3 {
  margin-top: 0;
}

.home-service-card:hover,
.home-focus-card:hover,
.home-process-card:hover,
.home-insight-card:hover,
.home-summary-card:hover,
.home-principle-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 28px 72px rgba(46, 29, 12, 0.12);
}

.home-focus-card {
  border-color: rgba(27, 106, 104, 0.16);
}

.home-principles-grid {
  align-items: stretch;
}

.home-principle-card {
  padding: 1.6rem;
}

.home-process-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 239, 230, 0.86));
}

.home-insight-card {
  background: rgba(255, 255, 255, 0.72);
}

.home-page .text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.home-page .text-link::after {
  content: "->";
  font-size: 0.9em;
}

.service-problem-card,
.service-detail-card,
.service-not-fit-card,
.service-cta-band {
  box-shadow: 0 24px 64px rgba(46, 29, 12, 0.1);
}

.service-problem-list {
  columns: 2;
  column-gap: 2rem;
}

.service-problem-list li,
.service-detail-card li,
.service-not-fit-card li {
  break-inside: avoid;
}

.service-split-grid {
  align-items: stretch;
}

.service-detail-card {
  padding: 1.6rem;
}

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

.service-process-card {
  position: relative;
  padding-top: 4rem;
}

.step-index {
  position: absolute;
  top: 1.2rem;
  left: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(27, 106, 104, 0.12);
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.service-not-fit-card {
  background: linear-gradient(180deg, rgba(184, 93, 42, 0.08), rgba(255, 255, 255, 0.72));
}

.service-cta-band h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.98;
}

.home-page .service-cta-band {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(27, 106, 104, 0.14));
  box-shadow: 0 28px 88px rgba(46, 29, 12, 0.1);
}

.artifact-card {
  overflow: hidden;
}

.artifact-block {
  margin: 0;
  padding: 1.25rem;
  border-radius: 1rem;
  background: #201d1a;
  color: #f8f1e7;
  font-size: 0.95rem;
  line-height: 1.6;
  overflow-x: auto;
}

.article-section {
  margin-top: 2rem;
}

.article-section h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin: 0 0 0.6rem;
}

.article-meta-box,
.article-cta-band {
  margin-top: 2rem;
}

.article-meta-box p {
  margin: 0 0 0.7rem;
}

.article-meta-box p:last-child {
  margin-bottom: 0;
}

.article-cta-band h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1;
}

.legal-shell {
  padding: 4rem 0 5rem;
}

.legal-grid {
  display: grid;
  grid-template-columns: minmax(0, 820px);
  justify-content: center;
}

.legal-main {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 6px);
  padding: 2rem;
  box-shadow: 0 18px 48px rgba(46, 29, 12, 0.08);
}

.legal-main h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 0.98;
}

.legal-lead {
  margin: 0;
  font-size: 1.08rem;
  max-width: 64ch;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.5rem;
  margin: 1.5rem 0 0;
  padding: 1rem 0 1.25rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.96rem;
}

.legal-sections {
  margin-top: 1rem;
}

.legal-section {
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
}

.legal-section:last-child {
  border-bottom: 0;
}

.legal-section h2 {
  margin: 0 0 0.7rem;
  font-family: var(--font-body);
  font-size: 1.15rem;
  line-height: 1.35;
}

.legal-section p {
  margin: 0;
  color: var(--text);
  max-width: 72ch;
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 3rem;
  padding: 2rem 0 2.5rem;
}

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

.footer-note {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.94rem;
}

@media (max-width: 900px) {
  .hero-grid,
  .service-hero-grid,
  .service-process-grid,
  .split-grid,
  .contact-layout,
  .card-grid,
  .case-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .nav-shell,
  .main-nav {
    align-items: stretch;
  }

  .header-row {
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    row-gap: 0.65rem;
    min-height: 92px;
    padding-block: 0.85rem;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
    align-self: center;
    box-sizing: border-box;
    width: 3.25rem;
    height: 3.25rem;
    min-height: 0;
    padding: 0;
    border-radius: 50%;
  }

  .nav-shell {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0.9rem;
    padding: 1rem;
    margin-top: 0.5rem;
    border: 1px solid var(--line);
    border-radius: calc(var(--radius) - 8px);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 18px 48px rgba(46, 29, 12, 0.1);
  }

  .nav-shell[data-open="true"] {
    display: flex;
  }

  .main-nav {
    width: 100%;
    flex-wrap: wrap;
    flex-direction: column;
    gap: 0.2rem;
  }

  .main-nav a,
  .lang-switch {
    width: 100%;
  }

  .lang-switch {
    display: inline-flex;
    justify-content: center;
  }

  .service-problem-list {
    columns: 1;
  }

  .legal-main {
    padding: 1.4rem;
  }

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

@media (max-width: 1180px) {
  .brand small {
    display: none;
  }

  .main-nav {
    gap: 0.35rem;
  }

  .main-nav a {
    padding: 0.5rem 0.72rem;
    font-size: 0.95rem;
  }
}
