/* The portfolio landing page has its own editorial scale; the studio keeps its compact cards. */
body.portfolio-home .home-intro {
  box-sizing: border-box;
  min-height: 0;
  width: 100%;
  max-width: none;
  padding: clamp(200px, 25vw, 360px) 2.5vw clamp(60px, 6vw, 100px);
  display: grid;
  grid-template-columns: minmax(0, 0.18fr) minmax(0, 0.205fr) minmax(0, 0.615fr);
  align-items: start;
  gap: 0;
}
.hero-context {
  grid-column: 1;
  max-width: 230px;
  min-width: 0;
  padding-top: 8px;
}
.hero-context > .eyebrow {
  display: block;
  line-height: 1.7;
}
.hero-definition {
  grid-column: 3;
  min-width: 0;
}
.hero-name {
  font:
    400 clamp(22px, 2vw, 30px) / 1.2 "Vazirmatn",
    sans-serif;
  letter-spacing: -0.035em;
  color: var(--ink, #131417);
  margin-bottom: 24px;
}
body.portfolio-home .hero-definition h1 {
  max-width: none;
  margin: 0;
  font:
    400 clamp(44px, 5.6vw, 96px) / 1.1 "Vazirmatn",
    sans-serif;
  letter-spacing: -0.045em;
}
.hero-definition .title-serif {
  display: block;
}
body.portfolio-home .hero-context p {
  margin: 20px 0 0;
  font-size: clamp(13px, 1.1vw, 16px);
  line-height: 1.65;
  color: #6c6d70;
}
body.portfolio-home .intro-work {
  display: inline-block;
  margin: 32px 0 0;
}
body.portfolio-home #selected-work.scroll-work {
  width: min(1760px, 100%);
  max-width: none;
  margin: 0 auto;
  padding: 100px 2.5vw 40px;
  box-sizing: border-box;
  scroll-margin-top: 95px;
}
body.portfolio-home #home-projects {
  width: 100%;
  max-width: none;
  padding: 0;
}
body.portfolio-home
  #home-projects
  .collection-heading:not(.exploration-heading) {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5vw;
  align-items: end;
  margin-bottom: 48px;
}
body.portfolio-home
  #home-projects
  .collection-heading:not(.exploration-heading)
  h2 {
  font-size: clamp(50px, 7.2vw, 112px);
  line-height: 0.98;
  margin: 0;
  letter-spacing: -0.055em;
}
body.portfolio-home
  #home-projects
  .collection-heading:not(.exploration-heading)
  p {
  max-width: 380px;
  font-size: 16px;
  margin: 0;
}
body.portfolio-home #home-projects .editorial-project-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}
body.portfolio-home #home-projects .editorial-project {
  display: grid;
  grid-template-columns: 0.32fr 0.68fr;
  gap: 6vw;
  align-items: center;
  padding: 44px 0 58px;
  margin: 0;
  border: 0;
  border-top: 1px solid #13141720;
  border-radius: 0;
  background: none;
  box-shadow: none;
  text-align: left;
  transform: none;
  overflow: visible;
}
body.portfolio-home #home-projects .editorial-project .project-art {
  width: 100%;
  aspect-ratio: 1.5;
  height: auto;
  min-height: 0;
  border-radius: 8px;
  overflow: hidden;
}
body.portfolio-home #home-projects .editorial-project .project-art img {
  transition: transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
}
body.portfolio-home #home-projects .editorial-project:hover .project-art img {
  transform: scale(1.035);
}
body.portfolio-home #home-projects .editorial-project .project-meta {
  position: static;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  width: auto;
  height: auto;
  opacity: 1;
  transform: none;
  background: none;
  backdrop-filter: none;
  color: #131417;
}
body.portfolio-home #home-projects .editorial-project .project-meta > span {
  min-height: 0;
  color: #6c6d70;
  font:
    400 11px / 1.7 "Fira Code",
    monospace;
  letter-spacing: 0.01em;
}
body.portfolio-home
  #home-projects
  .editorial-project
  .project-meta
  .project-index {
  margin-bottom: 44px;
  color: #131417;
  font-size: 14px;
}
body.portfolio-home #home-projects .editorial-project .project-meta h3 {
  min-height: 0;
  margin: 16px 0;
  color: #131417;
  font:
    400 clamp(25px, 2.6vw, 42px) / 1.2 "Vazirmatn",
    sans-serif;
  letter-spacing: -0.035em;
}
body.portfolio-home #home-projects .editorial-project .project-meta p {
  color: #6c6d70;
  font-size: 14px;
  line-height: 1.75;
  margin: 0;
  -webkit-line-clamp: 4;
}
body.portfolio-home
  #home-projects
  .editorial-project
  .project-meta
  .project-read {
  margin-top: 32px;
}
/* Shared editorial links: a quiet baseline with a left-to-right ink reveal. */
body.portfolio-home .intro-work,
body.portfolio-home
  #home-projects
  .editorial-project
  .project-meta
  .project-read {
  position: relative;
  padding-bottom: 2px;
  font:
    400 13px / 1.5 "Vazirmatn",
    sans-serif;
  color: #131417;
  text-decoration: none;
  border-bottom: 1px solid #cfd0d1;
}
body.portfolio-home .intro-work::after,
body.portfolio-home
  #home-projects
  .editorial-project
  .project-meta
  .project-read::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: #131417;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 400ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
