:root {
  --ink: #3F6B7A;
  --muted: rgba(63, 107, 122, 0.68);
  --paper: #e8e3d4;
  --line: rgba(63, 107, 122, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Didot, "Bodoni 72", "Bodoni MT", "Times New Roman", serif;
  line-height: 1.35;
}

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

button,
input,
textarea {
  font: inherit;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.12;
  background-image: radial-gradient(rgba(63, 107, 122, 0.22) 0.7px, transparent 0.7px);
  background-size: 4px 4px;
  mix-blend-mode: multiply;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 58px 1fr 58px;
  align-items: center;
  padding: 18px 28px;
  color: var(--paper);
  background: var(--ink);
}

.brand {
  display: block;
  width: 58px;
  height: 58px;
  overflow: hidden;
}

.brand img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.header-message {
  margin: 0;
  text-align: center;
  font-size: clamp(18px, 2.4vw, 34px);
  line-height: 1;
}

.hero {
  position: relative;
  display: grid;
  min-height: 92vh;
  align-items: end;
  overflow: hidden;
  padding: 128px 7vw 76px;
  color: var(--paper);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(63, 107, 122, 0.2), rgba(63, 107, 122, 0.56)),
    url("https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?auto=format&fit=crop&w=2200&q=85") center / cover;
  transform: scale(1.03);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 18px;
  z-index: -1;
  border: 1px solid rgba(232, 227, 212, 0.24);
  border-radius: 8px;
}

.portfolio-hero {
  position: relative;
  display: grid;
  min-height: 35vh;
  align-items: end;
  overflow: hidden;
  padding: 104px 7vw 44px;
  color: var(--paper);
}

.portfolio-hero-media {
  position: absolute;
  inset: -36px 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(63, 107, 122, 0.14), rgba(63, 107, 122, 0.58)),
    url("https://images.unsplash.com/photo-1600566753376-12c8ab7fb75b?auto=format&fit=crop&w=2200&q=85") center / cover;
  transform: translate3d(0, var(--portfolio-parallax-y, 0px), 0) scale(1.08);
  will-change: transform;
}

.portfolio-hero::after {
  content: "";
  position: absolute;
  inset: 18px;
  z-index: -1;
  border: 1px solid rgba(232, 227, 212, 0.24);
  border-radius: 8px;
}

.hero-content {
  max-width: 980px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--paper);
  font-size: clamp(22px, 3vw, 42px);
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
}

.portfolio-hero .eyebrow {
  color: rgba(232, 227, 212, 0.72);
}

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

h1 {
  margin-bottom: 24px;
  font-size: clamp(50px, 10.3vw, 144px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.9;
}

.portfolio-title {
  font-size: clamp(38px, 6vw, 82px);
}

.hero-title span {
  display: block;
  white-space: nowrap;
}

.hero-title span + span {
  margin-top: 0.08em;
}

h2 {
  max-width: 860px;
  font-size: clamp(30px, 4.9vw, 76px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.9;
}

.hero-content p:not(.eyebrow) {
  max-width: 540px;
  font-size: clamp(22px, 3vw, 42px);
  line-height: 1;
}

.pill-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 13px 22px;
  color: inherit;
  background: rgba(232, 227, 212, 0.16);
  backdrop-filter: blur(14px);
  cursor: pointer;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: 7vw;
  align-items: center;
  padding: 86px 7vw;
}

.split-section--media-right .portrait-media {
  order: 2;
}

.portrait-media {
  min-height: 620px;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(232, 227, 212, 0.72);
}

.portrait-media img {
  display: block;
  width: 100%;
  min-height: 620px;
  height: 100%;
  object-fit: cover;
}

.section-copy p {
  color: var(--muted);
  font-size: 18px;
}

.contact {
  display: grid;
  gap: 42px;
  min-height: calc(100vh - 138px);
  align-content: center;
  padding: 76px 7vw;
  background: rgba(232, 227, 212, 0.72);
}

.contact-copy {
  max-width: 980px;
  justify-self: center;
  text-align: center;
}

.contact-copy h2 {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 18px;
}

.contact-note,
.contact-form {
  color: var(--muted);
  font-size: 18px;
}

.contact-panel {
  display: grid;
  gap: 22px;
}

.contact-note {
  margin: 0;
}

.contact-status {
  margin: 0;
  border: 1px solid rgba(63, 107, 122, 0.38);
  border-radius: 8px;
  padding: 14px 18px;
  color: var(--ink);
  background: rgba(232, 227, 212, 0.36);
  font-size: 18px;
  text-align: center;
}

.contact-status--error {
  border-color: rgba(121, 63, 63, 0.42);
  color: #794141;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 7vw;
  align-items: center;
}

.contact-logo {
  display: block;
  width: min(100%, 430px);
  height: auto;
  justify-self: center;
}

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

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

.contact-form span {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 10px 0;
  color: var(--ink);
  background: transparent;
  outline: none;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form .pill-button {
  width: fit-content;
  color: var(--ink);
  background: transparent;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 42px 7vw;
  color: rgba(232, 227, 212, 0.76);
  background: var(--ink);
}

.footer-tagline {
  margin: 0;
  text-align: right;
  font-size: 18px;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 46px 1fr;
    gap: 14px;
    padding: 16px;
  }

  .brand {
    width: 46px;
    height: 46px;
  }

  .header-message {
    text-align: right;
  }

  .hero,
  .portfolio-hero,
  .split-section,
  .contact,
  .site-footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero {
    min-height: 88vh;
    padding-top: 104px;
  }

  .portfolio-hero {
    min-height: 32vh;
    padding-top: 92px;
    padding-bottom: 38px;
  }

  h1 {
    font-size: 46px;
    line-height: 0.96;
  }

  .portfolio-title {
    font-size: 42px;
  }

  .split-section {
    grid-template-columns: 1fr;
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .split-section--media-right .portrait-media {
    order: 0;
  }

  .portrait-media {
    min-height: 380px;
  }

  .portrait-media img {
    min-height: 380px;
  }

  .contact {
    min-height: auto;
    padding-top: 64px;
    padding-bottom: 64px;
  }

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

  .contact-logo {
    width: 150px;
  }

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

  .footer-tagline {
    text-align: left;
  }
}

@media (max-width: 360px) {
  h1 {
    font-size: 40px;
  }
}
