/* =========================================================
   ICJ — Orientação Vocacional e de Carreira · v2
   Editorial design system with photographic imagery
   ========================================================= */

:root {
  --paper: #f4efe6;
  --paper-soft: #faf6ed;
  --paper-warm: #ede5d4;
  --ink: #14211d;
  --ink-soft: #2a3a34;
  --muted: #6f7a73;
  --line: rgba(20, 33, 29, 0.12);
  --line-strong: rgba(20, 33, 29, 0.22);

  --forest: #1f4239;
  --forest-deep: #15302a;
  --forest-soft: #2f5b4f;
  --sage: #8aa399;
  --clay: #b76a52;
  --clay-soft: #d99880;
  --gold: #c8a662;
  --cream: #f7f2e8;

  --max: 1200px;
  --gutter: clamp(20px, 4vw, 56px);
  --header-h: 78px;

  --serif: "Fraunces", "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Inter", "Helvetica Neue", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --t-fast: 220ms cubic-bezier(.2,.6,.2,1);
  --t-base: 420ms cubic-bezier(.2,.6,.2,1);
  --t-slow: 720ms cubic-bezier(.2,.6,.2,1);

  --radius: 22px;
  --radius-sm: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.62;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; background: none; border: 0; padding: 0; color: inherit; }
summary { font: inherit; cursor: pointer; }
figure { margin: 0; }

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 4px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--forest);
  color: var(--cream);
  padding: 10px 18px;
  z-index: 100;
  border-radius: 4px;
  transition: top var(--t-fast);
}
.skip:focus { top: 16px; }

.shell {
  width: min(var(--max), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

/* ------- Reveal animations ------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 900ms cubic-bezier(.2,.6,.2,1), transform 900ms cubic-bezier(.2,.6,.2,1);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  padding-inline: var(--gutter);
  color: var(--cream);
  transition: background var(--t-fast), color var(--t-fast), height var(--t-fast), box-shadow var(--t-fast), backdrop-filter var(--t-fast);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: url("assets/icj-degrade.png") center / 100% 100% no-repeat;
  pointer-events: none;
}

.site-header.is-scrolled {
  background: rgba(244, 239, 230, 0.88);
  color: var(--ink);
  height: 66px;
  box-shadow: 0 14px 38px -22px rgba(20, 33, 29, 0.35);
  backdrop-filter: saturate(150%) blur(18px);
  -webkit-backdrop-filter: saturate(150%) blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.brand-logo {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  color: currentColor;
  transition: transform var(--t-base), color var(--t-fast);
}
.brand-logo svg { width: 100%; height: 100%; }
.brand:hover .brand-logo { transform: rotate(-12deg); }
.brand-logo.small { width: 38px; height: 38px; }

.brand-text {
  display: grid;
  line-height: 1.05;
}
.brand-text strong {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
}
.brand-text small {
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: .82;
  margin-top: 5px;
  font-weight: 400;
}

.main-nav {
  justify-self: center;
  display: flex;
  gap: clamp(18px, 2.4vw, 36px);
  font-size: 0.86rem;
  letter-spacing: 0.02em;
}
.main-nav a {
  position: relative;
  padding: 6px 0;
  opacity: .92;
  transition: opacity var(--t-fast);
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-fast);
}
.main-nav a:hover { opacity: 1; }
.main-nav a:hover::after { transform: scaleX(1); }

.top-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.84rem;
  letter-spacing: 0.03em;
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.top-link svg { width: 14px; height: 14px; }
.top-link:hover { background: currentColor; }
.top-link:hover span,
.top-link:hover svg { color: var(--paper); mix-blend-mode: difference; }
.site-header.is-scrolled .top-link:hover {
  background: var(--forest);
  color: var(--cream);
  border-color: var(--forest);
}
.site-header.is-scrolled .top-link:hover span,
.site-header.is-scrolled .top-link:hover svg {
  color: var(--cream);
  mix-blend-mode: normal;
}

@media (max-width: 880px) {
  .main-nav { display: none; }
  .site-header { grid-template-columns: auto 1fr; }
}

/* =========================================================
   Buttons
   ========================================================= */
.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  font-weight: 500;
  border: 1px solid transparent;
  transition: transform var(--t-fast), background var(--t-fast), color var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
}
.button svg { width: 14px; height: 14px; }
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }

.button-solid {
  background: var(--forest);
  color: var(--cream);
  box-shadow: 0 14px 30px -16px rgba(31, 66, 57, 0.6);
}
.button-solid:hover {
  background: var(--forest-deep);
  box-shadow: 0 18px 36px -16px rgba(31, 66, 57, 0.75);
}
.button-solid.light {
  background: var(--cream);
  color: var(--forest-deep);
  box-shadow: 0 14px 30px -16px rgba(0, 0, 0, 0.4);
}
.button-solid.light:hover { background: var(--paper-soft); }

.button-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.button-ghost.light {
  color: var(--cream);
  border-color: rgba(247, 242, 232, 0.55);
}
.button-ghost.light.outlined { border-color: rgba(247, 242, 232, 0.7); }
.button-ghost:hover { border-color: currentColor; }

/* =========================================================
   Common typography blocks
   ========================================================= */
.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--clay);
  font-weight: 500;
  margin: 0 0 18px;
}
.eyebrow.light { color: var(--gold); }

.sec-num {
  display: inline-block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  color: var(--clay);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}
.sec-num.light { color: var(--gold); }

.serif-display {
  font-family: var(--serif);
  font-weight: 380;
  font-style: normal;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  letter-spacing: -0.012em;
  line-height: 1.08;
  color: var(--ink);
  margin: 0;
}
.serif-display em {
  font-style: italic;
  font-weight: 350;
  color: var(--forest);
  font-variation-settings: "opsz" 144;
}
.serif-display.light { color: var(--cream); }
.serif-display.light em { color: var(--gold); }

h2.serif-display { font-size: clamp(2rem, 4.2vw, 3.4rem); }
h3.serif-display { font-size: clamp(1.18rem, 1.5vw, 1.5rem); line-height: 1.2; }

