/* Ashmere
   Ivory, bone, and ink. Oxblood is the only accent, kept for focus, errors, and hover.
   Tokens are documented in ../DESIGN.md. */

/* Fonts, served from ./fonts under the SIL Open Font License. Latin and Latin Extended subsets.
   The files are variable: Cormorant Garamond covers 300 to 500, Jost covers 400 to 500. */

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url("fonts/cormorant-garamond-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url("fonts/cormorant-garamond-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 300 500;
  font-display: swap;
  src: url("fonts/cormorant-garamond-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 300 500;
  font-display: swap;
  src: url("fonts/cormorant-garamond-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("fonts/jost-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("fonts/jost-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ivory: #F3EFE8;
  --bone: #E7E0D4;
  --ink: #161412;
  --text: #1D1B18;
  --text-2: #4A453F;
  --text-3: #645D54;
  --on-ink: #F1ECE4;
  --on-ink-2: rgba(241, 236, 228, 0.72);
  --on-ink-3: rgba(241, 236, 228, 0.52);
  --line: rgba(29, 27, 24, 0.14);
  --line-strong: rgba(29, 27, 24, 0.32);
  --line-ink: rgba(241, 236, 228, 0.16);
  --oxblood: #7A2E26;
  --scrim: rgba(16, 14, 12, 0.34);
  --scrim-deep: rgba(16, 14, 12, 0.6);
  --selection: rgba(122, 46, 38, 0.18);
  --wash-ink: rgba(241, 236, 228, 0.03);

  --display: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Jost", "Avenir Next", Avenir, "Century Gothic", "Helvetica Neue", Arial, sans-serif;

  --step-label: 0.75rem;
  --step-small: 0.9375rem;
  --step-base: 1.0625rem;
  --step-lead: clamp(1.125rem, 1rem + 0.45vw, 1.4375rem);
  --step-standfirst: clamp(1.375rem, 1.15rem + 0.75vw, 1.875rem);
  --step-input: clamp(1.25rem, 1.12rem + 0.5vw, 1.5rem);
  --step-title: clamp(2.125rem, 1.4rem + 2.2vw, 3.5rem);
  --step-section: clamp(2.75rem, 1.6rem + 3.8vw, 5.5rem);
  --step-statement: clamp(2.5rem, 1.3rem + 4.4vw, 6.25rem);
  --step-quote: clamp(2.375rem, 1.2rem + 4vw, 5.75rem);
  --step-note: 1.125rem;
  --step-display-s: 1.625rem;
  --step-display-m: 1.875rem;
  --step-tagline: clamp(1.1875rem, 1rem + 0.7vw, 1.75rem);
  --step-area: clamp(1.875rem, 1.25rem + 1.9vw, 3.25rem);
  --step-discretion: clamp(2.25rem, 1.3rem + 3.2vw, 4.75rem);
  /* The name runs the width of the content: Cormorant Light sets "Ashmere" at about 3.3 times its size. */
  --step-mark: min(calc((100vw - 2 * var(--gutter)) / 3.3), 27rem);

  --max: 1440px;
  --gutter: clamp(20px, 4.4vw, 72px);
  --gap: clamp(16px, 2vw, 32px);
  --section: clamp(104px, 13vw, 208px);
  --header-h: 64px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 900px) {
  :root {
    --header-h: 76px;
  }
}

/* Base */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--text-2);
  font-family: var(--sans);
  font-size: var(--step-base);
  font-weight: 400;
  line-height: 1.7;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* A fine grain over everything, like a printed photograph. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}

h1, h2, h3, p, figure, ol, ul, fieldset, legend {
  margin: 0;
  padding: 0;
}

ol, ul {
  list-style: none;
}

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

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  color: var(--text);
  text-wrap: balance;
}

p {
  text-wrap: pretty;
  overflow-wrap: break-word;
}

a {
  color: inherit;
}

