/* ==========================================================
   SISTEMA VISUAL — BRUNO NOGUEIRA
   ========================================================== */

:root {
  color-scheme: dark;

  --black: #080808;
  --white: #f7f7f5;
  --muted: #aaa;
  --rule: #303030;

  --page-width: 1320px;
  --gutter: clamp(24px, 5.8vw, 96px);

  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;

  --hero-position: 50% 20%;
  --about-position: 50% 50%;
}


/* ==========================================================
   RESET
   ========================================================== */

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

html {
  background: var(--black);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;

  color: var(--white);
  background: var(--black);

  font-family: var(--font);

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  color: var(--black);
  background: #d8d8d8;
}

h1,
h2,
h3,
p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: #8884;
}

a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 7px;
}

img {
  display: block;
  width: 100%;
  height: 100%;
}

.page-width {
  width: min(
    calc(100% - (var(--gutter) * 2)),
    var(--page-width)
  );

  margin-inline: auto;
}

.visually-hidden {
  position: absolute;

  width: 1px;
  height: 1px;

  padding: 0;
  margin: -1px;

  overflow: hidden;

  clip-path: inset(50%);

  white-space: nowrap;

  border: 0;
}


/* ==========================================================
   HERO
   ========================================================== */

.hero {
  position: relative;

  isolation: isolate;

  background: var(--black);

  padding-bottom: 0;

  z-index: 1;
}


/* ==========================================================
   FOTO PRINCIPAL
   ========================================================== */

.hero-photo {
  position: relative;

  width: 100%;

  aspect-ratio: 1 / 1;

  background: #222;

  overflow: hidden;
}

.hero-photo picture {
  display: block;

  width: 100%;
  height: 100%;
}

.hero-photo img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  object-position: var(--hero-position);
}


/* ==========================================================
   FADE DA FOTO PRINCIPAL
   ========================================================== */

.hero-photo::after {
  content: "";

  position: absolute;

  inset: 0;

  z-index: 2;

  pointer-events: none;

  background: linear-gradient(
    to bottom,

    rgba(8, 8, 8, 0) 0%,
    rgba(8, 8, 8, 0) 42%,

    rgba(8, 8, 8, 0.03) 48%,
    rgba(8, 8, 8, 0.08) 54%,
    rgba(8, 8, 8, 0.16) 60%,
    rgba(8, 8, 8, 0.27) 66%,
    rgba(8, 8, 8, 0.40) 72%,
    rgba(8, 8, 8, 0.55) 78%,
    rgba(8, 8, 8, 0.70) 83%,
    rgba(8, 8, 8, 0.82) 88%,
    rgba(8, 8, 8, 0.91) 92%,
    rgba(8, 8, 8, 0.97) 96%,

    #080808 100%
  );
}


/* ==========================================================
   PLACEHOLDERS / IMAGENS
   ========================================================== */

.asset img {
  opacity: 0;
}

.asset.is-loaded img {
  opacity: 1;
}

.asset.is-loaded .placeholder {
  display: none;
}

.placeholder {
  position: absolute;

  display: grid;
  place-items: center;

  font-size: 12px;
  font-weight: 400;

  line-height: 1.6;

  letter-spacing: 0.12em;

  text-align: center;
}

.hero-placeholder {
  inset: 0;

  padding: 24px;

  color: #b2b2b2;
}


/* ==========================================================
   BOAS-VINDAS
   ========================================================== */

.welcome {
  position: relative;

  z-index: 3;

  padding: 30px 0 42px;

  background: var(--black);
}

.welcome h1 {
  max-width: 600px;

  margin-bottom: 12px;

  color: var(--white);

  font-size: clamp(26px, 7vw, 36px);

  line-height: 1.05;

  letter-spacing: -0.04em;

  font-weight: 700;
}

.welcome p {
  max-width: 460px;

  color: var(--muted);

  font-size: 17px;

  line-height: 1.5;

  letter-spacing: -0.015em;
}


/* ==========================================================
   DIVISÃO — COMO POSSO TE AJUDAR
   ========================================================== */

.section-divider {
  display: flex;

  align-items: center;

  gap: 18px;

  padding-top: 4px;

  padding-bottom: 30px;
}

.section-divider span {
  flex: 0 0 auto;

  color: #777;

  font-size: 10px;

  font-weight: 600;

  line-height: 1;

  letter-spacing: 0.16em;

  white-space: nowrap;
}

.section-divider-line {
  flex: 1;

  height: 1px;

  background: var(--rule);
}


/* ==========================================================
   OFERTAS
   ========================================================== */

.offers {
  position: relative;

  z-index: 2;
}

.offer {
  position: relative;

  padding-block: 72px 84px;

  isolation: isolate;

  overflow: clip;
}


/*
  A primeira oferta fica mais próxima da divisão editorial.
*/

.offer:first-child {
  padding-top: 10px;

  margin-top: 0;
}

.offer + .offer::before {
  content: "";

  position: absolute;

  top: 0;

  left: var(--gutter);
  right: var(--gutter);

  height: 1px;

  background: var(--rule);
}

