/* Novamira Design (/design/): "Design Page Studio" scoped identity.
   Bone-light studio look, Novamira yellow, Montserrat + JetBrains Mono only.
   Signature motion: pinned horizontal strip, sticky-stacking cards,
   an SVG line that strokes on, a floating closing word. */

.dps {
  --bone: #f4f2ee;
  --bone2: #eae6de;
  --ink: #101013;
  --ink-soft: #57544d;
  --muted: #8a8578;
  --y: #f8ca50;
  --y-ink: #1a1400;
  --rule: #d8d3c8;
  background: var(--bone);
  color: var(--ink);
  overflow-x: clip;
}
.dps .dps-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

/* Reveal (uses the theme .reveal + is-visible) */
.dps .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1);
}
.dps .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* —— Hero (split: text left, video right, metadata strip under) —— */
.dps-hero {
  padding-top: calc(var(--space-3xl) + 96px);
  padding-bottom: var(--space-3xl);
  position: relative;
  overflow: hidden;
}
/* Oversized ghost mark behind the text, a design-studio flourish */
.dps-hero::before {
  content: "";
  position: absolute;
  right: -6vw;
  bottom: -30%;
  width: 46vw;
  height: 46vw;
  background: radial-gradient(circle at 50% 50%, rgba(248,202,80,.22), rgba(248,202,80,0) 62%);
  pointer-events: none;
  z-index: 0;
}
.dps-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
/* Hero stage: one browser window, the page scrolls itself top to bottom */
.dps-hero__stage {
  position: relative;
  perspective: 1600px;
  min-height: 360px;
}
.dps-win--solo {
  position: relative;
  width: 100%;
  border: 2px solid var(--ink);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 16px 16px 0 var(--y);
  transform: rotateY(-4deg) rotateX(2deg);
}
.dps-scroller {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bone);
}
.dps-page {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  opacity: 0;
  transition: opacity .6s ease;
  will-change: transform;
}
.dps-page.is-on { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .dps-page { transition: none; transform: none !important; }
}
@media (max-width: 900px) {
  .dps-win--solo { transform: none; }
}
.dps-win {
  position: absolute;
  border: 2px solid var(--ink);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  transform-style: preserve-3d;
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.dps-win__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 14px;
  background: #1a1a1e;
  border-bottom: 1px solid #000;
}
.dps-win__bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #3a3a42;
}
.dps-win__bar span:first-child { background: #f8ca50; }
.dps-win__view {
  position: relative;
  aspect-ratio: 600 / 380;
}
.dps-win__s {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  transition: opacity .7s ease;
}
.dps-win__s.is-on { opacity: 1; }

.dps-win--front {
  left: 4%;
  bottom: 0;
  width: 76%;
  z-index: 2;
  box-shadow: 16px 16px 0 var(--y);
  transform: rotateY(9deg) rotateX(3deg);
  animation: dps-spin-front 9s ease-in-out infinite;
}
.dps-win--back {
  right: 0;
  top: 0;
  width: 60%;
  z-index: 1;
  opacity: .96;
  box-shadow: 10px 10px 0 rgba(16,16,19,.14);
  transform: rotateY(9deg) rotateX(3deg) translateZ(-40px);
  animation: dps-spin-back 9s ease-in-out infinite;
  animation-delay: -3s;
}
@keyframes dps-spin-front {
  0%, 100% { transform: rotateY(5deg) rotateX(4deg) rotateZ(-1.5deg) translateY(6px); }
  50% { transform: rotateY(16deg) rotateX(1deg) rotateZ(1.5deg) translateY(-10px); }
}
@keyframes dps-spin-back {
  0%, 100% { transform: rotateY(15deg) rotateX(4deg) rotateZ(1deg) translateZ(-40px) translateY(-6px); }
  50% { transform: rotateY(4deg) rotateX(1deg) rotateZ(-1deg) translateZ(-40px) translateY(8px); }
}
@media (max-width: 900px) {
  .dps-hero__stage {
    min-height: 300px;
    perspective: none;
  }
  .dps-win { transform: none !important; }
  .dps-win--front { position: relative; width: 100%; left: 0; }
  .dps-win--back { display: none; }
}


/* Video, own section */
.dps-film {
  padding-bottom: var(--space-3xl);
}
.dps-film__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 6px;
  border: 2px solid var(--ink);
  box-shadow: 12px 12px 0 var(--y) !important;
  max-width: 980px;
  margin: 0 auto;
}

