/* Our Work page — flagship carousel, lab strip, case drawer, sign-in.
   Loaded only by projects.html. Brand tokens come from styles.css. */

.work-page {
  --w-ink: #141110;
  --w-ink-2: #211d1b;
  --w-paper: #f4eee6;
  --w-acid: #c6b4c1;
  --w-plum: #60435b;
  --w-orange: #e8653d;
  --w-line-dark: rgba(244, 238, 230, .14);
  --w-muted-dark: rgba(244, 238, 230, .62);
  --w-ease: cubic-bezier(.16, 1, .3, 1);
  --gutter-w: clamp(20px, 4vw, 64px);
}
.work-page main { overflow: clip; }
.work-page .section-tag { font-family: var(--mono); }

/* ---------------------------------------------------------------- hero */

.work-hero {
  position: relative;
  isolation: isolate;
  min-height: min(92vh, 900px);
  padding: clamp(56px, 8vw, 120px) var(--gutter-w) clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-rows: 1fr auto;
  gap: clamp(40px, 6vw, 80px);
  color: var(--w-paper);
  background-color: var(--w-ink);
  background-image:
    radial-gradient(640px circle at var(--mx, 72%) var(--my, 28%), rgba(198, 180, 193, .16), transparent 62%),
    radial-gradient(900px 520px at 0% 100%, rgba(96, 67, 91, .55), transparent 70%);
  overflow: hidden;
}
.work-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(244, 238, 230, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(244, 238, 230, .05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%);
}
.hero-marquee {
  position: absolute;
  z-index: -1;
  left: 0;
  bottom: clamp(70px, 12vw, 150px);
  display: flex;
  width: max-content;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(7rem, 22vw, 22rem);
  line-height: .8;
  letter-spacing: -.06em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(244, 238, 230, .13);
  animation: work-marquee 38s linear infinite;
  pointer-events: none;
  user-select: none;
}
.hero-marquee span { padding-right: .35em; }
@keyframes work-marquee { to { transform: translateX(-50%); } }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, .7fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
}
.work-hero .section-tag { color: var(--w-acid); margin: 0 0 28px; display: flex; align-items: center; gap: 10px; }
.work-hero .section-tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--w-acid); box-shadow: 0 0 0 0 rgba(198, 180, 193, .6); animation: work-pulse 2.2s infinite; }
@keyframes work-pulse { 70% { box-shadow: 0 0 0 12px rgba(198, 180, 193, 0); } 100% { box-shadow: 0 0 0 0 rgba(198, 180, 193, 0); } }
.work-hero h1 {
  margin: 0;
  font-size: clamp(3.2rem, 8.6vw, 9.4rem);
  line-height: .9;
  letter-spacing: -.055em;
  font-weight: 700;
}
.work-hero h1 em { display: block; color: var(--w-acid); }
.work-hero h1 .hero-strike { position: relative; display: inline-block; color: transparent; -webkit-text-stroke: 1.5px var(--w-paper); }
.hero-side p { margin: 0 0 28px; font-size: clamp(1rem, 1.2vw, 1.12rem); line-height: 1.7; color: var(--w-muted-dark); max-width: 42ch; }
.hero-side p b { color: var(--w-paper); font-weight: 600; }
.access-pill {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px 16px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--w-acid);
  color: var(--w-ink);
  font: 700 .78rem/1 var(--sans);
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .3s var(--w-ease), box-shadow .3s var(--w-ease);
  box-shadow: 0 0 0 0 rgba(198, 180, 193, .35);
}
.access-pill:hover { transform: translateY(-2px); box-shadow: 0 12px 40px -8px rgba(198, 180, 193, .55); }
.access-pill svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.has-work-access .access-pill { background: transparent; color: var(--w-paper); box-shadow: inset 0 0 0 1px var(--w-line-dark); }
.has-work-access .access-pill svg { display: none; }
.signout-link { margin-left: 14px; background: none; border: 0; color: var(--w-muted-dark); font: 500 .74rem var(--mono); text-transform: uppercase; letter-spacing: .08em; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.signout-link:hover { color: var(--w-paper); }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--w-line-dark);
}
.hero-stats div { padding: 22px 20px 0 0; }
.hero-stats div + div { padding-left: 20px; border-left: 1px solid var(--w-line-dark); }
.hero-stats b { display: block; font-family: var(--display); font-size: clamp(2.2rem, 4.4vw, 4.4rem); line-height: 1; letter-spacing: -.05em; font-weight: 600; }
.hero-stats b sup { font-size: .4em; color: var(--w-acid); vertical-align: top; margin-left: 2px; }
.hero-stats div > span { display: block; margin-top: 10px; font: 500 .7rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: .09em; color: var(--w-muted-dark); }

/* -------------------------------------------------------------- rows */

.work-row { position: relative; padding: clamp(72px, 9vw, 140px) var(--gutter-w); }
.row-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(20px, 3vw, 48px);
  align-items: end;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.row-index {
  font-family: var(--display);
  font-size: clamp(4.5rem, 10vw, 10rem);
  line-height: .8;
  font-weight: 700;
  letter-spacing: -.06em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--index-stroke, rgba(244, 238, 230, .45));
}
.row-lab .row-index { --index-stroke: rgba(33, 29, 27, .35); }
.row-head .section-tag { margin: 0 0 14px; }
.row-head h2 { margin: 0; font-size: clamp(2.2rem, 4.6vw, 4.6rem); line-height: .95; letter-spacing: -.045em; font-weight: 600; }
.row-head p:not(.section-tag) { margin: 16px 0 0; max-width: 54ch; line-height: 1.7; }
.row-controls { display: flex; align-items: center; gap: 10px; }
.round-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .25s, color .25s, transform .25s var(--w-ease);
}
.round-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.round-btn:focus-visible { outline: 2px solid var(--w-acid); outline-offset: 3px; }

/* row 1 */
.row-flagship { background: var(--w-ink-2); color: var(--w-paper); }
.row-flagship .section-tag { color: var(--w-acid); }
.row-flagship .row-head p:not(.section-tag) { color: var(--w-muted-dark); }
.row-flagship .round-btn:hover { background: var(--w-acid); color: var(--w-ink); border-color: var(--w-acid); transform: scale(1.06); }
.sq-meter { display: flex; flex-direction: column; gap: 10px; margin-right: 14px; min-width: 110px; }
.sq-count { font: 500 .78rem var(--mono); letter-spacing: .1em; }
.sq-progress { height: 2px; background: var(--w-line-dark); position: relative; overflow: hidden; }
.sq-progress i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--w-acid); transition: width .9s var(--w-ease); }

