/* ==========================================================
   BIM LABS STUDIO — OUR WORK
   Clean final CSS
   - No stacked overrides
   - Right-leaning archive header
   - No boxy header frame lines
   - Spacious gap after testimonials
   - Stable details dropdowns
========================================================== */

/* ==========================================================
   01 / VARIABLES
========================================================== */

:root {
  --work-bg: #000;
  --work-fg: rgba(246, 246, 240, 0.94);
  --work-white: rgba(255, 255, 255, 0.96);
  --work-muted: rgba(246, 246, 240, 0.52);
  --work-dim: rgba(246, 246, 240, 0.34);
  --work-line: rgba(246, 246, 240, 0.12);
  --work-line-soft: rgba(246, 246, 240, 0.055);
  --work-ease: cubic-bezier(0.19, 1, 0.22, 1);

  --work-sans: var(
    --font-sans,
    "Manrope",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif
  );

  --work-mono: var(
    --mono,
    "IBM Plex Mono",
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    monospace
  );
}

/* ==========================================================
   02 / PROCESS → WORK REVEAL SUPPORT
========================================================== */

.process-world-inside {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
}

.work-reveal-preview {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 255, 255, 0.08), transparent 34%),
    radial-gradient(circle at 50% 62%, rgba(255, 255, 255, 0.035), transparent 48%),
    #000;
  opacity: 0;
  transform: scale(0.96);
  transition:
    opacity 700ms ease,
    transform 900ms var(--work-ease);
  will-change: opacity, transform;
}

.process-3d.is-work-reveal .work-reveal-preview,
.process-world-inside.is-active .work-reveal-preview {
  opacity: 1;
  transform: scale(1);
}

.work-reveal-preview__field {
  position: absolute;
  inset: 12vh 10vw;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  opacity: 0.5;
}

.work-reveal-preview__field::before,
.work-reveal-preview__field::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.045);
  border-radius: inherit;
}

.work-reveal-preview__field::before {
  inset: 14%;
}

.work-reveal-preview__field::after {
  inset: 29%;
  opacity: 0.7;
}

.work-reveal-preview__system {
  position: relative;
  width: min(52vw, 760px);
  height: min(34vw, 420px);
}

.work-node {
  position: absolute;
  width: clamp(58px, 6vw, 104px);
  height: clamp(58px, 6vw, 104px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.2), transparent 7%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.07), transparent 42%);
  box-shadow:
    0 0 42px rgba(255, 255, 255, 0.05),
    inset 0 0 32px rgba(255, 255, 255, 0.03);
}

.work-node::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: #fff;
  opacity: 0.85;
  transform: translate(-50%, -50%);
}

.work-node--one {
  left: 4%;
  top: 46%;
}

.work-node--two {
  left: 34%;
  top: 16%;
}

.work-node--three {
  right: 25%;
  bottom: 14%;
}

.work-node--four {
  right: 2%;
  top: 38%;
}

.work-line {
  position: absolute;
  height: 1px;
  transform-origin: left center;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.42),
    transparent
  );
  opacity: 0.34;
}

.work-line--one {
  left: 13%;
  top: 52%;
  width: 32%;
  transform: rotate(-24deg);
}

.work-line--two {
  left: 42%;
  top: 31%;
  width: 28%;
  transform: rotate(31deg);
}

.work-line--three {
  right: 9%;
  top: 53%;
  width: 31%;
  transform: rotate(-18deg);
}

.work-reveal-preview__copy {
  position: absolute;
  left: clamp(24px, 7vw, 110px);
  bottom: clamp(34px, 8vh, 92px);
  max-width: 460px;
}

.work-reveal-preview__kicker {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.42);
  font-family: var(--work-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
}

.work-reveal-preview__statement {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--work-sans);
  font-size: clamp(34px, 5vw, 82px);
  font-weight: 300;
  letter-spacing: -0.07em;
  line-height: 0.94;
}

.work-reveal-preview__signals {
  position: absolute;
  right: clamp(24px, 7vw, 110px);
  bottom: clamp(38px, 8vh, 96px);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--work-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.work-reveal-preview__signals span {
  display: block;
  min-width: 160px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: right;
}

/* ==========================================================
   03 / FLYING TRUST CARDS
========================================================== */

.bim-trust {
  position: relative;
  z-index: 3;
  min-height: 460vh;
  overflow: clip;
  color: var(--work-fg);
  background: #000;
  font-family: var(--work-sans);
}

.bim-trust__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 68% 55%, rgba(255, 255, 255, 0.055), transparent 26rem),
    radial-gradient(circle at 22% 34%, rgba(255, 255, 255, 0.035), transparent 22rem),
    #000;
}

.bim-trust__sticky::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 22rem;
  background: linear-gradient(to bottom, transparent, #000);
  pointer-events: none;
}

.bim-trust__headline {
  position: absolute;
  left: clamp(1.1rem, 2.2vw, 2.6rem);
  top: 15vh;
  z-index: 1;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(4.4rem, 9.2vw, 12rem);
  font-weight: 300;
  letter-spacing: -0.085em;
  line-height: 0.84;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  will-change: transform, opacity;
}

.bim-trust__copy {
  position: absolute;
  right: clamp(1.2rem, 4vw, 4.4rem);
  top: 27vh;
  z-index: 30;
  width: min(21.5rem, 32vw);
  will-change: transform, opacity;
}

.bim-trust__copy p {
  margin: 0;
  color: rgba(245, 245, 240, 0.62);
  font-size: clamp(0.78rem, 0.88vw, 0.98rem);
  font-weight: 300;
  line-height: 1.58;
  letter-spacing: -0.018em;
}

.bim-trust__stage {
  position: absolute;
  inset: 0;
  z-index: 10;
  overflow: visible;
  pointer-events: none;
  perspective: 1200px;
  transform-style: preserve-3d;
}

.bim-trust-card {
  position: absolute;
  left: 0;
  top: 36vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: clamp(20rem, 25vw, 30rem);
  min-height: clamp(22rem, 45vh, 32rem);
  padding: clamp(1.45rem, 2vw, 2.15rem);
  border: 1px solid rgba(245, 245, 240, 0.12);
  border-radius: 0.42rem;
  color: var(--work-fg);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.028)),
    rgba(255, 255, 255, 0.048);
  box-shadow:
    0 2rem 5rem rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 1;
  pointer-events: auto;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  will-change: transform;
}

