/* ==========================================================================
   MEHLMAN & CO. — sub-page extensions
   Additions to the main stylesheet for Approach / Work / About / Contact
   ========================================================================== */

/* ==========================================================================
   PAGE HERO (shared by all sub-pages)
   ========================================================================== */

.page-hero {
  padding: 6.5rem 0 6rem;
  background: var(--bone-warm);
  position: relative;
  overflow: hidden;
}

.page-hero-compact { padding: 6.5rem 0 4rem; }

.page-hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

.page-hero-meta {
  display: flex;
  gap: 1.5rem;
  align-items: baseline;
  opacity: 0;
  animation: fade-in-up 0.8s var(--ease-out) 0.4s forwards;
}

.page-hero-num {
  font-family: var(--serif);
  font-size: 13px;
  font-variant: small-caps;
  letter-spacing: 0.3em;
  color: var(--oxblood);
  font-weight: 600;
}

.page-hero-firm {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.page-hero-title {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 400;
  line-height: 1.05;
  color: var(--ink);
  letter-spacing: -0.015em;
  max-width: 1000px;
  text-wrap: balance;
  opacity: 0;
  animation: fade-in-up 1s var(--ease-out) 0.6s forwards;
}

.page-hero-title em {
  font-style: italic;
  color: var(--oxblood);
}

.page-hero-sub {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  font-style: italic;
  color: var(--text-soft);
  max-width: 640px;
  line-height: 1.5;
  text-wrap: balance;
  opacity: 0;
  animation: fade-in-up 1s var(--ease-out) 0.9s forwards;
}

/* Wide variant for longer subs — breathes wider than the narrow default,
   but constrained enough that it always wraps to 2+ balanced lines on typical desktops. */
.page-hero-sub-wide {
  max-width: min(820px, 92vw);
  font-size: clamp(1rem, 1.35vw, 1.25rem);
  text-wrap: balance;
}

/* Inline link within hero sub or prose — oxblood w/ subtle underline */
.inline-link {
  color: var(--oxblood);
  text-decoration: underline;
  text-decoration-thickness: 0.5px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(107, 31, 34, 0.4);
  transition: text-decoration-color 0.3s var(--ease-out);
}

.inline-link:hover {
  text-decoration-color: var(--oxblood);
}

.page-hero-seal {
  margin-top: 2rem;
  opacity: 0;
  transform: scale(0.6);
  animation: page-hero-seal 1.2s var(--ease-power) 1.1s forwards;
}

@keyframes page-hero-seal {
  to { opacity: 1; transform: scale(1); }
}

/* ==========================================================================
   LINK ARROW + CTAs
   ========================================================================== */

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 15px;
  font-style: italic;
  color: var(--oxblood);
  position: relative;
  padding-bottom: 2px;
  transition: gap 0.4s var(--ease-out);
  margin-top: 1.5rem;
}

.link-arrow::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 0.5px;
  background: var(--oxblood);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}

.link-arrow em {
  font-style: normal;
  transition: transform 0.4s var(--ease-out);
}

.link-arrow:hover {
  gap: 18px;
}

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

.approach-cta-row, .centered-cta-row {
  margin-top: 2.5rem;
}

.centered-cta-row {
  text-align: center;
}

.btn-seal-large {
  padding: 1.25rem 2.5rem;
  font-size: 14px;
}

/* ==========================================================================
   APPROACH PAGE
   ========================================================================== */

.philosophy {
  padding: 5rem 0 8rem;
  background: var(--ink);
  color: var(--bone);
  position: relative;
  overflow: hidden;
}

.philosophy::before {
  content: '';
  position: absolute;
  top: -150px; left: -100px;
  width: 536px; height: 536px;
  background: radial-gradient(
    circle,
    rgba(107, 31, 34, 0.0832) 0%,
    rgba(107, 31, 34, 0.0567) 25%,
    rgba(107, 31, 34, 0.0315) 50%,
    rgba(107, 31, 34, 0.0126) 75%,
    transparent 100%
  );
  pointer-events: none;
  filter: blur(60px);
  will-change: transform;
}

.philosophy::after {
  content: '';
  position: absolute;
  bottom: -100px; right: -100px;
  width: 469px; height: 469px;
  background: radial-gradient(
    circle,
    rgba(200, 154, 74, 0.0605) 0%,
    rgba(200, 154, 74, 0.0413) 25%,
    rgba(200, 154, 74, 0.0224) 50%,
    rgba(200, 154, 74, 0.0091) 75%,
    transparent 100%
  );
  pointer-events: none;
  filter: blur(60px);
  will-change: transform;
}

.philosophy .container { position: relative; z-index: 1; }
.philosophy .section-meta { border-bottom-color: rgba(245, 241, 232, 0.15); }
.philosophy .section-meta-num { color: var(--brass-warm); }
.philosophy .section-meta-label { color: rgba(245, 241, 232, 0.78); }
.philosophy .section-heading { color: var(--bone); }
.philosophy .section-heading em { color: var(--brass-warm); }
.philosophy .body-large { color: rgba(245, 241, 232, 0.88); }
.phil-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .phil-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* Timeline */
.process {
  padding: 6.5rem 0;
  background: var(--bone-warm);
}

/* ==========================================================================
   ENGAGEMENT INTERACTIVE (Section III)
   Rail + phase display + controls + autoplay pulse
   ========================================================================== */

.ei-stage {
  max-width: 1080px;
  margin: 3.5rem auto 0;
  position: relative;
  outline: none;
}

.ei-stage:focus-visible {
  outline: 2px solid var(--brass-warm);
  outline-offset: 12px;
}

/* --- Rail (progress + nodes) --- */
.ei-rail {
  position: relative;
  margin-bottom: 2.5rem;
  padding: 0 1rem;
}

.ei-track {
  position: absolute;
  top: 27px; /* center of 54px dots */
  left: calc(10% + 1rem);
  right: calc(10% + 1rem);
  height: 1px;
  background: rgba(19, 21, 23, 0.14);
  overflow: hidden;
  z-index: 0;
}

.ei-track-fill {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: 0;
  background: var(--brass-warm);
  transition: width 0.7s var(--ease-out);
}

.ei-nodes {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  position: relative;
  z-index: 1;
}

.ei-node {
  background: none;
  border: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  padding: 0;
  font-family: var(--serif);
  transition: transform 0.3s var(--ease-out);
}

.ei-node:hover {
  transform: translateY(-2px);
}

/* Stronger hover signal — tints the seal and adds a soft shape-following glow */
.ei-node:hover .ei-node-dot {
  background: rgba(107, 31, 34, 0.1);
  color: var(--oxblood);
}
.ei-node:not(.is-active):hover .ei-node-dot {
  filter: drop-shadow(0 0 5px rgba(107, 31, 34, 0.18));
}
.ei-node:hover .ei-node-time {
  color: var(--oxblood);
}

.ei-node:focus-visible {
  outline: none;
}
.ei-node:focus-visible .ei-node-dot {
  filter: drop-shadow(0 0 5px rgba(200, 154, 74, 0.55));
}

.ei-node-dot {
  width: 54px; height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  color: rgba(19, 21, 23, 0.45);
  background: var(--bone-deep);
  /* Scalloped wax-seal silhouette (same path used elsewhere as the brand mark) */
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-100 -100 200 200'><path d='M -12.7 -77.3 Q 0.0 -84.8 12.9 -77.8 Q 25.8 -70.8 40.2 -67.9 Q 54.6 -65.1 59.7 -51.2 Q 64.7 -37.4 75.2 -26.2 Q 85.7 -15.1 79.7 -1.1 Q 73.6 13.0 73.8 27.8 Q 74.0 42.7 60.6 49.5 Q 47.3 56.3 38.5 68.9 Q 29.6 81.4 14.8 78.4 Q 0.0 75.4 -14.8 78.3 Q -29.6 81.3 -38.6 69.0 Q -47.6 56.8 -60.9 49.8 Q -74.2 42.8 -73.4 27.8 Q -72.6 12.8 -79.0 -1.1 Q -85.3 -15.0 -74.6 -26.0 Q -63.9 -36.9 -59.6 -51.4 Q -55.3 -66.0 -40.4 -67.9 Q -25.4 -69.9 -12.7 -77.3 Z' fill='black'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-100 -100 200 200'><path d='M -12.7 -77.3 Q 0.0 -84.8 12.9 -77.8 Q 25.8 -70.8 40.2 -67.9 Q 54.6 -65.1 59.7 -51.2 Q 64.7 -37.4 75.2 -26.2 Q 85.7 -15.1 79.7 -1.1 Q 73.6 13.0 73.8 27.8 Q 74.0 42.7 60.6 49.5 Q 47.3 56.3 38.5 68.9 Q 29.6 81.4 14.8 78.4 Q 0.0 75.4 -14.8 78.3 Q -29.6 81.3 -38.6 69.0 Q -47.6 56.8 -60.9 49.8 Q -74.2 42.8 -73.4 27.8 Q -72.6 12.8 -79.0 -1.1 Q -85.3 -15.0 -74.6 -26.0 Q -63.9 -36.9 -59.6 -51.4 Q -55.3 -66.0 -40.4 -67.9 Q -25.4 -69.9 -12.7 -77.3 Z' fill='black'/></svg>") center/contain no-repeat;
  transition: background 0.4s var(--ease-out), color 0.4s var(--ease-out);
}

.ei-node.is-passed .ei-node-dot {
  background: var(--brass-warm);
  color: var(--bone);
}

.ei-node.is-active .ei-node-dot {
  background: var(--oxblood);
  color: var(--bone);
  /* Shape-following glow — follows the scallop silhouette (drop-shadow respects mask) */
  filter: drop-shadow(0 0 6px rgba(107, 31, 34, 0.28));
}

.ei-node-num { line-height: 1; font-style: normal; }

.ei-node-time {
  font-size: 12.5px;
  font-variant: small-caps;
  letter-spacing: 0.16em;
  color: var(--text-mute);
  font-weight: 500;
  transition: color 0.4s var(--ease-out);
}

.ei-node.is-passed .ei-node-time { color: var(--brass); }
.ei-node.is-active .ei-node-time { color: var(--oxblood); }

.ei-node-short {
  font-family: var(--serif);
  font-size: 14.5px;
  font-style: italic;
  color: var(--text-soft);
  margin-top: -0.25rem;
}

/* --- Phase display --- */
.ei-display {
  position: relative;
  min-height: 360px;
  margin-top: 1.5rem;
}

