/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Palette */
  --surface:           #E7E1D8;
  --surface-alt:       #F1EDE6;
  --ink:               #1C1816;
  --ink-muted:         #5E554F;
  --line:              #BFB4A8;
  --accent:            #6E1F2A;
  --on-accent:         #F3ECE4;
  --deep:              #2B1F1B;
  --on-deep:           #EFE7DD;
  --on-deep-muted:     #C2AE9C;
  --accent-on-deep:    #C25A66;
  --mahogany:          #5E3A21;
  --on-mahogany:       #F1E6D8;
  --on-mahogany-muted: #D2B79A;
  --tint:              #B39B82;

  /* Typography */
  --font-display: 'Marcellus', Georgia, serif;
  --font-body:    'Archivo', Arial, sans-serif;
  --font-mono:    'DM Mono', 'Courier New', monospace;

  /* Spacing scale */
  --sp-1:  4px;
  --sp-2:  8px;
  --sp-3:  16px;
  --sp-4:  24px;
  --sp-5:  40px;
  --sp-6:  64px;
  --sp-7:  104px;

  /* Layout */
  --nav-height: 56px;
  --max-width:  1200px;

  /* Focus */
  --focus-ring: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent);
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--surface);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

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

ul { list-style: none; }

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

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

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* ============================================================
   UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--sp-4);
}

@media (min-width: 768px) {
  .container { padding-inline: var(--sp-6); }
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-3);
}

/* Scroll-triggered fade-up */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 28px;
  border: 1px solid transparent;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
  text-decoration: none;
}

.btn--primary {
  background-color: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}

.btn--primary:hover {
  background-color: #5a1922;
  border-color: #5a1922;
}

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

.btn--ghost:hover {
  background-color: var(--ink);
  color: var(--surface);
}

.btn--ghost-deep {
  background-color: transparent;
  color: var(--on-deep);
  border-color: rgba(239,231,221,0.5);
}

.btn--ghost-deep:hover {
  background-color: rgba(239,231,221,0.1);
  border-color: var(--on-deep);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background-color: transparent;
  transition: background-color 0.3s, border-bottom 0.3s;
}

.nav.is-scrolled {
  background-color: var(--deep);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav__inner {
  display: flex;
  align-items: center;
  height: 100%;
  padding-inline: var(--sp-4);
  max-width: var(--max-width);
  margin-inline: auto;
  gap: var(--sp-4);
}

.nav__wordmark {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-deep);
  white-space: nowrap;
  margin-right: auto;
}

.nav__menu {
  display: none;
  align-items: center;
  gap: var(--sp-5);
}

.nav__link {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-deep-muted);
  transition: color 0.2s;
}

.nav__link:hover { color: var(--on-deep); }

/* Nav CTA — desktop only */
.nav__cta {
  display: none;
  padding: 10px 20px;
  font-size: 10px;
}

.nav__toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  height: 1px;
  background-color: var(--on-deep);
  transition: transform 0.2s, opacity 0.2s;
}

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

/* Mobile menu open */
.nav__menu.is-open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background-color: var(--deep);
  padding: var(--sp-4) var(--sp-4) var(--sp-5);
  gap: var(--sp-4);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

@media (min-width: 768px) {
  .nav__menu { display: flex; }
  .nav__cta   { display: inline-flex; }
  .nav__toggle { display: none; }
}

/* ============================================================
   HERO — full-bleed image with burgundy gradient overlay
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background-color: var(--deep);
}

.hero__bg {
  position: absolute;
  inset: 0;
}

.hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    155deg,
    rgba(110, 31, 42, 0.18) 0%,
    rgba(43, 31, 27, 0.52) 55%,
    rgba(43, 31, 27, 0.80) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-top: calc(var(--nav-height) + var(--sp-5));
  padding-bottom: var(--sp-7);
}

.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-deep-muted);
  margin-bottom: var(--sp-4);
}

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(56px, 11vw, 120px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--on-deep);
  margin-bottom: var(--sp-5);
}

.hero__tagline {
  font-family: var(--font-body);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.45;
  color: rgba(239, 231, 221, 0.78);
  max-width: 520px;
  margin-bottom: var(--sp-5);
}

.hero__cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-3);
}

.hero__note {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--on-deep-muted);
  font-style: italic;
}

/* ============================================================
   ABOUT — text-only, mahogany
   ============================================================ */
