/* ════════════════════════════════════════════════════════════
   DE VOLTA A CASA — Cristina Matos e Mestre
   Warm linen paper, terracotta earth, olive from her garden.
   Cormorant Garamond (devotional, high-contrast) for display;
   Karla for reading. The spine of the page is O CAMINHO — a
   meandering line that draws itself as you scroll, because
   that is her own metaphor, not a decoration.
   Body type runs large: much of who reads this is 60+.
   ════════════════════════════════════════════════════════════ */

:root {
  --paper: #FBF7F0;
  --paper-2: #F3EADD;
  --card: #FFFDFA;
  --ink: #2C2621;
  --ink-soft: #574C42;
  --muted: #8E8073;
  --line: rgba(44, 38, 33, 0.11);
  --line-soft: rgba(44, 38, 33, 0.06);
  --terra: #B4613C;
  --terra-deep: #8E4A2C;
  --terra-soft: rgba(180, 97, 60, 0.1);
  --terra-line: rgba(180, 97, 60, 0.3);
  --olive: #6E7355;
  --display: "Cormorant Garamond", Georgia, serif;
  --sans: "Karla", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.75;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(180, 97, 60, 0.18); }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: -0.005em;
}
h1 em, h2 em, h3 em { font-style: italic; font-weight: 300; color: var(--terra); }
a { color: inherit; }
img { max-width: 100%; display: block; }

.eyebrow {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--terra);
}

/* ── Nav — full-width rule, not an island ───────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px clamp(20px, 5vw, 60px);
  background: rgba(251, 247, 240, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.brand { text-decoration: none; display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: block;
}
.brand-text { display: flex; flex-direction: column; gap: 1px; }
.brand b {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: 21px;
  letter-spacing: 0.01em;
  line-height: 1;
}
.brand small {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav-right { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px); }
.nav-links { display: flex; gap: clamp(14px, 2vw, 26px); }
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.25s;
}
.nav-links a:hover { color: var(--terra-deep); }
.nav-cta {
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  background: var(--terra);
  padding: 10px 21px;
  border-radius: 2px;
  white-space: nowrap;
  transition: background-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.nav-cta:hover { background: var(--terra-deep); transform: translateY(-1px); }
.nav-cta:active { transform: translateY(0.5px); }

/* ── Buttons ─────────────────────────────────────────────── */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 17px 32px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: var(--terra);
  border: none;
  border-radius: 2px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), transform 0.25s var(--ease);
  will-change: transform;
}
.cta:hover { background: var(--terra-deep); }
.cta svg { width: 17px; height: 17px; transition: transform 0.3s var(--ease); }
.cta:hover svg { transform: translateX(4px); }
.cta:active { transform: scale(0.985) !important; }
.cta.quiet {
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  padding: 16px 30px;
}
.cta.quiet:hover { border-color: var(--terra-line); background: var(--terra-soft); }

/* ── Hero — photo bleeds off the right edge ─────────────── */
.hero {
  position: relative;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
  gap: clamp(30px, 4vw, 60px);
  padding: 128px 0 72px clamp(20px, 5vw, 60px);
  overflow: hidden;
}
.hero-copy { max-width: 620px; }
.hero-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  opacity: 0;
  animation: fade 1s var(--ease) 0.1s forwards;
}
.hero-brand span { font-size: 11.5px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--terra); }
.hero-brand i { flex: 0 0 46px; height: 1px; background: var(--terra-line); }

.hero h1 {
  margin-top: 24px;
  font-size: clamp(2.5rem, 4.9vw, 4rem);
  letter-spacing: -0.015em;
}
.hero h1 .l { display: block; overflow: hidden; }
.hero h1 .l span {
  display: block;
  transform: translateY(112%);
  animation: lineUp 1.15s var(--ease) forwards;
}
.hero h1 .l:nth-child(2) span { animation-delay: 0.1s; }
.hero h1 .l:nth-child(3) span { animation-delay: 0.2s; }
.hero h1 .l:nth-child(4) span { animation-delay: 0.3s; }
@keyframes lineUp { to { transform: translateY(0); } }
@keyframes fade { to { opacity: 1; } }