.ei-phase {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "roman meta"
    "body  body"
    "bullets bullets";
  column-gap: 2.5rem;
  row-gap: 0.5rem;
  align-items: end;
  padding: 2.5rem 2rem;
  position: absolute;
  top: 0; left: 0; right: 0;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}

/* Override HTML [hidden] — we manage visibility via class + aria-hidden */
.ei-phase[hidden] { display: grid; }

.ei-phase.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.ei-phase-roman {
  grid-area: roman;
  font-family: var(--serif);
  font-size: clamp(4.5rem, 7vw, 6.5rem);
  font-weight: 400;
  line-height: 0.85;
  color: var(--oxblood);
  letter-spacing: -0.02em;
  padding-bottom: 0.1em;
}

.ei-phase-meta {
  grid-area: meta;
  padding-bottom: 0.5rem;
}

.ei-phase-body {
  grid-area: body;
  margin: 1.75rem 0 1.25rem 0;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
}

.ei-phase-bullets {
  grid-area: bullets;
}

.ei-phase-day {
  font-family: var(--serif);
  font-size: 13px;
  font-variant: small-caps;
  letter-spacing: 0.22em;
  color: var(--brass);
  font-weight: 500;
  margin-bottom: 0.65rem;
}

.ei-phase-title {
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.4vw, 2.1rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.01em;
}

.ei-phase-body em {
  font-style: italic;
  color: var(--oxblood);
}

.ei-phase-bullets {
  list-style: none;
  padding: 1rem 0 0 0;
  margin: 0;
  border-top: 0.5px solid rgba(19, 21, 23, 0.14);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0 2rem;
}

.ei-phase-bullets li {
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-soft);
  padding: 0.5rem 0;
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
}

.ei-phase-bullets li::before {
  content: '';
  flex-shrink: 0;
  width: 12px;
  height: 1px;
  background: var(--brass);
  transform: translateY(-0.35em);
  align-self: baseline;
}

/* ---- Mobile layout (≤768px) ----
   On desktop, phases are absolutely positioned for smooth fade transitions
   between them. On mobile, content wraps far more aggressively and the fixed
   min-height can't accommodate all phases — causing absolute-positioned
   content to overflow into the section below. Switch to normal flow on
   mobile: one phase shown at a time via display:none, phases push the
   container to their natural height. */
@media (max-width: 768px) {
  .ei-rail { margin-bottom: 1.25rem; }

  .ei-controls { margin-top: 1rem; padding: 0.25rem 0; gap: 1.25rem; }

  .ei-hint {
    margin-top: 0.25rem;
    margin-bottom: 0.75rem;
    font-size: 13px;
  }

  /* Once user has engaged, collapse the hint's vertical space smoothly */
  .ei-stage.is-user-driven .ei-hint {
    margin-top: 0;
    margin-bottom: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.3s var(--ease-out), margin 0.3s var(--ease-out), max-height 0.3s var(--ease-out);
  }

  .ei-display {
    min-height: 0;
    margin-top: 0.25rem;
  }

  .ei-phase {
    position: relative;
    top: auto; left: auto; right: auto;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    padding: 0.5rem 0.25rem 0.75rem;
    grid-template-columns: 1fr;
    grid-template-areas:
      "roman"
      "meta"
      "body"
      "bullets";
    column-gap: 0;
    row-gap: 0.5rem;
  }

  .ei-phase:not(.is-active) { display: none; }

  .ei-phase-roman {
    font-size: clamp(3.5rem, 14vw, 5rem);
    padding-bottom: 0;
    line-height: 0.8;
  }

  .ei-phase-body { margin: 0.75rem 0 0.75rem 0; font-size: 16px; }

  .ei-phase-bullets {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 0.75rem;
  }
}

/* --- Controls (positioned below rail, above detail panel) --- */
.ei-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 1.75rem;
  padding: 0.75rem 0;
}

/* --- Hint: visible until user first interacts, then fades --- */
.ei-hint {
  text-align: center;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  font-family: var(--serif);
  font-size: 14px;
  color: var(--text-mute);
  line-height: 1.5;
  transition: opacity 0.6s var(--ease-out);
}
.ei-hint em {
  font-style: italic;
}
.ei-stage.is-user-driven .ei-hint {
  opacity: 0;
  pointer-events: none;
}

.ei-prev, .ei-next {
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 13px;
  font-variant: small-caps;
  letter-spacing: 0.22em;
  color: var(--text-mute);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  transition: color 0.3s var(--ease-out);
}

.ei-prev:hover, .ei-next:hover { color: var(--oxblood); }

.ei-prev:focus-visible, .ei-next:focus-visible {
  outline: 2px solid var(--brass-warm);
  outline-offset: 2px;
}

.ei-ctrl-arrow {
  font-size: 18px;
  font-style: italic;
  display: inline-block;
  transition: transform 0.3s var(--ease-out);
}

.ei-prev:hover .ei-ctrl-arrow { transform: translateX(-3px); }
.ei-next:hover .ei-ctrl-arrow { transform: translateX(3px); }

/* Pause/Play toggle button */
.ei-play-pause {
  background: none;
  border: 0;
  cursor: pointer;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-mute);
  font-size: 17px;
  line-height: 1;
  transition: color 0.3s var(--ease-out), background 0.3s var(--ease-out);
  padding: 0;
}
.ei-play-pause:hover {
  color: var(--oxblood);
  background: rgba(107, 31, 34, 0.06);
}
.ei-play-pause:focus-visible {
  outline: 2px solid var(--brass-warm);
  outline-offset: 2px;
}
/* Show correct icon based on state */
.ei-pp-play { display: none; }
.ei-pp-pause { display: inline; }
.ei-stage.is-user-paused .ei-pp-play { display: inline; }
.ei-stage.is-user-paused .ei-pp-pause { display: none; }
/* Hide the pause/play button once user navigates manually — autoplay is done */
.ei-stage.is-user-driven .ei-play-pause {
  opacity: 0;
  pointer-events: none;
}

.ei-counter {
  font-family: var(--serif);
  font-size: 14px;
  font-variant: small-caps;
  letter-spacing: 0.2em;
  color: var(--ink);
  font-weight: 500;
  min-width: 68px;
  text-align: center;
}

.ei-counter-current { color: var(--oxblood); }
.ei-counter-sep { color: rgba(19, 21, 23, 0.3); }
.ei-counter-total { color: var(--text-mute); }

/* --- Autoplay pulse --- */
.ei-auto-pulse {
  position: absolute;
  bottom: -14px; left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1px;
  background: rgba(19, 21, 23, 0.1);
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}

.ei-stage.is-autoplay .ei-auto-pulse { opacity: 1; }

.ei-auto-pulse span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--brass-warm);
}

/* --- Mobile --- */
@media (max-width: 768px) {
  .ei-rail { padding: 0 0.5rem; }
  .ei-track { left: calc(10% + 0.5rem); right: calc(10% + 0.5rem); }
  .ei-node-dot { width: 46px; height: 46px; font-size: 15px; }
  .ei-track { top: 23px; }
  .ei-node-short { display: none; }
  .ei-node-time { font-size: 11px; letter-spacing: 0.12em; }

  .ei-phase {
    grid-template-columns: 1fr;
    grid-template-areas: "roman" "meta" "body" "bullets";
    column-gap: 0;
    row-gap: 1rem;
    padding: 2rem 0.5rem;
  }
  .ei-phase-roman {
    font-size: 4.5rem;
    line-height: 1;
  }
  .ei-phase-bullets { grid-template-columns: 1fr; }
  .ei-display { min-height: 440px; }
  .ei-controls { gap: 1.5rem; }
}

@media (max-width: 520px) {
  .ei-node-time { display: none; }
  .ei-display { min-height: 460px; }
}

/* Five-dimensional */
.fivedim {
  padding: 6.5rem 0;
  background: var(--bone);
}

.fivedim-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .fivedim-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.fivedim-lead {
  position: sticky;
  top: 6rem;
}

/* On mobile (single column), sticky positioning would trap the lead at the top
   of the viewport while the items scroll past below — awkward and broken.
   Return to normal flow so the lead scrolls naturally above the items. */
@media (max-width: 900px) {
  .fivedim-lead { position: static; top: auto; }
}

.fivedim-items {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.fd-item {
  display: flex;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 0.5px dashed rgba(19, 21, 23, 0.12);
  align-items: start;
}

.fd-item:first-child { padding-top: 0; }
.fd-item:last-child { border-bottom: none; }

/* Tighter spacing on narrow viewports */
@media (max-width: 560px) {
  .fd-item { gap: 1rem; padding: 1.5rem 0; }
  .fd-num { min-width: 32px; font-size: 13px; }
  .fd-title { font-size: 1.1rem; }
}

.fd-num {
  font-family: var(--serif);
  font-size: 14px;
  font-variant: small-caps;
  letter-spacing: 0.25em;
  color: var(--oxblood);
  font-weight: 600;
  min-width: 40px;
  padding-top: 2px;
}

.fd-title {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.fd-body {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-soft);
}

/* Costing claim types */
.costing {
  padding: 6.5rem 0;
  background: var(--bone-warm);
}

.costing-types {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.ct-item {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  padding: 1.25rem 1.5rem;
  background: var(--bone);
  border-left: 2px solid var(--oxblood);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.ct-item:hover {
  transform: translateX(4px);
  box-shadow: 0 12px 24px -16px rgba(19, 21, 23, 0.15);
}

.ct-item strong {
  color: var(--ink);
  font-weight: 500;
  display: block;
  margin-bottom: 4px;
  font-variant: small-caps;
  letter-spacing: 0.06em;
  font-size: 15px;
}

.costing-footer {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  font-family: var(--serif);
  font-size: 15.5px;
  font-style: italic;
  color: var(--text-soft);
  line-height: 1.6;
  border-top: 0.5px dashed rgba(19, 21, 23, 0.15);
}

.costing-footer strong {
  font-style: normal;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.02em;
}

/* Technology grid */
.technology {
  padding: 6.5rem 0;
  background: var(--ink);
  color: var(--bone);
  position: relative;
  overflow: hidden;
}

.technology::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 502px; height: 502px;
  background: radial-gradient(
    circle,
    rgba(107, 31, 34, 0.0794) 0%,
    rgba(107, 31, 34, 0.0539) 25%,
    rgba(107, 31, 34, 0.0294) 50%,
    rgba(107, 31, 34, 0.0119) 75%,
    transparent 100%
  );
  pointer-events: none;
  filter: blur(60px);
  will-change: transform;
}

.technology::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -100px;
  width: 435px; height: 435px;
  background: radial-gradient(
    circle,
    rgba(200, 154, 74, 0.0567) 0%,
    rgba(200, 154, 74, 0.0390) 25%,
    rgba(200, 154, 74, 0.0217) 50%,
    rgba(200, 154, 74, 0.0084) 75%,
    transparent 100%
  );
  pointer-events: none;
  filter: blur(60px);
  will-change: transform;
}

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

.technology .section-meta {
  border-bottom-color: rgba(245, 241, 232, 0.12);
}

.technology .section-meta-label { color: rgba(245, 241, 232, 0.76); }
.technology .section-meta-num { color: var(--brass-warm); }
.technology .section-heading { color: var(--bone); }
.technology .section-sub { color: rgba(245, 241, 232, 0.78); }
.technology .section-heading em { color: var(--brass-warm); font-style: italic; }

/* Core feature tools (Ingestion + Analysis engines) */
.tech-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
}

