/* gabrielbozano.com — design system v3
   Identidade geométrica Bauhaus (preto / papel / laranja), tom editorial
   inspirado no jamesclear.com.
   Tipos: Jost (geométrica, UI e rótulos) + Newsreader (serifada, leitura).
   Marca: BZNS Sextante Aurore 9. */

@import url('https://fonts.googleapis.com/css2?family=Jost:wght@300;400;500;600;700&family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,400&display=swap');

:root {
  /* Superfícies */
  --preto: #111111;
  --preto-fundo: #0C0B0A;
  --branco: #FAFAFA;
  --creme: #F6F0E4;
  --cinza: #E4E2DF;
  --cinza-texto: #6C6864;
  --texto-corpo: #333130;

  /* Acento */
  --laranja: #E2611C;
  --laranja-escuro: #C9530F;
  --laranja-texto: #B84D0E;
  --laranja-claro: #F5843A;

  /* Semânticas */
  --erro: #C0271B;

  /* Tipos */
  --sans: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --serif: 'Newsreader', 'Iowan Old Style', Georgia, 'Times New Roman', serif;

  /* Métrica */
  --max-width: 900px;
  --gutter: 28px;
  --header-alto: 96px;
  --header-baixo: 62px;
  --ease: cubic-bezier(.65, 0, .35, 1);

  font-size: 16px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-baixo) + 16px);
}

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--sans);
  background: var(--branco);
  color: var(--preto);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--preto);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .15s ease, color .15s ease;
}
a:hover { border-color: var(--preto); }

:focus-visible {
  outline: 2px solid var(--laranja);
  outline-offset: 3px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ───────────────────────── Header fixo ───────────────────────── */

/* Header sempre em papel branco; a hairline só aparece ao rolar. */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: var(--branco);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.header.is-scrolled { border-bottom-color: var(--cinza); }

.header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: var(--header-alto);
  transition: height .45s var(--ease);
}
.header.is-scrolled .header__inner { height: var(--header-baixo); }

/* Nome — à esquerda, some no scroll */
.header__name {
  position: absolute;
  left: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--sans);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: .02em;
  white-space: nowrap;
  border-bottom: none;
  transition: opacity .26s ease, transform .32s var(--ease);
}
.header__name em { font-style: normal; color: var(--laranja); }
.header__name:hover { border-bottom: none; }
.header.is-scrolled .header__name {
  opacity: 0;
  transform: translateY(-50%) translateX(-14px);
  pointer-events: none;
}

/* Sextante — dissolve: a marca grande do centro se apaga e a pequena
   aparece no canto esquerdo. Sem deslocamento lateral. */
.header__mark {
  position: absolute;
  top: 50%;
  display: block;
  line-height: 0;
  border-bottom: none;
}
.header__mark img, .header__mark svg {
  display: block;
  width: 100%;
  height: auto;
}
.header__mark:hover { border-bottom: none; }

.header__mark--centro {
  left: 50%;
  width: 56px;
  transform: translate(-50%, -50%);
  transition: opacity .3s ease, transform .4s var(--ease);
}
.header__mark--canto {
  left: var(--gutter);
  width: 30px;
  transform: translateY(-50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .34s ease .06s;
}
.header.is-scrolled .header__mark--centro {
  opacity: 0;
  transform: translate(-50%, -50%) scale(.7);
  pointer-events: none;
}
.header.is-scrolled .header__mark--canto {
  opacity: 1;
  pointer-events: auto;
}

/* Menu — sempre à direita */
.header__nav {
  display: flex;
  gap: 26px;
  font-size: .84rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .11em;
}
.header__nav a {
  color: var(--cinza-texto);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}
.header__nav a:hover { color: var(--preto); border-bottom-color: var(--preto); }
.header__nav a.active { color: var(--preto); border-bottom-color: var(--laranja); }

/* Hambúrguer — só existe no celular (ver media query no fim) */
.header__toggle {
  display: none;
  position: relative;
  width: 42px;
  height: 42px;
  margin-right: -9px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}
.header__toggle span {
  position: absolute;
  left: 10px;
  width: 22px;
  height: 1.5px;
  background: var(--preto);
  transition: transform .3s var(--ease), opacity .18s ease;
}
.header__toggle span:nth-child(1) { top: 15px; }
.header__toggle span:nth-child(2) { top: 20px; }
.header__toggle span:nth-child(3) { top: 25px; }
.header__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.header__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.header__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* Painel do menu — fechado, as linhas do grid valem 0fr; aberto, 1fr.
   Anima a altura sem precisar chutar um max-height. */
.header__painel { display: none; }
.header__painel-inner { overflow: hidden; }
.header__painel a {
  display: block;
  padding: 17px var(--gutter);
  font-size: .8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--cinza-texto);
  border-top: 1px solid var(--cinza);
  border-bottom: none;
}
.header__painel a:hover { color: var(--preto); border-bottom: none; }
.header__painel a.active { color: var(--preto); }
.header__painel a.active::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--laranja);
  margin-right: 12px;
  vertical-align: 1px;
}

