/* ------------------------------------------------------------------
   Artivo - recreation study
   Dark editorial single page. Original implementation.
------------------------------------------------------------------- */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../assets/fonts/cormorant-garamond-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../assets/fonts/cormorant-garamond-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../assets/fonts/cormorant-garamond-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../assets/fonts/cormorant-garamond-400i.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Grey Qo";
  src: url("../assets/fonts/grey-qo-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lato";
  src: url("../assets/fonts/lato-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lato";
  src: url("../assets/fonts/lato-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #000000;
  --ink: #050505;
  --white: #f4f1ea;
  --bright: #ffffff;
  --muted: #8f8a80;
  --muted-soft: #6f6a62;
  --ghost-a: #262626;
  --ghost-b: #0d0d0d;
  --line: rgba(244, 241, 234, 0.22);
  --line-soft: rgba(244, 241, 234, 0.12);
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --script: "Grey Qo", "Cormorant Garamond", cursive;
  --sans: "Lato", -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(1.25rem, 4vw, 4.5rem);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--white);
  background: var(--black);
  overflow-x: clip;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.script {
  font-family: var(--script);
  font-weight: 400;
  font-style: normal;
}

/* ---------------- header ---------------- */

.site-head {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(1rem, 2.4vw, 1.7rem) var(--gutter);
  transition: top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-head.is-hidden {
  top: -8rem;
}

.wordmark {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  letter-spacing: 0.01em;
  color: var(--bright);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.pill {
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.7rem 1.5rem;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

.pill:hover,
.pill:focus-visible {
  background: var(--bright);
  color: #111;
  border-color: var(--bright);
  outline: none;
}

.menu {
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-content: center;
  gap: 5px;
  transition: border-color 0.35s ease;
}

.menu span {
  display: block;
  width: 17px;
  height: 1px;
  background: var(--white);
}

.menu:hover {
  border-color: var(--bright);
}

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

.hero {
  position: relative;
  height: 100svh;
  min-height: 40rem;
  overflow: hidden;
  background: #17150f;
}

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
  transform-origin: center 30%;
  will-change: transform;
}

/* Flowers still image = fallback shown until (or if) the water shader mounts its
   canvas over it. The shader's canvas is prepended by ShaderMount and covers this. */
.hero__shader {
  background: #0a0a0a url("../assets/art/hero.jpg") center center / cover no-repeat;
}

.hero__vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(5, 4, 3, 0.62) 0%,
      rgba(5, 4, 3, 0.3) 9%,
      rgba(5, 4, 3, 0.04) 26%,
      rgba(5, 4, 3, 0.12) 55%,
      rgba(5, 4, 3, 0.82) 100%);
}

.hero__shade {
  position: absolute;
  inset: 0;
  background: #050403;
  opacity: 0;
  will-change: opacity;
}

.hero__foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(1.5rem, 5vh, 4rem);
  padding-left: var(--gutter);
  color: var(--bright);
  will-change: transform;
}

.hero__pre {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.8rem;
  line-height: 1;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bright);
  margin-bottom: clamp(1rem, 2.4vh, 1.6rem);
}

.hero__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 6vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  max-width: 15ch;
}

.hero__sub {
  margin-top: clamp(1.2rem, 2.6vh, 1.8rem);
  max-width: 44ch;
  color: rgba(244, 241, 234, 0.85);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.55;
}

/* ---------------- shared section chrome ---------------- */

.section {
  position: relative;
  background: var(--black);
  padding: clamp(4rem, 8vh, 7.5rem) var(--gutter);
}

/* round arrow button */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 1.1rem;
  color: var(--white);
  font-family: var(--sans);
  font-size: 1rem;
  cursor: pointer;
}

.btn__icon {
  width: 3.3rem;
  height: 3.3rem;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: grid;
  place-items: center;
  transition: background-color 0.4s ease, transform 0.4s ease;
}

.btn__icon svg {
  width: 1.05rem;
  height: 1.05rem;
  stroke: var(--white);
  transition: transform 0.4s ease, stroke 0.4s ease;
}

.btn:hover .btn__icon {
  background: var(--bright);
}

.btn:hover .btn__icon svg {
  stroke: #111;
  transform: translate(2px, -2px);
}

/* ---------------- about ---------------- */

/* 3-column grid: [offset] [body] [image]. Text and image live in separate
   tracks, so they can never overlap at any viewport width. */
.about {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.35fr) clamp(14rem, 25vw, 23rem);
  column-gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}

.about__title {
  grid-column: 1 / 3;
  grid-row: 1;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 6.6vw, 6.75rem);
  line-height: 1.04;
  letter-spacing: -0.005em;
  max-width: 21ch;
}