.display {
  font-family: var(--serif);
  font-weight: 560;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-size: clamp(2.9rem, 7vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.034em;
  margin: 0;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35);
}
.display span {
  display: block;
}
.display em {
  font-style: italic;
  font-weight: 460;
  font-variation-settings: "opsz" 144, "SOFT" 40;
  color: var(--gold);
  letter-spacing: -0.026em;
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.section-head .eyebrow { margin-bottom: 14px; }
.section-head h2 { margin-bottom: 18px; }
.section-lede {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 60ch;
  margin: 0;
}

section {
  position: relative;
  padding-block: clamp(80px, 9vw, 140px);
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  min-height: min(880px, 100vh);
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 60px) var(--gutter) clamp(90px, 11vw, 160px);
  color: var(--cream);
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: #0c1a17;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
  transform: scale(1.04);
  filter: saturate(0.8) contrast(0.95) brightness(0.85);
  animation: heroVideoFade 1400ms cubic-bezier(.2,.6,.2,1) both;
}
@keyframes heroVideoFade {
  from { opacity: 0; transform: scale(1.08); }
  to { opacity: 1; transform: scale(1.04); }
}
.hero-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 75% 20%, rgba(20, 33, 29, 0) 0%, rgba(20, 33, 29, 0.35) 60%, rgba(20, 33, 29, 0.85) 100%),
    linear-gradient(180deg, rgba(20, 33, 29, 0.35) 0%, rgba(20, 33, 29, 0.55) 55%, rgba(20, 33, 29, 0.95) 100%);
}
.hero-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  mix-blend-mode: screen;
  opacity: .9;
}
.hero-lines .line {
  stroke-dasharray: 1800;
  stroke-dashoffset: 1800;
  animation: drawLine 4s ease-out forwards;
}
.hero-lines .line-2 { animation-delay: .6s; }
.hero-lines .line-3 { animation-delay: 1.1s; }

@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}

.hero-inner {
  position: relative;
  max-width: 1100px;
  width: 100%;
  margin-inline: auto;
}

.hero .eyebrow.light { color: var(--gold); margin-bottom: 28px; }

.hero h1 {
  margin: 0 0 30px;
  max-width: 16ch;
}

.hero-copy {
  max-width: 56ch;
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  color: rgba(247, 242, 232, 0.86);
  line-height: 1.6;
  margin: 0 0 38px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 54px;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, max-content));
  gap: clamp(32px, 5vw, 64px);
  padding-top: 28px;
  border-top: 1px solid rgba(247, 242, 232, 0.22);
}
.hero-meta div {
  display: grid;
  gap: 4px;
}
.hero-meta strong {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  line-height: 1.05;
  color: var(--cream);
}
.hero-meta span {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247, 242, 232, 0.7);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  width: 22px;
  height: 38px;
  border: 1px solid rgba(247, 242, 232, 0.6);
  border-radius: 999px;
  display: grid;
  place-items: start center;
  padding-top: 7px;
  z-index: 2;
}
.scroll-cue span {
  display: block;
  width: 2px;
  height: 8px;
  background: var(--cream);
  border-radius: 2px;
  animation: scroll-bob 1.8s ease-in-out infinite;
}
@keyframes scroll-bob {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(8px); opacity: .3; }
}

@media (max-width: 720px) {
  .hero { min-height: auto; padding-bottom: 100px; }
  .hero-meta { grid-template-columns: 1fr 1fr; gap: 22px; }
}

/* =========================================================
   Manifesto
   ========================================================= */
.manifesto {
  background: var(--paper);
  padding-block: clamp(100px, 11vw, 160px);
}
.manifesto-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 2.5fr);
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.manifesto-meta {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding-top: 8px;
}
.manifesto-meta .sec-num { display: block; font-size: 1.05rem; margin-bottom: 14px; }
.manifesto-figure {
  margin-top: 28px;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: 0 30px 50px -28px rgba(20, 33, 29, 0.35);
}
.manifesto-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s ease;
}
.manifesto-figure:hover img { transform: scale(1.04); }

.manifesto-body h2 {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  margin-bottom: 36px;
  max-width: 22ch;
}
.manifesto-text {
  display: grid;
  gap: 22px;
  max-width: 60ch;
  color: var(--ink-soft);
  font-size: 1.06rem;
}
.manifesto-text p { margin: 0; }
.manifesto-text p::first-line { font-variant: small-caps; letter-spacing: 0.04em; }

@media (max-width: 820px) {
  .manifesto-grid { grid-template-columns: 1fr; gap: 28px; }
  .manifesto-meta { position: static; }
  .manifesto-figure { aspect-ratio: 16 / 10; max-height: 360px; }
}

/* =========================================================
   Audience tabs
   ========================================================= */
.audience { background: var(--paper-soft); }

.audience-switch {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(28px, 4vw, 56px);
  border-top: 1px solid var(--line);
  padding-top: 36px;
}

.audience-nav {
  display: grid;
  gap: 6px;
  align-content: start;
}
.audience-nav button {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 12px;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  text-align: left;
  color: var(--muted);
  transition: background var(--t-fast), color var(--t-fast);
}
.audience-nav button .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--line-strong);
  transition: background var(--t-fast), transform var(--t-fast);
}
.audience-nav button:hover { color: var(--ink); }
.audience-nav button[aria-selected="true"] {
  background: var(--ink);
  color: var(--cream);
  font-weight: 500;
}
.audience-nav button[aria-selected="true"] .dot {
  background: var(--gold);
  transform: scale(1.4);
}

.audience-panel { position: relative; min-height: 320px; }

[data-panel] {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 3.5vw, 48px);
  padding: 4px;
  animation: panelFade .55s cubic-bezier(.2,.6,.2,1) both;
  align-items: center;
}
[data-panel][hidden] { display: none; }

@keyframes panelFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.panel-figure {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: 0 30px 60px -32px rgba(20, 33, 29, 0.4);
  background: var(--paper-warm);
}
.panel-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s ease;
}
.panel-figure:hover img { transform: scale(1.04); }

