:root {
  --forest: #1f2c24;
  --forest-deep: #121b16;
  --sage: #9cad8f;
  --sage-light: #c4cfb9;
  --sand: #eee7dc;
  --sand-dim: rgba(238, 231, 220, 0.72);
  --sand-faint: rgba(238, 231, 220, 0.48);
  --terracotta: #c67d5b;
  --terracotta-light: #dda182;
  --line: rgba(238, 231, 220, 0.14);
  --line-strong: rgba(238, 231, 220, 0.25);
  --font-body: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 300px;
  position: relative;
  isolation: isolate;
  background: var(--forest-deep);
  color: var(--sand);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.modal-open { overflow: hidden; }
body.is-loading,
body.share-open { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, dl, dd, dt, ol, ul { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.site-backdrop {
  position: fixed;
  z-index: -1;
  inset: -3vh -2vw;
  pointer-events: none;
  background:
    linear-gradient(rgba(18, 27, 22, .76), rgba(18, 27, 22, .9)),
    url("assets/therapy-office-background.png") center / cover no-repeat;
  transform: translateZ(0) scale(1.02);
  transform-origin: center;
  backface-visibility: hidden;
  will-change: transform;
}

:focus-visible {
  outline: 2px solid var(--terracotta-light);
  outline-offset: 4px;
}

.site-loader {
  display: none;
  position: fixed;
  z-index: 10000;
  inset: 0;
  grid-template-rows: auto 1fr auto;
  padding: clamp(1.5rem, 5vw, 4rem);
  overflow: hidden;
  background: var(--forest-deep);
  color: var(--sand);
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.15s cubic-bezier(.76, 0, .24, 1);
}
.js .site-loader { display: grid; animation: loader-failsafe .7s ease 5s forwards; }
.site-loader[hidden] { display: none; }
.site-loader::before,
.site-loader::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.site-loader::before {
  inset: 0;
  opacity: .28;
  background:
    linear-gradient(90deg, transparent 49.9%, rgba(238, 231, 220, .12) 50%, transparent 50.1%),
    linear-gradient(rgba(238, 231, 220, .04) 1px, transparent 1px);
  background-size: 100% 100%, 100% 9vh;
}
.site-loader::after {
  inset: 0;
  background: radial-gradient(circle at 50% 52%, transparent 0, rgba(7, 12, 9, .48) 72%);
}
.site-loader.is-leaving { clip-path: inset(0 0 100% 0); }
.site-loader__halo {
  display: none;
}
.site-loader__brand,
.site-loader__center,
.site-loader__progress {
  position: relative;
  z-index: 2;
}
.site-loader__brand {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .02em;
}
.site-loader__center {
  align-self: center;
  display: grid;
  justify-items: center;
  gap: 1.5rem;
  color: var(--sage-light);
  font-size: .65rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.site-loader__pulse {
  position: relative;
  width: clamp(7rem, 18vw, 10rem);
  height: 1.5rem;
}
.site-loader__pulse::before,
.site-loader__pulse::after {
  content: "";
  position: absolute;
  width: 64%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(238, 231, 220, .72), transparent);
  transform-origin: center;
}
.site-loader__pulse::before {
  top: .35rem;
  left: 0;
  animation: loader-line-forward 1.9s var(--ease) infinite;
}
.site-loader__pulse::after {
  right: 0;
  bottom: .35rem;
  background: linear-gradient(90deg, transparent, var(--terracotta-light), transparent);
  animation: loader-line-back 1.9s var(--ease) infinite;
}
.site-loader__pulse i {
  display: none;
}
.site-loader__progress {
  display: grid;
  grid-template-columns: auto minmax(5rem, 14rem);
  align-items: end;
  gap: .4rem 1rem;
}
.site-loader__count {
  min-width: 2ch;
  font-size: clamp(2.6rem, 8vw, 5rem);
  font-weight: 500;
  line-height: .8;
  letter-spacing: -.08em;
}
.site-loader__track {
  align-self: center;
  height: 1px;
  overflow: hidden;
  background: rgba(238, 231, 220, .18);
}
.site-loader__track i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--terracotta-light);
  transform: scaleX(0);
  transform-origin: left;
}
.site-loader__progress small {
  grid-column: 2;
  color: var(--sand-faint);
  font-size: .6rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
@keyframes loader-line-forward {
  0%, 100% { opacity: .25; transform: translateX(-12%) scaleX(.72); }
  50% { opacity: .9; transform: translateX(68%) scaleX(1); }
}
@keyframes loader-line-back {
  0%, 100% { opacity: .8; transform: translateX(12%) scaleX(1); }
  50% { opacity: .2; transform: translateX(-68%) scaleX(.72); }
}
@keyframes loader-failsafe {
  to { opacity: 0; visibility: hidden; pointer-events: none; }
}

.custom-cursor {
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 45px;
  height: 45px;
  border: 1px solid rgba(255, 255, 255, .96);
  border-radius: 50%;
  background: rgba(255, 255, 255, .02);
  opacity: 0;
  mix-blend-mode: difference;
  pointer-events: none;
  will-change: transform, width, height, opacity;
  transition:
    width .3s var(--ease),
    height .3s var(--ease),
    background-color .3s ease,
    border-color .3s ease,
    opacity .2s ease;
}
.custom-cursor.is-visible { opacity: 1; }
.custom-cursor.is-hovering {
  width: 68px;
  height: 68px;
  background: rgba(255, 255, 255, .14);
}
.custom-cursor.is-down {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, .22);
}
.custom-cursor.is-hidden { opacity: 0; }

@media (pointer: fine) {
  html.has-custom-cursor,
  html.has-custom-cursor body,
  html.has-custom-cursor a,
  html.has-custom-cursor button,
  html.has-custom-cursor select,
  html.has-custom-cursor [data-tilt] {
    cursor: none !important;
  }
}

.space-canvas {
  position: fixed;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.65;
  mix-blend-mode: screen;
}

.header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem var(--gutter);
  background: rgba(18, 27, 22, 0.76);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: background .45s ease, border-color .45s ease, backdrop-filter .45s ease;
}

