/* Reusable subpage hero. Artwork remains optional until an asset is supplied. */

.page-hero__grid {
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: center;
}

.page-hero__intro {
  margin: var(--space-6) 0 0;
  color: var(--ink-soft);
  font-size: var(--type-body);
  line-height: var(--leading-body);
}

.page-hero__actions {
  margin-top: var(--space-6);
}

.page-hero__visual {
  min-width: 0;
  margin: 0;
}

.page-hero__visual img {
  display: block;
  width: 100%;
  height: auto;
}

/* Photography shares the hero typography, with its own crop and fading. */
.page-hero--photo {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--surface-soft);
}

.page-hero--photo .page-hero__copy {
  position: relative;
  z-index: 1;
}

.page-hero--photo .page-hero__visual {
  position: relative;
  align-self: stretch;
  min-height: 480px;
}

.page-hero--photo .page-hero__visual img {
  position: absolute;
  inset: 0 auto 0 calc(-1 * var(--space-7));
  width: calc(100% + var(--gutter) + var(--space-7));
  height: 100%;
  object-fit: cover;
  object-position: 60% center;
  mask-image: linear-gradient(90deg, transparent, #000 22%);
}

/* An atmospheric variant: artwork can bleed without narrowing the copy. */
.page-hero--immersive {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--surface-soft);
}

.page-hero--immersive .page-hero__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.page-hero--immersive .page-hero__copy {
  position: relative;
  z-index: 1;
}

.page-hero--immersive .page-hero__visual {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: end;
  min-height: clamp(420px, 42vw, 600px);
}

