/* ============================================================
   JAYDEN BROWN WEB DESIGN
   Design System: Warm Editorial
   Palette: #FDFBF7 | #1C1916 | #C4633A
   Fonts: Fraunces (display) + Outfit (body)
   ============================================================ */

/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */
:root {
  /* Colors */
  --bg:              #FDFBF7;
  --bg-2:            #F7F5F0;
  --bg-3:            #F0EDE7;
  --text:            #1C1916;
  --text-muted:      #716560;  /* was #7A6F66 — darkened for bg-3 contrast */
  --text-subtle:     #6B6059;  /* was #A89F96 — major fix, was 2.5:1 */
  --accent:          #9E5030;  /* was #C4633A — darkened for text + button contrast */
  --accent-hover:    #8D4528;  /* was #B5572F — proportional */
  --success:         #3A7A4A;
  --error:           #C4383A;
  --border:          rgba(180, 160, 140, 0.22);
  --border-strong:   rgba(180, 160, 140, 0.45);
  --rule:            #EAE4DC;

  /* Typography */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Outfit', system-ui, sans-serif;

  /* Type scale */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1.0625rem;
  --text-lg:   1.1875rem;
  --text-xl:   1.375rem;
  --text-2xl:  clamp(1.5rem, 2.5vw, 1.875rem);
  --text-3xl:  clamp(1.875rem, 3.5vw, 2.5rem);
  --text-4xl:  clamp(2.25rem, 4.5vw, 3.5rem);
  --text-hero: clamp(3rem, 7vw, 6rem);
  --text-page: clamp(2.25rem, 5vw, 4.25rem);

  /* Spacing */
  --sp-1:   0.25rem;
  --sp-2:   0.5rem;
  --sp-3:   0.75rem;
  --sp-4:   1rem;
  --sp-5:   1.25rem;
  --sp-6:   1.5rem;
  --sp-8:   2rem;
  --sp-10:  2.5rem;
  --sp-12:  3rem;
  --sp-16:  4rem;
  --sp-20:  5rem;
  --sp-24:  6rem;
  --section-y: clamp(5rem, 10vw, 8rem);

  /* Layout */
  --container:        min(1200px, 100% - 3rem);
  --container-wide:   min(1400px, 100% - 3rem);
  --container-narrow: min(740px, 100% - 3rem);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast:   180ms cubic-bezier(0.16, 1, 0.3, 1);
  --t-base:   300ms cubic-bezier(0.16, 1, 0.3, 1);
  --t-slow:   600ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Z-index */
  --z-base:    0;
  --z-raised:  10;
  --z-overlay: 20;
  --z-nav:     30;
}

/* ============================================================
   2. RESET
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

img, video, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

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

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

ul[role="list"], ol[role="list"] {
  list-style: none;
}

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

/* ============================================================
   3. ACCESSIBILITY
   ============================================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--sp-4);
  z-index: 9999;
  background: var(--accent);
  color: var(--bg);
  padding: var(--sp-3) var(--sp-6);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.skip-link:focus {
  top: var(--sp-4);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ============================================================
   4. LAYOUT UTILITIES
   ============================================================ */
.container {
  width: var(--container);
  margin-inline: auto;
}

.container--wide {
  width: var(--container-wide);
  margin-inline: auto;
}

.container--narrow {
  width: var(--container-narrow);
  margin-inline: auto;
}

.section {
  padding-block: var(--section-y);
}

.section--bordered {
  border-top: 1px solid var(--rule);
}

.grid-rule {
  display: grid;
  gap: 1px;
  background-color: var(--rule);
}

.grid-rule > * {
  background-color: var(--bg);
}

/* ============================================================
   5. TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: var(--text);
}

h1 { font-size: var(--text-hero); font-weight: 300; }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); font-weight: 500; }

p {
  max-width: 65ch;
  color: var(--text-muted);
  line-height: 1.75;
  font-weight: 400;
}

.p-wide { max-width: 80ch; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 1.25rem;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

.label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

/* ============================================================
   6. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 0.875rem 1.75rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color var(--t-fast), color var(--t-fast), transform var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--accent);
  color: #FDFBF7;
}

.btn--primary:hover {
  background: var(--accent-hover);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}

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

.btn--text {
  background: transparent;
  color: var(--text-muted);
  padding-inline: 0;
  padding-block: 0.25rem;
  border-radius: 0;
  border-bottom: 1px solid transparent;
}

.btn--text:hover {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.btn--arrow::after {
  content: '→';
  font-style: normal;
  transition: transform var(--t-fast);
}

.btn--arrow:hover::after {
  transform: translateX(4px);
}

.btn--full {
  width: 100%;
  justify-content: center;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  align-items: center;
}

/* ============================================================
   7. NAVIGATION
   ============================================================ */
