@font-face {
  font-family: "Archivo";
  src: url("./prototypes/la-fente/fonts/archivo-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Newsreader";
  src: url("./fonts/newsreader/Newsreader-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --ink: #07221B;
  --forest: #034234;
  --coral: #C5763D;
  --mist: #FFFBF3;
  --lichen: #A5D5AD;
  --paper: #FFFBF3;
  --white: #FFFBF3;
  --line: rgba(7, 34, 27, 0.22);
  --pad: clamp(1rem, 4vw, 4.5rem);
  --measure: 46rem;
  --section: clamp(7rem, 13vw, 13rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  color-scheme: light;
  scroll-behavior: smooth;
  scroll-padding-top: 7rem;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", Arial, sans-serif;
  font-size: clamp(1rem, 0.9rem + 0.2vw, 1.16rem);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

img,
picture,
video {
  display: block;
  max-width: 100%;
}

img,
video {
  width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.24em;
}

p,
h1,
h2,
h3,
figure,
dl,
dd {
  margin: 0;
}

h1,
h2,
h3 {
  font-weight: 450;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

h2 {
  font-size: clamp(2.9rem, 7vw, 7.6rem);
}

::selection {
  background: var(--coral);
  color: var(--ink);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--white);
  color: var(--ink);
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.section-space {
  padding-block: var(--section);
}

.section-kicker,
.case-hero__status,
.project-ledger dt,
.challenge__label,
.continuity__current span,
.objects__note,
.motion figcaption span,
.closing__panel > p {
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.masthead {
  position: fixed;
  z-index: 100;
  top: max(clamp(0.8rem, 2vw, 1.5rem), calc(env(safe-area-inset-top) + 0.4rem));
  left: 50%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(calc(100% - 2rem - env(safe-area-inset-left) - env(safe-area-inset-right)), 94rem);
  min-height: 3.75rem;
  padding: 0.7rem clamp(0.9rem, 2vw, 1.6rem);
  background: rgba(7, 34, 27, 0.95);
  color: var(--paper);
  transform: translateX(-50%);
  transition:
    background-color 350ms ease,
    box-shadow 350ms ease,
    backdrop-filter 350ms ease,
    top 350ms var(--ease);
}

.masthead[data-state="scrolled"] {
  top: max(0.65rem, calc(env(safe-area-inset-top) + 0.35rem));
  background: rgba(7, 34, 27, 0.82);
  box-shadow: 0 0.35rem 1.5rem rgba(7, 34, 27, 0.12);
  backdrop-filter: blur(18px);
}

.masthead a {
  min-height: 2.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
}

.masthead__studio {
  justify-self: start;
}

.masthead__faham {
  justify-self: center;
}

.masthead__faham img {
  width: clamp(6.5rem, 9vw, 8.5rem);
  filter: brightness(0) invert(1);
}

.masthead__actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: clamp(0.45rem, 1vw, 0.9rem);
}

.masthead__lang {
  min-width: 2.75rem;
  justify-content: center;
}

.masthead__visit {
  justify-content: flex-end;
}

.masthead a span[aria-hidden="true"] {
  transition: transform 220ms var(--ease);
}

.masthead a:hover span[aria-hidden="true"],
.masthead a:focus-visible span[aria-hidden="true"] {
  transform: translate(0.18rem, -0.18rem);
}

.case-index-trigger {
  position: fixed;
  z-index: 90;
  right: max(1rem, calc(env(safe-area-inset-right) + 0.65rem));
  bottom: max(1rem, calc(env(safe-area-inset-bottom) + 0.65rem));
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.6rem 0.85rem;
  border: 1px solid rgba(255, 251, 243, 0.36);
  border-radius: 999px;
  background: rgba(7, 34, 27, 0.9);
  box-shadow: 0 0.4rem 1.4rem rgba(7, 34, 27, 0.18);
  color: var(--paper);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 180ms ease, transform 180ms var(--ease);
}

.case-index-trigger:hover,
.case-index-trigger:focus-visible {
  background: var(--forest);
  transform: translateY(-0.15rem);
}

.case-index-trigger > span[aria-hidden="true"] {
  position: relative;
  width: 0.7rem;
  height: 0.7rem;
}

.case-index-trigger > span[aria-hidden="true"]::before,
.case-index-trigger > span[aria-hidden="true"]::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
}

.case-index-trigger > span[aria-hidden="true"]::before {
  transform: translateY(-0.16rem);
}

.case-index-trigger > span[aria-hidden="true"]::after {
  transform: translateY(0.16rem);
}

.case-index {
  width: min(31rem, calc(100% - 2rem - env(safe-area-inset-left) - env(safe-area-inset-right)));
  max-height: min(42rem, calc(100dvh - 2rem - env(safe-area-inset-top) - env(safe-area-inset-bottom)));
  margin: auto;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  overflow: auto;
  overscroll-behavior: contain;
  border: 0;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 1.5rem 5rem rgba(0, 0, 0, 0.42);
}

.case-index::backdrop {
  background: rgba(7, 34, 27, 0.7);
  backdrop-filter: blur(6px);
}

.case-index__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 251, 243, 0.22);
}

.case-index__head p {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.case-index__close {
  display: grid;
  flex: 0 0 auto;
  width: 2.75rem;
  min-height: 2.75rem;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 251, 243, 0.3);
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.case-index__close span[aria-hidden="true"] {
  position: relative;
  width: 0.8rem;
  height: 0.8rem;
}

.case-index__close span[aria-hidden="true"]::before,
.case-index__close span[aria-hidden="true"]::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
}

.case-index__close span[aria-hidden="true"]::before {
  transform: rotate(45deg);
}

.case-index__close span[aria-hidden="true"]::after {
  transform: rotate(-45deg);
}

.case-index nav {
  display: grid;
  margin-top: 1rem;
}

.case-index nav a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255, 251, 243, 0.14);
  color: inherit;
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(1.25rem, 4vw, 1.65rem);
  line-height: 1.1;
  text-decoration: none;
}

