﻿/* ── References / B2B logo carousel ── */
.references {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    scroll-snap-align: start;
    background: rgba(241, 237, 228, 0.50);
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
}

.references-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 20px;
}

.references-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 20px;
}

.references-label {
    font-family: var(--font-body);
    font-size: clamp(18px, 1vw, 18px);
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(200, 169, 106, 0.80);
    text-align: center;
    margin: 0;
}

.references-carousels {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 80%;
    max-width: 100%;
}

.references-carousel {
    --item: 8;
    --item-width: 110px;
    --item-height: 50px;
    --duration: 36s;
    width: 100%;
    position: relative;
    height: var(--item-height);
    overflow: hidden;
    mask-image: linear-gradient(to right,
        rgba(0, 0, 0, 0),
        rgba(0, 0, 0, 1) 18%,
        rgba(0, 0, 0, 1) 82%,
        rgba(0, 0, 0, 0));
}

.references-item {
    width: var(--item-width);
    height: var(--item-height);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px 14px;
    border: 1px solid rgba(229, 224, 214, 0.50);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.32);
    position: absolute;
    animation: slide var(--duration) linear infinite;
    animation-delay: calc(var(--duration) / var(--item) * (var(--item) - var(--image)) * -1);
}

.references-carousel--reverse .references-item {
    animation-direction: reverse;
}

/* Hover: pause the slide on whichever row the cursor is on */
.references-carousel:hover .references-item {
    animation-play-state: paused;
}

.references-item:nth-child(1) { --image: 1; }
.references-item:nth-child(2) { --image: 2; }
.references-item:nth-child(3) { --image: 3; }
.references-item:nth-child(4) { --image: 4; }
.references-item:nth-child(5) { --image: 5; }
.references-item:nth-child(6) { --image: 6; }
.references-item:nth-child(7) { --image: 7; }
.references-item:nth-child(8) { --image: 8; }

.references-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: none;
    opacity: 0.75;
}

/* ── References section staggered reveal ── */
.refs-reveal {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(32px);
    transition: opacity 0.75s ease, filter 0.75s ease, transform 0.75s ease;
    will-change: opacity, filter, transform;
}

.refs-reveal.exit-up {
    transform: translateY(-32px);
    transition-delay: 0s;
}

.refs-reveal.in-view {
    opacity: 1;
    filter: none;
    transform: none;
}

/* Testimonials entry stagger: matches .about-right delay */
.testimonials-inner.refs-reveal {
    transition: opacity 0.75s ease 0.18s, filter 0.75s ease 0.18s, transform 0.75s ease 0.18s;
}

.testimonials-inner.refs-reveal.exit-up {
    transition-delay: 0s;
}

/* ── References section full-width separator ── */
.references-separator {
    width: 100%;
    height: 1px;
    background: rgba(200, 169, 106, 0.35);
    flex-shrink: 0;
}

/* ── Testimonials quote slider ── */
.testimonials-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: min(640px, 88vw);
}

.testimonials-track {
    display: grid;
    width: 100%;
    cursor: grab;
    user-select: none;
}

.testimonials-track:active {
    cursor: grabbing;
}

.testimonial-slide {
    grid-area: 1 / 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.65s ease, transform 0.65s ease;
    pointer-events: none;
}

.testimonial-slide.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.testimonial-quote-mark {
    font-family: var(--font-heading);
    font-size: clamp(48px, 7vw, 96px);
    font-weight: 700;
    line-height: 0.6;
    color: rgba(200, 169, 106, 0.45);
    display: block;
    user-select: none;
}

.testimonial-quote {
    font-family: var(--font-heading);
    font-size: clamp(15px, 1.8vw, 22px);
    font-weight: 500;
    font-style: italic;
    line-height: 1.65;
    letter-spacing: 0.01em;
    color: rgba(30, 41, 59, 0.78);
    margin: 0;
    padding: 0;
    border: none;
}

.testimonial-author {
    font-family: var(--font-body);
    font-size: clamp(9px, 1vw, 12px);
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(200, 169, 106, 0.90);
    margin: 0;
}

.testimonial-company {
    font-family: var(--font-body);
    font-size: clamp(9px, 0.9vw, 11px);
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(30, 41, 59, 0.40);
    margin: 0;
}

.testimonials-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.testimonial-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(196, 162, 100, 0.28);
    border: 1.5px solid rgba(196, 162, 100, 0.40);
    cursor: pointer;
    transition: background 0.35s ease, transform 0.35s ease, border-color 0.35s ease;
    flex-shrink: 0;
}

.testimonial-dot.active {
    background: rgba(196, 162, 100, 0.90);
    border-color: rgba(196, 162, 100, 0.90);
    transform: scale(1.35);
}

.testimonial-dot:hover:not(.active) {
    background: rgba(196, 162, 100, 0.50);
    border-color: rgba(196, 162, 100, 0.60);
}


/* ── About section — editorial two-column redesign ── */

/* ── Global scroll-reveal utility ── */
.scroll-reveal {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(32px);
    transition: opacity 0.75s ease, filter 0.75s ease, transform 0.75s ease;
    will-change: opacity, filter, transform;
}

/* Stagger delays only fire on ENTRY (in-view state) — exits are instant */
.scroll-reveal.in-view[data-delay="1"] { transition-delay: 0.15s; }
.scroll-reveal.in-view[data-delay="2"] { transition-delay: 0.30s; }
.scroll-reveal.in-view[data-delay="3"] { transition-delay: 0.50s; }

/* When element exits upward (user scrolled past it), fly it up instead of down */
.scroll-reveal.exit-up {
    transform: translateY(-32px);
    transition-delay: 0s;
}

.scroll-reveal.in-view {
    opacity: 1;
    filter: none;
    transform: none;
}

/* ── About section — editorial two-column redesign ── */
.about {
    position: relative;
    width: 100%;
    height: 100vh;  /* 30vh of extra scroll room for parallax */
    background: transparent;
    overflow: visible;
    scroll-snap-align: start;
}

.about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: calc(100vh + 2px);
    margin-top: 0px;
    align-items: stretch;
    position: sticky;
    top: 0px;
    overflow: hidden;
    will-change: transform;
    z-index: 1;
    background: linear-gradient(
        to right,
        rgba(241, 237, 228, 0.58) 0%,
        rgba(250, 248, 243, 0.42) 55%,
        rgba(250, 248, 243, 0.16) 100%
    );
}

.about-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(48px, 8vw, 120px) clamp(32px, 4vw, 72px) clamp(48px, 8vw, 120px) clamp(40px, 7vw, 100px);
    opacity: 0;
    filter: blur(10px);
    transform: translateY(32px);
    transition: opacity 0.75s ease, filter 0.75s ease, transform 0.75s ease;
    will-change: opacity, filter, transform;
}

.about-left.about-visible {
    opacity: 1;
    filter: none;
    transform: none;
}

.about-left.about-exit-up {
    transform: translateY(-32px);
    transition-delay: 0s;
}

.about-heading {
    display: flex;
    flex-direction: column;
    font-family: var(--font-heading);
    font-size: clamp(52px, 6.5vw, 96px);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.01em;
    margin: 0 0 32px 0;
    font-style: italic;
}

