/* SMG — Three-Page Site (Home, Case Studies, Contact) */

:root {
  --dark: #FFFFFF;          /* page background */
  --dark-2: #FAFAF8;        /* secondary surface (very subtle warm off-white) */
  --gold: #1A1A1A;          /* "accent" — same soft black as text, italic does the work */
  --gold-light: #000000;    /* slightly stronger black for hover state */
  --accent-gold: #C9A86C;   /* SMG gold — surfaced only in interaction states (nav active, link hover, form focus) */
  --light: #1A1A1A;         /* primary text — soft black, same warmth as the dark version inverted */
  --muted: #888888;         /* secondary text */
  --rule: rgba(26, 26, 26, 0.16);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  background: var(--dark);
  color: var(--light);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

h1 em, h2 em {
  font-style: italic;
  color: var(--gold);
}

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

.eyebrow.center { text-align: center; }

a {
  color: var(--light);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover { color: var(--accent-gold); }

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

.container-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 2.5rem;
  text-align: center;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.brand {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--light);
}

.brand:hover { color: var(--light); }

.brand-mark {
  color: var(--gold);
  font-style: italic;
}

.nav {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav a {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.02em;
  position: relative;
  color: rgba(26, 26, 26, 0.90);
}

.nav a.active { color: var(--accent-gold); }

.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--accent-gold);
  transition: width 0.3s ease;
}

.nav a:hover::after,
.nav a.active::after { width: 100%; }

/* Hero (home) */
.hero {
  padding: 7rem 0 5rem;
  border-bottom: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(0, 0, 0, 0.025) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(0, 0, 0, 0.015) 0%, transparent 50%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero .eyebrow { margin-bottom: 1.5rem; }

.hero h1 {
  font-size: clamp(2.8rem, 6.5vw, 5.5rem);
  max-width: 18ch;
  margin-bottom: 1.5rem;
  font-weight: 400;
  line-height: 1.05;
}

.tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  color: var(--gold-light);
  max-width: 32ch;
  margin-bottom: 2rem;
  line-height: 1.4;
}

.hero-lede {
  font-size: 1.1rem;
  font-weight: 300;
  color: rgba(26, 26, 26, 0.90);
  max-width: 60ch;
  line-height: 1.6;
}

/* Page header (case studies, contact) */
.page-header {
  padding: 6rem 0 3.5rem;
  border-bottom: 1px solid var(--rule);
}

.page-header .eyebrow { margin-bottom: 1.5rem; }

.page-header h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
}

.page-lede {
  font-size: 1.1rem;
  color: rgba(26, 26, 26, 0.90);
  max-width: 56ch;
  line-height: 1.6;
}

/* Sections */
section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--rule);
}

section:last-of-type { border-bottom: none; }

/* What */
.what { text-align: center; }

.what .lede {
  font-size: 1.1rem;
  color: rgba(26, 26, 26, 0.90);
  margin-bottom: 3rem;
  line-height: 1.7;
  text-align: left;
}

.what .quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--gold-light);
  margin-top: 3rem;
  line-height: 1.4;
  max-width: 28ch;
  margin-left: auto;
  margin-right: auto;
}

.what .quote-sub {
  font-size: 1rem;
  color: rgba(26, 26, 26, 0.78);
  margin-top: 1rem;
  margin-bottom: 3rem;
  max-width: 50ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.what .engagements {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--light);
  margin-top: 3rem;
  letter-spacing: 0.005em;
}

/* Clients */
.clients {
  padding: 5rem 0;
}

.client-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 4rem;
  padding: 2.5rem 0;
  align-items: baseline;
}

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

.client-row:last-child {
  border-bottom: 1px solid var(--rule);
}

.row-label .eyebrow {
  margin-bottom: 0.6rem;
}

.row-note {
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--muted);
  font-style: italic;
  line-height: 1.4;
}

.row-names {
  font-family: var(--serif);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: rgba(26, 26, 26, 0.90);
  letter-spacing: 0.01em;
  line-height: 2.1;
  font-weight: 400;
  overflow-wrap: break-word;
  word-break: normal;
}

.row-names .name-pair {
  white-space: nowrap;
  display: inline-block;
}

.row-names .name {
  white-space: nowrap;
}

.row-names.secondary {
  color: rgba(26, 26, 26, 0.70);
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
}

.row-names .sep {
  color: var(--gold);
  margin: 0 0.55rem;
  font-style: normal;
  font-weight: 400;
}

/* CTA (shared) */
.cta {
  text-align: center;
  padding: 6rem 0;
}

.link-arrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 6px;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.link-arrow:hover {
  color: var(--accent-gold);
  border-bottom-color: var(--accent-gold);
  opacity: 1;
}

.link-arrow .arrow {
  display: inline-block;
  margin-left: 0.4rem;
  transition: transform 0.25s ease;
}

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

/* ============================================
   CASE STUDIES
   ============================================ */

.case {
  padding: 7rem 0;
  border-bottom: 1px solid var(--rule);
}

.case:last-of-type { border-bottom: none; }

/* Image wrapper + image — base styles */
.case-image-wrap {
  position: relative;
  display: block;
  overflow: hidden;
}

.case-image {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
}

/* Stacked layout (landscape images) — image full width above text */
.case-stacked .case-image-wrap {
  margin-bottom: 4rem;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 2.5rem;
}

.case-stacked .case-image.landscape {
  max-height: none;
}

