/* ==========================================================================
   MERIDIAN ACCOUNTANCY — Editorial design system
   Cream / Charcoal / Brass · Fraunces + DM Sans
   ========================================================================== */

:root {
  /* Surfaces */
  --cream: #EDE6D6;
  --cream-warm: #F2EBDC;
  --cream-deep: #DCD4BE;
  --paper: #F5F0E1;
  --charcoal: #1F2A2E;
  --charcoal-soft: #2C3A40;
  --ink: #121819;

  /* Accents */
  --brass: #B89968;
  --brass-deep: #8C7448;
  --brass-soft: rgba(184, 153, 104, 0.18);

  /* Lines */
  --line: rgba(31, 42, 46, 0.16);
  --line-strong: rgba(31, 42, 46, 0.32);
  --line-cream: rgba(237, 230, 214, 0.18);

  /* Type */
  --font-display: 'Fraunces', 'Tiempos', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Scale */
  --container: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
  --section: clamp(80px, 10vw, 140px);
  --radius: 4px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

html { overflow-x: clip; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--charcoal);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  font-feature-settings: 'ss01', 'cv11';
}

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

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

button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection { background: var(--brass); color: var(--cream); }

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section { padding: var(--section) 0; }

/* --------------------------------------------------------------------------
   Typography primitives
   -------------------------------------------------------------------------- */

.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass-deep);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--brass);
}

.eyebrow.no-line::before { display: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: normal;
  letter-spacing: -0.02em;
  line-height: 1.02;
  color: var(--ink);
  font-variation-settings: 'opsz' 144, 'SOFT' 30;
}

.h-display {
  font-size: clamp(40px, 5.6vw, 80px);
  line-height: 1.0;
  letter-spacing: -0.03em;
}

.h-display em {
  font-style: italic;
  font-weight: 300;
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
  color: var(--charcoal);
}

.h-1 {
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.025em;
}

.h-2 {
  font-size: clamp(30px, 3.8vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.h-3 {
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  font-weight: 400;
}

.lede {
  font-family: var(--font-body);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--charcoal-soft);
  max-width: 56ch;
  font-weight: 400;
}

.body-small { font-size: 14px; line-height: 1.6; color: var(--charcoal-soft); }

.fig {
  font-family: var(--font-display);
  font-feature-settings: 'tnum';
  font-variant-numeric: lining-nums tabular-nums;
  font-weight: 300;
}

.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 0;
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--charcoal);
  color: var(--cream);
}
.btn-primary:hover {
  background: var(--ink);
  transform: translateY(-1px);
}
.btn-primary::after {
  content: '→';
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0;
  transition: transform 0.4s var(--ease);
}
.btn-primary:hover::after { transform: translateX(4px); }

.btn-ghost {
  background: transparent;
  color: var(--charcoal);
  border: 1px solid var(--charcoal);
}
.btn-ghost:hover {
  background: var(--charcoal);
  color: var(--cream);
}

.btn-cream {
  background: var(--cream);
  color: var(--charcoal);
}
.btn-cream:hover {
  background: var(--paper);
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 8px 0;
  border-bottom: 1px solid var(--brass);
  color: var(--charcoal);
  transition: gap 0.3s var(--ease);
}
.btn-link::after { content: '→'; font-family: var(--font-display); font-size: 15px; letter-spacing: 0; }
.btn-link:hover { gap: 14px; }

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

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.nav.scrolled {
  border-bottom-color: var(--line);
  background: rgba(237, 230, 214, 0.94);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 22px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.brand-mark {
  color: var(--brass);
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-text small {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 9px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brass-deep);
  margin-top: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--charcoal);
  transition: color 0.3s var(--ease);
  position: relative;
  padding: 6px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--brass);
  transition: width 0.4s var(--ease);
}

.nav-links a:hover { color: var(--brass-deep); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--brass-deep); }

.nav-cta { padding: 12px 22px; }

.nav-burger {
  display: none;
  width: 32px;
  height: 32px;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 6px;
}
.nav-burger span {
  display: block;
  height: 1px;
  background: var(--charcoal);
  transition: transform 0.3s var(--ease), width 0.3s var(--ease);
}
.nav-burger span:nth-child(1) { width: 22px; }
.nav-burger span:nth-child(2) { width: 14px; }

