:root {
  --bg: #eeeeec;
  --panel: #e5e5e2;
  --text: #262522;
  --text-light: #fff;
  --muted: #7f7265;
  --accent: #d1c1a1;
  --line: #2827222b;

  --space: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 82px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
}

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

button,
input,
textarea {
  font: inherit;
}

.wrap {
  width: min(1180px, calc(100% - 56px));
  margin: auto;
}

.topbar {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto;
  background: linear-gradient(#101110dc, transparent);
  transition: 0.3s;
}
.scroll .topbar {
  background: var(--muted);
  color: var(--text-light);
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}
.scroll .topbar .brand {
  color: var(--text-light);
}

.nav {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font:
    25px 'Playfair Display',
    serif;
  letter-spacing: 0.25em;
  line-height: 1;
  color: var(--accent);
}

.brand small {
  display: block;
  font:
    8px 'DM Sans',
    sans-serif;
  letter-spacing: 0.48em;
  text-align: left;
  margin-top: 7px;
}

.links {
  display: flex;
  gap: 30px;
  font-size: 12pt;
}

.links a {
  color: #e5e0d8;
  transition: 0.2s;
}

.links a:hover,
.links a.active {
  color: var(--accent);
}

.menu {
  display: none;
  background: none;
  color: var(--accent);
  align-items: center;
  justify-content: center;
  padding: var(--space);
  cursor: pointer;
  border: none;
}
.menu svg {
  fill: var(--accent);
}

.hero {
  min-height: 690px;
  height: 92vh;
  max-height: 900px;
  display: flex;
  align-items: center;
  position: relative;
  isolation: isolate;
  background: #242522
    url('https://images.unsplash.com/photo-1470770841072-f978cf4d019e?auto=format&fit=crop&w=2200&q=88')
    center 48% / cover no-repeat;
}

.hero:before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, #2d2d2dee 0%, #626462a8 38%, #11121112 78%),
    linear-gradient(0deg, #111211 0%, transparent 28%, #11121155 100%);
}

.hero-copy {
  padding-top: 65px;
  max-width: 600px;
  color: var(--text-light);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.36em;
  font-size: 10px;
  color: var(--accent);
}

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

h1 {
  font:
    clamp(76px, 12vw, 150px)/0.92 'Playfair Display',
    serif;
  font-weight: 400;
  margin: 22px 0 14px;
  letter-spacing: -0.045em;
}

.subbrand {
  letter-spacing: 0.52em;
  font-size: 13px;
  margin-left: 8px;
}

.tagline {
  font:
    italic clamp(24px, 3vw, 34px)/1.25 'Playfair Display',
    serif;
  max-width: 360px;
  margin: 36px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--accent);
  padding: 14px 20px;
  font-size: 12px;
  letter-spacing: 0.03em;
  transition: 0.25s;
}

.btn:hover {
  background: var(--accent);
  color: #171512;
}

.scrollhint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  letter-spacing: 0.3em;
  color: #ddd;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.scrollhint:after {
  content: '';
  height: 36px;
  width: 1px;
  background: var(--accent);
}

section {
  padding: 100px 0;
}

.section-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  text-align: center;
  margin-bottom: 42px;
}

.section-head:before,
.section-head:after {
  content: '';
  height: 1px;
  background: var(--line);
}

.section-head .eyebrow {
  margin-bottom: 8px;
}

.section-head h2 {
  font:
    400 clamp(34px, 4vw, 48px)/1.1 'Playfair Display',
    serif;
  margin: 0;
}

.gallery {
  display: grid;
  grid-template-columns: 1.05fr 1.15fr 1.25fr 0.9fr;
  grid-template-rows: 180px 180px;
  gap: 10px;
}

.shot {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: #292a27;
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s;
}

.shot:hover img {
  transform: scale(1.055);
}

.shot:after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #0005, transparent 45%);
  opacity: 0;
  transition: 0.3s;
}

.shot:hover:after {
  opacity: 1;
}

.shot:nth-child(1) {
  grid-row: 1/3;
}

.shot:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
}

.shot:nth-child(3) {
  grid-column: 2;
  grid-row: 2;
}

.shot:nth-child(4) {
  grid-column: 3;
  grid-row: 1/3;
}

.shot:nth-child(5) {
  grid-column: 4;
  grid-row: 1/3;
}

.gallery-cta {
  text-align: center;
  margin-top: 34px;
}

.about {
  padding: 0;
  background: #181917;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 490px;
}

.about-photo {
  min-height: 490px;
  background: url('https://images.unsplash.com/photo-150拍?auto=format&fit=crop&w=1200&q=85')
    center/cover no-repeat;
}

.about-photo {
  background-image: url('https://images.unsplash.com/photo-1500648767791-00dcc994a43e?auto=format&fit=crop&w=1200&q=85');
  filter: grayscale(1);
}

.about-copy {
  padding: 90px clamp(38px, 8vw, 120px);
  align-self: center;
}

.about-copy h2 {
  font:
    400 clamp(38px, 5vw, 58px)/1.05 'Playfair Display',
    serif;
  color: var(--accent);
  margin: 15px 0 24px;
}

