:root {
  --black: #070707;
  --black-2: #10100f;
  --panel: #141413;
  --cream: #eee8dc;
  --sand: #e4d2aa;
  --muted: #8d8780;
  --line: rgba(238, 232, 220, 0.12);
  --line-strong: rgba(228, 210, 170, 0.34);
  --accent: #d05342;
  --radius: 0px;
  --display-font: "Bahnschrift Condensed", "Arial Narrow", Haettenschweiler, Impact, sans-serif;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--cream);
  background:
    radial-gradient(circle at 16% 16%, rgba(123, 82, 45, 0.2), transparent 28rem),
    radial-gradient(circle at 78% 34%, rgba(14, 32, 42, 0.38), transparent 34rem),
    linear-gradient(120deg, #0b0a09 0%, #080808 48%, #0d0f10 100%);
  line-height: 1.55;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

body::before {
  opacity: 0.38;
  background:
    repeating-linear-gradient(116deg, transparent 0 58px, rgba(238, 232, 220, 0.055) 58px 59px),
    radial-gradient(circle, rgba(238, 232, 220, 0.06) 0 1px, transparent 1px 100%);
  background-size: auto, 7px 7px;
}

body::after {
  background: linear-gradient(90deg, rgba(7, 7, 7, 0.02), rgba(7, 7, 7, 0.42));
}

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

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 0;
  z-index: 30;
  padding: 0.55rem 0.8rem;
  color: var(--black);
  background: var(--sand);
  transform: translateY(-140%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.7rem 2.5rem;
  color: var(--cream);
  background: linear-gradient(180deg, rgba(7, 7, 7, 0.82), rgba(7, 7, 7, 0));
}

.brand {
  color: var(--sand);
  font-family: var(--display-font);
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2.6rem;
}

.site-nav a {
  color: rgba(238, 232, 220, 0.64);
  font-size: 0.83rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  transition: color 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--sand);
  outline: 0;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: 8rem 2.5rem 4rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 7, 7, 0.05) 0%, rgba(7, 7, 7, 0.72) 75%),
    radial-gradient(circle at 22% 45%, rgba(213, 169, 111, 0.08), transparent 18rem);
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(900px, 92vw);
}

.eyebrow,
.section-kicker,
.project-type {
  margin: 0;
  color: var(--sand);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin: 1.2rem 0 0;
  font-family: var(--display-font);
  width: max-content;
  max-width: 100%;
  font-size: 9.2rem;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0.018em;
  word-spacing: 0;
  text-transform: uppercase;
  font-kerning: normal;
  text-rendering: geometricPrecision;
  transform: scaleX(0.96);
  transform-origin: left center;
}

.hero h1::first-line {
  color: var(--cream);
}

.hero h1 {
  color: var(--sand);
}

.hero-text {
  max-width: 36rem;
  margin: 2rem 0 0;
  color: rgba(238, 232, 220, 0.46);
  font-size: 1.05rem;
  line-height: 1.75;
}

.hero-portrait {
  position: absolute;
  right: 3vw;
  bottom: 0;
  width: min(35vw, 520px);
  height: min(78vh, 760px);
  overflow: hidden;
  opacity: 0.72;
  filter: saturate(0.7) contrast(1.12) brightness(0.72);
  -webkit-mask-image: linear-gradient(to bottom, black 0 72%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 0 72%, transparent 100%);
}

.hero-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 7, 7, 0.76), transparent 34%),
    linear-gradient(180deg, rgba(7, 7, 7, 0.12), transparent 42%, rgba(7, 7, 7, 0.34));
}

.hero-portrait img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 44%;
  transform: scale(1.18);
}

