/* =========================================================
   Sterling Communications — homepage
   Design tokens per handoff: cream/ink/oxblood/brass,
   Fraunces + Libre Franklin, no shadows, no radius (except
   phone frame + avatar), depth from hairlines only.
   ========================================================= */

:root {
  --cream: #F6F2EA;
  --cream-light: #FDFBF6;
  --ink: #2A251D;
  --body: #5C5344;
  --muted: #8A7F6C;
  --oxblood: #6B1F2A;
  --oxblood-dark: #521722;
  --brass: #B29A5B;
  --brass-hairline: #B29A5B55;
  --card-border: #E4DCCB;
  --inner-hairline: #EEE7D8;
  --stripes: repeating-linear-gradient(45deg, #EDE6D6, #EDE6D6 10px, #E6DECC 10px, #E6DECC 20px);
  --serif: 'Fraunces', serif;
  --sans: 'Libre Franklin', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--oxblood); color: var(--cream); }

a { color: var(--oxblood); text-decoration: none; transition: color 150ms ease; }
a:hover { color: var(--oxblood-dark); }

h1, h2, h3 { font-family: var(--serif); font-optical-sizing: auto; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 56px; }

.brass { color: var(--brass); }
.oxblood { color: var(--oxblood); }
.muted { color: var(--muted); }
.ink { color: var(--ink); }

/* ---------- Type primitives ---------- */

.eyebrow {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h2 {
  margin: 0;
  font-size: 38px;
  line-height: 1.25;
  font-weight: 500;
  color: var(--ink);
}

.h2-balance { text-wrap: balance; max-width: 24ch; }
.h2-balance.narrow { max-width: 14ch; }

.body-lg {
  font-size: 17px;
  line-height: 1.7;
  color: var(--body);
  max-width: 60ch;
}

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-block;
  padding: 15px 32px;
  background: var(--oxblood);
  color: var(--cream);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background 150ms ease, transform 150ms ease;
}
.btn:hover { background: var(--oxblood-dark); color: var(--cream); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-small { padding: 10px 22px; font-size: 13px; }
.btn-large { margin-top: 44px; padding: 16px 36px; font-size: 15px; }

.text-link {
  font-size: 14px;
  font-weight: 500;
  border-bottom: 1px solid #6B1F2A66;
  padding-bottom: 2px;
  transition: color 150ms ease, border-color 150ms ease;
}
.text-link:hover { border-color: var(--oxblood-dark); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid var(--brass-hairline);
  transition: border-color 200ms ease;
}
.site-header.is-scrolled { border-bottom-color: var(--ink); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-top: 28px;
  padding-bottom: 28px;
  transition: padding 250ms ease;
}
.site-header.is-scrolled .header-inner { padding-top: 14px; padding-bottom: 14px; }

.wordmark {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.wordmark:hover { color: var(--ink); }

.main-nav { display: flex; align-items: center; gap: 32px; font-size: 14px; font-weight: 500; letter-spacing: 0.02em; }
.main-nav a {
  color: var(--ink);
  padding-bottom: 3px;
  background-image: linear-gradient(var(--oxblood), var(--oxblood));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: color 150ms ease, background-size 200ms ease;
}
.main-nav a:hover { color: var(--oxblood); }
.main-nav a.is-active { color: var(--oxblood); background-size: 100% 1px; }

.header-right { display: flex; align-items: center; gap: 24px; }
.header-phone { font-size: 14px; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.header-phone:hover { color: var(--oxblood); }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 16px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--brass-hairline);
  background: var(--cream);
  padding: 8px 24px 24px;
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a {
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  padding: 14px 0;
  border-bottom: 1px solid var(--inner-hairline);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav .mobile-phone { color: var(--oxblood); font-variant-numeric: tabular-nums; }

/* ---------- Sections ---------- */

.section { border-top: 1px solid var(--ink); padding: 72px 0 96px; }

.split {
  display: grid;
  grid-template-columns: 4fr 7fr;
  gap: 64px;
}

/* ---------- Hero ---------- */

.hero {
  padding: 110px 0 100px;
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: 72px;
  align-items: center;
}

.hero h1 {
  margin: 0;
  font-size: clamp(40px, 4.8vw, 68px);
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
  max-width: 15ch;
}

.hero .eyebrow { margin-bottom: 28px; }

.hero-sub {
  margin: 36px 0 0;
  font-size: 19px;
  line-height: 1.65;
  color: var(--body);
  max-width: 58ch;
}

.hero-ctas { display: flex; align-items: center; gap: 28px; margin-top: 44px; flex-wrap: wrap; }

.pull-quote {
  margin: 0;
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.5;
  font-weight: 400;
  font-style: italic;
  color: var(--body);
}

.approach-quote { margin: 40px 0 20px; max-width: 24ch; }

.brass-mark { width: 40px; height: 1px; background: var(--brass); }

/* ---------- Hero visual: post lifecycle ---------- */

.hero-visual {
  border-left: 1px solid var(--brass-hairline);
  padding-left: 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hv-steps {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.hv-step {
  display: flex;
  align-items: baseline;
  gap: 7px;
  transition: color 400ms ease;
}
.hv-step.is-on { color: var(--ink); }
.hv-step.is-on .hv-numeral { color: var(--brass); }
.hv-numeral {
  font-family: var(--serif);
  font-size: 13px;
  color: #C9BEA6;
  text-transform: none;
  letter-spacing: 0;
  transition: color 400ms ease;
}
.hv-rule { flex: 1; height: 1px; background: var(--brass-hairline); }

.hv-card {
  background: var(--cream-light);
  border: 1px solid var(--card-border);
  max-width: 440px;
  transition: opacity 400ms ease;
}
.hv-card.is-resetting { opacity: 0; }

.hv-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--inner-hairline);
}
.avatar-sm { width: 30px; height: 30px; font-size: 13px; flex: none; }
.hv-id { flex: 1; min-width: 0; }

.hv-status {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  transition: color 300ms ease;
}
.hv-status.is-approved { color: var(--oxblood); }
.hv-status.is-live { color: var(--brass); }

.hv-photo {
  aspect-ratio: 16/9;
  background: var(--stripes);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--inner-hairline);
  position: relative;
  overflow: hidden;
}
.chip-hv {
  font-size: 11px;
  position: absolute;
  left: 10px;
  bottom: 10px;
}

/* Demo photography — graded slightly warm to sit in the palette */
.demo-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88) contrast(0.97) sepia(0.1);
}
.tile { overflow: hidden; position: relative; }
.tile .demo-photo { transition: transform 400ms ease; }
.tile:hover .demo-photo { transform: scale(1.03); }

