@import url("fonts.css");

/* ============================================================ sistema
   Títulos: Times itálico com inicial em Perfecto Calligraphy (assinatura da Lis).
   Todo o resto (textos, ficha, rótulos, menus): Roboto Mono.
   Uma escala só de tamanhos e um respiro (--pad) igual para texto e imagem. */
:root {
  --brown: #491d00;
  --cream: #e1dedb;
  --cream-2: #f3f1ef;
  --orange: #c85000;
  --paper: #ffffff;
  --line: rgba(73, 29, 0, .18);
  --mono: 'Roboto Mono L', 'Roboto Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --script: 'Perfecto Calligraphy', 'Times New Roman', serif;
  --serif: 'Times New Roman', Times, 'Liberation Serif', 'Noto Serif', serif;

  --f-body: 14px;      /* textos */
  --f-lbl: 11px;       /* rótulos */
  --f-h1: clamp(44px, 6.2vw, 92px);
  --f-h2: clamp(36px, 4.8vw, 68px);
  --f-h3: clamp(26px, 2.6vw, 36px);

  --pad: clamp(22px, 5vw, 80px);     /* margem lateral de tudo: respiro confortável */
  --gap: clamp(8px, 1vw, 14px);      /* entre imagens */
  --sp: clamp(40px, 5.5vw, 80px);    /* entre blocos */
  --r: 12px;
  --hd: 60px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
@media (min-width: 1200px) { :root { --f-body: 15px; } }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hd) + 12px); }
body { margin: 0; background: var(--paper); color: var(--brown); font: 400 var(--f-body)/1.75 var(--mono); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 2000; background: var(--brown); color: var(--cream); padding: 10px 14px; }
.skip:focus { left: 8px; }

.cal { font-family: var(--script); font-weight: 400; font-style: normal; font-size: 1.06em; line-height: 0; position: relative; top: .16em; margin-right: -.03em; }
/* no logo a inicial é maior e desce mais, como no original da Lis */
/* "isane" e "ocha" sobem só um pouco (iniciais ficam no lugar) e ganham um respiro lateral:
   o "i" não cruza o laço do L e o "o" não cruza a perna do R. Igual em todas as telas. */
.logo { font: italic 400 1em/1 var(--serif); letter-spacing: -.055em; white-space: nowrap; display: inline-block; position: relative; top: -.06em; }
.logo .cal { font-size: 1.27em; top: .26em; margin-right: -.06em; }
.logo .cal-l { margin-right: .06em; }
.logo .cal-r { margin-right: -.03em; }
.lbl { font: 400 var(--f-lbl)/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; margin: 0; }
.h1 { font: italic 400 var(--f-h1)/1.04 var(--serif); letter-spacing: -.025em; margin: 0; padding-top: .12em; }
.h2 { font: italic 400 var(--f-h2)/1.05 var(--serif); letter-spacing: -.02em; margin: 0; padding-top: .1em; }
.h3 { font: italic 400 var(--f-h3)/1.1 var(--serif); letter-spacing: -.01em; margin: 0; }
.body p { max-width: 80ch; }
.person { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s; }
.person:hover { color: var(--orange); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 22px; border: 1px solid var(--brown); border-radius: 999px;
  font: 400 12px/1 var(--mono); letter-spacing: .08em; text-decoration: none; transition: background .25s, color .25s;
}
.btn:hover { background: var(--brown); color: var(--cream); }