.case-index nav a::before {
  content: "";
  flex: 0 0 auto;
  width: 0.32rem;
  height: 0.32rem;
  margin-right: 0.65rem;
  border-radius: 50%;
  background: var(--coral);
}

.case-index nav a:hover,
.case-index nav a:focus-visible {
  color: var(--lichen);
}

.case-hero {
  min-height: 100svh;
  background: var(--ink);
  color: var(--paper);
}

.case-hero__media {
  position: relative;
  height: min(72svh, 58rem);
  overflow: hidden;
}

.case-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(7, 34, 27, 0.08), rgba(7, 34, 27, 0.38));
  pointer-events: none;
}

.case-hero__media img {
  height: 100%;
  object-fit: cover;
  object-position: center 52%;
  scale: 1.015;
}

.case-hero__band {
  display: grid;
  grid-template-columns: minmax(9rem, 0.65fr) minmax(18rem, 1.7fr) minmax(15rem, 0.75fr);
  gap: clamp(2rem, 4vw, 5rem);
  align-items: start;
  padding: clamp(3rem, 6vw, 6rem) var(--pad) clamp(5rem, 9vw, 9rem);
}

.case-hero__status {
  display: grid;
  gap: 0.5rem;
  color: var(--lichen);
}

.case-hero h1 {
  max-width: 18ch;
  font-size: clamp(3.3rem, 7vw, 8.5rem);
}

.case-hero__band > p {
  max-width: 32rem;
  padding-top: 0.2rem;
  color: rgba(255, 251, 243, 0.74);
}

.project-ledger {
  padding-inline: var(--pad);
}

.project-ledger__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}

.project-ledger__grid > div {
  min-height: 9rem;
  padding: 1.25rem 1.25rem 1.5rem 0;
  border-right: 1px solid var(--line);
}