.hv-body { padding: 14px 16px 16px; }

.hv-caption {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink);
  min-height: 60px;
}

.hv-caret {
  display: inline-block;
  width: 1px;
  height: 13px;
  background: var(--oxblood);
  vertical-align: -2px;
  margin-left: 2px;
  animation: caretBlink 0.9s steps(1) infinite;
}
.hv-caret.is-hidden { display: none; }
@keyframes caretBlink { 50% { opacity: 0; } }

.hv-engage {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.06em;
  opacity: 0;
  transition: opacity 500ms ease;
  font-variant-numeric: tabular-nums;
}
.hv-engage.is-shown { opacity: 1; }

.hv-note { margin: 0; font-size: 13px; color: var(--muted); }

/* Hero entrance animation — pure CSS so content shows even without JS */
.hero-in {
  opacity: 0;
  transform: translateY(16px);
  animation: heroRise 0.8s ease forwards;
}
.hero-in-1 { animation-delay: 0.05s; }
.hero-in-2 { animation-delay: 0.18s; }
.hero-in-3 { animation-delay: 0.34s; }
.hero-in-4 { animation-delay: 0.5s; }
.hero-in-5 { animation-delay: 0.65s; }

@keyframes heroRise {
  to { opacity: 1; transform: none; }
}


/* ---------- Sector tabs ---------- */

.sector-tabs {
  display: flex;
  gap: 28px;
  margin: 28px 0 0;
  border-bottom: 1px solid var(--brass-hairline);
}