.about-heading-dark {
    color: rgba(30, 41, 59, 0.15);
    transition: color 0.45s ease;
}

.about-heading-light {
    color: rgba(30, 41, 59, 0.08);
    transition: color 0.45s ease;
}

/* Scroll-driven lit state */
.about-heading-dark.span-lit {
    color: rgba(30, 41, 59, 0.92);
}

.about-heading-light.span-lit {
    color: rgba(30, 41, 59, 0.42);
}

.about-divider {
    width: 36px;
    height: 1.5px;
    background: rgba(196, 162, 100, 0.55);
    margin-bottom: 28px;
    flex-shrink: 0;
}

.about-body-text {
    font-family: var(--font-body);
    font-size: clamp(14px, 1.15vw, 16px);
    color: rgba(30, 41, 59, 0.55);
    line-height: 1.75;
    max-width: 380px;
    font-weight: 400;
}

.about-body-text strong {
    color: rgba(30, 41, 59, 0.90);
    font-weight: 600;
}

/* Scroll-highlight: word spans in body text */
.about-body-text .word-span {
    color: rgba(30, 41, 59, 0.10);
    transition: color 0.35s ease;
}

.about-body-text .word-span.span-lit {
    color: rgba(30, 41, 59, 0.55);
}

.about-body-text strong .word-span {
    color: rgba(30, 41, 59, 0.10);
    transition: color 0.35s ease;
}

.about-body-text strong .word-span.span-lit {
    color: rgba(30, 41, 59, 0.90);
}

/* Scroll-highlight: feature label word spans */
.about-feature > span .word-span {
    color: rgba(30, 41, 59, 0.10);
    transition: color 0.35s ease;
}

.about-feature > span .word-span.span-lit {
    color: rgba(30, 41, 59, 0.55);
}

.about-right {
    position: relative;
    overflow: hidden;
    opacity: 0;
    filter: blur(10px);
    transform: translateY(32px);
    transition: opacity 0.75s ease 0.18s, filter 0.75s ease 0.18s, transform 0.75s ease 0.18s;
    will-change: opacity, filter, transform;
}

.about-right.about-visible {
    opacity: 1;
    filter: none;
    transform: none;
}

.about-right.about-exit-up {
    transform: translateY(-32px);
    transition-delay: 0s;
}

.about-image-wrap {
    position: absolute;
    inset: 12.5% 0;        /* default: center-anchored, 25% shorter */
    clip-path: polygon(11% 0%, 100% 0%, 100% 100%, 0% 100%);
    will-change: transform;
}

.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

#about .about-image       { object-position: center center; }
#about-2 .about-image     { object-position: center center; }
#about-4 .about-image     { object-position: center center; }

/* ── About responsive: tablet ── */
@media (max-width: 900px) {
    .about-inner {
        grid-template-columns: 1fr 1fr;
        height: 100vh;
    }

    .about-image-wrap {
        clip-path: polygon(8% 0%, 100% 0%, 100% 100%, 0% 100%);
    }
}

/* ── About responsive: mobile ── */
@media (max-width: 640px) {
    .about-inner {
        grid-template-columns: 1fr 1fr;
        height: 100vh;
    }

    .about-left {
        padding: 32px 16px 32px 24px;
    }

    .about-body-text {
        max-width: 100%;
        font-size: clamp(12px, 3vw, 15px);
    }

    .about-image-wrap {
        clip-path: polygon(14% 0%, 100% 0%, 100% 100%, 0% 100%);
    }
}

/* ── About flip variant: image left, text right ── */
.about--flip .about-right {
    order: -1;
}

.about--flip .about-left {
    padding: clamp(48px, 8vw, 120px) clamp(40px, 7vw, 100px) clamp(48px, 8vw, 120px) clamp(32px, 4vw, 72px);
}

.about--flip .about-image-wrap {
    clip-path: polygon(0% 0%, 100% 0%, 89% 100%, 0% 100%);
}

@media (max-width: 900px) {
    .about--flip .about-image-wrap {
        clip-path: polygon(0% 0%, 100% 0%, 92% 100%, 0% 100%);
    }
}

@media (max-width: 640px) {
    .about--flip .about-left {
        padding: 32px 24px 32px 16px;
    }

    .about--flip .about-image-wrap {
        clip-path: polygon(0% 0%, 100% 0%, 86% 100%, 0% 100%);
    }
}


/* ── About heading size modifier ── */
.about-heading--sm {
    font-size: clamp(32px, 3.8vw, 56px);
}

/* ── About features variant: two-col with icon row ── */
.about--features .about-features {
    display: flex;
    gap: 0;
    margin-top: 36px;
    flex-wrap: nowrap;
    align-items: flex-start;
}

.about-feature {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    flex: 1 1 0;
    padding: 0 20px 0 0;
}

.about-feature + .about-feature {
    padding: 0 20px 0 20px;
}

.about-feature svg {
    width: 26px;
    height: 26px;
    color: rgba(59, 157, 219, 0.80);
    flex-shrink: 0;
}

.about-feature span {
    font-family: var(--font-body);
    font-size: 8px;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(30, 41, 59, 0.55);
    line-height: 1.5;
}

@media (max-width: 900px) {
    .about-heading--sm {
        font-size: clamp(26px, 4vw, 48px);
    }

    .about-feature {
        padding-right: 14px;
    }

    .about-feature + .about-feature {
        border-left: none;
        padding: 0 14px 0 14px;
    }
}

@media (max-width: 640px) {
    .about--features .about-features {
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 16px;
    }

    .about-feature {
        flex: none;
        width: 100%;
        min-width: 0;
        padding: 0;
    }

    .about-feature + .about-feature {
        padding: 0;
    }

    .about-feature:nth-child(odd) {
        border-left: none;
        padding-left: 0;
    }

    .about-feature:nth-child(even) {
        padding-left: 0;
    }

    .about-feature:nth-child(3),
    .about-feature:nth-child(4) {
        border-top: none;
        padding-top: 0;
    }

    .about-feature svg {
        width: 22px;
        height: 22px;
    }
}

/* =============================================================
   PROJECT SHOWCASE — horizontal-swipe cinematic section
   All class names prefixed with  psc-  to avoid conflicts with
   the rest of the site. Nothing here touches elements outside
   .project-showcase.
   ============================================================= */

/* ---- CSS Custom Properties (scoped to both showcase sections) */
.project-showcase,
.service-showcase {
  --psc-dur-image : 720ms;
  --psc-dur-card  : 850ms;
  --psc-dur-text  : 220ms;
  --psc-ease      : cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --psc-card-w    : 300px;
  --psc-card-color: #C8A96A;           /* updated per item via JS */
  --psc-font      : 'Inter', system-ui, sans-serif;
  --psc-font-heading: 'Cormorant Garamond', Georgia, serif;

  position: relative;
  height: 100vh;
  touch-action: pan-y;
  scroll-snap-align: start;
}


/* ---- Sticky cinematic viewport -------------------------------- */
.psc-viewport {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #0c0c0c;
  isolation: isolate;   /* contains z-index / blend-mode stacks */
}