.brand {
  display: flex;
  align-items: center;
  font-weight: 600;
}

.nav { display: flex; align-items: center; gap: 2rem; }
.nav a {
  color: var(--sand-dim);
  font-size: 0.88rem;
  transition: color .25s ease;
}
.nav a:hover, .nav a.is-active { color: var(--sand); }
.nav__cta {
  padding: 0.6rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}

.nav-toggle {
  display: none;
  position: relative;
  place-items: center;
  width: 58px;
  height: 58px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
}
.nav-toggle::before {
  content: "";
  position: absolute;
  inset: 2px;
  border: 1px solid rgba(238, 231, 220, .46);
  border-left-color: transparent;
  border-radius: 50%;
  opacity: 0;
  transform: rotate(-120deg) scale(.72);
  transition: opacity .35s ease, transform .85s cubic-bezier(.16, 1, .3, 1);
}
.nav-toggle span {
  position: absolute;
  width: 25px;
  height: 1px;
  background: var(--sand);
  transform-origin: center;
  transition:
    transform .75s cubic-bezier(.16, 1, .3, 1),
    opacity .3s ease,
    width .55s var(--ease);
}
.nav-toggle span:nth-child(1) { transform: translateY(-6px); }
.nav-toggle span:nth-child(2) { transform: translateY(0); }
.nav-toggle span:nth-child(3) { transform: translateY(6px); }
.nav-toggle[aria-expanded="true"]::before {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  width: 0;
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg);
}

.depth-nav {
  position: fixed;
  z-index: 80;
  top: 50%;
  right: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transform: translateY(-50%);
}
.depth-nav a {
  position: relative;
  width: 9px;
  height: 9px;
  border: 1px solid var(--sand-faint);
  border-radius: 50%;
  transition: transform .35s var(--ease), background .35s var(--ease);
}
.depth-nav a.is-active {
  background: var(--terracotta-light);
  border-color: var(--terracotta-light);
  transform: scale(1.35);
}
.depth-nav span {
  position: absolute;
  right: 1.25rem;
  top: 50%;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(18, 27, 22, 0.85);
  color: var(--sand);
  font-size: 0.68rem;
  opacity: 0;
  pointer-events: none;
  transform: translate(8px, -50%);
  transition: opacity .2s ease, transform .2s ease;
}
.depth-nav a:hover span { opacity: 1; transform: translate(0, -50%); }

