/* --- Canela --- */
@font-face {
  font-family: "Canela";
  src: url("../../assets/fonts/canela/CanelaLight.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Canela";
  src: url("../../assets/fonts/canela/CanelaRegular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Canela Condensed";
  src: url("../../assets/fonts/canela/CanelaCondensedLight.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Canela Condensed";
  src: url("../../assets/fonts/canela/CanelaCondensedRegular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Canela Text";
  src: url("../../assets/fonts/canela/CanelaTextLight.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Canela Text";
  src: url("../../assets/fonts/canela/CanelaTextRegular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* --- Calluna --- */
@font-face {
  font-family: "Calluna";
  src: url("../../assets/fonts/calluna/CallunaLight.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Calluna";
  src: url("../../assets/fonts/calluna/CallunaRegular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Calluna";
  src: url("../../assets/fonts/calluna/CallunaSemiBold.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Calluna";
  src: url("../../assets/fonts/calluna/CallunaBold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Calluna";
  src: url("../../assets/fonts/calluna/CallunaExtraBold.otf") format("opentype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-background: #ffffff;
  --color-foreground: #0a0a0a;
  --logo-easing: cubic-bezier(0.16, 1, 0.3, 1);
  --reveal-easing: cubic-bezier(0.22, 1, 0.36, 1);
  --logo-lockup-width: min(30vw, 380px);
  --header-logo-width: 132px;
  --header-padding-x: clamp(1.25rem, 3vw, 2.5rem);
  --header-padding-y: clamp(1.1rem, 2.2vw, 1.75rem);
  --hero-padding-x: clamp(1.5rem, 3vw, 3rem);
  --hero-padding-top: clamp(6rem, 10vw, 8rem);
  --hero-display-size: clamp(4.5rem, 11vw, 10rem);
  --hero-body-size: clamp(0.95rem, 1.55vw, 1.2rem);
  --hero-copy-width: min(31rem, 35vw);
  --wordmark-size: 20vh;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  overflow-x: hidden;
  overflow-y: hidden;
  background: var(--color-background);
  color: var(--color-foreground);
  font-family: "Calluna", Georgia, serif;
  font-weight: 400;
}

body.is-scroll-ready {
  overflow-y: auto;
}

img {
  display: block;
}

.intro-page {
  min-height: 100vh;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: var(--header-padding-y) var(--header-padding-x);
  pointer-events: none;
}

.site-header-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--header-logo-width);
  aspect-ratio: 810 / 485;
  opacity: 0;
  transform-origin: center center;
  will-change: transform, opacity;
}

.site-header-brand-lockup {
  position: relative;
  width: 100%;
  height: 100%;
}

.site-header-brand-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  transition: filter 400ms ease;
}

.site-header.is-inverted .site-header-brand-layer {
  filter: invert(1);
}

.hero-projects-scene {
  position: relative;
  height: 1244vh;
}

.hero-projects-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.landing-hero {
  position: absolute;
  inset: 0;
  min-height: 100vh;
  padding: var(--hero-padding-top) var(--hero-padding-x) 2.5rem;
  opacity: 0;
  transition: opacity 520ms ease;
  background: var(--color-background);
  z-index: 1;
}

.landing-hero-grid {
  position: relative;
  width: min(100%, 92rem);
  height: min(76vh, 54rem);
  margin: clamp(1rem, 3vh, 2rem) auto 0;
  overflow: visible;
}

.landing-hero-title,
.landing-hero-anchor {
  margin: 0;
  font-family: "Canela", Georgia, serif;
  font-size: var(--hero-display-size);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.landing-hero-image {
  position: absolute;
  margin: 0;
  overflow: visible;
}

.landing-hero-reveal {
  display: block;
}

.landing-hero-image .landing-hero-reveal {
  overflow: hidden;
  border-radius: 1.25rem;
  box-shadow: 0 22px 60px rgba(10, 10, 10, 0.08);
}

.landing-hero-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.landing-hero-image-yard {
  left: 10%;
  top: 80%;
  width: min(32.4rem, 34.8vw);
  aspect-ratio: 2000 / 1331;
}

.landing-hero-image-warehouse {
  right: 5.5%;
  top: 3%;
  width: min(20.4rem, 21.6vw);
  aspect-ratio: 1536 / 2000;
}

.landing-hero-title {
  position: absolute;
  top: 39%;
  left: 15%;
  transform: translateY(-50%);
  --reveal-base-transform: translateY(-50%);
  max-width: 7ch;
}

.landing-hero-copy {
  max-width: min(24rem, 26vw);
  font-size: var(--hero-body-size);
  line-height: 1.55;
}

.landing-hero-copy p {
  margin: 0;
}

.landing-hero-copy p + p {
  margin-top: 1rem;
}

.landing-hero-copy-top {
  position: absolute;
  top: 39%;
  left: 40%;
  transform: translateY(-50%);
  --reveal-base-transform: translateY(-50%);
}


.landing-hero-copy-bottom {
  position: absolute;
  left: 30%;
  bottom: 25%;
  max-width: min(22rem, 22vw);
  text-align: right;
}

.landing-hero-anchor {
  position: absolute;
  right: 15%;
  bottom: 25%;
}

[data-scroll-reveal] {
  opacity: 0;
  will-change: transform, opacity, filter, clip-path;
}

[data-scroll-reveal][data-reveal-kind="text"] {
  transform: translate3d(0, 2.2rem, 0);
  filter: blur(10px);
  transition:
          opacity 900ms var(--reveal-easing),
          transform 900ms var(--reveal-easing),
          filter 900ms var(--reveal-easing);
}

[data-scroll-reveal][data-reveal-kind="image"] {
  transform: translate3d(0, 3.25rem, 0) scale(0.965);
  filter: blur(14px);
  clip-path: inset(8% 0 0 0 round 1.25rem);
  transition:
          opacity 1200ms var(--reveal-easing),
          transform 1200ms var(--reveal-easing),
          filter 1200ms var(--reveal-easing),
          clip-path 1200ms var(--reveal-easing);
}

[data-scroll-reveal][data-reveal-kind="image"][data-reveal-direction="left"] {
  transform: translate3d(-3.75rem, 0, 0) scale(0.965);
  clip-path: inset(0 0 0 8% round 1.25rem);
}


[data-scroll-reveal][data-reveal-kind="image"][data-reveal-direction="up"] {
  transform: translate3d(0, 3.75rem, 0) scale(0.965);
  clip-path: inset(8% 0 0 0 round 1.25rem);
}

.landing-hero.is-active [data-scroll-reveal].is-visible {
  opacity: 1;
}

.landing-hero.is-active [data-scroll-reveal][data-reveal-kind="text"].is-visible {
  transform: translate3d(0, 0, 0);
  filter: blur(0);
}

.landing-hero.is-active [data-scroll-reveal][data-reveal-kind="image"].is-visible {
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
  clip-path: inset(0 0 0 0 round 1.25rem);
}

.intro-stage {
  position: fixed;
  inset: 0;
  z-index: 10;
}

.logo-lockup,
.wordmark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.logo-lockup {
  width: var(--logo-lockup-width);
  aspect-ratio: 810 / 485;
  transform-origin: center center;
  will-change: transform, opacity;
}

.logo-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-layer-monogram-top {
  clip-path: inset(0 0 100% 0);
}

.logo-layer-monogram-bottom {
  clip-path: inset(100% 0 0 0);
}

.logo-layer-script-left {
  clip-path: inset(0 100% 0 0);
}

.logo-layer-script-right {
  clip-path: inset(0 0 0 100%);
}

.wordmark {
  margin: 0;
  font-family: "Canela", Georgia, serif;
  font-size: var(--wordmark-size);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
  will-change: transform, opacity;
}

.wordmark-sizer {
  visibility: hidden;
}

.wordmark-half {
  position: absolute;
  top: 0;
  left: 0;
  white-space: nowrap;
  will-change: clip-path;
}

.wordmark-half-left,
.wordmark-half-right {
  clip-path: inset(0 100% 0 0);
}

.wordmark-half-right {
  clip-path: inset(0 0 0 100%);
}

.intro-stage.is-handoff-complete {
  pointer-events: none;
}

.intro-stage.is-handoff-complete .logo-lockup,
.intro-stage.is-handoff-complete .wordmark {
  opacity: 0;
}

.landing-hero.is-active {
  opacity: 1;
}

.projects-parallax,
.projects-parallax-viewport {
  position: absolute;
  inset: 0;
  pointer-events: none;
}


.projects-parallax {
  z-index: 3;
  pointer-events: none;
  opacity: 1;
}

.projects-parallax-followup {
  z-index: 5;
  pointer-events: auto;
}

.services-overlap,
.services-overlap-panel {
  position: absolute;
  inset: 0;
}

.services-overlap {
  z-index: 4;
  pointer-events: none;
}

.services-overlap-panel {
  background: rgba(255, 255, 255, 1);
  opacity: var(--services-panel-opacity, 0);
  transform: translate3d(0, var(--services-panel-shift, 106vh), 0);
  filter: blur(var(--services-panel-blur, 8px));
  will-change: transform, opacity, filter;
}

.services-overlap-shell {
  position: relative;
  width: min(100%, 92rem);
  margin: 0 auto;
  padding: clamp(8rem, 10vh, 12rem) var(--hero-padding-x) 4rem;
}

.services-overlap-header {
  opacity: var(--services-copy-opacity, 0);
  transform: translate3d(0, var(--services-copy-shift, 2.5rem), 0);
  filter: blur(var(--services-copy-blur, 10px));
  will-change: transform, opacity, filter;
  top: ;
}

.services-overlap-title {
  margin: 5% 0% 0% 0%;
  font-family: "Canela", Georgia, serif;
  font-size: clamp(5rem, 12vw, 9rem);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.services-overlap-body {
  position: static;
  margin-top: clamp(3rem, 5vh, 5rem);
}

.services-overlap-text {
  max-width: 45%;
  opacity: var(--services-intro-opacity, 0);
  transform: translate3d(0, var(--services-intro-shift, 3.5rem), 0);
  filter: blur(var(--services-intro-blur, 14px));
  will-change: transform, opacity, filter;
}

.services-overlap-subtext {
  margin: 0;
  font-family: "Calluna", Georgia, serif;
  font-size: clamp(1.1rem, 1.3vw, 1.5rem);
  line-height: 1.55;
  color: #23201d;
}

.services-overlap-spec {
  margin: 1rem 0 0;
  font-family: "Calluna", Georgia, serif;
  font-size: clamp(1rem, 1.1vw, 1.3rem);
  line-height: 1.6;
  color: rgba(35, 32, 29, 0.6);
}

.services-overlap-mandates {
  margin: 2.5rem 0 0;
  max-width: 28rem;
  opacity: var(--services-list-opacity, 0);
  transform: translate3d(0, var(--services-list-shift, 3rem), 0);
  will-change: transform, opacity;
}

.services-overlap-mandates p {
  margin: 0;
  padding: 0.5rem 0;
  font-family: "Calluna", sans-serif;
  font-size: clamp(0.85rem, 0.9vw, 1rem);
  line-height: 1.5;
  color: rgba(35, 32, 29, 0.5);
}

.services-overlap-img-bottom {
  position: absolute;
  left: 6%;
  bottom: 0;
  width: 37%;
  height: 45%;
  margin: 0;
  opacity: 0;
  transform: translate3d(0, 0, 0);
  will-change: transform, opacity;
  pointer-events: none;
  overflow: hidden;
  border-radius: 3rem 3rem 0rem 0rem;
}

.services-overlap-img-bottom img {
  width: calc(100% + 20px);
  height: calc(100% + 20px);
  margin: -10px;
  object-fit: cover;
  display: block;
}

.services-overlap-img-side {
  position: absolute;
  right: 0;
  top: 12%;
  bottom: 0;
  width: 52%;
  margin: 0;
  opacity: 0;
  transform: translate3d(100%, 0, 0);
  will-change: transform, opacity, filter;
  pointer-events: none;
  overflow: hidden;
  border-radius: 3rem 0rem 0rem 0rem;
}

.services-overlap-img-side img {
  width: calc(100% + 20px);
  height: calc(100% + 20px);
  margin: -10px;
  object-fit: cover;
  display: block;
  z-index: 1;
}

.projects-parallax-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: var(--parallax-image-opacity, 0.15);
  transform:
          translate3d(0, var(--parallax-shift, 110vh), 0)
          scale(var(--parallax-scale, 1.08));
  transform-origin: center center;
  will-change: transform, opacity, filter;
  filter: blur(var(--parallax-blur, 8px));
  background: black;
}

.projects-parallax-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
          linear-gradient(180deg, rgba(10, 10, 10, 0.26) 0%, rgba(10, 10, 10, 0.06) 36%, rgba(10, 10, 10, 0.28) 100%);
  opacity: var(--parallax-overlay-opacity, 1);
  pointer-events: none;
  will-change: opacity;
}

.projects-parallax-media-solid img.work-canvas-bg {
  width: 16%;
  height: 19%;
  object-fit: cover;
}

.projects-parallax-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.projects-parallax-copy {
  position: absolute;
  left: 50%;
  top: 72%;
  bottom: auto;
  z-index: 2;
  width: min(48rem, calc(100% - 4rem));
  color: #23201d;
  text-align: center;
  pointer-events: auto;
  opacity: var(--parallax-copy-opacity, 0);
  transform:
          translateX(-50%) translateY(-50%)
          translate3d(0, var(--parallax-copy-shift, 2.75rem), 0)
          scale(var(--parallax-copy-scale, 0.985));
  filter: blur(var(--parallax-copy-blur, 12px));
  will-change: transform, opacity, filter;
  text-wrap: balance;
}

.projects-parallax-heading {
  margin: 0;
  font-family: "Canela", Georgia, serif;
  font-size: clamp(3.8rem, 6vw, 6.8rem);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: #ffffff;
  text-shadow: none;
}

.projects-parallax-heading-copy {
  position: absolute;
  bottom: clamp(10rem, 5vh, 4rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-size: clamp(5.5rem, 12vw, 4.6rem);
  text-align: center;
  width: max-content;
  color: #f5f5f5;
  pointer-events: none;
  opacity: var(--parallax-copy-opacity, 0);
  filter: blur(var(--parallax-copy-blur, 12px));
  will-change: opacity, filter;
}

.projects-parallax-subtext {
  width: min(50rem, 100%);
  margin: 1.4rem auto 0;
  font-size: clamp(1.4rem, 1vw, 1.1rem);
  font-style: italic;
  color: rgba(255, 255, 255, 0.5);
  text-shadow: none;
  font-family: "Calluna";
}

.projects-parallax-anchor {
  margin: 2.8rem auto 0;
  font-size: clamp(1rem, 0.8vw, 0.9rem);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  font-family: "Canela";
}

.projects-parallax-media-solid {
  background: #0a0a0a;
  overflow: hidden;
}

.projects-parallax-media-solid::after {
  display: none;
}

.projects-parallax-followup .projects-parallax-copy {
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  text-align: left;
  color: #f5f5f5;
  transform: none;
}

.projects-parallax-followup .projects-parallax-heading {
  color: #f5f5f5;
}

.projects-parallax-followup .projects-parallax-subtext {
  margin-left: 0;
  margin-right: auto;
  color: rgba(245, 245, 245, 0.7);
}

/* Followup canvas overrides handled by .work-canvas rules below */

.projects-parallax-followup .work-detail-title {
  color: #f5f5f5;
}

.projects-parallax-followup .work-detail-mandate {
  color: rgba(245, 245, 245, 0.45);
}

.projects-parallax-followup .work-detail-text {
  color: rgba(245, 245, 245, 0.75);
}

.projects-parallax-followup .work-detail-outcome {
  color: rgba(245, 245, 245, 0.55);
}

.projects-parallax-followup .work-detail-close {
  color: rgba(245, 245, 245, 0.5);
}

.projects-parallax-followup .work-detail-close:hover {
  color: #f5f5f5;
}

/* --- Work canvas (scattered layout) --- */

.work-canvas {
  position: relative;
  width: 100%;
  height: 100%;
  pointer-events: auto;
}

.work-canvas-item {
  position: absolute;
  display: flex;
  align-items: baseline;
  gap: 0.55em;
  border: none;
  background: none;
  cursor: pointer;
  color: #f5f5f5;
  padding: 0;
  white-space: nowrap;
  opacity: 0;
  pointer-events: auto;
  transform: scale(1);
  transition: transform 400ms cubic-bezier(0.22, 1, 0.36, 1);
}

.work-canvas-item:hover {
  transform: scaleX(1.08);
}


/* Dim siblings only when a specific item is hovered */
.work-canvas-item .work-canvas-title,
.work-canvas-item .work-canvas-num {
  transition: opacity 360ms ease;
}

.work-canvas:has(.work-canvas-item:hover) .work-canvas-item:not(:hover) .work-canvas-title,
.work-canvas:has(.work-canvas-item:hover) .work-canvas-item:not(:hover) .work-canvas-num {
  opacity: 0.25;
}

.work-canvas-num {
  font-family: "Canela Condensed";
  font-size: clamp(2rem, 1.2vw, 1.35rem);
  letter-spacing: 0.06em;
  color: rgba(245, 245, 245, 1);
  position: relative;
  top: 0em;
  font-weight: 300;
}

.work-canvas-title {
  font-family: "Canela";
  font-size: clamp(3rem, 8vw, 7.4rem);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1;
  color: #f5f5f5;
}


/* Scattered positions */
.work-canvas-item:nth-child(1) { left: 19%;  top: 17%; }
.work-canvas-item:nth-child(2) { right: 18%; top: 17%; }
.work-canvas-item:nth-child(3) { left: 24%;  top: 32%; }
.work-canvas-item:nth-child(4) { right: 23%;  top: 32%; }
.work-canvas-item:nth-child(5) { left: 33%;  top: 47%; }
.work-canvas-item:nth-child(6) { right: 53%; top: 62%; }
.work-canvas-item:nth-child(8) { left: 55%;  top: 62%; z-index: 1; }

/* Image behind Fashion text */
.work-canvas-bg {
  position: absolute;
  left: 64%;
  top: 65%;
  transform: translate(calc(-12% + -3.75rem), -42%) scale(0.965);
  width: clamp(280px, 24vw, 440px);
  height: auto;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  clip-path: inset(8% 0 0 8% round 1.25rem);
  border-radius: 1.25rem;
  will-change: transform, opacity, filter, clip-path;
  transition: opacity 360ms ease;
}

.work-canvas-footer {
  position: absolute;
  left: 50%;
  bottom: 8%;
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
  will-change: transform, opacity, clip-path;
}

.work-canvas-heading {
  margin: 0;
  font-family: "Canela", Georgia, serif;
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: #ffffff;
}

.work-canvas-subtext {
  margin: 0.6rem auto 0;
  font-family: "Calluna";
  font-weight: 400;
  font-size: clamp(1rem, 0.9vw, 1.1rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.6);
  max-width: 28rem;
}

/* --- Work detail --- */

.work-detail {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 5vh clamp(2rem, 5vw, 6rem);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, 1.5rem, 0);
  transition:
          opacity 420ms ease,
          transform 420ms ease;
}

.work-detail.is-active {
  opacity: var(--scroll-opacity, 1);
  filter: blur(var(--scroll-blur, 0px));
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
}

.work-detail-inner {
  max-width: 60rem;
}

.work-detail-title {
  margin: 0;
  font-family: "Canela", Georgia, serif;
  font-size: clamp(2.8rem, 5.5vw, 4.8rem);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: #f5f5f5;
  white-space: nowrap;
}

.work-detail-meta {
  margin: 1rem 0 0;
  font-family: "Calluna", Georgia, serif;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: rgba(245, 245, 245, 0.5);
}

.work-detail-mandate {
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(245, 245, 245, 0.4);
}

.work-detail-text {
  margin: 1.5rem 0 0;
  font-size: clamp(0.95rem, 1.05vw, 1.1rem);
  line-height: 1.6;
  color: rgba(245, 245, 245, 0.75);
}

.work-detail-text + .work-detail-text {
  margin-top: 1rem;
}

.work-detail-outcome {
  margin: 1.5rem 0 0;
  font-size: clamp(0.95rem, 1.1vw, 1.15rem);
  line-height: 1.6;
  font-style: italic;
  color: rgba(245, 245, 245, 0.5);
}

.work-detail-close {
  margin-top: 2rem;
  padding: 0;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  color: rgba(245, 245, 245, 0.5);
  cursor: pointer;
  text-align: center;
  transition: color 200ms ease;
}

.work-detail-close:hover {
  color: #23201d;
}

.work-canvas.is-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms ease;
}

.site-header.is-active {
  pointer-events: auto;
}

.site-header.is-active .site-header-brand {
  opacity: 1;
}

/* --- Site footer --- */

.site-footer {
  position: absolute;
  inset: 0;
  z-index: 6;
  overflow: hidden;
  pointer-events: none;
}

.site-footer-media {
  position: absolute;
  inset: 0;
  transform: translate3d(0, var(--footer-shift, 100vh), 0) scale(var(--footer-scale, 1.14));
  opacity: var(--footer-image-opacity, 0);
  filter: blur(var(--footer-blur, 8px));
  will-change: transform, opacity, filter;
}

.site-footer-media::after {
  display: none;
}

.site-footer-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.site-footer-title {
  position: absolute;
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%) translateY(var(--footer-copy-shift, 2.75rem));
  margin: 0;
  font-family: "Canela", Georgia, serif;
  font-weight: 300;
  font-size: clamp(6rem, 17vw, 24rem);
  line-height: 0.85;
  letter-spacing: -0.03em;
  white-space: nowrap;
  color: #fff;
  mix-blend-mode: difference;
  z-index: 1;
  opacity: var(--footer-copy-opacity, 0);
  filter: blur(var(--footer-copy-blur, 12px));
  will-change: transform, opacity, filter;
}

.site-footer-content {
  position: absolute;
  top: 15%;
  left: 10%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  min-width: 30%;
  mix-blend-mode: difference;
  color: #fff;
}

.site-footer-details {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: 100%;
}

.site-footer-detail-name {
  margin: 0;
  font-family: "Canela", Georgia, serif;
  font-weight: 300;
  font-size: clamp(6.4rem, 2.2vw, 2rem);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.site-footer-detail-line {
  margin: 0;
  font-family: "Calluna", Georgia, serif;
  font-weight: 300;
  font-size: clamp(1.85rem, 1.1vw, 1.05rem);
  line-height: 1;
}

.site-footer-voice {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  /*! width: 100%; */
  margin-top: 10%;
  pointer-events: auto;
  cursor: pointer;
}

.site-footer-wave {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5.5rem;
  width: 100%;
}

.site-footer-wave-bar {
  display: block;
  flex: 1;
  min-width: 2px;
  max-width: 4px;
  border-radius: 1.5px;
  background: #fff;
  animation: footer-wave 1.2s ease-in-out infinite alternate;
}

@keyframes footer-wave {
  0%   { transform: scaleY(0.3); }
  50%  { transform: scaleY(1);   }
  100% { transform: scaleY(0.5); }
}

.site-footer-voice-label {
  margin: 0;
  font-family: "Canela", Georgia, serif;
  font-weight: 300;
  font-size: clamp(2.1rem, 1.6vw, 1.4rem);
  /*! letter-spacing: 0.08em; */
  /*! text-transform: lowercase; */
  text-align: center;
  /*! opacity: 1; */
}

/* --- Chatbot (full-page with white transition) --- */

.sg-chat {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: "Calluna", Georgia, serif;
  pointer-events: none;
  visibility: hidden;
}

/* White backdrop that fades in */
.sg-chat::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  transition: opacity 0.6s ease;
  z-index: 0;
}

.sg-chat.is-open {
  pointer-events: auto;
  visibility: visible;
}

.sg-chat.is-open::before {
  opacity: 1;
}

/* Chat content fades in slightly delayed */
.sg-chat-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(680px, 85%);
  max-height: 80vh;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease 0.25s, transform 0.5s ease 0.25s;
}

.sg-chat.is-open .sg-chat-body {
  opacity: 1;
  transform: translateY(0);
}

/* Close button — top right, black on white */
.sg-chat-close {
  position: absolute;
  top: 2rem;
  right: var(--header-padding-x, 2rem);
  z-index: 20;
  background: none;
  border: none;
  color: rgba(0, 0, 0, 0.35);
  font-size: 2.2rem;
  cursor: pointer;
  pointer-events: auto;
  line-height: 1;
  padding: 0.5rem;
  opacity: 0;
  transition: color 200ms ease, opacity 0.4s ease 0.4s;
}

.sg-chat.is-open .sg-chat-close {
  opacity: 1;
}

.sg-chat-close:hover {
  color: rgba(0, 0, 0, 0.8);
}

/* Header hidden — we use the big heading */
.sg-chat-header {
  display: none;
}

/* Heading — black on white */
.sg-chat-heading {
  font-family: "Canela", Georgia, serif;
  font-weight: 300;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  letter-spacing: -0.01em;
  color: #111;
  margin: 0 0 2.5rem;
  text-align: center;
}

/* Messages area */
.sg-chat-messages {
  width: 100%;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0 0.5rem 1.5rem;
  max-height: 50vh;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.1) transparent;
}

.sg-chat-msg p {
  margin: 0;
  font-size: clamp(0.9rem, 1.1vw, 1.05rem);
  line-height: 1.65;
}

.sg-chat-msg-ai {
  align-self: flex-start;
  max-width: 90%;
}

.sg-chat-msg-ai p {
  color: rgba(0, 0, 0, 0.65);
}

.sg-chat-msg-user {
  align-self: flex-end;
  background: rgba(0, 0, 0, 0.06);
  padding: 0.6rem 1rem;
  border-radius: 1rem 1rem 0.25rem 1rem;
  max-width: 75%;
}

.sg-chat-msg-user p {
  color: #111;
}

/* Typing dots */
.sg-chat-dots {
  display: flex;
  gap: 5px;
  padding: 0.4rem 0;
}

.sg-chat-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
  animation: sg-dot-pulse 1s ease-in-out infinite;
}

.sg-chat-dots span:nth-child(2) { animation-delay: 0.15s; }
.sg-chat-dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes sg-dot-pulse {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1); }
}

/* Input bar — dark on white */
.sg-chat-input-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0;
  margin-top: 0.5rem;
}

.sg-chat-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 0.75rem;
  padding: 0.85rem 1.1rem;
  color: #111;
  font-family: "Calluna", Georgia, serif;
  font-size: clamp(0.9rem, 1.1vw, 1.05rem);
  outline: none;
  transition: border-color 200ms ease;
}

