:root {
  --bg: #f7f5f3;
  --surface: #ffffff;
  --surface-strong: #f0ece8;
  --text: #1f1f1f;
  --muted: #5f5f5f;
  --border: rgba(17, 17, 17, 0.08);
  --shadow: rgba(15, 23, 42, 0.08);
  --accent: #1d1d1d;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
}

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

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

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.4rem 5%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.03);
}

.logo {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
  list-style: none;
}

.nav-links a {
  position: relative;
  color: var(--muted);
  font-size: 0.96rem;
  letter-spacing: 0.02em;
  transition:
    color 0.25s ease,
    font-weight 0.25s ease;
}

.nav-links a[aria-current="page"] {
  color: var(--text);
  font-weight: 700;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
}

.logo[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3rem;
}

.language-switch {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: #a29d98;
  white-space: nowrap;
}

.language-button {
  padding: 0.3rem 0.1rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.language-button[aria-pressed="true"] {
  color: var(--text);
  font-weight: 700;
}

.language-button:hover {
  color: var(--text);
}

.hero,
.gallery,
.contact {
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  text-align: center;
  padding: clamp(4.5rem, 8vw, 7rem) 1rem 3rem;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.15),
    rgba(255, 255, 255, 0.4)
  );
}

.hero h1 {
  margin-bottom: 0.75rem;
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 600;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--muted);
}

.gallery {
  width: min(1440px, calc(100% - 2rem));
  padding-bottom: 4rem;
}

.carousel {
  position: relative;
}

.carousel-viewport {
  position: relative;
  height: clamp(340px, 68vw, 720px);
  overflow: hidden;
  border-radius: 16px;
  background: var(--surface-strong);
  box-shadow: 0 18px 48px var(--shadow);
  touch-action: pan-y;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.carousel-slide[hidden] {
  display: none;
}

.slide-image {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  cursor: grab;
  touch-action: pan-y;
}

.slide-image:active {
  cursor: grabbing;
}

.slide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.6s ease;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.slide-image:hover img {
  transform: scale(1.015);
}

.carousel-slide figcaption {
  display: none;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 1;
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  background: rgba(20, 20, 20, 0.45);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  transform: translateY(-50%);
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.carousel-arrow:hover {
  background: rgba(20, 20, 20, 0.75);
  transform: translateY(-50%) scale(1.06);
}

.carousel-previous {
  left: 1.25rem;
}

.carousel-next {
  right: 1.25rem;
}

.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  min-height: 3.5rem;
}

.carousel-dots {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.carousel-dot {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #c7c1bb;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.carousel-dot[aria-current="true"] {
  background: var(--text);
  transform: scale(1.25);
}

.carousel-count {
  color: var(--muted);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}

.carousel-toggle {
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
}

.contact {
  padding: 4rem 1rem 5rem;
  text-align: center;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-radius: 18px 18px 0 0;
  margin-bottom: 0;
}

.contact h2 {
  margin-bottom: 0.85rem;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.03em;
}

.contact p {
  color: var(--muted);
  font-size: 1.02rem;
}

.contact a {
  color: var(--accent);
  font-weight: 500;
}

.contact a:hover,
.contact a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  padding: 3rem 1rem;
  background: rgba(0, 0, 0, 0.88);
  overflow: auto;
}

.lightbox-media {
  position: relative;
  display: grid;
  width: fit-content;
  max-width: 80vw;
  max-height: 80vh;
  margin: auto;
  place-items: center;
}

.lightbox-content {
  display: block;
  margin: auto;
  max-width: 80vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.22);
  -webkit-user-drag: none;
  user-select: none;
}

.lightbox-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  color: rgba(255, 255, 255, 0.42);
  font-size: clamp(1.5rem, 6vw, 5rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(-35deg);
  user-select: none;
  white-space: nowrap;
}

.close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  cursor: pointer;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.close:hover,
.close:focus-visible {
  color: #ffffff;
  transform: scale(1.05);
}

:focus-visible {
  outline: 2px solid rgba(17, 17, 17, 0.8);
  outline-offset: 3px;
}

