/* ==========================================================================
   tierris.com.br — Alison
   ========================================================================== */

:root {
  --bg: #0B0D14;
  --surface: #171B2B;
  --surface-2: #1D2236;
  --line: #262B40;
  --blue: #4169E1;
  --violet: #8054D9;
  --mid: #6A5EE0;
  --text: #F4F5FA;
  --muted: #A1A6B5;
  --faint: #6E7387;

  --grad: linear-gradient(120deg, var(--blue), var(--violet));

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 5vw, 48px);
  --max: 1160px;
  --narrow: 720px;
  --section-y: clamp(96px, 14vw, 180px);
  --radius: 18px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: clamp(16px, 1.05vw + 12px, 18px);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Textura sutil de ruído sobre toda a página */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main, .footer { position: relative; z-index: 1; }

img, svg { display: block; max-width: 100%; height: auto; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

::selection { background: rgba(128, 84, 217, .45); color: var(--text); }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
  border-radius: 6px;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--narrow { max-width: calc(var(--narrow) + var(--gutter) * 2); }
.wrap .wrap--narrow { max-width: var(--narrow); padding-inline: 0; margin-inline: 0; }

.section { padding-block: var(--section-y); position: relative; }

.split {
  display: grid;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

@media (min-width: 900px) {
  .split { grid-template-columns: 1.15fr .85fr; }
  .split--reverse .split__text { order: 2; }
  .split--reverse .split__art { order: 1; }
}

.split__art { margin: 0; }
.split__art img { width: 100%; }

/* --------------------------------------------------------------------------
   Tipografia
   -------------------------------------------------------------------------- */

.kicker {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.4rem;
  display: flex;
  align-items: center;
  gap: .9rem;
}

.kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--grad);
  flex: none;
}

.title {
  font-family: var(--serif);
  font-weight: 350;
  font-optical-sizing: auto;
  font-size: clamp(1.9rem, 3.6vw + .6rem, 3.4rem);
  line-height: 1.12;
  letter-spacing: -.015em;
  margin: 0 0 2rem;
  text-wrap: balance;
}

.title--center, .prose--center { text-align: center; }
.title--center { margin-inline: auto; }

.subtitle {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 2vw + .6rem, 2.1rem);
  line-height: 1.2;
  margin: 0 0 1.4rem;
  text-wrap: balance;
}

.prose { color: var(--muted); max-width: 62ch; }
.prose--center { margin-inline: auto; }
.prose p:first-child { color: var(--text); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 10vw, 120px) var(--gutter) 120px;
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
}

.hero__tags {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.6rem;
}

.hero__name {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(3.6rem, 15vw, 11rem);
  line-height: .9;
  letter-spacing: -.045em;
  margin: 0 0 2.2rem;
  background: linear-gradient(180deg, var(--text) 30%, rgba(244, 245, 250, .55));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__headline {
  font-family: var(--serif);
  font-weight: 350;
  font-style: italic;
  font-size: clamp(1.35rem, 2.2vw + .7rem, 2.25rem);
  line-height: 1.25;
  max-width: 22ch;
  margin-bottom: 1.6rem;
  text-wrap: balance;
}

.hero__lede {
  color: var(--muted);
  max-width: 52ch;
}

.hero__graph {
  position: absolute;
  z-index: 1;
  right: -14vw;
  top: 50%;
  width: min(92vw, 760px);
  transform: translateY(-50%);
  opacity: .9;
  pointer-events: none;
}

/* Tablet (768–899px). Abaixo disso, ver css/mobile.css */
@media (min-width: 768px) and (max-width: 899px) {
  .hero__graph {
    right: -30vw;
    top: 4%;
    width: 110vw;
    transform: none;
    opacity: .38;
  }
}

.graph__nodes circle {
  transform-box: fill-box;
  transform-origin: center;
  animation: pulse 5s var(--ease) infinite;
}
.graph__nodes circle:nth-child(2) { animation-delay: 1.6s; }
.graph__nodes circle:nth-child(3) { animation-delay: 3.2s; }

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: .75; }
}

.graph__minor { animation: drift 18s ease-in-out infinite alternate; }
@keyframes drift { to { opacity: .45; } }

.hero__cue {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  margin: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--faint);
}

.hero__cue-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(var(--muted), transparent);
  transform-origin: top;
  animation: cue 2.4s var(--ease) infinite;
}