@media (max-width: 900px) {
  .tech-feature-grid { grid-template-columns: 1fr; }
}

.tech-feature {
  background: linear-gradient(
    135deg,
    rgba(107, 31, 34, 0.08) 0%,
    rgba(200, 154, 74, 0.04) 100%
  );
  border: 0.5px solid rgba(200, 154, 74, 0.28);
  padding: 3.5rem 3rem;
  position: relative;
  transition: transform 0.4s var(--ease-out), border-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.tech-feature::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 48px; height: 1px;
  background: var(--brass-warm);
}

.tech-feature:hover {
  transform: translateY(-4px);
  border-color: rgba(200, 154, 74, 0.5);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.5);
}

.tech-feature-label {
  font-family: var(--serif);
  font-size: 13px;
  font-variant: small-caps;
  letter-spacing: 0.22em;
  color: var(--brass-warm);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.tech-feature-title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--bone);
  margin-bottom: 1.25rem;
}

.tech-feature-title em {
  font-style: italic;
  color: var(--brass-warm);
}

.tech-feature-body {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.65;
  color: rgba(245, 241, 232, 0.82);
  margin-bottom: 1.75rem;
}

.tech-feature-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 0.5px solid rgba(245, 241, 232, 0.12);
  padding-top: 1.25rem;
}

.tech-feature-bullets li {
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.55;
  color: rgba(245, 241, 232, 0.72);
  padding: 0.5rem 0;
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
}

.tech-feature-bullets li::before {
  content: '';
  flex-shrink: 0;
  width: 12px;
  height: 1px;
  background: var(--brass-warm);
  transform: translateY(-0.35em);
  align-self: baseline;
}

.tech-support-label {
  font-family: var(--serif);
  font-size: 14px;
  font-variant: small-caps;
  letter-spacing: 0.18em;
  color: rgba(245, 241, 232, 0.82);
  margin-top: 4rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.tech-support-label em {
  font-style: italic;
  color: var(--brass-warm);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (max-width: 900px) {
  .tech-grid { grid-template-columns: 1fr; }
}

.tech-card {
  background: rgba(245, 241, 232, 0.04);
  border: 0.5px solid rgba(245, 241, 232, 0.12);
  padding: 3rem 2.5rem;
  transition: background 0.4s var(--ease-out), border-color 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}

.tech-card:hover {
  background: rgba(245, 241, 232, 0.06);
  border-color: rgba(200, 154, 74, 0.3);
  transform: translateY(-4px);
}

.tech-card-icon {
  color: var(--brass-warm);
  margin-bottom: 2rem;
  opacity: 0.85;
}

.tech-title {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--bone);
  margin-bottom: 1rem;
}

.tech-body {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.65;
  color: rgba(245, 241, 232, 0.75);
}

/* Rates section */
.rates {
  padding: 6.5rem 0;
  background: var(--bone-warm);
}

.rates-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .rates-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ==========================================================================
   WORK PAGE
   ========================================================================== */

.case-study {
  padding: 6.5rem 0;
  background: var(--bone);
}

.case-study-featured {
  background: var(--bone-warm);
}

.case-study-dark {
  background: var(--ink);
  color: var(--bone);
  position: relative;
  overflow: hidden;
}

.case-study-dark::before {
  content: '';
  position: absolute;
  top: -120px; left: -100px;
  width: 502px; height: 502px;
  background: radial-gradient(
    circle,
    rgba(107, 31, 34, 0.0794) 0%,
    rgba(107, 31, 34, 0.0539) 25%,
    rgba(107, 31, 34, 0.0294) 50%,
    rgba(107, 31, 34, 0.0119) 75%,
    transparent 100%
  );
  pointer-events: none;
  filter: blur(60px);
  will-change: transform;
}

.case-study-dark::after {
  content: '';
  position: absolute;
  bottom: -100px; right: -100px;
  width: 435px; height: 435px;
  background: radial-gradient(
    circle,
    rgba(200, 154, 74, 0.0567) 0%,
    rgba(200, 154, 74, 0.0390) 25%,
    rgba(200, 154, 74, 0.0217) 50%,
    rgba(200, 154, 74, 0.0084) 75%,
    transparent 100%
  );
  pointer-events: none;
  filter: blur(60px);
  will-change: transform;
}

.case-study-dark .container { position: relative; z-index: 1; }

.case-study-dark .section-meta { border-bottom-color: rgba(245, 241, 232, 0.12); }
.case-study-dark .section-meta-label { color: rgba(245, 241, 232, 0.76); }
.case-study-dark .section-meta-num { color: var(--brass-warm); }
.case-study-dark .case-label { color: var(--brass-warm); }
.case-study-dark .case-title { color: var(--bone); }
.case-study-dark .case-title em { color: var(--brass-warm); }
.case-study-dark .case-meta-row { border-bottom-color: rgba(245, 241, 232, 0.15); }
.case-study-dark .case-meta-label { color: rgba(245, 241, 232, 0.76); }
.case-study-dark .case-meta-value { color: rgba(245, 241, 232, 0.9); }
.case-study-dark .body-large { color: rgba(245, 241, 232, 0.85); }
.case-study-dark .body-large .accent { color: var(--brass-warm); font-weight: 500; }
.case-study-dark .case-callout { background: rgba(200, 154, 74, 0.08); border-left-color: var(--brass-warm); }
.case-study-dark .case-callout-label { color: var(--brass-warm); }
.case-study-dark .case-callout-body { color: var(--bone); }

.case-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .case-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.case-sticky {
  position: sticky;
  top: 6rem;
}

@media (max-width: 900px) {
  .case-sticky { position: static; }
}

.case-label {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--oxblood);
  margin-bottom: 1rem;
}

.case-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 2rem;
}

.case-title em {
  font-style: italic;
  color: var(--oxblood);
}

.case-meta-block {
  border-top: 0.5px solid rgba(19, 21, 23, 0.15);
  padding-top: 1.5rem;
}

.case-meta-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 0.5px solid rgba(19, 21, 23, 0.08);
  gap: 2rem;
}

.case-meta-label {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.case-meta-value {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--text);
  text-align: right;
}

.case-body {
  padding-top: 1rem;
}

.case-number-block {
  background: var(--bone);
  padding: 2rem 2.5rem;
  margin: 2rem 0;
  border-left: 2px solid var(--oxblood);
  text-align: left;
}

.case-study-dark .case-number-block {
  background: rgba(245, 241, 232, 0.04);
  border-left-color: var(--brass-warm);
}

.case-number-label {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 0.5rem;
}

.case-number {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 500;
  line-height: 1;
  color: var(--oxblood);
  letter-spacing: -0.02em;
}

.case-number-sub {
  font-family: var(--serif);
  font-size: 14px;
  font-style: italic;
  color: var(--text-soft);
  margin-top: 0.5rem;
}

.case-callout {
  background: rgba(107, 31, 34, 0.06);
  padding: 2rem 2.5rem;
  border-left: 2px solid var(--oxblood);
  margin: 2rem 0;
}

.case-callout-light {
  background: rgba(107, 31, 34, 0.04);
}

.case-callout-label {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--oxblood);
  margin-bottom: 0.75rem;
}

.case-callout-body {
  font-family: var(--serif);
  font-size: 17px;
  font-style: italic;
  line-height: 1.5;
  color: var(--ink);
}

.case-sub-heading {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--ink);
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 0.5px solid rgba(19, 21, 23, 0.15);
}

.case-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.case-list li {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-soft);
  padding-left: 2rem;
  position: relative;
}

.case-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--oxblood);
  font-weight: 500;
}

.case-list strong {
  color: var(--ink);
  font-weight: 500;
}

/* Testimonial */
.testimonial {
  padding: 5rem 0;
  background: var(--bone-warm);
}

.testimonial-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.testimonial-seal {
  display: flex;
  justify-content: center;
  margin-bottom: 2.5rem;
  opacity: 0.85;
}

.testimonial-quote {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-style: italic;
  line-height: 1.45;
  color: var(--ink);
  margin-bottom: 2rem;
  letter-spacing: -0.005em;
}

.testimonial-attrib {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-mute);
}

/* Final CTA */
.cta-final {
  padding: 6.5rem 0;
  background: var(--ink);
  color: var(--bone);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-final::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 900px; height: 900px;
  background: radial-gradient(
    circle,
    rgba(107, 31, 34, 0.1296) 0%,
    rgba(107, 31, 34, 0.0884) 25%,
    rgba(107, 31, 34, 0.049) 50%,
    rgba(107, 31, 34, 0.019) 75%,
    transparent 100%
  );
  transform: translate(-50%, -50%);
  pointer-events: none;
  filter: blur(80px);
  will-change: transform;
}

.cta-final::after {
  content: '';
  position: absolute;
  bottom: -120px; right: -120px;
  width: 650px; height: 650px;
  background: radial-gradient(
    circle,
    rgba(200, 154, 74, 0.0918) 0%,
    rgba(200, 154, 74, 0.063) 25%,
    rgba(200, 154, 74, 0.035) 50%,
    rgba(200, 154, 74, 0.014) 75%,
    transparent 100%
  );
  pointer-events: none;
  filter: blur(80px);
  will-change: transform;
}

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

