:root {
  --editorial-gutter: clamp(24px, 5vw, 80px);
  --editorial-space: clamp(72px, 9vw, 150px);
  --editorial-overlay: .58;
  --editorial-transition: 900ms;
  --editorial-content: 1380px;
}

.editorial-page {
  background: #080807;
  min-height: 100vh;
}

.editorial-page main {
  overflow: hidden;
}

.editorial-hero {
  align-items: flex-end;
  display: flex;
  isolation: isolate;
  min-height: 72svh;
  overflow: hidden;
  padding: 190px var(--editorial-gutter) clamp(64px, 8vh, 104px);
  position: relative;
}

.editorial-hero__image {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
  z-index: -3;
}

.editorial-hero__image--services {
  object-position: center 56%;
}

.editorial-hero::before {
  background:
    linear-gradient(90deg, rgba(4, 4, 3, .9), rgba(4, 4, 3, .48) 52%, rgba(4, 4, 3, .3)),
    linear-gradient(0deg, rgba(4, 4, 3, .85), transparent 66%);
  content: "";
  inset: 0;
  opacity: var(--editorial-overlay);
  position: absolute;
  z-index: -2;
}

.editorial-hero__copy {
  max-width: 760px;
}

.editorial-hero__title,
.story-chapter__title,
.contact-heading {
  color: var(--ivory);
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  letter-spacing: -.045em;
}

.editorial-hero__title {
  font-size: clamp(58px, 7vw, 108px);
  line-height: .92;
  margin: 0;
}

.editorial-hero__subtitle {
  color: rgba(241, 238, 231, .78);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(18px, 1.7vw, 27px);
  line-height: 1.45;
  margin: 28px 0 0;
}

/* Services */
.services-intro {
  margin: 0 auto;
  max-width: var(--editorial-content);
  padding: var(--editorial-space) var(--editorial-gutter);
}

