/* =========================================
   ARTNEST TREASURES — ABOUT STATEMENT
   One full screen, editorial: a sentence-case serif statement with
   italic emphasis, a quieter sans paragraph with a hand-drawn circle
   around "beauty", one authentic artwork, the badge and Veda's
   signature. Text, circle and signature reveal on scroll (js/reveal.js).
   ========================================= */

.about {
  position: relative;
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  background-color: var(--color-background-primary);
  color: var(--color-neutral-charcoal);
}

.about__inner {
  display: flex;
  flex-direction: column;
  gap: clamp(var(--space-5), 4.5vh, var(--space-7));

  width: 100%;
  max-width: var(--container-max-width);
  margin-inline: auto;
  padding:
    calc(var(--header-h, 96px) + clamp(var(--space-4), 4vh, var(--space-7)))
    var(--container-padding-desktop)
    clamp(var(--space-6), 6vh, var(--space-8));
}


/* ---------- Top line ---------- */

.about__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: var(--border-width-thin) solid var(--color-border-subtle);

  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-medium);
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
}

.about__meta p,
.about__label {
  margin: 0;
  font: inherit;
}

.about__label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-brand-forest-green);
  font-weight: var(--font-weight-semibold);
}

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


/* ---------- Statement ----------
   Full-width editorial layout: a large serif statement across the page,
   then the supporting paragraph (with the two artwork pills) on the left
   and the badge and signature on the right. */

.about__body {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: end;
  column-gap: clamp(var(--space-7), 6vw, var(--space-10));
  row-gap: clamp(var(--space-6), 6vh, var(--space-9));
  margin: auto 0;
}

/* small dotting-pen mandala above the statement (js/dot-pen.js) */
.about__pen {
  grid-column: 1 / -1;
  width: clamp(60px, 5vw, 76px);
  aspect-ratio: 1 / 1;
  /* sit close to the statement, not a full row-gap away */
  margin-bottom: calc(var(--space-4) - clamp(var(--space-6), 6vh, var(--space-9)));
}

.about__pen svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.about__pen .pen {
  transform-box: view-box;
  transform-origin: 0 0; /* the mandala centre (user-space origin) */
}

.about__statement {
  grid-column: 1 / -1;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, min(4.6vw, 7.8vh), 5rem);
  font-weight: var(--font-weight-display);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--color-neutral-charcoal);
  text-wrap: balance;
}

.about__statement em,
.about__support em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: var(--font-weight-display);
  color: var(--color-brand-forest-green);
}

.about__support {
  max-width: 40rem;
  margin: 0;
  font-size: clamp(1.125rem, 1.45vw, 1.4rem);
  line-height: 1.7;
  color: rgba(var(--ink-rgb, 46, 46, 43), 0.82);
  text-wrap: pretty;
}

.about__support em {
  font-size: 1.22em;
  line-height: 1;
}

/* Hand-drawn circle around "beauty": sized to the word, a fine stroke */
.about__circled {
  position: relative;
  display: inline-block;
  margin-inline: 0.3em 0.2em;
}

.about__circle {
  position: absolute;
  top: -0.2em;
  left: -0.35em;
  width: calc(100% + 0.7em);
  height: calc(100% + 0.4em);
  overflow: visible;
  pointer-events: none;
}

.about__circle path {
  fill: none;
  stroke: var(--color-brand-burnt-orange);
  stroke-width: 1.5;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}


/* Inline artworks beside "dot mandalas" and "pen & ink": a rounded
   window onto a detail of each piece that opens into the full work on
   hover. The image is laid out at full card size and clipped down to
   the window, so the reveal never moves the surrounding words.
   --ratio (height ÷ width) is set per image in the HTML. */
.about__thumb {
  --card-w: 11em;
  --card-h: calc(var(--card-w) * var(--ratio, 1));
  /* Window: a rounded pill about one line tall */
  --win-w: 2.6em;
  --win-h: 1.12em;

  position: relative;
  display: inline-block;
  width: var(--win-w);
  height: var(--win-h);
  margin-inline: 0.15em 0.1em;
  vertical-align: -0.24em;
}

.about__thumb img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--card-w);
  height: var(--card-h);
  max-width: none;
  margin: calc(var(--card-h) / -2) 0 0 calc(var(--card-w) / -2);
  object-fit: cover;
  background-color: #fff;

  clip-path: inset(
    calc((var(--card-h) - var(--win-h)) / 2)
    calc((var(--card-w) - var(--win-w)) / 2)
    round calc(var(--win-h) / 2)
  );
  transform: scale(1);
  transition:
    clip-path 700ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
  cursor: zoom-in;
}