.sector-tab {
  background: none;
  border: none;
  border-bottom: 1px solid transparent;
  margin-bottom: -1px;
  padding: 0 0 12px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: color 150ms ease, border-color 150ms ease;
}
.sector-tab:hover { color: var(--ink); }
.sector-tab.is-active { color: var(--oxblood); border-bottom-color: var(--oxblood); }

.sector-line { margin: 24px 0 0; transition: opacity 250ms ease; }
.sector-line.is-fading { opacity: 0; }

#workHeading { transition: opacity 250ms ease; }
#workHeading.is-fading { opacity: 0; }

#workGrid { transition: opacity 250ms ease; }
#workGrid.is-fading { opacity: 0; }

/* ---------- Featured work ---------- */

.work-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.sample-pill {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid #B29A5B77;
  padding: 6px 14px;
  white-space: nowrap;
}

.work-grid {
  display: grid;
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.work-right { display: flex; flex-direction: column; gap: 40px; min-width: 0; }

/* Phone frame */
.phone-frame {
  border: 1.5px solid var(--ink);
  border-radius: 36px;
  padding: 12px;
  background: var(--cream);
}
.phone-screen {
  border-radius: 26px;
  overflow: hidden;
  background: var(--cream-light);
  border: 1px solid var(--card-border);
}
.phone-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 18px 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
}
.phone-status .dots { letter-spacing: 0.1em; }
.phone-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--inner-hairline);
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--oxblood);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 15px;
}
.handle { margin: 0; font-size: 13px; font-weight: 600; }
.handle-sub { margin: 0; font-size: 11px; color: var(--muted); }
.phone-body { padding: 14px 16px 20px; }
.engagement { margin: 0 0 8px; font-size: 12px; color: var(--muted); letter-spacing: 0.06em; }
.caption-copy { margin: 0; font-size: 13px; line-height: 1.55; color: var(--ink); }

/* Placeholders */
.placeholder {
  background: var(--stripes);
  display: flex;
  align-items: center;
  justify-content: center;
}
.placeholder.square { aspect-ratio: 1; }
.placeholder.portrait { aspect-ratio: 4/5; border: 1px solid var(--card-border); }
.chip {
  font-family: monospace;
  font-size: 12px;
  color: var(--muted);
  background: #F6F2EAcc;
  padding: 6px 12px;
}
.chip-sm { font-family: monospace; font-size: 10px; color: var(--muted); text-align: center; }

.demo-caption { margin: 14px 4px 0; font-size: 13px; color: var(--muted); line-height: 1.5; }

/* Instagram grid */
.ig-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.tile {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: filter 200ms ease, border-color 200ms ease;
}
.tile:hover { filter: brightness(0.97); }
.tile-oxblood { background: var(--oxblood); color: #F0E6D6; padding: 14px; text-align: center; }
.tile-oxblood span { font-family: var(--serif); font-size: 14px; line-height: 1.4; font-style: italic; }
.tile-ink { background: var(--ink); color: #F0E6D6; padding: 14px; text-align: center; }
.tile-ink span { font-family: var(--serif); font-size: 13px; line-height: 1.5; }
.tile-card {
  background: var(--cream-light);
  border: 1px solid var(--card-border);
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  text-align: center;
}
.tile-card:hover { border-color: var(--brass); filter: none; }
.tile-title { font-family: var(--serif); font-size: clamp(15px, 1.7vw, 22px); color: var(--ink); }
.tile-tag { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--oxblood); }

/* Panels */
.panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}
.panel { background: var(--cream-light); border: 1px solid var(--card-border); transition: border-color 200ms ease; }
.panel:hover { border-color: #D5C9AE; }
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--inner-hairline);
}
.panel-title { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.panel-status { font-size: 11px; color: var(--muted); }

.cal-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 12px;
  align-items: baseline;
  padding: 12px 18px;
  border-bottom: 1px solid var(--inner-hairline);
}
.cal-row.last { border-bottom: none; }
.cal-day { font-size: 11px; font-weight: 600; color: var(--muted); }
.cal-item { font-size: 13px; }
.cal-tag { font-size: 10px; letter-spacing: 0.08em; color: var(--oxblood); }

