:root {
  --black: #060606;
  --charcoal: #0f0f0f;
  --panel: #121212;
  --ivory: #ffffff;
  --soft: #ffffff;
  --muted: #ffffff;
  --line: rgba(255,255,255,.16);
  --page-pad: clamp(20px, 5vw, 84px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--ivory);
  font-family: "Inter", sans-serif;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--page-pad);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
}
.site-header.scrolled {
  background: rgba(6,6,6,.83);
  border-color: var(--line);
  backdrop-filter: blur(16px);
}
.site-nav {
  display: flex;
  gap: clamp(20px, 3vw, 42px);
}
.site-nav a,
.text-link,
.section-label,
.button,
.coming-soon,
.site-footer,
.hero-kicker,
.hero-subtitle {
  letter-spacing: .2em;
  text-transform: uppercase;
}
.site-nav a {
  font-size: 12px;
  color: var(--ivory);
}
.site-nav a:hover,
.text-link:hover {
  color: white;
}
.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 140px var(--page-pad) 90px;
  background:
    linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.38) 30%, rgba(0,0,0,.55) 100%),
    url("assets/hero-forest-fixed.webp") center 38%/cover no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 35%, rgba(255,255,255,.08), transparent 24%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 980px;
}
.hero-logo-wrap {
  display: flex;
  justify-content: center;
}
.hero-logo {
  width: min(760px, 90vw);
  filter: drop-shadow(0 6px 24px rgba(0,0,0,.45));
}
.hero-kicker {
  margin: 26px 0 12px;
  font-size: 12px;
  color: var(--soft);
}
.hero-subtitle {
  margin: 0;
  color: var(--ivory);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(22px, 3vw, 40px);
  letter-spacing: .16em;
}
.hero-actions {
  margin-top: 34px;
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  padding: 16px 24px;
  border: 1px solid var(--soft);
  font-size: 12px;
  font-weight: 500;
}
.button-solid {
  background: var(--ivory);
  color: #111;
}
.button-outline {
  color: var(--ivory);
  background: rgba(0,0,0,.18);
}
.button:hover {
  transform: translateY(-1px);
}

.story-section,
.shop-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  padding: 0 var(--page-pad);
  background: linear-gradient(180deg, #0a0a0a 0%, #070707 100%);
}
.story-section { align-items: stretch; }
.story-copy {
  padding: 88px 0;
  max-width: 620px;
}
.section-label {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 11px;
}
.story-copy h2,
.portfolio-section h2,
.shop-section h2,
.contact-section h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  line-height: .95;
  letter-spacing: -.02em;
}
.story-copy h2,
.shop-section h2 {
  font-size: clamp(42px, 6vw, 84px);
}
.accent-line {
  width: 70px;
  height: 1px;
  background: var(--soft);
  margin: 28px 0;
}
.story-copy p:not(.section-label) {
  color: #ffffff;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(23px, 2.2vw, 31px);
  line-height: 1.35;
}
.story-image {
  min-height: 520px;
  background:
    linear-gradient(90deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,.05) 24%, rgba(0,0,0,0) 50%),
    url("assets/about-river-bw.png") center center / cover no-repeat;
}

.portfolio-section {
  padding: 96px var(--page-pad);
  background: #070707;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 34px;
}
.portfolio-section h2 {
  font-size: clamp(40px, 5.5vw, 72px);
}
.text-link {
  font-size: 12px;
  color: var(--soft);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 220px;
  gap: 16px;
}
.gallery-card {
  position: relative;
  overflow: hidden;
  background-color: #181818;
  border: 1px solid rgba(255,255,255,.08);
  min-height: auto;
}
.gallery-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform .6s ease;
}
.gallery-card:hover::before { transform: scale(1.04); }
.feature-large {
  grid-column: span 2;
  grid-row: span 2;
}

.card-city-waterfront::before {
  background-image:
    linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.45)),
    url("assets/featured-city-waterfront-bw.jpg");
}

.card-sunset-ship::before {
  background-image:
    linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.45)),
    url("assets/featured-sunset-ship.jpg");
}

.card-forest-path::before {
  background-image:
    linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.45)),
    url("assets/featured-forest-path.jpg");
}

.card-lake-bridge::before {
  background-image:
    linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.45)),
    url("assets/featured-lake-bridge.jpg");
}

.card-creek-falls::before {
  background-image:
    linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.45)),
    url("assets/featured-creek-falls.jpg");
}