.nav-burger.open span:nth-child(1) { transform: translateY(4px) rotate(45deg); width: 22px; }
.nav-burger.open span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); width: 22px; }

/* --------------------------------------------------------------------------
   Hero (homepage)
   -------------------------------------------------------------------------- */

.hero {
  padding: clamp(56px, 8vw, 96px) 0 0;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 5vw, 72px);
  align-items: stretch;
}

.hero-text {
  padding-bottom: 48px;
}

.hero-text .eyebrow { margin-bottom: 32px; }

.hero-text h1 {
  margin-bottom: 36px;
}

.hero-text h1 .line {
  display: block;
  opacity: 0;
  transform: translateY(28px);
  animation: rise 0.9s var(--ease) forwards;
}
.hero-text h1 .line:nth-child(1) { animation-delay: 0.05s; }
.hero-text h1 .line:nth-child(2) { animation-delay: 0.18s; color: var(--charcoal); font-style: italic; font-variation-settings: 'opsz' 144, 'SOFT' 100; }
.hero-text h1 .line:nth-child(3) { animation-delay: 0.32s; }

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

.hero-text .lede {
  margin-bottom: 40px;
  opacity: 0;
  animation: rise 0.8s var(--ease) 0.5s forwards;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  opacity: 0;
  animation: rise 0.8s var(--ease) 0.65s forwards;
}

.hero-img {
  position: relative;
  min-height: 520px;
  background: var(--charcoal);
  overflow: hidden;
  opacity: 0;
  animation: fadeIn 1.1s var(--ease) 0.3s forwards;
}

.hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

.hero-stats {
  margin-top: clamp(56px, 7vw, 96px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--charcoal);
  color: var(--cream);
  padding: 36px clamp(24px, 4vw, 56px);
  gap: 24px;
}

.hero-stat {
  display: flex;
  align-items: center;
  gap: 18px;
  position: relative;
  padding-right: 24px;
}
.hero-stat:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--line-cream);
}

.hero-stat-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  color: var(--brass);
}

.hero-stat-text { display: flex; flex-direction: column; line-height: 1.2; }
.hero-stat-text strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 18px;
  font-variation-settings: 'opsz' 30;
  margin-bottom: 2px;
}
.hero-stat-text span {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(237, 230, 214, 0.66);
}

/* --------------------------------------------------------------------------
   Page header (interior pages)
   -------------------------------------------------------------------------- */

.page-head {
  padding: clamp(56px, 8vw, 96px) 0 clamp(64px, 7vw, 88px);
  border-bottom: 1px solid var(--line);
}

.page-head .eyebrow { margin-bottom: 32px; }

.page-head-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: end;
}

.page-head h1 { max-width: 14ch; }
.page-head .lede { padding-bottom: 12px; }

/* --------------------------------------------------------------------------
   Service cards
   -------------------------------------------------------------------------- */

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(48px, 6vw, 80px);
  flex-wrap: wrap;
}
.section-head .eyebrow { margin-bottom: 20px; }
.section-head h2 { max-width: 14ch; }
.section-head-text { max-width: 540px; }

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

.svc-card {
  background: var(--cream-warm);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: transform 0.5s var(--ease), border-color 0.4s var(--ease);
}
.svc-card:hover {
  transform: translateY(-4px);
  border-color: var(--brass);
}

.svc-card-img {
  aspect-ratio: 3 / 2;
  background: var(--cream-deep);
  overflow: hidden;
}
.svc-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.svc-card:hover .svc-card-img img { transform: scale(1.04); }

.svc-card-body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.svc-card-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  color: var(--brass-deep);
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}

.svc-card h3 { margin-bottom: 14px; }

.svc-card p { color: var(--charcoal-soft); font-size: 15px; flex: 1; margin-bottom: 24px; }

.svc-card-link {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--charcoal);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 4px;
  align-self: flex-start;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), gap 0.3s var(--ease);
}
.svc-card-link:hover { color: var(--brass-deep); border-color: var(--brass); gap: 12px; }
.svc-card-link::after { content: '→'; font-family: var(--font-display); font-size: 14px; letter-spacing: 0; }