.about {
  background-color: var(--mahogany);
  color: var(--on-mahogany);
  padding: var(--sp-7) 0;
}

.about__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
  align-items: start;
}

@media (min-width: 768px) {
  .about__inner {
    grid-template-columns: 5fr 7fr;
    gap: var(--sp-7);
  }
}

.about__portrait {
  width: 100%;
  border-radius: 999px 999px 0 0;
  object-fit: cover;
}

.about__content {
  max-width: 600px;
}

.about .eyebrow {
  color: var(--accent-on-deep);
}

.about__heading {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--on-mahogany);
  margin-bottom: var(--sp-5);
}

.about__text {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.about__text p {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.7;
  color: var(--on-mahogany-muted);
}

.about__text p:first-child {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--on-mahogany);
  line-height: 1.5;
}

.about__pullquote {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 28px);
  line-height: 1.3;
  color: var(--on-mahogany);
  border-left: 2px solid var(--accent-on-deep);
  padding-left: var(--sp-5);
  margin-top: var(--sp-6);
  font-style: normal;
}

/* ============================================================
   SERVICES — editorial primary offerings + secondary row
   ============================================================ */
.services {
  background-color: var(--surface);
  padding: var(--sp-7) 0;
}

/* Header: heading left, intro text right */
.services__header {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
  margin-bottom: var(--sp-6);
  align-items: end;
}

@media (min-width: 768px) {
  .services__header {
    grid-template-columns: 5fr 7fr;
    gap: var(--sp-6);
  }
}

.services__heading {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-top: var(--sp-3);
}

.services__intro {
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.7;
  color: var(--ink-muted);
}

/* Primary offerings */
.services__primary {
  border-top: 1px solid var(--line);
  margin-bottom: var(--sp-6);
}

.services__offering {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
  padding: var(--sp-6) 0;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 768px) {
  .services__offering {
    grid-template-columns: 5fr 7fr;
    gap: var(--sp-6);
    align-items: start;
  }
}

.services__offering-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
  margin-bottom: var(--sp-2);
}

.services__offering-name {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.5vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.services__offering-desc {
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.7;
  color: var(--ink-muted);
  padding-top: 2px;
}

@media (min-width: 768px) {
  /* Vertically align description with name's cap height */
  .services__offering-desc { padding-top: var(--sp-5); }
}

/* Secondary / Also available */
.services__secondary {
  border-top: 1px solid var(--line);
  padding-top: var(--sp-5);
  margin-bottom: var(--sp-6);
}

.services__secondary-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: var(--sp-5);
}

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

@media (min-width: 640px) {
  .services__secondary-grid { grid-template-columns: repeat(3, 1fr); }
}

.services__secondary-name {
  font-family: var(--font-display);
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: var(--sp-2);
}

.services__secondary-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-muted);
}

.services__cta-row {
  padding-top: var(--sp-2);
}

/* ============================================================
   IMAGE BAND — Flatiron, between Services and Contact
   ============================================================ */
.image-band {
  position: relative;
  height: clamp(40vh, 58vh, 60vh);
  overflow: hidden;
}

.image-band__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.image-band__overlay {
  position: absolute;
  inset: 0;
  background: rgba(110, 31, 42, 0.10);
}

@media (max-width: 640px) {
  .image-band { height: 38vh; }
}

/* ============================================================
   TESTIMONIALS — burgundy carousel
   ============================================================ */
