﻿/* Global design tokens */
:root {
  --color-background: #f2f2f0;
  --color-surface: #ffffff;
  --color-text: #111111;
  --color-text-soft: #666666;
  --color-border: rgba(17, 17, 17, 0.14);
  --color-gallery-gap: 0.38rem;
  --nav-height: 88px;
  --container-width: 1240px;
  --transition-smooth: 260ms ease;
  --shadow-soft: 0 30px 80px rgba(0, 0, 0, 0.16);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Jost", sans-serif;
  color: var(--color-text);
  background: var(--color-background);
  line-height: 1.7;
  letter-spacing: 0.02em;
}

body.lightbox-open {
  overflow: hidden;
}

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

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

button {
  font: inherit;
}

.container {
  max-width: var(--container-width);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-nav {
  min-height: var(--nav-height);
  background: rgba(242, 242, 240, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(17, 17, 17, 0.06);
}

.site-nav__inner {
  min-height: var(--nav-height);
}

.site-logo {
  font-size: 1.85rem;
  letter-spacing: 0.34rem;
  font-weight: 500;
}

.site-nav__links {
  gap: 1.8rem;
}

.site-nav__links .nav-link {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.24rem;
  padding: 0.5rem 0;
  position: relative;
}

.site-nav__links .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--color-text);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition-smooth);
}

.site-nav__links .nav-link:hover::after,
.site-nav__links .nav-link:focus-visible::after {
  transform: scaleX(1);
}

.site-nav__toggle {
  border: 0;
  padding-right: 0;
}

.site-nav__toggle:focus {
  box-shadow: none;
}

.hero-section {
  position: relative;
  min-height: calc(100vh - var(--nav-height));
  overflow: hidden;
  background: #050505;
}

.hero-section__media,
.hero-section__overlay {
  position: absolute;
  inset: 0;
}

.hero-section__media {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.94) 0%, rgba(0, 0, 0, 0.72) 45%, rgba(0, 0, 0, 0.88) 100%);
  transform: scale(1.05);
}

.hero-section__overlay {
  background:
    radial-gradient(circle at 60% 35%, rgba(255, 255, 255, 0.06), transparent 20%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.55));
}

.hero-section__content,
.gallery-hero__content {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #ffffff;
}

.hero-section__eyebrow,
.section-kicker,
.section-heading p {
  text-transform: uppercase;
  letter-spacing: 0.46rem;
  font-size: 0.8rem;
}

.hero-section__eyebrow {
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.72);
}

.hero-section h1,
.gallery-hero h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(4rem, 10vw, 7.5rem);
  font-weight: 500;
  letter-spacing: 0.15rem;
  line-height: 0.95;
  margin-bottom: 1rem;
}

.hero-section__subtitle,
.gallery-hero__subtitle {
  font-size: 1rem;
  letter-spacing: 0.34rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 2.5rem;
  transform: translateX(-50%);
  z-index: 1;
  width: 2rem;
  height: 3.5rem;
  display: grid;
  place-items: center;
}

.scroll-indicator span {
  width: 1.2rem;
  height: 1.2rem;
  border-right: 1px solid #ffffff;
  border-bottom: 1px solid #ffffff;
  transform: rotate(45deg);
  animation: float-arrow 2s infinite ease-in-out;
}

@keyframes float-arrow {
  0%, 100% {
    transform: rotate(45deg) translate(0, 0);
    opacity: 0.4;
  }
  50% {
    transform: rotate(45deg) translate(4px, 4px);
    opacity: 1;
  }
}

.section-shell {
  padding: 6rem 0;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 3.5rem;
}

.section-heading span {
  width: min(24vw, 320px);
  height: 1px;
  background: var(--color-border);
}

.section-heading p {
  margin: 0;
  color: #8d8d8d;
}

.portfolio-grid {
  column-count: 3;
  column-gap: 1.25rem;
}

.portfolio-grid--catalog .portfolio-card {
  break-inside: avoid;
}

.empty-gallery-message {
  margin: 0 auto;
  color: var(--color-text-soft);
  text-align: center;
  letter-spacing: 0.08rem;
}

