/* === RESET === */
*,*:before,*:after { box-sizing: inherit; -webkit-user-select: inherit; user-select: inherit }
* { margin: 0; padding: 0 }
html {
  box-sizing: border-box;
  min-height: 100%;
  scroll-behavior: smooth;
  background: #050505;
  overscroll-behavior-y: none;
}
body {
  min-height: 100dvh;
  min-height: 100vh;
  overflow-x: hidden;
  background-color: #050505;
  background:
    radial-gradient(circle at 18% 20%, rgba(154, 112, 75, 0.12), transparent 24%),
    radial-gradient(circle at 82% 16%, rgba(98, 120, 155, 0.1), transparent 20%),
    linear-gradient(160deg, #070707 0%, #0c0d10 46%, #080808 100%);
  color: var(--c-text);
  font-family: "Bricolage Grotesque", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior-y: none;
}

body.modal-open {
  overflow: hidden;
  overscroll-behavior: none;
}

body.modal-open .site_shell,
body.modal-open #Copyright,
body.modal-open #Background,
body.modal-open .noise,
body.modal-open .frame,
body.modal-open .outer_blur {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.modal-open .project_window {
  display: grid !important;
  visibility: visible;
}

/* === VARIABLES === */
:root {
  --c-text: #f6efe6;
  --c-muted: rgba(246, 239, 230, 0.68);
  --c-accent: #d6aa76;
  --c-line: rgba(255, 255, 255, 0.14);
  --glass: rgba(255, 255, 255, 0.06);
  --glass-strong: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 20px 60px rgba(0, 0, 0, 0.24);
  --pad: clamp(18px, 3vw, 34px);
  --sidebar: clamp(260px, 24vw, 340px);
}

/* === BACKGROUND === */
#Background {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

#Background canvas {
  width: 100%;
  height: 100%;
  opacity: 0.5;
  display: block;
  transition: opacity 0.2s ease;
  will-change: transform, opacity;
}

body.modal-open #Background canvas {
  opacity: 0.18;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 8px 8px;
  mask-image: radial-gradient(circle at center, black, transparent 78%);
  opacity: 0.16;
}

.frame {
  position: fixed;
  inset: var(--pad);
  z-index: 4;
  pointer-events: none;
  display: none;
}

.outer_blur {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.outer_blur_top,
.outer_blur_right,
.outer_blur_bottom,
.outer_blur_left {
  position: fixed;
  background: rgba(7, 7, 7, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.outer_blur_top {
  top: 0;
  left: 0;
  right: 0;
  height: var(--pad);
}

.outer_blur_bottom {
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--pad);
}

.outer_blur_left {
  top: var(--pad);
  left: 0;
  bottom: var(--pad);
  width: var(--pad);
}

.outer_blur_right {
  top: var(--pad);
  right: 0;
  bottom: var(--pad);
  width: var(--pad);
}

.frame_line {
  position: absolute;
  background: rgba(255, 255, 255, 0.22);
}

.frame_line-left,
.frame_line-right {
  top: 0;
  bottom: 0;
  width: 1px;
}

.frame_line-left { left: 0 }
.frame_line-right { right: 0 }

.frame_line-top,
.frame_line-bottom {
  left: 0;
  right: 0;
  height: 1px;
}

.frame_line-top { top: 0 }
.frame_line-bottom { bottom: 0 }

/* === LAYOUT === */
.site_shell {
  position: relative;
  z-index: 2;
  width: calc(100vw - (var(--pad) * 2));
  margin: 0;
  padding: var(--pad);
}

.siteHeader {
  position: fixed;
  left: calc(var(--pad) * 2);
  top: calc(var(--pad) * 2);
  width: min(280px, calc(100vw - (var(--pad) * 4)));
  display: grid;
  gap: 26px;
  padding: 20px;
}

.glass_panel {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.05)),
    linear-gradient(135deg, rgba(255,255,255,0.09), rgba(255,255,255,0.02));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
}

.project_window_panel,
.project_window_media {
  position: relative;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.025)),
    rgba(12, 12, 12, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--glass-shadow);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.project_window_panel::before,
