:root {
  --bg: #0d0d0d;
  --surface: #161616;
  --gold: #c9a96e;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, .72);
  --soft: rgba(255, 255, 255, .56);
  --faint: rgba(255, 255, 255, .18);
  --line: rgba(255, 255, 255, .09);
  --shell-pad: clamp(20px, 5vw, 112px);
  --section-y: clamp(80px, 8vw, 145px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Montserrat, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}

body.menu-open,
body.lightbox-open {
  overflow: hidden;
}

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

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

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 1100;
  transform: translateY(-140%);
  background: var(--gold);
  color: #0d0d0d;
  padding: 10px 14px;
}

.skip-link:focus {
  transform: translateY(0);
}

.fluid-shell {
  width: min(100% - (var(--shell-pad) * 2), 2560px);
  margin-inline: auto;
}

.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: clamp(64px, 6vw, 80px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: var(--shell-pad);
  color: #fff;
  background: transparent;
  transition: background-color .25s ease, border-color .25s ease;
}

.site-nav.is-scrolled,
.site-nav:focus-within {
  background: rgba(13, 13, 13, .96);
  border-bottom: 1px solid var(--line);
}

.brand {
  font-size: 18px;
  line-height: 28px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand strong {
  font-weight: 700;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
}

.desktop-nav a {
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: .25em;
  text-transform: uppercase;
}

.desktop-nav a:focus-visible,
.desktop-nav a:hover,
.brand:focus-visible,
.brand:hover {
  color: var(--gold);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 0;
  background: transparent;
  color: #fff;
  align-items: center;
  justify-content: center;
  position: relative;
}

.menu-toggle span:not(.visually-hidden) {
  position: absolute;
  width: 22px;
  height: 1px;
  background: currentColor;
}

.menu-toggle span:nth-child(2) {
  transform: translateY(-4px);
}

.menu-toggle span:nth-child(3) {
  transform: translateY(4px);
}

.menu-toggle--close span:nth-child(2) {
  transform: rotate(45deg);
}

.menu-toggle--close span:nth-child(3) {
  transform: rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1050;
  background: var(--bg);
  color: #fff;
}

.mobile-menu__bar {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 20px;
  border-bottom: 1px solid var(--line);
}

.mobile-menu__links {
  min-height: calc(100svh - 174px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 32px;
  padding: 32px;
}

.mobile-menu__links a {
  font-size: 30px;
  font-weight: 600;
  line-height: 36px;
}

.mobile-menu__social {
  display: block;
  padding: 25px 32px 40px;
  border-top: 1px solid var(--line);
  color: var(--soft);
  font-size: 14px;
  letter-spacing: .3em;
  text-transform: uppercase;
}

.hero {
  min-height: 100svh;
  min-height: clamp(720px, 100svh, 1220px);
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero__image,
.hero__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__image {
  object-fit: cover;
  opacity: .3;
  z-index: -3;
}

.hero__shade {
  z-index: -2;
  background:
    radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 22%, #0d0d0d 76%),
    linear-gradient(to bottom, rgba(13, 13, 13, .72), rgba(0, 0, 0, 0) 48%, rgba(13, 13, 13, .78));
}

.hero__content {
  width: min(80vw, 490px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.hero__logo {
  width: min(100%, 400px);
}

.hero__line {
  width: 48px;
  height: 1px;
  background: var(--gold);
}

.hero__content p,
.hero__scroll {
  margin: 0;
  color: rgba(255, 255, 255, .68);
  font-size: 14px;
  line-height: 20px;
  letter-spacing: .5em;
  text-transform: uppercase;
}

.hero__scroll {
  position: absolute;
  bottom: clamp(28px, 5vw, 32px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #fff;
}

.hero__scroll span {
  width: 1px;
  height: clamp(48px, 7vw, 64px);
  background: linear-gradient(to bottom, rgba(201, 169, 110, .5), rgba(0, 0, 0, 0));
}

.section {
  padding-block: var(--section-y);
  border-top: 1px solid var(--line);
}

.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gold);
  font-size: 14px;
  line-height: 20px;
  letter-spacing: .35em;
  text-transform: uppercase;
}

.section-label span {
  width: 24px;
  height: 1px;
  background: var(--gold);
  flex: 0 0 auto;
}

.highlights {
  padding-block: clamp(64px, 7vw, 80px);
}

.highlights__carousel {
  margin-top: 24px;
}

.highlights__track {
  display: flex;
  gap: clamp(8px, .8vw, 14px);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  touch-action: pan-x;
}

.highlights__track::-webkit-scrollbar {
  display: none;
}

.highlight-frame {
  flex: 0 0 auto;
  height: clamp(150px, 18vw, 285px);
  min-width: 0;
  margin: 0;
  background: var(--surface);
  scroll-snap-align: start;
}

.highlight-frame img {
  width: auto;
  max-width: none;
  height: 100%;
  object-fit: contain;
}

.highlights__controls {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.highlights__controls[hidden] {
  display: none;
}

.highlights__controls button {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .18);
  background: transparent;
  color: #fff;
}

.highlights__controls button:disabled {
  opacity: .38;
  cursor: default;
}

.portfolio__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 56px;
}

h1,
h2 {
  margin: 16px 0 0;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(30px, 2.6vw, 36px);
}

h2 {
  font-size: clamp(30px, 4.2vw, 60px);
}

.tag-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.tag-filter a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, .15);
  color: rgba(255, 255, 255, .76);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.tag-filter a.is-active,
.tag-filter a:hover,
.tag-filter a:focus-visible {
  background: var(--gold);
  color: #0d0d0d;
  border-color: var(--gold);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
  justify-content: start;
  gap: clamp(12px, 1.2vw, 24px);
}

.gallery-card {
  position: relative;
  justify-self: start;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--surface);
  color: #fff;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  transition: transform .7s ease;
}

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

.gallery-card__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .88), rgba(0, 0, 0, .05) 54%, rgba(0, 0, 0, 0));
}

