
:root {
  --paper: #fcfbf9;
  --white: #fff;
  --ink: #171717;
  --muted: #555;
  --line: #deddd9;
  --soft: #f1f0ed;
  --highlight: #333;
  --heading: "DM Sans", sans-serif;
  --body: "Inter", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.7;
}

img {
  max-width: 100%;
}

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

button {
  font: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid #333;
  outline-offset: 4px;
}

/* TYPOGRAPHY */

h1, h2, h3, h4, h5, h6 {
  color: var(--ink);
  font-family: var(--heading);
  font-weight: 500;
  line-height: 1.2;
  margin-top: 0;
}

h1 {
  font-size: clamp(36px, 5vw, 48px);
}

h2 {
  font-size: clamp(26px, 3.5vw, 32px);
}

h3 { font-size: 24px; }
h4 { font-size: 20px; }
h5 { font-size: 18px; }
h6 { font-size: 16px; }

p {
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.75;
  margin: 0 0 18px;
}

/* HEADER AND NAVIGATION */

.site-header {
  min-height: 88px;
  padding: 0 6.2%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 100;
}

.wordmark {
  font: 500 17px var(--heading);
  letter-spacing: .12em;
  line-height: 1.25;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 38px;
}

.main-nav a {
  font-size: 13px;
  letter-spacing: .04em;
  padding: 8px 0;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, color .2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  border-color: var(--ink);
  color: var(--ink);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 10px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 6px;
}

/* BUTTONS AND LINKS */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .05em;
  border: 1px solid var(--ink);
  transition: background .2s ease, color .2s ease;
}

.button-light {
  color: white;
  border-color: white;
}

.button-light:hover {
  background: white;
  color: var(--ink);
}

.button-dark {
  color: white;
  background: var(--ink);
}

.button-dark:hover {
  color: var(--ink);
  background: transparent;
}

.text-link {
  position: relative;
  display: inline-block;
  font-size: 12px;
  padding-bottom: 5px;
  border-bottom: 0;
}

.text-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 650ms ease-out;
}

.text-link:hover::after,
.text-link:focus-visible::after {
  transform: scaleX(1);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  letter-spacing: .2em;
  font-weight: 600;
  color: var(--highlight);
  margin: 0 0 16px;
}

.eyebrow::after {
  content: "";
  display: inline-block;
  width: 34px;
  height: 1px;
  background: currentColor;
  transform-origin: left;
}

/* HOME HERO */

.home-hero {
  min-height: 610px;
  height: min(72vw, 760px);
  position: relative;
  overflow: hidden;
  background: #aaa;
  display: grid;
  place-items: center;
  color: white;
}

.hero-photo,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-photo {
  object-fit: cover;
  object-position: center 45%;
  will-change: transform;
}

.hero-overlay {
  background: linear-gradient(
    90deg,
    rgba(0,0,0,.42),
    rgba(0,0,0,.10) 75%
  );
}

.hero-copy {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 20px;
}

.hero-copy h1 {
  color: white;
  font-size: clamp(42px, 6vw, 76px);
  letter-spacing: .04em;
  margin: 0;
}

.hero-subtitle {
  font-size: 12px;
  letter-spacing: .28em;
  text-transform: uppercase;
  margin: 17px 0 30px;
}

.hero-index {
  position: absolute;
  right: 6.2%;
  bottom: 28px;
  font-size: 10px;
  letter-spacing: .18em;
}

/* FEATURED WORK */

.section {
  padding: 105px 8%;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 35px;
}

.section-heading h2 {
  font-size: 42px;
  margin: 0;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.image-card {
  display: block;
  overflow: hidden;
}

.image-card img {
  width: 100%;
  height: 430px;
  display: block;
  object-fit: cover;
  transition: filter 300ms ease;
}

.image-card:hover img {
  filter: brightness(.9);
}

.image-caption {
  display: block;
  padding-top: 14px;
  font-size: 12px;
}

/* HOME INTRODUCTION */

.home-note {
  padding: 105px 12%;
  background: var(--soft);
  text-align: center;
}

.home-note h2 {
  font-size: clamp(22px, 2.1vw, 26px);
  line-height: 1.25;
  margin-bottom: 16px;
}

.home-note .intro-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 30px;
  margin-top: 32px;
}

/* PAGE INTRODUCTIONS */

.page-intro {
  padding: 105px 8% 70px;
  text-align: center;
}

.page-intro h1 {
  font-size: clamp(40px, 5vw, 58px);
  margin-bottom: 15px;
}

.page-intro > p:last-child {
  color: var(--muted);
  font-size: 14px;
}

