/* Artwork belongs to the composition: silhouette, painted backdrop, cropped detail. */
.hero {
  display: block;
  min-height: clamp(34rem, 50vw, 46rem);
  overflow: visible;
  isolation: isolate;
}

.hero-content {
  width: 58%;
  padding: clamp(6rem, 10vw, 10rem) 0 6rem;
  z-index: 2;
}

.hero h1 {
  max-width: 10ch;
}

.hero-intro {
  max-width: 23rem;
}

.envelope-seam {
  top: 3rem;
  height: 10rem;
  transform: none;
  opacity: 0.65;
}

.envelope-seam path {
  fill: rgba(145, 185, 211, 0.045);
  stroke: rgba(23, 25, 22, 0.24);
  stroke-width: 0.8;
}

.hero::before {
  top: 3rem;
  height: 10rem;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.hero-collage {
  position: absolute;
  top: 4.5rem;
  right: 0;
  bottom: -4rem;
  width: 46%;
  z-index: 1;
  pointer-events: none;
}

.sky-sheet {
  position: absolute;
  inset: 13% 13% 8% 7%;
  background: var(--accent);
  transform: rotate(-7deg);
}

.sky-sheet::after {
  position: absolute;
  inset: 0.7rem;
  content: "";
  border: 1px solid rgba(23, 25, 22, 0.3);
}

.sculpture-cutout {
  position: absolute;
  bottom: 0;
  left: 50%;
  display: block;
  width: auto;
  height: 100%;
  aspect-ratio: 2 / 3;
  object-fit: contain;
  object-position: center bottom;
  clip-path: polygon(49% 2%, 44% 2.5%, 39% 4%, 34% 6%, 31% 9%, 29% 12%, 27% 15%, 25% 18%, 26% 20%, 25% 22%, 28% 26%, 30% 28%, 33% 30%, 35% 33%, 36.5% 37.5%, 34% 39.7%, 29% 41.5%, 27% 42.5%, 24% 43%, 22% 44%, 21% 46%, 16% 48%, 13% 50%, 11% 53%, 9% 56%, 7% 59%, 5% 62%, 3% 64.7%, 6% 67%, 7% 69%, 10% 71%, 14% 72%, 14% 74%, 20% 77%, 25% 78%, 32% 80%, 32.5% 81.5%, 34% 82%, 32% 83%, 32% 84.5%, 35% 85%, 36% 87%, 35% 89%, 33% 90.5%, 29% 92%, 29% 93.5%, 25% 94%, 25% 97.5%, 73% 97.5%, 73% 94.5%, 70% 94%, 70% 92%, 66% 90.5%, 61.5% 88.5%, 61.5% 86%, 62.5% 85%, 65% 84%, 65% 82%, 64% 81%, 65% 80%, 71% 78%, 76% 76%, 81% 74%, 86% 71%, 90% 69%, 93% 67%, 96% 65%, 98% 62%, 97% 58%, 96% 55%, 94% 51%, 92% 48%, 88% 45%, 84% 43%, 81% 42%, 78% 40.5%, 74% 40%, 70% 38%, 65% 37%, 61.5% 35%, 60.5% 32%, 62.5% 30%, 62.5% 28%, 63.5% 26%, 64.5% 23%, 66% 21%, 66% 18%, 65% 15%, 66% 12%, 64% 9%, 61% 6%, 58% 3.5%, 54% 2%);
  transform: translateX(-50%) translateY(calc(var(--scroll-progress) * -2rem)) rotate(3deg);
}

.postal-stamp {
  z-index: 3;
  top: 3.8rem;
  bottom: auto;
  right: 1.5rem;
  width: 7rem;
  background: var(--paper);
  transform: rotate(9deg);
}

.postal-stamp strong {
  font-size: 2.8rem;
}

.statement {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: clamp(37rem, 62vw, 56rem);
  margin-top: 9rem;
  padding: 2rem clamp(1.5rem, 4vw, 4rem) 4rem;
  overflow: hidden;
  border: 0;
  color: var(--paper);
  background: var(--ink);
}

.statement-painting {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 40%;
}

.statement::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(12, 17, 17, 0.55), transparent 65%),
    linear-gradient(0deg, rgba(12, 17, 17, 0.94), rgba(12, 17, 17, 0.05) 80%);
}

.statement .section-label,
.statement .section-index {
  padding-top: 0;
  color: var(--paper);
}

