:root {
  --bg: #101313;
  --panel: #191d1d;
  --fg: #f0f2ed;
  --muted: #a5b0ad;
  --cyan: #83e6da;
  --line: #323b38;
  --font: Arial,Helvetica,sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
}

button,a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  color: inherit;
}

button:focus-visible,a:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 5px;
}

button {
  border: 0;
}

button:hover,a:hover {
  transition: .2s;
}

img {
  max-width: 100%;
  display: block;
}

h1,h2,h3,p {
  margin: 0;
}

h1,h2,h3 {
  line-height: 1.06;
  font-weight: 500;
  letter-spacing: -.045em;
}

em {
  font-style: normal;
  color: var(--cyan);
}

.wrap {
  width: min(1360px,calc(100% - 112px));
  margin: auto;
}

.header {
  height: 104px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 56px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  color: var(--fg);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: .055em;
  line-height: 1.05;
  white-space: nowrap;
}

.brand-symbol {
  width: 4.125rem;
  height: auto;
  flex: none;
}

.brand-credit {
  display: block;
  margin-top: .25rem;
  font-size: .75rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: .035em;
  color: var(--cyan);
}

.header nav {
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: 14px;
}

.header nav a:hover {
  color: var(--cyan);
}

.nav-contact {
  border: 1px solid #53625c;
  border-radius: 100px;
  padding: 12px 22px;
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 40px;
  align-items: center;
  padding: 64px 0 68px;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: .16em;
  font-weight: 600;
  color: var(--muted);
}

.tiny-cross {
  color: var(--cyan);
  margin-right: 8px;
  font-size: 20px;
}

.hero h1 {
  font-size: clamp(54px,5.3vw,88px);
  margin: 26px 0;
  letter-spacing: -.065em;
}

.intro {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 25px;
  align-items: center;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  border-radius: 5px;
  font-weight: 600;
  font-size: 15px;
  min-height: 52px;
}

.primary {
  background: var(--cyan);
  color: #102620;
}

.primary:hover {
  background: #b4f3eb;
  transform: translateY(-2px);
}

.text-button {
  background: none;
  padding: 12px 0;
  font-size: 14px;
}

.play-small {
  margin-right: 8px;
  font-size: 12px;
}

.hero-note {
  font-size: 11px;
  letter-spacing: .14em;
  color: #82918b;
  margin-top: 48px;
}

.hero-visual {
  height: 590px;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: #344c4a;
}

.hero-visual>img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
}

.visual-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,#00151933 0%,transparent 40%,#031512de 100%);
}

.frame-label {
  position: absolute;
  z-index: 2;
  top: 26px;
  left: 25px;
  right: 25px;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: .1em;
  color: white;
}

.frame-corner {
  width: 18px;
  height: 18px;
  position: absolute;
  border-color: #c3e4da7d;
  border-style: solid;
}

.a {
  top: 57px;
  left: 24px;
  border-width: 1px 0 0 1px;
}

.b {
  top: 57px;
  right: 24px;
  border-width: 1px 1px 0 0;
}

.c {
  bottom: 24px;
  left: 24px;
  border-width: 0 0 1px 1px;
}

.d {
  bottom: 24px;
  right: 24px;
  border-width: 0 1px 1px 0;
}

.hero-caption {
  position: absolute;
  bottom: 50px;
  left: 34px;
  right: 34px;
}

.hero-caption>span {
  font-size: 11px;
  letter-spacing: .15em;
  color: var(--cyan);
}

.hero-caption p {
  font-size: 29px;
  line-height: 1.15;
  margin-top: 12px;
  letter-spacing: -.04em;
}

.round-play {
  position: absolute;
  right: 0;
  bottom: 0;
  background: #ffffff18;
  backdrop-filter: blur(10px);
  border: 1px solid #ffffff66;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  font-size: 15px;
}

.round-play:hover {
  background: var(--cyan);
  color: #102620;
}