.project-ledger__grid > div:not(:first-child) {
  padding-left: 1.25rem;
}

.project-ledger__grid > div:last-child {
  border-right: 0;
}

.project-ledger dt {
  margin-bottom: 1.5rem;
  color: var(--forest);
}

.project-ledger dd {
  max-width: 18rem;
  font-size: clamp(1.05rem, 1.3vw, 1.4rem);
  line-height: 1.2;
}

.challenge {
  display: grid;
  grid-template-columns: 0.7fr 1.65fr 0.65fr;
  gap: clamp(2rem, 5vw, 6rem);
  padding-inline: var(--pad);
  background: var(--forest);
  color: var(--paper);
}

.challenge__label {
  color: var(--lichen);
}

.challenge__copy {
  max-width: 65rem;
}

.challenge__copy h2 {
  margin-bottom: clamp(3rem, 8vw, 7rem);
  font-size: clamp(3rem, 6.6vw, 7.4rem);
}

.challenge__lead {
  margin-bottom: 1.75rem;
  font-size: clamp(1.5rem, 2.2vw, 2.5rem);
  line-height: 1.15;
}

.challenge__copy > p:last-child {
  max-width: var(--measure);
  color: rgba(255, 251, 243, 0.7);
}

.challenge__proof {
  align-self: end;
  border-top: 1px solid rgba(255, 251, 243, 0.24);
}

.challenge__proof div {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  align-items: baseline;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 251, 243, 0.16);
}

.challenge__proof strong {
  color: var(--coral);
  font-size: 2rem;
  font-weight: 450;
}

.challenge__proof span {
  font-size: 0.8rem;
  color: rgba(255, 251, 243, 0.68);
}

.identity {
  display: grid;
  grid-template-columns: 1.2fr 0.65fr 0.85fr;
  gap: clamp(2rem, 5vw, 6rem);
  align-items: start;
  padding-inline: var(--pad);
  background: var(--mist);
}

.identity__intro h2 {
  margin: 1.75rem 0 3rem;
}

.identity__intro > p:last-child {
  max-width: 40rem;
}