.nav-header {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  border-bottom: 1px solid var(--rule);
  /* backdrop-filter intentionally on ::before, NOT here.
     backdrop-filter on a parent creates a containing block for
     position:fixed children, which breaks the mobile overlay. */
}

.nav-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(253, 251, 247, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: -1;
}

.nav {
  padding-block: 1.125rem;
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-8);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
  flex-shrink: 0;
}

.nav__logo-wordmark {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  list-style: none;
}

.nav__link {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color var(--t-fast);
  position: relative;
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--text);
}

.nav__link.is-active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent);
}

.nav__link--cta {
  background: var(--accent);
  color: #FDFBF7;
  padding: 0.5rem 1.125rem;
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: 2px;
  transition: background var(--t-fast);
}

.nav__link--cta:hover {
  background: var(--accent-hover);
  color: #FDFBF7;
}

.nav__link--cta.is-active::after {
  display: none;
}

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--sp-2);
  z-index: calc(var(--z-nav) + 1);
}

.nav__toggle-bar {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: transform var(--t-base), opacity var(--t-base);
  transform-origin: center;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ============================================================
   8. HERO
   ============================================================ */
.hero {
  padding-top: clamp(5rem, 12vw, 9rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--sp-12);
  align-items: end;
}

.hero__content {
  max-width: 820px;
}

.hero__eyebrow {
  margin-bottom: var(--sp-6);
}

.hero__heading {
  font-size: var(--text-hero);
  font-weight: 300;
  margin-bottom: var(--sp-8);
  color: var(--text);
  letter-spacing: -0.03em;
}

.hero__heading em {
  font-style: italic;
  color: var(--accent);
}

.hero__sub {
  font-size: var(--text-lg);
  color: var(--text-muted);
  margin-bottom: var(--sp-10);
  max-width: 52ch;
  line-height: 1.7;
}

.hero__meta {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  padding-top: var(--sp-10);
  margin-top: var(--sp-10);
  border-top: 1px solid var(--rule);
}

.hero__meta-item {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.hero__meta-value {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1;
}

.hero__meta-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.hero__mark {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--sp-2);
  padding-bottom: var(--sp-4);
  opacity: 0.3;
}

.hero__mark-line {
  width: 1px;
  height: 80px;
  background: var(--border-strong);
}

.hero__mark-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

/* Page hero (inner pages) */
.page-hero {
  padding-top: clamp(4rem, 8vw, 7rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--rule);
}

.page-hero__heading {
  font-size: var(--text-page);
  font-weight: 400;
  margin-top: var(--sp-5);
  margin-bottom: var(--sp-6);
  letter-spacing: -0.025em;
}

.page-hero__sub {
  font-size: var(--text-lg);
  color: var(--text-muted);
  max-width: 55ch;
  line-height: 1.7;
}

/* ============================================================
   9. PROOF STRIP
   ============================================================ */
.proof-strip {
  border-bottom: 1px solid var(--rule);
  padding-block: var(--sp-10);
  background: var(--bg-2);
}

.proof-strip__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
}