.card-river-rapids::before {
  background-image:
    linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.45)),
    url("assets/featured-river-rapids.jpg");
}

.card-white-flowers::before {
  background-image:
    linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.45)),
    url("assets/featured-white-flowers.jpg");
}
.gallery-card__label {
  position: absolute;
  left: 18px;
  bottom: 18px;
  right: 18px;
  z-index: 1;
  text-shadow: 0 3px 18px rgba(0,0,0,.8);
}
.gallery-card__label span {
  display: block;
  margin-bottom: 8px;
  color: var(--soft);
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.gallery-card__label strong {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: 32px;
  line-height: 1;
  font-weight: 500;
}

.shop-section {
  padding-top: 92px;
  padding-bottom: 92px;
  background: #ece4d8;
  color: #141414;
}
.shop-copy {
  max-width: 620px;
  align-self: end;
  justify-self: end;
}
.shop-copy p {
  margin: 0;
  color: #3a342d;
  font-size: 18px;
  line-height: 1.75;
}
.coming-soon {
  display: inline-block;
  margin-top: 26px;
  padding: 11px 16px;
  border: 1px solid rgba(0,0,0,.25);
  font-size: 10px;
}

.contact-section {
  padding: 110px var(--page-pad);
  text-align: center;
}
.contact-section h2 {
  font-size: clamp(54px, 8vw, 112px);
}
.contact-note {
  width: min(680px, 94%);
  margin: 20px auto 34px;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.8;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 30px var(--page-pad);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}
.site-footer > div {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.footer-brand {
  font-family: "Cormorant Garamond", serif;
  font-size: 20px;
  color: var(--ivory);
  letter-spacing: normal;
  text-transform: none;
}

@media (max-width: 980px) {
  .story-section,
  .shop-section {
    grid-template-columns: 1fr 1fr;
  }

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

  .feature-large {
    grid-column: span 2;
    grid-row: span 2;
  }
}

@media (max-width: 780px) {
  .menu-toggle {
    display: grid;
    gap: 6px;
    padding: 8px 0;
  }
  .menu-toggle span {
    display: block;
    width: 30px;
    height: 1px;
    background: white;
  }
  .site-nav {
    position: fixed;
    inset: 0;
    z-index: -1;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    background: rgba(8,8,8,.96);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
  }
  .site-nav.open {
    opacity: 1;
    pointer-events: auto;
  }
  .site-nav a { font-size: 24px; }

  .hero { padding-top: 120px; }
  .brand img { width: min(220px, 48vw); }
  .hero-logo { width: min(560px, 96vw); }

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

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 240px;
  }

  .feature-large {
    grid-column: span 1;
    grid-row: span 1;
  }
  .story-image { min-height: 340px; }
  .section-heading,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
  .contact-section { padding-top: 90px; padding-bottom: 90px; }
}



/* Selected Through Melissa's Lens logo */
.brand-logo {
  width: 92px;
  height: 92px;
  object-fit: contain;
  box-shadow: 0 6px 24px rgba(0,0,0,.28);
}

.hero-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-brand-image {
  width: min(430px, 74vw);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 35px rgba(0,0,0,.45));
}

.hero-kicker { margin-top: 24px; }

@media (max-width: 780px) {
  .brand-logo {
    width: 70px;
    height: 70px;
  }
  .hero-brand-image {
    width: min(330px, 86vw);
  }
}


/* Portfolio page */
.portfolio-page {
  background: #070707;
}

.portfolio-page .site-header {
  background: rgba(6,6,6,.9);
  border-color: var(--line);
  backdrop-filter: blur(16px);
}

.portfolio-page .site-nav a[aria-current="page"] {
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.65);
  padding-bottom: 5px;
}

.portfolio-hero {
  padding: 190px var(--page-pad) 72px;
  max-width: 1180px;
  margin: 0 auto;
}

.portfolio-hero h1 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: clamp(72px, 12vw, 170px);
  line-height: .82;
  letter-spacing: -.045em;
}

.portfolio-intro {
  max-width: 720px;
  margin: 34px 0 0;
  color: #fff;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.35;
}

.portfolio-gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
  padding: 0 var(--page-pad) 110px;
  max-width: 1600px;
  margin: 0 auto;
}

.portfolio-piece {
  position: relative;
  grid-column: span 4;
  margin: 0;
  min-height: 430px;
  overflow: hidden;
  background: #111;
  border: 1px solid rgba(255,255,255,.08);
}