.bim-trust-card::before,
.bim-trust-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.bim-trust-card::before {
  z-index: -1;
  background: rgba(0, 0, 0, 0.18);
  filter: blur(1rem);
}

.bim-trust-card::after {
  z-index: -2;
  background: rgba(255, 255, 255, 0.032);
  transform: translate3d(0.45rem, 0.45rem, -1px);
}

.bim-trust-card__logo {
  margin: 0 0 2rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.2rem, 1.6vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1;
}

.bim-trust-card blockquote {
  margin: 0;
  color: rgba(245, 245, 240, 0.72);
  font-size: clamp(0.88rem, 1vw, 1.12rem);
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: -0.025em;
}

.bim-trust-card footer {
  display: grid;
  gap: 0.35rem;
  margin-top: 2rem;
}

.bim-trust-card strong {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1;
  text-transform: uppercase;
}

.bim-trust-card span {
  color: rgba(245, 245, 240, 0.39);
  font-size: 0.68rem;
  font-weight: 300;
  line-height: 1.35;
}

/* ==========================================================
   04 / WORK ARCHIVE BASE
========================================================== */

.work-archive {
  --archive-reveal: 1;
  --archive-top-line: 1;
  --archive-glow: 0;

  position: relative;
  z-index: 4;
  min-height: clamp(1050px, 150vh, 1500px);
  margin-top: clamp(12rem, 28vh, 22rem);
  overflow: visible;
  color: var(--work-fg);
  background: #000;
  font-family: var(--work-sans);
  isolation: isolate;
  overflow-anchor: none;
}

.work-archive::before,
.work-archive__shell::before,
.work-archive__header::after {
  display: none;
  content: none;
}

.work-archive::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  z-index: 1;
  height: 18rem;
  background: linear-gradient(to bottom, transparent, #000);
  pointer-events: none;
}

.work-archive__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.76;
  pointer-events: none;
  background:
    radial-gradient(circle at 78% 16%, rgba(255, 255, 255, 0.04), transparent 25rem),
    radial-gradient(circle at 22% 70%, rgba(255, 255, 255, 0.024), transparent 22rem),
    linear-gradient(180deg, #000 0%, #030303 48%, #000 100%);
}

.work-archive__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.016) 1px, transparent 1px);
  background-size: 86px 86px;
  mask-image: radial-gradient(circle at 58% 46%, black 0%, transparent 72%);
}

.work-archive__shell {
  position: relative;
  z-index: 2;
  width: min(110rem, calc(100% - 6rem));
  min-height: inherit;
  margin: 0 auto;
  padding:
    clamp(8rem, 15vh, 12rem)
    0
    clamp(10rem, 18vh, 16rem);
  overflow: visible;
  overflow-anchor: none;
}

/* ==========================================================
   05 / RIGHT-LEANING HEADER
========================================================== */

.work-archive__header {
  position: relative;
  display: grid;
  grid-template-columns:
    4.5rem
    minmax(28rem, 36rem)
    minmax(14rem, 18rem);
  align-items: start;
  gap: clamp(2rem, 4vw, 4.5rem);

  width: min(72rem, 100%);
  margin-left: auto;
  margin-right: 0;
  margin-bottom: clamp(8rem, 17vh, 13rem);

  will-change: transform, opacity, filter;
}

.work-archive__label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-top: 0.8rem;
  color: rgba(246, 246, 240, 0.34);
  font-family: var(--work-mono);
  font-size: 0.54rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.35;
  text-transform: uppercase;
  will-change: transform, opacity, filter;
}

.work-archive__heading {
  min-width: 0;
}

.work-archive__kicker {
  margin: 0 0 0.9rem;
  color: rgba(246, 246, 240, 0.42);
  font-family: var(--work-mono);
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
  will-change: transform, opacity, filter;
}

.work-archive__title {
  max-width: 34rem;
  margin: 0;
  color: rgba(246, 246, 240, 0.9);
  font-size: clamp(2.2rem, 3.5vw, 4.7rem);
  font-weight: 300;
  letter-spacing: -0.09em;
  line-height: 0.9;
  text-transform: none;
  will-change: transform, opacity, filter;
}

.work-archive__intro {
  max-width: 16.5rem;
  margin: 0;
  padding-top: clamp(1.2rem, 3vh, 2.2rem);
  justify-self: end;
  color: rgba(246, 246, 240, 0.42);
  font-size: clamp(0.72rem, 0.78vw, 0.88rem);
  font-weight: 300;
  line-height: 1.62;
  letter-spacing: -0.018em;
  will-change: transform, opacity, filter;
}

/* ==========================================================
   06 / PROJECT ROWS
========================================================== */

.work-archive__list {
  position: relative;
  display: grid;
  width: 100%;
  margin-top: clamp(1rem, 3vh, 2rem);
  overflow-anchor: none;
}

.work-project {
  --row-line: 1;
  --row-fill: 0;

  position: relative;
  color: inherit;
  border: 0;
  opacity: 1;
  overflow: visible;
  transition: opacity 420ms ease;
  overflow-anchor: none;
}

.work-project::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.24),
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.018)
  );
  transform: scaleX(var(--row-line));
  transform-origin: left center;
  pointer-events: none;
}

.work-project:last-child::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0.065),
    rgba(255, 255, 255, 0.015)
  );
  transform: scaleX(var(--row-line));
  transform-origin: left center;
  pointer-events: none;
}

.work-project:hover,
.work-project[open],
.work-project.is-open {
  --row-fill: 1;
}

.work-project__summary {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns:
    2.7rem
    minmax(0, 1.5fr)
    minmax(10rem, 0.72fr)
    3.6rem
    1.4rem;
  align-items: center;
  gap: clamp(1rem, 1.8vw, 1.7rem);
  width: 100%;
  min-height: clamp(4rem, 5.5vw, 5.15rem);
  color: inherit;
  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, calc(var(--row-fill) * 0.045)),
      rgba(255, 255, 255, 0)
    );
  cursor: pointer;
  list-style: none;
  user-select: none;
  isolation: isolate;
  overflow-anchor: none;
  transition:
    background 500ms ease,
    color 500ms ease;
}

