/* ============================================================
   STUDIO — "Behind the drawings"
   Immersive portrait of the Dorina practice.
   ============================================================ */

.st {
  --st-overlap: clamp(44px, 6svh, 88px);
}

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

.st-hero {
  position: relative;
  min-height: 100svh;
  background: var(--ink);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  z-index: 1;
}

.st-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  will-change: transform;
}

.st-hero__media img {
  object-fit: cover;
  object-position: 50% 34%;
}

.st-hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      90deg,
      rgba(27, 26, 23, 0.86) 0%,
      rgba(27, 26, 23, 0.62) 34%,
      rgba(27, 26, 23, 0.16) 62%,
      rgba(27, 26, 23, 0.24) 100%
    ),
    linear-gradient(
      180deg,
      rgba(27, 26, 23, 0.5) 0%,
      rgba(27, 26, 23, 0) 26%,
      rgba(27, 26, 23, 0) 62%,
      rgba(27, 26, 23, 0.6) 100%
    );
}

.st-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: clamp(60px, 9.5vh, 116px);
}

.st-hero__cluster {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(18px, 2.6vh, 30px);
  max-width: 780px;
}

.st-hero__eyebrow {
  color: rgba(245, 241, 232, 0.75);
}

.st-hero__title {
  margin: 0;
  color: var(--paper);
  font-size: clamp(3.25rem, 7vw, 7.5rem);
  line-height: 0.99;
  letter-spacing: -0.012em;
}

.st-hero__title em {
  font-style: italic;
}

.st-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}

.st-line__in {
  display: block;
  will-change: transform;
}

.st-hero__rule {
  width: clamp(72px, 8vw, 120px);
  height: 1px;
  background: rgba(245, 241, 232, 0.4);
}

.st-hero__line {
  margin: 0;
  max-width: 42ch;
  font-size: clamp(1.0625rem, 1.3vw, 1.25rem);
  line-height: 1.62;
  color: rgba(245, 241, 232, 0.78);
}

.st-hero__cue {
  display: flex !important;
  align-items: center;
  gap: 14px;
  color: rgba(245, 241, 232, 0.66);
}

.st-hero__cue-line {
  display: block;
  width: 54px;
  height: 1px;
  background: currentColor;
  animation: cue-drift 2.6s var(--ease-io) infinite;
}

/* ---------------- studio statement ---------------- */

.st-intro {
  position: relative;
  z-index: 2;
  background: var(--paper);
  margin-top: calc(-1 * var(--st-overlap));
  padding: clamp(98px, 12vh, 152px) 0 clamp(88px, 11vh, 138px);
}

.st-intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(34px, 5vw, 84px);
  align-items: start;
}

.st-intro__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(16px, 2.4vh, 24px);
}

.st-intro__num {
  font-size: clamp(2.5rem, 3.4vw, 3.5rem);
  line-height: 1;
  color: var(--ink);
}

.st-intro__rule {
  width: min(100%, 230px);
  height: 1px;
  background: var(--line-paper-strong);
}

.st-intro__body {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 3.4vh, 36px);
}

.st-intro__statement {
  margin: 0;
  font-size: clamp(2rem, 3.1vw, 2.95rem);
  line-height: 1.14;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 24ch;
}

.st-intro__copy {
  margin: 0;
  max-width: 52ch;
  font-size: clamp(1.0625rem, 1.25vw, 1.1875rem);
  line-height: 1.66;
  color: rgba(27, 26, 23, 0.8);
}

/* ---------------- shared section head ---------------- */

.st-head {
  display: flex;
  align-items: baseline;
  gap: clamp(14px, 1.6vw, 22px);
  padding-bottom: clamp(24px, 4vh, 44px);
  border-bottom: 1px solid var(--line-paper);
  margin-bottom: clamp(40px, 6vh, 72px);
}

.st-head__rule {
  flex: 1;
  height: 1px;
  background: var(--line-paper);
  transform: translateY(-3px);
}

.st-head--ink {
  border-bottom-color: var(--line-ink);
}

.st-head--ink .st-head__rule {
  background: var(--line-ink);
}

.st-head--ink .mono-label {
  color: rgba(245, 241, 232, 0.72);
}

/* ---------------- portrait story ---------------- */

.st-story {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(100px, 13vh, 158px) 0 clamp(104px, 13vh, 164px);
}

.st-story__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(36px, 5vw, 92px);
  align-items: start;
}

.st-stage {
  position: relative;
  height: clamp(500px, 74svh, 840px);
  overflow: hidden;
  background: var(--ink-3);
}

