.elma-page {
  --elma-ink: #151515;
  --elma-muted: #5f5f5f;
  --elma-accent: #0a9999;
  --elma-line: rgba(18, 18, 18, 0.2);
}

body.elma-page,
.elma-page main,
.elma-page .site-shell,
.elma-board {
  background: #fff;
  color: var(--elma-ink);
}

.elma-page .ambient-signal,
.elma-page .material-texture {
  display: none;
}

.elma-page .site-header {
  background: rgba(255, 255, 255, 0.94);
  border-color: var(--elma-line);
}

.elma-board {
  overflow: clip;
}

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

.elma-board figure,
.elma-board section,
.elma-board header,
.elma-board h1,
.elma-board h2,
.elma-board h3,
.elma-board p {
  margin: 0;
}

.elma-board img,
.elma-board video {
  display: block;
  width: 100%;
  max-width: 100%;
}

.elma-board img {
  height: auto;
}

.elma-board__hero {
  width: 100%;
  max-width: none;
  margin: 0;
  background: #e9e4da;
}

.elma-board__hero img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.elma-board__inner {
  width: min(94vw, 1680px);
  margin-inline: auto;
  padding: clamp(22px, 2.3vw, 38px) 0 clamp(36px, 3.6vw, 58px);
}

.elma-opening {
  display: grid;
  gap: clamp(7px, 0.65vw, 11px);
  padding-bottom: clamp(36px, 3.4vw, 54px);
}

.elma-opening h1,
.elma-section-title,
.elma-section-heading,
.elma-feature-copy h3,
.elma-caption,
.elma-gallery__caption {
  font-family: var(--font-mono);
  font-weight: 500;
  text-transform: uppercase;
}