.work-project__summary::-webkit-details-marker {
  display: none;
}

.work-project__summary::marker {
  display: none;
  content: "";
}

.work-project__summary > span:not(.work-project__preview) {
  will-change: transform, opacity, filter;
}

.work-project__index,
.work-project__meta,
.work-project__year {
  color: rgba(246, 246, 240, 0.4);
  font-family: var(--work-mono);
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.work-project__name {
  position: relative;
  color: rgba(246, 246, 240, 0.74);
  font-size: clamp(1.15rem, 1.9vw, 2.25rem);
  font-weight: 300;
  letter-spacing: -0.055em;
  line-height: 0.96;
  transition:
    color 420ms ease,
    transform 520ms var(--work-ease);
}

.work-project__meta,
.work-project__year {
  justify-self: end;
}

.work-project__arrow {
  justify-self: end;
  color: rgba(246, 246, 240, 0.44);
  font-size: 0.86rem;
  line-height: 1;
  transform-origin: center;
  transition:
    color 420ms ease,
    transform 520ms var(--work-ease);
}

.work-project__summary:hover .work-project__name,
.work-project[open] .work-project__name,
.work-project.is-open .work-project__name {
  color: rgba(255, 255, 255, 0.94);
  transform: translate3d(0.2rem, 0, 0);
}

.work-project[open] .work-project__arrow,
.work-project.is-open .work-project__arrow {
  color: rgba(255, 255, 255, 0.86);
  transform: rotate(90deg);
}

.work-archive.has-open-project .work-project:not([open]) {
  opacity: 0.48;
}

.work-archive.has-open-project .work-project[open] {
  opacity: 1;
}

/* ==========================================================
   07 / HOVER PREVIEW
========================================================== */

.work-project__preview,
.work-project__hover-image {
  position: fixed;
  right: 5.5vw;
  top: 34vh;
  z-index: 50;
  display: block;
  width: clamp(8.5rem, 10.5vw, 12rem);
  aspect-ratio: 1.45 / 1;
  overflow: hidden;
  border: 1px solid rgba(246, 246, 240, 0.09);
  background: #050505;
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.68);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(0, 0.8rem, 0) scale(0.96) rotate(-1.5deg);
  transition:
    opacity 240ms ease,
    visibility 240ms ease,
    transform 520ms var(--work-ease);
}

.work-project__preview img,
.work-project__hover-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) brightness(0.78) contrast(1.08);
  transform: scale(1.04);
  transition:
    filter 520ms ease,
    transform 920ms var(--work-ease);
}

.work-project__summary:hover .work-project__preview,
.work-project__summary:hover .work-project__hover-image,
.work-project.is-previewing .work-project__preview,
.work-project.is-previewing .work-project__hover-image {
  opacity: 0.9;
  visibility: visible;
  transform: translate3d(0, 0, 0) scale(1) rotate(-1deg);
}

.work-project__summary:hover .work-project__preview img,
.work-project__summary:hover .work-project__hover-image img,
.work-project.is-previewing .work-project__preview img,
.work-project.is-previewing .work-project__hover-image img {
  filter: grayscale(1) brightness(0.9) contrast(1.06);
  transform: scale(1);
}

.work-project[open] .work-project__preview,
.work-project[open] .work-project__hover-image,
.work-project.is-open .work-project__preview,
.work-project.is-open .work-project__hover-image {
  opacity: 0;
  visibility: hidden;
}

/* ==========================================================
   08 / DETAIL DROPDOWNS
========================================================== */

.work-project__panel,
.work-project__details,
.work-project__detail,
.work-project__body,
.work-project__content {
  box-sizing: border-box;
}

.work-project__panel {
  position: relative;
  z-index: 2;
  display: block;
  height: 0;
  min-height: 0;
  max-height: none;
  opacity: 0;
  overflow: hidden;
  padding: 0;
  transform: translate3d(0, -0.35rem, 0);
  transition:
    height 680ms var(--work-ease),
    opacity 280ms ease,
    transform 680ms var(--work-ease),
    padding-bottom 680ms var(--work-ease);
  will-change: height, opacity, transform;
  overflow-anchor: none;
}

.work-project[open] .work-project__panel {
  opacity: 1;
  padding: 0 0 clamp(1.5rem, 3vh, 2.2rem);
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
}

.work-project.is-opening .work-project__panel,
.work-project.is-closing .work-project__panel {
  overflow: hidden;
}

.work-project.is-open .work-project__panel {
  height: auto;
  overflow: visible;
}

.work-project:not([open]) .work-project__panel {
  height: 0;
  opacity: 0;
  padding-bottom: 0;
  pointer-events: none;
}

.work-project.is-opening .work-project__summary,
.work-project.is-closing .work-project__summary {
  pointer-events: none;
}

.work-project__detail-scroll {
  overscroll-behavior: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(246, 246, 240, 0.2) transparent;
}

.work-project__detail-scroll::-webkit-scrollbar {
  width: 0.35rem;
}

.work-project__detail-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.work-project__detail-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(246, 246, 240, 0.18);
}

.work-project__case,
.work-project__content {
  width: min(60rem, 100%);
  margin-left: auto;
  padding-left: clamp(0rem, 11vw, 11rem);
}

.work-project__eyebrow {
  margin: 0 0 0.85rem;
  color: rgba(246, 246, 240, 0.4);
  font-family: var(--work-mono);
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  line-height: 1;
  text-transform: uppercase;
}

.work-project__statement,
.work-project__description,
.work-project__content h3 {
  max-width: 40rem;
  margin: 0 0 1.15rem;
  color: rgba(246, 246, 240, 0.76);
  font-size: clamp(1rem, 1.35vw, 1.55rem);
  font-weight: 300;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.work-project__proof,
.work-project__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid rgba(246, 246, 240, 0.07);
  background: rgba(255, 255, 255, 0.012);
}

.work-project__proof section,
.work-project__grid section {
  min-height: 6.75rem;
  padding: 0.85rem 0.9rem;
  border-left: 1px solid rgba(246, 246, 240, 0.07);
}

.work-project__proof section:first-child,
.work-project__grid section:first-child {
  border-left: 0;
}

