:root {
  --sky-brand: #94c5f5;
  --sky-ink: #30658d;
}
html[data-intro] {
  overflow: hidden;
}
html[data-intro] .intro-assembly {
  display: block;
  pointer-events: auto;
  z-index: 40;
}
.intro-frame {
  width: min(52vw, 310px);
}
.intro-flight {
  width: min(52vw, 310px);
}
.intro-slab {
  height: 50.2%;
  transition-duration: 0.83s;
}
.intro-progress {
  width: clamp(5rem, 15vw, 8rem);
  height: 1px;
  position: absolute;
  top: calc(50% + min(23vw, 130px));
  left: 50%;
  translate: -50% 0;
  background: #a1bed444;
  transition: opacity 0.24s ease;
}
.intro-progress::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: var(--sky-brand);
  transform-origin: left;
  transform: scaleX(var(--progress, 0));
}
.intro-assembly[data-opening] {
  pointer-events: none;
}
.intro-assembly[data-opening] .intro-progress {
  opacity: 0;
}
html[data-intro] .header-actions {
  opacity: 0;
}
html[data-intro-reveal] .header-actions {
  opacity: 1;
  transition: opacity 0.6s 0.28s ease;
}
html[data-intro-reveal] .hero {
  animation: reveal-coast 0.96s cubic-bezier(0.22, 0.68, 0.22, 1) both;
}
@keyframes reveal-coast {
  from {
    clip-path: inset(11% 5% 10%);
    opacity: 0.68;
  }
  to {
    clip-path: inset(0);
    opacity: 1;
  }
}

