/* pages/home.css: loaded only on the "home" template.
   Ported from the source theme (RECON/assets/pretty/style.css), selectors and values kept 1:1. */
@layer custom {
  .cas-headline .cas-line span {
    display: block;
  }
  .portfolio-showcase.showcase-video {
    position: relative;
  }
  .cll-showcase--carousel.dark .cas-progress span,
  body.dark .cas-progress span {
    background: var(--clr-white);
  }
  body.dark .scroll-notice span {
    color: var(--clr-white-40);
  }
  body.dark .scroll-notice span.sn_bef {
    background: var(--clr-white-40);
  }
  .cas-headline {
    box-sizing: border-box;
  }
  .cll-showcase--carousel.dark .cas-progress,
  body.dark .cas-progress {
    background: var(--clr-white-20);
  }
  .showcase-video {
    width: 100%;
    height: 100%;
  }
  .cs-image img {
    width: 100%;
    object-fit: cover;
    height: 100%;
  }
  .showcase-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
  }
  .cll-showcase__footer {
    position: absolute;
    bottom: 7.5%;
    width: 83%;
    left: 50%;
    transform: translate(-50%);
    pointer-events: none;
  }
  .cas-headline,
  .cas-project-wrapper {
    transform: translateY(-50%);
  }
  .cll-showcase__footer-left,
  .cll-showcase__footer-right {
    display: block;
    float: left;
    width: 50%;
    height: 100%;
    pointer-events: all;
  }
  .cll-showcase__footer-right {
    text-align: right;
    float: right;
    pointer-events: all;
  }
  .cas-headline,
  .cas-titles .cs-title {
    letter-spacing: 0;
    font-weight: 700;
  }
  .scroll-notice span:last-child {
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
  }
  .scroll-notice {
    display: inline-block;
    background: 0 0;
    border: none;
    padding: 0;
    color: inherit;
    font: inherit;
    cursor: pointer;
  }
  .scroll-notice {
    position: relative;
    width: auto;
    cursor: pointer;
  }
  .scroll-notice span:last-child {
    display: block;
    position: relative;
    width: auto;
    color: var(--clr-dark-60);
    writing-mode: vertical-lr;
  }
  span.sn_bef {
    position: absolute;
    width: 1px;
    height: 40px;
    background: var(--clr-dark-60);
    bottom: 140%;
    left: 5px;
  }
  .cas-titles .cs-title a {
    text-decoration: none;
    color: var(--clr-white);
    display: block;
    overflow: hidden;
  }
  .cas-project-wrapper {
    position: absolute;
  }
  .portfolio-showcase.cll-showcase--carousel {
    width: 100%;
    height: 100vh;
  }
  .cas-project-wrapper {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    flex-wrap: nowrap;
    flex-direction: row;
    -ms-flex-align: start;
    align-items: flex-start;
    top: 50%;
  }
  .cas-project {
    display: block;
    margin-right: 300px;
    width: 50vw;
    position: relative;
    height: 56vh;
  }
  .cas-project:last-child {
    margin-right: 0;
  }
  .cas-headline {
    position: absolute;
    top: 50%;
    left: 8.5%;
    max-width: 80vw;
    font-size: 60px;
    line-height: 75px;
    padding-left: 5%;
  }
  @media (min-width: 577px) and (max-width: 1024px) {
  .cas-headline {
    font-size: 40px;
  }
  }
  .cas-headline .cas-line {
    overflow: hidden;
    padding-right: 6px;
  }
  .cs-image {
    width: 100%;
    overflow: hidden;
    height: 100%;
  }
  .cas-titles {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 25;
    transform: translate(-50%, -50%);
    text-align: center;
    height: 250px;
    overflow: hidden;
  }
  .cas-titles .cas-titles-wrap {
    display: block;
    position: relative;
    overflow: hidden;
    transform: translateY(250px);
  }
  .cas-titles .cs-title {
    font-size: 150px;
    white-space: nowrap;
    padding: 50px 0;
  }
  .cas-progress {
    display: block;
    position: fixed;
    bottom: 7.5%;
    width: 50%;
    height: 1px;
    background: var(--clr-dark-20);
    left: 50%;
    transform: translate(-50%);
  }
  .cas-progress span {
    position: absolute;
    left: 0;
    background: var(--clr-dark);
    height: 100%;
    width: 0%;
  }
  .cas-bg-text {
    font-size: 200px;
    font-weight: 700;
    letter-spacing: 0;
    position: fixed;
    top: 10%;
    left: 0;
    white-space: nowrap;
    opacity: 0.02;
  }
  @media only screen and (max-width: 450px) {
  .cas-headline br,
  .cas-progress {
    display: none;
  }
  }
  @media only screen and (max-width: 450px) {
  .cas-headline {
    font-size: 22px;
    line-height: 32px;
    max-width: 75vw;
    padding-left: 0;
  }
  }
  @media only screen and (max-width: 450px) {
  .cas-project {
    width: 100vw;
    height: 28vh;
  }
  }
  @media only screen and (max-width: 450px) {
  .cas-titles {
    height: 80px;
  }
  }
  @media only screen and (max-width: 450px) {
  .cas-titles .cas-titles-wrap {
    transform: translateY(80px);
  }
  }
  @media (min-width: 450px) and (max-width: 900px) {
  .cas-titles .cs-title {
    font-size: 100px;
  }
  }
  @media (min-width: 450px) and (max-width: 900px) {
  .cas-project {
    width: 75vw;
    height: 70vh;
  }
  }
  .section-full-img {
    width: 100%;
    height: auto;
  }
  .img-pos-top {
    object-position: top center;
  }
  .cas-titles .cs-title {
    font-size: clamp(28px, 8.4vw, 160px);
    letter-spacing: 0;
    padding: 0.3333em 0;
  }
  .cas-titles .cs-title,
  .cas-titles .cs-title a {
    letter-spacing: 0;
  }
  .cas-headline .cas-line {
    padding-bottom: 0.16em;
    margin-bottom: -0.16em;
  }
  .stats-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 48px 40px;
    width: 100%;
  }
  .stats-row .a-number-counter.stats-row__item {
    float: none;
    width: auto;
    margin: 0;
    padding: 0;
  }
  .stats-row .ac-number {
    line-height: 1;
  }
  .stats-row .ac-title {
    font-size: 14px;
    letter-spacing: 0;
    color: #ffffff8c;
  }
  .stats-row .ac-title:before {
    margin-bottom: 18px;
  }
  @media (max-width: 900px) {
  .stats-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 32px;
  }
  }
  @media (max-width: 520px) {
  .stats-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  }
  .stats-row .a-number-counter.stats-row__item {
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .stats-row .ac-title {
    transition: color 0.35s ease;
  }
  .stats-row .a-number-counter.stats-row__item:hover .ac-title {
    color: #ffffffd9;
  }
  @media (prefers-reduced-motion: reduce) {
  .stats-row .a-number-counter.stats-row__item {
    transition: none;
  }
  }
  body.dark .scroll-notice span:last-child {
    color: var(--clr-white-60);
    font-size: 13px;
  }
  .scroll-notice {
    min-width: 24px;
    min-height: 24px;
  }
  @media (min-width: 1024px) {
  .cll-showcase__footer-right {
    padding-right: 70px;
  }
  }
  .cas-headline .cas-line,
  .cas-headline .cas-line > span {
    letter-spacing: 0;
  }
}