.work-project__proof p,
.work-project__grid p {
  margin: 0 0 0.55rem;
  color: rgba(246, 246, 240, 0.4);
  font-family: var(--work-mono);
  font-size: 0.44rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}

.work-project__proof span,
.work-project__grid span {
  display: block;
  color: rgba(246, 246, 240, 0.54);
  font-size: 0.62rem;
  font-weight: 300;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

/* Legacy classes hidden cleanly */

.work-project__media,
.work-project__services,
.work-project__quote,
.work-archive__more {
  display: none;
}

/* JS reveal states kept stable */

.work-archive.is-forming .work-archive__bg::before {
  opacity: 0.12;
}

.work-archive.is-formed {
  --archive-reveal: 1;
  --archive-top-line: 1;
  --archive-glow: 0;
}

.work-archive.is-formed .work-project {
  --row-line: 1;
}

/* ==========================================================
   09 / RESPONSIVE
========================================================== */

@media (max-width: 1180px) {
  .work-archive {
    min-height: auto;
    margin-top: clamp(7rem, 16vh, 12rem);
    overflow: visible;
  }

  .work-archive__shell {
    width: min(72rem, calc(100% - 2.5rem));
    min-height: auto;
    padding: 5.5rem 0 7rem;
  }

  .work-archive__header {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: clamp(4rem, 9vh, 6rem);
  }

  .work-archive__label {
    flex-direction: row;
    justify-content: space-between;
    border-top: 1px solid rgba(246, 246, 240, 0.1);
    padding-top: 1rem;
  }

  .work-archive__title {
    max-width: 34rem;
    font-size: clamp(2.15rem, 7vw, 4rem);
  }

  .work-archive__intro {
    max-width: 32rem;
    padding-top: 0;
    justify-self: start;
  }

  .work-project__summary {
    grid-template-columns: 2.4rem minmax(0, 1fr) auto;
    min-height: 4.25rem;
  }

  .work-project__meta,
  .work-project__year,
  .work-project__preview,
  .work-project__hover-image {
    display: none;
  }

  .work-project__case,
  .work-project__content {
    width: 100%;
    padding-left: 2.4rem;
  }
}

@media (max-width: 900px) {
  .bim-trust {
    min-height: auto;
  }

  .bim-trust__sticky {
    position: relative;
    height: auto;
    min-height: 100vh;
    padding: 6rem 1rem 5rem;
  }

  .bim-trust__headline {
    position: relative;
    left: auto;
    top: auto;
    margin-bottom: 2rem;
    font-size: clamp(4rem, 18vw, 7rem);
    white-space: normal;
  }

  .bim-trust__copy {
    position: relative;
    right: auto;
    top: auto;
    width: min(24rem, 100%);
    margin-bottom: 2rem;
  }

  .bim-trust__stage {
    position: relative;
    inset: auto;
    display: grid;
    gap: 1rem;
    perspective: none;
  }

  .bim-trust-card {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    min-height: 18rem;
    transform: none;
  }

  .work-project.is-open .work-project__panel {
    height: auto;
    overflow: visible;
  }

  .work-archive.has-open-project .work-project:not([open]) {
    opacity: 1;
  }
}

@media (max-width: 800px) {
  .work-reveal-preview__system {
    width: 82vw;
    height: 54vw;
  }

  .work-reveal-preview__copy {
    left: 24px;
    right: 24px;
    bottom: 96px;
  }

  .work-reveal-preview__signals {
    left: 24px;
    right: 24px;
    bottom: 28px;
    align-items: flex-start;
  }

  .work-reveal-preview__signals span {
    width: 100%;
    min-width: 0;
    text-align: left;
  }
}

@media (max-width: 700px) {
  .work-archive {
    margin-top: clamp(5rem, 12vh, 8rem);
  }

  .work-archive__shell {
    width: calc(100% - 1.4rem);
    padding: 4.5rem 0 6rem;
  }

  .work-archive__header {
    margin-bottom: 3.8rem;
  }

  .work-archive__title {
    font-size: clamp(2rem, 10vw, 3.25rem);
    line-height: 0.94;
  }

  .work-project__summary {
    grid-template-columns: 2rem minmax(0, 1fr) auto;
    gap: 0.8rem;
    min-height: 3.9rem;
  }

  .work-project__name {
    font-size: clamp(1rem, 5vw, 1.35rem);
  }

  .work-project__case,
  .work-project__content {
    padding-left: 0;
  }

  .work-project__proof,
  .work-project__grid {
    grid-template-columns: 1fr;
  }

  .work-project__proof section,
  .work-project__grid section {
    min-height: auto;
    padding: 0.85rem 0;
    border-left: 0;
    border-top: 1px solid rgba(246, 246, 240, 0.07);
  }

  .work-project__proof section:first-child,
  .work-project__grid section:first-child {
    border-top: 0;
  }
}

/* ==========================================================
   10 / REDUCED MOTION
========================================================== */

@media (prefers-reduced-motion: reduce) {
  .work-reveal-preview,
  .bim-trust-card,
  .bim-trust__headline,
  .bim-trust__copy,
  .work-archive,
  .work-archive *,
  .work-archive *::before,
  .work-archive *::after {
    animation: none;
    transition: none;
    scroll-behavior: auto;
  }

  .work-archive {
    --archive-reveal: 1;
    --archive-top-line: 1;
    --archive-glow: 0;
  }

  .work-project {
    --row-line: 1;
  }

  .work-archive__label,
  .work-archive__kicker,
  .work-archive__title,
  .work-archive__intro,
  .work-project,
  .work-project__index,
  .work-project__name,
  .work-project__meta,
  .work-project__year,
  .work-project__arrow {
    opacity: 1;
    visibility: visible;
    transform: none;
    filter: none;
  }
}




/* ==========================================================
   WORK ARCHIVE — NOOMO-STYLE CENTER LINE GROW
========================================================== */

.work-project::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 1;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.06) 8%,
    rgba(255, 255, 255, 0.24) 50%,
    rgba(255, 255, 255, 0.06) 92%,
    transparent 100%
  );
  transform: translateX(-50%) scaleX(var(--row-line, 0));
  transform-origin: center center;
  pointer-events: none;
  will-change: transform;
}