.sq { outline: none; }
.sq-track { height: clamp(250px, 40vw, 540px); overflow: hidden; touch-action: pan-y; }
.sq-strip { display: flex; height: 100%; width: max-content; transition: transform .95s var(--w-ease); }
.sq-card {
  position: relative;
  isolation: isolate;
  flex: none;
  height: 100%;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: #222;
  cursor: pointer;
  color: var(--w-paper);
  transition: width .95s var(--w-ease), margin-left .95s var(--w-ease), border-radius .95s var(--w-ease), filter .5s;
  filter: saturate(.55) brightness(.62);
}
.sq-card.is-front, .sq-card:hover { filter: none; }
.sq-card:focus-visible { outline: 2px solid var(--w-acid); outline-offset: 3px; }
.sq-strip.is-still, .sq-strip.is-still .sq-card { transition: none !important; }
.sq-card > .cover { position: absolute; top: 0; bottom: 0; left: 50%; width: var(--sq-hero); min-width: 100%; transform: translateX(-50%); }
.sq-label {
  position: absolute;
  inset: auto 0 0 0;
  padding: 80px clamp(16px, 2vw, 28px) clamp(16px, 2vw, 26px);
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  background: linear-gradient(to top, rgba(10, 8, 7, .78), transparent);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s var(--w-ease), transform .7s var(--w-ease);
  pointer-events: none;
}
.sq-card.is-front .sq-label { opacity: 1; transform: none; transition-delay: .25s; }
.sq-label b { font-family: var(--display); font-size: clamp(1.4rem, 2.6vw, 2.6rem); letter-spacing: -.04em; font-weight: 600; line-height: 1; }
.sq-label small { font: 500 .68rem var(--mono); text-transform: uppercase; letter-spacing: .1em; color: rgba(244, 238, 230, .8); white-space: nowrap; }

.sq-copy { display: grid; margin-top: clamp(22px, 3vw, 34px); min-height: 140px; }
.sq-copy-item {
  grid-area: 1 / 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .7s var(--w-ease), transform .7s var(--w-ease), visibility .7s;
}
.sq-copy-item.is-shown { opacity: 1; visibility: visible; transform: none; }
.sq-kicker { margin: 0 0 12px; display: flex; gap: 10px; flex-wrap: wrap; }
.sq-kicker span { font: 500 .66rem/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; padding: 7px 10px; border: 1px solid var(--w-line-dark); border-radius: 999px; }
.sq-kicker span:first-child { background: var(--w-acid); color: var(--w-ink); border-color: var(--w-acid); }
.sq-copy h3 { margin: 0 0 8px; font-size: clamp(1.6rem, 2.6vw, 2.4rem); letter-spacing: -.04em; font-weight: 600; }
.sq-line { margin: 0; max-width: 62ch; font-size: clamp(1rem, 1.2vw, 1.12rem); line-height: 1.6; }
.sq-line strong { font-weight: 600; }
.sq-line span { color: var(--w-muted-dark); }
.sq-action {
  flex: none;
  display: inline-flex;
  gap: 12px;
  align-items: center;
  padding: 15px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--w-paper);
  color: var(--w-ink);
  font: 700 .74rem var(--sans);
  text-transform: uppercase;
  letter-spacing: .08em;
  cursor: pointer;
  transition: background .25s, transform .3s var(--w-ease);
}
.sq-action:hover { background: var(--w-acid); transform: translateY(-2px); }

/* row 2 */
.row-lab { background: var(--w-paper); color: var(--ink); overflow: hidden; }
.row-lab .section-tag { color: var(--w-plum); }
.row-lab .round-btn:hover { background: var(--ink); color: var(--w-paper); transform: scale(1.06); }
.lab-word {
  position: absolute;
  right: -.04em;
  top: clamp(20px, 4vw, 60px);
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(9rem, 26vw, 26rem);
  line-height: .8;
  letter-spacing: -.07em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(33, 29, 27, .1);
  pointer-events: none;
  user-select: none;
}
.ps-hint { display: flex; align-items: center; gap: 12px; font: 500 .7rem var(--mono); text-transform: uppercase; letter-spacing: .1em; color: rgba(33, 29, 27, .6); margin-right: 8px; }
.ps-hint i { display: inline-block; width: 34px; height: 1px; background: currentColor; position: relative; }
.ps-hint i::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }

.ps-stage {
  --ps-card: 300px;
  position: relative;
  height: calc(var(--ps-card) * 1.25 + 120px);
  margin-inline: calc(var(--gutter-w) * -1);
  perspective: 2200px;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}
.ps-stage.is-dragging { cursor: grabbing; }
.ps-strip { position: relative; height: 100%; transform-style: preserve-3d; }
.ps-card {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--ps-card);
  will-change: transform;
  transform-origin: center center;
  outline: none;
}
.ps-num { font-family: var(--display); font-size: 1.5rem; letter-spacing: -.03em; margin-bottom: 10px; height: 1.6rem; overflow: hidden; display: flex; }
.ps-art { position: relative; height: calc(var(--ps-card) * 1.25); border-radius: 14px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(33, 29, 27, .55); transition: transform .5s var(--w-ease); }
.ps-art .cover { position: absolute; inset: 0; }
.ps-card:hover .ps-art, .ps-card:focus-visible .ps-art { transform: translateY(-6px); }
.ps-card:focus-visible .ps-art { outline: 2px solid var(--w-plum); outline-offset: 4px; }
.ps-lock {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(244, 238, 230, .9);
  color: var(--ink);
  backdrop-filter: blur(8px);
}
.ps-lock svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.has-work-access .ps-lock { background: var(--w-acid); }
.has-work-access .ps-lock svg { display: none; }
.has-work-access .ps-lock::after { content: "↗︎"; font-weight: 700; }
.ps-text { margin-top: 12px; }
.ps-title, .ps-desc { display: flex; flex-wrap: wrap; overflow: hidden; }
.ps-title { font-family: var(--display); font-size: 1.2rem; text-transform: uppercase; letter-spacing: .03em; font-weight: 600; line-height: 1.15; }
.ps-desc { margin-top: 6px; font: 500 .7rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: rgba(33, 29, 27, .62); }
.ps-num span, .ps-title span, .ps-desc span {
  display: inline-block;
  opacity: 0;
  transform: translateY(105%);
  transition: opacity .35s var(--w-ease), transform .45s var(--w-ease);
  transition-delay: calc(var(--i) * 14ms);
}
.ps-card:hover :is(.ps-num, .ps-title, .ps-desc) span,
.ps-card:focus-visible :is(.ps-num, .ps-title, .ps-desc) span { opacity: 1; transform: none; }
@media (hover: none) {
  .ps-num span, .ps-title span, .ps-desc span { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------- covers */

.cover {
  display: block;
  overflow: hidden;
  container-type: size;
  background-color: var(--c0);
  background-image:
    radial-gradient(110% 90% at 88% 10%, color-mix(in srgb, var(--c1) 75%, transparent), transparent 56%),
    radial-gradient(80% 70% at 0% 100%, color-mix(in srgb, var(--c2) 42%, transparent), transparent 62%);
}
.cover-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 9cqh 9cqh;
  mask-image: linear-gradient(115deg, transparent 20%, #000 70%);
}
.cover-orb {
  position: absolute;
  width: 62cqh;
  height: 62cqh;
  right: 8cqh;
  top: 12cqh;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--c2) 85%, white), var(--c1) 55%, transparent 72%);
  filter: blur(2px);
  opacity: .85;
  animation: cover-float 9s ease-in-out infinite;
}
.cover-ring {
  position: absolute;
  width: 92cqh;
  height: 92cqh;
  right: -6cqh;
  top: -2cqh;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, .28);
  animation: cover-spin 40s linear infinite;
}
.cover-mono {
  position: absolute;
  left: 6cqh;
  bottom: 2cqh;
  font-family: var(--display);
  font-size: 48cqh;
  line-height: .8;
  font-weight: 700;
  letter-spacing: -.07em;
  color: rgba(244, 238, 230, .94);
  mix-blend-mode: overlay;
}
.cover-kind {
  position: absolute;
  left: 6cqh;
  top: 6cqh;
  font: 500 clamp(.55rem, 3.4cqh, .78rem) var(--mono);
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(244, 238, 230, .78);
}
@keyframes cover-float { 50% { transform: translate(-4cqh, 5cqh) scale(1.06); } }
@keyframes cover-spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------- final CTA */