.st-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  will-change: transform, opacity;
}

.st-stage:not(.st-ready) .st-layer:first-child {
  opacity: 1;
}

.st-layer img {
  object-fit: cover;
}

.st-stage__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px clamp(20px, 2.4vw, 30px);
  background: linear-gradient(
    0deg,
    rgba(27, 26, 23, 0.74),
    rgba(27, 26, 23, 0)
  );
}

.st-stage__cap .mono-label {
  color: rgba(245, 241, 232, 0.92);
}

.st-stage__cap .st-cap__name {
  color: rgba(245, 241, 232, 0.78);
}

.st-story__index {
  display: flex;
  flex-direction: column;
  gap: clamp(22px, 3.4vh, 38px);
  padding-top: clamp(4px, 1.4vh, 18px);
}

.st-index__lead {
  margin: 0;
  max-width: 30ch;
  font-size: clamp(1.0625rem, 1.3vw, 1.1875rem);
  line-height: 1.62;
  color: rgba(245, 241, 232, 0.75);
}

.st-index__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.st-index__item {
  position: relative;
  border-top: 1px solid var(--line-ink);
}

.st-index__item:last-child {
  border-bottom: 1px solid var(--line-ink);
}

.st-index__item::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--bronze-2);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 560ms var(--ease-out);
}

.st-index__item.is-active::after {
  transform: scaleX(1);
}

.st-idx {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(14px, 1.6vw, 20px);
  width: 100%;
  padding: clamp(18px, 2.7vh, 28px) 0;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  color: rgba(245, 241, 232, 0.58);
  transition: color 360ms var(--ease-out);
}

.st-idx__num {
  font-family: var(--font-mono), monospace;
  font-size: 12.5px;
  letter-spacing: 0.14em;
}

.st-idx__name {
  font-size: clamp(1.4rem, 1.9vw, 1.8rem);
  letter-spacing: -0.01em;
  transition: transform 420ms var(--ease-out);
}

.st-idx__ind {
  display: flex;
  color: var(--bronze-2);
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 320ms var(--ease-out), transform 420ms var(--ease-out);
}

.st-idx:hover,
.st-idx:focus-visible {
  color: rgba(245, 241, 232, 0.9);
}

.st-index__item.is-active .st-idx {
  color: var(--paper);
}

.st-index__item.is-active .st-idx__name {
  transform: translateX(6px);
}

.st-index__item.is-active .st-idx__ind {
  opacity: 1;
  transform: translateX(0);
}

.st-idx:focus-visible {
  outline: 2px solid var(--bronze-2);
  outline-offset: 4px;
}

/* mobile stacked portraits — hidden on desktop */

.st-story__stack {
  display: none;
}

/* ---------------- principles ---------------- */

.st-principles {
  background: var(--paper);
  padding: clamp(100px, 13vh, 158px) 0 clamp(96px, 12vh, 150px);
}

.st-bands {
  list-style: none;
  margin: 0;
  padding: 0;
}

.st-band {
  display: grid;
  grid-template-columns: minmax(0, 2.4fr) minmax(0, 4.6fr) minmax(0, 4fr);
  gap: clamp(28px, 4vw, 76px);
  align-items: center;
  padding: clamp(46px, 6.5vh, 80px) 0;
  border-top: 1px solid var(--line-paper);
}

.st-bands li:last-child .st-band {
  border-bottom: 1px solid var(--line-paper);
}

.st-band__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(14px, 2vh, 22px);
}

.st-band__title {
  margin: 0;
  font-size: clamp(2rem, 2.9vw, 2.85rem);
  line-height: 1.03;
  letter-spacing: -0.01em;
  transition: transform 420ms var(--ease-out);
}

.st-band__rule {
  position: relative;
  width: min(100%, 150px);
  height: 1px;
  background: var(--line-paper-strong);
  overflow: hidden;
}

.st-band__rule::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bronze);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 560ms var(--ease-out);
}

.st-band:hover .st-band__rule::after,
.st-band:focus-within .st-band__rule::after {
  transform: scaleX(1);
}

.st-band:hover .st-band__title,
.st-band:focus-within .st-band__title {
  transform: translateX(6px);
}

.st-band__desc {
  margin: 0;
  max-width: 48ch;
  font-size: clamp(1.0625rem, 1.25vw, 1.1875rem);
  line-height: 1.64;
  color: rgba(27, 26, 23, 0.8);
}

.st-band__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-2);
}

.st-band__media img {
  object-fit: cover;
  transition: transform 1100ms var(--ease-out);
}

.st-band:hover .st-band__media img,
.st-band:focus-within .st-band__media img {
  transform: scale(1.045);
}