.elma-opening h1 {
  max-width: none;
  font-size: clamp(1.55rem, 2.2vw, 2.55rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.elma-opening p,
.elma-section-copy,
.elma-feature-copy p {
  color: var(--elma-muted);
  font-family: var(--font-mono);
  font-size: clamp(0.71rem, 0.82vw, 0.84rem);
  line-height: 1.48;
}

.elma-opening p {
  width: 100%;
  max-width: none;
}

.elma-section-title {
  font-size: clamp(1.15rem, 1.65vw, 1.8rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
}

.elma-section-heading,
.elma-feature-copy h3 {
  font-size: clamp(0.86rem, 1.08vw, 1.15rem);
  line-height: 1.2;
  letter-spacing: -0.012em;
}

.concrete-fatigue-page .elma-project-body-text {
  color: var(--elma-muted) !important;
  opacity: 1 !important;
  background: none !important;
  background-image: none !important;
  -webkit-text-fill-color: currentColor !important;
  filter: none !important;
  mix-blend-mode: normal !important;
  text-align: justify;
  text-align-last: left;
  text-decoration: none;
  text-shadow: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
  -webkit-hyphens: none;
  -ms-hyphens: none;
  hyphens: none;
  word-break: normal;
  overflow-wrap: normal;
  white-space: normal;
  text-wrap: pretty;
  animation: none !important;
  transform: none !important;
  transition: none !important;
}

.concrete-fatigue-page .elma-project-body-text *,
.concrete-fatigue-page .elma-project-body-text:hover,
.concrete-fatigue-page .elma-project-body-text:focus,
.concrete-fatigue-page .elma-project-body-text:focus-within,
.concrete-fatigue-page .elma-project-body-text.is-pointer-active,
.concrete-fatigue-page .elma-project-body-text.is-pointer-tapped,
.concrete-fatigue-page .elma-project-body-text.is-reading-active {
  color: inherit !important;
  opacity: 1 !important;
  background: none !important;
  background-image: none !important;
  -webkit-text-fill-color: currentColor !important;
  filter: none !important;
  mix-blend-mode: normal !important;
  text-shadow: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
  animation: none !important;
  transform: none !important;
  transition: none !important;
}

.concrete-fatigue-page .elma-project-body-text::before,
.concrete-fatigue-page .elma-project-body-text::after,
.concrete-fatigue-page .elma-project-body-text *::before,
.concrete-fatigue-page .elma-project-body-text *::after {
  display: none !important;
  content: none !important;
}

.concrete-fatigue-page .elma-project-body-text .reading-visual,
.concrete-fatigue-page .elma-project-body-text .reading-word {
  color: inherit !important;
  opacity: 1 !important;
  filter: none !important;
  transform: none !important;
  text-shadow: none !important;
}

.elma-accent {
  color: var(--elma-accent);
}

.elma-challenge {
  display: grid;
  grid-template-areas:
    "copy rain"
    "analysis rain";
  grid-template-columns: minmax(0, 1.06fr) minmax(320px, 0.94fr);
  column-gap: clamp(14px, 1.4vw, 24px);
  row-gap: clamp(10px, 0.9vw, 15px);
  align-items: start;
  padding-bottom: clamp(32px, 3.6vw, 54px);
}

.elma-challenge__copy {
  grid-area: copy;
  width: 100%;
}

.elma-challenge__heading {
  display: grid;
  gap: 6px;
}

.elma-challenge__copy > .elma-project-body-text {
  margin-top: clamp(10px, 0.9vw, 15px);
}

.elma-challenge__analysis {
  grid-area: analysis;
}

.elma-challenge__rain {
  grid-area: rain;
}

.elma-challenge__analysis,
.elma-challenge__rain {
  min-width: 0;
}

.elma-challenge__analysis img,
.elma-challenge__rain img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.elma-reality {
  padding-bottom: clamp(34px, 3.8vw, 58px);
}

.elma-reality figure img,
.elma-response figure img,
.elma-site-plan figure img {
  object-fit: contain;
}

.elma-reality__copy {
  display: grid;
  gap: 4px;
  margin-top: clamp(8px, 0.8vw, 12px);
}

.elma-reality__question {
  color: var(--elma-muted);
  font-family: var(--font-mono);
  font-size: clamp(0.68rem, 0.86vw, 0.9rem);
  line-height: 1.35;
  text-transform: uppercase;
}

.elma-response {
  padding-bottom: clamp(34px, 3.8vw, 58px);
}

.elma-response__intro {
  display: grid;
  gap: 4px;
  margin-bottom: clamp(12px, 1.2vw, 18px);
}

.elma-response__heading {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 0.55em;
}

.elma-response__heading .elma-section-title {
  font-size: clamp(1.05rem, 1.45vw, 1.55rem);
  white-space: nowrap;
}

.elma-response__prototype {
  font-family: var(--font-mono);
  font-size: clamp(0.65rem, 0.8vw, 0.82rem);
  text-transform: uppercase;
}

.elma-response__copy {
  margin: 0;
}

.elma-transformation {
  padding-bottom: clamp(28px, 3vw, 46px);
}

.elma-transformation > .elma-section-title {
  margin-bottom: clamp(10px, 1vw, 15px);
}

.elma-transformation__grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.36fr) minmax(0, 0.64fr);
  gap: clamp(24px, 3vw, 48px);
  align-items: start;
}

.elma-transformation__grid figure {
  width: min(100%, 360px);
  justify-self: start;
}

.elma-transformation__grid > .elma-feature-copy {
  width: 100%;
  max-width: 74ch;
  margin-top: clamp(48px, 4.4vw, 76px);
}

.elma-transformation__grid .elma-feature-copy h3 {
  max-width: 32ch;
  font-size: clamp(0.95rem, 1.1vw, 1.2rem);
  line-height: 1.12;
}

.elma-transformation__title-prefix {
  display: block;
  margin-bottom: 0.12em;
}

.elma-transformation__title-line {
  display: block;
}

.elma-feature-copy {
  display: grid;
  gap: 8px;
}

.elma-feature-copy h3 {
  max-width: none;
  font-size: clamp(1.05rem, 1.4vw, 1.55rem);
}

.elma-site-plan {
  padding-bottom: clamp(34px, 4vw, 62px);
}

.elma-caption,
.elma-gallery__caption {
  margin-top: 6px;
  color: var(--elma-ink);
  font-size: clamp(0.62rem, 0.68vw, 0.7rem);
  line-height: 1.3;
  letter-spacing: 0.015em;
}

.elma-pair {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(0, 1.02fr);
  gap: clamp(18px, 2vw, 30px);
  align-items: start;
  padding-bottom: clamp(36px, 4.2vw, 64px);
}

.elma-feature {
  min-width: 0;
}

.elma-feature .elma-feature-copy {
  margin-top: 8px;
}

.elma-feature .elma-feature-copy h3 {
  max-width: none;
  font-size: clamp(0.78rem, 0.9vw, 0.94rem);
}

.elma-gallery {
  min-width: 0;
}

.elma-page .shila-gallery {
  --gallery-position: 0;
  --gallery-drag: 0px;
  position: relative;
  min-width: 0;
  outline: none;
}

.elma-page .shila-gallery__viewport {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--elma-line);
  background: #fff;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}

.elma-page .shila-gallery.is-dragging .shila-gallery__viewport {
  cursor: grabbing;
}

.elma-page .shila-gallery:focus-visible .shila-gallery__viewport {
  outline: 2px solid var(--elma-accent);
  outline-offset: 3px;
}

.elma-page .shila-gallery__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  width: 100%;
  transform: translate3d(calc(var(--gallery-position) * -100% + var(--gallery-drag)), 0, 0);
  transition: transform 220ms cubic-bezier(0.22, 0.7, 0.25, 1);
  will-change: transform;
}

