:root {
  --bg: #a7a7a3;
  --bg-soft: #bdbdb9;
  --surface: #eeeeeb;
  --surface-muted: #7f807d;
  --text: #101010;
  --text-soft: #252525;
  --muted: #454545;
  --dark: #101010;
  --dark-soft: #1a1a1a;
  --gray-900: #181818;
  --gray-800: #242424;
  --gray-700: #343434;
  --gray-500: #5f615f;
  --gray-300: #c7c7c4;
  --gray-200: #dededb;
  --accent: #5c6468;
  --accent-dark: #30383c;
  --border: rgba(16, 16, 16, .22);
  --border-dark: rgba(255, 255, 255, .14);
  --shadow: 0 18px 50px rgba(15, 15, 15, .16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(180deg, #bdbdb8 0%, var(--bg) 38%, #9b9c98 100%);
  background-size: 76px 76px, auto;
  font-family: Manrope, Arial, sans-serif;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; width: 100%; height: 100%; object-fit: cover; }
button { font: inherit; }

.site-header,
.hero,
.section,
.site-footer {
  width: min(1080px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  width: 100%;
  min-height: 76px;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: center;
  margin-inline: 0;
  padding-inline: max(22px, calc((100vw - 1120px) / 2));
  border-bottom: 1px solid rgba(255,255,255,.12);
  color: var(--surface);
  background:
    linear-gradient(90deg, rgba(16,16,16,.96), rgba(36,36,36,.94)),
    var(--gray-900);
  backdrop-filter: blur(14px);
}

.brand,
.main-nav,
.hero-actions,
.photographer-actions,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  min-width: 0;
  gap: 12px;
  font-weight: 700;
}

.brand span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.62);
  border-radius: 50%;
  color: var(--surface);
  font-size: .76rem;
  font-weight: 800;
}

.brand strong {
  font-size: .98rem;
  letter-spacing: -.02em;
}

.header-note {
  margin: 0;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  color: var(--gray-300);
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.main-nav {
  justify-content: flex-end;
  gap: 18px;
}

.main-nav a {
  position: relative;
  color: var(--gray-300);
  font-size: .86rem;
  font-weight: 600;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 1px;
  background: var(--surface);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.main-nav a:hover,
.main-nav .nav-cta {
  color: var(--surface);
}

.main-nav .nav-cta {
  padding: 9px 13px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
}

.main-nav .nav-cta::after {
  display: none;
}

.main-nav a:hover::after,
.main-nav .nav-cta::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--surface);
}

.hero {
  display: grid;
  min-height: 78vh;
  grid-template-columns: minmax(0, .92fr) minmax(360px, .95fr);
  gap: clamp(28px, 4.4vw, 52px);
  align-items: center;
  padding: 64px 0 78px;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--accent-dark);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }
h1, h2 {
  font-family: "Playfair Display", Georgia, serif;
  letter-spacing: -.035em;
}

h1 {
  max-width: 640px;
  margin-bottom: 22px;
  color: var(--dark);
  font-size: clamp(3rem, 6.1vw, 5.8rem);
  line-height: .98;
}

h2 {
  max-width: 780px;
  margin-bottom: 16px;
  color: var(--dark);
  font-size: clamp(2rem, 3.6vw, 3.6rem);
  line-height: 1.02;
}

h3 {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.2;
}

p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.68;
}

.hero-copy p,
.section-heading p,
.photographer-copy p,
.contact-card p {
  max-width: 640px;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
}

.hero-index {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  max-width: 620px;
  margin-top: 28px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.hero-index span {
  padding: 12px 18px 12px 0;
  margin-right: 18px;
  color: var(--text-soft);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-actions,
.photographer-actions {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  background: transparent;
  font-size: .9rem;
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  border-color: var(--dark);
  color: var(--surface);
  background: var(--dark);
  box-shadow: 0 14px 34px rgba(0,0,0,.18);
}

.button.ghost:hover {
  border-color: var(--dark);
  background: var(--surface);
}

.button.full {
  width: 100%;
}

.hero-frame {
  display: grid;
  height: auto;
  max-height: 560px;
  aspect-ratio: 1.05 / 1;
  grid-template-columns: 1.05fr .78fr;
  grid-template-rows: 1fr .9fr;
  gap: 12px;
}

.photo-tile {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface-muted);
  box-shadow: var(--shadow);
  transform: translateZ(0);
}

.photo-tile img,
.category-card img,
.essay-card img,
.gallery-grid img,
.photographer-photo img {
  transform: scale(1.01);
  transition: transform 700ms cubic-bezier(.2,.7,.2,1), filter 500ms ease;
  will-change: transform;
}

.photo-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(115deg, transparent 18%, rgba(255,255,255,.26) 48%, transparent 72%);
  opacity: 0;
  transform: translateX(-120%);
  transition: opacity 260ms ease, transform 900ms cubic-bezier(.2,.7,.2,1);
  pointer-events: none;
}

