:root {
  --paper: #FAF7F1;
  --ink: #1A1915;
  --muted: #6E685A;
  --line: #E4DECF;
  --accent: #1E5B3E;
  --accent-soft: #EAF2ED;
  --card-bg: #FFFEFB;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Instrument Sans", -apple-system, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* horizontal-axis only — sections own their vertical padding */
.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

a { color: inherit; }

::selection { background: var(--accent); color: var(--paper); }

/* ---------- Nav ---------- */

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.logo {
  font-family: var(--serif);
  font-size: 22px;
  text-decoration: none;
  white-space: nowrap;
}
.logo em { font-style: italic; color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-links a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }

.nav-cta {
  background: var(--ink);
  color: var(--paper) !important;
  font-weight: 600 !important;
  padding: 8px 16px;
  border-radius: 999px;
  transition: background 0.2s ease;
}
.nav-cta:hover { background: var(--accent); }

@media (max-width: 480px) {
  .logo { font-size: 18px; }
  .nav-links { gap: 10px; }
  .nav-links a { font-size: 13.5px; }
  .nav-cta { padding: 6px 13px; }
}

/* ---------- Hero ---------- */

.hero { padding-top: 64px; padding-bottom: 56px; }

.hero-rise {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-rise:nth-child(2) { animation-delay: 0.08s; }
.hero-rise:nth-child(3) { animation-delay: 0.16s; }
.hero-rise:nth-child(4) { animation-delay: 0.24s; }

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

.kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}

h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 8.4vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
  max-width: 18ch;
}
h1 em { font-style: italic; color: var(--accent); }

.subline {
  color: var(--muted);
  max-width: 50ch;
  margin-bottom: 30px;
}

.cta {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.cta:hover { background: var(--accent); transform: translateY(-1px); }
.cta:active { transform: translateY(0); }

.cta-note {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin-top: 12px;
}

/* ---------- Sections ---------- */

section { padding: 44px 0; }

.section-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-bottom: 26px;
}

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 6vw, 38px);
  line-height: 1.15;
  margin-bottom: 14px;
  max-width: 24ch;
}
.section-title em { font-style: italic; color: var(--accent); }

.section-sub {
  color: var(--muted);
  max-width: 52ch;
  margin-bottom: 28px;
}

/* ---------- Cards ---------- */

.card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 24px;
  background: var(--card-bg);
  margin-bottom: 20px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.card:hover {
  border-color: var(--accent);
  box-shadow: 0 10px 30px -14px rgba(30, 91, 62, 0.25);
  transform: translateY(-2px);
}
.card-flagship { border-color: var(--ink); border-width: 1.5px; }

