:root {
  --bg: #f5f5f3;
  --surface: #ffffff;
  --ink: #111214;
  --ink-soft: #62656d;
  --line: rgba(17, 18, 20, 0.1);
  --shadow-soft: 0 18px 45px rgba(17, 18, 20, 0.08);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --max-width: 1360px;
  --font-display: "Plus Jakarta Sans", "Manrope", sans-serif;
  --font-body: "Manrope", "Plus Jakarta Sans", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.orb {
  display: none;
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.container {
  width: min(100% - 52px, var(--max-width));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 16px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  z-index: 60;
}

.skip-link:focus {
  left: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 245, 243, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-bar {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.9rem;
}

.button,
.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 0.88rem;
}

.button {
  background: var(--ink);
  color: #fff;
  border: 1px solid transparent;
}

.button-small {
  padding: 8px 13px;
  font-size: 0.8rem;
}

.ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
}

.hero {
  padding: 98px 0 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: center;
}

.hero-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
}

#kinetic-word {
  color: #111214;
}

.hero-lead {
  margin-top: 18px;
  max-width: 56ch;
  color: var(--ink-soft);
}

.hero-actions {
  margin-top: 24px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-media {
  min-height: 460px;
  display: grid;
  align-content: start;
  gap: 12px;
}

.hero-stage {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --lift: 0px;
  position: relative;
  width: min(100%, 520px);
  margin-left: auto;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #e8e8e6;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transform: perspective(1200px) translateY(var(--lift)) rotateY(var(--tilt-x))
    rotateX(var(--tilt-y));
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  will-change: transform;
}

.hero-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to top, rgba(8, 10, 14, 0.14), rgba(8, 10, 14, 0) 52%);
  pointer-events: none;
}

.hero-stage:hover,
.hero-stage:focus-visible {
  --lift: -3px;
  border-color: rgba(17, 18, 20, 0.2);
  box-shadow: 0 18px 40px rgba(17, 18, 20, 0.12);
}

.hero-photo {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.65s ease, transform 1.2s ease;
}

.hero-photo.is-visible {
  opacity: 1;
  transform: scale(1);
}

.section {
  padding: 62px 0;
}

#about.section {
  padding-top: 108px;
  padding-bottom: 112px;
}

.section-head {
  display: grid;
  justify-items: start;
  text-align: left;
  gap: 8px;
  margin-bottom: 16px;
}

.section-head h2,
.about-main h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
  letter-spacing: -0.02em;
}

.section-head p {
  color: var(--ink-soft);
}

.filters {
  margin: 0 0 24px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  position: relative;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.filters::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 0;
  height: calc(100% - 12px);
  width: var(--indicator-width, 0px);
  border-radius: 999px;
  background: #efefec;
  transform: translateX(var(--indicator-left, 0px));
  transition: transform 0.36s cubic-bezier(0.22, 1, 0.36, 1), width 0.36s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, width;
  pointer-events: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 999px;
  padding: 7px 13px;
  line-height: 1.2;
  font-size: 0.82rem;
  cursor: pointer;
  color: var(--ink-soft);
  position: relative;
  z-index: 1;
  transition: color 0.25s ease;
}

.chip.is-active,
.chip[aria-pressed="true"] {
  color: var(--ink);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 14px;
  gap: 14px;
}