.cta-final-heading {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.05;
  color: var(--bone);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.cta-final-heading em {
  font-style: italic;
  color: var(--brass-warm);
}

.cta-final-sub {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  font-style: italic;
  color: rgba(245, 241, 232, 0.7);
  margin-bottom: 3rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   ABOUT PAGE
   ========================================================================== */

.history {
  padding: 6.5rem 0;
  background: var(--bone);
}

.history-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .history-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.history-year-col {
  position: sticky;
  top: 6rem;
}

@media (max-width: 900px) {
  .history-year-col { position: static; }
}

.history-year {
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.history-year span {
  color: var(--oxblood);
  margin: 0 4px;
}

.history-year-label {
  font-family: var(--serif);
  font-size: 15px;
  font-style: italic;
  color: var(--text-soft);
  margin-top: 0.5rem;
}

.history-body {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.history-chapter {
  padding-bottom: 3rem;
  border-bottom: 0.5px dashed rgba(19, 21, 23, 0.12);
}

.history-chapter:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.history-chapter-label {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--oxblood);
  margin-bottom: 1rem;
}

/* Values */
.values {
  padding: 6.5rem 0;
  background: var(--ink);
  color: var(--bone);
  position: relative;
  overflow: hidden;
}

.values::before {
  content: '';
  position: absolute;
  top: -120px; left: -80px;
  width: 502px; height: 502px;
  background: radial-gradient(
    circle,
    rgba(107, 31, 34, 0.0832) 0%,
    rgba(107, 31, 34, 0.0567) 25%,
    rgba(107, 31, 34, 0.0315) 50%,
    rgba(107, 31, 34, 0.0126) 75%,
    transparent 100%
  );
  pointer-events: none;
  filter: blur(60px);
  will-change: transform;
}

.values::after {
  content: '';
  position: absolute;
  bottom: -100px; right: -100px;
  width: 435px; height: 435px;
  background: radial-gradient(
    circle,
    rgba(200, 154, 74, 0.0605) 0%,
    rgba(200, 154, 74, 0.0413) 25%,
    rgba(200, 154, 74, 0.0224) 50%,
    rgba(200, 154, 74, 0.0091) 75%,
    transparent 100%
  );
  pointer-events: none;
  filter: blur(60px);
  will-change: transform;
}

.values .container { position: relative; z-index: 1; }
.values .section-meta { border-bottom-color: rgba(245, 241, 232, 0.15); }
.values .section-meta-num { color: var(--brass-warm); }
.values .section-meta-label { color: rgba(245, 241, 232, 0.78); }
.values .section-heading { color: var(--bone); }
.values .section-heading em { color: var(--brass-warm); }

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}

@media (max-width: 900px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .values-grid { grid-template-columns: 1fr; } }

.value-card {
  background: rgba(245, 241, 232, 0.03);
  padding: 2.5rem 2rem;
  border: 0.5px solid rgba(245, 241, 232, 0.12);
  text-align: center;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.4s var(--ease-out), background 0.4s var(--ease-out);
}

.value-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.5);
  border-color: rgba(200, 154, 74, 0.3);
  background: rgba(245, 241, 232, 0.05);
}

.value-icon {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--brass-warm);
  margin-bottom: 1rem;
  font-weight: 500;
}

.value-title {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
  font-variant: small-caps;
  letter-spacing: 0.08em;
  color: var(--bone);
  margin-bottom: 1rem;
}

.value-body {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.55;
  color: rgba(245, 241, 232, 0.78);
}

/* Team */
.team {
  padding: 6.5rem 0;
  background: var(--bone);
}

.team-list {
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.team-member {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--bone-warm);
  border: 0.5px solid rgba(19, 21, 23, 0.1);
  transition: border-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.team-member:hover {
  border-color: rgba(107, 31, 34, 0.3);
  box-shadow: 0 20px 40px -24px rgba(19, 21, 23, 0.2);
}

/* Photo variant of the monogram disc — same dimensions, photo instead of initials */
/* ============================================================
   Option C — Inline disc header (no left column)
   Single-column card with small disc beside name/title at top
   ============================================================ */
.team-member-c {
  display: block;
}

.team-member-c .team-member-body {
  padding: 2.5rem 2.75rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.tm-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 0.5px solid rgba(19, 21, 23, 0.12);
}

.tm-header-disc {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  box-shadow:
    0 2px 8px rgba(19, 21, 23, 0.15),
    0 0 0 0.5px rgba(19, 21, 23, 0.1);
  transition: transform 0.6s var(--ease-out);
}

.team-member-c:hover .tm-header-disc {
  transform: scale(1.04);
}

/* Photo disc variant */
.tm-disc-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  filter: grayscale(100%) contrast(1.05) brightness(0.98);
  display: block;
}

/* Initials disc variant */
.tm-disc-initials {
  background: radial-gradient(circle at 32% 32%, #8C2A2E 0%, #6B1F22 55%, #4A1517 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.1),
    inset 0 -1px 3px rgba(0, 0, 0, 0.35),
    0 2px 8px rgba(19, 21, 23, 0.15),
    0 0 0 0.5px rgba(139, 111, 42, 0.18);
}

.tm-disc-initials span {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--bone);
  font-variant: small-caps;
  line-height: 1;
  padding-top: 1px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.tm-header-text {
  flex: 1;
  min-width: 0;
}

.team-member-c .team-member-label {
  margin-bottom: 0.4rem;
}

.team-member-c .team-member-name {
  margin-bottom: 0.35rem;
}

.team-member-c .team-member-role {
  margin-bottom: 0;
}

.team-member-c .team-member-bio:first-of-type {
  margin-top: 0;
}

@media (max-width: 640px) {
  .team-member-c .team-member-body { padding: 2rem 1.75rem; }
  .tm-header { gap: 1.25rem; margin-bottom: 1.5rem; padding-bottom: 1.25rem; }
  .tm-header-disc { width: 60px; height: 60px; }
  .tm-disc-initials span { font-size: 20px; }
}

.team-member-body {
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.team-member-label {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--oxblood);
  margin-bottom: 0.5rem;
}

.team-member-name {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.005em;
  font-variant: small-caps;
}

.team-member-role {
  font-family: var(--serif);
  font-size: 14px;
  font-style: italic;
  color: var(--oxblood);
  margin-bottom: 1.25rem;
  letter-spacing: 0.005em;
}

.team-member-bio {
  font-family: var(--serif);
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text-soft);
  margin-bottom: 1.5rem;
}

.team-member-meta {
  padding-top: 1.25rem;
  border-top: 0.5px solid rgba(19, 21, 23, 0.12);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tmm-row {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  font-family: var(--serif);
  font-size: 14px;
}

.tmm-row span:first-child {
  color: var(--text-mute);
  font-variant: small-caps;
  letter-spacing: 0.1em;
  font-size: 13px;
}

.tmm-row span:last-child {
  color: var(--text);
  text-align: right;
}

.team-footer {
  margin-top: 3rem;
  text-align: center;
  font-family: var(--serif);
  font-size: 15px;
  font-style: italic;
  color: var(--text-soft);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   TEAM BUSINESS CARD DECK
   Scaled-down Pierce & Pierce cards — click to flip, same DNA as home pcard
   ========================================================================== */

.team-cards-deck {
  margin-top: 5rem;
  padding-top: 3.5rem;
  border-top: 0.5px solid rgba(19, 21, 23, 0.12);
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.team-cards-deck-label {
  font-family: var(--serif);
  font-size: 13px;
  font-variant: small-caps;
  letter-spacing: 0.22em;
  color: var(--text-mute);
  text-align: center;
  margin-bottom: 2.25rem;
}

.team-cards-deck-label em {
  font-style: italic;
  color: var(--oxblood);
}

/* Desktop default: 3 on top, 2 centered below. 5-across feels cramped and
   lists-like for five cards — 3+2 with a centered second row has more
   editorial presence and gives each card room to breathe. */
.team-cards-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2rem 1.75rem;
  justify-content: center;
  justify-items: center;
  max-width: 1400px;
  margin: 0 auto;
}
.team-cards-grid .tcard-flipper:nth-child(-n+3) {
  grid-column: span 2;
}
.team-cards-grid .tcard-flipper:nth-child(4) {
  grid-column: 2 / span 2;
}
.team-cards-grid .tcard-flipper:nth-child(5) {
  grid-column: 4 / span 2;
}

/* Tablet zone — 2 on top, 2 middle, 1 centered */
@media (max-width: 999px) {
  .team-cards-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .team-cards-grid .tcard-flipper:nth-child(-n+4) {
    grid-column: span 2;
  }
  .team-cards-grid .tcard-flipper:nth-child(5) {
    grid-column: 2 / span 2;
  }
}

/* Mobile — single column */
@media (max-width: 699px) {
  .team-cards-grid {
    grid-template-columns: 1fr;
  }
  .team-cards-grid .tcard-flipper,
  .team-cards-grid .tcard-flipper:nth-child(n) {
    grid-column: auto;
  }
}

.team-cards-grid .tcard-flipper {
  width: 100%;
  max-width: 400px;
}

/* Card container */
.tcard-flipper {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 1.72 / 1;
  perspective: 1500px;
  cursor: pointer;
  transition: transform 0.45s var(--ease-out);
}

.tcard-flipper:hover {
  transform: translateY(-4px);
}

.tcard {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.85s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tcard-flipper.is-flipped .tcard {
  transform: rotateY(180deg);
}

.tcard-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: #EFE9D8; /* bone-warm */
  color: #1A1614;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.2),
    0 18px 36px -18px rgba(0, 0, 0, 0.45),
    0 8px 14px -10px rgba(0, 0, 0, 0.35);
  font-family: var(--serif);
  overflow: hidden;
}

.tcard-face::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 15%, rgba(139, 111, 42, 0.05) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 90%, rgba(107, 31, 34, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.tcard-front { padding: 10px 18px; }

.tcard-back {
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #EFE9D8;
}

/* FRONT composition */
.tcf-phone {
  position: absolute;
  top: 10px;
  left: 18px;
  font-size: 9.5px;
  letter-spacing: 0.04em;
  color: #1A1614;
}

.tcf-firm {
  position: absolute;
  top: 10px;
  right: 18px;
  text-align: right;
}

.tcf-firm-name {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.1325em;
  color: #1A1614;
  font-variant: small-caps;
  line-height: 1;
}

.tcf-firm-sub {
  font-size: 7px;
  font-style: italic;
  color: rgba(26, 22, 20, 0.65);
  margin-top: 2px;
  letter-spacing: 0.01em;
}

.tcf-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 0 1rem;
  text-align: center;
}

.tcf-name {
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #1A1614;
  font-variant: small-caps;
  line-height: 1.1;
}

.tcf-title {
  font-size: 8.5px;
  font-variant: small-caps;
  letter-spacing: 0.08em;
  color: rgba(26, 22, 20, 0.62);
  margin-bottom: 4px;
  line-height: 1.2;
}

.tcf-seal {
  line-height: 0;
  opacity: 0.8;
}

.tcf-bottom {
  position: absolute;
  bottom: 10px;
  left: 18px;
  right: 18px;
  font-size: 7.5px;
  font-variant: small-caps;
  letter-spacing: 0.08em;
  color: rgba(26, 22, 20, 0.6);
  text-align: center;
  line-height: 1.2;
}

/* BACK composition */
.tcb-wordmark {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #1A1614;
  font-variant: small-caps;
}

.tcb-est {
  font-size: 9px;
  font-style: italic;
  color: rgba(26, 22, 20, 0.6);
  letter-spacing: 0.02em;
}

.tcb-link {
  margin-top: 6px;
  font-size: 8.5px;
  color: var(--oxblood);
  text-decoration: none;
  letter-spacing: 0.04em;
  border-bottom: 0.5px solid rgba(107, 31, 34, 0.3);
  padding-bottom: 1px;
}

.tcb-link:hover {
  border-bottom-color: var(--oxblood);
}

@media (max-width: 520px) {
  .tcard-flipper { max-width: 320px; }
  .tcf-name { font-size: 12.5px; }
  .tcf-title { font-size: 8px; }
  .tcf-bottom { font-size: 7px; }
}

/* Family closing */
.family {
  padding: 6.5rem 0;
  background: var(--bone-warm);
  text-align: center;
}

.family-inner {
  max-width: 720px;
  margin: 0 auto;
}

.family-seal {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.family-body {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-style: italic;
  line-height: 1.5;
  color: var(--ink);
  margin-top: 1.5rem;
}

/* ==========================================================================
   CONTACT PAGE
   ========================================================================== */

.contact-page {
  padding: 6rem 0 8rem;
  background: var(--bone);
}

.contact-page-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .contact-page-grid { grid-template-columns: 1fr; gap: 3rem; }
}

.contact-page-direct {
  position: sticky;
  top: 6rem;
}

@media (max-width: 900px) {
  .contact-page-direct { position: static; }
}

.contact-page-heading {
  margin-bottom: 2rem;
}

.contact-page-label {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--oxblood);
  margin-bottom: 1rem;
}

.contact-page-firm {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 2.8vw, 2.25rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 1rem;
  letter-spacing: -0.005em;
}

.contact-page-sub {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-soft);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 1rem 1.25rem;
  background: var(--bone-warm);
  border-left: 2px solid transparent;
  transition: border-color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.contact-detail:hover {
  border-left-color: var(--oxblood);
  transform: translateX(4px);
}

.contact-detail-label {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.contact-detail-value {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink);
}

.contact-section-rule {
  height: 1px;
  background: rgba(19, 21, 23, 0.1);
  margin: 2rem 0;
}

/* Contact form */
.contact-form-large {
  padding: 3rem 2.5rem;
}

.form-intro {
  font-family: var(--serif);
  font-size: 14px;
  font-style: italic;
  color: var(--text-soft);
  margin-bottom: 2rem;
  line-height: 1.5;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 600px) {
  .field-row { grid-template-columns: 1fr; }
}

.field select {
  width: 100%;
  background: transparent;
  border: none;
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink);
  padding: 8px 0;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none' stroke='%23131517' stroke-width='1'><path d='M1 1 L5 5 L9 1'/></svg>");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 24px;
}