/* --------------------------------------------------------------------------
   Promise / split section
   -------------------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.split.flip > div:first-child { order: 2; }
.split-text .eyebrow { margin-bottom: 28px; }
.split-text h2 { margin-bottom: 28px; }
.split-text p { color: var(--charcoal-soft); font-size: 17px; line-height: 1.65; margin-bottom: 18px; max-width: 56ch; }
.split-text .btn-link { margin-top: 16px; }

.split-img {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--charcoal);
  position: relative;
}
.split-img img { width: 100%; height: 100%; object-fit: cover; }

.split-img.wide { aspect-ratio: 3 / 2; }
.split-img.short { aspect-ratio: 1 / 1; }

.split-img-stamp {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: var(--cream);
  padding: 14px 22px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  color: var(--charcoal);
  letter-spacing: 0;
}
.split-img-stamp strong { font-style: normal; color: var(--brass-deep); margin-right: 6px; }

/* --------------------------------------------------------------------------
   Approach / process steps
   -------------------------------------------------------------------------- */

.approach {
  background: var(--charcoal);
  color: var(--cream);
}
.approach .eyebrow { color: var(--brass); }
.approach .eyebrow::before { background: var(--brass); }
.approach h2 { color: var(--cream); }

.steps {
  margin-top: clamp(48px, 6vw, 80px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-cream);
}

.step {
  padding: 40px 32px 40px 0;
  border-right: 1px solid var(--line-cream);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.step:last-child { border-right: none; padding-right: 0; }

.step-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 56px;
  font-weight: 300;
  color: var(--brass);
  line-height: 1;
}

.step h3 {
  color: var(--cream);
  font-size: 22px;
  font-weight: 400;
}

.step p { color: rgba(237, 230, 214, 0.72); font-size: 14px; line-height: 1.6; }

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

.testimonial { text-align: center; }

.testimonial blockquote {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 22ch;
  margin: 32px auto 40px;
  font-variation-settings: 'opsz' 144;
}

.testimonial blockquote .quote-mark {
  font-style: italic;
  color: var(--brass);
  font-size: 1.4em;
  line-height: 0;
  position: relative;
  top: 0.18em;
}

.testimonial cite {
  font-style: normal;
  display: block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--charcoal);
}
.testimonial cite span {
  display: block;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--charcoal-soft);
  margin-top: 4px;
  font-size: 12px;
}

/* --------------------------------------------------------------------------
   Team
   -------------------------------------------------------------------------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 2.5vw, 32px);
}

.team-card {
  display: flex;
  flex-direction: column;
}
.team-card-img {
  aspect-ratio: 3 / 4;
  background: var(--charcoal);
  overflow: hidden;
}
.team-card-img img { width: 100%; height: 100%; object-fit: cover; transition: filter 0.5s var(--ease), transform 1s var(--ease); filter: saturate(0.95); }
.team-card:hover .team-card-img img { filter: saturate(1.05); transform: scale(1.02); }

.team-card-body {
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
  margin-top: 18px;
}
.team-card h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.015em;
  margin-bottom: 4px;
}
.team-card p {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-deep);
}
.team-card-meta {
  font-size: 13px !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: var(--charcoal-soft) !important;
  margin-top: 12px;
  line-height: 1.55;
}

/* Specialism grid (replaces individual team cards on about page) */
.specialism-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.specialism {
  padding: 32px 28px 32px 0;
  border-right: 1px solid var(--line);
}
.specialism:last-child { padding-right: 0; border-right: none; }
.specialism + .specialism { padding-left: 28px; }

.specialism h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.015em;
  margin-bottom: 4px;
}
.specialism .specialism-role {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-deep);
  margin-bottom: 16px;
}
.specialism p:not(.specialism-role) {
  font-size: 14px;
  color: var(--charcoal-soft);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   CTA strip
   -------------------------------------------------------------------------- */

.cta-strip {
  background: var(--cream-deep);
  padding: clamp(56px, 7vw, 96px) 0;
  position: relative;
  overflow: hidden;
}

.cta-strip-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 48px;
  align-items: center;
}

.cta-strip h2 { max-width: 16ch; }
.cta-strip-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

