:root {
  --cream: #f3ede2;
  --cream-2: #ece3d3;
  --dark: #14101c;
  --dark-2: #1c1626;
  --purple: #5b2a86;
  --purple-light: #8a5cc4;
  --lavender: #c9b3ea;
  --ink: #1a1420;
  --ink-soft: rgba(26, 20, 32, 0.65);
  --paper: #f3ede2;
  --paper-soft: rgba(243, 237, 226, 0.7);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 18px;
}

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

html { scroll-behavior: auto; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.08;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); margin-bottom: 2.5rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.6rem; }

p { line-height: 1.6; }

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

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  padding: 120px 0;
}

.section-dark {
  background: var(--dark);
  color: var(--paper);
}

/* progress bar */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--purple-light);
  z-index: 1000;
  transition: width 0.05s linear;
}

/* nav */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(243, 237, 226, 0.75);
  border-bottom: 1px solid rgba(26, 20, 32, 0.08);
}

.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Fraunces', serif;
  font-size: 1.25rem;
  font-weight: 600;
}

.nav-logo .logo-mark { width: 26px; height: 26px; flex-shrink: 0; }

.footer-brand {
  display: flex;
  align-items: center;
  gap: 9px;
}

.footer-brand .logo-mark { width: 20px; height: 20px; flex-shrink: 0; }

.nav-links {
  display: flex;
  gap: 36px;
  font-size: 0.95rem;
}

.nav-links a {
  opacity: 0.75;
  transition: opacity 0.3s var(--ease);
}

.nav-links a:hover { opacity: 1; }

.nav-links a.active { opacity: 1; color: var(--purple); }

.nav-cta {
  padding: 10px 22px;
  font-size: 0.88rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* eyebrow */
.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 1.2rem;
}

.eyebrow-light { color: var(--purple-light); }

.h2-light { color: var(--paper); }

/* hero */
.hero {
  padding-top: 180px;
  background: var(--dark);
  color: var(--paper);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.hero h1 { margin-bottom: 1.6rem; }

.hero .eyebrow { color: var(--purple-light); }

.highlight { color: var(--purple); }

.hero .highlight { color: var(--purple-light); }

.hero .lede { color: rgba(243, 237, 226, 0.7); }

.hero .btn-ghost {
  border-color: rgba(243, 237, 226, 0.3);
  color: var(--paper);
}

.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 2.2rem;
}

.section-dark .lede { color: rgba(243, 237, 226, 0.7); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-media {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
}

/* inner page hero (About, Work, Process, etc.) */
.page-hero {
  padding-top: 180px;
  padding-bottom: 80px;
  text-align: center;
}

.page-hero h1 {
  max-width: 16ch;
  margin: 0 auto 1.6rem;
}

.page-hero .lede {
  margin: 0 auto;
  max-width: 56ch;
  text-align: center;
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease);
}

.btn-primary {
  background: var(--purple);
  color: var(--paper);
}

.btn-primary:hover {
  background: var(--ink);
  transform: translateY(-2px);
}

.btn-ghost {
  border: 1px solid rgba(26, 20, 32, 0.25);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.section-dark .btn-ghost {
  border-color: rgba(243, 237, 226, 0.3);
  color: var(--paper);
}

/* media placeholders */
.media-placeholder {
  width: 100%;
  height: 100%;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--cream-2), #ddd0b8);
  color: var(--ink-soft);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  object-fit: cover;
}

.media-placeholder::before {
  content: "";
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  background-color: currentColor;
  opacity: 0.32;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='18' x='3' y='3' rx='2' ry='2'/%3E%3Ccircle cx='9' cy='9' r='2'/%3E%3Cpath d='m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='18' x='3' y='3' rx='2' ry='2'/%3E%3Ccircle cx='9' cy='9' r='2'/%3E%3Cpath d='m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.media-placeholder.dark {
  background: linear-gradient(135deg, var(--purple), var(--dark-2));
  color: rgba(243, 237, 226, 0.75);
}

.media-placeholder.small { min-height: 90px; gap: 6px; }
.media-placeholder.small::before { width: 22px; height: 22px; }

.media-placeholder.phone {
  min-height: 100%;
  background: linear-gradient(135deg, #4a4552, #2b2732);
  color: rgba(243, 237, 226, 0.6);
}

/* image zoom hover */
.img-zoom {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}

.img-zoom .media-placeholder {
  transition: transform 0.7s var(--ease);
}

.img-zoom:hover .media-placeholder {
  transform: scale(1.06);
}

/* video section */
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: 900px;
  margin: 0 auto;
}

.play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 84px; height: 84px;
  border-radius: 50%;
  border: none;
  background: rgba(243, 237, 226, 0.95);
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), opacity 0.35s var(--ease);
  z-index: 2;
}

.play-btn:hover {
  transform: translate(-50%, -50%) scale(1.08);
  background: var(--paper);
}

