/* ================================
   PERLA PAINT - HOME PAGE
   Clean Version 10.0
   Real Motion Door Portal
   ================================ */

.home-hero {
    position: relative;
    min-height: 330vh;
    --portal-shift-x: 0px;
    --portal-shift-y: 0px;
    --portal-scale-gain: 3.2;
    --portal-origin-x: 58%;
    --portal-origin-y: 50%;
    --portal-center-x: 73%;
    --portal-center-y: 52%;
    --world-clip-x: 73%;
    --world-clip-y: 52%;
    --camera-shift-x: 0px;
    --camera-shift-y: 0px;
    --camera-scale: 1;
    background:
        radial-gradient(circle at 13% 17%, rgba(179, 150, 109, 0.14), transparent 32%),
        radial-gradient(circle at 78% 46%, rgba(234, 233, 229, 0.06), transparent 34%),
        linear-gradient(135deg, var(--perla-bordo-dark) 0%, var(--perla-bordo) 52%, #25070f 100%);
    color: var(--perla-light);
}

/* Genel revize: açılış efekti dışındaki bölüm başlıkları daha sakin. */
.home-section-title {
    font-size: clamp(31px, 3.6vw, 54px);
    line-height: 1.04;
}

.portal-world .section-title {
    font-size: clamp(32px, 4vw, 58px);
    line-height: 1.03;
}

.service-editorial-item strong,
.method-row strong {
    font-size: clamp(22px, 2.2vw, 30px);
}

@media (max-width: 768px) {
    .home-section-title,
    .portal-world .section-title {
        font-size: clamp(30px, 9vw, 42px);
    }
}

.home-hero-sticky {
    position: sticky;
    top: 0;
    min-height: 100vh;
    padding-top: calc(var(--header-height) + 54px);
    padding-bottom: 42px;
    overflow: hidden;
    background:
        radial-gradient(circle at 72% 48%, rgba(216, 197, 168, calc(var(--world-open, 0) * 0.16)), transparent 42%),
        linear-gradient(135deg, var(--perla-bordo-dark) 0%, var(--perla-bordo) 52%, #25070f 100%);
}

.home-hero-sticky::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: calc(0.22 - var(--camera, 0) * 0.2);
    background-image:
        linear-gradient(rgba(234, 233, 229, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(234, 233, 229, 0.036) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.85), transparent 90%);
}

.portal-world {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: #222;
    background:
        radial-gradient(circle at 50% -12%, rgba(216, 197, 168, 0.38), transparent 42%),
        var(--perla-light);
    clip-path: circle(calc(var(--world-open, 0) * 110%) at var(--world-clip-x, 73%) var(--world-clip-y, 52%));
    opacity: var(--world-opacity, 0);
    transform: scale(calc(0.96 + var(--world-open, 0) * 0.04));
    will-change: clip-path, opacity, transform;
}

.portal-world-bg {
    position: absolute;
    inset: 0;
    opacity: 0.48;
    pointer-events: none;
}

.world-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(179, 150, 109, 0.28), transparent);
}

.world-line-1 { left: 30%; }
.world-line-2 { left: 55%; }
.world-line-3 { right: 14%; }

.portal-world-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr);
    gap: 96px;
    align-items: center;
    opacity: calc(var(--world-open, 0) * 1.35 - 0.25);
    transform: translate3d(0, calc((1 - var(--world-open, 0)) * 42px), 0);
}

.hero-atmosphere {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: calc(1 - var(--camera, 0) * 1.15);
}

.hero-grid-line {
    position: absolute;
    display: block;
    background-color: rgba(179, 150, 109, 0.24);
}

.line-x {
    height: 1px;
    transform: scaleX(0);
    transform-origin: left;
    animation: drawX 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.line-y {
    width: 1px;
    transform: scaleY(0);
    transform-origin: top;
    animation: drawY 1.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.line-x-1 { left: 0; top: 33%; width: 42%; animation-delay: 0.16s; }
.line-x-2 { right: 4%; bottom: 18%; width: 34%; animation-delay: 0.46s; }
.line-y-1 { left: 58%; top: 0; height: 100%; animation-delay: 0.24s; }
.line-y-2 { right: 12%; top: 18%; height: 64%; animation-delay: 0.5s; }

@keyframes drawX { to { transform: scaleX(1); } }
@keyframes drawY { to { transform: scaleY(1); } }

.hero-monogram-bg {
    position: absolute;
    right: 5vw;
    bottom: -6vw;
    font-family: var(--font-heading);
    font-size: clamp(260px, 35vw, 640px);
    font-weight: 700;
    line-height: 0.8;
    letter-spacing: -0.1em;
    color: rgba(234, 233, 229, 0.035);
    transform: translate3d(0, calc(var(--hero-progress, 0) * -150px), 0) scale(calc(1 + var(--camera, 0) * 0.34));
    opacity: calc(1 - var(--camera, 0));
}

.home-hero-inner {
    position: relative;
    z-index: 4;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(430px, 0.86fr);
    gap: 70px;
    align-items: start;
    min-height: calc(100vh - var(--header-height) - 118px);
}

.home-hero-content {
    max-width: 720px;
    transform: translate3d(calc(var(--camera, 0) * -180px), calc(var(--hero-progress, 0) * -48px), 0) scale(calc(1 - var(--camera, 0) * 0.08));
    opacity: calc(1 - (var(--camera, 0) * 1.5));
}

.hero-surface-switch {
    display: flex;
    align-items: center;
    gap: 26px;
    width: fit-content;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(216, 197, 168, 0.24);
}

.hero-brand-note {
    margin: 0 0 18px;
    color: rgba(234, 233, 229, 0.58);
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.hero-brand-note strong {
    color: rgba(216, 197, 168, 0.92);
    font-weight: 600;
}

.hero-surface-switch > span {
    position: relative;
    display: block;
    padding: 0 0 10px;
    color: var(--perla-light);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero-surface-switch > span::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 1px;
    background: var(--perla-gold-light);
}

.hero-surface-switch button {
    position: relative;
    min-height: 34px;
    padding: 0 0 10px;
    color: rgba(234, 233, 229, 0.58);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: color 180ms ease;
}

.hero-surface-switch button::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: var(--perla-gold-light);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 220ms ease;
}

.hero-surface-switch button:hover,
.hero-surface-switch button:focus-visible,
.hero-surface-switch button.is-active {
    color: var(--perla-light);
}

.hero-surface-switch button.is-active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.home-hero-title,
.home-hero-lead {
    transition: opacity 150ms ease, transform 150ms ease;
}

.home-hero-content.is-copy-changing .home-hero-title,
.home-hero-content.is-copy-changing .home-hero-lead {
    opacity: 0.18;
    transform: translateY(8px);
}

.home-hero-title {
    margin: 0;
    overflow: visible;
    font-family: var(--font-display);
    font-size: clamp(56px, 6.15vw, 104px);
    font-weight: 700;
    line-height: 0.86;
    letter-spacing: -0.055em;
}

.home-hero-title span {
    position: relative;
    display: block;
    opacity: 0;
    transform: translateY(46px);
    filter: blur(10px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1), filter 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.home-hero-content.is-visible .home-hero-title span { opacity: 1; transform: translateY(0); filter: blur(0); }
.home-hero-content.is-visible .home-hero-title span:nth-child(1) { transition-delay: 0.08s; }
.home-hero-content.is-visible .home-hero-title span:nth-child(2) { transition-delay: 0.2s; }
.home-hero-content.is-visible .home-hero-title span:nth-child(3) { transition-delay: 0.32s; }
.home-hero-content.is-visible .home-hero-title span:nth-child(4) { transition-delay: 0.44s; }

.home-hero-title span:nth-child(2) { color: var(--perla-gold-light); }
.home-hero-title span:nth-child(3) { padding-left: clamp(28px, 4.2vw, 72px); }
.home-hero-title span:nth-child(4) { padding-left: clamp(52px, 7vw, 118px); }

.home-hero-title span::after {
    content: "";
    position: absolute;
    left: 0.05em;
    top: 52%;
    width: min(540px, 74%);
    height: 1px;
    background-color: rgba(179, 150, 109, 0.26);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.home-hero-content.is-visible .home-hero-title span::after { transform: scaleX(1); transition-delay: 0.82s; }

.home-hero-content .page-kicker,
.home-hero-lead,
.home-hero-actions {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.home-hero-content.is-visible .page-kicker { opacity: 1; transform: translateY(0); transition-delay: 0.02s; }
.home-hero-content.is-visible .home-hero-lead { opacity: 1; transform: translateY(0); transition-delay: 0.68s; }
.home-hero-content.is-visible .home-hero-actions { opacity: 1; transform: translateY(0); transition-delay: 0.82s; }

.home-hero-lead {
    max-width: 600px;
    margin-top: 24px;
    color: rgba(234, 233, 229, 0.75);
    font-size: clamp(15px, 1.08vw, 18px);
    line-height: 1.72;
}

.home-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }

.home-hero-actions .btn-outline {
    color: var(--perla-light);
    border-color: rgba(234, 233, 229, 0.34);
}

.home-hero-actions .btn-outline:hover {
    color: var(--perla-bordo);
    background-color: var(--perla-light);
    border-color: var(--perla-light);
}

.home-hero-visual { position: relative; min-height: 680px; }

.luxury-door-scene {
    position: relative;
    width: 100%;
    min-height: 680px;
    perspective: 2100px;
    transform: translate3d(var(--camera-shift-x, 0px), var(--camera-shift-y, 0px), 0) scale(var(--camera-scale, 1));
    transform-origin: var(--portal-origin-x, 58%) var(--portal-origin-y, 50%);
    will-change: transform;
}

.door-stage {
    position: absolute;
    right: 0;
    top: 2px;
    z-index: 4;
    width: min(520px, 84%);
    height: 640px;
    opacity: 0;
    filter: blur(12px);
    transform-style: preserve-3d;
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), filter 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.home-hero.is-camera-moving .parallax-item {
    transform: none !important;
}

.home-hero-visual.is-visible .door-stage { opacity: 1; filter: blur(0); transition-delay: 0.16s; }

.door-portal {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.portal-room {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    border-radius: 240px 240px 22px 22px;
    background:
        radial-gradient(circle at 50% 26%, rgba(255, 250, 235, 0.96), transparent 24%),
        linear-gradient(180deg, rgba(235, 218, 188, 0.98) 0%, rgba(216, 197, 168, 0.92) 36%, rgba(234,233,229,0.98) 100%);
    box-shadow: inset 0 0 90px rgba(56, 10, 20, 0.16), 0 40px 120px rgba(0, 0, 0, 0.28);
    opacity: calc(0.32 + var(--door-open, 0) * 0.82);
}

.room-light {
    position: absolute;
    left: 50%;
    top: 30%;
    width: 82%;
    height: 50%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.92), rgba(216,197,168,0.3) 46%, transparent 74%);
    filter: blur(12px);
    transform: translate(-50%, -50%) scale(calc(0.74 + var(--door-open, 0) * 0.62 + var(--camera, 0) * 0.42));
    opacity: calc(0.55 + var(--door-open, 0) * 0.45);
}

.room-wall-line {
    position: absolute;
    top: 18%;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, rgba(56, 10, 20, 0.12), rgba(255,255,255,0.58), transparent);
    opacity: calc(var(--door-open, 0) * 0.9);
    transform: scaleY(calc(0.4 + var(--door-open, 0) * 0.6)) translateY(calc(var(--door-open, 0) * -18px));
    transform-origin: top;
}

.room-wall-line-1 { left: 30%; }
.room-wall-line-2 { left: 50%; }
.room-wall-line-3 { left: 70%; }

.room-floor-line {
    position: absolute;
    left: 12%;
    right: 12%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.72), transparent);
    opacity: calc(var(--door-open, 0) * 0.8);
    transform: perspective(500px) rotateX(68deg) scaleX(calc(0.45 + var(--door-open, 0) * 0.55));
}