.about-copy p {
  color: #d1ccc4;
  font-size: 14px;
  line-height: 1.9;
  max-width: 500px;
}

.text-link {
  display: inline-block;
  margin-top: 12px;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 7px;
  font-size: 12px;
  color: var(--accent);
}

.services {
  padding-bottom: 110px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service {
  padding: 34px 22px;
  text-align: center;
  border-right: 1px solid var(--line);
}

.service:last-child {
  border: 0;
}

.service svg {
  width: 38px;
  height: 38px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.3;
  margin-bottom: 18px;
}

.service h3 {
  font:
    500 21px 'Playfair Display',
    serif;
  color: var(--accent);
  margin-bottom: 10px;
}

.service p {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 190px;
  margin: auto;
}

.contact {
  position: relative;
  background:
    linear-gradient(90deg, #101110d9, #101110b8),
    url('https://images.unsplash.com/photo-1519608487953-e999c86e7455?auto=format&fit=crop&w=2000&q=85')
      center/cover;
  padding: 85px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  text-align: center;
}

.contact h2 {
  font:
    400 clamp(38px, 5vw, 58px)/1.1 'Playfair Display',
    serif;
  margin: 15px 0 24px;
  color: var(--text-light);
}

.contact-details {
  display: grid;
  gap: 16px;
  color: #eee;
  font-size: 13px;
}

.contact-details a:hover {
  color: var(--accent);
}

.socials {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 12px;
  color: var(--accent);
  font-size: 12px;
}

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

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px 16px;
  color: white;
  background: #111211b9;
  border: 1px solid #ffffff30;
  outline: none;
}

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

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

.contact-form button {
  border: 0;
  background: var(--accent);
  padding: 16px;
  color: #171512;
  font-weight: 600;
  cursor: pointer;
}

.contact-form button:hover {
  background: #edc9a8;
}

.form-note {
  font-size: 11px;
  color: #d2c8bd;
  min-height: 16px;
}

footer {
  border-top: 1px solid var(--line);
  padding: 26px 0;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 11px;
}

.footer-brand {
  font:
    22px 'Playfair Display',
    serif;
  letter-spacing: 0.2em;
  color: white;
}

.to-top {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: #080908f2;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: min(1100px, 90vw);
  max-height: 85vh;
  object-fit: contain;
}

.close {
  position: absolute;
  right: 28px;
  top: 22px;
  color: white;
  background: none;
  border: 0;
  font-size: 32px;
  cursor: pointer;
}

@media (max-width: 800px) {
  .wrap {
    width: min(100% - 36px, 650px);
  }

  .nav {
    height: 70px;
  }

  .menu {
    display: flex;
  }

  .links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: #141513;
    padding: 22px 28px;
    flex-direction: column;
    gap: 18px;
  }

  .links.show {
    display: flex;
  }

  .hero {
    min-height: 650px;
    height: 86vh;
    background-position: 58% center;
  }

  .hero:before {
    background:
      linear-gradient(90deg, #111211e8, #11121166 75%),
      linear-gradient(0deg, #111211, transparent 35%);
  }

  section {
    padding: 76px 0;
  }

  .gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 210px 160px 160px;
  }

  .shot:nth-child(1) {
    grid-row: 1/3;
    grid-column: 1;
  }

  .shot:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
  }

  .shot:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
  }

  .shot:nth-child(4) {
    grid-column: 1;
    grid-row: 3;
  }

  .shot:nth-child(5) {
    grid-column: 2;
    grid-row: 3;
  }

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

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

  .about-copy {
    padding: 58px 28px;
  }

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

  .service:nth-child(2) {
    border-right: 0;
  }

  .service:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .contact {
    padding: 72px 0;
  }
}

@media (max-width: 460px) {
  .brand {
    font-size: 22px;
  }
  .scroll .brand small {
    display: none;
  }

  .hero {
    min-height: 600px;
  }

  .subbrand {
    font-size: 10px;
  }

  .tagline {
    margin: 28px 0;
  }

  .section-head {
    gap: 14px;
  }

  .gallery {
    grid-template-rows: 180px 135px 135px;
    gap: 7px;
  }

  .service {
    padding: 28px 10px;
  }

  .service h3 {
    font-size: 18px;
  }

  .footer-row {
    flex-wrap: wrap;
  }

  .footer-row > span:nth-child(2) {
    order: 3;
    width: 100%;
    text-align: center;
  }
}

/* Light editorial theme */
body {
  background: var(--bg);
  color: var(--text);
}

#portfolio,
.services,
footer {
  background: #eeeeec;
}

.about {
  background: #e4e4e1;
}

.about-copy p {
  color: #5e5c56;
}

.section-head:before,
.section-head:after {
  background: #28272230;
}

.service-grid {
  border-color: #28272230;
}

.service {
  border-color: #28272230;
}

.service p {
  color: #69675f;
}

.footer-row {
  color: #686761;
}

.footer-brand {
  color: #262522;
}

.to-top {
  border-color: #28272245;
  color: #262522;
}

.gallery .shot {
  background: #d7d7d3;
}