main {
  position: relative;
  z-index: 1;
  perspective: 1400px;
  perspective-origin: 50% 50vh;
}

.depth-section {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: clamp(7rem, 12vw, 10rem) var(--gutter) clamp(5rem, 10vw, 8rem);
  perspective: 1400px;
  scroll-margin-top: 4rem;
}

.depth-panel {
  width: min(68rem, 100%);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid var(--line-strong);
  border-radius: clamp(20px, 2.5vw, 30px);
  background: linear-gradient(145deg, rgba(31, 44, 36, 0.72), rgba(18, 27, 22, 0.52));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.055), 0 28px 80px rgba(7, 12, 9, .24);
  backdrop-filter: blur(16px) saturate(110%);
  -webkit-backdrop-filter: blur(16px) saturate(110%);
  transform-style: preserve-3d;
  will-change: transform, opacity;
}

.hero__panel {
  max-width: 46rem;
  margin-left: max(0px, calc((100% - 68rem) / 2));
  background: linear-gradient(145deg, rgba(31, 44, 36, 0.66), rgba(18, 27, 22, 0.38));
}

.eyebrow {
  margin-bottom: 1rem;
  color: var(--sage-light);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1, h2 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.05em;
}
h1 { max-width: 9ch; font-size: clamp(3rem, 7vw, 5.4rem); }
h1 em { color: var(--terracotta-light); font-style: normal; }
h2 { font-size: clamp(2.15rem, 5vw, 3.65rem); }
h3 { font-size: 1.05rem; line-height: 1.3; }

.hero__lead {
  max-width: 42ch;
  margin-top: 1.5rem;
  color: var(--sand-dim);
  font-size: clamp(1rem, 2vw, 1.14rem);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.hero__note { margin-top: 1.25rem; color: var(--sand-faint); font-size: 0.78rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: inherit;
  font-weight: 600;
  font-size: 0.88rem;
  transition: transform .3s var(--ease), background .3s ease, border-color .3s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--terracotta); color: var(--forest-deep); }
.btn--primary:hover { background: var(--terracotta-light); }
.btn--soft { background: rgba(238, 231, 220, .06); border-color: var(--line-strong); }
.btn--soft:hover { border-color: var(--sage-light); }

.section-head { max-width: 38rem; margin-bottom: clamp(2rem, 5vw, 3rem); }
.section-head > p:last-child {
  max-width: 48ch;
  margin-top: 1rem;
  color: var(--sand-dim);
}
.service-panel {
  width: min(52rem, 100%);
  margin-left: max(0px, calc((100% - 68rem) / 2));
}
.service-panel .section-head { margin-bottom: 2rem; }

.topic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; perspective: 900px; }
.topic-card {
  min-height: 11.5rem;
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(238, 231, 220, .045);
  transform-style: preserve-3d;
  transition:
    transform .38s cubic-bezier(.16, .76, .22, 1),
    border-color .3s ease,
    background .3s ease;
}
.topic-card:hover { background: rgba(238, 231, 220, .075); border-color: var(--line-strong); }
.topic-card > span { display: block; margin-bottom: 2.2rem; color: var(--terracotta-light); font-size: .75rem; }
.topic-card h3 { margin-bottom: .5rem; }
.topic-card p { color: var(--sand-dim); font-size: .9rem; }

.about-panel { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 8vw, 7rem); }
.about-panel__role { margin-top: .6rem; color: var(--sage-light); font-size: .82rem; }
.about-panel__copy { display: flex; flex-direction: column; gap: 1rem; color: var(--sand-dim); }
.about-panel__copy > p:first-child { color: var(--sand); font-size: clamp(1.15rem, 2.5vw, 1.5rem); line-height: 1.45; }
.about-panel__copy ul { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .7rem; }
.about-panel__copy li {
  padding: .45rem .75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .76rem;
}

