/* ============================================================
   TOKENS
   ============================================================ */
:root {
  --cream:      #EDE8DE;
  --cream-tint: #E4DDD1;
  --ink:        #1C1610;
  --rust:       #AD4E28;
  --rust-dark:  #8A3B1C;
  --muted:      #7A6D61;
  --rule:       #CEC8BB;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  --max-w:      1400px;
  --pad-x:      60px;
  --section-y:  96px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  background-color: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 200;
  transition: background 300ms var(--ease-out),
              box-shadow 300ms var(--ease-out);
}

.nav.scrolled {
  background: var(--cream);
  box-shadow: 0 1px 0 var(--rule);
}

.nav-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
  padding-block: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Brand: name + title stacked */
.nav-brand {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex-shrink: 0;
}

.nav-name {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--ink);
  line-height: 1.2;
}

.nav-title {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.2;
}

/* Desktop nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 180ms;
}

.nav-link:hover {
  color: var(--rust);
}

/* Right side: CTA + hamburger */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

/* Hamburger button */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--ink);
  transition: transform 220ms var(--ease-out), opacity 220ms;
}

.nav-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile dropdown */
.nav-mobile {
  display: none;
  flex-direction: column;
  padding-inline: var(--pad-x);
  padding-block-end: 20px;
  border-block-start: 1px solid var(--rule);
  background: var(--cream);
}

.nav-mobile.is-open {
  display: flex;
}

.nav-mobile-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
  padding-block: 14px;
  border-block-end: 1px solid var(--rule);
  transition: color 180ms;
}

.nav-mobile-link:last-child {
  border-block-end: none;
}

.nav-mobile-link:hover {
  color: var(--rust);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 13px 28px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background  200ms var(--ease-out),
              color        200ms var(--ease-out),
              border-color 200ms var(--ease-out);
}

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

.btn-primary {
  background: var(--rust);
  color: #fff;
  border-color: var(--rust);
}

.btn-primary:hover {
  background: var(--rust-dark);
  border-color: var(--rust-dark);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-secondary:hover {
  background: var(--ink);
  color: var(--cream);
}

.btn-nav {
  padding: 9px 20px;
  font-size: 0.7rem;
  background: transparent;
  color: var(--rust);
  border-color: var(--rust);
}

.btn-nav:hover {
  background: var(--rust);
  color: #fff;
}

.cta-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-block-start: 40px;
}

.cta-note {
  font-size: 0.75rem;
  color: var(--muted);
  margin-block-start: 10px;
  letter-spacing: 0.02em;
}

/* ============================================================
   EYEBROW
   ============================================================ */
.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--rust);
  margin-block-end: 22px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding-block: 148px 96px;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 80px;
  align-items: start;
}

.hero-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  display: block;
  mix-blend-mode: multiply;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.125rem, 4vw, 3.75rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-block-end: 24px;
}

.hero-headline em {
  font-style: italic;
  font-weight: 400;
}

.hero-sub {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-style: italic;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.4;
  margin-block-end: 14px;
}

.hero-body p {
  color: var(--ink);
}

.hero-body .hero-weight {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-style: italic;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.4;
}

.hero-body p + p {
  margin-block-start: 14px;
}

/* Value prop paragraph — visually distinct from emotional setup above */
.hero-body .hero-thesis {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.75;
  color: var(--ink);
  margin-block-start: 32px;
  margin-block-end: 4px;
}

.hero-body .hero-thesis + p {
  margin-block-start: 14px;
}

/* ============================================================
   SECTIONS — shared
   ============================================================ */
.section {
  padding-block: var(--section-y);
  border-block-start: 1px solid var(--rule);
}

.section-tinted {
  background: var(--cream-tint);
}

.section-lead {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
  margin-block-end: 28px;
}

.section-intro {
  color: var(--muted);
  margin-block-end: 52px;
}

.section-coda {
  font-family: var(--font-display);
  font-size: 1.3125rem;
  font-style: italic;
  color: var(--muted);
  margin-block-start: 52px;
}

/* ============================================================
   CONDITIONS (Who this is for)
   ============================================================ */
.conditions {
  display: flex;
  flex-direction: column;
  max-width: 85%;
}

.condition {
  padding-block: 30px;
  padding-inline-start: 28px;
  border-inline-start: 1px solid var(--rule);
  transition: border-color 250ms var(--ease-out);
}

.condition:not(:last-child) {
  border-block-end: 1px solid var(--rule);
}

.condition:hover {
  border-inline-start-color: var(--rust);
}

.condition-marker {
  display: block;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rust);
  margin-block-end: 10px;
}