.statement-copy {
  display: grid;
  grid-template-columns: 1fr minmax(15rem, 0.65fr);
  align-items: end;
  gap: 3rem;
  padding: 15rem 0 0;
}

.statement h2 {
  max-width: 8ch;
  font-size: clamp(4rem, 9vw, 8.5rem);
}

.statement-copy p {
  max-width: 25rem;
  margin: 0 0 0.25rem;
  color: var(--paper);
  font-size: clamp(0.95rem, 1.3vw, 1.15rem);
}

.practice {
  position: relative;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr);
  column-gap: clamp(2rem, 7vw, 7rem);
  margin-top: 6rem;
  padding-bottom: 6rem;
  isolation: isolate;
}

.practice > .section-label {
  grid-column: 1;
  grid-row: 1;
}

.practice-content {
  grid-column: 2;
  grid-row: 1 / 3;
  padding-top: 5rem;
}

.practice-art {
  grid-column: 1;
  grid-row: 2;
  align-self: start;
  margin-top: 4rem;
  height: clamp(23rem, 43vw, 40rem);
  overflow: hidden;
  clip-path: polygon(0 5%, 91% 0, 100% 95%, 7% 100%);
  transform: rotate(-3deg);
}

.practice-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 14% center;
}

.practice-list {
  display: block;
}

.practice-item,
.practice-item:nth-child(odd),
.practice-item:nth-child(even) {
  padding: 1.5rem 0 1.8rem;
  border-right: 0;
}

.practice-item p {
  max-width: 25rem;
  font-size: 0.95rem;
}

.contact {
  margin-bottom: 1.5rem;
}

@media (max-width: 760px) {
  .hero {
    min-height: 0;
  }

  .hero-content {
    width: 100%;
    padding: 3rem 0 0;
  }

  .hero h1 {
    max-width: 10ch;
    font-size: clamp(2.6rem, 13.5vw, 5.8rem);
  }

  .hero-intro {
    max-width: 19rem;
  }

  .hero-collage {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    width: 94%;
    height: clamp(20rem, 80vw, 32rem);
    margin: 1.5rem 0 -3rem auto;
  }

  .postal-stamp {
    top: 3.2rem;
    right: 0.7rem;
    left: auto;
    bottom: auto;
    width: 3.6rem;
  }

  .hero-meta {
    padding-right: 0;
  }

  .postal-stamp-inner {
    padding: 0.25rem;
    font-size: 0.32rem;
  }

  .postal-stamp strong {
    font-size: 1.65rem;
  }

  .statement {
    min-height: 43rem;
    margin-top: 6rem;
    padding: 1.5rem 1.3rem 2rem;
  }

  .statement-painting {
    object-position: 49% top;
  }

  .statement::after {
    background: linear-gradient(0deg, rgba(12, 17, 17, 0.96) 5%, rgba(12, 17, 17, 0.65) 35%, transparent 78%);
  }

  .statement-copy {
    display: block;
    padding: 17rem 0 0;
  }

  .statement h2 {
    font-size: clamp(3.2rem, 16vw, 6rem);
    max-width: 8ch;
  }

  .statement-copy p {
    max-width: 18rem;
    margin: 1.75rem 0 0 auto;
  }

  .practice {
    display: flex;
    flex-direction: column;
    margin-top: 3.5rem;
    padding-bottom: 4rem;
  }

  .practice > .section-label {
    order: 0;
  }

  .practice-art {
    order: 1;
    width: 67%;
    height: 17rem;
    margin: 2rem 0 -1rem 0.3rem;
    transform: rotate(-4deg);
  }

  .practice-content {
    order: 2;
    padding: 2.5rem 0.7rem 0;
  }

  .practice h2 {
    position: relative;
    width: fit-content;
    margin: -4rem 0 2.5rem auto;
    padding: 0.75rem 0 0.5rem 0.75rem;
    max-width: 5ch;
    background: var(--paper);
    font-size: 3.5rem;
  }

  .practice-item:nth-child(2) {
    margin-left: 6%;
  }

  .practice-item:nth-child(3) {
    margin-left: 12%;
  }

  .contact-link {
    margin-top: 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .sky-sheet {
    transform: translateY(calc((0.5 - var(--art-progress, 0.5)) * 35px))
      rotate(calc(-10deg + var(--art-progress, 0.5) * 12deg));
  }

  .sculpture-cutout {
    transform: translateX(-50%)
      translateY(calc((0.5 - var(--art-progress, 0.5)) * 90px))
      rotate(calc(5deg - var(--art-progress, 0.5) * 6deg));
  }

  .hero::before {
    transform: rotateX(calc(var(--art-progress, 0) * -35deg));
  }

  .envelope-seam {
    transform: rotateX(calc(var(--art-progress, 0) * -35deg));
  }

  .statement-painting {
    transform: translateY(calc((0.5 - var(--art-progress, 0.5)) * 9%)) scale(1.12);
  }

  .practice-art {
    transform: translateY(calc((0.5 - var(--art-progress, 0.5)) * 70px))
      rotate(calc(-9deg + var(--art-progress, 0.5) * 12deg));
  }
}

@media (prefers-reduced-motion: reduce) {
  .sculpture-cutout {
    transform: translateX(-50%) rotate(3deg);
  }
}

/* Header navigation */
.site-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.4rem 1.4rem; font-family: var(--mono); font-size: 0.7rem; text-transform: uppercase; }
.site-nav a { padding: 0.15rem 0; border-bottom: 1px solid transparent; text-decoration: none; }
.site-nav a:hover { border-color: var(--accent); }

