/* =========================================
   ARTNEST TREASURES — ABOUT / STUDIO PAGE (about.html)
   1 Studio introduction · 2 Meet the artist ·
   3 Dot Mandala Art · 4 Pen & Ink
   Shares tokens, header, menu and buttons with the homepage.
   ========================================= */

.studio {
  display: block;
  background-color: var(--color-background-primary);
  color: var(--color-neutral-charcoal);
}

.studio-wrap {
  max-width: var(--container-max-width);
  margin-inline: auto;
  padding-inline: var(--container-padding-desktop);
}

/* Shared small label: orange dot + green uppercase */
.studio-eyebrow,
.studio-label {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: 0 0 var(--space-5);

  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--letter-spacing-wide);
  line-height: var(--line-height-label);
  text-transform: uppercase;
  color: var(--color-brand-forest-green);
}

.studio-eyebrow::before {
  content: "";
  flex: none;
  width: 28px;
  height: 1px;
  background-color: var(--color-brand-burnt-orange);
}

.studio-label::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-brand-burnt-orange);
}

.studio-label__num {
  color: var(--color-brand-burnt-orange);
}

/* Readable body copy */
.studio-artist__copy > p:is(:not([class]), .studio-copy),
.studio-practice__copy > p:is(:not([class]), .studio-copy) {
  max-width: 34rem;
  margin: 0 0 var(--space-5);

  font-size: var(--font-size-body);
  line-height: 1.78;
}


/* ---------- 1 · Studio introduction ---------- */

.studio-intro {
  padding:
    calc(var(--header-h, 96px) + clamp(var(--space-4), 3vh, var(--space-6)))
    0
    clamp(var(--space-3), 2vh, var(--space-5));
}

.studio-intro__title {
  margin: 0;

  font-family: var(--font-display);
  /* one refined line on desktop; wraps naturally on phones */
  font-size: var(--font-size-page-title);
  font-weight: var(--font-weight-display);
  line-height: var(--line-height-heading);
  letter-spacing: var(--letter-spacing-display);
  letter-spacing: -0.02em;
  color: var(--color-brand-forest-green);
}

.studio-intro__title em,
.studio-artist__title em {
  font-style: italic;
  font-weight: var(--font-weight-display);
  color: var(--color-brand-burnt-orange);
}

/* Headline left, illustration right — fills the first screen */
.studio-intro {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  overflow: clip;
}

.studio-intro > .studio-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
}

.studio-intro__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--space-6);
  align-items: center;
}

.studio-intro__head {
  grid-column: 1 / span 8;
  position: relative;
  z-index: 1;
}

.studio-intro__head,
.studio-intro__art {
  grid-row: 1;
}

/* ---------- Intro artwork cycle (js/about-cycle.js) ---------- */

/* dragonfly: hidden until it arrives; flies in, rests, flies away */
.ic-fly {
  opacity: 0;
  transform: translate(-520px, -260px) rotate(-30deg);
}

.ic-fly.is-arriving {
  opacity: 1;
  transform: none;
  transition:
    transform 2400ms cubic-bezier(0.25, 0.6, 0.3, 1),
    opacity 500ms ease;
}

.ic-fly.is-leaving {
  opacity: 0;
  transform: translate(560px, -520px) rotate(24deg) scale(0.7);
  transition:
    transform 2600ms cubic-bezier(0.55, 0, 0.8, 0.4),
    opacity 900ms ease 1700ms;
}

.ic-wing {
  transform-origin: 0 0;
}

.ic-fly.is-beating .ic-wing {
  animation: ic-beat 80ms ease-in-out infinite alternate;
}

.ic-fly:not(.is-beating) .ic-wing {
  animation: ic-rest 3s ease-in-out infinite alternate;
}

@keyframes ic-beat { from { transform: scaleY(1); } to { transform: scaleY(0.25); } }
@keyframes ic-rest { from { transform: scaleY(1); } to { transform: scaleY(0.85); } }

@media (prefers-reduced-motion: reduce) {
  .ic-fly { display: none; }
}

/* the earlier leaf sprig stays in the page (it times the template) but is hidden */
.studio-intro__art .intro-leaf {
  visibility: hidden;
}

.intro-cycle {
  position: absolute;
  inset: 0;
  display: grid;
}

.icv {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  overflow: visible;
  opacity: 0;
  transform: scale(0.86);
  transition: opacity 450ms ease, transform 500ms cubic-bezier(0.5, 0, 0.75, 0.3);
}