.panel-tag {
  margin: 0 0 14px;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clay);
  font-weight: 500;
}
.panel-main h3 { margin-bottom: 18px; font-size: clamp(1.4rem, 2vw, 1.85rem); max-width: 24ch; }
.panel-main > p { margin: 0 0 22px; color: var(--ink-soft); max-width: 58ch; }
.panel-questions {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.08rem;
  color: var(--forest);
}
.panel-questions li::before {
  content: "— ";
  color: var(--clay);
  margin-right: 4px;
}

@media (max-width: 880px) {
  .audience-switch { grid-template-columns: 1fr; }
  .audience-nav {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 8px;
    scrollbar-width: none;
  }
  .audience-nav::-webkit-scrollbar { display: none; }
  .audience-nav button { white-space: nowrap; flex-shrink: 0; }
  [data-panel] { grid-template-columns: 1fr; }
  .panel-figure { aspect-ratio: 16 / 10; max-height: 320px; }
}

/* =========================================================
   Contrast section (dark)
   ========================================================= */
.contrast {
  background: var(--forest-deep);
  color: var(--cream);
  overflow: hidden;
  position: relative;
  isolation: isolate;
}
.contrast-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.contrast-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .25;
  filter: saturate(0.6) blur(1px);
}
.contrast::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(21, 48, 42, 0.85), rgba(21, 48, 42, 0.95)),
    radial-gradient(60% 50% at 80% 10%, rgba(200, 166, 98, 0.12), transparent 60%),
    radial-gradient(50% 50% at 10% 90%, rgba(183, 106, 82, 0.12), transparent 60%);
  pointer-events: none;
  z-index: -1;
}
.contrast-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
.contrast-left .sec-num { display: block; margin-bottom: 14px; }
.contrast-left h2 { margin-bottom: 26px; max-width: 18ch; }
.contrast-copy {
  color: rgba(247, 242, 232, 0.82);
  max-width: 54ch;
  font-size: 1.04rem;
  margin: 0;
}
.contrast-card {
  background: rgba(247, 242, 232, 0.05);
  border: 1px solid rgba(247, 242, 232, 0.16);
  border-radius: 22px;
  padding: clamp(32px, 4vw, 52px);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.contrast-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 22px;
}
.contrast-statement {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.1;
  margin: 0 0 22px;
  color: var(--cream);
}
.contrast-statement em {
  font-style: italic;
  color: var(--gold);
}
.contrast-card > p:last-of-type {
  color: rgba(247, 242, 232, 0.78);
  max-width: 50ch;
  margin: 0;
}
.contrast-tokens {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(247, 242, 232, 0.14);
}
.contrast-tokens span {
  font-size: 0.78rem;
  padding: 6px 14px;
  border: 1px solid rgba(247, 242, 232, 0.3);
  border-radius: 999px;
  letter-spacing: 0.04em;
}

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

/* =========================================================
   Process / Compass
   ========================================================= */
.process { background: var(--paper); }

.compass-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.compass-svg {
  width: 100%;
  max-width: 540px;
  margin-inline: auto;
  display: block;
  animation: compassFloat 9s ease-in-out infinite;
}
.compass-needle {
  transform-origin: 300px 300px;
  animation: compassSpin 22s ease-in-out infinite;
}
@keyframes compassSpin {
  0%   { transform: rotate(0deg); }
  20%  { transform: rotate(82deg); }
  45%  { transform: rotate(46deg); }
  65%  { transform: rotate(170deg); }
  85%  { transform: rotate(120deg); }
  100% { transform: rotate(360deg); }
}
@keyframes compassFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.compass-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.axis {
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 24px;
  transition: transform var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast);
}
.axis:hover {
  transform: translateY(-3px);
  border-color: var(--forest-soft);
  box-shadow: 0 24px 50px -28px rgba(31, 66, 57, 0.35);
}
.axis-num {
  font-family: var(--serif);
  font-style: italic;
  color: var(--clay);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}
.axis h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.32rem;
  margin: 8px 0 10px;
  color: var(--forest);
}
.axis p {
  font-size: 0.94rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.55;
}

@media (max-width: 880px) {
  .compass-stage { grid-template-columns: 1fr; }
  .compass-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .compass-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Consultations
   ========================================================= */
.consultations {
  background: var(--paper-warm);
  position: relative;
  overflow: hidden;
}
.consultations::before {
  content: "";
  position: absolute;
  top: 0; right: -5%;
  width: 60%;
  height: 100%;
  background: radial-gradient(50% 60% at 50% 50%, rgba(31, 66, 57, 0.07), transparent 70%);
  pointer-events: none;
}
.consultation-wrap { position: relative; }

.consultation-head {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.consultation-head .section-head { margin-bottom: 0; }
.consultation-figure {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 5 / 4;
  box-shadow: 0 30px 60px -32px rgba(20, 33, 29, 0.4);
}
.consultation-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s ease;
}
.consultation-figure:hover img { transform: scale(1.04); }

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  position: relative;
  counter-reset: t;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 39px;
  top: 36px;
  bottom: 36px;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--line-strong) 8%, var(--line-strong) 92%, transparent);
}

.timeline li {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 28px;
  padding: 30px 0;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.timeline li:last-child { border-bottom: 0; }

.t-marker {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--forest);
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.t-marker.is-final {
  background: var(--forest);
  color: var(--cream);
  border-color: var(--forest);
  box-shadow: 0 18px 36px -18px rgba(31, 66, 57, 0.6);
}
.timeline li:hover .t-marker:not(.is-final) {
  background: var(--forest);
  color: var(--cream);
  border-color: var(--forest);
}

.t-body { max-width: 64ch; padding-top: 6px; }
.t-tag {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clay);
  margin: 0 0 8px;
  font-weight: 500;
}
.t-body h3 {
  margin: 0 0 10px;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  color: var(--ink);
}
.t-body p {
  margin: 0;
  color: var(--ink-soft);
}

@media (max-width: 820px) {
  .consultation-head { grid-template-columns: 1fr; gap: 28px; }
  .consultation-figure { aspect-ratio: 16 / 10; }
}
@media (max-width: 620px) {
  .timeline li { grid-template-columns: 56px 1fr; gap: 18px; }
  .timeline::before { left: 27px; }
  .t-marker { width: 50px; height: 50px; font-size: 1.1rem; }
}

/* =========================================================
   Voices
   ========================================================= */
.voices { background: var(--paper-soft); }