/* ---- Background image stack ----------------------------------- */
.psc-bg-stack {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.psc-bg-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  will-change: opacity;
  transition: opacity var(--psc-dur-image) var(--psc-ease);
}

.psc-bg-layer.psc-active {
  opacity: 1;
}

/* Inner image div — oversized vertically to give parallax headroom */
.psc-bg-img {
  position: absolute;
  inset: -20% 0;              /* expanded headroom for parallax travel */
  background-size: cover;
  background-position: center;
  will-change: transform;
  /* No CSS transition — parallax is scroll-driven and must be instant */
}

/* Left-heavy cinematic vignette keeps the card area readable   */
.psc-bg-layer::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right,
      rgba(0,0,0,.72) 0%,
      rgba(0,0,0,.25) 52%,
      rgba(0,0,0,.04) 100%),
    linear-gradient(to bottom,
      rgba(0,0,0,.30) 0%,
      transparent     28%,
      transparent     72%,
      rgba(0,0,0,.32) 100%);
  pointer-events: none;
  z-index: 1;
}


/* ---- Film-grain SVG overlay ----------------------------------- */
.psc-grain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  opacity: 1;
  mix-blend-mode: overlay;
}


/* ---- Section label + counter (top-left) ---------------------- */
.psc-header {
  position: absolute;
  top: 80px;        /* clears the 64 px fixed navigation bar */
  left: 40px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 14px;
  pointer-events: none;
  user-select: none;
}

.psc-header-sep {
  width: 24px;
  height: 1px;
  background: rgba(255,255,255,.22);
}

.psc-section-label,
.psc-counter {
  font-family: var(--psc-font);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  font-variant-numeric: tabular-nums;
}

.psc-counter {
  color: rgba(255,255,255,.30);
  transition: opacity var(--psc-dur-text) var(--psc-ease);
}


/* ---- Project info card --------------------------------------- */
.psc-card {
  position: absolute;
  left: 40px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: var(--psc-card-w);
}

.psc-card-inner {
  position: relative;
  padding: 32px 28px 26px;

  /* Light liquid glass */
  background: rgba(255, 255, 255, 0.44);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border: 1px solid rgba(229, 224, 214, 0.65);
  border-left: 3px solid var(--psc-card-color);
  border-radius: 0 20px 20px 0;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.90),
    0 24px 64px rgba(17,24,39,0.14);

  transition: border-left-color var(--psc-dur-card) var(--psc-ease);
  overflow: hidden;
}

/* Oversized monogram watermark — right side of card */
.psc-monogram {
  position: absolute;
  right: -14px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--psc-font-heading);
  font-size: 128px;
  font-weight: 700;
  line-height: .90;
  color: rgba(30,41,59,.06);
  user-select: none;
  pointer-events: none;
  letter-spacing: -.04em;
  z-index: 0;
  font-style: italic;
}

/* Card text block — animated on project change */
.psc-card-text {
  position: relative;
  z-index: 1;
  transition:
    opacity   var(--psc-dur-text) var(--psc-ease),
    transform var(--psc-dur-text) var(--psc-ease);
}

/* Exit state: fade up */
.psc-card-text[data-state="exit"] {
  opacity: 0;
  transform: translateY(-8px);
}

/* Enter starting state: below, no transition (instant position) */
.psc-card-text[data-state="enter"] {
  opacity: 0;
  transform: translateY(8px);
  transition: none;
}

/* Project title */
.psc-title {
  margin: 0 0 18px;
  font-family: var(--psc-font-heading);
  font-size: 36px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.01em;
  font-style: italic;
  color: #1E293B;
}

/* Location + type footer row */
.psc-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.psc-location,
.psc-type {
  font-family: var(--psc-font);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(30,41,59,.48);
}

/* View project button */
.psc-view-btn {
  position: relative;
  z-index: 1;
  margin-top: 26px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(59, 157, 219, 0.90);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(59, 157, 219, 0.70);
  border-radius: 6px;
  color: #FFFFFF;
  font-family: var(--psc-font);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 10px 16px;
  cursor: pointer;
  transition:
    background var(--psc-dur-text) var(--psc-ease),
    border-color     var(--psc-dur-text) var(--psc-ease),
    color            var(--psc-dur-text) var(--psc-ease),
    box-shadow       var(--psc-dur-text) var(--psc-ease),
    opacity          0.28s ease,
    transform        0.28s ease;
  -webkit-tap-highlight-color: transparent;
  min-height: 44px;
}

/* ── Detaylar fades out when modal is open ─────────────── */
body.modal-open .psc-view-btn {
  opacity: 0;
  transform: translateY(6px) scale(0.93);
  pointer-events: none;
}

.psc-view-btn:hover {
  background: rgba(31, 125, 187, 0.95);
  border-color: rgba(31, 125, 187, 0.85);
  color: #fff;
  box-shadow: 0 6px 20px rgba(59, 157, 219, 0.30);
}

.psc-view-btn:hover svg {
  transform: translateX(3px);
  transition: transform 0.22s ease;
}

.psc-view-btn:focus-visible {
  outline: 2px solid rgba(255,255,255,.75);
  outline-offset: 3px;
}

.psc-view-btn svg {
  flex-shrink: 0;
}


/* ---- Vertical progress dots (right side) --------------------- */
.psc-dots {
  position: absolute;
  right: 36px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.psc-dot {
  display: block;
  width: 2px;
  height: 18px;
  background: rgba(30,41,59,.18);
  border: none;
  padding: 0;
  cursor: pointer;
  transition:
    background-color var(--psc-dur-text) var(--psc-ease),
    height           var(--psc-dur-text) var(--psc-ease);
  -webkit-tap-highlight-color: transparent;
  border-radius: 1px;
}

.psc-dot.psc-dot-active {
  background: rgba(200, 169, 106, 0.85);
  height: 34px;
}

.psc-dot:hover:not(.psc-dot-active) {
  background: rgba(30,41,59,.38);
}

.psc-dot:focus-visible {
  outline: 1px solid rgba(255,255,255,.70);
  outline-offset: 4px;
}


/* ---- Thin progress bar along the bottom edge ----------------- */
.psc-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0%;       /* set by JS */
  background: rgba(200, 169, 106, 0.55);
  z-index: 10;
  transition: width 80ms linear;
}


/* ---- Swipe hint (fades out after first swipe) --------------- */
.psc-scroll-hint {
  position: absolute;
  top: 116px;       /* sits just below the psc-header (top: 80px) */
  left: 40px;       /* aligns with the psc-header left edge */
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  opacity: 1;
  transition: opacity 600ms var(--psc-ease);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.psc-scroll-hint.psc-hint-gone {
  opacity: 0;
  pointer-events: none;
}

/* Frosted-glass pill */
.psc-hint-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 100px;
  animation: psc-hint-breathe 2.8s ease-in-out infinite;
}

@keyframes psc-hint-breathe {
  0%, 100% { opacity: .70; }
  50%       { opacity: 1;   }
}

/* Chevron SVG icons inside the pill */
.psc-hint-pill svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  stroke: rgba(255,255,255,.55);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* "KAYDIR" label */
.psc-hint-pill span {
  font-family: var(--psc-font);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
}