.icv.is-shown {
  opacity: 1;
  transform: scale(1.08);
  animation: icv-in 1000ms cubic-bezier(0.25, 1, 0.4, 1) 450ms both;
}

@keyframes icv-in {
  0%   { opacity: 0; transform: scale(0.8); }
  60%  { opacity: 1; transform: scale(1.12); }
  100% { opacity: 1; transform: scale(1.08); }
}

.icv .cv-line {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.icv .cv-fade { opacity: 0; }

.icv .cv-dot {
  transform: scale(0);
  transform-box: fill-box;
  transform-origin: center;
}

.icv.is-shown .cv-line { animation: cv-draw var(--t, 1200ms) cubic-bezier(0.45, 0, 0.25, 1) var(--d, 0ms) forwards; }
.icv.is-shown .cv-fade { animation: cv-fade 800ms ease var(--d, 0ms) forwards; }
.icv.is-shown .cv-dot  { animation: cv-pop 360ms cubic-bezier(0.2, 0.9, 0.3, 1.2) var(--d, 0ms) forwards; }

@keyframes cv-draw { to { stroke-dashoffset: 0; } }
@keyframes cv-fade { to { opacity: var(--o, 1); } }
@keyframes cv-pop  { to { transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
  .icv.is-shown,
  .icv.is-shown :is(.cv-line, .cv-fade, .cv-dot) {
    animation: none;
    stroke-dashoffset: 0;
    opacity: var(--o, 1);
    transform: none;
  }
}

.studio-intro__art {
  grid-column: 8 / span 5;
  position: relative;
  display: grid;
  place-items: center;
  height: clamp(420px, calc(100svh - var(--header-h, 96px) - 110px), 720px);
}

/* Faint mandala layout template spanning the full viewport width */
.intro-mandala {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(110vw, 110vh);
  height: auto;
  aspect-ratio: 1 / 1;
  overflow: visible;
  translate: -50% -50%;
  opacity: 0.1; /* light, still background template */
  pointer-events: none;
}

.intro-mandala .ring {
  fill: none;
  stroke: var(--color-wireframe);
  stroke-width: 1.2;
}

.intro-mandala .spoke {
  stroke: var(--color-wireframe-soft);
  stroke-width: 1;
}

.intro-mandala .node {
  fill: var(--color-neutral-soft-sage);
}

/* Leaf sprig: lines sketch in, then the dots are set along each edge */
.intro-leaf {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%; /* the viewBox scales to fit, never overflowing */
  overflow: visible;
  /* Leans obliquely, its tip reaching toward the headline */
  --lean: -32deg;
  transform: translateX(12%) rotate(var(--lean)) scale(1.16);
  transform-origin: 55% 60%;
}

.intro-leaf .line {
  fill: none;
  stroke: var(--color-brand-forest-green);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: intro-draw var(--t, 900ms) cubic-bezier(0.45, 0, 0.25, 1) forwards;
  animation-delay: var(--d);
}

.intro-leaf .vein {
  stroke-width: 0.8;
  stroke-opacity: 0.55;
}

.intro-leaf .dot {
  transform: scale(0);
  transform-box: fill-box;
  transform-origin: center;
  animation: intro-dot 420ms cubic-bezier(0.2, 0.9, 0.3, 1.2) forwards;
  animation-delay: var(--d);
}

/* Dragonfly: flies in on a gentle curve, wings beating fast, then lands
   and keeps breathing its wings slowly. --fly-start is set by JS. */
.intro-leaf .fly {
  opacity: 0;
  animation: fly-in 2400ms cubic-bezier(0.25, 0.6, 0.3, 1) var(--fly-start, 5s) forwards;
}

.intro-leaf .wing {
  transform-origin: 0 0;
  animation:
    wing-beat 80ms ease-in-out var(--fly-start, 5s) 30 alternate,
    wing-rest 3.2s ease-in-out calc(var(--fly-start, 5s) + 2400ms) infinite alternate;
}

@keyframes fly-in {
  0%   { opacity: 0; transform: translate(-230px, -190px) rotate(-35deg) scale(0.7); }
  12%  { opacity: 1; }
  55%  { transform: translate(-70px, -95px) rotate(18deg) scale(0.95); }
  82%  { transform: translate(6px, -12px) rotate(-4deg) scale(1); }
  100% { opacity: 1; transform: none; }
}

@keyframes wing-beat {
  from { transform: scaleY(1); }
  to   { transform: scaleY(0.25); }
}

@keyframes wing-rest {
  from { transform: scaleY(1); }
  to   { transform: scaleY(0.82); }
}

@keyframes intro-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes intro-fade {
  to { opacity: 1; }
}

@keyframes intro-dot {
  to { transform: scale(1); }
}

@keyframes intro-turn {
  to { rotate: 360deg; }
}

@media (min-width: 769px) {
  .studio-intro__title {
    white-space: nowrap;
  }
}

/* Second line builds on one line: "Dots" then "& Lines." (js/studio.js) */
.word-build__part {
  font-style: italic;
  font-weight: var(--font-weight-display);
  color: var(--color-brand-burnt-orange);
}

/* "Dots": each letter is pressed in like a dot — from a tiny point,
   settling to full size, one after another */
.word-build.is-ready .word-build__part:first-child .ch {
  display: inline-block;
  opacity: 0;
  translate: 0 0.22em;
  filter: blur(6px);
}

/* transitions only on the way in, so nothing flashes before it starts */
.word-build .word-build__part:first-child.is-in .ch {
  opacity: 1;
  translate: 0 0;
  filter: none;
  transition:
    opacity 700ms ease,
    filter 800ms ease,
    translate 1000ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--i) * 60ms);
}