.sg-chat-input::placeholder {
  color: rgba(0, 0, 0, 0.3);
}

.sg-chat-input:focus {
  border-color: rgba(0, 0, 0, 0.25);
}

.sg-chat-send {
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 0.75rem;
  color: rgba(0, 0, 0, 0.45);
  padding: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 200ms ease, border-color 200ms ease, background 200ms ease;
}

.sg-chat-send:hover {
  color: #111;
  border-color: rgba(0, 0, 0, 0.25);
  background: rgba(0, 0, 0, 0.07);
}

/* Email fallback form */
.sg-chat-email-form {
  width: 100%;
  padding: 1.5rem 0 0;
}

.sg-chat-email-prompt {
  margin: 0 0 1rem;
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  color: rgba(0, 0, 0, 0.5);
}

.sg-chat-email-fields {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.sg-chat-email-input {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 0.5rem;
  padding: 0.65rem 0.85rem;
  color: #111;
  font-family: "Calluna", Georgia, serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 200ms ease;
}

.sg-chat-email-input:focus {
  border-color: rgba(0, 0, 0, 0.25);
}

.sg-chat-email-input::placeholder {
  color: rgba(0, 0, 0, 0.3);
}

.sg-chat-email-textarea {
  min-height: 4rem;
  resize: vertical;
}

.sg-chat-email-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.35rem;
}

