/* pages/work.css: loaded only on the "work" template.
   Ported from the source theme (RECON/assets/pretty/style.css), selectors and values kept 1:1. */
@layer custom {
  .aw-project img,
  .aw-project-image {
    height: 100%;
  }
  body.dark .aw-project-cat {
    color: var(--clr-white-40);
  }
  .aw-project a {
    text-decoration: none;
    color: var(--clr-dark);
  }
  .cll-works {
    display: block;
    width: 100%;
    overflow: hidden;
  }
  .aw-project img {
    width: 100%;
    object-fit: cover;
  }
  .aw-project-cat {
    color: var(--clr-dark-60);
    font-weight: 700;
  }
  .aw-project-cat,
  body.dark .aw-project-cat {
    color: #ffffffbf;
  }
  .aw-project {
    display: block;
    margin-bottom: 200px;
    overflow: hidden;
    height: 500px;
  }
  .aw-project-title {
    color: #fff;
    margin-bottom: 5px;
  }
  .cll-works.column_2 .aw-project,
  .cll-works.column_2 .aw-works-sizer {
    width: 45%;
  }
  .aw-works-gutter {
    width: 10%;
  }
  .aw-works-stamp {
    position: absolute;
    right: 0;
    width: 10px;
    height: 100px;
  }
  .aw-project-meta {
    position: absolute;
    bottom: 40px;
    left: 25px;
    padding: 0 15px;
  }
  @media (max-width: 767px) {
  .aw-project-title {
    line-height: 1.4 !important;
  }
  }
  @media (max-width: 767px) {
  .aw-project-meta {
    bottom: 15px;
    left: 0;
  }
  }
  .aw-project-title {
    font-size: 30px;
    font-weight: 700;
  }
  .aw-project-cat {
    font-size: 20px;
    letter-spacing: 0;
  }
  @media (min-width: 577px) and (max-width: 1024px) {
  .aw-project-title {
    font-size: 20px;
  }
  }
  @media (min-width: 577px) and (max-width: 1024px) {
  .aw-project-cat {
    font-size: 16px;
  }
  }
  @media (min-width: 577px) and (max-width: 1024px) {
  .aw-project-meta {
    left: 20px;
    padding: 0 5px;
  }
  }
  @media only screen and (max-width: 450px) {
  .cll-works.column_2 .aw-project,
  .cll-works.column_2 .aw-works-sizer {
    width: 100%;
  }
  }
  @media only screen and (max-width: 450px) {
  .aw-project {
    margin-bottom: 50px;
    height: 300px;
  }
  }
  @media only screen and (max-width: 450px) {
  .aw-project-title {
    font-size: 20px;
    letter-spacing: 0;
  }
  }
  @media only screen and (max-width: 450px) {
  .aw-works-stamp {
    height: 35px;
  }
  }
  .cll-works .aw-project {
    height: auto;
    aspect-ratio: 3 / 2;
    margin-bottom: 90px;
  }
  .cll-works .aw-project .aw-project-image {
    height: 100%;
  }
  .cll-works .aw-project img {
    object-position: var(--cc-focal, 50% 50%);
  }
  @media (max-width: 767px) {
  .cll-works .aw-project {
    aspect-ratio: 3 / 2;
    margin-bottom: 40px;
  }
  }
  .cll-works .aw-project img {
    transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
  }
  .cll-works .aw-project a:hover img,
  .cll-works .aw-project a:focus-visible img {
    transform: scale(1.04);
  }
  .cll-works .aw-project .aw-project-meta {
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .cll-works .aw-project a:hover .aw-project-meta,
  .cll-works .aw-project a:focus-visible .aw-project-meta {
    transform: translateY(-8px);
  }
  .cll-works .aw-project .aw-project-cat {
    transition: color 0.4s ease;
  }
  .cll-works .aw-project a:hover .aw-project-cat,
  .cll-works .aw-project a:focus-visible .aw-project-cat {
    color: var(--clr-white);
  }
  @media (prefers-reduced-motion: reduce) {
  .cll-works .aw-project img,
  .cll-works .aw-project .aw-project-meta {
    transition: none;
  }
  }
  @media (prefers-reduced-motion: reduce) {
  .cll-works .aw-project a:hover img,
  .cll-works .aw-project a:hover .aw-project-meta {
    transform: none;
  }
  }
  .cll-works .aw-works-wrapper {
    contain: layout;
  }
  .aw-project a,
  .aw-project .aw-project-image {
    width: 100%;
  }
  /* Masonry replacement: every card is 3/2, so the source layout (sizer 45%, gutter 10%, a 10x100px stamp top-right)
     always alternates left/right with the right column 100px lower. Same result as a 2-column grid + offset. */
  .cll-works .aw-works-wrapper {
    display: grid;
    grid-template-columns: 45% 45%;
    column-gap: 10%;
    align-items: start;
  }
  .cll-works.column_2 .aw-project {
    width: auto;
  }
  .cll-works .aw-project:nth-child(even) {
    position: relative;
    top: 100px;
  }
  .cll-works .aw-works-wrapper:has(> .aw-project:nth-child(even):last-child) {
    padding-bottom: 100px;
  }
  @media only screen and (max-width: 450px) {
  .cll-works .aw-works-wrapper {
    grid-template-columns: 100%;
    padding-top: 35px;
  }
  .cll-works .aw-project:nth-child(even) {
    top: 0;
  }
  .cll-works .aw-works-wrapper:has(> .aw-project:nth-child(even):last-child) {
    padding-bottom: 0;
  }
  }
  /* curtain (source .aw-project-wrap:before, #101010 in dark mode), scaleX 1 -> 0 once the card top passes 75% */
  .aw-project-wrap {
    position: relative;
    overflow: hidden;
    height: 100%;
  }
  .aw-project .aw-project-wrap:before {
    content: "";
    display: block;
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: var(--clr-page-dark);
    z-index: 1;
    transform-origin: right center;
    transition: transform 0.8s cubic-bezier(0.54, 0.54, 0.14, 0.99);
    will-change: transform;
    pointer-events: none;
  }
  .aw-project.is_inview .aw-project-wrap:before,
  html:not(.js) .aw-project .aw-project-wrap:before,
  html.reduced .aw-project .aw-project-wrap:before {
    transform: scaleX(0);
  }
  .aw-project a {
    display: block;
    position: relative;
    height: 100%;
  }
  .aw-project-image {
    overflow: hidden;
  }
  /* legibility over bright site screenshots (the source covers were dark device renders) */
  .aw-project-image:after {
    content: "";
    position: absolute;
    inset: 35% 0 0;
    background: linear-gradient(to top, rgb(0 0 0 / 0.72), rgb(0 0 0 / 0));
    pointer-events: none;
  }
  .aw-project-meta {
    z-index: 1;
  }
  .aw-project-title,
  .aw-project-cat {
    text-wrap: balance;
  }
  .aw-project-title {
    margin-bottom: 10px;
  }
  .aw-project-title {
    letter-spacing: 0;
  }
  .cc-works-cta {
    text-align: center;
  }
  .cc-works-cta__title {
    margin: 0 auto;
    max-width: 16ch;
    font-size: clamp(29px, 6.4vw, 104px);
    line-height: 1.08;
    letter-spacing: 0;
  }
  .cc-works-cta__action {
    display: flex;
    justify-content: center;
    margin-top: clamp(40px, 5vw, 76px);
  }
  .cc-works-cta__circle {
    text-decoration: none;
    box-sizing: border-box;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 164px;
    height: 164px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--clr-white);
    color: var(--clr-dark);
    text-align: center;
    cursor: pointer;
    box-shadow: 0 10px 30px #00000038;
    transition:
      background-color 0.4s ease,
      color 0.4s ease,
      transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .cc-works-cta__circle-label {
    max-width: 6.3em;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0;
  }
  .cc-works-cta__circle:after {
    content: "";
    position: absolute;
    inset: -16px;
    border: 1px solid hsla(0, 0%, 100%, 0.85);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0.9);
    pointer-events: none;
    transition:
      opacity 0.45s ease,
      transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .cc-works-cta__circle:hover,
  .cc-works-cta__circle:focus-visible {
    background: var(--clr-dark);
    color: var(--clr-white);
    transform: scale(1.07) rotate(-6deg);
  }
  .cc-works-cta__circle:hover:after,
  .cc-works-cta__circle:focus-visible:after {
    opacity: 1;
    transform: scale(1);
  }
  @media (prefers-reduced-motion: reduce) {
  .cc-works-cta__circle {
    transition:
        background-color 0.4s ease,
        color 0.4s ease;
  }
  }
  @media (prefers-reduced-motion: reduce) {
  .cc-works-cta__circle:after {
    transition: opacity 0.45s ease;
    transform: none;
  }
  }
  @media (prefers-reduced-motion: reduce) {
  .cc-works-cta__circle:hover,
  .cc-works-cta__circle:focus-visible {
    transform: none;
  }
  }
  @media (prefers-reduced-motion: reduce) {
  .cc-works-cta__circle:hover:after,
  .cc-works-cta__circle:focus-visible:after {
    transform: none;
  }
  }
  @media (max-width: 767px) {
  .cc-works-cta__circle {
    width: 136px;
    height: 136px;
  }
  }
  @media (max-width: 767px) {
  .cc-works-cta__circle-label {
    font-size: 17px;
  }
  }
  @media (max-width: 767px) {
  .cc-works-cta__title {
    max-width: none;
  }
  }
  /* link to /archive under the CTA (design-archive agent) */
  .cc-works-archive {
    margin: clamp(48px, 6vw, 88px) 0 0;
    font-size: clamp(17px, 1.4vw, 20px);
    line-height: 1.4;
  }
  .cc-works-archive__link {
    color: var(--clr-white-60);
    text-decoration: underline;
    text-decoration-color: var(--clr-white-20);
    text-underline-offset: 0.3em;
    white-space: nowrap;
    transition: color 0.3s, text-decoration-color 0.3s;
  }
  @media (hover: hover) {
    .cc-works-archive__link:hover { color: var(--clr-white); text-decoration-color: currentColor; }
  }
}