.hero .sub {
  margin-top: 28px;
  max-width: 44ch;
  font-size: 17.5px;
  line-height: 1.85;
  color: var(--ink-soft);
  opacity: 0;
  animation: fadeUp 1s var(--ease) 0.55s forwards;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 38px;
  opacity: 0;
  animation: fadeUp 1s var(--ease) 0.7s forwards;
}
.hero-meta {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  max-width: 44ch;
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.01em;
  opacity: 0;
  animation: fadeUp 1s var(--ease) 0.85s forwards;
}
.hero-meta b { color: var(--ink-soft); font-weight: 600; }

.hero-photo {
  position: relative;
  align-self: stretch;
  /* cancel the hero's vertical padding so the photo bleeds top-to-bottom */
  margin: -128px 0 -72px;
  min-height: 380px;
  opacity: 0;
  animation: fade 1.4s var(--ease) 0.3s forwards;
}
.hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 30%;
}
/* soften the photo into the paper on the left + top/bottom */
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--paper) 0%, rgba(251,247,240,0.72) 16%, rgba(251,247,240,0) 46%),
    linear-gradient(to bottom, var(--paper) 0%, rgba(251,247,240,0) 22%, rgba(251,247,240,0) 78%, var(--paper) 100%);
}

/* ── Manifesto band ──────────────────────────────────────── */
.manifesto {
  position: relative;
  padding: clamp(78px, 10vw, 130px) clamp(20px, 5vw, 60px);
  background: var(--paper-2);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  text-align: center;
}
.manifesto p {
  max-width: 26ch;
  margin: 0 auto;
  text-wrap: balance;
  font-family: var(--display);
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
  font-weight: 300;
  line-height: 1.24;
  letter-spacing: -0.01em;
}
.manifesto p em { font-style: italic; color: var(--terra); }
.manifesto .mark {
  display: block;
  width: 34px;
  height: 1px;
  margin: 0 auto 30px;
  background: var(--terra-line);
}
.manifesto small {
  display: block;
  margin-top: 28px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Sections ────────────────────────────────────────────── */
.section { padding: clamp(84px, 11vw, 148px) clamp(20px, 5vw, 60px); }
.inner { max-width: 1180px; margin: 0 auto; }
.section h2 {
  margin-top: 16px;
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  max-width: 22ch;
  text-wrap: balance;
}
.section .lead {
  margin-top: 20px;
  max-width: 54ch;
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink-soft);
}