/* ---------------- full-bleed moment ---------------- */

.st-scene {
  position: relative;
  min-height: 92svh;
  background: var(--ink);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.st-scene__media {
  position: absolute;
  inset: 0;
  will-change: transform;
}

.st-scene__media img {
  object-fit: cover;
  object-position: 50% 30%;
}

.st-scene__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(27, 26, 23, 0.42) 0%,
      rgba(27, 26, 23, 0) 30%,
      rgba(27, 26, 23, 0) 58%,
      rgba(27, 26, 23, 0.7) 100%
    ),
    linear-gradient(90deg, rgba(27, 26, 23, 0.5) 0%, rgba(27, 26, 23, 0) 48%);
}

.st-scene__content {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(16px, 2.2vh, 24px);
  padding-bottom: clamp(56px, 8.5vh, 104px);
}

.st-scene .mono-label {
  color: rgba(245, 241, 232, 0.72);
}

.st-scene__line {
  margin: 0;
  max-width: 26ch;
  font-size: clamp(1.6rem, 2.55vw, 2.55rem);
  line-height: 1.16;
  letter-spacing: -0.008em;
  color: var(--paper);
}

/* ---------------- selected work ---------------- */

.st-work {
  background: var(--paper);
  padding: clamp(100px, 13vh, 158px) 0 clamp(104px, 13vh, 162px);
}

.st-work__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.6vw, 40px);
}

.st-work__item {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2vh, 22px);
}

.st-work__item:nth-child(2) {
  transform: translateY(clamp(22px, 3.6vh, 52px));
}

.st-work__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--paper-2);
}

.st-work__media img {
  object-fit: cover;
  transition: transform 1100ms var(--ease-out);
}

.st-work__item:hover .st-work__media img,
.st-work__item:focus-visible .st-work__media img {
  transform: scale(1.04);
}

.st-work__cap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line-paper);
  transition: border-color 360ms var(--ease-out);
}

.st-work__name {
  font-size: clamp(1.45rem, 1.9vw, 1.85rem);
  letter-spacing: -0.01em;
  transition: transform 420ms var(--ease-out);
}

.st-work__arrow {
  display: flex;
  opacity: 0;
  transform: translateX(-10px);
  color: var(--bronze);
  transition: opacity 320ms var(--ease-out), transform 420ms var(--ease-out);
}

.st-work__item:hover .st-work__cap,
.st-work__item:focus-visible .st-work__cap {
  border-color: var(--bronze-2);
}

.st-work__item:hover .st-work__name,
.st-work__item:focus-visible .st-work__name {
  transform: translateX(5px);
}

.st-work__item:hover .st-work__arrow,
.st-work__item:focus-visible .st-work__arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ---------------- cta ---------------- */

.st-cta {
  background: var(--paper);
  padding: clamp(108px, 14vh, 178px) 0 clamp(116px, 15vh, 188px);
}

.st-cta__label {
  color: var(--bronze);
}

.st-cta__title {
  margin: clamp(20px, 3vh, 30px) 0 0;
  max-width: 18ch;
  font-size: clamp(3.1rem, 5vw, 5.1rem);
  line-height: 1.03;
  letter-spacing: -0.012em;
  color: var(--ink);
}

.st-cta__title em {
  font-style: italic;
}

.st-cta__link {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2vw, 30px);
  margin-top: clamp(40px, 5.6vh, 62px);
}

.st-cta__action {
  font-family: var(--font-mono), monospace;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  transition: transform 420ms var(--ease-out), color 320ms var(--ease-out);
}

.st-cta__rule {
  flex: 1;
  height: 1px;
  background: var(--line-paper-strong);
  transition: background-color 360ms var(--ease-out);
}

.st-cta__arrow {
  display: flex;
  color: var(--ink);
  transition: transform 420ms var(--ease-out), color 320ms var(--ease-out);
}

.st-cta__link:hover .st-cta__action,
.st-cta__link:focus-visible .st-cta__action {
  transform: translateX(5px);
  color: var(--bronze);
}

.st-cta__link:hover .st-cta__rule,
.st-cta__link:focus-visible .st-cta__rule {
  background: var(--bronze);
}

.st-cta__link:hover .st-cta__arrow,
.st-cta__link:focus-visible .st-cta__arrow {
  transform: translateX(8px);
  color: var(--bronze);
}

/* ============================================================
   responsive
   ============================================================ */

@media (max-width: 1366px) {
  .st-hero__title {
    font-size: clamp(3.1rem, 6.6vw, 6.6rem);
  }
}

