/* 3D layer on top of the site: voxel logo, tilted video wall, coverflow strip, depth on cards.
   Everything here is additive; removing this file and fx.js leaves the original site. */

/* ---- voxel Kontents logo in the dark numbers band ---- */
.fx-vx{position:relative;height:280px;margin:0 0 8px;cursor:grab;touch-action:pan-y}
.fx-vx:active{cursor:grabbing}
.fx-vx::before{content:"";position:absolute;inset:14% 18%;border-radius:50%;background:radial-gradient(closest-side,rgba(254,95,85,.32),rgba(255,138,92,.12) 60%,transparent);filter:blur(26px);pointer-events:none}
.fx-vx .vx-canvas{position:relative;z-index:1;display:block;width:100%;height:100%;-webkit-mask-image:radial-gradient(ellipse 50% 50% at 50% 50%,#000 62%,transparent 100%);mask-image:radial-gradient(ellipse 50% 50% at 50% 50%,#000 62%,transparent 100%)}
.fx-vx-fb{position:absolute;inset:0;z-index:1;width:30%;margin:auto;opacity:.9}
.fx-vx.is-3d .fx-vx-fb{display:none}
.fx-vx-hint{position:absolute;left:0;right:0;bottom:4px;z-index:2;text-align:center;font-size:12.5px;color:rgba(255,255,255,.55);transition:opacity .4s;pointer-events:none}
.fx-vx.is-played .fx-vx-hint{opacity:0}
@media (min-width:1024px){
  .amet .num-grid .fx-vx{grid-column:7/13;grid-row:1;height:360px;margin:-40px 0 0}
  .amet .num-grid .small-n{grid-row:2}
  .amet .num-grid .num-a{grid-row:1/3;align-self:end}
}

/* ---- tilted wall of real videos ---- */
.fx-wall{position:relative;overflow:hidden;overflow:clip;padding:84px 0 24px;background:linear-gradient(180deg,#fff,var(--lila-2) 45%,#fff)}
.fx-wall-copy{position:relative;z-index:2;text-align:center}
.fx-wall-copy h2{max-width:16ch;margin:0 auto}
.fx-wall-copy .lead{margin:20px auto 0}
.fx-wall-stage{height:560px;margin-top:-6px;perspective:1100px;perspective-origin:50% 0;-webkit-mask-image:linear-gradient(90deg,transparent,#000 12%,#000 88%,transparent),linear-gradient(180deg,#000 70%,transparent);-webkit-mask-composite:source-in;mask-image:linear-gradient(90deg,transparent,#000 12%,#000 88%,transparent),linear-gradient(180deg,#000 70%,transparent);mask-composite:intersect}
.fx-plane{--wp:0;display:grid;gap:18px;padding-top:56px;transform-origin:50% 0;transform:rotateX(calc(50deg - var(--wp)*38deg)) rotateZ(calc(-10deg + var(--wp)*7deg)) scale(calc(1.24 - var(--wp)*.2));will-change:transform}
.fx-wall.is-flat .fx-plane{transform:rotateX(12deg) rotateZ(-3deg)}
.fx-track{display:flex;gap:18px;width:max-content;animation:fx-drift var(--t,80s) linear infinite;animation-direction:var(--d,normal);animation-play-state:paused}
.fx-wall.is-live .fx-track{animation-play-state:running}
.fx-row:nth-child(2) .fx-track{margin-left:-120px}
@keyframes fx-drift{to{transform:translateX(-50%)}}
.fx-tile{position:relative;flex:none;width:150px;height:266px;margin:0;overflow:hidden;border:4px solid #fff;border-radius:24px;background:var(--pudra);box-shadow:0 30px 40px -24px rgba(20,17,31,.45)}
.fx-tile img{width:100%;height:100%;object-fit:cover}
@media (min-width:1024px){.fx-wall{padding-top:120px}}
@media (max-width:767px){
  .fx-wall{padding-top:64px}
  .fx-wall-stage{height:400px}
  .fx-tile{width:110px;height:196px;border-radius:18px;border-width:3px}
}

/* ---- portfolio strip: cards turn as they pass the middle ---- */
.fx-cf .sc .tile{transform:perspective(900px) rotateY(var(--cy,0deg)) translateZ(var(--cz,0px));transform-origin:50% 50%;will-change:transform}

/* ---- cursor depth on cards (rotate property so existing transforms keep working) ---- */
.fx-persp{perspective:1100px}
.fx-tilt{transition:rotate .5s cubic-bezier(.2,.8,.2,1),box-shadow .5s;transform-style:preserve-3d}
.fx-tilt.is-tilting{transition:rotate .12s linear,box-shadow .5s;box-shadow:0 28px 50px -30px rgba(20,17,31,.4)}

/* ---- hero depth: layers float at different distances from the cursor ---- */
.fx-hero .wall-box{transition:rotate .6s cubic-bezier(.2,.8,.2,1)}
.fx-hero .fx-layer{transition:translate .6s cubic-bezier(.2,.8,.2,1)}

/* ---- panel mockup lifts up into place on scroll ---- */
.fx-rise{transform-origin:50% 100%;will-change:rotate,scale}


/* ---- hero search (Markayım / Üreticiyim) ---- */
.fx-hidden{display:none!important}
.fx-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.fx-doors{text-align:center}
.fx-switch button,.fx-chip,.fx-link,.fx-opt,.fx-sg-vid{font:inherit;cursor:pointer}
.fx-switch button{font-size:15px}
.fx-link{border:0;background:none;padding:6px 4px}
.fx-search .btn{padding:0 20px;min-height:46px;font-size:15px}
.fx-door{text-align:center}
@media (max-width:767px){
  .fx-doors{width:100%;margin-top:22px}
  .fx-switch button{min-width:0;padding:8px 16px}
  .fx-search .btn{padding:0 14px;font-size:14px}
  .fx-badges img{height:44px}
}
.fx-doors { position: relative; z-index: 3; width: min(640px, 100%); margin: 6px auto 0; }
.fx-switch { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; margin-bottom: 14px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: rgb(255 255 255 / .8); backdrop-filter: blur(8px); }
.fx-switch button { position: relative; z-index: 1; min-width: 128px; min-height: 40px; padding: 8px 18px; border: 0; border-radius: 999px; background: none; color: var(--slate); font-weight: 600; transition: color .3s; }
.fx-switch button[aria-selected='true'] { color: #fff; }
.fx-switch i { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--gece); box-shadow: 0 8px 18px -8px rgb(20 17 31 / .6); transition: translate .45s cubic-bezier(.22, 1, .36, 1); }
.fx-doors.is-creator .fx-switch i { translate: 100% 0; background: linear-gradient(100deg, var(--mercan), #FF8A5C); }
.fx-door.is-on { animation: fx-door .5s cubic-bezier(.22, 1, .36, 1); }
@keyframes fx-door { from { opacity: 0; transform: translateY(10px) rotateX(-18deg); } }
.fx-search { display: flex; align-items: center; gap: 10px; padding: 7px 7px 7px 20px; border: 1px solid var(--line); border-radius: 999px; background: #fff; box-shadow: 0 24px 50px -28px rgb(214 63 53 / .45), 0 2px 6px rgb(20 17 31 / .05); transition: box-shadow .3s, border-color .3s; }
.fx-search:focus-within { border-color: #FFC6BB; box-shadow: 0 24px 50px -24px rgb(214 63 53 / .55), 0 0 0 4px rgb(254 95 85 / .12); }
.fx-search svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--sis); stroke-width: 2; stroke-linecap: round; }
.fx-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: none; color: var(--ink); font-size: 16px; }
.fx-search input::placeholder { color: #8E8885; }
.fx-search input::-webkit-search-cancel-button { display: none; }
.fx-search .btn { flex: none; min-height: 46px; }
.fx-chips { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; }
.fx-chip { min-height: 34px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 500; transition: transform .2s, border-color .2s, background .2s; }
.fx-chip:hover { border-color: #FFC6BB; background: var(--krem); transform: translateY(-2px); }
.fx-link { margin-left: 4px; color: var(--ametist-ink); font-size: 14px; font-weight: 600; }
.fx-creator { max-width: 440px; margin: 0 auto 16px; color: var(--slate); }
.fx-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.fx-badges img { display: block; width: auto; height: 50px; transition: transform .2s; }
.fx-badges a:hover img { transform: translateY(-2px); }
@media (max-width: 700px) {
  .fx-switch button { min-width: 0; padding: 8px 16px; }
  .fx-search { padding-left: 14px; }
  .fx-search .btn { padding: 10px 16px; font-size: 14px; }
  .fx-search input { font-size: 15px; }
  .fx-link { flex-basis: 100%; margin: 4px 0 0; text-align: center; }
}
.fx-searchbox { position: relative; z-index: 5; }
.fx-search { position: relative; isolation: isolate; }
.fx-search::before { position: absolute; inset: -2px; z-index: -1; border-radius: inherit; background: conic-gradient(from var(--fx-a, 0deg), #FE5F55, #FF8A5C, #FFB547, #FE5F55); opacity: 0; transition: opacity .3s; content: ''; }
.fx-search::after { position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: #fff; content: ''; }
.fx-search:focus-within::before { opacity: 1; animation: fx-spin 3s linear infinite; }
@property --fx-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes fx-spin { to { --fx-a: 360deg; } }
.fx-kbd { display: grid; min-width: 26px; height: 26px; flex: none; place-items: center; border: 1px solid var(--line); border-radius: 7px; background: var(--canvas); color: var(--sis); font: 600 13px/1 Inter, sans-serif; transition: opacity .2s; }
.fx-search:focus-within .fx-kbd { opacity: 0; }
.fx-searchbox.is-open .fx-search { border-radius: 28px 28px 28px 28px; }
.fx-suggest { position: absolute; top: calc(100% + 10px); left: 0; right: 0; max-height: min(430px, 60vh); overflow: auto; padding: 10px; border: 1px solid var(--line); border-radius: 24px; background: rgb(255 255 255 / .97); backdrop-filter: blur(14px); box-shadow: 0 40px 80px -30px rgb(20 17 31 / .35), 0 4px 12px rgb(20 17 31 / .06); text-align: left; animation: fx-pop .28s cubic-bezier(.22, 1, .36, 1); transform-origin: 50% 0; }
@keyframes fx-pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.fx-sg-h { margin: 8px 10px 6px; color: var(--sis); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.fx-sg-h span { color: var(--sis); font-weight: 500; letter-spacing: 0; text-transform: none; }
.fx-opt { display: flex; width: 100%; align-items: center; gap: 12px; padding: 11px 12px; border: 0; border-radius: 14px; background: none; color: var(--ink); font-size: 15px; text-align: left; transition: background .15s; }
.fx-opt svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--sis); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fx-opt span { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-opt small { flex: none; padding: 3px 9px; border-radius: 999px; background: var(--krem); color: var(--ametist-ink); font-size: 12px; font-weight: 600; }
.fx-opt:hover, .fx-opt.is-active { background: var(--krem); }
.fx-opt.is-active svg, .fx-opt:hover svg { stroke: var(--ametist); }
.fx-sg-cats { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 6px 6px; }
.fx-sg-cat { width: auto; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 500; }
.fx-sg-cat b { color: var(--sis); font-size: 12px; font-weight: 600; }
.fx-sg-top { margin-bottom: 4px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.fx-sg-vids { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; padding: 2px 8px 4px; }
.fx-sg-vid { position: relative; aspect-ratio: 9 / 14; overflow: hidden; padding: 0; border: 0; border-radius: 14px; background: var(--pudra); animation: fx-pop .35s cubic-bezier(.22, 1, .36, 1) backwards; transition: transform .2s; }
.fx-sg-vid:nth-child(2) { animation-delay: .04s; } .fx-sg-vid:nth-child(3) { animation-delay: .08s; } .fx-sg-vid:nth-child(4) { animation-delay: .12s; } .fx-sg-vid:nth-child(5) { animation-delay: .16s; }
.fx-sg-vid:hover { transform: translateY(-3px); }
.fx-sg-vid img { width: 100%; height: 100%; object-fit: cover; }
.fx-sg-vid span { position: absolute; left: 6px; right: 6px; bottom: 6px; overflow: hidden; padding: 3px 7px; border-radius: 999px; background: rgb(255 255 255 / .92); color: var(--gece); font-size: 10px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.fx-sg-go { margin-top: 2px; color: var(--ametist-ink); font-weight: 600; }
.fx-sg-go svg { stroke: var(--ametist); }
.fx-sg-go kbd { padding: 3px 8px; border: 1px solid var(--line); border-radius: 7px; background: var(--canvas); color: var(--sis); font: 600 11px/1.2 Inter, sans-serif; }
@media (hover: none), (max-width: 700px) { .fx-kbd, .fx-sg-go kbd { display: none; } }
@media (max-width: 700px) {
  .fx-suggest { max-height: 56vh; border-radius: 20px; }
  .fx-sg-vids { grid-template-columns: repeat(4, 1fr); }
  .fx-sg-vid:nth-child(5) { display: none; }
}


@media (prefers-reduced-motion:reduce){
  .fx-door.is-on{animation:none}
  .fx-track{animation:none}
  .fx-plane{transform:rotateX(12deg) rotateZ(-3deg)}
  .fx-cf .sc .tile{transform:none}
}

/* search box on the portfolio page sits under the intro, left aligned */
.fx-doors--inline{width:min(640px,100%);margin:28px 0 0;text-align:left}
.fx-doors--inline .fx-door,.fx-doors--inline .fx-chips{text-align:left;justify-content:flex-start}

/* Portfolio search result line above the grid. */
.fx-pf-note{margin:0 0 18px;font-size:15px;color:var(--slate,#5b6475)}
.fx-pf-note b{color:var(--ink,#0f1422)}
.fx-pf-note button{font:inherit;background:none;border:0;padding:0;color:var(--mercan,#ff5a4e);font-weight:600;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.fx-sg-h span{font-weight:500;opacity:.7}
/* The portfolio search sits left-aligned under its intro; its links follow the same edge. */
.fx-doors--inline .fx-link{text-align:left}
