/* GIOF Loja — base herdada da apresentação (tokens, tipografia, botões, revelações, slider da home) */
/*  */
:root {
  --papel: #e9e0d2;
  --papel-2: #e2d7c6;
  --papel-3: #d6c9b5;
  --tinta: #3a392a;
  --tinta-2: #57554a;
  --tinta-3: #8a8371;
  --oliva: #646340;
  --oliva-esc: #545335;
  --salvia: #8a896c;
  --terra: #a4573f;
  --azul: #5c7b90;
  --ouro: #a98659;
  --creme: #f3ece0;
  --noite: #11100e;
  --serif: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --gut: clamp(20px, 5vw, 88px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.77, 0, .18, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}
body.is-loading { overflow: hidden; }
/* Textura de papel */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: .5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .40 0 0 0 0 .32 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { display: block; max-width: 100%; }
figure { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ol, ul, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
svg { width: 1em; height: 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pular { position: fixed; left: 16px; top: -60px; z-index: 300; background: var(--oliva); color: var(--creme); padding: 10px 16px; border-radius: 4px; text-decoration: none; font-family: var(--sans); font-size: 13px; }
.pular:focus { top: 16px; }
:focus-visible { outline: 1px solid var(--ouro); outline-offset: 4px; }

/* Logo (máscara — assume a cor do texto) */
.logo-mask {
  display: block;
  aspect-ratio: 640 / 178;
  background: currentColor;
  -webkit-mask: url("../img/logo-giof.png") center / contain no-repeat;
  mask: url("../img/logo-giof.png") center / contain no-repeat;
}

/* ---------- Tipografia ---------- */
.titulo { font-family: var(--serif); font-weight: 400; color: var(--tinta); line-height: 1.02; letter-spacing: -.005em; }
.titulo--xxl { font-size: clamp(56px, 6.8vw, 124px); line-height: .9; }
.titulo--xl { font-size: clamp(40px, 4.5vw, 80px); }
.titulo--l { font-size: clamp(38px, 4.3vw, 72px); }
.titulo--caps { font-size: clamp(50px, 6vw, 100px); letter-spacing: .1em; font-weight: 400; }
.titulo .l { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.titulo .l > span { display: block; }
.caps { font-family: var(--sans); font-weight: 400; font-size: clamp(12px, 1vw, 15px); letter-spacing: .32em; text-transform: uppercase; color: var(--tinta-2); }
.caps--l { font-size: clamp(14px, 1.35vw, 21px); letter-spacing: .26em; }
.caps--sm { font-size: 12px; font-weight: 500; letter-spacing: .3em; }
.italico { font-style: italic; font-size: clamp(19px, 1.55vw, 26px); line-height: 1.45; color: var(--tinta-2); }
.italico--ico { position: relative; padding-left: 46px; }
.italico--ico svg { position: absolute; left: 0; top: -.9em; width: 30px; height: 30px; color: var(--ouro); }
.corpo { font-size: clamp(18px, 1.35vw, 22px); line-height: 1.6; color: var(--tinta-2); }
.corpo + .corpo { margin-top: 1.1em; }
.corpo--ico { display: flex; gap: 22px; align-items: flex-start; }
.ico-ouro { color: var(--ouro); width: 40px; height: 40px; flex: none; }
.lema-mini { font-family: var(--sans); font-size: 11px; letter-spacing: .42em; text-transform: uppercase; color: var(--tinta-2); }
.lema-mini--center { text-align: center; }

/* Divisor pontilhado com o laço da runa */
.divisor { display: flex; align-items: center; gap: 10px; width: min(300px, 70%); color: var(--tinta-3); }
.divisor i { position: relative; flex: 1; height: 0; border-top: 1.5px dotted currentColor; transform-origin: right; }
.divisor i:last-child { transform-origin: left; }
.divisor i::before { content: ""; position: absolute; top: -3.5px; left: -2px; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.divisor i:last-child::before { left: auto; right: -2px; }
.divisor svg { width: 26px; height: 15px; color: var(--ouro); flex: none; }
.divisor--long { width: min(560px, 100%); }
.divisor--short { width: 110px; }
.divisor--wide { width: min(1120px, 86vw); }
.divisor--center { margin-inline: auto; }
.divisor--claro { color: rgba(243, 236, 224, .55); }
.divisor--claro svg { color: rgba(243, 236, 224, .8); }

/* Botões */
.btn-round { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; border: 1px solid rgba(243, 236, 224, .5); background: transparent; cursor: pointer; color: var(--creme); transition: background .4s var(--ease), border-color .4s, color .4s; }
.btn-round svg { width: 20px; height: 20px; }
.btn-round:hover { background: var(--creme); color: var(--tinta); border-color: var(--creme); }
.btn-round--sm { width: 46px; height: 46px; }
.btn-round--sm svg { width: 17px; height: 17px; }
.btn-line { display: inline-flex; align-items: center; min-height: 46px; padding: 0 26px; border: 1px solid currentColor; border-radius: 999px; font-family: var(--sans); font-size: 12px; letter-spacing: .24em; text-transform: uppercase; text-decoration: none; transition: background .4s var(--ease), color .4s; }
.home .btn-line { color: var(--creme); border-color: rgba(243, 236, 224, .5); }
.home .btn-line:hover { background: var(--creme); color: var(--tinta); }
.btn-line--ghost { border-color: transparent; text-decoration: underline; text-underline-offset: 6px; padding: 0 10px; }

/* ---------- Revelações ---------- */
.js [data-reveal="fade"] { opacity: 0; transition: opacity 1.4s var(--ease); }
.js [data-reveal="up"] { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease), transform 1.2s var(--ease); }
.js [data-reveal="lines"] .l > span { transform: translateY(105%); transition: transform 1.3s var(--ease); }
.js [data-reveal="lines"] .l:nth-child(2) > span { transition-delay: .1s; }
.js [data-reveal="line"] i { transform: scaleX(0); transition: transform 1.4s var(--ease-io); }
.js [data-reveal="line"] svg { opacity: 0; transform: scale(.4) rotate(-90deg); transition: opacity .8s .6s, transform 1s .6s var(--ease); }
.js [data-reveal^="wipe"], .js [data-reveal="arch"] { transition: clip-path 1.5s var(--ease-io); }
.js [data-reveal="wipe-l"] { clip-path: inset(0 0 0 100%); }
.js [data-reveal="wipe-r"] { clip-path: inset(0 100% 0 0); }
.js [data-reveal="wipe-u"] { clip-path: inset(100% 0 0 0); }
.js [data-reveal="arch"] { clip-path: inset(100% 0 0 0); }
.js [data-reveal^="wipe"] img, .js [data-reveal="arch"] img { transform: scale(1.25); transition: transform 2.2s var(--ease); }
.js [data-reveal="stagger"] > * { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.js [data-reveal="stagger"] > *:nth-child(2) { transition-delay: .12s; }
.js [data-reveal="stagger"] > *:nth-child(3) { transition-delay: .24s; }
.js [data-reveal="stagger"] > *:nth-child(4) { transition-delay: .36s; }
.js [data-reveal="stagger"] > *:nth-child(5) { transition-delay: .48s; }
.js [data-reveal="step"] { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.js [data-reveal="step"] .etapas__box { clip-path: inset(100% 0 0 0); transition: clip-path 1.2s var(--ease-io); }
.js [data-reveal].is-in { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }
.js [data-reveal].is-in .l > span, .js [data-reveal].is-in i, .js [data-reveal].is-in svg, .js [data-reveal].is-in > *, .js [data-reveal].is-in .etapas__box { transform: none; opacity: 1; clip-path: inset(0 0 0 0); }
.js [data-reveal].is-in img { transform: scale(1); }
.js [data-reveal="step"].is-in .etapas__box { clip-path: inset(0 0 0 0); }
[data-reveal="arch"].is-in { clip-path: inset(0 0 0 0); }

/* =========================================================
   01 · HOME — cards temporizados com as cinco linhas
   ========================================================= */
.home {
  --cw: clamp(132px, 11.4vw, 210px);
  --ch: calc(var(--cw) * 1.48);
  --cx: 54vw;
  --cgap: 22px;
  --ctop: calc(50% - var(--ch) / 2 + 36px);
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  overflow: clip;
  background: var(--noite);
  color: var(--creme);
}
.home__bgs, .home__bg { position: absolute; inset: 0; }
.home__bgs { z-index: 1; }
.home__bg { visibility: hidden; will-change: clip-path; }
.home__bg.is-active, .home__bg.is-opening { visibility: visible; }
.home__bg.is-opening { z-index: 2; }
.home__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; transform-origin: 60% 60%; filter: blur(4px) saturate(1.05); }
.home__bg.is-active img { animation: respira 14s ease-in-out infinite alternate; }
@keyframes respira { from { transform: scale(1.02); } to { transform: scale(1.1); } }
.home__veil { position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(17, 16, 12, .82) 0%, rgba(17, 16, 12, .55) 32%, rgba(17, 16, 12, .12) 62%, rgba(17, 16, 12, .25) 100%),
    linear-gradient(0deg, rgba(17, 16, 12, .7) 0%, rgba(17, 16, 12, 0) 38%),
    linear-gradient(180deg, rgba(17, 16, 12, .5) 0%, rgba(17, 16, 12, 0) 22%); }

/* Aurora — embalagem preta, em breve */
.home__bg--aurora { background: radial-gradient(120% 90% at 72% 55%, #2a241c 0%, #15130f 45%, #0b0a09 100%); }
.aurora { position: absolute; inset: 0; overflow: hidden; }
.aurora__glow { position: absolute; left: 62%; top: 52%; width: 70vmin; height: 70vmin; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(201, 160, 104, .32) 0%, rgba(201, 160, 104, .08) 40%, transparent 70%); filter: blur(10px); animation: brilho 6s ease-in-out infinite alternate; }
.aurora__runa { position: absolute; left: 62%; top: 52%; width: 18vmin; height: 30vmin; transform: translate(-50%, -50%); color: #c9a068; filter: drop-shadow(0 0 18px rgba(201, 160, 104, .55)); opacity: .9; }
@keyframes brilho { from { opacity: .6; transform: translate(-50%, -50%) scale(.9); } to { opacity: 1; transform: translate(-50%, -50%) scale(1.08); } }

.home__text { position: absolute; z-index: 5; left: var(--gut); top: 50%; width: min(600px, calc(var(--cx) - var(--gut) - 40px)); transform: translateY(-46%); display: grid; }
.home__item { grid-area: 1 / 1; visibility: hidden; }
.home__item.is-active { visibility: visible; }
.home__kicker { display: flex; align-items: center; gap: 14px; font-family: var(--sans); font-size: 12px; letter-spacing: .32em; text-transform: uppercase; color: rgba(243, 236, 224, .85); }
.home__kicker i { width: 34px; border-top: 1px solid #c9a068; }
.home__title { margin-top: 14px; font-family: var(--serif); font-weight: 300; font-size: clamp(64px, 9.4vw, 168px); line-height: .88; letter-spacing: .05em; text-transform: uppercase; overflow: hidden; padding-bottom: .04em; }
.home__title span { display: block; }
.home__notes { margin-top: 20px; max-width: 30ch; font-style: italic; font-size: clamp(20px, 1.7vw, 28px); line-height: 1.35; color: rgba(243, 236, 224, .9); }
.home__line { grid-row: 2; margin-top: 26px; max-width: 42ch; font-family: var(--sans); font-size: 13px; line-height: 1.7; letter-spacing: .04em; color: rgba(243, 236, 224, .7); }
.home__cta { grid-row: 3; display: flex; align-items: center; gap: 14px; margin-top: 30px; }
.home__cta .btn-round { background: #c9a068; border-color: #c9a068; color: var(--noite); }
.home__cta .btn-round svg { transform: rotate(90deg); }
.home__cta .btn-round:hover { background: var(--creme); border-color: var(--creme); }

.home__cards { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.card { position: absolute; left: 0; top: var(--ctop); width: var(--cw); height: var(--ch); pointer-events: auto; will-change: transform; }
.card button { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 14px; overflow: hidden; cursor: pointer; background: #222; box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .7); text-align: left; transition: transform .6s var(--ease); }
.card button:hover { transform: translateY(-8px); }
.card img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
.card__info { position: absolute; inset: auto 0 0; padding: 40px 14px 14px; background: linear-gradient(0deg, rgba(14, 13, 10, .85), transparent); color: var(--creme); }
.card__info small { display: block; font-family: var(--sans); font-size: 9px; letter-spacing: .24em; text-transform: uppercase; opacity: .8; }
.card__info b { display: block; margin-top: 4px; font-family: var(--serif); font-weight: 400; font-size: clamp(19px, 1.6vw, 26px); letter-spacing: .08em; text-transform: uppercase; line-height: 1; }
.card__dark { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(90% 70% at 50% 45%, #2c261d, #0d0c0a 75%); }
.card__dark svg { width: 34%; height: 40%; color: #c9a068; filter: drop-shadow(0 0 10px rgba(201, 160, 104, .5)); }

.home__nav { position: absolute; z-index: 5; left: var(--cx); right: var(--gut); bottom: max(5vh, 30px); display: flex; align-items: center; gap: 12px; }
.home__bar { flex: 1; height: 1px; margin: 0 18px; background: rgba(243, 236, 224, .25); overflow: hidden; }
.home__bar i { display: block; height: 100%; background: #c9a068; transform-origin: left; transform: scaleX(0); }
.home__num { height: 1em; overflow: hidden; font-family: var(--serif); font-weight: 300; font-size: clamp(42px, 4vw, 66px); line-height: 1; }
.home__num-roll { display: block; transition: transform .9s var(--ease); }
.home__num-roll span { display: block; height: 1em; }
.home__label { position: absolute; z-index: 5; left: var(--cx); top: calc(var(--ctop) - 46px); font-family: var(--sans); font-size: 11px; letter-spacing: .36em; text-transform: uppercase; color: rgba(243, 236, 224, .7); }


@media (max-width: 900px) {
  body { font-size: 17px; }
  .home {
    --cw: 104px;
    --ch: 150px;
    --cx: var(--gut);
    --cgap: 12px;
    --ctop: calc(100% - var(--ch) - 104px);
  }
  .home__text { top: 96px; transform: none; width: calc(100% - var(--gut) * 2); }
  .home__title { font-size: clamp(56px, 17vw, 110px); }
  .home__notes { font-size: 20px; }
  .home__line { display: none; }
  .home__cta { margin-top: 22px; }
  .home__label { display: none; }
  .home__nav { bottom: 34px; }
  .home__veil { background: linear-gradient(180deg, rgba(17, 16, 12, .78) 0%, rgba(17, 16, 12, .35) 45%, rgba(17, 16, 12, .8) 100%); }
}