.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-evenly;
  gap: 20px;
  padding: 22px 25px;
  align-items: center;
  font-size: 12px;
  letter-spacing: .14em;
  color: #b3beb7;
}

.strip i {
  color: var(--cyan);
  font-style: normal;
  font-size: 20px;
}

.work,.photos {
  padding-top: 100px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: end;
}

.section-head h2 {
  font-size: clamp(34px,3.4vw,53px);
  margin-top: 18px;
}

.section-head>p {
  font-size: 14px;
  color: var(--muted);
}

.collection-note {
  margin-top: 24px;
  color: #b7c3bc;
  font-size: 13px;
  border-left: 2px solid #50776e;
  padding-left: 13px;
}

.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 32px 0;
}

.filters button {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 10px 18px;
  font-size: 14px;
  color: #bec8c2;
  min-height: 44px;
}

.filters button.active {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

.filters button:hover {
  border-color: var(--cyan);
}

.projects {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 34px 24px;
}

.project-cover {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: 7px;
  overflow: hidden;
  padding: 0;
  background: #24332e;
}

.project-cover:after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(#0005,transparent 50%,#0007);
}

.project-cover img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: transform .6s;
}

.project-cover:hover img {
  transform: scale(1.035);
}

.category,.duration,.card-play {
  position: absolute;
  z-index: 1;
}

.category {
  top: 18px;
  left: 18px;
  font-size: 12px;
  background: #101313aa;
  padding: 5px 11px;
  border-radius: 100px;
  backdrop-filter: blur(8px);
}

.duration {
  bottom: 18px;
  right: 18px;
  font: 13px monospace;
}

.card-play {
  left: 20px;
  bottom: 18px;
  width: 42px;
  height: 42px;
  border: 1px solid #ffffff77;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  background: #ffffff15;
}

.project h3 {
  font-size: 22px;
  margin-top: 18px;
  letter-spacing: -.03em;
}

.project p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 7px;
}

.results {
  font-size: 13px;
  color: var(--muted);
  margin-top: 24px;
}

.photos {
  padding-bottom: 100px;
}

.photo-grid {
  display: grid;
  grid-template-columns: 1fr 1.8fr 1fr;
  gap: 18px;
  margin-top: 34px;
}

.photo-grid button {
  padding: 0;
  background: #202723;
  border-radius: 6px;
  overflow: hidden;
  height: 300px;
}

.photo-grid img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: transform .5s;
}

.photo-grid button:hover img {
  transform: scale(1.04);
}

.about {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  padding-top: 80px;
  padding-bottom: 80px;
}

.about h2 {
  font-size: clamp(31px,3vw,47px);
  margin-top: 24px;
  line-height: 1.16;
}

.about-copy {
  padding-top: 30px;
  color: var(--muted);
  font-size: 16px;
}

.about-copy p+p {
  margin-top: 18px;
}

.contact {
  background: #1d2c28;
  border: 1px solid #3c5348;
  border-radius: 10px;
  padding: 56px;
  margin-bottom: 75px;
}

.contact h2 {
  font-size: clamp(38px,5vw,72px);
  margin-top: 25px;
}

.contact-bottom {
  margin-top: 35px;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
}

.contact-bottom p {
  color: #b7c6bc;
}

footer {
  border-top: 1px solid var(--line);
  padding: 30px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 12px;
  color: var(--muted);
}

.footer-brand {
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--fg);
}

dialog {
  background: #101715;
  color: var(--fg);
  border: 1px solid #4c6056;
  border-radius: 12px;
  width: min(900px,calc(100% - 28px));
  max-height: 95dvh;
  padding: 24px;
}

dialog::backdrop {
  background: #000c;
  backdrop-filter: blur(12px);
}

.viewer-bar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding-bottom: 15px;
}

.viewer-bar h2 {
  font-size: 23px;
  margin-top: 5px;
  letter-spacing: -.02em;
}

.viewer-bar span {
  color: var(--cyan);
  font-size: 12px;
}

