:root {
  color-scheme: dark;
  --night: #11110f;
  --night-soft: #1b1a17;
  --paper: #f2efe9;
  --ink: #1c1b19;
  --muted: #aaa59b;
  --accent: #d7a47b;
  --line: rgba(255, 255, 255, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--night);
  color: #f7f4ee;
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
  font: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  transform: translateY(-160%);
  padding: 12px 16px;
  background: var(--paper);
  color: var(--ink);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 6vw, 88px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand__mark {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
}

.brand__name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2.8px;
}

.brand__name span {
  color: var(--accent);
  font-style: italic;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 42px);
  font-size: 11px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

.site-nav a,
.site-footer > a:last-child {
  transition: color 180ms ease;
}

.site-nav a:hover,
.site-footer > a:last-child:hover {
  color: var(--accent);
}

.site-nav__instagram span {
  margin-left: 4px;
  color: var(--accent);
}

.hero {
  position: relative;
  display: flex;
  min-height: 700px;
  min-height: max(700px, 100svh);
  align-items: flex-end;
  overflow: hidden;
  padding: 150px clamp(22px, 8vw, 120px) 118px;
  background: var(--night);
}

.hero__image {
  position: absolute;
  inset: 0 0 0 39%;
  overflow: hidden;
}

.hero__image picture,
.hero__image img {
  width: 100%;
  height: 100%;
}

.hero__image img {
  object-fit: cover;
  object-position: center 27%;
}

.hero::after {
  position: absolute;
  z-index: 0;
  inset: 0;
  background: linear-gradient(90deg, var(--night) 5%, rgba(17, 17, 15, 0.96) 28%, rgba(17, 17, 15, 0.7) 49%, rgba(17, 17, 15, 0.04) 100%),
    linear-gradient(0deg, rgba(17, 17, 15, 0.48), transparent 44%);
  content: "";
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(620px, 58%);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  line-height: 1.6;
  text-transform: uppercase;
}

.eyebrow__dot {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: var(--accent);
}

.hero h1,
.section-heading h2,
.about h2,
.contact h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.045em;
}

.hero h1 {
  max-width: 640px;
  font-size: clamp(52px, 7.7vw, 108px);
  line-height: 0.98;
}

.hero h1 span,
.about h2 span {
  color: var(--accent);
}

.hero__intro {
  max-width: 365px;
  margin: 23px 0 30px;
  color: rgba(247, 244, 238, 0.78);
  font-size: 15px;
  line-height: 1.75;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 0 19px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--light {
  background: var(--paper);
  color: var(--ink);
}

.button--light:hover {
  background: var(--accent);
}

.button--dark {
  background: var(--night);
  color: var(--paper);
}

.button--dark:hover {
  background: #37332d;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #f7f4ee;
  font-size: 11px;
  letter-spacing: 0.5px;
}

.text-link span {
  color: var(--accent);
  transition: transform 180ms ease;
}

.text-link:hover span {
  transform: translate(2px, -2px);
}

.hero__signature {
  margin: 51px 0 0;
  color: rgba(247, 244, 238, 0.68);
  font-size: 10px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

.hero__signature span {
  padding: 0 7px;
  color: var(--accent);
}

.hero__scroll {
  position: absolute;
  z-index: 1;
  right: clamp(22px, 6vw, 88px);
  bottom: 32px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 50%;
}

.hero__scroll span {
  width: 1px;
  height: 12px;
  background: #fff;
}

.section-wrap {
  padding-right: clamp(18px, 5vw, 74px);
  padding-left: clamp(18px, 5vw, 74px);
}

.portfolio {
  padding-top: clamp(72px, 10vw, 132px);
  padding-bottom: clamp(84px, 11vw, 148px);
  background: var(--paper);
  color: var(--ink);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  max-width: 1340px;
  margin: 0 auto 34px;
}

.eyebrow--dark {
  color: #886b53;
}

.section-heading h2,
.contact h2 {
  font-size: clamp(38px, 5.5vw, 70px);
  line-height: 1.03;
}

.section-heading__note {
  max-width: 330px;
  margin: 0 0 4px;
  color: #6f6a63;
  font-size: 13px;
  line-height: 1.8;
}

.mobile-break {
  display: none;
}

.filters {
  display: flex;
  max-width: 1340px;
  gap: 8px;
  overflow-x: auto;
  margin: 0 auto 26px;
  padding: 0 0 3px;
  scrollbar-width: thin;
}

.filter {
  min-height: 36px;
  flex: 0 0 auto;
  border: 1px solid #d5d0c7;
  border-radius: 30px;
  padding: 0 14px;
  background: transparent;
  color: #5e5a54;
  cursor: pointer;
  font-size: 10px;
  letter-spacing: 0.5px;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.filter:hover,
.filter.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.gallery {
  display: grid;
  max-width: 1340px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 auto;
}

.gallery-card {
  min-width: 0;
  margin: 0;
}

.gallery-card[hidden] {
  display: none;
}

.gallery-card__link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: #d9d4ca;
  isolation: isolate;
}

.gallery-card__link picture,
.gallery-card__link img {
  width: 100%;
  height: 100%;
}

.gallery-card__link img {
  object-fit: cover;
  transition: transform 500ms cubic-bezier(0.2, 0.65, 0.3, 1), opacity 300ms ease;
}

.gallery-card__link::after {
  position: absolute;
  z-index: 0;
  inset: 36% 0 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.68));
  content: "";
  pointer-events: none;
}