.about__thumb:hover {
  z-index: 5;
}

.about__thumb:hover img {
  clip-path: inset(0);
  transform: scale(1.04);
}

/* ---------- Traditional frames, revealed on hover ----------
   Built from three rings around the opened artwork:
   outer moulding · carved bead band · fine liner.
   Mandala: gilded gold with a dark beaded inlay (Indian traditional).
   Pen & ink: carved dark walnut with a gold bead band. */
.about__frame {
  --t: 0.85em; /* frame width */
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(var(--card-w) * 1.04 + 2 * var(--t));
  height: calc(var(--card-h) * 1.04 + 2 * var(--t));
  margin: calc((var(--card-h) * 1.04 + 2 * var(--t)) / -2) 0 0 calc((var(--card-w) * 1.04 + 2 * var(--t)) / -2);
  border-radius: 0.04em;
  box-shadow:
    0 0.06em 0.1em rgba(0, 0, 0, 0.25),
    0 0.35em 0.7em -0.1em rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: scale(0.92);
  transition:
    opacity 450ms ease,
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.about__thumb:hover .about__frame {
  opacity: 1;
  transform: scale(1);
  transition-delay: 120ms;
}

/* a ring = a box masked down to its padding band */
.about__frame .ring {
  position: absolute;
  inset: var(--in, 0);
  padding: var(--w);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box exclude,
    linear-gradient(#000 0 0);
}

.about__frame .ring--outer { --in: 0; --w: var(--t); }
.about__frame .ring--beads { --in: calc(var(--t) * 0.34); --w: calc(var(--t) * 0.3); }
.about__frame .ring--liner { --in: calc(var(--t) - 0.14em); --w: 0.14em; }

/* Cursor tilt: the opened artwork and its frame turn gently toward the
   pointer, in place (like the hero mandala). --tilt-x / --tilt-y
   (-1…1) are set by js/reveal.js. */
/* The whole thumb (artwork + frame) turns as one piece. Selectors are
   specific enough to win over the statement's word-reveal rules. */
.about .about__support .about__thumb:hover,
.about.is-inview .about__support .about__thumb.w:hover {
  transform:
    perspective(900px)
    rotateX(calc(var(--tilt-y, 0) * -7deg))
    rotateY(calc(var(--tilt-x, 0) * 7deg));
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: 0ms;
}

.about .about__support .about__thumb.is-tilting:hover,
.about.is-inview .about__support .about__thumb.w.is-tilting:hover {
  transition: transform 180ms ease-out;
}

/* ---------- Mats behind each framed artwork ---------- */

/* Mandala: the cut-out plate rests on a plain Forest Green mat */
.about__thumb--mandala img {
  object-fit: contain;
  background: var(--color-brand-forest-green);
}

/* Pen & ink: the black-and-white drawing sits on a Burnt Orange
   linen mat, with a fine ivory slip around the paper */
.about__thumb--ink img {
  box-sizing: border-box;
  padding: 0.6em;
  object-fit: contain;
  background:
    linear-gradient(var(--color-brand-warm-ivory), var(--color-brand-warm-ivory)) center / calc(100% - 1.2em + 0.12em) calc(100% - 1.2em + 0.12em) no-repeat,
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.05) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse 80% 80% at 40% 35%, rgba(255, 255, 255, 0.1), rgba(0, 0, 0, 0.18)),
    var(--color-brand-burnt-orange);
  box-shadow: inset 0 0 0.08em rgba(0, 0, 0, 0.35);
}