.page-hero--immersive .page-hero__visual img {
  position: absolute;
  top: 50%;
  right: calc(-1 * var(--gutter));
  width: 150%;
  max-width: none;
  transform: translateY(-55%);
  mix-blend-mode: multiply;
  mask-image:
    linear-gradient(90deg, transparent, #000 20%, #000 90%, transparent),
    linear-gradient(180deg, transparent, #000 10%, #000 80%, transparent);
  mask-composite: intersect;
}

.page-hero__visual-caption {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: var(--space-5);
  width: 100%;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.6;
}

.page-hero__inputs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-hero__inputs li {
  white-space: nowrap;
}

.page-hero__inputs li:not(:last-child)::after {
  margin-inline: var(--space-3);
  color: var(--ink-soft);
  content: "·" / "";
}

.page-hero__output {
  max-width: 14ch;
  margin: 0;
  color: var(--forest);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
}

@media (max-width: 820px) {
  .page-hero--photo .page-hero__visual {
    position: absolute;
    z-index: 0;
    inset: 0;
    min-height: 0;
    opacity: 0.14;
    pointer-events: none;
  }

  .page-hero--photo .page-hero__visual img {
    inset: 0;
    width: 100%;
    object-position: 65% center;
    mask-image: linear-gradient(180deg, transparent, #000 40%, #000 80%, transparent);
  }

  .page-hero__grid,
  .page-hero--immersive .page-hero__grid {
    grid-template-columns: 1fr;
  }

  .page-hero__visual:empty,
  .page-hero__visual:not(:has(img, svg, video, canvas)) {
    display: none;
  }
  /* Single-column heroes use faint artwork behind the copy, not an extra row. */
  .page-hero--immersive .page-hero__visual {
    position: absolute;
    z-index: 0;
    inset: 0;
    display: block;
    min-height: 0;
    margin: 0;
    opacity: 0.2;
    pointer-events: none;
  }

  .page-hero--immersive .page-hero__visual img {
    position: absolute;
    top: auto;
    right: -12vw;
    bottom: var(--space-7);
    width: min(760px, 155vw);
    transform: none;
    mask-image:
      linear-gradient(90deg, transparent, #000 28%, #000),
      linear-gradient(180deg, transparent, #000 12%, #000 80%, transparent);
  }

  .page-hero--immersive .page-hero__visual-caption {
    display: none;
  }
}

/* Reusable text sections and a roomier set of principles. */
.editorial-section {
  --editorial-copy: var(--ink-soft);
  background: var(--surface-white);
}

.editorial-section--tinted {
  background: var(--surface-soft);
}

.editorial-section--dark {
  --editorial-copy: #d8e2db;
  background: var(--forest);
  color: var(--surface-soft);
}

.editorial-section--dark .eyebrow {
  color: var(--editorial-copy);
}

.editorial-section .prose {
  max-width: var(--measure-copy);
  color: var(--editorial-copy);
}

.editorial-section--dark :focus-visible {
  outline-color: var(--surface-white);
}

/* Image-led editorial sections keep the same shell and column breakpoint. */
.editorial-media {
  align-items: center;
}

.editorial-media__copy {
  grid-column: 2;
  grid-row: 1;
}

.editorial-media__intro {
  margin-top: var(--space-6);
}

.editorial-media__image {
  position: relative;
  grid-column: 1;
  grid-row: 1;
  align-self: stretch;
  min-height: 380px;
  margin: 0;
  overflow: hidden;
}

.editorial-media__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.editorial-invitation {
  padding-block: var(--space-7);
}

.editorial-invitation__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

.editorial-invitation__inner p {
  margin: var(--space-4) 0 0;
  color: var(--editorial-copy);
}

.editorial-invitation__inner .button {
  flex-shrink: 0;
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-6) 0;
  margin: var(--space-7) 0 0;
  padding: 0;
  list-style: none;
}

.principle-grid__item {
  min-width: 0;
  padding-inline: var(--space-5);
  border-inline-start: 1px solid var(--line);
}

.principle-grid__item:first-child {
  padding-inline-start: 0;
  border-inline-start: 0;
}

.principle-grid__item:last-child {
  padding-inline-end: 0;
}

.principle-grid__icon {
  display: block;
  width: 32px;
  height: 32px;
  margin-bottom: var(--space-5);
  color: var(--forest);
}

.principle-grid__item p {
  margin: var(--space-5) 0 0;
  color: var(--editorial-copy, var(--ink-soft));
  font-size: var(--type-body);
  line-height: var(--leading-body);
}

@media (max-width: 1000px) {
  .principle-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .principle-grid__item:nth-child(odd) {
    padding-inline-start: 0;
    border-inline-start: 0;
  }

  .principle-grid__item:nth-child(even) {
    padding-inline-end: 0;
  }
}

@media (max-width: 820px) {
  .editorial-media__copy,
  .editorial-media__image {
    grid-column: auto;
    grid-row: auto;
  }

  .editorial-media__image {
    min-height: 0;
    aspect-ratio: 3 / 2;
  }

  .editorial-invitation__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .principle-grid {
    grid-template-columns: 1fr;
  }

  .principle-grid__item {
    padding: var(--space-5) 0 0;
    border-inline-start: 0;
    border-top: 1px solid var(--line);
  }

  .principle-grid__item p {
    margin-top: var(--space-4);
  }
}

/* A lightweight introduction form that prepares an email for review. */
.introduction-form {
  display: grid;
  gap: var(--space-5);
}

.introduction-form__intro {
  margin-bottom: var(--space-6);
  color: var(--ink-soft);
  font-size: var(--type-body);
  line-height: var(--leading-body);
}

.introduction-form__field {
  display: grid;
  gap: var(--space-2);
}

.introduction-form label {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}

.introduction-form label span {
  color: var(--ink-soft);
  font-weight: 400;
}

.introduction-form input,
.introduction-form textarea {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: var(--space-3);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: var(--surface-white);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
}

.introduction-form textarea {
  resize: vertical;
}

.introduction-form input:focus-visible,
.introduction-form textarea:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 3px;
}

.introduction-form__note {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.introduction-form__note:empty {
  display: none;
}

.introduction-form__note a {
  color: var(--forest);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