.identity__mark {
  margin-top: clamp(7rem, 15vw, 15rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.identity__mark img {
  width: min(100%, 13rem);
  margin-bottom: 2rem;
}

.identity__mark p {
  max-width: 17rem;
  color: rgba(7, 34, 27, 0.7);
}

.identity__botanical {
  margin-top: clamp(3rem, 8vw, 8rem);
}

.identity__botanical img {
  background: #fbf5e8;
}

.identity__botanical figcaption,
.objects figcaption,
.digital figcaption {
  margin-top: 0.85rem;
  font-size: 0.78rem;
  color: rgba(7, 34, 27, 0.62);
}

.identity__palette {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-top: clamp(4rem, 8vw, 8rem);
  border-top: 1px solid var(--line);
}

.identity__palette span {
  display: grid;
  min-height: 7rem;
  padding: 1rem;
  color: var(--ink);
  background: var(--swatch);
  border-right: 1px solid rgba(7, 34, 27, 0.14);
}

.identity__palette span:first-child,
.identity__palette span:nth-child(2) {
  color: var(--paper);
}

.identity__palette b {
  align-self: start;
  font-size: 0.78rem;
  font-weight: 600;
}

.identity__palette small {
  align-self: end;
  font-size: 0.68rem;
}

.continuity {
  display: grid;
  grid-template-columns: minmax(17rem, 0.65fr) minmax(0, 1.35fr);
  gap: clamp(3rem, 7vw, 9rem);
  align-items: start;
  padding-inline: var(--pad);
}

.continuity__rail {
  position: sticky;
  top: 8.5rem;
  min-height: calc(100svh - 10rem);
  display: flex;
  flex-direction: column;
}

.continuity__rail h2 {
  margin: 1.5rem 0 2rem;
  font-size: clamp(3rem, 5vw, 6.2rem);
}

.continuity__rail > p:not(.section-kicker, .continuity__current) {
  max-width: 30rem;
  color: rgba(7, 34, 27, 0.7);
}

.continuity__current {
  display: grid;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.continuity__current span {
  color: var(--forest);
}

.continuity__current strong {
  font-size: 1.4rem;
  font-weight: 450;
}

.continuity__sequence {
  display: grid;
  gap: clamp(8rem, 15vw, 16rem);
}

.continuity-step {
  position: relative;
  transition: opacity 500ms ease;
}

.continuity-step img {
  background: var(--mist);
}

.continuity-step--portrait picture,
.continuity-step--detail picture {
  width: min(72%, 38rem);
  margin-left: auto;
}

.continuity-step figcaption {
  display: grid;
  grid-template-columns: 3rem minmax(8rem, 0.45fr) 1fr;
  gap: 1rem;
  align-items: start;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.continuity-step figcaption span {
  color: var(--forest);
  font-size: 0.78rem;
}

.continuity-step figcaption strong {
  font-weight: 600;
}

.continuity-step figcaption p {
  color: rgba(7, 34, 27, 0.68);
}

.objects {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 3.5rem);
  align-items: start;
  padding-inline: var(--pad);
  background: var(--mist);
}

.objects__heading {
  grid-column: 1 / span 4;
  position: sticky;
  top: 8.5rem;
}

.objects__heading h2 {
  margin-top: 1.5rem;
  font-size: clamp(3rem, 5vw, 6rem);
}

.objects__gallery {
  grid-column: 5 / -1;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: clamp(1.25rem, 2vw, 2.5rem);
  align-items: start;
}

.objects__gallery figure {
  min-width: 0;
}

.objects__welcome {
  grid-column: 1 / -1;
}

.objects__card {
  grid-column: 1 / span 3;
}

.objects__bottles {
  grid-column: 4 / span 4;
  margin-top: clamp(4rem, 8vw, 8rem);
}

.objects__copy {
  grid-column: 5 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-top: clamp(2rem, 4vw, 4rem);
}

.objects__note {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--forest);
  text-transform: none;
  line-height: 1.45;
  letter-spacing: 0.05em;
}

.digital {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: clamp(3rem, 6vw, 8rem);
  padding-inline: var(--pad);
}

.digital__heading {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 0.35fr 1.15fr 0.5fr;
  gap: clamp(2rem, 4vw, 5rem);
  align-items: start;
  margin-bottom: clamp(4rem, 9vw, 10rem);
}

.digital__heading h2 {
  font-size: clamp(3rem, 6vw, 7rem);
}

.digital__heading > p:last-child {
  color: rgba(7, 34, 27, 0.7);
}

.digital__desktop {
  grid-column: 1;
}

.digital__mobile {
  grid-column: 2;
  width: min(70%, 25rem);
  justify-self: center;
  margin-top: clamp(8rem, 17vw, 18rem);
}

.digital__stay {
  grid-column: 1 / -1;
  width: min(78%, 75rem);
  margin-top: clamp(7rem, 13vw, 14rem);
  margin-left: auto;
}

.digital__stay-frame {
  position: relative;
  aspect-ratio: 32 / 15;
  overflow: hidden;
  background: var(--mist);
}

.digital__stay-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.motion {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: clamp(3rem, 6vw, 8rem);
  padding-inline: var(--pad);
  background: var(--forest);
  color: var(--paper);
}

.motion__heading {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 0.35fr 1.15fr 0.5fr;
  gap: clamp(2rem, 4vw, 5rem);
  align-items: start;
  margin-bottom: clamp(4rem, 8vw, 9rem);
}

.motion__heading h2 {
  font-size: clamp(3rem, 6vw, 7rem);
}

.motion__heading > p:last-child {
  color: rgba(255, 251, 243, 0.68);
}

.motion__control {
  grid-column: 3;
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 0.65rem 0;
  border: 0;
  border-top: 1px solid rgba(255, 251, 243, 0.28);
  background: transparent;
  color: var(--paper);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
}

.motion__control[hidden] {
  display: none;
}

.motion video {
  background: #07221B;
}

.motion figcaption {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 251, 243, 0.2);
}

.motion figcaption span {
  color: var(--lichen);
}

.motion figcaption p {
  color: rgba(255, 251, 243, 0.68);
}

.motion__room {
  width: min(100%, 28rem);
  margin-top: clamp(10rem, 22vw, 22rem);
}

.result {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(3rem, 9vw, 12rem);
  align-items: end;
  padding-inline: var(--pad);
}

.result__copy h2 {
  margin: 1.5rem 0 3rem;
  font-size: clamp(3rem, 5.8vw, 7rem);
}

.result__copy > p:last-child {
  max-width: 45rem;
}

.result__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.result__list li {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.result__list span {
  color: var(--forest);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.result__list strong {
  font-weight: 450;
}

.closing {
  position: relative;
  min-height: 92svh;
  display: grid;
  place-items: end start;
  overflow: hidden;
  background: var(--ink);
}

.closing__media {
  position: absolute;
  inset: 0;
}

.closing__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 34, 27, 0.82), rgba(7, 34, 27, 0.1) 68%);
}

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