.content-panel { overflow: hidden; }
.content-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(2rem, 5vw, 3.2rem);
}
.content-head > a {
  color: var(--sage-light);
  font-size: .78rem;
  white-space: nowrap;
}
.media-grid {
  display: grid;
  grid-template-columns: 1.2fr .9fr .9fr;
  gap: 1rem;
  perspective: 900px;
}
.media-card {
  min-height: 18rem;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(238, 231, 220, .045);
  transform-style: preserve-3d;
  transition:
    transform .38s cubic-bezier(.16, .76, .22, 1),
    border-color .3s ease,
    background .3s ease;
}
.media-card:hover {
  border-color: var(--line-strong);
  background: rgba(238, 231, 220, .075);
}
.media-card--podcast {
  background: linear-gradient(145deg, rgba(198, 125, 91, .2), rgba(238, 231, 220, .04));
}
.media-card__top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--sage-light);
  font-size: .67rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.media-card h3 {
  max-width: 18ch;
  margin-top: auto;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  letter-spacing: -.025em;
}
.media-card p {
  max-width: 34ch;
  margin-top: .55rem;
  color: var(--sand-dim);
  font-size: .84rem;
}
.media-card__cta {
  margin-top: 1.25rem;
  color: var(--terracotta-light);
  font-size: .76rem;
}
.waveform {
  height: 4rem;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 1.5rem;
}
.waveform i {
  width: 3px;
  height: 20%;
  border-radius: 999px;
  background: var(--terracotta-light);
  opacity: .8;
  animation: wave 1.8s ease-in-out infinite alternate;
}
.waveform i:nth-child(2n) { height: 62%; animation-delay: -.4s; }
.waveform i:nth-child(3n) { height: 92%; animation-delay: -.8s; }
.waveform i:nth-child(4n) { height: 42%; animation-delay: -1.2s; }
@keyframes wave {
  to { transform: scaleY(.45); opacity: .45; }
}

.contact-panel { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 7vw, 6rem); }
.contact-panel__lead { max-width: 38ch; margin-top: 1rem; color: var(--sand-dim); }
.contact-list { display: grid; gap: 1rem; margin-top: 2rem; }
.contact-list dt { color: var(--sand-faint); font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; }
.contact-list dd { margin-top: .2rem; font-size: .9rem; }

.contact-form {
  display: grid;
  gap: 1rem;
  padding: clamp(1.3rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(18, 27, 22, .5);
}
.contact-form label { display: grid; gap: .4rem; color: var(--sand-faint); font-size: .75rem; }
.contact-form small { color: inherit; font-size: inherit; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(31, 44, 36, .7);
  color: var(--sand);
  padding: .8rem .9rem;
  outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--sage-light); }