.photo-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(0,0,0,.25));
  pointer-events: none;
}

.photo-tile:hover img {
  filter: grayscale(0) contrast(1.04);
  transform: scale(1.07);
}

.photo-tile:hover::before {
  opacity: 1;
  transform: translateX(120%);
}

.photo-tile.large {
  grid-row: 1 / -1;
}

.photo-tile.tall {
  transform: translateY(24px);
}

.photo-tile.large img {
  animation: photoDrift 14s ease-in-out infinite alternate;
}

.section {
  padding: 82px 0;
  background: transparent;
}

.section:nth-of-type(even) {
  background: var(--bg-soft);
  box-shadow: 0 0 0 100vmax var(--bg-soft);
  clip-path: inset(0 -100vmax);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.categories-section,
.gallery-section,
.services-section {
  border-top: 1px solid rgba(20, 20, 20, .06);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.category-card,
.service-card,
blockquote,
.identity-card,
.contact-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.category-card,
.service-card,
blockquote {
  padding: 20px;
  border-top-color: rgba(255,255,255,.34);
}

.category-card {
  position: relative;
  display: grid;
  min-height: 315px;
  align-content: start;
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: auto 20px 20px 20px;
  height: 1px;
  background: var(--accent-dark);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 420ms ease;
}

.category-card:first-child,
.category-card:nth-child(7) {
  grid-column: auto;
}

.category-card:hover {
  border-color: rgba(16,16,16,.42);
  transform: translateY(-4px);
}

.category-card:hover::after {
  transform: scaleX(1);
}

.category-card img {
  width: calc(100% + 40px);
  height: auto;
  aspect-ratio: 4 / 3;
  margin: -20px -20px 18px;
  filter: grayscale(.08) contrast(1.08) saturate(1.04);
  object-fit: cover;
}

.category-card:hover img {
  filter: grayscale(0) contrast(1.1) saturate(1.05);
  transform: scale(1.045) translateY(-4px);
}

.category-card span {
  color: var(--accent-dark);
  font-size: .82rem;
  font-weight: 800;
}

.category-card p {
  margin-bottom: 0;
  font-size: .95rem;
}

.story-section {
  display: grid;
  min-height: auto;
  grid-template-columns: minmax(0, .82fr) minmax(320px, 1fr);
  gap: 24px;
  align-items: end;
  overflow: hidden;
  border-radius: 20px;
  padding: 34px;
  color: var(--surface);
  background:
    linear-gradient(135deg, #111, #242424 72%);
  box-shadow: 0 24px 70px rgba(0,0,0,.24);
}

.story-section h2,
.story-section h3 {
  color: var(--surface);
}

.story-section p {
  color: rgba(255,255,255,.72);
}

.story-section .eyebrow {
  color: var(--gray-300);
}

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

.essay-card {
  min-height: 204px;
  overflow: hidden;
  border: 1px solid var(--border-dark);
  border-radius: 16px;
  background: rgba(255,255,255,.09);
  transition: background 220ms ease, border-color 220ms ease, transform 220ms ease;
}

.essay-card img {
  height: auto;
  aspect-ratio: 16 / 9;
  filter: grayscale(.02) contrast(1.08) saturate(1.03);
  transition-duration: 520ms;
}

.essay-card:hover {
  border-color: rgba(255,255,255,.32);
  background: rgba(255,255,255,.13);
  transform: translateX(4px);
}

.essay-card:hover img {
  transform: scale(1.04);
}

.essay-card div {
  padding: 14px;
}

.essay-card span {
  display: inline-flex;
  margin-bottom: 6px;
  color: var(--gray-300);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.essay-card h3 {
  margin-bottom: 5px;
  color: var(--surface);
}

.essay-card p {
  margin: 0;
  font-size: .86rem;
  line-height: 1.45;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr 1fr .9fr;
  gap: 14px;
  align-items: start;
}

.gallery-grid figure {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 18px;
  aspect-ratio: 4 / 5;
  background: var(--surface-muted);
  box-shadow: var(--shadow);
  transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
}

.gallery-grid figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.18);
  opacity: 0;
  transition: opacity 240ms ease;
  pointer-events: none;
}

.gallery-grid figure:hover {
  border-color: rgba(16,16,16,.34);
  box-shadow: 0 24px 70px rgba(0,0,0,.18);
  transform: rotate(-1.2deg) translateY(-6px);
}

.gallery-grid figure:nth-child(even):hover {
  transform: rotate(1.2deg) translateY(-6px);
}

.gallery-grid figure:hover::after {
  opacity: 1;
}

.gallery-grid figure:hover img {
  filter: grayscale(0) contrast(1.1) saturate(1.08);
  transform: scale(1.08);
}

.gallery-grid figure:nth-child(2) {
  margin-top: 34px;
  aspect-ratio: 1 / 1.15;
}

.gallery-grid figure:nth-child(3) {
  aspect-ratio: 1 / 1.35;
}

.gallery-grid figure:nth-child(4) {
  margin-top: 18px;
  aspect-ratio: 1 / 1;
}

figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--surface);
  background: rgba(17,17,17,.72);
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  transform: translateY(6px);
  opacity: .86;
  transition: transform 240ms ease, opacity 240ms ease;
}