.portfolio-card {
  position: relative;
  width: 100%;
  margin: 0 0 1.25rem;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
  display: block;
  cursor: pointer;
}

.portfolio-card img {
  width: 100%;
  height: auto;
  min-height: 360px;
  object-fit: cover;
  transition: transform 500ms ease, filter 500ms ease;
}

.portfolio-card--tall img {
  min-height: 620px;
}

.portfolio-card--wide img {
  min-height: 420px;
}

.portfolio-card--dark img {
  filter: contrast(1.12);
}

.portfolio-card__overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 1.4rem 1.2rem;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.82));
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--transition-smooth), transform var(--transition-smooth);
}

.portfolio-card__overlay strong {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.14rem;
  text-transform: uppercase;
}

.portfolio-card__overlay small {
  font-size: 0.78rem;
  letter-spacing: 0.16rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.portfolio-card:hover img,
.portfolio-card:focus-visible img,
.gallery-masonry__item:hover img,
.gallery-masonry__item:focus-visible img {
  transform: scale(1.04);
}

.portfolio-card:hover .portfolio-card__overlay,
.portfolio-card:focus-visible .portfolio-card__overlay {
  opacity: 1;
  transform: translateY(0);
}

.gallery-page {
  background: #f6f6f4;
}

.about-page {
  background: #f6f6f4;
}

.about-section__inner {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.about-section__media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #111111;
}

.about-section__media.is-empty {
  display: none;
}

.about-section__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-section__content h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 500;
  line-height: 0.98;
  margin-bottom: 1.25rem;
}

.about-section__content p:last-child {
  max-width: 680px;
  color: #3f3f3f;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.7;
}

.gallery-hero {
  min-height: 46vh;
  background-color: #111111;
  background-position: center 20%;
  background-size: cover;
  background-repeat: no-repeat;
}

.gallery-hero--empty {
  background: #111111;
}

.gallery-hero__content {
  min-height: 46vh;
  max-width: 760px;
}

.gallery-hero__copy {
  max-width: 620px;
  margin: 1.25rem auto 0;
  color: rgba(255, 255, 255, 0.78);
}

.gallery-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.gallery-selector__link {
  min-width: 150px;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(17, 17, 17, 0.08);
  background: rgba(255, 255, 255, 0.82);
  text-align: center;
  transition: transform var(--transition-smooth), background var(--transition-smooth), border-color var(--transition-smooth);
}

.gallery-selector__link span,
.gallery-selector__link small {
  display: block;
}

.gallery-selector__link span {
  text-transform: uppercase;
  letter-spacing: 0.18rem;
  font-size: 0.86rem;
}

.gallery-selector__link small {
  margin-top: 0.2rem;
  letter-spacing: 0.08rem;
  color: var(--color-text-soft);
}

.gallery-selector__link:hover,
.gallery-selector__link:focus-visible,
.gallery-selector__link.is-active {
  background: #111111;
  border-color: #111111;
  color: #ffffff;
  transform: translateY(-2px);
}

.gallery-selector__link:hover small,
.gallery-selector__link:focus-visible small,
.gallery-selector__link.is-active small {
  color: rgba(255, 255, 255, 0.72);
}

.gallery-masonry {
  column-count: 4;
  column-gap: var(--color-gallery-gap);
}

.gallery-masonry__item {
  width: 100%;
  display: block;
  margin: 0 0 var(--color-gallery-gap);
  padding: 0;
  border: 1px solid rgba(17, 17, 17, 0.1);
  background: #ffffff;
  overflow: hidden;
  break-inside: avoid;
  cursor: pointer;
}

.gallery-masonry__item img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 450ms ease, filter 450ms ease;
}

.section-kicker {
  margin-bottom: 1rem;
  color: var(--color-text-soft);
}

.contact-panel h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.02;
  margin-bottom: 1.5rem;
}

.contact-panel__details p {
  margin-bottom: 1rem;
  color: #404040;
  font-size: 1rem;
}

