:root {
  --bg: #f7f2ea;
  --bg-2: #efe8dc;
  --surface: #fffdf8;
  --surface-2: #f3ece1;
  --line: rgba(40, 32, 22, 0.1);
  --line-strong: rgba(40, 32, 22, 0.18);
  --text: #1c1814;
  --muted: #5c544c;
  --muted-2: #7a7268;
  --gold: #b07a2e;
  --gold-2: #8f6120;
  --zapier: #e03d0f;
  --make: #5b3fd6;
  --ok: #2f8a55;
  --radius: 18px;
  --shadow: 0 24px 60px rgba(40, 32, 22, 0.1);
  --serif: "Fraunces", "Times New Roman", serif;
  --sans: "Outfit", system-ui, sans-serif;
  --max: 1180px;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
}

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

h1,
h2,
.h-display {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 5.1rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

p {
  color: var(--muted);
}

.lede {
  font-size: 1.12rem;
  max-width: 42rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(247, 242, 234, 0.86);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  font-size: 0.92rem;
}

.brand img {
  width: 32px;
  height: 32px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--text);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: transparent;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 550;
  transition: 0.18s ease;
}

.btn-gold {
  background: var(--gold);
  color: #1a140c;
}

.btn-gold:hover {
  background: var(--gold-2);
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.hero {
  position: relative;
  padding: 48px 0 28px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -80px;
  top: -120px;
  background: radial-gradient(circle, rgba(176, 122, 46, 0.14), transparent 62%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero-copy h1 em {
  font-style: italic;
  color: var(--gold-2);
}

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

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  color: var(--muted);
  font-size: 0.84rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.dot.zapier { background: var(--zapier); }
.dot.make { background: var(--make); }
.dot.ok { background: var(--ok); }

.arch {
  background: linear-gradient(180deg, #fffdf8, #f3ece1);
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.arch-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.82rem;
}

.arch-live {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ok);
}

.arch-live span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 6px rgba(143, 217, 168, 0.12);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  50% { box-shadow: 0 0 0 10px rgba(143, 217, 168, 0.04); }
}

.flow-step {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.9);
  margin-bottom: 10px;
  position: relative;
}

.flow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 22px;
  bottom: -11px;
  width: 1px;
  height: 11px;
  background: var(--gold);
  opacity: 0.45;
}

.flow-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
}

.flow-step b {
  display: block;
  font-size: 0.95rem;
}

.flow-step small {
  color: var(--muted-2);
}

.status {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ok);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding: 18px 0 8px;
}

.stat {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.stat b {
  display: block;
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 500;
}

.stat span {
  color: var(--muted);
  font-size: 0.9rem;
}

.section {
  padding: 88px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 36px;
}

.marquee-wrap {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding: 18px 0;
  background: var(--bg-2);
}

.marquee {
  display: flex;
  gap: 42px;
  width: max-content;
  animation: marquee 32s linear infinite;
  color: var(--muted);
  font-weight: 550;
  letter-spacing: 0.04em;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
}

.card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  transition: 0.18s ease;
}

.card .kicker {
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.card p {
  margin-top: 8px;
  flex: 1;
}

.card .more {
  color: var(--gold-2);
  font-size: 0.92rem;
}

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

.work-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
}

.work-card .meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted-2);
  font-size: 0.82rem;
  margin-bottom: 12px;
}

.metric {
  display: inline-block;
  margin-top: 14px;
  color: var(--gold-2);
  font-family: var(--serif);
  font-size: 1.15rem;
}

.quote-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px 32px;
  max-width: 46rem;
}

.quote-card .stars {
  color: var(--gold);
  letter-spacing: 0.14em;
  font-size: 0.92rem;
  margin-bottom: 12px;
}

.quote-card blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  line-height: 1.35;
  color: var(--text);
  font-weight: 500;
}