/* ───────────────────────── Hero ───────────────────────── */

.hero { padding: 72px 0 48px; }
.hero__eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .72rem;
  color: var(--laranja-texto);
  font-weight: 600;
  margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--sans);
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -.015em;
  margin: 0 0 22px;
  text-wrap: balance;
}
.hero p {
  font-family: var(--serif);
  font-size: 1.12rem;
  line-height: 1.62;
  color: var(--texto-corpo);
  max-width: 34em;
}

.hero--split {
  display: grid;
  grid-template-columns: 1.18fr .82fr;
  gap: 60px;
  align-items: center;
  padding: 76px 0 68px;
}
.hero--split h1 { font-size: 3.1rem; }
.hero--split p { max-width: 30em; }
.hero__cta {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.hero__mark-frame {
  position: relative;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--preto);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__mark-frame::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid var(--cinza);
  pointer-events: none;
}
.hero__mark-frame::after {
  content: '';
  position: absolute;
  top: 15px; left: 15px;
  width: 11px; height: 11px;
  background: var(--laranja);
}
.hero__mark-frame img, .hero__mark-frame svg {
  width: 54%;
  height: auto;
  position: relative;
}

/* ── Manifesto — frase de abertura + imagem, lado a lado ── */
.manifesto {
  display: grid;
  grid-template-columns: 1.16fr .84fr;
  gap: 60px;
  align-items: center;
  padding: 80px 0 84px;
  border-top: none;
}
.manifesto__frase {
  font-family: var(--sans);
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.025em;
  margin: 0 0 24px;
  text-wrap: balance;
}
.manifesto__frase em {
  font-style: normal;
  color: var(--laranja-texto);
}
.manifesto__sub {
  font-family: var(--serif);
  font-size: 1.14rem;
  line-height: 1.6;
  color: var(--texto-corpo);
  max-width: 30em;
  margin: 0;
}

/* A arte sangra no creme — sem borda, sem moldura interna, sem marcador.
   A ilustração já traz a própria moldura desenhada, e o fundo dela é o
   mesmo creme da faixa: qualquer contorno aqui seria o segundo. */
.moldura {
  position: relative;
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  overflow: hidden;
}
.moldura img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Só o marcador de imagem ausente é emoldurado — pra se ler como vazio. */
.moldura__cruz {
  position: absolute;
  inset: 0;
  border: 1px solid var(--preto);
  background:
    linear-gradient(to bottom right, transparent calc(50% - .5px), rgba(17,17,17,.10) 50%, transparent calc(50% + .5px)),
    linear-gradient(to bottom left,  transparent calc(50% - .5px), rgba(17,17,17,.10) 50%, transparent calc(50% + .5px)),
    rgba(17, 17, 17, .025);
}
.moldura__legenda {
  position: relative;
  z-index: 2;
  font-size: .66rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--cinza-texto);
  background: var(--creme);
  padding: 6px 12px;
}

