/* ==========================================================================
   IA.CRAMENTA° — tokens + estilos (v2 — mono claro/escuro, ref. fabrica®)
   ========================================================================== */

:root {
  /* superfícies */
  --gray: #F1F0EE;         /* cinza claro predominante */
  --gray-2: #E7E5E1;       /* cinza levemente mais escuro, pra cards sobre --gray */
  --white: #FFFFFF;        /* cards sobre fundo cinza */
  --black: #0B0B0B;        /* seções escuras (hero, contato, footer) */
  --black-raised: #161616; /* elevação dentro de seções escuras */

  /* texto */
  --ink: #141414;          /* texto principal sobre claro */
  --ink-muted: #6F6E6A;    /* texto secundário sobre claro */
  --paper: #F4F3EF;        /* texto principal sobre escuro */
  --paper-muted: #8C8B87;  /* texto secundário sobre escuro */

  /* linhas */
  --line-light: #DAD8D3;   /* bordas sobre fundo claro */
  --line-dark: #2A2A2A;    /* bordas sobre fundo escuro */

  --font-display: 'Inter Tight', sans-serif;
  --font-body: 'Inter Tight', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1240px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 12px;
}

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

html {
  background: var(--gray);
  scroll-behavior: auto;
}

body {
  background: var(--gray);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

.mono { font-family: var(--font-mono); letter-spacing: 0.02em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink-muted);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
}
.eyebrow--dark { color: var(--paper-muted); }

.eyebrow__dot {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1px solid var(--line-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.eyebrow--dark .eyebrow__dot { border-color: var(--line-dark); }

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.cursor {
  display: inline-block;
  animation: blink 1s step-end infinite;
  font-weight: 400;
}

@keyframes blink {
  0%, 45% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* ==========================================================================
   NAV
   ========================================================================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--gray);
  padding: 1.4rem clamp(1.5rem, 4vw, 2.5rem);
}

.nav__logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.875rem;
  color: var(--ink-muted);
}

.nav__links a {
  position: relative;
  transition: color 0.3s var(--ease);
}
.nav__links a:hover { color: var(--ink); }

.nav__cta {
  padding: 0.65rem 1.35rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.8125rem;
  font-weight: 500;
  transition: opacity 0.3s var(--ease);
}
.nav__cta:hover { opacity: 0.8; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
}
.nav__toggle span {
  width: 20px; height: 1px;
  background: var(--ink);
}

/* ==========================================================================
   HERO (preto)
   ========================================================================== */

.hero {
  position: relative;
  min-height: calc(100svh - 2.5rem);
  margin: 0 0.75rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--black);
  border-radius: var(--radius-lg);
}

.hero__marks { position: absolute; inset: 0; pointer-events: none; }
.mark {
  position: absolute;
  color: var(--line-dark);
  font-size: 1.5rem;
  font-weight: 300;
}
.mark--tl { top: 8rem; left: 3rem; }
.mark--tr { top: 8rem; right: 3rem; }
.mark--bl { bottom: 6rem; left: 3rem; }
.mark--br { bottom: 6rem; right: 3rem; }

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 1.5rem;
  will-change: transform;
}

.hero__sphere {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  mix-blend-mode: screen;
}

.hero__eyebrow {
  justify-content: center;
  color: var(--paper-muted);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 10vw, 7.5rem);
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin-bottom: 1.25rem;
  color: var(--paper);
}

.hero__tagline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  color: var(--paper);
  margin-bottom: 1.5rem;
  min-height: 1.4em;
}

.hero__tagline-word {
  display: inline-block;
  border-bottom: 1.5px solid var(--line-dark);
  padding-bottom: 2px;
}

.hero__support {
  color: var(--paper-muted);
  font-size: 1.0625rem;
  max-width: 480px;
  margin: 0 auto 2.5rem;
}

.br-desktop { display: inline; }

.hero__scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--paper-muted);
}
.scroll-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, var(--paper-muted), transparent);
  animation: scrollpulse 2s ease-in-out infinite;
}
@keyframes scrollpulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.85rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), color 0.3s var(--ease);
}
.btn:active { transform: scale(0.97); }

.btn--ghost {
  position: relative;
  color: var(--paper);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    0 8px 24px rgba(0,0,0,0.25);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.24);
  transform: translateY(-1px) scale(1.015);
}

.btn--solid {
  background: var(--ink);
  color: var(--white);
  width: 100%;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(20,20,20,0.06);
}
.btn--solid:hover {
  background: #262626;
  transform: translateY(-1px);
}

.btn__arrow {
  transition: transform 0.3s var(--ease);
}
.btn:hover .btn__arrow {
  transform: translateX(3px);
}