/* Split layout (portrait images) — two-column grid */
.case-split-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: center;
}

.case-split-reverse .case-split-grid {
  grid-template-columns: 1.2fr 1fr;
}

.case-split .case-image-wrap {
  max-width: 500px;
}

.case-split .case-image.portrait {
  width: 100%;
}

/* Case body — typography */
.case-body { max-width: 900px; }

.case-split .case-body { max-width: none; }

.case-meta {
  display: flex;
  align-items: baseline;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.case-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--gold);
}

.case-cat {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.case h2 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  margin-bottom: 0.5rem;
  line-height: 1.05;
}

.case-scope {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--gold-light);
  margin-bottom: 2rem;
  letter-spacing: 0.005em;
}

.case-context {
  margin-bottom: 2.5rem;
}

.case-context p {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.7vw, 1.3rem);
  color: rgba(26, 26, 26, 0.90);
  line-height: 1.6;
  font-weight: 400;
  max-width: 56ch;
  margin-bottom: 1.25rem;
}

.case-context p:last-child { margin-bottom: 0; }

.case-services {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(26, 26, 26, 0.65);
  font-weight: 500;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}

.case-services .bullet {
  color: var(--gold);
  margin: 0 0.35rem;
}

/* Contact page */
.contact-page {
  padding: 9rem 0 8rem;
  border-bottom: none;
}

.contact-page .eyebrow { margin-bottom: 1.5rem; }

.contact-page h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  margin-bottom: 2rem;
  text-align: center;
}

.contact-page .lede {
  color: rgba(26, 26, 26, 0.90);
  font-size: 1.05rem;
  margin-bottom: 3rem;
  text-align: center;
}

.email-line {
  text-align: center;
  font-family: var(--serif);
  font-size: 1.3rem;
  margin-bottom: 5rem;
  padding-bottom: 5rem;
  border-bottom: 1px solid var(--rule);
}

.email-line a {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 4px;
}

/* Form */
.form { text-align: left; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 1.5rem;
}

.form-grid .full { grid-column: 1 / -1; }

.form-field label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--rule);
  color: var(--light);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 300;
  padding: 0.6rem 0;
  transition: border-color 0.2s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-bottom-color: var(--accent-gold);
  border-color: var(--accent-gold);
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
  border: 1px solid var(--rule);
  padding: 1rem;
}

.form-submit {
  margin-top: 1rem;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 1rem 2.5rem;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--sans);
  transition: all 0.25s ease;
}

.form-submit:hover {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  color: var(--dark);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 3rem 0 2rem;
  background: #FAFAF8;
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-brand {
  font-family: var(--serif);
  font-size: 1.15rem;
}

.footer-meta {
  font-size: 12px;
  color: var(--muted);
  text-align: right;
  letter-spacing: 0.02em;
  line-height: 1.6;
}

.footer-meta a { color: var(--muted); }
.footer-meta a:hover { color: var(--accent-gold); }

.footer-base {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

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

/* Responsive */
@media (max-width: 900px) {
  .case-split-grid,
  .case-split-reverse .case-split-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  /* On mobile, image always comes first regardless of reverse */
  .case-split-reverse .case-split-grid .case-image-wrap {
    grid-row: 1;
  }
  .case-split-reverse .case-split-grid .case-body {
    grid-row: 2;
  }

  .case-split .case-image-wrap {
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (max-width: 760px) {
  .container, .container-narrow { padding: 0 1.5rem; }

  /* Header: shrink brand and tighten nav so everything fits one line */
  .site-header .container {
    padding-top: 1rem;
    padding-bottom: 1rem;
    flex-wrap: nowrap;
    gap: 1rem;
  }

  .brand {
    font-size: 1.05rem;
    line-height: 1.2;
    flex-shrink: 1;
    min-width: 0;
  }

  .nav {
    gap: 1.25rem;
    flex-shrink: 0;
  }

  .nav a {
    font-size: 12px;
    white-space: nowrap;
  }

  .hero { padding: 5rem 0 4rem; }
  section { padding: 4rem 0; }
  .case { padding: 4rem 0; }

  /* What section: drop ch-based widths so text uses full container */
  .what .quote,
  .what .quote-sub {
    max-width: none;
  }

  .what .quote {
    font-size: clamp(1.5rem, 5vw, 1.9rem);
    margin-top: 2.5rem;
    padding-top: 2.5rem;
  }

  .what .quote-sub {
    margin-bottom: 2.5rem;
  }

  .what .engagements {
    padding-top: 2.5rem;
    font-size: 1.05rem;
  }

  .case-stacked .case-image-wrap {
    margin-bottom: 2.5rem;
    padding: 0 1.5rem;
  }

  .case-meta {
    flex-direction: column;
    gap: 0.75rem;
  }

  .case-services {
    font-size: 11px;
    letter-spacing: 0.12em;
  }

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

  .site-footer .container,
  .footer-base {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .footer-meta { text-align: left; }

  .contact-page { padding: 4rem 0; }
  .email-line { font-size: 1.1rem; }

  /* Client rows: stack and size down */
  .client-row {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 2rem 0;
  }

  .row-names {
    font-size: 0.95rem;
    line-height: 1.9;
  }

  .row-names.secondary {
    font-size: 0.85rem;
    line-height: 1.85;
  }

  .row-names .sep {
    margin: 0 0.4rem;
  }

  .row-note {
    font-size: 0.85rem;
  }
}