@keyframes cue {
  0% { transform: scaleY(0); opacity: 1; }
  70% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* --------------------------------------------------------------------------
   Sobre
   -------------------------------------------------------------------------- */

.about { border-top: 1px solid var(--line); }
.about .prose { font-size: 1.06em; }

/* --------------------------------------------------------------------------
   Educação — histórias
   -------------------------------------------------------------------------- */

.education {
  background:
    radial-gradient(60% 40% at 85% 10%, rgba(65, 105, 225, .09), transparent 70%),
    var(--bg);
}

.stories {
  display: grid;
  gap: clamp(20px, 3vw, 32px);
  margin-top: clamp(64px, 9vw, 120px);
}

@media (min-width: 900px) {
  .stories { grid-template-columns: 1fr 1fr; }
}

.story {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 44px);
  position: relative;
  overflow: hidden;
}

.story::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: var(--grad);
  opacity: .7;
}

.story__art {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  margin: -8px 0 24px;
  border-radius: 12px;
  background: var(--bg);
}

.story__stat {
  aspect-ratio: 3 / 2;
  margin: -8px 0 24px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 55%, rgba(128, 84, 217, .25), transparent 60%),
    var(--bg);
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
}

/* malha de pontos: os "50 alunos" */
.story__stat::before {
  content: "";
  position: absolute;
  inset: 12%;
  background-image: radial-gradient(circle, rgba(161, 166, 181, .45) 1.6px, transparent 2px);
  background-size: 9% 20%;
  background-position: center;
}

.story__stat span {
  position: relative;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3.5rem, 8vw, 5.5rem);
  line-height: 1;
  letter-spacing: -.03em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding: .1em .3em;
}

.story__label {
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: .8rem;
}

.story__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.45rem, 1.6vw + .8rem, 1.9rem);
  line-height: 1.2;
  margin: 0 0 1rem;
}

.story__lede {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 350;
  color: var(--text);
  padding-left: 1rem;
  border-left: 2px solid var(--violet);
  margin-bottom: 1.4rem;
}

.story__body { color: var(--muted); font-size: .96em; }

/* "Continuar lendo" existe só no mobile (css/mobile.css) */
.story__more { display: none; }

/* --------------------------------------------------------------------------
   Chips / interesses
   -------------------------------------------------------------------------- */

.chips {
  list-style: none;
  padding: 0;
  margin: clamp(56px, 7vw, 88px) 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chips li {
  font-size: .88rem;
  font-weight: 500;
  padding: .55em 1.1em;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(23, 27, 43, .6);
  color: var(--text);
}

.chips--quiet { margin-top: 2.2rem; }
.chips--quiet li { background: transparent; color: var(--muted); }

/* --------------------------------------------------------------------------
   Citações
   -------------------------------------------------------------------------- */

.quote {
  margin: clamp(72px, 10vw, 128px) auto 0;
  max-width: 860px;
  text-align: center;
  position: relative;
  padding-top: 56px;
}

.quote::before {
  content: "\201C";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--serif);
  font-size: 5.5rem;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.quote p {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.4rem, 2.4vw + .6rem, 2.4rem);
  line-height: 1.3;
  letter-spacing: -.01em;
  text-wrap: balance;
}

/* --------------------------------------------------------------------------
   Tecnologia
   -------------------------------------------------------------------------- */

.tech {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.tech .split__art img {
  border-radius: var(--radius);
}

.facets {
  display: grid;
  gap: 1px;
  margin-top: clamp(64px, 9vw, 112px);
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

@media (min-width: 760px) {
  .facets { grid-template-columns: repeat(3, 1fr); }
}

.facet {
  background: var(--surface);
  padding: clamp(24px, 3.5vw, 40px);
  color: var(--muted);
  font-size: .96em;
  transition: background-color .4s var(--ease);
}

.facet:hover { background: var(--surface-2); }

.facet__index {
  display: inline-block;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: .8rem;
  color: var(--blue);
  margin-bottom: 1.6rem;
}

.facet__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.35rem;
  color: var(--text);
  margin: 0 0 .8rem;
}

.tech .quote::before { background: var(--grad); -webkit-background-clip: text; background-clip: text; }

/* --------------------------------------------------------------------------
   Negócios
   -------------------------------------------------------------------------- */

.business {
  background:
    radial-gradient(50% 40% at 10% 90%, rgba(128, 84, 217, .08), transparent 70%),
    var(--bg);
}

/* --------------------------------------------------------------------------
   Conexão
   -------------------------------------------------------------------------- */

.connection {
  border-top: 1px solid var(--line);
  text-align: center;
}

.connection__inner { display: flex; flex-direction: column; align-items: center; }
.connection .kicker { justify-content: center; }
.connection .kicker::after {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--grad);
}

.connection__graph {
  width: min(100%, 360px);
  margin-bottom: clamp(40px, 6vw, 64px);
}

