/* ============================================================
   CHANDLER ELAINE CREATIVE — Editorial design system
   Palette, type and layout rules live here. Change a value
   once and it updates across every page.
   ============================================================ */

:root {
  /* --- Ink & paper ------------------------------------------------ */
  --ink:        #14130F;   /* near-black, warm */
  --ink-70:     #4A473E;   /* body copy */
  --ink-45:     #7C776B;   /* captions, meta */
  --paper:      #FBF9F5;   /* page background */
  --bone:       #F2EEE6;   /* alternating band */
  --sand:       #E5DFD3;   /* image slots, fills */
  --rule:       #D8D1C3;   /* hairlines */
  --camel:      #A07548;   /* single accent — use sparingly */
  --camel-soft: #C9A278;

  /* --- Type ------------------------------------------------------- */
  --serif: "DM Serif Display", "Cormorant Garamond", "Iowan Old Style",
           "Times New Roman", serif;
  --sans:  "Jost", "Futura", "Avenir Next", "Helvetica Neue", Arial, sans-serif;

  /* --- Rhythm ----------------------------------------------------- */
  --gutter: clamp(1.5rem, 5vw, 5.5rem);
  --section: clamp(5rem, 11vw, 10.5rem);
  --max: 1280px;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 300;
  line-height: 1.75;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ============================================================
   TYPE
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.018em;
  margin: 0;
}
h1 { font-size: clamp(2.9rem, 7.4vw, 6.1rem); line-height: 0.97; }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.6rem); line-height: 1.06; }
h3 { font-size: clamp(1.45rem, 2.2vw, 1.95rem); line-height: 1.18; }
h4 { font-size: 1.2rem; line-height: 1.3; }
p  { margin: 0 0 1.15em; max-width: 66ch; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-45);
  margin: 0 0 1.6rem;
  display: block;
}
.eyebrow--camel { color: var(--camel); }

.lede {
  font-size: clamp(1.12rem, 1.55vw, 1.35rem);
  line-height: 1.6;
  color: var(--ink-70);
  font-weight: 300;
  max-width: 54ch;
}
.body-lg { font-size: 1.12rem; line-height: 1.72; color: var(--ink-70); }
.muted   { color: var(--ink-45); }
.small   { font-size: 0.9rem; line-height: 1.65; color: var(--ink-45); }

.numeral {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--camel);
  display: block;
  margin-bottom: 1.1rem;
}

.pull {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.1vw, 2.6rem);
  line-height: 1.22;
  letter-spacing: -0.015em;
  max-width: 22ch;
  margin: 0;
}

em.italic-serif { font-family: var(--serif); font-style: italic; }

/* ============================================================
   LAYOUT
   ============================================================ */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.section { padding-top: var(--section); padding-bottom: var(--section); }
.section--tight { padding-top: clamp(3.5rem, 7vw, 6rem); padding-bottom: clamp(3.5rem, 7vw, 6rem); }
.band-bone { background: var(--bone); }
.band-ink  { background: var(--ink); color: var(--paper); }
.band-ink .eyebrow, .band-ink .muted, .band-ink .small { color: rgba(251,249,245,0.58); }
.band-ink .lede, .band-ink .body-lg { color: rgba(251,249,245,0.78); }
.band-ink .rule { background: rgba(251,249,245,0.18); }

.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }

