/* Signal & Crux Co. — shared styles */

:root {
  --pearl:       #ebdfc0;
  --pearl-mid:   #e3d6b0;
  --pearl-deep:  #d8c9a0;
  --carbon:      #1a1a1a;
  --carbon-mid:  #363630;
  --teal:        #175f75;
  --teal-light:  #1e7a95;
  --amethyst:    #321e48;
  --olive:       #656839;
  --olive-new:   #4d4f2b;
  --ash:         #95b2b0;
  --text-body:   #3d3a30;
  --text-muted:  #7a7060;
  --rule:        rgba(23, 95, 117, 0.18);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--pearl);
  color: var(--carbon);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='.042'/%3E%3C/svg%3E");
}

main { flex: 1; }

/* ── SITE CONTAINER ── */
.site-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 4rem;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--teal);
  border-bottom: 1px solid rgba(0,0,0,.12);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-wordmark {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: .02em;
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-wordmark .amp { color: rgba(255,255,255,0.75); font-style: italic; font-weight: 400; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.4rem;
  list-style: none;
}
.nav-links a {
  font-family: 'Inter', sans-serif;
  font-size: .72rem;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: color .2s;
  white-space: nowrap;
}
.nav-links a:hover { color: #ffffff; }
.nav-links a[aria-current="page"] { color: var(--pearl); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .25rem;
  z-index: 110;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: #ffffff;
  transition: transform .25s, opacity .2s;
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-drawer {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--pearl);
  z-index: 99;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 5rem 2.5rem 3rem;
}
.nav-drawer.open { display: flex; }
.nav-drawer a {
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem;
  font-weight: 400;
  color: var(--carbon);
  text-decoration: none;
  line-height: 1.15;
  padding: .65rem 0;
  border-bottom: 1px solid var(--rule);
  width: 100%;
  transition: color .2s;
}
.nav-drawer a:last-child { border-bottom: none; }
.nav-drawer a:hover { color: var(--teal); }

/* ── FOOTER ── */
footer {
  padding: 2rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--teal);
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: auto;
}
.footer-wordmark {
  font-family: 'Playfair Display', serif;
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .02em;
  color: #ffffff;
}
.footer-wordmark .amp { color: rgba(255,255,255,0.7); font-style: italic; font-weight: 400; }
.footer-tagline {
  font-family: 'Inter', sans-serif;
  font-style: italic;
  font-size: .75rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: .03em;
}
.footer-email {
  font-family: 'Inter', sans-serif;
  font-size: .7rem;
  letter-spacing: .06em;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color .2s;
}
.footer-email:hover { color: #ffffff; }

/* ── PAGE SHELL ── */
main { padding-top: 4.5rem; }

.page-hero {
  padding: 5rem 0 4rem;
  border-bottom: 1px solid var(--rule);
}
.page-hero-kicker {
  font-family: 'Inter', sans-serif;
  font-size: .64rem;
  font-weight: 400;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.2rem;
}
.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.01em;
  color: var(--carbon);
  margin-bottom: 1rem;
}
.page-hero .subheading {
  font-family: 'Inter', sans-serif;
  font-style: italic;
  font-weight: 300;
  font-size: 1.05rem;
  color: var(--text-body);
  line-height: 1.5;
  max-width: 560px;
  letter-spacing: .01em;
}

/* ── PROSE ── */
.prose {
  max-width: 680px;
  margin: 0 auto;
  padding: 4rem 0 0;
}
.prose p {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-body);
  margin-bottom: 1.5rem;
}
.prose p:last-child { margin-bottom: 0; }
.prose h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--carbon);
  margin-top: 3.5rem;
  margin-bottom: .5rem;
  line-height: 1.2;
}
.prose h2:first-child { margin-top: 0; }
.prose .service-tagline {
  font-family: 'Inter', sans-serif;
  font-style: italic;
  font-weight: 300;
  font-size: .95rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  letter-spacing: .01em;
}
.prose h3 {
  font-family: 'Inter', sans-serif;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-top: 2.5rem;
  margin-bottom: .6rem;
}
.prose strong { font-weight: 500; color: var(--carbon); }
.prose em { font-style: italic; }
.prose a { color: var(--teal); text-decoration: none; }
.prose a:hover { text-decoration: underline; }
.prose .btn-dark { color: #ffffff; }
.prose .btn-dark:hover { color: #ffffff; }

.prose ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}
.prose ul li {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-body);
  padding-left: 1.4rem;
  position: relative;
  margin-bottom: .3rem;
}
.prose ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--ash);
}