/* Work: case studies hosted on the store */
.work { padding-bottom: 9rem; }
.work-content { padding-top: 5.7rem; }
.work h2 { margin-bottom: 3.5rem; font-size: clamp(2.5rem, 5.2vw, 5.3rem); font-weight: 600; line-height: 0.98; }
.work-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; border-top: 1px solid var(--rule); padding-top: 1.5rem; }
.work-card a { display: flex; height: 100%; flex-direction: column; text-decoration: none; }
.work-card-image { display: grid; aspect-ratio: 4 / 5; margin-bottom: 1.1rem; place-items: center; overflow: hidden; padding: 1.25rem; border: 1px solid var(--rule); background: linear-gradient(180deg, var(--paper) 0 58%, var(--accent-soft) 58% 100%); }
.work-card-image img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; transition: transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.work-card a:hover .work-card-image img { transform: scale(1.03); }
.work-card-meta { margin-bottom: 0.6rem; color: var(--muted); font-family: var(--mono); font-size: 0.58rem; line-height: 1.3; text-transform: uppercase; }
.work-card h3 { margin-bottom: 0.55rem; font-size: clamp(1.4rem, 2vw, 2rem); font-weight: 600; line-height: 1; }
.work-card p { max-width: 20rem; margin-bottom: 1rem; color: var(--muted); font-size: 0.85rem; }
.work-card-link, .work-all { margin-top: auto; color: var(--ink); font-family: var(--mono); font-size: 0.7rem; text-transform: uppercase; }
.work-card-link span, .work-all span { color: var(--gold); }
.work-all { display: inline-block; margin-top: 2.5rem; padding-bottom: 0.4rem; border-bottom: 1px solid var(--accent); text-decoration: none; }
.work-card--site .work-card-image img { height: auto; max-height: 100%; border: 1px solid var(--rule); box-shadow: 0 0.6rem 1.4rem rgba(23, 25, 22, 0.12); }

/* Contact: Instagram alongside email */
.contact-link-secondary { display: inline-block; margin-top: 1rem; }
.contact-details .contact-link { display: inline-block; }
.footer-links { display: inline-flex; gap: 1.2rem; }

@media (max-width: 760px) {
  .site-header { align-items: center; gap: 1rem; }
  .site-nav { gap: 0.3rem 0.9rem; font-size: 0.62rem; }
  .work { padding-bottom: 6rem; }
  .work-content { padding: 3rem clamp(1rem, 8vw, 3rem) 0; }
  .work h2 { margin-bottom: 2rem; }
  .work-list { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-details .contact-link-secondary { margin-top: 1rem; }
  /* Name and © share the top row; Store and Instagram get their own row so nothing overlaps. */
  .contact-bottomline { grid-template-columns: minmax(0, 1fr) auto; row-gap: 0.7rem; }
  .contact-bottomline > .footer-links { grid-column: 1 / -1; grid-row: 2; justify-self: start; gap: 1.4rem; }
  .contact-bottomline > :last-child { grid-column: 2; grid-row: 1; }
}

/* Never let decorative overflow widen the page: Safari zooms the whole page out to fit it. */
html, body { overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