/* ── Dupla — bio de um lado, últimos artigos do outro ── */
.dupla {
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  gap: 60px;
  align-items: start;
}
.dupla__titulo {
  font-family: var(--sans);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.16;
  text-transform: none;
  color: var(--preto);
  margin: 0 0 20px;
}
.dupla__bio p {
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.64;
  color: var(--texto-corpo);
  margin: 0 0 1em;
  max-width: 32em;
}
.col-titulo {
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--cinza-texto);
  margin: 0 0 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--preto);
}
.dupla__artigos .article-item { padding: 20px 0; }
.dupla__artigos .article-list + .build-card__link { margin-top: 18px; }

/* ───────────────────────── Seções ───────────────────────── */

/* ── Faixas de fundo ──
   O site alterna papel neutro e creme em faixas de largura total.
   A troca de cor é o separador: a primeira seção de cada faixa perde
   a hairline, e as seções seguintes dentro da mesma faixa a mantêm. */
.faixa { background: var(--branco); }
.faixa--creme { background: var(--creme); }
.faixa > .container > section:first-child { border-top: none; }

/* A primeira faixa corre por baixo do header fixo — por isso o recuo
   do topo vive nela, e não no body: assim a cor sobe até o topo da tela. */
main > .faixa:first-child { padding-top: var(--header-alto); }

section {
  padding: 52px 0;
  border-top: 1px solid var(--cinza);
}
section h2 {
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--cinza-texto);
  margin: 0 0 24px;
}

/* Cards */
.build-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.build-card {
  border: 1px solid var(--cinza);
  padding: 28px;
  transition: border-color .2s ease;
}
.build-card:hover { border-color: var(--preto); }
.build-card__eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .68rem;
  color: var(--laranja-texto);
  font-weight: 600;
  margin-bottom: 10px;
}
.build-card__title {
  font-family: var(--sans);
  font-size: 1.34rem;
  font-weight: 600;
  letter-spacing: -.01em;
  margin: 0 0 8px;
}
.build-card__desc {
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.58;
  color: var(--texto-corpo);
  margin: 0;
}
.build-card__link {
  display: inline-block;
  margin-top: 16px;
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--laranja-texto);
  border-bottom: 1px solid var(--laranja);
}
.build-card__link:hover { color: var(--preto); border-bottom-color: var(--preto); }

/* Callout */
.callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border: 1px solid var(--preto);
  padding: 30px 32px;
  flex-wrap: wrap;
}
.callout__text .hero__eyebrow { margin-bottom: 6px; }
.callout__text p {
  font-family: var(--serif);
  margin: 0;
  color: var(--texto-corpo);
  font-size: 1.05rem;
}

/* Lista de artigos */
.article-list { list-style: none; margin: 0; padding: 0; }
.article-item {
  display: block;
  padding: 22px 0;
  border-bottom: 1px solid var(--cinza);
}
.article-item:last-child { border-bottom: none; }
a.article-item { border-bottom: 1px solid var(--cinza); }
a.article-item:hover .article-item__title { color: var(--laranja-texto); }
.article-item__date {
  font-size: .72rem;
  color: var(--cinza-texto);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 500;
}
/* Título de artigo é escrita, não interface — vai na serifada. */
.article-item__title {
  font-family: var(--serif);
  font-size: 1.36rem;
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -.005em;
  margin: 5px 0 0;
  transition: color .15s ease;
}
.article-item__excerpt {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--texto-corpo);
  margin-top: 6px;
}
.article-item--empty {
  font-family: var(--serif);
  color: var(--cinza-texto);
  font-style: italic;
}

/* ── Página de artigo ── */
.artigo-capa { padding: 76px 0 60px; border-top: none; }
.artigo-capa h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.9vw, 2.95rem);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -.008em;
  margin: 0 0 20px;
  max-width: 17em;
  text-wrap: balance;
}
.artigo-capa__meta {
  font-size: .72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--cinza-texto);
}
.artigo-capa__linha {
  font-family: var(--serif);
  font-size: 1.16rem;
  line-height: 1.58;
  color: var(--texto-corpo);
  max-width: 32em;
  margin: 0;
}