.room-floor-line-1 { bottom: 28%; }
.room-floor-line-2 { bottom: 20%; }
.room-floor-line-3 { bottom: 12%; }

.door-frame-outer {
    position: absolute;
    inset: -16px;
    z-index: 7;
    pointer-events: none;
    border-radius: 258px 258px 34px 34px;
    border: 1px solid rgba(216, 197, 168, 0.44);
    box-shadow:
        inset 0 0 0 1px rgba(255, 244, 219, 0.08),
        inset 8px 0 18px rgba(255, 244, 219, 0.035),
        inset -10px -4px 22px rgba(12, 2, 5, 0.24),
        0 5px 0 rgba(18, 3, 7, 0.28),
        0 28px 90px rgba(0, 0, 0, 0.3);
    opacity: calc(1 - var(--camera, 0) * 0.82);
}

.frame-glow {
    position: absolute;
    inset: 12px;
    border-radius: 246px 246px 24px 24px;
    border: 1px solid rgba(216, 197, 168, 0.2);
    box-shadow:
        inset 2px 2px 0 rgba(255, 244, 219, 0.035),
        inset -3px -3px 0 rgba(15, 2, 6, 0.18);
}

.double-door {
    position: absolute;
    inset: 0;
    z-index: 6;
    border-radius: 240px 240px 22px 22px;
    transform-style: preserve-3d;
    opacity: calc(1 - var(--camera, 0) * 0.78);
}

.door-leaf-monogram {
    position: absolute;
    left: 50%;
    top: 44%;
    z-index: 4;
    display: grid;
    place-items: center;
    width: clamp(96px, 50%, 118px);
    height: 40%;
    pointer-events: none;
    isolation: isolate;
    opacity: 0.88;
    transform: translate(-50%, -50%) translateZ(6px);
    transform-origin: center;
}

.door-leaf-monogram-right {
    transform: translate(-50%, -50%) translateZ(6px);
}

.door-leaf-monogram::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    background:
        linear-gradient(112deg, transparent 12%, rgba(255, 250, 235, 0.52) 34%, transparent 52%),
        repeating-linear-gradient(94deg, rgba(255, 248, 229, 0.1) 0 1px, transparent 1px 5px);
    -webkit-mask: url("../img/brand/perla-door-stamp-full.png") center / contain no-repeat;
    mask: url("../img/brand/perla-door-stamp-full.png") center / contain no-repeat;
    opacity: 0.42;
    mix-blend-mode: screen;
}

.door-leaf-monogram::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(10, 1, 3, 0.78);
    -webkit-mask: url("../img/brand/perla-door-stamp-full.png") center / contain no-repeat;
    mask: url("../img/brand/perla-door-stamp-full.png") center / contain no-repeat;
    transform: translate(2px, 3px);
    filter: blur(0.45px);
}

.door-leaf-monogram img {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    filter:
        drop-shadow(0 1px 0 rgba(255, 246, 222, 0.24))
        drop-shadow(0 4px 5px rgba(8, 1, 3, 0.34));
}

.door-leaf {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50.4%;
    overflow: hidden;
    background-color: var(--perla-bordo);
    backface-visibility: hidden;
    border: 1px solid rgba(216, 197, 168, 0.08);
    box-shadow:
        inset 0 2px 0 rgba(255, 244, 219, 0.07),
        inset 0 -42px 68px rgba(8, 1, 4, 0.24),
        0 34px 100px rgba(0, 0, 0, 0.3);
    will-change: transform;
    transform-style: preserve-3d;
}

.door-leaf-left {
    left: 0;
    border-radius: 240px 0 0 22px;
    transform-origin: left center;
    transform: rotateY(calc(var(--door-open, 0) * -124deg)) translateZ(1px) translateX(calc(var(--camera, 0) * -8px));
}

.door-leaf-right {
    right: 0;
    border-radius: 0 240px 22px 0;
    transform-origin: right center;
    transform: rotateY(calc(var(--door-open, 0) * 124deg)) translateZ(1px) translateX(calc(var(--camera, 0) * 8px));
}

.door-leaf::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    opacity: calc(0.74 - var(--door-open, 0) * 0.22);
}