.elma-page .shila-gallery.is-dragging .shila-gallery__track,
.elma-page .shila-gallery.is-jump .shila-gallery__track {
  transition: none;
}

.elma-page .shila-gallery__slide {
  display: grid;
  width: 100%;
  aspect-ratio: 1689 / 973;
  place-items: center;
  background: #fff;
}

.elma-page .shila-gallery--details .shila-gallery__slide {
  aspect-ratio: 1689 / 921;
}

.elma-page .shila-gallery__slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.elma-page .shila-gallery__slide[data-gallery-clone] {
  pointer-events: none;
}

.elma-gallery__meta {
  display: flex;
  min-height: 36px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--elma-line);
}

.elma-gallery__caption {
  margin: 0;
}

.elma-gallery__interaction {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
}

.elma-gallery__hint {
  color: var(--elma-muted);
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.elma-page .shila-gallery__controls {
  display: flex;
  align-items: center;
  gap: 2px;
}

.elma-page .shila-gallery__controls button {
  appearance: none;
  display: grid;
  width: 30px;
  height: 30px;
  padding: 0;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--elma-ink);
  font: 400 0.82rem/1 var(--font-mono);
  cursor: pointer;
}

.elma-page .shila-gallery__controls button:hover {
  color: var(--elma-accent);
}

.elma-page .shila-gallery__controls button:focus-visible {
  outline: 1px solid var(--elma-accent);
  outline-offset: -4px;
}

.elma-page .shila-gallery__controls > span {
  min-width: 48px;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  text-align: center;
}

.elma-page .shila-gallery__progress {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 35px;
  left: 0;
  height: 2px;
  background: var(--elma-accent);
  transform: scaleX(0.25);
  transform-origin: left center;
  transition: transform 180ms ease;
}

.elma-board .elma-video {
  width: min(92vw, 1180px, 120.89vh);
  max-width: calc(100% - 28px);
  margin: clamp(28px, 4vw, 56px) auto 0;
  background: #fff;
  box-shadow: none;
}

.elma-video__player,
.elma-video__stage {
  position: relative;
  width: 100%;
  background: #fff;
  box-shadow: none;
}

.elma-video__stage {
  line-height: 0;
}

.elma-video video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 68vh;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #fff;
  box-shadow: none;
  -webkit-touch-callout: none;
  touch-action: pan-y;
}

.elma-video video::-webkit-media-controls {
  display: none !important;
  -webkit-appearance: none;
}

.elma-video video::-webkit-media-controls-enclosure {
  display: none !important;
  -webkit-appearance: none;
}

.elma-video video::-webkit-media-controls-panel {
  display: none !important;
  -webkit-appearance: none;
}

.elma-video video::-webkit-media-controls-overlay-play-button {
  display: none !important;
  -webkit-appearance: none;
}

.elma-video video::-webkit-media-controls-fullscreen-button {
  display: none !important;
  -webkit-appearance: none;
}

.elma-video video::-webkit-media-controls-overflow-button {
  display: none !important;
  -webkit-appearance: none;
}

.elma-video video::-webkit-media-controls-download-button {
  display: none !important;
  -webkit-appearance: none;
}