.closing__panel {
  position: relative;
  z-index: 1;
  width: min(46rem, calc(100% - 2rem));
  margin: var(--pad);
  padding: clamp(2rem, 4vw, 4rem);
  background: var(--paper);
}

.closing__panel > p {
  color: var(--forest);
}

.closing__panel h2 {
  margin: 1.5rem 0 3.5rem;
  font-size: clamp(3.2rem, 6vw, 6.5rem);
}

.button {
  display: inline-flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin: 0.35rem 0.4rem 0.35rem 0;
  padding: 0.85rem 1rem;
  border: 1px solid var(--ink);
  font-size: 0.82rem;
  font-weight: 650;
  text-decoration: none;
  transition: background-color 220ms ease, color 220ms ease;
}

.button--primary {
  background: var(--coral);
  color: var(--ink);
}

.button--quiet:hover,
.button--quiet:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

.button--primary:hover,
.button--primary:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

.case-footer {
  display: grid;
  grid-template-columns: 0.6fr 1.4fr 0.6fr;
  gap: clamp(2rem, 6vw, 7rem);
  align-items: end;
  padding: clamp(3rem, 6vw, 6rem) var(--pad);
  background: var(--forest);
  color: rgba(255, 251, 243, 0.7);
  border-top: 1px solid rgba(255, 251, 243, 0.16);
}

.case-footer > a:first-child img {
  width: 8rem;
  filter: brightness(0) invert(1);
}

.case-footer p {
  max-width: 40rem;
  font-size: 0.78rem;
}

.case-footer > a:last-child {
  justify-self: end;
  font-size: 0.78rem;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(2.5rem);
  transition: opacity 850ms var(--ease), transform 850ms var(--ease);
}

