/* =========================================================
   NAILS BY REBEKA — MUNKÁIM
   Külön oldal CSS
   Nincs @import és nincs egymásba ágyazott media query.
========================================================= */

* {
    box-sizing: border-box;
  }
  
  .works-page {
    overflow: hidden;
    background: #f8f6f3;
    color: #171515;
  }
  
  .works-container {
    width: min(1180px, calc(100% - 80px));
    margin: 0 auto;
  }
  
  /* ---------- HERO ---------- */
  
  .works-hero {
    position: relative;
    min-height: 760px;
    display: flex;
    align-items: center;
    background:
      radial-gradient(circle at 85% 35%, rgba(205,185,175,.22), transparent 28%),
      #f8f6f3;
    overflow: hidden;
  }
  
  .works-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 1fr);
    gap: 80px;
    align-items: center;
    padding: 95px 0 105px;
  }
  
  .works-copy {
    position: relative;
    z-index: 3;
  }
  
  .works-kicker {
    font-size: 10px;
    line-height: 1;
    letter-spacing: .3em;
    color: #aaa19c;
    font-weight: 600;
  }
  
  .works-count {
    margin-top: 32px;
    font-size: 11px;
    letter-spacing: .12em;
    color: #7e7671;
  }
  
  .works-count span {
    margin: 0 6px;
    color: #b8b0aa;
  }
  
  .works-copy h1 {
    margin: 25px 0 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(76px, 8.5vw, 128px);
    font-weight: 400;
    line-height: .82;
    letter-spacing: -.065em;
  }
  
  .works-copy h1 em,
  .gallery-heading h2 em,
  .cta-inner h2 em {
    font-style: italic;
    font-weight: 400;
  }
  
  .works-copy > p {
    max-width: 520px;
    margin: 34px 0 0;
    font-size: 14px;
    line-height: 1.75;
    color: #6f6864;
  }
  
  .works-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 28px;
    margin-top: 38px;
  }
  
  .works-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 27px;
    background: #171515;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .19em;
    transition: transform .35s ease, background .35s ease;
  }
  
  .works-button:hover {
    transform: translateY(-4px);
    background: #332d2a;
  }
  
  .works-instagram {
    color: #5e5753 !important;
    text-decoration: none !important;
    font-size: 10px;
    letter-spacing: .2em;
    transition: opacity .3s ease;
  }
  
  .works-instagram:hover {
    opacity: .55;
  }
  
  /* ---------- HERO KÉPEK ---------- */
  
  .works-visual {
    position: relative;
    height: 580px;
    min-width: 0;
  }
  
  .visual-orbit {
    position: absolute;
    width: 520px;
    height: 520px;
    border: 1px solid rgba(120,110,105,.18);
    border-radius: 50%;
    top: 15px;
    right: -40px;
    animation: orbitFloat 9s ease-in-out infinite;
  }
  
  .visual-orbit::after {
    content: "";
    position: absolute;
    width: 190px;
    height: 190px;
    border: 1px solid rgba(120,110,105,.13);
    border-radius: 50%;
    left: 90px;
    top: 100px;
  }
  
  .visual-photo {
    position: absolute;
    overflow: hidden;
    border: 7px solid #f8f6f3;
    background: #ddd;
    box-shadow: 0 30px 70px rgba(38,25,20,.16);
  }
  
  .visual-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 1s cubic-bezier(.2,.7,.2,1);
  }
  
  .visual-photo:hover img {
    transform: scale(1.06);
  }
  
  .photo-back {
    width: 57%;
    height: 68%;
    top: 35px;
    right: 5%;
    transform: rotate(4deg);
    animation: backFloat 7s ease-in-out infinite;
  }
  
  .photo-front {
    width: 61%;
    height: 76%;
    left: 5%;
    bottom: 0;
    transform: rotate(-3deg);
    animation: frontFloat 8s ease-in-out infinite;
  }
  
  .visual-stamp {
    position: absolute;
    width: 105px;
    height: 105px;
    right: 1%;
    bottom: 4%;
    border: 1px solid rgba(80,70,65,.25);
    border-radius: 50%;
    background: rgba(248,246,243,.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transform: rotate(-10deg);
    backdrop-filter: blur(8px);
    z-index: 4;
  }
  
  .visual-stamp span {
    font-size: 6px;
    letter-spacing: .2em;
  }
  
  .visual-stamp strong {
    font-size: 7px;
    letter-spacing: .3em;
  }
  
  @keyframes frontFloat {
    0%,100% { transform: rotate(-3deg) translateY(0); }
    50% { transform: rotate(-2deg) translateY(-12px); }
  }
  
  @keyframes backFloat {
    0%,100% { transform: rotate(4deg) translateY(0); }
    50% { transform: rotate(5deg) translateY(10px); }
  }
  
  @keyframes orbitFloat {
    0%,100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(6deg) scale(1.025); }
  }
  
  /* ---------- MOZGÓ SÁV ---------- */
  
  .works-marquee {
    width: 100%;
    overflow: hidden;
    background: #171515;
    color: #fff;
  }
  
  .marquee-track {
    width: max-content;
    display: flex;
    align-items: center;
    gap: 42px;
    padding: 18px 0;
    animation: marquee 25s linear infinite;
  }
  
  .marquee-track span {
    font-size: 9px;
    letter-spacing: .28em;
    white-space: nowrap;
  }
  
  .marquee-track b {
    font-size: 10px;
    font-weight: 400;
    color: #aaa19c;
  }
  
  @keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
  }
  
  /* ---------- GALÉRIA ---------- */
  
  .works-gallery-section {
    padding: 130px 0 150px;
  }
  
  .gallery-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, .6fr);
    gap: 90px;
    align-items: end;
    margin-bottom: 60px;
  }
  
  .gallery-heading h2 {
    margin: 20px 0 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(58px, 6vw, 88px);
    font-weight: 400;
    line-height: .88;
    letter-spacing: -.055em;
  }
  
  .gallery-heading > p {
    margin: 0;
    color: #77706b;
    font-size: 13px;
    line-height: 1.8;
  }
  
  .works-gallery {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
  }
  
  .work-card {
    position: relative;
    grid-column: span 4;
    margin: 0;
    overflow: hidden;
    min-width: 0;
    aspect-ratio: 4 / 5;
    background: #e9e4df;
  }
  
  .work-card.work-large {
    grid-column: span 5;
    aspect-ratio: 4 / 5;
  }
  
  .work-card.work-wide {
    grid-column: span 7;
    aspect-ratio: 16 / 10;
  }
  
  .work-card.work-tall {
    grid-column: span 4;
    aspect-ratio: 4 / 5.8;
  }
  
  .work-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .8s cubic-bezier(.2,.7,.2,1);
  }
  
  .work-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.62), transparent 48%);
    opacity: .15;
    transition: opacity .4s ease;
  }
  
  .work-card:hover::after {
    opacity: 1;
  }
  
  .work-card:hover img {
    transform: scale(1.055);
  }
  
  .work-number {
    position: absolute;
    z-index: 3;
    top: 18px;
    left: 18px;
    width: 43px;
    height: 43px;
    border: 1px solid rgba(255,255,255,.75);
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 9px;
    letter-spacing: .1em;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .35s ease, transform .35s ease;
  }
  
  .work-card figcaption {
    position: absolute;
    z-index: 3;
    left: 20px;
    bottom: 18px;
    color: #fff;
    font-size: 8px;
    letter-spacing: .24em;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .35s ease, transform .35s ease;
  }
  
  .work-card:hover .work-number,
  .work-card:hover figcaption {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* ---------- CTA ---------- */
  
  .works-cta {
    padding: 130px 0;
    background: #171515;
    color: #fff;
    position: relative;
    overflow: hidden;
  }
  
  .works-cta::before {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 50%;
    right: -180px;
    top: -250px;
    animation: orbitFloat 10s ease-in-out infinite;
  }
  
  .cta-inner {
    position: relative;
    z-index: 2;
  }
  
  .cta-inner h2 {
    margin: 22px 0 38px;
    max-width: 850px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(62px, 7vw, 105px);
    font-weight: 400;
    line-height: .87;
    letter-spacing: -.055em;
  }
  
  .works-button-light {
    background: #fff;
    color: #171515 !important;
  }
  
  .works-button-light:hover {
    background: #e9e4df;
  }
  
  /* ---------- LIGHTBOX ---------- */
  
  .lightbox {
    z-index: 9999;
  }
  
  /* =========================================================
     TABLET
  ========================================================= */
  
  @media (max-width: 900px) and (min-width: 601px) {
  
    .works-container {
      width: min(100% - 48px, 720px);
    }
  
    .works-hero {
      min-height: auto;
    }
  
    .works-hero-grid {
      grid-template-columns: 1fr 1fr;
      gap: 35px;
      padding: 75px 0 85px;
    }
  
    .works-copy h1 {
      font-size: clamp(58px, 8vw, 82px);
    }
  
    .works-copy > p {
      font-size: 12px;
    }
  
    .works-visual {
      height: 460px;
    }
  
    .visual-orbit {
      width: 390px;
      height: 390px;
    }
  
    .gallery-heading {
      grid-template-columns: 1fr .8fr;
      gap: 40px;
    }
  
    .gallery-heading h2 {
      font-size: 58px;
    }
  
    .works-gallery {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  
    .work-card,
    .work-card.work-large,
    .work-card.work-tall {
      grid-column: span 1;
      aspect-ratio: 4 / 5;
    }
  
    .work-card.work-wide {
      grid-column: span 2;
      aspect-ratio: 16 / 10;
    }
  }
  
  /* =========================================================
     MOBIL
  ========================================================= */
  
  @media (max-width: 600px) {
  
    .works-container {
      width: calc(100% - 36px);
      max-width: none;
    }
  
    .works-hero {
      min-height: auto;
    }
  
    .works-hero-grid {
      display: flex;
      flex-direction: column;
      gap: 42px;
      padding: 50px 0 55px;
    }
  
    .works-kicker {
      font-size: 8px;
      letter-spacing: .24em;
    }
  
    .works-count {
      margin-top: 22px;
      font-size: 9px;
    }
  
    .works-copy h1 {
      margin-top: 18px;
      font-size: clamp(54px, 16vw, 76px);
      line-height: .84;
    }
  
    .works-copy > p {
      max-width: 330px;
      margin-top: 25px;
      font-size: 12px;
      line-height: 1.7;
    }
  
    .works-actions {
      gap: 16px;
      margin-top: 27px;
    }
  
    .works-button {
      min-height: 50px;
      padding: 0 20px;
      font-size: 8px;
    }
  
    .works-instagram {
      font-size: 8px;
    }
  
    .works-visual {
      width: 100%;
      height: 360px;
    }
  
    .visual-orbit {
      width: 320px;
      height: 320px;
      right: -65px;
      top: 15px;
    }
  
    .photo-back {
      width: 64%;
      height: 67%;
      right: 1%;
      top: 5px;
    }
  
    .photo-front {
      width: 69%;
      height: 74%;
      left: 1%;
      bottom: 0;
    }
  
    .visual-stamp {
      width: 82px;
      height: 82px;
      right: 0;
      bottom: 2%;
    }
  
    .visual-stamp span {
      font-size: 5px;
    }
  
    .visual-stamp strong {
      font-size: 6px;
    }
  
    .works-marquee .marquee-track {
      gap: 25px;
      padding: 15px 0;
    }
  
    .marquee-track span {
      font-size: 7px;
    }
  
    .works-gallery-section {
      padding: 80px 0 90px;
    }
  
    .gallery-heading {
      display: block;
      margin-bottom: 35px;
    }
  
    .gallery-heading h2 {
      margin-top: 15px;
      font-size: clamp(48px, 14vw, 66px);
    }
  
    .gallery-heading > p {
      max-width: 330px;
      margin-top: 22px;
      font-size: 11px;
      line-height: 1.7;
    }
  
    .works-gallery {
      display: grid;
      grid-template-columns: 1fr;
      gap: 14px;
    }
  
    .work-card,
    .work-card.work-large,
    .work-card.work-wide,
    .work-card.work-tall {
      grid-column: 1;
      width: 100%;
      aspect-ratio: 4 / 5;
    }
  
    .work-card.work-wide {
      aspect-ratio: 4 / 3;
    }
  
    .work-card.work-tall {
      aspect-ratio: 4 / 5;
    }
  
    .work-number,
    .work-card figcaption {
      opacity: 1;
      transform: none;
    }
  
    .work-number {
      width: 37px;
      height: 37px;
      top: 13px;
      left: 13px;
      font-size: 8px;
    }
  
    .work-card figcaption {
      left: 15px;
      bottom: 14px;
      font-size: 7px;
    }
  
    .works-cta {
      padding: 85px 0;
    }
  
    .cta-inner h2 {
      font-size: clamp(50px, 15vw, 70px);
    }
  
    .works-button-light {
      width: 100%;
    }
  }
  
  /* ---------- REDUCED MOTION ---------- */
  
  @media (prefers-reduced-motion: reduce) {
    .visual-photo,
    .visual-orbit,
    .marquee-track,
    .works-cta::before {
      animation: none !important;
    }
  
    .work-card img,
    .visual-photo img,
    .works-button {
      transition: none !important;
    }
  }
  