.rv-on .rv { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.rv-on .rv.in { opacity: 1; transform: none; }

/* ============================================================ cabeçalho */
.hd {
  position: sticky; top: 0; z-index: 900; height: var(--hd);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 var(--pad);
  background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: transform .45s var(--ease), border-color .3s, background .3s;
}
.scrolled .hd { border-color: var(--line); }
.hd-hide .hd { transform: translateY(-100%); }
.is-home:not(.past-hero) .hd { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.hd-l, .hd-r { display: flex; gap: clamp(18px, 2.6vw, 36px); align-items: center; }
.hd-r { justify-content: flex-end; }
.hd-l a, .hd-r a, .hd-work { font: 400 12px/1 var(--mono); letter-spacing: .06em; text-decoration: none; background: none; border: 0; padding: 10px 0; cursor: pointer; position: relative; }
.hd-l a::after, .hd-r a::after, .hd-work::after { content: ''; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.hd-l a:hover::after, .hd-r a:hover::after, .hd-work:hover::after, .hd a[aria-current]::after { transform: scaleX(1); }
.hd-logo { text-decoration: none; font-size: 24px; line-height: 1; padding-top: 6px; transition: opacity .3s; }
.is-home:not(.past-hero) .hd-logo { opacity: 0; pointer-events: none; }
.hd-menu { display: none; background: none; border: 0; cursor: pointer; align-items: center; gap: 10px; font: 400 12px/1 var(--mono); letter-spacing: .06em; padding: 10px 0; justify-self: end; }
.ic { position: relative; width: 22px; height: 10px; }
.ic i { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; }
.ic i:first-child { top: 0; } .ic i:last-child { top: 8.5px; }
@media (max-width: 759.98px) {
  :root { --hd: 54px; }
  .hd { grid-template-columns: 1fr auto; }
  .hd-l, .hd-r { display: none; }
  .hd-logo { justify-self: start; font-size: 22px; }
  .hd-menu { display: inline-flex; }
}

/* ============================================================ menu sobreposto */
.mn { position: fixed; inset: 0; z-index: 1000; background: var(--brown); color: var(--cream); overflow-y: auto; overscroll-behavior: contain;
  clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .6s cubic-bezier(.7, 0, .2, 1), visibility 0s .6s; }
.mn[hidden] { display: block; }
.menu-open .mn { clip-path: inset(0); visibility: visible; transition: clip-path .6s cubic-bezier(.7, 0, .2, 1); }
.mn-in { padding: 0 var(--pad) 32px; min-height: 100%; display: flex; flex-direction: column; }
.mn-top { height: var(--hd); display: flex; align-items: center; justify-content: space-between; margin-bottom: clamp(12px, 4vh, 40px); }
.mn-home { color: var(--cream); text-decoration: none; font-size: 24px; }
.mn-x { background: none; border: 0; cursor: pointer; font: 400 12px/1 var(--mono); letter-spacing: .06em; color: var(--cream); padding: 10px 0; }
.mn .lbl { opacity: .6; margin-bottom: 8px; }
.mn-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(225, 222, 219, .25); }
.mn-list li { border-bottom: 1px solid rgba(225, 222, 219, .25); }
.mn-list a { position: relative; display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: baseline; padding: 10px 0; text-decoration: none; color: var(--cream);
  opacity: 0; transform: translateY(14px); transition: opacity .5s, transform .5s var(--ease); }
.menu-open .mn-list a { opacity: 1; transform: none; transition-delay: calc(.12s + var(--i, 0) * .04s); }
.mn-n, .mn-c { font: 400 var(--f-lbl)/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; opacity: .65; }
.mn-c { text-align: right; }
.mn-t { font: italic 400 clamp(28px, 3.8vw, 48px)/1.15 var(--serif); letter-spacing: -.015em; transition: transform .35s var(--ease); }
.mn-img { position: absolute; right: 22%; top: 50%; width: 240px; aspect-ratio: 475/300; border-radius: var(--r); overflow: hidden; pointer-events: none;
  opacity: 0; transform: translateY(-50%) rotate(-3deg) scale(.92); transition: opacity .25s, transform .35s var(--ease); box-shadow: 0 16px 34px rgba(0, 0, 0, .35); }
.mn-img img { width: 100%; height: 100%; object-fit: cover; }
.mn-list a[aria-current] .mn-n::after { content: ' ●'; color: var(--orange); opacity: 1; }
@media (hover: hover) and (min-width: 900px) {
  .mn-list a:hover .mn-t { transform: translateX(12px); }
  .mn-list a:hover .mn-img { opacity: 1; transform: translateY(-50%) rotate(-3deg) scale(1); }
}
.mn-foot { margin-top: auto; padding-top: 32px; display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: baseline; }
.mn-about { color: var(--cream); text-decoration: none; font: italic 400 clamp(28px, 3.6vw, 44px)/1 var(--serif); }
.mn-ct { display: flex; gap: 24px; flex-wrap: wrap; }
.mn-ct a { color: var(--cream); text-decoration: none; font: 400 12px/1 var(--mono); letter-spacing: .06em; padding: 6px 0; border-bottom: 1px solid transparent; }
.mn-ct a:hover { border-color: currentColor; }
@media (max-width: 599.98px) {
  .mn-list a { grid-template-columns: 30px 1fr; row-gap: 0; }
  .mn-c { grid-column: 2; text-align: left; }
  .mn-img { display: none; }
}

/* ============================================================ início */
.hero { min-height: calc(100svh - var(--hd)); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 var(--pad) clamp(24px, 4vh, 48px); }
.hero-logo { margin: 0; font-weight: 400; font-size: clamp(52px, 7.6vw, 128px); line-height: 1; padding: .25em 0 .2em; }
.wheel-wrap { position: relative; width: 100vw; margin: clamp(4px, 1.5vh, 16px) 0; overflow: hidden; }
.hero-sub { font: italic 400 clamp(28px, 3.4vw, 48px)/1.1 var(--serif); margin: 0; padding-top: .15em; }
.hero-at { margin-top: 10px; }
@media (max-aspect-ratio: 1/1) { .hero { min-height: 0; padding-top: 8px; } }

.bar-t { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--brown); padding: 12px 0 16px; }
.work { padding: clamp(24px, 4vw, 56px) var(--pad) 0; }
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 1.8vw, 24px) var(--gap); }
@media (max-width: 759.98px) { .grid { grid-template-columns: 1fr; } }
.card a { display: block; text-decoration: none; }
.card-img { display: block; aspect-ratio: 475 / 300; border-radius: var(--r); overflow: hidden; background: var(--cream-2); transform: translateZ(0); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.card a:hover .card-img img { transform: scale(1.04); }
/* legenda no estilo do Isaac: uma linha, uma fonte, título à esquerda e cliente à direita */
.card-cap { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 10px; font: 400 var(--f-lbl)/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.card-t { font-size: 13px; letter-spacing: .06em; }
.card-c { opacity: .65; text-align: right; }
.card a:hover .card-t { text-decoration: underline; text-underline-offset: 3px; }

/* contato */
.cta { margin: var(--sp) var(--pad) clamp(48px, 7vw, 96px); padding-top: clamp(20px, 3vw, 32px); border-top: 1px solid var(--brown); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.cta-btns { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 599.98px) { .cta-btns { width: 100%; } .cta-btns .btn { flex: 1 1 100%; } }

/* rodapé de uma linha */
.fb { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin: var(--sp) var(--pad) 0; padding: 18px 0 24px; border-top: 1px solid var(--line);
  font: 400 var(--f-lbl)/1.5 var(--mono); letter-spacing: .08em; }
.fb nav { display: flex; flex-wrap: wrap; gap: 20px; }
.fb a { text-decoration: none; }
.fb a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================ carrossel (código da Lis) */
.lisane-wheel, .lisane-wheel * { box-sizing: border-box; }
.lisane-wheel { --card-width: 295px; --card-height: 188px; --card-radius: 15px; position: relative; width: 850px; height: 350px; overflow: hidden; cursor: grab; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.lisane-wheel.is-dragging { cursor: grabbing; }
.lisane-wheel__stage { position: absolute; inset: 0; overflow: hidden; perspective: 1200px; perspective-origin: 50% 50%; transform-style: preserve-3d; }
.lisane-wheel__card { position: absolute; top: 0; left: 0; width: var(--card-width); height: var(--card-height); display: block; border-radius: var(--card-radius); overflow: hidden; transform-origin: 50% 0%; transform-style: preserve-3d; backface-visibility: visible; will-change: transform; box-shadow: 0 10px 24px rgba(0, 0, 0, .2); background: var(--cream); visibility: hidden; }
.lisane-wheel__card img { width: 100%; height: 100%; display: block; object-fit: cover; border-radius: inherit; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.lisane-wheel.is-d { width: 856px; }
.lisane-wheel.is-t { --card-width: 280px; --card-height: 179px; --card-radius: 14px; width: 837px; height: 340px; }
.lisane-wheel.is-t .lisane-wheel__stage { perspective: 1100px; }
.lisane-wheel.is-m { --card-width: 108px; --card-height: 69px; --card-radius: 6px; width: 270px; height: 126px; }
.lisane-wheel.is-m .lisane-wheel__stage { perspective: 450px; }
.lisane-wheel.is-m .lisane-wheel__card { box-shadow: 0 4px 9px rgba(0, 0, 0, .16); }
.wheel-wrap .lisane-wheel { position: absolute; left: 50%; top: 0; transform-origin: 50% 0; transform: translateX(-50%) scale(var(--ws, 1)); }

/* ============================================================ estrutura padrão: abertura (case e about) */
.head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px clamp(16px, 2.5vw, 40px); padding: clamp(24px, 3vw, 44px) var(--pad) 0; align-items: start; }
.head-l { grid-column: 1 / span 5; }
.head-r { grid-column: 6 / -1; padding-top: 10px; }
.head-r p, .ab-bio p { line-height: 1.65; margin-bottom: .9em; }
.crumb { margin-bottom: clamp(14px, 1.8vw, 24px); }
.crumb a { text-decoration: none; border-bottom: 1px solid var(--line); }
.crumb a:hover { border-color: currentColor; }
.head-c { margin-top: 14px; opacity: .75; }
@media (max-width: 899.98px) { .head-l, .head-r { grid-column: 1 / -1; } .head-r { padding-top: 0; } }

/* ficha técnica: colunas horizontais, mesma estrutura em todos os cases */
.ficha { margin: clamp(24px, 3vw, 40px) var(--pad) 0; border-top: 1px solid var(--brown); }
.ficha-h { padding: 12px 0 4px; }
.ficha dl { margin: 0; display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); column-gap: var(--gap); }
@media (max-width: 899.98px) { .ficha dl { grid-template-columns: 1fr 1fr; } }
@media (max-width: 459.98px) { .ficha dl { grid-template-columns: 1fr; } }
.fi { padding: 10px 0 12px; border-bottom: 1px solid var(--line); }
.fi dt { opacity: .65; margin-bottom: 4px; }
.fi dd { margin: 0; line-height: 1.6; }

/* galeria: de ponta a ponta, imagens da mesma linha com a mesma altura */
.gal { display: flex; flex-direction: column; gap: var(--gap); margin-top: clamp(16px, 2vw, 28px); padding: 0 var(--pad); }
.row { display: flex; gap: var(--gap); width: 100%; }
.cell { margin: 0; flex: var(--ar) 1 0; min-width: 0; aspect-ratio: var(--ar); border-radius: var(--r); overflow: hidden; background: var(--cream-2); }
.cell img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 599.98px) {
  .row { flex-direction: column; max-width: none; }
  .row .cell { flex: none; width: 100%; }
  .row-many { flex-direction: row; flex-wrap: wrap; }
  .row-many .cell { width: calc(50% - var(--gap) / 2); }
  /* peça que sobra sozinha na linha: tamanho normal, sem vazio ao lado */
  .row-many .cell:last-child:nth-child(odd) { width: 100%; }
}
.vid { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: #111; cursor: pointer; color: #fff; }
.vid img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .3s, transform .9s var(--ease); }
.vid:hover img { opacity: 1; transform: scale(1.02); }
.vid-play { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: var(--cream); color: var(--brown); display: grid; place-items: center; font-size: 20px; padding-left: 4px; transition: transform .3s var(--ease); }
.vid:hover .vid-play { transform: scale(1.08); }
.vid-l { position: absolute; left: 16px; bottom: 14px; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.cell iframe { width: 100%; height: 100%; border: 0; display: block; }
.more { text-align: center; margin: clamp(24px, 3vw, 40px) var(--pad) 0; }

/* anterior / todos / próximo — só texto */
.pn { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; margin: var(--sp) var(--pad) 0; border-top: 1px solid var(--brown); padding-bottom: clamp(24px, 4vw, 48px); }
.pn-a { display: flex; flex-direction: column; gap: 6px; padding-top: 14px; text-decoration: none; }
.pn-next { align-items: flex-end; text-align: right; }
.pn-all { align-items: center; text-align: center; }
.pn-n { font: 400 var(--f-lbl)/1.5 var(--mono); letter-spacing: .08em; opacity: .65; }
.pn-t { font: italic 400 var(--f-h3)/1.1 var(--serif); padding-top: .2em; transition: transform .35s var(--ease); }
.pn-c { opacity: .65; }
.pn-prev:hover .pn-t { transform: translateX(-8px); }
.pn-next:hover .pn-t { transform: translateX(8px); }
.pn-all:hover .lbl { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 599.98px) {
  .pn { grid-template-columns: 1fr 1fr; }
  .pn-all { grid-column: 1 / -1; grid-row: 2; border-top: 1px solid var(--line); }
}

/* ============================================================ about */
.ab-top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-areas: "p p p p p t t t t t t t" "p p p p p b b b b b b b"; grid-template-rows: auto 1fr;
  gap: 20px clamp(16px, 2.5vw, 40px); padding: clamp(20px, 2.5vw, 36px) var(--pad) 0; align-items: start; }
.ab-t { grid-area: t; }
.ab-ph { grid-area: p; margin: 0; border-radius: var(--r); overflow: hidden; aspect-ratio: 368/393; }
.ab-ph img { width: 100%; height: 100%; object-fit: cover; }
.ab-bio { grid-area: b; }
/* texto do about cresce junto com a foto: preenche a altura dela em qualquer tela */
@media (min-width: 900px) {
  .ab-bio { font-size: clamp(13px, 1.2vw, 24px); }
  .ab-bio p { max-width: none; line-height: 1.65; }
  .ab-t .h1 { font-size: clamp(44px, 6.4vw, 124px); }
  .ab-t .lbl { font-size: clamp(11px, .78vw, 15px); }
}
@media (min-width: 1600px) { .ab-bio { font-size: min(1.3vw, 28px); } }
.ab-grid { margin: var(--sp) var(--pad) 0; }
.ab-cv { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp) clamp(16px, 2.5vw, 40px); }
.h3 { padding: 26px 0 14px; border-top: 1px solid var(--brown); }
.pn-t { border: 0; padding-bottom: 0; }
.its { list-style: none; margin: 0; padding: 0; }
.its li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.its li .lbl { opacity: .65; text-align: right; }
.its-exp li:first-child > span:first-child::after { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); margin-left: 10px; vertical-align: 1px; }
@media (max-width: 899.98px) {
  .ab-top { grid-template-columns: 1fr; grid-template-areas: "t" "p" "b"; grid-template-rows: auto; }
  .ab-ph { aspect-ratio: 4 / 4.2; max-height: 62svh; width: 100%; }
}
@media (max-width: 699.98px) { .ab-cv { grid-template-columns: 1fr; } }
@media (max-width: 459.98px) { .its li { flex-direction: column; gap: 2px; } .its li .lbl { text-align: left; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .rv-on .rv { opacity: 1; transform: none; }
}