.offer-grid {
  position: relative;

  display: grid;

  gap: 32px;
}


/* ==========================================================
   NOME DO PRODUTO
   ========================================================== */

.offer-title {
  max-width: 1150px;

  font-size: clamp(34px, 11.2vw, 72px);

  line-height: 0.98;

  letter-spacing: -0.055em;

  font-weight: 700;
}

.offer-title-word {
  white-space: nowrap;
}


/* ==========================================================
   PALAVRA GRÁFICA AO FUNDO
   ========================================================== */

.offer-watermark {
  position: absolute;

  top: 48%;
  left: -7%;

  z-index: -1;

  color: #121212;

  font-size: clamp(160px, 45vw, 640px);

  font-weight: 700;

  line-height: 0.8;

  letter-spacing: -0.07em;

  white-space: nowrap;

  pointer-events: none;

  user-select: none;
}

.offer:nth-child(3n + 2) .offer-watermark {
  top: 34%;

  left: auto;

  right: -13%;
}

.offer:nth-child(3n) .offer-watermark {
  top: auto;

  bottom: -14px;

  left: -16%;
}


/* ==========================================================
   CONTEÚDO DA OFERTA
   ========================================================== */

.offer-content {
  min-width: 0;

  display: grid;

  gap: 22px;
}

.offer-short {
  font-size: 21px;

  line-height: 1.45;

  letter-spacing: -0.025em;

  font-weight: 500;

  white-space: pre-line;

  overflow-wrap: normal;

  hyphens: none;
}

.offer-details {
  min-width: 0;
}

.offer-description {
  max-width: 560px;

  font-size: 18px;

  line-height: 1.65;

  letter-spacing: -0.012em;

  color: var(--muted);
}


/* ==========================================================
   BOTÕES
   ========================================================== */

.offer-button {
  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 14px;

  width: fit-content;

  max-width: 100%;

  min-height: 54px;

  padding: 15px 18px;

  margin-top: 28px;

  border: 1px solid var(--white);

  background: var(--white);

  color: var(--black);

  font-size: 12px;

  line-height: 1.5;

  letter-spacing: 0.005em;

  font-weight: 700;

  transition:
    background-color 0.22s ease,
    color 0.22s ease;
}

.button-arrow {
  flex: 0 0 auto;

  width: 22px;

  height: 18px;

  transition: transform 0.22s ease;
}

.offer-button:active {
  background: #c8c8c8;
}


/* ==========================================================
   QUEM É BRUNO NOGUEIRA
   ========================================================== */

.about {
  color-scheme: light;

  color: #171717;

  background: var(--white);

  padding-block: 80px 100px;
}

.about-grid {
  display: grid;

  gap: 52px;
}

.about-identity {
  display: flex;

  justify-content: space-between;

  align-items: center;

  gap: 24px;
}

.about-identity h2 {
  max-width: 650px;

  font-size: clamp(28px, 7.5vw, 42px);

  font-weight: 700;

  line-height: 1.05;

  letter-spacing: -0.045em;
}


/* ==========================================================
   FOTO SOBRE MIM
   ========================================================== */

.about-photo {
  flex-shrink: 0;

  position: relative;

  width: 92px;

  height: 92px;

  border-radius: 50%;

  overflow: hidden;

  background: #e3e3e1;
}

.about-photo .placeholder {
  inset: 0;

  color: #616161;

  font-size: 10px;

  letter-spacing: 0.05em;
}

.about-photo picture {
  display: block;

  width: 100%;

  height: 100%;
}

.about-photo img {
  object-fit: cover;

  object-position: var(--about-position);
}


/* ==========================================================
   HISTÓRIA
   ========================================================== */

.about-story {
  max-width: 760px;
}

.about-story p {
  font-size: 18px;

  line-height: 1.65;

  letter-spacing: -0.018em;
}

.about-story p + p {
  margin-top: 24px;
}

.about-story .about-intro {
  margin-bottom: 26px;

  font-size: 21px;

  line-height: 1.45;

  letter-spacing: -0.025em;

  font-weight: 500;
}

.about-story strong {
  font-weight: 600;
}


/* ==========================================================
   RODAPÉ
   ========================================================== */

.footer {
  display: grid;

  gap: 40px;

  padding-block: 54px 32px;
}

.footer-contacts {
  display: flex;

  gap: 36px;

  flex-wrap: wrap;
}

.footer-contacts a,
#email-contact {
  display: inline-flex;

  min-height: 44px;

  align-items: center;

  gap: 12px;

  font-size: 15px;
}

.footer-contacts a {
  text-decoration: underline;

  text-decoration-color: #686868;

  text-underline-offset: 5px;
}

.footer-email {
  display: flex;

  flex-direction: column;

  align-items: start;
}

#email-contact:not(a) {
  color: #aaa;
}

.copyright {
  padding-top: 26px;

  border-top: 1px solid var(--rule);

  color: #939393;

  font-size: 12px;
}


/* ==========================================================
   ANIMAÇÕES
   ========================================================== */

.reveal-pending {
  opacity: 0.01;

  transform: translateY(10px);
}