.grid { display: grid; gap: clamp(2rem, 4vw, 4rem); }
.g-2  { grid-template-columns: repeat(2, 1fr); }
.g-3  { grid-template-columns: repeat(3, 1fr); }
.g-4  { grid-template-columns: repeat(4, 1fr); }
.g-5-7 { grid-template-columns: 5fr 7fr; }
.g-7-5 { grid-template-columns: 7fr 5fr; }
.g-4-8 { grid-template-columns: 4fr 8fr; }
.align-end { align-items: end; }
.align-start { align-items: start; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,249,245,0.88);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.nav__inner {
  max-width: var(--max); margin: 0 auto;
  padding: 1.15rem var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.wordmark {
  text-decoration: none; display: flex; align-items: baseline; gap: 0.6rem;
  line-height: 1;
}
/* Real logo image. The text wordmark is the fallback if the file is absent. */
.wordmark__img { height: 48px; width: auto; }
.wordmark .wordmark__mono, .wordmark .wordmark__name { display: none; }
.wordmark.no-logo .wordmark__mono, .wordmark.no-logo .wordmark__name { display: inline-block; }
.wordmark__mono {
  font-family: var(--serif); font-size: 1.35rem; letter-spacing: 0.02em;
}
.wordmark__name {
  font-family: var(--sans); font-size: 0.66rem; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--ink-45); padding-bottom: 0.1rem;
}
@media (max-width: 720px) { .wordmark__img { height: 30px; } }
.nav__links { display: flex; align-items: center; gap: clamp(1.2rem, 2.4vw, 2.6rem); }
.nav__links a {
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  text-decoration: none; color: var(--ink-70); padding-bottom: 2px;
  border-bottom: 1px solid transparent; transition: border-color .2s, color .2s;
}
.nav__links a:hover { color: var(--ink); border-bottom-color: var(--camel); }
.nav__links a.is-active { color: var(--ink); border-bottom-color: var(--ink); }
.nav__cta {
  font-size: 0.72rem !important; letter-spacing: 0.2em; text-transform: uppercase;
  border: 1px solid var(--ink) !important; padding: 0.62rem 1.15rem !important;
  color: var(--ink) !important;
}
.nav__cta:hover { background: var(--ink); color: var(--paper) !important; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-family: var(--sans); font-size: 0.74rem; font-weight: 400;
  letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none;
  padding: 1.05rem 1.9rem; border: 1px solid var(--ink); color: var(--ink);
  background: transparent; transition: background .22s ease, color .22s ease, border-color .22s;
  cursor: pointer;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--camel); border-color: var(--camel); color: #fff; }
.btn--ghost { border-color: var(--rule); color: var(--ink-70); }
.btn--ghost:hover { border-color: var(--ink); background: transparent; color: var(--ink); }
.btn--light { border-color: rgba(251,249,245,0.5); color: var(--paper); }
.btn--light:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn__arrow { font-size: 0.95em; line-height: 1; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  text-decoration: none; color: var(--ink);
  border-bottom: 1px solid var(--rule); padding-bottom: 0.35rem;
  transition: border-color .2s, gap .2s;
}
.link-arrow:hover { border-bottom-color: var(--ink); gap: 0.9rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding-top: clamp(4rem, 9vw, 8rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.hero h1 { max-width: 15ch; margin-bottom: clamp(1.8rem, 3vw, 2.6rem); }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; align-items: center;
  font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-45); margin-bottom: 2.4rem;
}
.hero__meta span:not(:last-child)::after { content: ""; }
.dot { width: 3px; height: 3px; border-radius: 50%; background: var(--camel); display: inline-block; }

/* ============================================================
   STAT BAND
   ============================================================ */