.work-project:last-child::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  z-index: 1;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.05) 8%,
    rgba(255, 255, 255, 0.18) 50%,
    rgba(255, 255, 255, 0.05) 92%,
    transparent 100%
  );
  transform: translateX(-50%) scaleX(var(--row-line, 0));
  transform-origin: center center;
  pointer-events: none;
  will-change: transform;
}

.work-project {
  --row-line: 0;
  --row-fill: 0;
}

.work-archive.is-formed .work-project {
  --row-line: 1;
}




/* ==========================================================
   DETAIL — RESULTS COUNT-UP ROW
========================================================== */

.work-project__results {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(1.4rem, 3vh, 2.2rem);
  padding-top: clamp(1rem, 2vh, 1.4rem);
  border-top: 1px solid rgba(246, 246, 240, 0.08);
}

.work-project__results div {
  position: relative;
  display: grid;
  gap: 0.28rem;
  min-height: 3.4rem;
  padding-right: 1rem;
  border-right: 1px solid rgba(246, 246, 240, 0.07);
}

.work-project__results div:last-child {
  border-right: 0;
}

.work-project__results strong {
  position: relative;
  display: inline-block;
  width: max-content;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.05rem, 1.45vw, 1.65rem);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.work-project__results strong::before,
.work-project__results strong::after {
  position: absolute;
  left: 0;
  color: rgba(255, 255, 255, 0.22);
  font: inherit;
  letter-spacing: inherit;
  opacity: 0;
  pointer-events: none;
}

.work-project__results strong::before {
  content: attr(data-ghost-before);
  top: -1.1em;
  transform: translate3d(0, 0.35rem, 0);
}

.work-project__results strong::after {
  content: attr(data-ghost-after);
  top: 1.1em;
  transform: translate3d(0, -0.35rem, 0);
}

.work-project__results strong.is-counting::before,
.work-project__results strong.is-counting::after {
  opacity: 0.55;
}

.work-project__results span {
  color: rgba(246, 246, 240, 0.42);
  font-size: 0.62rem;
  font-weight: 300;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

/* ==========================================================
   DETAIL — TWO-WORD CAMERA FOCUS
========================================================== */

.focus-word {
  display: inline;
  color: rgba(246, 246, 240, 0.78);
  background: none;
  font: inherit;
  cursor: default;
  transition:
    color 260ms ease,
    filter 260ms ease,
    opacity 260ms ease,
    text-shadow 260ms ease;
}

.work-project__statement,
.work-project__proof section,
.work-project__results {
  transition:
    filter 320ms ease,
    opacity 320ms ease;
}

.work-project.is-word-focusing .work-project__statement,
.work-project.is-word-focusing .work-project__proof section,
.work-project.is-word-focusing .work-project__results {
  filter: blur(1.4px);
  opacity: 0.38;
}

.work-project.is-word-focusing .focus-word.is-focused {
  position: relative;
  z-index: 5;
  color: rgba(255, 255, 255, 0.98);
  filter: blur(0);
  opacity: 1;
  text-shadow: 0 0 22px rgba(255, 255, 255, 0.14);
}

.work-project.is-word-focusing .work-project__proof section:has(.focus-word.is-focused) {
  filter: blur(0);
  opacity: 1;
}

.work-project.is-word-focusing .work-project__proof section:has(.focus-word.is-focused) span {
  color: rgba(246, 246, 240, 0.35);
}

.work-project.is-word-focusing .work-project__proof section:has(.focus-word.is-focused) .focus-word.is-focused {
  color: rgba(255, 255, 255, 0.98);
}

/* Hover fallback if browser does not support :has well */
.work-project__proof section:hover span {
  color: rgba(246, 246, 240, 0.38);
}

.work-project__proof section:hover .focus-word:hover {
  color: rgba(255, 255, 255, 0.98);
  text-shadow: 0 0 22px rgba(255, 255, 255, 0.14);
}

@media (max-width: 700px) {
  .work-project__results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 0;
  }

  .work-project__results div:nth-child(2) {
    border-right: 0;
  }
}







/* ==========================================================
   WORK ARCHIVE — STATEMENT FOCUS OVERRIDE
   Big paragraph header gets the hover focus effect
========================================================== */

.work-project__statement {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 0.18em;
  max-width: 48rem;
}

.work-project__statement .focus-fragment,
.work-project__statement .focus-word {
  display: inline-block;
  transition:
    filter 320ms ease,
    opacity 320ms ease,
    color 260ms ease,
    text-shadow 260ms ease,
    transform 260ms ease;
}

.work-project__statement .focus-fragment {
  color: rgba(246, 246, 240, 0.76);
}

.work-project__statement .focus-word {
  color: rgba(255, 255, 255, 0.95);
  cursor: default;
}

.work-project.is-word-focusing .work-project__statement {
  filter: none !important;
  opacity: 1 !important;
}

.work-project.is-word-focusing .work-project__statement .focus-fragment,
.work-project.is-word-focusing .work-project__statement .focus-word {
  filter: blur(4px);
  opacity: 0.18;
}

.work-project.is-word-focusing .work-project__statement .focus-word.is-focused {
  filter: blur(0);
  opacity: 1;
  color: rgba(255, 255, 255, 0.99);
  text-shadow: 0 0 22px rgba(255, 255, 255, 0.14);
  transform: translate3d(0, 0, 0);
}

.work-project.is-word-focusing .work-project__proof section,
.work-project.is-word-focusing .work-project__results {
  filter: blur(1.4px);
  opacity: 0.38;
}

.work-project.is-word-focusing .work-project__proof section:has(.focus-word.is-focused) {
  filter: blur(0);
  opacity: 1;
}

.work-project.is-word-focusing .work-project__proof section:has(.focus-word.is-focused) span {
  color: rgba(246, 246, 240, 0.35);
}

.work-project.is-word-focusing .work-project__proof section:has(.focus-word.is-focused) .focus-word.is-focused {
  color: rgba(255, 255, 255, 0.98);
}

@media (max-width: 700px) {
  .work-project__statement {
    display: block;
  }

  .work-project__statement .focus-fragment,
  .work-project__statement .focus-word {
    display: inline;
  }
}