/* Free/Pro strip band */
.dps-strip {
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--rule);
}
.dps-strip__p {
  max-width: 74ch;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink-soft);
}
.dps-strip__p strong {
  color: var(--ink);
  font-weight: 700;
}
.dps-hero__strip {
  position: relative;
  z-index: 1;
  margin-top: var(--space-2xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--rule);
  max-width: 82ch;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink-soft);
}
.dps-hero__strip strong {
  color: var(--ink);
  font-weight: 700;
}
@media (max-width: 900px) {
  .dps-hero__grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  .dps-hero::before { display: none; }
  .dps-hero__strip-tag { margin-left: 0; }
}
.dps-mark {
  color: var(--ink);
  max-width: 340px;
  margin-bottom: var(--space-lg);
}
.dps-hero__title {
  font-size: clamp(2.6rem, 5.5vw, 4.6rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -.03em;
  max-width: 12ch;
}
.dps-mk {
  background: var(--y);
  color: var(--y-ink);
  padding: .02em .12em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.dps-hero__sub {
  margin-top: var(--space-lg);
  max-width: 40ch;
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  line-height: 1.5;
  color: var(--ink-soft);
}

/* Pill CTA */
.dps-pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: var(--space-lg);
  background: var(--ink);
  color: var(--bone);
  font-weight: 700;
  font-size: .95rem;
  padding: .8em 1.6em;
  border-radius: 999px;
  text-decoration: none;
  transition: transform .18s cubic-bezier(.34,1.56,.64,1), background .18s;
}
.dps-pill:hover {
  transform: translateY(-3px);
  color: var(--bone);
}
.dps-pill--big {
  font-size: 1.05rem;
  padding: .95em 1.9em;
}

/* —— Film —— */
.dps-film {
  padding-top: var(--space-xl);
  padding-bottom: calc(var(--space-3xl) + var(--space-lg));
}
.dps-film__eyebrow {
  max-width: 980px;
  margin: 0 auto var(--space-md);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.dps-film__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 6px;
  border: 2px solid var(--ink);
  box-shadow: 12px 12px 0 var(--y) !important;
  max-width: 980px;
  margin: 0 auto;
}
.dps-film__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
@media (max-width: 900px) {
  .dps-film { padding-bottom: var(--space-3xl); }
  .dps-film__frame { box-shadow: 8px 8px 0 var(--y); }
}

/* —— How it works: simple contained step sequence, dark —— */
.dps-how {
  background: var(--panel-dark, #101013);
  color: var(--bone);
  padding: calc(var(--space-3xl) + 1rem) 0;
}
.dps-how__t {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -.02em;
  border-top: 2px solid var(--bone);
  padding-top: var(--space-md);
  margin-bottom: var(--space-2xl);
}
/* Big rotating prompt above the flow */
.dps-bigprompt {
  margin: 0 0 var(--space-2xl);
  max-width: 24ch;
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.02em;
}
.dps-rot {
  position: relative;
  display: inline-grid;
  vertical-align: top;
  justify-items: start;
  width: max-content;
}
.dps-rot__w {
  grid-area: 1 / 1;
  color: var(--y);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(.25em);
  transition: opacity .35s ease, transform .35s ease;
}
.dps-rot__w.is-on {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .dps-rot__w { transition: none; }
  .dps-win__s { transition: none; }
  .dps-win { transition: none; }
}
.dps-shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.dps-shot {
  margin: 0;
}
.dps-shot__img {
  border: 1px solid #2a2a30;
  border-radius: 6px;
  overflow: hidden;
  background: #0d0d0f;
}
.dps-shot__img svg {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 5;
}
.dps-shot__prompt {
  display: flex;
  align-items: center;
  aspect-ratio: 8 / 5;
  padding: 1.6rem 1.5rem;
  background: #0d0d0f;
  border: 1px solid #2a2a30;
}
.dps-cardprompt {
  margin: 0;
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--bone);
}
.dps-cardprompt .dps-rot { display: inline-grid; }
.dps-shot__img--real {
  border: 1px solid #2a2a30;
}
.dps-shot__img--real .dps-shot__real {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 5;
  object-fit: cover;
  object-position: top center;
}
.dps-shot figcaption h3 {
  margin-top: 1.1rem;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -.015em;
}
.dps-shot figcaption p {
  margin-top: .5rem;
  color: #a8a397;
  font-size: .95rem;
  line-height: 1.55;
}
@media (max-width: 860px) {
  .dps-shots {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* Closing disclaimer */
.dps-cta__disc {
  margin: var(--space-md) auto 0;
  max-width: 60ch;
  font-size: .85rem;
  line-height: 1.6;
  color: #7d786d;
}

/* —— What a direction holds: a style-guide sheet —— */
.dps-system {
  padding: var(--space-3xl) 0;
}
.dps-system__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.dps-system__t {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.025em;
  max-width: 16ch;
}
.dps-system__intro p {
  margin-top: var(--space-md);
  color: var(--ink-soft);
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 46ch;
}
.dps-sheet {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: .5rem 2rem;
  box-shadow: 12px 12px 0 var(--y);
}
.dps-sheet__row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1.5rem;
  align-items: center;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--rule);
}
.dps-sheet__row:last-child {
  border-bottom: 0;
}
.dps-sheet__k {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.dps-sheet__v {
  font-size: 1rem;
  color: var(--ink);
}
.dps-sheet__v b {
  font-weight: 800;
}
.dps-sheet__sw {
  display: inline-flex;
  gap: .5rem;
}
.dps-sheet__sw i {
  width: 30px;
  height: 30px;
  border-radius: 4px;
  border: 1px solid var(--rule);
  display: block;
}
.dps-sheet__scale {
  display: inline-flex;
  gap: .5rem;
  align-items: flex-end;
}
.dps-sheet__scale i {
  height: 30px;
  background: var(--ink);
  border-radius: 2px;
  display: block;
}
@media (max-width: 860px) {
  .dps-system__grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
}

/* —— Opening: headline wrapped by a masonry of produced pages —— */
.dps-open {
  padding-top: calc(var(--space-2xl) + 84px);
  padding-bottom: var(--space-3xl);
}
.dps-open__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-areas:
    "text text c"
    "a    b    c";
  gap: 1.5rem;
  align-items: start;
}
.dps-open__text { grid-area: text; align-self: end; padding: 1rem 1.5rem 2rem 0; max-width: 44rem; }
.dps-col--a { grid-area: a; }
.dps-col--b { grid-area: b; }
.dps-col--c { grid-area: c; }
.dps-open__grid .dps-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
}
.dps-open__title {
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.03em;
  margin: var(--space-md) 0 0;
}
.dps-open__sub {
  margin-top: var(--space-md);
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.55;
  max-width: 34rem;
}
.dps-open__proof {
  margin-top: var(--space-md);
  padding-top: .7rem;
  border-top: 1px solid var(--rule);
  max-width: 34rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 900px) {
  .dps-open { padding-top: calc(var(--space-xl) + 70px); }
  .dps-open__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "text text"
      "a    b"
      "c    c";
  }
  .dps-open__text { padding-right: 0; max-width: none; }
  .dps-col--c { flex-direction: row; flex-wrap: wrap; }
  .dps-col--c .dps-shot-card { flex: 1 1 45%; }
}
@media (max-width: 560px) {
  .dps-open__grid {
    grid-template-columns: 1fr;
    grid-template-areas: "text" "a" "b" "c";
  }
  .dps-col--c { flex-direction: column; }
  .dps-open__title { font-size: clamp(2.1rem, 9vw, 3rem); }
}