.reveal-visible {
  opacity: 1;

  transform: none;

  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
}


/* ==========================================================
   HOVER
   ========================================================== */

@media (hover: hover) and (pointer: fine) {

  .offer-button:hover {
    color: var(--white);

    background: transparent;
  }

  .offer-button:hover .button-arrow {
    transform: translateX(4px);
  }

  .footer-contacts a:hover {
    text-decoration-color: currentColor;
  }
}


/* ==========================================================
   TABLET / DESKTOP
   ========================================================== */

@media (min-width: 760px) {

  /* HERO */

  .hero-photo {
    aspect-ratio: 2 / 1;

    max-height: 680px;
  }

  .hero-photo img {
    object-position: 50% 25%;
  }

  .hero-photo::after {
    background: linear-gradient(
      to bottom,

      rgba(8, 8, 8, 0) 0%,
      rgba(8, 8, 8, 0) 48%,

      rgba(8, 8, 8, 0.04) 55%,
      rgba(8, 8, 8, 0.10) 62%,
      rgba(8, 8, 8, 0.20) 68%,
      rgba(8, 8, 8, 0.34) 74%,
      rgba(8, 8, 8, 0.50) 80%,
      rgba(8, 8, 8, 0.68) 86%,
      rgba(8, 8, 8, 0.82) 91%,
      rgba(8, 8, 8, 0.93) 95%,

      #080808 100%
    );
  }


  /* BOAS-VINDAS */

  .welcome {
    padding: 42px 0 48px;
  }

  .welcome h1 {
    margin-bottom: 14px;

    font-size: 38px;
  }

  .welcome p {
    max-width: 560px;

    font-size: 19px;
  }


  /* DIVISÃO */

  .section-divider {
    gap: 24px;

    padding-top: 4px;

    padding-bottom: 40px;
  }

  .section-divider span {
    font-size: 11px;
  }


  /* OFERTAS */

  .offer {
    padding-block: 104px 112px;
  }

  .offer:first-child {
    padding-top: 16px;

    margin-top: 0;
  }

  .offer-grid {
    gap: 48px;
  }

  .offer-title {
    font-size: clamp(64px, 7.8vw, 112px);
  }

  .offer-content {
    grid-template-columns:
      minmax(0, 1fr)
      minmax(0, 1fr);

    gap: clamp(40px, 7vw, 110px);

    align-items: start;
  }

  .offer-short {
    max-width: 590px;

    font-size: 24px;
  }

  .offer-description {
    font-size: 20px;
  }

  .offer-button {
    padding-inline: 22px;
  }


  /* QUEM É BRUNO */

  .about {
    padding-block: 104px 112px;
  }

  .about-grid {
    gap: 56px;
  }

  .about-identity {
    align-items: start;
  }

  .about-identity h2 {
    font-size: clamp(44px, 5vw, 72px);
  }

  .about-photo {
    width: 120px;

    height: 120px;
  }

  .about-story {
    width: 75%;

    margin-left: auto;
  }

  .about-story p {
    font-size: 20px;
  }

  .about-story .about-intro {
    font-size: 24px;
  }


  /* RODAPÉ */

  .footer {
    padding-block: 68px 36px;
  }
}


/* ==========================================================
   DESKTOP GRANDE
   ========================================================== */

@media (min-width: 1100px) {

  .hero-photo {
    aspect-ratio: 2.15 / 1;

    max-height: 700px;
  }

  .hero-photo img {
    object-position: 50% 27%;
  }

  .offer-title {
    max-width: 1200px;
  }

  .offer-short {
    font-size: 25px;
  }

  .offer-description {
    font-size: 20px;
  }
}


/* ==========================================================
   TELAS PEQUENAS
   ========================================================== */

@media (max-width: 390px) {

  :root {
    --gutter: 20px;
  }

  .welcome {
    padding: 26px 0 36px;
  }

  .welcome h1 {
    font-size: 26px;
  }

  .welcome p {
    font-size: 16px;
  }

  .section-divider {
    gap: 14px;

    padding-top: 2px;

    padding-bottom: 26px;
  }

  .section-divider span {
    font-size: 9px;

    letter-spacing: 0.14em;
  }

  .offer {
    padding-block: 64px 72px;
  }

  .offer:first-child {
    padding-top: 8px;

    margin-top: 0;
  }

  .offer-title {
    font-size: clamp(32px, 10.8vw, 44px);
  }

  .offer-short {
    font-size: 20px;
  }

  .offer-description {
    font-size: 17px;
  }

  .offer-button {
    min-height: 52px;

    padding: 14px 16px;

    font-size: 11px;
  }

  .about {
    padding-block: 72px 84px;
  }

  .about-story p {
    font-size: 17px;
  }

  .about-story .about-intro {
    font-size: 20px;
  }
}


/* ==========================================================
   REDUCED MOTION
   ========================================================== */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;

    animation-duration: 0.01ms !important;

    animation-iteration-count: 1 !important;

    transition-duration: 0.01ms !important;
  }

  .reveal-pending,
  .reveal-visible {
    opacity: 1;

    transform: none;
  }
}