/* "& Lines.": drawn on left to right like a pen line, with a fine
   stroke tracing beneath it as it goes */
.word-build.is-ready .word-build__part:last-child,
.has-reveal .word-build .word-build__part:last-child {
  position: relative;
  display: inline-block;
  opacity: 0;
  translate: 0 0.18em;
  filter: blur(6px);
}

.word-build .word-build__part:last-child.is-in {
  opacity: 1;
  translate: 0 0;
  filter: none;
  transition:
    opacity 800ms ease,
    filter 900ms ease,
    translate 1100ms cubic-bezier(0.16, 1, 0.3, 1);
}

.word-build.is-ready .word-build__part:last-child::after {
  content: "";
  position: absolute;
  left: 0.05em;
  right: 0.1em;
  bottom: -0.02em;
  height: 0.035em;
  min-height: 1px;
  border-radius: 1px;
  background: currentColor;
  opacity: 0.55;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1100ms cubic-bezier(0.65, 0, 0.35, 1) 500ms;
}

.word-build .word-build__part:last-child.is-in::after {
  transform: scaleX(1);
}

.studio-intro__text {
  max-width: 34rem; /* ~65–70 characters per line */
  margin: clamp(var(--space-5), 3.5vh, var(--space-6)) 0 0;
  font-size: var(--font-size-lead);
  line-height: 1.7;
}

.studio-intro__text p {
  margin: 0;
}

.studio-intro__text p + p {
  margin-top: var(--space-3);
}

.studio-intro__tagline {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: clamp(var(--space-5), 3.5vh, var(--space-6)) 0 0;
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.studio-intro__tagline::before {
  content: "";
  width: 32px;
  height: 1px;
  background-color: var(--color-brand-burnt-orange);
}


/* ---------- 2 · Meet the artist ---------- */

.studio-artist {
  padding-block: clamp(var(--space-7), 7vh, var(--space-8)) clamp(var(--space-8), 12vh, var(--space-10));
  background-color: var(--color-surface-canvas);
}

.studio-artist__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--space-6);
  align-items: center;
}

.studio-artist__portrait {
  grid-column: 1 / span 5;
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--color-brand-burnt-orange);
  border-radius: var(--border-radius-medium);
  isolation: isolate;
}

/* Matte, editorial finish — display only; the photograph itself is
   untouched, so her features are never altered */
.studio-artist__portrait img {
  display: block;
  width: 100%;
  height: auto;
  filter: saturate(0.86) contrast(0.94) brightness(1.03) sepia(0.06);
  transform: scale(1);
  transition:
    transform 1400ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 1000ms ease;
}

/* Soft ivory wash + fine film grain take the gloss off */
.studio-artist__portrait::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.5  0 0 0 0 0.45  0 0 0 0 0.4  0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"),
    linear-gradient(rgba(248, 245, 236, 0.07), rgba(248, 245, 236, 0.07));
  mix-blend-mode: soft-light;
  opacity: 0.9;
  pointer-events: none;
  transition: opacity 1000ms ease;
}