/* ── SECTION DIVIDER ── */
.section-rule {
  border: none;
  height: 1px;
  background: rgba(23, 95, 117, 0.40);
  margin: 4rem auto 0;
  width: 100%;
}

/* ── CTA BLOCK ── */
.cta-block {
  padding: 3.5rem 0 4rem;
  max-width: 680px;
  margin: 0 auto;
}
.cta-block p {
  font-family: 'Inter', sans-serif;
  font-style: italic;
  font-weight: 300;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.cta-block a { color: var(--teal); text-decoration: none; }
.cta-block a:hover { text-decoration: underline; }

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: .68rem;
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: .9rem 2.2rem;
  cursor: pointer;
  border: none;
  transition: background .25s, color .25s, border-color .25s;
}
.btn-dark { background: var(--carbon); color: #ffffff; }
.btn-dark:hover { background: var(--carbon-mid); color: #ffffff; }
.btn-outline {
  background: transparent;
  color: var(--carbon);
  border: 1px solid rgba(26,26,26,.35);
}
.btn-outline:hover { background: var(--carbon); color: #ffffff; border-color: var(--carbon); }

/* ── TWO-COLUMN LAYOUT ── */
.two-col-layout {
  display: flex;
  gap: 5rem;
  align-items: flex-start;
  padding: 0 0 4rem;
}
.two-col-main {
  flex: 1 1 auto;
  min-width: 0;
}
.two-col-sidebar {
  flex: 0 0 280px;
  position: sticky;
  top: 6.5rem;
}

/* Prose inside two-col-main fills the column — no auto centering needed */
.two-col-main .prose {
  max-width: 100%;
  margin: 0;
}
.two-col-main .cta-block {
  max-width: 100%;
  margin: 0;
}
.two-col-main .section-rule {
  margin-left: 0;
  margin-right: 0;
}

/* ── SIDEBAR ── */
.sidebar-cta {
  background: var(--ash);
  border-top: 2px solid var(--teal);
  padding: 2rem;
  margin-top: 4rem;
}
.sidebar-cta-label {
  font-family: 'Inter', sans-serif;
  font-size: .6rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--carbon);
  margin-bottom: 1rem;
}
.sidebar-cta p {
  font-family: 'Inter', sans-serif;
  font-size: .88rem;
  line-height: 1.65;
  color: var(--carbon);
  font-style: italic;
  margin-bottom: 1.25rem;
}
.sidebar-cta p:last-child { margin-bottom: 0; }
.sidebar-cta a { color: var(--teal); text-decoration: none; }
.sidebar-cta a:hover { text-decoration: underline; }
.sidebar-cta .btn {
  display: block;
  width: 100%;
  text-align: center;
  margin-bottom: 1.5rem;
}

/* ── DISPATCH CARDS ── */
.dispatch-card {
  padding: 1.75rem;
}
.dispatch-card-kicker {
  font-family: 'Inter', sans-serif;
  font-size: .62rem;
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ash);
  margin-bottom: .75rem;
}
.dispatch-card h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--carbon);
  margin-bottom: .5rem;
  line-height: 1.2;
}
.dispatch-card p {
  font-family: 'Inter', sans-serif;
  font-size: .92rem;
  line-height: 1.65;
  color: var(--text-body);
  margin-bottom: 1.2rem;
}
.dispatch-card h2 a {
  color: inherit;
  text-decoration: none;
}
.dispatch-card h2 a:hover { color: var(--teal); }

.dispatch-card .read-link {
  font-family: 'Inter', sans-serif;
  font-size: .68rem;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal);
  text-decoration: none;
  transition: color .2s;
}
.dispatch-card .read-link:hover { color: var(--carbon); }