.artigo { max-width: 35em; }
.artigo p {
  font-family: var(--serif);
  font-size: 1.14rem;
  line-height: 1.74;
  color: var(--texto-corpo);
  margin: 0 0 1.15em;
}
.artigo h2 {
  font-family: var(--sans);
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: -.012em;
  text-transform: none;
  color: var(--preto);
  margin: 2.1em 0 .55em;
}
.artigo blockquote {
  margin: 1.8em 0;
  padding-left: 22px;
  border-left: 2px solid var(--laranja);
}
.artigo blockquote p {
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--preto);
  margin: 0;
}
.artigo__rodape {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--cinza);
}

/* ───────────────────────── Botões ───────────────────────── */

.btn {
  display: inline-block;
  font-family: var(--sans);
  padding: 13px 26px;
  background: var(--laranja);
  color: var(--preto);
  border: 1px solid var(--laranja);
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.btn:hover {
  background: var(--laranja-escuro);
  border-color: var(--laranja-escuro);
  color: var(--preto);
}
.btn--outline {
  background: transparent;
  color: var(--preto);
  border-color: var(--preto);
}
.btn--outline:hover {
  background: var(--preto);
  border-color: var(--preto);
  color: var(--branco);
}
.btn--danger {
  background: transparent;
  border-color: var(--erro);
  color: var(--erro);
}
.btn--danger:hover { background: var(--erro); border-color: var(--erro); color: var(--branco); }

/* ───────────────────────── Formulários ───────────────────────── */

.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 500;
  color: var(--cinza-texto);
  margin-bottom: 7px;
}
.field input, .field select {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--cinza);
  background: #fff;
  font-family: inherit;
  font-size: 1rem;
  color: var(--preto);
}
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--preto);
}
.form-error {
  color: var(--erro);
  font-size: .85rem;
  margin-top: 10px;
  display: none;
}
.form-error.visible { display: block; }

/* ───────────────────────── Rodapé preto ───────────────────────── */

.footer {
  background: var(--preto-fundo);
  color: #A5A09B;
}
.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px var(--gutter) 32px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr .8fr 1fr 1.1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer__mark {
  display: block;
  width: 52px;
  height: auto;
  filter: invert(1);
  margin-bottom: 18px;
}
.footer__tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.5;
  color: #D8D3CD;
  margin: 0;
  max-width: 15em;
}
.footer__col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
}
.footer__title {
  font-family: var(--sans);
  font-size: .68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: #6E6862;
  margin: 0 0 3px;
}
.footer__col a {
  color: #D8D3CD;
  font-size: .95rem;
  border-bottom: 1px solid transparent;
}
.footer__col a:hover { color: var(--laranja-claro); border-bottom-color: var(--laranja-claro); }

/* Redes sociais — quadrados geométricos */
.social {
  display: flex;
  gap: 10px;
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
}
.social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(216, 211, 205, .26);
  color: #D8D3CD;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.social a:hover {
  background: var(--laranja);
  border-color: var(--laranja);
  color: var(--preto-fundo);
}
.social svg { width: 19px; height: 19px; display: block; }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 26px;
  border-top: 1px solid rgba(216, 211, 205, .14);
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #6E6862;
}
.footer__bottom a { color: #6E6862; }
.footer__bottom a:hover { color: var(--laranja-claro); border-bottom-color: var(--laranja-claro); }

/* ───────────────────────── Foco / Pomodoro ───────────────────────── */

.foco {
  min-height: 56vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 56px 0;
}
.foco__label {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .72rem;
  color: var(--laranja-texto);
  font-weight: 600;
  margin-bottom: 26px;
}
/* Mostrador — arco de horizonte, escala fixa de 30min. O sol nasce a
   esquerda e cruza o arco conforme o tempo passa; a agulha fina liga o
   centro ao sol, como o braco de um sextante medindo sua altura. */
.dial {
  width: min(300px, 78vw);
  height: auto;
  display: block;
  margin-bottom: 10px;
}
.dial .tick { stroke: var(--preto); }
.dial__base { stroke: var(--cinza); stroke-width: 1; }
.dial__track { fill: none; stroke: var(--cinza); stroke-width: 3; }
#arc {
  fill: none;
  stroke: var(--laranja);
  stroke-width: 3;
  stroke-linecap: round;
}
#hand {
  stroke: var(--preto);
  stroke-width: 1.3;
  stroke-linecap: round;
  transform-origin: 150px 160px;
  transition: transform .25s linear;
}
#dial-sol { transform-origin: 150px 160px; transition: transform .25s linear; }
#halo { fill: var(--laranja); opacity: .16; }
#sol { fill: var(--laranja); }
#pivot { fill: var(--preto); }