/* Fine inner frame that draws in on hover */
.studio-artist__portrait::after {
  content: "";
  position: absolute;
  inset: 18px;
  z-index: 2;
  border: 1px solid rgba(248, 245, 236, 0.75);
  border-radius: 2px;
  opacity: 0;
  transform: scale(1.04);
  transition:
    opacity 700ms ease,
    transform 1000ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.studio-artist__portrait:hover img {
  transform: scale(1.035);
  filter: saturate(0.98) contrast(0.98) brightness(1.02) sepia(0.02);
}

.studio-artist__portrait:hover::before {
  opacity: 0.55;
}

.studio-artist__portrait:hover::after {
  opacity: 1;
  transform: scale(1);
}

.studio-artist__copy {
  grid-column: 7 / span 6;
}

.studio-artist__title {
  margin: 0 0 var(--space-6);

  font-family: var(--font-display);
  font-size: var(--font-size-section);
  font-weight: var(--font-weight-display);
  line-height: var(--line-height-display);
  letter-spacing: var(--letter-spacing-display);
  color: var(--color-brand-forest-green);
}

.studio-artist__sign {
  margin: var(--space-6) 0 var(--space-7);
}

.studio-signature {
  margin: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  font-family: var(--font-signature);
  font-size: clamp(3.25rem, 4.6vw, 4.25rem);
  font-weight: 400;
  line-height: 1;
  color: var(--color-neutral-charcoal);
}

.studio-designation {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: var(--space-2) 0 0;

  font-size: var(--font-size-micro);
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.studio-designation::before {
  content: "";
  width: 32px;
  height: 1px;
  background-color: currentColor;
}


/* ---------- 3 & 4 · Practices ---------- */

.studio-practice {
  padding-block: clamp(var(--space-8), 14vh, 10rem);
}

.studio-practice + .studio-practice {
  padding-top: 0;
}

/* Hairline between the two practices, aligned to the content edges */
.studio-practice + .studio-practice::before {
  content: "";
  display: block;
  max-width: calc(var(--container-max-width) - 2 * var(--container-padding-desktop));
  height: 1px;
  margin: 0 max(var(--container-padding-desktop), (100% - var(--container-max-width)) / 2 + var(--container-padding-desktop))
          clamp(var(--space-8), 14vh, 10rem);
  background-color: var(--color-border-subtle);
}

.studio-practice__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--space-6);
  align-items: center;
}

/* Default (section 3): text left, artwork right */
.studio-practice__copy {
  grid-column: 1 / span 5;
  grid-row: 1;
}

.studio-practice__art {
  grid-column: 7 / span 6;
  grid-row: 1;
  margin: 0;
}

/* Section 4: artwork left, text right */
.studio-practice--reverse .studio-practice__art {
  grid-column: 1 / span 6;
}

.studio-practice--reverse .studio-practice__copy {
  grid-column: 8 / span 5;
}

.studio-practice__title {
  margin: 0;

  font-family: var(--font-display);
  font-size: var(--font-size-section);
  font-weight: var(--font-weight-display);
  line-height: var(--line-height-display);
  letter-spacing: var(--letter-spacing-display);
  color: var(--color-brand-forest-green);
}

/* "An Architect's Eye. An Artist's Soul." under the Meet the artist heading */
.studio-artist__subtitle {
  margin: var(--space-3) 0 var(--space-6);
  font-family: var(--font-display);
  font-size: var(--font-size-subheading);
  font-style: italic;
  font-weight: var(--font-weight-display);
  line-height: 1.3;
  color: var(--color-brand-burnt-orange);
}

.studio-practice__subtitle {
  margin: var(--space-3) 0 var(--space-6);

  font-family: var(--font-display);
  font-size: var(--font-size-subheading);
  font-style: italic;
  line-height: 1.3;
  color: var(--color-brand-burnt-orange);
  font-weight: var(--font-weight-display);
}

/* Dot Mandala and Pen & Ink: a plain photo of the original, no animation */
.practice-photo img {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  margin-inline: auto;
}

/* Artworks drawn in SVG after Veda's originals (js/artworks.js).
   They draw themselves once in view; hovering lifts them gently. */
.artwork {
  display: block;
}

.art-svg {
  display: block;
  margin-inline: auto;
  overflow: visible;
  transition: transform 1200ms cubic-bezier(0.22, 1, 0.36, 1);
}

