/* ═══════════════════════════════════════════════════════════════════
   INNER-PAGE STYLES
   Extends styles.css with calmer page-level chrome.
   Loaded after styles.css on services / cases / contact.
   ═══════════════════════════════════════════════════════════════════ */

:root {
  /* Inner pages: fixed paper-on-ink palette, no chapter morph */
  --bg: var(--paper);
  --fg: var(--ink);
}

body { background: var(--bg); color: var(--fg); }

/* Inner pages keep a stable paper-on-ink palette, so the landing-page
   blend-mode (which makes the frame-bar adapt to dark hero backgrounds)
   would just wash everything out. Use the ink color directly. */
.frame-bar,
.frame-corner {
  mix-blend-mode: normal;
  filter: none;
  color: var(--fg);
}

/* ─── Top nav inside the frame ──────────────────────────────────── */
.pnav {
  display: flex; align-items: center; gap: 28px;
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase;
}
.pnav a {
  position: relative;
  padding-bottom: 2px;
  color: var(--fg);
  opacity: 0.8;
  transition: color 0.2s, opacity 0.2s;
}
.pnav a::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(.2,.8,.2,1);
}
.pnav a:hover { color: var(--signal); opacity: 1; }
.pnav a:hover::after { transform: scaleX(1); }
.pnav a.is-active { color: var(--signal); opacity: 1; }
.pnav a.is-active::after { transform: scaleX(1); }

/* Progressively hide nav items on narrower screens */
@media (max-width: 1280px) {
  .pnav a:nth-child(4) { display: none; } /* hide FAQ */
}
@media (max-width: 1100px) {
  .pnav a:nth-child(3) { display: none; } /* hide Manifesto too */
}
@media (max-width: 900px) {
  .pnav { display: none; }
}

/* ─── Page-level layout ─────────────────────────────────────────── */
.page {
  padding-top: calc(var(--frame) + 80px);
}

.page-hero {
  padding: 8vh 6vw 12vh;
  border-bottom: 1px solid var(--rule);
}
.page-hero .eyebrow { margin-bottom: 28px; }
.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(64px, 12vw, 200px);
  line-height: 0.88;
  letter-spacing: -0.04em;
  font-weight: 400;
  max-width: 18ch;
}
.page-hero h1 em { color: var(--signal); }
.page-hero .lede {
  font-family: var(--serif);
  font-size: clamp(22px, 2vw, 32px);
  line-height: 1.35;
  font-style: italic;
  max-width: 60ch;
  margin-top: 36px;
  opacity: 0.85;
}

/* ─── Generic editorial section ─────────────────────────────────── */
.section {
  padding: 12vh 6vw;
  border-bottom: 1px solid var(--rule);
}
.section-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 20px;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 90px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  max-width: 20ch;
  margin-bottom: 40px;
}
.section-title em { color: var(--signal); }

/* ─── Inner-page footer band ────────────────────────────────────── */
.page-cta {
  padding: 16vh 6vw 14vh;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: end;
}
.page-cta h2 {
  font-family: var(--serif);
  font-size: clamp(54px, 8vw, 140px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  max-width: 14ch;
}
.page-cta h2 em { color: var(--signal); font-style: italic; }
.page-cta .btn {
  border-color: var(--paper);
  color: var(--paper);
}
.page-cta .btn-signal { color: var(--paper); border-color: var(--signal); }

@media (max-width: 768px) {
  .page-cta { grid-template-columns: 1fr; }
}

/* ─── Form ──────────────────────────────────────────────────────── */
.field {
  display: grid; gap: 10px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}
.field label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--fg-soft);
}
.field input,
.field textarea,
.field select {
  font: inherit;
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 28px);
  background: transparent;
  border: none;
  outline: none;
  color: var(--fg);
  padding: 0;
  width: 100%;
  resize: none;
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--fg-soft);
  font-style: italic;
}
.field:focus-within label { color: var(--signal); }
.field:focus-within { border-bottom-color: var(--signal); }

/* ─── Card grid (used by cases) ─────────────────────────────────── */
.case-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.case-grid > * {
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
@media (max-width: 1100px) {
  .case-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .case-grid { grid-template-columns: 1fr; }
}

/* ─── Pillar deep-dive row ─────────────────────────────────────── */
.pillar-row {
  display: grid;
  grid-template-columns: 0.4fr 0.9fr 1.2fr;
  gap: 60px;
  padding: 80px 0;
  border-top: 1px solid var(--rule);
  align-items: baseline;
}
.pillar-row:last-child { border-bottom: 1px solid var(--rule); }
.pillar-row .pn {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(70px, 7vw, 130px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--signal);
}
.pillar-row .pt {
  font-family: var(--serif);
  font-size: clamp(32px, 3.6vw, 56px);
  line-height: 1;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}
.pillar-row .pd {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  line-height: 1.4;
  opacity: 0.78;
}
.pillar-row ul {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 28px;
}
.pillar-row ul li {
  font-size: 14px;
  color: var(--fg);
  padding-left: 22px;
  position: relative;
  line-height: 1.5;
}
.pillar-row ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.6em;
  width: 12px; height: 1px;
  background: var(--signal);
}
@media (max-width: 1024px) {
  .pillar-row { grid-template-columns: 1fr; gap: 28px; padding: 60px 0; }
  .pillar-row ul { grid-template-columns: 1fr; }
}

/* ─── Booking embed placeholder ─────────────────────────────────── */
.booking-frame {
  position: relative;
  width: 100%;
  min-height: 720px;
  border: 1px solid var(--rule);
  background: oklch(from var(--bg) calc(l - 0.03) c h);
  display: flex; align-items: center; justify-content: center;
  padding: 60px;
  text-align: center;
}