.form-disclaimer {
  margin-top: 1.5rem;
  font-family: var(--serif);
  font-size: 14px;
  font-style: italic;
  color: var(--text-mute);
  line-height: 1.5;
}

/* FAQ */
.faq {
  padding: 6.5rem 0;
  background: var(--bone-warm);
}

.faq-list {
  max-width: 820px;
  margin: 3rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 0.5px solid rgba(19, 21, 23, 0.15);
}

.faq-item:first-child {
  border-top: 0.5px solid rgba(19, 21, 23, 0.15);
}

.faq-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.75rem 0;
  cursor: pointer;
  list-style: none;
  transition: color 0.3s var(--ease-out);
  gap: 2rem;
}

.faq-summary::-webkit-details-marker { display: none; }

.faq-summary span:first-child {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
}

.faq-toggle {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  color: var(--oxblood);
  transition: transform 0.4s var(--ease-power), color 0.4s var(--ease-out);
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  line-height: 1;
  /* Scalloped wax seal outline (closed state) */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-100 -100 200 200'><path d='M -12.7 -77.3 Q 0.0 -84.8 12.9 -77.8 Q 25.8 -70.8 40.2 -67.9 Q 54.6 -65.1 59.7 -51.2 Q 64.7 -37.4 75.2 -26.2 Q 85.7 -15.1 79.7 -1.1 Q 73.6 13.0 73.8 27.8 Q 74.0 42.7 60.6 49.5 Q 47.3 56.3 38.5 68.9 Q 29.6 81.4 14.8 78.4 Q 0.0 75.4 -14.8 78.3 Q -29.6 81.3 -38.6 69.0 Q -47.6 56.8 -60.9 49.8 Q -74.2 42.8 -73.4 27.8 Q -72.6 12.8 -79.0 -1.1 Q -85.3 -15.0 -74.6 -26.0 Q -63.9 -36.9 -59.6 -51.4 Q -55.3 -66.0 -40.4 -67.9 Q -25.4 -69.9 -12.7 -77.3 Z' fill='none' stroke='%236B1F22' stroke-opacity='0.4' stroke-width='2'/></svg>");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.faq-item[open] .faq-toggle {
  transform: rotate(45deg);
  color: var(--bone);
  /* Filled wax seal (open state) */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-100 -100 200 200'><path d='M -12.7 -77.3 Q 0.0 -84.8 12.9 -77.8 Q 25.8 -70.8 40.2 -67.9 Q 54.6 -65.1 59.7 -51.2 Q 64.7 -37.4 75.2 -26.2 Q 85.7 -15.1 79.7 -1.1 Q 73.6 13.0 73.8 27.8 Q 74.0 42.7 60.6 49.5 Q 47.3 56.3 38.5 68.9 Q 29.6 81.4 14.8 78.4 Q 0.0 75.4 -14.8 78.3 Q -29.6 81.3 -38.6 69.0 Q -47.6 56.8 -60.9 49.8 Q -74.2 42.8 -73.4 27.8 Q -72.6 12.8 -79.0 -1.1 Q -85.3 -15.0 -74.6 -26.0 Q -63.9 -36.9 -59.6 -51.4 Q -55.3 -66.0 -40.4 -67.9 Q -25.4 -69.9 -12.7 -77.3 Z' fill='%236B1F22'/></svg>");
}

.faq-item[open] .faq-summary {
  color: var(--oxblood);
}

.faq-body {
  padding: 0 0 2rem;
  animation: faq-slide 0.4s var(--ease-out);
}

.faq-body p {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-soft);
  max-width: 680px;
}

@keyframes faq-slide {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   AUDIT TIERS (approach page)
   ========================================================================== */

.audit-tiers {
  padding: 6.5rem 0;
  background: var(--bone);
}

.tier-intro {
  margin-top: 1.5rem;
  color: var(--text-soft);
}

.tier-card {
  background: var(--bone);
  border: 0.5px solid rgba(19, 21, 23, 0.12);
  padding: 2.5rem 2rem;
  margin-bottom: 1.25rem;
  position: relative;
  border-left: 3px solid var(--text-mute);
  transition: border-left-color 0.4s var(--ease-out), transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.tier-card:hover {
  transform: translateX(4px);
  box-shadow: 0 20px 40px -24px rgba(19, 21, 23, 0.2);
}

.tier-card-accent {
  border-left-color: var(--oxblood);
}

.tier-card-deep {
  border-left-color: var(--brass);
}

.tier-num {
  font-family: var(--serif);
  font-size: 13px;
  font-variant: small-caps;
  letter-spacing: 0.3em;
  color: var(--oxblood);
  font-weight: 600;
  margin-bottom: 1rem;
}

.tier-card-deep .tier-num { color: var(--brass); }

.tier-title {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 1rem;
  line-height: 1.25;
  letter-spacing: -0.005em;
}

.tier-body {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-soft);
  margin-bottom: 1rem;
}

.tier-scope {
  padding-top: 1rem;
  border-top: 0.5px solid rgba(19, 21, 23, 0.1);
  font-family: var(--serif);
  font-size: 14px;
  font-style: italic;
  color: var(--text-mute);
}

.tier-scope strong {
  color: var(--ink);
  font-weight: 500;
  font-style: normal;
}

.tier-card-accent .tier-scope strong { color: var(--oxblood); }
.tier-card-deep .tier-scope strong { color: var(--brass); }

.tier-closer {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.65;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 0.5px dashed rgba(19, 21, 23, 0.15);
  font-style: italic;
  color: var(--text);
}

/* ==========================================================================
   DATA & SECURITY (approach page)
   ========================================================================== */

.data-security {
  padding: 6.5rem 0;
  background: var(--bone);
}

.security-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .security-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.security-lead {
  position: sticky;
  top: 6rem;
}

@media (max-width: 900px) {
  .security-lead { position: static; }
}

.security-body {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.security-block {
  padding: 1.75rem 0;
  border-bottom: 0.5px dashed rgba(19, 21, 23, 0.12);
}

.security-block:first-child {
  padding-top: 0;
}

.security-block:last-child {
  border-bottom: none;
}

.security-block-heading {
  font-family: var(--serif);
  font-size: 13px;
  font-variant: small-caps;
  letter-spacing: 0.25em;
  color: var(--oxblood);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.security-block-body {
  font-family: var(--serif);
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text);
}

/* ==========================================================================
   BEYOND THE RECOVERY (homepage section IV - bone-warm, three-column benefits)
   ========================================================================== */

.beyond-recovery {
  padding: var(--section-pad) 0;
  background: var(--bone-warm);
}

.br-heading {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text);
  letter-spacing: -0.01em;
  text-align: center;
  margin: 2rem auto 4rem;
  max-width: 820px;
}

.br-heading em {
  font-style: italic;
  color: var(--oxblood);
}

.br-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  max-width: 1080px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .br-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }
}