.gallery-card__tags {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .28s ease, transform .28s ease;
}

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

.gallery-card__tag {
  display: inline-flex;
  padding: 3px 9px;
  background: rgba(0, 0, 0, .58);
  color: rgba(255, 255, 255, .78);
  font-size: 11px;
  line-height: 16px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.gallery-card__body {
  position: absolute;
  inset: auto 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transform: translateY(0);
  transition: transform .28s ease;
}

.gallery-card--has-excerpt:hover .gallery-card__body,
.gallery-card--has-excerpt:focus-visible .gallery-card__body {
  transform: translateY(-10px);
}

.gallery-card__year {
  display: none;
}

.gallery-card strong {
  font-size: 20px;
  line-height: 25px;
}

.gallery-card small {
  color: rgba(255, 255, 255, .75);
  font-size: 14px;
  opacity: 0;
  transform: translateY(6px);
  max-height: 0;
  overflow: hidden;
  transition: opacity .28s ease, transform .28s ease, max-height .28s ease;
}

.gallery-card:hover small,
.gallery-card:focus-visible small {
  opacity: 1;
  transform: translateY(0);
  max-height: 48px;
}
.gallery-empty {
  margin-top: 22px;
  color: var(--muted);
  font-size: 15px;
}
.about__grid,
.contact__grid {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(320px, 1fr);
  align-items: center;
  gap: clamp(64px, 8vw, 128px);
}

.about__image {
  position: relative;
  background: var(--surface);
}

.about__image::before,
.about__image::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(201, 169, 110, .22);
  pointer-events: none;
}

.about__image::before {
  width: 64px;
  height: 64px;
  left: -16px;
  top: -16px;
  border-color: rgba(255, 255, 255, .07);
}

.about__image::after {
  width: 112px;
  height: 112px;
  right: -20px;
  bottom: -20px;
}

.about__image img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.about__content p,
.contact__copy p,
.gallery-page__head p {
  color: var(--muted);
  font-size: 16px;
  line-height: 26px;
}

.skill-list {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
}

.skill-list li {
  color: rgba(255, 255, 255, .74);
  font-size: 14px;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.skill-list li::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 10px;
  vertical-align: middle;
  border-radius: 999px;
  background: var(--gold);
}

.stats {
  margin: 40px 0 0;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.stats dt {
  font-size: 30px;
  line-height: 36px;
  font-weight: 700;
}

.stats dd {
  margin: 0;
  color: var(--soft);
  font-size: 14px;
  letter-spacing: .3em;
  text-transform: uppercase;
}

.contact__grid {
  align-items: start;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin-top: 16px;
  color: rgba(255, 255, 255, .78);
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 8px;
}

.contact-form label span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: transparent;
  color: #fff;
  padding: 15px 17px;
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, .48);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(201, 169, 110, .65);
  outline-offset: 2px;
}

.hp-field {
  display: none;
}

.gold-button {
  width: fit-content;
  min-height: 52px;
  border: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background: var(--gold);
  color: #0d0d0d;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
}

.form-alert {
  border: 1px solid;
  padding: 12px 14px;
  font-size: 14px;
}

.form-alert--ok {
  border-color: rgba(201, 169, 110, .7);
  color: #e5d0a6;
}