.sg-chat-email-cancel,
.sg-chat-email-send {
  flex: 1;
  padding: 0.6rem;
  border-radius: 0.5rem;
  font-family: "Calluna", Georgia, serif;
  font-size: 0.9rem;
  cursor: pointer;
  transition: opacity 200ms ease;
}

.sg-chat-email-cancel {
  background: none;
  border: 1px solid rgba(0, 0, 0, 0.12);
  color: rgba(0, 0, 0, 0.45);
}

.sg-chat-email-send {
  background: #111;
  border: 1px solid #111;
  color: #fff;
}

.sg-chat-email-cancel:hover,
.sg-chat-email-send:hover {
  opacity: 0.8;
}

/* Closing animation — reverse transitions */
.sg-chat.is-closing .sg-chat-body {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.sg-chat.is-closing::before {
  opacity: 0;
  transition: opacity 0.4s ease 0.2s;
}

.sg-chat.is-closing .sg-chat-close {
  opacity: 0;
  transition: opacity 0.2s ease;
}

@media (min-width: 901px) and (max-width: 1700px) {
  .landing-hero-grid {
    width: min(100%, 92rem);
    height: min(76vh, 54rem);
    margin: clamp(1rem, 3vh, 2rem) auto 0;
  }

  .landing-hero-title {
    left: 15%;
    top: 30%;
  }

  .landing-hero-copy {
    max-width: min(24rem, 26vw);
  }

  .landing-hero-copy-top {
    left: 40%;
    top: 30%;
  }

  .landing-hero-copy-bottom {
    left: 30%;
    bottom: 30%;
    max-width: min(22rem, 22vw);
  }

  .landing-hero-anchor {
    right: 15%;
    bottom: 30%;
  }

  .landing-hero-image-yard {
    left: 10%;
    top: 70%;
    width: min(27rem, 29vw);
  }

  .landing-hero-image-warehouse {
    right: 10%;
    top: 3%;
    width: min(17rem, 18vw);
  }

  .services-overlap-shell {
    width: min(100%, 78rem);
    padding: 12.5rem 2.5rem 3rem;
  }

  .services-overlap-title {
    font-size: clamp(5rem, 11vw, 10rem);
  }

  .projects-parallax-copy {
    position: absolute;
    left: 50%;
    bottom: 10%;
  }

  .projects-parallax-followup .projects-parallax-copy {
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
  }

  .work-canvas-title {
    font-size: clamp(3rem, 8vw, 6.2rem);
  }

  .services-overlap-mandates p {
    margin: 0;
    padding: 0.25rem 0;
    font-family: "Calluna", Georgia, serif;
    font-size: clamp(0.92rem, 2vw, 1.25rem);
    line-height: 1.45;
  }

  .projects-parallax-media-solid img.work-canvas-bg {
    width: 21%;
    height: 19%;
    object-fit: cover;
  }

  .services-overlap-title {
    margin: -3% 0% 0% 0%;
  }

}

@media (min-width: 901px) and (max-width: 1366px) {
  .services-overlap-shell {
    padding: 7rem 2.75rem 3rem;
  }

  .services-overlap-header {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 1.5rem;
  }

  .services-overlap-title {
    font-size: clamp(4.75rem, 11vw, 8rem);
  }
}

@media (hover: none) and (pointer: coarse) and (min-width: 901px) and (max-width: 1500px) {
  .services-overlap-shell {
    padding: 6.5rem 2.5rem 3rem;
  }

  .services-overlap-title {
    font-size: clamp(4.5rem, 10.2vw, 7.4rem);
  }
}

@media (max-width: 900px) {
  .hero-projects-scene {
    height: auto;
  }

  .hero-projects-stage {
    position: relative;
    height: auto;
    overflow: visible;
  }

  .landing-hero-grid {
    min-height: auto;
  }

  .landing-hero {
    position: relative;
    inset: auto;
    min-height: 100vh;
  }

  .landing-hero-title,
  .landing-hero-image,
  .landing-hero-copy-top,
  .landing-hero-copy-bottom,
  .landing-hero-anchor {
    position: static;
    transform: none;
    max-width: none;
  }

  .landing-hero-image {
    width: 100%;
    aspect-ratio: auto;
    margin-top: 1.5rem;
  }

  .landing-hero-image img {
    aspect-ratio: auto;
    max-height: 18rem;
  }

  .landing-hero-copy-top {
    margin-top: 1.5rem;
  }

  .landing-hero-copy-bottom {
    margin-top: 2rem;
  }

  .landing-hero-anchor {
    margin-top: 1rem;
  }

  .projects-parallax,
  .projects-parallax-viewport,
  .services-overlap,
  .services-overlap-panel {
    position: relative;
    inset: auto;
  }

  .projects-parallax {
    height: 100vh;
    opacity: 1;
    margin-top: 2rem;
  }

  .services-overlap {
    min-height: 100vh;
  }

  .services-overlap-panel {
    min-height: 100vh;
    transform: none;
    opacity: 1;
  }

  .services-overlap-shell {
    padding-top: 6.5rem;
    padding-bottom: 4rem;
  }

  .services-overlap-header {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .services-overlap-header,
  .services-overlap-text {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .services-overlap-body {
    grid-template-columns: 1fr;
  }

  .services-overlap-img-side {
    max-height: 20rem;
  }

  .projects-parallax-media {
    position: relative;
    min-height: 100vh;
    transform: none;
    clip-path: inset(0 0 0 0);
  }

  .projects-parallax-copy {
    top: clamp(9rem, 18vh, 12rem);
    bottom: auto;
    width: min(100% - 2rem, 32rem);
  }

  .projects-parallax-followup .projects-parallax-copy {
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    transform: none;
  }

  /* Stack canvas items vertically on mobile */
  .work-canvas-item {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    display: flex;
    margin: 1.5rem 0;
  }

  .work-canvas-title {
    font-size: clamp(1.8rem, 8vw, 2.8rem);
  }

  .work-canvas {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 6rem 1.5rem 2rem;
  }

  .projects-parallax-followup .projects-parallax-subtext {
    margin-left: auto;
  }

  .projects-parallax-heading {
    font-size: clamp(3rem, 11.5vw, 4.3rem);
  }

  .projects-parallax-subtext {
    margin-top: 0.65rem;
    font-size: 0.94rem;
    line-height: 1.46;
  }

  [data-scroll-reveal][data-reveal-kind="text"],
  [data-scroll-reveal][data-reveal-kind="image"] {
    transform: translate3d(0, 1.75rem, 0);
    filter: blur(0);
    clip-path: inset(0 0 0 0 round 1.25rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  body {
    overflow-y: auto;
  }

  [data-scroll-reveal] {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    clip-path: inset(0 0 0 0 round 1.25rem) !important;
  }

  .projects-parallax-media {
    transform: none !important;
    clip-path: inset(0 0 0 0) !important;
  }

  .projects-parallax-media::after {
    opacity: 1 !important;
  }

  .projects-parallax-copy {
    opacity: 1 !important;
    transform: translateX(-50%) !important;
    filter: none !important;
  }

  .projects-parallax-followup .projects-parallax-copy {
    transform: none !important;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
  }

  .services-overlap-header,
  .services-overlap-text,
  .services-overlap-mandates,
  .services-overlap-img-bottom,
  .services-overlap-img-side {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .site-footer {
    position: relative;
    inset: auto;
    height: 100vh;
  }

  .site-footer-media {
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
  }

  .site-footer-title {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

}
