/* Eloxy · página /sobre. Carrega depois de home.css e reaproveita os tokens de lá (cores, raio, wrap, seções). */

.page-sobre {
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Code", Consolas, "Liberation Mono", monospace;
  --dark-line: rgba(255, 255, 255, 0.09);
  --dark-line-strong: rgba(255, 255, 255, 0.16);
}

.kicker {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.section-head .kicker {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 13px;
  line-height: 1.5;
}
.section-dark .section-head .kicker-light {
  color: var(--violet-light);
}
.kicker-light {
  color: var(--violet-light);
}
.section-head-left {
  margin: 0 0 40px;
  text-align: left;
}
.section-dark h2 em,
.about-hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--violet-light), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-dark :focus-visible,
.about-hero :focus-visible {
  outline-color: var(--violet-light);
}

/* Botão claro sobre fundo escuro */
.btn-outline-light {
  background: rgba(255, 255, 255, 0.04);
  color: var(--dark-ink);
  box-shadow: inset 0 0 0 1px var(--dark-line-strong);
}
.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.09);
}

/* 1. Hero */
.about-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(72px, 11vw, 136px) 0 clamp(72px, 10vw, 120px);
  background: var(--dark);
  color: var(--dark-ink);
}
.about-hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(70% 70% at 50% 30%, #000 20%, transparent 75%);
}
.about-hero-glow {
  position: absolute;
  inset: -20% -10% auto;
  height: 120%;
  z-index: -1;
  background:
    radial-gradient(40% 36% at 30% 18%, rgba(91, 75, 183, 0.45), transparent 70%),
    radial-gradient(34% 30% at 72% 30%, rgba(212, 175, 55, 0.16), transparent 70%);
  filter: blur(8px);
  animation: glow-drift 18s ease-in-out infinite alternate;
}
@keyframes glow-drift {
  to {
    transform: translate3d(4%, 3%, 0) scale(1.06);
  }
}
.about-hero-inner {
  max-width: 940px;
  text-align: center;
}
.crumbs-inline {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
  color: var(--dark-muted);
  font-size: 13px;
}
.crumbs-inline a {
  color: var(--dark-muted);
}
.crumbs-inline a:hover {
  color: var(--dark-ink);
}
.crumbs-inline [aria-current] {
  color: var(--dark-ink);
}
.about-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 980px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px var(--dark-line-strong);
  color: var(--dark-ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.about-eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.18);
}
.about-hero h1 {
  margin-top: 24px;
  font-size: clamp(2.75rem, 7.4vw, 5.25rem);
  letter-spacing: -0.04em;
  line-height: 1.02;
}
.about-lead {
  max-width: 680px;
  margin: 26px auto 0;
  color: var(--dark-muted);
  font-size: clamp(1.125rem, 2.1vw, 1.375rem);
  line-height: 1.5;
}
.about-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}
.about-stack {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 10px;
  max-width: 760px;
  margin: clamp(48px, 7vw, 72px) auto 0;
  padding: 0;
  list-style: none;
}
.about-stack li {
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 0 1px var(--dark-line);
  color: var(--dark-muted);
  font-family: var(--mono);
  font-size: 12.5px;
}

/* 2. História */
.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
.profile-card {
  position: sticky;
  top: 88px;
  overflow: hidden;
  background: var(--surface);
  border-radius: 28px;
  box-shadow: inset 0 0 0 1px var(--line-soft), 0 40px 80px -48px rgba(15, 14, 20, 0.35);
}
.profile-portrait {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(60% 70% at 30% 20%, rgba(91, 75, 183, 0.55), transparent 70%),
    radial-gradient(50% 60% at 80% 90%, rgba(212, 175, 55, 0.25), transparent 70%),
    var(--dark);
  color: var(--gold);
}
.profile-portrait span {
  position: relative;
  font-size: clamp(48px, 7vw, 72px);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.profile-rings {
  position: absolute;
  width: 72%;
  height: auto;
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 1;
}
.profile-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.profile-body {
  padding: 28px 28px 30px;
}
.profile-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.profile-role {
  margin-top: 2px;
  color: var(--muted);
  font-size: 15px;
}
.profile-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--line-soft);
}
.profile-facts dt {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}
.profile-facts dd {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}
.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 22px 0 22px;
  padding: 0;
  list-style: none;
}
.profile-tags li {
  padding: 4px 10px;
  border-radius: 980px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}