.br-item {
  text-align: center;
  padding: 0 0.5rem;
}

.br-label {
  font-family: var(--serif);
  font-size: 14px;
  font-variant: small-caps;
  letter-spacing: 0.22em;
  color: var(--oxblood);
  font-weight: 600;
  margin-bottom: 1rem;
}

.br-body {
  font-family: var(--serif);
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text-soft);
}

/* ==========================================================================
   DARK CLIENTS WALL
   ========================================================================== */

.clients-dark {
  background: var(--ink);
  color: var(--bone);
  position: relative;
  overflow: hidden;
}

.clients-dark::before {
  content: '';
  position: absolute;
  top: 20%; left: 50%;
  width: 603px; height: 603px;
  transform: translateX(-50%);
  background: radial-gradient(
    circle,
    rgba(107, 31, 34, 0.0832) 0%,
    rgba(107, 31, 34, 0.0567) 25%,
    rgba(107, 31, 34, 0.0302) 50%,
    rgba(107, 31, 34, 0.0113) 75%,
    transparent 100%
  );
  pointer-events: none;
  filter: blur(67px);
  will-change: transform;
}

.clients-dark::after {
  content: '';
  position: absolute;
  bottom: -100px; right: -150px;
  width: 435px; height: 435px;
  background: radial-gradient(
    circle,
    rgba(200, 154, 74, 0.0491) 0%,
    rgba(200, 154, 74, 0.0340) 25%,
    rgba(200, 154, 74, 0.0189) 50%,
    rgba(200, 154, 74, 0.0076) 75%,
    transparent 100%
  );
  pointer-events: none;
  filter: blur(60px);
  will-change: transform;
}

.clients-dark .section-meta { border-bottom-color: rgba(245, 241, 232, 0.15); }
.clients-dark .section-meta-num { color: var(--brass-warm); }
.clients-dark .section-meta-label { color: rgba(245, 241, 232, 0.78); }
.clients-dark .section-heading { color: var(--bone); }
.clients-dark .section-heading em { color: var(--brass-warm); }
.clients-dark .section-sub { color: rgba(245, 241, 232, 0.65); }
.clients-dark .client-footer-note { color: rgba(245, 241, 232, 0.78); }
.clients-dark .container { position: relative; z-index: 1; }

.client-wall-dark {
  border-top: 0.5px solid rgba(245, 241, 232, 0.2);
  border-left: 0.5px solid rgba(245, 241, 232, 0.2);
}

.client-wall-dark .client-name {
  color: var(--bone);
  border-right-color: rgba(245, 241, 232, 0.2);
  border-bottom-color: rgba(245, 241, 232, 0.2);
  font-size: 14px;
  line-height: 1.4;
  padding: 2.5rem 1.25rem;
  letter-spacing: 0.08em;
}

.client-wall-dark .client-name::before {
  background: var(--brass-warm);
}

.client-wall-dark .client-name:hover {
  color: var(--ink);
}

/* ==========================================================================
   COMPOUNDING VALUE (dark section, home)
   ========================================================================== */

.compounding {
  padding: 6.5rem 0;
  background: var(--ink);
  color: var(--bone);
  position: relative;
  overflow: hidden;
}

.compounding::before {
  content: '';
  position: absolute;
  top: 30%; right: -100px;
  width: 469px; height: 469px;
  background: radial-gradient(
    circle,
    rgba(200, 154, 74, 0.0643) 0%,
    rgba(200, 154, 74, 0.0416) 25%,
    rgba(200, 154, 74, 0.0227) 50%,
    rgba(200, 154, 74, 0.0088) 75%,
    transparent 100%
  );
  pointer-events: none;
  filter: blur(60px);
  will-change: transform;
}

.compounding::after {
  content: '';
  position: absolute;
  bottom: 10%; left: -100px;
  width: 402px; height: 402px;
  background: radial-gradient(
    circle,
    rgba(107, 31, 34, 0.0643) 0%,
    rgba(107, 31, 34, 0.0416) 25%,
    rgba(107, 31, 34, 0.0227) 50%,
    rgba(107, 31, 34, 0.0088) 75%,
    transparent 100%
  );
  pointer-events: none;
  filter: blur(60px);
  will-change: transform;
}

.compounding-inner {
  max-width: 1080px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.compounding .section-meta { border-bottom-color: rgba(245, 241, 232, 0.15); }
.compounding .section-meta-num { color: var(--brass-warm); }
.compounding .section-meta-label { color: rgba(245, 241, 232, 0.78); }

.compounding-heading {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--bone);
  letter-spacing: -0.01em;
  text-align: center;
  margin-bottom: 4rem;
}

.compounding-heading em {
  font-style: italic;
  color: var(--brass-warm);
}

.compounding-math {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 3.5rem;
}

@media (max-width: 900px) {
  .compounding-math {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .cm-arrow {
    transform: rotate(90deg);
    justify-self: center;
  }
}

.cm-step {
  background: rgba(245, 241, 232, 0.04);
  border: 0.5px solid rgba(245, 241, 232, 0.15);
  padding: 2rem 1.75rem;
  border-left: 2px solid var(--brass-warm);
  min-height: 180px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cm-step-label {
  font-family: var(--serif);
  font-size: 12.5px;
  font-variant: small-caps;
  letter-spacing: 0.3em;
  color: var(--brass-warm);
  font-weight: 600;
}

.cm-step-body {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.55;
  color: rgba(245, 241, 232, 0.9);
}

.cm-step-body .accent {
  color: var(--brass-warm);
  font-weight: 500;
}

.cm-arrow {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--brass-warm);
  opacity: 0.6;
  font-weight: 300;
}

.compounding-closer {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  font-style: italic;
  line-height: 1.55;
  color: rgba(245, 241, 232, 0.88);
  text-align: center;
  max-width: 980px;
  margin: 0 auto;
  padding-top: 3rem;
  border-top: 0.5px solid rgba(245, 241, 232, 0.15);
}

/* ==========================================================================
   CASE STUDY STATS (inside story section)
   ========================================================================== */

.case-study-stats {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 1.25rem;
  margin: 2.5rem 0;
  padding: 2rem 0;
  border-top: 0.5px solid rgba(19, 21, 23, 0.15);
  border-bottom: 0.5px solid rgba(19, 21, 23, 0.15);
}

@media (max-width: 700px) {
  .case-study-stats { grid-template-columns: 1fr; }
  .csu-label { white-space: normal; }
}

.csu-stat {
  text-align: center;
  padding: 0.5rem;
}

.csu-label {
  font-family: var(--serif);
  font-size: 14px;
  font-variant: small-caps;
  letter-spacing: 0.13em;
  color: var(--text-mute);
  font-weight: 500;
  margin-bottom: 1rem;
  min-height: 2.6em;
  white-space: nowrap;
}

.csu-value {
  font-family: var(--serif);
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: 500;
  color: var(--oxblood);
  line-height: 1;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.csu-arrow {
  display: inline-flex;
  align-items: center;
  color: var(--oxblood);
  vertical-align: 0.05em;
  margin-right: 0.2em;
}

.csu-note {
  font-family: var(--serif);
  font-size: 14.5px;
  font-style: italic;
  color: var(--text-mute);
  margin-top: 0.75rem;
}

.case-study-caveat {
  font-family: var(--serif);
  font-size: 14px;
  font-style: italic;
  color: var(--text-mute);
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 0.5px dashed rgba(19, 21, 23, 0.15);
  text-align: right;
}

.case-study-track-record {
  font-family: var(--serif);
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  font-style: italic;
  line-height: 1.55;
  color: var(--text-mute);
  margin: 0.25rem 0 2rem;
  max-width: 720px;
  letter-spacing: 0.005em;
}

.case-study-track-record strong {
  font-style: normal;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.02em;
}

/* ==========================================================================
   WORK REACH — sector grid replacing the 20-tile client wall on Work page
   (Keeps breadth signal without repeating home Section VII)
   ========================================================================== */

.work-reach { padding: 7rem 0; }

.work-reach-sectors {
  max-width: 1040px;
  margin: 3.5rem auto 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 3rem;
  row-gap: 0;
}

.work-reach-sector {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.1rem 1rem;
  border-bottom: 0.5px solid rgba(245, 241, 232, 0.14);
  transition: color 0.3s ease;
  text-align: center;
}

/* Remove the bottom border on the last row of each column so the list
   doesn't close itself off with a line */
.work-reach-sector:nth-last-child(-n+2) {
  border-bottom: none;
}

.work-reach-sector:hover {
  color: var(--brass-warm);
}

.wrs-label {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: inherit;
  letter-spacing: 0.005em;
  line-height: 1.35;
}

@media (max-width: 680px) {
  .work-reach-sectors { grid-template-columns: 1fr; column-gap: 0; }
  /* On mobile (single column), only the last item gets no border */
  .work-reach-sector:nth-last-child(-n+2) { border-bottom: 0.5px solid rgba(245, 241, 232, 0.14); }
  .work-reach-sector:last-child { border-bottom: none; }
}
/* ==========================================================================
   PRINCIPAL COMPACT (dark variant, smaller circular photo)
   ========================================================================== */

.principal-dark {
  background: var(--ink);
  color: var(--bone);
  position: relative;
  overflow: hidden;
}

.principal-dark::before {
  content: '';
  position: absolute;
  top: -150px; left: 15%;
  width: 569px; height: 569px;
  background: radial-gradient(
    circle,
    rgba(107, 31, 34, 0.0907) 0%,
    rgba(107, 31, 34, 0.0605) 25%,
    rgba(107, 31, 34, 0.0340) 50%,
    rgba(107, 31, 34, 0.0132) 75%,
    transparent 100%
  );
  pointer-events: none;
  filter: blur(56px);
  will-change: transform;
}

.principal-dark::after {
  content: '';
  position: absolute;
  bottom: -100px; right: -100px;
  width: 469px; height: 469px;
  background: radial-gradient(
    circle,
    rgba(200, 154, 74, 0.0529) 0%,
    rgba(200, 154, 74, 0.0359) 25%,
    rgba(200, 154, 74, 0.0189) 50%,
    rgba(200, 154, 74, 0.0076) 75%,
    transparent 100%
  );
  pointer-events: none;
  filter: blur(60px);
  will-change: transform;
}

.principal-dark .section-meta-num { color: var(--brass-warm); }
.principal-dark .section-meta-label { color: rgba(245, 241, 232, 0.78); }
.principal-dark .section-meta { border-bottom-color: rgba(245, 241, 232, 0.15); }

.principal-dark .link-arrow {
  color: var(--brass-warm);
}

.principal-dark .link-arrow::after {
  background: var(--brass-warm);
}

/* ==========================================================================
   MANIFESTO DARK (ink variant, for rhythm)
   ========================================================================== */

/* ==========================================================================
   MARGIN PROTECTION (ink section - without/with comparison)
   ========================================================================== */

.margin-protect {
  padding: 6.5rem 0;
  background: var(--ink);
  color: var(--bone);
  position: relative;
  overflow: hidden;
}

.margin-protect::before {
  content: '';
  position: absolute;
  top: 10%; right: -100px;
  width: 469px; height: 469px;
  background: radial-gradient(
    circle,
    rgba(107, 31, 34, 0.0680) 0%,
    rgba(107, 31, 34, 0.0491) 25%,
    rgba(107, 31, 34, 0.0284) 50%,
    rgba(107, 31, 34, 0.0113) 75%,
    transparent 100%
  );
  pointer-events: none;
  filter: blur(52px);
  will-change: transform;
}

.margin-protect::after {
  content: '';
  position: absolute;
  bottom: 10%; left: -100px;
  width: 435px; height: 435px;
  background: radial-gradient(
    circle,
    rgba(200, 154, 74, 0.0454) 0%,
    rgba(200, 154, 74, 0.0454) 25%,
    rgba(200, 154, 74, 0.0170) 50%,
    rgba(200, 154, 74, 0.0063) 75%,
    transparent 100%
  );
  pointer-events: none;
  filter: blur(52px);
  will-change: transform;
}

.margin-protect .container { position: relative; z-index: 1; }
.margin-protect .section-meta { border-bottom-color: rgba(245, 241, 232, 0.15); }
.margin-protect .section-meta-num { color: var(--brass-warm); }
.margin-protect .section-meta-label { color: rgba(245, 241, 232, 0.78); }

/* Section I (firm-chapter) also has ink bg — match other dark sections' brass-warm */
.firm-chapter .section-meta-num { color: var(--brass-warm); }
.firm-chapter .section-meta-label { color: rgba(245, 241, 232, 0.78); }
.firm-chapter .section-meta { border-bottom-color: rgba(245, 241, 232, 0.15); }

.margin-header {
  max-width: 820px;
  margin: 0 auto 4rem;
  text-align: center;
}

.margin-header .section-heading {
  color: var(--bone);
}

.margin-header .section-heading em {
  color: var(--brass-warm);
  font-style: italic;
}

.margin-intro {
  max-width: 720px;
  margin: 1.5rem auto 0;
  color: rgba(245, 241, 232, 0.8);
}

.margin-compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2.5rem;
  align-items: stretch;
  max-width: 1080px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .margin-compare {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .margin-divider { display: none; }
}

.margin-scenario {
  padding: 2.75rem 2.25rem;
  background: rgba(245, 241, 232, 0.04);
  border: 0.5px solid rgba(245, 241, 232, 0.15);
  position: relative;
}

.margin-without {
  border-left: 2px solid rgba(245, 241, 232, 0.22);
}

.margin-with {
  border-left: 2px solid var(--brass-warm);
}

.margin-scenario-label {
  font-family: var(--serif);
  font-size: 14px;
  font-variant: small-caps;
  letter-spacing: 0.28em;
  font-weight: 600;
  margin-bottom: 1rem;
  color: rgba(245, 241, 232, 0.7);
}

.margin-with .margin-scenario-label {
  color: var(--brass-warm);
}

.margin-scenario-title {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 500;
  color: var(--bone);
  margin-bottom: 1.75rem;
  line-height: 1.15;
  letter-spacing: -0.005em;
}

.margin-without .margin-scenario-title {
  color: rgba(245, 241, 232, 0.7);
}

.margin-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.margin-list li {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.5;
  color: rgba(245, 241, 232, 0.85);
  padding-left: 1.5rem;
  position: relative;
}

.margin-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--brass-warm);
  font-weight: 500;
}

