@font-face {
  font-family: "Instrument Serif";
  src: url("assets/fonts/instrument-serif/regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("assets/fonts/instrument-sans/regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
:root {
  --nav-size: 8px;
  --nav-type: 400 clamp(.75rem, .9vw, .875rem)/1.4 "Instrument Sans", Arial, sans-serif;
  color-scheme: dark;
  font-family: Arial, Helvetica, sans-serif;
  background: #000;
  color: #f5f3ec;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  grid-template-columns: minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100svh;
}
.site-header {
  z-index: 2;
  padding: clamp(.5rem, 1.3vh, 1rem) clamp(1rem, 3.5vw, 4.5rem);
}
.main-nav, .nav-links {
  display: flex;
  align-items: center;
}
.main-nav {
  justify-content: space-between;
  color: #fff;
  gap: clamp(1rem, 2.75vw, 3.25rem);
  font: var(--nav-type);
  font-size: var(--nav-size);
  text-transform: uppercase;
  letter-spacing: .035em;
}
.nav-links { gap: clamp(1rem, 2.75vw, 3.25rem); margin-left: auto; }
#language-switch { gap: .22em; }
html[lang="pt-BR"] #language-switch [lang="pt-BR"],
html[lang="en"] #language-switch [lang="en"] { text-decoration: underline; text-underline-offset: .32em; }
.main-nav :is(a, button) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-decoration: none;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  white-space: nowrap;
  cursor: pointer;
}
.main-nav :is(a, button:enabled):hover { text-decoration: underline; text-underline-offset: .32em; }
.main-nav button:disabled { color: #858585; cursor: default; }
.main-nav a[aria-current="page"] { color: white; text-decoration: underline; text-underline-offset: .32em; }
.main-nav :focus-visible, .close-about:focus-visible { outline: 2px solid #d9fa65; outline-offset: 3px; }
.hero {
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  min-height: 20rem;
}
#hero-gallery { position: absolute; inset: 0; z-index: 0; }
.invitation { position: relative; z-index: 1; text-align: center; padding: 0 1rem; pointer-events: none; }
.invitation .project-link { pointer-events: auto; }
h1 {
  margin: 0;
  font-size: clamp(2rem, min(3.7vw, 6.2vh), 5.4rem);
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.05;
}
.project-link {
  --lime: #d9fa65;
  --button-height: 2.875rem;
  display: inline-flex;
  position: relative;
  align-items: stretch;
  margin-top: clamp(1rem, 2.3vh, 1.75rem);
  color: #14180c;
  text-decoration: none;
  border-radius: .55rem;
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1;
  outline-offset: .32rem;
}
.icon-block, .text-block {
  display: grid;
  place-items: center;
  height: var(--button-height);
  background: var(--lime);
  border-radius: .54rem;
  position: relative;
  transition: transform .22s ease, background-color .22s ease;
}
.icon-block { width: var(--button-height); }
.text-block { padding: 0 1.06rem; margin-left: 3px; }
.project-link::before {
  content: "";
  background: var(--lime);
  position: absolute;
  left: calc(var(--button-height) - 2px);
  top: 36%;
  bottom: 36%;
  width: 8px;
}
.icon-block i { font-size: 1.45rem; display: block; line-height: 1; transition: transform .22s ease; }
.project-link:is(:hover, :focus-visible) { --lime: #e4ff8a; }
.project-link:is(:hover, :focus-visible) .icon-block i { transform: translateY(-1px) rotate(-9deg); }
.project-link:focus-visible { outline: 2px solid currentColor; outline-color: #f6ffd8; }
.project-link:active { transform: translateY(1px); }
@media (max-width: 600px) {
  h1 { font-size: clamp(1.85rem, 7.8vw, 2.65rem); }
  .project-link { font-size: 1rem; --button-height: 2.75rem; }
}
@media (prefers-reduced-motion: reduce) {
  .icon-block, .text-block, .icon-block i { transition: none; }
  .project-link:is(:hover, :focus-visible) .icon-block i { transform: none; }
}

.about-dialog {
  width: min(28rem, calc(100vw - 2rem));
  border: 1px solid #484844;
  border-radius: .5rem;
  padding: 2rem;
  background: #111112;
  color: #f5f3ec;
}
.about-dialog::backdrop { background: rgb(0 0 0 / .75); }
.about-dialog h2 { margin: 0 2rem 1.25rem 0; font-size: 2rem; letter-spacing: -.05em; }
.about-dialog p { margin: 0; font-size: 1.0625rem; line-height: 1.6; }
.close-about {
  position: absolute; right: .75rem; top: .75rem;
  width: 2.75rem; height: 2.75rem; display: grid; place-items: center;
  background: transparent; border: 0; color: inherit; font-size: 1.3rem; cursor: pointer;
}
@media (max-width: 38rem) {
  .site-header { padding: .45rem max(.75rem, env(safe-area-inset-right)) .45rem max(.75rem, env(safe-area-inset-left)); }
  .main-nav { gap: .5rem; }
  .nav-links { gap: clamp(.45rem, 2.2vw, .875rem); }
}
@media (max-width: 23.5rem) {
  .main-nav { display: grid; grid-template-columns: 1fr auto; gap: 0 .5rem; }
  #language-switch { grid-column: 2; grid-row: 1; }
  .nav-links { grid-column: 1 / -1; grid-row: 2; gap: 1rem; }
}

.screen[hidden] { display: none; }
.screen :is(h1,h2):focus { outline: none; }
.work-page {
  align-self: start;
  width: min(100%, 108rem);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3.5vw, 4.5rem) 5rem;
}
[data-screen="work"] { display: block; align-self: stretch; width: 100%; padding: 0; }
.work-intro { display: flex; flex-direction: column; height: calc(100svh - var(--header-height, 4rem)); position: relative; isolation: isolate; color: white; }
.invitation h1, .project-link { font-family: "Instrument Sans", Arial, sans-serif; }
.serif { font-family: "Instrument Serif", Georgia, serif; font-size: 1.1em; line-height: 1; letter-spacing: normal; }
.work-intro h1 {
  position: relative;
  z-index: 1;
  width: fit-content;
  max-width: 95%;
  flex: none;
  margin: clamp(.5rem, 1.4svh, 1rem) clamp(1rem, 3.5vw, 4.5rem) 0;
  pointer-events: none;
  font: 400 clamp(2rem, 4.3vw, 4.5rem)/1.12 "Instrument Sans", Arial, sans-serif;
  letter-spacing: -.035em;
}
.intro-line { display: block; }
.intro-word { display: inline-block; }
.catalog-link { color: inherit; text-decoration: none; font-family: "Instrument Sans", Arial, sans-serif; }
.catalog-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; padding: clamp(1.5rem, 3.5vw, 3rem) 0 clamp(1.4rem, 2.6vw, 2.5rem); }
.catalog-tag { font: var(--nav-type); font-size: var(--nav-size); letter-spacing: .035em; text-transform: uppercase; margin: 0 0 .65rem; color: #b6b4ac; }
.catalog-header :is(h1,h2) { margin: 0; font: 400 clamp(1.85rem, 3.2vw, 3.5rem)/1.06 "Instrument Sans", Arial, sans-serif; }
html:lang(pt-BR) #archive-title span:last-child,
html:lang(en) #archive-title span:first-child { font-family: "Instrument Serif", Georgia, serif; font-size: 1.1em; }
.catalog-link { flex: none; display: inline-grid; place-items: center; min-height: 44px; padding: .55rem 1.15rem; border: 1px solid #65645f; border-radius: 99px; font-size: .93rem; }
.catalog-link:hover { border-color: #f5f3ec; background: #151514; }
.catalog-link:focus-visible { outline: 2px solid #d9fa65; outline-offset: 3px; }
.case-link .folder-icon { width: 1.45rem; height: 1.45rem; overflow: visible; }
.folder-cover { fill: var(--lime); transform-origin: 3px 19px; }
@media (prefers-reduced-motion: no-preference) {
  .folder-cover { transition: transform 270ms cubic-bezier(.2,.7,.25,1); }
}
@media (hover: hover) {
  .case-link:hover .folder-cover { transform: skewX(-14deg) scaleY(.76); }
}
.case-link:is(:active, :focus-visible) .folder-cover { transform: skewX(-24deg) scaleY(.66); }
.invitation .project-link:is(:hover, :focus-visible) .icon-eye { transform: none; }
.archive-page { width: 100%; padding-top: clamp(5rem, 11svh, 9rem); }
.case-link { margin: 0; padding: 0; border: 0; background: transparent; cursor: pointer; }
#work-gallery { position: absolute; inset: 0; }
#work-gallery .sg-stage {
  --card-w: min(19vw, 36svh);
  --skew-edge: calc(var(--card-w) * .213);
  height: 100%; background: transparent;
}
#work-gallery .sg-canvas {
  inset: calc(var(--skew-edge) + 10px) 0 var(--skew-edge);
  width: auto; height: auto;
}
#work-gallery .sg-card { width: var(--card-w); aspect-ratio: 178 / 140; }
#work-gallery .sg-card-hit { inset: 0; height: 100%; clip-path: none; transform: skewY(23deg) scaleX(.93); }
@media (max-width: 45rem), (max-aspect-ratio: 4/5), (min-aspect-ratio: 2/1) {
  #work-gallery { position: relative; flex: 1; min-height: 0; }
  #work-gallery .sg-stage { --card-w: min(32vw, 30svh); }
}
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(.8rem, 1.8vw, 2rem);
}
.work-card {
  position: relative;
  isolation: isolate;
  display: block;
  padding: 0;
  background: #151515;
  border: 0;
  cursor: pointer;
}
.work-card img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.work-caption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-inline: clamp(1rem, 2vw, 2.25rem);
  opacity: 0;
  mix-blend-mode: difference;
  color: white;
  text-align: left;
}
@media (hover: none) { .work-caption { opacity: 1; } }
.work-card:focus-visible .work-caption { opacity: 1; }
@media (hover: hover) { .work-card:hover .work-caption { opacity: 1; } }
.work-name { font: 400 clamp(1.05rem, 1.95vw, 2rem)/1 "Instrument Serif", Georgia, serif; }
.work-year { font: 400 clamp(.85rem, 1.2vw, 1.25rem)/1 "Instrument Sans", Arial, sans-serif; }
.project-bar h2 { font: 400 clamp(1.1rem, 1.75vw, 1.75rem)/1.25 "Instrument Sans", Arial, sans-serif; }
.work-card:focus-visible, .close-project:focus-visible { outline: 2px solid #d9fa65; outline-offset: 4px; }
.project-dialog {
  background: #000; color: inherit; border: 1px solid #383838; padding: 0;
  width: min(52rem, calc(100% - 2rem)); max-height: 88svh; overscroll-behavior: contain;
}
.project-dialog::backdrop { background: rgb(0 0 0 / .85); }
.project-bar { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; background: #000; padding: .5rem 1rem; }
.project-bar h2 { margin: 0; }
.close-project { color: inherit; background: transparent; border: 0; width: 44px; height: 44px; font-size: 1.25rem; cursor: pointer; }
#project-images img { width: 100%; height: auto; display: block; margin-bottom: .375rem; }
@media (max-width: 42rem) {
  .work-grid { grid-template-columns: 1fr; }
  .catalog-header { flex-wrap: wrap; align-items: center; }

}

@keyframes orbit-card-in {
  from { scale: .18; opacity: 0; }
  to { scale: 1; opacity: 1; }
}
@keyframes reveal-up {
  from { translate: 0 var(--entry-distance, .7rem); opacity: 0; }
  to { translate: 0 0; opacity: 1; }
}
@media (prefers-reduced-motion: no-preference) {
  .orbit-frame {
    animation: orbit-card-in 950ms cubic-bezier(.2,.75,.25,1) backwards;
    animation-delay: calc(var(--card-index) * 28ms);
  }
  .invitation h1 { animation: reveal-up 680ms ease-out 180ms backwards; }
  .invitation .project-link { animation: reveal-up 560ms ease-out 440ms backwards; }
  .intro-word {
    animation: reveal-up 440ms ease-out backwards;
    animation-delay: calc(100ms + var(--word-index) * 65ms);
  }
  .sg-card {
    animation: card-arrival 520ms cubic-bezier(.2,.75,.25,1) backwards;
    animation-delay: calc(160ms + var(--card-index) * 50ms);
  }
}

#pixel-transition { position: fixed; inset: 0; z-index: 20; width: 100%; height: 100%; pointer-events: none; }
@keyframes card-arrival {
  from { clip-path: inset(125% -5% -25%); translate: 0 14px; }
  to { clip-path: inset(-100% -5% -35%); translate: 0 0; }
}
.profile-section {
  margin-inline: clamp(1rem, 3.5vw, 4.5rem);
  padding-block: clamp(3rem, 7vw, 8rem);
  border-top: 1px solid #333;
  display: grid;
  grid-template-columns: clamp(6rem, 16vw, 16rem) minmax(0, 1fr);
  gap: clamp(1.25rem, 2.5vw, 3rem);
  font-family: "Instrument Sans", Arial, sans-serif;
}
.profile-section h2 { margin: 0; color: #fff; font: 400 clamp(1.35rem, 2.1vw, 2.2rem)/1.18 "Instrument Sans", Arial, sans-serif; }
.profile-copy { min-width: 0; }
.profile-copy > p:first-child { margin: 0; font-size: clamp(1.5rem, 3vw, 3rem); line-height: 1.2; letter-spacing: -.025em; }
.profile-copy h3 { margin: clamp(2.75rem, 4.6vw, 5rem) 0 .8rem; font-size: 1rem; font-weight: 400; color: #fff; }
.experience-list { list-style: none; margin: 0; padding: 0; }
.experience-list li { border-top: 1px solid #303030; }
.experience-list summary {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(max-content, .8fr) 1rem;
  align-items: center;
  gap: .3rem 1rem;
  padding-block: 1.15rem;
  cursor: pointer;
  list-style: none;
}
.experience-list summary::-webkit-details-marker { display: none; }
.experience-list summary:focus-visible { outline: 2px solid #d9fa65; outline-offset: 3px; }
.experience-employer { width: fit-content; max-width: 100%; font: 400 clamp(2.25rem, 4.25vw, 4.5rem)/1.1 "Instrument Serif", Georgia, serif; }
.experience-role { font-size: 1rem; }
.experience-period { text-align: right; color: #aaa; font-size: .875rem; }
.experience-list summary i { color: #aaa; }
.experience-list details[open] summary i { transform: rotate(180deg); }
.experience-detail { padding-bottom: 1.3rem; }
.bio-accessible { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.experience-list summary:focus-visible .experience-employer {
  text-decoration: underline 1px;
  text-underline-offset: .12em;
}
@media (hover: hover) and (pointer: fine) {
  .experience-list summary:hover .experience-employer {
    text-decoration: underline 1px;
    text-underline-offset: .12em;
  }
  .experience-list:has(summary:hover) > li:not(:hover) { color: #929292; }
  .experience-list:has(summary:hover) > li:not(:hover) :is(.experience-period, .experience-kind, .experience-description, i) { color: inherit; }
}
@keyframes experience-enter {
  from { opacity: 0; transform: translateY(-.75rem); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: no-preference) {
  .bio-word { display: inline-block; }
  .enter-from-above .bio-word { animation: reveal-up 360ms ease-out both; }
  .enter-from-above h3, .enter-from-above .experience-list > li {
    animation: experience-enter 380ms ease-out backwards;
    animation-delay: calc(var(--experience-delay) + var(--row-delay, 0ms));
  }
  .experience-list li:nth-child(1) { --row-delay: 45ms; }
  .experience-list li:nth-child(2) { --row-delay: 90ms; }
  .experience-list li:nth-child(3) { --row-delay: 135ms; }
  .experience-list li:nth-child(4) { --row-delay: 180ms; }
  .experience-list li:nth-child(5) { --row-delay: 225ms; }
  .experience-list summary i { transition: transform 280ms ease; }
  @supports (interpolate-size: allow-keywords) and selector(details::details-content) {
    .experience-list details { interpolate-size: allow-keywords; }
    .experience-list details::details-content {
      height: 0; overflow: hidden; opacity: 0;
      transition: height 320ms cubic-bezier(.22,.65,.3,1), opacity 220ms ease, content-visibility 320ms allow-discrete;
    }
    .experience-list details[open]::details-content { height: auto; opacity: 1; }
  }
}
.experience-kind { margin: 0; color: #aaa; font-size: .875rem; }
.experience-description { margin: .65rem 0 0; font-size: 1rem; line-height: 1.5; color: #ccc; }
@media (max-width: 36rem) {
  .experience-list summary { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, .8fr) .8rem; column-gap: .5rem; }
  .experience-employer { font-size: clamp(1.65rem, 7.1vw, 2.4rem); }
  .experience-role, .experience-period { font-size: .85rem; }
}
@media (max-width: 42rem) { .profile-section { grid-template-columns: 1fr; } }
.site-footer {
  padding: clamp(2rem, 4.5vw, 5.5rem) clamp(1rem, 3.5vw, 4.5rem) clamp(1rem, 2.5vw, 3rem);
  background: #000;
  color: #f5f3ec;
  font-family: "Instrument Sans", Arial, sans-serif;
}
.site-footer :where(button, a):where(:not(.project-link)) {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}
.site-footer :is(button, a):focus-visible { outline: 2px solid #d9fa65; outline-offset: 3px; }
.footer-lead { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; padding-bottom: clamp(1.5rem, 3vw, 3.5rem); border-bottom: 1px solid #282828; }
.footer-lead p { margin: 0; font-size: clamp(3.6rem, 9vw, 10.25rem); line-height: 1.03; letter-spacing: -.045em; }
.footer-lead .project-link { flex: none; white-space: nowrap; }
.footer-columns { display: flex; flex-wrap: wrap; gap: clamp(3rem, 8vw, 10rem); margin-block: clamp(3rem, 7vw, 7.5rem) clamp(2rem, 4vw, 5rem); }
.footer-columns > * { display: grid; justify-items: start; align-content: start; }
.footer-columns p { margin: 0 0 .65rem; font-size: .8rem; }
.footer-columns :is(button, a) { padding-block: .25rem; color: #aaa; font-size: .85rem; }
@media (hover: hover) { .footer-columns :is(button, a):hover { color: #fff; } }
@media (prefers-reduced-motion: no-preference) {
  .work-caption { transition: opacity 380ms ease-in-out; }
}
@media (max-width: 42rem) {
  .footer-lead { align-items: flex-start; flex-direction: column; gap: 1.5rem; }
}

.footer-columns { column-gap: clamp(1.6rem, 5vw, 6rem); margin-bottom: 1.75rem; }
.footer-credits { margin-left: auto; gap: .9rem; }
.footer-columns .footer-email { color: #fff; font-size: clamp(1.05rem, 1.65vw, 1.8rem); letter-spacing: -.035em; overflow-wrap: anywhere; }
.email-actions { position: relative; }
.footer-email:is(:hover, :focus-visible) { text-decoration: underline; text-underline-offset: .18em; }
.copy-cursor {
  --lime: #d9fa65; --button-height: 1.9rem;
  display: none; position: fixed; top: 0; left: 0; z-index: 10;
  pointer-events: none; color: #14180c; font: 400 .85rem/1 "Instrument Sans", sans-serif;
}
.copy-cursor .icon-block i { font-size: 1rem; }
.copy-cursor .text-block { padding-inline: .65rem; }
.copy-cursor.tracking { display: inline-flex; }
.email-actions:has(.copy-cursor.tracking) .footer-email { cursor: none; }
.copy-status { position: absolute; top: 100%; left: 0; color: #ccc; font-size: .8rem; }
.copy-status.success { width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.copy-cursor.anchored:not(.tracking) { display: inline-flex; position: absolute; inset: auto 0 calc(100% + .2rem) auto; transform: none !important; }
.footer-credits small { color: #999; line-height: 1.5; }
.site-footer { padding-bottom: 0; }
.footer-pixels { display: block; pointer-events: none; width: calc(100% + 2 * clamp(1rem, 3.5vw, 4.5rem)); margin-inline: calc(-1 * clamp(1rem, 3.5vw, 4.5rem)); height: clamp(8rem, 15vw, 15rem); }
@media (max-width: 48rem) { .footer-credits { flex-basis: 100%; margin-left: 0; } }

.full-catalog { width: 100%; padding-inline: clamp(.75rem, 1.6vw, 2rem); }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
.full-catalog .catalog-header { padding-block: clamp(2.5rem, 6vw, 6rem) clamp(1.5rem, 3vw, 3rem); }
.full-catalog h1 { font-size: clamp(2.75rem, 6vw, 6rem); letter-spacing: -.045em; }

.case-study { padding: clamp(2rem, 6vw, 6rem) clamp(.75rem, 1.6vw, 2rem); font-family: "Instrument Sans", Arial, sans-serif; }
.case-heading { display: grid; grid-template-columns: 1fr 2.8fr .9fr 1fr .95fr; align-items: start; gap: clamp(1rem, 2vw, 3rem); margin-bottom: clamp(2.5rem, 5vw, 6rem); font-size: 1rem; line-height: 1.5; }
.case-heading h1, .case-heading p, .case-heading dl, .case-heading dd { margin: 0; }
.case-heading h1 { font: inherit; letter-spacing: normal; }
.case-heading p + p, .case-heading dd + dt { margin-top: 1em; }
.case-heading dt { color: #aaa; }
.case-heading a { color: inherit; text-underline-offset: .2em; }
.case-study img { display: block; width: 100%; height: auto; }
.case-actions { margin-top: 2.5rem; }
a.work-card { text-decoration: none; }
@media (max-width: 60rem) {
  .case-heading { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .case-story { grid-column: span 2; }
}
@media (max-width: 38rem) {
  .case-heading { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-heading h1, .case-story { grid-column: 1 / -1; }
}
.case-strategy { max-width: 68ch; margin: clamp(2rem, 6vw, 6rem) auto; line-height: 1.5; }

.nav-inactive { color: #fff; opacity: .48; cursor: default; }

/* Keep the introduction inside the open upper-left area of the diagonal. */
.work-intro #intro-title {
  width: 47vw;
  max-width: none;
  font-size: clamp(1.5rem, min(3.6vw, 5.8svh), 4.5rem);
  line-height: 1.12;
}
#intro-title .intro-line:last-child > .serif { display: block; }
@media (max-width: 45rem), (max-aspect-ratio: 4/5), (min-aspect-ratio: 2/1) {
  .work-intro #intro-title {
    width: calc(100% - 2 * clamp(1rem, 3.5vw, 4.5rem));
    font-size: clamp(1.5rem, min(5vw, 5.8svh), 3rem);
  }
}

/* Shared section entrances and bounded profile labels. */
.profile-section > :is(h1, h2) {
  position: sticky;
  top: 1.5rem;
  align-self: start;
  margin: 0;
  color: white;
  font: 400 clamp(1.35rem, 2.1vw, 2.2rem)/1.18 "Instrument Sans", Arial, sans-serif;
}
@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal.enter-from-above { animation: experience-enter 650ms cubic-bezier(.22,.65,.3,1) both; }
  .enter-from-above .bio-word { animation-name: experience-enter; }
}
.about-page { padding-block: clamp(2rem, 5vw, 5rem) 3rem; }
.about-page .profile-section { border-top: 0; padding-top: 1rem; }
.about-extra {
  display: grid;
  grid-template-columns: clamp(6rem, 16vw, 16rem) minmax(0, 1fr);
  gap: clamp(1.25rem, 2.5vw, 3rem);
  margin-inline: clamp(1rem, 3.5vw, 4.5rem);
  border-top: 1px solid #303030;
  padding-block: clamp(2.5rem, 5vw, 5rem);
  font-family: "Instrument Sans", Arial, sans-serif;
}
.about-extra h2 { margin: 0; font-size: clamp(1.35rem, 2.1vw, 2.2rem); font-weight: 400; line-height: 1.18; }
.software-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; gap: clamp(1.5rem, 3vw, 4rem); font-size: clamp(1rem, 1.5vw, 1.5rem); color: #ccc; }
.software-list li { padding-block: .5rem; }
.brand-carousel { min-width: 0; overflow: hidden; mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); }
.brand-carousel:focus-visible { outline: 1px solid #d9fa65; outline-offset: .5rem; }
.brand-track { display: flex; width: max-content; animation: brand-drift 42s linear infinite; }
.brand-list { display: flex; align-items: center; flex: none; list-style: none; margin: 0; padding: 0; }
.brand-list li { display: grid; place-items: center; flex: 0 0 clamp(10rem, 14vw, 14rem); width: clamp(10rem, 14vw, 14rem); height: 6rem; padding-inline: 1.5rem; box-sizing: border-box; }
.brand-list img { display: block; width: 100%; max-width: 10rem; height: 3.5rem; object-fit: contain; filter: brightness(0) invert(1); opacity: .65; }
.brand-list img[alt="Perdigão"] { filter: grayscale(1) invert(1); mix-blend-mode: screen; }
.brand-list img[alt="Lay’s"] { filter: grayscale(1); }
.brand-carousel:is(:hover, :focus-within) .brand-track { animation-play-state: paused; }
@keyframes brand-drift { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) {
  .brand-carousel { overflow-x: auto; mask-image: none; }
  .brand-track { animation: none; }
  .brand-list[aria-hidden] { display: none; }
}
.related-projects { padding-top: clamp(2rem, 4vw, 4rem); margin-top: clamp(3rem, 5vw, 5rem); border-top: 1px solid #303030; }
.related-projects > h2 { margin: 0 0 1.5rem; font: 400 clamp(1.5rem, 2.5vw, 3rem)/1.1 "Instrument Sans", Arial, sans-serif; }
.related-projects .work-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.related-projects .work-name { font-size: clamp(1.1rem, 1.7vw, 1.8rem); }
.related-projects .work-year { font-size: .875rem; }
.related-projects .work-card img { height: auto; }
@media (max-width: 42rem) {
  .profile-section > :is(h1, h2) { position: static; }
  .about-extra { grid-template-columns: 1fr; }
  .software-list { grid-template-columns: 1fr; gap: .75rem; }
  .related-projects .work-grid { grid-template-columns: 1fr; }
}

/* Keep the selected covers together through their entrance. */
@media (prefers-reduced-motion: no-preference) {
  #todos.selected-enter > :is(.catalog-header, #archive-gallery) {
    animation: selected-arrival 1150ms cubic-bezier(.2,.65,.25,1) both;
  }
  #todos.selected-enter > #archive-gallery { animation-delay: 110ms; }
}
@keyframes selected-arrival {
  from { opacity: 0; translate: 0 -16px; }
  to { opacity: 1; translate: 0 0; }
}
.sg-cursor-label {
  position: fixed; top: 0; left: 0; z-index: 10; pointer-events: none;
  border-radius: .4rem; padding: .5rem .65rem; background: #d9fa65;
  color: #14180c; font: 400 .85rem/1 "Instrument Sans", sans-serif;
  max-width: calc(100vw - 12px);
}
#work-gallery .sg-card--clickable:focus-visible { outline-color: #d9fa65; }

.software-list { display: flex; flex-wrap: wrap; gap: .5rem clamp(1.5rem, 4vw, 4rem); }
.software-list li { padding: 0; }
.brand-list li { flex: 0 0 clamp(10rem, 15vw, 15rem); width: clamp(10rem, 15vw, 15rem); padding-inline: 2rem; }
.brand-list img { width: 100%; height: 2.75rem; }
.profile-portrait {
  display: grid; place-items: center; aspect-ratio: 4/5; min-width: 0;
  border: 1px solid #333; background: #101010; color: #aaa; font-size: .875rem;
}
#about-page-profile > h1 { position: static; grid-column: 1 / -1; }
@media (max-width: 42rem) { .profile-portrait { width: min(65%, 14rem); } }

.contact-page {
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
  gap: clamp(2rem, 8vw, 10rem); align-items: start;
  padding: clamp(3rem, 7vw, 8rem) clamp(1rem, 3.5vw, 4.5rem);
  font-family: "Instrument Sans", Arial, sans-serif;
}
.contact-page[hidden] { display: none; }
.contact-intro h1 {
  margin: 0 0 2rem; font: 400 clamp(3.5rem, 8vw, 9rem)/.91 "Instrument Sans", sans-serif;
  letter-spacing: -.055em;
}
.contact-intro a { color: inherit; text-underline-offset: .25em; }
.contact-form { display: grid; min-width: 0; gap: 1.75rem; }
.contact-form p { max-width: 40ch; margin: 0 0 .5rem; line-height: 1.5; color: #bbb; }
.contact-form > label { display: grid; gap: .45rem; }
.contact-form :is(input:not([type=radio]), textarea) {
  width: 100%; min-height: 2.5rem; padding: .35rem 0;
  border: 0; border-bottom: 1px solid #555; border-radius: 0;
  background: transparent; color: inherit; font: inherit;
}
.contact-form textarea { resize: vertical; }
.contact-form fieldset { padding: 0; margin: 0; border: 0; min-width: 0; }
.contact-form legend { margin-bottom: .75rem; padding: 0; }
.contact-options { display: flex; flex-wrap: wrap; gap: .5rem; }
.contact-options label { position: relative; cursor: pointer; }
.contact-options input { position: absolute; opacity: 0; }
.contact-options span {
  display: block; padding: .55rem .85rem; border: 1px solid #555; border-radius: .5rem;
  font-size: .875rem;
}
.contact-options input:checked + span { background: #d9fa65; border-color: #d9fa65; color: #111; }
.contact-form :focus-visible, .contact-intro a:focus-visible { outline: 2px solid #d9fa65; outline-offset: 3px; }
.contact-options input:focus-visible + span { outline: 2px solid #d9fa65; outline-offset: 2px; }
.contact-form > button { justify-self: start; margin-top: .5rem; }
@media (max-width: 48rem) {
  .contact-page { grid-template-columns: 1fr; }
}

.footer-lead[hidden] { display: none; }
.contact-form :is(input:not([type=radio]), textarea):focus { outline: none; border-bottom-color: #ccc; }