.report-grid { display: grid; grid-template-columns: 1fr 1fr; }
.stat-cell { padding: 18px; border-bottom: 1px solid var(--inner-hairline); }
.stat-cell.right-rule { border-right: 1px solid var(--inner-hairline); }
.stat-number { margin: 0; font-family: var(--serif); font-size: 28px; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat-label { margin: 4px 0 0; font-size: 11px; color: var(--muted); letter-spacing: 0.04em; }
.chart-cell { grid-column: 1 / -1; padding: 18px; }
.chart-label { margin: 0 0 12px; }

.bar-chart { display: flex; align-items: flex-end; gap: 8px; height: 56px; }
.bar {
  flex: 1;
  background: #D8CDB4;
  transition: height 0.9s cubic-bezier(0.25, 0.8, 0.3, 1);
}
.bar-accent { background: var(--oxblood); }
.bar:nth-child(2) { transition-delay: 0.1s; }
.bar:nth-child(3) { transition-delay: 0.2s; }
.bar:nth-child(4) { transition-delay: 0.3s; }

/* ---------- Services ---------- */

.services-heading { margin-bottom: 64px; }

.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); }

.service { padding: 0 32px 8px 32px; border-right: 1px solid var(--brass-hairline); }
.service:first-child { padding-left: 0; }
.service:last-child { padding-right: 0; border-right: none; }

.numeral { margin: 0 0 20px; font-family: var(--serif); font-size: 17px; color: var(--brass); }
.service h3 { margin: 0 0 14px; font-size: 22px; font-weight: 500; }
.service p:last-child { margin: 0; font-size: 14px; line-height: 1.7; color: var(--body); }

/* ---------- Approach ---------- */

.steps { display: flex; flex-direction: column; }
.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--brass-hairline);
}
.step:first-child { padding-top: 0; }
.step.last { border-bottom: none; padding-bottom: 0; }
.step-num { font-family: var(--serif); font-size: 20px; color: var(--brass); }
.step h3 { margin: 0 0 10px; font-family: var(--sans); font-size: 17px; font-weight: 600; }
.step p { margin: 0; font-size: 15px; line-height: 1.7; color: var(--body); max-width: 60ch; }

/* ---------- About / team ---------- */

.about-intro { margin-bottom: 64px; }
.about-lede { margin: 0; align-self: end; }

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }

.team-card h3 { margin: 20px 0 4px; font-size: 21px; font-weight: 500; transition: color 150ms ease; }
.team-card:hover h3 { color: var(--oxblood); }
.team-card .placeholder { transition: border-color 200ms ease; }
.team-card:hover .placeholder { border-color: var(--brass); }
.role { margin: 0; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--oxblood); }
.bio { margin: 12px 0 0; font-size: 14px; line-height: 1.65; color: var(--body); }

/* ---------- Contact ---------- */

.contact {
  padding: 88px 0 104px;
  display: grid;
  grid-template-columns: 7fr 4fr;
  gap: 64px;
}

.contact-heading {
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1.1;
  max-width: 16ch;
  text-wrap: balance;
}

.contact-body { margin: 28px 0 0; max-width: 55ch; }

.contact-rail {
  border-left: 1px solid var(--brass-hairline);
  padding-left: 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  justify-content: center;
}

.rail-label {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.rail-value { font-size: 17px; margin: 0; }
.rail-value.ink { color: var(--ink); font-variant-numeric: tabular-nums; }
a.rail-value.ink:hover { color: var(--oxblood); }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--brass-hairline);
  padding: 28px 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-wordmark { margin: 0; font-family: var(--serif); font-size: 18px; }
.footer-line { margin: 0; font-size: 13px; color: var(--muted); }

/* ---------- Scroll reveals (state applied by JS) ---------- */