.stats { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.stats__inner {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.stat { padding: 2.4rem 1.5rem 2.4rem 0; border-right: 1px solid var(--rule); }
.stat:first-child { }
.stat:last-child { border-right: 0; }
.stat:not(:first-child) { padding-left: clamp(1rem, 2.5vw, 2.4rem); }
.stat__fig {
  font-family: var(--serif); font-size: clamp(1.9rem, 3.2vw, 2.7rem);
  line-height: 1; display: block; margin-bottom: 0.7rem;
}
.stat__label {
  font-size: 0.68rem; letter-spacing: 0.19em; text-transform: uppercase;
  color: var(--ink-45); line-height: 1.55; display: block; max-width: 22ch;
}

/* ============================================================
   CARDS / SERVICE ROWS
   ============================================================ */
.card {
  border-top: 1px solid var(--rule); padding-top: 1.9rem;
}
.card h3 { margin-bottom: 0.9rem; }
.card p { color: var(--ink-70); font-size: 1rem; }

.svc {
  display: grid; grid-template-columns: 4fr 8fr;
  gap: clamp(1.8rem, 4vw, 4.5rem);
  border-top: 1px solid var(--rule);
  padding: clamp(2.6rem, 5vw, 4.5rem) 0;
}
.svc:last-of-type { border-bottom: 1px solid var(--rule); }
.svc__title { margin-bottom: 1rem; }
.svc__for {
  display: block; margin-top: 1.6rem; max-width: 28ch;
  font-size: 0.94rem; line-height: 1.6; color: var(--ink-45);
}
.svc__for strong {
  display: block; font-weight: 400; margin-bottom: 0.45rem;
  font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--camel);
}
.svc__body > p:first-child { font-size: 1.1rem; line-height: 1.7; color: var(--ink-70); }

.deliverables {
  list-style: none; margin: 2rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0.05rem 2.5rem;
}
.deliverables li {
  padding: 0.72rem 0 0.72rem 1.5rem; border-top: 1px solid var(--rule);
  position: relative; font-size: 0.95rem; line-height: 1.55; color: var(--ink-70);
}
.deliverables li::before {
  content: "—"; position: absolute; left: 0; color: var(--camel);
}
.deliverables--single { grid-template-columns: 1fr; }

.mode {
  border-left: 2px solid var(--camel-soft); padding: 0.2rem 0 0.2rem 1.4rem; margin-bottom: 1.6rem;
}
.mode h4 { font-family: var(--sans); font-size: 0.74rem; letter-spacing: 0.2em;
  text-transform: uppercase; margin-bottom: 0.6rem; font-weight: 400; }
.mode p { font-size: 0.98rem; color: var(--ink-70); }

/* ============================================================
   IMAGE SLOTS  (swap for real photography)
   ============================================================ */
.figure { margin: 0; }
.sticky-aside { position: sticky; top: 6rem; }
@media (max-width: 980px) { .sticky-aside { position: static; } }
.slot {
  background: var(--sand); position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.slot::after {
  content: attr(data-label);
  font-size: 0.62rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: rgba(20,19,15,0.32); text-align: center; padding: 1rem; max-width: 24ch;
}
/* Real photos dropped into a figure crop to the same proportions as the
   placeholder they replace, so the layout never shifts. */
.figure img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%;
  display: block;
}
.figure { display: block; }
.figure .photo { width: 100%; overflow: hidden; background: var(--sand); }
.photo--portrait { aspect-ratio: 4 / 5; }
.photo--tall     { aspect-ratio: 2 / 3; }
.photo--wide     { aspect-ratio: 16 / 9; }

.slot--portrait { aspect-ratio: 4 / 5; }
.slot--tall     { aspect-ratio: 3 / 4.4; }
.slot--wide     { aspect-ratio: 16 / 9; }
.slot--square   { aspect-ratio: 1 / 1; }
.caption {
  font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-45); margin-top: 0.9rem;
}

/* ============================================================
   MISC BLOCKS
   ============================================================ */
.kicker-head { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(1.5rem,4vw,4.5rem);
  align-items: start; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }

.tickers { list-style: none; margin: 0; padding: 0; }
.tickers li {
  border-top: 1px solid var(--rule); padding: 1.15rem 0;
  display: flex; gap: 1.4rem; align-items: baseline;
  font-size: 0.98rem; color: var(--ink-70);
}
.tickers li:last-child { border-bottom: 1px solid var(--rule); }
.tickers .yr { font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-45); min-width: 8.5rem; flex-shrink: 0; }

.note {
  border: 1px solid var(--rule); padding: clamp(1.6rem, 3vw, 2.4rem);
  background: var(--paper);
}
.note h4 { font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.2em;
  text-transform: uppercase; font-weight: 400; margin-bottom: 0.9rem; color: var(--camel); }
