/* Conceito: um site institucional que se comporta como um ateliê em atividade.
   O girassol gira com a rolagem, a fita corre, a agulha mede o processo e as linhas se costuram ao aparecer. */
:root {
  --papel: #f9dfb8;
  --rosado: #e0bea4;
  --areia: #d1b78f;
  --taupe: #b4997b;
  --caramelo: #cb7520;
  --ocre: #ac6f17;
  --terracota: #8a4a2a;
  --cafe: #431c0e;
  --noite: #241a12;

  --titulo: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --texto: "Spectral", Georgia, "Times New Roman", serif;
  --mao: "Mansalva", "Segoe Print", "Bradley Hand", cursive;

  --lado: clamp(16px, 4vw, 56px);
  --suave: cubic-bezier(.2, .7, .2, 1);
  --topo: 68px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topo) + 12px); }
body {
  margin: 0;
  background: var(--papel);
  color: var(--cafe);
  font: 400 1.125rem/1.6 var(--texto);
}
[hidden] { display: none !important; }
h1, h2, h3, p, figure, ol, ul, dl, dd { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--terracota); outline-offset: 3px; }
.escuro :focus-visible { outline-color: var(--papel); }

.faixa {
  padding-left: max(var(--lado), env(safe-area-inset-left, 0px));
  padding-right: max(var(--lado), env(safe-area-inset-right, 0px));
}
.marcado {
  background-color: var(--papel);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72'%3E%3Cpath d='M36 32v8M32 36h8' stroke='%238a4a2a' stroke-opacity='.32' fill='none'/%3E%3C/svg%3E");
}
.secao { padding-block: clamp(64px, 9vw, 136px); }

/* título com pesponto: a linha se costura quando o título entra na tela */
.titulo-secao {
  width: fit-content;
  max-width: 100%;
  font: 400 clamp(2.75rem, 7.5vw, 7rem)/1.02 var(--titulo);
  letter-spacing: -.01em;
  text-wrap: balance;
  padding-bottom: .16em;
  background-image: repeating-linear-gradient(90deg, currentColor 0 14px, transparent 14px 23px);
  background-size: 100% 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 1.3s var(--suave);
}
.titulo-secao.espera { background-size: 0 2px; }
.linha-secao {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 20px 48px;
}
.linha-secao p { max-width: 42ch; min-width: 0; }

/* botões: o preenchimento corre da esquerda, como linha entrando no tecido */
.botao {
  display: inline-block;
  padding: .85em 1.5em;
  --base: var(--cafe);
  --cheio: var(--terracota);
  background-color: var(--base);
  background-image: linear-gradient(var(--cheio), var(--cheio));
  background-size: 0 100%;
  background-repeat: no-repeat;
  color: var(--papel);
  font: 500 1.0625rem/1.2 var(--texto);
  text-align: center;
  text-decoration: none;
  outline: 1px dashed var(--areia);
  outline-offset: -6px;
  transition: background-size .4s var(--suave), transform .2s;
}
.botao:hover { background-size: 100% 100%; }
.botao:active { transform: translateY(1px); }
.botao:focus-visible { outline: 2px solid var(--terracota); outline-offset: 3px; }
.botao-claro { --base: var(--papel); --cheio: var(--areia); color: var(--cafe); outline-color: var(--terracota); }
.botao-claro:focus-visible { outline-color: var(--papel); }
.botao-vazado { --base: var(--papel); --cheio: var(--cafe); color: var(--cafe); outline: 1px solid var(--cafe); outline-offset: 0; transition: background-size .4s var(--suave), color .25s; }
.botao-vazado:hover { color: var(--papel); }