@media (max-width: 640px) {
  nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 0.75rem;
    row-gap: 0.35rem;
    padding: 0.75rem 1rem;
  }

  .logo {
    font-size: clamp(0.9rem, 4vw, 1.15rem);
    letter-spacing: 0.01em;
    text-align: left;
  }

  .nav-links {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.15rem 0.5rem;
  }

  .nav-links a {
    display: block;
    padding: 0.45rem 0.35rem;
  }

  .language-switch {
    justify-content: center;
  }

  .language-button {
    padding: 0.5rem 0.25rem;
  }

  .gallery {
    width: calc(100% - 1.5rem);
  }

  .carousel-viewport,
  .slide-image {
    height: min(72vh, 540px);
  }

  .carousel-viewport {
    min-height: 320px;
    border-radius: 10px;
  }

  .carousel-arrow {
    width: 2.5rem;
    height: 2.5rem;
  }

  .carousel-previous {
    left: 0.75rem;
  }

  .carousel-next {
    right: 0.75rem;
  }

  .carousel-slide figcaption {
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
  }

  .carousel-controls {
    flex-wrap: wrap;
    gap: 0.7rem;
  }

  .carousel-dots {
    flex-basis: 100%;
    justify-content: center;
    gap: 0.25rem;
  }

  .carousel-dot {
    display: grid;
    width: 2.5rem;
    height: 2.5rem;
    place-items: center;
    background: transparent;
  }

  .carousel-dot::before {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: #c7c1bb;
    content: "";
  }

  .carousel-dot[aria-current="true"] {
    background: transparent;
    transform: none;
  }

  .carousel-dot[aria-current="true"]::before {
    background: var(--text);
    transform: scale(1.25);
  }

  .contact {
    width: min(100%, calc(100% - 1.5rem));
  }

  .contact-submit {
    width: 100%;
    min-height: 2.75rem;
  }

  .contact p {
    overflow-wrap: anywhere;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

.portfolio-page {
  background: var(--bg);
}

.portfolio-header {
  width: min(1440px, calc(100% - 3rem));
  margin: 0 auto;
  padding: clamp(3.5rem, 7vw, 6rem) 0 2.5rem;
}

.portfolio-header h1 {
  font-size: clamp(2.7rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: -0.05em;
  font-weight: 600;
}

.portfolio-header p {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.portfolio-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  width: min(1440px, calc(100% - 3rem));
  margin: 0 auto;
  padding-bottom: 6rem;
}

.portfolio-sidebar {
  align-self: start;
  position: sticky;
  top: 7rem;
}

.portfolio-sidebar h2 {
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.portfolio-categories {
  display: grid;
  gap: 0.25rem;
  list-style: none;
}

.portfolio-category {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    color 0.2s ease,
    background 0.2s ease;
}

.portfolio-category:hover,
.portfolio-category[aria-pressed="true"] {
  background: var(--surface);
  color: var(--text);
}

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

.portfolio-content-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.portfolio-content-heading h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.portfolio-result-count {
  color: var(--muted);
  font-size: 0.9rem;
}

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

.portfolio-card[hidden] {
  display: none;
}

.portfolio-photo {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  background: var(--surface-strong);
  cursor: zoom-in;
}

.portfolio-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.5s ease;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.portfolio-card[data-category~="portrait"] .portfolio-photo img {
  object-position: center 25%;
}

.slide-image img[src*="353A2947 Large.jpeg"],
.portfolio-photo img[src*="353A2947 Large.jpeg"] {
  object-position: 50% 68%;
}

.slide-image img[src*="IMG_0908 Large.jpeg"],
.portfolio-photo img[src*="IMG_0908 Large.jpeg"] {
  object-position: 50% 10%;
}

.portfolio-photo img[src*="matterhorn.jpg"] {
  object-position: 50% 95%;
}

.portfolio-photo:hover img {
  transform: scale(1.035);
}

.portfolio-card figcaption {
  display: none;
}

.portfolio-empty {
  padding: 3rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
  text-align: center;
}

.portfolio-empty[hidden] {
  display: none;
}

.portfolio-empty h3 {
  margin-bottom: 0.5rem;
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 500;
}

@media (max-width: 760px) {
  .portfolio-header,
  .portfolio-layout {
    width: calc(100% - 2rem);
  }

  .portfolio-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .portfolio-sidebar {
    position: static;
  }

  .portfolio-categories {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
  }

  .portfolio-category {
    width: auto;
    flex: 0 0 auto;
    border: 1px solid var(--border);
  }
}

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

.about-page {
  background: var(--bg);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  width: min(1100px, calc(100% - 3rem));
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 6rem) 0;
}

.about-portrait {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.12);
  background: var(--surface-strong);
}

.about-portrait img {
  display: block;
  width: 100%;
  height: clamp(420px, 60vw, 720px);
  object-fit: cover;
  object-position: center;
}

.about-copy {
  max-width: 46rem;
}

.about-copy .eyebrow {
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.about-copy h1 {
  margin-bottom: 1.5rem;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  font-weight: 600;
}

.about-copy p {
  margin-top: 1rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.85;
}

.about-copy .about-lead {
  color: var(--text);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.6;
}

.about-contact {
  display: inline-block;
  margin-top: 1.8rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid currentColor;
  font-size: 0.95rem;
}

@media (max-width: 760px) {
  .about-layout {
    grid-template-columns: 1fr;
    width: calc(100% - 2rem);
  }

  .about-copy {
    max-width: none;
  }

  .about-portrait img {
    height: clamp(360px, 80vw, 540px);
  }
}

.contact-page {
  background: #f7f5f3;
}

.contact-layout {
  width: min(760px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 7rem) 0;
}

.contact-header {
  margin-bottom: 2rem;
}

.contact-header .eyebrow {
  margin-bottom: 0.8rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-header h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: -0.05em;
  font-weight: 600;
}

.contact-header p {
  max-width: 36rem;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.contact-form {
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

.contact-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.contact-field {
  display: grid;
  gap: 0.45rem;
}

.contact-field label {
  font-size: 0.92rem;
  font-weight: 600;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(17, 17, 17, 0.16);
  border-radius: 7px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.contact-field textarea {
  min-height: 200px;
  resize: vertical;
}

.contact-field input:focus,
.contact-field textarea:focus {
  border-color: var(--text);
  outline: 2px solid rgba(17, 17, 17, 0.12);
  outline-offset: 1px;
}

.contact-submit {
  justify-self: start;
  min-width: 9rem;
  padding: 0.85rem 1.3rem;
  border: 1px solid #1d1d1d;
  border-radius: 999px;
  background: #1d1d1d;
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.contact-submit:hover {
  background: transparent;
  color: #1d1d1d;
  transform: translateY(-1px);
}

.contact-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.contact-status {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.contact-status.is-error {
  color: #a12622;
}

.contact-success {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

.contact-success h2 {
  margin-bottom: 0.5rem;
  font-size: 1.6rem;
}

.contact-success p {
  color: var(--muted);
}

@media (max-width: 560px) {
  .contact-row {
    grid-template-columns: 1fr;
  }
}
