/* ==========================================================================
   Ivy Web Co. — shared styles
   Palette rationale:
   - Deep navy ink  -> trust, competence, stability (the "professional" half)
   - Warm cream     -> approachable, personal, not cold/corporate
   - Copper accent  -> energy + warmth; draws the eye to every call to action
   - Sage           -> calm secondary accent for checkmarks / "included" states
   ========================================================================== */

:root {
  --ink: #12291f;
  --ink-2: #1f3d30;
  --ink-soft: #46584f;
  --muted: #6b7a72;
  --paper: #f8f7f1;
  --sand: #edf0e5;
  --sand-2: #dce3d2;
  --white: #ffffff;
  --copper: #2e7d4f;       /* ivy green: primary accent and buttons */
  --copper-dark: #236340;
  --copper-soft: #e0eee4;
  --gold: #d4a24c;         /* small warm highlight */
  --leaf-light: #8fd19e;   /* bright leaf accent on dark backgrounds */
  --sage: #4f8a63;
  --sage-soft: #e6f0e8;
  --line: rgba(18, 41, 31, 0.12);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(18, 41, 31, 0.06), 0 2px 8px rgba(18, 41, 31, 0.05);
  --shadow: 0 2px 6px rgba(18, 41, 31, 0.06), 0 14px 36px rgba(18, 41, 31, 0.09);
  --shadow-lg: 0 4px 12px rgba(18, 41, 31, 0.08), 0 30px 70px rgba(18, 41, 31, 0.16);
  --max: 1160px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  font-variation-settings: "opsz" 96;
}
h1 { font-size: clamp(2.4rem, 5.4vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.32rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
em.accent { font-style: italic; color: var(--copper); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--tight { padding: 72px 0; }
.section--sand { background: var(--sand); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--ink h2, .section--ink h3 { color: var(--white); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.section--ink .eyebrow { color: #8fd19e; }

.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 640px; }
.section--ink .lead { color: rgba(250, 247, 241, 0.78); }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--copper); outline-offset: 3px; }
.btn--primary { background: var(--copper); color: var(--white); box-shadow: 0 8px 22px rgba(46, 125, 79, 0.32); }
.btn--primary:hover { background: var(--copper-dark); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.section--ink .btn--ghost { border-color: rgba(250, 247, 241, 0.5); color: var(--paper); }
.section--ink .btn--ghost:hover { background: var(--paper); color: var(--ink); }
.btn .arrow { transition: transform 0.15s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 241, 0.88);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 20px rgba(18, 41, 31, 0.05); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--ink);
  color: var(--leaf-light);
  --leaf-vein: var(--ink);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.brand-mark svg { width: 30px; height: 30px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; letter-spacing: -0.01em; }
.brand-sub { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

.nav-menu { display: flex; align-items: center; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block;
  padding: 9px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.97rem;
  color: var(--ink-soft);
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-links a:hover { background: var(--sand); color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); background: var(--sand); }
.nav-cta { margin-left: 10px; }
.nav-cta .btn { padding: 11px 20px; font-size: 0.95rem; }

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
  transition: transform 0.2s ease, background 0.2s ease;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: fixed;
    inset: 76px 0 auto 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(18, 41, 31, 0.12);
    padding: 16px 24px 28px;
    display: none;
  }
  .nav-open .nav-menu { display: block; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-links a { padding: 14px 16px; font-size: 1.08rem; border-radius: 12px; }
  .nav-cta { margin: 14px 0 0; }
  .nav-cta .btn { width: 100%; padding: 15px 20px; }
}

/* ---------- Hero ---------- */
.hero { padding: 72px 0 96px; position: relative; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 85% 20%, rgba(46, 125, 79, 0.10), transparent 42%),
    radial-gradient(circle at 10% 90%, rgba(212, 162, 76, 0.10), transparent 40%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; position: relative; }
.hero h1 { margin-bottom: 22px; }
.hero .lead { margin-bottom: 34px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 34px; font-size: 0.93rem; color: var(--ink-soft); }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust svg { color: var(--sage); flex-shrink: 0; }

/* Signature element: code that "builds" into a website */
.build-demo { position: relative; }
.window {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}
.window-bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; background: #f0f1ea; border-bottom: 1px solid var(--line); }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: #d9d2c6; display: block; }
.window-bar i:nth-child(1) { background: #e9897b; }
.window-bar i:nth-child(2) { background: #e9c46a; }
.window-bar i:nth-child(3) { background: #8fbf9f; }
.window-url {
  margin-left: 12px;
  flex: 1;
  background: var(--white);
  border-radius: 8px;
  padding: 5px 12px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.code-pane {
  position: absolute;
  left: -36px;
  bottom: -40px;
  width: 62%;
  background: var(--ink);
  color: #d6dcea;
  border-radius: var(--radius);
  padding: 18px 20px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  line-height: 1.75;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.code-pane .c-tag { color: #8fd19e; }
.code-pane .c-attr { color: #9fc5b0; }
.code-pane .c-str { color: #e9c46a; }
.code-pane .c-dim { color: #7b88a6; }
.code-pane .caret { display: inline-block; width: 7px; height: 1em; background: #8fd19e; vertical-align: -2px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.mock-site { padding: 26px 26px 70px; }
.mock-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.mock-logo { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; }
.mock-logo b { width: 22px; height: 22px; border-radius: 6px; background: var(--sage); display: block; }
.mock-links { display: flex; gap: 10px; }
.mock-links i { width: 34px; height: 7px; border-radius: 4px; background: var(--sand-2); display: block; }
.mock-h { font-family: var(--font-display); font-size: 1.55rem; font-weight: 600; line-height: 1.15; margin-bottom: 12px; max-width: 290px; }
.mock-p { height: 8px; border-radius: 4px; background: var(--sand-2); margin-bottom: 8px; }
.mock-btn { display: inline-block; margin-top: 14px; padding: 8px 16px; border-radius: 999px; background: var(--copper); color: #fff; font-size: 0.78rem; font-weight: 600; }
.mock-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 26px; }
.mock-cards div { height: 64px; border-radius: 10px; background: var(--sand); border: 1px solid var(--line); }

.reveal-line { opacity: 0; transform: translateY(8px); animation: rise 0.6s ease forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (max-width: 960px) {
  .hero { padding: 48px 0 80px; }
  .hero-grid { grid-template-columns: 1fr; gap: 64px; }
  .build-demo { max-width: 560px; margin: 0 auto 30px; width: 100%; }
  .code-pane { left: -8px; width: 72%; bottom: -46px; }
}
@media (max-width: 520px) {
  .code-pane { font-size: 0.66rem; padding: 14px; width: 86%; }
  .mock-site { padding: 20px 18px 60px; }
}

/* ---------- Generic grids & cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--ink-soft); }
.icon-chip {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--copper-soft);
  color: var(--copper);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}
.icon-chip.sage { background: var(--sage-soft); color: var(--sage); }
.icon-chip.ink { background: #e3e9e5; color: var(--ink); }

/* ---------- Why custom (comparison) ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.compare-col { padding: 36px; }
.compare-col h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.compare-col.them { background: var(--white); color: var(--ink-soft); }
.compare-col.us { background: var(--ink); color: var(--paper); }
.compare-col.us h3 { color: var(--white); }
.compare-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.compare-col li { display: flex; gap: 12px; align-items: flex-start; }
.compare-col li svg { flex-shrink: 0; margin-top: 4px; }
.compare-col.them li svg { color: #b5adb0; }
.compare-col.us li svg { color: #8fd19e; }
.tag { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--sand); color: var(--muted); }
.compare-col.us .tag { background: rgba(143, 209, 158, 0.18); color: #8fd19e; }
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } .compare-col { padding: 28px; } }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: step; position: relative; }
.step { position: relative; padding-top: 64px; }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: 0;
  left: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.9rem;
  background: var(--white);
  color: var(--copper);
  border: 2px solid var(--copper);
  z-index: 1;
}
.step::after { content: ""; position: absolute; top: 22px; left: 46px; right: -18px; height: 2px; background: repeating-linear-gradient(90deg, var(--sand-2) 0 8px, transparent 8px 14px); }
.step:last-child::after { display: none; }
.step h3 { font-size: 1.15rem; }
.step p { color: var(--ink-soft); font-size: 0.97rem; margin: 0; }
.section--sand .step::before { background: var(--sand); }
@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { padding: 0 0 34px 72px; min-height: 46px; }
  .step::after { top: 46px; left: 22px; right: auto; width: 2px; height: calc(100% - 46px); background: repeating-linear-gradient(180deg, var(--sand-2) 0 8px, transparent 8px 14px); }
}

/* ---------- Portfolio cards ---------- */
.work-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.work-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.work-card .shot { aspect-ratio: 16 / 10.5; position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.work-card .shot img.screenshot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; z-index: 2; }
.work-body { padding: 26px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.work-body .kind { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--copper); margin-bottom: 8px; }
.work-body h3 { margin-bottom: 10px; }
.work-body p { color: var(--ink-soft); font-size: 0.98rem; }
.work-link { margin-top: auto; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.work-card:hover .work-link { color: var(--copper); }

/* Mini CSS "screenshots" of each client site (used until real screenshots are added) */
.mini { position: absolute; inset: 0; padding: 16px 18px; font-family: var(--font-body); display: flex; flex-direction: column; }
.mini-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.mini-brand { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.01em; display: flex; align-items: center; gap: 6px; }
.mini-brand b { width: 16px; height: 16px; border-radius: 4px; display: block; }
.mini-links { display: flex; gap: 6px; }
.mini-links i { width: 22px; height: 5px; border-radius: 3px; display: block; opacity: 0.45; background: currentColor; }
.mini-h { font-size: 1.05rem; font-weight: 700; line-height: 1.15; max-width: 75%; margin-bottom: 8px; }
.mini-p { height: 5px; border-radius: 3px; opacity: 0.25; background: currentColor; margin-bottom: 5px; }
.mini-btns { display: flex; gap: 6px; margin-top: 10px; }
.mini-btns span { font-size: 0.56rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.mini-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: auto; }
.mini-row div { height: 34px; border-radius: 6px; }

.mini--fe { background: #f4f1e8; color: #1f3d5c; background-image: linear-gradient(rgba(43, 92, 138, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(43, 92, 138, 0.08) 1px, transparent 1px); background-size: 14px 14px; }
.mini--fe .mini-brand b { background: #2b5c8a; }
.mini--fe .mini-h { font-family: "Space Grotesk", var(--font-body); color: #1f3d5c; }
.mini--fe .mini-btns span:first-child { background: #e0631e; color: #fff; }
.mini--fe .mini-btns span:last-child { border: 1px solid #2b5c8a; color: #2b5c8a; }
.mini--fe .mini-row div { background: #fff; border: 1px solid rgba(43, 92, 138, 0.25); }
.mini--fe .beam { margin-top: 10px; height: 26px; position: relative; }
.mini--fe .beam::before { content: ""; position: absolute; left: 8%; right: 8%; top: 10px; height: 5px; background: #2b5c8a; border-radius: 2px; }
.mini--fe .beam::after { content: ""; position: absolute; left: 46%; top: -2px; width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 10px solid #e0631e; }

.mini--cpa { background: #faf8f5; color: #342e2e; }
.mini--cpa .mini-brand b { background: #342e2e; border: 2px solid #b6872f; }
.mini--cpa .mini-h { font-family: "Libre Baskerville", Georgia, serif; font-size: 0.98rem; }
.mini--cpa .mini-h em { color: #b6872f; font-style: normal; }
.mini--cpa .mini-btns span:first-child { background: #342e2e; color: #fff; }
.mini--cpa .mini-btns span:last-child { background: #d0ab51; color: #342e2e; }
.mini--cpa .mini-row div { background: #efece6; border-top: 3px solid #b6872f; }

.mini--cmh { background: #0f2a44; color: #f4f1ea; }
.mini--cmh .mini-brand b { background: #c9a45c; border-radius: 50%; }
.mini--cmh .mini-h { font-family: var(--font-display); font-size: 1.1rem; }
.mini--cmh .mini-h em { color: #c9a45c; }
.mini--cmh .mini-btns span:first-child { background: #c9a45c; color: #0f2a44; }
.mini--cmh .mini-btns span:last-child { border: 1px solid rgba(244, 241, 234, 0.5); }
.mini--cmh .mini-row div { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.12); }
.mini--cmh .avatar { position: absolute; right: 18px; top: 46px; width: 54px; height: 68px; border-radius: 10px; background: linear-gradient(160deg, #3a5878, #1c3a58); border: 2px solid #c9a45c; }

/* Case study (portfolio page) */
.case { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; padding: 64px 0; border-top: 1px solid var(--line); }
.case:first-of-type { border-top: 0; padding-top: 0; }
.case.flip .case-visual { order: 2; }
.case-visual .work-card { cursor: pointer; }
.case-visual .shot { aspect-ratio: 16 / 10.5; position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.case-visual .shot img.screenshot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; z-index: 2; }
.case-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 22px; }
.chip { font-size: 0.82rem; font-weight: 500; padding: 6px 12px; border-radius: 999px; background: var(--sand); color: var(--ink-2); }
.case ul.checks { margin-bottom: 26px; }
@media (max-width: 900px) {
  .case { grid-template-columns: 1fr; gap: 32px; padding: 48px 0; }
  .case.flip .case-visual { order: 0; }
}

/* ---------- Check list ---------- */
ul.checks { list-style: none; margin: 0 0 1em; padding: 0; display: grid; gap: 11px; }
ul.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-soft); }
ul.checks li::before {
  content: "";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--sage-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f8a63' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.person { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow-sm); }
.person-photo { aspect-ratio: 4 / 4.2; position: relative; background: linear-gradient(150deg, var(--sand) 0%, var(--sand-2) 100%); overflow: hidden; }
.person-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; z-index: 2; }
.person-photo .initials {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 5.5rem;
  font-weight: 600;
  color: rgba(18, 41, 31, 0.18);
}
.person-body { padding: 30px 32px 34px; }
.person-role { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--copper); margin-bottom: 8px; }
.person-body h3 { font-size: 1.6rem; margin-bottom: 14px; }
.person-body p { color: var(--ink-soft); }
.person-links { display: flex; gap: 10px; margin-top: 20px; }
.person-links a { display: inline-flex; align-items: center; gap: 8px; font-size: 0.92rem; font-weight: 600; text-decoration: none; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); transition: background 0.15s ease, border-color 0.15s ease; }
.person-links a:hover { background: var(--sand); border-color: var(--sand-2); }
@media (max-width: 760px) { .team { grid-template-columns: 1fr; } }

/* Team preview strip on home */
.duo { display: grid; grid-template-columns: auto 1fr; gap: 48px; align-items: center; }
.duo-photos { display: flex; }
.duo-photo { width: 168px; height: 200px; border-radius: 20px; overflow: hidden; position: relative; background: linear-gradient(150deg, var(--sand), var(--sand-2)); border: 5px solid var(--paper); box-shadow: var(--shadow); }
.duo-photo:nth-child(2) { margin-left: -28px; margin-top: 44px; }
.duo-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; z-index: 2; }
.duo-photo .initials { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-size: 3rem; font-weight: 600; color: rgba(18, 41, 31, 0.2); }
.section--sand .duo-photo { border-color: var(--sand); }
@media (max-width: 760px) {
  .duo { grid-template-columns: 1fr; gap: 32px; }
  .duo-photo { width: 140px; height: 168px; }
}

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; align-items: stretch; }
.price-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 38px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.price-card.featured { background: var(--ink); color: var(--paper); border-color: var(--ink); box-shadow: var(--shadow-lg); }
.price-card.featured h3 { color: var(--white); }
.price-card .label { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--copper); margin-bottom: 12px; }
.price-card.featured .label { color: #8fd19e; }
.price { font-family: var(--font-display); font-size: clamp(2.3rem, 4vw, 3rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1; margin: 6px 0 6px; }
.price small { font-family: var(--font-body); font-size: 1rem; font-weight: 500; letter-spacing: 0; opacity: 0.7; }
.price-note { font-size: 0.95rem; opacity: 0.75; margin-bottom: 24px; }
.price-card.featured ul.checks li { color: rgba(250, 247, 241, 0.86); }
.price-card.featured ul.checks li::before { background-color: rgba(143, 209, 158, 0.18); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238fd19e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.price-card .btn { margin-top: auto; align-self: flex-start; }
.size-table { width: 100%; border-collapse: collapse; margin: 6px 0 26px; font-size: 0.95rem; }
.size-table td { padding: 12px 0; border-bottom: 1px solid rgba(250, 247, 241, 0.14); vertical-align: top; }
.size-table td:last-child { text-align: right; font-weight: 600; white-space: nowrap; padding-left: 16px; color: var(--white); }
.size-table td span { display: block; font-size: 0.85rem; opacity: 0.65; }
.ownership { margin-top: 28px; display: flex; gap: 18px; align-items: flex-start; background: var(--sage-soft); border-radius: var(--radius); padding: 22px 24px; }
.ownership svg { color: var(--sage); flex-shrink: 0; margin-top: 2px; }
.ownership p { margin: 0; color: var(--ink-2); font-size: 0.98rem; }
@media (max-width: 860px) { .price-grid { grid-template-columns: 1fr; } .price-card { padding: 30px; } }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 48px 24px 0;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 600;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 26px;
  height: 26px;
  margin-top: -13px;
  border-radius: 50%;
  background: var(--sand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312291f' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--copper-soft); }
.faq .answer { padding: 0 48px 24px 0; color: var(--ink-soft); }
.faq .answer p:last-child { margin: 0; }

/* ---------- Testimonial ---------- */
.quote { max-width: 860px; margin: 0 auto; text-align: center; }
.quote blockquote { margin: 0 0 24px; font-family: var(--font-display); font-size: clamp(1.4rem, 2.8vw, 2rem); line-height: 1.35; font-weight: 500; }
.quote cite { font-style: normal; font-weight: 600; }
.quote cite span { display: block; font-weight: 400; opacity: 0.7; font-size: 0.95rem; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: var(--paper); border-radius: 28px; padding: 64px 56px; display: grid; grid-template-columns: 1.4fr auto; gap: 40px; align-items: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(46, 125, 79, 0.35), transparent 70%); }
.cta-band h2 { color: var(--white); margin-bottom: 12px; }
.cta-band p { color: rgba(250, 247, 241, 0.78); margin: 0; font-size: 1.1rem; }
.cta-band .btn-row { position: relative; z-index: 1; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; padding: 44px 30px; } }

/* ---------- Page header (inner pages) ---------- */
.page-head { padding: 72px 0 56px; position: relative; overflow: hidden; }
.page-head::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 90% 0%, rgba(46, 125, 79, 0.09), transparent 45%); pointer-events: none; }
.page-head h1 { max-width: 820px; position: relative; }
.page-head .lead { position: relative; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; align-items: start; }
.contact-info { display: grid; gap: 16px; }
.info-item { display: flex; gap: 16px; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.info-item .icon-chip { margin: 0; width: 44px; height: 44px; flex-shrink: 0; }
.info-item h4 { font-family: var(--font-body); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 0 0 3px; }
.info-item p, .info-item a { margin: 0; font-weight: 500; color: var(--ink); text-decoration: none; word-break: break-word; }
.info-item a:hover { color: var(--copper); }

.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 38px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 7px; }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 13px 15px;
  border-radius: 11px;
  border: 1.5px solid var(--sand-2);
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--copper); background: var(--white); box-shadow: 0 0 0 4px rgba(46, 125, 79, 0.14); }
.form-note { font-size: 0.88rem; color: var(--muted); margin: 14px 0 0; }
.form-status { display: none; margin-top: 18px; padding: 16px 18px; border-radius: 12px; font-weight: 500; }
.form-status.ok { display: block; background: var(--sage-soft); color: #2f5a44; }
.form-status.err { display: block; background: #fbe4dc; color: #8a3413; }
.hp { position: absolute; left: -9999px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; gap: 0; } .form-card { padding: 26px 22px; } }

.schedule-wrap { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.calendly-inline-widget { min-width: 300px; height: 720px; }
.schedule-fallback { padding: 48px 40px; text-align: center; }
.schedule-fallback .icon-chip { margin: 0 auto 20px; }
.schedule-fallback p { color: var(--ink-soft); max-width: 460px; margin-left: auto; margin-right: auto; }
.expect { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.expect div { text-align: left; }
.expect strong { display: block; font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 4px; }
.expect span { color: var(--ink-soft); font-size: 0.95rem; }
@media (max-width: 760px) { .expect { grid-template-columns: 1fr; } }

/* ---------- Values / numbers ---------- */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { border-left: 2px solid var(--copper); padding: 4px 0 4px 18px; }
.stat strong { display: block; font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; line-height: 1.1; }
.stat span { color: var(--ink-soft); font-size: 0.95rem; }
.section--ink .stat span { color: rgba(250, 247, 241, 0.7); }
@media (max-width: 860px) { .stat-row { grid-template-columns: repeat(2, 1fr); gap: 28px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(250, 247, 241, 0.72); padding: 72px 0 32px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(250, 247, 241, 0.12); }
.site-footer .brand { color: var(--paper); margin-bottom: 18px; }
.site-footer .brand-mark { background: #0b1c14; color: var(--leaf-light); --leaf-vein: #0b1c14; border: 1px solid rgba(143, 209, 158, 0.22); }
.site-footer .brand-sub { color: rgba(250, 247, 241, 0.5); }
.site-footer h4 { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--paper); margin-bottom: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; transition: color 0.15s ease; }
.site-footer a:hover { color: #8fd19e; }
.site-footer p { max-width: 320px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 28px; font-size: 0.88rem; color: rgba(250, 247, 241, 0.5); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Scroll reveal ---------- */
.fade-up { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-up.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-up, .reveal-line { opacity: 1; transform: none; animation: none; transition: none; }
  .code-pane .caret { animation: none; }
}

.skip-link { position: absolute; left: -999px; top: 12px; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 12px; }
.center { text-align: center; }
.mt-lg { margin-top: 48px; }

/* Why Ivy (About page) */
.why-ivy { display: grid; grid-template-columns: auto 1fr; gap: 48px; align-items: center; max-width: 920px; }
.why-leaf { width: 150px; height: 150px; border-radius: 36px; background: rgba(143, 209, 158, 0.12); display: grid; place-items: center; color: var(--leaf-light); transform: rotate(-8deg); }
.why-leaf svg { width: 104px; height: 104px; }
@media (max-width: 700px) { .why-ivy { grid-template-columns: 1fr; gap: 28px; } .why-leaf { width: 110px; height: 110px; border-radius: 28px; } .why-leaf svg { width: 76px; height: 76px; } }

/* Two-up work cards (home): larger, fuller previews */
.grid-2 .work-card .shot { aspect-ratio: 16 / 8.6; }
.grid-2 .mini { padding: 24px 28px; }
.grid-2 .mini-bar { margin-bottom: 24px; }
.grid-2 .mini-brand { font-size: 0.88rem; }
.grid-2 .mini-brand b { width: 20px; height: 20px; }
.grid-2 .mini-links i { width: 30px; height: 6px; }
.grid-2 .mini .mini-h { font-size: 1.55rem; margin-bottom: 12px; }
.grid-2 .mini-p { height: 7px; margin-bottom: 7px; }
.grid-2 .mini-btns { margin-top: 16px; gap: 8px; }
.grid-2 .mini-btns span { font-size: 0.72rem; padding: 8px 15px; }
.grid-2 .mini-row div { height: 46px; }
.grid-2 .mini--fe .beam { margin-top: 16px; }