/* cabeçalho */
.cabecalho {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--topo);
  transition: box-shadow .3s, background-color .3s;
}
.cabecalho.rolou, .cabecalho:has(.menu.aberto) { background: var(--papel); box-shadow: 0 1px 0 var(--cafe); }
/* sobre o girassol, os links ganham fundo de papel para continuarem legíveis */
.cabecalho:not(.rolou) .abre-menu, .cabecalho:not(.rolou) .menu a:not(.botao) { background: var(--papel); padding-inline: 6px; }
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 21;
  background: var(--papel);
}
.marca {
  font: 400 1.75rem/1 var(--titulo);
  text-decoration: none;
  transition: opacity .3s, transform .4s var(--suave);
}
.cabecalho:not(.rolou) .marca { opacity: 0; transform: translateY(8px); pointer-events: none; }
.menu { display: flex; align-items: center; gap: 28px; }
.menu a:not(.botao) {
  position: relative;
  padding-block: 8px;
  text-decoration: none;
}
.menu a:not(.botao)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 1px;
  background: repeating-linear-gradient(90deg, currentColor 0 5px, transparent 5px 9px);
  clip-path: inset(0 100% 0 0);
  transition: clip-path .35s var(--suave);
}
.menu a:not(.botao):hover::after, .menu a.atual::after { clip-path: inset(0); }
.menu .botao { padding: .6em 1.1em; font-size: 1rem; }
.abre-menu { display: none; padding: 10px 0; text-decoration: underline dashed 1px; text-underline-offset: 5px; }
/* linha que mostra o quanto da página já foi percorrido */
.percurso {
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 3px;
  background: var(--caramelo);
  transform: scaleX(var(--percurso, 0));
  transform-origin: 0 50%;
  pointer-events: none;
}

/* abertura */
.abertura {
  position: relative;
  overflow: clip;
  padding-block: 0 clamp(40px, 6vw, 80px);
  margin-top: calc(-1 * var(--topo));
  padding-top: var(--topo);
}
.girassol-grande {
  position: absolute;
  top: -5vw;
  right: -7vw;
  width: min(62vw, 1040px);
  color: var(--ocre);
  --fundo: var(--papel);
}
.nome {
  position: relative;
  z-index: 1;
  margin-top: clamp(170px, 24vw, 430px);
  margin-left: -.035em;
  font: 400 min(25.5vw, 25rem)/.86 var(--titulo);
  letter-spacing: -.02em;
  white-space: nowrap;
}
.nome span { display: inline-block; }
.entrada .nome span {
  animation: sobe 1s var(--suave) both;
  animation-delay: calc(var(--i) * 60ms + 120ms);
}
@keyframes sobe { from { transform: translateY(32%); opacity: 0; } }
.sobre-nome {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
  align-items: end;
  margin-top: clamp(24px, 3vw, 44px);
}
.oficio { grid-column: 1 / 5; font: 400 clamp(1.25rem, 2vw, 1.75rem)/1.2 var(--titulo); letter-spacing: .14em; }
.lema { grid-column: 5 / 9; font: italic 400 clamp(1.5rem, 2.5vw, 2.25rem)/1.2 var(--titulo); }
.acoes { grid-column: 9 / 13; display: flex; flex-wrap: wrap; justify-content: end; gap: 10px; }

/* fita que corre com a rolagem */
.fita-corrida { position: relative; z-index: 3; overflow-x: clip; padding-block: 14px; margin-block: -14px; }
.fita-tira {
  width: 106%;
  margin-left: -3%;
  transform: rotate(-1.1deg);
  background-color: var(--caramelo);
  background-image: repeating-linear-gradient(90deg, var(--cafe) 0 1px, transparent 1px 12px);
  background-size: 100% 8px;
  background-repeat: no-repeat;
  overflow: hidden;
  padding-block: 18px 12px;
}
.fita-trilho {
  display: flex;
  width: max-content;
  gap: 48px;
  font: italic 400 clamp(1.375rem, 2.4vw, 2.125rem)/1.1 var(--titulo);
  white-space: nowrap;
  transform: translateX(calc(var(--corre, 0) * -1px));
  will-change: transform;
}
.fita-trilho span { display: flex; align-items: center; gap: 48px; }
.fita-trilho span::after { content: ""; width: 9px; height: 9px; background: var(--cafe); transform: rotate(45deg); }

/* o atelier */
.atelier {
  background: var(--rosado);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}
