/* Matheus Santos — identidade cósmica, estrutura editorial e conteúdo no fluxo. */
:root {
  color-scheme: dark;
  --void: #010208;
  --deep: #030610;
  --space: #060d1a;
  --panel: rgba(7, 13, 26, .86);
  --text: #f0ece1;
  --muted: #a3adbe;
  --gold: #c4a84a;
  --gold2: #e8d070;
  --blue: #5dc9e8;
  --blue2: #90dff5;
  --violet: #7b76ff;
  --line: rgba(255, 255, 255, .12);
  --lineG: rgba(196, 168, 74, .32);
  --serif: 'Cinzel', Georgia, serif;
  --label: 'Rajdhani', ui-sans-serif, sans-serif;
  --sans: 'DM Sans', ui-sans-serif, system-ui, sans-serif;
  --radius: 24px;
  --gutter: clamp(20px, 4.5vw, 72px);
  --section-space: clamp(88px, 9vw, 144px);
  --header-height: 80px;
}
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 20px); }
body { background: var(--void); color: var(--text); font: 400 1rem/1.7 var(--sans); }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; cursor: pointer; border: 0; background: none; }
img { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }
button, a { -webkit-tap-highlight-color: rgba(93, 201, 232, .2); }
[hidden] { display: none !important; }
::selection { background: var(--gold); color: var(--deep); }
:focus-visible { outline: 2px solid var(--blue2); outline-offset: 5px; }
[tabindex='-1']:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 300; top: 12px; left: 12px; padding: 12px 20px; background: var(--gold2); color: var(--deep); border-radius: 8px; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.container { width: min(100% - var(--gutter) * 2, 1440px); margin-inline: auto; }
main, footer { position: relative; z-index: 1; }
.gold { color: var(--gold2); }