.viewer-bar button {
  background: #283930;
  border-radius: 5px;
  padding: 10px 14px;
  font-size: 14px;
  min-height: 44px;
  white-space: nowrap;
}

#viewer-content {
  display: flex;
  justify-content: center;
  background: #080b0a;
  border-radius: 5px;
  overflow: hidden;
}

#viewer-content video,#viewer-content img {
  width: auto;
  max-width: 100%;
  max-height: 67dvh;
  object-fit: contain;
}

#viewer-content iframe {
  width: 100%;
  height: 65dvh;
  border: 0;
}

#viewer-description {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.skip {
  position: absolute;
  top: -90px;
  left: 20px;
  background: var(--cyan);
  color: #102620;
  padding: 15px;
  z-index: 10;
}

.skip:focus {
  top: 15px;
}

[hidden] {
  display: none!important;
}

@media(min-width:1500px) {
  .hero {
    gap: 90px;
  }
  .hero-visual {
    height: 650px;
  }
}

@media(max-width:1050px) {
  .wrap {
    width: calc(100% - 64px);
  }
  .header {
    padding: 0 32px;
  }
  .hero {
    gap: 24px;
  }
  .hero h1 {
    font-size: 57px;
  }
  .hero-visual {
    height: 530px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: start;
    gap: 10px;
  }
  .hero-note {
    margin-top: 25px;
  }
  .projects {
    grid-template-columns: repeat(3,1fr);
  }
  .about {
    gap: 35px;
  }
  .photo-grid button {
    height: 230px;
  }
  .hero-caption p {
    font-size: 25px;
  }
  .strip {
    font-size: 10px;
    gap: 12px;
  }
}

@media(max-width:700px) {
  .wrap {
    width: calc(100% - 40px);
  }
  .header {
    height: 82px;
    padding: 0 20px;
  }
  .brand {
    font-size: 1.1875rem;
    gap: 10px;
  }
  .brand-symbol {
    width: 3.25rem;
  }
  .header nav {
    gap: 18px;
    font-size: 13px;
  }
  .header nav>a:nth-child(2) {
    display: none;
  }
  .nav-contact {
    padding: 9px 13px;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 38px 0 35px;
  }
  .hero h1 {
    font-size: clamp(44px,10.4vw,68px);
    margin: 20px 0;
  }
  .intro {
    font-size: 16px;
  }
  .hero-actions {
    flex-direction: row;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 25px;
  }
  .hero-note {
    font-size: 10px;
  }
  .hero-visual {
    height: 440px;
  }
  .hero-visual img {
    object-position: center 56%;
  }
  .strip {
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 10px;
    padding: 16px;
  }
  .strip>span:nth-of-type(3),.strip>i:nth-of-type(3),.strip>span:nth-of-type(4) {
    display: none;
  }
  .work,.photos {
    padding-top: 58px;
  }
  .section-head {
    display: block;
  }
  .section-head>p {
    margin-top: 20px;
  }
  .section-head h2 {
    font-size: 36px;
  }
  .projects {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 28px 14px;
  }
  .project h3 {
    font-size: 19px;
    line-height: 1.2;
    margin-top: 12px;
  }
  .project p {
    font-size: 12px;
  }
  .project-cover {
    aspect-ratio: 9/14;
  }
  .category {
    font-size: 10px;
    left: 9px;
    top: 10px;
    padding: 4px 8px;
  }
  .card-play {
    width: 34px;
    height: 34px;
    left: 10px;
    bottom: 12px;
  }
  .duration {
    right: 9px;
    bottom: 17px;
    font-size: 12px;
  }
  .filters {
    gap: 8px;
    margin: 25px 0;
  }
  .filters button {
    padding: 9px 14px;
    font-size: 13px;
  }
  .photo-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .photo-grid button {
    height: 240px;
  }
  .photo-grid .wide {
    grid-column: 1/-1;
    height: auto;
    aspect-ratio: 3/2;
  }
  .photos {
    padding-bottom: 58px;
  }
  .about {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-top: 50px;
    padding-bottom: 50px;
  }
  .about h2 {
    font-size: 34px;
  }
  .about-copy {
    padding-top: 15px;
  }
  .contact {
    padding: 30px 24px;
    margin-bottom: 40px;
  }
  .contact h2 {
    font-size: 40px;
  }
  .contact-bottom {
    display: block;
  }
  .contact-bottom .button {
    margin-top: 25px;
  }
  footer {
    flex-wrap: wrap;
    font-size: 11px;
    padding: 25px 0;
  }
  footer span {
    order: 3;
    width: 100%;
  }
  .viewer-bar h2 {
    font-size: 19px;
  }
  .viewer-bar button {
    font-size: 12px;
  }
  dialog {
    padding: 15px;
  }
  #viewer-content video,#viewer-content img {
    max-height: 65dvh;
  }
}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }
  *,*:before,*:after {
    transition: none!important;
    animation: none!important;
  }
}