.work-cta {
  position: relative;
  overflow: hidden;
  padding: clamp(80px, 10vw, 150px) var(--gutter-w);
  background: var(--w-acid);
  color: var(--w-ink);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, .6fr);
  gap: 40px;
  align-items: end;
}
.work-cta .section-tag { margin: 0 0 22px; }
.work-cta h2 { margin: 0; font-size: clamp(2.6rem, 6.4vw, 6.6rem); line-height: .92; letter-spacing: -.055em; font-weight: 700; }
.work-cta p:not(.section-tag) { margin: 0 0 26px; line-height: 1.7; max-width: 40ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-actions a, .cta-actions button {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  padding: 16px 20px;
  border-radius: 999px;
  font: 700 .74rem var(--sans);
  text-transform: uppercase;
  letter-spacing: .08em;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid var(--w-ink);
  background: var(--w-ink);
  color: var(--w-paper);
  transition: transform .3s var(--w-ease);
}
.cta-actions button { background: transparent; color: var(--w-ink); }
.cta-actions :is(a, button):hover { transform: translateY(-2px); }
.cta-sticker {
  position: absolute;
  left: 46%;
  top: 9%;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 18px;
  background: var(--w-ink);
  color: var(--w-acid);
  font: 500 .64rem/1.45 var(--mono);
  text-transform: uppercase;
  letter-spacing: .08em;
  transform: rotate(12deg);
  animation: cover-spin 24s linear infinite reverse;
}

/* ------------------------------------------------------- case drawer */

dialog.case-drawer, dialog.access-dialog { padding: 0; border: 0; max-width: none; max-height: none; }
dialog.case-drawer::backdrop, dialog.access-dialog::backdrop { background: rgba(14, 11, 10, .55); backdrop-filter: blur(6px); }
.case-drawer {
  margin: 0 0 0 auto;
  width: min(660px, 100vw);
  height: 100dvh;
  background: var(--w-paper);
  color: var(--ink);
  box-shadow: -30px 0 80px -20px rgba(0, 0, 0, .35);
}
.case-drawer[open] { animation: drawer-in .6s var(--w-ease); }
@keyframes drawer-in { from { transform: translateX(40px); opacity: 0; } }
.case-shell { height: 100%; display: flex; flex-direction: column; }
.case-bar { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; border-bottom: 1px solid var(--line); font: 500 .7rem var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.case-close { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: transparent; cursor: pointer; font-size: 1.1rem; color: inherit; }
.case-close:hover { background: var(--ink); color: var(--w-paper); }
.case-body { flex: 1; overflow-y: auto; padding: 24px clamp(20px, 4vw, 40px) 48px; overscroll-behavior: contain; }
.case-cover { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; margin-bottom: 26px; }
.case-cover .cover { position: absolute; inset: 0; }
.case-kicker { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; }
.case-kicker span { font: 500 .66rem/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; padding: 7px 10px; border-radius: 999px; border: 1px solid var(--line); }
.case-kicker span:first-child { background: var(--ink); color: var(--w-paper); border-color: var(--ink); }
.case-body h2 { margin: 0 0 10px; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: .95; letter-spacing: -.045em; font-weight: 600; }
.case-headline { margin: 0 0 10px; font-size: 1.2rem; font-weight: 600; line-height: 1.4; }
.case-teaser { margin: 0 0 28px; line-height: 1.7; color: rgba(33, 29, 27, .72); }
.case-locked { position: relative; border-top: 1px solid var(--line); padding-top: 26px; }
.case-full dl { margin: 0; display: grid; gap: 22px; }
.case-full dt { font: 500 .68rem var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--w-plum); margin-bottom: 8px; }
.case-full dd { margin: 0; line-height: 1.7; }
.case-stack { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.case-stack li { padding: 8px 12px; border-radius: 999px; background: rgba(96, 67, 91, .1); font-size: .85rem; font-weight: 600; }
.case-gallery { display: grid; gap: 12px; margin-top: 26px; }
.case-gallery img { width: 100%; border-radius: 10px; display: block; }
.case-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.case-link, .case-walkthrough {
  display: inline-flex; gap: 10px; align-items: center; padding: 14px 18px; border-radius: 999px;
  font: 700 .72rem var(--sans); text-transform: uppercase; letter-spacing: .08em; text-decoration: none; cursor: pointer;
}
.case-link { background: var(--ink); color: var(--w-paper); border: 1.5px solid var(--ink); }
.case-link:hover { background: var(--w-plum); border-color: var(--w-plum); }
.case-walkthrough { background: transparent; border: 1.5px solid var(--ink); color: var(--ink); }
.case-walkthrough:hover:not(:disabled) { background: var(--w-acid); }
.case-walkthrough:disabled { opacity: .7; cursor: default; }
.case-status { margin: 14px 0 0; font-size: .9rem; color: var(--w-plum); min-height: 1.2em; }

.case-ghost { display: grid; gap: 12px; filter: blur(3px); opacity: .55; user-select: none; }
.case-ghost b { font: 500 .68rem var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--w-plum); margin-top: 10px; }
.case-ghost span { display: grid; gap: 8px; }
.case-ghost i { display: block; height: 12px; border-radius: 6px; background: rgba(33, 29, 27, .22); }
.case-ghost .ghost-chips { display: flex; gap: 8px; }
.case-ghost .ghost-chips i { width: 90px; height: 30px; border-radius: 999px; }
.case-gate {
  position: absolute;
  inset: 40px 0 auto 0;
  margin-inline: auto;
  width: min(440px, 100%);
  padding: 28px;
  border-radius: 18px;
  background: var(--w-ink);
  color: var(--w-paper);
  text-align: center;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .5);
}
.gate-icon { width: 52px; height: 52px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: var(--w-acid); color: var(--w-ink); }
.gate-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.case-gate h3 { margin: 0 0 10px; font-size: 1.35rem; letter-spacing: -.03em; font-weight: 600; }
.case-gate p { margin: 0 0 20px; line-height: 1.6; color: var(--w-muted-dark); font-size: .95rem; }
.gate-btn { display: inline-flex; gap: 12px; align-items: center; padding: 15px 20px; border: 0; border-radius: 999px; background: var(--w-acid); color: var(--w-ink); font: 700 .74rem var(--sans); text-transform: uppercase; letter-spacing: .08em; cursor: pointer; }
.gate-btn:hover { transform: translateY(-2px); }