.foco__timer {
  font-family: var(--sans);
  font-size: 3.6rem;
  font-weight: 300;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin-bottom: 10px;
  letter-spacing: .01em;
}

/* Projeto e tarefa do período */
.foco__campos {
  display: grid;
  grid-template-columns: 1fr 1.25fr auto;
  gap: 0 18px;
  align-items: end;
  width: min(430px, 88vw);
  margin-top: 30px;
}
.foco__campo {
  display: flex;
  flex-direction: column;
  text-align: left;
  border-bottom: 1px solid var(--cinza);
  transition: border-color .18s ease;
}
.foco__campo:focus-within { border-bottom-color: var(--laranja); }
.foco__campo label {
  font-size: .6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--cinza-texto);
}
.foco__campo input {
  font-family: var(--sans);
  font-size: .95rem;
  border: none;
  background: none;
  color: var(--preto);
  padding: 3px 0 7px;
  width: 100%;
}
.foco__campo input:focus { outline: none; }
.foco__ok {
  font-family: var(--sans);
  font-size: .68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .16em;
  background: none;
  border: none;
  border-bottom: 1px solid var(--cinza);
  color: var(--cinza-texto);
  cursor: pointer;
  padding: 3px 0 7px;
}
.foco__ok:hover { color: var(--preto); border-bottom-color: var(--preto); }

.foco__atual {
  margin-top: 18px;
  min-height: 1.5em;
  max-width: min(430px, 88vw);
}
.foco__atual:empty { visibility: hidden; }
.foco__atual .proj {
  font-family: var(--sans);
  font-size: .64rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--laranja-texto);
  display: block;
  margin-bottom: 2px;
}
.foco__atual .tarefa {
  font-family: var(--serif);
  font-size: 1.06rem;
  color: var(--preto);
}

/* Ciclos concluídos no dia — ficam logo abaixo do relógio, no lugar
   onde antes havia o nome do modo */
.foco__ciclos { display: flex; gap: .62rem; margin: 6px 0 36px; }
.foco__ciclos span {
  width: 11px; height: 11px;
  border-radius: 50%;
  border: 1px solid var(--preto);
  opacity: .4;
  display: block;
}
.foco__ciclos span.done {
  background: var(--laranja);
  border-color: var(--laranja);
  opacity: 1;
  box-shadow: 0 0 6px rgba(226, 97, 28, .55);
}
/* O modo se lê nos botões e no mostrador — o texto fica só para leitores
   de tela, que continuam sendo avisados quando ele troca. */
.foco__mode {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.foco__controls { display: flex; gap: 12px; margin-bottom: 32px; flex-wrap: wrap; justify-content: center; }
.foco__modes { display: flex; gap: 8px; margin-bottom: 40px; flex-wrap: wrap; justify-content: center; }
.foco__modes button {
  padding: 9px 17px;
  border: 1px solid var(--cinza);
  background: transparent;
  font-family: var(--sans);
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 500;
  cursor: pointer;
  color: var(--cinza-texto);
  transition: border-color .18s ease, color .18s ease;
}
.foco__modes button:hover { color: var(--preto); }
.foco__modes button.active { border-color: var(--laranja); color: var(--preto); }
.foco__hint {
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--cinza-texto);
  margin-bottom: 18px;
}
.foco__log-actions { display: flex; gap: 18px; font-size: .8rem; }
.foco__log-actions button {
  background: none;
  border: none;
  border-bottom: 1px solid var(--cinza);
  color: var(--cinza-texto);
  cursor: pointer;
  font-family: var(--sans);
  padding: 2px 0;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.foco__log-actions button:hover { color: var(--preto); border-bottom-color: var(--preto); }
.foco__log-actions button.arm { color: var(--laranja-texto); border-bottom-color: var(--laranja); }

@media (max-width: 520px) {
  .foco__campos { grid-template-columns: 1fr auto; gap: 14px 16px; }
  .foco__campos .foco__campo:first-child { grid-column: 1 / -1; }
}

/* ───────────────────────── Dashboard ───────────────────────── */

.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 40px 0 20px;
}
.dash-header h1 { font-family: var(--sans); font-size: 1.8rem; font-weight: 600; letter-spacing: -.015em; margin: 0; }
.dash-meta { font-size: .82rem; color: var(--cinza-texto); }
.dash-meta button {
  background: none;
  border: none;
  border-bottom: 1px solid var(--laranja);
  color: var(--laranja-texto);
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  padding: 0;
}
.dash-meta button:hover { color: var(--preto); border-bottom-color: var(--preto); }