body.portfolio-home .intro-work:focus-visible {
  outline: 2px solid #131417;
  outline-offset: 6px;
}
body.portfolio-home .intro-work:focus-visible::after,
body.portfolio-home
  #home-projects
  .editorial-project:focus-visible
  .project-meta
  .project-read::after {
  transform: scaleX(1);
}
@media (hover: hover) and (pointer: fine) {
  body.portfolio-home .intro-work:hover::after,
  body.portfolio-home
    #home-projects
    .editorial-project:hover
    .project-meta
    .project-read::after {
    transform: scaleX(1);
  }
}
@media (max-width: 900px) {
  body.portfolio-home #home-projects .editorial-project {
    grid-template-columns: 0.4fr 0.6fr;
    gap: 4vw;
  }
}
@media (max-width: 760px) {
  body.portfolio-home .home-intro {
    padding: 190px 5vw 72px;
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  .hero-definition {
    grid-column: 1;
    grid-row: 1;
  }
  body.portfolio-home .hero-definition h1 {
    font-size: clamp(36px, 9.6vw, 64px);
  }
  .hero-context {
    grid-column: 1;
    grid-row: 2;
    max-width: 390px;
    padding-top: 0;
  }
  body.portfolio-home .hero-context p {
    margin-top: 18px;
    font-size: 14px;
  }
}
@media (max-width: 650px) {
  body.portfolio-home #selected-work.scroll-work {
    padding: 70px 5vw 30px;
    scroll-margin-top: 140px;
  }
  body.portfolio-home
    #home-projects
    .collection-heading:not(.exploration-heading) {
    display: block;
    margin-bottom: 30px;
  }
  body.portfolio-home
    #home-projects
    .collection-heading:not(.exploration-heading)
    h2 {
    font-size: 15vw;
  }
  body.portfolio-home
    #home-projects
    .collection-heading:not(.exploration-heading)
    p {
    margin-top: 24px;
  }
  body.portfolio-home #home-projects .editorial-project {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 30px 0 44px;
  }
  body.portfolio-home
    #home-projects
    .editorial-project
    .project-meta
    .project-index {
    margin-bottom: 22px;
  }
  body.portfolio-home #home-projects .editorial-project .project-meta h3 {
    font-size: 29px;
  }
  body.portfolio-home
    #home-projects
    .editorial-project
    .project-meta
    .project-read {
    margin-top: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.portfolio-home .intro-work::after,
  body.portfolio-home
    #home-projects
    .editorial-project
    .project-meta
    .project-read::after,
  body.portfolio-home #home-projects .editorial-project .project-art img {
    transition: none;
  }
}