.form-alert--error {
  border-color: rgba(255, 118, 118, .7);
  color: #ffb0b0;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 40px;
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.site-footer__meta {
  display: flex;
  align-items: center;
  gap: 20px;
  color: rgba(255, 255, 255, .5);
  font-size: 14px;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.gallery-page {
  padding-top: calc(clamp(64px, 6vw, 80px) + var(--section-y));
  padding-bottom: var(--section-y);
}

.gallery-page__head {
  margin-bottom: 48px;
}

.gallery-page__head h1 {
  font-size: clamp(42px, 6vw, 96px);
}

.back-link {
  display: inline-block;
  color: var(--gold);
  font-size: 14px;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.back-link:hover {
	color: var(--gold);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(clamp(150px, 22vw, 360px), 1fr));
  gap: clamp(10px, 1vw, 18px);
}

.photo-tile {
  border: 0;
  padding: 0;
  background: var(--surface);
  cursor: zoom-in;
}

.photo-tile img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(5, 5, 5, .96);
  display: grid;
  grid-template-columns: 72px 1fr 72px;
  align-items: center;
}

.lightbox__figure {
  margin: 0;
  min-width: 0;
  text-align: center;
}

.lightbox__figure img {
  max-height: 86svh;
  max-width: 100%;
  margin: auto;
  object-fit: contain;
  touch-action: pinch-zoom;
}

.lightbox__figure figcaption {
  margin-top: 12px;
  color: rgba(255, 255, 255, .68);
  font-size: 14px;
}

.lightbox__close,
.lightbox__nav {
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(0, 0, 0, .3);
  color: #fff;
}

.lightbox__close {
  position: absolute;
  right: 20px;
  top: 20px;
  min-height: 44px;
  padding: 0 16px;
  font-size: 14px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.lightbox__nav {
  width: 52px;
  height: 72px;
  justify-self: center;
  font-size: 48px;
  line-height: 1;
}

@media (max-width: 1100px) {
  :root {
    --shell-pad: 64px;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 380px));
  }


  .portfolio__head {
    align-items: flex-start;
  }

  .contact__grid {
    gap: 80px;
  }
}

@media (max-width: 760px) {
  :root {
    --shell-pad: 20px;
    --section-y: 80px;
  }

  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero {
    min-height: 100svh;
  }

  .hero__content {
    width: min(345px, calc(100vw - 48px));
  }

  .hero__logo {
    width: min(300px, 100%);
  }

  .hero__content p {
    white-space: normal;
  }

  .portfolio__head,
  .about__grid,
  .contact__grid,
  .site-footer__inner {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .portfolio__head {
    display: flex;
    margin-bottom: 40px;
  }

  .tag-filter {
    justify-content: flex-start;
  }

  .gallery-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .gallery-card {
    max-width: 420px;
  }


  .skill-list {
    grid-template-columns: 1fr 1fr;
  }

  .stats {
    gap: 16px;
  }

  .stats dt {
    font-size: 24px;
    line-height: 32px;
  }

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

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

  .lightbox {
    grid-template-columns: 1fr;
    padding: 72px 12px 24px;
  }

  .lightbox__nav {
    position: fixed;
    bottom: 22px;
    width: 56px;
    height: 56px;
  }

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

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

  .lightbox__figure img {
    max-height: 74svh;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}


.contact-link svg {
  flex: 0 0 auto;
  color: var(--gold);
}

.gold-button svg {
  flex: 0 0 auto;
}



.error-page {
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.error-page__inner {
    max-width: 760px;
}

.error-page h1 {
    margin: 0 0 18px;
    font-size: clamp(2.5rem, 6vw, 5.5rem);
}

.error-page p {
    max-width: 560px;
    margin: 0 0 28px;
    color: var(--muted);
    font-size: 1.08rem;
}

.error-page__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: center;
}

.gallery-password-box {
  display: grid;
  align-content: center;
  width: min(100% - 32px, 520px);
  min-height: calc(100vh - 220px);
  padding-top: clamp(72px, 12vh, 140px);
  padding-bottom: clamp(72px, 12vh, 140px);
  margin-inline: auto;
}

.gallery-password-box__head {
  margin-bottom: 22px;
}

.gallery-password-box__head h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 48px);
}

.gallery-password-box__head p {
  margin: 0;
  color: var(--muted);
}






.about__body p {
  margin: 0 0 18px;
}

.about__body a {
  color: var(--gold);
  text-underline-offset: 4px;
}

.about__body ul,
.about__body ol {
  margin: 0 0 18px 20px;
  color: var(--muted);
}
