/* ============================================================
   Ops Czar — global styles
   Brand tokens live in :root. Everything else in the page is
   inline-styled per element (kept from the original design so
   individual tweaks stay local); this file holds the resets,
   the pieces that can't be inlined (keyframes, pseudo-states),
   and the reusable component states (button/nav hovers).
   ============================================================ */

/* ============================================================
   Self-hosted fonts — WOFF2, latin + latin-ext subsets.
   Files live in /fonts/ relative to the site root.
   Static Figtree weights 400/500/600/700; Lora 400–700.
   ============================================================ */

/* Figtree 400 — latin-ext */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/figtree-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Figtree 400 — latin */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/figtree-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Figtree 500 — latin-ext */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/figtree-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Figtree 500 — latin */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/figtree-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Figtree 600 — latin-ext */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/figtree-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Figtree 600 — latin */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/figtree-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Figtree 700 — latin-ext */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/figtree-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Figtree 700 — latin */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/figtree-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Lora (variable weight 400–700) — latin-ext */
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/lora-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Lora (variable weight 400–700) — latin */
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/lora-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Space Mono 700 — latin-ext */
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/spacemono-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Space Mono 700 — latin */
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/spacemono-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper:        #F5F2EC;  /* page background            */
  --paper-warm:   #EFEBE3;  /* alt card background        */
  --ink:          #1C1C1A;  /* near-black headings        */
  --body:         #3A3632;  /* body copy                  */
  --muted:        #6B6560;  /* secondary / muted copy     */
  --muted-dark:   #9B9590;  /* muted copy on dark bg      */
  --line:         #DDD9D0;  /* hairline borders           */
  --line-warm:    #E8E4DC;  /* faint numerals / dividers  */
  --dark:         #1C1C1A;  /* dark section background     */
  --dark-line:    #2C2C29;  /* borders on dark bg         */
  --terra:        #B85C38;  /* terracotta accent          */
  --terra-hover:  #a34f2f;  /* accent, hover state        */
  --max:          1180px;   /* content max width          */
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--paper); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: 'Figtree', system-ui, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Match untracked headings and compact serif titles to the heading system.
   Explicit heading and uppercase-label tracking stays in control. */
:where(h1, h2, h3, h4, h5, h6),
.homepage-offer-name,
.related-title-link {
  letter-spacing: -0.03em;
}

::selection { background: var(--terra); color: var(--paper); }

/* form fields */
input:focus,
textarea:focus { outline: none; border-color: var(--terra) !important; }
input::placeholder,
textarea::placeholder { color: var(--muted); opacity: 0.7; }

/* blinking terminal caret in the wordmark */
@keyframes ocblink { 0%, 48% { opacity: 1; } 52%, 100% { opacity: 0; } }
.oc-caret {
  display: inline-block;
  width: 2px;
  height: 0.9em;
  background: var(--terra);
  margin-left: 0.14em;
  animation: ocblink 1.1s step-end infinite;
}

/* CTA hierarchy: filled primary, outlined secondary, inverse outlined on dark. */
.btn-primary,
.btn-ghost,
.btn-ghost-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  min-height: 48px;
  padding: 16px 30px;
  border-radius: 0;
  font-family: 'Figtree', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}