.scroll-cue {
  position: absolute;
  right: 2.5rem;
  bottom: 2.1rem;
  writing-mode: vertical-rl;
  color: rgba(238, 232, 220, 0.42);
  font-size: 0.68rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.scroll-cue::before {
  content: "";
  display: block;
  width: 1px;
  height: 4.2rem;
  margin: 0 auto 1rem;
  background: rgba(238, 232, 220, 0.34);
}

.works-section {
  scroll-margin-top: 5rem;
  padding: 4.8rem 2.5rem 6rem;
  background: var(--black);
}

.section-label {
  display: grid;
  gap: 0.08rem;
  margin-bottom: 1.6rem;
}

.section-label strong {
  color: var(--sand);
  font-family: var(--display-font);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-label span {
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.works-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 2rem;
  max-width: 1220px;
  margin: 0 auto 3rem;
}

.works-heading h2 {
  margin: 0;
  font-family: var(--display-font);
  font-size: 7.3rem;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0.018em;
  word-spacing: 0;
  text-transform: uppercase;
  font-kerning: normal;
  text-rendering: geometricPrecision;
  transform: scaleX(0.98);
  transform-origin: left center;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
}

.filter-button {
  min-height: 2.4rem;
  padding: 0 0.8rem;
  color: rgba(238, 232, 220, 0.58);
  background: transparent;
  border: 1px solid rgba(238, 232, 220, 0.16);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.filter-button.is-active,
.filter-button:hover,
.filter-button:focus-visible {
  color: var(--black);
  background: var(--sand);
  border-color: var(--sand);
  outline: 0;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.1rem;
  max-width: 1220px;
  margin: 0 auto;
}

.project-card {
  min-height: 31rem;
  display: grid;
  grid-template-rows: minmax(17rem, 1fr) auto;
  grid-column: span 6;
  background: var(--panel);
  overflow: hidden;
}

.project-card.featured {
  grid-column: span 7;
}

.project-card:nth-child(2) {
  grid-column: span 5;
}

.project-card:nth-child(3) {
  grid-column: span 5;
}

.project-card:nth-child(4) {
  grid-column: span 7;
}

.project-card:nth-child(5) {
  grid-column: span 5;
}

.project-card:nth-child(6) {
  grid-column: span 7;
}

.project-card.is-hidden {
  display: none;
}

.project-visual {
  position: relative;
  min-height: 18rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.2rem;
  color: var(--cream);
  overflow: hidden;
  isolation: isolate;
}

.project-visual::before,
.project-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
}

.project-visual::after {
  background:
    linear-gradient(180deg, rgba(7, 7, 7, 0.06), rgba(7, 7, 7, 0.42)),
    repeating-linear-gradient(116deg, transparent 0 42px, rgba(238, 232, 220, 0.055) 42px 43px);
}

.project-visual span {
  color: var(--sand);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.project-visual strong {
  max-width: 13rem;
  font-family: var(--display-font);
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0.016em;
  text-transform: uppercase;
}

.project-visual img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.04) contrast(1.08) brightness(0.96);
}

.project-visual.has-image span,
.project-visual.has-image strong {
  position: relative;
  z-index: 3;
  text-shadow: 0 0.15rem 1rem rgba(7, 7, 7, 0.86);
}

.project-visual.has-image img {
  z-index: 0;
}

.project-visual.has-image::before {
  z-index: 1;
}

.project-visual.has-image::after {
  z-index: 2;
}

.thumb-video::before {
  background:
    linear-gradient(115deg, rgba(7, 7, 7, 0.85), rgba(21, 70, 88, 0.72), rgba(103, 32, 62, 0.28)),
    repeating-linear-gradient(0deg, rgba(238, 232, 220, 0.08) 0 1px, transparent 1px 28px);
}

.thumb-show::before {
  background:
    radial-gradient(circle at 18% 28%, rgba(228, 210, 170, 0.28), transparent 7rem),
    linear-gradient(130deg, rgba(7, 7, 7, 0.94), rgba(93, 36, 48, 0.7));
}

.thumb-event::before {
  background:
    linear-gradient(135deg, rgba(7, 7, 7, 0.94), rgba(41, 68, 50, 0.72)),
    repeating-linear-gradient(90deg, rgba(238, 232, 220, 0.05) 0 1px, transparent 1px 32px);
}

.thumb-web::before {
  background:
    linear-gradient(135deg, rgba(7, 7, 7, 0.92), rgba(39, 41, 47, 0.88)),
    radial-gradient(circle at 68% 25%, rgba(213, 169, 111, 0.28), transparent 9rem);
}

.project-visual.has-image::before {
  background:
    linear-gradient(180deg, rgba(7, 7, 7, 0.04), rgba(7, 7, 7, 0.42)),
    linear-gradient(115deg, rgba(7, 7, 7, 0.1), rgba(21, 70, 88, 0.16), rgba(103, 32, 62, 0.1));
}

.thumb-show.has-image img {
  object-position: 72% center;
  filter: saturate(1.1) contrast(1.04) brightness(1.14);
}

.thumb-show.has-image::before {
  background:
    linear-gradient(180deg, rgba(7, 7, 7, 0.02), rgba(7, 7, 7, 0.3)),
    linear-gradient(115deg, rgba(7, 7, 7, 0.18), rgba(21, 70, 88, 0.08), rgba(103, 32, 62, 0.06));
}

.thumb-show.has-image::after {
  background:
    linear-gradient(180deg, rgba(7, 7, 7, 0.02), rgba(7, 7, 7, 0.24)),
    repeating-linear-gradient(116deg, transparent 0 42px, rgba(238, 232, 220, 0.045) 42px 43px);
}

.thumb-event.has-image img {
  object-position: center center;
  filter: saturate(1.08) contrast(1.05) brightness(0.98);
}

.thumb-event.has-image::before {
  background:
    linear-gradient(180deg, rgba(7, 7, 7, 0.02), rgba(7, 7, 7, 0.34)),
    linear-gradient(135deg, rgba(7, 7, 7, 0.08), rgba(41, 68, 50, 0.18));
}

.thumb-event.has-image::after {
  background:
    linear-gradient(180deg, rgba(7, 7, 7, 0.04), rgba(7, 7, 7, 0.28)),
    repeating-linear-gradient(116deg, transparent 0 42px, rgba(238, 232, 220, 0.045) 42px 43px);
}

.thumb-web.has-image img {
  object-position: center 42%;
  filter: saturate(1.02) contrast(1.12) brightness(1.28);
}

.thumb-web.has-image::before {
  background:
    linear-gradient(180deg, rgba(7, 7, 7, 0.01), rgba(7, 7, 7, 0.22)),
    linear-gradient(135deg, rgba(7, 7, 7, 0.04), rgba(39, 41, 47, 0.08));
}

.thumb-web.has-image::after {
  background:
    linear-gradient(180deg, rgba(7, 7, 7, 0.01), rgba(7, 7, 7, 0.2)),
    repeating-linear-gradient(116deg, transparent 0 42px, rgba(238, 232, 220, 0.035) 42px 43px);
}

.thumb-carnaval.has-image img {
  object-fit: contain;
  object-position: center center;
  background: #4d2170;
  filter: saturate(1.05) contrast(1.05) brightness(0.98);
}

.thumb-carnaval.has-image::before {
  background:
    linear-gradient(180deg, rgba(7, 7, 7, 0.01), rgba(7, 7, 7, 0.22)),
    linear-gradient(135deg, rgba(82, 26, 111, 0.04), rgba(158, 25, 83, 0.06));
}

.thumb-carnaval.has-image::after {
  background:
    linear-gradient(180deg, rgba(7, 7, 7, 0.01), rgba(7, 7, 7, 0.18)),
    repeating-linear-gradient(116deg, transparent 0 42px, rgba(238, 232, 220, 0.035) 42px 43px);
}

.thumb-arcteryx.has-image img {
  object-position: center center;
  filter: saturate(1.02) contrast(1.08) brightness(0.98);
}

.thumb-arcteryx.has-image::before {
  background:
    linear-gradient(180deg, rgba(7, 7, 7, 0.01), rgba(7, 7, 7, 0.24)),
    linear-gradient(135deg, rgba(38, 72, 70, 0.04), rgba(142, 29, 43, 0.06));
}

.thumb-arcteryx.has-image::after {
  background:
    linear-gradient(180deg, rgba(7, 7, 7, 0.01), rgba(7, 7, 7, 0.2)),
    repeating-linear-gradient(116deg, transparent 0 42px, rgba(238, 232, 220, 0.035) 42px 43px);
}

.project-content {
  display: grid;
  gap: 0.75rem;
  padding: 1.1rem;
  color: var(--cream);
  background: rgba(255, 255, 255, 0.025);
}

.project-content h3 {
  margin: 0;
  font-family: var(--display-font);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: 0.014em;
  text-transform: uppercase;
}

.project-content p:not(.project-type) {
  margin: 0;
  color: rgba(238, 232, 220, 0.52);
}

.project-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.1rem 0 0;
  padding: 0;
  list-style: none;
}