.note p { font-size: 0.97rem; color: var(--ink-70); }

.steps { counter-reset: step; }
.step { border-top: 1px solid var(--rule); padding: 1.9rem 0; }
.step__n { font-size: 0.7rem; letter-spacing: 0.22em; color: var(--camel); display: block; margin-bottom: 0.8rem; }
.step h4 { font-family: var(--serif); font-size: 1.3rem; font-weight: 400; margin-bottom: 0.7rem; }
.step p { font-size: 0.97rem; color: var(--ink-70); }

.cta-band { text-align: left; }
.cta-band h2 { max-width: 17ch; margin-bottom: 1.8rem; }

.mailbox {
  border: 1px solid var(--rule); padding: clamp(2rem, 4vw, 3.2rem);
  background: var(--paper);
}
.mailbox__addr {
  font-family: var(--serif); font-size: clamp(1.15rem, 2.5vw, 1.95rem);
  text-decoration: none; letter-spacing: -0.02em; display: inline-block;
  border-bottom: 1px solid var(--rule); padding-bottom: 0.35rem;
  overflow-wrap: anywhere; transition: border-color .2s;
}
.mailbox__addr:hover { border-bottom-color: var(--camel); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--rule); padding: clamp(3rem,6vw,4.5rem) 0 2.5rem; }
.footer__grid { display: grid; grid-template-columns: 5fr 3fr 4fr; gap: 2.5rem; }
.footer__logo { height: 62px; width: auto; margin-bottom: 1.5rem; }
.footer__brand h5 { display: none; }
.footer__brand.no-logo h5 { display: block; }
.footer h5 {
  font-family: var(--sans); font-size: 0.66rem; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--ink-45); font-weight: 400; margin: 0 0 1.1rem;
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 0.6rem; }
.footer a { text-decoration: none; color: var(--ink-70); font-size: 0.95rem; transition: color .2s; }
.footer a:hover { color: var(--camel); }
.footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  margin-top: clamp(2.5rem,5vw,4rem); padding-top: 1.6rem; border-top: 1px solid var(--rule);
  font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-45);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .g-5-7, .g-7-5, .g-4-8, .svc, .kicker-head, .g-4 { grid-template-columns: 1fr; }
  .g-3 { grid-template-columns: 1fr; }
  .stats__inner { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 1.8rem 1.2rem 1.8rem 0; }
  .stat:nth-child(2n) { border-right: 0; padding-left: 1.4rem; }
  .stat:nth-child(n+3) { border-bottom: 0; }
  .stat:not(:first-child) { padding-left: 0; }
  .stat:nth-child(2n) { padding-left: 1.4rem; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .deliverables { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .g-2 { grid-template-columns: 1fr; }
  .nav__inner { padding-top: 0.9rem; padding-bottom: 0.9rem; }
  .nav__links { gap: 1.1rem; }
  .wordmark { flex-direction: column; gap: 0.15rem; }
  .wordmark__mono { font-size: 1.1rem; }
  .wordmark__name { font-size: 0.55rem; letter-spacing: 0.24em; }
  .nav__links a { font-size: 0.64rem; letter-spacing: 0.16em; }
  .nav__cta {
    font-size: 0.64rem !important; border: 0 !important; padding: 0 !important;
    border-bottom: 1px solid var(--camel) !important;
  }
  .nav__cta:hover { background: transparent; color: var(--ink) !important; }
  .footer__grid { grid-template-columns: 1fr; }
  .tickers li { flex-direction: column; gap: 0.3rem; }
}
@media (max-width: 420px) {
  .stats__inner { grid-template-columns: 1fr; }
  .stat, .stat:nth-child(2n) { border-right: 0; padding-left: 0; }
  .stat:not(:last-child) { border-bottom: 1px solid var(--rule); }
}

/* Reveal on scroll — quiet, editorial */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
