:root {
  color-scheme: dark;
  --black: #020202;
  --white: #f6f4ee;
  --muted: #a7a39b;
  --line: rgba(246, 244, 238, 0.28);
  --soft-line: rgba(246, 244, 238, 0.14);
  --header-height: 78px;
  --page-pad: clamp(18px, 3vw, 46px);
  --type: "Helvetica Neue", "Neue Haas Grotesk Text", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--black);
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--type);
  font-size: 16px;
  line-height: 1.45;
  letter-spacing: 0;
  text-rendering: geometricPrecision;
}

body::selection {
  background: var(--white);
  color: var(--black);
}

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

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  min-height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 18px var(--page-pad);
  background: linear-gradient(180deg, rgba(2, 2, 2, 0.96), rgba(2, 2, 2, 0.68) 70%, rgba(2, 2, 2, 0));
}

.nav-links a {
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand {
  display: grid;
  gap: 4px;
  line-height: 1;
  white-space: nowrap;
}

.brand span {
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(12px, 1.8vw, 26px);
  flex-wrap: wrap;
}

.nav-links a,
.contact-links a {
  opacity: 0.76;
  transition: opacity 180ms ease, border-color 180ms ease;
}

.nav-links a:hover,
.contact-links a:hover {
  opacity: 1;
}

.section {
  scroll-margin-top: var(--header-height);
  padding-right: var(--page-pad);
  padding-left: var(--page-pad);
}

.intro {
  display: grid;
  min-height: 100svh;
  align-items: end;
  padding-top: calc(var(--header-height) + 48px);
  padding-bottom: clamp(64px, 11vh, 120px);
}

.intro-copy {
  width: min(620px, 100%);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: clamp(12px, 1vw, 15px);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: none;
  margin-bottom: 22px;
  font-size: clamp(24px, 3vw, 42px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0;
  text-transform: uppercase;
}

.intro p:not(.eyebrow) {
  max-width: 560px;
  margin-bottom: 12px;
  color: var(--white);
  font-size: clamp(15px, 1.25vw, 20px);
  font-weight: 400;
  line-height: 1.45;
}

.intro-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--white);
  padding: 14px 20px;
  background: var(--white);
  color: var(--black);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

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

.button-secondary,
.submit-button:hover {
  background: transparent;
  color: var(--white);
}

.button-secondary:hover,
.submit-button {
  background: var(--white);
  color: var(--black);
}

.gallery-section {
  min-height: 220svh;
  padding-top: 0;
  padding-bottom: 0;
  border-top: 1px solid var(--soft-line);
}

.gallery-sticky {
  position: sticky;
  top: var(--header-height);
  display: flex;
  min-height: calc(100svh - var(--header-height));
  flex-direction: column;
  justify-content: center;
  padding-top: clamp(34px, 6vh, 70px);
  padding-bottom: clamp(34px, 6vh, 70px);
}

.gallery-section h2,
.section-heading h2 {
  margin: 0 0 clamp(24px, 4vw, 50px);
  font-size: clamp(34px, 7vw, 98px);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: 0;
  text-transform: uppercase;
}

.photo-row {
  display: flex;
  min-height: clamp(360px, 62vh, 690px);
  align-items: center;
  gap: clamp(18px, 2.4vw, 36px);
  overflow-x: auto;
  overflow-y: hidden;
  padding: 10px 0 32px;
  scroll-snap-type: x proximity;
  scrollbar-color: var(--white) transparent;
}

.photo-row::-webkit-scrollbar {
  height: 8px;
}

.photo-row::-webkit-scrollbar-track {
  background: transparent;
}

.photo-row::-webkit-scrollbar-thumb {
  background: var(--white);
}

.photo-frame {
  flex: 0 0 auto;
  border: 8px solid var(--white);
  background: var(--white);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.75);
  scroll-snap-align: start;
}

.photo-frame img {
  display: block;
  width: auto;
  max-width: none;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.03);
}

.photo-frame.portrait {
  height: clamp(370px, 62vh, 660px);
}

.photo-frame.landscape {
  height: clamp(270px, 46vh, 510px);
}

.photo-frame.featured {
  height: clamp(340px, 58vh, 640px);
}

.photo-frame.square {
  height: clamp(300px, 52vh, 540px);
  aspect-ratio: 1;
}

.photo-frame.square img {
  width: 100%;
}

.photo-frame.compact {
  height: clamp(250px, 42vh, 440px);
}

.text-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(32px, 6vw, 110px);
  padding-top: clamp(96px, 14vh, 170px);
  padding-bottom: clamp(92px, 12vh, 150px);
  border-top: 1px solid var(--soft-line);
}

.section-heading {
  position: sticky;
  top: calc(var(--header-height) + 22px);
  align-self: start;
}

.text-content {
  max-width: 900px;
}

.text-content > p {
  margin-bottom: 22px;
  color: var(--white);
  font-size: clamp(20px, 2.2vw, 34px);
  font-weight: 650;
  line-height: 1.12;
}

.about-copy > p {
  max-width: 760px;
  color: rgba(246, 244, 238, 0.82);
  font-size: clamp(17px, 1.35vw, 22px);
  font-weight: 400;
  line-height: 1.5;
}

.about-page {
  min-height: 100svh;
  padding-top: var(--header-height);
}

.about-hero {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(34px, 6vw, 96px);
  align-items: start;
  padding-top: clamp(72px, 10vh, 126px);
  padding-bottom: clamp(76px, 10vh, 130px);
}

