/*
 * Identidade pública oficial do Inot, restaurada conforme o HTML/CSS preservados
 * da migração: fundo em papel, marca IN/O/T, abertura orbital e ritmo editorial.
 * Os seletores atuais atendem ao template PHP dinâmico; cores/formatos pertencem
 * ao conteúdo de cada cartão, sem depender da posição após arrastar ou ocultar.
 * Não há CDN, estilos inline ou regras concorrentes de apresentação.
 */
:root {
  --ink: #102f46; --blue: #215d78; --paper: #fffdf8; --canvas: #f5f1e8;
  --gold: #e4b33d; --gold-dark: #9a6b08; --green: #44785c;
  --green-light: #a9cdb7; --text: #172630; --muted: #5d6b72;
  --line: rgba(16, 47, 70, .15); --serif: Georgia, 'Times New Roman', serif;
}
/* Base e acesso por teclado. Cada seção controla seus recuos como no original;
 * shell apenas ocupa a largura disponível, sem o limite novo de 1480px. */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: linear-gradient(135deg, #f8f5ed 0%, var(--canvas) 55%, #eef3ec 100%); font-family: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
img { max-width: 100%; }
.shell { width: 100%; }
.skip-link { position: fixed; z-index: 100; left: 1rem; top: -4rem; padding: .75rem 1rem; background: var(--paper); border-radius: .5rem; }
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
/* Ui::brand centraliza a marca reutilizada no topo/rodapé. O nome INOT recebe
 * os três segmentos históricos; outros nomes editados continuam texto seguro. */
.site-header { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0 clamp(1.25rem, 5vw, 5rem); border-bottom: 1px solid var(--line); background: rgba(255,253,248,.72); backdrop-filter: blur(12px); }
.brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand-word { display: inline-flex; align-items: baseline; gap: .32em; font-size: 1.22rem; line-height: 1; font-weight: 850; letter-spacing: .12em; }
.brand-in { padding: .34em .42em; color: var(--ink); background: var(--gold); letter-spacing: .08em; }
.brand-o { color: var(--gold-dark); }
.brand-t { color: var(--green); margin-left: -.22em; }
.site-header nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.5rem); }
.site-header nav a { text-decoration: none; font-size: .86rem; font-weight: 650; transition: .2s ease; }
.site-header nav a:not(.contact-link):hover { color: var(--blue); }
.contact-link { padding: .7rem 1rem; border: 1px solid var(--green); border-radius: 999px; color: var(--green); }
.contact-link:hover { background: var(--green); color: var(--paper); }
/* Todas as ações continuam vindas de Ui, com ícone obrigatório. row-reverse
 * coloca o texto antes do ícone sem criar uma segunda construção de botões. */
.action { display: inline-flex; align-items: center; gap: 2rem; font-weight: 750; text-decoration: none; transition: .2s ease; }
.action-icon { flex: 0 0 auto; }
.hero-action { flex-direction: row-reverse; margin-top: 1.2rem; padding: 1rem 1.25rem; color: var(--ink); background: var(--gold); border-radius: 4px; box-shadow: 0 10px 24px rgba(154,107,8,.16); }
.hero-action:hover { background: #efc75f; transform: translateY(-2px); }
/* Abertura: proporções, altura de tela, título Georgia e respiro da origem.
 * minmax/min-width evitam que textos editoriais longos alarguem a grade. */
.hero { min-height: calc(100vh - 88px); display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: center; gap: 3rem; padding: clamp(4rem, 8vw, 8rem) clamp(1.25rem, 8vw, 8rem); overflow: hidden; }
.hero-copy { min-width: 0; }
.eyebrow { margin: 0 0 1rem; color: var(--blue); text-transform: uppercase; letter-spacing: .18em; font-size: .73rem; font-weight: 800; }
h1, h2, h3 { margin-top: 0; color: var(--ink); font-family: var(--serif); font-weight: 500; }
h1 { margin-bottom: 1.5rem; max-width: 760px; font-size: clamp(3.6rem, 7.7vw, 7.7rem); line-height: .92; letter-spacing: -.055em; overflow-wrap: break-word; }
h1 em { color: var(--green); font-weight: 400; }
.hero-text { max-width: 610px; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.22rem); line-height: 1.7; }
/* O desenho orbital substitui a composição introduzida na migração. É decorativo,
 * não recebe foco e reaproveita o nome editorial sem alterar dados no banco. */