/* Opening screenshots: white matte cornicetta */
.dps-open .dps-shot-card {
  background: var(--ink);
  padding: 8px;
  border: 1px solid var(--ink);
  border-radius: 10px;
  overflow: visible;
  box-shadow: 0 2px 4px rgba(16, 16, 19, .12), 0 14px 32px rgba(16, 16, 19, .16) !important;
  transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s cubic-bezier(.2,.7,.2,1);
}
.dps-open .dps-shot-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 3px 6px rgba(16, 16, 19, .14), 0 22px 48px rgba(16, 16, 19, .22) !important;
}
.dps-open .dps-shot-card .dps-shot-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
  .dps-open .dps-shot-card:hover { transform: none; }
}

/* —— Work gallery: offset columns, pre-staggered from the top —— */
.dps-works {
  padding: var(--space-2xl) 0 var(--space-3xl);
}
.dps-gallery {
  display: flex;
  gap: 1.75rem;
  align-items: flex-start;
}
.dps-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  min-width: 0;
}
.dps-col:nth-child(1) { margin-top: 8rem; }
.dps-col:nth-child(2) { margin-top: 4rem; }
.dps-col:nth-child(3) { margin-top: 0; }
.dps-shot-card {
  margin: 0;
  border: 2px solid var(--ink);
  border-radius: 6px;
  overflow: hidden;
  background: var(--bone);
  box-shadow: 8px 8px 0 var(--y);
  transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s cubic-bezier(.2,.7,.2,1);
}
.dps-shot-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 12px 12px 0 var(--y);
}
.dps-shot-card .dps-shot-img {
  display: block;
  width: 100%;
  height: auto;
}
@media (prefers-reduced-motion: reduce) {
  .dps-shot-card:hover { transform: none; }
}
@media (max-width: 900px) {
  .dps-gallery { gap: 1rem; }
  .dps-col { gap: 1rem; }
  .dps-col:nth-child(1) { margin-top: 5rem; }
  .dps-col:nth-child(2) { margin-top: 2.5rem; }
  .dps-col:nth-child(3) { margin-top: 0; }
}
@media (max-width: 560px) {
  .dps-gallery { flex-direction: column; gap: 1rem; }
  .dps-col:nth-child(2),
  .dps-col:nth-child(3) { margin-top: 0; }
}