/* Descriptive subtitle below the pill */
.psc-hint-label {
  font-family: var(--psc-font);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: rgba(255,255,255,.28);
}


/* ---- Hidden project-item links (modal compatibility) --------- */
/* app.js attaches click handlers to .project-wrapper .project-item;
   keeping them in the DOM but invisible lets us trigger them from JS */
.psc-hidden-links {
  display: none;
  visibility: hidden;
  position: absolute;
  pointer-events: none;
}


/* ---- Reduced motion ------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .psc-bg-layer,
  .psc-bg-img,
  .psc-card-inner,
  .psc-card-text,
  .psc-view-btn,
  .psc-dot,
  .psc-counter,
  .psc-progress-bar,
  .psc-scroll-hint {
    transition: none !important;
    animation:  none !important;
  }
}


/* ---- Responsive: tablet --------------------------------------- */
@media (max-width: 768px) {
  .psc-header {
    left: 20px;
    top: 72px;
  }

  /* Card moves to bottom area on small screens */
  .psc-card {
    left: 16px;
    right: 16px;
    width: auto;
    top: auto;
    bottom: 56px;
    transform: none;
  }

  .psc-card-inner {
    padding: 22px 20px 18px;
  }

  .psc-title {
    font-size: 26px;
    margin-bottom: 14px;
  }

  .psc-monogram {
    font-size: 92px;
    right: -10px;
  }

  /* Dots become horizontal at the bottom on mobile */
  .psc-dots {
    right: auto;
    left: 50%;
    top: auto;
    bottom: 20px;
    transform: translateX(-50%);
    flex-direction: row;
    gap: 8px;
  }

  .psc-dot {
    width: 18px;
    height: 1px;
  }

  .psc-dot.psc-dot-active {
    width: 32px;
    height: 1px;
  }

  .psc-scroll-hint {
    top: 104px;   /* below the mobile header (top: 72px) */
    left: 20px;   /* aligns with psc-header mobile left */
  }

  .psc-hint-label {
    display: none;
  }
}


/* ---- Responsive: phone --------------------------------------- */
@media (max-width: 480px) {
  .psc-title {
    font-size: 22px;
  }

  .psc-card-inner {
    padding: 18px 16px 14px;
  }

  .psc-view-btn {
    font-size: 9px;
    padding: 9px 13px;
  }
}
/* ═══════════════════════════════════════════════════════════
   POSTER MODAL — premium editorial design
   ═══════════════════════════════════════════════════════════ */

:root {
    --poster-bg: #E8F4FD;                    /* light blue wash — overridden by JS per project */
    --poster-accent-rgb: 59, 157, 219;        /* RGB triplet — overridden by JS */
    --poster-bg-dark: rgba(241, 237, 228, 0.96);
    --poster-text: rgba(30, 41, 59, 0.88);
    --poster-frame: rgba(229, 224, 214, 0.65);
}

/* ── Hide detail-source classes (covered by .modal-body too) ── */
.lucca-villa_detail,
.henna-villa_detail,
.dorttepe-bungolov_detail,
.villa-deluxe_detail,
.jacop-villa_detail,
.bodrum-villa_detail,
.tamirat-ve-tamirat_detail,
.havuz-uygulama_detail,
.banyo-uygulama_detail,
.mutfak-detail,
.ic-dekor_detail {
    display: none;
}

.hidden-when-modal {
    display: none !important;
}

/* ── Modal shell ─────────────────────────────────────────── */
.modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 1200;
}

.modal.open {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(20, 30, 48, 0.35);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* ── Glass card — matches founder-card style ─────────────── */
.modal-content {
    position: relative;
    z-index: 1;
    width: 90vw;
    max-width: 1100px;
    height: 90dvh;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(200, 190, 175, 0.50) transparent;

    background: rgba(255, 255, 255, 0.42);
    backdrop-filter: blur(32px) saturate(180%);
    -webkit-backdrop-filter: blur(32px) saturate(180%);
    border: 1px solid rgba(229, 224, 214, 0.55);
    border-top-color: rgba(255, 255, 255, 0.90);
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.90);
    border-radius: 24px;
    padding: 44px 40px 48px;
    animation: poster-frame-in 0.60s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.modal-content::-webkit-scrollbar {
    width: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: rgba(200, 190, 175, 0.50);
    border-radius: 2px;
}

/* ── Two-column grid: gallery left, info right ───────────── */
.modal-fixed-section {
    width: 100%;
    display: grid;
    grid-template-columns: 42fr 58fr;
    column-gap: 40px;
    row-gap: 16px;
    align-items: start;
}

/* Left column */
.poster-image-wrap  { grid-column: 1; grid-row: 1; }
.poster-thumbs-area { grid-column: 1; grid-row: 2; }

/* Right column */
.poster-header   { grid-column: 2; grid-row: 1; padding-top: 0; }
.poster-subtitle { grid-column: 2; grid-row: 2; text-align: left; }
.poster-info     { grid-column: 2; grid-row: 3; }
.poster-brand    { display: none; }

.modal-fixed-section > *,
.poster-info {
    position: relative;
    z-index: 1;
    min-width: 0; /* prevent grid track blowout from flex/content children */
}

/* ── Frame-appear animation ──────────────────────────────── */
@keyframes poster-frame-in {
    0% {
        opacity: 0;
        clip-path: inset(42% 30% 42% 30%);
        transform: scale(1.04);
    }

    55% {
        opacity: 1;
        clip-path: inset(0% 0% 0% 0%);
    }

    100% {
        opacity: 1;
        transform: scale(1);
        clip-path: inset(0% 0% 0% 0%);
    }
}

/* ── Frame-disappear animation (on modal close) ──────────── */
@keyframes poster-frame-out {
    0% {
        opacity: 1;
        clip-path: inset(0% 0% 0% 0%);
        transform: scale(1);
    }

    100% {
        opacity: 0;
        clip-path: inset(42% 30% 42% 30%);
        transform: scale(0.98);
    }
}

.modal.is-closing .modal-content {
    animation: poster-frame-out 0.35s cubic-bezier(0.55, 0, 1, 0.45) both;
}

.modal.is-closing .modal-close {
    opacity: 0 !important;
    transform: translateX(8px) !important;
    transition: opacity 0.15s ease, transform 0.15s ease !important;
}

/* ── Back / close button — fixed at card top-right ──────── */
.modal-close {
    position: absolute;
    top: calc(5dvh + 14px);
    right: calc(5vw + 16px);
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.60);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(229, 224, 214, 0.60);
    border-radius: 20px;
    padding: 6px 12px 6px 8px;
    color: rgba(30, 41, 59, 0.70);
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    z-index: 2;
    opacity: 0.90;
    transition: opacity 0.2s, background 0.2s;
}

.modal-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.85);
}

/* Animate "Geri Dön" in after the card appears */
.modal.open:not(.is-closing) .modal-close {
    animation: modal-close-in 0.30s 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes modal-close-in {
    from {
        opacity: 0;
        transform: translateX(10px);
    }

    to {
        opacity: 0.70;
        transform: translateX(0);
    }
}

/* ── Poster header row ───────────────────────────────────── */
.poster-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    width: 100%;
    padding-top: 18px;
    /* clears the absolute close button */
}