.voices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.voice-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  transition: transform var(--t-fast), box-shadow var(--t-fast);
  position: relative;
}
.voice-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -32px rgba(20, 33, 29, 0.32);
}

.voice-figure {
  position: relative;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  background: var(--paper-warm);
}
.voice-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s ease;
}
.voice-card:hover .voice-figure img { transform: scale(1.06); }
.voice-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(20, 33, 29, 0.25));
}

.voice-body {
  padding: 28px 28px 32px;
  display: grid;
  gap: 14px;
}
.voice-body header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.voice-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--cream);
  color: var(--forest);
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.voice-icon svg { width: 22px; height: 22px; }
.voice-tag {
  margin: 0;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.voice-body h3 {
  font-size: 1.3rem;
  color: var(--forest);
  margin: 0;
  max-width: 24ch;
}
.voice-body p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.97rem;
}

/* =========================================================
   FAQ (now includes practical info)
   ========================================================= */
.faq { background: var(--paper); }
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}
.faq-title {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
.faq-title .sec-num { display: block; margin-bottom: 12px; }
.faq-title h2 { font-size: clamp(1.9rem, 3.2vw, 2.8rem); margin-bottom: 18px; }
.faq-title > p { color: var(--ink-soft); margin: 0 0 28px; max-width: 36ch; }

.faq-figure {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: 0 30px 60px -32px rgba(20, 33, 29, 0.4);
  max-width: 360px;
}
.faq-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s ease;
}
.faq-figure:hover img { transform: scale(1.04); }

.faq-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq-list details {
  border-bottom: 1px solid var(--line);
  padding: 22px 4px;
  transition: padding var(--t-fast);
}
.faq-list summary {
  list-style: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.35;
  color: var(--ink);
  cursor: pointer;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary > span:first-child { flex: 1; }

.faq-toggle {
  position: relative;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
  margin-top: 3px;
}
.faq-toggle::before,
.faq-toggle::after {
  content: "";
  position: absolute;
  background: var(--ink);
  transition: transform var(--t-fast), background var(--t-fast);
}
.faq-toggle::before {
  left: 50%; top: 50%;
  width: 11px;
  height: 1.2px;
  transform: translate(-50%, -50%);
}
.faq-toggle::after {
  left: 50%; top: 50%;
  width: 1.2px;
  height: 11px;
  transform: translate(-50%, -50%);
}
.faq-list details[open] .faq-toggle {
  background: var(--forest);
  border-color: var(--forest);
}
.faq-list details[open] .faq-toggle::before,
.faq-list details[open] .faq-toggle::after { background: var(--cream); }
.faq-list details[open] .faq-toggle::after { transform: translate(-50%, -50%) rotate(90deg); }

.faq-list details p {
  margin: 14px 0 4px;
  color: var(--ink-soft);
  max-width: 64ch;
  font-size: 0.98rem;
}
.faq-list details p strong {
  color: var(--forest);
  font-weight: 600;
}

@media (max-width: 880px) {
  .faq-grid { grid-template-columns: 1fr; }
  .faq-title { position: static; }
  .faq-figure { aspect-ratio: 16 / 10; max-width: none; }
}

/* =========================================================
   Final CTA
   ========================================================= */
.final {
  background: var(--forest-deep);
  color: var(--cream);
  position: relative;
  overflow: hidden;
  text-align: center;
  padding-block: clamp(110px, 12vw, 180px);
  isolation: isolate;
}
.final-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}
.final-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .25;
  filter: saturate(0.6);
}
.final-bg svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .35;
}
.final::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(21, 48, 42, 0.86), rgba(21, 48, 42, 0.96)),
    radial-gradient(60% 50% at 50% 0%, rgba(200, 166, 98, 0.14), transparent 70%),
    radial-gradient(60% 50% at 50% 100%, rgba(183, 106, 82, 0.12), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.final-inner {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin-inline: auto;
}
.final .eyebrow { margin-bottom: 22px; }
.final h2 {
  font-size: clamp(2.2rem, 4.6vw, 3.8rem);
  margin-bottom: 30px;
  max-width: 22ch;
  margin-inline: auto;
}
.final-copy {
  color: rgba(247, 242, 232, 0.82);
  max-width: 58ch;
  margin: 0 auto 38px;
  font-size: 1.06rem;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 0 auto 44px;
  text-align: left;
}
.contact-block {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid rgba(247, 242, 232, 0.2);
  border-radius: var(--radius-sm);
  background: rgba(247, 242, 232, 0.06);
  color: rgba(247, 242, 232, 0.82);
  font-style: normal;
}
.contact-block strong {
  color: var(--cream);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.contact-block a {
  color: var(--cream);
  text-decoration: underline;
  text-decoration-color: rgba(247, 242, 232, 0.35);
  text-underline-offset: 3px;
}
.contact-phones {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  margin-top: 4px;
}
.contact-phones + .contact-phones { margin-top: 0; }
.contact-phones small {
  flex-basis: 100%;
  color: rgba(247, 242, 232, 0.62);
  font-size: 0.76rem;
  line-height: 1.35;
}
.contact-block a.contact-whatsapp {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  padding: 10px 16px;
  border: 1px solid rgba(247, 242, 232, 0.45);
  border-radius: 999px;
  color: var(--forest-deep);
  background: var(--cream);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: transform var(--t-fast), background var(--t-fast), border-color var(--t-fast);
}
.contact-block a.contact-whatsapp:hover {
  transform: translateY(-1px);
  background: var(--paper-soft);
  border-color: var(--cream);
}
.final-foot {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--gold);
  margin: 0;
  max-width: 50ch;
  margin-inline: auto;
  letter-spacing: 0.005em;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--ink);
  color: rgba(247, 242, 232, 0.78);
  padding-block: 56px;
  font-size: 0.88rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--cream);
}
.footer-brand strong {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  display: block;
}
.footer-brand p {
  margin: 4px 0 0;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  opacity: .72;
}
.footer-nav {
  justify-self: center;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 0.85rem;
}
.footer-nav a { opacity: .85; transition: opacity var(--t-fast); }
.footer-nav a:hover { opacity: 1; color: var(--gold); }
.footer-meta { margin: 0; opacity: .6; }