::selection {
  background: var(--selection);
  color: var(--text);
}

:focus-visible {
  outline: 2px solid var(--oxblood);
  outline-offset: 4px;
}

[hidden] {
  display: none !important;
}

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  top: 12px;
  left: var(--gutter);
  z-index: 300;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--on-ink);
  font-size: var(--step-small);
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

.label {
  font-family: var(--sans);
  font-size: var(--step-label);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
}

.standfirst {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: var(--step-standfirst);
  line-height: 1.28;
  color: var(--text);
}

.section-title {
  font-size: var(--step-section);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.022em;
}

.section-intro {
  max-width: 30em;
  color: var(--text-2);
}

.section-head {
  display: grid;
  gap: 20px;
  margin-bottom: clamp(56px, 7vw, 112px);
}

@media (min-width: 900px) {
  .section-head {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
    align-items: end;
  }

  .section-head .section-title {
    grid-column: 1 / span 7;
  }

  .section-head .section-intro {
    grid-column: 8 / span 5;
  }
}

.text-link {
  font-weight: 500;
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 0.32em;
  transition: color 0.25s var(--ease), text-decoration-color 0.25s var(--ease);
}

.text-link:hover {
  color: var(--oxblood);
  text-decoration-color: currentColor;
}

/* Header */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  color: var(--text);
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease), border-color 0.5s var(--ease);
}

.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.site-header__mark {
  justify-self: start;
  font-family: var(--display);
  font-size: var(--step-display-s);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: opacity 0.5s var(--ease);
}

.site-header__tagline {
  display: none;
  font-family: var(--display);
  font-style: italic;
  font-size: var(--step-base);
  line-height: 1;
  transition: opacity 0.5s var(--ease);
}

.site-header__link {
  grid-column: 3;
  justify-self: end;
  position: relative;
  padding-block: 8px;
  font-size: var(--step-label);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
}

.site-header__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0.3);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}

.site-header__link:hover::after,
.site-header__link:focus-visible::after {
  transform: scaleX(1);
}

@media (min-width: 1100px) {
  .site-header__tagline {
    display: block;
  }
}

/* Over the opening photograph the header steps back; the hero carries the name. */
.js .site-header.is-over-hero {
  color: var(--on-ink);
  background: transparent;
  border-bottom-color: transparent;
}

.js .site-header.is-over-hero .site-header__mark,
.js .site-header.is-over-hero .site-header__tagline {
  opacity: 0;
}

.js .site-header.is-over-hero .site-header__mark:focus-visible {
  opacity: 1;
}

.js .site-header.is-over-hero :focus-visible {
  outline-color: var(--on-ink);
}

/* Opening */

.hero {
  position: relative;
  display: grid;
  min-height: max(560px, 100vh);
  min-height: max(560px, 100svh);
  overflow: hidden;
  isolation: isolate;
  color: var(--on-ink);
  background: var(--ink);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--scrim);
}

.hero__content {
  align-self: end;
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding: 0 var(--gutter) clamp(14px, 2vw, 32px);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 24px;
  margin-bottom: clamp(4px, 1vw, 16px);
}

.hero__tagline {
  font-family: var(--display);
  font-style: italic;
  font-size: var(--step-tagline);
  line-height: 1.2;
}

.hero__caption {
  font-size: var(--step-label);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--on-ink-2);
}

.hero__mark {
  margin: 0 0 -0.02em -0.045em;
  font-size: var(--step-mark);
  font-weight: 300;
  line-height: 0.82;
  letter-spacing: -0.025em;
  color: var(--on-ink);
  white-space: nowrap;
}

/* The photograph settles once it has loaded. */
.js .hero__media img {
  transform: scale(1.05);
}

.js.is-ready .hero__media img {
  transform: none;
  transition: transform 3.2s var(--ease-out);
}

/* Intro */

.intro {
  padding-block: var(--section);
  background: var(--ivory);
}