.quote-card .cite {
  margin-top: 16px;
  color: var(--muted-2);
  font-size: 0.88rem;
}

.quote-card .cite a {
  color: var(--gold);
}

.work-card blockquote {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.4;
}

.work-card .cite {
  display: block;
  margin-top: 8px;
  color: var(--muted-2);
  font-size: 0.82rem;
}

.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.step .num {
  font-family: var(--serif);
  color: var(--gold);
  font-size: 1.4rem;
  margin-bottom: 16px;
}

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

.portrait-wrap {
  position: relative;
}

.portrait-wrap img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  border-radius: 28px;
  filter: grayscale(0.15) contrast(1.05);
  border: 1px solid var(--line);
}

.portrait-caption {
  position: absolute;
  left: 18px;
  bottom: 18px;
  background: rgba(255, 253, 248, 0.92);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 12px 14px;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item button {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  font-size: 1.05rem;
}

.faq-item button span {
  color: var(--gold);
}

.faq-item .answer {
  display: none;
  padding: 0 0 20px;
  max-width: 46rem;
}

.faq-item.is-open .answer {
  display: block;
}

.cta-band {
  background:
    radial-gradient(600px 200px at 20% 0%, rgba(176, 122, 46, 0.14), transparent),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 48px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.site-footer {
  padding: 36px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-inner a:hover {
  color: var(--text);
}

.page-hero {
  padding: 56px 0 12px;
}

.blog-list {
  display: grid;
  gap: 16px;
}

.blog-item {
  display: grid;
  grid-template-columns: 7.5rem 1fr auto;
  gap: 24px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
  color: inherit;
  text-decoration: none;
}

.blog-item:hover {
  border-color: var(--line-strong);
}

.blog-item time,
.post-meta {
  color: var(--muted-2);
  font-size: 0.82rem;
}

.blog-item h2,
.blog-item h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.blog-item p {
  margin: 0;
}

.blog-item .more {
  color: var(--gold);
  font-size: 0.92rem;
  white-space: nowrap;
  align-self: center;
}

.kicker {
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.post-wrap {
  max-width: 42rem;
}

.post-body h2,
.post-body h2 {
  margin: 36px 0 12px;
  font-size: 1.55rem;
}

.post-body h3,
.post-body h3 {
  margin: 28px 0 8px;
}

.post-body p,
.post-body li,
.post-body p,
.post-body li {
  color: var(--muted);
}

.post-body ul,
.post-body ol,
.post-body ul,
.post-body ol {
  padding-left: 1.2rem;
}

.post-body li + li,
.post-body li + li {
  margin-top: 8px;
}

.post-body a,
.post-body a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.callout {
  margin: 28px 0;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 14px;
}

.callout strong {
  display: block;
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.callout p {
  margin: 0;
  color: var(--text);
}

.form {
  display: grid;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
}

label {
  display: grid;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--muted);
}

input,
select,
textarea {
  width: 100%;
  background: #fffdf8;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 12px 12px;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.note {
  font-size: 0.88rem;
  color: var(--muted-2);
}

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
}

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

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

.table th {
  color: var(--muted-2);
  font-weight: 500;
  width: 34%;
}

@media (max-width: 960px) {
  .hero-grid,
  .split,
  .two-col,
  .work-grid,
  .process,
  .cta-band,
  .stats {
    grid-template-columns: 1fr;
  }

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

  .cta-band {
    display: grid;
  }

  .section-head {
    display: grid;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .site-nav {
    display: none;
    position: absolute;
    inset: 74px 20px auto;
    background: #fffdf8;
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    padding: 16px;
    flex-direction: column;
    align-items: stretch;
  }

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

  .blog-item {
    grid-template-columns: 1fr;
  }

  .blog-item .more {
    justify-self: start;
  }

  .cards,
  .stats {
    grid-template-columns: 1fr;
  }

  .wrap {
    width: min(var(--max), calc(100% - 28px));
  }
}