.artwork--vase .art-svg {
  width: auto;
  max-width: 100%;
  height: min(68vh, 600px);
  transform-origin: 50% 100%;
}

.artwork--plate .art-svg {
  width: min(100%, 600px);
  height: auto;
  aspect-ratio: 1 / 1;
  transition: transform 1600ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* Once drawn, the plate tilts toward the pointer (like the homepage
   mandala); --tilt-x / --tilt-y (-1…1) are set by js/artworks.js */
.artwork--plate {
  perspective: 1400px;
}

.artwork--plate .art-svg {
  transform:
    rotateX(calc(var(--tilt-y, 0) * -8deg))
    rotateY(calc(var(--tilt-x, 0) * 8deg))
    scale(var(--lift, 1));
  transition: transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
}

.artwork--plate.is-tilting {
  --lift: 1.02;
}

.artwork--plate.is-tilting .art-svg {
  transition: transform 180ms ease-out;
}

/* Each dot, petal, drop and rib is pressed in where it sits */
.art-svg .unit {
  transform: scale(0);
  transform-box: fill-box;
  transform-origin: center;
  animation: art-pop 420ms cubic-bezier(0.2, 0.9, 0.3, 1.2) var(--d, 0ms) forwards;
}

@keyframes art-pop { to { transform: scale(1); } }

.artwork--ink .art-svg {
  width: 100%;
  height: auto;
}

.studio-practice__art:hover .artwork--vase .art-svg {
  transform: translateY(-10px) rotate(-1.5deg) scale(1.03);
}

.studio-practice__art:hover .artwork--ink .art-svg {
  transform: scale(1.03);
}

/* Drawing animation — waits until the drawing is in view */
.art-svg .ink {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: art-draw var(--t, 1100ms) cubic-bezier(0.45, 0, 0.25, 1) var(--d, 0ms) forwards;
}

.art-svg :is(.tex, .pop) {
  opacity: 0;
  animation: art-fade 900ms ease var(--d, 0ms) forwards;
}

.art-svg .vrow {
  opacity: 0;
  transform: translateY(6px);
  animation: art-rise 700ms cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0ms) forwards;
}

.art-svg:not(.is-playing) * {
  animation-play-state: paused !important;
}

@keyframes art-draw { to { stroke-dashoffset: 0; } }
@keyframes art-fade { to { opacity: 1; } }
@keyframes art-rise { to { opacity: 1; transform: none; } }

/* Small handwritten caption */
.studio-caption {
  margin-top: var(--space-4);
  font-family: var(--font-display);
  font-size: var(--font-size-subheading);
  font-weight: var(--font-weight-display);
  line-height: 1.3;
  color: rgba(var(--ink-rgb, 46, 46, 43), 0.8);
  font-style: italic;
}


/* ---------- Gentle reveal (only when JS has enabled it) ---------- */

.has-reveal .studio [data-reveal] {
  opacity: 0;
  translate: 0 18px;
  filter: blur(8px);
  transition:
    opacity 900ms ease,
    filter 1000ms ease,
    translate 1200ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.has-reveal .studio [data-reveal].is-inview {
  opacity: 1;
  translate: 0 0;
  filter: none;
}


/* ---------- Responsive ---------- */

/* ---------- Work in progress: slow, continuous left-to-right drift ----------
   A Forest Green band; the photos run edge to edge with no gaps. */

.process {
  /* one full screen: heading on top, photos fill the rest down to the footer */
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  padding: calc(var(--header-h, 96px) + clamp(var(--space-6), 7vh, var(--space-8))) 0 0;
  overflow: hidden;
  background: var(--color-brand-forest-green);
  color: var(--color-brand-warm-ivory);
}

.process__head {
  box-sizing: border-box;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-5);
  margin-bottom: clamp(var(--space-7), 10vh, var(--space-9));
}

.process .studio-label {
  margin-bottom: var(--space-3);
  color: var(--color-neutral-warm-sand);
}

.process__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 3.6vw, 3.4rem);
  font-weight: var(--font-weight-display);
  line-height: var(--line-height-display);
  letter-spacing: var(--letter-spacing-display);
  color: var(--color-brand-warm-ivory);
}

.process__title em {
  font-style: italic;
  color: #E8865A; /* Burnt Orange, lifted for the green ground */
}

