/* tontura.club — estilos do site */
:root {
  --bg: #EEEEEB;
  --ink: #111111;
  --gray: #6B6B67;
  --dark: #3A3A38;
  --blue: #0000FF;
  --stone: #D7D4CD;
  --base: 0s;
  --ease: cubic-bezier(.76, 0, .24, 1);
  --pad: 40px;
}
html.intro { --base: 1s; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: .04em;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--blue); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-transform: inherit; letter-spacing: inherit; }
button:hover { color: var(--blue); }
img, video { display: block; max-width: 100%; }
.up { text-transform: uppercase; }
.muted { color: var(--gray); }
.dim { color: var(--dark); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Idioma: o HTML tem as duas versões, o CSS mostra uma */
html[lang="pt"] .l-en { display: none !important; }
html:not([lang="pt"]) .l-pt { display: none !important; }

/* Animações de entrada */
.enter { opacity: 0; transform: translateY(14px); animation: enter 1s cubic-bezier(.22, 1, .36, 1) forwards; animation-delay: calc(var(--base) + var(--d, 0s)); }
@keyframes enter { to { opacity: 1; transform: none; } }
.wipe { position: fixed; left: 0; top: 0; width: 100%; height: 1px; background: var(--blue); transform-origin: left; transform: scaleX(0); animation: wipe 1.2s var(--ease) forwards; animation-delay: var(--base); z-index: 60; pointer-events: none; }
@keyframes wipe { 0% { transform: scaleX(0); opacity: 1; } 60% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
.dot { width: 11px; height: 11px; border-radius: 50%; background: var(--blue); display: inline-block; animation: pulse 2.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .15; } }

/* Intro de cores */
#curtain { position: fixed; inset: 0; z-index: 2147483000; pointer-events: none; opacity: 0; transition: opacity .6s ease; }

/* Cabeçalho */
.head { position: absolute; left: var(--pad); right: var(--pad); top: 32px; display: flex; justify-content: space-between; align-items: center; z-index: 20; text-transform: uppercase; --d: 0s; }
.head-left { display: flex; align-items: center; gap: 48px; }
.logo { display: flex; align-items: center; gap: 10px; }
.nav { display: flex; gap: 22px; }
.nav a.on { text-decoration: underline; text-underline-offset: 4px; }
.nav a.on:hover { color: var(--ink); }
.langs { display: flex; gap: 8px; align-items: center; }
.langs button[aria-pressed="true"] { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.menu-btn { display: none; height: 44px; padding-left: 16px; text-transform: uppercase; }

/* Menu azul do celular */
.menu { position: fixed; inset: 0; z-index: 50; background: var(--blue); color: var(--bg); padding: 16px 20px 20px; display: none; flex-direction: column; text-transform: uppercase; }
.menu.open { display: flex; animation: menuIn .6s var(--ease) both; }
.menu.out { display: flex; animation: menuOut .5s var(--ease) both; }
@keyframes menuIn { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes menuOut { from { clip-path: inset(0 0 0 0); } to { clip-path: inset(0 0 100% 0); } }
.menu a:hover, .menu button:hover { color: var(--ink); }
.menu-top { display: flex; justify-content: space-between; align-items: center; height: 44px; }
.menu-top .logo span:first-child { width: 11px; height: 11px; border-radius: 50%; background: var(--bg); }
.menu nav { margin-top: 96px; display: flex; flex-direction: column; gap: 6px; }
.menu nav a { display: flex; align-items: baseline; gap: 14px; font-size: 40px; line-height: 1.15; font-weight: 500; letter-spacing: -.02em; }
.menu nav a small { font-size: 11px; font-weight: 400; letter-spacing: .04em; }
.menu-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.menu-foot .langs button { height: 44px; }
.menu-foot .langs button[aria-pressed="true"] { color: var(--bg); }
.menu-foot a.mail { text-transform: none; }

/* Rodapé */
.foot { display: flex; justify-content: space-between; text-transform: uppercase; padding: 0 var(--pad) 28px; }

/* ---------- HOME ---------- */
body[data-page="home"] { overflow: hidden; height: 100%; overscroll-behavior: none; }
html:has(body[data-page="home"]) { overflow: hidden; height: 100%; }
.home { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; text-transform: uppercase; }
.home #strip { position: absolute; inset: 0; }
.tagline { position: absolute; left: var(--pad); top: 120px; width: 300px; margin: 0; text-transform: none; letter-spacing: 0; color: var(--gray); z-index: 5; --d: .15s; }
.home-foot { position: absolute; left: var(--pad); bottom: 28px; z-index: 5; --d: .45s; }
.home-scroll { position: absolute; left: 32vw; bottom: 22px; display: flex; align-items: center; gap: 16px; color: var(--gray); z-index: 5; --d: .45s; }
.home-scroll button { width: 28px; height: 28px; }
.listening { position: absolute; right: var(--pad); bottom: 28px; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; z-index: 5; --d: .45s; }
.listening .row { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.listening .track { font-weight: 500; max-width: 42ch; overflow: hidden; text-overflow: ellipsis; }
.eq { display: flex; align-items: flex-end; gap: 2px; height: 10px; }
.eq i { display: block; width: 2px; height: 10px; background: var(--ink); transform-origin: bottom; animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: .2s; }
.eq i:nth-child(3) { animation-delay: .45s; }
@keyframes eq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
.listening[hidden] { display: none; }

/* Faixa infinita (desenhada pelo home.js) */
.tw { position: absolute; inset: 0; overflow: hidden; outline: none; touch-action: pan-x; --d: .05s; }
.tw-strip { position: absolute; top: 0; display: flex; flex-direction: column; align-items: flex-start; }
.tw-card { display: block; position: relative; overflow: hidden; flex-shrink: 0; background: var(--stone); }
.tw-card img, .tw-card video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (hover: hover) and (pointer: fine) { .tw-card:hover { filter: none !important; opacity: 1 !important; } }
.tw-meta { position: absolute; display: flex; flex-direction: column; gap: 6px; transition: opacity .35s ease; }
.tw-name { font-weight: 500; text-align: left; }
.tw-index { position: absolute; display: flex; flex-direction: column; gap: 8px; width: 300px; }
.tw-index-window { position: relative; overflow: hidden; }
.tw-index-list { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; }
.tw-index-row { display: flex !important; gap: 14px; height: 22px; align-items: center; text-align: left; white-space: nowrap; transition: opacity .6s ease, color .3s ease; }
.tw-view-all { align-self: flex-start; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- PÁGINAS DE LISTA (Index, Covers) ---------- */
.page { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.page-main { flex: 1; padding: 120px var(--pad) 80px; }
.page-intro { text-align: center; color: var(--dark); text-transform: none; letter-spacing: 0; --d: .12s; }
.list-wrap { position: relative; margin: 56px auto 0; width: 100%; max-width: 1360px; display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 580px) minmax(0, 1fr); column-gap: 60px; }
.list-wrap > .list { grid-column: 2; display: flex; flex-direction: column; }
.back { display: inline-block; color: var(--gray); text-transform: uppercase; margin-bottom: 24px; --d: .18s; }
.idx-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) 80px 60px; column-gap: 16px; line-height: 1.9; text-transform: uppercase; padding: 4px 0; }
.idx-row .num { font-weight: 500; }
.idx-row .name { font-weight: 500; font-style: italic; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-underline-offset: 4px; }
.idx-row .yr { text-align: right; }
.idx-row:hover, .idx-row.on { color: var(--ink); }
.idx-row.on .num, .cov-row.on .num { color: var(--blue); }
.idx-row.on .name, .cov-row.on .name { text-decoration: underline; }
.peek { grid-column: 3; position: sticky; top: 120px; align-self: start; width: 320px; aspect-ratio: 320 / 234; background: var(--stone); overflow: hidden; transition: transform .6s var(--ease); }
.peek img { width: 100%; height: 100%; object-fit: cover; }
.cov-row { display: flex; gap: 24px; line-height: 1.9; padding: 14px 0; }
.cov-row .num { font-weight: 500; width: 40px; flex-shrink: 0; text-transform: uppercase; }
.cov-row .name { font-weight: 500; font-style: italic; text-transform: uppercase; text-underline-offset: 4px; }
.cov-row .kind { text-transform: uppercase; }
.cov-grid { display: none; }
/* Capas no desktop: lista à esquerda, capa grande à direita */
/* Índice e Capas no desktop: lista à esquerda, imagem grande à direita, nada vaza da tela */
.list-wrap.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(32px, 6vw, 80px); max-width: none; }
.list-wrap.two > .list { grid-column: 1; }
.list-wrap.two > .peek { grid-column: 2; width: 100%; justify-self: end; position: sticky; top: 120px; transform: none !important; }
.list-wrap.two > .peek:not(.square) { max-width: min(640px, calc((100vh - 300px) * 4 / 3)); aspect-ratio: 4 / 3; }
.list-wrap.two > .peek.square { max-width: min(560px, calc(100vh - 300px)); aspect-ratio: 1; }
.page-foot { position: relative; z-index: 2; background: var(--bg); display: flex; justify-content: space-between; gap: 16px; text-transform: uppercase; white-space: nowrap; padding: 24px var(--pad) 28px; }

/* ---------- LAB ---------- */
.lab-grid { margin-top: 56px; column-count: 4; column-gap: 12px; position: relative; z-index: 1; }
.lab-grid .enter { transform: none; animation-name: fadeIn; }
@keyframes fadeIn { to { opacity: 1; } }
.lab-grid button { display: block; width: 100%; margin: 0 0 12px; background: var(--stone); break-inside: avoid; overflow: hidden; }
.lab-grid img { width: 100%; height: auto; transition: transform .8s var(--ease); }
.lab-grid button:hover img { transform: scale(1.02); }
.lightbox { position: fixed; inset: 0; z-index: 70; background: var(--ink); color: var(--bg); padding: 32px 40px; display: none; flex-direction: column; text-transform: uppercase; }
.lightbox.open { display: flex; }
.lightbox .lb-top { display: flex; justify-content: space-between; align-items: center; }
.lightbox .lb-top span { color: #9A9A96; }
.lightbox button { color: var(--bg); }
.lightbox button:hover { color: #9A9A96; }
.lightbox .lb-mid { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 0; }
.lightbox .lb-mid > button { width: 44px; height: 44px; flex-shrink: 0; }
.lightbox .shot { flex: 1; height: 100%; display: flex; align-items: center; justify-content: center; min-height: 0; }
.lightbox .shot img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; }

/* ---------- ABOUT ---------- */
.about { position: relative; min-height: max(100svh, 900px); }
.about-grid { padding: 130px var(--pad) 100px; display: grid; grid-template-columns: 540px minmax(0, 1fr); column-gap: 80px; }
.about-bio { display: flex; flex-direction: column; gap: 22px; --d: .15s; }
.about-bio .b1 { margin: 0; font-size: 16px; line-height: 1.55; letter-spacing: -.01em; }
.about-bio .b2 { margin: 0; font-size: 12px; line-height: 1.7; color: var(--dark); max-width: 480px; }
.about-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 24px; text-transform: uppercase; align-content: start; --d: .3s; }
.about-cols > div { display: flex; flex-direction: column; gap: 22px; }
.about-cols .it { display: flex; flex-direction: column; }
.about-cols .it b { font-weight: 500; }
.about-cols .links { display: flex; flex-direction: column; gap: 2px; }
.about-photo { position: absolute; left: var(--pad); bottom: 48px; width: 176px; height: 280px; overflow: hidden; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; clip-path: inset(100% 0 0 0); animation: reveal 1.2s cubic-bezier(.76, 0, .24, 1) forwards; animation-delay: calc(var(--base) + .35s); }
@keyframes reveal { to { clip-path: inset(0 0 0 0); } }
.sig { position: absolute; left: 96px; bottom: 60px; transform: rotate(-6deg); pointer-events: none; }
.sig path { stroke: var(--blue); stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 1.4s cubic-bezier(.6, 0, .3, 1) forwards; animation-delay: calc(var(--base) + 1.2s); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.about-foot { position: absolute; right: var(--pad); bottom: 28px; text-transform: uppercase; }

/* ---------- CASE ---------- */
.case { padding: 120px var(--pad) 0; }
.case-head { display: flex; flex-direction: column; gap: 8px; --d: .15s; }
.case-title { margin: 0; font-size: 96px; line-height: 1; font-weight: 500; letter-spacing: -.03em; text-transform: uppercase; overflow-wrap: anywhere; }
.case-intro { margin-top: 56px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; --d: .25s; }
.case-meta { grid-column: span 4; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 16px; column-gap: 24px; align-content: start; text-transform: uppercase; }
.case-meta div { display: flex; flex-direction: column; gap: 2px; }
.case-text { grid-column: 6 / span 6; font-size: 16px; line-height: 1.7; letter-spacing: 0; }
.case-text p { margin: 0 0 1em; }
.case-text p:last-child { margin: 0; }
.case-media { margin-top: 96px; display: flex; flex-direction: column; gap: 24px; }
.case-row { display: flex; gap: 24px; align-items: flex-start; }
.case-row > .case-item { flex: var(--r, 1) 1 0; min-width: 0; }
.case-row > .case-item:only-child { flex: 1 1 100%; }
.case-item { position: relative; overflow: hidden; }
.case-item > img, .case-item > video { clip-path: inset(100% 0 0 0); transition: clip-path 1.2s var(--ease); }
.case-item.in > img, .case-item.in > video { clip-path: inset(0 0 0 0); }
.case-item img, .case-item video { width: 100%; height: auto; }
.case-video { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #1A1A19; }
.case-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.case-credits { margin-top: 120px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; text-transform: uppercase; }
.case-credits > .muted { grid-column: span 4; }
.case-credits .cr { grid-column: 6 / span 6; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 6px; column-gap: 24px; }
.case-next { margin-top: 140px; display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--ink); padding-top: 24px; }
.case-next .nt { font-size: 64px; line-height: 1; font-weight: 500; letter-spacing: -.03em; text-transform: uppercase; }
.case-next .arrow { display: inline-block; color: var(--blue); transition: transform .5s var(--ease); }
.case-next:hover .arrow { transform: translateX(16px); }
.case-next:hover { color: var(--ink); }
.case-foot { display: flex; justify-content: space-between; text-transform: uppercase; padding: 96px 0 28px; }

/* ---------- CELULAR ---------- */
@media (max-width: 767px) {
  :root { --pad: 20px; }
  .head { top: 16px; }
  .nav, .head > .langs { display: none; }
  .menu-btn { display: block; }
  .logo { height: 44px; }
  .tagline, .home-scroll, .home-foot { display: none; }
  .listening { left: var(--pad); right: var(--pad); bottom: 20px; align-items: flex-start; text-align: left; font-size: 11px; }
  .listening .row { display: block; white-space: normal; }
  .listening .row > span { display: inline; }
  .listening .row > .eq { display: inline-flex; margin-right: 8px; vertical-align: -1px; }
  .listening .row > [hidden] { display: none; }
  .listening .track { max-width: none; margin-left: 6px; }
  .page-main { padding: 84px var(--pad) 40px; }
  .page-intro { text-align: left; }
  .list-wrap { display: block; margin-top: 24px; }
  .peek, .back { display: none; }
  .idx-row { grid-template-columns: 32px minmax(0, 1fr) auto; column-gap: 12px; align-items: center; min-height: 48px; border-top: 1px solid var(--stone); padding: 0; }
  .idx-row .yr { display: none; }
  .idx-row .tag { font-size: 11px; }
  .idx-row .tag .y { display: inline; }
  .cov-list { display: none; }
  .cov-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; margin-top: 24px; }
  .cov-grid a { display: flex; flex-direction: column; gap: 8px; }
  .cov-grid .img { aspect-ratio: 1; background: var(--stone); overflow: hidden; }
  .cov-grid img { width: 100%; height: 100%; object-fit: cover; }
  .cov-grid .t { display: flex; flex-direction: column; font-size: 11px; }
  .cov-grid .t b { font-weight: 500; font-style: italic; text-transform: uppercase; }
  .page-foot { padding: 0 var(--pad) 20px; }
  .lab-grid { column-count: 2; column-gap: 8px; margin-top: 24px; }
  .lab-grid button { margin-bottom: 8px; }
  .lightbox { padding: 16px 20px; }
  .lightbox .lb-mid > button { display: none; }
  .about-grid { display: flex; flex-direction: column; gap: 48px; padding: 84px var(--pad) 40px; }
  .about-bio .b1 { font-size: 15px; }
  .about-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .about-photo { position: relative; left: auto; bottom: auto; margin: 0 var(--pad); }
  .sig { left: 76px; bottom: 80px; }
  .about-foot { position: static; padding: 40px var(--pad) 20px; }
  .about-wrap-photo { position: relative; padding-bottom: 20px; }
  .case { padding: 84px var(--pad) 0; }
  .case-title { font-size: 44px; }
  .case-intro { margin-top: 32px; display: flex; flex-direction: column; gap: 32px; }
  .case-text { font-size: 14px; }
  .case-media { margin-top: 48px; gap: 12px; }
  .case-row { gap: 12px; }
  .case-credits { margin-top: 72px; display: flex; flex-direction: column; gap: 12px; }
  .case-next { margin-top: 80px; }
  .case-next .nt { font-size: 36px; }
  .case-foot { padding: 64px 0 20px; }
}
@media (min-width: 768px) and (max-width: 1100px) {
  .list-wrap:not(.two) { grid-template-columns: 0 minmax(0, 1fr) 280px; column-gap: 32px; }
  .about-grid { grid-template-columns: 1fr; row-gap: 56px; }
  .about-photo { position: relative; left: auto; bottom: auto; margin: 0 var(--pad) 80px; }
  .lab-grid { column-count: 3; }
}
@media (prefers-reduced-motion: reduce) {
  .enter { animation: none; opacity: 1; transform: none; }
  .wipe, .dot, .eq i { animation: none; }
  .case-item > img, .case-item > video { clip-path: none; transition: none; }
  .about-photo img { animation: none; clip-path: none; }
  .sig path { animation: none; stroke-dashoffset: 0; }
}