.project_window_media::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.15), transparent 24%, transparent 74%, rgba(255,255,255,0.05)),
    radial-gradient(circle at top left, rgba(255,255,255,0.08), transparent 32%);
  opacity: 0.78;
  pointer-events: none;
}

.siteHeader_brand { display: grid; gap: 12px }

.siteHeader_kicker,
.eyebrow,
.info_label,
.project_index,
.project_window_meta {
  color: var(--c-accent);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.siteHeader_title {
  max-width: 7ch;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(42px, 4.1vw, 68px);
  line-height: 0.88;
  font-weight: 500;
  letter-spacing: -0.05em;
}

.siteHeader_intro {
  max-width: 20ch;
  color: var(--c-muted);
  font-size: 13px;
  line-height: 1.6;
}

.siteHeader_nav ol {
  display: grid;
  gap: 14px;
  list-style: none;
}

.siteHeader_nav ._text {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--c-muted);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.25s ease;
}

.siteHeader_nav ._text::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--c-accent);
  transform: scaleX(0.45);
  transform-origin: left center;
  transition: transform 0.25s ease;
}

.siteHeader_nav li.is-selected ._text,
.siteHeader_nav ._text:hover { color: var(--c-text) }
.siteHeader_nav li.is-selected ._text::before,
.siteHeader_nav ._text:hover::before { transform: scaleX(1) }

.content {
  position: relative;
  min-height: calc(100vh - (var(--pad) * 3));
  overflow: visible;
  padding-bottom: 110px;
  padding-right: 0;
  justify-items: end;
  margin-left: clamp(340px, 33vw, 470px);
}

.panel {
  padding: clamp(24px, 4vw, 42px);
  width: min(100%, 980px);
  justify-self: end;
}

