/* =========================================================
   VERO — sayfa içi uygulama pencereleri ("programın içinden")
   ========================================================= */

.appzone { margin-top: 80px; }
.appzone__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 22px; flex-wrap: wrap; }
.appzone__head h3 { margin: 10px 0 0; }
.appzone__head p { color: var(--ink-2); max-width: 54ch; margin: 0; font-size: 16px; }
.product--soon .appzone__head p { color: var(--stage-ink-2); }
.product--soon .appzone__head .eyebrow { color: var(--stage-ink-2); }

.appwin {
  --ui: #1b1c1f; --ui-2: #24252a; --ui-3: #2e2f35; --ui-bg: #121315;
  --ui-line: rgba(255, 255, 255, 0.08);
  --ui-ink: #ecebe7; --ui-ink-2: #a3a29d; --ui-ink-3: #6f6e6a;
  background: var(--ui); color: var(--ui-ink);
  border-radius: 14px; overflow: hidden; font-size: 13px; line-height: 1.45;
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.5);
  position: relative;
}
.appwin__bar { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 12px; background: #141517; border-bottom: 1px solid var(--ui-line); }
.appwin__title { font-size: 12.5px; color: var(--ui-ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.appwin__title b { color: var(--ui-ink); font-weight: 600; }
.appwin__menu { display: flex; gap: 16px; margin-left: 14px; color: var(--ui-ink-3); font-size: 12px; }
.appwin__ctrl { margin-left: auto; display: flex; gap: 16px; color: var(--ui-ink-3); flex: none; }
.appwin__ctrl svg { width: 11px; height: 11px; }
.appwin__tabs { display: flex; gap: 2px; padding: 6px 8px 0; background: #17181a; border-bottom: 1px solid var(--ui-line); overflow-x: auto; scrollbar-width: none; }
.appwin__tabs::-webkit-scrollbar { display: none; }
.appwin__tabs button {
  position: relative; display: flex; align-items: center; gap: 8px; padding: 9px 14px;
  border: 0; background: transparent; color: var(--ui-ink-3); font-size: 12.5px; font-weight: 600;
  border-radius: 8px 8px 0 0; cursor: pointer; white-space: nowrap; transition: color 0.2s, background 0.2s;
}
.appwin__tabs button:hover { color: var(--ui-ink); }
.appwin__tabs button[aria-selected="true"] { background: var(--ui); color: var(--ui-ink); }
.appwin__tabs button[aria-selected="true"]::before { content: ""; position: absolute; left: 10px; right: 10px; top: 0; height: 2px; border-radius: 2px; background: var(--app); }
.appwin__tabs button i { width: 7px; height: 7px; border-radius: 2px; background: var(--ui-ink-3); }
.appwin__tabs button[aria-selected="true"] i { background: var(--app); }
.appwin__status { display: flex; gap: 18px; align-items: center; height: 28px; padding: 0 12px; background: #141517; border-top: 1px solid var(--ui-line); font-family: var(--f-mono); font-size: 11px; color: var(--ui-ink-3); white-space: nowrap; overflow: hidden; }
.appwin__status .ok::before { content: "●"; color: #3ccf7a; margin-right: 6px; }
.appwin__status .r { margin-left: auto; }
.appwin__cap { font-size: 12.5px; color: var(--ink-3); margin: 12px 2px 0; }
.product--soon .appwin__cap { color: var(--stage-ink-2); }

.pane { display: none; grid-template-columns: minmax(0, 1fr) 290px; min-height: 540px; }
.pane.is-on { display: grid; animation: paneIn 0.35s var(--ease); }
@keyframes paneIn { from { opacity: 0; } to { opacity: 1; } }
.pane__main { position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--ui-bg); background-image: radial-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px); background-size: 18px 18px; }
.pane__tool { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-bottom: 1px solid var(--ui-line); background: var(--ui); flex-wrap: wrap; min-height: 46px; }
.pane__canvas { flex: 1; position: relative; display: grid; place-items: center; padding: 16px; min-height: 400px; overflow: hidden; }
.pane__canvas > svg { width: 100%; height: 100%; max-height: 470px; }
.pane__side { border-left: 1px solid var(--ui-line); background: var(--ui); display: flex; flex-direction: column; min-width: 0; overflow: auto; max-height: 640px; }
.insp { padding: 12px 14px; border-bottom: 1px solid var(--ui-line); }
.insp:last-child { border-bottom: 0; }
.insp h4 { margin: 0 0 10px; font-family: var(--f-mono); font-weight: 500; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ui-ink-3); }
.insp p { margin: 0; color: var(--ui-ink-2); font-size: 12.5px; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 7px 10px; margin: 0; font-size: 12.5px; }
.kv dt { color: var(--ui-ink-2); }
.kv dd { margin: 0; text-align: right; font-family: var(--f-mono); font-variant-numeric: tabular-nums; color: var(--ui-ink); }
.kv dd.hl { color: var(--app); }
.big { font-family: var(--f-mono); font-size: 26px; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--ui-ink); }
.big small { font-size: 12px; color: var(--ui-ink-3); }

.ubtn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 7px; border: 1px solid var(--ui-line); background: var(--ui-2); color: var(--ui-ink); font-size: 12.5px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background 0.15s, filter 0.15s; }
.ubtn:hover { background: var(--ui-3); }
.ubtn--app { background: var(--app); border-color: transparent; color: #fff; }
.ubtn--app:hover { background: var(--app); filter: brightness(1.12); }
.ubtn[aria-pressed="true"] { background: var(--ui-ink); color: #111; }
.ubtn--block { width: 100%; height: 36px; }
.ubtn svg { width: 13px; height: 13px; }
.ubtn:disabled { opacity: 0.5; cursor: default; }
.usep { width: 1px; height: 20px; background: var(--ui-line); margin: 0 4px; }
.ugroup { display: inline-flex; gap: 2px; padding: 2px; border-radius: 8px; background: var(--ui-2); }
.ugroup .ubtn { height: 26px; border: 0; background: transparent; padding: 0 10px; color: var(--ui-ink-2); }
.ugroup .ubtn[aria-pressed="true"] { background: var(--ui-3); color: var(--ui-ink); }
.utool-r { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.ulabel { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ui-ink-3); }

.urange + .urange { margin-top: 12px; }
.urange label { display: flex; justify-content: space-between; color: var(--ui-ink-2); font-size: 12px; margin-bottom: 2px; }
.urange output { font-family: var(--f-mono); color: var(--ui-ink); }
.appwin input[type="range"] { height: 22px; }
.appwin input[type="range"]::-webkit-slider-runnable-track { background: linear-gradient(90deg, var(--app) var(--p, 50%), #35363c var(--p, 50%)); height: 3px; }
.appwin input[type="range"]::-moz-range-track { background: #35363c; height: 3px; }
.appwin input[type="range"]::-moz-range-progress { background: var(--app); height: 3px; }
.appwin input[type="range"]::-webkit-slider-thumb { width: 14px; height: 14px; margin-top: -5.5px; background: #fff; border: 0; box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.35); }
.appwin input[type="range"]::-moz-range-thumb { width: 12px; height: 12px; background: #fff; border: 0; }

.prog { height: 4px; border-radius: 4px; background: #2e2f35; overflow: hidden; }
.prog i { display: block; height: 100%; width: 0; background: var(--app); }

/* yüzen etiket (canvas üstü) */
.hud { position: absolute; left: 12px; top: 12px; display: flex; gap: 6px; flex-wrap: wrap; pointer-events: none; z-index: 2; }
.hud span { padding: 4px 8px; border-radius: 6px; background: rgba(0, 0, 0, 0.55); font-family: var(--f-mono); font-size: 10.5px; color: var(--ui-ink-2); letter-spacing: 0.04em; }
.hud span b { color: var(--ui-ink); font-weight: 500; }
.hud--r { left: auto; right: 12px; }
.hud--b { top: auto; bottom: 12px; }

/* ---------- DOOR: kütüphane ---------- */
.lib { display: flex; gap: 12px; overflow-x: auto; padding: 14px; border-bottom: 1px solid var(--ui-line); cursor: grab; scrollbar-width: thin; scrollbar-color: #3a3b40 transparent; user-select: none; }
.lib.is-drag { cursor: grabbing; }
.lib__card { flex: 0 0 118px; background: var(--ui-2); border: 1px solid var(--ui-line); border-radius: 10px; padding: 8px 8px 10px; cursor: pointer; transition: border-color 0.2s, transform 0.25s var(--ease), background 0.2s; text-align: left; color: inherit; }
.lib__card:hover { transform: translateY(-3px); background: var(--ui-3); }
.lib__card[aria-selected="true"] { border-color: var(--app); box-shadow: 0 0 0 1px var(--app); }
.lib__card svg { width: 100%; height: 150px; margin-bottom: 6px; }
.lib__card b { display: block; font-size: 12px; font-weight: 600; }
.lib__card span { font-family: var(--f-mono); font-size: 10.5px; color: var(--ui-ink-3); }
.lib-preview { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; width: 100%; }
.lib-preview svg { height: 330px; width: auto; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.5)); }
.lib-preview h5 { margin: 0 0 4px; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.lib-preview .ulabel { display: block; margin-bottom: 14px; }
.chips-ui { display: flex; flex-wrap: wrap; gap: 6px; }
.chips-ui span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 6px; background: var(--ui-2); font-size: 11.5px; color: var(--ui-ink-2); }
.chips-ui i { width: 8px; height: 8px; border-radius: 2px; }
.mats { display: flex; gap: 8px; }
.mats button { width: 28px; height: 28px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15); }
.mats button[aria-pressed="true"] { border-color: var(--app); }

/* ---------- DOOR: 3D ---------- */
.d3 { width: 100%; height: 100%; min-height: 400px; display: grid; place-items: center; perspective: 1300px; cursor: grab; touch-action: none; user-select: none; }
.d3.is-drag { cursor: grabbing; }
.d3__obj { position: relative; transform-style: preserve-3d; transition: transform 0.08s linear; }
.d3__obj.ease { transition: transform 0.9s var(--ease); }
.d3__f { position: absolute; left: 0; top: 0; backface-visibility: hidden; }
.d3__f svg { width: 100%; height: 100%; display: block; }
.d3__shade { position: absolute; inset: 0; pointer-events: none; }
.d3__floor { position: absolute; left: 50%; bottom: 8%; width: 60%; height: 28px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(0, 0, 0, 0.55), transparent); filter: blur(6px); pointer-events: none; }

/* ---------- DOOR: takım listesi ---------- */
.tools { display: grid; gap: 4px; }
.tool { display: grid; grid-template-columns: 12px 1fr auto; gap: 10px; align-items: center; padding: 7px 8px; border-radius: 7px; cursor: pointer; border: 1px solid transparent; background: transparent; color: inherit; text-align: left; font-size: 12.5px; transition: background 0.15s, opacity 0.2s; }
.tool:hover { background: var(--ui-2); }
.tool.is-off { opacity: 0.35; }
.tool.is-run { border-color: var(--ui-line); background: var(--ui-2); }
.tool i { width: 12px; height: 12px; border-radius: 3px; }
.tool b { font-weight: 600; display: block; }
.tool small { display: block; color: var(--ui-ink-3); font-size: 11px; }
.tool em { font-style: normal; font-family: var(--f-mono); font-size: 11.5px; color: var(--ui-ink-2); text-align: right; }

/* ---------- DOOR: ölçü girişi tablosu ---------- */
.grid-ui { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.grid-ui th { position: sticky; top: 0; z-index: 1; background: var(--ui-2); color: var(--ui-ink-3); font-family: var(--f-mono); font-weight: 500; font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; text-align: left; padding: 8px 10px; }
.grid-ui td { padding: 6px 10px; border-bottom: 1px solid var(--ui-line); font-variant-numeric: tabular-nums; }
.grid-ui td.n { font-family: var(--f-mono); text-align: right; }
.grid-ui th.n { text-align: right; }
.grid-ui tr.row-new td { animation: rowIn 0.9s; }
@keyframes rowIn { from { background: color-mix(in srgb, var(--app) 30%, transparent); } to { background: transparent; } }
.grid-ui tr.entry td { background: #17181b; border-bottom: 1px solid var(--app); padding: 6px 6px; }
.cell { width: 100%; height: 30px; padding: 0 8px; border-radius: 6px; border: 1px solid var(--ui-line); background: #0e0f11; color: var(--ui-ink); font-family: var(--f-mono); font-size: 12.5px; }
.cell:focus { outline: none; border-color: var(--app); box-shadow: 0 0 0 2px color-mix(in srgb, var(--app) 30%, transparent); }
select.cell { padding: 0 4px; font-family: var(--f-sans); }
.gridwrap { flex: 1; overflow: auto; max-height: 430px; width: 100%; align-self: stretch; }
.st-ok { color: #3ccf7a; }
.st-warn { color: #f2b544; }
.stopwatch { font-family: var(--f-mono); font-size: 34px; line-height: 1; font-variant-numeric: tabular-nums; }
.typing-caret { box-shadow: inset 0 -2px 0 var(--app) !important; }

/* ---------- MODULEX: etiket ---------- */
.plabel { width: 270px; background: #fff; color: #111; border-radius: 6px; padding: 10px 12px; font-family: var(--f-mono); font-size: 10.5px; line-height: 1.5; box-shadow: 0 16px 30px -10px rgba(0, 0, 0, 0.6); transform-origin: top center; }
.plabel b { font-family: var(--f-sans); font-size: 13px; display: block; margin-bottom: 2px; }
.plabel .row { display: flex; justify-content: space-between; border-top: 1px dashed #bbb; padding-top: 4px; margin-top: 4px; }
.plabel svg { width: 100%; height: 34px; margin-top: 6px; }
.plabel.print { animation: printOut 1.1s var(--ease); }
@keyframes printOut { from { transform: translateY(-70%) scaleY(0.2); opacity: 0; } to { transform: none; opacity: 1; } }
.printer { width: 300px; height: 16px; border-radius: 6px 6px 2px 2px; background: #2c2d32; box-shadow: inset 0 -3px 0 #0e0f11; margin: 0 auto -4px; position: relative; z-index: 1; }

/* ---------- PARAMETRIC ---------- */
.pcanvas { width: 100%; height: 100%; min-height: 400px; display: block; }
.steps-ui { display: flex; gap: 4px; flex-wrap: wrap; }
.stp { padding: 5px 9px; border-radius: 6px; background: var(--ui-2); color: var(--ui-ink-3); font-size: 11.5px; font-weight: 600; transition: background 0.25s, color 0.25s; }
.stp.is-done { color: var(--ui-ink); }
.stp.is-on { background: var(--app); color: #fff; }
.drop { display: block; border: 1px dashed rgba(255, 255, 255, 0.2); border-radius: 8px; padding: 10px; text-align: center; color: var(--ui-ink-2); font-size: 12px; cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.drop:hover, .drop.is-over { border-color: var(--app); background: color-mix(in srgb, var(--app) 10%, transparent); }
.drop input { display: none; }
.drop b { color: var(--ui-ink); display: block; font-size: 12.5px; }

/* ---------- galeri ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.gallery:empty { display: none; }
.media { position: relative; margin: 0; border-radius: 12px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; cursor: zoom-in; }
.media video, .media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s var(--ease); }
.media:hover video, .media:hover img { transform: scale(1.03); }
.media figcaption { position: absolute; left: 10px; bottom: 10px; right: 10px; display: flex; align-items: center; gap: 8px; color: #fff; font-size: 13px; font-weight: 600; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7); }
.media figcaption span { padding: 2px 7px; border-radius: 5px; background: rgba(0, 0, 0, 0.55); font-family: var(--f-mono); font-size: 10px; font-weight: 500; letter-spacing: 0.06em; }
.lightbox { position: fixed; inset: 0; z-index: 95; display: none; place-items: center; padding: 24px; background: rgba(8, 8, 9, 0.92); }
.lightbox.is-on { display: grid; }
.lightbox video, .lightbox img { max-width: min(1280px, 100%); max-height: 84vh; border-radius: 10px; }
.lightbox button { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; font-size: 20px; cursor: pointer; }
.lightbox p { color: #ddd; text-align: center; margin: 12px 0 0; font-size: 14px; }

/* ---------- "Programın içinden" vitrini (gerçek kayıtlar) ---------- */
.showcase { margin-top: 88px; }
.sc__head { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: end; margin-bottom: 24px; }
.sc__head h3 { margin: 12px 0 0; }
.sc__head p { color: var(--ink-2); margin: 0; font-size: 16px; justify-self: end; max-width: 52ch; }
.sc__eyebrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; color: var(--ink-2); }
.rec-dot { width: 9px; height: 9px; border-radius: 50%; background: #e5322d; box-shadow: 0 0 0 4px rgba(229, 50, 45, 0.18); animation: pulse 1.6s infinite; }
.product--soon .sc__head p, .product--soon .sc__eyebrow { color: var(--stage-ink-2); }

.sc__grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.sc__stage { position: relative; margin: 0; border-radius: var(--r-lg); overflow: hidden; background: #0d0d0e; aspect-ratio: 16 / 9; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.55); }
.sc__stage video { width: 100%; height: 100%; object-fit: cover; display: block; }
.sc__cap { position: absolute; left: 0; bottom: 0; right: 0; padding: 44px 84px 16px 14px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.76)); pointer-events: none; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: #fff; font-size: 14px; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6); }
.sc__cap b { font-weight: 700; }
.sc__meta { padding: 3px 8px; border-radius: 6px; background: rgba(0, 0, 0, 0.55); font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.03em; text-shadow: none; }
.sc__meta:empty { display: none; }
.sc__zoom { position: absolute; right: 12px; bottom: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 18px; cursor: pointer; transition: background 0.2s; }
.sc__zoom:hover { background: rgba(0, 0, 0, 0.8); }
.sc__prog { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, 0.15); }
.sc__prog i { display: block; height: 100%; width: 0; background: var(--app, var(--brand)); transition: width 0.25s linear; }
.sc__inset { position: absolute; right: 14px; top: 14px; width: 22%; min-width: 120px; border-radius: 10px; overflow: hidden; background: #000; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); border: 2px solid rgba(255, 255, 255, 0.85); }
.sc__inset img { display: block; width: 100%; }
.sc__inset span { position: absolute; left: 6px; top: 6px; padding: 2px 6px; border-radius: 5px; background: rgba(0, 0, 0, 0.6); color: #fff; font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.04em; }
.sc__inset[hidden] { display: none; }

.sc__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; align-content: stretch; }
.sc__list button { position: relative; width: 100%; height: 100%; display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: start; text-align: left; padding: 14px 16px 16px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); cursor: pointer; overflow: hidden; transition: border-color 0.2s, box-shadow 0.2s, background 0.2s; color: inherit; }
.sc__list button:hover { border-color: var(--line-strong); }
.sc__list button[aria-pressed="true"] { border-color: var(--app, var(--ink)); box-shadow: 0 0 0 1px var(--app, var(--ink)); }
.sc__num { font-family: var(--f-mono); font-size: 12px; color: var(--ink-3); padding-top: 2px; }
.sc__list button[aria-pressed="true"] .sc__num { color: var(--app, var(--brand)); }
.sc__txt b { display: block; font-size: 15.5px; letter-spacing: -0.01em; }
.sc__txt span { display: block; font-size: 13.5px; color: var(--ink-2); margin-top: 2px; line-height: 1.45; }
.sc__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: transparent; }
.sc__bar i { display: block; height: 100%; width: 0; background: var(--app, var(--brand)); }
.product--soon .sc__list button { background: var(--stage-2); border-color: var(--stage-line); }
.product--soon .sc__txt span { color: var(--stage-ink-2); }

.sc__strip { display: flex; gap: 10px; margin-top: 14px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.sc__still { position: relative; flex: 0 0 220px; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; border: 0; padding: 0; background: #111; cursor: zoom-in; scroll-snap-align: start; }
.sc__still img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s var(--ease); }
.sc__still:hover img { transform: scale(1.05); }
.sc__still span { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 8px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.7)); color: #fff; font-size: 12px; font-weight: 600; text-align: left; }
.lightbox__in { display: grid; justify-items: center; max-width: 100%; }

/* ---------- duyarlı ---------- */
@media (max-width: 1100px) {
  .appwin__menu { display: none; }
  .sc__grid { grid-template-columns: 1fr; }
  .sc__list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .sc__head { grid-template-columns: 1fr; gap: 12px; }
  .sc__head p { justify-self: start; }
  .showcase { margin-top: 64px; }
}
@media (max-width: 640px) {
  .sc__list { grid-template-columns: 1fr; }
  .sc__list button { padding: 12px 14px 14px; }
  .sc__txt span { display: none; }
  .sc__cap { font-size: 12.5px; right: 60px; }
  .sc__meta { display: none; }
  .sc__inset { min-width: 90px; }
  .sc__still { flex-basis: 170px; }
}
@media (max-width: 900px) {
  .appzone { margin-top: 56px; }
  .pane { grid-template-columns: 1fr; }
  .pane__side { border-left: 0; border-top: 1px solid var(--ui-line); max-height: none; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .lib-preview { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .lib-preview .chips-ui { justify-content: center; }
  .lib-preview svg { height: 260px; }
}
@media (max-width: 640px) {
  .pane__canvas { min-height: 300px; padding: 8px; }
  .d3, .pcanvas { min-height: 320px; }
  .gallery { grid-template-columns: 1fr; }
  .appwin__title { font-size: 11.5px; }
  .appwin__status span:nth-child(n + 3) { display: none; }
  .grid-ui th, .grid-ui td { padding: 6px; }
  .hide-sm { display: none !important; }
  .stopwatch { font-size: 26px; }
}

/* açılış kolajı: Parametric karosunda gerçek kayıt */
.ctile--pm { background: #111 url("../media/parametric/vero-panel-kalin.jpg") center / cover no-repeat; }
.ctile--pm::before { background: linear-gradient(0deg, rgba(0,0,0,.55), transparent 55%); opacity: 1; }
.ctile--pm svg.art { display: none; }

/* ---------- tanıtım filmi ---------- */
.sc__stage--film video { object-fit: contain; background: #0d0d0e; }
.sc__play { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; border: 0; cursor: pointer; background: linear-gradient(0deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.15)); color: #fff; transition: background 0.25s; }
.sc__play:hover { background: linear-gradient(0deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.05)); }
.sc__play[hidden] { display: none; }
.sc__play span { width: 92px; height: 92px; border-radius: 50%; background: var(--app, var(--brand)); display: grid; place-items: center; box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.7); transition: transform 0.25s var(--ease); }
.sc__play:hover span { transform: scale(1.08); }
.sc__play span::after { content: ""; margin-left: 7px; border-left: 28px solid #fff; border-top: 17px solid transparent; border-bottom: 17px solid transparent; }
.sc__play b { font-size: 17px; font-weight: 700; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.7); }
.sc__list--film button { grid-template-columns: 44px 1fr; padding: 10px 14px 12px; }
.sc__list--film .sc__txt b { font-size: 15px; }
.sc__list--film .sc__txt span { font-size: 13px; }
@media (max-width: 640px) { .sc__play span { width: 68px; height: 68px; } .sc__play span::after { border-left-width: 20px; border-top-width: 12px; border-bottom-width: 12px; } }
.sc__stage.sc__stage--film { aspect-ratio: auto; align-self: start; min-width: 0; }
.sc__stage--film video { width: 100%; height: auto; aspect-ratio: 16 / 9; display: block; }

/* adım adım anlatım: gerçek ekran görüntüleriyle */
.sc__steps { list-style: none; margin: 0 0 20px; padding: 0 0 6px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 14px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; }
.sc__steps li { scroll-snap-align: start; min-width: 0; }
.sc__step { position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #111; cursor: zoom-in; aspect-ratio: 16 / 9; }
.sc__step img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.sc__step:hover img { transform: scale(1.04); }
.sc__stepn { position: absolute; left: 8px; top: 8px; padding: 3px 8px; border-radius: 99px; background: rgba(0, 0, 0, 0.72); color: #fff; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em; }
.sc__steps h4 { margin: 10px 0 2px; font-size: 15px; font-weight: 700; }
.sc__steps p { margin: 0; color: var(--ink-2); font-size: 13.5px; line-height: 1.45; }
.product--soon .sc__steps p { color: var(--stage-ink-2); }
.sc__striph { margin: 22px 0 0; font-weight: 700; font-size: 15px; }
.sc__striph + .sc__strip { margin-top: 10px; }

/* bölüm listesi uzun olduğunda video sahnesi genişleyip taşmasın */
.sc__grid { align-items: start; }
.sc__stage { width: 100%; min-width: 0; align-self: start; }
@media (min-width: 901px) { .sc__list { max-height: clamp(360px, 33vw, 470px); overflow-y: auto; scrollbar-width: thin; padding-right: 4px; } }

/* Parametric kartı: canlı programdan dilimli yüz kaydı */
.ctile__vid { position: absolute; left: -2%; top: 0; width: 132%; height: 100%; object-fit: cover; object-position: 50% 38%; z-index: -2; }
.ctile--pm { background: #111; }

/* Modulex kartı: farklı çalışmalardan kayan görüntüler */
.ctile--slide { background: #2b2b2b; }
.ctile--slide::before { background: linear-gradient(0deg, rgba(0,0,0,.72), transparent 46%); opacity: 1; z-index: 0; }
.ctile--slide .ctile__lbl { z-index: 1; }
.ctile__slides { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.ctile__slides img { position: absolute; left: -13%; top: -43%; width: 143%; height: auto; max-width: none; transform: translateX(110%); transition: transform .9s cubic-bezier(.65,0,.35,1); }
.ctile__slides img.is-on { transform: translateX(0); }
.ctile__slides img.is-out { transform: translateX(-110%); }
@media (prefers-reduced-motion: reduce) { .ctile__slides img { transition: none; } }
.ctile--cover .ctile__slides img { left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; }
.ctile--door.ctile--slide { background: #1c1f24; }
.ctile--zoom .ctile__slides img { left: -14%; top: -22%; width: 136%; height: 144%; object-fit: cover; }

/* Hero arka planı: gerçek görüntülerden soluk, yavaş geçişli tam ekran slayt */
.hero__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero__bg > * { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; opacity: 0; filter: saturate(.75) contrast(1.05); transform-origin: 50% 100%; transform: scale(1.12); transition: opacity 2.2s ease, transform 9s linear; }
.hero__bg > .is-on { opacity: .3; transform: scale(1.2); }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 55% at 50% 30%, rgba(11,11,12,.72), rgba(11,11,12,.35) 60%, rgba(11,11,12,.6)), linear-gradient(180deg, rgba(11,11,12,.55), rgba(11,11,12,0) 30%, rgba(11,11,12,0) 70%, var(--stage)); }
.hero > .wrap { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .hero__bg > * { transition: opacity .6s ease; transform: none !important; } }

/* Parametric kartı: kırpılmadan sığan sabit görsel (3B modelden dilimlere) */
.ctile--pm { background: #1a1a1b; }
.ctile__img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 58% 50%; z-index: -2; }
.hero__bg > video.is-on { opacity: .42; }

/* Galeri: tıklayınca büyüyen görüntü ve video karoları */
.gal { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gal__it { position: relative; aspect-ratio: 16 / 10; border: 0; padding: 0; border-radius: 14px; overflow: hidden; background: #111; cursor: zoom-in; }
.gal__it--w { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gal__it img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.gal__it:hover img, .gal__it:focus-visible img { transform: scale(1.05); }
.gal__it span { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 12px; background: linear-gradient(transparent, rgba(0, 0, 0, .78)); color: #fff; font-size: 14px; font-weight: 600; text-align: left; }
.gal__play { position: absolute; right: 12px; top: 12px; width: 34px; height: 34px; border-radius: 50%; background: rgba(0, 0, 0, .55); backdrop-filter: blur(6px); }
.gal__play::before { content: ""; position: absolute; left: 13px; top: 10px; border: 7px solid transparent; border-left: 11px solid #fff; border-right: 0; }
@media (max-width: 900px) { .gal { grid-template-columns: repeat(2, 1fr); } .gal__it--w { grid-row: auto; aspect-ratio: 16 / 9; } }
@media (max-width: 520px) { .gal { gap: 8px; } .gal__it span { font-size: 12px; padding: 20px 10px 8px; } }

/* Örnek işler galerisi: dikey karolar, sonuncusu iki sütun */
.gal--p .gal__it { aspect-ratio: 4 / 5; cursor: zoom-in; }
.gal--p .gal__it--h { grid-column: span 2; aspect-ratio: auto; }
@media (max-width: 900px) { .gal--p .gal__it--h { aspect-ratio: 16 / 10; } }