.cta-mark {
  position: absolute;
  right: -80px;
  top: -80px;
  width: 320px;
  height: 320px;
  color: var(--brass);
  opacity: 0.12;
  pointer-events: none;
  transform: rotate(15deg);
}

/* --------------------------------------------------------------------------
   Services page
   -------------------------------------------------------------------------- */

.svc-row {
  padding: clamp(72px, 8vw, 120px) 0;
  border-bottom: 1px solid var(--line);
}
.svc-row:last-of-type { border-bottom: none; }

.svc-row-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.svc-row.flip .svc-row-grid > div:first-child { order: 2; }

.svc-row-text { padding-top: 32px; }
.svc-row-text .eyebrow { margin-bottom: 24px; }
.svc-row-text h2 { margin-bottom: 24px; }
.svc-row-text p { color: var(--charcoal-soft); font-size: 17px; line-height: 1.65; margin-bottom: 24px; max-width: 56ch; }

.svc-row-list {
  list-style: none;
  border-top: 1px solid var(--line);
  margin-top: 32px;
}
.svc-row-list li {
  display: flex;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.svc-row-list .svc-num {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--brass-deep);
  font-size: 14px;
  flex-shrink: 0;
  width: 32px;
}
.svc-row-list strong {
  font-weight: 500;
  color: var(--ink);
  display: block;
  margin-bottom: 4px;
}
.svc-row-list span {
  color: var(--charcoal-soft);
  font-size: 14px;
}
.svc-row-list li > div { flex: 1; }

.svc-row-img {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--charcoal);
  position: sticky;
  top: 110px;
  align-self: start;
}
.svc-row-img img { width: 100%; height: 100%; object-fit: cover; }

/* Sticky-scroll image on the freelancers page hero split */
.freelancers-split { align-items: start !important; }
.freelancers-split .split-img {
  position: sticky;
  top: 110px;
  align-self: start;
}

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

.pricing {
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(48px, 6vw, 80px);
  border: 1px solid var(--line);
}

.tier {
  padding: 40px;
  border-right: 1px solid var(--line);
  background: var(--cream-warm);
  display: flex;
  flex-direction: column;
}
.tier:last-child { border-right: none; }

.tier.featured { background: var(--charcoal); color: var(--cream); }
.tier.featured h3 { color: var(--cream); }
.tier.featured .tier-price { color: var(--cream); }
.tier.featured .tier-price small { color: rgba(237, 230, 214, 0.6); }
.tier.featured .tier-features li { color: rgba(237, 230, 214, 0.85); border-color: var(--line-cream); }
.tier.featured .tier-features li::before { color: var(--brass); }
.tier.featured .btn { background: var(--brass); color: var(--charcoal); }
.tier.featured .btn:hover { background: var(--cream); }
.tier.featured .tier-tag { color: var(--brass); }

.tier-tag {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass-deep);
  margin-bottom: 16px;
}
.tier h3 { font-size: 28px; margin-bottom: 24px; }

.tier-price {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 8px;
}
.tier-price small { font-size: 14px; font-family: var(--font-body); color: var(--charcoal-soft); margin-left: 8px; letter-spacing: 0; }

.tier-desc { font-size: 14px; color: var(--charcoal-soft); margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.tier.featured .tier-desc { color: rgba(237, 230, 214, 0.7); border-color: var(--line-cream); }

.tier-features { list-style: none; flex: 1; }
.tier-features li {
  position: relative;
  padding: 14px 0 14px 28px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--charcoal-soft);
}
.tier-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--brass-deep);
  font-family: var(--font-display);
}

.tier .btn { margin-top: 32px; justify-content: center; }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

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

.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  width: 100%;
  text-align: left;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: color 0.3s var(--ease);
}
.faq-q:hover { color: var(--brass-deep); }

.faq-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  position: relative;
}
.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  background: var(--brass-deep);
  transition: transform 0.3s var(--ease);
}
.faq-icon::before { left: 0; right: 0; top: 50%; height: 1px; }
.faq-icon::after { top: 0; bottom: 0; left: 50%; width: 1px; }