/* ==========================================================
   WORK ARCHIVE — BIG STATEMENT FOCUS EFFECT
========================================================== */

.work-project__statement {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 0.18em;
  max-width: 48rem;
}

.work-project__statement .focus-fragment,
.work-project__statement .focus-word {
  display: inline-block;
  transition:
    filter 320ms ease,
    opacity 320ms ease,
    color 260ms ease,
    text-shadow 260ms ease,
    transform 260ms ease;
}

.work-project__statement .focus-fragment {
  color: rgba(246, 246, 240, 0.76);
}

.work-project__statement .focus-word {
  color: rgba(255, 255, 255, 0.95);
  cursor: default;
}

.work-project.is-word-focusing .work-project__statement {
  filter: none !important;
  opacity: 1 !important;
}

.work-project.is-word-focusing .work-project__statement .focus-fragment,
.work-project.is-word-focusing .work-project__statement .focus-word {
  filter: blur(4px);
  opacity: 0.18;
}

.work-project.is-word-focusing .work-project__statement .focus-word.is-focused {
  filter: blur(0);
  opacity: 1;
  color: rgba(255, 255, 255, 0.99);
  text-shadow: 0 0 22px rgba(255, 255, 255, 0.14);
}

.work-project.is-word-focusing .work-project__proof section,
.work-project.is-word-focusing .work-project__results {
  filter: blur(1.4px);
  opacity: 0.38;
}

.work-project.is-word-focusing .work-project__proof section:has(.focus-word.is-focused) {
  filter: blur(0);
  opacity: 1;
}

.work-project.is-word-focusing .work-project__proof section:has(.focus-word.is-focused) span {
  color: rgba(246, 246, 240, 0.35);
}

.work-project.is-word-focusing .work-project__proof section:has(.focus-word.is-focused) .focus-word.is-focused {
  color: rgba(255, 255, 255, 0.98);
}

@media (max-width: 700px) {
  .work-project__statement {
    display: block;
  }

  .work-project__statement .focus-fragment,
  .work-project__statement .focus-word {
    display: inline;
  }
}









.work-project__preview,
.work-project__hover-image {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.work-archive-floating-preview {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 999;
  width: clamp(8.5rem, 10.5vw, 12rem);
  aspect-ratio: 1.45 / 1;
  overflow: hidden;
  border: 1px solid rgba(246, 246, 240, 0.09);
  background: #050505;
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.68);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(-999px, -999px, 0) scale(0.96) rotate(-1deg);
  transition:
    opacity 180ms ease,
    visibility 180ms ease;
  will-change: transform, opacity;
  contain: layout paint;
}

.work-archive-floating-preview.is-visible {
  opacity: 0.92;
  visibility: visible;
}

.work-archive-floating-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) brightness(0.88) contrast(1.08);
  transform: scale(1.03);
}







.work-archive {
  min-height: 175vh;
  margin-top: clamp(18rem, 32vh, 26rem);
}

.work-archive__shell {
  width: min(118rem, calc(100% - 7rem));
  padding-top: clamp(12rem, 20vh, 18rem);
  padding-bottom: clamp(16rem, 24vh, 22rem);
}

.work-archive__header {
  margin-bottom: clamp(10rem, 20vh, 16rem);
}

.work-archive__title {
  max-width: 42rem;
  font-size: clamp(2.8rem, 4.6vw, 6.4rem);
  line-height: 0.86;
}

.work-archive__intro {
  max-width: 19rem;
}

.work-project__summary {
  min-height: clamp(5.8rem, 7.2vw, 7.4rem);
}

.work-project__name {
  font-size: clamp(1.45rem, 2.45vw, 3.25rem);
}

.work-project::before,
.work-project:last-child::after {
  opacity: 0.72;
}

.work-project__preview,
.work-project__hover-image,
.work-archive-floating-preview {
  width: clamp(12rem, 16vw, 20rem);
}










/* ==========================================================
   TRUST → WORK ARCHIVE SEAM FIX
   Removes gray stacked bar between trust cards and archive
========================================================== */

/* remove hard section gap */
.bim-trust {
  margin-bottom: 0 !important;
  background: #000 !important;
}

/* make the trust section fade to real black */
.bim-trust__sticky::after {
  height: clamp(14rem, 26vh, 24rem) !important;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.72) 58%,
    #000 100%
  ) !important;
}

/* kill the visible gray slab before archive content */
.work-archive {
  margin-top: 0 !important;
  background: #000 !important;
  overflow: hidden;
}

/* keep the archive atmosphere, but don't let it start as a gray rectangle */
.work-archive__bg {
  top: -1px;
  opacity: 0.58 !important;
  background:
    radial-gradient(circle at 78% 32%, rgba(255, 255, 255, 0.028), transparent 28rem),
    radial-gradient(circle at 22% 78%, rgba(255, 255, 255, 0.018), transparent 24rem),
    #000 !important;

  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 28%,
    black 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 28%,
    black 100%
  );
}

/* move the breathing room INSIDE the archive instead of using margin */
.work-archive__shell {
  padding-top: clamp(10rem, 18vh, 15rem) !important;
}

/* remove the earlier ghost text idea completely if any of it is still there */
.work-archive::before {
  display: none !important;
  content: none !important;
}

/* mobile: no weird giant transition gap */
@media (max-width: 900px) {
  .work-archive {
    margin-top: 0 !important;
  }

  .work-archive__shell {
    padding-top: 6rem !important;
  }

  .work-archive__bg {
    -webkit-mask-image: none;
    mask-image: none;
    opacity: 0.42 !important;
  }
}







/* ==========================================================
   TRUST → ARCHIVE CINEMATIC SPACING FIX
   Seamless black transition, but archive has presence
========================================================== */

.bim-trust {
  margin-bottom: 0 !important;
  background: #000 !important;
}

/* let trust cards dissolve into black */
.bim-trust__sticky::after {
  height: clamp(18rem, 34vh, 32rem) !important;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.45) 42%,
    rgba(0, 0, 0, 0.9) 78%,
    #000 100%
  ) !important;
}

/* archive starts immediately, but content waits */
.work-archive {
  margin-top: 0 !important;
  min-height: 190vh !important;
  background: #000 !important;
  overflow: hidden !important;
}