/* ==========================================================================
   GALLERY (cinza)
   ========================================================================== */

.gallery {
  position: relative;
  background: var(--gray);
}

.gallery__pin {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem clamp(1.5rem, 5vw, 4rem) 3rem;
}

.gallery__head {
  margin-bottom: 2.5rem;
  padding: 0 0.25rem;
}

/* ---- carousel (3D coverflow, click/tap driven) ---- */

.carousel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.carousel__track {
  position: relative;
  width: 100%;
  max-width: 940px;
  height: clamp(380px, 46vw, 480px);
  perspective: 1600px;
}

.card {
  position: absolute;
  top: 0; left: 50%;
  width: clamp(260px, 30vw, 400px);
  height: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-light);
  background: var(--white);
  padding: 2.25rem;
  display: flex;
  align-items: flex-end;
  text-align: left;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(20,20,20,0.04);
  transition: transform 0.6s var(--ease), opacity 0.6s var(--ease), box-shadow 0.6s var(--ease), filter 0.6s var(--ease);
}

.card[data-pos="center"] {
  transform: translate(-50%, 0) translateZ(0) rotateY(0deg) scale(1);
  opacity: 1;
  z-index: 3;
  box-shadow: 0 24px 48px rgba(20,20,20,0.12);
  cursor: default;
}

.card[data-pos="prev"] {
  transform: translate(calc(-50% - 68%), 0) translateZ(-160px) rotateY(28deg) scale(0.82);
  opacity: 1;
  z-index: 2;
  filter: brightness(0.94);
}

.card[data-pos="next"] {
  transform: translate(calc(-50% + 68%), 0) translateZ(-160px) rotateY(-28deg) scale(0.82);
  opacity: 1;
  z-index: 2;
  filter: brightness(0.94);
}

.card[data-pos="hidden"] {
  transform: translate(-50%, 0) translateZ(-320px) scale(0.7);
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}

.card:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.card__organism {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 62%;
}

.card__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  background: linear-gradient(to top, var(--white) 55%, transparent 100%);
  padding-top: 2rem;
  margin: 0 -2.25rem -2.25rem;
  padding-left: 2.25rem;
  padding-right: 2.25rem;
  padding-bottom: 2.25rem;
}

.card__tag {
  display: inline-block;
  color: var(--ink-muted);
  font-size: 0.8rem;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  margin-bottom: 1.5rem;
}

.card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 0.9rem;
  color: var(--ink);
}

.card__desc {
  color: var(--ink-muted);
  font-size: 0.9375rem;
  line-height: 1.5;
  max-width: 30ch;
}

.carousel__arrow {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.7);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.7),
    0 4px 12px rgba(20,20,20,0.06);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
  z-index: 4;
}
.carousel__arrow:hover { background: rgba(255,255,255,0.85); transform: scale(1.06); }
.carousel__arrow:active { transform: scale(0.96); }

.gallery__footer {
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0 0.25rem;
}

.gallery__note {
  color: var(--ink-muted);
  font-size: 0.8125rem;
}

.carousel__dots {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.carousel__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--line-light);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.carousel__dot:hover { background: var(--ink-muted); }
.carousel__dot.is-active {
  background: var(--ink);
  transform: scale(1.2);
}

/* ==========================================================================
   MANIFESTO (cinza, texto de impacto)
   ========================================================================== */

.manifesto {
  background: var(--gray);
  padding: clamp(4rem, 8vw, 6rem) clamp(1.5rem, 5vw, 4rem);
  display: flex;
  justify-content: center;
}

.manifesto__text {
  max-width: 620px;
  text-align: center;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  line-height: 1.6;
  letter-spacing: -0.005em;
  color: var(--line-light);
}

.manifesto__text .word {
  color: var(--ink);
  transition: color 0.4s var(--ease);
}

/* ==========================================================================
   PROCESS / FLOW (cinza)
   ========================================================================== */

.process {
  background: var(--gray);
  position: relative;
  overflow: hidden;
}

.process__pin {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem clamp(1.5rem, 5vw, 4rem);
}

.process__sphere {
  position: absolute;
  top: -8%;
  right: -6%;
  width: 46%;
  height: 60%;
  z-index: 0;
  pointer-events: none;
}

.process__pin > *:not(.process__sphere) {
  position: relative;
  z-index: 1;
}

.pillars {
  display: flex;
  gap: clamp(2rem, 6vw, 5rem);
  margin: 2.5rem 0 5rem;
}

.pillar {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  opacity: 0;
  transform: translateY(16px);
}

.pillar__num { color: var(--ink-muted); font-size: 0.8125rem; }
.pillar__label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.25rem, 3vw, 1.875rem);
  color: var(--ink);
}

