@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/spacegrotesk.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrainsmono.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #080d17;
  --surface: #121c2e;
  --text: #f1f5f9;
  --soft: #b3bfd2;
  --muted: #95a4bc;
  --blue: #3b82f6;
  --violet: #885cf6;
  --accent: #8ab8ff;
  --rule: #25324a;
  --display: "Space Grotesk", "Trebuchet MS", sans-serif;
  --body: Inter, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 1rem/1.65 var(--body); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; }
h2 { font-size: clamp(1.8rem, 3.3vw, 2.6rem); letter-spacing: -.045em; }
h3 { font-size: 1.33rem; letter-spacing: -.025em; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.wrap { width: min(72rem, calc(100% - 6rem)); margin: 0 auto; }
.skip { position: fixed; z-index: 10; top: .75rem; left: .75rem; padding: .6rem 1rem; background: var(--accent); color: var(--bg); transform: translateY(-150%); }
.skip:focus { transform: translateY(0); }

.site-header { border-bottom: 1px solid var(--rule); }
.header-inner, .footer-inner { min-height: 4.7rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.page-trail { display: flex; align-items: center; gap: .55rem; min-width: 0; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-family: var(--display); font-weight: 700; text-decoration: none; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border: 1px solid #45609e; border-radius: .62rem; background: linear-gradient(155deg, #243968, #2b204f); color: #e6ebff; font: 700 1rem/1 var(--display); letter-spacing: -.04em; }
.brand-caption { color: var(--text); font: 600 .95rem/1 var(--display); }
.page-divider { color: var(--muted); font: 400 .9rem/1 var(--mono); }
.current-page { color: var(--accent); font: 500 .9rem/1.3 var(--display); overflow-wrap: anywhere; }
.header-inner nav { flex-shrink: 0; }
nav, .footer-inner > div { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(.9rem, 3vw, 2.1rem); }
nav a, .footer-inner a { color: var(--soft); text-decoration: none; font-size: .93rem; }
nav a:hover, nav [aria-current], .footer-inner a:hover { color: var(--accent); }
.site-footer { border-top: 1px solid var(--rule); color: var(--soft); }
.footer-location { color: var(--muted); }

.eyebrow { color: var(--accent); font: 500 .82rem/1.5 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.standfirst { max-width: 36rem; color: var(--soft); font-size: clamp(1.08rem, 2vw, 1.31rem); line-height: 1.55; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3.15rem; border-radius: .45rem; padding: .65rem 1.2rem; font-weight: 700; text-decoration: none; transition: background .18s, border-color .18s; }
.primary { background: var(--blue); border: 1px solid var(--blue); color: var(--bg); }
.primary:hover { background: #639dff; border-color: #639dff; }
.secondary { border: 1px solid #3d4b60; background: #121c2e; }
.secondary:hover { border-color: var(--accent); }

.section { padding-block: 4.2rem; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: .9rem 1.7rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.text-link { color: var(--accent); text-underline-offset: .28em; font-weight: 650; }
.text-link:hover { color: #c6dcff; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.05rem; }
.card { position: relative; min-width: 0; overflow: hidden; border: 1px solid var(--rule); border-radius: .65rem; background: var(--surface); transition: border-color .18s, transform .18s; }
.card:hover, .card:focus-within { transform: translateY(-.22rem); border-color: var(--accent); }
.card-body { padding: 1.2rem; }
.card-body h3 { margin: .4rem 0 .6rem; }
.card-body h3 a { text-decoration: none; }
.card-body h3 a::after { content: ""; position: absolute; inset: 0; }
.card-body > p:not(.eyebrow), .specialties p, .contact-strip p, .contact-page p { color: var(--soft); }
.project-art { display: flex; position: relative; isolation: isolate; overflow: hidden; min-height: 10.4rem; align-items: end; padding: .85rem 1.15rem; background-color: var(--art-bg); color: var(--art-ink); }
.project-art::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .42; background: repeating-linear-gradient(0deg, transparent 0 16px, currentColor 16px 17px), repeating-linear-gradient(90deg, transparent 0 16px, currentColor 16px 17px); mask-image: linear-gradient(110deg, transparent 20%, #000 110%); }
.art-shape { position: absolute; z-index: -1; width: 45%; max-width: 21rem; aspect-ratio: 1; right: 10%; top: -16%; border: 1px solid currentColor; transform: rotate(-21deg) skew(9deg); border-radius: .9rem; background: linear-gradient(45deg, transparent, currentColor 230%); box-shadow: .65rem .65rem 0 -.15rem var(--art-bg), .65rem .65rem 0 -.08rem currentColor, 1.3rem 1.3rem 0 -.15rem var(--art-bg), 1.3rem 1.3rem 0 -.08rem currentColor; opacity: .8; }
.art-name { padding: .25rem .5rem; border-radius: .3rem; background: var(--art-bg); font: .82rem/1.4 var(--mono); }
.fipan { --art-bg: #222d48; --art-ink: #c0d0ff; }
.seven { --art-bg: #24305b; --art-ink: #abc9ff; }
.festival { --art-bg: #35245b; --art-ink: #e0c8ff; }
.dados { --art-bg: #242d45; --art-ink: #d2bbff; }
.tags { margin: 1rem 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: .38rem; }
.tags li { border: 1px solid #354359; border-radius: .3rem; padding: .18rem .48rem; color: #c1cde0; font: .78rem/1.45 var(--mono); }

.capabilities { background: #0e1626; border-block: 1px solid var(--rule); }
.profile-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; border-bottom: 1px solid var(--rule); }
.profile-summary p { max-width: 40ch; margin: .55rem 0 .65rem; color: var(--soft); }
.specialties { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.3rem; }
.specialties article { border-top: 1px solid var(--violet); padding-top: 1rem; }
.specialties p { margin-top: .54rem; }
.specialties .tools { color: var(--accent); font: .82rem/1.55 var(--mono); }
.contact-strip { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.contact-strip p { margin-top: .3rem; }
.contact-strip .actions, .contact-page .actions { margin-top: 0; }

.page-title { padding-top: clamp(3.8rem, 8vw, 7rem); padding-bottom: 1rem; }
.page-title h1 { max-width: 31ch; margin: .5rem 0 1rem; font-size: clamp(2.8rem, 7vw, 5.8rem); line-height: .98; letter-spacing: -.065em; overflow-wrap: break-word; }
.index-grid { padding-top: 1.45rem; }
.case { padding-top: 1.75rem; padding-bottom: 4rem; }
.case-art { min-height: clamp(12rem, 34vw, 20.5rem); border-radius: .7rem; }
.case-art .art-shape { top: -16%; right: 18%; }
.case-content { display: grid; grid-template-columns: 1fr minmax(12rem, 16rem); gap: clamp(1rem, 5vw, 4rem); margin-top: 2.25rem; }
.case-details section + section, .prose h2:not(:first-child) { margin-top: 1.6rem; }
.case-content h2, .prose h2 { font-size: 1.45rem; letter-spacing: -.025em; }
.case-content p, .prose p, .prose dd, .timeline ul { margin-top: .5rem; color: var(--soft); }
.case-content aside { border-top: 1px solid var(--violet); padding-top: 1rem; align-self: start; }
.readable { margin-inline: max(3rem, calc((100% - 72rem) / 2)); width: min(49rem, calc(100% - 6rem)); padding-top: 1.8rem; }
.timeline article { border-left: 1px solid #465e93; padding: .25rem 0 1.5rem 1.2rem; }
.timeline article + article { padding-top: 1rem; }
.timeline h2 { margin-top: .45rem; }
.timeline .role { margin-top: .45rem; font-weight: 700; }
.timeline ul { padding-left: 1.4rem; margin-bottom: 0; }
.timeline li + li { margin-top: .5rem; }
.prose dt { font-weight: 700; }
.prose dd { margin: .15rem 0 1rem; }
.contact-page { padding-top: 1.3rem; min-height: 18rem; }
.contact-page p { margin-top: 1.3rem; }

@media (max-width: 61rem) {
  .wrap { width: calc(100% - 3rem); }
  .readable { margin-inline: 1.5rem; max-width: 49rem; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 43rem) {
  .wrap { width: calc(100% - 2rem); }
  .readable { margin-inline: 1rem; }
  .header-inner { align-items: flex-start; flex-direction: column; gap: .75rem; padding-block: .8rem; }
  nav { gap: .5rem 1.05rem; }
  .section { padding-block: 2.6rem; }
  .specialties, .case-content, .profile-summary { grid-template-columns: 1fr; }
  .footer-inner { align-items: start; flex-direction: column; justify-content: center; padding-block: .9rem; gap: .25rem; }
}
@media (max-width: 33rem) {
  .project-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
.journal-entry{padding:1.6rem 0;border-top:1px solid var(--rule)}
.journal-entry h2{font-size:clamp(1.35rem,3vw,2rem);margin-top:.45rem}
.journal-entry a{color:var(--text);text-decoration:none}.journal-entry a:hover{color:var(--accent)}
.journal-text{max-width:47rem}.journal-text h1{font-size:clamp(2.4rem,6vw,4.4rem);margin:.7rem 0 1.5rem;letter-spacing:-.05em}
.journal-text>p:not(.eyebrow),.journal-intro p{color:var(--soft);margin:1rem 0;line-height:1.8}.journal-text .text-link{display:inline-block;margin-top:1rem}
@media(min-width:55.01rem){#projetos .project-grid>.card:nth-child(n){grid-column:span 2}#projetos .project-art{min-height:11rem}}
.social-profiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.85rem;margin:1.6rem 0}
.social-profiles a{display:grid;gap:.18rem;text-align:left;text-decoration:none;background:linear-gradient(120deg,#172941,#151c30);border:1px solid #436387;border-radius:12px;padding:1rem}
.social-profiles a:last-child{background:linear-gradient(120deg,#26213f,#181929);border-color:#595180}
.social-profiles a:hover,.social-profiles a:focus-visible{border-color:var(--accent)}
.social-profiles strong{font:700 1.2rem var(--display);color:var(--text)}
.social-profiles span{font-size:.88rem;color:var(--soft)}
@media(max-width:32rem){.social-profiles{grid-template-columns:1fr}}
