:root {
  --aqua: #10bdc2;
  --aqua-soft: #8adadd;
  --black: #000;
  --white: #fff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--black);
  font-family: "DM Sans", Arial, sans-serif;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

figure {
  margin: 0;
}

.section {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  scroll-snap-align: start;
}

.dark-section {
  background: var(--black);
  color: var(--aqua);
}

/* Landing */
.landing {
  min-height: 100svh;
  padding: clamp(52px, 9vh, 100px) clamp(46px, 8.5vw, 174px);
  background: var(--black);
  color: var(--aqua);
  border-right: 1px solid rgba(255,255,255,.22);
}

.brand {
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand-name {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(34px, 3.8vw, 64px);
  line-height: 1;
}

.brand-mark {
  position: relative;
  width: 82px;
  height: 82px;
  flex: 0 0 auto;
}

.brand-mark i {
  position: absolute;
  width: 39px;
  height: 39px;
  background: var(--aqua);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.brand-mark i:nth-child(1) { left: 0; top: 0; }
.brand-mark i:nth-child(2) { right: 0; top: 0; }
.brand-mark i:nth-child(3) { left: 0; bottom: 0; }
.brand-mark i:nth-child(4) { right: 0; bottom: 0; }

.landing-bottom {
  position: absolute;
  left: clamp(46px, 8.5vw, 174px);
  right: clamp(46px, 8.5vw, 174px);
  bottom: clamp(58px, 9vh, 106px);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.landing h1 {
  margin: 0;
  font-weight: 300;
  font-size: clamp(65px, 7.3vw, 115px);
  line-height: .9;
  letter-spacing: -.055em;
  text-transform: uppercase;
}

.round-arrow {
  position: relative;
  width: clamp(132px, 11vw, 204px);
  height: clamp(76px, 7vw, 116px);
  border: 8px solid var(--aqua);
  border-radius: 999px;
  transition: transform .25s ease, background .25s ease;
}

.round-arrow:hover {
  transform: translateX(8px);
  background: rgba(16, 189, 194, .1);
}

.round-arrow span,
.round-arrow span::before,
.round-arrow span::after {
  position: absolute;
  display: block;
  background: var(--aqua);
  border-radius: 5px;
}

.round-arrow span {
  width: 58%;
  height: 8px;
  top: 50%;
  left: 20%;
  transform: translateY(-50%);
}

.round-arrow span::before,
.round-arrow span::after {
  content: "";
  width: 42px;
  height: 8px;
  right: -2px;
  transform-origin: right center;
}

.round-arrow span::before { transform: rotate(45deg); }
.round-arrow span::after { transform: rotate(-45deg); }

/* Projects */
.projects {
  background: var(--aqua);
  padding: clamp(54px, 6.5vh, 78px) clamp(42px, 8.1vw, 166px) clamp(36px, 5vh, 60px);
}

.projects-header {
  margin-bottom: 34px;
}

.projects-title-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: clamp(54px, 8vw, 170px);
}

.projects h2,
.light-section h2,
.nature-section h2,
.social-section h2 {
  margin: 0;
  font-weight: 300;
  letter-spacing: -.055em;
}

.projects h2 {
  font-size: clamp(78px, 7.3vw, 136px);
  line-height: .9;
}

.horizontal-rule {
  height: 4px;
  background: var(--black);
}

.projects-header p {
  margin: 24px 0 0;
  font-size: clamp(20px, 1.7vw, 34px);
}

.project-grid {
  display: grid;
  grid-template-columns: 160px 392px 264px 342px 434px;
  grid-template-rows: 262px 166px 226px;
  gap: 28px;
  grid-template-areas:
    "one eyes collage collage sunflowers"
    "profile profile collage collage three"
    "profile profile two pink three";
  max-width: 1710px;
}

.photo,
.color-block {
  overflow: hidden;
  min-width: 0;
  min-height: 0;
}

.photo img {
  transition: transform .55s ease, filter .55s ease;
}

.photo:hover img {
  transform: scale(1.035);
}

.color-block {
  background: var(--aqua-soft);
}

.block-one { grid-area: one; }
.project-eyes { grid-area: eyes; }
.project-collage { grid-area: collage; }
.project-sunflowers { grid-area: sunflowers; }
.project-profile { grid-area: profile; }
.block-two { grid-area: two; }
.project-pink { grid-area: pink; }
.block-three { grid-area: three; }

/* Light */
.light-section {
  padding: clamp(54px, 8vh, 92px) clamp(46px, 8.5vw, 174px) 76px;
}

.light-section h2 {
  font-size: clamp(78px, 7.3vw, 136px);
  line-height: .9;
}

.light-gallery {
  display: grid;
  grid-template-columns: 753px 520px;
  gap: 68px;
  margin-top: clamp(100px, 13vh, 132px);
  align-items: stretch;
}

.light-gallery .photo {
  height: min(58vh, 582px);
}

/* Nature */
.nature-section {
  background: var(--aqua);
  padding: 58px clamp(42px, 8vw, 164px) 62px;
}

.nature-layout {
  max-width: 1454px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 747px 594px;
  gap: 28px;
}

.nature-left {
  position: relative;
  padding-top: 11px;
}

.nature-heading {
  text-align: right;
  margin-bottom: 23px;
}

.nature-section h2 {
  font-size: clamp(80px, 7vw, 130px);
  line-height: .85;
}

.nature-heading p {
  margin: 12px 0 0;
  font-size: clamp(22px, 1.8vw, 35px);
}

.nature-orange {
  height: 501px;
}

.nature-right {
  display: grid;
  grid-template-rows: 398px 398px;
  gap: 33px;
}

.down-arrow {
  position: absolute;
  right: 24px;
  bottom: -4px;
  width: 112px;
  height: 112px;
}

.down-arrow span {
  position: absolute;
  left: 52px;
  top: 0;
  width: 6px;
  height: 94px;
  background: var(--black);
}

.down-arrow span::before,
.down-arrow span::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 65px;
  height: 6px;
  background: var(--black);
}

.down-arrow span::before {
  right: -2px;
  transform-origin: right center;
  transform: rotate(48deg);
}

.down-arrow span::after {
  left: -2px;
  transform-origin: left center;
  transform: rotate(-48deg);
}

/* Social */
.social-section {
  min-height: 100svh;
  padding: clamp(72px, 10vh, 105px) clamp(42px, 7.5vw, 150px) 74px;
}

.social-section h2 {
  font-size: clamp(78px, 7.6vw, 142px);
  line-height: .9;
}

.social-section header p {
  margin: 30px 0 0;
  font-size: clamp(21px, 1.8vw, 34px);
}

.social-gallery {
  display: grid;
  grid-template-columns: 609px 1fr;
  gap: 48px;
  margin-top: 66px;
  max-width: 1648px;
}

.social-gallery .photo {
  height: min(47vh, 475px);
}

.back-top {
  position: absolute;
  right: clamp(40px, 7.5vw, 150px);
  bottom: 35px;
  color: var(--aqua);
  text-decoration: none;
  font-size: 18px;
}

@media (max-width: 1550px) {
  .project-grid {
    grid-template-columns: .48fr 1.18fr .8fr 1fr 1.3fr;
    grid-template-rows: 180px 114px 156px;
    gap: 18px;
  }

  .light-gallery {
    grid-template-columns: 1.27fr .88fr;
    gap: 44px;
  }

  .nature-layout {
    grid-template-columns: 1.25fr 1fr;
  }

  .nature-orange {
    height: 440px;
  }

  .nature-right {
    grid-template-rows: 350px 350px;
  }

  .social-gallery {
    grid-template-columns: .62fr 1fr;
  }
}

@media (max-width: 900px) {
  html {
    scroll-snap-type: none;
  }

  .section {
    min-height: auto;
  }

  .landing {
    min-height: 100svh;
  }

  .brand-mark {
    width: 58px;
    height: 58px;
  }

  .brand-mark i {
    width: 27px;
    height: 27px;
  }

  .landing-bottom {
    align-items: center;
  }

  .round-arrow {
    width: 118px;
    height: 70px;
    border-width: 6px;
  }

  .projects-title-row {
    display: block;
  }

  .horizontal-rule {
    margin-top: 28px;
    height: 3px;
  }

  .project-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 170px 270px 220px 170px;
    grid-template-areas:
      "one eyes"
      "collage collage"
      "profile sunflowers"
      "pink three";
    gap: 14px;
  }

  .block-two {
    display: none;
  }

  .light-gallery {
    grid-template-columns: 1fr;
    margin-top: 70px;
  }

  .light-gallery .photo {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .nature-layout {
    grid-template-columns: 1fr;
  }

  .nature-heading {
    text-align: left;
  }

  .nature-orange,
  .nature-right .photo {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .nature-right {
    grid-template-rows: auto;
  }

  .down-arrow {
    display: none;
  }

  .social-gallery {
    grid-template-columns: 1fr;
  }

  .social-gallery .photo {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .back-top {
    position: static;
    display: inline-block;
    margin-top: 42px;
  }
}

@media (max-width: 560px) {
  .landing {
    padding: 34px 24px;
  }

  .brand {
    gap: 16px;
  }

  .brand-name {
    font-size: 30px;
  }

  .landing-bottom {
    left: 24px;
    right: 24px;
    bottom: 48px;
    display: block;
  }

  .landing h1 {
    font-size: 53px;
  }

  .round-arrow {
    display: block;
    margin: 46px 0 0 auto;
  }

  .projects,
  .light-section,
  .nature-section,
  .social-section {
    padding-left: 22px;
    padding-right: 22px;
  }

  .projects h2,
  .light-section h2,
  .nature-section h2,
  .social-section h2 {
    font-size: 64px;
  }

  .project-grid {
    display: flex;
    flex-direction: column;
  }

  .project-grid .photo {
    min-height: 250px;
  }

  .color-block {
    min-height: 90px;
  }

  .block-two {
    display: block;
  }

  .light-gallery {
    gap: 24px;
  }

  .social-gallery {
    gap: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .photo img,
  .round-arrow {
    transition: none;
  }
}