.process__note {
  max-width: 22rem;
  margin: 0;
  font-size: var(--font-size-small);
  line-height: 1.7;
  color: rgba(248, 245, 236, 0.82);
  text-align: right;
}

/* thin ivory rules frame the moving strip */
.process__viewport {
  display: flex;
  overflow: hidden;
  border-top: 1px solid rgba(248, 245, 236, 0.35);
}

/* the set is listed twice; moving by half its width loops seamlessly */
.process__track {
  display: flex;
  width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
  animation: process-drift 110s linear infinite;
  will-change: transform;
}

.process__item {
  flex: none;
  height: 100%;
  min-height: 320px;
}

.process__item picture,
.process__item img {
  display: block;
  height: 100%;
}

.process__item img {
  width: auto;
  filter: contrast(1.03) saturate(1.04);
}

@keyframes process-drift {
  from { transform: translate3d(-50%, 0, 0); }
  to   { transform: translate3d(0, 0, 0); }
}

@media (max-width: 768px) {
  .process__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .process__note {
    text-align: left;
  }

  .process {
    height: auto;
    min-height: 0;
  }

  .process__item {
    height: clamp(300px, 60vh, 460px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .process__track { animation: none; }
  .process__viewport { overflow-x: auto; }
}

@media (max-width: 1024px) {
  .studio-intro__head {
    grid-column: 1 / span 8;
  }

  .studio-intro__art {
    grid-column: 9 / span 4;
  }

  .studio-wrap {
    padding-inline: var(--container-padding-tablet);
  }

  .studio-practice + .studio-practice::before {
    margin-inline: var(--container-padding-tablet);
  }

  .studio-artist__copy {
    grid-column: 7 / span 6;
  }

  .studio-practice__copy {
    grid-column: 1 / span 6;
  }

  .studio-practice__art {
    grid-column: 7 / span 6;
  }

  .studio-practice--reverse .studio-practice__art {
    grid-column: 1 / span 6;
  }

  .studio-practice--reverse .studio-practice__copy {
    grid-column: 7 / span 6;
  }
}

@media (max-width: 768px) {
  .studio-wrap {
    padding-inline: var(--container-padding-mobile);
  }

  .studio-practice + .studio-practice::before {
    margin-inline: var(--container-padding-mobile);
  }

  .studio-intro__title {
    font-size: clamp(2rem, 9vw, 2.6rem);
  }

  .studio-intro__grid {
    grid-template-columns: 1fr;
    row-gap: var(--space-5);
  }

  .studio-intro__head,
  .studio-intro__art {
    grid-column: 1;
    grid-row: auto;
  }

  .studio-intro {
    min-height: 0;
  }

  .studio-intro__art {
    height: 400px;
  }

  .intro-leaf {
    --lean: -24deg;
    transform: rotate(var(--lean)) scale(0.88);
  }

  .intro-mandala {
    top: 42%;
    width: 170vw;
  }


  .studio-intro__text {
    font-size: var(--font-size-body);
  }

  /* Stack in reading order: portrait, then Veda's words */
  .studio-artist__grid,
  .studio-practice__grid {
    grid-template-columns: 1fr;
    row-gap: var(--space-7);
  }

  .studio-artist__portrait,
  .studio-artist__copy,
  .studio-practice__copy,
  .studio-practice__art,
  .studio-practice--reverse .studio-practice__art,
  .studio-practice--reverse .studio-practice__copy {
    grid-column: 1;
    grid-row: auto;
  }

  .artwork--vase .art-svg {
    height: min(60vh, 460px);
  }

  .studio-artist__copy .button-primary {
    width: 100%;
    min-height: 56px;
  }

  .studio-artist__title {
    font-size: clamp(2.5rem, 11vw, 3.25rem);
  }
}

/* Short laptop screens: tighten the intro copy so it fits one screen */
@media (min-width: 769px) and (max-height: 780px) {
  .studio-intro__text {
    font-size: var(--font-size-body);
    line-height: 1.7;
  }
}

@media (prefers-reduced-motion: reduce) {
  .art-svg {
    transform: none !important;
  }

  .art-svg :is(.ink, .tex, .pop, .vrow, .unit) {
    animation: none !important;
    stroke-dashoffset: 0;
    opacity: 1;
    transform: none;
  }

  .studio-artist__portrait img,
  .studio-artist__portrait::after {
    transition: opacity 400ms ease, filter 400ms ease;
    transform: none !important;
  }

  .word-build.is-ready .word-build__part,
  .word-build.is-ready .word-build__part .ch,
  .word-build.is-ready .word-build__part::after {
    transition: opacity 400ms ease;
    transform: none;
    translate: none;
    filter: none;
    clip-path: none;
  }

  .intro-mandala,
  .intro-mandala :is(.ring, .spoke, .node),
  .intro-leaf :is(.line, .dot, .fly, .wing) {
    animation: none;
    stroke-dashoffset: 0;
    opacity: 1;
    transform: none;
  }

  .intro-mandala {
    opacity: 0.1;
  }

  .has-reveal .studio [data-reveal] {
    translate: none;
    filter: none;
    transition: opacity 400ms ease;
  }
}


/* ---------- Beyond the studio: the art fair table ----------
   A deep Burnt Orange band (the saree cloths on Veda's stall),
   with two slim white-framed photographs set slightly askew. */

.stall {
  position: relative;
  overflow: hidden;
  padding: clamp(var(--space-7), 8vh, var(--space-9)) 0;
  background: var(--color-brand-burnt-orange);
  color: var(--color-brand-warm-ivory);
}


.stall__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(var(--space-7), 6vw, var(--space-9));
  align-items: center;
}

.stall .studio-label { color: #F3D9A4; }
.stall .studio-label::before { background-color: #F3D9A4; }

.stall__title {
  margin: 0 0 var(--space-4);
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4.4vw, 4.2rem);
  font-weight: var(--font-weight-display);
  line-height: var(--line-height-display);
  letter-spacing: var(--letter-spacing-display);
}

.stall__title em {
  font-style: italic;
  color: #F3D9A4;
}

.stall__lead {
  margin: 0 0 var(--space-6);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.7vw, 1.5rem);
  font-style: italic;
  line-height: 1.45;
  color: #FBE7C6;
}

.stall__copy > p:is(:not([class]), .studio-copy) {
  max-width: 34rem;
  margin: 0 0 var(--space-5);
  font-size: var(--font-size-body);
  line-height: 1.78;
  color: rgba(248, 245, 236, 0.9);
}

.stall__facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5) var(--space-6);
  margin: var(--space-6) 0 0;
  padding: var(--space-5) 0 0;
  list-style: none;
  border-top: 1px solid rgba(243, 217, 164, 0.35);
}