/* ------------------------------------------------------ sign-in modal */

.access-dialog {
  margin: auto;
  width: min(940px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  overflow: auto;
  border-radius: 22px;
  background: var(--w-ink);
  color: var(--w-paper);
  box-shadow: 0 40px 120px -20px rgba(0, 0, 0, .6);
}
.access-dialog[open] { animation: access-in .55s var(--w-ease); }
@keyframes access-in { from { transform: translateY(24px) scale(.98); opacity: 0; } }
.access-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.access-pitch {
  position: relative;
  padding: clamp(28px, 4vw, 48px);
  background: radial-gradient(500px 360px at 0% 0%, rgba(198, 180, 193, .22), transparent 70%), radial-gradient(400px 300px at 100% 100%, rgba(96, 67, 91, .7), transparent 70%), #1a1614;
  display: flex;
  flex-direction: column;
}
.access-pitch .section-tag { color: var(--w-acid); margin: 0 0 22px; }
.access-pitch h2 { margin: 0 0 14px; font-size: clamp(2rem, 3.6vw, 3rem); line-height: .95; letter-spacing: -.045em; font-weight: 600; }
.access-pitch > p { margin: 0 0 24px; color: var(--w-muted-dark); line-height: 1.65; }
.access-perks { list-style: none; margin: 0 0 auto; padding: 0; display: grid; gap: 12px; }
.access-perks li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.5; font-size: .95rem; }
.access-perks li::before { content: "✓"; flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--w-acid); color: var(--w-ink); font-size: .72rem; font-weight: 800; }
.access-project { margin-top: 28px; font: 500 .68rem var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--w-acid); }
.access-form { padding: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-content: start; position: relative; }
.access-form .full { grid-column: 1 / -1; }
.access-form label { display: grid; gap: 7px; font: 500 .66rem var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--w-muted-dark); }
.access-form label b { color: var(--w-acid); font-weight: 500; }
.access-form :is(input, select, textarea) {
  width: 100%;
  padding: 13px 14px;
  border-radius: 10px;
  border: 1px solid var(--w-line-dark);
  background: rgba(244, 238, 230, .05);
  color: var(--w-paper);
  font: 500 .95rem var(--sans);
  text-transform: none;
  letter-spacing: 0;
}
.access-form select option { color: var(--ink); }
.access-form textarea { min-height: 84px; resize: vertical; }
.access-form :is(input, select, textarea):focus { outline: none; border-color: var(--w-acid); box-shadow: 0 0 0 3px rgba(198, 180, 193, .2); }
.access-form .check { display: flex; align-items: flex-start; gap: 10px; text-transform: none; letter-spacing: 0; font: 400 .85rem/1.5 var(--sans); color: var(--w-muted-dark); }
.access-form .check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--w-acid); flex: none; }
.access-submit { margin-top: 6px; display: inline-flex; justify-content: center; gap: 12px; align-items: center; padding: 17px 22px; border: 0; border-radius: 999px; background: var(--w-acid); color: var(--w-ink); font: 700 .8rem var(--sans); text-transform: uppercase; letter-spacing: .08em; cursor: pointer; }
.access-submit:hover { box-shadow: 0 12px 34px -8px rgba(198, 180, 193, .6); }
.access-submit:disabled { opacity: .7; cursor: wait; }
.access-note { margin: 0; font-size: .8rem; color: var(--w-muted-dark); line-height: 1.5; }
.access-status { margin: 0; min-height: 1em; font-size: .85rem; color: var(--w-acid); }
.access-close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--w-line-dark); background: transparent; color: var(--w-paper); cursor: pointer; font-size: 1rem; z-index: 2; }
.access-close:hover { background: var(--w-paper); color: var(--w-ink); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.work-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 120;
  transform: translate(-50%, 20px);
  opacity: 0;
  padding: 14px 20px;
  border-radius: 999px;
  background: var(--w-ink);
  color: var(--w-paper);
  font-size: .9rem;
  font-weight: 600;
  box-shadow: 0 20px 50px -14px rgba(0, 0, 0, .5);
  pointer-events: none;
  transition: opacity .35s, transform .45s var(--w-ease);
  max-width: calc(100vw - 32px);
}
.work-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
html.case-open { overflow: hidden; }