/* —— Selected work: sticky-stacking cards (legacy) —— */
.dps-works {
  padding: calc(var(--space-3xl) + 2rem) 0;
}
.dps-works__head {
  border-top: 2px solid var(--ink);
  padding-top: var(--space-md);
  margin-bottom: calc(var(--space-2xl) + 1rem);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.dps-works__t {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -.02em;
}
.dps-works__note {
  font-family: var(--font-mono);
  font-size: .76rem;
  color: var(--muted);
  max-width: 44ch;
}
.dps-stack {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.dps-card {
  position: sticky;
  top: 100px;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: clamp(1.75rem, 4vw, 3rem);
  box-shadow: 0 -2px 0 var(--bone2);
}
.dps-card__i {
  font-family: var(--font-mono);
  font-size: .82rem;
  color: var(--muted);
}
.dps-card__n {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -.02em;
  margin-top: .8rem;
}
.dps-card__d {
  margin-top: .7rem;
  color: var(--ink-soft);
  font-size: 1.1rem;
  max-width: 52ch;
}
.dps-card__tag {
  display: inline-block;
  margin-top: 1.2rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: .3em .7em;
}

/* —— Line statement —— */
.dps-state {
  position: relative;
  padding: clamp(120px, 16vw, 240px) 0;
  text-align: center;
  overflow: hidden;
}
.dps-state__line {
  position: absolute;
  left: 0;
  right: 0;
  top: 40%;
  width: 100%;
  height: 120px;
  z-index: 0;
  pointer-events: none;
}
.dps-state__line path {
  fill: none;
  stroke: var(--y);
  stroke-width: 6;
  stroke-linecap: round;
}
.dps-state__q {
  position: relative;
  z-index: 2;
  font-size: clamp(2rem, 6vw, 4.6rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.03em;
  max-width: 20ch;
  margin: 0 auto;
}
.dps-state__q em {
  font-style: normal;
  background: var(--y);
  color: var(--y-ink);
  padding: .02em .16em;
}

/* —— Closing —— */
.dps-cta {
  background: var(--ink);
  color: var(--bone);
  padding: clamp(64px, 10vw, 150px) 0;
  text-align: center;
}
.dps-cta__h {
  font-size: clamp(3rem, 12vw, 9rem);
  font-weight: 800;
  line-height: .92;
  letter-spacing: -.03em;
}
.dps-cta__h em {
  font-style: normal;
  color: var(--y);
  display: inline-block;
  will-change: transform;
  animation: dps-float 3.4s ease-in-out infinite;
}
.dps-cta .dps-pill {
  background: var(--y);
  color: var(--y-ink);
  margin-top: var(--space-lg);
}
.dps-cta .dps-pill:hover { color: var(--y-ink); }
.dps-cta__note {
  margin-top: var(--space-md);
  font-size: .95rem;
  color: #b8b3a7;
}
@keyframes dps-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

@media (prefers-reduced-motion: reduce) {
  .dps .reveal { opacity: 1; transform: none; transition: none; }
  .dps-cta__h em { animation: none; }
  .dps-card { position: static; }
}

/* —— Mobile —— */
@media (max-width: 860px) {
  .dps-hero {
    padding-top: calc(var(--space-2xl) + 70px);
  }
  .dps-card {
    position: static;
  }
}

/* prompt card mobile */
@media (max-width: 860px) {
  .dps-shot__prompt {
    aspect-ratio: auto;
    min-height: 150px;
    padding: 2.2rem 1.6rem;
  }
  .dps-cardprompt {
    font-size: 1.7rem;
    line-height: 1.15;
  }
}

/* system sheet mobile */
@media (max-width: 760px) {
  .dps-system__grid {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }
  .dps-sheet {
    box-shadow: 8px 8px 0 var(--y);
    padding: .5rem 1.4rem;
  }
  .dps-sheet__row { gap: 1rem; }
}