/* A decoração tem seu próprio recorte; conteúdo e títulos nunca são mascarados. */
.cosmic-background { position: fixed; inset: 0; overflow: clip; pointer-events: none; z-index: 0; background: radial-gradient(ellipse at 20% 4%, #0b1a25 0%, transparent 48%), var(--void); }
#bg-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .88; }
.nebula { position: absolute; border-radius: 50%; width: 90vw; height: 90vw; pointer-events: none; }
.neb1 { left: -24%; top: -38%; background: radial-gradient(circle, rgba(93, 201, 232, .13), transparent 65%); }
.neb2 { right: -32%; bottom: -46%; background: radial-gradient(circle, rgba(123, 118, 255, .12), transparent 65%); }
#scroll-prog { position: fixed; z-index: 210; top: 0; left: 0; width: 100%; height: 2px; transform: scaleX(0); transform-origin: left; pointer-events: none; background: linear-gradient(90deg, var(--blue), var(--gold)); }
#back-top { position: fixed; z-index: 90; right: 18px; bottom: 18px; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--lineG); background: #0c1320; border-radius: 50%; color: var(--gold2); font-size: 1.25rem; }

/* Header permanece no fluxo; as âncoras respeitam sua altura. */
#header { position: sticky; top: 0; z-index: 100; background: rgba(3, 6, 16, .94); border-bottom: 1px solid var(--line); }
.header-inner { width: min(100% - var(--gutter) * 2, 1440px); min-height: var(--header-height); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; flex-direction: column; justify-content: center; flex: 0 0 auto; min-height: 44px; line-height: 1.5; }
.brand-n { font: 700 .92rem/1.5 var(--label); text-transform: uppercase; letter-spacing: .2em; }
.brand-s { font: 600 .72rem/1.5 var(--label); text-transform: uppercase; letter-spacing: .21em; color: var(--gold); }
#nav { display: flex; align-items: center; gap: clamp(4px, .7vw, 12px); }
#nav a { min-height: 44px; display: inline-flex; align-items: center; padding: 8px 9px; color: #c3c9d2; font: 600 .81rem/1.3 var(--label); letter-spacing: .09em; text-transform: uppercase; transition: color .2s, background .2s; }
#nav a:hover, #nav a[aria-current='location'] { color: var(--gold2); }
#nav .nav-cta { padding: 12px 18px; margin-left: 8px; gap: 12px; border: 1px solid var(--lineG); border-radius: 99px; background: rgba(196, 168, 74, .1); color: var(--gold2); }
#nav .nav-cta:hover { background: rgba(196, 168, 74, .2); }
#menu-tog { display: none; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 99px; font: 700 .85rem var(--label); letter-spacing: .08em; text-transform: uppercase; }

/* Hero: cada palavra é texto intacto; cqi mede a coluna, não a janela. */
.hero { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .9fr); gap: 0 clamp(28px, 4.5vw, 72px); align-items: center; padding-block: clamp(64px, 7vw, 112px) 0; }
.hero-content { min-width: 0; container-type: inline-size; }
.hero-topline, .kicker { font: 700 .78rem/1.6 var(--label); letter-spacing: .15em; text-transform: uppercase; color: var(--gold); }
.hero-topline { color: #b1c1cd; margin-bottom: 22px; }
.hero-topline span { color: var(--gold); padding-inline: 3px; }
.hero-h1 { font: 900 clamp(2.5rem, 8vw, 9rem)/.98 var(--serif); letter-spacing: -.025em; margin-bottom: 24px; text-transform: uppercase; }
@supports (font-size: 1cqi) { .hero-h1 { font-size: clamp(2.5rem, 16.8cqi, 9rem); } }
.hero-h1 .hw { display: block; white-space: nowrap; word-break: normal; overflow-wrap: normal; }
.hero-role { font: 600 clamp(.82rem, 1.15vw, 1rem)/1.5 var(--label); letter-spacing: .075em; text-transform: uppercase; color: var(--gold2); margin-bottom: 24px; }
.hero-intro { font-size: clamp(1.18rem, 1.6vw, 1.5rem); line-height: 1.5; max-width: 30em; margin-bottom: 14px; text-wrap: pretty; }
.hero-desc { color: var(--muted); max-width: 40em; font-size: 1rem; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-block: 32px 26px; }
.btn-primary, .btn-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 48px; padding: 13px 22px; border: 1px solid; border-radius: 99px; font: 700 .87rem/1.4 var(--label); letter-spacing: .1em; text-transform: uppercase; transition: transform .2s, background .2s, border-color .2s; }
.btn-primary { border-color: var(--lineG); background: linear-gradient(100deg, rgba(93, 201, 232, .18), rgba(196, 168, 74, .18)); color: var(--text); }
.btn-ghost { border-color: var(--line); color: #c8cfda; background: rgba(255, 255, 255, .02); }
.btn-primary:hover, .btn-ghost:hover { transform: translateY(-2px); background-color: rgba(196, 168, 74, .12); border-color: var(--gold); }
.avail-badge { display: flex; align-items: center; gap: 9px; font: 600 .78rem/1.5 var(--label); text-transform: uppercase; letter-spacing: .06em; color: #b2c5bf; }
.avail-badge i { flex: 0 0 6px; height: 6px; border-radius: 50%; background: #82c8aa; }

/* Painel e planeta preservados, com dimensões relativas e dados descritivos. */
.hero-right { min-width: 0; position: relative; padding: 22px; margin-top: 44px; border: 1px solid #9baac91c; border-radius: 30px; background: linear-gradient(145deg, rgba(14, 22, 40, .6), rgba(5, 8, 16, .66)); box-shadow: 0 32px 90px rgba(0, 0, 0, .24); }
.hero-right::before { content: ''; position: absolute; inset: 10px; border: 1px solid rgba(93, 201, 232, .08); border-radius: 23px; pointer-events: none; }
.panel-bar { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .025); border-radius: 12px; }
.panel-dots { display: flex; gap: 6px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.dot:nth-child(2) { background: var(--blue); opacity: .65; }
.dot:nth-child(3) { background: #596372; }
.panel-url { font: 500 .8rem/1.5 var(--label); letter-spacing: .04em; color: var(--muted); }
.planet-scene { position: relative; height: 300px; display: grid; place-items: center; pointer-events: none; isolation: isolate; }
.planet-glow-bg { position: absolute; width: 90%; aspect-ratio: 1; max-width: 250px; border-radius: 50%; background: radial-gradient(circle, rgba(93, 201, 232, .16), transparent 65%); }
.planet { width: 174px; aspect-ratio: 1; border-radius: 50%; z-index: 2; background: radial-gradient(circle at 38% 32%, rgba(100, 170, 220, .4), transparent 50%), radial-gradient(circle at 30% 40%, rgba(30, 70, 130, .7), #050d1f 55%, #020710); box-shadow: inset -22px -16px 50px #000b, inset 12px 8px 40px #5dc9e81f, 0 0 65px #5dc9e829; }
.planet::before { content: ''; display: block; width: 100%; height: 100%; border-radius: inherit; background: radial-gradient(circle at 28% 28%, #ffffff21, transparent 42%); }
.ring { position: absolute; top: 50%; left: 50%; border-radius: 50%; border: 1px solid; pointer-events: none; }
.ring-1 { width: 71%; height: 68px; border-color: rgba(196, 168, 74, .45); transform: translate(-50%, -50%) rotate(-10deg); }
.ring-2 { width: 86%; height: 85px; border-color: rgba(93, 201, 232, .24); transform: translate(-50%, -50%) rotate(10deg); }
.ring-3 { width: 97%; height: 105px; border-color: rgba(123, 118, 255, .17); transform: translate(-50%, -50%) rotate(-12deg); }
.moon-orbit { position: absolute; top: 50%; left: 50%; width: 70%; height: 70%; max-width: 235px; max-height: 235px; transform: translate(-50%, -50%); border-radius: 50%; animation: orbit 36s linear infinite; z-index: 3; }
#moon { position: absolute; top: 50%; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--gold2); box-shadow: 0 0 16px #c4a84a77; }
.orbital-caption { position: absolute; bottom: 10px; font: 500 .69rem/1.4 var(--label); text-transform: uppercase; letter-spacing: .22em; color: #a3adbe; }
.sys-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px; }
.sys-item { padding: 18px 0; border-top: 1px solid var(--line); }
.sys-label { font: 700 .7rem/1.5 var(--label); letter-spacing: .07em; text-transform: uppercase; color: var(--blue2); margin-bottom: 5px; }
.sys-item p { font-size: .84rem; line-height: 1.55; color: #c2cad6; }
.panel-foot { display: flex; justify-content: space-between; padding: 15px 4px 0; color: var(--gold); font: 600 .72rem var(--label); text-transform: uppercase; letter-spacing: .15em; }

/* Ritmo compartilhado, sem alturas de seção artificiais. */
.section { position: relative; padding-block: var(--section-space); }
.section-compact { padding-block: clamp(64px, 6vw, 88px); border-top: 1px solid var(--line); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); align-items: end; gap: 48px; margin-bottom: 56px; }
.sec-head-inner { min-width: 0; }
.kicker { margin-bottom: 22px; }
.sec-h2 { font: 700 clamp(1.65rem, 3.4vw, 3.7rem)/1.12 var(--serif); letter-spacing: -.025em; text-wrap: balance; }
.sec-desc { color: var(--muted); font-size: .96rem; line-height: 1.8; max-width: 36em; }
.text-link { display: inline-flex; align-items: center; gap: 18px; min-height: 44px; font: 700 .87rem/1.5 var(--label); text-transform: uppercase; letter-spacing: .09em; color: var(--gold2); }
.text-link:hover { color: var(--blue2); text-decoration: underline; text-underline-offset: 5px; }
.section-tail { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 32px; margin-top: 48px; padding-top: 20px; color: var(--muted); }

/* Projetos: previews reais e informações sempre no fluxo do card. */
.project-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-bottom: 40px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-btn { min-height: 44px; padding: 10px 18px; border: 1px solid var(--line); border-radius: 99px; font: 700 .82rem/1.4 var(--label); letter-spacing: .08em; text-transform: uppercase; color: #c0c9d4; }
.filter-btn:hover { border-color: var(--gold); }
.filter-btn[aria-pressed='true'] { background: var(--gold2); border-color: var(--gold2); color: var(--deep); }
.result-count { font: 500 .85rem var(--label); color: var(--muted); }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.proj-card { min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(255, 255, 255, .035), transparent), var(--panel); transition: border-color .2s, transform .2s; }
.proj-card:hover { border-color: var(--lineG); transform: translateY(-3px); }
.project-preview { position: relative; overflow: clip; border-radius: 23px 23px 0 0; border-bottom: 1px solid var(--line); background: var(--space); }
.project-preview img { width: 100%; aspect-ratio: 1.78; object-fit: cover; object-position: top; transition: transform .5s; }
.project-featured:hover .project-preview img { transform: scale(1.02); }
.preview-caption { position: absolute; bottom: 12px; left: 14px; right: 14px; width: fit-content; padding: 5px 10px; border: 1px solid #ffffff26; border-radius: 99px; font: 600 .73rem/1.5 var(--label); background: #030610e8; color: #d5dbe4; }
.project-content { padding: clamp(22px, 2.6vw, 34px); display: flex; flex-direction: column; flex: 1; min-width: 0; }
.project-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.proj-type { color: var(--gold2); font: 700 .78rem/1.5 var(--label); letter-spacing: .08em; text-transform: uppercase; }
.status { padding: 4px 9px; border: 1px solid var(--line); border-radius: 99px; font: 500 .78rem/1.4 var(--label); color: #b6c0cd; }
.status-live { color: #a7d5c1; border-color: #82c8aa40; }
.project-index { display: flex; justify-content: space-between; color: #8e9cb1; font: 500 .9rem var(--label); padding: 0 0 18px; }
.project-index span { font-size: 1.5rem; color: var(--blue); }
.proj-card h3 { font: 700 clamp(1.5rem, 2.1vw, 2rem)/1.2 var(--serif); letter-spacing: -.02em; margin-bottom: 14px; }
.project-content > p:not(.project-stage):not(.project-index) { color: var(--muted); font-size: .96rem; line-height: 1.75; }
.project-details { display: grid; gap: 12px; margin-block: 22px; }
.project-details dt { color: #cdd6e1; font: 700 .74rem/1.5 var(--label); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 3px; }
.project-details dd { color: var(--muted); font-size: .9rem; line-height: 1.7; }
.case-details { margin-block: 10px 18px; }
.case-details summary { min-height: 44px; padding-block: 10px; cursor: pointer; color: #cdd6e1; font: 600 .85rem/1.7 var(--label); letter-spacing: .03em; }
.case-details summary::marker { color: var(--gold); }
.case-details summary:hover { color: var(--gold2); }
.case-details .project-details { margin-block: 10px; }
.proj-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; padding-top: 4px; }
.proj-tags li { padding: 5px 10px; border: 1px solid var(--line); border-radius: 99px; color: #c0cad6; font: 600 .73rem/1.5 var(--label); letter-spacing: .045em; text-transform: uppercase; }
.project-content > .text-link, .project-stage { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 16px; }
.project-stage { color: var(--muted); font: 600 .8rem/1.5 var(--label); text-transform: uppercase; letter-spacing: .08em; min-height: 44px; }

/* Serviços, processo e apresentação. */
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; }
.service-card { padding: clamp(30px, 3.5vw, 48px); border: 1px solid var(--line); border-radius: var(--radius); background: rgba(8, 15, 28, .65); display: flex; flex-direction: column; }
.service-icon { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--lineG); border-radius: 12px; color: var(--gold); font: 600 1rem var(--label); margin-bottom: 18px; }
.service-card h3 { font: 700 clamp(1.3rem, 2vw, 1.8rem)/1.25 var(--serif); margin-bottom: 14px; }
.service-card p { color: var(--muted); font-size: .95rem; line-height: 1.75; margin-bottom: 18px; }
.service-card .service-lead { color: var(--text); font-weight: 500; margin-bottom: 10px; }
.service-cta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 32px; margin-top: 48px; padding: 32px 0 0; border-top: 1px solid var(--lineG); }
.service-cta > div { flex: 1 1 380px; }
.service-cta h3 { font-size: 1.08rem; line-height: 1.5; font-weight: 500; margin-bottom: 6px; }
.service-cta p { color: var(--muted); font-size: .94rem; max-width: 44em; }
.process-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.process-grid li { position: relative; padding-top: 20px; border-top: 1px solid var(--lineG); }
.step-number { color: var(--gold); font: 600 .82rem var(--label); }
.process-grid h3 { font: 700 1.12rem/1.5 var(--serif); margin-block: 12px 8px; }
.process-grid p { font-size: .9rem; color: var(--muted); line-height: 1.7; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 6vw, 90px); }
.about-signature { font: 700 1.2rem/1.5 var(--serif); margin-top: 32px; color: var(--gold2); }
.about-signature span { display: block; margin-top: 8px; color: var(--muted); font: 600 .76rem var(--label); letter-spacing: .1em; text-transform: uppercase; }
.about-copy { max-width: 55ch; }
.about-copy p { color: var(--muted); margin-bottom: 24px; line-height: 1.95; }
.lead, .about-copy .lead { color: var(--text); font-size: 1.12rem; line-height: 1.65; }
.principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: 60px; padding-top: 36px; border-top: 1px solid var(--line); }
.principles h3 { font: 700 .87rem/1.5 var(--label); text-transform: uppercase; letter-spacing: .1em; color: var(--gold2); margin-bottom: 8px; }
.principles p { color: var(--muted); font-size: .89rem; line-height: 1.65; }
.testi-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; }
.testi-card { padding: 12px 0; }
.testi-summary { font: 700 clamp(1.25rem, 1.9vw, 1.7rem)/1.6 var(--serif); margin-bottom: 28px; }
.testi-author { display: flex; align-items: center; gap: 14px; }
.testi-avatar { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--lineG); border-radius: 50%; color: var(--gold2); font: 700 .85rem var(--serif); flex-shrink: 0; }
.testi-author h3 { font-size: .95rem; font-weight: 500; }
.testi-author p { font-size: .82rem; color: var(--muted); }

/* Nautilos tem presença própria; títulos medem a coluna disponível. */
.nautilos-wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px 80px; padding-block: 32px; }
.studio-copy { min-width: 0; container-type: inline-size; }
.studio-copy h2 { font: 900 clamp(2rem, 6vw, 6.5rem)/1.05 var(--serif); margin-block: 28px 36px; letter-spacing: -.03em; }
@supports (font-size: 1cqi) { .studio-copy h2 { font-size: clamp(2rem, 16cqi, 6.5rem); } }
.studio-copy h2 > span { display: block; white-space: nowrap; }
.studio-copy > p:not(.kicker):not(.lead) { color: var(--muted); font-size: .95rem; margin-top: 22px; line-height: 1.9; max-width: 54ch; }
.studio-panel { min-width: 0; }
.studio-symbol { width: min(100%, 520px); height: 250px; position: relative; display: grid; place-items: center; margin: 0 auto 80px; pointer-events: none; }
.studio-symbol i { position: absolute; width: 64%; height: 100px; border: 1px solid var(--lineG); border-radius: 50%; transform: rotate(-25deg); }
.studio-symbol i:nth-child(2) { width: 80%; height: 130px; border-color: #5dc9e840; transform: rotate(25deg); }
.studio-symbol i:nth-child(3) { width: 96%; height: 160px; border-color: #7b76ff33; transform: rotate(-12deg); }
.studio-symbol span { font-size: 3rem; color: var(--gold2); }
.studio-pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.studio-stat { padding: 24px 0 0; border-top: 1px solid var(--line); }
.studio-stat h3 { font: 700 1rem/1.4 var(--label); color: var(--text); margin-bottom: 8px; }
.studio-stat p { color: var(--muted); font-size: .86rem; line-height: 1.7; }
.studio-projects { grid-column: 1/-1; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; border-top: 1px solid var(--lineG); padding-top: 32px; }
.studio-projects > p { color: var(--gold); font: 600 .8rem var(--label); letter-spacing: .1em; text-transform: uppercase; }
.studio-projects > div { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.studio-projects a { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-size: .88rem; }
.studio-projects a:hover { color: var(--gold2); }

/* Competências, formação e contato. */
.skills-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.skill-card { min-width: 0; padding: 8px 24px 0 0; border-right: 1px solid var(--line); }
.skill-card:last-child { border-right: 0; }
.skill-card h3 { font: 700 1.07rem/1.4 var(--label); margin-bottom: 16px; color: var(--blue2); }
.skill-card li { color: var(--muted); font-size: .87rem; line-height: 1.7; margin-bottom: 8px; }
.exploration { border-color: var(--lineG); }
.exploration h3 { color: var(--gold2); }
.anchor-alias { display: block; height: 0; }
.course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.course-card { display: flex; flex-direction: column; min-width: 0; padding: 24px 0 0; border-top: 1px solid var(--line); }
.course-label { color: var(--gold2); font: 700 .78rem/1.5 var(--label); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 16px; }
.course-card h3 { font: 700 clamp(1.2rem, 1.7vw, 1.6rem)/1.3 var(--serif); margin-bottom: 12px; }
.course-card > p:not(.course-label) { color: var(--muted); font-size: .92rem; margin-bottom: 20px; }
.course-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: space-between; color: var(--muted); font: 600 .8rem/1.5 var(--label); margin-top: auto; padding-top: 8px; }
.course-meta > span { color: var(--text); }
.course-card .text-link { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 16px; }
.contact-wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; gap: 64px 100px; padding-block: 40px 72px; }
.contact-heading { grid-column: 1/-1; }
.contact-message { max-width: 54ch; }
.contact-wrap > div { min-width: 0; }
.contact-wrap .sec-h2 { font-size: clamp(2rem, 6vw, 6.5rem); margin-bottom: 0; max-width: 20ch; }
.contact-wrap p:not(.kicker):not(.avail-badge) { color: var(--muted); font-size: .96rem; margin-bottom: 14px; }
.contact-wrap .btn-primary { margin-top: 32px; min-height: 56px; padding-inline: 32px; }
.contact-channels { border-left: 1px solid var(--line); padding-left: clamp(20px, 3vw, 40px); }
.contact-channels h3 { font: 700 1.4rem/1.4 var(--serif); margin-top: 26px; margin-bottom: 12px; }
.email-address { display: inline-block; color: var(--blue2); font-size: .91rem; overflow-wrap: anywhere; padding-block: 8px; }
.contact-links { display: grid; margin-top: 20px; }
.contact-links a { display: flex; align-items: center; justify-content: space-between; min-height: 52px; border-top: 1px solid var(--line); font: 600 .9rem var(--label); letter-spacing: .06em; }
.contact-links a span:last-child { color: var(--gold); }
.contact-links a:hover { color: var(--blue2); }
footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; padding-block: 30px 40px; border-top: 1px solid var(--line); }
.footer-brand { font: 700 .95rem/1.5 var(--label); letter-spacing: .09em; text-transform: uppercase; }
.footer-brand > span { color: var(--muted); margin-left: 6px; font-size: .78rem; }
.footer-role { color: var(--muted); font-size: .8rem; margin-top: 6px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.footer-links a { min-height: 44px; display: inline-flex; align-items: center; color: #b7c0ce; font: 600 .81rem var(--label); }
.footer-links a:hover { color: var(--gold2); }

/* Quatro momentos amplos, intercalados com seções editoriais mais silenciosas. */
.hero-explore { grid-column: 1/-1; display: flex; align-items: center; justify-content: center; gap: 18px; width: fit-content; min-height: 48px; margin: 80px auto 0; padding: 12px; font: 600 .76rem/1.5 var(--label); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.scroll-thread { width: 1px; height: 32px; background: linear-gradient(transparent, var(--gold)); }
#portfolio .sec-head { grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); align-items: end; margin-bottom: 64px; }
#portfolio .sec-h2 { font-size: clamp(2rem, 4.1vw, 4.7rem); }
#portfolio .sec-desc { max-width: 35ch; justify-self: end; padding-bottom: 8px; }
.project-featured { grid-column: 1/-1; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); margin-bottom: 16px; }
.project-featured .project-preview { display: grid; align-content: center; padding: 24px; border: 0; border-right: 1px solid var(--line); border-radius: 23px 0 0 23px; background: radial-gradient(ellipse at 30% 15%, #5dc9e811, transparent 70%), #050913; }
.project-featured .project-preview img { aspect-ratio: auto; object-fit: contain; border-radius: 12px; box-shadow: 0 20px 40px #0005; }
.project-featured .preview-caption { bottom: 14px; left: 24px; }
.project-featured .project-content { padding: clamp(30px, 3.3vw, 48px); }
.project-featured h3 { font-size: clamp(1.7rem, 2.7vw, 2.8rem); }
.project-featured[data-featured='secondary'] { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
.project-featured[data-featured='secondary'] .project-preview { order: 2; border-right: 0; border-left: 1px solid var(--line); border-radius: 0 23px 23px 0; }
.proj-card:not(.project-featured) { border: 0; border-top: 1px solid var(--lineG); border-radius: 0; background: linear-gradient(180deg, #060d1a88, #060d1a22); }
.proj-card:not(.project-featured) .project-content { padding: 32px 28px; }
#servicos .sec-head { margin-bottom: 56px; }
#sobre .sec-h2 { font-size: clamp(2rem, 3.8vw, 4rem); }
.about-orbit { position: relative; display: grid; place-items: center; width: 160px; height: 140px; margin-top: 48px; color: var(--gold2); font: 700 1.5rem var(--serif); pointer-events: none; }
.about-orbit i { position: absolute; inset: 22px 0; border: 1px solid var(--lineG); border-radius: 50%; transform: rotate(-30deg); }
.about-orbit i:nth-child(2) { inset: 6px 16px; border-color: #5dc9e83d; transform: rotate(30deg); }
#nautilos, #contato, #sobre { isolation: isolate; }
#nautilos { padding-block: clamp(120px, 12vw, 184px); }
#depoimentos { border-top: 0; padding-bottom: 100px; }
.contact-channels { align-self: end; }

@keyframes orbit { to { transform: translate(-50%, -50%) rotate(360deg); } }
html.is-page-hidden *, html.is-page-hidden *::before, html.is-page-hidden *::after { animation-play-state: paused !important; }

@media (max-width: 1099px) {
  :root { --header-height: 72px; }
  html:not(.js) { scroll-padding-top: 20px; }
  html:not(.js) #header { position: static; }
  .header-inner { flex-wrap: wrap; gap: 0 18px; padding-block: 12px; }
  .brand { min-height: 48px; }
  #nav { width: 100%; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 12px; padding-top: 10px; }
  .js #menu-tog { display: inline-flex; }
  .js #nav { display: none; position: absolute; top: 100%; left: 0; right: 0; width: auto; margin: 0; padding: 16px var(--gutter) 22px; background: #050a15; border-bottom: 1px solid var(--line); max-height: calc(100dvh - 72px); overflow-y: auto; }
  .js #nav.open { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #nav a { padding: 12px; }
  #nav .nav-cta { margin: 8px 0 0; justify-content: center; grid-column: 1/-1; }
  .hero { gap: 0 28px; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
  .hero-right { padding: 16px; }
  .planet-scene { height: 250px; }
  .planet { width: 138px; }
  .hero-role { letter-spacing: .05em; }
  .sec-head { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px; }
  .process-grid { gap: 16px; }
  .process-grid h3 { font-size: 1rem; }
  .skills-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nautilos-wrap { gap: 40px; }
  .studio-pillars { gap: 20px; }
  .studio-symbol { height: 205px; }
  .project-grid { gap: 32px; }
  .project-featured .project-preview { padding: 16px; }
  .project-featured .project-content { padding: 28px; }
  .contact-wrap { gap: 48px; }
}
@media (max-width: 799px) {
  .hero { grid-template-columns: 1fr; padding-block: 52px 0; }
  .hero-content { max-width: 620px; }
  .hero-h1 { font-size: clamp(2.5rem, 14vw, 6.5rem); }
  @supports (font-size: 1cqi) { .hero-h1 { font-size: clamp(2.5rem, 16cqi, 6.5rem); } }
  .hero-topline { font-size: .76rem; margin-bottom: 18px; }
  .hero-right { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1fr); gap: 18px; margin-top: 48px; }
  .panel-bar { grid-column: 1/-1; }
  .planet-scene { height: auto; min-height: 175px; }
  .planet { width: 90px; }
  .orbital-caption { display: none; }
  .sys-item { padding: 14px 0; }
  .sys-item p { font-size: .8rem; }
  .panel-foot { display: none; }
  .sec-head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 40px; }
  .sec-h2 { font-size: clamp(1.6rem, 5.3vw, 2.9rem); }
  .sec-desc { max-width: 46em; }
  #portfolio .sec-head { grid-template-columns: 1fr; margin-bottom: 40px; }
  #portfolio .sec-h2 { font-size: clamp(2rem, 6vw, 3.5rem); }
  #portfolio .sec-desc { max-width: 46ch; justify-self: start; }
  .project-grid { gap: 32px; }
  .project-featured, .project-featured[data-featured='secondary'] { grid-template-columns: 1fr; }
  .project-featured .project-preview, .project-featured[data-featured='secondary'] .project-preview { order: 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 23px 23px 0 0; padding: 24px; }
  .project-featured .project-preview img { width: 100%; }
  .project-featured .preview-caption { bottom: 10px; }
  .project-featured .project-content { padding: 28px; }
  .proj-card:not(.project-featured) .project-content { padding: 28px 12px; }
  .project-content { padding: 22px; }
  .service-grid { gap: 28px; }
  .service-card { padding: 28px; }
  .service-cta { padding: 28px 0 0; }
  .process-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .about-grid { grid-template-columns: 1fr; gap: 44px; }
  .about-orbit { width: 120px; height: 100px; margin-top: 32px; }
  .about-signature { margin-top: 20px; }
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nautilos-wrap { grid-template-columns: 1fr; }
  .studio-copy { max-width: 600px; }
  .studio-copy h2 { font-size: clamp(2rem, 10vw, 4.5rem); }
  @supports (font-size: 1cqi) { .studio-copy h2 { font-size: clamp(2rem, 15cqi, 4.5rem); } }
  .studio-symbol { display: grid; height: 190px; max-width: 400px; margin-inline: auto; }
  .studio-pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .course-grid { grid-template-columns: 1fr; }
  .course-card { padding: 24px 0 0; }
  .contact-wrap { grid-template-columns: 1fr; }
  .contact-wrap .sec-h2 { font-size: clamp(2rem, 7vw, 4rem); }
  .contact-channels { border-left: 0; border-top: 1px solid var(--line); padding: 26px 0 0; }
  .email-address { font-size: 1rem; }
}
@media (max-width: 559px) {
  :root { --gutter: 22px; --section-space: 80px; }
  .brand-n { font-size: .85rem; letter-spacing: .13em; }
  .brand-s { font-size: .66rem; }
  .hero-topline { max-width: 26em; letter-spacing: .09em; }
  .hero-role { font-size: .86rem; margin-bottom: 18px; }
  .hero-intro { font-size: 1.15rem; }
  .hero-desc { font-size: .95rem; }
  .hero-actions { gap: 10px; }
  .btn-primary, .btn-ghost { padding-inline: 18px; font-size: .82rem; gap: 12px; }
  .hero-right { padding: 18px; gap: 18px; grid-template-columns: 1fr; }
  .planet-scene { display: grid; height: 170px; min-height: 170px; }
  .planet { width: 94px; }
  .sys-grid { grid-column: 1/-1; }
  .sys-label { font-size: .72rem; }
  .sys-item p { font-size: .83rem; }
  .section-compact { padding-block: 56px; }
  .sec-h2 br { display: none; }
  .project-grid, .service-grid, .testi-grid { grid-template-columns: 1fr; }
  .project-grid { gap: 36px; }
  .project-featured .project-preview, .project-featured[data-featured='secondary'] .project-preview { padding: 16px; }
  .project-featured .project-content { padding: 26px; }
  .project-content { padding: 24px; }
  .project-details { margin-block: 18px; }
  .project-index { padding-bottom: 12px; }
  .proj-card h3 { font-size: 1.55rem; }
  .filter-btn { padding-inline: 15px; }
  .process-grid { grid-template-columns: 1fr; gap: 0; }
  .process-grid li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 4px 14px; padding-block: 18px; border-color: var(--line); }
  .step-number { grid-row: 1/3; padding-top: 3px; }
  .process-grid h3 { margin: 0; font-size: 1.07rem; }
  .process-grid p { grid-column: 2; }
  .principles { gap: 28px; margin-top: 44px; }
  .testi-grid { gap: 32px; }
  .testi-card { padding: 12px 0; }
  .nautilos-wrap { padding: 0; gap: 40px; }
  #nautilos { padding-block: 100px; }
  .studio-copy .kicker { font-size: .72rem; letter-spacing: .07em; }
  .studio-pillars { grid-template-columns: 1fr; gap: 22px; }
  .studio-stat { padding: 22px 0 0; }
  .studio-projects > div { display: grid; width: 100%; }
  .studio-projects a { justify-content: space-between; }
  .skills-grid { grid-template-columns: 1fr; gap: 24px; }
  .skill-card { padding: 0 0 24px; border: 0; border-bottom: 1px solid var(--line); }
  .skill-card h3 { margin-bottom: 12px; }
  .skill-card ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; }
  .skill-card li { margin: 0; }
  .contact-wrap { padding: 24px 0 40px; gap: 40px; }
  .contact-wrap .sec-h2 br { display: none; }
  .email-address { font-size: .87rem; }
  footer { padding-bottom: 40px; }
  #back-top { position: static; flex-shrink: 0; margin-left: auto; }
}
@media (max-width: 359px) {
  .hero-actions > a { width: 100%; }
  .btn-primary, .btn-ghost { padding-inline: 15px; }
  .project-content, .service-card { padding: 24px; }
  .project-featured .project-content { padding: 24px; }
  .course-card { padding: 24px 0 0; }
  .project-meta { gap: 8px; }
  .principles, .skill-card ul { grid-template-columns: 1fr; }
  .contact-wrap .btn-primary { width: 100%; font-size: .76rem; gap: 8px; }
  .avail-badge { font-size: .71rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .cosmic-background, #header, #back-top, #scroll-prog, .filters, .hero-right { display: none !important; }
  body { background: #fff; color: #111; }
  :root { --text: #111; --muted: #333; --gold: #665000; --gold2: #665000; --blue2: #124e64; --panel: #fff; --line: #bbb; }
  .container { width: 100%; }
  .hero, .sec-head { display: block; }
  .section { padding-block: 24px; }
  .hero { padding-top: 0; }
  .proj-card, .service-card, .course-card, .nautilos-wrap, .contact-wrap { background: #fff; break-inside: avoid; }
}