.poster-project-name,
.poster-location {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.10em;
    color: rgba(30, 41, 59, 0.55);
    text-transform: uppercase;
    opacity: 1;
}

.poster-project-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.poster-location {
    flex-shrink: 0;
    margin-left: 8px;
    white-space: nowrap;
}

/* ── Framed image area ───────────────────────────────────── */
.poster-image-wrap {
    width: 100%;
}

.poster-image-frame {
    background: rgba(var(--poster-accent-rgb), 0.06);
    border: 1px solid rgba(229, 224, 214, 0.65);
    padding: 10px;
    border-radius: 14px;
    box-shadow:
        0 6px 28px rgba(17, 24, 39, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.90);
}

.poster-gallery-slot {
    width: 100%;
    overflow: hidden;
}

/* ── Gallery main (inside poster frame) ─────────────────── */
.gallery-main {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--bg-soft);
    border-radius: 6px;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
}

/* Placeholder for projects with no images yet */
.poster-no-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-size: 10px;
    letter-spacing: 0.20em;
    text-transform: uppercase;
    color: rgba(30, 41, 59, 0.28);
    background: var(--bg-soft);
}

/* ── Chevron carousel arrows ────────────────────────────── */
.gallery-prev,
.gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.40);
    border: 1px solid rgba(229, 224, 214, 0.50);
    border-radius: 8px;
    color: rgba(30, 41, 59, 0.70);
    cursor: pointer;
    padding: 10px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.85;
    transition: opacity 0.2s, background 0.2s;
    z-index: 2;
    min-width: 36px;
    min-height: 44px;
}

.gallery-prev {
    left: 2px;
}

.gallery-next {
    right: 2px;
}

.gallery-prev:hover,
.gallery-next:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.62);
}

/* ── Subtitle (project type) ─────────────────────────────── */
.poster-subtitle {
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(200, 169, 106, 0.85);
    text-align: center;
    margin: 0;
    opacity: 1;
}

/* ── Thumbnail strip (5 visible, flanked by arrow buttons) ── */
.poster-thumbs-area {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.poster-thumbs-area:empty {
    display: none;
}

.gallery-nav-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.poster-thumbs-area .gallery-nav {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 2px 0 4px;
    width: 252px; /* 6 × 36px layout + 5 × 4px gap = 236px, +16px peek of 7th */
    flex-shrink: 0;
    scroll-snap-type: x mandatory;
}

.poster-thumbs-area .gallery-nav::-webkit-scrollbar {
    display: none;
}

.gallery-nav-prev,
.gallery-nav-next {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 38px;
    border: 1px solid rgba(229, 224, 214, 0.50);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.20);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
    color: rgba(30, 41, 59, 0.65);
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s;
}

.gallery-nav-prev:hover,
.gallery-nav-next:hover {
    background: rgba(255, 255, 255, 0.40);
    color: rgba(30, 41, 59, 0.90);
}

.thumb {
    flex: 0 0 auto;
    width: 32px;
    height: 30px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 4px;
    scroll-snap-align: start;
    transition: opacity 0.2s, border-color 0.2s;
    opacity: 0.50;
}

.thumb:hover {
    opacity: 0.80;
}

.thumb.active {
    opacity: 1;
    border-color: rgba(59, 157, 219, 0.70);
}

/* ── Brand / company text ────────────────────────────────── */
.poster-brand {
    font-family: var(--font-heading);
    font-size: clamp(44px, 13vw, 72px);
    font-weight: 700;
    color: rgba(30, 41, 59, 0.04);
    text-align: center;
    margin: 0;
    letter-spacing: -0.01em;
    line-height: 1;
    font-style: italic;
}

/* ── Project info paragraphs (scroll-reveal) ─────────────── */
.poster-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 0 0 40px;
}

.poster-info-para {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
    color: rgba(30, 41, 59, 0.75);
    line-height: 1.75;
    margin: 0;
    word-break: break-word;
    overflow-wrap: break-word;
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.poster-info-para:nth-child(2) {
    transition-delay: 0.12s;
}

.poster-info-para:nth-child(3) {
    transition-delay: 0.24s;
}

.poster-info-para.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Hidden data source ──────────────────────────────────── */
.modal-body {
    display: none !important;
}

.image_detail {
    display: none;
}

/* ── Scroll lock ─────────────────────────────────────────── */
body.modal-open {
    overflow: hidden;
}

html.modal-open {
    overflow: hidden;
}

/* ── Responsive: mobile ──────────────────────────────────── */
@media (max-width: 768px) {
    .modal-content {
        width: 96vw;
        height: 90dvh;
        padding: 20px 16px 32px;
        border-radius: 18px;
    }

    .modal-close {
        top: calc(5dvh + 10px);
        right: calc(2vw + 10px);
    }

    .modal-fixed-section {
        grid-template-columns: 1fr;
        column-gap: 0;
        row-gap: 12px;
    }

    .poster-image-wrap,
    .poster-thumbs-area,
    .poster-header,
    .poster-subtitle,
    .poster-info {
        grid-column: 1;
        grid-row: auto;
    }

    /* Cap image height so info is always visible without scrolling far */
    .gallery-main {
        aspect-ratio: auto;
        height: 34dvh;
        max-height: 34dvh;
    }

    .poster-subtitle {
        text-align: center;
    }

    .poster-image-frame {
        padding: 6px;
    }

    .poster-header {
        padding-top: 28px; /* clear the Geri Dön button */
    }

    .thumb {
        width: 42px;
        height: 32px;
    }
}


/* ── Pillars section — Misyon / Vizyon / Değerlerimiz ── */

.pillars {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-soft);
    padding: clamp(40px, 6vh, 80px) clamp(24px, 6vw, 80px);
    overflow: hidden;
    scroll-snap-align: start;
}

.pillars-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 100px);
    max-width: 1160px;
    width: 100%;
    align-items: start;
}

/* ── Left: header ── */
.pillars-label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 1rem;
}

.pillars-title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 4.5vw, 3.6rem);
    font-weight: 600;
    color: var(--text);
    line-height: 1.15;
    margin: 0 0 1.25rem;
}

.pillars-sub {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.65;
    margin: 0;
    max-width: 28ch;
}

/* ── Right: accordion list ── */
.pillars-list {
    border-top: 1px solid var(--border);
}

.pillar-item {
    border-bottom: 1px solid var(--border);
}

.pillar-trigger {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 1.5rem 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    color: var(--text);
    -webkit-tap-highlight-color: transparent;
}

.pillar-trigger:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
    border-radius: 4px;
}

.pillar-num {
    font-family: var(--font-body);
    font-size: 0.82rem;
    color: var(--accent);
    letter-spacing: 0.05em;
    min-width: 2.4rem;
    opacity: 0.85;
    flex-shrink: 0;
}

.pillar-name {
    font-family: var(--font-heading);
    font-size: clamp(1.3rem, 2vw, 1.75rem);
    font-weight: 500;
    flex: 1;
    transition: color 0.25s ease;
}