@media (max-width: 1100px) {
  .st-intro {
    padding-top: clamp(84px, 10vh, 120px);
  }

  .st-intro__grid {
    grid-template-columns: 1fr;
    gap: clamp(28px, 4.5vh, 44px);
  }

  .st-intro__statement {
    max-width: 26ch;
  }

  /* portrait story: stage hidden, stacked portraits shown */
  .st-story__grid {
    grid-template-columns: 1fr;
  }

  .st-stage {
    display: none;
  }

  .st-story__stack {
    display: flex;
    flex-direction: column;
    gap: clamp(36px, 5.5vh, 64px);
  }

  .st-port {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .st-port__media {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--ink-3);
  }

  .st-port__media img {
    object-fit: cover;
  }

  .st-port__cap {
    display: flex;
    align-items: center;
    gap: 14px;
    color: rgba(245, 241, 232, 0.82);
  }

  .st-story__index {
    padding-top: clamp(10px, 2vh, 22px);
  }

  .st-story__index .st-index__list {
    display: none;
  }

  .st-band {
    grid-template-columns: 1fr;
    gap: clamp(20px, 3.6vh, 32px);
  }

  .st-band__media {
    aspect-ratio: 16 / 10;
  }

  .st-band__desc {
    max-width: 56ch;
  }

  .st-scene {
    min-height: 78svh;
  }

  .st-work__grid {
    grid-template-columns: 1fr;
    gap: clamp(44px, 6vh, 64px);
    max-width: 640px;
  }

  .st-work__item:nth-child(2) {
    transform: none;
  }
}

@media (max-width: 720px) {
  .st-hero__title {
    font-size: clamp(2.875rem, 12vw, 4.1rem);
  }

  .st-hero__line {
    max-width: 34ch;
  }

  .st-hero__cue {
    display: none !important;
  }

  .st-intro__statement {
    font-size: clamp(1.8rem, 7.6vw, 2.3rem);
  }

  .st-intro__num {
    font-size: clamp(2.1rem, 9vw, 2.6rem);
  }

  .st-band__title {
    font-size: clamp(1.8rem, 8vw, 2.2rem);
  }

  .st-scene__line {
    font-size: clamp(1.45rem, 6.6vw, 1.9rem);
    max-width: 22ch;
  }

  .st-work__grid {
    max-width: none;
  }

  .st-cta__title {
    font-size: clamp(2.3rem, 9.4vw, 3.1rem);
    max-width: 15ch;
  }

  .st-cta__action {
    font-size: 12px;
    letter-spacing: 0.15em;
  }
}

/* ---------- tablet: portrait triptych, split bands and work row ---------- */

@media (min-width: 721px) and (max-width: 1100px) {
  .st-story__stack {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(18px, 2.4vw, 28px);
  }

  .st-port {
    gap: 12px;
  }

  .st-band {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.68fr);
    grid-template-areas:
      "meta media"
      "desc media";
    gap: 18px clamp(24px, 3.2vw, 40px);
    align-items: center;
    padding-block: clamp(30px, 4.5vh, 46px);
  }

  .st-band__meta {
    grid-area: meta;
  }

  .st-band__desc {
    grid-area: desc;
  }

  .st-band__media {
    grid-area: media;
    aspect-ratio: 4 / 3;
  }

  .st-work__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(18px, 2.4vw, 28px);
    max-width: none;
  }
}

@media (max-width: 1100px) {
  .st-band__desc {
    text-wrap: pretty;
  }

  .st-work__arrow {
    opacity: 1;
    transform: none;
  }
}

/* ---------- short landscape: keep faces and architecture in frame ---------- */

@media (max-width: 1100px) and (max-height: 560px) and (orientation: landscape) {
  .st-hero__media img {
    object-position: 50% 8%;
  }

  .st-band {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 14px 24px;
    padding-block: 20px;
  }

  .st-band__media {
    aspect-ratio: 4 / 3;
  }

  .st-scene {
    min-height: 100svh;
  }

  .st-scene__media img {
    object-position: 50% 35%;
  }
}

/* ---------- phone copy and image framing ---------- */

@media (max-width: 720px) {
  .st-intro__copy,
  .st-band__desc {
    text-wrap: pretty;
  }

  .st-band__media {
    aspect-ratio: 4 / 3;
  }

  .st-scene__line {
    text-wrap: balance;
  }
}

@media (max-width: 389px) {
  .st-cta__title {
    font-size: 2rem;
  }
}

@media (max-width: 359px) {
  .st-cta__title {
    font-size: 1.875rem;
  }
}