.services-grid {
  display: grid;
  gap: clamp(28px, 3.4vw, 56px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-entry {
  min-width: 0;
}

.service-entry__media {
  aspect-ratio: .74;
  background: #11110f;
  overflow: hidden;
}

.service-entry__media img {
  display: block;
  height: 100%;
  object-fit: cover;
  transition: filter var(--editorial-transition) ease, transform 1.4s cubic-bezier(.2, .75, .25, 1);
  width: 100%;
}

.service-entry:nth-child(1) img,
.service-entry:nth-child(2) img {
  object-position: 60% center;
}

.service-entry:nth-child(3) img {
  object-position: 48% center;
}

.service-entry:hover img {
  filter: brightness(1.06);
  transform: scale(1.025);
}

.service-entry__number {
  color: var(--muted);
  display: block;
  font: 400 9px/1 "DM Mono", monospace;
  letter-spacing: .16em;
  margin: 27px 0 18px;
  text-transform: uppercase;
}

.service-entry h2 {
  font: 500 clamp(27px, 2.25vw, 40px)/1.08 "Playfair Display", Georgia, serif;
  letter-spacing: -.035em;
  margin: 0;
}

.service-entry p {
  color: rgba(241, 238, 231, .68);
  font-size: 14px;
  line-height: 1.78;
  margin: 24px 0 0;
  max-width: 38ch;
}

/* Story */
.story-stage {
  margin: 0 auto;
  max-width: var(--editorial-content);
  padding: clamp(150px, 14vw, 230px) var(--editorial-gutter) var(--editorial-space);
}

.story-chapter {
  align-items: start;
  display: grid;
  gap: clamp(48px, 7vw, 112px);
  grid-template-columns: minmax(280px, .8fr) minmax(360px, 1.05fr);
}

.story-chapter + .story-chapter {
  border-top: 1px solid var(--line);
  margin-top: var(--editorial-space);
  padding-top: var(--editorial-space);
}

.story-chapter--reverse {
  grid-template-columns: minmax(360px, 1.05fr) minmax(280px, .8fr);
}

.story-chapter--reverse .story-chapter__figure {
  grid-column: 2;
  grid-row: 1;
}

.story-chapter--reverse .story-chapter__copy {
  grid-column: 1;
  grid-row: 1;
}

.story-chapter__figure {
  background: #0d0d0c;
  margin: 0;
  min-height: 0;
}

.story-chapter__figure img {
  display: block;
  height: auto;
  max-height: 780px;
  object-fit: contain;
  width: 100%;
}

.story-chapter__copy {
  padding-top: clamp(8px, 4vw, 64px);
}

.story-chapter__title {
  font-size: clamp(46px, 5.1vw, 82px);
  line-height: .98;
  margin: 0 0 42px;
}

.story-chapter__copy p {
  color: rgba(241, 238, 231, .72);
  font-size: 15px;
  line-height: 1.85;
  margin: 0 0 20px;
  max-width: 60ch;
}

.story-chapter__copy p:first-of-type {
  color: var(--ivory);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(20px, 1.65vw, 27px);
  line-height: 1.55;
}

/* Contact */
.contact-canvas {
  background: #050504;
  isolation: isolate;
  min-height: 100svh;
  padding: clamp(150px, 15vh, 190px) var(--editorial-gutter) clamp(70px, 8vh, 110px);
  position: relative;
}

.contact-canvas__backdrop,
.contact-canvas__video {
  inset: 0;
  position: absolute;
}

.contact-canvas__backdrop {
  background: #050504;
  overflow: hidden;
  z-index: -4;
}

.contact-canvas__backdrop::after {
  background:
    linear-gradient(90deg, rgba(4, 4, 3, .95) 0%, rgba(4, 4, 3, .66) 46%, rgba(4, 4, 3, .38) 100%),
    linear-gradient(0deg, rgba(4, 4, 3, .88), rgba(4, 4, 3, .1) 64%);
  content: "";
  inset: 0;
  position: absolute;
}

.contact-canvas__video {
  height: 100%;
  object-fit: contain;
  object-position: center center;
  width: 100%;
}

.contact-layout {
  display: grid;
  gap: clamp(56px, 8vw, 130px);
  grid-template-columns: minmax(380px, .92fr) minmax(390px, .78fr);
  margin: 0 auto;
  max-width: 1300px;
  position: relative;
  z-index: 1;
}

.contact-intro {
  align-self: center;
}

.contact-heading {
  font-size: clamp(48px, 5.3vw, 84px);
  line-height: 1;
  margin: 0;
  max-width: 10ch;
}

.contact-email {
  border-bottom: 1px solid var(--line);
  color: rgba(241, 238, 231, .76);
  display: inline-block;
  font: 400 11px/1.5 "DM Mono", monospace;
  letter-spacing: .08em;
  margin-top: 44px;
  padding-bottom: 7px;
  transition: border-color .3s ease, color .3s ease;
}

.contact-email:hover {
  border-color: var(--ivory);
  color: var(--ivory);
}

.contact-form {
  align-self: center;
  background: rgba(7, 7, 6, .52);
  border: 1px solid rgba(241, 238, 231, .18);
  backdrop-filter: blur(9px);
  padding: clamp(30px, 4vw, 54px);
}

.contact-form__row {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-field {
  margin: 0 0 24px;
}

.form-field label {
  color: rgba(241, 238, 231, .72);
  display: block;
  font: 400 9px/1.3 "DM Mono", monospace;
  letter-spacing: .13em;
  margin: 0 0 9px;
  text-transform: uppercase;
}

.form-field input,
.form-field textarea {
  appearance: none;
  background: rgba(0, 0, 0, .18);
  border: 0;
  border-bottom: 1px solid rgba(241, 238, 231, .34);
  border-radius: 0;
  color: var(--ivory);
  font: 400 15px/1.5 "DM Sans", Arial, sans-serif;
  outline: none;
  padding: 10px 0 12px;
  transition: border-color .3s ease, box-shadow .3s ease;
  width: 100%;
}

.form-field textarea {
  min-height: 104px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--ivory);
  box-shadow: 0 1px 0 var(--ivory);
}

.form-field [aria-invalid="true"] {
  border-color: #d7a59e;
}

.field-error {
  color: #d7a59e;
  display: block;
  font-size: 12px;
  line-height: 1.4;
  min-height: 17px;
  padding-top: 6px;
}

.contact-submit {
  background: var(--ivory);
  border: 1px solid var(--ivory);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  font: 500 10px/1 "DM Sans", Arial, sans-serif;
  letter-spacing: .12em;
  min-width: 142px;
  padding: 17px 28px;
  text-transform: uppercase;
  transition: background .35s ease, color .35s ease, transform .35s ease;
}

.contact-submit:hover:not(:disabled) {
  background: transparent;
  color: var(--ivory);
  transform: translateY(-2px);
}

.contact-submit:focus-visible {
  outline: 2px solid var(--ivory);
  outline-offset: 4px;
}

.contact-submit:disabled {
  cursor: wait;
  opacity: .68;
}

.form-status {
  color: rgba(241, 238, 231, .75);
  font-size: 13px;
  line-height: 1.55;
  margin: 18px 0 0;
  min-height: 21px;
}

.form-status.is-error {
  color: #d7a59e;
}

.form-status.is-success {
  color: #c8d2b1;
}

.honeypot {
  height: 1px;
  left: -10000px;
  overflow: hidden;
  position: absolute;
  top: auto;
  width: 1px;
}

@media (max-width: 1060px) {
  .services-grid {
    gap: 34px 20px;
  }

  .service-entry h2 {
    font-size: 28px;
  }

  .story-chapter,
  .story-chapter--reverse {
    gap: 52px;
    grid-template-columns: minmax(260px, .8fr) minmax(340px, 1fr);
  }

  .contact-layout {
    gap: 64px;
    grid-template-columns: minmax(320px, .85fr) minmax(370px, 1fr);
  }
}

@media (max-width: 780px) {
  .editorial-hero {
    min-height: 68svh;
    padding: 140px 24px 58px;
  }

  .editorial-hero__title {
    font-size: clamp(54px, 18vw, 76px);
  }

  .services-intro,
  .story-stage {
    padding-left: 24px;
    padding-right: 24px;
  }

  .services-grid {
    display: block;
  }

  .service-entry + .service-entry {
    border-top: 1px solid var(--line);
    margin-top: 64px;
    padding-top: 64px;
  }

  .service-entry__media {
    aspect-ratio: .78;
  }

  .service-entry p {
    max-width: none;
  }

  .story-stage {
    padding-top: 140px;
  }

  .story-chapter,
  .story-chapter--reverse {
    display: flex;
    flex-direction: column;
    gap: 38px;
  }

  .story-chapter--reverse .story-chapter__figure,
  .story-chapter--reverse .story-chapter__copy {
    grid-column: auto;
    grid-row: auto;
  }

  .story-chapter__figure,
  .story-chapter--reverse .story-chapter__figure {
    order: 0;
    width: 100%;
  }

  .story-chapter__copy,
  .story-chapter--reverse .story-chapter__copy {
    order: 1;
    padding-top: 0;
  }

  .story-chapter__title {
    font-size: clamp(45px, 14vw, 64px);
    margin-bottom: 32px;
  }

  .story-chapter__copy p {
    font-size: 14px;
    line-height: 1.78;
  }

  .contact-canvas {
    padding: 132px 24px 64px;
  }

  .contact-canvas__video {
    object-position: center center;
  }

  .contact-canvas__backdrop::after {
    background:
      linear-gradient(0deg, rgba(4, 4, 3, .97) 16%, rgba(4, 4, 3, .66) 60%, rgba(4, 4, 3, .42) 100%);
  }

  .contact-layout {
    display: block;
  }

  .contact-intro {
    min-height: 56svh;
    padding-top: 10svh;
  }

  .contact-heading {
    font-size: clamp(46px, 14vw, 66px);
    max-width: 9ch;
  }

  .contact-form {
    backdrop-filter: blur(12px);
    padding: 28px 22px;
  }

  .contact-form__row {
    display: block;
  }
}

@media (max-width: 430px) {
  .story-chapter__figure img {
    max-height: none;
  }

  .contact-email {
    font-size: 10px;
    letter-spacing: .04em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-entry__media img,
  .contact-submit,
  .contact-email {
    transition: none;
  }
}