.gallery-card__link:hover img {
  transform: scale(1.035);
}

.gallery-card__caption {
  position: absolute;
  z-index: 1;
  right: 12px;
  bottom: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  font-size: 10px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.gallery-card__caption span:last-child {
  color: var(--accent);
  font-size: 15px;
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(32px, 8vw, 120px);
  padding-top: clamp(64px, 10vw, 120px);
  padding-bottom: clamp(64px, 10vw, 120px);
  background: var(--night-soft);
}

.about__portrait {
  width: min(100%, 430px);
  justify-self: end;
}

.about__portrait picture,
.about__portrait img {
  width: 100%;
  height: 100%;
}

.about__portrait img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 34%;
}

.about__copy {
  max-width: 540px;
}

.about__copy .eyebrow {
  margin-bottom: 18px;
}

.about h2 {
  margin-bottom: 22px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.02;
}

.about__copy > p:not(.eyebrow) {
  max-width: 440px;
  margin: 0 0 25px;
  color: #c1bcb3;
  font-size: 14px;
  line-height: 1.9;
}

.text-link--light {
  color: #f7f4ee;
}

.contact {
  display: flex;
  min-height: 390px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 70px;
  padding-bottom: 70px;
  background: var(--paper);
  color: var(--ink);
  text-align: center;
}

.contact .eyebrow {
  margin-bottom: 15px;
}

.contact h2 {
  margin-bottom: 25px;
}

.contact__handle {
  margin: 16px 0 0;
  color: #716a61;
  font-size: 11px;
  letter-spacing: 1px;
}

.site-footer {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px clamp(18px, 5vw, 74px);
  background: var(--night);
}

.brand--footer .brand__mark {
  width: 27px;
  height: 27px;
  font-size: 14px;
}

.brand--footer .brand__name {
  font-size: 11px;
}

.site-footer p,
.site-footer > a:last-child {
  margin: 0;
  color: #aaa59b;
  font-size: 10px;
  letter-spacing: 0.4px;
}

.lightbox {
  position: fixed;
  width: min(100vw, 1280px);
  max-width: none;
  height: 100vh;
  max-height: none;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 64px 74px;
  background: transparent;
  color: #fff;
}

.lightbox[open] {
  display: flex;
}

.lightbox::backdrop {
  background: rgba(10, 10, 9, 0.95);
}

.lightbox__figure {
  display: flex;
  max-width: 100%;
  max-height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.lightbox__image {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 126px);
  object-fit: contain;
}

.lightbox__caption {
  padding-top: 12px;
  color: #d0cbc3;
  font-size: 11px;
  letter-spacing: 1px;
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  background: rgba(18, 18, 17, 0.4);
  color: #fff;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease;
}

.lightbox__close:hover,
.lightbox__nav:hover {
  border-color: var(--accent);
  background: rgba(215, 164, 123, 0.2);
}

.lightbox__close {
  top: 18px;
  right: 20px;
  font-size: 26px;
}