.gallery-grid figure:hover figcaption {
  opacity: 1;
  transform: translateY(0);
}

.photographer-section {
  display: grid;
  grid-template-columns: minmax(250px, .72fr) minmax(0, 1fr) minmax(230px, .52fr);
  gap: 18px;
  align-items: stretch;
}

.photographer-photo {
  position: relative;
  min-height: 470px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface-muted);
  box-shadow: 0 24px 70px rgba(0,0,0,.18);
  transition: border-radius 520ms ease, transform 520ms ease;
}

.photographer-photo::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 16px;
  opacity: 0;
  transform: scale(.96);
  transition: opacity 420ms ease, transform 520ms ease;
  pointer-events: none;
}

.photographer-photo img {
  filter: grayscale(.04) contrast(1.08) saturate(1.04);
}

.photographer-photo:hover {
  border-radius: 28px;
  transform: translateY(-4px);
}

.photographer-photo:hover::after {
  opacity: 1;
  transform: scale(1);
}

.photographer-photo:hover img {
  filter: grayscale(0) contrast(1.1) saturate(1.05);
  transform: scale(1.035);
}

.photographer-photo span {
  display: none;
}

.photographer-photo.is-placeholder {
  display: grid;
  place-items: center;
  background: var(--gray-800);
}

.photographer-photo.is-placeholder span {
  display: inline-flex;
  padding: 10px 12px;
  border: 1px solid var(--border-dark);
  border-radius: 999px;
  color: var(--surface);
  font-weight: 700;
}

.photographer-copy,
.identity-card {
  padding: 30px;
}

.photographer-copy {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(238, 238, 235, .72);
  padding-left: 32px;
  padding-right: 32px;
}

.photographer-copy .role {
  color: var(--text-soft);
  font-size: 1.08rem;
  font-weight: 700;
}

.highlight-list,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.highlight-list {
  margin: 24px 0 0;
}

.highlight-list span,
.tag-list span {
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-soft);
  background: #d2d2cf;
  font-size: .82rem;
  font-weight: 600;
}

.identity-card {
  align-self: center;
  background: var(--gray-900);
  color: var(--surface);
}

.identity-card .eyebrow,
.identity-card p {
  color: var(--gray-300);
}

.identity-card p {
  margin-bottom: 10px;
  font-weight: 700;
}

.identity-card dl {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}

.identity-card dt {
  color: rgba(255,255,255,.58);
  font-size: .74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.identity-card dd {
  margin: 4px 0 0;
  font-weight: 700;
}

.identity-card .button.primary,
.contact-card .button.primary {
  border-color: var(--surface);
  color: var(--dark);
  background: var(--surface);
}

.services-section {
  counter-reset: service;
}

.service-grid,
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  counter-increment: service;
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 16px;
  min-height: 160px;
  align-items: start;
}

