* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #ffffff;
  color: #111;
  font-size: 16px;
  line-height: 1.5;
}

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

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

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 36px 5px;
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  z-index: 10;

}

body.work-page .site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;

  background: transparent;
  backdrop-filter: none;

  z-index: 9999;
}

.logo {
  display: inline-flex;
  flex-direction: column;
  width: 205px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 25px;
  font-weight: 100;
  line-height: 0.82;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.surname {
    margin-left: 0px;
}

nav {
  display: flex;
  gap: 40px;
  font-size: 13px;
  font-weight: 250;
  position: relative;
  top: -12px;
}

.home {
  padding: 70px 36px 120px;
}

.intro {
  max-width: 760px;
  margin-bottom: 90px;
}

.intro p {
  font-size: clamp(32px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.05em;
  margin: 0;
}

.project-list {
  border-top: 1px solid #111;
}

.project-link {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid #111;
  align-items: baseline;
}

.project-link span,
.project-link p {
  color: #555;
}

.project-link h2 {
  font-size: clamp(28px, 5vw, 58px);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: normal;
  margin: 0;
}

.project-link:hover h2 {
  font-style: italic;
}

.project-page {
  padding: 70px 36px 120px;
}

.project-intro {
  max-width: 780px;
  margin-bottom: 80px;
}

.project-intro h1 {
  font-size: clamp(46px, 9vw, 110px);
  line-height: 0.9;
  letter-spacing: -0.06em;
  font-weight: normal;
  margin: 0 0 28px;
}

.project-intro p {
  max-width: 560px;
  color: #333;
}

.photo-sequence {
  display: flex;
  flex-direction: column;
  gap: 36px;
  max-width: 1100px;
}

.photo-sequence img {
  width: 100%;
  height: auto;
}

.back-link {
  display: inline-block;
  margin-top: 70px;
  border-bottom: 1px solid #111;
}

.about-page {
  max-width: 350px;
  padding: 100px 36px;
}

.about-page h1 {
  font-size: clamp(48px, 8vw, 96px);
  line-height: 0.9;
  letter-spacing: -0.06em;
  font-weight: normal;
  margin: 0 0 40px;
}

.about-page p {
  font-size: 14px;
  line-height: 1.45;
  max-width: 420px;
  margin-left: 0;
  margin-right: 0;
}

.about-page a {
  border-bottom: 1px solid #111;
}

@media (max-width: 700px) {
  .site-header {
    padding: 22px;
    align-items: flex-start;
    gap: 20px;
  }

  nav {
    gap: 12px;
    font-size: 12px;
  }

  .home,
  .project-page,
  .about-page {
    padding-left: 22px;
    padding-right: 22px;
  }

  .project-link {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}
/* WORK PAGE */

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 35px;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.02em;
}

nav {
  display: flex;
  gap: 40px;
}

.gallery {
  column-count: 4;
  column-gap: 28px;
  padding: 35px;
}

.gallery img {
  width: 100%;
  margin-bottom: 28px;
  break-inside: avoid;
}

@media (max-width: 1200px) {
  .gallery {
    column-count: 3;
  }
}

@media (max-width: 800px) {
  .gallery {
    column-count: 2;
  }
}

@media (max-width: 500px) {
  .gallery {
    column-count: 1;
  }
}
.hero-image {
  width: 100%;
  padding: 0 40px 40px;
}

.hero-image img {
  width: 100%;
  height: calc(100vh - 120px);
  object-fit: contain;
}

nav a {
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

nav a:hover {
  border-bottom: 1px solid #111;
}

nav a.active {
  border-bottom: 1px solid #111;
}

.site-header nav a {
  color: #111;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
}

.site-header nav a:hover,
.site-header nav a.active {
  border-bottom: 1px solid #111;
}
.hero-gallery {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 0 36px 10px 36px;
    align-items: flex-start;
}

.hero-gallery img {
    height: 600px;      /* misma altura para ambas */
    width: auto;        /* mantiene proporción */
    object-fit: cover;
}

.home-caption {
    width: 80%;
    max-width: 500px;

    margin: 0px auto 10px auto;

    text-align: center;

    font-size: 11px;
    color: #808080;
    line-height: 1.3;
}

.caption {
  margin-top: 12px;
  font-size: 12px;
  color: #808080;
  line-height: 1.3;
}

html.work-page,
html.work-page body {
  height: 100%;
}

.work-series {
  position: relative;
  min-height: 70vh;
  margin-bottom: 0;

  display: flex;
  flex-direction: column;
  justify-content: center;
}
.work-slider {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 40px 0 10px;
    scrollbar-width: none;
    cursor: grab;
}

.work-slider:active {
    cursor: grabbing;
}
.work-slider::-webkit-scrollbar {
    display: none;
}

.work-project {
    width: max-content;
}

.work-images {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.work-images img {
    height: 650px;
    width: auto;
    object-fit: cover;
}

.work-caption {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 40px;
    font-size: 12px;
    color: #808080;
    line-height: 1.3;
}

.work-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    width: 54px;
    height: 72px;

    border: none;
    background: rgba(200, 200, 200, 0.35);
    backdrop-filter: blur(3px);

    color: white;
    font-size: 42px;
    font-weight: 300;

    cursor: pointer;
    z-index: 999;
    transition: all 0.2s ease;
}

.work-arrow.left {
    left: 8px;
}

.work-arrow.right {
    right: 8px;
}

.work-arrow:hover {
    background: rgba(180, 180, 180, 0.55);
}

.about-page {
  max-width: none;
  width: 100%;
  padding: 40px 36px 120px;
}

.about-content {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 80px;
  width: 100%;
  margin: 0 auto;
}

.about-text {
  width: 560px;
  flex-shrink: 0;
}

.about-image {
  width: 520px;
  flex-shrink: 0;
}

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

.contact-intro {
  margin-top: 40px;
  margin-bottom: 50px;
}

.contact-intro p {
  margin-bottom: 28px;
}

.contact-block {
  margin-bottom: 30px;
}

.contact-label {
  font-size: 11px;
  letter-spacing: 2px;
  color: #808080;
  margin-bottom: 8px;
}

.contact-detail {
  font-size: 13px;
  font-style: italic;
  font-weight: 400;
  color: #555;
}

.work-hover-arrow {
  position: fixed;
  right: 40px;
  bottom: 10px;

  font-size: 11px;
  font-weight: 400;
  letter-spacing: 2px;

  color: #000;
  opacity: 0.6;

  cursor: pointer;
  
  pointer-events: auto;
  z-index: 9999;
}
.work-hover-arrow:hover {
  opacity: 1;
}

.work-back-arrow {
    position: fixed;
    left: 40px;
    bottom: 10px;

    font-size: 11px;
    font-weight: 400;
    letter-spacing: 2px;

    color: #000;
    opacity: 0.6;

    cursor: pointer;
    z-index: 9999;
}

.work-back-arrow:hover {
    opacity: 1;
}

.series-label {
    font-style: italic;
}

@media (max-width: 700px) {

  body.work-page .work-series {
    padding-top: 60px;
  }
  
  html,
  body {
    width: 100%;
    overflow-x: hidden;
  }

  .site-header {
    position: relative;
    padding: 24px 18px 36px;
    gap: 20px;
  }

  .logo {
    font-size: 28px;
    width: 150px;
    line-height: 0.9;
  }

  nav {
    display: grid;
    grid-template-columns: auto auto auto;
    column-gap: 22px;
    row-gap: 6px;
    align-items: center;

    font-size: 16px;
    white-space: nowrap;
}

  nav {
    display: grid;
    grid-template-columns: auto auto auto;
    column-gap: 22px;
    row-gap: 6px;
    align-items: center;
}

nav a:nth-child(4) {
    grid-column: 3;
    grid-row: 2;
    justify-self: start;
}

nav a:nth-child(5) {
    grid-column: 3;
    grid-row: 2;
    justify-self: end;
    position: relative;
    top: -3px;
}

    .hero-gallery {
    display: flex;
    justify-content: flex-start;
    gap: 10px;

    overflow-x: auto;
    overflow-y: hidden;

    padding-left: 0px;
    padding-right: 0px;

    scroll-padding-left: 20px;
    scrollbar-width: none;
}

.hero-gallery::-webkit-scrollbar {
    display: none;
}
.hero-gallery img {
    height: 550px;
    width: auto;
    max-width: none;
    flex-shrink: 0;
}

  .home-caption {
    width: 80%;
    max-width: 450px;
    margin: 12px auto 40px auto;

    text-align: center;

    font-size: 11px;
    color: #808080;
    line-height: 1.3;
}
  .work-slider {
  padding: 20px 0 8px;
}

.work-images {
  gap: 16px;
}

 .work-images img {
  width: auto;
  height: 65vh;
  flex-shrink: 0;
}

  .work-caption {
    font-size: 10px;
    line-height: 1.25;
    padding: 0 28px;
    margin-top: 8px;
    margin-bottom: 70px;
  }

  .work-arrow {
    width: 38px;
    height: 52px;
    font-size: 32px;
  }

  .about-content {
    flex-direction: column;
    gap: 36px;
  }

  .about-text {
    width: auto;
  }

  .about-page h1 {
    font-size: 58px;
  }

  .about-page p {
    font-size: 16px;
    line-height: 1.4;
  }

  .about-image {
    width: 100%;
  }

  .about-image img {
    width: 100%;
    height: auto;
  }

  .contact-detail {
    font-size: 14px;
  }

}
.site-footer {
  text-align: center;
  padding: 10px 0 20px;
}

.site-footer div {
  font-size: 7px;
  color: #8a8a8a;
}

.site-footer a {
  font-size: 7px;
  color: #8a8a8a;
  text-decoration: none;
  display: block;
  margin-top: -2px;
}

.site-footer a:hover {
  color: #000;
}
