:root {
  --bg: #f4efe7;
  --surface: rgba(255, 251, 246, 0.82);
  --surface-strong: #fffaf4;
  --text: #17120f;
  --muted: #6e6055;
  --line: rgba(23, 18, 15, 0.12);
  --accent: #9d6947;
  --accent-dark: #7e5135;
  --portfolio-accent: #c98d98;
  --portfolio-accent-dark: #b27481;
  --shadow: 0 18px 56px rgba(58, 38, 20, 0.12);
  --max-width: 1380px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: #fff;
  font-family: "Manrope", sans-serif;
}

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

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

.page-shell {
  padding: 18px;
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: var(--max-width);
  margin: 0 auto 20px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 22px;
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
}

.brand__name,
.hero h1,
.portfolio__top h2,
.shoot-card__title,
.contact-card h2,
.lightbox figcaption {
  font-family: "Cormorant Garamond", serif;
}

.brand__name {
  font-size: 1.55rem;
  line-height: 1;
}

.brand__role,
.eyebrow,
.hero__eyebrow,
.shoot-card__meta {
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.brand__role,
.eyebrow,
.shoot-card__meta {
  color: var(--muted);
  font-size: 0.72rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.95rem;
}

.site-nav__cta,
.button,
.category-chip,
.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    opacity 180ms ease;
}

.site-nav__cta,
.button--primary,
.category-chip.is-active {
  color: #fff;
  background: var(--text);
}

.lang-toggle {
  color: var(--text);
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid var(--line);
  cursor: pointer;
}

.lang-toggle:hover {
  transform: translateY(-1px);
}

.button {
  font-weight: 600;
}

.button--primary {
  background: var(--portfolio-accent);
}

.button--primary:hover {
  background: var(--portfolio-accent-dark);
}

.button--ghost,
.category-chip,
.menu-toggle {
  color: var(--text);
  background: rgba(255, 255, 255, 0.48);
  border-color: var(--line);
}

.button--ghost:hover,
.category-chip:hover,
.menu-toggle:hover,
.site-nav__cta:hover {
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 46px;
  min-width: 46px;
  min-height: 46px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 999px;
}

.menu-toggle img {
  width: 18px;
  height: 18px;
}

.section {
  max-width: var(--max-width);
  margin: 0 auto 22px;
  min-width: 0;
}

.hero {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  box-shadow: var(--shadow);
}

.hero__media,
.hero__overlay {
  position: absolute;
  inset: 0;
}

.hero__media img {
  display: block;
  width: 100%;
  height: auto;
}

.hero__media {
  position: relative;
  display: grid;
  place-items: center;
}

.hero__overlay {
  pointer-events: none;
}

.hero__content {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 18px;
  width: min(560px, 100%);
  padding: clamp(24px, 5vw, 56px);
  color: #fff8f0;
}

.hero__media img {
  max-width: 100%;
  height: auto;
}

.hero__overlay {
  background:
    linear-gradient(180deg, rgba(10, 7, 5, 0.08), rgba(10, 7, 5, 0.48)),
    linear-gradient(90deg, rgba(10, 7, 5, 0.58), rgba(10, 7, 5, 0.06));
}

.hero__eyebrow {
  margin: 0;
  font-size: 0.78rem;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3.1rem, 7vw, 7rem);
  line-height: 0.86;
}

.hero__lead {
  max-width: 44ch;
  margin: 0;
  color: rgba(255, 248, 240, 0.86);
  line-height: 1.65;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.portfolio {
  display: grid;
  gap: 18px;
}

.portfolio__top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.portfolio__top h2,
.contact-card h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 0.92;
}

.category-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  min-width: 0;
}

.shoot-card {
  display: grid;
  gap: 14px;
  padding: 14px;
  background: var(--surface-strong);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 26px;
  box-shadow: var(--shadow);
  min-width: 0;
}

.shoot-card__carousel {
  position: relative;
}

.shoot-card__cover {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 5;
  min-height: 320px;
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
}

.shoot-card__cover img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.shoot-card__cover-button {
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}

.shoot-card__title {
  margin: 0;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.05;
}

.carousel-nav,
.carousel-count {
  position: absolute;
  z-index: 2;
}