/* Ícones geométricos preservam a mesma aparência entre sistemas. */
.play-small,.round-play,.card-play {
  font-size: 0;
}

.play-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.play-small:before,.round-play:before,.card-play:before {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid currentColor;
}

.strip i {
  font-family: Arial,sans-serif;
  font-variant-emoji: text;
}

/* Navegação da galeria: áreas próprias não cobrem os controles do player. */
.viewer-stage {
  display: grid;
  grid-template-columns: 48px minmax(0,1fr) 48px;
  gap: 10px;
  align-items: center;
}

.viewer-nav {
  width: 48px;
  height: 64px;
  display: grid;
  place-items: center;
  background: #293c33;
  border: 1px solid #526c5d;
  border-radius: 8px;
  color: var(--fg);
  font: 40px/1 Arial,sans-serif;
}

.viewer-nav:hover {
  background: var(--cyan);
  color: #102620;
}

.viewer-nav[hidden] {
  display: block!important;
  visibility: hidden;
  pointer-events: none;
}

#viewer-position {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin-top: 12px;
}

#viewer-content {
  min-width: 0;
}

#viewer-content img,#viewer-content video {
  max-width: 100%;
}

@media(max-width:700px) {
  .viewer-stage {
    grid-template-columns: 44px minmax(0,1fr) 44px;
    gap: 5px;
  }
  .viewer-nav {
    width: 44px;
    height: 52px;
    font-size: 34px;
  }
  #viewer {
    padding: 12px;
    width: calc(100% - 16px);
  }
  #viewer-position {
    font-size: 12px;
  }
  #viewer-content video,#viewer-content img {
    max-height: 60dvh;
  }
}

/* A janela acompanha a proporção original da mídia, sem preenchimento lateral. */
#viewer {
  width: var(--viewer-width,500px);
  max-width: calc(100vw - 24px);
  overflow: auto;
}

.viewer-stage {
  grid-template-columns: 48px minmax(0,1fr) 48px;
  justify-content: center;
}

#viewer-content {
  width: var(--media-width,100%);
  height: var(--media-height,auto);
  justify-self: center;
  background: transparent;
}

#viewer-content video,#viewer-content img,#viewer-content iframe {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: none;
  object-fit: contain;
}

#viewer .viewer-bar>div {
  min-width: 0;
}

#viewer .viewer-bar h2 {
  overflow-wrap: anywhere;
  line-height: 1.15;
}

#viewer-position,#viewer-description {
  overflow-wrap: anywhere;
}

@media(max-width:700px) {
  #viewer {
    width: var(--viewer-width,500px);
    padding: 12px;
  }
  .viewer-stage {
    grid-template-columns: 44px minmax(0,1fr) 44px;
  }
}

body:has(dialog[open]) {
  overflow: hidden;
}

.skip {
  z-index: 30;
}

#viewer-local {
  color: var(--cyan);
  text-decoration: underline;
}

#viewer-message {
  color: var(--muted);
}