.hero-portrait {
  width: auto;
  height: 123%;
  max-height: none;
  max-width: none;
  inset-block-start: 7.8%;
  mask-image: radial-gradient(
    ellipse 49% 53% at 50% 43%,
    #000 46%,
    #000c 69%,
    transparent 99%
  );
}
.hero-bottom {
  bottom: clamp(2.75rem, 8svh, 6rem);
}
@media (max-width: 660px) {
  .hero-portrait {
    height: 105%;
    inset-block-start: 7.8%;
  }
  .hero-bottom {
    bottom: clamp(3.1rem, 10svh, 5.55rem);
  }
}
.about-editorial .about-steps {
  display: grid;
  gap: 0.09em;
  min-width: 0;
  max-width: none;
  margin-inline: 39% 1.5rem;
  font-size: clamp(1.65rem, 3.6vw, 5rem);
  line-height: 1;
  letter-spacing: -0.055em;
  justify-items: start;
}
.about-editorial .about-steps li {
  padding: 0;
}
.about-editorial .about-steps li:nth-child(even) {
  margin: 0;
}
.about-editorial .about-sheet {
  grid-template-rows: 1fr;
}
.about-editorial .about-index a {
  min-height: 44px;
  display: block;
  text-decoration: none;
  padding: 0.12em 0;
  color: var(--sky-ink);
  opacity: 0.78;
  font-size: clamp(1.5rem, 4.05vw, 5.2rem);
  letter-spacing: -0.07em;
  line-height: 0.98;
  transition: opacity 0.22s;
}
.about-editorial .about-index a:is([data-previewed], :hover, :focus-visible) {
  opacity: 1;
}
@media (max-width: 660px) {
  .about-editorial .about-steps {
    margin-inline: 46% 0.3rem;
    font-size: clamp(1.42rem, 6.25vw, 3.2rem);
  }
  .about-editorial .about-index a {
    font-size: clamp(1.1rem, 4.1vw, 1.65rem);
    letter-spacing: -0.045em;
  }
}
.art-vox {
  background: radial-gradient(
    ellipse at 48% 46%,
    #233923,
    #121e16 59%,
    #101611
  );
}
.art-vox::before {
  background: linear-gradient(135deg, #b7f75d14, transparent 47%, #080d0bb7);
}
.art-vox .vox-rings i {
  border-color: #d0fbad3b;
  box-shadow: 0 2px 2px #c6ff9014;
}
.art-vox > img {
  width: min(69%, 34rem);
  max-height: unset;
  object-fit: contain;
}
.art-flag {
  background-image: url("./assets/bandeira-loop.webp");
}
.art-book {
  isolation: isolate;
  background: radial-gradient(
    ellipse at 48% 64%,
    #edf1f4,
    #bdd3e1 56%,
    #96b5c9
  );
}
.art-book .book-halo {
  position: absolute;
  inset: 15% 9%;
  opacity: 0.52;
  transform: none;
  border-radius: 100%;
  background: radial-gradient(ellipse at 50% 75%, #f8fbfdb5, transparent 72%);
}
.book-orbit {
  position: absolute;
  inset: 0;
  perspective: 850px;
}
.orbit-book {
  position: absolute;
  left: calc(50% + var(--x, 0%));
  top: calc(50% + var(--y, 8%));
  width: 25%;
  margin: 0;
  translate: -50% -50%;
  transform: scale(var(--s, 1)) rotateY(var(--yaw, 0deg));
  transform-style: preserve-3d;
  z-index: var(--depth, 1);
  filter: brightness(var(--shade, 1));
}
.book-orbit:not([data-ready]) .orbit-book:not(:first-child) {
  display: none;
}
.orbit-cover {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 1px 3px 2px 1px;
  box-shadow: 6px 11px 19px #182f474a;
}
.mosaic-stage {
  background: #e8e8e4;
}
.mosaic-stage > img {
  position: absolute;
  display: block;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: none;
}
.mosaic-stage[data-mosaic] > img {
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 1.1s ease,
    visibility 1.1s;
}
.mosaic-stage[data-mosaic] > img[data-visible] {
  opacity: 1;
  visibility: visible;
}
.mosaic-stage::after {
  content: none;
}

.archive-body.books a {
  display: block;
  width: max-content;
  max-width: 100%;
}
.archive-body.books img {
  display: block;
}
.archive-body a,
.archive-list summary,
.project-index a,
.work-details a {
  text-decoration: none;
  opacity: 0.8;
  transition:
    color 0.22s ease,
    opacity 0.22s ease;
  text-shadow: none;
}
.archive-body a:is(:hover, :focus-visible),
.archive-list summary:is(:hover, :focus-visible),
.archive-list details[open] > summary,
.project-index a:is(:hover, :focus-visible, [aria-current="true"]),
.work-details a:is(:hover, :focus-visible) {
  opacity: 1;
  text-shadow: none;
}
.archive-body a,
.archive-list summary {
  color: #eef6ff;
}
.archive-body li:not(:has(a)) {
  opacity: 0.68;
}
.project-index a:is(:hover, :focus-visible, [aria-current="true"]) {
  color: var(--sky-ink);
}
.projects h2 span,
.archive h2 span,
.contact-footer h2 span {
  color: var(--sky-brand);
}
.work-details a {
  color: var(--sky-ink);
}
.contact-handoff {
  color: inherit;
  opacity: 0.81;
  margin-top: 0.4rem;
  font-size: 0.83rem;
}
@media (prefers-reduced-motion: reduce) {
  .mosaic-stage[data-mosaic] > img {
    transition: none;
  }
}
.hero-calendar {
  display: inline-flex;
  color: #e4f3ff;
  margin-top: clamp(0.7rem, 2svh, 1.15rem);
  padding: 0.2rem 0.35rem;
  min-height: 32px;
  align-items: center;
  text-decoration: none;
  opacity: 0.78;
  font-size: clamp(0.69rem, 1.35vw, 0.94rem);
  font-weight: 260;
  letter-spacing: 0.072em;
  text-transform: uppercase;
  transition: opacity 0.2s ease;
}
.hero-calendar:is(:hover, :focus-visible) {
  opacity: 1;
}
.intro-slab {
  transition-duration: 0.94s;
}
.art-flag video {
  object-fit: contain;
}
.art-flag {
  background-size: contain;
  background-color: #7aa4c5;
  background-repeat: no-repeat;
}

.about-editorial .institutional-index {
  align-content: center;
  grid-template-columns: 1fr;
}
.about-editorial .institutional-index a {
  font-size: clamp(1.3rem, 3.6vw, 3.25rem);
}
.about-editorial .institution-motto {
  align-self: end;
  max-width: 10ch;
  text-wrap: balance;
  font-size: clamp(1.7rem, 4vw, 3.65rem);
}
@media (max-width: 660px) {
  .about-editorial .institutional-index {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .about-editorial .institutional-index a {
    font-size: clamp(1rem, 5vw, 1.55rem);
  }
}


.about-editorial .about-sheet {
  align-items: center;
}
.about-editorial .about-index {
  align-content: center;
}
.about-editorial .about-scene {
  align-content: center;
  align-items: center;
}
.about-editorial .about-scene img {
  inset-block: 50% auto;
  transform: translateY(-50%);
}
.about-editorial .about-steps {
  align-self: center;
  margin-block: 0;
}
.about-editorial .menu-top .menu-switch {
  min-inline-size: 44px;
  justify-content: center;
}
@media (max-width: 660px) {
  .about-editorial .about-scene img {inset-block: 50% auto;}
  .about-editorial .about-steps {margin-block: 0;}
}

.contact-email { overflow-wrap: anywhere; margin-block: .5rem 1rem; }
@media (max-width: 660px) {
  .site-header + main .hero, main .hero, body .hero { height: auto; min-height: 100svh; }
  .site-header .header-actions > button.menu-switch { font-size: .85rem; font-weight: 600; }
  .project-panel { scroll-margin-top: calc(var(--header) + 12px); }
  .about-editorial .about-scene { justify-items: center; }
  .about-editorial .about-scene img { inset-inline: 0; margin-inline: auto; }
  .about-editorial .about-steps { margin-inline: auto; max-width: min(90%, 24ch); text-align: center; justify-self: center; font-size: clamp(1.4rem, 6vw, 2.3rem); }
  .about-editorial .about-index a { font-size: clamp(1rem, 4.7vw, 1.5rem); }
}

body .hero { min-height: 100svh; }
.art-vox::before { content: none; }
.art-book {
  background: linear-gradient(122deg, #abad9e, #e2d4b9 32%, #728b91 66%, #b0babe);
  background-size: 175% 175%;
}
.art-book:not([hidden]) { animation: book-light 18s ease-in-out infinite alternate; }
@keyframes book-light {
  from { background-position: 15% 25%; }
  to { background-position: 90% 75%; }
}
@media (prefers-reduced-motion: reduce) {
  .art-book:not([hidden]) { animation: none; }
}
.art-observador.mosaic-stage { height: auto; aspect-ratio: 7 / 5; }
.shirt-checker { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); width: 100%; }
.shirt-checker img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.contact-footer .contact-intro { grid-column: 1; grid-row: 1; }
.contact-footer .contact-form { grid-column: 1; grid-row: 2; }
.contact-site-map { grid-column: 2; grid-row: 1 / span 2; display: grid; gap: .2rem; }
.contact-site-map a { width: fit-content; padding-block: .3rem; text-decoration: none; }
.contact-site-map a:is(:hover, :focus-visible) { text-decoration: underline; }
.contact-footer .contact-email { grid-column: 2; grid-row: 3; }
@media (max-width: 660px) {
  .projects-layout .project-index { display: none; }
  .project-stage .project-panel + .project-panel { margin-block-start: 2.5rem; }
  .about-editorial .about-features { display: none; }
  .about-editorial .about-layout { display: block; }
  .about-editorial .about-sheet { padding: clamp(1rem, 5vw, 2rem); }
  .about-editorial .about-sheet .about-index { grid-template-columns: 1fr; }
  .about-editorial .about-sheet .about-index a { font-size: clamp(1.72rem, 7vw, 3rem); overflow-wrap: anywhere; }
  .contact-footer :is(.contact-intro, .contact-form, .contact-site-map, .contact-email) { grid-area: auto; }
  .contact-footer .social-links, .contact-page .social-links {
    width: 100%; grid-template-columns: repeat(6, minmax(0, 1fr)); justify-items: center;
  }
  .contact-footer .social-links a, .contact-page .social-links a { max-width: 100%; }
  .contact-site-map { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-site-map a { min-height: 44px; }
  .contact-form button { justify-self: center; }
  .contact-footer .contact-email { text-align: center; }
}

.contact-footer .contact-site-map {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  align-content: start;
  gap: 0;
}
.contact-site-map a {
  width: 100%;
  min-width: 0;
  font-size: clamp(1.45rem,3.6vw,3.1rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.045em;
  border-bottom: 1px solid #dbe9f32c;
  padding-block: .35em;
}
@media (max-width:660px) {
  .about-dialog.about-editorial {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100svh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
  }
  .about-editorial .menu-inner {
    position: relative;
    display: grid;
    grid-template-rows: 1fr;
    width: 100%;
    height: 100%;
    padding-block: max(58px,calc(env(safe-area-inset-top) + 46px));
  }
  .about-editorial .menu-top {
    position: absolute;
    inset: max(6px,env(safe-area-inset-top)) var(--pad,5vw) auto;
    padding-block: 0;
  }
  .about-editorial .about-layout { min-height: 0; padding: 0; }
  .about-editorial .about-sheet { height: 100%; padding: 0; border: 0; background: transparent; }
  .about-editorial .about-sheet .about-index {
    height: 100%;
    width: 100%;
    grid-template-rows: repeat(var(--menu-count,6),minmax(0,1fr));
    gap: 0;
  }
  .about-editorial .about-sheet .about-index a {
    display: grid;
    align-items: center;
    padding: 0;
    min-height: 0;
    color: #fff;
    font-size: var(--menu-font, 7vw);
    font-weight: 750;
    border: 0;
    line-height: 1;
  }
  .contact-footer .contact-site-map a { font-size: clamp(1.65rem,7.3vw,2.55rem); }
}