.intro__grid {
  display: grid;
  gap: 28px;
}

.intro__title {
  font-size: var(--step-statement);
  line-height: 1.02;
  letter-spacing: -0.022em;
}

.intro__lead {
  max-width: 31em;
  font-size: var(--step-lead);
  line-height: 1.6;
}

@media (min-width: 900px) {
  .intro__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
    row-gap: 0;
  }

  .intro__label {
    grid-column: 1 / span 3;
    padding-top: 1.1em;
  }

  .intro__title {
    grid-column: 4 / span 9;
  }

  .intro__lead {
    grid-column: 7 / span 6;
    margin-top: clamp(40px, 5vw, 80px);
  }
}

/* Revealed photographs */

[data-reveal] {
  overflow: hidden;
  background: var(--bone);
}

.js [data-reveal] {
  clip-path: inset(9% 0 0 0);
  transition: clip-path 1.5s var(--ease-out);
}

.js [data-reveal] img {
  transform: scale(1.08);
  transition: transform 2s var(--ease-out);
}

.js [data-reveal].is-in {
  clip-path: inset(0 0 0 0);
}

.js [data-reveal].is-in img {
  transform: none;
}

/* The work */

.work {
  padding-block: var(--section);
  background: var(--bone);
  scroll-margin-top: var(--header-h);
}

.work__body {
  display: grid;
}

.work__media {
  display: none;
}

.work__list {
  display: grid;
  gap: clamp(72px, 12vw, 120px);
}

.work__item {
  display: grid;
  gap: 16px;
  align-content: center;
}

.work__item h3 {
  font-size: var(--step-title);
  line-height: 1.02;
  letter-spacing: -0.018em;
}

.work__item .standfirst {
  max-width: 22em;
}

.work__item .standfirst + p {
  max-width: 31em;
  margin-top: 6px;
}

.work__inline {
  margin-bottom: 14px;
  aspect-ratio: 4 / 5;
  background: var(--ivory);
}

.work__inline img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 600px) and (max-width: 999px) {
  .work__inline {
    width: 72%;
  }
}

@media (min-width: 1000px) {
  .work__body {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
    align-items: start;
  }

  .work__media {
    display: block;
    grid-column: 1 / span 6;
    position: sticky;
    top: calc(var(--header-h) + 28px);
    height: calc(100vh - var(--header-h) - 56px);
    height: calc(100svh - var(--header-h) - 56px);
    background: var(--ivory);
  }

  .work__frame {
    position: absolute;
    inset: 0;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.9s var(--ease);
  }

  .work__frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    transition: transform 2.4s var(--ease-out);
  }

  .work__frame.is-active {
    opacity: 1;
  }

  .work__frame.is-active img {
    transform: none;
  }

  .work__caption {
    position: absolute;
    left: 20px;
    bottom: 18px;
    color: var(--on-ink);
  }

  .work__list {
    grid-column: 8 / span 5;
    gap: 0;
  }

  .work__item {
    min-height: calc(100vh - var(--header-h) - 56px);
    min-height: calc(100svh - var(--header-h) - 56px);
    padding-block: 6vh;
  }

  .work__inline {
    display: none;
  }
}

/* Principle */

.principle {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 86vh;
  min-height: 86svh;
  padding: var(--section) var(--gutter);
  overflow: hidden;
  isolation: isolate;
  color: var(--on-ink);
  background: var(--ink);
  text-align: center;
}

.principle__media {
  position: absolute;
  inset: -8% 0;
  z-index: -2;
}

.principle__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.principle::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--scrim-deep);
}