.story-copy h2,
.health-copy h2 {
  margin-top: 14px;
  font-size: clamp(2.125rem, 4.6vw, 3.25rem);
}
.prose {
  margin-top: 28px;
}
.prose p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}
.prose p + p {
  margin-top: 18px;
}
.prose .prose-lede {
  color: var(--ink);
  font-size: clamp(1.25rem, 2.2vw, 1.4375rem);
  line-height: 1.5;
}

/* 3. Linha do tempo */
.tl {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.tl::before,
.tl::after {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  border-radius: 2px;
}
.tl::before {
  background: var(--line);
}
.tl::after {
  background: linear-gradient(180deg, var(--accent), var(--gold));
  transform-origin: top;
  transform: scaleY(1);
}
/* Navegadores com animação por rolagem: a linha se preenche enquanto a pessoa desce. */
@supports (animation-timeline: view()) {
  .tl::after {
    animation: tl-fill linear both;
    animation-timeline: view();
    animation-range: entry 20% cover 70%;
  }
}
@keyframes tl-fill {
  from {
    transform: scaleY(0);
  }
  to {
    transform: scaleY(1);
  }
}
.tl-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 64px;
  align-items: center;
}
.tl-item + .tl-item {
  margin-top: 20px;
}
.tl-item::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: var(--bg-alt);
  box-shadow: inset 0 0 0 3px var(--accent);
  z-index: 1;
}
.tl-when {
  justify-self: end;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
}
.tl-card {
  padding: 22px 24px;
  background: var(--surface);
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px var(--line-soft);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.tl-card:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px rgba(91, 75, 183, 0.35), 0 24px 40px -28px rgba(91, 75, 183, 0.5);
}
.tl-card h3 {
  font-size: 19px;
  line-height: 1.25;
}
.tl-card p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 15.5px;
}
/* Alterna os lados no desktop */
.tl-item:nth-child(even) .tl-when {
  order: 2;
  justify-self: start;
}
.tl-item:nth-child(even) .tl-card {
  order: 1;
}
.tl-item-now::before {
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  background: var(--gold);
  box-shadow: 0 0 0 6px rgba(212, 175, 55, 0.22);
}
.tl-item-now .tl-card {
  background: var(--dark);
  color: var(--dark-ink);
  box-shadow: none;
}
.tl-item-now .tl-card p {
  color: var(--dark-muted);
}
.tl-item-now .tl-when {
  color: #8a6d12;
}

/* 4. Propósito */
.purpose-statement {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}
.purpose-statement h2 {
  margin-top: 16px;
  font-size: clamp(2rem, 4.8vw, 3.375rem);
}
.purpose-statement > p:last-child {
  max-width: 680px;
  margin: 24px auto 0;
  color: var(--dark-muted);
  font-size: clamp(1.0625rem, 1.8vw, 1.25rem);
  line-height: 1.55;
}
.purpose-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: clamp(56px, 8vw, 88px);
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--dark-line);
  box-shadow: inset 0 0 0 1px var(--dark-line);
}
.purpose-card {
  padding: 32px 30px 36px;
  background: var(--dark);
  transition: background-color 0.3s ease;
}
.purpose-card:hover {
  background: var(--dark-surface);
}
.purpose-num {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 13px;
}
.purpose-card h3 {
  margin-top: 18px;
  font-size: 21px;
  line-height: 1.2;
}
.purpose-card p {
  margin-top: 10px;
  color: var(--dark-muted);
  font-size: 16px;
}