.reveal-hidden {
  opacity: 0;
  transform: translateY(14px);
}
.reveal-shown {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr 1fr; gap: 48px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .service { padding: 0 32px 8px 0; border-right: none; border-bottom: 1px solid var(--brass-hairline); padding-bottom: 32px; }
  .service:nth-child(odd) { border-right: 1px solid var(--brass-hairline); padding-right: 32px; }
  .service:nth-child(even) { padding-left: 32px; }
  .service:nth-child(3), .service:nth-child(4) { border-bottom: none; padding-bottom: 8px; }
}

@media (max-width: 900px) {
  .container { padding: 0 24px; }

  .main-nav, .header-phone, .site-header .btn-small { display: none; }
  .menu-toggle { display: block; }

  .hero { grid-template-columns: 1fr; padding: 72px 0 72px; gap: 48px; }
  .hero-visual { border-left: none; border-top: 1px solid var(--brass-hairline); padding-left: 0; padding-top: 40px; }

  .split { grid-template-columns: 1fr; gap: 28px; }
  .section { padding: 56px 0 64px; }

  .work-grid { grid-template-columns: 1fr; }
  .phone-frame { max-width: 380px; }

  .team-grid { grid-template-columns: 1fr; gap: 48px; }
  .team-card .placeholder { max-width: 380px; }

  .contact { grid-template-columns: 1fr; gap: 48px; padding: 64px 0 72px; }
  .contact-rail { border-left: none; border-top: 1px solid var(--brass-hairline); padding-left: 0; padding-top: 32px; }

  .site-footer { flex-direction: column; gap: 12px; }
}

@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
  .service, .service:nth-child(odd), .service:nth-child(even) {
    padding: 0 0 28px 0;
    border-right: none;
    border-bottom: 1px solid var(--brass-hairline);
    margin-bottom: 28px;
  }
  .service:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
  .ig-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sector-tabs { gap: 18px; flex-wrap: wrap; }
  .sample-pill { white-space: normal; }
  .work-header { margin-bottom: 40px; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-in { animation: none; opacity: 1; transform: none; }
  .hv-caret { display: none; }
  .reveal-hidden { opacity: 1; transform: none; }
  .bar { transition: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* =========================================================
   Inner pages
   ========================================================= */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 24px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--oxblood); }
.crumb-sep { color: var(--brass); }

.page-hero { padding: 72px 0 80px; }
.page-hero h1 {
  margin: 0;
  font-size: clamp(38px, 4.5vw, 58px);
  line-height: 1.12;
  font-weight: 500;
  letter-spacing: -0.01em;
  max-width: 20ch;
  text-wrap: balance;
}
.page-hero .lede {
  margin: 26px 0 0;
  font-size: 18px;
  line-height: 1.7;
  color: var(--body);
  max-width: 58ch;
}

.page-cols {
  display: grid;
  grid-template-columns: 7fr 4fr;
  gap: 72px;
  align-items: start;
}

.side-rail {
  border-left: 1px solid var(--brass-hairline);
  padding-left: 36px;
  display: flex;
  flex-direction: column;
  gap: 36px;
  position: sticky;
  top: 120px;
}
.rail-block h3 {
  margin: 0 0 14px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.rail-block a { display: block; font-size: 15px; color: var(--ink); padding: 7px 0; border-bottom: 1px solid var(--inner-hairline); }
.rail-block a:last-child { border-bottom: none; }
.rail-block a:hover { color: var(--oxblood); }
.rail-block p { margin: 0; font-size: 14px; line-height: 1.65; color: var(--body); }

.prose h2 { font-size: 30px; margin: 56px 0 20px; }
.prose h2:first-child { margin-top: 0; }
.prose p { font-size: 16px; line-height: 1.75; color: var(--body); max-width: 62ch; margin: 0 0 20px; }
.prose strong { color: var(--ink); font-weight: 600; }

.plain-list { list-style: none; margin: 28px 0 0; padding: 0; max-width: 62ch; }
.plain-list li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--inner-hairline);
  font-size: 15px;
  line-height: 1.6;
  color: var(--body);
}
.plain-list li:last-child { border-bottom: none; }
.plain-list .tick { color: var(--oxblood); flex: none; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--brass-hairline); }
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 22px 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  transition: color 150ms ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-family: var(--serif); font-size: 22px; color: var(--brass); flex: none; }
.faq-item[open] summary::after { content: '\2212'; }
.faq-item summary:hover { color: var(--oxblood); }
.faq-item p { margin: 0 0 24px; font-size: 15px; line-height: 1.7; color: var(--body); max-width: 60ch; }