/* PORTFOLIO */

.portfolio-section {
  padding: 45px 8% 70px;
  scroll-margin-top: 25px;
}

.shoot-heading {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  margin-bottom: 25px;
}

.shoot-number {
  font-size: 11px;
  letter-spacing: .12em;
  color: #777;
  padding-top: 7px;
}

.shoot-heading h2 {
  font-size: 26px;
  margin: 0 0 5px;
}

.shoot-heading p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

.gallery-grid {
  display: grid;
  gap: 18px;
}

.gallery-two {
  grid-template-columns: repeat(2, 1fr);
}

.gallery-three {
  grid-template-columns: repeat(3, 1fr);
}

.gallery-image {
  position: relative;
  padding: 0;
  border: 0;
  background: #e8e6e2;
  cursor: zoom-in;
  overflow: hidden;
  text-align: left;
}

.gallery-image img {
  width: 100%;
  height: 510px;
  display: block;
  object-fit: cover;
  transition: filter 300ms ease;
}

.gallery-three .gallery-image img {
  height: 420px;
}

.gallery-image:hover img {
  filter: brightness(.88);
}

.view-label {
  position: absolute;
  bottom: 17px;
  left: 18px;
  color: white;
  font-size: 12px;
  opacity: 0;
  text-shadow: 0 1px 4px #000;
}

.gallery-image:hover .view-label,
.gallery-image:focus-visible .view-label {
  opacity: 1;
}

.portfolio-contact {
  padding: 45px 8% 110px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  margin: 0 8%;
}

.portfolio-contact p {
  font: 500 25px var(--heading);
  margin: 0;
}

/* PHOTO LIGHTBOX */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15,15,15,.96);
  display: grid;
  place-items: center;
  padding: 55px 6vw;
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 28px;
  border: 0;
  background: transparent;
  color: white;
  font-size: 40px;
  cursor: pointer;
  line-height: 1;
}

.lightbox-hint {
  color: #ddd;
  font-size: 12px;
  position: absolute;
  bottom: 12px;
}

/* ABOUT PAGE */

.about-layout {
  padding: 20px 12% 120px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9%;
  align-items: center;
}

.about-photo-wrap img {
  width: 100%;
  max-height: 650px;
  object-fit: cover;
  display: block;
}

.photo-note {
  display: block;
  font-size: 10px;
  letter-spacing: .18em;
  margin-top: 12px;
  color: var(--muted);
}

.about-copy h2 {
  font-size: 38px;
  margin-bottom: 24px;
}

.about-copy p {
  font-size: 14px;
  color: var(--muted);
}

.about-copy .lead {
  font: 500 19px/1.5 var(--heading);
  color: var(--ink);
}

.interest-list {
  margin: 15px 0 25px;
  padding-left: 24px;
  color: var(--muted);
}

.interest-list li {
  padding: 5px 0;
  font-size: 15px;
}

.interest-list li::marker {
  color: var(--highlight);
}

/* PORTFOLIO DETAILS TABLE */

.details-section {
  padding: 70px 12%;
  background: var(--white);
}

.details-section h2 {
  margin-bottom: 24px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  text-align: left;
}

table caption {
  padding: 12px;
  color: var(--muted);
  text-align: left;
  font-size: 13px;
}

th,
td {
  padding: 15px;
  border: 1px solid var(--line);
  font-size: 13px;
}

th {
  width: 30%;
  color: var(--ink);
  background: var(--soft);
  font-weight: 600;
}

td {
  color: var(--muted);
}

/* CONTACT */

.contact-section {
  background: var(--soft);
  padding: 100px 12%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10%;
}

.contact-intro h2 {
  font-size: clamp(36px, 5vw, 58px);
  margin-bottom: 20px;
}

.contact-intro h2 em {
  font-weight: 400;
}

.contact-intro > p:last-child {
  max-width: 360px;
  color: var(--muted);
  font-size: 14px;
}

.contact-details {
  padding-top: 10px;
}

.contact-row {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 18px 0;
  border-bottom: 1px solid #c9c7c2;
  font-size: 12px;
}

.contact-row span {
  color: var(--muted);
}

.contact-row strong {
  font-weight: 500;
  text-align: right;
}

/* LOCATION AND MAP */

.location-section {
  padding: 80px 12%;
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 40px;
  align-items: center;
}

.map-frame {
  min-height: 300px;
  border: 1px solid var(--line);
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 300px;
  border: 0;
}

/* FOOTER */

.site-footer {
  padding: 28px 6.2%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}

.site-footer p {
  margin: 0;
  font-size: 11px;
}