.pillar-item.is-open .pillar-name {
    color: var(--primary);
}

.pillar-icon {
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--accent);
    line-height: 1;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    user-select: none;
}

.pillar-item.is-open .pillar-icon {
    transform: rotate(45deg);
}

.pillar-body {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.pillar-item.is-open .pillar-body {
    max-height: 200px;
    padding-bottom: 1.75rem;
}

.pillar-body p {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.75;
    color: var(--muted);
    padding-left: calc(2.4rem + 1rem);
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .pillars {
        height: auto;
        padding: clamp(60px, 10vh, 100px) clamp(24px, 5vw, 48px);
    }

    .pillars-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .pillars-sub {
        max-width: 100%;
    }

    .pillar-body p {
        padding-left: 0;
    }
}


/* ── Founder section — İrfan Çap Kimdir? ── */

.founder {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(20px, 3vw, 40px) clamp(24px, 5vw, 60px);
    scroll-snap-align: start;
    overflow: hidden;
}

/* ── Two-column glass card ── */
.founder-card {
    display: grid;
    grid-template-columns: 55fr 45fr;
    max-width: 1160px;
    width: 100%;
    height: 75vh;
    max-height: 75vh;
    border-radius: 24px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.38);
    backdrop-filter: blur(32px) saturate(180%);
    -webkit-backdrop-filter: blur(32px) saturate(180%);
    border: 1px solid rgba(229, 224, 214, 0.55);
    border-top-color: rgba(255, 255, 255, 0.90);
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.90);
}

/* ── Left content column ── */
.founder-content {
    padding: clamp(28px, 3.5vw, 48px) clamp(32px, 4.5vw, 60px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
}

/* Label: "KURUCU" */
.founder-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 14px 0;
}

.founder-label::before {
    content: '';
    display: block;
    width: 28px;
    height: 1.5px;
    background: var(--accent);
    flex-shrink: 0;
}

/* Heading */
.founder-heading {
    font-family: var(--font-heading);
    font-size: clamp(38px, 4.5vw, 68px);
    font-weight: 700;
    font-style: italic;
    line-height: 1.05;
    color: var(--text);
    margin: 0 0 18px 0;
    letter-spacing: -0.01em;
}

/* Gold divider */
.founder-divider {
    width: 36px;
    height: 1.5px;
    background: var(--accent);
    margin-bottom: 22px;
    flex-shrink: 0;
}

/* Bio paragraph */
.founder-bio {
    font-family: var(--font-body);
    font-size: clamp(13px, 1.05vw, 15px);
    line-height: 1.80;
    color: rgba(30, 41, 59, 0.68);
    margin: 0 0 28px 0;
    max-width: 520px;
}

.founder-bio strong {
    color: var(--text);
    font-weight: 600;
}

/* Feature grid */
.founder-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 28px;
}

.founder-feature {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 12px;
    border: 1px solid rgba(200, 169, 106, 0.30);
    border-radius: 10px;
    background: rgba(200, 169, 106, 0.05);
}

.founder-feature svg {
    width: 22px;
    height: 22px;
    color: var(--accent);
    flex-shrink: 0;
}

.founder-feature span {
    font-family: var(--font-body);
    font-size: 11.5px;
    font-weight: 500;
    color: rgba(30, 41, 59, 0.72);
    line-height: 1.45;
    letter-spacing: 0.01em;
}

/* CTA buttons */
.founder-cta {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.founder-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    text-decoration: none;
    border: none;
    white-space: nowrap;
}

.founder-btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

.founder-btn svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.founder-btn--primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 16px rgba(200, 169, 106, 0.28);
}

.founder-btn--primary:hover {
    box-shadow: 0 6px 24px rgba(200, 169, 106, 0.40);
}

.founder-btn--secondary {
    background: rgba(255, 255, 255, 0.50);
    color: var(--text);
    border: 1px solid rgba(200, 169, 106, 0.45);
}

/* Quote */
.founder-quote {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid rgba(229, 224, 214, 0.60);
}

.founder-quote-mark {
    font-family: var(--font-heading);
    font-size: 48px;
    font-style: italic;
    color: var(--accent);
    opacity: 0.55;
    line-height: 0.75;
    flex-shrink: 0;
}

.founder-quote p {
    font-family: var(--font-body);
    font-size: 12.5px;
    font-style: italic;
    color: rgba(30, 41, 59, 0.52);
    line-height: 1.65;
    margin: 0;
}

/* ── Right: portrait image ── */
.founder-image-wrap {
    position: relative;
    overflow: hidden;
    min-height: 460px;
    /* Z-shape: pointed chevron on the left edge — tip at 50% height */
    clip-path: polygon(5% 0%, 100% 0%, 100% 100%, 5% 100%, 0% 25%);
}

.founder-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 70% 20%;
    display: block;
}

/* Badge overlay */
.founder-badge {
    position: absolute;
    bottom: 20px;
    right: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: rgba(17, 24, 39, 0.88);
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    max-width: 210px;
}

.founder-badge svg {
    width: 26px;
    height: 26px;
    color: var(--accent);
    flex-shrink: 0;
}

.founder-badge-text {
    font-family: var(--font-body);
    font-size: 11.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.45;
}

/* ── Responsive: tablet ── */
@media (max-width: 900px) {
    .founder {
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }

    .founder-card {
        grid-template-columns: 1fr;
        grid-template-rows: 40vh auto;
        height: auto;
        max-height: none;
    }

    .founder-content {
        overflow-y: visible;
    }

    .founder-image-wrap {
        order: -1;
        min-height: 0;
        /* Z-shape on bottom edge — V-notch pointing up so card bg shows through */
        clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 50% 80%, 0% 100%);
    }
}