/* Series left-border modifiers */
.dispatch-card--field-notes   { border-left: 12px solid var(--teal);      padding-left: 1.25rem; }
.dispatch-card--book-excerpt  { border-left: 12px solid var(--amethyst);  padding-left: 1.25rem; }
.dispatch-card--experiments   { border-left: 12px solid var(--olive-new); padding-left: 1.25rem; }
.dispatch-card--field-notes   .dispatch-card-kicker { color: var(--teal); }
.dispatch-card--book-excerpt  .dispatch-card-kicker { color: var(--amethyst); }
.dispatch-card--experiments   .dispatch-card-kicker { color: var(--olive-new); }

/* ── DISPATCH GRID (two-column) ── */
.dispatch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2rem;
}

/* Homepage dispatches band — lifted white cards on ash surface */
.dispatches-preview .dispatch-card {
  background: #ffffff;
}

/* ── ARTICLE COLUMN (reading pages) ── */
.article-column {
  max-width: 720px;
  margin: 0 auto;
}

/* ── WPP MODEL TWO-COLUMN ── */
.wpp-model-layout {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 5rem;
  align-items: start;
}

/* ── SVG PLACEHOLDER ── */
.diagram-placeholder {
  border: 1px dashed rgba(23, 95, 117, 0.35);
  background: rgba(23, 95, 117, 0.03);
  padding: 5rem 2rem;
  text-align: center;
  margin: 3rem 0;
}
.diagram-placeholder p {
  font-family: 'Inter', sans-serif;
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ash);
}

/* ── PDF EMBED ── */
.pdf-embed-card {
  border: 1px solid rgba(23, 95, 117, 0.25);
  background: #1e1e1e;
  margin: 2.5rem 0;
  overflow: hidden;
}
.pdf-embed-card iframe {
  width: 100%;
  height: 520px;
  border: none;
  display: block;
}
.pdf-embed-placeholder {
  border: 1px dashed rgba(23, 95, 117, 0.35);
  background: rgba(23, 95, 117, 0.03);
  padding: 4rem 2rem;
  text-align: center;
  margin: 2.5rem 0;
}
.pdf-embed-placeholder p {
  font-family: 'Inter', sans-serif;
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ash);
  line-height: 1.6;
}

/* ── ARTICLE (Dispatches detail) ── */
.article-intro {
  font-family: 'Inter', sans-serif;
  font-style: italic;
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--rule);
}
.article-body p {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-body);
  margin-bottom: 1.75rem;
}
.article-body h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--carbon);
  margin: 3rem 0 1rem;
}
.article-body h3 {
  font-family: 'Inter', sans-serif;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 2.5rem 0 .75rem;
}
.article-body strong { font-weight: 500; color: var(--carbon); }
.article-body em { font-style: italic; }
.article-body ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
}
.article-body ul li {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-body);
  padding-left: 1.4rem;
  position: relative;
  margin-bottom: .4rem;
}
.article-body ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--ash);
}

.pdf-download {
  margin: 3rem 0;
  padding: 2rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.pdf-download p {
  font-family: 'Inter', sans-serif;
  font-size: .85rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: .75rem;
}
.pdf-download a {
  font-family: 'Inter', sans-serif;
  font-size: .68rem;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal);
  text-decoration: none;
}
.pdf-download a:hover { text-decoration: underline; }

/* ── WPP CALLOUT (ash grey intro block) ── */
.wpp-callout {
  background: var(--ash);
  padding: 3rem;
  margin: 3rem 0 0;
}
.wpp-callout h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--carbon);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}
.wpp-callout p {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--carbon);
  margin-bottom: 1.5rem;
}
.wpp-callout p:last-child { margin-bottom: 0; }
.wpp-callout a { color: var(--teal); text-decoration: none; }
.wpp-callout a:hover { text-decoration: underline; }

