/* Gilroy (licenciada): para ativar, adicione @font-face apontando para /assets/fonts. A pilha --display já a prioriza. */

:root {
  --bg: #ffffff;
  --soft: #f3f3f0;
  --ink: #0c0c0c;
  --green: #163b23;
  --mute: #6a6a66;
  --line: #d9d9d4;
  --display: "Gilroy", "Outfit", system-ui, sans-serif;
  --text: "Instrument Sans", system-ui, sans-serif;
  --pad: clamp(1rem, 3.2vw, 3.2rem);
  --nav-h: 48px;
  --ease: cubic-bezier(0.22, 1, 0.36, 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(--bg); color: var(--ink); font-family: var(--text); font-size: 1rem; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.locked { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--display); margin: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
[hidden] { display: none !important; }
::selection { background: var(--ink); color: #fff; }

/* barra de aviso */
.topbar { background: var(--green); color: #fff; text-align: center; font-size: 0.8rem; padding: 0.7rem var(--pad); }
.topbar a { display: inline-block; }
.topbar a:hover { text-decoration: underline; }

/* navegação em células */
.nav { position: sticky; top: 0; z-index: 60; display: flex; align-items: stretch; height: var(--nav-h); background: var(--bg); border-bottom: 1px solid var(--line); }
.cell { display: flex; align-items: center; justify-content: center; padding: 0 clamp(1rem, 2.4vw, 2.2rem); border-right: 1px solid var(--line); font-size: 0.92rem; font-weight: 500; white-space: nowrap; }
.cell-link { transition: background 0.2s; }
.cell-link:hover { background: var(--soft); }
.cell-fill { flex: 1; border-right: 1px solid var(--line); }
.cell-dark { background: var(--green); color: #fff; border-right: 0; font-weight: 600; transition: background 0.2s; }
.cell-dark:hover { background: #0f2a18; }
.logo { font-family: var(--display); font-weight: 800; font-size: 1.28rem; letter-spacing: -0.03em; text-transform: uppercase; padding: 0 clamp(1.2rem, 4vw, 3.4rem); }
@media (max-width: 760px) {
  .hide-m { display: none; }
  .logo { border-right: 0; margin-right: auto; }
}

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.95rem 1.7rem; font-weight: 600; font-size: 0.92rem; border: 1px solid transparent; border-radius: 0; transition: background 0.25s, color 0.25s, border-color 0.25s; }
.btn-ink { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-ink:hover { background: #3a3a38; border-color: #3a3a38; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--soft); }
.btn-line { color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.btn-line:hover { background: #fff; color: var(--ink); }
.btn-outline { border-color: var(--ink); background: none; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-big { width: 100%; padding: 1.15rem; font-size: 1rem; }
.kicker { margin: 0 0 0.9rem; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }

/* hero com foto */
.hero { position: relative; height: min(82svh, 780px); min-height: 460px; overflow: hidden; color: #fff; display: flex; align-items: flex-end; background: #1b1b1b; }
.hero-img { position: absolute; inset: -4% 0; width: 100%; height: 108%; object-fit: cover; object-position: 50% 54%; will-change: transform; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.1) 62%), linear-gradient(0deg, rgba(0, 0, 0, 0.45), transparent 45%); }
.hero-copy { position: relative; padding: 0 var(--pad) clamp(2rem, 5vw, 4rem); max-width: 760px; }
.hero h1 { font-weight: 700; font-size: clamp(2.6rem, 7.4vw, 6.4rem); line-height: 0.95; letter-spacing: -0.04em; text-transform: uppercase; }
.hero h1 .line { display: block; overflow: hidden; padding: 0.04em 0; margin: -0.04em 0; }
.hero h1 .line > span { display: inline-block; }
.hero-sub { max-width: 42ch; margin: 1.2rem 0 1.6rem; font-size: 1.05rem; color: rgba(255, 255, 255, 0.9); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.7rem; }

/* introdução + atalhos de marca */
.intro { padding: clamp(3rem, 6vw, 5.5rem) var(--pad) clamp(2.5rem, 5vw, 4rem); }
.intro-title { font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.7rem; }
.intro-text { max-width: 62ch; margin: 0 0 2.2rem; font-size: 1.05rem; }
.tiles { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.tile { background: none; border: 0; padding: 0; text-align: left; width: clamp(130px, 14vw, 170px); }
.tile-img { aspect-ratio: 1; overflow: hidden; background: var(--soft); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12); }
.tile-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.tile:hover .tile-img img { transform: scale(1.07); }
.tile span { display: block; margin-top: 0.7rem; font-size: 1rem; }
.tile small { color: var(--mute); font-size: 0.82rem; }

/* destaque Seiko */
.spotlight { display: grid; grid-template-columns: 1.35fr 1fr; background: var(--soft); border-block: 1px solid var(--line); }
.spot-img { overflow: hidden; min-height: 420px; }
.spot-img img { width: 100%; height: 100%; object-fit: cover; }
.spot-copy { padding: clamp(2rem, 5vw, 4.5rem) var(--pad); display: flex; flex-direction: column; justify-content: center; }
.spot-copy h2 { font-size: clamp(3.4rem, 8vw, 7rem); font-weight: 800; letter-spacing: -0.05em; text-transform: uppercase; line-height: 0.9; margin-bottom: 1.2rem; }
.spot-lead { margin: 0 0 1.2rem; font-size: 1.08rem; max-width: 40ch; }
.spot-list { list-style: none; padding: 0; margin: 0 0 1.8rem; border-top: 1px solid var(--line); }
.spot-list li { padding: 0.6rem 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.spot-cta { display: flex; flex-wrap: wrap; gap: 0.7rem; }
@media (max-width: 860px) { .spotlight { grid-template-columns: 1fr; } .spot-img { min-height: 260px; aspect-ratio: 3 / 2; } }

/* barra de filtros */
.collection { padding-bottom: clamp(3rem, 7vw, 6rem); }
.toolbar { position: sticky; top: var(--nav-h); z-index: 40; display: flex; align-items: stretch; background: var(--bg); border-bottom: 1px solid var(--line); min-height: 52px; }
.tb-cell { display: flex; align-items: center; gap: 0.5rem; padding: 0 clamp(0.9rem, 2vw, 1.8rem); background: none; border: 0; border-right: 1px solid var(--line); font-size: 0.92rem; font-weight: 500; }
.tb-cell:hover { background: var(--soft); }
.tb-underline { text-decoration: underline; text-underline-offset: 3px; }
.caret { font-size: 0.8em; transition: transform 0.25s; }
#filterBtn[aria-expanded="true"] .caret { transform: rotate(180deg); }
.tb-chips { display: flex; align-items: center; gap: 0.5rem; padding: 0 1rem; flex: 1; overflow-x: auto; }
.chip { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.45rem 0.8rem; background: var(--soft); border: 0; font-size: 0.88rem; white-space: nowrap; }
.chip button { background: none; border: 0; padding: 0; font-weight: 700; }
.tb-search { border-right: 0; border-left: 1px solid var(--line); }
.tb-search input { border: 0; outline: 0; background: none; width: clamp(80px, 12vw, 180px); }
.tb-sort { border-right: 0; border-left: 1px solid var(--line); }
.tb-sort select { background: none; border: 0; outline: 0; font-weight: 600; cursor: pointer; }
.tb-grid { border-right: 0; border-left: 1px solid var(--line); gap: 3px; }
.tb-grid i { width: 7px; height: 7px; background: var(--ink); display: block; }
.tb-grid.big i:nth-child(n+3) { display: none; }
.tb-grid.big i { width: 14px; height: 14px; background: none; border: 1.5px solid var(--ink); }
@media (max-width: 760px) {
  .tb-search, .tb-grid { display: none; }
  .tb-chips { padding: 0 0.6rem; }
  .tb-sort span { display: none; }
}

.filter-panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; padding: 1.4rem var(--pad); background: var(--soft); border-bottom: 1px solid var(--line); }
@media (max-width: 640px) { .filter-panel { grid-template-columns: 1fr; gap: 1.2rem; } }
.filter-panel h4 { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 0.7rem; }
.tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tab { background: #fff; border: 1px solid var(--line); padding: 0.5rem 0.9rem; font-size: 0.9rem; transition: border-color 0.2s, background 0.2s, color 0.2s; }
.tab:hover { border-color: var(--ink); }
.tab[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

.count { margin: 1.4rem var(--pad) 1rem; font-size: 0.9rem; color: var(--mute); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 2.6rem 1.2rem; padding: 0 var(--pad); }
.grid.big { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 560px) { .grid.big, .grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 0.7rem; } }
.card { background: none; border: 0; padding: 0; text-align: left; display: block; }
.card-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--soft); }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease), opacity 0.5s; }
.card-media img.alt { opacity: 0; }
.card:hover .card-media img.alt { opacity: 1; }
.card:hover .card-media img { transform: scale(1.04); }
.badge { position: absolute; top: 0.7rem; left: 0.7rem; background: #fff; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.25rem 0.55rem; }
.card-body { padding-top: 0.9rem; display: grid; gap: 0.15rem; }
.card-brand { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); }
.card-name { font-family: var(--display); font-weight: 600; font-size: 1.12rem; line-height: 1.2; letter-spacing: -0.01em; }
.card-meta { font-size: 0.84rem; color: var(--mute); }
.card-price { margin-top: 0.4rem; font-weight: 700; }
.card.sold .card-media img { filter: grayscale(0.85); opacity: 0.6; }
.card.sold .card-name, .card.sold .card-price { color: var(--mute); }
.badge-sold { background: var(--ink); color: #fff; }
.card-price.ask { font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.empty { padding: 4rem var(--pad); }
.empty p { font-size: 1.2rem; margin: 0 0 1rem; }

/* como comprar */
.how { padding: clamp(3rem, 7vw, 6rem) var(--pad); background: var(--green); color: #fff; }
.how h2 { font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 2rem; }
.how ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.how li { border-top: 1px solid rgba(255, 255, 255, 0.55); padding-top: 1rem; }
.how li span { font-size: 0.82rem; color: rgba(255, 255, 255, 0.65); }
.how h3 { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.03em; margin: 0.4rem 0 0.5rem; }
.how p { margin: 0; max-width: 34ch; color: rgba(255, 255, 255, 0.8); }
@media (max-width: 760px) { .how ol { grid-template-columns: 1fr; } }

.contact { padding: clamp(3rem, 8vw, 7rem) var(--pad); }
.big-cta { display: block; }
.big-cta span { display: block; color: var(--mute); margin-bottom: 0.6rem; }
.big-cta strong { display: block; font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: -0.045em; line-height: 0.9; font-size: clamp(2.4rem, 9.5vw, 9rem); transition: opacity 0.3s; }
.big-cta strong i { font-style: normal; display: inline-block; transition: transform 0.4s var(--ease); }
.big-cta:hover strong { opacity: 0.6; }
.big-cta:hover strong i { transform: translateX(0.12em); }
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; padding: 1.2rem var(--pad); border-top: 1px solid var(--line); font-size: 0.82rem; color: var(--mute); }

/* modal */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 1rem; visibility: hidden; }
.modal.open { visibility: visible; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(12, 12, 12, 0.55); opacity: 0; transition: opacity 0.35s; }
.modal.open .modal-backdrop { opacity: 1; }
.modal-panel { position: relative; width: min(1040px, 100%); max-height: 94svh; overflow: auto; display: grid; grid-template-columns: 1.1fr 1fr; background: var(--bg); transform: translateY(24px); opacity: 0; transition: transform 0.5s var(--ease), opacity 0.35s; }
.modal.open .modal-panel { transform: none; opacity: 1; }
.modal-close { position: absolute; top: 0; right: 0; z-index: 3; background: var(--ink); color: #fff; border: 0; padding: 0.7rem 1rem; font-weight: 600; font-size: 0.85rem; }
.modal-visual { background: var(--soft); display: grid; grid-template-rows: 1fr auto; min-height: 0; }
.m-main { width: 100%; height: 100%; max-height: 74svh; object-fit: contain; }
.m-thumbs { display: flex; gap: 2px; padding: 2px; overflow-x: auto; }
.m-thumb { flex: 0 0 72px; height: 72px; padding: 0; border: 0; background: none; opacity: 0.55; outline-offset: -2px; transition: opacity 0.2s; }
.m-thumb[aria-pressed="true"], .m-thumb:hover { opacity: 1; }
.m-thumb[aria-pressed="true"] { outline: 2px solid var(--ink); }
.m-thumb img { width: 100%; height: 100%; object-fit: cover; }
.modal-info { padding: clamp(1.4rem, 3.5vw, 2.6rem); display: flex; flex-direction: column; gap: 0.2rem; }
.modal-info h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.modal-price { font-family: var(--display); font-weight: 700; font-size: 1.6rem; margin: 0.8rem 0; }
.m-desc { margin: 0 0 1rem; color: var(--mute); }
.m-features { list-style: none; padding: 0; margin: 0 0 1.2rem; display: grid; gap: 0.3rem; font-size: 0.92rem; font-weight: 500; }
.m-features li::before { content: "—"; margin-right: 0.6rem; }
.m-features:empty { display: none; }
.specs { display: grid; grid-template-columns: auto 1fr; margin: 0 0 1.5rem; font-size: 0.9rem; border-top: 1px solid var(--ink); }
.specs dt, .specs dd { margin: 0; padding: 0.55rem 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--mute); padding-right: 1.5rem; }
.specs dd { text-align: right; font-weight: 600; }
@media (max-width: 760px) { .modal-panel { grid-template-columns: 1fr; } .m-main { max-height: 52svh; } }

/* galeria curva (Tilted Grid) */
.gallery { background: var(--green); color: #fff; }
.tgh { position: relative; overflow: hidden; height: clamp(440px, 72svh, 680px); container-type: size; }
.tgh-band { position: absolute; inset: 0; pointer-events: none; transition: opacity 0.5s; }
.tgh-tile { position: absolute; transform-style: preserve-3d; }
.tgh-slice { position: absolute; top: 0; overflow: hidden; background: #0f2a18; }
.tgh-slice img { position: absolute; top: 0; max-width: none; object-fit: cover; }
.tgh-first { border-radius: 8px 0 0 8px; }
.tgh-last { border-radius: 0 8px 8px 0; }
.tgh-copy { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: space-between; text-align: center; padding: clamp(2rem, 5vw, 3.5rem) var(--pad); pointer-events: none; }
.tgh-copy .btn { pointer-events: auto; }
.tgh-copy h2 { font-size: clamp(2rem, 5vw, 4rem); font-weight: 700; letter-spacing: -0.04em; text-transform: uppercase; line-height: 0.95; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5); }
.tgh-copy .kicker { color: rgba(255, 255, 255, 0.85); }

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