/* Mandala — gilded */
.about__thumb--mandala .ring--outer {
  background:
    repeating-linear-gradient(45deg, rgba(255, 246, 210, 0.22) 0 0.02em, transparent 0.02em 0.07em),
    linear-gradient(135deg, #F5DE96 0%, #C99A3A 30%, #8A651E 55%, #E2C06A 78%, #9C7426 100%);
  box-shadow: inset 0 0 0 0.02em rgba(80, 55, 15, 0.6);
}

.about__thumb--mandala .ring--beads {
  background:
    radial-gradient(circle, #FFF2C0 0 22%, #D9B252 38%, #8E6A21 52%, transparent 56%) 0 0 / calc(var(--t) * 0.3) calc(var(--t) * 0.3),
    #3A2410;
}

.about__thumb--mandala .ring--liner {
  background: linear-gradient(135deg, #FBEAB0, #B38732);
}

/* Pen & ink — carved walnut with gold beads */
.about__thumb--ink .ring--outer {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 0.015em, transparent 0.015em 0.05em),
    linear-gradient(135deg, #5A3B26 0%, #2E1C12 35%, #1B110B 60%, #4A3020 100%);
  box-shadow: inset 0 0 0 0.02em rgba(0, 0, 0, 0.6);
}

.about__thumb--ink .ring--beads {
  background:
    radial-gradient(circle, #F6DE96 0 20%, #B98D33 40%, transparent 52%) 0 0 / calc(var(--t) * 0.3) calc(var(--t) * 0.3),
    #140C07;
}

.about__thumb--ink .ring--liner {
  background: linear-gradient(135deg, #F3D98A, #9C7426);
}

/* ---------- Foot: badge + signature ---------- */

.about__foot {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: var(--space-6);
}

.about__badge {
  display: grid;
  place-items: center;
  flex: none;
  width: clamp(80px, 6.5vw, 100px);
  aspect-ratio: 1 / 1;
}

.about__badge > svg {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  overflow: visible;
}


.about__badge-ring text {
  font-family: var(--font-body);
  font-size: 8.6px;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.12em;
  fill: var(--color-neutral-charcoal);
}

.about__badge-mark {
  width: 46% !important;
  height: 46% !important;
}

.about__sign {
  display: grid;
  justify-items: end;
  /* clear the fixed back-to-top button in the corner */
  margin-right: 72px;
}

.about__signature {
  margin: 0;
  padding-inline: 0.15em;

  font-family: var(--font-signature);
  font-size: clamp(2.25rem, min(3.4vw, 6vh), 3.25rem);
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  color: var(--color-neutral-charcoal);
}

.about__sign-caption {
  display: inline-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;
}

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



/* ---------- Scroll reveal (only once JS has prepared it) ---------- */

.about.is-ready :is(.about__pen, .about__statement, .about__support, .about__sign) {
  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);
}

.about.is-ready .about__statement { transition-delay: 120ms; }
.about.is-ready .about__support { transition-delay: 300ms; }
.about.is-ready .about__sign { transition-delay: 460ms; }

.about.is-inview :is(.about__pen, .about__statement, .about__support, .about__sign) {
  opacity: 1;
  translate: 0 0;
  filter: none;
}

.about.is-ready .about__circle path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1200ms cubic-bezier(0.65, 0, 0.35, 1) 900ms;
}

.about.is-inview .about__circle path {
  stroke-dashoffset: 0;
}

/* The signature writes itself in from left to right */
.about.is-ready .about__signature {
  clip-path: inset(-30% 100% -30% 0);
  transition: clip-path 1800ms cubic-bezier(0.65, 0, 0.35, 1) 1300ms;
}

.about.is-inview .about__signature {
  clip-path: inset(-30% -10% -30% 0);
}

.about.is-ready :is(.about__meta, .about__sign-caption) {
  opacity: 0;
  transition: opacity 900ms ease 300ms;
}

.about.is-inview :is(.about__meta, .about__sign-caption) {
  opacity: 1;
}


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

@media (max-width: 1024px) {
  .about__inner {
    padding-inline: var(--container-padding-tablet);
  }
}

@media (max-width: 900px) {
  .about__body {
    grid-template-columns: 1fr;
  }

  .about__foot {
    justify-content: flex-end;
  }
}

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

  .about__statement {
    font-size: clamp(2.1rem, 9vw, 2.75rem);
    line-height: 1.12;
  }

  .about__support {
    font-size: var(--font-size-body);
    line-height: 1.7;
  }

  .about__meta p {
    display: none;
  }

  .about__inner {
    padding-bottom: 96px; /* clear the back-to-top button */
  }

  .about__foot {
    flex-direction: row;
    align-items: center;
    gap: var(--space-5);
  }

  .about__badge {
    width: 64px;
  }

  .about__sign {
    margin-right: 0;
  }

  .about__signature {
    padding-inline: 0;
    font-size: clamp(2rem, 9vw, 2.5rem);
  }

  .about__sign-caption {
    font-size: 0.625rem;
    letter-spacing: 0.16em;
  }

  .about__sign-caption::before {
    width: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about__thumb img,
  .about__frame,
  .about.is-ready :is(.about__pen, .about__statement, .about__support, .about__sign),
  .about.is-ready .about__circle path,
  .about.is-ready .about__signature,
  .about.is-ready :is(.about__meta, .about__sign-caption) {
    transition: none;
  }
}