.atelier .foto { grid-column: 1 / 6; }
.foto {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  max-width: 100%;
  background: var(--areia);
}
.foto-miolo {
  position: absolute;
  inset: -8% 0;
  display: grid;
  place-items: center;
  transform: translateY(calc(var(--desloca, 0) * 1px));
}
.foto-miolo svg { width: 62%; color: var(--terracota); }
.foto-miolo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vaga {
  position: absolute;
  left: 14px;
  bottom: 12px;
  font: 400 1.0625rem/1.2 var(--mao);
  color: var(--cafe);
}
.carta { grid-column: 7 / 13; display: grid; gap: 28px; align-content: center; min-width: 0; }
.carta h2 { font: 400 clamp(2.25rem, 5vw, 4.75rem)/1.04 var(--titulo); text-wrap: balance; }
.carta p { max-width: 58ch; }
.carta .botao { justify-self: start; --base: var(--rosado); }

/* serviços */
.servicos { background: var(--noite); color: var(--papel); position: relative; }
.lista-servicos { margin-top: clamp(32px, 5vw, 64px); }
.servico { box-shadow: 0 1px 0 var(--taupe); }
.servico:first-child { box-shadow: 0 1px 0 var(--taupe), 0 -1px 0 var(--taupe); }
.servico-botao {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: clamp(16px, 2vw, 28px);
  text-align: left;
  transition: padding-left .45s var(--suave), color .3s;
}
.servico-botao:hover, .servico.aberto .servico-botao { padding-left: clamp(0px, 2.4vw, 36px); color: var(--areia); }
.servico-nome { font: 400 clamp(1.875rem, 4.8vw, 4.5rem)/1.05 var(--titulo); min-width: 0; }
.mais { position: relative; flex: none; width: 26px; height: 26px; transition: transform .4s var(--suave); }
.mais::before, .mais::after { content: ""; position: absolute; background: currentColor; }
.mais::before { left: 0; right: 0; top: 12px; height: 2px; }
.mais::after { top: 0; bottom: 0; left: 12px; width: 2px; }
.servico.aberto .mais { transform: rotate(135deg); }
.servico-corpo { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--suave); }
.servico.aberto .servico-corpo { grid-template-rows: 1fr; }
.servico-dentro { overflow: hidden; min-height: 0; visibility: hidden; transition: visibility .45s; }
.servico.aberto .servico-dentro { visibility: visible; }
.servico-texto {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 40px;
  padding: 0 0 clamp(20px, 2.4vw, 32px) clamp(0px, 2.4vw, 36px);
}
.servico-texto p { max-width: 58ch; }
/* croqui que acompanha o mouse sobre a lista */
.flutuante {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 15;
  width: 220px;
  aspect-ratio: 3 / 4;
  background: var(--papel);
  color: var(--terracota);
  padding: 18px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s;
  will-change: transform;
}
.flutuante.ativo { opacity: 1; }
.flutuante svg { display: block; width: 100%; height: 100%; }

/* galeria */
.filtros { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-top: clamp(24px, 3vw, 40px); }
.filtro {
  position: relative;
  padding-block: 10px;
  font-size: 1.0625rem;
}
.filtro::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 2px;
  background: var(--caramelo);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .35s var(--suave);
}
.filtro:hover::after, .filtro[aria-pressed="true"]::after { transform: scaleX(1); }
.filtro[aria-pressed="true"] { font-weight: 500; }
.galeria {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: clamp(60px, 8.2vw, 135px);
  grid-auto-flow: dense;
  gap: 20px;
  margin-top: clamp(24px, 3vw, 40px);
}
.obra { min-width: 0; min-height: 0; }
/* cada bloco tem uma peça alta (5 colunas, 8 linhas) ao lado de duas fileiras que somam 7 colunas */
.obra-alta { grid-column: span 5; grid-row: span 8; }
.obra-larga { grid-column: span 4; grid-row: span 4; }
.obra-media { grid-column: span 3; grid-row: span 4; }
.obra-botao {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 10px;
  width: 100%;
  height: 100%;
  text-align: left;
}
.midia {
  position: relative;
  overflow: hidden;
  min-height: 0;
  background: var(--tom);
  color: var(--traco);
  transition: clip-path 1s var(--suave);
  clip-path: inset(0);
}
.obra.espera .midia { clip-path: inset(0 0 16% 0); }
.midia-arte {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 7%;
  transition: transform .9s var(--suave);
}
.midia-arte svg { width: 100%; height: 100%; }
.midia-arte img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.obra-botao:hover .midia-arte { transform: scale(1.06); }
.obra-botao:focus-visible { outline-offset: 4px; }
.midia::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px dashed currentColor;
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.obra-botao:hover .midia::after { opacity: .8; }
.obra-legenda { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; min-width: 0; }
.obra-legenda b { font: 400 clamp(1.25rem, 1.8vw, 1.625rem)/1.15 var(--titulo); }
.obra-legenda span { font-size: .9375rem; white-space: nowrap; color: var(--terracota); }