.principle__text {
  max-width: 15em;
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: var(--step-quote);
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

/* Two voices */

.voices {
  padding-block: var(--section);
  background: var(--ivory);
}

.voices__grid {
  display: grid;
  gap: clamp(56px, 8vw, 80px);
}

.voice h3 {
  max-width: 13em;
  font-size: var(--step-title);
  line-height: 1.04;
  letter-spacing: -0.018em;
}

.voice .standfirst {
  margin-top: 20px;
}

.voice .standfirst + p {
  max-width: 32em;
  margin-top: 22px;
}

@media (min-width: 900px) {
  .voices__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
  }

  .voice {
    padding-right: clamp(32px, 5vw, 96px);
  }

  .voice + .voice {
    padding-right: 0;
    padding-left: clamp(32px, 5vw, 96px);
    border-left: 1px solid var(--line);
  }
}

/* Membership */

.membership {
  padding-block: var(--section);
  color: var(--on-ink-2);
  background: var(--ink);
  scroll-margin-top: var(--header-h);
}

.membership .section-title,
.membership .tier__name {
  color: var(--on-ink);
}

.membership .section-intro {
  color: var(--on-ink-2);
}

.membership :focus-visible {
  outline-color: var(--on-ink);
}

.tiers {
  display: grid;
  border-top: 1px solid var(--line-ink);
}

.tier {
  display: grid;
  align-content: start;
  gap: 16px;
  padding-block: clamp(32px, 4vw, 48px);
  border-bottom: 1px solid var(--line-ink);
  transition: background-color 0.5s var(--ease);
}

.tier__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tier__numeral {
  font-family: var(--display);
  font-style: italic;
  font-size: var(--step-display-s);
  line-height: 1;
  color: var(--on-ink-2);
}

/* Three short bars: how close each tier sits to the household. */
.tier__meter {
  display: flex;
  gap: 6px;
}

.tier__meter i {
  width: 28px;
  height: 2px;
  background: var(--line-ink);
}

.tier[data-level="1"] .tier__meter i:nth-child(1),
.tier[data-level="2"] .tier__meter i:nth-child(-n + 2),
.tier[data-level="3"] .tier__meter i {
  background: var(--on-ink);
}

.tier__name {
  margin-top: clamp(24px, 4vw, 72px);
  font-size: var(--step-title);
  line-height: 1;
  letter-spacing: -0.018em;
}

.tier .standfirst {
  color: var(--on-ink);
}

.tier .standfirst + p {
  margin-top: 6px;
}

@media (min-width: 1000px) {
  .tiers {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-bottom: 1px solid var(--line-ink);
  }

  .tier {
    padding-inline: clamp(24px, 2.6vw, 44px);
    border-bottom: 0;
  }

  .tier:first-child {
    padding-left: 0;
  }

  .tier:last-child {
    padding-right: 0;
  }

  .tier + .tier {
    border-left: 1px solid var(--line-ink);
  }

  .tier .standfirst {
    min-height: 2.56em;
  }
}

@media (hover: hover) and (min-width: 1000px) {
  .tier:hover {
    background: var(--wash-ink);
  }
}

.membership__note {
  max-width: 40em;
  margin-top: clamp(40px, 5vw, 72px);
}

.membership .text-link {
  color: var(--on-ink);
  text-decoration-color: var(--on-ink-3);
}

.membership .text-link:hover {
  color: var(--on-ink);
  text-decoration-color: var(--on-ink);
}

/* Place */

.place {
  padding-bottom: var(--section);
  background: var(--ivory);
}

.place__band {
  height: clamp(380px, 56vw, 82vh);
}

.place__band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.place__grid {
  display: grid;
  gap: 56px;
  padding-top: var(--section);
}

.place__text p {
  max-width: 30em;
  margin-top: 28px;
}

.areas {
  border-top: 1px solid var(--line-strong);
}

.areas li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 16px;
  padding-block: clamp(14px, 1.6vw, 22px);
  border-bottom: 1px solid var(--line);
}

.areas__name {
  font-family: var(--display);
  font-size: var(--step-area);
  line-height: 1.05;
  letter-spacing: -0.012em;
  color: var(--text);
}

.areas__note {
  font-size: var(--step-label);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
}