/* Foundation addition: on phones the source hides the headline <br>s; each sentence is its own balanced block here so
   other copy never leaves an orphan word (the spans are inline at wider widths, where the <br>s break the lines). */
@layer custom {
  @media only screen and (max-width: 450px) {
    .cas-headline .cas-hl { display: block; text-wrap: balance; }
  }
}

/* reduced motion: static showcase (no pin, no clipped title layer), keyboard and pointer reachable.
   only where the ported source rules set the same property with higher specificity. */
@layer custom {
  .showcase-static .portfolio-showcase.cll-showcase--carousel { height: auto; padding: 170px 0 60px; }
  .showcase-static .cas-headline { position: static; transform: none; max-width: none; padding: 0 8.5% 40px; }
  .showcase-static .cas-project-wrapper {
    position: static; transform: none; display: flex; gap: 30px; width: 100%;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
    padding: 0 8.5% 20px; scroll-padding-inline: 8.5%;
  }
  .showcase-static .cas-project { flex: 0 0 min(80vw, 640px); width: auto; height: auto; margin: 0; scroll-snap-align: start; }
  .showcase-static .cs-image { aspect-ratio: 16 / 10; height: auto; }
  .showcase-static .cs-image img { width: 100%; height: 100%; object-fit: cover; }
  .showcase-static .cas-project .cs-title { position: static; margin-top: 14px; font-size: clamp(22px, 3vw, 40px); line-height: 1.2; padding: 0; transform: none; }
  .showcase-static .cas-project .cs-title a { color: var(--clr-white); text-decoration: none; }
  .showcase-static .cas-titles, .showcase-static .cas-bg-text, .showcase-static .cas-progress, .showcase-static .cll-showcase__footer { display: none; }
}