.footer-brand {
  color: var(--ink);
  font: 500 12px var(--heading);
  letter-spacing: .13em;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.footer-nav a {
  color: var(--muted);
  font-size: 11px;
  padding: 5px 0;
  border-bottom: 1px solid transparent;
}

.footer-nav a:hover {
  color: var(--ink);
  border-color: var(--ink);
}

/* FADE-IN ANIMATIONS */

.js-enabled .reveal-on-scroll {
  opacity: 0;
  transition: opacity 900ms ease-out;
}

.js-enabled .reveal-on-scroll.is-visible {
  opacity: 1;
}

.js-enabled .reveal-photo {
  transition-duration: 1400ms;
}

.js-enabled .home-hero .hero-photo,
.js-enabled .home-hero .hero-overlay {
  animation: heroFade 1400ms ease-out both;
}

.js-enabled .hero-name {
  animation: heroFade 1100ms ease-out both;
}

.js-enabled .hero-copy .hero-subtitle,
.js-enabled .hero-copy .button {
  animation: heroFade 900ms ease-out both;
}

.js-enabled .hero-copy .hero-subtitle {
  animation-delay: 300ms;
}

.js-enabled .hero-copy .button {
  animation-delay: 500ms;
}

@keyframes heroFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* SECTION LABEL LINES */

.js-enabled .reveal-on-scroll .eyebrow::after {
  transform: scaleX(0);
  transition: transform 900ms ease-out 150ms;
}

.js-enabled .reveal-on-scroll.is-visible .eyebrow::after {
  transform: scaleX(1);
}

/* SUBTLE PARALLAX ON DESKTOP */

@media (min-width: 901px) {
  .home-hero .hero-photo {
    transform: translateY(var(--hero-parallax, 0px)) scale(1.03);
  }
}

/* TABLET */

@media (max-width: 900px) {
  .location-section {
    grid-template-columns: 1fr;
    padding: 60px 7%;
  }

  .details-section {
    padding: 60px 7%;
  }

  .about-layout {
    padding-left: 7%;
    padding-right: 7%;
  }

  .contact-section {
    padding-left: 7%;
    padding-right: 7%;
  }

  .home-hero .hero-photo {
    transform: none !important;
  }
}

/* MOBILE */

@media (max-width: 760px) {
  .site-header {
    min-height: 74px;
    padding: 0 6%;
  }

  .wordmark {
    font-size: 15px;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    padding: 18px 6% 24px;
    background: var(--paper);
    border-top: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .main-nav.open {
    display: flex;
  }

  .home-hero {
    height: 590px;
    min-height: 0;
  }

  .hero-photo {
    object-position: 55% center;
  }

  .section {
    padding: 70px 6%;
  }

  .section-heading {
    align-items: flex-start;
    gap: 20px;
    flex-direction: column;
  }

  .section-heading h2 {
    font-size: 36px;
  }

  .featured-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .image-card img {
    height: 430px;
  }

  .home-note {
    padding: 75px 8%;
  }

  .home-note h2 {
    font-size: 23px;
  }

  .home-note .intro-links {
    flex-direction: column;
    gap: 18px;
  }

  .page-intro {
    padding: 75px 6% 45px;
  }

  .page-intro h1 {
    font-size: 36px;
  }

  .portfolio-section {
    padding: 35px 6% 45px;
  }

  .gallery-two,
  .gallery-three {
    grid-template-columns: 1fr;
  }

  .gallery-image img,
  .gallery-three .gallery-image img {
    height: min(125vw, 570px);
  }

  .view-label {
    opacity: 1;
  }

  .portfolio-contact {
    margin: 0 6%;
    padding: 35px 0 75px;
    gap: 20px;
    align-items: flex-start;
    flex-direction: column;
  }

  .about-layout {
    padding: 15px 6% 75px;
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-photo-wrap img {
    max-height: 520px;
  }

  .about-copy h2 {
    font-size: 32px;
  }

  .contact-section {
    padding: 75px 6%;
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .details-section,
  .location-section {
    padding: 50px 6%;
  }

  th,
  td {
    padding: 11px;
    font-size: 12px;
  }

  .site-footer {
    padding: 25px 6%;
    flex-wrap: wrap;
  }

  .footer-nav {
    flex-wrap: wrap;
    gap: 14px;
  }

  .site-footer p {
    width: 100%;
  }
}

/* ACCESSIBILITY: TURN OFF ANIMATIONS WHEN REQUESTED */

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

  .js-enabled .reveal-on-scroll {
    opacity: 1 !important;
  }

  .eyebrow::after {
    transform: none !important;
  }
}