@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-brand { justify-content: center; }
}

/* =========================================================
   v3 — Refinements: motion, depth, micro-interactions
   ========================================================= */

/* ----- Ambient grain texture (very subtle) ----- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99;
  opacity: .035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ----- Smoother reveal: scale + blur to in-focus ----- */
.reveal {
  opacity: 0;
  transform: translateY(34px) scale(.985);
  filter: blur(6px);
  transition:
    opacity 1100ms cubic-bezier(.2,.6,.2,1),
    transform 1100ms cubic-bezier(.2,.6,.2,1),
    filter 900ms cubic-bezier(.2,.6,.2,1);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

/* ----- Hero copy: enhanced rhythm + line-by-line stagger ----- */
.display span { overflow: hidden; }
.display span > .word {
  display: inline-block;
  transform: translateY(105%);
  opacity: 0;
  animation: heroWord 1100ms cubic-bezier(.2,.7,.2,1) forwards;
  animation-delay: calc(var(--i, 0) * 60ms + 300ms);
}
@keyframes heroWord {
  to { transform: translateY(0); opacity: 1; }
}

/* ----- Hero floating accents (slow drift) ----- */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(220px 220px at 12% 24%, rgba(200, 166, 98, .14), transparent 60%),
    radial-gradient(280px 280px at 88% 78%, rgba(183, 106, 82, .12), transparent 60%);
  mix-blend-mode: screen;
  z-index: 0;
  animation: heroDrift 18s ease-in-out infinite alternate;
}
@keyframes heroDrift {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-2%, -2%, 0); }
}
.hero-inner { position: relative; z-index: 1; }

/* ----- Hero buttons: magnetic-like glow ----- */
.hero-actions .button-solid {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hero-actions .button-solid::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: conic-gradient(from var(--ang, 0deg), transparent 0deg, rgba(200,166,98,.45) 90deg, transparent 180deg);
  filter: blur(10px);
  opacity: 0;
  z-index: -1;
  transition: opacity 280ms ease;
  animation: spinAng 6s linear infinite;
}
.hero-actions .button-solid:hover::before { opacity: 1; }
@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes spinAng { to { --ang: 360deg; } }

/* ----- Scroll cue refined ----- */
.scroll-cue {
  transition: transform var(--t-base);
}
.scroll-cue:hover {
  transform: translateX(-50%) translateY(-3px);
}

/* ----- Section number: pill style with gold dot ----- */
.sec-num {
  position: relative;
  padding-left: 22px;
}
.sec-num::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 1px;
  background: var(--clay);
  opacity: .75;
}
.sec-num.light::before { background: var(--gold); }

/* ----- Eyebrow: gentle indicator dot ----- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
  opacity: .55;
}

/* ----- Audience nav: refined hover + chip indicator ----- */
.audience-nav button {
  position: relative;
  transition: background 320ms cubic-bezier(.2,.6,.2,1), color 320ms cubic-bezier(.2,.6,.2,1), padding 320ms cubic-bezier(.2,.6,.2,1);
}
.audience-nav button:not([aria-selected="true"]):hover {
  background: rgba(20,33,29,.04);
  padding-left: 22px;
}
.audience-nav button[aria-selected="true"] {
  box-shadow: 0 14px 32px -16px rgba(20,33,29,.55);
}

/* ----- Audience panel: cross-fade with subtle slide ----- */
[data-panel] {
  animation: panelFadeV3 .7s cubic-bezier(.2,.6,.2,1) both;
}
@keyframes panelFadeV3 {
  from { opacity: 0; transform: translateY(14px) scale(.99); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}

/* ----- Panel figure: zoom + parallax-ready ----- */
.panel-figure {
  position: relative;
  transform: translateZ(0);
  transition: box-shadow .5s ease;
}
.panel-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(20,33,29,.18));
  pointer-events: none;
}
.panel-figure:hover { box-shadow: 0 50px 80px -36px rgba(20,33,29,.55); }
.panel-figure img { transition: transform 1.6s cubic-bezier(.2,.6,.2,1); will-change: transform; }
.panel-figure:hover img { transform: scale(1.06); }

/* ----- Voice cards: enhanced 3D tilt + soft glow ring ----- */
.voice-card {
  transform-style: preserve-3d;
  transition:
    transform .5s cubic-bezier(.2,.6,.2,1),
    box-shadow .5s cubic-bezier(.2,.6,.2,1),
    border-color .4s ease;
  will-change: transform;
}
.voice-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(200,166,98,0), rgba(200,166,98,.5), rgba(31,66,57,0));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}
.voice-card:hover::before { opacity: 1; }
.voice-card:hover {
  transform: translateY(-6px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  box-shadow: 0 50px 80px -36px rgba(20,33,29,.4);
}
.voice-figure img { transition: transform 2s cubic-bezier(.2,.6,.2,1); }
.voice-card:hover .voice-figure img { transform: scale(1.08) translateY(-2%); }

/* ----- Voice icon: soft pulse on hover ----- */
.voice-card:hover .voice-icon {
  animation: iconPulse 1.4s ease-in-out infinite;
}
@keyframes iconPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(31,66,57,.18); }
  50%      { box-shadow: 0 0 0 8px rgba(31,66,57,0); }
}

/* ----- Axis cards: ambient gradient on hover ----- */
.axis {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.axis::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at var(--mx, 50%) var(--my, 50%), rgba(31,66,57,.08), transparent 60%);
  opacity: 0;
  transition: opacity .35s ease;
  z-index: -1;
}
.axis:hover::before { opacity: 1; }
.axis h3 { transition: color .3s ease; }
.axis:hover h3 { color: var(--clay); }

/* ----- Compass: refined float + sweep glow ----- */
.compass-svg {
  filter: drop-shadow(0 28px 40px rgba(31,66,57,.18));
}