/* ── CONTACT FORM ── */
.contact-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  padding: 4rem 0;
}
.contact-section-heading {
  font-family: 'Inter', sans-serif;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.5rem;
}
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-form label {
  font-family: 'Inter', sans-serif;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--carbon);
  display: block;
  margin-bottom: .4rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  font-family: 'Inter', sans-serif;
  font-size: .95rem;
  font-weight: 300;
  color: var(--carbon);
  background: #ffffff;
  border: 1px solid rgba(23, 95, 117, 0.3);
  padding: .75rem 1rem;
  outline: none;
  transition: border-color .2s;
  border-radius: 0;
  -webkit-appearance: none;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--teal); }
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form .form-field { display: flex; flex-direction: column; }

/* ── ABOUT SARAH TWO-COLUMN HEADER ── */
.about-sarah-header {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  margin-bottom: 2rem;
}
.about-sarah-header .about-sarah-photo { flex-shrink: 0; }
.about-sarah-header h2 { margin-bottom: 1rem; }

/* ── ABOUT SECTIONS ── */
.about-section { padding: 4rem 0; }
.about-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--carbon);
  margin-bottom: 2rem;
}
.about-section p {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-body);
  margin-bottom: 1.5rem;
}
.about-section p:last-child { margin-bottom: 0; }
.about-section em { font-style: italic; }
.about-section a { color: var(--teal); text-decoration: none; }
.about-section a:hover { text-decoration: underline; }
.about-section .closing-line {
  font-style: italic;
  color: var(--text-muted);
  font-size: .95rem;
}
.about-divider {
  border: none;
  height: 1px;
  background: rgba(23, 95, 117, 0.40);
  margin: 0;
}

/* ── ANIMATIONS ── */
@keyframes riseUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── RESPONSIVE ── */

/* Mobile: < 768px */
@media (max-width: 767px) {
  .site-container { padding: 0 1.5rem; }
  .nav-inner { padding: 1.1rem 1.5rem; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .page-hero { padding: 3rem 0 2.5rem; }
  .prose { padding: 2.5rem 0 0; }
  .section-rule { margin: 3rem auto 0; }
  .cta-block { padding: 2.5rem 0 3rem; }
  .about-section { padding: 2.5rem 0; }

  .two-col-layout { flex-direction: column; gap: 0; padding-bottom: 3rem; }
  .two-col-sidebar { flex: none; width: 100%; position: static; }
  .sidebar-cta { margin-top: 1.5rem; }

  .dispatch-grid { grid-template-columns: 1fr; gap: 1rem; }

  .wpp-model-layout { grid-template-columns: 1fr; gap: 0; }
  .contact-sections { grid-template-columns: 1fr; gap: 3rem; padding: 2.5rem 0; }
  .about-sarah-header { flex-direction: column; align-items: center; text-align: center; }

  .pdf-embed-card iframe { height: 380px; }

  footer {
    padding: 1.8rem 1.5rem;
    flex-direction: column;
    gap: .75rem;
    text-align: center;
  }
}

/* Tablet: 768px – 1023px */
@media (min-width: 768px) and (max-width: 1023px) {
  .site-container { padding: 0 2.5rem; }
  .nav-inner { padding: 1.1rem 2.5rem; }
  .nav-links { gap: 1.6rem; }
  .nav-links a { font-size: .66rem; letter-spacing: .1em; }

  .page-hero { padding: 4rem 0 3rem; }
  .prose { padding: 3rem 0 0; }
  .section-rule { margin: 3rem auto 0; }
  .cta-block { padding: 3rem 0 3.5rem; }
  .about-section { padding: 3rem 0; }

  .two-col-layout { flex-direction: column; gap: 0; padding-bottom: 3.5rem; }
  .two-col-sidebar { flex: none; width: 100%; position: static; }
  .sidebar-cta { margin-top: 2rem; }

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

  .wpp-model-layout { grid-template-columns: 1fr; gap: 0; }

  footer { padding: 1.8rem 2.5rem; }
}

/* Desktop: ≥ 1024px */
@media (min-width: 1024px) {
  .two-col-layout { flex-direction: row; }
  .wpp-model-layout { grid-template-columns: 3fr 2fr; }
}