/* CTA band */
.cta-band { border-top: 1px solid var(--ink); padding: 80px 0 104px; }
.cta-band h2 { font-size: clamp(32px, 3.6vw, 46px); line-height: 1.15; max-width: 22ch; text-wrap: balance; }
.cta-band p { margin: 24px 0 0; font-size: 17px; line-height: 1.7; color: var(--body); max-width: 55ch; }
.cta-actions { display: flex; align-items: center; gap: 28px; margin-top: 40px; flex-wrap: wrap; }

/* Monogram portraits */
.monogram {
  aspect-ratio: 4/5;
  background: var(--cream-light);
  border: 1px solid var(--card-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  transition: border-color 200ms ease;
}
.monogram span { font-family: var(--serif); font-size: 58px; font-weight: 400; color: var(--brass); letter-spacing: 0.04em; }
.monogram::after { content: ''; width: 32px; height: 1px; background: var(--brass-hairline); }

/* Stat strip */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--cream-light);
  border: 1px solid var(--card-border);
  margin: 36px 0 0;
}
.stat-strip > div { padding: 26px 28px; border-right: 1px solid var(--inner-hairline); }
.stat-strip > div:last-child { border-right: none; }
.stat-strip .num { margin: 0; font-family: var(--serif); font-size: 32px; color: var(--ink); }
.stat-strip .lab { margin: 6px 0 0; font-size: 12px; color: var(--muted); letter-spacing: 0.04em; }

/* Comment thread graphic */
.thread-row { padding: 16px 18px; border-bottom: 1px solid var(--inner-hairline); }
.thread-row:last-child { border-bottom: none; }
.thread-row.reply { margin-left: 28px; border-left: 1px solid var(--oxblood); border-bottom: none; background: var(--cream-light); }
.thread-name { margin: 0 0 4px; font-size: 13px; font-weight: 600; }
.thread-name .thread-time { font-weight: 400; color: var(--muted); font-size: 12px; margin-left: 8px; }
.thread-text { margin: 0; font-size: 13px; line-height: 1.6; color: var(--body); }