.about__title .script {
  font-size: 1.12em;
  padding: 0 0.12em;
  line-height: 0;
}

.about__media {
  grid-column: 3;
  grid-row: 1 / 3;
  align-self: start;
  width: 100%;
  overflow: hidden;
}

.about__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  will-change: transform;
}

.about__body {
  grid-column: 2;
  grid-row: 2;
  margin-top: clamp(2rem, 5vh, 4rem);
  max-width: 42rem;
}

.about__body p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.about__body p + p {
  margin-top: 1.5rem;
}

.about__body .btn {
  margin-top: clamp(2.5rem, 6vh, 4rem);
}

/* ---------------- founder ---------------- */

.founder {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 6rem);
}

.founder__photo {
  position: relative;
  flex: 0 0 auto;
  width: clamp(17rem, 40vw, 30rem);
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: linear-gradient(155deg, #1b1712, #0a0908);
  display: grid;
  place-items: center;
}

/* monogram placeholder shown until a real photo is dropped in (img removes
   itself on error, revealing this); the photo covers it once present. */
.founder__photo::after {
  content: "S";
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3.5rem, 7vw, 6rem);
  color: rgba(244, 241, 234, 0.1);
}

.founder__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.founder__body {
  flex: 1 1 22rem;
  max-width: 40rem;
}

.founder__label {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bright);
  margin-bottom: clamp(1rem, 2vh, 1.5rem);
}

.founder__name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 5.5vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.01em;
  margin-bottom: clamp(1.4rem, 3vh, 2rem);
}

.founder__bio {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
  max-width: 34rem;
}

.founder__bio + .founder__bio {
  margin-top: 1.5rem;
}

.founder__socials {
  display: flex;
  gap: 0.7rem;
  margin-top: clamp(1.8rem, 4vh, 2.75rem);
}

.social {
  width: 2.75rem;
  height: 2.75rem;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--white);
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

.social:hover,
.social:focus-visible {
  background: var(--bright);
  color: #111;
  border-color: var(--bright);
  outline: none;
}

.social svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: currentColor;
}

/* ---------------- exhibitions ---------------- */

.exhib {
  overflow: hidden;
}

.exhib__ghost {
  font-family: var(--serif);
  font-weight: 500;
  text-transform: uppercase;
  text-align: center;
  font-size: clamp(2.6rem, 12vw, 11.5rem);
  line-height: 0.98;
  letter-spacing: 0.01em;
  background: linear-gradient(to bottom, var(--ghost-a), var(--ghost-b));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  will-change: transform;
  pointer-events: none;
  user-select: none;
}

.exhib__head {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem clamp(2rem, 6vw, 6rem);
  align-items: end;
  margin-top: clamp(3rem, 10vh, 8rem);
}

.exhib__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: 1;
}

.exhib__title .script {
  font-size: 1.1em;
  padding: 0 0.1em;
  line-height: 0;
}

.exhib__intro {
  max-width: 30rem;
  justify-self: end;
}

.exhib__intro p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.6;
}

.exhib__intro .btn {
  margin-top: 2rem;
}

.exhib__list {
  margin-top: clamp(3.5rem, 10vh, 7rem);
  border-top: 1px solid var(--line-soft);
}

.exhib__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.4rem, 3vh, 2.1rem) 0;
  border-bottom: 1px solid var(--line-soft);
  transition: padding-left 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.exhib__row:hover {
  padding-left: 1.25rem;
}

.exhib__row-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
}

.exhib__row-meta {
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-soft);
  white-space: nowrap;
}

/* ---------------- footer ---------------- */

.site-foot {
  background: var(--black);
  border-top: 1px solid var(--line-soft);
  padding: clamp(1.75rem, 4vh, 2.75rem) var(--gutter);
}

.site-foot__top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-foot .wordmark {
  color: var(--white);
}

.site-foot__contact {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.4rem, 3.4vw, 2.4rem);
}

.site-foot__contact a {
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-size: 0% 1px;
  background-position: 0 100%;
  transition: background-size 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-foot__contact a:hover,
.site-foot__contact a:focus-visible {
  background-size: 100% 1px;
}

.site-foot__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 2.5rem;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--muted-soft);
}

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

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

  .about__title,
  .about__media,
  .about__body {
    grid-column: 1;
    grid-row: auto;
  }

  .about__media {
    width: min(20rem, 70%);
    margin-top: 2.5rem;
  }

  .about__body {
    margin-top: clamp(2.5rem, 8vh, 5rem);
  }

  .founder__photo {
    width: 100%;
  }

  .exhib__head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .exhib__intro {
    justify-self: start;
  }

  .exhib__row {
    flex-direction: column;
    gap: 0.4rem;
  }
}

/* ---------------- motion safety ---------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