.page {
  display: none;
  position: relative;
  height: calc(100vh - (var(--pad) * 3));
  overflow-y: auto;
  padding-right: 10px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.page::-webkit-scrollbar { display: none }

.page.is-active {
  display: block;
  animation: pageFade 0.35s ease;
}

.panel-home,
.panel-projects,
.panel-info,
.panel-contact {
  min-height: calc(100vh - (var(--pad) * 3));
}

.panel-projects.page {
  position: relative;
  height: auto;
  min-height: calc(100vh - (var(--pad) * 3) + 260px);
  overflow: visible;
  padding-bottom: 220px;
}

.panel-info.page,
.panel-contact.page {
  position: relative;
  height: auto;
  min-height: calc(100vh - (var(--pad) * 3) + 180px);
  overflow: visible;
  padding-bottom: 180px;
}

.panel-home {
  position: relative;
  overflow: visible;
}

.panel-home.page {
  height: auto;
  min-height: calc(100vh - (var(--pad) * 3));
  overflow: visible;
}

.hero_grid {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(280px, 0.72fr);
  gap: clamp(22px, 3.8vw, 56px);
  align-items: center;
  min-height: calc(min(78vh, 720px) - 56px);
  margin-top: 10px;
}

.hero_title,
.section_title,
.contact_title {
  font-family: "Cormorant Garamond", serif;
  line-height: 0.9;
  font-weight: 500;
  letter-spacing: -0.055em;
}

.hero_title {
  max-width: 9.2ch;
  font-size: clamp(48px, 6.6vw, 110px);
  line-height: 0.92;
}

.hero_copy {
  display: grid;
  gap: 20px;
  align-self: center;
  transform: none;
}

.hero_copy p {
  max-width: 27ch;
  color: var(--c-muted);
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.68;
}

.hero_manifesto {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero_manifesto span {
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  color: var(--c-text);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section_heading {
  max-width: 880px;
  margin-top: 8px;
}

.section_title {
  font-size: clamp(48px, 7vw, 100px);
}

.project_sequence {
  display: grid;
  gap: 2px;
  margin-top: 12px;
  padding-bottom: 0;
}

.project_entry {
  display: grid;
  gap: 12px;
  width: min(100%, 860px);
  padding: 10px 0 12px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  text-align: left;
  color: var(--c-text);
  cursor: pointer;
  transition: transform 0.28s ease, border-color 0.28s ease, opacity 0.28s ease;
}

.project_entry-left { justify-self: start }
.project_entry-right { justify-self: end }

.project_entry:hover {
  transform: translateX(8px);
  border-color: rgba(214, 170, 118, 0.34);
  opacity: 1;
}

.project_name {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(56px, 8.2vw, 108px);
  line-height: 0.84;
  font-weight: 500;
  letter-spacing: -0.06em;
}

.project_badge {
  display: inline-flex;
  align-items: center;
  margin-left: 12px;
  padding: 2px 8px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255,255,255,0.7);
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: middle;
}

.project_line {
  max-width: 40ch;
  color: var(--c-muted);
  font-size: clamp(14px, 1.5vw, 18px);
  line-height: 1.55;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.info_columns {
  display: grid;
  gap: 18px;
  margin-top: 36px;
}

.info_strip {
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.info_copy,
.info_list li {
  max-width: 42ch;
  margin-top: 10px;
  color: var(--c-muted);
  font-size: 16px;
  line-height: 1.75;
}

.info_list {
  list-style: none;
  display: grid;
  gap: 8px;
}

.contact_panel {
  display: grid;
  gap: 20px;
  margin-top: 20px;
  padding: 0;
}

.contact_title {
  max-width: 14ch;
  font-size: clamp(54px, 8vw, 104px);
}

.contact_note {
  max-width: 42ch;
  color: var(--c-muted);
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.7;
}

.contact_links {
  display: grid;
  gap: 12px;
  margin-top: 6px;
}

.contact_text {
  font-size: clamp(18px, 2vw, 30px);
  line-height: 1.4;
}

a,a:visited { color: var(--c-text); text-decoration: none }
.text-btn { transition: opacity 0.25s ease, color 0.25s ease }
a:hover { opacity: 0.75 }

#Copyright {
  position: fixed;
  left: 10px;
  bottom: 8px;
  z-index: 3;
  color: rgba(246, 239, 230, 0.38);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* === MODAL === */
.project_window {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease;
  will-change: opacity;
  overscroll-behavior: contain;
}

.project_window.is-open {
  opacity: 1;
  pointer-events: auto;
}

.project_window_backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 5, 0.88);
}

.project_window_panel {
  z-index: 1;
  width: min(1680px, 95vw);
  height: min(92vh, 1020px);
  display: grid;
  grid-template-columns: minmax(0, 1.78fr) minmax(340px, 0.42fr);
  gap: 18px;
  padding: 16px;
  overflow: hidden;
  background: rgba(14, 14, 14, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.44);
  transform: translateY(4px);
  opacity: 0;
  transition: transform 0.12s ease, opacity 0.12s ease;
  will-change: transform, opacity;
  contain: layout paint;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.project_window_panel::-webkit-scrollbar,
.project_window_content::-webkit-scrollbar {
  width: 10px;
}

.project_window_panel::-webkit-scrollbar-track,
.project_window_content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
}

.project_window_panel::-webkit-scrollbar-thumb,
.project_window_content::-webkit-scrollbar-thumb {
  background: rgba(214, 170, 118, 0.5);
  border-radius: 999px;
  border: 2px solid rgba(12, 12, 12, 0.8);
}

.project_window_panel,
.project_window_content {
  scrollbar-width: thin;
  scrollbar-color: rgba(214, 170, 118, 0.6) rgba(255, 255, 255, 0.05);
}

.project_window_panel::before,
.project_window_media::before {
  display: none;
}

.project_window.is-open .project_window_panel {
  transform: translateY(0);
  opacity: 1;
}

.project_window_close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  padding: 9px 13px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  background: rgba(12,12,12,0.9);
  color: var(--c-text);
  font: inherit;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

.project_window_media {
  min-height: 0;
  height: 100%;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: start;
}

.project_window_stage {
  min-height: 0;
  height: 100%;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 26px 0 10px 0;
  background:
    radial-gradient(circle at center, rgba(255,255,255,0.045), transparent 64%),
    radial-gradient(circle at center, rgba(214,170,118,0.08), transparent 78%);
}

.project_window_stage.is-empty::before {
  content: "Imagen pendiente";
  color: rgba(246, 239, 230, 0.72);
  font-size: 15px;
  letter-spacing: 0.04em;
}

.project_window_stage img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 26px;
  box-shadow:
    0 26px 56px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(255,255,255,0.08);
}

.project_window_thumbs {
  display: flex;
  gap: 10px;
  padding: 0 8px 6px;
}

.project_window_thumb {
  min-width: 46px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  color: rgba(246,239,230,0.76);
  font: inherit;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}

.project_window_thumb.is-active {
  background: rgba(214, 170, 118, 0.16);
  border-color: rgba(214, 170, 118, 0.42);
  color: var(--c-text);
}

.project_window_content {
  display: grid;
  align-content: start;
  gap: 16px;
  min-width: 0;
  padding: 52px 14px 12px 10px;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.project_window_title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(42px, 4.4vw, 76px);
  line-height: 0.88;
  font-weight: 500;
  letter-spacing: -0.05em;
  overflow-wrap: anywhere;
}

.project_window_role {
  color: rgba(246, 239, 230, 0.88);
  font-size: 14px;
  letter-spacing: 0.08em;
  line-height: 1.6;
  text-transform: uppercase;
}

.project_window_description,
.project_window_hint {
  color: rgba(246, 239, 230, 0.78);
  font-size: 16px;
  line-height: 1.65;
}

.project_window_hint {
  margin-top: 6px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.12);
}