/* this creates the empty cinematic space before the archive text */
.work-archive__shell {
  padding-top: clamp(18rem, 34vh, 30rem) !important;
  padding-bottom: clamp(16rem, 24vh, 24rem) !important;
}

/* make archive atmosphere fade in instead of becoming a gray slab */
.work-archive__bg {
  opacity: 0.5 !important;
  background:
    radial-gradient(circle at 78% 38%, rgba(255, 255, 255, 0.026), transparent 30rem),
    radial-gradient(circle at 24% 82%, rgba(255, 255, 255, 0.018), transparent 26rem),
    #000 !important;

  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 10%,
    black 38%,
    black 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 10%,
    black 38%,
    black 100%
  );
}

/* give the archive header more importance */
.work-archive__header {
  margin-bottom: clamp(11rem, 21vh, 17rem) !important;
}

/* desktop: make the archive feel larger and calmer */
.work-archive__title {
  max-width: 44rem !important;
  font-size: clamp(3rem, 4.9vw, 6.8rem) !important;
  line-height: 0.84 !important;
}

/* bigger rows so the archive has weight */
.work-project__summary {
  min-height: clamp(6rem, 7.6vw, 7.8rem) !important;
}

.work-project__name {
  font-size: clamp(1.55rem, 2.55vw, 3.45rem) !important;
}

/* mobile should not get a giant dead gap */
@media (max-width: 900px) {
  .work-archive {
    min-height: auto !important;
  }

  .work-archive__shell {
    padding-top: clamp(7rem, 13vh, 10rem) !important;
    padding-bottom: 7rem !important;
  }

  .work-archive__bg {
    opacity: 0.38 !important;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .work-archive__header {
    margin-bottom: 4.5rem !important;
  }
}










/* ==========================================================
   WORK ARCHIVE — LEAN EDITORIAL REBUILD
   Fixes bulky spacing / oversized rows / ugly heavy section feel
========================================================== */

/* keep the trust → archive seam black, but stop making it feel like a giant block */
.bim-trust {
  margin-bottom: 0 !important;
  background: #000 !important;
}

.bim-trust__sticky::after {
  height: clamp(10rem, 18vh, 16rem) !important;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.62) 64%,
    #000 100%
  ) !important;
}

/* archive itself should be compact and intentional */
.work-archive {
  margin-top: 0 !important;
  min-height: auto !important;
  background: #000 !important;
  overflow: hidden !important;
}

/* remove the gray/slabby atmosphere */
.work-archive__bg {
  opacity: 0.34 !important;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.022), transparent 24rem),
    radial-gradient(circle at 18% 78%, rgba(255, 255, 255, 0.014), transparent 22rem),
    #000 !important;

  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 18%,
    black 100%
  ) !important;
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 18%,
    black 100%
  ) !important;
}

/* this is the real fix: less dead space, less bulk */
.work-archive__shell {
  width: min(104rem, calc(100% - 5rem)) !important;
  min-height: auto !important;
  padding-top: clamp(6.5rem, 12vh, 10rem) !important;
  padding-bottom: clamp(8rem, 14vh, 12rem) !important;
}

/* header should feel like an intro, not a billboard */
.work-archive__header {
  width: min(62rem, 100%) !important;
  grid-template-columns:
    3.6rem
    minmax(24rem, 31rem)
    minmax(12rem, 15rem) !important;
  gap: clamp(1.5rem, 3vw, 3.2rem) !important;
  margin-bottom: clamp(4.5rem, 9vh, 7rem) !important;
}

/* smaller label */
.work-archive__label {
  font-size: 0.48rem !important;
  opacity: 0.88 !important;
}

/* calmer kicker */
.work-archive__kicker {
  margin-bottom: 0.75rem !important;
  font-size: 0.48rem !important;
}

/* stop the title from feeling huge and chunky */
.work-archive__title {
  max-width: 32rem !important;
  font-size: clamp(2rem, 3.2vw, 4.25rem) !important;
  line-height: 0.9 !important;
  letter-spacing: -0.085em !important;
}

/* intro should be quiet */
.work-archive__intro {
  max-width: 15.5rem !important;
  padding-top: 1.1rem !important;
  font-size: clamp(0.68rem, 0.72vw, 0.8rem) !important;
  line-height: 1.55 !important;
  color: rgba(246, 246, 240, 0.38) !important;
}

/* rows should feel like a luxury index, not giant cards */
.work-project__summary {
  min-height: clamp(4.25rem, 5.1vw, 5.65rem) !important;
  grid-template-columns:
    2.5rem
    minmax(0, 1.4fr)
    minmax(9rem, 0.7fr)
    3.2rem
    1.2rem !important;
}

/* project names smaller and cleaner */
.work-project__name {
  font-size: clamp(1.15rem, 1.85vw, 2.35rem) !important;
  line-height: 0.96 !important;
  letter-spacing: -0.055em !important;
}

/* metadata should not visually compete */
.work-project__index,
.work-project__meta,
.work-project__year {
  font-size: 0.48rem !important;
  color: rgba(246, 246, 240, 0.34) !important;
}

/* softer lines */
.work-project::before,
.work-project:last-child::after {
  opacity: 0.52 !important;
}

/* reduce heavy hover fill */
.work-project__summary {
  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, calc(var(--row-fill) * 0.025)),
      rgba(255, 255, 255, 0)
    ) !important;
}

/* hover image should be tasteful, not massive */
.work-archive-floating-preview {
  width: clamp(9rem, 12vw, 14rem) !important;
  box-shadow: 0 1.4rem 3.5rem rgba(0, 0, 0, 0.58) !important;
}

/* opened details should not explode the whole section */
.work-project[open] .work-project__panel {
  padding-bottom: clamp(1.2rem, 2.4vh, 1.8rem) !important;
}

.work-project__case,
.work-project__content {
  width: min(54rem, 100%) !important;
  padding-left: clamp(0rem, 8vw, 8rem) !important;
}

.work-project__statement,
.work-project__description,
.work-project__content h3 {
  max-width: 36rem !important;
  font-size: clamp(0.95rem, 1.15vw, 1.35rem) !important;
  line-height: 1.12 !important;
}