/* ----- Timeline: marker pulse + line growth on view ----- */
.timeline::before {
  transform-origin: top;
  animation: lineGrow 1.4s cubic-bezier(.2,.6,.2,1) .2s both;
}
@keyframes lineGrow {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}
.t-marker {
  position: relative;
  transition:
    background var(--t-fast),
    color var(--t-fast),
    transform .35s cubic-bezier(.2,.6,.2,1),
    border-color var(--t-fast),
    box-shadow .4s ease;
}
.t-marker::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  opacity: 0;
  transform: scale(.85);
  transition: opacity .4s ease, transform .4s ease;
}
.timeline li:hover .t-marker {
  transform: scale(1.08);
  box-shadow: 0 18px 30px -14px rgba(31,66,57,.5);
}
.timeline li:hover .t-marker::before {
  opacity: 1;
  transform: scale(1);
}
.t-marker.is-final {
  animation: finalPulse 3.6s ease-in-out infinite;
}
@keyframes finalPulse {
  0%, 100% { box-shadow: 0 18px 36px -18px rgba(31,66,57,.6), 0 0 0 0 rgba(200,166,98,.25); }
  50%      { box-shadow: 0 18px 36px -18px rgba(31,66,57,.6), 0 0 0 12px rgba(200,166,98,0); }
}

/* ----- FAQ: smoother open/close with grid trick ----- */
.faq-list details {
  transition: background .3s ease;
}
.faq-list details:hover { background: rgba(20,33,29,.025); }
.faq-list details summary > span:first-child {
  transition: transform .35s cubic-bezier(.2,.6,.2,1), color .3s ease;
  transform-origin: left;
}
.faq-list details[open] summary > span:first-child {
  color: var(--forest);
}
.faq-list details p {
  transform: translateY(-6px);
  opacity: 0;
  animation: faqOpen .45s cubic-bezier(.2,.6,.2,1) forwards;
}
@keyframes faqOpen {
  to { transform: none; opacity: 1; }
}

/* ----- Brand: subtle wobble on hover (already had rotate) ----- */
.brand-logo svg { transition: filter .4s ease; }
.brand:hover .brand-logo svg {
  filter: drop-shadow(0 6px 10px rgba(200,166,98,.35));
}

/* ----- Top nav links: animated underline with gold dot ----- */
.main-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0;
}

/* ----- Hero meta numbers: counter-in feel ----- */
.hero-meta strong {
  transition: color .3s ease, transform .3s ease;
}
.hero-meta div:hover strong {
  color: var(--gold);
  transform: translateY(-1px);
}

/* ----- Section dividers: gentle ornament ----- */
section.manifesto + section.audience::before,
section.audience + section.contrast::before,
section.process + section.consultations::before {
  /* placeholder for any decorative top borders if needed later */
}

/* ----- Smoother button feel ----- */
.button {
  position: relative;
  overflow: hidden;
}
.button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 120% at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.18), transparent 60%);
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}
.button:hover::after { opacity: 1; }

/* ----- Contrast card: glowing edge on hover ----- */
.contrast-card {
  transition: transform .5s cubic-bezier(.2,.6,.2,1), box-shadow .5s ease, border-color .35s ease;
}
.contrast-card:hover {
  transform: translateY(-4px);
  border-color: rgba(200,166,98,.4);
  box-shadow: 0 50px 80px -40px rgba(0,0,0,.5);
}

/* ----- Contrast bg: very slow zoom for living feel ----- */
.contrast-bg img {
  animation: slowZoom 22s ease-in-out infinite alternate;
}
@keyframes slowZoom {
  0%   { transform: scale(1); }
  100% { transform: scale(1.08); }
}

/* ----- Manifesto figure: subtle parallax target ----- */
.manifesto-figure { will-change: transform; }

/* ----- Faq figure: gentle hover effect ----- */
.faq-figure {
  transition: transform .5s ease;
}
.faq-figure:hover { transform: translateY(-4px); }

/* ----- Final CTA: ambient orbiting glow ----- */
.final::after {
  content: "";
  position: absolute;
  inset: -10%;
  background: radial-gradient(40% 40% at 30% 40%, rgba(200,166,98,.18), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  animation: orbitGlow 14s ease-in-out infinite alternate;
  z-index: -1;
}
@keyframes orbitGlow {
  0%   { transform: translate3d(0,0,0); }
  100% { transform: translate3d(8%, -4%, 0); }
}

/* ----- Reduced motion respect ----- */
@media (prefers-reduced-motion: reduce) {
  .hero::after,
  .contrast-bg img,
  .t-marker.is-final,
  .final::after,
  .display span > .word {
    animation: none !important;
  }
  .display span > .word { transform: none; opacity: 1; }
  body::before { display: none; }
}

/* =========================================================
   v4 — Hero typography reinforcement + lines animation
   ========================================================= */

/* Stronger eyebrow above hero title */
.hero .eyebrow.light {
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  color: var(--gold);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}

/* Hero copy: more presence, slightly heavier */
.hero-copy {
  font-weight: 400;
  color: rgba(247, 242, 232, 0.94);
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  line-height: 1.55;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.5);
}

/* Hero meta numbers: bolder */
.hero-meta strong {
  font-weight: 500;
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
.hero-meta span { color: rgba(247, 242, 232, 0.82); }

/* Hero title word spans inherit the heavier weight */
.display span > .word {
  font-weight: inherit;
  font-variation-settings: inherit;
  letter-spacing: inherit;
}

/* Make the SVG lines animation more visible on top of the video */
.hero-lines {
  opacity: 1;
  mix-blend-mode: screen;
}
.hero-lines .line {
  stroke-width: 1.4;
  stroke-dasharray: 2400;
  stroke-dashoffset: 2400;
  animation:
    drawLineV4 5.5s cubic-bezier(.2,.7,.2,1) forwards,
    floatLine 14s ease-in-out 5.5s infinite alternate;
}
.hero-lines .line-1 { animation-delay: 0.2s, 5.7s; }
.hero-lines .line-2 { animation-delay: 0.9s, 6.4s; }
.hero-lines .line-3 { animation-delay: 1.5s, 7.0s; }

@keyframes drawLineV4 {
  to { stroke-dashoffset: 0; }
}
@keyframes floatLine {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-30px, 12px, 0); }
}