/* ── Responsive: mobile ── */
@media (max-width: 600px) {
    .founder {
        padding: 14px 12px;
    }

    .founder-card {
        grid-template-rows: 26vh auto;
        border-radius: 16px;
    }

    .founder-content {
        padding: 14px 16px 16px;
    }

    .founder-label {
        font-size: 10px;
        margin-bottom: 6px;
    }

    .founder-heading {
        font-size: 22px;
        margin-bottom: 8px;
    }

    .founder-divider {
        margin-bottom: 8px;
    }

    .founder-bio {
        font-size: 12px;
        line-height: 1.55;
        margin-bottom: 10px;
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .founder-features {
        grid-template-columns: 1fr 1fr;
        gap: 5px;
        margin-bottom: 10px;
    }

    .founder-features .founder-feature:last-child {
        grid-column: span 2;
    }

    .founder-feature {
        padding: 8px 8px;
        gap: 5px;
    }

    .founder-feature svg {
        width: 16px;
        height: 16px;
    }

    .founder-feature span {
        font-size: 10px;
    }

    .founder-cta {
        flex-direction: column;
        gap: 7px;
        margin-bottom: 10px;
    }

    .founder-btn {
        justify-content: center;
        width: 100%;
        padding: 9px 16px;
        font-size: 13px;
    }

    .founder-quote {
        padding-top: 12px;
    }

    .founder-quote-mark {
        font-size: 32px;
    }

    .founder-quote p {
        font-size: 11px;
    }

}
/* ── Gallery Rain Section ── */
.gallery-section {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    scroll-snap-align: start;
    overflow: hidden;
    background: linear-gradient(
        to bottom,
        rgba(241, 237, 228, 0.48) 0%,
        rgba(250, 248, 243, 0.36) 100%
    );
    position: relative;
    /* blur-in animation on landing */
    backdrop-filter: blur(0px) saturate(1);
    -webkit-backdrop-filter: blur(0px) saturate(1);
    transition: backdrop-filter 1.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-section--visible {
    backdrop-filter: blur(14px) saturate(1.25);
    -webkit-backdrop-filter: blur(14px) saturate(1.25);
}

.gallery-header {
    flex: 0 0 auto;
    min-height: 24vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 16px 24px 18px;
    position: relative;
    z-index: 2;
    /* liquid glass */
    background: rgba(250, 248, 243, 0.45);
    backdrop-filter: blur(28px) saturate(1.6);
    -webkit-backdrop-filter: blur(28px) saturate(1.6);
    /* soft warm glow instead of hard line */
    box-shadow:
        0 6px 40px rgba(250, 248, 243, 0.80),
        0 12px 60px rgba(201, 169, 106, 0.10),
        inset 0 -1px 0 rgba(255,255,255,0.20);
}

/* Gradient fade from header into rain — kills the sharp edge */
.gallery-header::after {
    content: '';
    position: absolute;
    left: 0; right: 0;
    bottom: -28px;
    height: 28px;
    background: linear-gradient(
        to bottom,
        rgba(250, 248, 243, 0.55) 0%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 3;
}

.gallery-label {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
    display: block;
}

.gallery-heading {
    font-family: var(--font-heading);
    font-size: clamp(32px, 4vw, 54px);
    font-weight: 600;
    font-style: italic;
    color: rgba(30, 41, 59, 0.85);
    line-height: 1.1;
    margin-bottom: 10px;
}

.gallery-sub {
    font-family: var(--font-body);
    font-size: 13px;
    letter-spacing: 0.04em;
    color: var(--muted);
    max-width: 500px;
    line-height: 1.65;
}

/* ── Filter buttons ── */
.gallery-filters {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;        /* always one row */
    justify-content: center;
    margin-top: 16px;
    padding: 0 4px;
}

.gallery-filter-btn {
    flex-shrink: 0;           /* never compress */
    white-space: nowrap;
    padding: 7px 22px;
    border-radius: 22px;
    /* liquid glass */
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(12px) saturate(1.4);
    -webkit-backdrop-filter: blur(12px) saturate(1.4);
    border: 1px solid rgba(255, 255, 255, 0.42);
    box-shadow: 0 2px 12px rgba(0,0,0,0.07), inset 0 1px 0 rgba(255,255,255,0.45);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.74rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.26s, box-shadow 0.26s, border-color 0.26s, color 0.26s;
}

.gallery-filter-btn:hover {
    background: color-mix(in srgb, var(--accent) 14%, rgba(255,255,255,0.28));
    border-color: color-mix(in srgb, var(--accent) 45%, rgba(255,255,255,0.35));
    color: color-mix(in srgb, var(--accent) 85%, var(--text));
    box-shadow:
        0 3px 20px color-mix(in srgb, var(--accent) 20%, transparent),
        inset 0 1px 0 rgba(255,255,255,0.55);
}

.gallery-filter-btn.active {
    background: color-mix(in srgb, var(--accent) 72%, rgba(255,255,255,0.3));
    border-color: color-mix(in srgb, var(--accent) 60%, rgba(255,255,255,0.4));
    box-shadow: 0 3px 18px color-mix(in srgb, var(--accent) 28%, transparent), inset 0 1px 0 rgba(255,255,255,0.25);
    color: #fff;
}

.gallery-rain {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 0 8px 8px;
    overflow: hidden;
    mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 0, 0, 1) 18%,
        rgba(0, 0, 0, 1) 88%,
        transparent 100%
    );
    -webkit-mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 0, 0, 1) 18%,
        rgba(0, 0, 0, 1) 88%,
        transparent 100%
    );
}

.gallery-col {
    overflow: hidden;
    position: relative;
}

.gallery-col:hover .gallery-track,
.gallery-col.is-paused .gallery-track {
    animation-play-state: paused;
}

.gallery-track {
    display: flex;
    flex-direction: column;
    gap: 8px;
    animation: rain-up var(--col-dur, 22s) linear infinite;
    animation-delay: var(--col-delay, 0s);
    will-change: transform;
}

.gallery-img {
    width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
    transition: filter 0.3s ease, transform 0.35s ease;
}

.gallery-img:not(.gallery-img--clone):hover {
    filter: brightness(1.08);
    transform: scale(1.02);
}

@keyframes rain-up {
    from { transform: translateY(0); }
    to   { transform: translateY(-50%); }
}

/* ── Gallery Lightbox ── */
.gallery-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.96);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.gallery-lightbox.open {
    display: flex;
}

.gallery-lb-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.70);
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    z-index: 2;
}

.gallery-lb-close:hover {
    color: #fff;
    transform: scale(1.15);
}

.gallery-lb-wrap {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 90vw;
    max-height: 82vh;
}

.gallery-lb-img {
    max-width: 88vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 8px 64px rgba(0, 0, 0, 0.7);
    display: block;
}

.gallery-lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.10);
    border: 1.5px solid rgba(255, 255, 255, 0.20);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.gallery-lb-nav:hover { background: rgba(255, 255, 255, 0.22); }
.gallery-lb-prev { left: -68px; }
.gallery-lb-next { right: -68px; }

.gallery-lb-counter {
    margin-top: 20px;
    font-family: var(--font-body);
    font-size: 12px;
    letter-spacing: 0.10em;
    color: rgba(255, 255, 255, 0.40);
}

.contact {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
    scroll-snap-align: start;
}

.contact::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: url('../media/construction_contact.jpg') no-repeat center;
    z-index: -1;
    filter: blur(16px);
}

.body-contact {
    max-width: 75%;
    min-height: 75%;
    display: grid;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: rgba(255, 255, 255, 0.34);
    backdrop-filter: blur(32px) saturate(180%);
    -webkit-backdrop-filter: blur(32px) saturate(180%);
    border: 1px solid rgba(229, 224, 214, 0.55);
    border-top-color: rgba(255, 255, 255, 0.90);
    border-radius: 16px;
    box-shadow:
        0 24px 80px rgba(0,0,0,0.10),
        inset 0 1px 0 rgba(255,255,255,0.90);
    animation: translateX linear;
    animation-timeline: view();
    animation-range: entry 0% cover 25%;
}

.contact-image {
    height: 100%;
    background: url('../media/construction_contact.jpg') no-repeat center;
    background-size: cover;
}

.contact-field {
    padding: 8px 24px;
}

.contact-title {
    position: relative;
    padding-bottom: 8px;
    margin-bottom: 24px;
    font-family: var(--font-heading);
    font-size: clamp(26px, 2.5vw, 36px);
    font-weight: 600;
    font-style: italic;
    letter-spacing: 0.01em;
    color: rgba(30, 41, 59, 0.90);
}