.condition p {
  max-width: none;
}

/* ============================================================
   WHAT'S DIFFERENT
   ============================================================ */
.prose-block {
  max-width: 85%;
}

.prose-block p {
  max-width: none;
}

.prose-block p:first-child {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 1.8vw, 1.3rem);
  font-style: italic;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.5;
}

.prose-block p + p {
  margin-block-start: 28px;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services {
  margin-block-start: 52px;
}

.service {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0 40px;
  padding-block: 36px;
  border-block-start: 1px solid var(--rule);
  transition: border-color 250ms var(--ease-out);
}

.service:last-child {
  border-block-end: 1px solid var(--rule);
}

.service:hover {
  border-block-start-color: var(--rust);
}

.service:last-child:hover {
  border-block-end-color: var(--rust);
}

.service-meta {
  padding-block-start: 5px;
}

.service-phase {
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rust);
  line-height: 1;
}

.service-title {
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  margin-block-end: 14px;
}

.service-content p {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.75;
}

.service-content p + p {
  margin-block-start: 10px;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-framing {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-style: italic;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.5;
  max-width: 85%;
  margin-block-end: 28px;
  padding-block-end: 28px;
  border-block-end: 1px solid var(--rule);
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 48px;
}

.testimonial {
  display: flex;
  flex-direction: column;
  padding-block: 36px 0;
  border-block-start: 1px solid var(--rule);
}

.testimonial:last-child {
  border-block-end: none;
}

.testimonial::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 3.5rem;
  line-height: 1;
  color: var(--rust);
  display: block;
  margin-block-end: 10px;
}

.testimonial-quote {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.5vw, 1.175rem);
  font-style: italic;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.65;
  margin-block-end: 20px;
}

.testimonial-attr {
  display: block;
  font-style: normal;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rust);
  margin-block-start: auto;
  padding-block-start: 20px;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  max-width: none;
}

.about-name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 500;
  color: var(--ink);
  margin-block-end: 5px;
  line-height: 1.1;
}

.about-credentials {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin-block-end: 24px;
}

.about-career {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin-block-end: 4px;
}

.about-lead {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 1.8vw, 1.3rem);
  font-style: italic;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.5;
}

.about-lead ~ p {
  margin-block-start: 28px;
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-form {
  max-width: none;
  margin-block-start: 44px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 36px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-block-end: 32px;
}

.form-field label {
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-field input,
.form-field textarea {
  background: transparent;
  border: none;
  border-block-end: 1px solid var(--rule);
  padding-block: 10px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  outline: none;
  resize: none;
  transition: border-color 200ms;
  width: 100%;
}

.form-field input:focus,
.form-field textarea:focus {
  border-block-end-color: var(--rust);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--muted);
  opacity: 0.5;
}

.form-footer {
  display: flex;
  align-items: center;
  gap: 24px;
}

.form-feedback {
  display: none;
  font-size: 0.8125rem;
  margin-block-start: 16px;
}

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

.form-success {
  color: var(--rust);
}

.form-error {
  color: var(--muted);
}

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

.btn:disabled {
  opacity: 0.6;
  cursor: default;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-block-start: 1px solid var(--rule);
  background: var(--cream-tint);
  padding-block: 36px;
}

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

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

.footer-id {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink);
}

.footer-email {
  font-size: 0.8125rem;
  color: var(--muted);
  transition: color 180ms;
}

.footer-email:hover {
  color: var(--rust);
}

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 640ms var(--ease-out),
              transform 640ms var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   RESPONSIVE — tablet (≤ 800px)
   ============================================================ */
@media (max-width: 1000px) {
  :root {
    --pad-x: 36px;
    --section-y: 80px;
  }

  .hero-layout {
    grid-template-columns: 1fr 280px;
    gap: 56px;
  }
}

@media (max-width: 860px) {
  :root {
    --pad-x: 28px;
    --section-y: 72px;
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding-block: 120px 72px;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-image {
    order: -1;
    max-width: 240px;
  }

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

  .testimonial:last-child {
    border-block-end: 1px solid var(--rule);
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================================================
   RESPONSIVE — mobile (≤ 520px)
   ============================================================ */
@media (max-width: 520px) {
  :root {
    --pad-x: 20px;
    --section-y: 60px;
  }

  .hero {
    padding-block: 100px 60px;
  }

  .hero-image {
    max-width: 180px;
  }

  .service {
    grid-template-columns: 1fr;
    gap: 8px 0;
  }

  .service-meta {
    padding-block-start: 0;
  }

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

  .cta-group {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .btn-nav {
    width: auto;
    text-align: left;
  }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