.work-project__proof section,
.work-project__grid section {
  min-height: 5.8rem !important;
  padding: 0.75rem 0.8rem !important;
}

.work-project__results {
  margin-top: 1.25rem !important;
  padding-top: 1rem !important;
}

/* mobile stays compact */
@media (max-width: 900px) {
  .work-archive__shell {
    width: min(72rem, calc(100% - 2rem)) !important;
    padding-top: 5.5rem !important;
    padding-bottom: 6.5rem !important;
  }

  .work-archive__header {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
    margin-bottom: 3.5rem !important;
  }

  .work-archive__title {
    max-width: 34rem !important;
    font-size: clamp(2rem, 8vw, 3.65rem) !important;
    line-height: 0.93 !important;
  }

  .work-archive__intro {
    max-width: 30rem !important;
    padding-top: 0 !important;
  }

  .work-project__summary {
    grid-template-columns: 2.1rem minmax(0, 1fr) auto !important;
    min-height: 4rem !important;
  }

  .work-project__name {
    font-size: clamp(1rem, 4.8vw, 1.35rem) !important;
  }

  .work-project__case,
  .work-project__content {
    padding-left: 0 !important;
  }
}

@media (max-width: 700px) {
  .work-archive__shell {
    width: calc(100% - 1.4rem) !important;
    padding-top: 4.75rem !important;
    padding-bottom: 5.5rem !important;
  }

  .work-archive__header {
    margin-bottom: 3rem !important;
  }

  .work-project__summary {
    min-height: 3.75rem !important;
  }
}


/* ==========================================================
   WORK ARCHIVE — CLEANER TOP COMPOSITION
   Less awkward / less scattered / more editorial
========================================================== */

.work-archive__shell {
  width: min(112rem, calc(100% - 6rem)) !important;
  padding-top: clamp(5.5rem, 9vh, 8rem) !important;
}

.work-archive__header {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: 9rem minmax(32rem, 48rem) 1fr !important;
  align-items: start !important;
  column-gap: clamp(3rem, 6vw, 8rem) !important;
  margin-bottom: clamp(4.5rem, 8vh, 6.5rem) !important;
}

/* left label */
.work-archive__label {
  justify-self: start !important;
  padding-top: 1.25rem !important;
  font-size: 0.52rem !important;
  line-height: 1.45 !important;
  letter-spacing: 0.16em !important;
  color: rgba(246, 246, 240, 0.34) !important;
}

/* middle title */
.work-archive__heading {
  justify-self: start !important;
}

.work-archive__kicker {
  margin: 0 0 0.9rem !important;
  font-size: 0.52rem !important;
  color: rgba(246, 246, 240, 0.38) !important;
}

.work-archive__title {
  max-width: 46rem !important;
  font-size: clamp(3.6rem, 5.4vw, 7.4rem) !important;
  line-height: 0.82 !important;
  letter-spacing: -0.1em !important;
  color: rgba(246, 246, 240, 0.92) !important;
}

/* right text should feel secondary, not like a random floating block */
.work-archive__intro {
  justify-self: start !important;
  max-width: 18rem !important;
  padding-top: clamp(3.1rem, 6vh, 4.4rem) !important;
  font-size: clamp(0.7rem, 0.78vw, 0.86rem) !important;
  line-height: 1.55 !important;
  color: rgba(246, 246, 240, 0.38) !important;
}

/* bring project rows closer */
.work-archive__list {
  margin-top: 0 !important;
}

/* responsive */
@media (max-width: 1180px) {
  .work-archive__header {
    grid-template-columns: 1fr !important;
    gap: 1.1rem !important;
    margin-bottom: 3.8rem !important;
  }

  .work-archive__label {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    width: 100% !important;
    border-top: 1px solid rgba(246, 246, 240, 0.09) !important;
    padding-top: 1rem !important;
  }

  .work-archive__title {
    max-width: 42rem !important;
    font-size: clamp(2.5rem, 8vw, 5rem) !important;
    line-height: 0.9 !important;
  }

  .work-archive__intro {
    max-width: 32rem !important;
    padding-top: 0 !important;
  }
}

@media (max-width: 700px) {
  .work-archive__shell {
    width: calc(100% - 1.4rem) !important;
    padding-top: 4.5rem !important;
  }

  .work-archive__header {
    margin-bottom: 3rem !important;
  }

  .work-archive__title {
    font-size: clamp(2.15rem, 11vw, 3.6rem) !important;
  }
}









/* ==========================================================
   WORK ARCHIVE — BREATHING ROOM WITHOUT BULK
   Adds empty space above/below while keeping archive lean
========================================================== */

/* create clean empty space before archive */
.work-archive {
  margin-top: clamp(8rem, 16vh, 14rem) !important;
  margin-bottom: clamp(9rem, 18vh, 16rem) !important;
  min-height: auto !important;
  background: #000 !important;
  overflow: visible !important;
}

/* keep the archive content from becoming huge */
.work-archive__shell {
  padding-top: clamp(4.5rem, 8vh, 7rem) !important;
  padding-bottom: clamp(5rem, 9vh, 8rem) !important;
}

/* soften the background so the space feels intentional, not like a gray slab */
.work-archive__bg {
  opacity: 0.28 !important;
  background:
    radial-gradient(circle at 78% 22%, rgba(255, 255, 255, 0.018), transparent 26rem),
    radial-gradient(circle at 20% 76%, rgba(255, 255, 255, 0.012), transparent 24rem),
    #000 !important;
}

/* the header should stay tight, not oversized */
.work-archive__header {
  margin-bottom: clamp(4rem, 8vh, 6rem) !important;
}

/* keep rows lean */
.work-project__summary {
  min-height: clamp(4.35rem, 5.4vw, 5.9rem) !important;
}

/* add a quiet fade at the bottom before booking */
.work-archive::after {
  height: clamp(10rem, 18vh, 16rem) !important;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    #000 100%
  ) !important;
}

/* mobile: space, but not giant blank gaps */
@media (max-width: 900px) {
  .work-archive {
    margin-top: clamp(5rem, 10vh, 8rem) !important;
    margin-bottom: clamp(5rem, 10vh, 8rem) !important;
  }

  .work-archive__shell {
    padding-top: 4.5rem !important;
    padding-bottom: 5rem !important;
  }
}