.connection__graph text {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  fill: var(--muted);
}

/* --------------------------------------------------------------------------
   Curiosidade e aprendizado
   -------------------------------------------------------------------------- */

.curiosity {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.interests {
  list-style: none;
  padding: 0;
  margin: clamp(48px, 7vw, 80px) 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
  gap: 12px;
}

.interests li {
  position: relative;
  padding: 22px 22px 22px 48px;
  border-radius: 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  font-weight: 500;
  line-height: 1.35;
  transition: border-color .4s var(--ease), transform .4s var(--ease);
}

.interests li::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  border-radius: 50%;
  border: 1.5px solid var(--mid);
}

.interests li:nth-child(3n+1)::before { border-color: var(--blue); }
.interests li:nth-child(3n)::before { border-color: var(--violet); }

.interests li:hover { border-color: rgba(106, 94, 224, .5); transform: translateY(-2px); }

.learning {
  display: grid;
  gap: 40px;
  margin-top: clamp(80px, 11vw, 140px);
  padding-top: clamp(56px, 7vw, 88px);
  border-top: 1px solid var(--line);
}

@media (min-width: 900px) {
  .learning { grid-template-columns: 1.2fr .8fr; align-items: start; }
  /* sem o bloco "Neste momento", o texto ocupa a largura de leitura normal */
  .learning:has(> .now[hidden]) { grid-template-columns: minmax(0, var(--narrow)); }
}

.now {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.now__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

.now__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3DD68C;
  box-shadow: 0 0 0 4px rgba(61, 214, 140, .15);
}

.now__list { margin: 1.2rem 0; padding-left: 1.1em; }
.now__list li { margin-bottom: .5em; }
.now__updated { font-size: .82rem; color: var(--faint); }
.now__updated:empty { display: none; }

/* --------------------------------------------------------------------------
   Contato
   -------------------------------------------------------------------------- */

.contact { text-align: center; }
.contact__inner { display: flex; flex-direction: column; align-items: center; }
.contact .kicker { justify-content: center; }
.contact .kicker::after {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--grad);
}

.email {
  margin-top: clamp(40px, 6vw, 64px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 16px;
  padding: 10px 10px 10px 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  max-width: 100%;
}

.email__link {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.8vw + .6rem, 1.6rem);
  text-decoration: none;
  overflow-wrap: anywhere;
  background-image: var(--grad);
  background-size: 0 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size .5s var(--ease);
}

.email__link:hover, .email__link:focus-visible { background-size: 100% 1px; }

.email__copy {
  font: inherit;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .7em 1.3em;
  min-width: 7.5em;
  cursor: pointer;
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
}

.email__copy:hover { border-color: var(--mid); }
.email__copy.is-done { background: var(--grad); border-color: transparent; }

.email__status {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Rodapé
   -------------------------------------------------------------------------- */

.footer {
  border-top: 1px solid var(--line);
  padding: clamp(72px, 10vw, 120px) var(--gutter) 40px;
  text-align: center;
}

.footer__name {
  font-weight: 700;
  font-size: clamp(2.6rem, 9vw, 5.5rem);
  letter-spacing: -.04em;
  line-height: 1;
  margin-bottom: 1.2rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer__signature {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 350;
  color: var(--muted);
  font-size: clamp(1.05rem, 1vw + .8rem, 1.3rem);
  max-width: 34ch;
  margin-inline: auto;
}

.footer__meta {
  margin: clamp(56px, 8vw, 96px) auto 0;
  max-width: var(--max);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  font-size: .82rem;
  color: var(--faint);
}

.footer__copy { margin: 0; }

.lang { display: flex; gap: 4px; }

.lang__btn {
  font: inherit;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--faint);
  background: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: .45em .9em;
  cursor: pointer;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}

.lang__btn:hover { color: var(--text); }
.lang__btn[aria-pressed="true"] { color: var(--text); border-color: var(--line); }

/* --------------------------------------------------------------------------
   Movimento
   -------------------------------------------------------------------------- */

.js-motion .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}

.js-motion .reveal.is-visible { opacity: 1; transform: none; }

/* Escalonamento leve dentro do hero */
.js-motion .hero .reveal:nth-child(2) { transition-delay: .08s; }
.js-motion .hero .reveal:nth-child(3) { transition-delay: .18s; }
.js-motion .hero .reveal:nth-child(4) { transition-delay: .28s; }

.js-motion .draw {
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  transition: stroke-dashoffset 2.6s var(--ease) .3s;
}
.js-motion .draw.is-visible { stroke-dashoffset: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  html { scroll-behavior: auto; }
}