.card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.1;
}
.card p { color: #3D3A30; }
.card p strong { color: var(--ink); }

.card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

.role {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 14px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 16px;
  color: var(--accent);
  text-decoration: none;
  margin-top: 14px;
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.2s ease;
}
.card-link:hover { border-color: var(--accent); }
.card-link .arrow { transition: transform 0.2s ease; display: inline-block; }
.card-link:hover .arrow { transform: translate(3px, -3px); }

.site-shot {
  display: block;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  margin: 2px 0 16px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.site-shot:hover {
  border-color: var(--accent);
  box-shadow: 0 10px 26px -14px rgba(26, 25, 21, 0.3);
}
.site-shot img { display: block; width: 100%; height: auto; }

.shipped-pair { display: grid; gap: 20px; }
@media (min-width: 640px) {
  .shipped-pair { grid-template-columns: 1fr 1fr; gap: 16px; }
  .shipped-pair .card { margin-bottom: 0; }
}

/* ---------- Spec-site previews (browser frames) ---------- */

.shots { display: grid; gap: 20px; }
@media (min-width: 640px) { .shots { grid-template-columns: 1fr 1fr; } }

.shot {
  text-decoration: none;
  display: block;
}

.shot .frame {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--card-bg);
  box-shadow: 0 1px 3px rgba(26, 25, 21, 0.06);
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.shot:hover .frame {
  border-color: var(--accent);
  box-shadow: 0 14px 34px -16px rgba(26, 25, 21, 0.3);
  transform: translateY(-3px);
}

.chrome {
  display: flex;
  gap: 5px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  background: #F4F0E7;
}
.chrome i {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #D9D2C0;
}

.shot-body { padding: 0; min-height: 170px; }

.shot-caption {
  padding: 14px 4px 0;
  font-size: 15px;
}
.shot-caption strong { display: block; font-weight: 600; }
.shot-caption span { color: var(--muted); font-size: 14px; }

/* mini-site internals */
.mini {
  padding: 22px 18px;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}
.mini .m-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 10px;
}
.mini .m-h {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.15;
  max-width: 16ch;
}
.mini .m-p { font-size: 10.5px; opacity: 0.75; max-width: 30ch; }
.mini .m-btn {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 6px 13px;
  border-radius: 999px;
  margin-top: 6px;
  align-self: flex-start;
}

/* richer mini-site furniture */
.m-banner {
  margin: -22px -18px 14px;
  padding: 6px 18px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.m-info { font-size: 9.5px; opacity: 0.78; margin: 1px 0 3px; }
.m-card {
  background: #FFFFFF;
  border-radius: 10px;
  padding: 12px 14px;
  margin-top: 12px;
  box-shadow: 0 10px 22px -14px rgba(20, 56, 66, 0.45);
}
.m-gallery {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-auto-rows: 30px;
  gap: 7px;
}
.m-gallery .g-tall { grid-row: span 2; }
.m-gallery div { border-radius: 7px; }
.m-row { display: flex; gap: 8px; margin-top: 12px; }
.m-item { flex: 1; min-width: 0; }
.m-thumb {
  border-radius: 7px;
  height: 36px;
  margin-bottom: 5px;
  box-shadow: inset 0 -10px 12px -8px rgba(59, 42, 26, 0.35),
              inset 0 6px 8px -6px rgba(255, 255, 255, 0.55);
}
.m-label {
  display: flex;
  justify-content: space-between;
  font-size: 8.5px;
  font-weight: 600;
  opacity: 0.85;
}
.m-label i { font-style: normal; opacity: 0.7; font-weight: 400; }
.m-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.m-chip {
  font-size: 8.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.m-eyebrow {
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.65;
  margin-top: 12px;
}
.m-slots { display: flex; gap: 6px; margin-top: 6px; }
.m-slot {
  font-size: 9px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 7px;
  background: #FFFFFF;
  border: 1px solid #C3DCE2;
  white-space: nowrap;
}

/* ---------- Before / After ---------- */

.ba { display: grid; gap: 16px; margin-bottom: 12px; }
@media (min-width: 640px) { .ba { grid-template-columns: 1fr 1fr; } }

.ba-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.ba-label.after { color: var(--accent); }

.before-site {
  background: #ECECEC;
  font-family: "Times New Roman", serif;
  padding: 16px 14px;
  min-height: 170px;
  color: #222;
}
.before-site .b-title { font-size: 17px; font-weight: 700; color: #00008B; text-decoration: underline; }
.before-site .b-marquee { font-size: 10px; color: #B22222; margin: 6px 0; }
.before-site .b-text { font-size: 10px; line-height: 1.45; }
.before-site .b-links { font-size: 10px; color: #00008B; text-decoration: underline; margin-top: 8px; }
.before-site .b-btn {
  display: inline-block;
  font-size: 10px;
  border: 2px outset #999;
  background: #DDD;
  padding: 3px 9px;
  margin-top: 8px;
}

/* ---------- Steps ---------- */

.steps { display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 640px) { .steps { grid-template-columns: 1fr 1fr 1fr; } }

.step {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card-bg);
  padding: 22px 20px;
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 26px;
  color: var(--accent);
  margin-bottom: 10px;
}
.step h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.step p { font-size: 15px; color: var(--muted); }

/* ---------- Testimonial ---------- */

.testimonial {
  border-left: 3px solid var(--accent);
  padding: 6px 0 6px 22px;
  margin: 8px 0;
}
.testimonial blockquote {
  font-family: var(--serif);
  font-size: clamp(21px, 4.6vw, 26px);
  line-height: 1.35;
  margin-bottom: 14px;
}
.testimonial cite {
  font-style: normal;
  font-size: 15px;
  color: var(--muted);
}

/* ---------- CTA band ---------- */

.cta-band {
  border: 1.5px solid var(--ink);
  border-radius: 20px;
  background: var(--card-bg);
  padding: 36px 28px;
  text-align: center;
}
.cta-band h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 5.6vw, 34px);
  line-height: 1.2;
  margin-bottom: 8px;
}
.cta-band p { color: var(--muted); margin-bottom: 22px; }

/* ---------- Pricing ---------- */

.plans { display: grid; gap: 20px; }
@media (min-width: 700px) { .plans { grid-template-columns: 1fr 1fr 1fr; gap: 16px; } }

.plan {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card-bg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.plan:hover {
  border-color: var(--accent);
  box-shadow: 0 10px 30px -14px rgba(30, 91, 62, 0.25);
  transform: translateY(-2px);
}
.plan-popular { border-color: var(--ink); border-width: 1.5px; position: relative; }

.plan-flag {
  position: absolute;
  top: -11px;
  left: 24px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--paper);
  padding: 3px 12px;
  border-radius: 999px;
}

.plan h3 { font-size: 17px; font-weight: 600; margin-bottom: 4px; }

.price {
  font-family: var(--serif);
  font-size: 42px;
  line-height: 1.1;
  margin-bottom: 2px;
}
.price-note { font-size: 14px; color: var(--muted); margin-bottom: 14px; }

.plan-for {
  font-size: 14.5px;
  color: var(--muted);
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.plan ul { list-style: none; margin-bottom: 22px; flex-grow: 1; }
.plan li {
  font-size: 15.5px;
  padding: 7px 0 7px 26px;
  border-bottom: 1px solid #F0EBDF;
  position: relative;
}
.plan li:last-child { border-bottom: none; }
.plan li::before {
  content: "✓";
  position: absolute;
  left: 2px;
  color: var(--accent);
  font-weight: 600;
}

.plan .cta {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 15px;
  padding: 12px 16px;
}

.addon {
  border: 1px dashed var(--accent);
  border-radius: 16px;
  background: var(--accent-soft);
  padding: 22px 24px;
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  align-items: baseline;
  justify-content: space-between;
}
.addon h3 { font-size: 17px; font-weight: 600; }
.addon p { font-size: 15px; color: #3D3A30; max-width: 46ch; }
.addon .price { font-size: 30px; white-space: nowrap; }
.addon .price span { font-family: var(--sans); font-size: 15px; color: var(--muted); }

.fine {
  font-size: 14.5px;
  color: var(--muted);
  max-width: 56ch;
  margin-top: 26px;
}
.fine strong { color: var(--ink); font-weight: 600; }

/* ---------- Contact form ---------- */

.form-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card-bg);
  padding: 28px 24px;
}

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 7px;
}
.field label span { color: var(--muted); font-weight: 400; }

.field input, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { resize: vertical; min-height: 88px; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-card .cta { width: 100%; text-align: center; border: none; cursor: pointer; }

/* ---------- Footer ---------- */

footer {
  margin-top: 32px;
  border-top: 1px solid var(--line);
  padding: 32px 0 44px;
  font-size: 14.5px;
  color: var(--muted);
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  align-items: baseline;
}
footer a { color: var(--muted); transition: color 0.2s ease; }
footer a:hover { color: var(--accent); }

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.revealed { opacity: 1; transform: translateY(0); }

/* Monte Carlo scatter */
.scatter { display: block; width: 100%; height: 72px; margin: 4px 0 18px; }
.scatter circle { fill: var(--accent); opacity: 0; transition: opacity 0.5s ease; }
.revealed .scatter circle { opacity: var(--o, 0.5); }

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-rise { animation: none; opacity: 1; transform: none; }
  .reveal { transition: none; opacity: 1; transform: none; }
  .scatter circle { transition: none; opacity: var(--o, 0.5); }
  * { transition-duration: 0.01ms !important; }
}