.hero-art { position: relative; aspect-ratio: 1; max-width: 570px; width: 100%; justify-self: end; border-radius: 50%; background: radial-gradient(circle at 35% 28%, #276984 0%, var(--ink) 48%, #173b32 100%); box-shadow: 0 35px 80px rgba(16,47,70,.24), 0 0 0 12px rgba(228,179,61,.08); }
.art-core { position: absolute; inset: 31%; display: grid; place-content: center; border-radius: 50%; color: var(--canvas); border: 1px solid rgba(255,255,255,.25); font: 600 clamp(1.2rem, 2vw, 2rem) var(--serif); text-align: center; }
.art-core span { display: block; font: .58rem ui-sans-serif, system-ui; letter-spacing: .2em; opacity: .65; margin-top: .35rem; }
.art-orbit { position: absolute; border: 1px solid rgba(255,255,255,.23); border-radius: 50%; }
.art-orbit-a { inset: 12%; }
.art-orbit-b { inset: 23%; }
.art-point { position: absolute; border-radius: 50%; box-shadow: 0 0 0 8px rgba(255,255,255,.08); }
.art-point-a { width: 22px; height: 22px; background: var(--gold); left: 8%; top: 46%; }
.art-point-b { width: 16px; height: 16px; background: var(--green-light); right: 21%; top: 16%; }
.art-point-c { width: 12px; height: 12px; background: white; right: 15%; bottom: 25%; }
/* Projetos: dimensões, bordas, título e espaçamento originais. A grade aceita
 * quantidade livre; cada cartão conserva sua própria cor ao mudar de ordem. */
.projects-section { padding: clamp(4rem, 8vw, 8rem) clamp(1.25rem, 6vw, 6rem); background: rgba(255,253,248,.9); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 3rem; }
.section-heading h2, .about-section h2 { margin-bottom: 0; font-size: clamp(2.5rem, 5vw, 4.8rem); line-height: 1; letter-spacing: -.035em; }
.section-intro { color: var(--muted); max-width: 340px; line-height: 1.6; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.project-card { --accent: var(--blue); --accent-line: var(--blue); --accent-soft: #dceaf0; position: relative; min-height: 530px; padding: clamp(1.5rem, 3vw, 2.7rem); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; overflow: hidden; transition: background .25s, transform .25s, box-shadow .25s; }
.project-card::before { content: ''; position: absolute; inset: 0 0 auto; height: 4px; background: var(--accent-line); }
.accent-gold { --accent: #77550c; --accent-line: var(--gold); --accent-soft: #f3e6bd; }
.accent-green { --accent: #3c7657; --accent-line: var(--green); --accent-soft: #dcebe3; }
.project-card:hover { background: #faf7f0; transform: translateY(-4px); box-shadow: 0 18px 45px rgba(16,47,70,.08); }
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.project-number { font: italic 1.05rem var(--serif); color: var(--muted); }
.status { padding: .4rem .65rem; border-radius: 99px; font-size: .65rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 800; text-align: center; }
.status-available { background: #d9eade; color: #285d40; }
.status-internal { background: #dfeaf0; color: #244f67; }
.status-soon { background: #f6e9bf; color: #75530a; }
.status-development { background: #e2ece5; color: #386249; }
/* Formatos históricos acompanham o símbolo, e não IDs ou nth-child; novos itens
 * usam o formato básico e a cor configurada. O span compensa a rotação do @. */
.project-symbol { width: 82px; height: 82px; flex-shrink: 0; display: grid; place-items: center; margin: 4rem 0 2rem; border-radius: 24px; font: 500 2rem var(--serif); background: var(--accent-soft); color: var(--accent); }
.project-symbol[data-symbol="@"] { transform: rotate(-4deg); }
.project-symbol[data-symbol="@"] span { transform: rotate(4deg); }
.project-symbol[data-symbol="✦"] { border-radius: 50% 50% 50% 10%; }
.project-symbol[data-symbol="∞"] { border-radius: 50%; }
.project-symbol[data-symbol="✺"] { border-radius: 50% 12% 50% 50%; }
.project-image { width: 100%; height: 145px; margin: 2.25rem 0 1.5rem; object-fit: cover; border-radius: 10px; }
.category { margin: 0 0 .55rem; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 750; }
.project-card h3 { margin-bottom: 1rem; font-size: clamp(1.7rem, 2.6vw, 2.5rem); line-height: 1.08; overflow-wrap: break-word; }
.project-description { margin: 1rem 0; color: var(--muted); line-height: 1.65; }
.project-action, .project-soon { margin-top: auto; padding-top: 2rem; border-top: 1px solid var(--line); font-weight: 750; display: flex; justify-content: space-between; }
.project-action { flex-direction: row-reverse; }
.project-action:hover { color: var(--blue); padding-left: .35rem; }
/* O aviso sem link usa parágrafo sem margem inferior para alinhar todas as ações. */
.project-soon { color: var(--muted); margin-bottom: 0; }
/* Todo HTML rico já foi sanitizado no domínio. Regras comuns atendem textos,
 * imagens substitutas e blocos extras, mantendo listas/links legíveis. */
.rich-copy { overflow-wrap: anywhere; }
.rich-copy > :first-child { margin-top: 0; }
.rich-copy > :last-child { margin-bottom: 0; }
.rich-copy h2, .rich-copy h3 { font-size: 1.5em; line-height: 1.2; margin: 1.4em 0 .6em; }
.rich-copy a { text-decoration-thickness: 1px; text-underline-offset: 4px; }
.rich-copy ul, .rich-copy ol { padding-left: 1.4em; }
/* Apresentação: gradiente, grade 1.25/.75, princípios e anéis de fundo da origem.
 * O texto direito preserva o alinhamento original após o sobretítulo. */
.about-section { position: relative; padding: clamp(5rem, 10vw, 10rem) clamp(1.25rem, 8vw, 8rem); background: linear-gradient(120deg, var(--ink) 0%, #163f4f 55%, #315f49 100%); color: #e1ebe7; overflow: hidden; }
.about-section::after { content: ''; position: absolute; width: 280px; height: 280px; right: -90px; bottom: -140px; border: 1px solid rgba(228,179,61,.36); border-radius: 50%; box-shadow: 0 0 0 45px rgba(228,179,61,.04), 0 0 0 90px rgba(228,179,61,.03); pointer-events: none; }
.about-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(3rem, 8vw, 8rem); align-items: start; }
.about-section .eyebrow { color: #d9bd72; }
.about-section h2 { color: var(--paper); }
.about-details { padding-top: 1.9rem; }
.about-copy { font-size: 1.05rem; line-height: 1.75; }
.principles { display: flex; flex-wrap: wrap; gap: .6rem; margin: 2rem 0 0; list-style: none; padding: 0; }
.principles li { border: 1px solid rgba(228,179,61,.48); color: #f4e7bf; border-radius: 99px; padding: .5rem .75rem; font-size: .75rem; }
/* Seções extras/contato são capacidades novas do painel e adotam os mesmos
 * recuos e tokens; sua edição/visibilidade permanece a cargo do repositório. */
.custom-section { padding: clamp(4rem, 8vw, 8rem) clamp(1.25rem, 8vw, 8rem); border-bottom: 1px solid var(--line); }
.custom-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(3rem, 8vw, 8rem); line-height: 1.75; }
.custom-layout h2 { font-size: clamp(2.5rem, 5vw, 4.8rem); line-height: 1; }
.theme-light { background: var(--canvas); }
.theme-dark { background: var(--ink); color: var(--paper); }
.theme-dark h2, .theme-dark h3 { color: var(--paper); }
.theme-dark :focus-visible, .about-section :focus-visible { outline-color: var(--gold); }
.contact-section { padding: clamp(4rem, 8vw, 8rem) clamp(1.25rem, 8vw, 8rem); }
.contact-section h2 { font-size: clamp(2.5rem, 5vw, 4.8rem); line-height: 1; max-width: 840px; margin-bottom: 1.5rem; }
.contact-copy { color: var(--muted); max-width: 640px; font-size: 1.05rem; line-height: 1.75; margin-bottom: 1.6rem; }
.contact-action { font-size: clamp(1rem, 2vw, 1.5rem); flex-direction: row-reverse; border-bottom: 1px solid var(--ink); padding-bottom: .6rem; overflow-wrap: anywhere; }
/* Rodapé mantém a marca histórica e a faixa verde; o acesso novo ao painel
 * ocupa uma quarta célula, sem alterar a identidade da página pública. */
.site-footer { padding: 2rem clamp(1.25rem, 5vw, 5rem); display: grid; grid-template-columns: 1fr auto 1fr auto; align-items: center; gap: 2rem; color: var(--muted); background: #f7f3ea; border-top: 4px solid var(--green); font-size: .78rem; }
.site-footer .brand { justify-self: start; }
.site-footer > p:last-of-type { justify-self: end; }
.site-footer > a:last-child { text-decoration: none; }
/* A faixa de prévia é exclusiva da sessão autenticada e não muda o público. */
.preview-banner { padding: .75rem 2rem; background: #fff0bc; display: flex; justify-content: center; align-items: center; gap: 2rem; font-size: .8rem; }
.preview-action { border-bottom: 1px solid var(--ink); }
/* Mantém os pontos de quebra originais (850/580px). Navegação inteira continua
 * disponível no celular, com recuos menores em telas estreitas. */
@media (max-width: 850px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: auto; }
  .hero-art { max-width: 430px; justify-self: center; }
  .project-grid { grid-template-columns: minmax(0, 1fr); }
  .project-card { min-height: 450px; }
  .about-layout, .custom-layout { grid-template-columns: minmax(0, 1fr); }
  .about-details { padding-top: 0; }
  .section-heading { align-items: start; flex-direction: column; }
  .site-footer { grid-template-columns: 1fr auto; }
  .site-footer > p:last-of-type { justify-self: start; }
}
@media (max-width: 580px) {
  .site-header { min-height: 72px; }
  .site-header nav { gap: .75rem; }
  .site-header nav a { font-size: .75rem; }
  .contact-link { padding: .55rem .75rem; }
  h1 { font-size: clamp(3.2rem, 17vw, 5rem); }
  .hero { padding-top: 4rem; }
  .preview-banner { flex-wrap: wrap; gap: .6rem; padding: .75rem 1.25rem; }
}
@media (max-width: 380px) {
  .site-header { padding-inline: 1rem; gap: .5rem; }
  .site-header nav { gap: .5rem; }
  .brand-word { font-size: 1rem; }
  .contact-link { padding: .5rem; }
}
/* Preferência de movimento é respeitada na navegação e nos cartões. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