.margin-without .margin-list li::before {
  color: rgba(245, 241, 232, 0.35);
}

.margin-divider {
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(200, 154, 74, 0.3), transparent);
  position: relative;
}

.margin-divider::before {
  content: '→';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--serif);
  font-size: 24px;
  color: var(--brass-warm);
  background: var(--ink);
  padding: 8px 0;
}

.margin-caption {
  text-align: center;
  margin-top: 3rem;
  font-family: var(--serif);
  font-size: 14px;
  font-style: italic;
  color: rgba(245, 241, 232, 0.76);
  letter-spacing: 0.01em;
}

/* ==========================================================================
   CONTACT SIMPLE (homepage final contact - two big blocks)
   ========================================================================== */

.contact {
  background: var(--bone-warm);
}

.contact-intro {
  max-width: 640px;
  margin: 1.5rem auto 3rem;
  text-align: center;
  font-family: var(--serif);
  font-size: 16px;
  font-style: italic;
  color: var(--text-soft);
  line-height: 1.55;
}

.contact-grid-simple {
  grid-template-columns: 0.9fr 1.1fr;
}

@media (max-width: 900px) {
  .contact-grid-simple { grid-template-columns: 1fr; }
}

.contact-direct-simple {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-big {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 2rem 2rem;
  background: var(--bone);
  border: 0.5px solid rgba(19, 21, 23, 0.12);
  border-left: 3px solid transparent;
  transition: border-left-color 0.4s var(--ease-out), transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.contact-big:hover {
  border-left-color: var(--oxblood);
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -24px rgba(19, 21, 23, 0.2);
}

.contact-big-label {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.contact-big-value {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
  line-height: 1.1;
}

.contact-big:hover .contact-big-value {
  color: var(--oxblood);
}

/* ==========================================================================
   SECTION I — FIRM CHAPTER (editorial composition)
   ========================================================================== */

.firm-chapter {
  padding: var(--section-pad-lg) 0 var(--section-pad-lg);
  background: var(--ink);
  color: var(--bone);
  position: relative;
  overflow: hidden;
}

.firm-chapter::before {
  content: '';
  position: absolute;
  top: -200px; left: -100px;
  width: 536px; height: 536px;
  background: radial-gradient(
    circle,
    rgba(107, 31, 34, 0.0832) 0%,
    rgba(107, 31, 34, 0.0567) 20%,
    rgba(107, 31, 34, 0.0529) 40%,
    rgba(107, 31, 34, 0.0170) 60%,
    rgba(107, 31, 34, 0.0057) 80%,
    transparent 100%
  );
  pointer-events: none;
  filter: blur(60px);
  will-change: transform;
}

.firm-chapter::after {
  content: '';
  position: absolute;
  bottom: -100px; right: -150px;
  width: 502px; height: 502px;
  background: radial-gradient(
    circle,
    rgba(200, 154, 74, 0.0454) 0%,
    rgba(200, 154, 74, 0.0454) 25%,
    rgba(200, 154, 74, 0.0170) 50%,
    rgba(200, 154, 74, 0.0063) 75%,
    transparent 100%
  );
  pointer-events: none;
  filter: blur(60px);
  will-change: transform;
}

.firm-chapter .container {
  position: relative;
  z-index: 2;
}

/* Giant display numeral - design element bleeding into composition */
.firm-numeral {
  position: absolute;
  top: 6rem;
  right: -3rem;
  font-family: var(--serif);
  font-size: clamp(18rem, 38vw, 32rem);
  font-weight: 400;
  line-height: 0.8;
  color: rgba(107, 31, 34, 0.08);
  letter-spacing: -0.05em;
  pointer-events: none;
  user-select: none;
  z-index: 1;
  font-variant: normal;
}

@media (max-width: 900px) {
  .firm-numeral {
    top: 2rem;
    right: -1rem;
    font-size: clamp(12rem, 40vw, 20rem);
  }
}

/* Chapter eyebrow removed — Section I now uses standard section-meta */

/* Oversized display thesis statement */
.firm-thesis {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: end;
  margin-top: 2rem;
  margin-bottom: 5rem;
  padding-bottom: 4rem;
  border-bottom: 0.5px solid rgba(245, 241, 232, 0.12);
}

@media (max-width: 900px) {
  .firm-thesis {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.firm-thesis-display {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 7vw, 4.75rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--bone);
}

.ftd-line {
  display: block;
}

.ftd-line-deep {
  padding-left: 2.5em;
}

.ftd-line-deep em {
  font-style: italic;
  color: var(--brass-warm);
}

.firm-thesis-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  padding-bottom: 0.5rem;
  border-right: 0.5px solid rgba(200, 154, 74, 0.4);
  padding-right: 2rem;
}

.fta-year {
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: 500;
  color: var(--brass-warm);
  line-height: 1;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}

.fta-note {
  font-family: var(--serif);
  font-size: 14px;
  font-style: italic;
  color: rgba(245, 241, 232, 0.7);
  line-height: 1.4;
  max-width: 180px;
}

@media (max-width: 900px) {
  .firm-thesis-aside {
    align-items: flex-start;
    text-align: left;
    border-right: none;
    border-left: 0.5px solid rgba(200, 154, 74, 0.4);
    padding-right: 0;
    padding-left: 1.5rem;
  }
}

/* Manifesto pull quote with large opening mark */
.firm-manifesto-block {
  position: relative;
  max-width: 900px;
  margin: 0 auto 5rem;
  padding: 0 2rem;
}

.fmb-mark {
  position: absolute;
  top: -3rem;
  left: -0.5rem;
  font-family: var(--serif);
  font-size: clamp(8rem, 14vw, 11rem);
  line-height: 0.8;
  color: rgba(200, 154, 74, 0.22);
  font-weight: 500;
  user-select: none;
  pointer-events: none;
}

.firm-manifesto-text {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.1vw, 1.7rem);
  line-height: 1.45;
  color: var(--bone);
  letter-spacing: -0.003em;
  font-weight: 400;
  position: relative;
  z-index: 1;
}

/* Wide vs deep contrast */
.firm-contrast {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 7rem;
  padding-top: 3rem;
  border-top: 0.5px solid rgba(245, 241, 232, 0.12);
}

@media (max-width: 900px) {
  .firm-contrast {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .firm-contrast-divider { display: none; }
}

.firm-contrast-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.fcc-tag {
  font-family: var(--serif);
  font-size: 13px;
  font-variant: small-caps;
  letter-spacing: 0.3em;
  font-weight: 600;
}

.firm-contrast-wide .fcc-tag { color: rgba(245, 241, 232, 0.72); }
.firm-contrast-deep .fcc-tag { color: var(--brass-warm); }

.fcc-body {
  font-family: var(--serif);
  font-size: 16.5px;
  line-height: 1.6;
  color: rgba(245, 241, 232, 0.82);
  letter-spacing: 0.002em;
}

.firm-contrast-wide .fcc-body { color: rgba(245, 241, 232, 0.78); }

.fcc-accent {
  color: var(--brass-warm);
  font-style: italic;
  font-weight: 500;
}

.firm-contrast-divider {
  width: 1px;
  align-self: stretch;
  background: linear-gradient(to bottom, transparent, rgba(200, 154, 74, 0.35), transparent);
  position: relative;
}

.firm-contrast-divider::before {
  content: '→';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--serif);
  font-size: 22px;
  color: var(--brass-warm);
  background: var(--ink);
  padding: 10px 4px;
}

/* Six principles — integrated with classical numbering */
.firm-principles {
  padding-top: 3rem;
  border-top: 0.5px solid rgba(245, 241, 232, 0.12);
}

.firm-principles-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  margin-bottom: 4rem;
}

.fph-sub {
  font-family: var(--serif);
  font-size: 13px;
  font-variant: small-caps;
  letter-spacing: 0.32em;
  color: var(--brass-warm);
  font-weight: 600;
}

.firm-principles-heading {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--bone);
  letter-spacing: -0.015em;
}