.about-image-frame {
  border: 8px solid var(--white);
  background: var(--white);
}

.about-image-frame img {
  display: block;
  width: 100%;
  height: auto;
  filter: contrast(1.04);
}

.about-page-copy {
  max-width: 820px;
}

.about-page-copy p {
  margin-bottom: 18px;
  color: rgba(246, 244, 238, 0.84);
  font-size: clamp(16px, 1.1vw, 19px);
  font-weight: 400;
  line-height: 1.55;
}

.about-page-copy p:first-child {
  color: rgba(246, 244, 238, 0.9);
  font-size: clamp(17px, 1.25vw, 21px);
  font-weight: 400;
  line-height: 1.5;
}

.service-content {
  max-width: 760px;
}

.service-content .service-intro,
.service-content .closing-line {
  max-width: 700px;
  color: rgba(246, 244, 238, 0.78);
  font-size: clamp(16px, 1.15vw, 19px);
  font-weight: 400;
  line-height: 1.5;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 30px 0;
  border: 1px solid var(--soft-line);
  background: var(--soft-line);
}

.service-list article {
  min-height: 96px;
  display: flex;
  align-items: center;
  padding: clamp(14px, 1.7vw, 22px);
  background: var(--black);
}

.service-list h3 {
  margin-bottom: 0;
  font-size: clamp(15px, 1.35vw, 22px);
  font-weight: 800;
  line-height: 1.05;
  text-transform: uppercase;
}

.service-with-copy {
  display: grid;
  align-content: center;
  gap: 8px;
}

.service-with-copy p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(13px, 1vw, 15px);
  font-weight: 400;
  line-height: 1.35;
}

.photobook-service {
  max-width: 700px;
  margin: 18px 0 34px;
  border: 1px solid var(--line);
  padding: clamp(18px, 2vw, 26px);
}

.photobook-service h3 {
  margin-bottom: 12px;
  font-size: clamp(18px, 1.5vw, 24px);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.photobook-service p {
  max-width: 560px;
  margin-bottom: 0;
  color: rgba(246, 244, 238, 0.78);
  font-size: clamp(15px, 1.1vw, 18px);
  font-weight: 400;
  line-height: 1.5;
}

.service-list p,
.closing-line {
  color: var(--muted);
}

.service-list p,
.detail-list,
.contact-links {
  font-size: clamp(15px, 1.2vw, 18px);
}

.video-content > p {
  max-width: 760px;
  color: rgba(246, 244, 238, 0.82);
  font-size: clamp(21px, 2vw, 32px);
  font-weight: 500;
  line-height: 1.22;
}

.detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 46px 0;
  padding: 0;
  border: 1px solid var(--soft-line);
  background: var(--soft-line);
  list-style: none;
}

.detail-list li {
  padding: 20px;
  background: var(--black);
  color: var(--white);
  font-weight: 750;
  text-transform: uppercase;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 34px;
  color: var(--muted);
  font-style: normal;
}

.contact-links a {
  width: fit-content;
  border-bottom: 1px solid var(--line);
}

.icon-links a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-bottom: 0;
}

.icon-links a span:last-child {
  border-bottom: 1px solid var(--line);
}

.contact-icon {
  display: inline-flex;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--white);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(340px, 1fr);
  gap: clamp(34px, 5vw, 80px);
  max-width: 1120px;
}

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

.contact-form label {
  display: grid;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--white);
  padding: 15px 14px;
  outline: none;
  font-size: 16px;
  line-height: 1.35;
  text-transform: none;
  transition: border-color 160ms ease;
}

.contact-form textarea {
  resize: vertical;
  min-height: 150px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--white);
}

.form-note {
  min-height: 24px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px var(--page-pad);
  border-top: 1px solid var(--soft-line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 860px) {
  :root {
    --header-height: 116px;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    padding-bottom: 24px;
  }

  .nav-links {
    justify-content: flex-start;
    gap: 11px 16px;
  }

  .intro {
    padding-top: calc(var(--header-height) + 42px);
  }

  .intro p:not(.eyebrow) {
    line-height: 1.45;
  }

  .photo-frame {
    border-width: 6px;
  }

  .photo-frame.portrait {
    height: clamp(330px, 58vh, 540px);
  }

  .photo-frame.landscape,
  .photo-frame.compact {
    height: clamp(240px, 40vh, 380px);
  }

  .photo-frame.featured {
    height: clamp(300px, 52vh, 500px);
  }

  .text-section,
  .contact-layout,
  .about-hero {
    grid-template-columns: 1fr;
  }

  .section-heading {
    position: static;
  }

  .service-list,
  .detail-list {
    grid-template-columns: 1fr;
  }

  .about-image-frame {
    max-width: 680px;
  }
}

@media (max-width: 560px) {
  .nav-links a {
    font-size: 11px;
  }

  .brand span {
    font-size: 12px;
  }

  .brand small {
    font-size: 9px;
  }

  .intro-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .gallery-section {
    min-height: 205svh;
  }

  .gallery-sticky {
    justify-content: center;
  }

  .photo-row {
    min-height: 430px;
    gap: 18px;
  }

  .photo-frame.portrait {
    height: 410px;
  }

  .photo-frame.landscape,
  .photo-frame.compact {
    height: 280px;
  }

  .photo-frame.featured {
    height: 340px;
  }

  .photo-frame.square {
    height: 330px;
  }

  .site-footer {
    flex-direction: column;
  }
}