.play-btn svg { margin-left: 4px; }

.play-btn.is-hidden {
  opacity: 0;
  pointer-events: none;
}

/* feature grid */
.feature-panel {
  background: var(--lavender);
  border-radius: var(--radius);
  padding: 48px;
}

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

.feature-card {
  padding: 0;
}

.feature-num {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: 0.95rem;
  color: var(--purple);
  margin-bottom: 1rem;
}

.feature-card h3 { color: var(--ink); }

.feature-card p {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* dashboard / platform */
.dashboard-frame {
  display: block;
  aspect-ratio: 16 / 9;
  margin-bottom: 28px;
}

.tool-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 60px;
}

.tool-card { border-radius: 14px; overflow: hidden; }

.phone-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.phone-mockup {
  aspect-ratio: 9 / 16;
  max-width: 260px;
  margin: 0 auto;
  border-radius: 28px;
  width: 100%;
}

/* offer */
.offer-block {
  text-align: center;
  max-width: 700px;
}

.offer-block .lede { margin: 0 auto 2.2rem; }

/* testimonial */
.testimonial {
  background: linear-gradient(160deg, var(--purple) 0%, var(--dark) 100%);
  color: var(--paper);
  text-align: center;
}

/* video testimonial embed (home + reviews) */
.testimonial-video {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: 800px;
  margin: 2.5rem auto 0;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
}

.testimonial-video iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* footer cta */
.footer-cta-block {
  text-align: center;
}

.listing-form {
  display: flex;
  gap: 12px;
  max-width: 520px;
  margin: 2.5rem auto 0;
}

.listing-form input {
  flex: 1;
  padding: 15px 22px;
  border-radius: 100px;
  border: 1px solid rgba(243, 237, 226, 0.25);
  background: rgba(243, 237, 226, 0.06);
  color: var(--paper);
  font-family: inherit;
  font-size: 0.95rem;
}

.listing-form input::placeholder { color: rgba(243, 237, 226, 0.5); }

.listing-form input:focus {
  outline: none;
  border-color: var(--purple-light);
}

/* cta band: repeats on every page with different copy, always links to contact.html */
.cta-band {
  text-align: center;
}

.cta-band-inner { max-width: 640px; margin: 0 auto; }
.cta-band .lede { margin: 0 auto 2.2rem; }

/* stat row (About) */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 3rem;
}

.stat-card { text-align: center; }

.stat-num {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  color: var(--purple);
  display: block;
  margin-bottom: 0.4rem;
}

.section-dark .stat-num { color: var(--purple-light); }

.stat-label {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.section-dark .stat-label { color: rgba(243, 237, 226, 0.6); }

/* credentials row */
.credential-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2.5rem;
}

.credential-pill {
  padding: 10px 20px;
  border-radius: 100px;
  border: 1px solid rgba(26, 20, 32, 0.15);
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* process steps */
.step-list {
  display: flex;
  flex-direction: column;
  max-width: 820px;
  margin: 0 auto;
}

.step-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 32px;
  padding: 40px 0;
  border-top: 1px solid rgba(26, 20, 32, 0.12);
}

.step-item:last-child { border-bottom: 1px solid rgba(26, 20, 32, 0.12); }

.section-dark .step-item,
.section-dark .step-item:last-child { border-color: rgba(243, 237, 226, 0.15); }

.step-num {
  font-family: 'Fraunces', serif;
  font-size: 1.6rem;
  color: var(--purple);
}

.section-dark .step-num { color: var(--purple-light); }

.step-item h3 { margin-bottom: 0.5rem; }

.step-item p { color: var(--ink-soft); max-width: 56ch; }

.section-dark .step-item p { color: rgba(243, 237, 226, 0.65); }

/* case study grid (Work) */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.case-card {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream-2);
}

.case-card .media-placeholder { aspect-ratio: 4/3; min-height: 0; }

.case-card-body { padding: 24px; }

.case-card-body .case-tag {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 0.5rem;
  display: block;
}

.case-card-body h3 { font-size: 1.1rem; }

.case-card-body p { font-size: 0.92rem; color: var(--ink-soft); }

/* deep case study block */
.deep-case {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 64px 0;
  border-top: 1px solid rgba(243, 237, 226, 0.15);
}

.deep-case:first-of-type { border-top: none; }

.deep-case-media { aspect-ratio: 4/3; }

.deep-case-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 32px;
  margin-top: 1.8rem;
}

.deep-case-metric .stat-num { font-size: 2rem; text-align: left; }
.deep-case-metric .stat-label { text-align: left; }

/* reviews grid */
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.review-card {
  padding: 32px;
  border-radius: var(--radius);
  background: rgba(26, 20, 32, 0.04);
}

.section-dark .review-card { background: rgba(243, 237, 226, 0.06); }

.review-card p {
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  line-height: 1.45;
  margin-bottom: 1.4rem;
}