/* We say / never say */
.voice-cols { display: grid; grid-template-columns: 1fr 1fr; }
.voice-cols > div { padding: 20px 22px; }
.voice-cols > div:first-child { border-right: 1px solid var(--inner-hairline); }
.voice-cols h4 { margin: 0 0 14px; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.voice-cols .never h4 { color: var(--oxblood); }
.voice-cols ul { list-style: none; margin: 0; padding: 0; }
.voice-cols li { padding: 8px 0; font-size: 13px; line-height: 1.55; color: var(--body); border-bottom: 1px solid var(--inner-hairline); }
.voice-cols li:last-child { border-bottom: none; }

/* Big quote tile */
.quote-tile-lg {
  background: var(--oxblood);
  color: #F0E6D6;
  padding: 44px 40px;
}
.quote-tile-lg p { margin: 0; font-family: var(--serif); font-size: 23px; line-height: 1.5; font-style: italic; }
.quote-tile-lg .attribution { margin: 18px 0 0; font-family: var(--sans); font-size: 12px; font-style: normal; letter-spacing: 0.1em; text-transform: uppercase; color: #D9B8A4; opacity: 0.85; }

/* Numbered flow (3-up) */
.flow-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 40px; }
.flow-grid > div { padding: 24px 28px 8px 0; border-top: 1px solid var(--brass-hairline); margin-right: 28px; }
.flow-grid > div:last-child { margin-right: 0; }
.flow-grid .numeral { margin-bottom: 14px; }
.flow-grid h3 { margin: 0 0 10px; font-family: var(--sans); font-size: 16px; font-weight: 600; }
.flow-grid p { margin: 0; font-size: 14px; line-height: 1.7; color: var(--body); }

/* Service link cards on hub page */
.hub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.hub-card {
  display: block;
  background: var(--cream-light);
  border: 1px solid var(--card-border);
  padding: 36px 36px 32px;
  color: var(--ink);
  transition: border-color 200ms ease;
}
.hub-card:hover { border-color: var(--brass); color: var(--ink); }
.hub-card .numeral { margin: 0 0 18px; }
.hub-card h3 { margin: 0 0 12px; font-size: 24px; font-weight: 500; }
.hub-card p { margin: 0 0 18px; font-size: 14px; line-height: 1.7; color: var(--body); }
.hub-card .hub-more { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; color: var(--oxblood); border-bottom: 1px solid #6B1F2A66; padding-bottom: 2px; }
.hub-card:hover .hub-more { color: var(--oxblood-dark); }

/* Homepage service title links */
.service h3 a { color: var(--ink); }
.service h3 a:hover { color: var(--oxblood); }
.service-more { display: inline-block; margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--oxblood); border-bottom: 1px solid #6B1F2A66; padding-bottom: 2px; }

.sector-links { margin: 20px 0 0; font-size: 14px; color: var(--muted); }
.sector-links a { font-weight: 500; }
.sector-links .dot { color: var(--brass); margin: 0 10px; }

/* Expanded footer */
.footer-grid {
  display: grid;
  grid-template-columns: 4fr 2fr 2fr 2fr;
  gap: 48px;
  border-top: 1px solid var(--brass-hairline);
  padding: 56px 0 48px;
}
.footer-brand .footer-wordmark { margin: 0 0 14px; font-size: 22px; }
.footer-brand p { margin: 0 0 8px; font-size: 13px; line-height: 1.6; color: var(--muted); max-width: 34ch; }
.footer-heading {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-col a { display: block; font-size: 14px; color: var(--ink); padding: 5px 0; }
.footer-col a:hover { color: var(--oxblood); }
.footer-base {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  border-top: 1px solid var(--inner-hairline);
  padding: 20px 0 44px;
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
}
.footer-base p { margin: 0; }

@media (max-width: 1100px) {
  .hub-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .page-cols { grid-template-columns: 1fr; gap: 48px; }
  .side-rail { border-left: none; border-top: 1px solid var(--brass-hairline); padding-left: 0; padding-top: 36px; position: static; }
  .flow-grid { grid-template-columns: 1fr; }
  .flow-grid > div { margin-right: 0; }
  .stat-strip { grid-template-columns: 1fr; }
  .stat-strip > div { border-right: none; border-bottom: 1px solid var(--inner-hairline); }
  .stat-strip > div:last-child { border-bottom: none; }
  .voice-cols { grid-template-columns: 1fr; }
  .voice-cols > div:first-child { border-right: none; border-bottom: 1px solid var(--inner-hairline); }
  .page-hero { padding: 48px 0 56px; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Pocket Studio demo (home care) ---------- */

.ps-grid {
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: 64px;
  align-items: start;
}
.ps-visual { display: flex; flex-direction: column; gap: 20px; }
.ps-phone { max-width: 400px; width: 100%; }

.ps-thread {
  padding: 14px 12px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 480px;
  overflow: hidden;
  position: relative;
}

.ps-msg {
  max-width: 86%;
  border: 1px solid var(--card-border);
  background: #FFFDF8;
  padding: 9px 12px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink);
  display: none;
}
@keyframes psMsgIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.ps-msg.is-shown { display: block; animation: psMsgIn 600ms ease both; }
.ps-msg p { margin: 0; }
.ps-out { align-self: flex-end; background: var(--cream); }
.ps-in  { align-self: flex-start; }
.ps-meta {
  display: block;
  margin-top: 5px;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-align: right;
}
.ps-photo { width: 100%; margin-bottom: 8px; display: block; }

.ps-typing { padding: 12px 16px; }
.ps-typing.is-shown { display: flex; gap: 5px; }
.ps-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--muted);
  animation: psDot 1.1s infinite ease-in-out;
}
.ps-dot:nth-child(2) { animation-delay: 0.18s; }
.ps-dot:nth-child(3) { animation-delay: 0.36s; }
@keyframes psDot { 0%, 60%, 100% { opacity: 0.25; } 30% { opacity: 1; } }

.ps-consent p { color: var(--ink); }
.ps-tick { color: var(--brass); font-weight: 600; margin-right: 4px; }

.ps-postcard { border: 1px solid var(--card-border); background: var(--cream-light); margin-bottom: 8px; }
.ps-postcard-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 10px; border-bottom: 1px solid var(--inner-hairline);
}
.ps-brand { font-family: var(--serif); font-size: 12px; font-weight: 600; }
.ps-brandmark {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--oxblood); color: var(--cream);
  font-family: var(--serif); font-size: 11px;
  display: flex; align-items: center; justify-content: center;
}
.ps-postcard img { width: 100%; display: block; }
.ps-postcopy { padding: 9px 10px; font-size: 11.5px; line-height: 1.5; color: var(--ink); }
.ps-draftline { margin: 0 0 8px; }