.service-card::before {
  content: counter(service, decimal-leading-zero);
  color: var(--accent-dark);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.85rem;
  line-height: 1;
}

blockquote {
  margin: 0;
  color: var(--text);
  font-size: .98rem;
  line-height: 1.62;
}

blockquote cite {
  display: block;
  margin-top: 18px;
  color: var(--accent-dark);
  font-style: normal;
  font-weight: 700;
}

.contact-card {
  display: grid;
  justify-items: start;
  padding: 34px;
  color: var(--surface);
  background: linear-gradient(135deg, #101010, #2a2a2a);
}

.contact-card p {
  color: rgba(255,255,255,.72);
}

.site-footer {
  justify-content: space-between;
  gap: 14px;
  padding: 26px 0;
  border-top: 1px solid var(--border-dark);
  color: var(--surface);
  background: var(--gray-900);
  box-shadow: 0 0 0 100vmax var(--gray-900);
  clip-path: inset(0 -100vmax);
  font-weight: 700;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 680ms ease, transform 680ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-frame.reveal,
.photo-tile.reveal,
.category-card.reveal,
.gallery-grid figure.reveal,
.photographer-photo.reveal {
  clip-path: inset(10% 0 10% 0);
}

.hero-frame.reveal.visible,
.photo-tile.reveal.visible,
.category-card.reveal.visible,
.gallery-grid figure.reveal.visible,
.photographer-photo.reveal.visible {
  clip-path: inset(0);
  transition: opacity 760ms ease, transform 760ms ease, clip-path 900ms cubic-bezier(.2,.7,.2,1);
}

@keyframes photoDrift {
  from { transform: scale(1.03) translate3d(-1.5%, -1%, 0); }
  to { transform: scale(1.1) translate3d(1.5%, 1%, 0); }
}

@media (max-width: 1060px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .header-note {
    display: none;
  }

  .menu-toggle {
    display: block;
    justify-self: end;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    width: 100%;
    padding: 16px max(22px, calc((100vw - 1120px) / 2)) 18px;
    border-bottom: 1px solid rgba(255,255,255,.12);
    background: rgba(24,24,24,.98);
  }

  .main-nav.active {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 18px;
  }

  .hero,
  .photographer-section,
  .story-section {
    grid-template-columns: 1fr;
  }

  .hero-frame {
    max-height: none;
    aspect-ratio: 16 / 10;
    grid-template-columns: 1.15fr .85fr;
  }

  .identity-card {
    align-self: stretch;
  }

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

@media (max-width: 720px) {
  .site-header,
  .hero,
  .section,
  .site-footer {
    width: min(100% - 24px, 1120px);
  }

  .site-header {
    min-height: 68px;
    padding-inline: 12px;
  }

  .brand span {
    width: 34px;
    height: 34px;
  }

  .brand strong {
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  h1 {
    font-size: clamp(2.4rem, 14vw, 4rem);
  }

  h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .hero {
    min-height: auto;
    padding: 42px 0 58px;
  }

  .hero-frame {
    aspect-ratio: 1 / 1;
    grid-template-columns: 1fr 1fr;
  }

  .photo-tile.tall {
    transform: none;
  }

  .section {
    padding: 58px 0;
  }

  .hero-index span {
    width: 50%;
    margin: 0;
    padding-right: 8px;
  }

  .hero-actions .button,
  .photographer-actions .button,
  .contact-card .button {
    width: 100%;
  }

  .category-grid,
  .service-grid,
  .testimonial-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .category-card:first-child,
  .category-card:nth-child(7) {
    grid-column: auto;
  }

  .category-card {
    min-height: auto;
  }

  .story-section {
    min-height: auto;
    padding: 24px;
    border-radius: 20px;
  }

  .essay-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid figure,
  .gallery-grid figure:nth-child(2),
  .gallery-grid figure:nth-child(3),
  .gallery-grid figure:nth-child(4) {
    margin-top: 0;
    aspect-ratio: 4 / 5;
  }

  .photographer-photo {
    min-height: 360px;
  }

  .photographer-copy,
  .identity-card,
  .contact-card {
    padding: 22px;
  }

  .service-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .site-footer {
    display: grid;
  }

  .photo-tile.large img {
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
}