.project-group { margin-bottom: 34px; }
.project-group__title { font-family: var(--sans); font-size: 1.16rem; font-weight: 600; letter-spacing: -.01em; margin-bottom: 3px; }
.project-group__meta {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--cinza-texto);
  margin-bottom: 12px;
}
.task-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--cinza);
}
.task-row input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--laranja);
  flex: none;
}
.task-row__title { flex: 1; font-size: .98rem; }
.task-row--done .task-row__title { color: var(--cinza-texto); text-decoration: line-through; }
.task-row__delete {
  background: none;
  border: none;
  color: var(--cinza-texto);
  cursor: pointer;
  font-size: .82rem;
  font-family: inherit;
}
.task-row__delete:hover { color: var(--erro); }
.add-task-row { display: flex; gap: 8px; margin-top: 14px; }
.add-task-row input { flex: 1; }

.empty-state {
  font-family: var(--serif);
  color: var(--cinza-texto);
  font-style: italic;
  padding: 24px 0;
}

/* ───────────────────────── Responsivo ───────────────────────── */

@media (max-width: 860px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 820px) {
  .manifesto { grid-template-columns: 1fr; gap: 40px; padding: 52px 0 56px; }
  /* Mantém 4:5 no celular também — recortar um retrato pra deitado
     cortaria a pessoa no meio. Só diminui. */
  .moldura { max-width: 340px; }
  .dupla { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 720px) {
  .hero--split { grid-template-columns: 1fr; gap: 40px; padding: 48px 0 40px; }
  .hero--split .hero__mark-frame { max-width: 210px; margin: 0 auto; order: -1; }
  .hero--split h1 { font-size: 2.2rem; }
  .dupla__titulo { font-size: 1.7rem; }
}

@media (max-width: 640px) {
  :root { --gutter: 20px; --header-alto: 64px; --header-baixo: 58px; }
  /* No celular o header agora nasce igual ao desktop — nome à esquerda, marca
     central — só um pouco menor, pra sobrar espaço do hambúrguer à direita.
     O dissolve no scroll (nome some, marca central encolhe, marca do canto
     aparece) é o mesmo comportamento herdado das regras acima, sem overrides. */
  .header__name { font-size: 1rem; }
  .header__mark--centro { width: 42px; }
  .header__nav { display: none; }
  .header__toggle { display: block; }

  .header__painel {
    display: grid;
    grid-template-rows: 0fr;
    background: var(--branco);
    transition: grid-template-rows .32s var(--ease);
  }
  /* fechado o painel não pode receber foco de teclado */
  .header__painel-inner {
    visibility: hidden;
    transition: visibility 0s .32s;
  }
  .header.is-open .header__painel { grid-template-rows: 1fr; }
  .header.is-open .header__painel-inner {
    visibility: visible;
    transition: visibility 0s;
  }
  .build-grid { grid-template-columns: 1fr; }
  .callout { flex-direction: column; align-items: flex-start; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .foco__timer { font-size: 3.4rem; }
  .hero h1 { font-size: 1.9rem; }
}

@media (max-width: 370px) {
  :root { --gutter: 16px; }
  .header__name { font-size: .86rem; }
  .header__mark--centro { width: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .header__inner, .header__mark, .header__name { transition: none; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