/* -------------------------------------------------------- responsive */

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 22px; }
  .hero-stats div:nth-child(3) { padding-left: 0; border-left: 0; }
  .row-head { grid-template-columns: 1fr; }
  .row-index { font-size: 4.5rem; }
  .row-controls { justify-content: flex-start; }
  .sq-copy-item { flex-direction: column; gap: 18px; }
  .work-cta { grid-template-columns: 1fr; }
  .cta-sticker { display: none; }
  .access-grid { grid-template-columns: 1fr; }
  .access-perks { display: none; }
  .access-pitch > p { margin-bottom: 0; }
}
@media (max-width: 560px) {
  .work-hero { min-height: auto; }
  .work-hero h1 { font-size: clamp(2.9rem, 14vw, 4.2rem); }
  .hero-stats div, .hero-stats div + div { padding: 18px 12px 0 0; }
  .hero-stats div:nth-child(even) { padding-left: 14px; border-left: 1px solid var(--w-line-dark); }
  .sq-track { height: 240px; }
  .sq-label small { display: none; }
  .round-btn { width: 46px; height: 46px; }
  .access-form { grid-template-columns: 1fr; }
  .ps-hint { display: none; }
  .case-gate { inset: 20px 0 auto 0; padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-marquee, .cover-orb, .cover-ring, .cta-sticker, .work-hero .section-tag::before { animation: none; }
  .sq-strip, .sq-card, .sq-copy-item, .sq-label, .ps-art { transition: none !important; }
}

/* New rows sit between the original client cards and research. */
.row-access { margin-top: 24px; display: flex; align-items: center; flex-wrap: wrap; }
.row-flagship .access-pill { box-shadow: none; }
.has-work-access .row-flagship .access-pill { color: var(--w-paper); }
.work-page .project-gallery + .work-row { margin-top: clamp(40px, 6vw, 90px); }
/* styles.css makes every section on this page transparent; the new ones keep their colour. */
.work-page.inner-page main > section.row-flagship { background: var(--w-ink-2); }
.work-page.inner-page main > section.row-lab { background: #f3eaf0; }
.work-page.inner-page main > section.work-cta { background: var(--w-acid); }

/* Real website screenshots, framed as a browser window. */
.cover-site { background: #e9e4dc; display: flex; flex-direction: column; }
.cover-site .site-bar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px;
  background: #1f1b19;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.cover-site .site-bar i { width: 9px; height: 9px; border-radius: 50%; background: #e8653d; }
.cover-site .site-bar i:nth-child(2) { background: #e6b450; }
.cover-site .site-bar i:nth-child(3) { background: #8fbf6a; }
.cover-site .site-bar em {
  margin-left: 10px;
  padding: 3px 10px;
  max-width: 70%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  border-radius: 999px;
  background: rgba(244, 238, 230, .08);
  color: rgba(244, 238, 230, .7);
  font: 500 .66rem/1.3 var(--mono);
  font-style: normal;
}
.cover-site img { position: relative; flex: 1; min-height: 0; width: 100%; object-fit: cover; object-position: top center; display: block; }
.ps-art .cover-site img { object-position: top left; }
.sq-card:not(.is-front) .cover-site .site-bar em { opacity: 0; }
.sq-card > .cover-site { left: 0; width: 100%; min-width: 0; transform: none; }
.sq-card.is-front .sq-label { background: linear-gradient(to top, rgba(10, 8, 7, .9), rgba(10, 8, 7, .35) 60%, transparent); }


/* ---------------------------------------------------------------
   v7: site colour theme, compact client cards, smaller new rows
   --------------------------------------------------------------- */
.work-page .row-flagship .section-tag, .work-page .work-hero .section-tag { color: #c6b4c1; }
.work-page .sq-action:hover, .work-page .access-pill:hover { background: #c6b4c1; }
.work-page .access-pill, .work-page .gate-btn, .work-page .access-submit { background: #c6b4c1; color: #211d1b; }
.work-page .work-cta { background: #60435b; color: #f4eee6; }
.work-page.inner-page main > section.work-cta { background: #60435b; }
.work-page .work-cta .section-tag { color: #c6b4c1; }
.work-page .cta-actions a { background: #f4eee6; color: #211d1b; border-color: #f4eee6; }
.work-page .cta-actions button { color: #f4eee6; border-color: #f4eee6; }
.work-page .cta-sticker { background: #c6b4c1; color: #211d1b; }
.work-page .ps-lock { background: rgba(244, 238, 230, .92); }
.work-page.has-work-access .ps-lock { background: #c6b4c1; }

/* Client cards: even grid, smaller visuals. */
.work-page.connected-site.projects-page .project-gallery {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(36px, 4vw, 56px) clamp(18px, 2vw, 28px);
  width: min(calc(100% - 40px), 1240px);
  margin-inline: auto;
  padding-inline: 0;
}
.work-page .project-gallery .project-card,
.work-page .project-gallery #maisan-sale { display: block; grid-column: auto; padding-bottom: 0; border-bottom: 0; }
.work-page .project-gallery .project-visual,
.work-page .project-gallery #maisan-sale .project-visual { aspect-ratio: 16 / 10; height: auto; min-height: 0; position: relative; overflow: hidden; }
.work-page .project-gallery .project-visual > b { font-size: clamp(2.6rem, 5vw, 4.4rem); }
.work-page .project-gallery .project-slides img { object-fit: cover; object-position: top; }
.work-page .project-gallery .project-meta { min-height: 0; padding-top: 18px; }
.work-page .project-gallery .project-meta::before { margin-bottom: 14px; padding-bottom: 12px; }
.work-page .project-gallery .project-meta h2,
.work-page .project-gallery #maisan-sale .project-meta h2 { font-size: clamp(1.5rem, 2vw, 2rem); margin: 8px 0 10px; }
.work-page .project-gallery .project-meta > p { font-size: .95rem; line-height: 1.6; }
.work-page .project-gallery .project-context { margin-top: 18px; }

/* Real screenshots on client cards. */
.work-page .project-visual .project-shot {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  transition: transform .6s var(--w-ease);
}
.work-page .project-card:hover .project-shot { transform: scale(1.03); }
.work-page .project-visual.has-shot > :not(.project-shot):not(i) { visibility: hidden; }
.work-page .project-visual.has-shot > i {
  position: absolute; z-index: 2; right: 12px; bottom: 12px; padding: 7px 10px;
  background: rgba(33, 29, 27, .78); color: #f4eee6; border-radius: 999px;
  font: 600 .62rem var(--mono); letter-spacing: .06em; visibility: visible;
}

/* New rows: smaller. */
.work-page .sq-track { height: clamp(220px, 30vw, 420px); }
.work-page .ps-art { height: calc(var(--ps-card) * .68); }
.work-page .ps-stage { height: calc(var(--ps-card) * .68 + 130px); }
.work-page .work-row { padding-block: clamp(56px, 7vw, 104px); }
.work-page .row-head { margin-bottom: clamp(28px, 4vw, 48px); }
.work-page .row-head h2 { font-size: clamp(2rem, 4vw, 3.6rem); }
.work-page .row-index { font-size: clamp(3.6rem, 8vw, 7.4rem); }

@media (max-width: 1100px) {
  .work-page.connected-site.projects-page .project-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .work-page.connected-site.projects-page .project-gallery { grid-template-columns: 1fr; width: calc(100% - 32px); gap: 40px; }
  .work-page .sq-track { height: 220px; }
  .work-page .row-index { display: none; }
  .work-page .sq-copy-item { gap: 14px; }
  .work-page .sq-line { font-size: .95rem; }
  .work-page .cta-actions { flex-direction: column; align-items: stretch; }
  .work-page .cta-actions a, .work-page .cta-actions button { justify-content: center; }
}


/* ---------------------------------------------------------------
   v8: one margin for the whole page (same as the hero), Maisan on top
   --------------------------------------------------------------- */
.work-page { --gutter-w: var(--gutter); }
.work-page .work-row, .work-page .work-cta { padding-inline: var(--gutter); }
.work-page .ps-stage { margin-inline: calc(var(--gutter) * -1); }

.work-page.connected-site.projects-page .project-gallery {
  width: 100%;
  margin: 0;
  padding-inline: var(--gutter);
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.work-page .project-gallery .project-card { grid-column: span 2; }
.work-page .project-gallery .project-card:nth-last-child(-n+2) { grid-column: span 3; }

/* Maisan Sale: wide feature card on top, as before (but shorter). */
.work-page .project-gallery #maisan-sale {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .95fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  padding-bottom: clamp(36px, 4vw, 56px);
  border-bottom: 1px solid #60435b45;
}
.work-page .project-gallery #maisan-sale .project-visual { aspect-ratio: 16 / 9; }
.work-page .project-gallery #maisan-sale .project-meta { padding-top: 0; }
.work-page .project-gallery #maisan-sale .project-meta h2 { font-size: clamp(2rem, 3.2vw, 3rem); }

@media (max-width: 1100px) {
  .work-page.connected-site.projects-page .project-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-page .project-gallery .project-card,
  .work-page .project-gallery .project-card:nth-last-child(-n+2) { grid-column: span 1; }
  .work-page .project-gallery .project-card:last-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .work-page .project-gallery #maisan-sale { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .work-page.connected-site.projects-page .project-gallery { grid-template-columns: 1fr; width: 100%; padding-inline: var(--gutter); }
  .work-page .project-gallery .project-card,
  .work-page .project-gallery .project-card:last-child { grid-column: 1 / -1; }
}

/* v9: seven client cards = Maisan on top + an even 3 x 2 grid. */
.work-page .project-gallery .project-card:nth-last-child(-n+2) { grid-column: span 2; }
@media (max-width: 1100px) {
  .work-page .project-gallery .project-card:last-child { grid-column: span 1; }
}
@media (max-width: 680px) {
  .work-page .project-gallery .project-card:last-child { grid-column: 1 / -1; }
}
.work-page #construction-demo .project-visual { background: #121212; }

/* v11 ---------------------------------------------------------------- */
/* Rotating pictures on a card (ClearPath AI). Without JS only the first shows. */
.work-page .project-visual.has-shot .project-shot + .project-shot { display: none; }
.work-page .project-visual.has-shot.rotating .project-shot { display: block; opacity: 0; transition: opacity .8s ease, transform .6s var(--w-ease); }
.work-page .project-visual.has-shot.rotating .project-shot.is-on { opacity: 1; }

/* Card highlight when reached from the strip. */
@keyframes card-flash { 0%, 100% { box-shadow: 0 0 0 0 rgba(96, 67, 91, 0); } 30% { box-shadow: 0 0 0 6px rgba(96, 67, 91, .35); } }
.work-page .project-card.is-flash .project-visual { animation: card-flash 1.6s ease 2; }

/* Strip badges: arrow for public work, padlock for products. */
.work-page .ps-lock.is-open { background: #60435b; color: #f4eee6; font-weight: 700; }

/* Bizzapt badge in the private-work section. */
.work-page .cta-badge {
  position: absolute; right: clamp(16px, 5vw, 80px); top: clamp(24px, 6vw, 70px);
  width: clamp(120px, 12vw, 160px); aspect-ratio: 1; border-radius: 50%;
  background: #f4eee6; display: grid; place-items: center;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .55);
}
.work-page .cta-badge svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: cover-spin 28s linear infinite; }
.work-page .cta-badge text { font: 700 13.5px var(--mono); letter-spacing: 2.6px; fill: #60435b; }
.work-page .cta-badge img { width: 44%; height: auto; }
.work-page .cta-sticker { display: none; }
@media (max-width: 960px) { .work-page .cta-badge { position: relative; right: auto; top: auto; margin-bottom: 8px; width: 120px; } }
@media (prefers-reduced-motion: reduce) { .work-page .cta-badge svg { animation: none; } }

.work-page .cta-badge { position: relative; right: auto; top: auto; display: grid; margin: 0 0 28px; width: clamp(110px, 9vw, 132px); }
.work-page .work-cta { align-items: center; }

/* Walkthrough request: second action in the locked view + confirmation */
.gate-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.work-page .gate-btn.gate-btn-alt { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.case-status:not(:empty) { margin-top: 18px; padding: 16px 18px; border-left: 3px solid var(--w-plum, #60435b); background: rgba(96, 67, 91, .07); color: #211d1b; line-height: 1.6; font-size: .95rem; }
.case-status strong { color: #60435b; }
.walk-dialog .access-pitch strong { color: inherit; }

/* ===== Inverted colours for the moon/sun switch (generated from the rules above — keep at end of file) ===== */
html[data-theme="inverted"] .work-page { --w-ink-2: #f2ece3; --w-muted-dark: rgba(56, 45, 30, 0.62); }
html[data-theme="inverted"] .work-hero { color: #382d1e; background-color: #f5efe8; background-image: radial-gradient(640px circle at var(--mx, 72%) var(--my, 28%), rgba(198, 180, 193, .16), transparent 62%),
    radial-gradient(900px 520px at 0% 100%, rgba(96, 67, 91, .55), transparent 70%); }
html[data-theme="inverted"] .work-hero::after { background-image: linear-gradient(rgba(39, 28, 36, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(39, 28, 36, 0.05) 1px, transparent 1px); }
html[data-theme="inverted"] .hero-marquee { color: transparent; }
html[data-theme="inverted"] .work-hero .section-tag { color: #4f3c4a; }
html[data-theme="inverted"] .work-hero .section-tag::before { background: #c6b4c1; }
html[data-theme="inverted"] .work-hero h1 em { color: #4f3c4a; }
html[data-theme="inverted"] .work-hero h1 .hero-strike { color: transparent; }
html[data-theme="inverted"] .hero-side p { color: var(--w-muted-dark); }
html[data-theme="inverted"] .hero-side p b { color: #382d1e; }
html[data-theme="inverted"] .access-pill { border: 0; background: #c6b4c1; color: var(--w-ink); }
html[data-theme="inverted"] .access-pill svg { fill: none; stroke: currentColor; }
html[data-theme="inverted"] .has-work-access .access-pill { background: transparent; color: #382d1e; }
html[data-theme="inverted"] .signout-link { background: none; border: 0; color: var(--w-muted-dark); }
html[data-theme="inverted"] .signout-link:hover { color: #382d1e; }
html[data-theme="inverted"] .hero-stats { border-top: 1px solid rgba(56, 45, 30, 0.14); }
html[data-theme="inverted"] .hero-stats div + div { border-left: 1px solid rgba(56, 45, 30, 0.14); }
html[data-theme="inverted"] .hero-stats b sup { color: #4f3c4a; }
html[data-theme="inverted"] .hero-stats div > span { color: var(--w-muted-dark); }
html[data-theme="inverted"] .row-index { color: transparent; }
html[data-theme="inverted"] .round-btn { border: 1px solid currentColor; background: transparent; color: inherit; }
html[data-theme="inverted"] .round-btn svg { fill: none; stroke: currentColor; }
html[data-theme="inverted"] .round-btn:focus-visible { outline: 2px solid #4f3c4a; }
html[data-theme="inverted"] .row-flagship { background: var(--w-ink-2); color: #382d1e; }
html[data-theme="inverted"] .row-flagship .section-tag { color: #4f3c4a; }
html[data-theme="inverted"] .row-flagship .row-head p:not(.section-tag) { color: var(--w-muted-dark); }
html[data-theme="inverted"] .row-flagship .round-btn:hover { background: #c6b4c1; color: var(--w-ink); border-color: #4f3c4a; }
html[data-theme="inverted"] .sq-progress { background: rgba(39, 28, 36, 0.14); }
html[data-theme="inverted"] .sq-progress i { background: #c6b4c1; }
html[data-theme="inverted"] .sq { outline: none; }
html[data-theme="inverted"] .sq-card { border: 0; background: #f2ebe1; color: #382d1e; }
html[data-theme="inverted"] .sq-card:focus-visible { outline: 2px solid #4f3c4a; }
html[data-theme="inverted"] .sq-label { background: linear-gradient(to top, rgba(246, 242, 236, 0.78), transparent); }
html[data-theme="inverted"] .sq-label small { color: rgba(56, 45, 30, 0.8); }
html[data-theme="inverted"] .sq-kicker span { border: 1px solid rgba(56, 45, 30, 0.14); }
html[data-theme="inverted"] .sq-kicker span:first-child { background: #c6b4c1; color: var(--w-ink); border-color: #4f3c4a; }
html[data-theme="inverted"] .sq-line span { color: var(--w-muted-dark); }
html[data-theme="inverted"] .sq-action { border: 0; background: #271c24; color: #e6e1e0; }
html[data-theme="inverted"] .sq-action:hover { background: #c6b4c1; }
html[data-theme="inverted"] .row-lab { background: #271c24; color: #e1dddb; }
html[data-theme="inverted"] .row-lab .section-tag { color: #d2bfcf; }
html[data-theme="inverted"] .row-lab .round-btn:hover { background: #f2ece3; color: #382d1e; }
html[data-theme="inverted"] .lab-word { color: transparent; }
html[data-theme="inverted"] .ps-hint { color: rgba(225, 221, 219, 0.6); }
html[data-theme="inverted"] .ps-hint i { background: currentColor; }
html[data-theme="inverted"] .ps-hint i::after { border-top: 1px solid currentColor; border-right: 1px solid currentColor; }
html[data-theme="inverted"] .ps-card { outline: none; }
html[data-theme="inverted"] .ps-card:focus-visible .ps-art { outline: 2px solid #d2bfcf; }
html[data-theme="inverted"] .ps-lock { background: rgba(39, 28, 36, 0.9); color: #e1dddb; }
html[data-theme="inverted"] .ps-lock svg { fill: none; stroke: currentColor; }
html[data-theme="inverted"] .has-work-access .ps-lock { background: #c6b4c1; }
html[data-theme="inverted"] .ps-desc { color: rgba(225, 221, 219, 0.62); }
html[data-theme="inverted"] .cover { background-color: var(--c0); background-image: radial-gradient(110% 90% at 88% 10%, color-mix(in srgb, var(--c1) 75%, transparent), transparent 56%),
    radial-gradient(80% 70% at 0% 100%, color-mix(in srgb, var(--c2) 42%, transparent), transparent 62%); }
html[data-theme="inverted"] .cover-grid { background-image: linear-gradient(rgba(46, 33, 43, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(46, 33, 43, 0.07) 1px, transparent 1px); }
html[data-theme="inverted"] .cover-orb { background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--c2) 85%, #2e212b), var(--c1) 55%, transparent 72%); }
html[data-theme="inverted"] .cover-ring { border: 1px dashed rgba(33, 33, 33, 0.28); }
html[data-theme="inverted"] .cover-mono { color: rgba(56, 45, 30, 0.94); }
html[data-theme="inverted"] .cover-kind { color: rgba(56, 45, 30, 0.78); }
html[data-theme="inverted"] .work-cta { background: #c6b4c1; color: var(--w-ink); }
html[data-theme="inverted"] .cta-actions a,
html[data-theme="inverted"] .cta-actions button { border: 1.5px solid #e6e1e0; background: #f5efe8; color: #382d1e; }
html[data-theme="inverted"] .cta-actions button { background: transparent; color: #e6e1e0; }
html[data-theme="inverted"] .cta-sticker { background: #f5efe8; color: #4f3c4a; }
html[data-theme="inverted"] dialog.case-drawer,
html[data-theme="inverted"] dialog.access-dialog { border: 0; }
html[data-theme="inverted"] dialog.case-drawer::backdrop,
html[data-theme="inverted"] dialog.access-dialog::backdrop { background: rgba(246, 241, 234, 0.55); }
html[data-theme="inverted"] .case-drawer { background: #271c24; color: #e1dddb; }
html[data-theme="inverted"] .case-bar { border-bottom: 1px solid rgba(225, 221, 219, 0.22); }
html[data-theme="inverted"] .case-close { border: 1px solid rgba(225, 221, 219, 0.22); background: transparent; color: inherit; }
html[data-theme="inverted"] .case-close:hover { background: #f2ece3; color: #382d1e; }
html[data-theme="inverted"] .case-kicker span { border: 1px solid rgba(225, 221, 219, 0.22); }
html[data-theme="inverted"] .case-kicker span:first-child { background: #f2ece3; color: #382d1e; border-color: #e1dddb; }
html[data-theme="inverted"] .case-teaser { color: rgba(225, 221, 219, 0.72); }
html[data-theme="inverted"] .case-locked { border-top: 1px solid rgba(225, 221, 219, 0.22); }
html[data-theme="inverted"] .case-full dt { color: #d2bfcf; }
html[data-theme="inverted"] .case-stack li { background: rgba(96, 67, 91, .1); }
html[data-theme="inverted"] .case-link { background: #f2ece3; color: #382d1e; border: 1.5px solid #e1dddb; }
html[data-theme="inverted"] .case-link:hover { background: #60435b; border-color: #d2bfcf; }
html[data-theme="inverted"] .case-walkthrough { background: transparent; border: 1.5px solid #e1dddb; color: #e1dddb; }
html[data-theme="inverted"] .case-walkthrough:hover:not(:disabled) { background: #c6b4c1; }
html[data-theme="inverted"] .case-status { color: #d2bfcf; }
html[data-theme="inverted"] .case-ghost b { color: #d2bfcf; }
html[data-theme="inverted"] .case-ghost i { background: rgba(242, 236, 227, 0.22); }
html[data-theme="inverted"] .case-gate { background: #f5efe8; color: #382d1e; }
html[data-theme="inverted"] .gate-icon { background: #c6b4c1; color: var(--w-ink); }
html[data-theme="inverted"] .gate-icon svg { fill: none; stroke: currentColor; }
html[data-theme="inverted"] .case-gate p { color: var(--w-muted-dark); }
html[data-theme="inverted"] .gate-btn { border: 0; background: #c6b4c1; color: var(--w-ink); }
html[data-theme="inverted"] .access-dialog { background: #f5efe8; color: #382d1e; }
html[data-theme="inverted"] .access-pitch { background: radial-gradient(500px 360px at 0% 0%, rgba(198, 180, 193, .22), transparent 70%), radial-gradient(400px 300px at 100% 100%, rgba(96, 67, 91, .7), transparent 70%), #f4eee6; }
html[data-theme="inverted"] .access-pitch .section-tag { color: #4f3c4a; }
html[data-theme="inverted"] .access-pitch > p { color: var(--w-muted-dark); }
html[data-theme="inverted"] .access-perks li::before { background: #c6b4c1; color: var(--w-ink); }
html[data-theme="inverted"] .access-project { color: #4f3c4a; }
html[data-theme="inverted"] .access-form label { color: var(--w-muted-dark); }
html[data-theme="inverted"] .access-form label b { color: #4f3c4a; }
html[data-theme="inverted"] .access-form :is(input, select, textarea) { border: 1px solid rgba(56, 45, 30, 0.14); background: rgba(39, 28, 36, 0.05); color: #382d1e; }
html[data-theme="inverted"] .access-form select option { color: #e1dddb; }
html[data-theme="inverted"] .access-form :is(input, select, textarea):focus { outline: none; border-color: #4f3c4a; }
html[data-theme="inverted"] .access-form .check { color: var(--w-muted-dark); }
html[data-theme="inverted"] .access-submit { border: 0; background: #c6b4c1; color: var(--w-ink); }
html[data-theme="inverted"] .access-note { color: var(--w-muted-dark); }
html[data-theme="inverted"] .access-status { color: #4f3c4a; }
html[data-theme="inverted"] .access-close { border: 1px solid rgba(56, 45, 30, 0.14); background: transparent; color: #382d1e; }
html[data-theme="inverted"] .access-close:hover { background: #271c24; color: #e6e1e0; }
html[data-theme="inverted"] .work-toast { background: #f5efe8; color: #382d1e; }
@media (max-width: 960px) {
  html[data-theme="inverted"] .hero-stats div:nth-child(3) { border-left: 0; }
}
@media (max-width: 560px) {
  html[data-theme="inverted"] .hero-stats div:nth-child(even) { border-left: 1px solid rgba(56, 45, 30, 0.14); }
}
html[data-theme="inverted"] .has-work-access .row-flagship .access-pill { color: #382d1e; }
html[data-theme="inverted"] .work-page.inner-page main > section.row-flagship { background: var(--w-ink-2); }
html[data-theme="inverted"] .work-page.inner-page main > section.row-lab { background: #271c24; }
html[data-theme="inverted"] .work-page.inner-page main > section.work-cta { background: #c6b4c1; }
html[data-theme="inverted"] .cover-site { background: #221920; }
html[data-theme="inverted"] .cover-site .site-bar { background: #f3ece4; border-bottom: 1px solid rgba(33, 33, 33, 0.08); }
html[data-theme="inverted"] .cover-site .site-bar i { background: #e8653d; }
html[data-theme="inverted"] .cover-site .site-bar i:nth-child(2) { background: #e6b450; }
html[data-theme="inverted"] .cover-site .site-bar i:nth-child(3) { background: #8fbf6a; }
html[data-theme="inverted"] .cover-site .site-bar em { background: rgba(39, 28, 36, 0.08); color: rgba(56, 45, 30, 0.7); }
html[data-theme="inverted"] .sq-card.is-front .sq-label { background: linear-gradient(to top, rgba(246, 242, 236, 0.9), rgba(246, 242, 236, 0.35) 60%, transparent); }
html[data-theme="inverted"] .work-page .row-flagship .section-tag,
html[data-theme="inverted"] .work-page .work-hero .section-tag { color: #4f3c4a; }
html[data-theme="inverted"] .work-page .sq-action:hover,
html[data-theme="inverted"] .work-page .access-pill:hover { background: #c6b4c1; }
html[data-theme="inverted"] .work-page .access-pill,
html[data-theme="inverted"] .work-page .gate-btn,
html[data-theme="inverted"] .work-page .access-submit { background: #c6b4c1; color: #211d1b; }
html[data-theme="inverted"] .work-page .work-cta { background: #60435b; color: #f4eee6; }
html[data-theme="inverted"] .work-page.inner-page main > section.work-cta { background: #60435b; }
html[data-theme="inverted"] .work-page .work-cta .section-tag { color: #4f3c4a; }
html[data-theme="inverted"] .work-page .cta-actions a { background: #271c24; color: #e1dddb; border-color: #382d1e; }
html[data-theme="inverted"] .work-page .cta-actions button { color: #382d1e; border-color: #382d1e; }
html[data-theme="inverted"] .work-page .cta-sticker { background: #c6b4c1; color: #211d1b; }
html[data-theme="inverted"] .work-page .ps-lock { background: rgba(39, 28, 36, 0.92); }
html[data-theme="inverted"] .work-page.has-work-access .ps-lock { background: #c6b4c1; }
html[data-theme="inverted"] .work-page .project-gallery .project-card,
html[data-theme="inverted"] .work-page .project-gallery #maisan-sale { border-bottom: 0; }
html[data-theme="inverted"] .work-page .project-visual.has-shot > i { background: rgba(242, 236, 227, 0.78); color: #382d1e; }
html[data-theme="inverted"] .work-page .project-gallery #maisan-sale { border-bottom: 1px solid rgba(210, 191, 207, 0.271); }
html[data-theme="inverted"] .work-page #construction-demo .project-visual { background: #f5efe8; }
html[data-theme="inverted"] .work-page .ps-lock.is-open { background: #60435b; color: #f4eee6; }
html[data-theme="inverted"] .work-page .cta-badge { background: #271c24; }
html[data-theme="inverted"] .work-page .cta-badge text { fill: #d2bfcf; }
html[data-theme="inverted"] .work-page .gate-btn.gate-btn-alt { background: transparent; color: inherit; }
html[data-theme="inverted"] .case-status:not(:empty) { border-left: 3px solid #d2bfcf; background: rgba(96, 67, 91, .07); color: #e1dddb; }
html[data-theme="inverted"] .case-status strong { color: #d2bfcf; }
html[data-theme="inverted"] .walk-dialog .access-pitch strong { color: inherit; }