.stall__facts li { display: grid; gap: 2px; }

.stall__facts strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: var(--font-weight-display);
  color: var(--color-brand-warm-ivory);
}

.stall__facts span {
  font-size: var(--font-size-caption);
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
  color: rgba(243, 217, 164, 0.85);
}

/* two photos, overlapping a little like prints laid on a table */
/* three photos in an aligned grid: the ArtNest table across the top,
   the two fairs side by side below. The gallery's width is tied to the
   screen height so the whole section fits in one view. */
.stall__gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5) var(--space-4);
  justify-self: center;
  width: min(100%, 44rem, calc((100svh - 230px) * 0.98));
}

.stall__photo { margin: 0; }
.stall__photo--c { grid-column: 1 / -1; grid-row: 1; }
.stall__photo--a { grid-column: 1; grid-row: 2; }
.stall__photo--b { grid-column: 2; grid-row: 2; }

/* a slim white gallery frame: a fine white border and a hairline */
.stall-frame {
  padding: 7px;
  background: #FFFFFF;
  box-shadow: 0 2px 10px rgba(60, 20, 8, 0.14);
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.stall-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(var(--ink-rgb, 46, 46, 43), 0.1);
}

.stall__photo--c .stall-frame img {
  aspect-ratio: 16 / 9;
  object-position: 50% 40%;
}

.stall__photo:hover .stall-frame { transform: translateY(-3px); }

.stall__photo figcaption {
  margin-top: var(--space-2);
  font-size: var(--font-size-caption);
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
  color: rgba(243, 217, 164, 0.9);
}


@media (max-width: 1024px) {
  .stall__grid { grid-template-columns: 1fr; }
  .stall__copy > p:is(:not([class]), .studio-copy) { max-width: 40rem; }
}

@media (max-width: 768px) {
  .stall { padding: var(--space-8) 0; }
  .stall__grid { padding-inline: var(--container-padding-mobile); }
  .stall-frame { padding: 5px; }
  .stall__gallery { width: 100%; gap: var(--space-4) var(--space-3); }
}


.studio-practice__art .studio-caption { text-align: center; }