.flow {
  position: relative;
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  height: clamp(220px, 30vw, 320px);
  padding-right: 7rem;
}

.flow__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.flow__path {
  fill: none;
  stroke: var(--line-light);
  stroke-width: 1.5;
}

.flow__node {
  position: absolute;
  left: calc(var(--x) / 1000 * 100%);
  top: calc(var(--y) / 260 * 100%);
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  opacity: 0;
}

.flow__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--line-light);
  flex-shrink: 0;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}

.flow__node.is-active .flow__dot {
  background: var(--ink);
  border-color: var(--ink);
}

.flow__label {
  font-size: 0.8125rem;
  color: var(--ink-muted);
  white-space: nowrap;
  transition: color 0.4s var(--ease);
}
.flow__node.is-active .flow__label { color: var(--ink); }

.flow__node--final .flow__label { white-space: normal; line-height: 1.3; }

/* ==========================================================================
   CONTACT (preto)
   ========================================================================== */

.contact {
  background: var(--black);
  padding: 7rem clamp(1.5rem, 5vw, 4rem);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.contact__grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
}

.contact__form-col {
  order: 2;
  background: var(--paper);
  border-radius: var(--radius-md);
  padding: 2.5rem;
}
.contact__info-col { order: 1; }

.contact__form-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.375rem;
  margin-bottom: 2rem;
  color: var(--ink);
}

.form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.field__label {
  font-size: 0.7rem;
  color: var(--ink-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field input,
.field textarea {
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  resize: none;
  transition: border-color 0.3s var(--ease);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--ink-muted); opacity: 0.6; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
}

.form__fine {
  color: var(--ink-muted);
  font-size: 0.7rem;
  text-align: center;
  margin-top: 0.25rem;
}

.contact__headline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 1.25rem;
  color: var(--paper);
}

.contact__sub {
  color: var(--paper-muted);
  font-size: 1.0625rem;
  max-width: 40ch;
  margin-bottom: 3rem;
}

.value-props {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.value-prop {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.value-prop:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.16);
}

.value-prop__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line-dark);
  color: var(--paper);
  font-size: 1rem;
  margin-bottom: 0.9rem;
}

.value-prop h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.4rem;
  color: var(--paper);
}

.value-prop p {
  color: var(--paper-muted);
  font-size: 0.875rem;
  max-width: 34ch;
}

/* ==========================================================================
   FOOTER (preto)
   ========================================================================== */

.footer {
  background: var(--black);
  padding: 3rem clamp(1.5rem, 5vw, 4rem) 2rem;
}

.footer__top {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--line-dark);
}

.footer__label {
  color: var(--paper-muted);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer__email {
  font-size: 1.0625rem;
  color: var(--paper);
  border-bottom: 1px solid var(--line-dark);
  padding-bottom: 2px;
  transition: opacity 0.3s var(--ease);
}
.footer__email:hover { opacity: 0.7; }

.footer__col { display: flex; flex-direction: column; gap: 0.75rem; }
.footer__col a { color: var(--paper-muted); font-size: 0.9375rem; transition: color 0.3s var(--ease); width: fit-content; }
.footer__col a:hover { color: var(--paper); }

.footer__wordmark {
  max-width: var(--container);
  margin: 0 auto;
  padding: 2rem 0 1.5rem;
}
.footer__wordmark span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.1rem, 2vw, 1.375rem);
  letter-spacing: -0.01em;
  color: var(--paper);
  opacity: 0.95;
}

.footer__bottom {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--paper-muted);
  font-size: 0.8125rem;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }

  .br-desktop { display: none; }

  .hero { margin: 0 0.5rem 0.5rem; }
  .hero__content { padding: 0 1.25rem; max-width: 100%; }
  .mark--tl, .mark--bl { left: 1.25rem; }
  .mark--tr, .mark--br { right: 1.25rem; }
  .mark--tl, .mark--tr { top: 5.5rem; }
  .mark--bl, .mark--br { bottom: 4.5rem; }

  .gallery__pin,
  .process__pin,
  .manifesto,
  .contact,
  .footer {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .gallery__head,
  .carousel,
  .gallery__footer {
    padding-left: 0;
    padding-right: 0;
  }

  .process__pin {
    padding-top: 4rem;
  }
  .process__sphere {
    order: -1;
    position: static;
    width: 62vw;
    height: 42vw;
    max-height: 220px;
    margin: 0 auto 2rem;
  }

  .contact__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .contact__form-col { order: 1; }
  .contact__info-col { order: 2; }

  .footer__top {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .pillars { gap: 2rem; flex-wrap: wrap; }

  .flow__label { font-size: 0.7rem; }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