/* Add extra ambient drifting lines on top of video */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      115deg,
      transparent 0px,
      transparent 220px,
      rgba(200, 166, 98, 0.05) 220px,
      rgba(200, 166, 98, 0.05) 221px
    );
  mix-blend-mode: screen;
  pointer-events: none;
  animation: linesDrift 18s linear infinite;
}
@keyframes linesDrift {
  0%   { background-position: 0 0; }
  100% { background-position: 240px 0; }
}

/* Ensure the video itself stays slightly darker so text is bolder visually */
.hero-video {
  filter: saturate(0.85) contrast(1.05) brightness(0.7);
}

/* Strengthen the dark veil at the bottom where the title sits */
.hero-veil {
  background:
    radial-gradient(120% 80% at 75% 20%, rgba(20, 33, 29, 0) 0%, rgba(20, 33, 29, 0.45) 60%, rgba(20, 33, 29, 0.92) 100%),
    linear-gradient(180deg, rgba(20, 33, 29, 0.35) 0%, rgba(20, 33, 29, 0.65) 50%, rgba(20, 33, 29, 0.98) 100%);
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg::after,
  .hero-lines .line { animation: none !important; }
  .hero-lines .line { stroke-dashoffset: 0; }
}

/* =========================================================
   v5 — Hero em non-wrap + media (video) figure styling
   ========================================================= */

/* Keep all words within the same original <em> on a single line */
.display em,
.display em.no-wrap {
  white-space: nowrap;
  display: inline-block;
}

/* Ensure the inner word spans flow inline within the em */
.display em > .word {
  white-space: normal;
}

/* Allow the hero h1 to use a slightly wider canvas so line 2 fits */
.hero h1 { max-width: 22ch; }

/* Treat <video> inside figures exactly like the previous <img> behaviour */
.manifesto-figure video,
.consultation-figure video,
.panel-figure video,
.voice-figure video,
.faq-figure video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.4s cubic-bezier(.2,.6,.2,1);
  will-change: transform;
}
.manifesto-figure:hover video,
.consultation-figure:hover video { transform: scale(1.04); }

/* Subtle warm overlay so the videos read as part of the editorial palette */
.manifesto-figure,
.consultation-figure {
  position: relative;
  isolation: isolate;
}
.manifesto-figure::after,
.consultation-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 33, 29, 0) 55%, rgba(20, 33, 29, 0.22));
  pointer-events: none;
  z-index: 1;
}

/* =========================================================
   v6 — Hero title: clean line-by-line layout
   ========================================================= */

/* Neutralise the legacy word-stagger styles (now unused) */
.display span > .word,
.display .word { all: unset; }
.display span { overflow: visible; }

/* Hero title sizing: tighter and more proportionate */
.display {
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.028em;
  font-weight: 540;
}
.display em {
  white-space: nowrap;
  display: inline;
  font-weight: 440;
  letter-spacing: -0.022em;
}

/* Allow the h1 a wider canvas so the middle line fits without breaking */
.hero h1 {
  max-width: 28ch;
  text-wrap: balance;
}

/* Line-by-line reveal: each <span> slides up with stagger */
.display .line-anim {
  display: block;
  opacity: 0;
  transform: translateY(28px);
  animation: heroLineIn 900ms cubic-bezier(.2,.7,.2,1) forwards;
  animation-delay: calc(var(--i, 0) * 140ms + 220ms);
}
@keyframes heroLineIn {
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .display .line-anim { animation: none; opacity: 1; transform: none; }
}

/* Tighter hero copy margins so the block feels balanced after reduction */
.hero h1 { margin-bottom: 22px; }
.hero-copy { margin-bottom: 30px; }
.hero-actions { margin-bottom: 42px; }

/* =========================================================
   v7 — Eyebrows as questions: stronger, slightly larger
   ========================================================= */
.eyebrow {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin-bottom: 22px;
  gap: 12px;
}
.eyebrow::before {
  width: 18px;
  height: 2px;
  border-radius: 0;
  opacity: 0.9;
}
/* Re-apply gold marker for light contexts */
.eyebrow.light::before { background: var(--gold); }
.section-head .eyebrow { margin-bottom: 16px; }

/* =========================================================
   v8 — Section number aligned with eyebrow (consistent rhythm)
   ========================================================= */

/* Match eyebrow size, add weight, drop the redundant leading line */
.sec-num {
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding-left: 0;
  margin-bottom: 8px;
  color: var(--clay);
  font-feature-settings: "lnum" 1, "tnum" 1;
}
.sec-num.light { color: var(--gold); }
.sec-num::before { content: none; }

/* Slightly tighter pairing between sec-num and the eyebrow underneath */
.section-head .sec-num,
.manifesto-meta .sec-num,
.contrast-left .sec-num,
.results-copy .sec-num,
.practical-copy .sec-num,
.faq-title .sec-num {
  display: block;
  margin-bottom: 6px;
}

/* When sec-num is followed directly by an eyebrow, trim the eyebrow's top */
.sec-num + .eyebrow { margin-top: 0; }

/* =========================================================
   v9 — Section number inline with the eyebrow question
   ========================================================= */

/* Reset the v8 block override; number sits inline as a prefix */
.section-head .sec-num,
.manifesto-meta .sec-num,
.contrast-left .sec-num,
.results-copy .sec-num,
.practical-copy .sec-num,
.faq-title .sec-num {
  display: inline-flex;
  align-items: center;
  margin: 0;
  vertical-align: baseline;
  white-space: nowrap;
}

/* The eyebrow that follows a number renders inline next to it */
.sec-num + .eyebrow {
  display: inline-flex;
  align-items: center;
  margin: 0;
  vertical-align: baseline;
}

/* Swap the eyebrow leading line for a thin separator between number & text */
.sec-num + .eyebrow::before {
  width: 24px;
  height: 1px;
  border-radius: 0;
  margin: 0 4px 0 12px;
  background: currentColor;
  opacity: 0.6;
}

/* Restore breathing room below the inline pair before the h2 / figure */
.sec-num + .eyebrow {
  margin-bottom: 18px;
}
.section-head .sec-num + .eyebrow { margin-bottom: 16px; }

/* Keep the contrast (dark) variant consistent */
.contrast-left .sec-num + .eyebrow::before { background: var(--gold); opacity: 0.75; }

/* =========================================================
   v10 — Remove leading dash from the final CTA eyebrow
   ========================================================= */