.elma-video video::-webkit-media-controls-picture-in-picture-button {
  display: none !important;
  -webkit-appearance: none;
}

.elma-video__poster-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(17, 17, 17, 0.72);
  border-radius: 0;
  color: var(--elma-ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: none;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transform: translate(-50%, -50%);
  cursor: pointer;
}

.elma-video__player.is-started .elma-video__poster-play {
  display: none;
}

.elma-video__controls {
  display: grid;
  grid-template-columns: auto auto minmax(120px, 1fr) auto 88px;
  gap: clamp(8px, 1.2vw, 18px);
  align-items: center;
  min-height: 42px;
  padding: 7px 0;
  border-top: 1px solid rgba(17, 17, 17, 0.24);
  border-bottom: 1px solid rgba(17, 17, 17, 0.24);
  color: var(--elma-ink);
  background: #fff;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  line-height: 1;
  letter-spacing: 0.02em;
}

.elma-video__controls button {
  min-height: 28px;
  padding: 4px 0;
  border: 0;
  border-radius: 0;
  color: inherit;
  background: transparent;
  box-shadow: none;
  font: inherit;
  white-space: nowrap;
  cursor: pointer;
}

.elma-video__controls button:hover {
  color: var(--elma-accent);
}

.elma-video__controls button:focus-visible,
.elma-video__controls input:focus-visible,
.elma-video__poster-play:focus-visible,
.elma-video video:focus-visible {
  outline: 2px solid var(--elma-accent);
  outline-offset: 3px;
}