/* === RESPONSIVE === */
@media (max-width: 1100px) {
  .site_shell {
    width: min(100vw - 18px, 1560px);
  }

  .siteHeader {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
  }

  .content {
    min-height: auto;
    overflow: visible;
    display: grid;
    gap: 24px;
    padding-right: 0;
    margin-left: 0;
  }

  .page {
    display: block;
    height: auto;
    overflow: visible;
    padding-right: 0;
  }

  .page.is-active {
    display: block;
    animation: none;
  }

  .hero_grid,
  .project_window_panel {
    grid-template-columns: 1fr;
  }

  .panel-home,
  .panel-projects,
  .panel-info,
  .panel-contact {
    min-height: auto;
  }

  .panel-projects.page,
  .panel-info.page,
  .panel-contact.page,
  .panel-home.page {
    min-height: auto;
    height: auto;
    padding-bottom: 0;
  }

  .panel-projects.page::before,
  .panel-projects.page::after {
    display: none;
  }

  .hero_grid {
    min-height: auto;
    margin-top: 18px;
  }

  .outer_blur { display: none }

  .project_entry {
    justify-self: stretch;
    width: 100%;
  }

  .panel {
    width: 100%;
    justify-self: stretch;
  }

  .project_sequence { margin-top: 28px }

  .project_window_panel {
    width: calc(100vw - 18px);
    height: min(88vh, 980px);
    grid-template-columns: 1fr;
  }

  .project_window_content {
    padding: 8px 4px 4px;
  }
}

