/* Photographs stay untouched. Vector masks belong to the page composition. */
.silhouette img {
  -webkit-mask: var(--silhouette) center / 100% 100% no-repeat;
  mask: var(--silhouette) center / 100% 100% no-repeat;
}
.silhouette-tailoring { --silhouette: url("masks/alfaiataria.svg"); }

/* A photograph becomes the atmosphere of the section. */
.story-atmosphere {
  position: relative;
  isolation: isolate;
  display: flex;
  max-width: none;
  min-height: 850px;
  overflow: hidden;
  padding-inline: max(64px, calc((100vw - 1312px) / 2));
}
.story-atmosphere .story-image {
  position: absolute;
  inset: 0 0 0 35%;
  z-index: -2;
  background: none;
}
.story-atmosphere .story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 5%;
}
.story-atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #101010 35%, #101010d9 43%, #10101080 55%, #10101000 83%),
    linear-gradient(0deg, #101010a6, transparent 22%, transparent 80%, #10101026);
}
.story-atmosphere .story-copy { max-width: 590px; }
.story-atmosphere h2 { font-size: clamp(48px, 5.4vw, 82px); }
.story-atmosphere .story-copy > p:not(.eyebrow) { max-width: 385px; color: #c8c1ba; }
.story-atmosphere .pain-points { max-width: 390px; }

/* A full-length figure steps into a typographic, open composition. */
.solution-panel {
  background: #e5dfd5;
  color: #29232b;
  border: 0;
  overflow: hidden;
}
.solution-panel .story {
  position: relative;
  isolation: isolate;
  min-height: 870px;
  padding-block: 130px;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.art-word {
  position: absolute;
  right: 9%;
  bottom: 135px;
  font: italic 400 clamp(220px, 29vw, 450px) / .8 var(--serif);
  letter-spacing: -.075em;
  color: #b5a1bb;
  opacity: .44;
  z-index: -1;
  pointer-events: none;
  user-select: none;
}
.solution-panel .story-copy { position: relative; z-index: 2; max-width: 520px; }
.solution-panel .eyebrow { color: #65596a; }
.solution-panel h2 { font-size: clamp(50px, 5.8vw, 88px); }
.solution-panel h2 em { color: #7b578c; }
.solution-panel .story-copy > p:not(.eyebrow) { max-width: 360px; color: #675f68; }
.solution-panel .text-link { border-color: #29232b50; }
.solution-panel .text-link:hover { color: #79469a; }
.solution-panel .story-image {
  position: absolute;
  right: -1%;
  bottom: 25px;
  width: 63%;
  height: 835px;
  background: none;
  overflow: visible;
}
.solution-panel .story-image img {
  width: auto;
  height: 100%;
  max-width: none;
  margin: 0 auto;
  object-fit: contain;
}

/* A reference, a closer look, then the complete photograph in its studio. */
.intro { padding-top: 125px; }
.process-grid { gap: 50px; align-items: end; }
.process-grid article { min-width: 0; }
.process-image { overflow: visible; background: none; aspect-ratio: auto; }
.process-grid article:nth-child(1) .process-image { height: 340px; padding: 15px 25px 12px 10px; }
.process-grid article:nth-child(1) .process-image img {
  object-fit: contain;
  transform: rotate(-5deg);
  box-shadow: 0 18px 65px #0008;
  background: #e5e0d8;
}
.process-grid article:nth-child(2) .process-image { height: 420px; padding-bottom: 30px; }
.process-grid article:nth-child(2) .process-image img { object-fit: cover; object-position: center 25%; }
.process-grid article:nth-child(3) .process-image {
  width: 100%;
  max-width: 370px;
  height: auto;
  aspect-ratio: 2 / 3;
  margin-inline: auto;
}
.process-grid article:nth-child(3) .process-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.process-grid article:hover img { transform: none; }
.process-grid article:first-child:hover img { transform: rotate(-5deg); }
.step-heading { margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line); }

/* An asymmetric photographic spread, with breathing room around the detail. */
.results { background: #201b1b; border: 0; padding-bottom: 145px; overflow: hidden; }
.results-grid {
  grid-template-columns: 1.3fr .8fr;
  grid-template-rows: 580px auto;
  gap: 0 65px;
  align-items: start;
  margin-top: 75px;
}
.results-grid figure { position: relative; }
.results-grid figure:first-child { height: 650px; margin-left: -64px; }
.results-grid figure:first-child img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.results-grid figure:first-child::after {
  content: "";
  position: absolute;
  inset: 50% 0 0;
  background: linear-gradient(transparent, #201b1be8);
  pointer-events: none;
}
.results-grid figure:first-child figcaption { position: absolute; z-index: 1; bottom: 30px; left: 64px; font-size: 44px; }
.results-grid figure:first-child figcaption span { color: #d7c5be; }
.results-grid figure:nth-child(2) { margin-top: 100px; grid-row: span 2; }
.results-grid figure:nth-child(2) img { aspect-ratio: 1000 / 1420; width: 100%; }
.results-grid figure:nth-child(3) { width: 58%; margin: 0 0 0 auto; z-index: 2; }
.results-grid figure:nth-child(3) img { aspect-ratio: 1; object-fit: cover; }
.results-grid figure:nth-child(3) figcaption { font-size: 25px; }
.results-grid figcaption span { color: #b6a5a2; }

/* Product stories use their own scale and composition instead of equal cards. */
.possibilities { padding-bottom: 0; overflow: hidden; }
.editorial-grid { display: block; margin-top: 65px; }
.editorial-card { position: relative; isolation: isolate; min-height: 710px; margin: 0; }
.editorial-card img { position: absolute; inset: 0; width: 58%; height: 100%; object-fit: cover; object-position: center 20%; }
.editorial-card > div { position: relative; z-index: 2; width: 44%; margin-left: auto; padding: 180px 0 100px 45px; }
.editorial-card span { font-size: 10px; }
.editorial-card h3 { font-size: clamp(48px, 5.6vw, 80px); line-height: .98; margin: 26px 0; letter-spacing: -.04em; }
.editorial-card p { max-width: 310px; font-size: 13px; line-height: 1.9; }
.editorial-fashion::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, transparent 32%, #e5e0d840 42%, #e5e0d8 60%);
  pointer-events: none;
}
.editorial-fashion img { background: none; }
.editorial-social {
  min-height: 660px;
  margin: 65px calc(-1 * max(64px, (100vw - 1312px) / 2)) 0;
  padding-inline: max(64px, calc((100vw - 1312px) / 2));
  background: #302820;
  color: #f5eee3;
}
.editorial-card.editorial-social { padding-top: 0; }
.editorial-social img { width: 75%; object-position: center 85%; }
.editorial-social::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, transparent 15%, #30282066 45%, #302820 70%);
  pointer-events: none;
}
.editorial-social > div { padding-top: 150px; width: 42%; }
.editorial-social span { color: #d5b1ed; }
.editorial-social p { color: #d3c5b8; }
.editorial-shop { min-height: 760px; padding-bottom: 50px; }
.editorial-shop img { left: auto; right: -5%; width: 60%; height: 100%; object-fit: contain; mix-blend-mode: multiply; background: none; }
.editorial-shop > div { margin: 0; width: 48%; padding: 210px 0 100px; }
.editorial-shop::before {
  content: "vitrine.";
  position: absolute;
  bottom: 70px;
  right: -3%;
  color: #c7bdca;
  font: italic 400 clamp(100px, 15vw, 230px) / .8 var(--serif);
  letter-spacing: -.06em;
  z-index: -1;
}

@media (max-width: 1100px) {
  .story-atmosphere { min-height: 740px; padding-inline: 35px; }
  .story-atmosphere .story-copy { max-width: 50%; }
  .story-atmosphere h2 { font-size: 60px; }
  .solution-panel .story { min-height: 790px; }
  .solution-panel .story-image { height: 735px; right: -5%; width: 67%; }
  .solution-panel .story-copy { max-width: none; width: 90%; }
  .solution-panel h2 { font-size: 64px; }
  .process-grid { gap: 28px; }
  .process-grid article:nth-child(1) .process-image { height: 260px; padding-inline: 8px; }
  .process-grid article:nth-child(2) .process-image { height: 330px; }
  .results-grid { gap: 0 35px; grid-template-rows: 470px auto; }
  .results-grid figure:first-child { height: 540px; margin-left: -35px; }
  .results-grid figure:first-child figcaption { left: 35px; }
  .editorial-card { min-height: 620px; }
  .editorial-card > div { padding: 160px 0 70px 25px; }
  .editorial-social { margin-inline: -35px; padding-inline: 35px; }
  .editorial-shop > div { padding: 170px 0 100px; }
}
@media (max-width: 700px) {
  .story-atmosphere { display: block; min-height: 850px; padding: 410px 24px 65px; }
  .story-atmosphere .story-image { inset: 0 0 auto; height: 630px; }
  .story-atmosphere .story-image img { object-fit: cover; max-height: none; object-position: center 28%; }
  .story-atmosphere::after { background: linear-gradient(0deg, #101010 0%, #101010 25%, #101010d9 40%, #10101020 75%, transparent); }
  .story-atmosphere .story-copy { max-width: none; }
  .story-atmosphere h2 { font-size: 52px; }
  .story-atmosphere .pain-points { gap: 12px 19px; }
  .solution-panel .story { display: block; min-height: 1040px; padding: 64px 24px 600px; }
  .solution-panel .story-copy { max-width: none; width: 100%; }
  .solution-panel h2 { font-size: 60px; }
  .solution-panel .story-copy > p:not(.eyebrow) { max-width: 340px; }
  .solution-panel .story-copy .text-link { margin-top: 20px; }
  .solution-panel .story-image { height: 580px; right: 0; bottom: 10px; width: 100%; }
  .solution-panel .story-image img { max-height: none; }
  .art-word { font-size: 72vw; right: 9%; bottom: 190px; }
  .intro { padding-top: 72px; }
  .process-grid { display: grid; grid-template-columns: 1fr; gap: 45px; }
  .process-grid article { margin: 0; }
  .process-grid article:nth-child(1) .process-image { width: 72%; height: 320px; padding: 5px; margin: 0 0 24px 8%; }
  .process-grid article:nth-child(2) .process-image { width: 80%; height: 390px; padding: 0; margin-left: auto; }
  .step-heading { margin-top: 24px; }
  .results { padding-bottom: 75px; }
  .results-grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto; gap: 35px 18px; margin-top: 42px; }
  .results-grid figure:first-child { grid-column: 1 / -1; margin: 0 -24px; height: 510px; }
  .results-grid figure:first-child figcaption { left: 24px; bottom: 25px; }
  .results-grid figure:nth-child(2) { grid-row: auto; margin-top: 0; }
  .results-grid figure:nth-child(3) { width: 100%; margin-top: 90px; }
  .results-grid figcaption, .results-grid figure:nth-child(3) figcaption { font-size: 25px; padding-top: 14px; }
  .results-grid figcaption span { font-size: 10px; }
  .results-grid img { max-height: none; }
  .possibilities { padding-bottom: 0; }
  .editorial-grid { margin-top: 40px; }
  .editorial-card { min-height: 740px; margin-bottom: 0; }
  .editorial-card img { width: calc(100% + 48px); max-width: none; height: 500px; max-height: none; left: -24px; object-position: center 20%; }
  .editorial-card > div { width: 100%; margin: 0; padding: 470px 0 55px; }
  .editorial-card h3 { font-size: 55px; max-width: 340px; margin: 20px 0; }
  .editorial-card p { max-width: 320px; }
  .editorial-fashion::after { background: linear-gradient(0deg, #e5e0d8 23%, #e5e0d8 31%, transparent 58%); }
  .editorial-social { margin: 0 -24px; padding-inline: 24px; min-height: 790px; }
  .editorial-social img { left: 0; width: 100%; height: 550px; object-position: center 30%; }
  .editorial-social::after { background: linear-gradient(0deg, #302820 0%, #302820 24%, #302820cc 42%, transparent 70%); }
  .editorial-social > div { padding-top: 480px; width: 100%; }
  .editorial-shop { min-height: 960px; padding: 0; display: flex; align-items: end; }
  .editorial-shop img { top: 25px; left: -24px; right: auto; height: 655px; width: calc(100% + 48px); }
  .editorial-shop > div { width: 100%; padding: 680px 0 65px; }
  .editorial-shop::before { bottom: auto; top: 420px; font-size: 30vw; }
}
@media (max-width: 370px) {
  .story-atmosphere h2 { font-size: 46px; }
  .solution-panel h2 { font-size: 53px; }
}

@media (max-width: 700px) {
  .solution-panel .story-image img { position: relative; left: 50%; margin: 0; transform: translateX(-50%); }
}
@media (max-width: 370px) {
  .brand img { width: 112px; }
  .button-small { white-space: nowrap; gap: 12px; }
  .feature-grid { grid-template-columns: 1fr; }
}

/* Complete client roster, in two identical groups for a seamless loop. */
.brand-marquee { margin-top: 28px; }
.brand-track { display: flex; width: 100%; }
.brand-group { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 36px 64px; }
.brand-group[aria-hidden="true"] { display: none; }
.brand-group img { flex: 0 0 140px; width: 140px; height: 56px; object-fit: contain; opacity: .8; }
.has-marquee .brand-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.has-marquee .brand-track { width: max-content; animation: brand-drift 48s linear infinite; }
.has-marquee .brand-group { display: flex; flex-wrap: nowrap; flex-shrink: 0; gap: 64px; padding-right: 64px; }
.has-marquee.is-offscreen .brand-track { animation-play-state: paused; }
@keyframes brand-drift { to { transform: translateX(-50%); } }
@media (max-width: 700px) {
  .brand-group { gap: 24px 36px; }
  .brand-group img { flex-basis: 112px; width: 112px; height: 45px; }
  .has-marquee .brand-group { gap: 36px; padding-right: 36px; }
  .has-marquee .brand-track { animation-duration: 38s; }
}
@media (prefers-reduced-motion: reduce) {
  .brands .brand-marquee { overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .brands .brand-track { width: 100%; animation: none; transform: none; }
  .brands .brand-group { flex-wrap: wrap; padding-right: 0; }
  .brands .brand-group[aria-hidden="true"] { display: none; }
}