@media (min-width: 1000px) {
  .place__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
    align-items: start;
  }

  .place__text {
    grid-column: 1 / span 5;
  }

  .areas {
    grid-column: 7 / span 6;
  }
}

/* Discretion */

.discretion {
  padding-block: var(--section);
  background: var(--bone);
}

.discretion__grid {
  display: grid;
  gap: 24px;
}

.discretion__lead {
  font-family: var(--display);
  font-size: var(--step-discretion);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--text);
  text-wrap: balance;
}

.discretion__body {
  max-width: 30em;
}

@media (min-width: 900px) {
  .discretion__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
    row-gap: 0;
  }

  .discretion__label {
    grid-column: 1 / span 3;
    padding-top: 1.1em;
  }

  .discretion__lead {
    grid-column: 4 / span 9;
  }

  .discretion__body {
    grid-column: 7 / span 6;
    margin-top: clamp(32px, 4vw, 56px);
  }
}

/* Inquiries */

.inquiry {
  display: grid;
  background: var(--ivory);
  scroll-margin-top: var(--header-h);
}

.inquiry__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ink);
}

.inquiry__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.inquiry__panel {
  container-type: inline-size;
  width: 100%;
  max-width: 760px;
  padding: clamp(72px, 10vw, 128px) var(--gutter) var(--section);
}

.inquiry__intro p {
  max-width: 28em;
  margin-top: 24px;
}

.inquiry__caveat {
  font-family: var(--display);
  font-style: italic;
  font-size: var(--step-standfirst);
  line-height: 1.28;
  color: var(--text);
}

@media (min-width: 1000px) {
  .inquiry {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .inquiry__media {
    position: sticky;
    top: var(--header-h);
    height: calc(100vh - var(--header-h));
    height: calc(100svh - var(--header-h));
    aspect-ratio: auto;
  }

  .inquiry__panel {
    padding: clamp(96px, 10vw, 160px) clamp(40px, 6vw, 112px) var(--section);
  }
}

.form {
  display: grid;
  gap: clamp(30px, 3.4vw, 40px);
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: 28px;
  border-top: 1px solid var(--line-strong);
}

.form__date {
  font-family: var(--display);
  font-style: italic;
  font-size: var(--step-note);
  line-height: 1;
  color: var(--text-3);
}

.field {
  display: grid;
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.field > label,
.field > legend {
  padding: 0;
  font-size: var(--step-label);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-2);
}

.field__optional {
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--text-3);
}

.field input[type="text"],
.field textarea {
  width: 100%;
  padding: 6px 0 12px;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--display);
  font-size: var(--step-input);
  line-height: 1.4;
  appearance: none;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.field textarea {
  display: block;
  min-height: 7em;
  resize: vertical;
}

.field input[type="text"]:hover,
.field textarea:hover {
  border-bottom-color: var(--text-2);
}

.field input[type="text"]:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--oxblood);
  box-shadow: 0 1px 0 0 var(--oxblood);
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-bottom-color: var(--oxblood);
}

.field__hint,
.field__error {
  font-size: var(--step-small);
  line-height: 1.45;
}

.field__hint {
  color: var(--text-3);
}

.field__error {
  color: var(--oxblood);
}

.tiles {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

@container (min-width: 460px) {
  .tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.tile {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 60px;
  padding: 14px 18px;
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-size: var(--step-small);
  line-height: 1.35;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.tile input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.tile:hover {
  border-color: var(--text);
}

.tile:has(input:checked) {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--on-ink);
}

.tile:has(input:focus-visible) {
  outline: 2px solid var(--oxblood);
  outline-offset: 3px;
}

.tile:has(input[aria-invalid="true"]) {
  border-color: var(--oxblood);
}

.field-trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.form__send {
  display: grid;
  gap: 16px;
  margin-top: 8px;
}

.button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  width: 100%;
  padding: 24px 28px;
  border: 0;
  border-radius: 0;
  background: var(--ink);
  color: var(--on-ink);
  font-family: var(--sans);
  font-size: var(--step-label);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  appearance: none;
  cursor: pointer;
  transition: background-color 0.35s var(--ease);
}

.button__label {
  white-space: nowrap;
}

.button__rule {
  flex: none;
  width: 64px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0.56);
  transform-origin: right center;
  transition: transform 0.45s var(--ease);
}