.js [data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.js [data-reveal]:focus-within {
  opacity: 1;
  transform: none;
}

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

/* Les sorties vers le studio gardent A Glacier et vin, sans changer les autres projets. */
body .case-exits {
  background: #ced7ec;
  color: #4e1d35;
}
body .case-exits a { color: #4e1d35; }
body .case-exits a:focus-visible { outline-color: #4e1d35; }

@media (max-width: 960px) {
  :root {
    --section: clamp(6.5rem, 12vw, 9rem);
  }

  .case-hero__band,
  .challenge,
  .digital__heading,
  .motion__heading {
    grid-template-columns: 1fr;
  }

  .case-hero__status {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
  }

  .case-hero__band > p,
  .challenge__proof,
  .digital__heading > p:last-child,
  .motion__heading > p:last-child,
  .motion__control {
    grid-column: 1;
  }

  .challenge__proof {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 2rem;
  }

  .challenge__proof div {
    grid-template-columns: 1fr;
    align-content: start;
  }

  .identity {
    grid-template-columns: 1fr 1fr;
  }

  .identity__intro,
  .identity__palette {
    grid-column: 1 / -1;
  }

  .identity__mark,
  .identity__botanical {
    grid-column: auto;
    grid-row: auto;
    margin-top: 2rem;
  }

  .continuity {
    grid-template-columns: 1fr;
  }

  .continuity__rail,
  .objects__heading {
    position: static;
    min-height: 0;
  }

  .continuity__current {
    display: none;
  }

  .continuity__sequence {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5rem 2rem;
  }

  .continuity-step:first-child {
    grid-column: 1 / -1;
  }

  .continuity-step--portrait picture,
  .continuity-step--detail picture {
    width: 100%;
  }

  .continuity-step figcaption {
    grid-template-columns: 2.5rem 1fr;
  }

  .continuity-step figcaption p {
    grid-column: 2;
  }

  .objects__heading,
  .objects__gallery {
    grid-column: 1 / -1;
  }

  .objects__gallery {
    margin-top: 2rem;
  }

  .objects__copy {
    grid-column: 5 / -1;
  }

  .digital__heading,
  .motion__heading {
    margin-bottom: 3rem;
  }

  .digital__stay {
    width: 100%;
  }

  .motion figcaption {
    grid-template-columns: 1fr;
  }

  .motion__room {
    margin-top: 8rem;
  }

  .result {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  :root {
    --section: clamp(5.5rem, 16vw, 8rem);
  }

  html {
    scroll-padding-top: 5.5rem;
  }

  .masthead {
    grid-template-columns: auto 1fr auto;
    min-height: 3.4rem;
    width: calc(100% - 1rem - env(safe-area-inset-left) - env(safe-area-inset-right));
    padding-inline: 0.8rem;
  }

  .masthead__studio span:first-child,
  .masthead .masthead__visit {
    font-size: 0;
  }

  .masthead__studio span:last-child,
  .masthead .masthead__visit span {
    font-size: 1rem;
  }

  .masthead .masthead__visit {
    min-width: 44px;
    justify-content: center;
  }

  .masthead__faham img {
    width: 7rem;
  }

  .masthead a {
    min-height: 2.75rem;
  }

  .case-hero__media {
    height: 67svh;
  }

  .case-hero__media img {
    object-position: center 46%;
    scale: 1;
  }

  .case-hero__band,
  .challenge,
  .identity,
  .continuity,
  .objects,
  .digital,
  .digital__heading,
  .motion,
  .motion__heading,
  .result,
  .case-footer {
    grid-template-columns: 1fr;
  }

  .case-hero__status {
    grid-template-columns: 1fr 1fr;
  }

  .case-hero h1 {
    max-width: 14ch;
    font-size: clamp(3rem, 7vw, 5.4rem);
  }

  .case-hero__band > p,
  .challenge__proof,
  .identity__botanical,
  .digital__heading > p:last-child,
  .motion__heading > p:last-child {
    grid-column: 1;
  }

  .motion__control {
    grid-column: 1;
  }

  .project-ledger__grid {
    grid-template-columns: 1fr 1fr;
  }

  .project-ledger__grid > div {
    min-height: 8rem;
    border-bottom: 1px solid var(--line);
  }

  .project-ledger__grid > div:nth-child(2) {
    border-right: 0;
  }

  .project-ledger__grid > div:nth-child(3) {
    padding-left: 0;
  }

  .challenge__copy h2,
  .identity__intro h2,
  .digital__heading h2,
  .motion__heading h2,
  .result__copy h2 {
    font-size: clamp(2.8rem, 8vw, 4.6rem);
  }

  .challenge__proof {
    margin-top: 3rem;
  }

  .identity__intro,
  .identity__mark,
  .identity__botanical {
    grid-column: 1;
    grid-row: auto;
  }

  .identity__mark,
  .identity__botanical {
    width: 100%;
  }

  .identity__botanical {
    margin-left: 0;
  }

  .identity__palette {
    grid-template-columns: 1fr;
  }

  .identity__palette span {
    min-height: 4rem;
    grid-template-columns: 1fr auto;
    align-items: center;
    border-right: 0;
    border-bottom: 1px solid rgba(7, 34, 27, 0.14);
  }

  .identity__palette small {
    align-self: center;
  }

  .continuity__rail,
  .objects__heading {
    position: static;
    min-height: 0;
  }

  .continuity__current {
    display: none;
  }

  .continuity__sequence {
    grid-template-columns: 1fr;
    margin-top: 2rem;
    gap: 6.5rem;
  }

  .continuity-step:not(.is-current) {
    opacity: 1;
  }

  .continuity-step--portrait picture,
  .continuity-step--detail picture {
    width: 100%;
  }

  .continuity-step figcaption {
    grid-template-columns: 2.5rem 1fr;
  }

  .continuity-step figcaption p {
    grid-column: 2;
  }

  .objects__heading,
  .objects__gallery,
  .objects__copy {
    grid-column: 1;
  }

  .objects__gallery {
    grid-template-columns: 1fr;
    margin-top: 2rem;
  }

  .objects__welcome,
  .objects__card,
  .objects__bottles {
    grid-column: 1;
    width: 100%;
    margin: 0;
  }

  .objects__card,
  .objects__bottles {
    width: 100%;
  }

  .objects__card {
    justify-self: start;
  }

  .objects__bottles {
    justify-self: end;
  }

  .objects__copy {
    grid-template-columns: 1fr;
    margin-top: 3rem;
  }

  .digital__heading,
  .motion__heading {
    margin-bottom: 1rem;
  }

  .digital__desktop,
  .digital__mobile,
  .digital__stay,
  .motion__heading,
  .motion__basin,
  .motion__room {
    grid-column: 1;
  }

  .digital__mobile {
    width: 72%;
    margin: 5rem 0 0 auto;
  }

  .digital__stay {
    width: 100%;
    margin-top: 6rem;
  }

  .motion__basin {
    margin-top: 4rem;
  }

  .motion__room {
    width: 100%;
    margin: 6rem 0 0;
  }

  .motion figcaption {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .result__list {
    margin-top: 3rem;
  }

  .closing {
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  .closing__media {
    position: relative;
    aspect-ratio: 16 / 10;
  }

  .closing__media::after {
    background: linear-gradient(to top, rgba(7, 34, 27, 0.58), rgba(7, 34, 27, 0.04) 72%);
  }

  .closing__panel {
    width: calc(100% - 1rem);
    margin: -2rem 0.5rem 0.5rem;
    padding: 1.5rem;
  }

  .case-footer a {
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
  }

  .case-footer > a:last-child {
    justify-self: start;
  }
}

@media (max-width: 479px) {
  .case-hero h1 {
    max-width: 12ch;
    font-size: clamp(2.65rem, 12.5vw, 3.4rem);
    letter-spacing: -0.045em;
  }

  .challenge__copy h2,
  .identity__intro h2,
  .digital__heading h2,
  .motion__heading h2,
  .result__copy h2,
  .continuity__rail h2,
  .objects__heading h2 {
    max-width: 100%;
    font-size: clamp(2.35rem, 11.5vw, 3.2rem);
    letter-spacing: -0.045em;
  }

  .project-ledger__grid {
    grid-template-columns: 1fr;
  }

  .project-ledger__grid > div,
  .project-ledger__grid > div:not(:first-child) {
    min-height: 0;
    padding: 1rem 0;
    border-right: 0;
  }

  .challenge__proof {
    grid-template-columns: 1fr 1fr;
  }

  .result__list li {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