.faq-item.open .faq-icon::after { transform: rotateZ(90deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), padding 0.4s var(--ease);
}
.faq-item.open .faq-a {
  max-height: 600px;
  padding-bottom: 28px;
}
.faq-a p {
  color: var(--charcoal-soft);
  font-size: 15px;
  line-height: 1.65;
  max-width: 60ch;
}

/* --------------------------------------------------------------------------
   About page
   -------------------------------------------------------------------------- */

.founder-grid {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.founder-img {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--charcoal);
  position: relative;
}
.founder-img img { width: 100%; height: 100%; object-fit: cover; }

.founder-img-caption {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: var(--cream);
  padding: 16px 22px;
  max-width: 220px;
}
.founder-img-caption strong {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 4px;
}
.founder-img-caption span {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-deep);
}

.founder-text .eyebrow { margin-bottom: 28px; }
.founder-text h2 { margin-bottom: 32px; }
.founder-text p {
  color: var(--charcoal-soft);
  font-size: 17px;
  line-height: 1.72;
  margin-bottom: 20px;
  max-width: 60ch;
}
.founder-text p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 4.4em;
  float: left;
  line-height: 0.85;
  margin: 0.08em 0.08em 0 0;
  color: var(--brass-deep);
  font-weight: 300;
}

.signature {
  margin-top: 32px;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--charcoal);
  font-size: 28px;
  letter-spacing: -0.01em;
}
.signature small {
  display: block;
  font-style: normal;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-deep);
  margin-top: 8px;
}

/* Values */

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.value {
  padding: 48px 32px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.value:last-child { border-right: none; }

.value-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  color: var(--brass-deep);
  letter-spacing: 0.05em;
}

.value h3 { font-size: 28px; }
.value p { color: var(--charcoal-soft); font-size: 15px; line-height: 1.65; }

/* Credentials */

.credentials {
  background: var(--charcoal);
  color: var(--cream);
}
.credentials h2 { color: var(--cream); }
.credentials .eyebrow { color: var(--brass); }
.credentials .eyebrow::before { background: var(--brass); }

.cred-grid {
  margin-top: clamp(48px, 6vw, 72px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-cream);
}
.cred {
  padding: 36px 24px;
  border-right: 1px solid var(--line-cream);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cred:last-child { border-right: none; }
.cred strong {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 56px;
  font-variation-settings: 'opsz' 144;
  line-height: 1;
  color: var(--brass);
}
.cred span {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(237, 230, 214, 0.7);
}
.cred p { color: rgba(237, 230, 214, 0.85); font-size: 14px; line-height: 1.55; margin-top: 4px; }

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

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

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

.field { display: flex; flex-direction: column; gap: 8px; }

.field label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-deep);
  font-weight: 500;
}

.field input, .field textarea, .field select {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-strong);
  padding: 14px 0;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  transition: border-color 0.3s var(--ease);
  border-radius: 0;
  -webkit-appearance: none;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--brass);
}
.field textarea { resize: vertical; min-height: 120px; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.contact-form .btn { align-self: flex-start; margin-top: 16px; }

.contact-info {
  background: var(--cream-warm);
  padding: 40px;
  border: 1px solid var(--line);
}

.contact-info h3 { font-size: 24px; margin-bottom: 28px; }

.contact-detail {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.contact-detail:last-child { border-bottom: 1px solid var(--line); }
.contact-detail span {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-deep);
  display: block;
  margin-bottom: 6px;
}
.contact-detail strong, .contact-detail a {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 19px;
  color: var(--ink);
  letter-spacing: -0.01em;
  display: block;
}
.contact-detail a:hover { color: var(--brass-deep); }

.form-success {
  display: none;
  padding: 18px 22px;
  background: var(--charcoal);
  color: var(--cream);
  font-size: 14px;
  align-items: center;
  gap: 10px;
}
.form-success.show { display: flex; }
.form-success::before { content: '✓'; color: var(--brass); font-family: var(--font-display); font-size: 18px; }

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

.footer {
  background: var(--charcoal);
  color: var(--cream);
  padding: clamp(64px, 7vw, 96px) 0 32px;
  margin-top: 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: clamp(32px, 4vw, 56px);
  padding-bottom: clamp(48px, 5vw, 64px);
  border-bottom: 1px solid var(--line-cream);
}

.footer-brand .brand { color: var(--cream); margin-bottom: 24px; }
.footer-brand p {
  color: rgba(237, 230, 214, 0.7);
  font-size: 14px;
  line-height: 1.65;
  max-width: 32ch;
}

.footer h5 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 24px;
}