.elma-video__time {
  min-width: 82px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.elma-video__seek,
.elma-video__volume input {
  width: 100%;
  height: 20px;
  margin: 0;
  padding: 0;
  accent-color: var(--elma-accent);
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.elma-video__seek {
  min-width: 0;
}

.elma-video__volume {
  display: flex;
  width: 88px;
  align-items: center;
}

.elma-video__seek::-webkit-slider-runnable-track,
.elma-video__volume input::-webkit-slider-runnable-track {
  height: 2px;
  border: 0;
  background: linear-gradient(to right, var(--elma-accent) 0 var(--elma-range-progress, 0%), rgba(17, 17, 17, 0.28) var(--elma-range-progress, 0%) 100%);
}

.elma-video__seek::-webkit-slider-thumb,
.elma-video__volume input::-webkit-slider-thumb {
  width: 10px;
  height: 10px;
  margin-top: -4px;
  border: 1px solid var(--elma-ink);
  border-radius: 50%;
  background: #fff;
  box-shadow: none;
  -webkit-appearance: none;
}

.elma-video__seek::-moz-range-track,
.elma-video__volume input::-moz-range-track {
  height: 2px;
  border: 0;
  background: rgba(17, 17, 17, 0.28);
}

.elma-video__seek::-moz-range-progress,
.elma-video__volume input::-moz-range-progress {
  height: 2px;
  background: var(--elma-accent);
}

.elma-video__seek::-moz-range-thumb,
.elma-video__volume input::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border: 1px solid var(--elma-ink);
  border-radius: 50%;
  background: #fff;
  box-shadow: none;
}

.elma-video figcaption {
  width: 100%;
  margin: 0 auto;
  padding: 7px 0 12px;
  color: var(--elma-muted);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
}

.elma-board .project-navigation {
  margin-top: clamp(34px, 4vw, 62px);
}

.motion-ready .elma-page.shila-motion [data-shila-reveal].shila-reveal-ready {
  opacity: 0;
  transform: translate3d(0, 12px, 0);
  transition: opacity 520ms ease var(--shila-reveal-delay, 0ms), transform 640ms cubic-bezier(0.2, 0.65, 0.25, 1) var(--shila-reveal-delay, 0ms);
}

.motion-ready .elma-page.shila-motion [data-shila-reveal].shila-reveal-ready[data-shila-reveal-kind="mask"] {
  clip-path: inset(0 0 100% 0);
  opacity: 1;
  transform: none;
  transition: clip-path 760ms cubic-bezier(0.2, 0.65, 0.25, 1) var(--shila-reveal-delay, 0ms);
}

.motion-ready .elma-page.shila-motion [data-shila-reveal].shila-reveal-ready.is-visible {
  clip-path: inset(0 0 0 0);
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Project images cannot be left invisible by an optional reveal observer. */
.motion-ready .elma-page.shila-motion figure[data-shila-reveal].shila-reveal-ready,
.motion-ready .elma-page.shila-motion figure[data-shila-reveal].shila-reveal-ready.is-visible {
  opacity: 1 !important;
  visibility: visible !important;
  clip-path: none !important;
  transform: none !important;
}

@media (max-width: 980px) {
  .elma-board__inner {
    width: min(92vw, 880px);
  }

  .elma-pair {
    grid-template-columns: 1fr;
  }

  .elma-challenge {
    grid-template-areas:
      "copy"
      "rain"
      "analysis";
    grid-template-columns: 1fr;
    row-gap: 16px;
  }

  .elma-response__heading {
    flex-wrap: wrap;
  }

  .elma-response__heading .elma-section-title {
    white-space: normal;
  }

  .elma-pair {
    gap: 20px;
  }

  .elma-pair--social > .elma-gallery {
    order: 1;
  }

  .elma-pair--social > .elma-feature {
    order: 2;
  }

  .elma-gallery {
    width: 100%;
  }
}

@media (max-width: 720px), (max-width: 900px) and (max-height: 520px) {
  .elma-transformation__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .elma-transformation__grid figure {
    width: min(100%, 390px);
    justify-self: start;
  }

  .elma-transformation__grid > .elma-feature-copy {
    max-width: none;
    margin-top: 0;
  }
}

@media (max-width: 600px) {
  .elma-board__hero {
    width: 100%;
  }

  .elma-board__inner {
    width: calc(100% - 28px);
  }

  .elma-response__heading {
    display: grid;
    gap: 7px;
  }

  .elma-response__heading .elma-section-title {
    white-space: normal;
  }

  .elma-transformation__grid figure {
    width: 100%;
  }

  .elma-gallery__meta {
    min-height: 58px;
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    padding: 5px 0;
  }

  .elma-gallery__interaction {
    width: 100%;
    justify-content: space-between;
  }

  .elma-page .shila-gallery__progress {
    bottom: 57px;
  }

  .elma-board .elma-video {
    width: calc(100% - 28px);
    max-width: none;
  }

  .elma-video__controls {
    grid-template-areas:
      "play time"
      "seek seek"
      "mute volume";
    grid-template-columns: auto 1fr;
    gap: 4px 12px;
    padding: 7px 0 9px;
  }

  .elma-video__controls [data-elma-play] {
    grid-area: play;
    justify-self: start;
  }

  .elma-video__time {
    grid-area: time;
    justify-self: center;
  }

  .elma-video__seek {
    grid-area: seek;
  }

  .elma-video__controls [data-elma-mute] {
    grid-area: mute;
    justify-self: start;
  }

  .elma-video__volume {
    grid-area: volume;
    width: 100%;
  }

}

@media (max-width: 480px) {
  .elma-transformation .elma-project-body-text {
    text-align: justify;
    text-align-last: left;
    hyphens: none;
  }
}

@media (max-width: 900px) and (max-height: 520px) {
  .elma-video__controls {
    grid-template-areas:
      "play time"
      "seek seek"
      "mute volume";
    grid-template-columns: auto 1fr;
    gap: 4px 12px;
    padding: 7px 0 9px;
  }

  .elma-video__controls [data-elma-play] {
    grid-area: play;
    justify-self: start;
  }

  .elma-video__time {
    grid-area: time;
    justify-self: center;
  }

  .elma-video__seek {
    grid-area: seek;
  }

  .elma-video__controls [data-elma-mute] {
    grid-area: mute;
    justify-self: start;
  }

  .elma-video__volume {
    grid-area: volume;
    width: 100%;
  }

}

@media (prefers-reduced-motion: reduce) {
  .motion-ready .elma-page.shila-motion [data-shila-reveal].shila-reveal-ready,
  .motion-ready .elma-page.shila-motion [data-shila-reveal].shila-reveal-ready.is-visible {
    clip-path: none;
    opacity: 1;
    transform: none;
    transition: none;
  }

  .elma-page .shila-gallery__track,
  .elma-page .shila-gallery__progress {
    transition: none;
  }
}