.firm-principles-heading em {
  font-style: italic;
  color: var(--brass-warm);
}

.firm-principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 0.5px solid rgba(245, 241, 232, 0.12);
  border-left: 0.5px solid rgba(245, 241, 232, 0.12);
}

@media (max-width: 900px) { .firm-principles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .firm-principles-grid { grid-template-columns: 1fr; } }

.firm-principle {
  position: relative;
  padding: 2rem 2rem 2rem;
  border-right: 0.5px solid rgba(245, 241, 232, 0.12);
  border-bottom: 0.5px solid rgba(245, 241, 232, 0.12);
  transition: background 0.4s var(--ease-out);
}

.firm-principle::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--brass-warm);
  transition: width 0.6s var(--ease-out);
}

.firm-principle:hover {
  background: rgba(245, 241, 232, 0.03);
}

.firm-principle:hover::before {
  width: 100%;
}

.fp-numeral {
  font-family: var(--serif);
  font-size: 15px;
  font-variant: small-caps;
  letter-spacing: 0.25em;
  color: var(--brass-warm);
  font-weight: 600;
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.fp-numeral::after {
  content: '';
  flex: 1;
  height: 0.5px;
  background: rgba(200, 154, 74, 0.3);
  max-width: 80px;
}

.fp-title {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--bone);
  margin-bottom: 0.9rem;
  line-height: 1.2;
  letter-spacing: -0.005em;
}

.fp-body {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.6;
  color: rgba(245, 241, 232, 0.72);
  letter-spacing: 0.002em;
}

/* Chapter closer */
.firm-closer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 5rem;
}

.fcl-rule {
  width: 80px;
  height: 0.5px;
  background: rgba(200, 154, 74, 0.3);
}

.fcl-mark {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--brass-warm);
  opacity: 0.6;
}

/* ==========================================================================
   SECTION IX — PRINCIPAL (integrated with locked Pierce & Pierce card)
   ========================================================================== */

.pcard-stage {
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1.72 / 1;
  perspective: 1500px;
  cursor: pointer;
}

.pcard {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.pcard-flipped {
  transform: rotateY(180deg);
}

.pcard-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: #EFE9D8; /* bone-warm - matches locked spec */
  color: #1A1614;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.25),
    0 24px 48px -20px rgba(0, 0, 0, 0.65),
    0 12px 20px -12px rgba(0, 0, 0, 0.5);
  font-family: var(--serif);
  overflow: hidden;
}

.pcard-face::before {
  /* subtle paper texture vignette */
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 15%, rgba(139, 111, 42, 0.05) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 90%, rgba(107, 31, 34, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.pcard-front {
  padding: 12px 24px;
}

.pcard-back {
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #EFE9D8;
}

/* FRONT — locked composition from brand phase */
.pcf-phone {
  position: absolute;
  top: 12px;
  left: 24px;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  font-weight: 400;
  color: #1A1614;
}

.pcf-firm {
  position: absolute;
  top: 12px;
  right: 24px;
  text-align: right;
}

.pcf-firm-name {
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.1325em;
  font-variant: small-caps;
  line-height: 1.1;
  color: #1A1614;
}

.pcf-firm-sub {
  font-size: 9px;
  font-weight: 400;
  font-style: italic;
  margin-top: 3px;
  letter-spacing: 0.01em;
  color: #1A1614;
}

.pcf-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.pcf-name {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1;
  font-variant: small-caps;
  color: #1A1614;
}

.pcf-title {
  font-size: 10.5px;
  font-variant: small-caps;
  letter-spacing: 0.08em;
  margin-top: 5px;
  font-weight: 400;
  color: #1A1614;
}

.pcf-seal {
  margin-top: 8px;
  display: flex;
  justify-content: center;
}

.pcf-seal svg {
  width: 38px;
  height: 38px;
}

.pcf-bottom {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.02em;
  font-variant: small-caps;
  font-weight: 400;
  color: #1A1614;
}

/* BACK — large seal monogram */
.pcb-wordmark {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 500;
  font-variant: small-caps;
  letter-spacing: 0.14em;
  color: #1A1614;
  margin-top: 4px;
}

.pcb-est {
  font-family: var(--serif);
  font-size: 9px;
  font-variant: small-caps;
  letter-spacing: 0.28em;
  color: rgba(26, 22, 20, 0.6);
}

/* Action buttons */
.pcard-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 440px;
}

.pca-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0.55rem 0.95rem;
  background: rgba(245, 241, 232, 0.04);
  border: 0.5px solid rgba(245, 241, 232, 0.18);
  color: rgba(245, 241, 232, 0.82);
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: background 0.3s var(--ease-out), border-color 0.3s var(--ease-out), color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
  cursor: pointer;
}

.pca-btn:hover {
  background: rgba(200, 154, 74, 0.1);
  border-color: var(--brass-warm);
  color: var(--brass-warm);
  transform: translateY(-1px);
}

.pca-icon {
  display: inline-flex;
  opacity: 0.85;
}

.pca-btn:hover .pca-icon { opacity: 1; }

/* Case study — forward-looking block */
.story-forward {
  margin: 2rem 0 1.25rem;
  padding: 2rem 0 0;
  border-top: 0.5px solid rgba(19, 21, 23, 0.15);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.sf-eyebrow {
  font-family: var(--serif);
  font-size: 13px;
  font-variant: small-caps;
  letter-spacing: 0.3em;
  color: var(--oxblood);
  font-weight: 600;
}

.sf-body {
  font-family: var(--serif);
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--text);
  letter-spacing: 0.002em;
  max-width: 640px;
}

.sf-body em {
  font-style: italic;
  color: var(--oxblood);
  font-weight: 500;
}

/* ==========================================================================
   PRINCIPAL — EDITORIAL (single-column, portrait top, card below)
   ========================================================================== */

.principal-editorial {
  max-width: 880px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  text-align: center;
}

/* Portrait + name block */
.pe-portrait-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.pe-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--ink-soft);
  box-shadow:
    0 0 0 0.5px rgba(200, 154, 74, 0.3),
    0 0 0 5px rgba(245, 241, 232, 0.03),
    0 0 0 5.5px rgba(200, 154, 74, 0.25),
    0 18px 36px -18px rgba(0, 0, 0, 0.6);
  position: relative;
}

.pe-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
  filter: grayscale(100%) contrast(1.05) brightness(0.95);
  transition: filter 0.8s var(--ease-out), transform 1.2s var(--ease-out);
}

.pe-photo:hover img {
  filter: grayscale(80%) contrast(1.05) brightness(1);
  transform: scale(1.05);
}

.pe-name {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 2.8vw, 2.25rem);
  font-weight: 500;
  font-variant: small-caps;
  letter-spacing: 0.06em;
  color: var(--bone);
  line-height: 1;
  margin: 0;
}

.pe-title-line {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pe-dash {
  width: 28px;
  height: 0.5px;
  background: var(--brass-warm);
  opacity: 0.7;
}

.pe-title {
  font-family: var(--serif);
  font-size: 13px;
  font-variant: small-caps;
  letter-spacing: 0.3em;
  color: var(--brass-warm);
  font-weight: 500;
}

/* Pull-quote */
.pe-quote {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.7vw, 1.35rem);
  font-style: italic;
  line-height: 1.45;
  color: var(--bone);
  letter-spacing: 0.005em;
  margin: 0 auto 1.5rem;
  max-width: 860px;
  position: relative;
}

.pe-quote-mark {
  color: var(--brass-warm);
  font-style: normal;
  font-weight: 500;
  opacity: 0.85;
}

/* Body prose */
.pe-body {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.65;
  color: rgba(245, 241, 232, 0.82);
  letter-spacing: 0.002em;
  margin: 0 auto 1.25rem;
  max-width: 620px;
}

.pe-body em {
  color: var(--brass-warm);
  font-style: italic;
  font-weight: 500;
}

.pe-cta-row {
  margin: 0 0 2.25rem;
}

.pe-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 14px;
  color: var(--brass-warm);
  padding-bottom: 3px;
  border-bottom: 0.5px solid rgba(200, 154, 74, 0.4);
  transition: border-color 0.3s var(--ease-out), gap 0.3s var(--ease-out);
}

.pe-cta em {
  font-style: normal;
  font-size: 16px;
}

.pe-cta:hover {
  border-bottom-color: var(--brass-warm);
  gap: 14px;
}

/* Editorial divider with seal mark */
.pe-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin: 0.5rem auto 2.5rem;
  max-width: 520px;
}

.pe-divider-rule {
  flex: 1;
  height: 0.5px;
  background: linear-gradient(to right, transparent, rgba(200, 154, 74, 0.4), transparent);
}

.pe-divider-mark {
  opacity: 0.75;
  display: inline-flex;
}

/* Card block — centered below */
.pe-card-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