.review-name { font-weight: 600; font-size: 0.9rem; }
.review-role { font-size: 0.82rem; color: var(--ink-soft); }
.section-dark .review-role { color: rgba(243, 237, 226, 0.6); }

/* compare list (Services) */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.compare-card {
  padding: 36px;
  border-radius: var(--radius);
}

.compare-card.without { background: rgba(243, 237, 226, 0.03); }
.compare-card.with { background: var(--dark); color: var(--paper); }

.compare-card h3 { margin-bottom: 1.2rem; }

.compare-card ul { list-style: none; display: flex; flex-direction: column; gap: 14px; }

.compare-card li {
  font-size: 0.95rem;
  padding-left: 26px;
  position: relative;
  color: rgba(243, 237, 226, 0.5);
}

.compare-card.with li { color: rgba(243, 237, 226, 0.75); }

.compare-card.without li::before {
  content: '✕';
  position: absolute;
  left: 0;
  color: rgba(243, 237, 226, 0.35);
}

.compare-card.with li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--purple-light);
}

/* service list (Services page) */
.service-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 3rem;
}

.service-item {
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid rgba(26, 20, 32, 0.1);
}

.service-item h3 { margin-bottom: 0.6rem; }
.service-item p { color: var(--ink-soft); font-size: 0.95rem; }

/* audit / calculator tool */
.calc-tool {
  max-width: 640px;
  margin: 3rem auto 0;
  padding: 44px;
  border-radius: var(--radius);
  background: var(--dark);
  color: var(--paper);
}

.calc-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.calc-row label {
  font-size: 0.85rem;
  color: rgba(243, 237, 226, 0.7);
}

.calc-row input[type="range"] {
  width: 100%;
  accent-color: var(--purple-light);
}

.calc-value {
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  color: var(--purple-light);
}

.calc-result {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid rgba(243, 237, 226, 0.15);
  text-align: center;
}

.calc-result .stat-num { color: var(--purple-light); }

/* contact / book a call page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px 20px;
  border-radius: 14px;
  border: 1px solid rgba(26, 20, 32, 0.15);
  background: rgba(26, 20, 32, 0.02);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.95rem;
}

.contact-form textarea { resize: vertical; min-height: 120px; }

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--purple);
}

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

.slot-btn {
  padding: 12px 8px;
  border-radius: 10px;
  border: 1px solid rgba(26, 20, 32, 0.15);
  background: transparent;
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.slot-btn:hover { border-color: var(--purple); }

.slot-btn.selected {
  background: var(--purple);
  border-color: var(--purple);
  color: var(--paper);
}

.contact-note {
  margin-top: 1.4rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.section-dark .contact-note { color: rgba(243, 237, 226, 0.6); }

/* site footer */
.site-footer {
  background: var(--dark);
  color: rgba(243, 237, 226, 0.6);
  padding: 32px 0;
  border-top: 1px solid rgba(243, 237, 226, 0.1);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.9rem;
}

.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }

/* scroll reveal base state (only hidden once JS confirms it can animate them back in) */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(48px);
  will-change: transform, opacity;
}

/* responsive */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 140px; }
  .feature-grid { grid-template-columns: 1fr; gap: 24px; }
  .tool-row { grid-template-columns: repeat(2, 1fr); }
  .phone-row { grid-template-columns: 1fr; max-width: 260px; margin: 0 auto; }

  /* nav collapses into a toggled dropdown panel */
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid rgba(26, 20, 32, 0.08);
    padding: 4px 32px 16px;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a {
    padding: 14px 0;
    border-top: 1px solid rgba(26, 20, 32, 0.08);
  }

  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }

  .section { padding: 80px 0; }
  .stat-grid { grid-template-columns: 1fr; gap: 32px; }
  .case-grid { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr; }
  .compare-grid { grid-template-columns: 1fr; }
  .service-list { grid-template-columns: 1fr; }
  .deep-case { grid-template-columns: 1fr; gap: 28px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .step-item { grid-template-columns: 1fr; gap: 10px; }
  .slot-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-panel { padding: 32px 24px; }
  .listing-form { flex-direction: column; }

  .nav-inner { padding: 14px 18px; gap: 10px; }
  .nav-logo {
    min-width: 0;
    flex-shrink: 1;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 0.98rem;
    gap: 8px;
  }
  .nav-logo .logo-mark { width: 21px; height: 21px; }
  .nav-cta { flex-shrink: 0; padding: 7px 15px; font-size: 0.78rem; white-space: nowrap; }
  .nav-toggle { flex-shrink: 0; }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .footer-links { gap: 10px 18px; }
}

@media (max-width: 480px) {
  .container { padding: 0 20px; }
  .calc-tool { padding: 28px 22px; }
  .compare-card { padding: 26px; }
  .review-card { padding: 24px; }
  .slot-grid { grid-template-columns: 1fr; }
}