.project-points li {
  padding: 0.36rem 0.5rem;
  color: rgba(238, 232, 220, 0.68);
  border: 1px solid rgba(238, 232, 220, 0.13);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.text-button {
  width: fit-content;
  min-height: 2.45rem;
  margin-top: 0.35rem;
  padding: 0 0.95rem;
  display: inline-flex;
  align-items: center;
  color: var(--sand);
  background: transparent;
  border: 1px solid var(--line-strong);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.text-button-muted {
  color: rgba(238, 232, 220, 0.62);
  border-color: rgba(238, 232, 220, 0.18);
}

.text-button:hover,
.text-button:focus-visible {
  color: var(--black);
  background: var(--sand);
  outline: 0;
}

.info-section {
  scroll-margin-top: 5rem;
  max-width: 1220px;
  margin: 0 auto;
  padding: 4.8rem 2.5rem;
  border-top: 1px solid var(--line);
}

.info-section h2 {
  max-width: 780px;
  margin: 0.65rem 0 0;
  font-family: var(--display-font);
  font-size: 4.8rem;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0.014em;
  text-transform: uppercase;
}

.info-text {
  max-width: 620px;
  color: rgba(238, 232, 220, 0.52);
  font-size: 1.05rem;
}

.cv-download {
  margin-top: 1rem;
}

.contact-block {
  scroll-margin-top: 5rem;
  margin-top: 4.5rem;
  padding-top: 3.5rem;
  border-top: 1px solid var(--line);
}

.contact-block h3 {
  max-width: 760px;
  margin: 0.65rem 0 1.8rem;
  font-family: var(--display-font);
  font-size: 3.8rem;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0.014em;
  text-transform: uppercase;
}

.contact-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.contact-list a {
  min-width: 0;
  display: grid;
  gap: 0.3rem;
  padding: 1.2rem 1rem;
  border-right: 1px solid var(--line);
  transition: color 160ms ease, background 160ms ease;
}

.contact-list a:first-child {
  padding-left: 0;
}

.contact-list a:last-child {
  border-right: 0;
}

.contact-list span {
  color: var(--sand);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-list strong {
  min-width: 0;
  color: rgba(238, 232, 220, 0.72);
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.contact-list a:hover,
.contact-list a:focus-visible {
  color: var(--black);
  background: var(--sand);
  outline: 0;
}

.contact-list a:hover span,
.contact-list a:hover strong,
.contact-list a:focus-visible span,
.contact-list a:focus-visible strong {
  color: var(--black);
}

.project-dialog {
  width: min(1000px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  padding: 1.45rem;
  color: var(--cream);
  background:
    repeating-linear-gradient(116deg, transparent 0 44px, rgba(238, 232, 220, 0.055) 44px 45px),
    var(--black-2);
  border: 1px solid var(--line-strong);
  overflow-y: auto;
}

.project-dialog::backdrop {
  background: rgba(7, 7, 7, 0.74);
  backdrop-filter: blur(4px);
}

.project-dialog h2 {
  margin: 0.45rem 2rem 0.75rem 0;
  font-family: var(--display-font);
  font-size: 2.3rem;
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: 0.014em;
  text-transform: uppercase;
}

.project-dialog [data-dialog-description] {
  margin-bottom: 0;
  color: rgba(238, 232, 220, 0.64);
}

.dialog-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1.25rem;
}

.dialog-gallery[hidden],
.dialog-link[hidden] {
  display: none;
}

.dialog-gallery a {
  min-height: 15rem;
  background: var(--panel);
  overflow: hidden;
}

.dialog-gallery img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #090909;
}

.dialog-link {
  margin-top: 1rem;
}

.dialog-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  color: var(--cream);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  cursor: pointer;
}

.dialog-close svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 920px) {
  .site-header {
    position: sticky;
    padding: 1rem;
    background: rgba(7, 7, 7, 0.92);
  }

  .site-nav {
    gap: 1rem;
  }

  .site-nav a {
    font-size: 0.7rem;
    letter-spacing: 0;
  }

  .hero {
    min-height: auto;
    padding: 5.4rem 1rem 4rem;
  }

  .scroll-cue {
    display: none;
  }

  .hero-portrait {
    right: -5rem;
    width: min(48vw, 440px);
    height: 62vh;
    opacity: 0.4;
  }

  .hero h1 {
    font-size: 6.4rem;
  }

  .works-heading h2 {
    font-size: 5.7rem;
  }

  .info-section h2 {
    font-size: 3.8rem;
  }

  .contact-block h3 {
    font-size: 3.2rem;
  }

  .works-section,
  .info-section {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .works-heading {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .filters {
    justify-content: flex-start;
  }

  .project-card,
  .project-card.featured,
  .project-card:nth-child(2),
  .project-card:nth-child(3),
  .project-card:nth-child(4),
  .project-card:nth-child(5),
  .project-card:nth-child(6) {
    grid-column: span 12;
  }

}

@media (max-width: 620px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.9rem;
  }

  .brand {
    font-size: 1.25rem;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
    gap: 0.55rem;
  }

  .site-nav a {
    font-size: 0.62rem;
    letter-spacing: 0;
  }

  .hero h1 {
    font-size: 4.2rem;
    line-height: 1.02;
    letter-spacing: 0.014em;
    word-spacing: 0;
  }

  .hero-text {
    font-size: 0.98rem;
  }

  .hero-portrait {
    right: -5.5rem;
    bottom: 0;
    width: 78vw;
    height: 52vh;
    opacity: 0.2;
  }

  .works-heading h2 {
    font-size: 4rem;
    letter-spacing: 0.01em;
  }

  .info-section h2 {
    font-size: 3rem;
    letter-spacing: 0.01em;
  }

  .contact-block {
    margin-top: 3.5rem;
    padding-top: 2.5rem;
  }

  .contact-block h3 {
    font-size: 2.7rem;
    letter-spacing: 0.01em;
  }

  .contact-list {
    grid-template-columns: 1fr;
  }

  .contact-list a,
  .contact-list a:first-child {
    padding: 1rem 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .contact-list a:last-child {
    border-bottom: 0;
  }

  .filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-button {
    width: 100%;
  }

  .filter-button:last-child {
    grid-column: span 2;
  }

  .project-card {
    min-height: 0;
  }

  .project-visual {
    min-height: 15rem;
  }

  .dialog-gallery {
    grid-template-columns: 1fr;
  }

  .dialog-gallery a {
    min-height: 12rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
