:root {
  --bg: #ffffff;
  --text: #000000;
  --line: #000000;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', Helvetica, Arial, sans-serif;
  font-weight: 400;
}

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

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

.site-header,
.page,
.site-footer {
  padding-left: 8px;
  padding-right: 8px;
}

.top-rule,
.bottom-rule,
.table-row {
  border-top: 1px solid var(--line);
}

.site-header {
  padding-top: 4px;
}

.header-main {
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.brand-logo {
  height: 22px;
  width: auto;
}
.brand-name {
  font-size: 19px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.01em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 80px;
  font-size: 19px;
  line-height: 1;
  font-weight: 500;
}
.main-nav a {
  letter-spacing: 0.04em;
}

.header-subtitle {
  border-top: 1px solid var(--line);
  font-size: 10px;
  line-height: 1.1;
  padding: 5px 0 5px;
  font-weight: 400;
}

.page {
  padding-top: 12px;
}

.section-work h1 {
  margin: 0 0 26px;
  font-size: 17px;
  font-weight: 400;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 6px;
}

.project-card img {
  aspect-ratio: 1.25;
  width: 100%;
  object-fit: cover;
}

.project-card h2 {
  margin: 4px 0 0;
  font-size: 11px;
  line-height: 1.05;
  font-weight: 400;
  text-transform: uppercase;
}

.works-table {
  margin-top: 124px;
}

.table-heading {
  padding-top: 4px;
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  color: #8c8c8c;
}

.table-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 64px;
  gap: 12px;
  align-items: center;
  min-height: 29px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
}

.table-row span:last-child {
  text-align: right;
}

.project-card a {
  display: block;
}

.site-footer {
  padding-top: 30px;
  padding-bottom: 6px;
  font-size: 11px;
  line-height: 1.2;
}

.works-table {
  width: 100%;
  margin-top: 0;
}

.footer-bottom {
  margin-top: 38px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 24px;
  align-items: start;
}

.footer-block p,
.footer-block a {
  margin: 0;
  display: block;
}

.footer-locations {
  justify-self: start;
}

.footer-links {
  justify-self: start;
}

.footer-locations p + p,
.footer-links a,
.footer-links p + a,
.footer-links a + a {
  margin-top: 2px;
}

@media (max-width: 900px) {
  .header-main {
    gap: 16px;
    align-items: flex-start;
    flex-direction: column;
    padding: 8px 0;
  }

  .main-nav {
    gap: 20px;
    flex-wrap: wrap;
  }

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

  .works-table {
    margin-top: 72px;
  }
}

@media (max-width: 640px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .table-row {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 6px 0;
  }

  .table-row span:last-child {
    text-align: left;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }
}
.project-layout {
  display: grid;
  grid-template-columns: 275px minmax(0, 1fr);  gap: 36px;
  padding: 28px 8px 40px;
  align-items: start;
}

.project-sidebar {
  position: sticky;
  top: 24px;
  align-self: start;
}

.sidebar-block {
  padding-bottom: 6px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.sidebar-block p {
  margin: 0 0 4px;
}

.sidebar-block h3 {
  margin: 0 0 8px;
  font-size: 11px;
  line-height: 1.1;
  font-weight: 400;
  text-transform: uppercase;
  color: #8c8c8c;
}

.sidebar-block p {
  margin: 0 0 8px;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 400;
  text-transform: uppercase;
}

.project-content {
  min-width: 0;
}

.project-content h1 {
  margin: 0 0 18px;
  max-width: 900px;
  font-size: 34px;
  line-height: 1.05;
  font-weight: 500;
  text-transform: uppercase;
}

.project-intro {
  margin: 0 0 28px;
  max-width: 760px;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 400;
  color: #555555;
}

.project-main-image {
  display: block;
  width: 100%;
  height: auto;
}

.project-caption {
  margin: 20px 0 2px;
  font-weight: 600;
}

.project-content .project-intro {
  margin: 0 0 8px;
}

.project-video {
  width: 100%;
  max-width: none; /* 🔥 evita límites */
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  margin-top: 12px;
  margin-bottom: 12px;
}

.project-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.project-content {
  min-width: 0;
  width: 100%;
  max-width: none;
}

.project-gifs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
  margin-bottom: 12px;
}

.project-gifs img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.project-gifs-4 {
  grid-template-columns: repeat(4, 1fr);
}

.project-divider {
  margin-top: 12px;
}

.about-layout {
  display: grid;
  grid-template-columns: 520px minmax(0, 1fr);
  column-gap: 8px;
  padding: 12px 8px 0;
  align-items: stretch;
}

.about-photo img {
  width: 100%;
  height: auto;
  display: block;
}

.about-caption {
  margin: 4px 0 0;
  font-size: 11px;
  line-height: 1.1;
  font-weight: 400;
  text-transform: uppercase;
}

.about-text {
  position: relative;
  padding-left: 12px;
  max-width: 1000px;
}

.about-text::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 1px;
  background: var(--line);
}

.about-text p {
  margin: 0 0 18px;
  font-size: 17px;
  line-height: 1.25;
}

.project-video-grid {
  display: grid;
  gap: 8px;
  width: 100%;
  margin-top: 16px;
  margin-bottom: 24px;
}

.project-video-grid-5 {
  grid-template-columns: repeat(5, 1fr);
}

.project-video-grid video {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  display: block;
}

@media (max-width: 900px) {
  .project-video-grid-5 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .project-video-grid-5 {
    grid-template-columns: 1fr;
  }
}

.project-single-image {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 12px;
  margin-bottom: 12px;
}

.image-mosaic {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin-top: 12px;
  margin-bottom: 12px;
}

.mosaic-row {
  display: grid;
  gap: 8px;
  width: 100%;
}