.proof-strip__item {
  background: var(--bg-2);
  padding: var(--sp-8) var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.proof-strip__value {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1;
}

.proof-strip__label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

/* ============================================================
   10. SERVICE CARDS (Pricing)
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.service-card {
  background: var(--bg);
  padding: var(--sp-10);
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  transition: background var(--t-base);
  position: relative;
}

.service-card:hover {
  background: var(--bg-2);
}

.service-card--featured {
  background: var(--bg-2);
  border-left: 3px solid var(--accent);
}

.service-card--featured:hover {
  background: var(--bg-3);
}

.service-card--wide {
  grid-column: 1 / -1;
}

.service-card__tag {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.service-card__name {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.05;
}

.service-card__price {
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
}

.service-card__price-value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
}

.service-card__price-note {
  font-size: var(--text-sm);
  color: var(--text-subtle);
  font-weight: 400;
}

.service-card__desc {
  font-size: var(--text-base);
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 44ch;
}

.service-card__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  flex: 1;
}

.service-card__feature {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.5;
  font-weight: 400;
}

.service-card__feature::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3 8l3.5 3.5 6.5-7' stroke='%23C4633A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ============================================================
   11. PORTFOLIO GRID
   ============================================================ */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.portfolio-card {
  background: var(--bg-2);
  overflow: hidden;
  cursor: pointer;
  transition: background var(--t-base);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.portfolio-card:hover {
  background: var(--bg-3);
}

.portfolio-card--large {
  grid-column: span 7;
}

.portfolio-card--small {
  grid-column: span 5;
}

.portfolio-card--placeholder {
  grid-column: span 12;
  background: var(--bg);
  border: 1.5px dashed var(--border-strong);
  align-items: center;
  justify-content: center;
  padding: var(--sp-16);
  text-align: center;
}

.portfolio-card__image {
  aspect-ratio: 16/9;
  background: var(--bg-3);
  overflow: hidden;
  position: relative;
}

.portfolio-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-card:hover .portfolio-card__image img {
  transform: scale(1.03);
}

.portfolio-card__image-placeholder {
  width: 100%;
  height: 100%;
  background: var(--bg-3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-card__content {
  padding: var(--sp-8);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  flex: 1;
  border-top: 1px solid var(--rule);
}

.portfolio-card__industry {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.portfolio-card__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.1;
}

.portfolio-card__desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 44ch;
}

.portfolio-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-2);
}

.portfolio-card__tag {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-subtle);
  border: 1px solid var(--border-strong);
  padding: 0.25rem 0.625rem;
  border-radius: 2px;
}

.portfolio-placeholder__icon {
  width: 48px;
  height: 48px;
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  margin-bottom: var(--sp-4);
  color: var(--text-subtle);
}

.portfolio-placeholder__heading {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: var(--sp-4);
}

.portfolio-placeholder__desc {
  color: var(--text-muted);
  max-width: 42ch;
  margin-inline: auto;
  margin-bottom: var(--sp-8);
}

/* ============================================================
   12. PROCESS STEPS
   ============================================================ */
.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.process-step {
  background: var(--bg);
  padding: var(--sp-10) var(--sp-8);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  transition: background var(--t-base);
}

.process-step:hover {
  background: var(--bg-2);
}

.process-step__num {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.process-step__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.1;
}

.process-step__desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 32ch;
}

/* ============================================================
   13. SECTION HEADERS
   ============================================================ */
.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  margin-bottom: var(--sp-12);
}

.section-head--row {
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-8);
}

.section-head__heading {
  font-size: var(--text-4xl);
  font-weight: 400;
  letter-spacing: -0.025em;
}

.section-head__sub {
  font-size: var(--text-lg);
  max-width: 52ch;
  line-height: 1.7;
}

/* ============================================================
   14. COMPARISON TABLE
   ============================================================ */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--rule);
}

.comparison-table th,
.comparison-table td {
  padding: var(--sp-5) var(--sp-6);
  text-align: left;
  border-bottom: 1px solid var(--rule);
  font-size: var(--text-sm);
}

.comparison-table th {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
  background: var(--bg-2);
}

.comparison-table th:first-child {
  width: 40%;
}

.comparison-table td:first-child {
  color: var(--text-muted);
}

.comparison-table td:nth-child(2) {
  color: var(--accent);
  font-weight: 600;
}

.comparison-table td:nth-child(3),
.comparison-table td:nth-child(4) {
  color: var(--text-subtle);
}

.comparison-table tr:last-child th,
.comparison-table tr:last-child td {
  border-bottom: none;
}

.check { color: var(--accent); font-weight: 600; }
.cross { color: var(--text-subtle); }

/* ============================================================
   15. FAQ
   ============================================================ */
.faq-list {
  display: flex;
  flex-direction: column;
}

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

.faq-item:first-child {
  border-top: 1px solid var(--rule);
}

.faq-trigger {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-6);
  padding: var(--sp-6) 0;
  text-align: left;
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 500;
  line-height: 1.4;
  transition: color var(--t-fast);
}

.faq-trigger:hover {
  color: var(--accent);
}

.faq-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--text-subtle);
  transition: transform var(--t-base);
}

.faq-trigger[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
}

.faq-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--t-slow);
}