/* ── Story ("Era uma vez uma menina") ────────────────────── */
.story { background: var(--card); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.story .inner { max-width: 760px; }
.story-head { text-align: center; }
.story h2 { margin: 14px auto 0; max-width: 24ch; text-wrap: balance; }
.story-body {
  margin-top: clamp(40px, 5vw, 58px);
  font-size: clamp(1.06rem, 1.5vw, 1.22rem);
  line-height: 1.95;
  color: var(--ink-soft);
}
.story-body > p + p { margin-top: 1.3em; }
.story-body strong { font-weight: 600; color: var(--ink); }
.story-body .caps { font-weight: 600; color: var(--terra-deep); }
.story-body > p:first-child::first-letter {
  float: left;
  font-family: var(--display);
  font-size: 4.6em;
  line-height: 0.79;
  font-weight: 400;
  color: var(--terra);
  padding: 0.06em 0.1em 0 0;
}
.story-close {
  margin-top: clamp(36px, 4.5vw, 52px);
  padding-top: clamp(30px, 4vw, 42px);
  border-top: 1px solid var(--line);
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.4rem, 2.5vw, 1.95rem);
  line-height: 1.4;
  color: var(--ink);
}
.story-date {
  display: block;
  margin-top: 26px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── O Caminho — meandering scroll-drawn path ────────────── */
.path-section { position: relative; overflow: hidden; }
.path-wrap {
  position: relative;
  margin-top: clamp(48px, 6vw, 76px);
}
/* the corridor the meander lives in — nothing else may enter it */
.path-wrap { --corridor: clamp(150px, 24vw, 320px); }
.path-svg {
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: var(--corridor);
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.path-svg .trail { stroke: var(--line); stroke-width: 1.5; fill: none; }
.path-svg .drawn { stroke: var(--terra); stroke-width: 1.5; fill: none; }

.stop {
  position: relative;
  display: grid;
  grid-template-columns: 1fr var(--corridor) 1fr;
  gap: clamp(16px, 2.4vw, 34px);
  padding-bottom: clamp(52px, 7vw, 88px);
}
.stop:last-child { padding-bottom: 0; }
.stop-card { max-width: 36ch; }
.stop:nth-child(odd) .stop-card { grid-column: 1; text-align: right; margin-left: auto; }
.stop:nth-child(even) .stop-card { grid-column: 3; }
.stop-age {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1;
  color: var(--terra);
}
.stop h3 { margin-top: 10px; font-size: clamp(1.2rem, 1.9vw, 1.5rem); }
.stop p { margin-top: 10px; font-size: 15.5px; line-height: 1.8; color: var(--ink-soft); }
.stop-dot {
  position: absolute;
  top: 6px; left: 50%;
  width: 13px; height: 13px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--paper);
  border: 1.5px solid var(--line);
  transition: border-color 0.5s var(--ease), background-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.stop.lit .stop-dot { border-color: var(--terra); background: var(--terra); box-shadow: 0 0 0 6px var(--terra-soft); }

/* ── Five dimensions ─────────────────────────────────────── */
.dims { background: var(--paper-2); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.dims-grid {
  margin-top: clamp(44px, 6vw, 66px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 6vw, 84px);
  align-items: center;
}
.rings { width: 100%; max-width: 420px; height: auto; margin: 0 auto; }
.rings circle { fill: none; stroke: var(--terra); stroke-width: 1.4; transition: opacity 0.45s var(--ease), stroke-width 0.45s var(--ease); }
.rings circle.dim-ring { opacity: 0.24; }
.rings circle.dim-ring.on { opacity: 1; stroke-width: 2.4; }
.rings .core { fill: var(--terra); stroke: none; }
.dim-list { display: flex; flex-direction: column; }
.dim {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 18px;
  align-items: baseline;
  padding: clamp(15px, 2vw, 20px) 0;
  border-bottom: 1px solid var(--line);
  cursor: default;
  transition: padding-left 0.35s var(--ease);
}
.dim:first-child { border-top: 1px solid var(--line); }
.dim:hover, .dim.on { padding-left: 10px; }
.dim-i {
  font-family: var(--display);
  font-style: italic;
  font-size: 15px;
  color: var(--terra);
}
.dim h3 { font-size: clamp(1.22rem, 2vw, 1.55rem); }
.dim p { margin-top: 4px; font-size: 15px; line-height: 1.7; color: var(--ink-soft); }

/* ── Áreas — editorial index ─────────────────────────────── */
.areas-list { margin-top: clamp(44px, 6vw, 66px); border-top: 1px solid var(--line); }
.area {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(20px, 5vw, 70px);
  padding: clamp(24px, 3.2vw, 36px) 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.35s var(--ease), background-color 0.35s var(--ease);
}
.area:hover { padding-left: 12px; }
.area h3 { font-size: clamp(1.28rem, 2.1vw, 1.72rem); }
.area p { font-size: 15.5px; line-height: 1.8; color: var(--ink-soft); max-width: 52ch; }

.who {
  margin-top: clamp(40px, 5vw, 56px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.who span {
  font-size: 14px;
  font-weight: 500;
  padding: 9px 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: var(--card);
}
.who b {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 6px;
}

/* ── Formação ────────────────────────────────────────────── */
.training { background: var(--card); border-top: 1px solid var(--line-soft); }
.training-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(36px, 6vw, 90px);
  align-items: start;
}
.tr-block + .tr-block { margin-top: clamp(30px, 4vw, 42px); }
.tr-block h3 {
  font-size: 12px;
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terra);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.tr-block ul { list-style: none; }
.tr-block li {
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 15.5px;
  color: var(--ink-soft);
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.tr-block li b { font-weight: 500; color: var(--ink); }
.tr-block li i {
  font-family: var(--display);
  font-style: italic;
  font-size: 15px;
  color: var(--muted);
  white-space: nowrap;
}
.tr-note { margin-top: 22px; font-size: 14.5px; color: var(--muted); line-height: 1.75; }

/* ── Consultas ───────────────────────────────────────────── */
.booking { background: var(--paper-2); border-top: 1px solid var(--line-soft); }
.booking-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.rate-table { margin-top: 32px; border-top: 1px solid var(--line); }
.rate {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.rate span { font-size: 16px; color: var(--ink-soft); }
.rate span small { display: block; font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.rate b {
  font-family: var(--display);
  font-size: 25px;
  font-weight: 500;
  white-space: nowrap;
}
.rate b i { font-style: italic; font-weight: 300; font-size: 17px; color: var(--terra); }

.steps { margin-top: 32px; border-top: 1px solid var(--line); }
.b-step {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.b-step i { font-family: var(--display); font-style: italic; font-size: 16px; color: var(--terra); }
.b-step h3 { font-size: 1.2rem; }
.b-step p { margin-top: 4px; font-size: 15px; color: var(--ink-soft); line-height: 1.72; }
.booking .cta { margin-top: 34px; }
.booking-note { display: block; margin-top: 16px; font-size: 13.5px; color: var(--muted); line-height: 1.7; }

/* ── Final ───────────────────────────────────────────────── */
.final {
  position: relative;
  text-align: center;
  padding: clamp(96px, 13vw, 168px) clamp(20px, 5vw, 60px);
  overflow: hidden;
  isolation: isolate;
}
.final::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(60% 62% at 50% 106%, rgba(180, 97, 60, 0.13), transparent 66%);
}
.final h2 {
  margin: 18px auto 0;
  max-width: 17ch;
  font-size: clamp(2.2rem, 4.8vw, 3.5rem);
}
.final .lead { margin: 22px auto 0; max-width: 44ch; }
.final .cta { margin-top: 38px; }

/* footer */
footer {
  border-top: 1px solid var(--line-soft);
  padding: 32px clamp(20px, 5vw, 60px);
  font-size: 13.5px;
  color: var(--muted);
  background: var(--card);
}
.foot {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 34px;
  justify-content: space-between;
}
footer a { color: var(--ink-soft); text-decoration: none; }
footer a:hover { color: var(--terra-deep); }

/* reveal */
.rv { opacity: 0; transform: translateY(22px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv2 { transition-delay: 0.1s; }
.rv3 { transition-delay: 0.2s; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1000px) {
  .nav-links { display: none; }
  .hero {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 108px clamp(20px, 5vw, 60px) 64px;
    min-height: 0;
  }
  .hero-copy { order: 2; max-width: none; }
  .hero-photo {
    order: 1;
    height: 62vw;
    max-height: 440px;
    min-height: 300px;
    margin: 0 calc(-1 * clamp(20px, 5vw, 60px)) 34px;
  }
  .hero-photo::after {
    background:
      linear-gradient(to bottom, rgba(251,247,240,0.55) 0%, rgba(251,247,240,0) 30%, rgba(251,247,240,0) 62%, var(--paper) 99%);
  }
  .dims-grid, .training-grid, .booking-grid { grid-template-columns: 1fr; }
  .area { grid-template-columns: 1fr; gap: 8px; }
  .rings { max-width: 300px; }

  /* the meander can't survive a phone's width — it becomes a clean rail */
  .path-svg { display: none; }
  .path-wrap::before {
    content: "";
    position: absolute;
    top: 8px; bottom: 8px; left: 14px;
    width: 1px;
    background: var(--line);
  }
  .stop { grid-template-columns: 1fr; gap: 0; padding-left: 38px; }
  .stop:nth-child(odd) .stop-card,
  .stop:nth-child(even) .stop-card { grid-column: 1; text-align: left; margin-left: 0; max-width: none; }
  .stop-dot { left: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .hero h1 .l span { transform: none; }
  .hero-brand, .hero .sub, .hero-actions, .hero-meta, .hero-photo { opacity: 1; }
  .rv { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ════════════════════════════════════════════════════════════
   ESCRITOS — the writing page
   Her own texts, set as an editorial reader. Long-form measure,
   generous leading, oldstyle numerals in the dates.
   ════════════════════════════════════════════════════════════ */

.nav-links a.on { color: var(--terra); }

/* page header for inner pages */
.page-head {
  padding: clamp(128px, 15vw, 190px) clamp(20px, 5vw, 60px) clamp(46px, 6vw, 72px);
  text-align: center;
  border-bottom: 1px solid var(--line-soft);
  background: var(--paper-2);
}
.page-head h1 {
  margin-top: 16px;
  font-size: clamp(2.6rem, 6vw, 4.2rem);
}
.page-head .lead {
  margin: 22px auto 0;
  max-width: 46ch;
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink-soft);
}
.page-head .authorial {
  display: block;
  margin-top: 30px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

/* index of pieces */
.index-wrap { padding: clamp(56px, 7vw, 88px) clamp(20px, 5vw, 60px) 0; }
.index-list { max-width: 780px; margin: 0 auto; border-top: 1px solid var(--line); }
.index-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: padding-left 0.35s var(--ease);
}
.index-item:hover { padding-left: 12px; }
.index-item h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.15rem, 1.9vw, 1.45rem);
  line-height: 1.3;
  transition: color 0.3s;
}
.index-item:hover h2 { color: var(--terra-deep); }
.index-item time, .index-item .age {
  font-family: var(--display);
  font-style: italic;
  font-size: 15px;
  color: var(--muted);
  white-space: nowrap;
}

/* the pieces themselves */
.pieces { padding: clamp(64px, 8vw, 110px) clamp(20px, 5vw, 60px) 0; }
.piece {
  max-width: 720px;
  margin: 0 auto;
  padding-bottom: clamp(64px, 9vw, 120px);
}
.piece + .piece { border-top: 1px solid var(--line); padding-top: clamp(64px, 9vw, 110px); }
.piece-head { text-align: center; }
.piece-head time, .piece-head .age {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terra);
}
.piece-head h2 {
  margin-top: 14px;
  font-size: clamp(1.85rem, 3.6vw, 2.7rem);
  text-wrap: balance;
}
.piece-head .attrib {
  display: block;
  margin-top: 14px;
  font-size: 14px;
  font-style: italic;
  font-family: var(--display);
  color: var(--muted);
}
.piece-body {
  margin-top: clamp(34px, 4.5vw, 50px);
  font-size: clamp(1.04rem, 1.45vw, 1.18rem);
  line-height: 1.95;
  color: var(--ink-soft);
}
.piece-body > p + p { margin-top: 1.3em; }
.piece-body strong { font-weight: 600; color: var(--ink); }
.piece-body .caps { font-weight: 600; color: var(--terra-deep); }
.piece-body em { font-style: italic; }
/* opt-in: pieces that open with dialogue (—) must not take a drop cap */
.piece-body.dropcap > p:first-child::first-letter {
  float: left;
  font-family: var(--display);
  font-size: 4.6em;
  line-height: 0.79;
  font-weight: 400;
  color: var(--terra);
  padding: 0.06em 0.1em 0 0;
}
.piece-end {
  display: block;
  width: 30px;
  height: 1px;
  margin: clamp(34px, 4vw, 48px) auto 0;
  background: var(--terra-line);
}

/* link from the homepage story out to the full writing */
.story-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  font-size: 15px;
  font-weight: 600;
  color: var(--terra-deep);
  text-decoration: none;
  border-bottom: 1px solid var(--terra-line);
  padding-bottom: 3px;
  transition: gap 0.3s var(--ease), border-color 0.3s;
}
.story-more:hover { gap: 15px; border-color: var(--terra); }
.story-more svg { width: 15px; height: 15px; }

/* ── Testemunhos (homepage teaser) ───────────────────────── */
.testimonial-list { margin-top: clamp(40px, 5vw, 56px); border-top: 1px solid var(--line); }
.testimonial-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: baseline;
  padding: clamp(24px, 3vw, 32px) 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.35s var(--ease);
}
.testimonial-row:hover { padding-left: 10px; }
.testimonial-row p {
  font-family: var(--display);
  font-size: clamp(1.1rem, 1.7vw, 1.35rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.55;
  color: var(--ink);
  max-width: 58ch;
}
.testimonial-row p::before { content: "\201C"; color: var(--terra); font-style: normal; }
.testimonial-row p::after { content: "\201D"; color: var(--terra); font-style: normal; }
.testimonial-row cite {
  font-style: normal;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

/* ── Modalidades (accordion of consultation types) ───────── */
.modality-list { margin-top: clamp(40px, 5vw, 56px); border-top: 1px solid var(--line); }
.modality-item { border-bottom: 1px solid var(--line); }
.modality-q {
  width: 100%;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(22px, 2.8vw, 28px) 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}
.modality-q-left { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.modality-name {
  font-family: var(--display);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  color: var(--ink);
  transition: color 0.3s;
}
.modality-q:hover .modality-name { color: var(--terra-deep); }
.modality-price {
  font-family: var(--display);
  font-style: italic;
  font-size: 15px;
  color: var(--terra);
  white-space: nowrap;
}
.modality-q .sign {
  flex: 0 0 auto;
  position: relative;
  width: 15px; height: 15px;
  align-self: center;
}
.modality-q .sign::before, .modality-q .sign::after {
  content: "";
  position: absolute;
  background: var(--terra);
  transition: transform 0.4s var(--ease), opacity 0.3s;
}
.modality-q .sign::before { top: 7px; left: 0; width: 15px; height: 1.5px; }
.modality-q .sign::after { left: 6.75px; top: 0; width: 1.5px; height: 15px; }
.modality-item.open .modality-q .sign::after { transform: scaleY(0); opacity: 0; }
.modality-a { overflow: hidden; max-height: 0; transition: max-height 0.6s var(--ease); }
.modality-a-in {
  padding-bottom: clamp(24px, 3vw, 32px);
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink-soft);
  max-width: 66ch;
}
.modality-a-in p + p { margin-top: 1.1em; }
.modality-a-in h4 {
  margin-top: 1.4em;
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terra);
}
.modality-a-in h4:first-child { margin-top: 0; }
.modality-a-in ul { margin-top: 0.6em; padding-left: 1.2em; }
.modality-a-in li { margin-top: 0.4em; }
.modality-a-in em { font-style: italic; color: var(--terra-deep); }


@media (max-width: 1000px) {
  .index-item { grid-template-columns: 1fr; gap: 4px; }
  .testimonial-row { grid-template-columns: 1fr; gap: 8px; }
  .modality-q { flex-wrap: wrap; row-gap: 8px; }
}

/* ── Nav — Instagram icon button ─────────────────────────── */
.nav-ig {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-soft);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.nav-ig svg { width: 17px; height: 17px; }
.nav-ig:hover {
  color: var(--terra-deep);
  border-color: var(--terra-line);
  transform: translateY(-1px);
}