/* 5. Saúde */
.health-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.health-copy .link-more {
  display: inline-block;
  margin-top: 28px;
}
.bridge {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  margin: 0;
  padding: clamp(20px, 3vw, 28px);
  background: var(--bg-alt);
  border-radius: 28px;
}
.bridge-col {
  height: 100%;
  padding: 20px;
  background: var(--surface);
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px var(--line-soft);
}
.bridge-col-accent {
  background: var(--dark);
  color: var(--dark-ink);
  box-shadow: none;
}
.bridge-label {
  display: block;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
}
.bridge-col-accent .bridge-label {
  color: var(--gold);
}
.bridge ul {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.bridge li {
  padding: 9px 0;
  border-top: 1px solid var(--line-soft);
  font-size: 15px;
  line-height: 1.35;
}
.bridge-col-accent li {
  border-top-color: var(--dark-line);
}
.bridge-arrow {
  width: 40px;
  color: var(--accent);
}
.bridge figcaption {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

/* 6. Áreas */
.area-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.area {
  position: relative;
  padding: 32px 30px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px var(--line-soft);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.area:hover {
  transform: translateY(-3px);
  box-shadow: inset 0 0 0 1px rgba(91, 75, 183, 0.35), 0 30px 50px -32px rgba(91, 75, 183, 0.55);
}
.area-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}
.area-icon svg {
  width: 22px;
  height: 22px;
}
.area h3 {
  margin-top: 22px;
  font-size: 20px;
  line-height: 1.2;
}
.area p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 16px;
}

/* 7. Filosofia */
.philosophy-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.philosophy-grid h2 {
  margin-top: 14px;
  font-size: clamp(2rem, 4.4vw, 3rem);
}
.principles-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: principle;
}
.principles-list li {
  position: relative;
  padding: 22px 0 22px 56px;
  border-top: 1px solid var(--dark-line);
  counter-increment: principle;
}
.principles-list li:last-child {
  border-bottom: 1px solid var(--dark-line);
}
.principles-list li::before {
  content: counter(principle, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 24px;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 14px;
}
.principles-list h3 {
  font-size: 20px;
  line-height: 1.25;
}
.principles-list p {
  margin-top: 6px;
  color: var(--dark-muted);
}
.code-card {
  margin: 0;
  overflow: hidden;
  background: var(--dark-surface);
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px var(--dark-line-strong), 0 40px 80px -40px rgba(91, 75, 183, 0.6);
}
.code-head {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--dark-line);
}
.code-head span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}
.code-head b {
  margin-left: 8px;
  color: var(--dark-muted);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
}
.code-card pre {
  margin: 0;
  padding: 22px 22px 26px;
  overflow-x: auto;
  color: var(--dark-ink);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.75;
  tab-size: 2;
}
.c-key {
  color: var(--violet-light);
}
.c-str {
  color: #e9d48a;
}
.c-bool {
  color: #7fd1a8;
}

/* 8. Convite */
.invite-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.invite {
  display: flex;
  flex-direction: column;
  padding: 32px 28px 28px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px var(--line-soft);
}
.invite:first-child {
  box-shadow: inset 0 0 0 2px var(--accent), 0 40px 80px -48px rgba(91, 75, 183, 0.55);
}
.invite-who {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
}
.invite h3 {
  margin-top: 14px;
  font-size: 21px;
  line-height: 1.25;
}
.invite > p:not(.invite-who) {
  margin: 10px 0 24px;
  color: var(--muted);
  font-size: 16px;
}
.invite .btn {
  margin-top: auto;
}
.invite-note {
  margin-top: 40px;
  color: var(--muted);
  font-size: 15px;
  text-align: center;
}

/* Menos movimento */
@media (prefers-reduced-motion: reduce) {
  .about-hero-glow {
    animation: none;
  }
  .tl::after {
    animation: none;
    transform: none;
  }
  .tl-card,
  .tl-card:hover,
  .area,
  .area:hover {
    transition: none;
    transform: none;
  }
}

/* Responsivo */
@media (max-width: 960px) {
  .story-grid,
  .health-grid,
  .philosophy-grid {
    grid-template-columns: 1fr;
  }
  .profile-card {
    position: static;
    max-width: 520px;
  }
  .area-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .invite-grid,
  .purpose-grid {
    grid-template-columns: 1fr;
  }
  .invite-grid {
    max-width: 560px;
    margin: 0 auto;
  }
}

@media (max-width: 720px) {
  /* Linha do tempo vira uma coluna, com a linha à esquerda */
  .tl::before,
  .tl::after {
    left: 7px;
  }
  .tl-item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-left: 36px;
  }
  .tl-item::before {
    left: 7px;
    top: 10px;
    margin-top: 0;
  }
  .tl-item-now::before {
    top: 8px;
  }
  .tl-when,
  .tl-item:nth-child(even) .tl-when {
    order: 0;
    justify-self: start;
  }
  .tl-item:nth-child(even) .tl-card {
    order: 1;
  }
  .bridge {
    grid-template-columns: 1fr;
  }
  .bridge-arrow {
    justify-self: center;
    transform: rotate(90deg);
  }
}

@media (max-width: 600px) {
  .about-actions {
    flex-direction: column;
  }
  .about-actions .btn {
    width: 100%;
  }
  .area-grid {
    grid-template-columns: 1fr;
  }
  .profile-body {
    padding: 24px 22px 26px;
  }
  .prose p {
    font-size: 17px;
  }
  .principles-list li {
    padding-left: 44px;
  }
  .code-card pre {
    font-size: 13px;
  }
}