@keyframes pageFade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .project_window {
    padding:
      calc(env(safe-area-inset-top, 0px) + 10px)
      9px
      calc(env(safe-area-inset-bottom, 0px) + 12px);
    place-items: center;
  }

  .site_shell {
    width: min(100vw - 10px, 1500px);
    margin-top: 0;
    padding:
      calc(env(safe-area-inset-top, 0px) + 8px)
      5px
      calc(env(safe-area-inset-bottom, 0px) + 18px);
  }

  .siteHeader {
    gap: 18px;
    padding: calc(env(safe-area-inset-top, 0px) + 76px) 0 0;
    margin-bottom: 12px;
  }

  .siteHeader_brand,
  .panel {
    position: relative;
    overflow: visible;
    border-radius: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .siteHeader_brand::before,
  .panel::before {
    display: none;
  }

  .siteHeader_brand {
    gap: 14px;
    padding: 24px 20px 20px;
  }

  .siteHeader_nav {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 8px);
    left: 5px;
    right: 5px;
    z-index: 12;
    padding: 6px;
    border-radius: 22px;
    background: rgba(8, 8, 8, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: none;
    backdrop-filter: blur(8px) saturate(118%);
    -webkit-backdrop-filter: blur(8px) saturate(118%);
  }

  .siteHeader_nav ol {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    overflow: visible;
    scrollbar-width: none;
  }

  .siteHeader_nav ol::-webkit-scrollbar { display: none }

  .siteHeader_nav li {
    list-style: none;
    min-width: 0;
  }

  .siteHeader_nav ._text {
    justify-content: center;
    gap: 0;
    width: 100%;
    padding: 10px 4px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.015);
    font-size: 9px;
    letter-spacing: 0.11em;
    white-space: nowrap;
  }

  .siteHeader_nav ._text::before { display: none }

  .siteHeader_nav li.is-selected ._text {
    background: rgba(214, 170, 118, 0.14);
    border-color: rgba(214, 170, 118, 0.34);
  }

  .panel {
    padding: 22px 20px;
    scroll-margin-top: 90px;
  }

  .content {
    gap: 32px;
  }

  .siteHeader_title {
    max-width: 8ch;
    font-size: clamp(50px, 14vw, 76px);
  }

  .siteHeader_intro {
    max-width: none;
    font-size: 14px;
    line-height: 1.68;
  }

  .hero_grid {
    gap: 24px;
    margin-top: 14px;
  }

  .hero_title {
    max-width: 8.4ch;
    font-size: clamp(44px, 12.2vw, 72px);
    line-height: 0.92;
  }

  .hero_copy {
    gap: 20px;
  }

  .hero_copy p {
    max-width: none;
    font-size: 15px;
    line-height: 1.72;
  }

  .hero_manifesto {
    gap: 8px;
  }

  .hero_manifesto span {
    padding: 9px 12px;
    font-size: 10px;
    letter-spacing: 0.1em;
  }

  .section_heading {
    margin-top: 0;
  }

  .section_title,
  .contact_title {
    font-size: clamp(42px, 11.8vw, 66px);
    line-height: 0.92;
  }

  .project_sequence {
    gap: 12px;
    margin-top: 24px;
    padding-bottom: 20px;
  }

  .project_entry {
    gap: 10px;
    padding: 18px 0 20px;
    border-radius: 0;
    border-width: 0 0 1px;
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.08);
    background: transparent;
    box-shadow: none;
  }

  .project_entry:hover {
    transform: none;
    border-color: rgba(255, 255, 255, 0.14);
  }

  .project_name {
    font-size: clamp(38px, 11.2vw, 56px);
    line-height: 0.88;
  }

  .project_badge {
    margin-left: 8px;
    padding: 3px 8px;
  }

  .project_line {
    max-width: none;
    font-size: 12px;
    letter-spacing: 0.08em;
  }

  .info_columns {
    gap: 0;
    margin-top: 26px;
  }

  .info_strip {
    margin-top: 18px;
    padding-top: 18px;
  }

  .info_copy,
  .info_list li {
    max-width: none;
    font-size: 15px;
    line-height: 1.7;
  }

  .contact_panel {
    gap: 18px;
    margin-top: 14px;
  }

  .contact_note {
    max-width: none;
    font-size: 15px;
  }

  .contact_text {
    font-size: clamp(20px, 5.8vw, 28px);
  }

  .project_window_panel {
    width: 100%;
    height: auto;
    max-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 22px);
    gap: 10px;
    padding: 12px 12px 10px;
    border-radius: 30px;
    overflow: auto;
  }

  .project_window_backdrop {
    background: #030303;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .project_window_close {
    position: sticky;
    top: 0;
    right: auto;
    margin-left: auto;
    padding: 9px 12px;
    margin-bottom: 0;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.24);
  }

  .project_window_media {
    min-height: auto;
    grid-template-rows: minmax(214px, auto) auto;
  }

  .project_window_stage {
    min-height: 214px;
    padding: 4px 0 8px;
  }

  .project_window_stage img {
    width: 100%;
    max-height: min(34dvh, 300px);
    border-radius: 24px;
    box-shadow:
      0 24px 52px rgba(0, 0, 0, 0.38),
      0 0 0 1px rgba(255,255,255,0.08);
  }

  .project_window_thumbs {
    padding: 0 0 4px;
  }

  .project_window_content {
    gap: 12px;
    padding: 0 2px 6px;
    overflow: visible;
  }

  .project_window_panel::after {
    content: "Desliza para ver mas";
    position: sticky;
    bottom: 0;
    display: block;
    margin-top: -12px;
    padding: 28px 0 6px;
    background: linear-gradient(180deg, rgba(14, 14, 14, 0), rgba(14, 14, 14, 0.96) 68%);
    color: rgba(246, 239, 230, 0.48);
    font-size: 10px;
    letter-spacing: 0.16em;
    text-align: center;
    text-transform: uppercase;
    pointer-events: none;
  }

  .project_window_title {
    font-size: clamp(34px, 11.8vw, 54px);
  }

  .project_window_role {
    font-size: 11px;
    line-height: 1.48;
  }

  .project_window_description,
  .project_window_hint {
    font-size: 14px;
    line-height: 1.58;
  }

  #Copyright {
    position: static;
    margin-top: 12px;
    padding-right: 12px;
    text-align: right;
    font-size: 10px;
  }
}