.door-leaf-left::before {
    background:
        linear-gradient(270deg, rgba(224, 201, 164, 0.15) 0 1px, rgba(8, 1, 3, 0.42) 2px, transparent 15px),
        linear-gradient(90deg, rgba(255, 244, 219, 0.07), transparent 17%, transparent 68%, rgba(10, 1, 4, 0.24)),
        linear-gradient(155deg, rgba(255, 255, 255, 0.035), transparent 36%);
    box-shadow:
        inset 7px 0 12px rgba(255, 244, 219, 0.025),
        inset -12px 0 20px rgba(6, 1, 3, 0.28);
}

.door-leaf-right::before {
    background:
        linear-gradient(90deg, rgba(224, 201, 164, 0.15) 0 1px, rgba(8, 1, 3, 0.42) 2px, transparent 15px),
        linear-gradient(270deg, rgba(255, 244, 219, 0.07), transparent 17%, transparent 68%, rgba(10, 1, 4, 0.24)),
        linear-gradient(205deg, rgba(255, 255, 255, 0.035), transparent 36%);
    box-shadow:
        inset -7px 0 12px rgba(255, 244, 219, 0.025),
        inset 12px 0 20px rgba(6, 1, 3, 0.28);
}

.leaf-surface {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(155deg, rgba(58, 8, 18, 0.54), rgba(29, 4, 10, 0.74)),
        url("../img/revisions/textures-hero-burgundy.jpeg") center / auto 118% no-repeat,
        #3a0a14;
}

.leaf-surface::before {
    content: "";
    position: absolute;
    inset: 5.5% 8% 7%;
    border: 1px solid rgba(216, 197, 168, 0.16);
    border-radius: 180px 16px 14px 14px;
    box-shadow:
        inset 2px 2px 3px rgba(255, 244, 219, 0.025),
        inset -3px -3px 5px rgba(10, 1, 4, 0.24),
        0 1px 0 rgba(255, 244, 219, 0.035),
        0 -1px 0 rgba(8, 1, 3, 0.22);
}

.leaf-surface::after {
    content: "";
    position: absolute;
    left: 11%;
    right: 11%;
    top: 75%;
    bottom: 10%;
    border: 1px solid rgba(216, 197, 168, 0.13);
    border-radius: 10px;
    background: linear-gradient(155deg, rgba(255, 244, 219, 0.025), rgba(18, 3, 7, 0.08));
    box-shadow:
        inset 2px 2px 4px rgba(255, 244, 219, 0.025),
        inset -4px -5px 10px rgba(9, 1, 4, 0.18),
        0 1px 0 rgba(255, 244, 219, 0.025);
}

.door-center-line {
    position: absolute;
    left: 50%;
    top: 2%;
    bottom: 2%;
    z-index: 8;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(216, 197, 168, 0.44), rgba(0,0,0,0.26), transparent);
    opacity: calc(1 - var(--door-open, 0) * 0.9);
    pointer-events: none;
}

.door-handle {
    position: absolute;
    top: 70%;
    z-index: 10;
    width: 66px;
    height: 15px;
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(255, 248, 232, 0.72), transparent 32%, rgba(70, 45, 24, 0.32) 72%, rgba(255, 233, 195, 0.18)),
        linear-gradient(90deg, #f3dfbd, #bd9865 58%, #735333);
    box-shadow:
        0 3px 0 rgba(40, 8, 15, 0.34),
        0 11px 20px rgba(0, 0, 0, 0.42),
        inset 0 1px 0 rgba(255,255,255,0.58),
        inset 0 -2px 3px rgba(58, 34, 16, 0.28);
    transform: translateZ(12px);
}

.door-handle::before {
    content: "";
    position: absolute;
    top: 50%;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff1d6 0 18%, #c6a06c 48%, #725130 100%);
    transform: translateY(-50%) translateZ(2px);
    box-shadow: 0 4px 0 rgba(43, 19, 10, 0.25), 0 9px 16px rgba(0,0,0,0.3);
}

.door-handle-left { right: 14px; transform: translateZ(12px); }
.door-handle-left::before { right: -4px; }
.door-handle-right { left: 14px; transform: translateZ(12px) scaleX(-1); }
.door-handle-right::before { right: -4px; }

.leaf-shine {
    position: absolute;
    inset: 0;
    opacity: 0.26;
    background: linear-gradient(115deg, transparent 0%, rgba(234, 233, 229, 0.2) 48%, transparent 100%);
    transform: translateX(calc(-120% + var(--door-open, 0) * 150%));
}

.door-shadow-floor {
    position: absolute;
    left: 16%;
    right: 4%;
    bottom: -24px;
    z-index: 1;
    height: 70px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(0,0,0,0.36), transparent 70%);
    filter: blur(10px);
    opacity: calc(0.75 - var(--door-open, 0) * 0.45);
}

.door-caption {
    position: absolute;
    left: -6px;
    bottom: 110px;
    z-index: 10;
    width: 270px;
    padding: 24px;
    color: var(--perla-bordo);
    background-color: rgba(234, 233, 229, 0.96);
    box-shadow: 0 32px 96px rgba(0, 0, 0, 0.26);
    transform: translate3d(calc(var(--door-open, 0) * -26px), calc(var(--door-open, 0) * 34px), 0);
    opacity: calc(1 - (var(--door-open, 0) * 1.12));
}

.door-caption span {
    display: block;
    margin-bottom: 14px;
    color: var(--perla-gold);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.door-caption strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 27px;
    line-height: 1;
    letter-spacing: -0.04em;
}

.home-intro {
    position: relative;
    z-index: 5;
    overflow: hidden;
    padding-top: 150px;
    padding-bottom: 150px;
    background: radial-gradient(circle at 50% -10%, rgba(216, 197, 168, 0.34), transparent 38%), var(--perla-light);
}

.home-intro::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -180px;
    width: 920px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(216, 197, 168, 0.34), transparent 68%);
    transform: translateX(-50%);
    filter: blur(24px);
    pointer-events: none;
}

.home-intro .section-title { line-height: 1.02; padding-bottom: 12px; }
.home-intro .btn { margin-top: 10px; }

@media (max-width: 1240px) {
    .home-hero-inner { grid-template-columns: 1fr; gap: 54px; }
    .home-hero-content { max-width: 980px; }
    .home-hero-visual { max-width: 760px; }
    .portal-world-inner { grid-template-columns: 1fr; gap: 34px; }
    .luxury-door-scene {
        min-height: 660px;
    }
}

@media (max-width: 768px) {
    .home-hero { min-height: auto; }
    .home-hero-sticky { position: relative; min-height: auto; padding-top: 120px; padding-bottom: 70px; }
    .portal-world { display: none; }
    .home-hero-inner { gap: 38px; min-height: auto; }
    .home-hero-content { opacity: 1; transform: none; }
    .home-hero-title { font-size: clamp(54px, 17vw, 88px); line-height: 0.84; }
    .home-hero-title span { transform: translateY(28px); filter: blur(6px); }
    .home-hero-title span:nth-child(3), .home-hero-title span:nth-child(4) { padding-left: 0; }
    .home-hero-lead { margin-top: 26px; font-size: 16px; line-height: 1.78; }
    .luxury-door-scene { min-height: 560px; transform: none; }
    .door-stage { right: 0; width: min(420px, 90%); height: 500px; }
    .portal-room, .door-frame-outer, .double-door { border-radius: 160px 160px 18px 18px; }
    .door-leaf-left { border-radius: 160px 0 0 18px; transform: rotateY(-38deg); }
    .door-leaf-right { border-radius: 0 160px 18px 0; transform: rotateY(38deg); }
    .door-caption { left: 0; bottom: 70px; width: 236px; padding: 20px; opacity: 0.92; }
    .door-caption strong { font-size: 24px; }
    .home-intro { padding-top: 84px; padding-bottom: 92px; }
}