.portfolio-piece-wide {
  grid-column: span 8;
}

.portfolio-piece-tall {
  grid-row: span 2;
  min-height: 878px;
}

.portfolio-piece img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition: transform .7s ease;
}

.portfolio-piece:hover img {
  transform: scale(1.025);
}

.portfolio-piece::after {
  content: "";
  position: absolute;
  inset: 48% 0 0;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.72));
  pointer-events: none;
}

.portfolio-piece figcaption {
  position: absolute;
  z-index: 2;
  left: 22px;
  right: 22px;
  bottom: 22px;
  text-shadow: 0 3px 18px rgba(0,0,0,.9);
}

.portfolio-piece figcaption span {
  display: block;
  margin-bottom: 8px;
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.portfolio-piece figcaption strong {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(28px, 2.6vw, 44px);
  line-height: .95;
  font-weight: 500;
}

.portfolio-cta {
  padding: 100px var(--page-pad) 120px;
  text-align: center;
  border-top: 1px solid var(--line);
}

.portfolio-cta h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: clamp(48px, 7vw, 94px);
  line-height: .95;
}

.portfolio-cta > p:not(.section-label) {
  max-width: 680px;
  margin: 24px auto 34px;
  font-size: 18px;
  line-height: 1.7;
}

@media (max-width: 980px) {
  .portfolio-piece,
  .portfolio-piece-wide {
    grid-column: span 6;
    min-height: 380px;
  }

  .portfolio-piece-tall {
    grid-row: span 1;
    min-height: 380px;
  }
}

@media (max-width: 780px) {
  .portfolio-hero {
    padding-top: 150px;
    padding-bottom: 52px;
  }

  .portfolio-gallery {
    display: block;
    padding-bottom: 72px;
  }

  .portfolio-piece,
  .portfolio-piece-wide,
  .portfolio-piece-tall {
    min-height: 0;
    margin-bottom: 16px;
  }

  .portfolio-piece img {
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .portfolio-piece-tall img {
    aspect-ratio: 4 / 5;
  }

  .portfolio-piece figcaption strong {
    font-size: 30px;
  }
}


/* Click-through photography links */
.photo-open-link {
  position: absolute;
  inset: 0;
  z-index: 4;
  cursor: zoom-in;
}

.gallery-card,
.portfolio-piece {
  cursor: zoom-in;
}

/* Photo detail / product preview */
.photo-page {
  background: #070707;
}

.photo-page .site-header {
  background: rgba(6,6,6,.92);
  border-color: var(--line);
  backdrop-filter: blur(16px);
}

.photo-nav {
  align-items: center;
}

.photo-detail {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(330px, .7fr);
  gap: clamp(28px, 4vw, 70px);
  padding: 150px var(--page-pad) 70px;
}

.photo-viewer {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 220px);
  overflow: visible;
  padding: 10px;
}

.photo-preview-shell {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 70vh;
  transition: padding .35s ease, background .35s ease, box-shadow .35s ease, transform .35s ease;
}

.photo-preview-shell img {
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 22px 70px rgba(0,0,0,.5);
}

.photo-preview-shell[data-product="canvas"] {
  padding: 10px;
}

.photo-preview-shell[data-product="canvas"] img {
  box-shadow: 12px 12px 0 rgba(255,255,255,.08), 0 22px 70px rgba(0,0,0,.55);
}

.photo-preview-shell[data-product="framed"] {
  padding: clamp(18px, 2vw, 30px);
  background: #111;
  box-shadow: inset 0 0 0 10px #252525, inset 0 0 0 12px rgba(255,255,255,.16);
}

.photo-preview-shell.preview-pulse {
  transform: scale(.992);
}

.photo-purchase-panel {
  align-self: center;
  padding: 10px 0 30px;
}

.photo-purchase-panel h1 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(46px, 5vw, 78px);
  font-weight: 500;
  line-height: .95;
}

.photo-testing-note {
  margin: 20px 0 32px;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .7;
}

.photo-option-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.photo-option-group {
  margin-bottom: 18px;
}

.photo-option-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.photo-option-group select {
  width: 100%;
  padding: 14px 13px;
  border: 1px solid rgba(255,255,255,.22);
  background: #101010;
  color: #fff;
  font: inherit;
}

.photo-option-group select:disabled {
  color: rgba(255,255,255,.55);
}

