:root {
  --paper: #f4ecdf;
  --paper-strong: #fffaf2;
  --line: rgba(88, 73, 56, 0.18);
  --ink: #192126;
  --muted: #5f696d;
  --teal: #184f53;
  --teal-deep: #0f393c;
  --teal-soft: rgba(24, 79, 83, 0.08);
  --warm-soft: rgba(164, 102, 35, 0.08);
  --shadow: 0 28px 80px rgba(55, 41, 20, 0.08);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font: 16px/1.6 "Avenir Next", "Trebuchet MS", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(24, 79, 83, 0.16), transparent 30%),
    radial-gradient(circle at right 10%, rgba(164, 102, 35, 0.14), transparent 26%),
    linear-gradient(180deg, #efe3d1 0%, var(--paper) 320px);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(25, 33, 38, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25, 33, 38, 0.028) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.42), transparent 78%);
}

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

button {
  font: inherit;
}

.site-shell {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px 22px 48px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-size: 1rem;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.85rem;
}

.topbar-tools {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.nav {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
}

.nav a {
  position: relative;
  padding-bottom: 4px;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: rgba(24, 79, 83, 0.22);
  transform: scaleX(0.2);
  transform-origin: left center;
  transition: transform 180ms ease;
}

.nav a:hover::after {
  transform: scaleX(1);
}

.language-switch {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(24, 79, 83, 0.14);
  background: rgba(255, 255, 255, 0.58);
}

.lang-button {
  appearance: none;
  min-width: 52px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}

.lang-button.is-active {
  background: var(--teal);
  color: white;
}

.surface {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 250, 242, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.82fr);
  gap: 20px;
  padding: 22px;
}

.hero-copy,
.hero-panel,
.section,
.footer {
  position: relative;
  z-index: 1;
}

.hero-copy {
  padding: 18px 16px 12px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.45rem, 5vw, 4rem);
  line-height: 0.96;
  max-width: 14.5ch;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.02;
  max-width: 18ch;
}

h3 {
  font-size: 1.42rem;
  line-height: 1.08;
  margin-bottom: 12px;
}

.lead,
.support,
.work-card p,
.plain-list li,
.boundary-grid p,
.contact-copy p,
.footer p,
.step-list span,
.note-card p {
  color: var(--muted);
}

.lead {
  margin: 20px 0 12px;
  max-width: 58ch;
  font-size: 1.04rem;
}

.support {
  margin: 0;
  max-width: 60ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--teal);
  color: white;
}

.button-primary:hover {
  background: var(--teal-deep);
}

.button-secondary {
  border-color: rgba(24, 79, 83, 0.18);
  background: rgba(255, 255, 255, 0.66);
}

.button-secondary:hover {
  border-color: rgba(24, 79, 83, 0.34);
  background: rgba(24, 79, 83, 0.05);
}

.hero-panel {
  display: grid;
  gap: 14px;
}

.panel-card,
.note-card {
  border-radius: var(--radius-lg);
  padding: 20px;
}

.panel-card {
  background:
    linear-gradient(180deg, rgba(24, 79, 83, 0.09), rgba(24, 79, 83, 0.02)),
    var(--paper-strong);
  border: 1px solid rgba(24, 79, 83, 0.12);
}

.note-card {
  background: linear-gradient(135deg, rgba(164, 102, 35, 0.08), transparent 70%), var(--paper-strong);
  border: 1px solid rgba(164, 102, 35, 0.12);
}

.panel-title {
  margin: 0 0 14px;
  color: var(--ink);
  font-weight: 700;
}

.note-card .panel-title {
  color: var(--ink);
}

.step-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 12px;
}

.step-list li {
  padding-left: 4px;
}

.step-list strong {
  display: block;
  margin-bottom: 4px;
}

.section {
  margin-top: 22px;
}

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

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

.work-card,
.contrast-card,
.compact-surface,
.contact-card {
  padding: 22px;
}

.icon-badge {
  width: 66px;
  height: 66px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(24, 79, 83, 0.1), rgba(24, 79, 83, 0.03)),
    var(--paper-strong);
  border: 1px solid rgba(24, 79, 83, 0.12);
}

.work-icon {
  width: 40px;
  height: 40px;
}

.card-kicker {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.plain-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
}

.trust-strip {
  display: grid;
  gap: 14px;
}

.trust-eyebrow {
  margin-bottom: 0;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(24, 79, 83, 0.12);
  background:
    linear-gradient(180deg, rgba(24, 79, 83, 0.08), rgba(24, 79, 83, 0.03)),
    var(--paper-strong);
  color: var(--teal-deep);
  font-size: 0.94rem;
  white-space: nowrap;
}

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

.boundary-grid p {
  margin: 0;
  padding: 16px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(24, 79, 83, 0.05), rgba(24, 79, 83, 0.02));
  border: 1px solid rgba(24, 79, 83, 0.09);
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.contact-copy {
  max-width: 42rem;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 8px 0 6px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 6px;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--teal-soft);
  border: 1px solid rgba(24, 79, 83, 0.14);
  color: var(--teal-deep);
  font-weight: 700;
}

.contact-copy-button {
  appearance: none;
  margin: 0;
  cursor: pointer;
}

.contact-copy-button.is-copied {
  background: rgba(24, 79, 83, 0.14);
}

.contact-email {
  font-weight: 700;
}

.contact-copy-text {
  color: var(--muted);
  font-weight: 600;
}

.contact-mail-button {
  margin: 0;
}

.contact-note {
  margin-bottom: 0;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 4px 0;
}

.footer p {
  margin: 0;
  font-size: 0.92rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 680ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-panel {
  animation-delay: 90ms;
}

#workflows {
  animation-delay: 140ms;
}

#process .surface:first-child {
  animation-delay: 170ms;
}

#process .surface:last-child {
  animation-delay: 220ms;
}

#impact .surface:first-child {
  animation-delay: 240ms;
}

#impact .surface:last-child {
  animation-delay: 260ms;
}

#results .surface:first-child {
  animation-delay: 280ms;
}

#results .surface:last-child {
  animation-delay: 300ms;
}

.contact-section {
  animation-delay: 320ms;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .hero,
  .split,
  .card-grid,
  .boundary-grid,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .topbar {
    border-radius: 24px;
  }

  .topbar,
  .topbar-tools {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar-tools {
    width: 100%;
  }

  h1,
  h2 {
    max-width: none;
  }
}

@media (max-width: 720px) {
  .site-shell {
    padding: 16px 14px 34px;
  }

  .topbar,
  .hero,
  .work-card,
  .contrast-card,
  .compact-surface,
  .contact-card {
    padding: 18px;
  }

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

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

  .tag {
    width: 100%;
    justify-content: center;
    white-space: normal;
    text-align: center;
  }

  .button,
  .contact-link {
    width: 100%;
  }
}