.contact-panel {
  background: var(--color-surface);
  padding: 3rem;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
  gap: 2rem;
  align-items: start;
  border: 1px solid rgba(17, 17, 17, 0.08);
  box-shadow: var(--shadow-soft);
}

.contact-panel__details {
  display: grid;
  gap: 1rem;
  justify-items: start;
}

.contact-panel__details a,
.site-footer__links a {
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.22rem;
  font-size: 0.82rem;
}

.contact-panel__details a::after,
.site-footer__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-smooth);
}

.contact-panel__details a:hover::after,
.contact-panel__details a:focus-visible::after,
.site-footer__links a:hover::after,
.site-footer__links a:focus-visible::after {
  transform: scaleX(1);
}

.site-footer {
  padding: 2rem 0 3rem;
}

.site-footer__inner {
  border-top: 1px solid var(--color-border);
  padding-top: 1.8rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.site-footer__links {
  display: flex;
  gap: 1.6rem;
}

.site-footer p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-soft);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.96);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-smooth), visibility var(--transition-smooth);
}

.lightbox.is-visible {
  opacity: 1;
  visibility: visible;
}

.lightbox__content {
  width: min(1400px, 100%);
  height: calc(100vh - 3rem);
  background: #000000;
  color: #ffffff;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.lightbox__controls {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  display: grid;
  gap: 0.5rem;
}

.lightbox__toolbar {
  display: grid;
  grid-template-columns: repeat(5, 3rem);
  gap: 0.5rem;
}

.lightbox__tool {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(0, 0, 0, 0.66);
  color: #ffffff;
  min-width: 3rem;
  padding: 0;
  cursor: pointer;
}

.lightbox__tool:disabled {
  opacity: 0.35;
  cursor: default;
}

.lightbox__stage {
  position: relative;
  flex: 1;
  display: grid;
  place-items: center;
  overflow: auto;
  background: #000000;
  padding: 2rem;
}

.lightbox__stage.is-zoomed {
  cursor: zoom-out;
}

.lightbox__image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  background: #000000;
  transform-origin: center center;
  transition: transform 180ms ease;
}

.lightbox__meta {
  padding: 1.25rem 1.4rem 1.5rem;
}

.lightbox__title {
  text-transform: uppercase;
  letter-spacing: 0.22rem;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.lightbox__copy {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.lightbox__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  border: 0;
  background: transparent;
  color: #ffffff;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 991.98px) {
  .site-nav__links {
    gap: 0.5rem;
    padding-top: 1rem;
  }

  .site-nav__links .nav-link {
    padding: 0.5rem 0;
  }

  .hero-section h1,
  .gallery-hero h1 {
    font-size: clamp(3.2rem, 12vw, 5.8rem);
  }

  .portfolio-grid {
    column-count: 2;
  }

  .gallery-masonry {
    column-count: 3;
  }

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

  .about-section__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  :root {
    --nav-height: 78px;
  }

  .site-logo {
    font-size: 1.2rem;
    letter-spacing: 0.24rem;
  }

  .hero-section__eyebrow,
  .section-kicker,
  .section-heading p,
  .hero-section__subtitle,
  .gallery-hero__subtitle {
    letter-spacing: 0.24rem;
  }

  .section-shell {
    padding: 4.5rem 0;
  }

  .section-heading {
    gap: 0.75rem;
    margin-bottom: 2.5rem;
  }

  .section-heading span {
    width: min(18vw, 80px);
  }

  .portfolio-grid,
  .gallery-masonry {
    column-count: 1;
  }

  .portfolio-card img,
  .portfolio-card--tall img,
  .portfolio-card--wide img {
    min-height: 340px;
  }

  .gallery-selector__link {
    width: 100%;
  }

  .contact-panel {
    padding: 2rem 1.5rem;
  }

  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .lightbox {
    padding: 1rem;
  }

  .lightbox__content {
    height: calc(100vh - 2rem);
  }

  .lightbox__stage {
    padding: 4rem 1rem 1rem;
  }

  .lightbox__controls {
    left: 0.5rem;
  }
}