@media (max-width: 520px) {
    .home-hero-title { font-size: clamp(48px, 18vw, 72px); }
    .luxury-door-scene { min-height: 520px; }
    .door-stage { width: 92%; height: 430px; }
    .portal-room, .door-frame-outer, .double-door { border-radius: 130px 130px 16px 16px; }
    .door-leaf-left { border-radius: 130px 0 0 16px; }
    .door-leaf-right { border-radius: 0 130px 16px 0; }
    .door-caption { width: 214px; padding: 18px; }
    .door-caption strong { font-size: 22px; }
}

/* 2026 visual system: editorial imagery, fewer interface-like cards */
.materials-visual {
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    min-height: 620px;
}

.materials-visual figcaption {
    grid-template-columns: 1fr;
}

.materials-visual figcaption strong {
    font-size: 14px;
}

.service-editorial-list {
    display: grid;
    gap: 0;
}

.service-editorial-item {
    grid-template-columns: minmax(190px, 230px) minmax(210px, 0.72fr) minmax(0, 1fr);
    align-items: center;
    gap: 28px;
    padding: 22px 0;
}

.service-editorial-item figure {
    width: 100%;
    aspect-ratio: 3 / 2;
    margin: 0;
    overflow: hidden;
}

.service-editorial-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.service-editorial-item:hover img {
    transform: scale(1.035);
}

@media (max-width: 1080px) {
    .service-editorial-item {
        grid-template-columns: 180px minmax(0, 1fr);
    }

    .service-editorial-item p {
        grid-column: 2;
    }
}