.faq-body p {
  color: var(--text-muted);
  font-size: var(--text-base);
  line-height: 1.75;
  padding-bottom: var(--sp-6);
}

/* ============================================================
   16. CONTACT FORM
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: var(--sp-16);
  align-items: start;
}

.contact-form-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.form-label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.01em;
}

.form-label span[aria-hidden] {
  color: var(--accent);
  margin-left: 2px;
}

.form-input,
.form-select,
.form-textarea {
  background: var(--bg);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 400;
  padding: 0.875rem 1rem;
  width: 100%;
  border-radius: 2px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  -webkit-appearance: none;
  appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(196, 99, 58, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-subtle);
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%237A6F66' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-select option {
  background: var(--bg);
  color: var(--text);
}

.form-textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.65;
}

.form-error {
  font-size: var(--text-xs);
  color: var(--error);
  font-weight: 500;
  display: none;
}

.form-group.has-error .form-input,
.form-group.has-error .form-select,
.form-group.has-error .form-textarea {
  border-color: var(--error);
}

.form-group.has-error .form-error {
  display: block;
}

/* Checkbox addon */
.form-group--checkbox {
  margin-top: calc(var(--sp-2) * -1); /* pull up slightly under the select */
}

.form-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  cursor: pointer;
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.5;
  max-width: none;
}

.form-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  background: var(--bg);
  cursor: pointer;
  margin-top: 1px;
  transition: border-color var(--t-fast), background var(--t-fast);
  position: relative;
}

.form-checkbox:checked {
  background: var(--accent);
  border-color: var(--accent);
}

.form-checkbox:checked::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2 6l3 3 5-5' stroke='%23FDFBF7' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
}

.form-checkbox:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.form-inline-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--t-fast);
}

.form-inline-link:hover {
  color: var(--accent-hover);
}
}

.form-success {
  display: none;
  padding: var(--sp-8);
  border: 1px solid var(--rule);
  background: var(--bg-2);
  border-radius: 2px;
}

.form-success.is-visible {
  display: block;
}

.form-success__heading {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: var(--sp-3);
  max-width: none;
}

.form-success__body {
  color: var(--text-muted);
  font-size: var(--text-base);
  max-width: none;
}

.form-success__body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Contact details sidebar */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--rule);
  border-radius: 2px;
  overflow: hidden;
}

.contact-details__block {
  padding: var(--sp-6) var(--sp-8);
  border-bottom: 1px solid var(--rule);
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.contact-details__block:last-child {
  border-bottom: none;
}

.contact-details__value {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--text);
}

.contact-details__link {
  font-size: var(--text-base);
  color: var(--accent);
  font-weight: 500;
  transition: color var(--t-fast);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-details__link:hover {
  color: var(--accent-hover);
}

.contact-details__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-top: var(--sp-1);
}

.contact-details__list li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.5;
}

.contact-details__bullet {
  color: var(--accent);
  flex-shrink: 0;
  font-weight: 600;
}

/* ============================================================
   17. ABOUT — DIFFERENTIATORS
   ============================================================ */
.differentiators {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.diff-item {
  background: var(--bg);
  padding: var(--sp-10) var(--sp-8);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  transition: background var(--t-base);
}

.diff-item:hover {
  background: var(--bg-2);
}

.diff-item__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.1;
}

.diff-item__desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 34ch;
}

/* ============================================================
   18. CTA BLOCK
   ============================================================ */
.cta-block {
  padding-block: var(--section-y);
  border-top: 1px solid var(--rule);
  text-align: center;
  background: var(--bg-2);
}

.cta-block__eyebrow {
  margin-bottom: var(--sp-6);
  justify-content: center;
}

.cta-block__heading {
  font-size: var(--text-4xl);
  font-weight: 400;
  letter-spacing: -0.025em;
  margin-bottom: var(--sp-6);
  max-width: 18ch;
  margin-inline: auto;
}

.cta-block__sub {
  font-size: var(--text-lg);
  max-width: 44ch;
  margin-inline: auto;
  margin-bottom: var(--sp-10);
}