.carousel-nav {
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  color: #fff8f0;
  background: rgba(11, 8, 6, 0.34);
  border: 1px solid rgba(255, 248, 240, 0.16);
  border-radius: 999px;
  transform: translateY(-50%);
  backdrop-filter: blur(10px);
}

.carousel-nav--prev {
  left: 12px;
}

.carousel-nav--next {
  right: 12px;
}

.carousel-count {
  right: 12px;
  bottom: 12px;
  padding: 8px 10px;
  color: #fff8f0;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  background: rgba(11, 8, 6, 0.34);
  border: 1px solid rgba(255, 248, 240, 0.16);
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

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

.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  background: rgba(255, 250, 244, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.contact-card__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.contact-card__actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.lightbox {
  width: min(100vw - 24px, 1280px);
  max-width: none;
  max-height: calc(100vh - 24px);
  padding: 16px;
  overflow-y: auto;
  background: transparent;
  border: 0;
  border-radius: 24px;
}

.lightbox::backdrop {
  background: rgba(11, 8, 6, 0.82);
}

.lightbox__close {
  display: inline-flex;
  margin-left: auto;
  margin-bottom: 10px;
  padding: 10px 14px;
  color: #fff8f0;
  background: transparent;
  border: 1px solid rgba(255, 248, 240, 0.2);
  border-radius: 999px;
}

.lightbox__nav {
  position: fixed;
  top: 50%;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 0;
  color: #fff8f0;
  background: rgba(11, 8, 6, 0.18);
  border: 1px solid rgba(255, 248, 240, 0.18);
  border-radius: 999px;
  transform: translateY(-50%);
  backdrop-filter: blur(10px);
}

.lightbox__nav--prev {
  left: max(24px, calc((100vw - min(100vw - 24px, 1280px)) / 2));
}

.lightbox__nav--next {
  right: max(24px, calc((100vw - min(100vw - 24px, 1280px)) / 2));
}

.lightbox__figure {
  margin: 0;
  display: grid;
  justify-items: center;
}

.lightbox__figure img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100vh - 140px);
  object-fit: contain;
  object-position: center;
}

.lightbox figcaption {
  margin-top: 12px;
  width: 100%;
  color: #fff8f0;
  font-size: 1.4rem;
  line-height: 1.05;
  text-align: center;
}

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

@media (max-width: 860px) {
  .page-shell {
    padding: 14px;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    position: fixed;
    top: 78px;
    right: 14px;
    left: 14px;
    display: grid;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 250, 244, 0.96);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition:
      opacity 180ms ease,
      transform 180ms ease,
      visibility 180ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .hero {
    border-radius: 28px;
  }

  .portfolio__top,
  .contact-card {
    flex-direction: column;
    align-items: stretch;
  }

  .category-filter,
  .contact-card__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .site-header {
    top: 10px;
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 18px;
  }

  .hero__content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    min-height: 100%;
    padding: 20px;
    gap: 14px;
  }

  .hero__actions {
    margin-top: auto;
    padding: 0;
  }

  .hero {
    display: block;
  }

  .hero__content {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 13vw, 4.4rem);
  }

  .hero__lead {
    font-size: 0.95rem;
  }

  .portfolio__top h2,
  .contact-card h2 {
    font-size: clamp(1.9rem, 10vw, 2.8rem);
  }

  .category-filter {
    display: flex;
    flex-wrap: wrap;
    overflow-x: visible;
    padding-bottom: 4px;
  }

  .shoot-card {
    padding: 12px;
    border-radius: 22px;
  }

  .shoot-card__cover {
    min-height: 260px;
    border-radius: 18px;
    background: #fff;
  }

  .carousel-nav {
    width: 38px;
    height: 38px;
  }

  .shoot-card__cover img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
  }

  .contact-card {
    padding: 18px;
    border-radius: 22px;
  }

  .lightbox {
    width: calc(100vw - 12px);
    max-height: calc(100vh - 12px);
    padding: 12px;
    border-radius: 18px;
  }

  .lightbox__nav {
    width: 44px;
    height: 44px;
  }

  .lightbox__nav--prev {
    left: 14px;
  }

  .lightbox__nav--next {
    right: 14px;
  }

  .lightbox figcaption {
    font-size: 1.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button,
  .category-chip,
  .site-nav,
  .site-nav__cta {
    transition: none;
  }
}