.testimonials {
  background-color: var(--accent);
  padding: var(--sp-7) 0;
}

.testimonials__inner {
  max-width: 820px;
}

.testimonials__stage {
  position: relative;
  min-height: 180px; /* updated by JS to match tallest quote */
  margin-bottom: var(--sp-6);
}

.testimonials__quote {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  pointer-events: none;
}

.testimonials__quote.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  .testimonials__quote {
    transition: opacity 0.3s ease;
    transform: none !important;
  }
}

.testimonials__placeholder-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background-color: var(--on-accent);
  padding: 3px 8px;
  margin-bottom: var(--sp-3);
}

.testimonials__text {
  font-family: var(--font-display);
  font-size: clamp(22px, 3.5vw, 40px);
  line-height: 1.25;
  color: var(--on-accent);
  margin-bottom: var(--sp-4);
  font-style: normal;
}

.testimonials__attribution {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.testimonials__name {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--on-accent);
  font-weight: 500;
}

.testimonials__detail {
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(243, 236, 228, 0.6);
}

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

.testimonials__btn {
  color: var(--on-accent);
  opacity: 0.6;
  transition: opacity 0.2s;
  padding: var(--sp-1);
  display: flex;
  align-items: center;
}

.testimonials__btn:hover,
.testimonials__btn:focus-visible { opacity: 1; }

.testimonials__dots {
  display: flex;
  gap: 10px;
  align-items: center;
}

.testimonials__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(243, 236, 228, 0.35);
  transition: background 0.25s, transform 0.25s;
  cursor: pointer;
}

.testimonials__dot.is-active {
  background: var(--on-accent);
  transform: scale(1.35);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  background-color: var(--surface-alt);
  padding: var(--sp-7) 0;
}

.contact__inner {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
}

.contact__heading {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: var(--sp-3);
}

.contact__sub {
  font-size: 15px;
  color: var(--ink-muted);
  line-height: 1.6;
}

/* ---- Form ---- */
.contact__form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.contact__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

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

@media (min-width: 640px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

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

.form-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.form-optional {
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
  font-size: 10px;
  color: var(--ink-muted);
}

.form-input {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background-color: var(--surface);
  border: 1px solid var(--line);
  padding: 12px var(--sp-3);
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
}

.form-input::placeholder { color: var(--ink-muted); opacity: 0.6; }

.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(110, 31, 42, 0.12);
}

.form-input.has-error {
  border-color: var(--accent);
}

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

/* Select with custom arrow */
.form-select-wrap {
  position: relative;
}

.form-select {
  padding-right: 40px;
  cursor: pointer;
}

.form-select-arrow {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 6px;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%235E554F'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

.form-helper {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  margin-top: var(--sp-1);
  font-style: italic;
}

.form-error {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  min-height: 16px;
}

.form-submit {
  align-self: flex-start;
  position: relative;
  min-width: 140px;
}

.form-submit .btn-loading { display: none; }

.form-submit.is-loading .btn-text    { visibility: hidden; }
.form-submit.is-loading .btn-loading { display: block; position: absolute; }

/* Success state */
.form-success {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-5);
  padding: var(--sp-5) 0;
}

.form-success__message {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 28px);
  line-height: 1.3;
  color: var(--ink);
  max-width: 540px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background-color: var(--deep);
  color: var(--on-deep);
  padding: var(--sp-6) 0;
}

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

@media (min-width: 768px) {
  .footer__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer__wordmark {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--on-deep);
  margin-bottom: var(--sp-1);
}

.footer__location {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--on-deep-muted);
}

.footer__copy {
  font-size: 12px;
  color: var(--on-deep-muted);
}

.footer__social {
  display: flex;
  gap: var(--sp-4);
}

.footer__social-link {
  color: var(--on-deep-muted);
  transition: color 0.2s;
}

.footer__social-link:hover { color: var(--on-deep); }