@media (max-width: 768px) {
    .materials-visual {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .materials-visual-main,
    .materials-visual-detail {
        aspect-ratio: 4 / 3;
    }

    .service-editorial-item {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 24px 0 28px;
    }

    .service-editorial-item figure {
        aspect-ratio: 16 / 10;
    }

    .service-editorial-item p {
        grid-column: auto;
    }
}

/* 2026-07 içerik ve tipografi revizyonu */
.hero-brand-kicker {
    display: grid;
    width: fit-content;
    gap: 7px;
}

.hero-brand-kicker strong {
    color: var(--perla-gold-light);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.hero-brand-kicker small {
    color: rgba(234, 233, 229, 0.66);
    font-size: 9px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.home-hero-title span::after {
    display: none;
}

.portal-world-inner .section-title,
.portal-world .section-title {
    max-width: 560px;
    font-size: clamp(35px, 3.8vw, 54px) !important;
    line-height: 1.08 !important;
    letter-spacing: -0.03em;
}

.portal-world-inner {
    grid-template-columns: minmax(0, 0.86fr) minmax(380px, 0.74fr);
}

.portal-world-detail {
    max-width: 590px;
}

.portal-world-detail .text + .text {
    margin-top: 18px;
}

.home-materials .home-section-title {
    max-width: 650px;
    font-size: clamp(31px, 3.2vw, 46px) !important;
    line-height: 1.1 !important;
}

.home-services-editorial .home-section-title {
    max-width: 540px;
    font-size: clamp(32px, 3.3vw, 48px) !important;
    line-height: 1.1 !important;
}

@media (max-width: 768px) {
    .hero-brand-kicker {
        gap: 5px;
    }

    .hero-brand-kicker strong {
        font-size: 10px;
    }

    .hero-brand-kicker small {
        max-width: 250px;
        font-size: 8px;
        letter-spacing: 0.1em;
    }

    .home-materials .home-section-title,
    .home-services-editorial .home-section-title,
    .portal-world-inner .section-title,
    .portal-world .section-title {
        font-size: clamp(27px, 7.6vw, 35px) !important;
        line-height: 1.14 !important;
    }
}

@media (max-width: 520px) {
    .home-hero-lead {
        font-size: 12.5px !important;
        line-height: 1.48 !important;
        -webkit-line-clamp: 4 !important;
    }
}

/* ================================
   HOME EDITORIAL REVISION
   ================================ */

.home-hero {
    min-height: 290vh;
}

.home-hero-sticky {
    height: 100vh;
    height: 100svh;
    min-height: 680px;
    padding-top: calc(var(--header-height) + clamp(26px, 4.8vh, 54px));
    padding-bottom: clamp(24px, 4vh, 42px);
}

.home-hero-inner {
    gap: clamp(48px, 5vw, 70px);
    align-items: center;
    height: calc(100svh - var(--header-height) - clamp(92px, 12vh, 128px));
    min-height: 500px;
}

.home-hero-content {
    align-self: center;
}

.home-hero-title {
    font-size: clamp(48px, 8.4vh, 84px);
    line-height: 0.94;
    letter-spacing: -0.024em;
}

.home-hero-title span {
    overflow: visible;
    padding-top: 0.075em;
    padding-bottom: 0.09em;
    margin-top: -0.02em;
}

.home-hero-lead {
    margin-top: clamp(14px, 2.4vh, 24px);
    font-size: clamp(15px, 1.7vh, 18px);
    line-height: 1.62;
}

.home-hero-actions {
    margin-top: clamp(16px, 2.4vh, 24px);
}

.home-hero-visual,
.luxury-door-scene {
    min-height: min(680px, calc(100svh - var(--header-height) - 112px));
}

.door-stage {
    height: min(640px, calc(100svh - var(--header-height) - 126px));
}

.portal-world {
    contain: paint;
    background:
        radial-gradient(circle at 56% 46%, rgba(255, 250, 235, 0.7), transparent 24%),
        radial-gradient(circle at 18% 18%, rgba(179, 150, 109, 0.2), transparent 34%),
        linear-gradient(135deg, #f4f1ec 0%, var(--perla-light) 48%, #d8c5a8 100%);
}

.portal-world::before {
    content: "";
    position: absolute;
    left: -8vw;
    top: -6vw;
    width: 46vw;
    height: 46vw;
    border: 1px solid rgba(179, 150, 109, 0.28);
    border-radius: 50%;
    opacity: calc(var(--world-open, 0) * 0.95);
}

.portal-world::after {
    content: "P";
    position: absolute;
    right: 4vw;
    bottom: -4vw;
    color: rgba(56, 10, 20, 0.035);
    font-family: var(--font-heading);
    font-size: clamp(220px, 28vw, 520px);
    font-weight: 700;
    line-height: 0.8;
    opacity: calc(var(--world-open, 0) * 0.9);
}

.portal-world-inner {
    width: min(var(--container-wide), calc(100% - 72px));
    grid-template-columns: minmax(0, 0.86fr) minmax(330px, 0.56fr) minmax(260px, 0.42fr);
    gap: clamp(42px, 5vw, 78px);
    align-items: center;
}

.portal-world-copy,
.portal-world-detail,
.portal-world-materials {
    position: relative;
    z-index: 2;
}

.portal-world-inner .section-title {
    max-width: 720px;
    font-size: clamp(38px, 5vw, 70px);
    line-height: 1;
    letter-spacing: -0.045em;
}

.portal-world-detail {
    padding: 34px 0 28px 34px;
    border-left: 1px solid rgba(56, 10, 20, 0.14);
}

.portal-world-detail .text {
    color: rgba(34, 34, 34, 0.68);
    font-size: 15px;
    line-height: 1.8;
}

.portal-world-proof {
    display: grid;
    gap: 0;
    margin-top: 32px;
    border-top: 1px solid rgba(56, 10, 20, 0.14);
}

.portal-world-proof div {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 18px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(56, 10, 20, 0.14);
}

.portal-world-proof strong,
.method-row > span,
.service-editorial-item > span {
    color: var(--perla-gold);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.portal-world-proof span {
    color: var(--perla-bordo);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.portal-world-materials {
    min-height: 470px;
}

.portal-material {
    position: absolute;
    display: block;
    border: 1px solid rgba(56, 10, 20, 0.12);
    box-shadow: 0 26px 80px rgba(34, 34, 34, 0.08);
}

.portal-material::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(115deg, rgba(255,255,255,0.08) 0 1px, transparent 1px 13px),
        radial-gradient(circle at 22% 22%, rgba(255,255,255,0.24), transparent 34%);
}

.portal-material-bordo {
    left: 0;
    top: 0;
    width: 68%;
    height: 62%;
    background: linear-gradient(145deg, #25070f, #4a101d);
}

.portal-material-gold {
    right: 0;
    top: 18%;
    width: 54%;
    height: 40%;
    background: linear-gradient(145deg, #8f714a, #d8c5a8);
}

.portal-material-light {
    left: 16%;
    bottom: 0;
    width: 72%;
    height: 32%;
    background: linear-gradient(145deg, #d8d2c8, #f6f2eb);
}

.home-section-title {
    max-width: 760px;
    margin: 0;
    color: var(--perla-antrasit);
    font-family: var(--font-heading);
    font-size: clamp(34px, 4.2vw, 62px);
    font-weight: 700;
    line-height: 1.03;
    letter-spacing: -0.04em;
}

.home-materials {
    overflow: hidden;
    padding: 120px 0;
    background-color: #f4f1ec;
}

.materials-grid {
    display: grid;
    grid-template-columns: minmax(420px, 0.92fr) minmax(0, 0.9fr);
    gap: clamp(60px, 8vw, 130px);
    align-items: center;
}

.materials-panel {
    position: relative;
    min-height: 560px;
}

.material-card {
    position: absolute;
    overflow: hidden;
    border: 1px solid rgba(56, 10, 20, 0.12);
    box-shadow: 0 26px 80px rgba(34, 34, 34, 0.08);
}

.material-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(115deg, rgba(255,255,255,0.08) 0 1px, transparent 1px 15px),
        radial-gradient(circle at 22% 24%, rgba(255,255,255,0.26), transparent 34%);
}

.material-card span {
    position: absolute;
    left: 22px;
    bottom: 20px;
    z-index: 1;
    color: rgba(255,255,255,0.78);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.material-card-bordo {
    left: 0;
    top: 0;
    width: 58%;
    height: 72%;
    background: linear-gradient(145deg, #25070f, #4a101d);
}

.material-card-stone {
    right: 4%;
    top: 14%;
    width: 46%;
    height: 48%;
    background: linear-gradient(145deg, #cfc7ba, #f1eee8);
}

.material-card-stone span {
    color: rgba(56, 10, 20, 0.68);
}

.material-card-gold {
    right: 16%;
    bottom: 0;
    width: 52%;
    height: 34%;
    background: linear-gradient(145deg, #8f714a, #d8c5a8);
}

.materials-content p,
.home-section-head p,
.quiet-cta-inner p {
    margin: 24px 0 0;
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.82;
}

.materials-list {
    margin-top: 38px;
    border-top: 1px solid rgba(56, 10, 20, 0.13);
}

.materials-list div {
    display: grid;
    grid-template-columns: minmax(120px, 0.35fr) 1fr;
    gap: 28px;
    padding: 22px 0;
    border-bottom: 1px solid rgba(56, 10, 20, 0.13);
}

.materials-list strong,
.service-editorial-item strong {
    color: var(--perla-bordo);
    font-family: var(--font-heading);
    font-size: 28px;
    line-height: 1;
    letter-spacing: -0.035em;
}

.materials-list span,
.service-editorial-item p,
.method-row p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.72;
}

.home-method {
    padding: 112px 0 124px;
    background-color: var(--perla-light);
}

.home-section-head {
    display: grid;
    grid-template-columns: minmax(0, 0.54fr) minmax(360px, 0.46fr);
    gap: clamp(40px, 6vw, 86px);
    align-items: start;
    margin-bottom: 48px;
}

.home-method .home-section-title {
    max-width: 560px;
    font-size: clamp(32px, 3.4vw, 52px);
}

.home-section-head p {
    margin-top: 42px;
    max-width: 520px;
}

.method-rows {
    border-top: 1px solid rgba(56, 10, 20, 0.14);
}

.method-row {
    display: grid;
    grid-template-columns: 120px minmax(220px, 0.72fr) minmax(0, 1fr);
    gap: 34px;
    align-items: start;
    padding: 28px 0;
    border-bottom: 1px solid rgba(56, 10, 20, 0.14);
}

.method-row strong {
    color: var(--perla-antrasit);
    font-family: var(--font-heading);
    font-size: 30px;
    line-height: 1.04;
    letter-spacing: -0.035em;
}

.home-services-editorial {
    padding: 120px 0;
    color: var(--perla-light);
    background:
        radial-gradient(circle at 82% 18%, rgba(179, 150, 109, 0.15), transparent 34%),
        linear-gradient(135deg, #24060d, var(--perla-bordo));
}

.home-services-editorial .home-section-title {
    color: var(--perla-light);
}

.services-editorial-grid {
    display: grid;
    grid-template-columns: minmax(320px, 0.55fr) minmax(0, 1fr);
    gap: clamp(56px, 8vw, 120px);
    align-items: start;
}

.services-editorial-title .btn {
    margin-top: 34px;
}

.services-editorial-title > p {
    max-width: 42ch;
    margin-top: 22px;
    color: rgba(234, 233, 229, 0.72);
    font-size: 15px;
    line-height: 1.75;
}

.service-editorial-list {
    border-top: 1px solid rgba(234, 233, 229, 0.16);
}

.service-editorial-item {
    display: grid;
    grid-template-columns: 70px minmax(180px, 0.45fr) minmax(0, 1fr);
    gap: 26px;
    padding: 30px 0;
    border-bottom: 1px solid rgba(234, 233, 229, 0.16);
}

.service-editorial-item strong {
    color: var(--perla-gold-light);
}

.service-editorial-item p {
    color: rgba(234, 233, 229, 0.72);
}

.home-quiet-cta {
    position: relative;
    overflow: hidden;
    padding: 132px 0;
    color: var(--perla-light);
    background:
        radial-gradient(circle at 78% 45%, rgba(216, 197, 168, 0.22), transparent 30%),
        linear-gradient(135deg, var(--perla-bordo-dark), var(--perla-bordo) 58%, #4a101d);
}

.home-quiet-cta::before {
    content: "";
    position: absolute;
    right: 7vw;
    top: 50%;
    width: min(430px, 34vw);
    height: min(430px, 34vw);
    border: 1px solid rgba(216, 197, 168, 0.3);
    border-radius: 50%;
    transform: translateY(-50%);
}

.home-quiet-cta::after {
    content: "P";
    position: absolute;
    right: 12vw;
    bottom: -3vw;
    color: rgba(234, 233, 229, 0.045);
    font-family: var(--font-heading);
    font-size: clamp(180px, 24vw, 420px);
    font-weight: 700;
    line-height: 0.8;
}

.quiet-cta-inner {
    position: relative;
    z-index: 2;
    max-width: 920px;
}

.home-quiet-cta .home-section-title {
    max-width: 820px;
    color: var(--perla-light);
    font-size: clamp(42px, 5.2vw, 78px);
}

.quiet-cta-inner p {
    max-width: 560px;
    color: rgba(234, 233, 229, 0.74);
}

.quiet-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.home-quiet-cta .btn-outline {
    color: var(--perla-light);
    border-color: rgba(234, 233, 229, 0.34);
}

.home-quiet-cta .btn-outline:hover {
    color: var(--perla-bordo);
    background-color: var(--perla-light);
    border-color: var(--perla-light);
}

@media (max-width: 1240px) {
    .home-hero {
        min-height: auto;
    }

    .home-hero-sticky {
        position: relative;
        height: auto;
        min-height: auto;
        padding-top: calc(var(--header-height) + 48px);
        padding-bottom: 72px;
    }

    .home-hero-inner {
        height: auto;
        min-height: auto;
        align-items: start;
    }

    .portal-world-inner,
    .materials-grid,
    .services-editorial-grid {
        grid-template-columns: 1fr;
    }

    .portal-world-materials,
    .materials-panel {
        max-width: 760px;
    }
}

@media (max-height: 760px) and (min-width: 1241px) {
    .home-hero-sticky {
        min-height: 580px;
        padding-top: calc(var(--header-height) + 18px);
        padding-bottom: 18px;
    }

    .home-hero-inner {
        height: calc(100svh - var(--header-height) - 48px);
        min-height: 430px;
    }

    .home-hero-title {
        font-size: clamp(44px, 7.4vh, 64px);
        line-height: 0.9;
    }

    .home-hero-lead {
        max-width: 540px;
        font-size: 14px;
        line-height: 1.45;
    }

    .home-hero-actions .btn {
        min-height: 44px;
        padding-inline: 20px;
        font-size: 13px;
    }

    .door-stage {
        width: min(420px, 74%);
        height: min(500px, calc(100svh - var(--header-height) - 78px));
    }
}

@media (max-width: 900px) {
    .home-section-head,
    .method-row,
    .service-editorial-item,
    .materials-list div {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .home-section-head p {
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    .home-materials,
    .home-method,
    .home-services-editorial,
    .home-quiet-cta {
        padding-top: 78px;
        padding-bottom: 84px;
    }

    .portal-world {
        display: none;
    }

    .home-section-title {
        font-size: clamp(32px, 9vw, 48px);
        line-height: 1.05;
    }

    .materials-panel {
        min-height: 430px;
    }

    .method-row strong,
    .materials-list strong,
    .service-editorial-item strong {
        font-size: 25px;
    }
}

@media (max-width: 520px) {
    .materials-panel {
        min-height: 360px;
    }

    .material-card-bordo {
        width: 68%;
        height: 68%;
    }

    .material-card-stone {
        width: 48%;
        height: 42%;
    }

    .material-card-gold {
        right: 6%;
        width: 62%;
    }

    .quiet-cta-actions .btn {
        width: 100%;
    }
}
/* ================================
   PERLA PAINT - SCROLL LIVING SECTIONS
   Premium continuous section motion
   ================================ */

[data-motion-section] {
    position: relative;
    --section-progress: 0;
    --section-center: 0;
}

/* Genel tekrar eden giriş animasyonu */

[data-motion-section] [data-motion-item] {
    opacity: 0;
    transform: translate3d(0, 46px, 0);
    filter: blur(12px);
    transition:
        opacity 0.95s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.95s cubic-bezier(0.16, 1, 0.3, 1),
        filter 0.95s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: calc(var(--motion-index, 0) * 0.065s);
    will-change: opacity, transform, filter;
}

[data-motion-section].is-inview [data-motion-item] {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
}

/* ================================
   YÜZEY DİLİ - daha canlı kart hareketi
   ================================ */

.home-materials[data-motion-section]::before {
    content: "";
    position: absolute;
    left: -9%;
    top: 8%;
    width: 560px;
    height: 560px;
    border: 1px solid rgba(179, 150, 109, 0.14);
    border-radius: 50%;
    opacity: calc(0.18 + var(--section-center) * 0.72);
    transform:
        scale(calc(0.88 + var(--section-center) * 0.12))
        rotate(calc((var(--section-progress) - 0.5) * 18deg));
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.home-materials[data-motion-section]::after {
    content: "";
    position: absolute;
    right: -10%;
    bottom: 4%;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(179, 150, 109, 0.10), transparent 70%);
    filter: blur(22px);
    opacity: calc(var(--section-center) * 0.9);
    pointer-events: none;
}

.home-materials .materials-panel {
    transform: translate3d(0, calc(var(--section-progress) * -22px), 0);
    transition: transform 0.18s linear;
    will-change: transform;
}

.home-materials .material-card {
    transition:
        opacity 0.95s cubic-bezier(0.16, 1, 0.3, 1),
        filter 0.95s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.35s ease;
    will-change: transform, opacity, filter;
}

.home-materials .material-card-bordo {
    transform:
        translate3d(
            calc(var(--section-progress) * -24px),
            calc(var(--section-progress) * -48px),
            0
        )
        rotate(calc(-2deg + var(--section-progress) * 2deg));
}

.home-materials .material-card-stone {
    transform:
        translate3d(
            calc(var(--section-progress) * 34px),
            calc(var(--section-progress) * -34px),
            0
        )
        rotate(calc(2deg - var(--section-progress) * 2deg));
}

.home-materials .material-card-gold {
    transform:
        translate3d(
            calc(var(--section-progress) * 16px),
            calc(var(--section-progress) * -58px),
            0
        )
        rotate(calc(1deg - var(--section-progress) * 1deg));
}

.home-materials .material-card:hover {
    box-shadow: 0 38px 110px rgba(34, 34, 34, 0.15);
}

.material-card::after {
    content: "";
    position: absolute;
    top: -30%;
    left: -42%;
    width: 36%;
    height: 150%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
    transform: rotate(18deg);
    opacity: 0;
}

.home-materials.is-inview .material-card::after {
    animation: perlaMaterialSweep 4.8s ease-in-out infinite;
    animation-delay: calc(var(--motion-index, 0) * 0.35s);
}

@keyframes perlaMaterialSweep {
    0%,
    34% {
        left: -42%;
        opacity: 0;
    }

    48% {
        opacity: 0.8;
    }

    78%,
    100% {
        left: 120%;
        opacity: 0;
    }
}

.materials-list > div {
    position: relative;
    overflow: hidden;
    transition:
        transform 0.35s ease,
        border-color 0.35s ease;
}

.materials-list > div::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(179, 150, 109, 0.10), transparent 58%);
    opacity: 0;
    transform: scaleX(0.82);
    transform-origin: left;
    transition:
        opacity 0.35s ease,
        transform 0.35s ease;
    pointer-events: none;
}

.materials-list > div:hover {
    transform: translateX(10px);
}

.materials-list > div:hover::after {
    opacity: 1;
    transform: scaleX(1);
}

/* ================================
   ÇALIŞMA ŞEKLİ - satırların yaşayan akışı
   ================================ */

.home-method[data-motion-section] {
    overflow: hidden;
}

.home-method[data-motion-section]::before {
    content: "";
    position: absolute;
    right: 6%;
    top: 12%;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(179, 150, 109, 0.12), transparent 70%);
    filter: blur(20px);
    opacity: calc(var(--section-center) * 0.85);
    transform: scale(calc(0.82 + var(--section-center) * 0.18));
    pointer-events: none;
}

.home-method .home-section-title {
    transform: translate3d(0, calc(var(--section-progress) * -18px), 0);
    transition: transform 0.18s linear;
}

.method-row {
    position: relative;
    overflow: hidden;
    transition:
        transform 0.35s ease,
        background-color 0.35s ease;
}

.method-row::before {
    content: "";
    position: absolute;
    left: 0;
    top: -1px;
    width: calc(var(--section-center) * 100%);
    height: 1px;
    background: linear-gradient(90deg, rgba(56, 10, 20, 0.18), rgba(179, 150, 109, 0.38), rgba(56, 10, 20, 0.04));
    pointer-events: none;
}

.method-row::after {
    content: "";
    position: absolute;
    inset: 0;
    width: 48%;
    background: linear-gradient(90deg, rgba(179, 150, 109, 0.08), transparent);
    opacity: 0;
    transform: scaleX(0.76);
    transform-origin: left;
    transition:
        opacity 0.35s ease,
        transform 0.35s ease;
    pointer-events: none;
}

.method-row:hover {
    transform: translateX(10px);
}

.method-row:hover::after {
    opacity: 1;
    transform: scaleX(1);
}

.method-row:hover strong {
    color: var(--perla-bordo);
}

/* ================================
   HİZMETLER - koyu alanda daha güçlü etki
   ================================ */

.home-services-editorial[data-motion-section] {
    overflow: hidden;
}

.home-services-editorial[data-motion-section]::before {
    content: "";
    position: absolute;
    right: 5%;
    top: 8%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(216, 197, 168, 0.13), transparent 70%);
    filter: blur(24px);
    opacity: calc(var(--section-center) * 0.9);
    transform:
        scale(calc(0.82 + var(--section-center) * 0.18))
        translate3d(calc(var(--section-progress) * -24px), 0, 0);
    pointer-events: none;
}

.home-services-editorial .services-editorial-title {
    transform: translate3d(0, calc(var(--section-progress) * -24px), 0);
    transition: transform 0.18s linear;
}

.service-editorial-item {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    transition:
        transform 0.38s ease,
        border-color 0.38s ease,
        background-color 0.38s ease;
}

.service-editorial-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: -1px;
    width: calc(var(--section-center) * 100%);
    height: 1px;
    background: linear-gradient(90deg, rgba(216, 197, 168, 0.18), rgba(216, 197, 168, 0.46), rgba(216, 197, 168, 0.04));
    pointer-events: none;
}

.service-editorial-item::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(216, 197, 168, 0.10), transparent 62%);
    opacity: 0;
    transform: scaleX(0.82);
    transform-origin: left;
    transition:
        opacity 0.35s ease,
        transform 0.35s ease;
}

.service-editorial-item:hover {
    transform: translateX(14px);
}

.service-editorial-item:hover::after {
    opacity: 1;
    transform: scaleX(1);
}

.service-editorial-item:hover > span {
    color: var(--perla-light);
    text-shadow: 0 0 22px rgba(216, 197, 168, 0.58);
}

/* ================================
   CTA - daire ve P sürekli nefes alsın
   ================================ */

.home-quiet-cta[data-motion-section]::before {
    opacity: calc(0.25 + var(--section-center) * 0.75);
    transform:
        translateY(-50%)
        scale(calc(0.88 + var(--section-center) * 0.12))
        rotate(calc((var(--section-progress) - 0.5) * 12deg));
    transition: opacity 0.25s linear;
}

.home-quiet-cta[data-motion-section]::after {
    opacity: calc(0.02 + var(--section-center) * 0.08);
    transform:
        translate3d(0, calc((1 - var(--section-center)) * 44px), 0)
        scale(calc(0.96 + var(--section-center) * 0.04));
    transition: opacity 0.25s linear;
}

.home-quiet-cta .quiet-cta-inner {
    transform: translate3d(0, calc(var(--section-progress) * -20px), 0);
    transition: transform 0.18s linear;
}

/* Mobilde daha hafif */

@media (max-width: 768px) {
    [data-motion-section] [data-motion-item] {
        transform: translate3d(0, 28px, 0);
        filter: blur(7px);
    }

    .home-materials .material-card-bordo,
    .home-materials .material-card-stone,
    .home-materials .material-card-gold,
    .home-method .home-section-title,
    .home-services-editorial .services-editorial-title,
    .home-quiet-cta .quiet-cta-inner {
        transform: none;
    }

    .service-editorial-item:hover,
    .method-row:hover,
    .materials-list > div:hover {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    [data-motion-section] [data-motion-item],
    [data-motion-section]::before,
    [data-motion-section]::after,
    .material-card::after,
    .service-editorial-item::before,
    .service-editorial-item::after,
    .method-row::before,
    .method-row::after {
        opacity: 1 !important;
        filter: none !important;
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }
}
/* Kapı üzerindeki beyaz açıklama kartını gizle */
.door-caption {
    display: none !important;
}

/* Son tipografi dengesi: kapı sahnesi dışındaki bloklar daha az baskın. */
.home-section-title {
    font-size: clamp(31px, 3.6vw, 54px) !important;
    line-height: 1.04 !important;
}

.portal-world .section-title {
    font-size: clamp(32px, 4vw, 58px) !important;
    line-height: 1.03 !important;
}

.service-editorial-item strong,
.method-row strong {
    font-size: clamp(22px, 2.2vw, 30px) !important;
}

@media (min-width: 769px) and (max-width: 1100px) {
    .door-leaf-monogram {
        top: 44%;
        width: clamp(90px, 55%, 104px);
        height: 41%;
        opacity: 0.9;
    }

    .door-handle {
        top: 70%;
        width: 58px;
        height: 13px;
    }
}

@media (max-width: 768px) {
    .home-section-title,
    .portal-world .section-title {
        font-size: clamp(30px, 9vw, 42px) !important;
    }
}

/* Mobil kapı geçişi: masaüstü portal mantığını daha hafif ölçülerle geri açar. */
@media (max-width: 768px) {
    .home-hero {
        min-height: 178svh !important;
    }

    .home-hero-sticky {
        position: sticky !important;
        top: 0;
        height: 100svh !important;
        min-height: 620px !important;
        padding-top: calc(var(--header-height) + 18px) !important;
        padding-bottom: 20px !important;
        overflow: hidden;
    }

    .home-hero-inner {
        position: relative;
        display: block;
        height: calc(100svh - var(--header-height) - 48px) !important;
        min-height: 500px !important;
    }

    .hero-grid-line {
        display: none !important;
    }

    .hero-atmosphere {
        opacity: calc(0.72 - var(--camera, 0) * 1.15) !important;
    }

    .home-hero-content {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 6;
        max-width: 100%;
        opacity: clamp(0, calc(1 - var(--door-open, 0) * 1.18), 1) !important;
        transform: translate3d(0, calc(var(--door-open, 0) * -18px), 0) scale(calc(1 - var(--door-open, 0) * 0.025)) !important;
    }

    .hero-surface-switch {
        gap: 22px;
        margin-bottom: 10px;
    }

    .hero-surface-switch button {
        min-height: 30px;
        padding-bottom: 8px;
        font-size: 10px;
    }

    .home-hero-title {
        font-size: clamp(33px, 10.3vw, 48px) !important;
        line-height: 0.94 !important;
    }

    .home-hero-title span:nth-child(3),
    .home-hero-title span:nth-child(4) {
        padding-left: 0 !important;
    }

    .home-hero-title span::after {
        display: none !important;
    }

    .home-hero-lead {
        max-width: 32rem;
        display: -webkit-box;
        overflow: hidden;
        margin-top: 12px !important;
        font-size: 13px !important;
        line-height: 1.55 !important;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
    }

    .home-hero-actions {
        margin-top: 12px !important;
        gap: 10px !important;
    }

    .home-hero-actions .btn {
        min-height: 44px;
        padding-inline: 18px;
        font-size: 12px;
    }

    .home-hero-visual,
    .luxury-door-scene {
        position: absolute;
        inset: 0;
        min-height: 0 !important;
        height: 100% !important;
    }

    .luxury-door-scene {
        transform: translate3d(var(--camera-shift-x, 0px), var(--camera-shift-y, 0px), 0) scale(var(--camera-scale, 1)) !important;
        transform-origin: var(--portal-origin-x, 50%) var(--portal-origin-y, 50%) !important;
        perspective: none !important;
    }

    .door-stage {
        left: 50% !important;
        right: auto !important;
        top: 0 !important;
        width: min(318px, 74vw) !important;
        height: min(392px, 42svh) !important;
        translate: -50% 0;
    }

    .door-leaf-monogram {
        top: 43%;
        width: clamp(86px, 60%, 94px);
        height: 42%;
        opacity: 0.92;
        filter:
            drop-shadow(0 1px 0 rgba(255, 244, 219, 0.12))
            drop-shadow(0 4px 8px rgba(0, 0, 0, 0.22));
    }

    .portal-room,
    .double-door {
        border-radius: 145px 145px 16px 16px !important;
        transform-style: flat !important;
    }

    .portal-room {
        box-shadow: inset 0 0 34px rgba(56, 10, 20, 0.12) !important;
    }

    .room-light {
        filter: none !important;
        opacity: calc(0.38 + var(--door-open, 0) * 0.34) !important;
    }

    .room-floor-line,
    .leaf-shine,
    .door-shadow-floor {
        display: none !important;
    }

    .door-frame-outer {
        border-radius: 158px 158px 26px 26px !important;
        border-color: rgba(216, 197, 168, 0.28) !important;
        box-shadow: 0 0 0 1px rgba(234, 233, 229, 0.04), 0 14px 38px rgba(0, 0, 0, 0.12) !important;
    }

    .frame-glow {
        border-radius: 150px 150px 20px 20px !important;
    }

    .door-leaf {
        border-color: rgba(216, 197, 168, 0.16) !important;
        box-shadow: inset 0 1px 0 rgba(216, 197, 168, 0.14), inset 0 -28px 42px rgba(0, 0, 0, 0.14) !important;
        backface-visibility: visible !important;
        will-change: transform, opacity;
        transform-style: flat !important;
    }

    .room-wall-line {
        opacity: 0.48 !important;
    }

    .door-center-line {
        background: linear-gradient(to bottom, transparent, rgba(216, 197, 168, 0.22), rgba(0, 0, 0, 0.16), transparent) !important;
    }

    .door-leaf-left {
        border-radius: 145px 0 0 16px !important;
        transform-origin: left center !important;
        transform: translate3d(0, 0, 0) scaleX(calc(1 - var(--door-open, 0) * 0.78)) !important;
        opacity: clamp(0.18, calc(1 - var(--camera, 0) * 0.95), 1) !important;
    }

    .door-leaf-right {
        border-radius: 0 145px 16px 0 !important;
        transform-origin: right center !important;
        transform: translate3d(0, 0, 0) scaleX(calc(1 - var(--door-open, 0) * 0.78)) !important;
        opacity: clamp(0.18, calc(1 - var(--camera, 0) * 0.95), 1) !important;
    }

    .door-handle {
        top: 70%;
        width: 48px;
        height: 12px;
    }

    .door-handle::before {
        width: 13px;
        height: 13px;
    }

    .portal-world {
        display: grid !important;
        clip-path: none !important;
        opacity: var(--world-opacity, 0) !important;
        transform: translate3d(0, calc((1 - var(--world-open, 0)) * 18px), 0) scale(calc(0.985 + var(--world-open, 0) * 0.015)) !important;
        will-change: opacity, transform;
        pointer-events: none;
    }

    .portal-world-bg {
        opacity: 0.2 !important;
    }

    .world-line {
        display: none !important;
    }

    .portal-world-inner {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
        width: min(100% - 32px, 560px);
        padding-top: var(--header-height);
        opacity: clamp(0, calc((var(--world-open, 0) - 0.14) * 1.55), 1) !important;
        transform: translate3d(0, calc((1 - var(--world-open, 0)) * 16px), 0) !important;
    }

    .portal-world .section-title {
        font-size: clamp(31px, 9.6vw, 44px) !important;
        line-height: 1.05 !important;
    }

    .portal-world-detail .text {
        font-size: 14px;
        line-height: 1.7;
    }

    .portal-world-proof {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .portal-world-proof div {
        padding: 14px 10px;
    }

    .portal-world-proof strong {
        font-size: 20px;
    }

    .portal-world-materials {
        min-height: 190px;
    }
}

@media (max-width: 520px) {
    .home-hero {
        min-height: 182svh !important;
    }

    .home-hero-sticky {
        min-height: 590px !important;
    }

    .home-hero-title {
        font-size: clamp(31px, 10.3vw, 41px) !important;
        line-height: 0.94 !important;
    }

    .home-hero-lead {
        display: -webkit-box;
        overflow: hidden;
        margin-top: 12px !important;
        font-size: 13px !important;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .home-hero-actions {
        margin-top: 12px !important;
    }

    .home-hero-actions .btn {
        min-height: 40px;
        padding-inline: 15px;
        font-size: 11px;
    }

    .door-stage {
        width: min(286px, 78vw) !important;
        height: min(340px, 39svh) !important;
    }

    .portal-world-proof {
        grid-template-columns: 1fr;
    }

    .portal-world-materials {
        display: none;
    }
}

/* Final revizyon öncelikleri */
@media (min-width: 769px) {
    .portal-world-inner {
        grid-template-columns: minmax(0, 0.86fr) minmax(380px, 0.74fr) !important;
    }

    .portal-world .section-title {
        max-width: 560px;
        font-size: clamp(35px, 3.8vw, 54px) !important;
        line-height: 1.08 !important;
    }
}

@media (max-width: 520px) {
    .home-hero-lead {
        font-size: 13px !important;
        line-height: 1.48 !important;
        -webkit-line-clamp: 4 !important;
    }
}

/* Ana sayfa gorsel hikaye */
.materials-visual {
    display: grid;
    grid-template-columns: minmax(0, 1.58fr) minmax(180px, 0.72fr);
    gap: 14px;
    min-height: 570px;
}

.materials-visual figure {
    position: relative;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    background: #ddd6cc;
}

.materials-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.materials-visual-main img {
    object-position: 54% center;
}

.materials-visual-detail img {
    object-position: 50% center;
}

.materials-visual figure::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 34%;
    pointer-events: none;
    background: linear-gradient(to top, rgba(38, 7, 15, 0.72), transparent);
}

.materials-visual figcaption {
    position: absolute;
    z-index: 2;
    left: 22px;
    right: 22px;
    bottom: 20px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    align-items: end;
    color: var(--perla-light);
}

.materials-visual figcaption span {
    color: var(--perla-gold-light);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.materials-visual figcaption strong {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
}

.materials-visual figure:hover img {
    transform: scale(1.025);
}

@media (max-width: 1240px) {
    .materials-visual {
        max-width: 860px;
    }
}

@media (max-width: 768px) {
    .materials-visual {
        grid-template-columns: minmax(0, 1.35fr) minmax(120px, 0.65fr);
        min-height: 430px;
    }

    .materials-visual figcaption {
        left: 14px;
        right: 14px;
        bottom: 14px;
        grid-template-columns: 26px minmax(0, 1fr);
        gap: 8px;
    }

    .materials-visual figcaption strong {
        font-size: 11px;
    }
}

@media (max-width: 520px) {
    .materials-visual {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .materials-visual-main {
        aspect-ratio: 4 / 3;
    }

    .materials-visual-detail {
        aspect-ratio: 4 / 5;
    }

    .materials-visual figcaption strong {
        font-size: 12px;
    }
}

/* Final image rhythm: replace the legacy numbered service rows. */
.service-editorial-item {
    grid-template-columns: minmax(210px, 250px) minmax(210px, 0.62fr) minmax(0, 1fr) !important;
    align-items: center;
    gap: clamp(22px, 3vw, 38px);
    padding: 24px 0;
}

.service-editorial-item figure {
    width: 100%;
    aspect-ratio: 4 / 3;
    margin: 0;
    overflow: hidden;
}

.service-editorial-item figure img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.materials-visual figcaption {
    grid-template-columns: 1fr;
}

@media (max-width: 1080px) {
    .service-editorial-item {
        grid-template-columns: minmax(190px, 230px) minmax(0, 1fr) !important;
    }

    .service-editorial-item p {
        grid-column: 2;
    }
}

@media (max-width: 720px) {
    .service-editorial-item {
        grid-template-columns: 1fr !important;
        gap: 14px;
        padding: 26px 0 30px;
    }

    .service-editorial-item figure {
        aspect-ratio: 16 / 10;
    }

    .service-editorial-item p {
        grid-column: auto;
    }
}

/* Tablet hero: kapı ve metni ilk görünümde dengede tutar. */
@media (min-width: 769px) and (max-width: 1100px) {
    .home-hero {
        min-height: 178svh;
    }

    .home-hero-sticky {
        position: sticky;
        top: 0;
        height: 100svh;
        min-height: 680px;
        padding-top: calc(var(--header-height) + 24px);
        padding-bottom: 24px;
        overflow: hidden;
    }

    .home-hero-inner {
        grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
        gap: clamp(24px, 4vw, 42px);
        align-items: center;
        height: calc(100svh - var(--header-height) - 48px);
        min-height: 590px;
    }

    .home-hero-content {
        align-self: center;
        max-width: 470px;
    }

    .home-hero-title {
        font-size: clamp(48px, 6.7vw, 60px);
        line-height: 0.92;
    }

    .home-hero-title span:nth-child(3),
    .home-hero-title span:nth-child(4) {
        padding-left: 0;
    }

    .home-hero-lead {
        max-width: 430px;
        font-size: 14px;
        line-height: 1.6;
    }

    .home-hero-visual,
    .luxury-door-scene {
        min-height: 0;
        height: 100%;
    }

    .door-stage {
        top: 50%;
        right: 0;
        width: min(340px, 100%);
        height: min(540px, 68svh);
        translate: 0 -50%;
    }
}