.footer ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer ul a {
  font-size: 15px;
  color: rgba(237, 230, 214, 0.85);
  transition: color 0.3s var(--ease);
}
.footer ul a:hover { color: var(--brass); }

.footer-bottom {
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(237, 230, 214, 0.55);
}

.footer-bottom .powered {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-bottom .powered a {
  color: var(--brass);
  text-decoration: underline;
  text-decoration-color: rgba(184, 153, 104, 0.4);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.3s var(--ease);
}
.footer-bottom .powered a:hover { text-decoration-color: var(--brass); }

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

/* --------------------------------------------------------------------------
   Reveal animations (scroll)
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal.delay-1 { transition-delay: 0.08s; }
.reveal.delay-2 { transition-delay: 0.16s; }
.reveal.delay-3 { transition-delay: 0.24s; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .nav-links { gap: 24px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stat:nth-child(2)::after { display: none; }
  .steps, .cred-grid { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2), .cred:nth-child(2) { border-right: none; }
  .step:nth-child(odd), .cred:nth-child(odd) { border-right: 1px solid var(--line-cream); }
  .step:nth-child(1), .step:nth-child(2), .cred:nth-child(1), .cred:nth-child(2) { border-bottom: 1px solid var(--line-cream); }
  .team-grid, .pricing-grid, .values-grid, .specialism-grid { grid-template-columns: repeat(2, 1fr); }
  .specialism-grid .specialism:nth-child(2) { border-right: none; }
  .specialism-grid .specialism:nth-child(1), .specialism-grid .specialism:nth-child(2) { border-bottom: 1px solid var(--line); padding-bottom: 32px; }
  .specialism-grid .specialism:nth-child(3), .specialism-grid .specialism:nth-child(4) { padding-top: 32px; }
  .pricing-grid .tier { border-bottom: 1px solid var(--line); }
  .pricing-grid .tier:nth-child(2) { border-right: none; }
  .values-grid .value { border-bottom: 1px solid var(--line); }
  .values-grid .value:nth-child(2) { border-right: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .svc-grid .svc-card:nth-child(3) { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    padding: 32px var(--gutter);
    gap: 24px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-150%);
    transition: transform 0.4s var(--ease);
    height: calc(100vh - 80px);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-burger { display: flex; }
  .nav-cta { display: none; }

  .hero-grid, .page-head-grid, .split, .svc-row-grid, .founder-grid, .contact-grid, .cta-strip-inner, .faq-grid {
    grid-template-columns: 1fr;
  }
  .hero-img { min-height: auto; aspect-ratio: 3 / 2; }
  .split.flip > div:first-child, .svc-row.flip .svc-row-grid > div:first-child { order: 0; }
  .svc-grid, .team-grid, .pricing-grid, .values-grid, .steps, .cred-grid, .specialism-grid {
    grid-template-columns: 1fr;
  }
  .specialism { padding: 24px 0 !important; border-right: none !important; border-bottom: 1px solid var(--line); }
  .specialism:last-child { border-bottom: none; }
  .svc-row-img, .freelancers-split .split-img { position: static; top: auto; }
  .svc-grid .svc-card { grid-column: auto; }
  .step, .cred, .tier, .value {
    border-right: none !important;
    border-bottom: 1px solid var(--line-cream);
  }
  .pricing-grid .tier, .values-grid .value { border-bottom: 1px solid var(--line); }
  .step:last-child, .cred:last-child, .tier:last-child, .value:last-child { border-bottom: none; }
  .hero-stats { grid-template-columns: 1fr; gap: 28px; }
  .hero-stat::after { display: none !important; }
  .hero-stat { border-bottom: 1px solid var(--line-cream); padding-bottom: 24px; }
  .hero-stat:last-child { border-bottom: none; padding-bottom: 0; }
  .field-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .cta-strip-actions { justify-content: flex-start; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .testimonial blockquote { max-width: 100%; }
  .nav-inner { padding: 18px var(--gutter); }
}