/* ============================================================
   19. FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--rule);
  padding-top: var(--sp-16);
  padding-bottom: var(--sp-10);
  background: var(--bg-3);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--sp-10);
  margin-bottom: var(--sp-12);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

.footer__wordmark {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
}

.footer__tagline {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 28ch;
}

.footer__nap {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--rule);
}

.footer__nap-line {
  font-size: var(--text-xs);
  color: var(--text-subtle);
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.footer__nap-line a {
  color: var(--text-subtle);
  transition: color var(--t-fast);
}

.footer__nap-line a:hover {
  color: var(--accent);
}

.footer__col-heading {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: var(--sp-5);
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.footer__link {
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--t-fast);
  line-height: 1.4;
}

.footer__link:hover {
  color: var(--text);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--sp-8);
  border-top: 1px solid var(--rule);
  gap: var(--sp-8);
  flex-wrap: wrap;
}

.footer__copy {
  font-size: var(--text-xs);
  color: var(--text-subtle);
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* ============================================================
   20. SCROLL REVEALS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 600ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 240ms; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 320ms; }
.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-stagger > * {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html { scroll-behavior: auto; }
}

/* ============================================================
   21. UTILITY CLASSES
   ============================================================ */
.text-accent  { color: var(--accent); }
.text-muted   { color: var(--text-muted); }
.text-subtle  { color: var(--text-subtle); }
.text-center  { text-align: center; }
.mt-4  { margin-top: var(--sp-4); }
.mt-6  { margin-top: var(--sp-6); }
.mt-8  { margin-top: var(--sp-8); }
.mt-12 { margin-top: var(--sp-12); }
.mb-4  { margin-bottom: var(--sp-4); }
.mb-6  { margin-bottom: var(--sp-6); }
.mb-8  { margin-bottom: var(--sp-8); }
.mb-12 { margin-bottom: var(--sp-12); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   22. SERVICES PAGE — ADDITIONAL STYLES
   ============================================================ */
.included-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.included-item {
  background: var(--bg);
  padding: var(--sp-8);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  transition: background var(--t-base);
}

.included-item:hover {
  background: var(--bg-2);
}

.included-item__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--text);
  line-height: 1.2;
}

.included-item__desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.7;
}

.retainer-block {
  border: 1px solid var(--rule);
  background: var(--bg-2);
  padding: var(--sp-10);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-10);
  align-items: start;
}

.retainer-price {
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
}

.retainer-price__value {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1;
}

.retainer-price__unit {
  font-size: var(--text-base);
  color: var(--text-subtle);
}

/* ============================================================
   23. RESPONSIVE
   ============================================================ */

/* --- Tablet (≤ 900px) --- */
@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }

  .hero__mark { display: none; }

  .hero__meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-6);
  }

  .proof-strip__inner {
    grid-template-columns: 1fr 1fr;
  }

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

  .service-card--wide {
    grid-column: auto;
  }

  .process-list {
    grid-template-columns: 1fr 1fr;
  }

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

  .contact-layout {
    grid-template-columns: 1fr;
    gap: var(--sp-10);
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-8);
  }

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

/* --- Mobile (≤ 640px) --- */
@media (max-width: 640px) {
  :root {
    --section-y: clamp(3.5rem, 8vw, 5rem);
  }

  h1 { font-size: clamp(2.25rem, 11vw, 3.5rem); }

  .nav__links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--sp-8);
    z-index: calc(var(--z-nav) + 1);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--t-base);
    overscroll-behavior: contain;
  }

  .nav__links.is-open {
    opacity: 1;
    pointer-events: all;
  }

  .nav__link {
    font-size: 1.5rem;
    font-family: var(--font-display);
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--text);
  }

  .nav__link--cta {
    font-size: 1.5rem;
    background: transparent;
    color: var(--accent);
    padding: 0;
    border-radius: 0;
  }

  .nav__toggle {
    display: flex;
    z-index: calc(var(--z-nav) + 2);  /* above the overlay (z-nav + 1) */
  }

  .hero { padding-top: clamp(3.5rem, 10vw, 6rem); }

  .proof-strip__inner {
    grid-template-columns: 1fr 1fr;
  }

  .process-list {
    grid-template-columns: 1fr;
  }

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

  .portfolio-card--large,
  .portfolio-card--small {
    grid-column: span 1;
  }

  .portfolio-card--placeholder {
    grid-column: span 1;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

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

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-4);
  }

  .section-head--row {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .cta-block__heading {
    font-size: var(--text-3xl);
  }

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

  .retainer-block {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
  }

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

  .contact-layout {
    gap: var(--sp-8);
  }
}