.lightbox__nav {
  top: 50%;
  font-size: 18px;
  transform: translateY(-50%);
}

.lightbox__nav--previous {
  left: 18px;
}

.lightbox__nav--next {
  right: 18px;
}

@media (min-width: 640px) {
  .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (min-width: 1000px) {
  .gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (max-width: 700px) {
  .site-header {
    min-height: 66px;
    padding-right: 18px;
    padding-left: 18px;
  }

  .brand {
    gap: 8px;
  }

  .brand__mark {
    width: 28px;
    height: 28px;
    font-size: 15px;
  }

  .brand__name {
    font-size: 11px;
    letter-spacing: 2px;
  }

  .site-nav {
    gap: 17px;
    font-size: 9px;
    letter-spacing: 0.8px;
  }

  .hero {
    min-height: 700px;
    min-height: max(700px, 100svh);
    padding: 130px 22px 91px;
  }

  .hero__image {
    inset: 0;
  }

  .hero__image img {
    object-position: 54% 26%;
  }

  .hero::after {
    background: linear-gradient(0deg, rgba(17, 17, 15, 0.98) 2%, rgba(17, 17, 15, 0.82) 31%, rgba(17, 17, 15, 0.08) 80%),
      linear-gradient(180deg, rgba(17, 17, 15, 0.5), transparent 28%);
  }

  .hero__content {
    width: 100%;
  }

  .eyebrow {
    gap: 8px;
    margin-bottom: 17px;
    font-size: 9px;
    letter-spacing: 1.6px;
  }

  .hero h1 {
    max-width: 440px;
    font-size: clamp(50px, 13vw, 74px);
  }

  .hero__intro {
    max-width: 330px;
    margin: 16px 0 22px;
    font-size: 14px;
  }

  .hero__actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 17px;
  }

  .hero__signature {
    margin-top: 30px;
    font-size: 9px;
  }

  .hero__scroll {
    right: 20px;
    bottom: 25px;
    width: 34px;
    height: 34px;
  }

  .portfolio {
    padding-top: 67px;
    padding-bottom: 76px;
  }

  .section-heading {
    display: block;
    margin-bottom: 24px;
  }

  .section-heading h2,
  .contact h2 {
    font-size: clamp(40px, 10vw, 54px);
  }

  .section-heading__note {
    max-width: 330px;
    margin-top: 14px;
    font-size: 12px;
  }

  .mobile-break {
    display: block;
  }

  .filters {
    gap: 7px;
    margin-bottom: 16px;
    margin-right: calc(clamp(18px, 5vw, 74px) * -1);
    padding-right: 18px;
  }

  .filter {
    min-height: 34px;
    padding-right: 12px;
    padding-left: 12px;
    font-size: 9px;
  }

  .gallery {
    gap: 8px;
  }

  .gallery-card__caption {
    right: 8px;
    bottom: 9px;
    left: 8px;
    font-size: 8px;
    letter-spacing: 0.8px;
  }

  .about {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-top: 58px;
    padding-bottom: 62px;
  }

  .about__portrait {
    width: min(76%, 340px);
    justify-self: start;
  }

  .about h2 {
    margin-bottom: 16px;
    font-size: clamp(44px, 11vw, 62px);
  }

  .about__copy > p:not(.eyebrow) {
    margin-bottom: 18px;
    font-size: 13px;
  }

  .contact {
    min-height: 350px;
    padding-top: 58px;
    padding-bottom: 58px;
  }

  .site-footer {
    min-height: 72px;
    gap: 8px;
    padding-right: 18px;
    padding-left: 18px;
  }

  .brand--footer {
    gap: 6px;
  }

  .brand--footer .brand__name {
    font-size: 9px;
    letter-spacing: 1.5px;
  }

  .site-footer p,
  .site-footer > a:last-child {
    font-size: 8px;
  }

  .lightbox {
    padding: 54px 40px;
  }

  .lightbox__image {
    max-height: calc(100vh - 106px);
  }

  .lightbox__close,
  .lightbox__nav {
    width: 36px;
    height: 36px;
  }

  .lightbox__close {
    top: 12px;
    right: 12px;
  }

  .lightbox__nav--previous {
    left: 7px;
  }

  .lightbox__nav--next {
    right: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
