:root {
  --green: #344a32;
  --green-deep: #2f4a30;
  --cream: #efe8d8;
  --paper: #fbf9f4;
  --ink: #2a3328;
  --muted: #7a8274;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--paper);
  color: var(--ink);
  font: 500 18px/1.65 var(--serif);
  -webkit-font-smoothing: antialiased;
}

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

img {
  max-width: 100%;
  display: block;
}

/* Header */
header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 44px 20px 40px;
  text-align: center;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--green);
}

.logo img {
  width: 56px;
  height: 56px;
  margin-bottom: 14px;
}

.logo strong {
  display: block;
  font: 600 .8rem/1 var(--serif);
  letter-spacing: .32em;
  margin-right: -.32em;
  text-transform: uppercase;
}

.logo::after {
  content: "";
  width: 36px;
  height: 1px;
  margin-top: 18px;
  background: currentColor;
  opacity: .6;
}

.logo small {
  display: block;
  margin-top: 7px;
  font: 700 .5rem/1 var(--serif);
  letter-spacing: .28em;
  margin-right: -.28em;
  text-transform: uppercase;
}

.menu {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 34px;
  font: 600 .74rem/1.6 var(--serif);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink);
}

.menu a {
  transition: color .2s;
}

.menu a:hover,
.menu a.on {
  color: var(--green);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}

.closing {
  margin-bottom: 36px;
}

.closing a {
  font: italic 500 clamp(1.25rem, 3vw, 1.5rem)/1.2 var(--serif);
  color: var(--green);
  transition: opacity .2s;
}

.closing a:hover {
  opacity: .7;
}

.closing span {
  display: block;
  margin-top: 10px;
  font: 700 .5rem/1 var(--serif);
  letter-spacing: .28em;
  margin-right: -.28em;
  text-transform: uppercase;
  color: var(--muted);
}

.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 22px;
  font: 600 .62rem/1.6 var(--serif);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}

.socials a:hover {
  color: var(--green);
}

main {
  width: min(1164px, 100%);
  margin: 0 auto;
  padding: 0 32px;
}

/* Film grid */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 1100px;
}

.tile {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--cream);
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s ease;
}

.tile:hover img {
  transform: scale(1.04);
}

/* Profile page */
.profile {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 60px;
  max-width: 1100px;
  align-items: start;
}

.profile img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 30%;
}

.profile h1 {
  font: 600 1.7rem/1.2 var(--serif);
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--green);
  padding-bottom: 22px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--cream);
}

.profile p {
  margin-bottom: 18px;
}

.label {
  margin: 40px 0 10px;
  font: 700 .66rem/1 var(--serif);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--green);
}

.profile .line a {
  border-bottom: 1px solid rgba(52, 74, 50, .35);
  transition: color .2s, border-color .2s;
}

.profile .line a:hover {
  color: var(--green);
  border-color: var(--green);
}

.clients {
  list-style: none;
  font: 600 .8rem/2.1 var(--serif);
  letter-spacing: .2em;
  text-transform: uppercase;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border: 1px solid var(--green);
  color: var(--green);
  font: 700 .68rem/1 var(--serif);
  letter-spacing: .26em;
  text-transform: uppercase;
  transition: .2s;
}

.btn:hover {
  background: var(--green);
  color: var(--cream);
}

.email {
  font: 500 1.6rem/1.3 var(--serif);
  color: var(--green);
  word-break: break-word;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

button.btn {
  background: none;
  cursor: pointer;
}

/* Footer */
footer {
  padding: 56px 0 24px;
  text-align: center;
  font-size: .8rem;
  color: var(--muted);
}

.bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid rgba(52, 74, 50, .18);
}

.legal {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .78rem;
}

.legal .cross {
  color: var(--green);
  opacity: .75;
}

/* Scroll reveal */
.js .tile,
.js .profile > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s ease, transform 1s cubic-bezier(.2, .7, .2, 1);
}

.js .tile img,
.js .profile > img {
  transform: scale(1.08);
  transition: transform 2.2s cubic-bezier(.2, .7, .2, 1);
}

.js .tile.in,
.js .profile > .in {
  opacity: 1;
  transform: none;
}

.js .tile.in img,
.js .profile > img.in {
  transform: none;
}

.js .profile > img.in {
  transition: opacity 1s ease, transform 2.2s cubic-bezier(.2, .7, .2, 1);
}

.js .tile.in:hover img {
  transform: scale(1.04);
  transition-duration: .8s;
}

@media (prefers-reduced-motion: reduce) {
  .js .tile,
  .js .profile > *,
  .js .tile img,
  .js .profile > img {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 900px) {
  header {
    padding: 36px 20px 28px;
  }

  .logo img {
    width: 50px;
    height: 50px;
  }

  main {
    width: auto;
    padding: 0 20px;
  }

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

  .bar {
    flex-direction: column;
    justify-content: center;
  }

  .profile {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .profile h1 {
    font-size: 1.4rem;
  }
}