.contact-title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -2px;
    transform: translateX(-50%);
    height: 2px;
    width: 75%;
    border-radius: 2px;
    opacity: 0.80;
    background: linear-gradient(90deg, transparent, rgba(196, 162, 100, 0.80), transparent);
}

.field {
    width: 100%;
    padding: 0.65rem 1rem;
    border: 1px solid rgba(229, 224, 214, 0.50);
    background-color: rgba(255, 255, 255, 0.28);
    color: rgba(30, 41, 59, 0.85);
    font-size: 13px;
    margin-bottom: 16px;
    font-family: var(--font-body);
    letter-spacing: 0.02em;
    border-radius: 10px;
    min-height: 44px;
}

.field::placeholder {
    color: rgba(30, 41, 59, 0.35);
}

.field:hover {
    background-color: rgba(255,255,255,0.42);
}

.field:focus {
    border-color: rgba(59, 157, 219, 0.50);
    background-color: rgba(255,255,255,0.48);
    outline: none;
}

.contact-button {
    width: 100%;
    border-radius: 10px;
    padding: 0.85rem 1rem;
    font-size: 11px;
    font-family: var(--font-body);
    letter-spacing: 0.12em;
    background: rgba(200, 169, 106, 0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(200, 169, 106, 0.55);
    cursor: pointer;
    color: rgba(160, 122, 40, 1);
    font-weight: 600;
    text-transform: uppercase;
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    min-height: 48px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), inset 0 1.5px 0 rgba(255, 255, 255, 0.90);
}

.contact-button:hover {
    background: rgba(200, 169, 106, 0.28);
    border-color: rgba(200, 169, 106, 0.80);
    box-shadow: 0 0 28px rgba(200, 169, 106, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.90);
}

.footer {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    background-image:
        linear-gradient(rgba(13, 13, 13, 0.75), rgba(13, 13, 13, 1)),
        url('../media/construction_footer.jpg');
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    scroll-snap-align: start;
}

@media (max-width: 768px) {
    .footer {
        background-attachment: scroll;
    }
}

.footer-title {
    display: none;
}

.body-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-self: center;
}

.logo-footer {
    margin-top: 15vh;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: appear both;
    animation-timeline: view();
}

.logo-bottom {
    height: 124px;
    align-items: center;
}

.information {
    margin-top: 5vh;
    gap: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: blur linear both;
    animation-timeline: view(50% auto);
}

.address {
    text-align: center;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.70);
    font-family: var(--font-body);
    font-size: 13px;
    letter-spacing: 0.02em;
}

.address:hover {
    text-decoration: underline;
    text-decoration-style: solid;
    text-decoration-thickness: 2px;
}

.phone {
    text-align: center;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.70);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.04em;
}

.phone:hover {
    text-decoration: underline;
    text-decoration-style: solid;
    text-decoration-thickness: 2px;
}

.mail {
    text-align: center;
    font-family: var(--font-body);
    font-size: 13px;
    letter-spacing: 0.02em;
    text-decoration: none;
    color: rgba(59, 157, 219, 0.80);
}

.mail:hover {
    text-decoration: underline;
    text-decoration-style: solid;
    text-decoration-thickness: 2px;
}

.social {
    text-align: center;
    display: flex;
    flex-direction: row;
}

.social-media {
    margin: 24px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.55);
    font-family: var(--font-body);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 500;
    transition: color 0.25s ease;
}

.social-media:hover {
    text-decoration: none;
    color: rgba(200, 169, 106, 0.85);
}

.developer {
    margin-top: 25vh;
    font-family: var(--font-body);
    color: rgba(255, 255, 255, 0.35);
    font-size: 10px;
    letter-spacing: 0.12em;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.separator-developer {
    background: white;
    height: 1px;
    width: 75vw;
    opacity: 0.25;
}

.erimbeklevic {
    text-align: center;
    font-family: var(--font-heading);
    font-style: italic;
    text-decoration: none;
    color: rgba(200, 169, 106, 0.65);
    position: relative;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.02em;
}

.erimbeklevic::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 8px;
    bottom: -4px;
    background: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='8' viewBox='0 0 40 8'%3E%3Cpath d='M0 4 Q5 0 10 4 T20 4 T30 4 T40 4' fill='none' stroke='%23aaaaaa' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x;
    background-size: 16px 8px;
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

.erimbeklevic:hover {
    color: rgba(200, 169, 106, 0.90);
}

.erimbeklevic:hover::after {
    transform: scaleX(1);
    animation: erimbeklevic-wave 1s linear infinite;
}

@keyframes erimbeklevic-wave {
    to {
        background-position-x: -16px;
    }
}

.copyright {
    text-align: center;
    font-size: 9px;
    color: rgba(255, 255, 255, 0.30);
    font-family: var(--font-body);
    letter-spacing: 0.08em;
}

@keyframes slide {
    from {
        left: max(calc(var(--item-width) * var(--item)), 100%);
    }

    to {
        left: calc(-1 * var(--item-width));
    }
}

@keyframes reveal {
    from {
        filter: blur(8px);
        opacity: 0;
        scale: 0.75;
    }

    to {
        filter: none;
        opacity: 1;
        scale: 1;
    }
}

@keyframes translateX {
    from {
        opacity: 0;
        transform: translateX(-25vw);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes appear {
    from {
        opacity: 0;
        transform: translateY(-5vw) scale(0.25);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes blur {
    0% {
        filter: blur(16px);
    }

    25% {
        filter: blur(8px);
    }

    50% {
        filter: blur(4px);
    }

    55% {
        filter: blur(0px);
    }
}


@media (min-width:1080px) {
    .body-contact {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-image {
        height: 100%;
    }
}


/* ── Accessibility: reduced motion for reference carousels ── */
@media (prefers-reduced-motion: reduce) {
    .references-item {
        animation-play-state: paused;
    }
    .gallery-track {
        animation-play-state: paused;
    }
}

/* ── Accessibility: focus-visible styles for gallery arrows ── */
.gallery-prev:focus-visible,
.gallery-next:focus-visible {
    outline: 2px solid rgba(59, 157, 219, 0.80);
    outline-offset: 2px;
    opacity: 1;
}

/* ── Responsive: gallery rain section ─────────────────────── */
@media (max-width: 768px) {
    .gallery-rain {
        grid-template-columns: repeat(3, 1fr);
    }
    .gallery-col:last-child {
        display: none;
    }
    .gallery-lb-prev { left: -52px; }
    .gallery-lb-next { right: -52px; }
}

@media (max-width: 480px) {
    .gallery-rain {
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
        padding: 0 5px 5px;
    }
    .gallery-col:nth-child(3),
    .gallery-col:last-child {
        display: none;
    }
    .gallery-header {
        height: 30vh;
    }
    .gallery-filters {
        gap: 5px;
    }
    .gallery-filter-btn {
        padding: 5px 12px;
        font-size: 0.65rem;
        letter-spacing: 0.04em;
    }
    .gallery-lb-prev { left: -42px; }
    .gallery-lb-next { right: -42px; }
}