@media (max-width: 520px) {
  .project_window_backdrop {
    background: #020202;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .project_window {
    padding:
      calc(env(safe-area-inset-top, 0px) + 8px)
      6px
      calc(env(safe-area-inset-bottom, 0px) + 10px);
  }

  .site_shell {
    width: min(100vw - 6px, 1500px);
    padding:
      calc(env(safe-area-inset-top, 0px) + 6px)
      3px
      calc(env(safe-area-inset-bottom, 0px) + 14px);
  }

  .siteHeader_brand,
  .siteHeader_nav,
  .panel,
  .project_window_panel {
    border-radius: 24px;
  }

  .siteHeader_brand,
  .panel {
    border-radius: 0;
  }

  .siteHeader {
    gap: 16px;
    padding-top: calc(env(safe-area-inset-top, 0px) + 72px);
    margin-bottom: 10px;
  }

  .siteHeader_nav {
    left: 3px;
    right: 3px;
    padding: 5px;
  }

  .siteHeader_brand,
  .panel {
    padding: 20px 17px;
  }

  .hero_grid {
    gap: 14px;
  }

  .siteHeader_title {
    max-width: 7.4ch;
    font-size: clamp(42px, 14.2vw, 62px);
  }

  .hero_title {
    max-width: 7.1ch;
    font-size: clamp(36px, 12.4vw, 54px);
  }

  .hero_copy p {
    font-size: 14px;
    line-height: 1.6;
  }

  .project_name {
    font-size: clamp(34px, 10.8vw, 46px);
  }

  .project_sequence {
    padding-bottom: 28px;
  }

  .project_line {
    font-size: 11px;
  }

  .contact_text {
    font-size: clamp(18px, 6.2vw, 24px);
  }

  .project_window_panel {
    width: 100%;
    max-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 18px);
    padding: 10px;
  }

  .siteHeader_nav ol {
    gap: 4px;
  }

  .siteHeader_nav ._text {
    padding: 9px 2px;
    font-size: 8px;
    letter-spacing: 0.09em;
  }

  .project_window_stage {
    min-height: 188px;
    padding-top: 2px;
  }

  .project_window_stage img {
    max-height: min(29dvh, 240px);
  }

  .project_window_title {
    font-size: clamp(30px, 11.5vw, 42px);
  }

  .project_window_description,
  .project_window_hint {
    font-size: 13px;
    line-height: 1.52;
  }

  #Copyright {
    padding-right: 10px;
    font-size: 9px;
  }
}