.button:hover {
  background: var(--oxblood);
}

.button:hover .button__rule,
.button:focus-visible .button__rule {
  transform: none;
}

.button:disabled {
  opacity: 0.72;
  cursor: progress;
}

.form__note {
  font-family: var(--display);
  font-style: italic;
  font-size: var(--step-note);
  line-height: 1.4;
  color: var(--text-3);
}

.form__status {
  font-size: var(--step-small);
  line-height: 1.45;
  color: var(--oxblood);
}

.form__status:empty {
  display: none;
}

.sent {
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: 36px;
  border-top: 1px solid var(--line-strong);
}

.sent__title {
  font-size: var(--step-section);
  line-height: 1;
  letter-spacing: -0.02em;
}

.sent__title:focus {
  outline: none;
}

.sent p {
  max-width: 26em;
  margin-top: 20px;
  font-size: var(--step-lead);
}

.js .sent:not([hidden]) {
  animation: arrive 0.9s var(--ease) both;
}

@keyframes arrive {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* Footer */

.site-footer {
  padding: var(--section) 0 clamp(28px, 3vw, 40px);
  color: var(--on-ink-2);
  background: var(--ink);
}

.site-footer :focus-visible {
  outline-color: var(--on-ink);
}

.site-footer__tagline {
  max-width: 11em;
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: var(--step-section);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--on-ink);
}

.site-footer__grid {
  display: grid;
  gap: 28px;
  margin-top: clamp(72px, 9vw, 144px);
  padding-top: 32px;
  border-top: 1px solid var(--line-ink);
  font-size: var(--step-small);
  line-height: 1.65;
}

.site-footer__mark {
  font-family: var(--display);
  font-size: var(--step-display-m);
  line-height: 1;
  color: var(--on-ink);
}

.site-footer__privacy {
  max-width: 30em;
}

.site-footer__label {
  font-weight: 500;
  color: var(--on-ink);
}

.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin-top: clamp(48px, 6vw, 96px);
  font-size: var(--step-label);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--on-ink-3);
}

.site-footer__top {
  color: var(--on-ink-2);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

.site-footer__top:hover {
  color: var(--on-ink);
}

@media (min-width: 900px) {
  .site-footer__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
  }

  .site-footer__mark {
    grid-column: 1 / span 4;
  }

  .site-footer__meta {
    grid-column: 5 / span 3;
  }

  .site-footer__privacy {
    grid-column: 9 / span 4;
  }
}

/* Motion */

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  @supports (animation-timeline: view()) {
    .principle__media {
      animation: drift linear both;
      animation-timeline: view();
      animation-range: cover;
    }

    @keyframes drift {
      from { transform: translateY(-6%); }
      to { transform: translateY(6%); }
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .js .hero__media img,
  .js.is-ready .hero__media img,
  .js [data-reveal],
  .js [data-reveal] img,
  .work__frame,
  .work__frame img {
    clip-path: none;
    transform: none;
    transition: none;
  }

  .js .sent:not([hidden]) {
    animation: none;
  }
}

/* Print: a prospectus, without the form or the photographs' motion */

@media print {
  body::after,
  .site-header,
  .skip-link,
  .form,
  .work__media {
    display: none;
  }

  .hero,
  .principle,
  .membership,
  .site-footer {
    color: var(--text);
    background: none;
  }

  .js [data-reveal] {
    clip-path: none;
  }

  .work__inline {
    display: block;
  }
}