.mosaic-row-4 {
  grid-template-columns: repeat(4, 1fr);
}

.mosaic-row-3 {
  grid-template-columns: repeat(3, 1fr);
}

.mosaic-row img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

.fullscreen-gallery {
  position: relative;
  width: 100%;
  height: calc(100vh - 70px);
  overflow: hidden;
  margin-top: 12px;
}

.gallery-track {
  width: 100%;
  height: 100%;
  position: relative;
}

.gallery-slide {
  position: absolute;
  inset: 0;
  display: none;
}

.gallery-slide.active {
  display: block;
}

.gallery-slide img,
.gallery-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Flechas */
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: transparent;
  border: 0;
  color: #000000;      /* negro */
  font-size: 24px;     /* antes 42px → ahora más pequeño */
  cursor: pointer;
  padding: 8px;        /* opcional, reduce área */
}

.gallery-prev {
  left: 16px;
}

.gallery-next {
  right: 16px;
}

.fullscreen-gallery {
  margin-top: 0px;
  margin-bottom: 12px;
}

.footer-contact {
  padding: 0 8px 16px;
  margin-top: 24px;
}

.footer-top-line,
.footer-bottom-line {
  width: 100%;
  border-top: 1px solid #000;
}

/* BLOQUE SUPERIOR */

.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-top: 18px;
  padding-bottom: 48px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* frase pequeña */

.footer-kicker {
  margin: 0; 
  font-size: 14px;
  line-height: 1;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0;
}

/* email */

.footer-email {
  font-size: 34px;
  line-height: 0.95;
  font-weight: 700;
  letter-spacing: -0.04em;
}

/* logo más pequeño */

.footer-logo {
  width: 110px;
  height: auto;
  display: block;
}

/* BLOQUE CENTRAL */

.footer-middle {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  margin-top: 48px;
  margin-bottom: 18px;
}

/* izquierda */

.footer-locations {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* derecha */

.footer-socials {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  justify-self: end;
  text-align: right;
  align-items: flex-end;
}

.footer-locations p,
.footer-socials a {
  margin: 0;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 400;
  text-transform: uppercase;
}

/* BLOQUE INFERIOR */

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  margin-bottom: 9px;
}

.footer-copy,
.footer-signature {
  margin: 0;
  font-size: 11px;
  line-height: 1;
  font-weight: 400;
  color: #8f8f8f;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.journal-page {
  padding: 8px 8px 80px;
}

.journal-columns {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 8px;
}

/* línea vertical que crece con toda la página */
.journal-columns::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: var(--line);
  transform: translateX(-0.5px);
}

.journal-column {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.journal-column:first-child {
  padding-right: 8px;
}

.journal-column:last-child {
  padding-left: 8px;
}

.journal-post img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  display: block;
}

.journal-post-meta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  line-height: 1.1;
  font-weight: 400;
  text-transform: uppercase;
}

.journal-post p {
  margin: 8px 0 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.05;
  font-weight: 400;
  text-transform: uppercase;
}

@media (max-width: 640px) {
  .project-layout {
    display: block;
    padding: 16px 8px 32px;
  }

  .project-sidebar {
    position: static;
    width: 100%;
    margin-bottom: 32px;
  }

  .project-content {
    width: 100%;
    max-width: none;
  }

  .project-content h1 {
    font-size: 34px;
    line-height: 1;
    max-width: 100%;
    margin-bottom: 18px;
  }

  .project-intro {
    max-width: 100%;
    font-size: 14px;
    line-height: 1.35;
    margin-bottom: 24px;
  }

  .project-video,
  .project-single-image,
  .project-gifs,
  .image-mosaic,
  .project-video-grid {
    width: 100%;
  }

  .project-gifs,
  .project-gifs-4 {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .project-video-grid-5 {
    grid-template-columns: 1fr;
  }

  .mosaic-row,
  .mosaic-row-3,
  .mosaic-row-4 {
    grid-template-columns: 1fr;
  }

  .mosaic-row img {
    height: auto;
    aspect-ratio: auto;
  }
}

@media (max-width: 640px) {
  .about-layout {
    display: block;
    padding: 16px 8px 0;
  }

  .about-photo {
    width: 100%;
    margin-bottom: 20px;
  }

  .about-photo img {
    width: 100%;
    height: auto;
    display: block;
  }

  .about-text {
    max-width: none;
    padding-left: 0;
  }

  .about-text::before {
    display: none;
  }

  .about-text p {
    margin: 0 0 18px;
    font-size: 16px;
    line-height: 1.25;
  }

  .about-caption {
    margin-top: 4px;
    font-size: 10px;
  }
}
@media (max-width: 640px) {

  /* HEADER */

  .site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg);
  }

  .header-main {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .brand-logo {
    height: 18px;
  }

  .brand-name {
    font-size: 14px;
  }

  .main-nav {
    gap: 14px;
    font-size: 14px;
  }

  /* FOOTER */

  .footer-main {
    display: grid;
    grid-template-columns: 1fr 72px;
    gap: 12px;
    align-items: start;
  }

  .footer-left {
    min-width: 0;
    gap: 10px;
  }

  .footer-kicker {
    margin: 0;
    font-size: 16px;
    line-height: 1.05;
    max-width: 260px;
  }

  .footer-email {
    font-size: 28px;
    line-height: 0.95;
    letter-spacing: -0.05em;
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .footer-logo {
    width: 72px;
    max-width: 72px;
    height: auto;
    justify-self: end;
  }

  .footer-middle {
    margin-top: 60px;
  }

  .footer-bottom {
    gap: 12px;
  }

  .footer-copy,
  .footer-signature {
    font-size: 10px;
    line-height: 1.1;
  }
}