textarea { resize: vertical; }
.form-error { display: none; color: #e7a38b; font-size: .72rem; }
label.is-invalid .form-error { display: block; }
label.is-invalid input, label.is-invalid select { border-color: #e7a38b; }
.form-note { color: var(--sand-faint); font-size: .7rem; text-align: center; }

.footer {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem var(--gutter);
  border-top: 1px solid var(--line);
  background: rgba(18, 27, 22, .8);
  color: var(--sand-faint);
  font-size: .72rem;
}

.confirm {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(9, 14, 11, .78);
}
.confirm[hidden] { display: none; }
.confirm__panel {
  width: min(28rem, 100%);
  padding: 2rem;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background: var(--forest);
  text-align: center;
}
.confirm__panel > p:not(.eyebrow) { margin: .8rem 0 1.5rem; color: var(--sand-dim); }

.mobile-share-trigger,
.share-overlay { display: none; }

@media (max-width: 820px) {
  .site-backdrop {
    inset: -2svh -2vw;
    background:
      linear-gradient(rgba(18, 27, 22, .7), rgba(18, 27, 22, .91)),
      url("assets/therapy-office-background-mobile-divan.jpg") center 46% / cover no-repeat;
    transform: translateZ(0) scale(1.015);
  }
  body.menu-open { overflow: hidden; }
  main {
    transition:
      opacity 1.05s cubic-bezier(.16, 1, .3, 1),
      filter 1.12s cubic-bezier(.16, 1, .3, 1);
  }
  body.menu-open main {
    opacity: .08;
    filter: blur(10px);
    pointer-events: none;
  }
  body.menu-open .header {
    background: transparent;
    border-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .nav {
    position: fixed;
    z-index: -1;
    inset: 0;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: .2rem;
    padding: 7rem var(--gutter) 3rem;
    overflow-y: auto;
    background-color: rgba(18, 27, 22, .08);
    border: 0;
    opacity: 0;
    visibility: hidden;
    clip-path: circle(0% at calc(100% - 2.8rem) 2.8rem);
    backdrop-filter: blur(2px) saturate(100%);
    -webkit-backdrop-filter: blur(2px) saturate(100%);
    transition:
      clip-path 1.05s cubic-bezier(.16, 1, .3, 1),
      opacity .72s cubic-bezier(.22, .61, .36, 1),
      background-color .88s ease,
      backdrop-filter .92s cubic-bezier(.22, .61, .36, 1),
      -webkit-backdrop-filter .92s cubic-bezier(.22, .61, .36, 1),
      visibility 0s linear 1.05s;
  }
  .nav::before {
    content: "Navegação";
    position: absolute;
    top: 7.5rem;
    left: var(--gutter);
    color: var(--sage-light);
    font-size: .65rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .55s ease .15s, transform .75s var(--ease) .15s;
  }
  .nav.is-open {
    background-color: rgba(18, 27, 22, .78);
    opacity: 1;
    visibility: visible;
    clip-path: circle(150% at calc(100% - 2.8rem) 2.8rem);
    backdrop-filter: blur(34px) saturate(135%);
    -webkit-backdrop-filter: blur(34px) saturate(135%);
    transition:
      clip-path 1.15s cubic-bezier(.16, 1, .3, 1),
      opacity .78s cubic-bezier(.16, 1, .3, 1),
      background-color .95s ease .04s,
      backdrop-filter 1.05s cubic-bezier(.16, 1, .3, 1) .04s,
      -webkit-backdrop-filter 1.05s cubic-bezier(.16, 1, .3, 1) .04s,
      visibility 0s;
  }
  .nav.is-open::before { opacity: 1; transform: translateY(0); }
  .nav a {
    width: 100%;
    padding: .15rem 0;
    color: var(--sand);
    font-size: clamp(1.85rem, 7.5vw, 2.8rem);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -.055em;
    opacity: 0;
    transform: translate3d(0, 34px, -100px) rotateX(-12deg);
    transform-origin: left center;
    transition:
      color .25s ease,
      opacity .4s ease,
      transform .5s var(--ease);
  }
  .nav.is-open a {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotateX(0);
    transition:
      color .25s ease,
      opacity .7s ease,
      transform .9s cubic-bezier(.16, 1, .3, 1);
  }
  .nav.is-open a:nth-child(1) { transition-delay: .14s; }
  .nav.is-open a:nth-child(2) { transition-delay: .2s; }
  .nav.is-open a:nth-child(3) { transition-delay: .26s; }
  .nav.is-open a:nth-child(4) { transition-delay: .32s; }
  .nav__cta { border: 0; border-radius: 0; }
  .nav-toggle { display: grid; z-index: 2; }
  .depth-nav { display: none; }
  h1 { font-size: clamp(2.55rem, 10.5vw, 3.75rem); }
  h2 { font-size: clamp(1.9rem, 8vw, 2.75rem); }
  .topic-grid, .about-panel, .contact-panel { grid-template-columns: 1fr; }
  .media-grid { grid-template-columns: 1fr; }
  .media-card { min-height: 14rem; }
  .content-head { align-items: start; flex-direction: column; }
  .topic-card { min-height: auto; }
  .topic-card > span { margin-bottom: 2rem; }
  .depth-section { min-height: auto; padding-top: 7rem; padding-bottom: 4rem; }
  .hero { min-height: 100svh; }
  .hero__panel { margin: auto; }
}

.mobile-share-trigger {
    position: fixed;
    z-index: 85;
    right: 1rem;
    bottom: max(1rem, env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    gap: .65rem;
    min-height: 3rem;
    padding: .65rem .7rem .65rem 1rem;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: rgba(18, 27, 22, .68);
    box-shadow: 0 12px 34px rgba(7, 12, 9, .28);
    color: var(--sand);
    backdrop-filter: blur(18px) saturate(125%);
    -webkit-backdrop-filter: blur(18px) saturate(125%);
    transition: opacity .3s ease, transform .45s var(--ease);
  }
  .mobile-share-trigger span {
    font-size: .75rem;
    font-weight: 600;
  }
  .mobile-share-trigger i {
    display: grid;
    place-items: center;
    width: 2rem;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--terracotta);
    color: var(--forest-deep);
    font-style: normal;
  }
  body.menu-open .mobile-share-trigger,
  body.share-open .mobile-share-trigger {
    opacity: 0;
    pointer-events: none;
    transform: translateY(1rem);
  }

  .share-overlay {
    position: fixed;
    z-index: 300;
    inset: 0;
    display: grid;
    grid-template-rows: 1fr auto;
    place-items: center;
    gap: 1rem;
    padding:
      max(4.5rem, env(safe-area-inset-top))
      1.25rem
      max(1.5rem, env(safe-area-inset-bottom));
    overflow: hidden;
    background:
      radial-gradient(circle at 50% 36%, rgba(198, 125, 91, .15), transparent 34%),
      rgba(10, 16, 13, .72);
    opacity: 0;
    visibility: hidden;
    backdrop-filter: blur(32px) saturate(130%);
    -webkit-backdrop-filter: blur(32px) saturate(130%);
    transition: opacity .45s ease, visibility 0s linear .45s;
  }
  .share-overlay[hidden] { display: none; }
  .share-overlay.is-open {
    opacity: 1;
    visibility: visible;
    transition: opacity .5s ease, visibility 0s;
  }
  .share-overlay__close {
    position: absolute;
    z-index: 2;
    top: max(1rem, env(safe-area-inset-top));
    right: 1rem;
    display: grid;
    place-items: center;
    width: 3rem;
    aspect-ratio: 1;
    padding: 0;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: rgba(238, 231, 220, .06);
    color: var(--sand);
    font-size: 1.5rem;
    font-weight: 300;
  }
  .share-stage {
    width: min(78vw, 20rem);
    perspective: 1000px;
    transform: translateY(2.2rem) scale(.88);
    opacity: 0;
    transition:
      transform .9s cubic-bezier(.16, 1, .3, 1) .08s,
      opacity .55s ease .08s;
  }
  .share-overlay.is-open .share-stage {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  .share-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    aspect-ratio: .68;
    padding: 1.45rem;
    overflow: hidden;
    border: 1px solid rgba(238, 231, 220, .34);
    border-radius: 27px;
    background:
      linear-gradient(145deg, rgba(49, 68, 56, .94), rgba(18, 27, 22, .9));
    box-shadow:
      0 34px 70px rgba(4, 8, 6, .54),
      inset 0 1px 0 rgba(255, 255, 255, .13);
    transform-style: preserve-3d;
    will-change: transform;
    animation: share-card-float 5.5s ease-in-out infinite;
    touch-action: none;
    user-select: none;
    cursor: grab;
  }
  .share-card.is-controlled {
    animation: none;
    cursor: grabbing;
  }
  .share-card::before {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(238, 231, 220, .1);
    border-radius: 20px;
    transform: translateZ(12px);
    pointer-events: none;
  }
  .share-card::after {
    content: "";
    position: absolute;
    z-index: 2;
    inset: 0;
    border-radius: inherit;
    background:
      radial-gradient(
        circle at var(--glare-x, 50%) var(--glare-y, 50%),
        rgba(255, 255, 255, .46) 0,
        rgba(255, 232, 194, .16) 18%,
        transparent 43%
      ),
      linear-gradient(
        115deg,
        transparent 22%,
        rgba(137, 209, 188, .13) 38%,
        rgba(255, 198, 142, .18) 49%,
        rgba(194, 165, 255, .12) 59%,
        transparent 75%
      );
    background-size: 100% 100%, 210% 210%;
    background-position: center, var(--glare-x, 50%) var(--glare-y, 50%);
    mix-blend-mode: screen;
    opacity: var(--glare-opacity, .42);
    transform: translateZ(46px);
    animation: share-card-shine 5.5s ease-in-out infinite;
    pointer-events: none;
  }
  .share-card.is-controlled::after { animation: none; }
  .share-card__glow {
    position: absolute;
    z-index: 0;
    inset: -24%;
    background:
      radial-gradient(
        circle at var(--glare-x, 70%) var(--glare-y, 72%),
        rgba(198, 125, 91, .44),
        transparent 42%
      );
    filter: blur(12px);
    pointer-events: none;
  }
  .share-card__top,
  .share-card__identity,
  .share-card__contact {
    position: relative;
    z-index: 1;
    transform: translateZ(34px);
  }
  .share-card__top,
  .share-card__contact {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: var(--sand-faint);
    font-size: .57rem;
    letter-spacing: .08em;
    text-transform: uppercase;
  }
  .share-card__top span:last-child,
  .share-card__contact span:last-child { text-align: right; }
  .share-card__identity h2 {
    margin: 0 0 .9rem;
    font-size: clamp(2.8rem, 15vw, 4.1rem);
    line-height: .82;
  }
  .share-card__identity > p:not(.eyebrow) {
    color: var(--sand-dim);
    font-size: .9rem;
  }
  .share-card__identity small {
    display: block;
    margin-top: .2rem;
    color: var(--sage-light);
    font-size: .65rem;
  }
  .share-actions {
    width: min(100%, 24rem);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .65rem;
    opacity: 0;
    transform: translateY(1rem);
    transition: opacity .5s ease .25s, transform .7s var(--ease) .25s;
  }
  .share-overlay.is-open .share-actions {
    opacity: 1;
    transform: translateY(0);
  }
  .share-actions .btn {
    min-width: 0;
    padding-inline: .8rem;
    font-size: .76rem;
  }
  .share-actions p {
    grid-column: 1 / -1;
    min-height: 1.2em;
    color: var(--sage-light);
    font-size: .68rem;
    text-align: center;
  }

@media (min-width: 821px) {
  .share-stage {
    width: min(72vw, 38rem);
  }
  .share-card {
    aspect-ratio: 1.58;
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    grid-template-rows: auto 1fr auto;
    padding: 1.8rem 2rem;
    border-radius: 24px;
  }
  .share-card::before {
    border-radius: 17px;
  }
  .share-card__top {
    grid-column: 1 / -1;
  }
  .share-card__identity {
    grid-column: 1;
    grid-row: 2 / 4;
    align-self: end;
  }
  .share-card__identity h2 {
    font-size: clamp(3.2rem, 5vw, 4.7rem);
  }
  .share-card__contact {
    grid-column: 2;
    grid-row: 2 / 4;
    align-self: end;
    align-items: flex-end;
    flex-direction: column;
    justify-content: flex-end;
  }
  .share-actions {
    width: min(100%, 32rem);
  }
}

@media (max-width: 520px) {
  h1 { font-size: clamp(2.35rem, 11vw, 3.15rem); }
  h2 { font-size: clamp(1.75rem, 8.5vw, 2.3rem); }
  .nav a { font-size: clamp(1.7rem, 7.8vw, 2.25rem); }
  .depth-panel { padding: 1.5rem; border-radius: 22px; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .space-canvas { display: none; }
  .custom-cursor { display: none; }
  .depth-panel { transform: none !important; opacity: 1 !important; }
  .site-loader__pulse i,
  .site-loader__pulse::before,
  .site-loader__pulse::after,
  .site-loader__halo,
  .share-card,
  .share-card::after { animation: none !important; }
}

@keyframes share-card-float {
  0%, 100% { transform: rotateX(2deg) rotateY(-4deg) translateY(0); }
  50% { transform: rotateX(-3deg) rotateY(5deg) translateY(-10px); }
}
@keyframes share-card-shine {
  0%, 26% { transform: translateX(-30%) rotate(-18deg); opacity: 0; }
  44% { opacity: 1; }
  62%, 100% { transform: translateX(220%) rotate(-18deg); opacity: 0; }
}