/* janela de foto ampliada */
.janela {
  width: min(1040px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  background: var(--papel);
  color: var(--cafe);
  overflow: auto;
}
.janela::backdrop { background: rgba(36, 26, 18, .82); }
.janela[open] { animation: abre .4s var(--suave); }
@keyframes abre { from { transform: translateY(18px); opacity: 0; } }
.janela-grade { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.janela-midia { position: relative; min-height: min(70vh, 640px); overflow: hidden; }
.janela-corpo { display: grid; align-content: start; gap: 18px; padding: clamp(24px, 3vw, 40px); min-width: 0; }
.janela-fechar { justify-self: end; padding: 6px 0; text-decoration: underline dashed 1px; text-underline-offset: 5px; }
.janela h3 { font: 400 clamp(2rem, 3.6vw, 3rem)/1.05 var(--titulo); }
.janela-setas { display: flex; gap: 20px; margin-top: 8px; }
.janela-setas button { padding: 6px 0; text-decoration: underline dashed 1px; text-underline-offset: 5px; }

/* processo */
.processo { background: var(--cafe); color: var(--papel); }
.medida { position: relative; margin-top: clamp(32px, 5vw, 64px); }
.fita {
  display: grid;
  grid-template-columns: repeat(15, minmax(0, 1fr));
  margin-inline: calc(-1 * var(--lado));
  padding-inline: var(--lado);
  background: var(--papel);
  color: var(--cafe);
  height: 62px;
}
.fita span {
  font-size: .8125rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background-image:
    linear-gradient(90deg, var(--cafe) 1.5px, transparent 1.5px),
    linear-gradient(90deg, transparent calc(50% - .5px), var(--cafe) calc(50% - .5px), var(--cafe) calc(50% + .5px), transparent calc(50% + .5px)),
    repeating-linear-gradient(90deg, var(--cafe) 0 1px, transparent 1px 10%);
  background-size: 100% 26px, 100% 18px, 100% 11px;
  background-repeat: no-repeat;
  padding-top: 32px;
  padding-left: 5px;
}
.agulha {
  position: absolute;
  top: -14px;
  left: calc(var(--p, 0) * 100%);
  width: 2px;
  height: 90px;
  margin-left: -1px;
  background: var(--caramelo);
  transition: left .25s linear;
}
.agulha::before {
  content: "";
  position: absolute;
  top: -8px;
  left: -5px;
  width: 12px;
  height: 12px;
  background: var(--caramelo);
  transform: rotate(45deg);
}
.passos { display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); margin-top: 28px; }
.passo { display: grid; gap: 8px; align-content: start; padding-right: 24px; min-width: 0; }
.passo b { justify-self: start; font: 400 clamp(3rem, 6vw, 5.5rem)/1 var(--titulo); color: var(--taupe); transition: color .5s, transform .6s var(--suave); transform-origin: 0 100%; }
.passo.feito b { color: var(--areia); }
.passo.agora b { color: var(--papel); transform: scale(1.12); }
.passo h3 { font: 400 clamp(1.375rem, 2vw, 1.75rem)/1.15 var(--titulo); }
.passo p { font-size: 1.0625rem; line-height: 1.5; }

/* depoimentos */
.depoimentos { background: var(--rosado); }
.depo-grade { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; margin-top: clamp(32px, 4vw, 56px); }
.depo-palco { grid-column: 3 / 13; display: grid; min-width: 0; overflow-x: clip; }
.depo {
  grid-area: 1 / 1;
  display: grid;
  gap: 20px;
  align-content: start;
  transition: opacity .5s, transform .6s var(--suave), visibility .5s;
}
.depo:not(.atual) { opacity: 0; transform: translateX(28px); visibility: hidden; }
.depo blockquote { margin: 0; font: italic 400 clamp(1.75rem, 3.8vw, 3.5rem)/1.16 var(--titulo); text-wrap: pretty; }
.depo-setas { grid-column: 3 / 13; display: flex; gap: 24px; align-items: center; }
.depo-setas button { padding: 8px 0; text-decoration: underline dashed 1px; text-underline-offset: 5px; }

/* perguntas */
.perguntas { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.perguntas .titulo-secao { grid-column: 1 / 6; align-self: start; font-size: clamp(2.5rem, 5.4vw, 5rem); }
.lista-perguntas { grid-column: 7 / 13; min-width: 0; }
.pergunta { box-shadow: 0 1px 0 var(--cafe); }
.pergunta-botao {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-block: 18px;
  text-align: left;
  font: 400 clamp(1.25rem, 1.9vw, 1.625rem)/1.2 var(--titulo);
}
.pergunta .mais { width: 18px; height: 18px; }
.pergunta .mais::before { top: 8px; height: 1.5px; }
.pergunta .mais::after { left: 8px; width: 1.5px; }
.pergunta.aberto .mais { transform: rotate(135deg); }
.pergunta.aberto .servico-corpo { grid-template-rows: 1fr; }
.pergunta.aberto .servico-dentro { visibility: visible; }
.pergunta p { padding-bottom: 20px; max-width: 58ch; }

/* contato */
.contato { position: relative; overflow: clip; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; align-items: start; }
.etiqueta {
  grid-column: 1 / 7;
  position: relative;
  z-index: 1;
  background: var(--noite);
  color: var(--papel);
  padding: clamp(32px, 4vw, 56px) clamp(36px, 5vw, 68px);
  display: grid;
  gap: 22px;
  min-width: 0;
}
.etiqueta::before, .etiqueta::after {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  border-left: 2px dashed var(--areia);
}
.etiqueta::before { left: 14px; }
.etiqueta::after { right: 14px; }
.etiqueta h2 { font: 400 clamp(2.5rem, 5vw, 4.75rem)/1 var(--titulo); }
.linha-contato { display: grid; gap: 2px; min-width: 0; }
.rotulo { font-size: 1rem; color: var(--areia); }
.numero { font: 400 clamp(1.5rem, 2.7vw, 2.375rem)/1.15 var(--titulo); font-variant-numeric: lining-nums; overflow-wrap: anywhere; text-underline-offset: 6px; text-decoration-thickness: 1px; }
a.numero:hover { color: var(--areia); }

.orcamento { grid-column: 8 / 13; position: relative; z-index: 1; display: grid; gap: 18px; min-width: 0; }
.orcamento h2 { font: 400 clamp(2rem, 3.6vw, 3.25rem)/1.05 var(--titulo); text-wrap: balance; }
.campo { display: grid; gap: 4px; min-width: 0; }
.campo label { font-size: 1rem; }
.campo input, .campo select, .campo textarea {
  width: 100%;
  padding: 10px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--cafe);
  border-radius: 0;
  outline-offset: 2px;
  transition: border-color .2s, box-shadow .2s;
}
.campo input:hover, .campo select:hover, .campo textarea:hover { box-shadow: 0 1px 0 var(--cafe); }
.campo select option { color: var(--cafe); background: var(--papel); }
.campo textarea { resize: vertical; min-height: 84px; }
.campos-par { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px 20px; }
.nota-envio { font-size: 1rem; }
.girassol-pe {
  position: absolute;
  z-index: 0;
  left: 12%;
  bottom: -20vw;
  width: min(30vw, 480px);
  color: var(--ocre);
  --fundo: var(--papel);
}

/* rodapé */
.rodape { background: var(--cafe); color: var(--papel); padding-block: clamp(32px, 4vw, 56px); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px 48px; }
.rodape-marca { font: 400 clamp(2.25rem, 4vw, 3.5rem)/1 var(--titulo); }
.rodape nav { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.rodape a { text-decoration-style: dashed; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.rodape small { font-size: 1rem; }

/* botão flutuante */
.flutua-whats {
  position: fixed;
  z-index: 18;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  transition: opacity .3s, transform .4s var(--suave), background-size .4s var(--suave);
}
.flutua-whats.fora { opacity: 0; transform: translateY(16px); pointer-events: none; }

/* girassol desenhado por script */
.flor { overflow: visible; }
.flor path, .flor circle { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.flor .petala, .flor .miolo { fill: var(--fundo); }
.flor .semente { fill: currentColor; stroke: none; }
.cabeca { transform-origin: 520px 420px; transform: rotate(calc(var(--giro, 0) * 1deg)); }
.costurar .traco {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: costura .55s cubic-bezier(.4, 0, .3, 1) var(--d, 0s) forwards;
}
.costurar .semente { opacity: 0; animation: surge .4s linear var(--d, 0s) forwards; }
@keyframes costura { to { stroke-dashoffset: 0; } }
@keyframes surge { to { opacity: 1; } }
.girassol-pe { animation: balanca 7s ease-in-out infinite alternate; transform-origin: 44% 100%; }
@keyframes balanca { from { transform: rotate(-1.6deg); } to { transform: rotate(1.6deg); } }

/* Com o tamanho óptico automático, os traços finos da Bodoni somem em títulos grandes.
   Fica depois dos blocos de seção porque o atalho font: zera esta configuração. */
main h1, main h2, main h3, main .oficio, main .lema, main .servico-nome, main blockquote, main .pergunta-botao, main .obra-legenda b, .janela h3 { font-optical-sizing: none; font-variation-settings: "opsz" 11; }
main .numero, main .passo b, .rodape-marca, .marca { font-optical-sizing: none; font-variation-settings: "opsz" 6; }

@media (max-width: 980px) {
  .abre-menu { display: block; }
  .menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px max(var(--lado), env(safe-area-inset-right, 0px)) 20px max(var(--lado), env(safe-area-inset-left, 0px));
    background: var(--papel);
    box-shadow: 0 1px 0 var(--cafe);
    visibility: hidden;
    clip-path: inset(0 0 100% 0);
    transition: clip-path .4s var(--suave), visibility .4s;
  }
  .menu.aberto { visibility: visible; clip-path: inset(0 0 -2px 0); }
  .menu a:not(.botao) { padding-block: 10px; font-size: 1.25rem; }
  .menu .botao { margin-top: 8px; padding: .8em 1em; }
  .cabecalho .marca { opacity: 1 !important; transform: none !important; pointer-events: auto !important; }

  .perguntas { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .perguntas .titulo-secao, .lista-perguntas { grid-column: 1; }
  .contato { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .etiqueta, .orcamento { grid-column: 1; }
  .girassol-pe { display: none; }
  .janela-grade { grid-template-columns: minmax(0, 1fr); }
  .janela-midia { min-height: 56vh; }
}
@media (max-width: 860px) {
  .girassol-grande { width: 112vw; top: -2vw; right: -40vw; }
  .nome { margin-top: 62vw; }
  .sobre-nome { grid-template-columns: minmax(0, 1fr); }
  .oficio, .lema, .acoes { grid-column: 1; justify-content: start; }
  .acoes { margin-top: 8px; }
  .atelier { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .atelier .foto, .carta { grid-column: 1; }
  .atelier .foto { width: 78%; }
  .flutuante { display: none; }

  .galeria { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 37vw; gap: 16px 12px; }
  .obra-alta { grid-column: span 2; grid-row: span 3; }
  .obra-larga { grid-column: span 2; grid-row: span 2; }
  .obra-media { grid-column: span 1; grid-row: span 2; }
  .obra-legenda { display: grid; gap: 0; }
  .obra-legenda span { white-space: normal; }

  /* a fita fica em pé na margem, com as cinco etapas ao lado */
  .medida { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 18px; margin-top: 32px; margin-left: calc(-1 * var(--lado)); }
  .fita { grid-template-columns: 1fr; grid-template-rows: repeat(15, minmax(0, 1fr)); height: auto; margin: 0; padding: 0; }
  .fita span {
    padding: 5px 0 0 26px;
    background-image:
      linear-gradient(180deg, var(--cafe) 1.5px, transparent 1.5px),
      linear-gradient(180deg, transparent calc(50% - .5px), var(--cafe) calc(50% - .5px), var(--cafe) calc(50% + .5px), transparent calc(50% + .5px)),
      repeating-linear-gradient(180deg, var(--cafe) 0 1px, transparent 1px 10%);
    background-size: 22px 100%, 16px 100%, 10px 100%;
    font-size: .75rem;
  }
  .agulha { top: calc(var(--p, 0) * 100%); left: 0; width: 72px; height: 2px; margin: -1px 0 0; transition: top .25s linear; }
  .agulha::before { top: -5px; left: 66px; }
  .passos { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 1fr; margin-top: 0; }
  .passo { padding-block: 0 28px; padding-right: 0; }

  .depo-palco, .depo-setas { grid-column: 1 / 13; }
  .flutua-whats { padding: .7em 1em; font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .costurar .traco { animation: none; stroke-dashoffset: 0; }
  .costurar .semente { animation: none; opacity: 1; }
  .girassol-pe, .entrada .nome span, .janela[open] { animation: none; }
  .fita-trilho, .cabeca, .foto-miolo { transform: none; }
  * { transition-duration: .01ms !important; }
}

/* Painel de edição */
.carta p, .servico-texto p, .servico-dentro > p, #janela-texto, .depo blockquote, .contato .linha-contato span { white-space: pre-line; }
.ed-abre { position: fixed; left: var(--lado); bottom: 18px; z-index: 18; }
.ed-painel {
  position: fixed; z-index: 30; top: 0; right: 0; bottom: 0; width: 440px; max-width: 100%;
  display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto;
  background: var(--papel); color: var(--cafe); border-left: 2px solid var(--cafe);
  font: 400 1rem/1.45 var(--texto);
}
.ed-topo { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px 4px; }
.ed-topo h2 { margin: 0; font: 400 1.625rem/1.1 var(--titulo); }
.ed-intro { margin: 0; padding: 0 18px 12px; border-bottom: 1px solid var(--taupe); }
.ed-secoes { overflow-y: auto; overscroll-behavior: contain; padding: 0 18px; }
.ed-secao { border-bottom: 1px solid var(--taupe); }
.ed-secao summary { padding: 13px 0; cursor: pointer; font: 400 1.25rem/1.2 var(--titulo); }
.ed-corpo { display: grid; gap: 14px; padding: 2px 0 20px; }
.ed-campo { display: grid; gap: 4px; min-width: 0; }
.ed-rotulo { font-weight: 500; }
.ed-ajuda { font-size: .9375rem; color: var(--terracota); }
.ed-ajuda:empty { display: none; }
.ed-campo input[type=text], .ed-campo textarea, .ed-campo select {
  width: 100%; box-sizing: border-box; padding: 9px 11px; border: 1px solid var(--terracota); border-radius: 2px;
  background: #fff8ea; color: var(--noite); font: 400 1rem/1.4 var(--texto);
}
.ed-campo textarea { resize: vertical; min-height: 5.5em; }
.ed-arquivo { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.ed-previa { display: grid; place-items: center; height: 148px; overflow: hidden; background: var(--rosado); color: var(--cafe); }
.ed-previa img { width: 100%; height: 100%; object-fit: cover; }
.ed-item { display: grid; gap: 12px; min-width: 0; margin: 0; padding: 12px; border: 1px solid var(--taupe); border-radius: 2px; }
.ed-item legend { padding: 0 6px; font-weight: 500; }
.ed-linha { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.ed-acao { padding: 6px 0; color: var(--cafe); font: inherit; cursor: pointer; text-decoration: underline 1px; text-underline-offset: 4px; background: none; border: 0; }
.ed-acao:disabled { color: var(--taupe); cursor: default; text-decoration: none; }
.ed-mais { justify-self: start; font-weight: 500; }
.ed-base { display: grid; gap: 8px; padding: 12px 18px calc(14px + env(safe-area-inset-bottom, 0px)); border-top: 2px solid var(--cafe); }
.ed-aviso { margin: 0; min-height: 1.45em; }
.ed-aviso.erro { color: #8c1d0b; font-weight: 500; }
.ed-salvar:disabled { opacity: .5; cursor: default; }
.editando .flutua-whats { display: none; }
@media (min-width: 1000px) {
  body.editando { padding-right: 440px; }
}
@media (max-width: 999px) {
  .ed-painel { top: auto; left: 0; width: auto; height: 68dvh; border-left: 0; border-top: 2px solid var(--cafe); }
  .ed-abre { bottom: 14px; }
}