.gallery-item {
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.gallery-item.is-hidden {
  display: none;
}

.item-sm {
  grid-column: span 3;
  grid-row: span 15;
}

.item-lg {
  grid-column: span 3;
  grid-row: span 22;
}

.photo-card {
  border: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  text-align: left;
  background: transparent;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
  box-shadow: var(--shadow-soft);
}

.photo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(9, 10, 12, 0.56), transparent 48%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.photo-meta {
  position: absolute;
  left: 12px;
  bottom: 10px;
  color: #fff;
  font-size: 0.76rem;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.photo-card:hover::after,
.photo-card:focus-visible::after,
.photo-card:hover .photo-meta,
.photo-card:focus-visible .photo-meta {
  opacity: 1;
}

.about-showcase {
  display: block;
  max-width: 820px;
  padding-top: 0;
}

.about-label {
  display: inline-flex;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.about-main {
  display: grid;
  gap: 18px;
  padding: 8px 4px 10px;
}

.about-main h2 {
  max-width: 22ch;
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  line-height: 1.08;
}

.about-main p {
  color: var(--ink-soft);
  max-width: 60ch;
  line-height: 1.74;
}

.about-contact {
  justify-self: start;
  margin-top: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.about-contact:hover,
.about-contact:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(17, 18, 20, 0.3);
}

.site-footer {
  padding: 20px 0 34px;
}

.footer-wrap {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.9rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  background: rgba(8, 9, 12, 0.9);
  padding: 22px 18px;
}

.lightbox.is-open {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.lightbox-figure {
  margin: 0;
  width: min(100%, 1180px);
  justify-self: center;
  display: grid;
  gap: 10px;
}

#lightbox-image {
  width: 100%;
  max-height: calc(100vh - 190px);
  object-fit: contain;
  border-radius: var(--radius-md);
}

#lightbox-caption {
  color: #eceff6;
  text-align: center;
  font-size: 0.9rem;
}

.lightbox-close,
.lightbox-nav,
.lightbox-thumb {
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(24, 25, 30, 0.72);
  color: #fff;
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
}

.lightbox-nav {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  cursor: pointer;
}

.lightbox-thumbs {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.lightbox-thumb {
  width: 62px;
  height: 62px;
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
  flex: 0 0 auto;
  cursor: pointer;
}

.lightbox-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lightbox-thumb.is-active {
  border-color: #fff;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

[data-reveal].is-in {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-child] {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

[data-reveal-child].is-in {
  opacity: 1;
  transform: translateY(0);
}

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

  .hero-media {
    min-height: auto;
  }

  .hero-stage {
    width: min(100%, 620px);
    margin: 0 auto;
  }

  .about-showcase {
    max-width: 100%;
    padding-top: 0;
  }

  .about-main h2 {
    max-width: 22ch;
  }

}

@media (max-width: 900px) {
  .container {
    width: min(100% - 34px, var(--max-width));
  }

  .nav {
    gap: 10px;
    font-size: 0.84rem;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .hero {
    padding: 82px 0 46px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: auto;
    gap: 14px;
  }

  .item-sm,
  .item-lg {
    grid-column: span 1;
    grid-row: span 1;
  }

  .photo-card {
    aspect-ratio: 4 / 5;
  }

  .photo-card::after,
  .photo-meta {
    opacity: 1;
  }

  .filters {
    justify-content: flex-start;
    margin-bottom: 16px;
    width: 100%;
  }
}

@media (max-width: 620px) {
  .hero {
    padding-top: 70px;
  }

  .hero-media {
    display: none;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .filters {
    display: none;
  }

  .photo-card {
    aspect-ratio: auto;
    height: auto;
    cursor: default;
    pointer-events: none;
  }

  .photo-card:disabled {
    opacity: 1;
  }

  .photo-card img {
    height: auto;
    object-fit: contain;
  }

  .photo-card::after,
  .photo-meta {
    display: none;
  }

  .about-showcase {
    padding-top: 0;
  }

  #about.section {
    padding-top: 82px;
    padding-bottom: 88px;
  }

  .about-main h2 {
    font-size: clamp(1.7rem, 9vw, 2.15rem);
    max-width: 100%;
  }

  .about-main p {
    max-width: 100%;
    line-height: 1.68;
  }

  .about-main {
    gap: 16px;
    padding: 2px 0 6px;
  }

  .footer-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .lightbox.is-open {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr) auto auto;
  }

  .lightbox-nav {
    display: none;
  }

  #lightbox-image {
    max-height: calc(100vh - 230px);
  }

  .lightbox-thumbs {
    justify-content: flex-start;
  }
}

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

  [data-reveal],
  [data-reveal-child],
  #kinetic-word,
  .hero-photo,
  .hero-stage,
  .filters::before {
    transition: none !important;
    transform: none !important;
    animation: none !important;
    opacity: 1 !important;
  }
}