.ps-actions { display: flex; gap: 8px; }
.ps-btn {
  font: inherit; font-size: 11.5px; font-weight: 600;
  padding: 7px 14px;
  border: 1px solid var(--ink);
  background: var(--ink); color: var(--cream);
  cursor: default;
  transition: background 300ms ease, color 300ms ease;
}
.ps-btn-quiet { background: transparent; color: var(--ink); }
.ps-btn.is-tapped { background: var(--oxblood); border-color: var(--oxblood); }

.ps-final .ps-meta { text-align: left; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; }
.ps-final .ps-meta.is-live { color: var(--oxblood); }

@media (max-width: 900px) {
  .ps-grid { grid-template-columns: 1fr; gap: 40px; }
  .ps-phone { max-width: 360px; }
  .ps-thread { height: 440px; }
}

/* Pocket Studio v2: checks, caption caret, platform chips */
.ps-checks .ps-check {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 380ms ease, transform 380ms ease;
  margin: 0 0 6px;
}
.ps-checks .ps-check:last-child { margin-bottom: 0; }
.ps-checks .ps-check.is-shown { opacity: 1; transform: none; }

.ps-caret {
  display: inline-block;
  width: 1px; height: 12px;
  background: var(--ink);
  vertical-align: -2px;
  margin-left: 1px;
  animation: caretBlink 1s step-end infinite;
}
.ps-caret.is-hidden { display: none; }

.ps-platforms { display: flex; gap: 6px; margin-top: 7px; }
.ps-platform {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border: 1px solid var(--card-border);
  color: var(--muted);
  transition: color 300ms ease, border-color 300ms ease;
}
.ps-platform.is-live { color: var(--oxblood); border-color: var(--oxblood); }
.ps-platform.is-live::after { content: " ✓"; }

/* Screenshot/test mode: transitions collapse so mid-animation states render */
.ps-instant .ps-msg.is-shown { animation-duration: 0ms; }

/* Pocket Studio v3: face-blur patch + hashtags */
.ps-imgwrap { position: relative; }
.ps-blur-patch {
  position: absolute;
  left: 15.5%; top: 26.5%;
  width: 15%; height: 27%;
  border-radius: 50%;
  backdrop-filter: blur(11px);
  -webkit-backdrop-filter: blur(11px);
}
.ps-hashtags {
  display: block;
  margin-top: 7px;
  color: var(--oxblood);
  font-weight: 500;
  opacity: 0;
  transition: opacity 450ms ease;
}
.ps-hashtags.is-shown { opacity: 1; }
.ps-instant .ps-hashtags { transition-duration: 0ms; }

.ps-buildtag { margin: 0; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

/* Chat bubbles size to their content — the tile-oriented height:100% on
   .demo-photo inflates images past the bubble and over the next message. */
.ps-visual .demo-photo { height: auto; }