.final .eyebrow::before { content: none; }
.final .eyebrow { padding-left: 0; }


/* =========================================================
   v11 — Mobile header: cover safe area, solid when scrolled
   ========================================================= */

/* Extend the fixed header up into the iOS status-bar / notch safe area,
   so page content never shows through the gap above it while scrolling. */
.site-header {
  padding-top: env(safe-area-inset-top, 0px);
  height: calc(var(--header-h) + env(safe-area-inset-top, 0px));
}
.site-header.is-scrolled {
  height: calc(66px + env(safe-area-inset-top, 0px));
}

/* The scrolled header was a touch too translucent: bump it to near-solid
   so text underneath doesn't bleed through (most visible on mobile). */
.site-header.is-scrolled {
  background: rgba(244, 239, 230, 0.97);
}

/* =========================================================
   v17 — Mobile header: always opaque (no transparency on phones)
   ========================================================= */
@media (max-width: 880px) {
  /* Solid fill across the whole header AND the status-bar safe area.
     A backing layer (::after) paints behind the content so the area
     above the ICJ symbol is never see-through. */
  .site-header {
    background: var(--paper);
    color: var(--ink);
  }
  .site-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    /* cover header height + the notch/status-bar inset above it */
    bottom: 0;
    background: var(--paper);
    z-index: -1;
  }
  .site-header.is-scrolled {
    background: var(--paper);
    box-shadow: 0 8px 24px -18px rgba(20, 33, 29, 0.3);
  }
  /* The thin brand gradient bar sits on top of the solid fill */
  .site-header::before { z-index: 1; }
}


/* =========================================================
   v12 — Contacts: centred blocks, centred WhatsApp, no underlines
   ========================================================= */

/* Centre all content within each contact block */
.contact-block {
  justify-items: center;
  text-align: center;
}

/* Centre the phone rows (they are flex internally) */
.contact-phones {
  justify-content: center;
}
.contact-phones small { text-align: center; }

/* Centre the WhatsApp call-to-action (was pinned to start) */
.contact-block a.contact-whatsapp {
  justify-self: center;
}

/* Remove underlines from web/email and phone links; keep them on hover */
.contact-block a {
  text-decoration: none;
}
.contact-block a:not(.contact-whatsapp):hover {
  text-decoration: underline;
  text-decoration-color: rgba(247, 242, 232, 0.5);
  text-underline-offset: 3px;
}

/* =========================================================
   v13 — Hero eyebrow dash removal + manifesto header one line
   ========================================================= */

/* (1) Remove the leading dash before the hero eyebrow */
.hero .eyebrow::before { content: none; }
.hero .eyebrow { padding-left: 0; }

/* (2) Manifesto: keep "01" and the question on a single line.
   The sidebar is narrow (~274px), so render them as plain inline
   text with a tighter size and no wrapping. */
.manifesto-meta .sec-num,
.manifesto-meta .sec-num + .eyebrow {
  display: inline;
  white-space: nowrap;
  vertical-align: baseline;
}
.manifesto-meta .sec-num + .eyebrow {
  font-size: 0.74rem;
  letter-spacing: 0.04em;
}
.manifesto-meta .sec-num + .eyebrow::before {
  display: inline-block;
  vertical-align: middle;
  width: 16px;
  margin: 0 6px 0 8px;
}

/* =========================================================
   v14 — Axes: numbered with compass-direction badge
   ========================================================= */

/* Header row: directional badge + number */
.axis-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

/* The compass badge: a ring with an arrow pointing to this axis' direction */
.axis-badge {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--forest-soft);
  flex-shrink: 0;
  transition: color var(--t-fast), transform var(--t-base);
}
.axis-badge svg { width: 100%; height: 100%; overflow: visible; }
.axis-badge .axis-arrow {
  transform-origin: 12px 12px;
  transition: fill var(--t-fast);
}
/* Cardinal letter, tiny, sits at the badge edge in the arrow's direction */
.axis-dir {
  position: absolute;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--clay);
  opacity: 0.85;
  pointer-events: none;
}

/* Rotate the arrow + place the cardinal letter per axis */
.axis-1 .axis-arrow { transform: rotate(0deg); }
.axis-2 .axis-arrow { transform: rotate(90deg); }
.axis-3 .axis-arrow { transform: rotate(180deg); }
.axis-4 .axis-arrow { transform: rotate(270deg); }

.axis-1 .axis-dir { top: -9px;  left: 50%; transform: translateX(-50%); }
.axis-2 .axis-dir { right: -9px; top: 50%;  transform: translateY(-50%); }
.axis-3 .axis-dir { bottom: -9px; left: 50%; transform: translateX(-50%); }
.axis-4 .axis-dir { left: -9px;  top: 50%;  transform: translateY(-50%); }

/* Bigger, bolder number */
.axis-num {
  font-family: var(--serif);
  font-style: normal;
  font-weight: 600;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--clay);
  letter-spacing: 0;
}

/* On hover: badge lifts toward its direction + colour shift */
.axis:hover .axis-badge { color: var(--forest); transform: scale(1.06); }
.axis:hover .axis-badge .axis-arrow { fill: var(--clay); }

/* =========================================================
   v14b — Compass needle reacts smoothly to axis hover
   ========================================================= */
.compass-needle.is-hovering {
  transition: transform 1100ms cubic-bezier(.2,.7,.2,1);
}
/* Highlight the matching cardinal label on the big compass while hovering */
.compass-svg .card-label { transition: fill 300ms ease, font-size 300ms ease; }

/* Active cardinal label highlight when hovering its axis */
.compass-svg .card-label.is-active {
  fill: var(--clay);
  font-size: 19px;
  opacity: 1;
  font-weight: 600;
}

/* =========================================================
   v15 — Axis header: number first, compass badge to its right
   ========================================================= */
.axis-mark .axis-num { order: 0; }
.axis-mark .axis-badge { order: 1; }

/* =========================================================
   v16 — Axes: number only (hide compass badge)
   ========================================================= */
.axis-badge { display: none; }
.axis-mark { margin-bottom: 8px; }
.axis-num {
  font-size: 2rem;
  display: inline-block;
}