.btn-primary { border: 0; background: var(--terra); color: var(--paper); transition: background 0.15s ease; }
.btn-primary:hover { background: var(--terra-hover); }
.btn-ghost { border: 1px solid var(--ink); background: transparent; color: var(--ink); transition: background 0.15s ease, color 0.15s ease; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-ghost-dark { border: 1px solid #3A3632; background: transparent; color: var(--paper); transition: border-color 0.15s ease, background 0.15s ease; }
.btn-ghost-dark:hover { border-color: var(--terra); }
.btn-primary:focus-visible,
.btn-ghost:focus-visible,
.btn-ghost-dark:focus-visible { outline: 2px solid var(--terra); outline-offset: 2px; }

/* nav link underline reveal */
.nav-link { border-bottom: 1px solid transparent; transition: border-color 0.15s ease; }
.nav-link:hover { border-bottom-color: var(--terra); }

/* ---- logo carousel ---------------------------------------- */
.logo-viewport { overflow: hidden; }
.logo-track {
  display: flex;
  transition: transform 0.7s ease;
  will-change: transform;
}
.logo-page {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 56px);
}
.logo-cell {
  display: flex;
  align-items: center;
  min-height: 56px;
  flex: 0 1 auto;
}
.logo-cell img {
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.7;
}

/* ---- hero image: text wraps around it, book-style --------- */
.hero-cords {
  float: right;
  width: clamp(300px, 48%, 560px);
  height: auto;
  shape-outside: url('../images/cords-terra.png');
  shape-image-threshold: 0.4;
  shape-margin: 26px;
  margin: 0 -20px 6px 6px;
}
.hero-cords.hero-cords-fade {
  opacity: 0;
  transition: opacity 0.6s ease;
}
.hero-cords.hero-cords-fade.is-loaded {
  opacity: 1;
}
@media (max-width: 720px) {
  .hero-cords {
    float: none;
    width: 78%;
    max-width: 420px;
    shape-outside: none;
    margin: 8px 0 32px;
  }
}

/* ---- inline body-copy links --------------------------------- */
.body-link {
  color: var(--terra);
  text-decoration: underline;
  text-decoration-color: rgba(184, 92, 56, 0.35);
  text-underline-offset: 3px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
.body-link:hover,
.body-link:focus-visible {
  color: var(--terra-hover);
  text-decoration-color: currentColor;
}

/* Article and homepage service-card heading links. */
.article-title-link {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.18s;
}
.article-title-link:hover,
.article-title-link:focus-visible {
  color: var(--terra);
}

/* Article listing entries, shared by articles/index.html and the homepage. */
.article-index-entry {
  display: grid;
  grid-template-columns: minmax(260px, 38%) 1fr;
  align-items: center;
  gap: clamp(28px, 4vw, 52px);
}
.article-index-image-link {
  display: block;
  overflow: hidden;
}
.article-index-image {
  display: block;
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
  transition: transform 0.3s ease;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 12%, #000 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 12%, #000 100%);
}
.article-index-image-link:hover .article-index-image,
.article-index-image-link:focus-visible .article-index-image {
  transform: scale(1.025);
}
@media (max-width: 719px) {
  html,
  body { overflow-x: clip; }
  .article-index-entry {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

/* ---- pain list (shared with audiences.html) ------------------ */
.pain-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.pain-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-family: 'Lora', Georgia, serif;
  font-size: 18px;
  line-height: 1.5;
  color: var(--muted);
}

/* ---- homepage offer pathways ------------------------------- */
.homepage-ways-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(40px, 6vw, 80px);
}
.homepage-way { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.homepage-way + .homepage-way { border-left: 1px solid var(--line); padding-left: clamp(40px, 6vw, 80px); }
.homepage-way h3 {
  margin: 0 0 22px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}
.homepage-offer-list { width: 100%; margin: 0 0 24px; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.homepage-offer-list li { display: flex; flex-direction: column; padding: 16px 0 17px; border-bottom: 1px solid var(--line); }
.homepage-offer-name { color: var(--ink); font-family: 'Lora', Georgia, serif; font-size: 20px; font-weight: 700; line-height: 1.3; }
.homepage-offer-description { margin-top: 6px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.homepage-offer-details { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; width: 100%; margin-top: 13px; }
.homepage-offer-duration { color: var(--muted); font-family: 'Space Mono', monospace; font-size: 11px; line-height: 1.4; letter-spacing: 0.04em; text-transform: uppercase; }
.homepage-offer-price { color: var(--ink); font-size: 16px; font-weight: 600; line-height: 1.3; text-align: right; white-space: nowrap; }
.homepage-way + .homepage-way .homepage-offer-details { flex-wrap: wrap; }
.homepage-way + .homepage-way .homepage-offer-price { margin-left: auto; }
.homepage-way > p { margin: 0 0 20px; color: var(--muted); font-size: 17px; line-height: 1.6; }
.homepage-way > .btn-primary,
.homepage-way > .btn-ghost { margin-top: auto; }

@media (max-width: 719px) {
  .homepage-ways-grid { grid-template-columns: 1fr; gap: 36px; }
  .homepage-way + .homepage-way { border-left: 0; border-top: 1px solid var(--line); padding: 36px 0 0; }
  .homepage-way > p { font-size: 15px; }
}

/* ---- homepage hero actions, work list, about extras ------- */
.homepage-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 12px;
}
.homepage-hero-actions .body-link {
  font-family: 'Figtree', system-ui, sans-serif;
  font-size: clamp(17px, 1.5vw, 21px);
  font-weight: 400;
  line-height: 1.6;
}
@media (max-width: 719px) {
  .homepage-hero-actions .body-link { font-size: 13px; }
}
@media (max-width: 479px) {
  .homepage-hero-actions { flex-direction: column; align-items: flex-start; }
}
.homepage-hero,
.homepage-work,
.homepage-engagement,
.homepage-case,
.homepage-about,
.homepage-intake { scroll-margin-top: 110px; }
.homepage-hero-ending { white-space: nowrap; }
.homepage-writing .article-index-entry h3,
.homepage-intake .intake-scheduling h3 { text-wrap: balance; }

.homepage-work-list {
  margin: 0 0 40px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.homepage-work-list li {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.homepage-work-list h3 {
  margin: 0 0 10px;
  font-family: 'Figtree', system-ui, sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
  text-wrap: balance;
}
.homepage-work-link {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
.homepage-work-link:hover,
.homepage-work-link:focus-visible {
  color: var(--terra);
  text-decoration-color: currentColor;
}
.homepage-work-list p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.62;
  text-wrap: pretty;
}
@media (min-width: 900px) {
  .homepage-work-list {
    display: grid;
    grid-auto-flow: column;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(3, auto);
    column-gap: 48px;
    border-top: 0;
  }
  .homepage-work-list li { border-top: 1px solid var(--line); border-bottom: 0; }
  .homepage-work-list li:nth-child(3n) { border-bottom: 1px solid var(--line); }
}
.homepage-work-more,
.homepage-ways-more .body-link {
  font-size: 16px;
  font-weight: 600;
}
.homepage-ways-more {
  margin: 48px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.homepage-about-clients { margin-top: clamp(48px, 7vh, 72px); }
.home-quotes { margin-top: 48px; }
.home-quotes blockquote {
  margin: 0;
  padding-left: 20px;
  border-left: 2px solid var(--terra);
}
.home-quotes p {
  margin: 0 0 12px;
  color: var(--ink);
  font-family: 'Lora', Georgia, serif;
  font-size: 22px;
  font-style: normal;
  line-height: 1.45;
}
.home-quotes cite {
  color: var(--muted);
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  font-style: normal;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---- editorial guide callout ------------------------------- */
.guide-callout {
  display: flex;
  align-items: center;
  gap: 18px;
  width: fit-content;
  max-width: 100%;
  margin-top: 24px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--terra);
  background: var(--paper-warm);
  color: var(--ink);
  font-family: 'Figtree', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.guide-callout-action {
  color: var(--terra);
  white-space: nowrap;
}
.guide-callout-action span {
  display: inline-block;
  margin-left: 4px;
  transition: transform 0.15s ease;
}
.guide-callout:hover,
.guide-callout:focus-visible {
  border-color: var(--terra) !important;
  background: var(--paper) !important;
}
.guide-callout:hover .guide-callout-action span,
.guide-callout:focus-visible .guide-callout-action span {
  transform: translateX(3px);
}
@media (max-width: 520px) {
  .guide-callout {
    align-items: flex-start !important;
    flex-direction: column;
    gap: 6px !important;
  }
}

/* ---- dark-section CTA arrow ------------------------------- */
.btn-ghost-dark span { transition: transform 0.15s ease; }
.btn-ghost-dark:hover span { transform: translateX(3px); }

/* ---- case-study screen flipper (work/*.html) ------
   Markup lives in the case-study page; js/case-study.js drives
   the flip + lightbox. Everything here is non-inlineable:
   hover/active states, transitions, keyframes, media queries. */
.pac-flip-grid {
  display: grid;
  grid-template-columns: minmax(min(100%, 280px), 1fr) minmax(min(100%, 380px), 1.8fr);
  gap: clamp(36px, 5vw, 56px);
  align-items: center;
}
@media (max-width: 900px) {
  .pac-flip-grid { grid-template-columns: 1fr; }
}

.pac-list-btn {
  display: flex;
  align-items: baseline;
  gap: 14px;
  text-align: left;
  background: none;
  border: none;
  font-family: 'Figtree', sans-serif;
  border-left: 2px solid rgba(245, 242, 236, 0.12);
  padding: 10px 0 10px 16px;
  cursor: pointer;
  transition: border-color 0.3s ease;
}
.pac-list-btn .pac-num {
  font-family: 'Lora', serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--muted);
  transition: color 0.3s ease;
}
.pac-list-btn .pac-label {
  color: var(--muted-dark);
  font-weight: 400;
  font-size: 15.5px;
  transition: color 0.3s ease;
}
.pac-list-btn:hover .pac-label { color: var(--paper); }
.pac-list-btn.active { border-left-color: var(--terra); }
.pac-list-btn.active .pac-num { color: var(--terra); }
.pac-list-btn.active .pac-label { color: var(--paper); font-weight: 600; }

.pac-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: 1px solid rgba(245, 242, 236, 0.3);
  border-radius: 16px;
  padding: 6px 14px 6px 12px;
  color: var(--muted-dark);
  font-family: 'Figtree', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.pac-toggle-icon { font-size: 10px; line-height: 1; }
.pac-toggle:hover { border-color: var(--terra); color: var(--terra); }

.pac-stage {
  perspective: 1800px;
  perspective-origin: 30% 45%;
  cursor: zoom-in;
  display: flex;
  justify-content: center;
  padding: 30px 0 40px 20px;
}
.pac-rack {
  position: relative;
  width: min(520px, 100%);
  aspect-ratio: 4 / 3;
  transform-style: preserve-3d;
}
.pac-card {
  position: absolute;
  inset: 0;
  margin: 0;
  transform-origin: 0% 50%;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(245, 242, 236, 0.16);
  background: var(--paper);
  box-shadow: -14px 18px 34px rgba(0, 0, 0, 0.4);
  transition: transform 0.7s ease, opacity 0.7s ease, box-shadow 0.7s ease;
}
.pac-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  filter: brightness(0.65);
  transition: filter 0.7s ease;
}
.pac-card.is-front { box-shadow: -26px 30px 60px rgba(0, 0, 0, 0.55); }
.pac-card.is-front img { filter: none; }
.pac-rack.no-anim .pac-card,
.pac-rack.no-anim .pac-card img { transition: none; }

.pac-zoom {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 36px;
  height: 36px;
  border-radius: 18px;
  background: rgba(28, 28, 26, 0.82);
  border: 1px solid rgba(245, 242, 236, 0.25);
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--paper);
  font-size: 17px;
  line-height: 1;
}
.pac-card.is-front .pac-zoom { display: flex; }

@keyframes pacFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}
.pac-note-in { animation: pacFadeIn 0.45s ease; }

/* ---- case-study lightbox ---------------------------------- */
.pac-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(20, 19, 18, 0.94);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 20px;
  animation: pacFadeIn 0.25s ease;
}
.pac-lightbox[hidden] { display: none; }
.pac-lightbox-head {
  width: min(980px, 100%);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.pac-lightbox-close {
  background: none;
  border: 1px solid rgba(245, 242, 236, 0.3);
  border-radius: 18px;
  width: 34px;
  height: 34px;
  color: var(--paper);
  font-size: 16px;
  cursor: pointer;
  flex-shrink: 0;
  font-family: 'Figtree', sans-serif;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.pac-lightbox-close:hover { border-color: var(--terra); color: var(--terra); }
.pac-lightbox-scroll {
  width: min(980px, 100%);
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  border-radius: 10px;
  border: 1px solid rgba(245, 242, 236, 0.2);
  background: var(--paper);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
  cursor: auto;
}
.pac-lightbox-scroll img { width: 100%; display: block; }

@media (prefers-reduced-motion: reduce) {
  .pac-card,
  .pac-card img,
  .pac-list-btn,
  .pac-list-btn .pac-num,
  .pac-list-btn .pac-label { transition: none; }
  .pac-note-in,
  .pac-lightbox { animation: none; }
}

/* keep the 3D stack from causing horizontal scroll on phones */
.pac-flip-section { overflow-x: hidden; overflow-x: clip; }
.pac-stage:focus-visible { outline: 2px solid var(--terra); outline-offset: 4px; }
.pac-lightbox-scroll:focus-visible { outline: 2px solid var(--terra); }
@media (max-width: 900px) {
  .pac-stage { padding: 20px 0 20px 10px; }
}

/* ============ Service detail popup (services.html) ============ */
.services-list-grid > [data-svc-card] { box-shadow: 0 0 0 1px #DDD9D0; }
[data-svc-card].svc-ready { cursor: pointer; position: relative; transition: background-color 0.18s ease; }
[data-svc-card].svc-ready:hover,
[data-svc-card].svc-ready:focus-visible { background-color: #EFEBE3 !important; }
[data-svc-card].svc-ready:focus-visible { outline: 2px solid var(--terra); outline-offset: -2px; }
.svc-more { margin-top: 14px; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--terra); }
.svc-care-tag { align-self: flex-start; display: inline-block; border: 1px solid #DDD9D0; font-family: 'Figtree', sans-serif; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: #6B6560; padding: 3px 10px; margin: 0 0 14px; text-decoration: none; }
.svc-care-tag:hover, .svc-care-tag:focus-visible { color: #B85C38; border-color: #B85C38; }
.svc-overlay { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 16px; }
.svc-scrim { position: absolute; inset: 0; background: rgba(28, 28, 26, 0.55); opacity: 0; transition: opacity 0.3s ease; }
.svc-overlay.svc-open .svc-scrim { opacity: 1; }
.svc-panel { position: relative; width: min(620px, 100%); max-height: min(84vh, 760px); overflow: auto; background: #F5F2EC; border: 1px solid #DDD9D0; box-shadow: 0 30px 80px rgba(28, 28, 26, 0.35); padding: clamp(28px, 4.5vw, 48px); transform-origin: top left; }
.svc-panel.svc-anim { transition: transform 0.4s cubic-bezier(0.22, 0.75, 0.25, 1); }
.svc-panel:focus { outline: none; }
.svc-panel-inner { opacity: 0; transition: opacity 0.2s ease; }
.svc-overlay.svc-open .svc-panel-inner { opacity: 1; transition-delay: 0.16s; }
.svc-panel-num { display: block; font-family: 'Lora', serif; font-weight: 700; font-size: 56px; line-height: 0.9; color: #E8E4DC; letter-spacing: -0.04em; margin: 0 0 18px; }
.svc-panel-rule { width: 36px; height: 2px; background: var(--terra); margin: 0 0 18px; }
.svc-panel h2 { margin: 0 0 20px; font-family: 'Lora', serif; font-weight: 700; font-size: clamp(24px, 3vw, 32px); line-height: 1.15; letter-spacing: -0.03em; color: #1C1C1A; }
.svc-panel-inner p { margin: 0 0 16px; font-size: 16px; line-height: 1.7; color: #3A3632; }
.svc-panel-cta { display: inline-block; margin-top: 14px; text-decoration: none; background: var(--terra); color: #F5F2EC; padding: 14px 26px; font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; }
.svc-close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 40px; height: 40px; border: 0; background: transparent; color: #6B6560; font-size: 26px; line-height: 1; cursor: pointer; }
.svc-close:hover { color: #1C1C1A; }
.svc-close:focus-visible { outline: 2px solid var(--terra); }
.svc-lock { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .svc-scrim,
  .svc-panel-inner,
  .svc-panel.svc-anim { transition: none; }
}

/* ============ Intake form (index.html) ============ */
.intake-field { transition: border-color 0.15s ease; }
.intake-field:hover { border-color: #6B6560 !important; }
.intake-field:focus { outline: none; border-color: var(--terra) !important; }
.intake-field[aria-invalid="true"] { border-color: var(--terra) !important; }
.intake-field::placeholder { color: #6B6560; }
.intake-error { font-weight: 600; font-size: 14px; line-height: 1.4; color: var(--terra); }
/* Keep dark-field text legible if the browser autofills */
.intake-field:-webkit-autofill,
.intake-field:-webkit-autofill:hover,
.intake-field:-webkit-autofill:focus {
  -webkit-text-fill-color: #F5F2EC;
  transition: background-color 5000s ease-in-out 0s;
}

/* Success/error banner: fades and rises in, avatar arrives a beat later. */
.intake-status { opacity: 0; transform: translateY(10px); transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1), transform 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.intake-status.is-visible { opacity: 1; transform: translateY(0); }
.intake-status #intake-status-avatar { opacity: 0; transform: scale(0.8); transition: opacity 0.45s ease 0.18s, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 0.18s; }
.intake-status.is-visible #intake-status-avatar { opacity: 1; transform: scale(1); }
.intake-layout {
  display: grid;
  grid-template-columns: minmax(0, 680px) minmax(230px, 300px);
  gap: clamp(48px, 8vw, 96px);
  align-items: start;
}
.intake-scheduling {
  margin-top: 2px;
  padding: 28px;
  border: 1px solid #3A3632;
  border-top: 2px solid var(--terra);
}
.intake-scheduling-kicker {
  margin: 0 0 14px;
  color: var(--terra);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}
.intake-scheduling h3 {
  margin: 0 0 12px;
  color: var(--paper);
  font-family: 'Lora', Georgia, serif;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.035em;
}
.intake-scheduling > p:not(.intake-scheduling-kicker) {
  margin: 0 0 24px;
  color: var(--muted-dark);
  font-size: 15px;
  line-height: 1.6;
}
.intake-scheduling-button .booking-link { width: 100%; }
.intake-scheduling-button .btn-ghost-dark { border-color: var(--terra); }
.intake-scheduling-button .btn-ghost-dark:hover {
  background: var(--terra);
}

.booking-dialog {
  width: min(1100px, calc(100vw - 32px));
  height: min(900px, calc(100vh - 32px));
  height: min(900px, calc(100dvh - 32px));
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  box-shadow: 0 24px 80px rgba(28, 28, 26, 0.32);
}
.booking-dialog[open] { display: flex; flex-direction: column; }
.booking-dialog::backdrop { background: rgba(28, 28, 26, 0.68); }
.booking-dialog-header,
.booking-dialog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
  padding: 8px 16px;
}
.booking-dialog-header { border-bottom: 1px solid var(--line); }
.booking-dialog-header strong { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.booking-dialog-close {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 26px;
  cursor: pointer;
}
.booking-dialog-close:focus-visible,
.booking-dialog-open:focus-visible { outline: 2px solid var(--terra); outline-offset: 2px; }
.booking-dialog-frame { display: block; flex: 1 1 auto; min-height: 0; width: 100%; border: 0; background: #fff; }
.booking-dialog-footer { justify-content: flex-end; border-top: 1px solid var(--line); font-size: 13px; }
.booking-dialog-open { color: var(--terra); }
@media (max-width: 700px) {
  .booking-dialog { width: calc(100vw - 16px); height: calc(100dvh - 16px); }
  .booking-dialog-header,
  .booking-dialog-footer { padding: 6px 12px; }
}

/* The packaged-offer form is part of the card grid, not a separate page section. */
.services-offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1px;
  border: 1px solid #DDD9D0;
  background: #DDD9D0;
}
.services-offer-card.is-selected {
  box-shadow: inset 3px 0 0 #B85C38;
}
.services-offer-panel {
  grid-column: 1 / -1;
  min-width: 0;
  margin-top: -1px;
  padding: clamp(26px, 4vw, 48px);
  background: #F5F2EC;
  scroll-margin-top: 96px;
}
.services-offer-panel[hidden] { display: none; }
.services-panel-intro {
  padding: 0 0 28px;
  margin-bottom: 32px;
  border-bottom: 1px solid #DDD9D0;
}
.services-panel-selection {
  margin: 0 0 12px;
  color: #B85C38;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.services-panel-selection strong { color: #1C1C1A; }
.services-panel-intro h2 {
  margin: 0 0 12px;
  color: #1C1C1A;
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.services-panel-intro h2:focus { outline: none; }
.services-panel-intro > p:last-child {
  max-width: 60ch;
  margin: 0;
  color: #6B6560;
  font-size: 16px;
  line-height: 1.6;
}
/* Reuse the homepage form fields and scheduling card inside the attached panel. */
.services-start .services-intake-label {
  font-weight: 600;
  font-size: 16px;
  line-height: 1.45;
  color: #1C1C1A;
}
.services-start .intake-field {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  padding: 13px 14px;
  border: 1px solid #C4BEB2;
  border-radius: 0;
  background: #FFFCF7;
  color: #1C1C1A;
  font: 400 16px 'Figtree', system-ui, sans-serif;
}
.services-start .intake-field:-webkit-autofill,
.services-start .intake-field:-webkit-autofill:hover,
.services-start .intake-field:-webkit-autofill:focus {
  -webkit-text-fill-color: #1C1C1A;
}
.services-offer-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.services-offer-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  padding: 12px;
  border: 1px solid #C4BEB2;
  background: #F5F2EC;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
}
.services-offer-option:has(input:checked) { border-color: #B85C38; background: #F8EDE6; }
.services-offer-option:focus-within { outline: 2px solid #B85C38; outline-offset: 2px; }
.services-offer-option input,
.services-answer-options input { accent-color: #B85C38; flex: 0 0 auto; margin: 0; }
.services-answer-options { display: flex; flex-wrap: wrap; gap: 16px 28px; }
.services-answer-options label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.services-start .intake-scheduling { border-color: #C4BEB2; background: #F5F2EC; }
.services-start .intake-scheduling h3 { color: #1C1C1A; }
.services-start .intake-scheduling > p:not(.intake-scheduling-kicker) { color: #6B6560; }
@media (max-width: 700px) {
  .services-offer-grid { grid-template-columns: 1fr; }
  .services-offer-panel { padding: 28px 24px; }
  .services-offer-options { grid-template-columns: 1fr; }
}
@media (max-width: 1000px) {
  .services-offer-panel .intake-layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}
@media (max-width: 880px) {
  .intake-layout {
    grid-template-columns: minmax(0, 680px);
  }
  .intake-scheduling {
    max-width: 420px;
  }
}
@media (max-width: 600px) {
  .hur54b {
    padding: 52px 10px 10px !important;
  }
  .Xfsokf {
    top: 8px !important;
    right: 10px !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .intake-status,
  .intake-status #intake-status-avatar { transition: none; opacity: 1; transform: none; }
}

/* ============ Page transitions (all pages) ============ */
/* Exit wipe: ink panel sweeps in from the left, terracotta leading edge. */
.oc-wipe { position: fixed; inset: 0; z-index: 2000; background: rgba(28, 28, 26, 0.88); transform: translateX(-102%); pointer-events: none; will-change: transform; }
.oc-wipe::after { content: ""; position: absolute; top: 0; right: 0; width: 3px; height: 100%; background: var(--terra); }
.oc-wipe.oc-wipe-in { transform: translateX(0); transition: transform 0.26s cubic-bezier(0.65, 0, 0.35, 1), background-color 0.1s linear; }
/* Once fully covering, go opaque so the document swap is invisible behind it. */
.oc-wipe.oc-wipe-solid { background: #1C1C1A; }
/* Entrance cover: set pre-paint by the inline head snippet, swept out by js/transitions.js.
   Starts opaque (hides the swap), turns translucent as it sweeps away. */
html.oc-entering::after { content: ""; position: fixed; inset: 0; z-index: 2000; background: #1C1C1A; border-left: 3px solid var(--terra); pointer-events: none; }
html.oc-entering.oc-reveal::after { transform: translateX(103%); background: rgba(28, 28, 26, 0.88); transition: transform 0.32s cubic-bezier(0.65, 0, 0.35, 1) 0.03s, background-color 0.12s linear 0.03s; }
/* Cross-document view transition: the browser freezes the old page's last frame
   (our opaque panel) on screen until the new page is ready to paint, eliminating
   the blank inter-document frame entirely. Near-instant swap — the visible motion
   stays with the wipe/reveal panels above. Unsupported browsers ignore this. */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) { animation-duration: 0.05s; }
@media (prefers-reduced-motion: reduce) {
  .oc-wipe,
  html.oc-entering::after { display: none; }
  /* Keep the paint-hold (it prevents flashes) but remove all animation. */
  ::view-transition-group(*),
  ::view-transition-image-pair(*),
  ::view-transition-old(*),
  ::view-transition-new(*) { animation: none !important; }
}

/* ─── Hamburger button (desktop: hidden) ────────────── */
.oc-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5.5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}
.oc-ham-bar {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 0.24s cubic-bezier(0.4, 0, 0.2, 1),
              opacity    0.18s ease,
              background 0.28s ease;
}

/* ─── Mobile nav: right-side drawer + scrim (≤ 719px) ── */
@media (max-width: 719px) {
  @keyframes oc-link-in {
    from { opacity: 0; transform: translateX(12px); }
    to   { opacity: 1; transform: none; }
  }

  /* Header stays above drawer and scrim */
  header { z-index: 600 !important; }

  /* Show hamburger */
  .oc-hamburger { display: flex; }

  /* Bars morph into X */
  .oc-hamburger.is-open .oc-ham-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .oc-hamburger.is-open .oc-ham-bar:nth-child(2) { opacity: 0; transform: scaleX(0.2); }
  .oc-hamburger.is-open .oc-ham-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Scrim — tap anywhere outside the drawer to dismiss */
  .oc-nav-scrim {
    position: fixed;
    inset: 0;
    z-index: 490;
    background: rgba(28, 28, 26, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
  }
  body.oc-nav-open .oc-nav-scrim { opacity: 1; pointer-events: auto; }

  /* Right-side drawer panel */
  .oc-nav-links {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: auto !important;
    width: min(76vw, 300px) !important;
    z-index: 500;
    background: var(--ink);
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center;
    gap: 0 !important;
    padding: 0 clamp(28px, 7vw, 48px) !important;
    transform: translateX(100%);
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
  }
  .oc-nav-links.is-open { transform: translateX(0); pointer-events: auto; }

  /* Drawer link styles */
  .oc-nav-links a {
    display: block !important;
    width: 100% !important;
    font-size: clamp(22px, 6vw, 30px) !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    color: var(--paper) !important;
    text-decoration: none !important;
    border: none !important;
    border-top: 1px solid var(--dark-line) !important;
    white-space: normal !important;
    padding: 18px 0 !important;
    line-height: 1.1 !important;
  }
  .oc-nav-links a:first-child { border-top: none !important; }
  .oc-nav-links a:hover,
  .oc-nav-links a:focus { color: var(--terra) !important; }

  /* Stagger-in animation */
  .oc-nav-links.is-open a:nth-child(1) { animation: oc-link-in 0.3s ease 0.15s both; }
  .oc-nav-links.is-open a:nth-child(2) { animation: oc-link-in 0.3s ease 0.22s both; }
  .oc-nav-links.is-open a:nth-child(3) { animation: oc-link-in 0.3s ease 0.29s both; }

  /* Scroll lock while drawer is open */
  body.oc-nav-open { overflow: hidden !important; }
}

@media (max-width: 719px) and (prefers-reduced-motion: reduce) {
  .oc-nav-links, .oc-ham-bar, .oc-nav-scrim { transition: none !important; }
  .oc-nav-links.is-open a { animation: none !important; }
}

/* Progressive Disclosure homepage treatment (mobile only). */
@media (max-width: 719px) {
  .guide-callout-action span { margin-left: 10px; }
  main > section:first-child { padding: 28px 24px 56px !important; }
  main > section.services-hero:first-child { padding-bottom: 0 !important; }
  main > section:first-child h1 { font-size: 27px !important; line-height: 1.08 !important; }
  main > section:first-child p { font-size: 13px !important; line-height: 1.6 !important; }
  .mobile-progressive-work,
  .mobile-progressive-about { padding: 56px 24px !important; }
  .mobile-progressive-engagement > div,
  .mobile-progressive-case > div,
  .mobile-progressive-writing > div,
  .mobile-progressive-intake > div { padding: 56px 24px !important; }
  .mobile-prog-details {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .mobile-prog-details + .mobile-prog-details { border-top: 0; }
  .mobile-prog-details summary,
  .mobile-intake-details summary {
    display: flex;
    min-height: 54px;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 17px 0;
    cursor: pointer;
    list-style: none;
  }
  .mobile-prog-details summary::-webkit-details-marker,
  .mobile-intake-details summary::-webkit-details-marker { display: none; }
  .mobile-prog-details summary span,
  .mobile-intake-details summary span { font-size: 15px; font-weight: 700; line-height: 1.45; }
  .mobile-prog-details summary i,
  .mobile-intake-details summary i {
    flex: 0 0 auto; color: var(--terra); font-size: 22px; font-style: normal;
    font-weight: 400; line-height: 1; transition: transform .15s ease;
  }
  .mobile-prog-details[open] > summary i,
  .mobile-intake-details[open] > summary i { transform: rotate(45deg); }
  .mobile-prog-detail-content { padding: 0 0 20px; }
  .mobile-prog-detail-content p { font-size: 13px !important; line-height: 1.6 !important; }
  .mobile-prog-detail-content .btn-ghost-dark { margin-top: 20px !important; }
  .mobile-prog-detail-content > div[style*="display:grid"] { display: block !important; }
  .mobile-prog-detail-content > div[style*="display:grid"] > div { margin-bottom: 28px; }
  .mobile-progressive-work h2,
  .mobile-progressive-engagement h2,
  .mobile-progressive-case h2,
  .mobile-progressive-writing h2,
  .mobile-progressive-about h2,
  .mobile-progressive-intake h2 { font-size: 24px !important; line-height: 1.14 !important; }
  .mobile-progressive-work .homepage-work-list p,
  .mobile-progressive-engagement p { font-size: 13px !important; line-height: 1.6 !important; }
  .mobile-progressive-case > div > div:first-child { display: none; }
  .mobile-progressive-case > div > div[style*="max-width:560px"] { max-width: none !important; }
  .mobile-progressive-case .mobile-prog-details {
    margin-bottom: 14px;
    border-color: #3a3632;
  }
  .mobile-progressive-case .mobile-prog-details summary span,
  .mobile-progressive-case .mobile-prog-detail-content p { color: #9b9590; }
  .mobile-progressive-case .mobile-prog-detail-content p:last-child {
    color: var(--paper);
    font-weight: 600;
  }
  .mobile-progressive-case .btn-ghost-dark {
    min-height: 44px;
    gap: 10px;
    margin-top: 10px;
    padding: 11px 14px;
    background: var(--dark);
    font-size: 11px;
    letter-spacing: .08em;
  }
  .mobile-progressive-case > div { padding-bottom: 28px !important; }
  .mobile-progressive-writing > div > h2 { margin-bottom: 32px !important; }
  .mobile-progressive-writing > div > div[style*="margin-bottom:64px"] { margin-bottom: 32px !important; }
  .mobile-progressive-writing .article-index-entry { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 14px; padding: 20px 0 !important; }
  .mobile-progressive-writing .article-index-image-link { display: block; }
  .mobile-progressive-writing .article-index-image { width: 88px; height: 64px; object-fit: cover; }
  .mobile-progressive-writing .article-index-entry > div > div:first-child { display: block !important; margin-bottom: 8px !important; }
  .mobile-progressive-writing .article-index-entry time { display: block; }
  .mobile-progressive-writing .article-index-entry h3 { margin: 8px 0 6px !important; font-size: 16px !important; }
  .mobile-progressive-writing .article-index-entry p { font-size: 11px !important; line-height: 1.5 !important; }
  .mobile-progressive-about > div[style*="max-width:560px"] { max-width: none !important; font-size: 13px !important; line-height: 1.6 !important; }
  .logo-page { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); }
  .logo-cell { min-height: 68px; justify-content: center; padding: 12px 10px; background: var(--paper); }
  .logo-cell img { transform: none; }
  .mobile-progressive-intake .intake-layout { display: block; }
  .mobile-progressive-intake #intake-form { gap: 32px !important; }
  .mobile-intake-step {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 20px 16px;
    border: 1px solid #3a3632;
    border-top: 2px solid var(--terra);
  }
  .mobile-intake-step[hidden] { display: none; }
  .mobile-intake-step-heading {
    display: flex;
    flex-direction: column;
    gap: 6px;
    outline: 0;
  }
  .mobile-intake-step-heading small {
    color: var(--terra);
    font: 700 9px/1.2 "Space Mono", monospace;
    letter-spacing: .08em;
    text-transform: uppercase;
  }
  .mobile-intake-step-heading span {
    color: var(--paper);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
  }
  .mobile-intake-step-heading p {
    margin: 0;
    color: #9b9590;
    font-size: 12px;
    line-height: 1.5;
  }
  .mobile-intake-full-fields { display: flex; flex-direction: column; gap: 32px; }
  .mobile-intake-full-fields > fieldset,
  .mobile-intake-full-fields > label { display: flex; flex-direction: column; gap: 10px; }
  .mobile-intake-brief > fieldset,
  .mobile-intake-brief > div,
  .mobile-intake-brief > label { display: flex; flex-direction: column; gap: 10px; }
  .mobile-intake-brief > fieldset { gap: 16px; }
  .mobile-intake-next {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    align-self: flex-start;
    gap: 10px;
    padding: 14px 22px;
    border: 0;
    background: var(--terra);
    color: var(--paper);
    font: 600 11px/1 "Figtree", sans-serif;
    letter-spacing: .1em;
    text-transform: uppercase;
    cursor: pointer;
  }
  .mobile-intake-step-actions {
    display: flex;
    align-items: center;
    gap: 20px;
  }
  .mobile-intake-step-actions button[type="submit"] {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    margin-top: 0 !important;
  }
  .mobile-intake-back {
    min-height: 48px;
    padding: 12px 0;
    border: 0;
    border-bottom: 1px solid #6b6560;
    background: transparent;
    color: #cfcac0;
    font: 600 11px/1 "Figtree", sans-serif;
    letter-spacing: .08em;
    text-transform: uppercase;
    cursor: pointer;
  }
  .mobile-about-avatar { float: right; width: 100px; height: 100px; margin: 0 0 12px 18px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--line); }
  .mobile-progressive-intake #intake-form label,
  .mobile-progressive-intake #intake-form legend { font-size: 13px !important; }
  .mobile-progressive-intake #intake-form .intake-field { min-height: 48px; font-size: 14px !important; }
  .mobile-progressive-intake .intake-scheduling { margin-top: 32px; padding: 28px; }
  footer { padding: 28px 24px !important; }
}

/* Footer social-media bugs are added progressively by main.js. */
footer .oc-legal-links a {
  color: #6B6560;
  text-decoration: none;
  border-bottom: 1px solid #3A3632;
}

footer a {
  transition: color 160ms ease, border-color 160ms ease;
}

footer a:hover {
  color: #B85C38 !important;
  border-bottom-color: #B85C38 !important;
}

footer a:focus-visible {
  color: #B85C38 !important;
  border-bottom-color: #B85C38 !important;
  outline: 2px solid #B85C38;
  outline-offset: 4px;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.footer-social-divider {
  height: 0;
  margin: 16px 0 14px;
  border: 0;
  border-top: 1px solid #2C2C29;
}

.footer-social-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
}

.footer-social-link::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  background-color: currentColor;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
}

.footer-social-link--linkedin::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5.3 7.4A2.1 2.1 0 1 0 5.3 3.2a2.1 2.1 0 0 0 0 4.2ZM3.5 20.5h3.6V9H3.5v11.5ZM9.3 9v11.5h3.6v-5.7c0-1.5.3-2.9 2.1-2.9 1.8 0 1.9 1.7 1.9 3v5.6h3.6v-6.3c0-3.1-.7-5.5-4.3-5.5-1.7 0-2.9 1-3.4 1.9h-.1V9H9.3Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5.3 7.4A2.1 2.1 0 1 0 5.3 3.2a2.1 2.1 0 0 0 0 4.2ZM3.5 20.5h3.6V9H3.5v11.5ZM9.3 9v11.5h3.6v-5.7c0-1.5.3-2.9 2.1-2.9 1.8 0 1.9 1.7 1.9 3v5.6h3.6v-6.3c0-3.1-.7-5.5-4.3-5.5-1.7 0-2.9 1-3.4 1.9h-.1V9H9.3Z'/%3E%3C/svg%3E");
}

.footer-social-link--instagram::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M7.2 2h9.6A5.2 5.2 0 0 1 22 7.2v9.6a5.2 5.2 0 0 1-5.2 5.2H7.2A5.2 5.2 0 0 1 2 16.8V7.2A5.2 5.2 0 0 1 7.2 2Zm-.1 2A3.1 3.1 0 0 0 4 7.1v9.8A3.1 3.1 0 0 0 7.1 20h9.8a3.1 3.1 0 0 0 3.1-3.1V7.1A3.1 3.1 0 0 0 16.9 4H7.1ZM12 7a5 5 0 1 1 0 10 5 5 0 0 1 0-10Zm0 2a3 3 0 1 0 0 6 3 3 0 0 0 0-6Zm6.4-2.2a1.2 1.2 0 1 1-2.4 0 1.2 1.2 0 0 1 2.4 0Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M7.2 2h9.6A5.2 5.2 0 0 1 22 7.2v9.6a5.2 5.2 0 0 1-5.2 5.2H7.2A5.2 5.2 0 0 1 2 16.8V7.2A5.2 5.2 0 0 1 7.2 2Zm-.1 2A3.1 3.1 0 0 0 4 7.1v9.8A3.1 3.1 0 0 0 7.1 20h9.8a3.1 3.1 0 0 0 3.1-3.1V7.1A3.1 3.1 0 0 0 16.9 4H7.1ZM12 7a5 5 0 1 1 0 10 5 5 0 0 1 0-10Zm0 2a3 3 0 1 0 0 6 3 3 0 0 0 0-6Zm6.4-2.2a1.2 1.2 0 1 1-2.4 0 1.2 1.2 0 0 1 2.4 0Z'/%3E%3C/svg%3E");
}

/* ---- services outcome row: three cards; renewal audit page form ---- */
.services-offer-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.services-offer-grid--three > .services-offer-card > .btn-primary {
  white-space: nowrap;
  padding-inline: 16px;
}
@media (max-width: 1100px) { .services-offer-grid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .services-offer-grid--three { grid-template-columns: 1fr; } }
#renewal-audit-form select.intake-field { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, #9B9590 50%), linear-gradient(135deg, #9B9590 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px !important; }
#renewal-audit-form select.intake-field option { background: #1C1C1A; color: #F5F2EC; }
.renewal-success:focus { outline: none; }
.renewal-success:focus-visible { outline: 2px solid var(--terra); outline-offset: 4px; }