.photo-help {
  margin: 8px 0 28px;
  font-family: "Cormorant Garamond", serif;
  font-size: 20px;
  line-height: 1.45;
  opacity: .9;
}

.photo-actions {
  display: grid;
  gap: 12px;
}

.photo-actions .button {
  width: 100%;
}

.photo-actions button:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.photo-back-link {
  display: inline-block;
  margin-top: 28px;
}

@media (max-width: 900px) {
  .photo-detail {
    grid-template-columns: 1fr;
    padding-top: 130px;
  }

  .photo-viewer {
    min-height: auto;
  }

  .photo-preview-shell {
    min-height: 0;
  }

  .photo-preview-shell img {
    max-height: 65vh;
  }

  .photo-purchase-panel {
    max-width: 700px;
    width: 100%;
    justify-self: center;
  }
}

@media (max-width: 600px) {
  .photo-page .site-header {
    position: absolute;
  }

  .photo-page .brand-logo {
    width: 62px;
    height: 62px;
  }

  .photo-nav {
    display: flex;
    position: static;
    inset: auto;
    z-index: auto;
    flex-direction: row;
    gap: 16px;
    background: transparent;
    opacity: 1;
    pointer-events: auto;
  }

  .photo-nav a {
    font-size: 10px;
  }

  .photo-detail {
    padding-top: 120px;
  }

  .photo-option-grid {
    grid-template-columns: 1fr;
  }
}


/* Live print configurator */
.photo-option-group[hidden] {
  display: none;
}

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

.photo-price-block {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 4px 18px;
  margin: 8px 0 24px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.photo-price-block span {
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.photo-price-block strong {
  font-family: "Cormorant Garamond", serif;
  font-size: 42px;
  line-height: .9;
  font-weight: 500;
}

.photo-price-block small {
  grid-column: 2;
  justify-self: end;
  font-size: 10px;
  opacity: .65;
}

.photo-preview-shell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 74vh;
  min-height: 0;
  overflow: visible;
  transition: padding .35s ease, background .35s ease, box-shadow .35s ease, transform .35s ease;
}

.photo-preview-shell img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  background: transparent;
  box-shadow: 0 22px 70px rgba(0,0,0,.5);
}

.photo-preview-shell[data-product="photo"] {
  background: transparent;
  padding: 0;
}

.photo-preview-shell[data-product="canvas"] {
  padding: 0;
  background: transparent;
}

.photo-preview-shell[data-product="canvas"] img {
  background: transparent;
  box-shadow:
    10px 10px 0 rgba(255,255,255,.08),
    0 22px 70px rgba(0,0,0,.55);
}

.photo-preview-shell[data-product="framed"] {
  padding: clamp(18px, 2.2vw, 30px);
  background: #111;
  max-width: calc(100% - 20px);
  max-height: 74vh;
}

.photo-preview-shell[data-product="framed"] img {
  max-width: min(100%, 980px);
  max-height: 64vh;
  background: #f4f1e9;
  box-shadow: none;
}

.photo-preview-shell[data-frame="barnwood-gray"] {
  background: #6d6a67;
  box-shadow:
    inset 0 0 0 10px #77736f,
    inset 0 0 0 13px rgba(255,255,255,.18),
    0 22px 70px rgba(0,0,0,.5);
}

.photo-preview-shell[data-frame="wooden-black"] {
  background: #080808;
  box-shadow:
    inset 0 0 0 12px #020202,
    inset 0 0 0 15px rgba(255,255,255,.12),
    0 22px 70px rgba(0,0,0,.5);
}

.photo-preview-shell[data-frame="natural-walnut"] {
  background: #5d4030;
  box-shadow:
    inset 0 0 0 12px #6c4a36,
    inset 0 0 0 15px rgba(255,255,255,.10),
    0 22px 70px rgba(0,0,0,.5);
}

.photo-preview-shell[data-frame="unfinished-natural"] {
  background: #b89c75;
  box-shadow:
    inset 0 0 0 12px #c7ab82,
    inset 0 0 0 15px rgba(255,255,255,.18),
    0 22px 70px rgba(0,0,0,.5);
}

.photo-preview-shell[data-frame="wooden-black"] img {
  border: 14px solid #f4f1e9;
}

@media (max-width: 600px) {
  .photo-option-grid {
    grid-template-columns: 1fr;
  }

  .photo-price-block strong {
    font-size: 36px;
  }
}
