/* Inter, served from this site (no third-party font requests) */
@font-face { font-family: "Inter"; src: url("/fonts/Inter-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/Inter-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/Inter-SemiBold.woff2") format("woff2"); font-weight: 600 900; font-display: swap; }

/* Әl-Bai Tasvir site — Apple-style gallery layout in the brand's sunset colours. */
:root {
  --white: #ffffff;
  --mist: #f5f5f7;
  --hair: #d6d6d6;
  --ink: #1d1d1f;
  --slate: #6e6e73;
  --steel: #86868b;
  --black: #000000;
  --night: #0b0b0d;
  --night-2: #161618;
  --sun: #e4cc54;
  --orange: #e48424;
  --ember: #c2410c;
  --red: #9c240c;
  --sky: #6ccce4;
  --sunset: linear-gradient(100deg, #9c240c 0%, #e48424 55%, #e4cc54 100%);
  --display: "SF Pro Display", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --text: "SF Pro Text", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --r-card: 28px;
  --gap: 20px;
  --section: 110px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* "hidden" made body a scroll box and the sticky menus scrolled away */
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.wrap { width: min(1080px, calc(100% - 32px)); margin: 0 auto; }
.wide { width: min(1320px, calc(100% - 32px)); margin: 0 auto; }

/* ---------------------------------------------------------------- global nav */
.gnav {
  position: sticky; top: 0; z-index: 50;
  height: 44px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.gnav.dark { background: rgba(10, 10, 12, 0.78); border-bottom-color: rgba(255, 255, 255, 0.08); color: #f5f5f7; }
.gnav .wrap { height: 100%; display: flex; align-items: center; gap: 28px; font-size: 12px; letter-spacing: -0.01em; }
.gnav .brand { font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: -0.01em; margin-right: auto; }
.gnav a { opacity: 0.8; transition: opacity .2s; }
.gnav a:hover, .gnav a[aria-current] { opacity: 1; }

/* ---------------------------------------------------------------- product local nav */
.lnav {
  position: sticky; top: 44px; z-index: 40;
  height: 52px;
  background: rgba(251, 251, 253, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.lnav .wrap { height: 100%; display: flex; align-items: center; gap: 22px; }
.lnav .title { font-family: var(--display); font-weight: 600; font-size: 21px; letter-spacing: 0.011em; margin-right: auto; }
.lnav a.link { font-size: 12px; color: var(--ink); opacity: .85; white-space: nowrap; }
.lnav .title, .lnav .pill, .gnav a { white-space: nowrap; }
.lnav a.link:hover { opacity: 1; color: var(--ember); }

.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 28px; padding: 0 14px;
  border-radius: 9999px;
  font-size: 12px; font-weight: 400; letter-spacing: -0.01em; white-space: nowrap;
  background: var(--ember); color: #fff;
  transition: filter .2s, transform .2s;
}
.pill:hover { filter: brightness(1.08); }
.pill.big { height: 44px; padding: 0 22px; font-size: 17px; }
.pill.ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1px var(--steel); }
.pill.light { background: #fff; color: var(--ink); }
.textlink { color: var(--ember); font-size: 17px; }
.textlink::after { content: " ›"; }
.textlink:hover { text-decoration: underline; }
.dark .textlink { color: var(--orange); }

/* ---------------------------------------------------------------- type */
.kicker { font-family: var(--display); font-weight: 600; font-size: 21px; letter-spacing: 0.011em; }
.display { font-family: var(--display); font-weight: 600; font-size: clamp(44px, 7.4vw, 80px); line-height: 1.05; letter-spacing: -0.015em; }
.h2 { font-family: var(--display); font-weight: 600; font-size: clamp(32px, 4.6vw, 56px); line-height: 1.07; letter-spacing: -0.005em; }
.h3 { font-family: var(--display); font-weight: 600; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.125; letter-spacing: 0.004em; }
.lead { font-size: clamp(19px, 2vw, 24px); line-height: 1.33; letter-spacing: 0.009em; font-weight: 500; }
.muted { color: var(--slate); }
.dark .muted { color: #a1a1a6; }
.sunset-text { background: var(--sunset); -webkit-background-clip: text; background-clip: text; color: transparent; }
.center { text-align: center; }

/* ---------------------------------------------------------------- sections */
.section { padding: var(--section) 0; }
.band { background: var(--mist); }
.dark { background: var(--black); color: #f5f5f7; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 48px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- hero */
.hero { padding: 72px 0 0; text-align: center; overflow: hidden; }
.hero .kicker { color: #a1a1a6; margin-bottom: 14px; }
.hero .display { margin: 0 auto; max-width: 15ch; }
.hero .lead { margin: 22px auto 0; max-width: 34ch; color: #d2d2d7; font-weight: 400; }
.hero .ctas { display: flex; gap: 16px; justify-content: center; align-items: center; margin-top: 30px; flex-wrap: wrap; }
.hero .lens {
  width: min(760px, 92%);
  margin: 36px auto 0;
  filter: drop-shadow(0 40px 60px rgba(228, 132, 36, 0.18));
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-12px) rotate(0.5deg); } }
@media (prefers-reduced-motion: reduce) { .hero .lens { animation: none; } html { scroll-behavior: auto; } }

/* ---------------------------------------------------------------- compare slider */
.compare {
  position: relative; overflow: hidden;
  aspect-ratio: 2974 / 1115;
  background: #000;
  user-select: none; -webkit-user-select: none;
  touch-action: pan-y;
  cursor: ew-resize;
  --pos: 50%;
}
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.compare .after { clip-path: inset(0 0 0 var(--pos)); }
.compare .handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.35);
}
.compare .handle::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 38px; height: 38px; margin: -19px 0 0 -19px;
  border-radius: 50%; background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
.compare .handle::before {
  content: "‹ ›"; position: absolute; top: 50%; left: 50%; z-index: 1;
  transform: translate(-50%, -52%);
  font: 600 15px/1 var(--text); color: var(--ink); letter-spacing: 2px; white-space: nowrap;
}
.compare .tag {
  position: absolute; top: 12px; z-index: 2;
  font: 600 11px/1 var(--text); letter-spacing: 0.06em; text-transform: uppercase;
  color: #fff; background: rgba(0, 0, 0, 0.45); padding: 6px 9px; border-radius: 6px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.compare .tag.b { left: 12px; }
.compare .tag.a { right: 12px; }
.compare:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

/* ---------------------------------------------------------------- Resolve imitation */
.mac {
  border-radius: 14px; overflow: hidden;
  background: #1c1c1e;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 50px 100px -20px rgba(0, 0, 0, 0.7);
  font-family: var(--text); font-size: 11px; letter-spacing: 0; color: #c7c7cc;
}
.mac .titlebar { height: 34px; display: flex; align-items: center; padding: 0 14px; gap: 8px; background: #2a2a2d; border-bottom: 1px solid #000; position: relative; }
.mac .dot { width: 12px; height: 12px; border-radius: 50%; }
.mac .dot.r { background: #ff5f57; } .mac .dot.y { background: #febc2e; } .mac .dot.g { background: #28c840; }
.mac .wtitle { position: absolute; left: 0; right: 0; text-align: center; font-size: 12px; color: #9a9aa0; pointer-events: none; }
.rv { display: grid; grid-template-columns: 210px 1fr 270px; min-height: 0; }
.rv .panel { background: #1f1f22; border-right: 1px solid #0c0c0d; padding: 10px 8px; }
.rv .panel.right { border-right: 0; border-left: 1px solid #0c0c0d; }
.rv .ph { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: #8e8e93; padding: 4px 6px 8px; display: flex; justify-content: space-between; }
.rv .tree div { padding: 4px 6px; border-radius: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv .tree .i1 { padding-left: 16px; } .rv .tree .i2 { padding-left: 26px; } .rv .tree .i3 { padding-left: 36px; }
.rv .tree .sel { background: #3a3a3e; color: #fff; }
.rv .tree .fx { background: linear-gradient(90deg, #7a2a0c, #b4561a); color: #fff; font-weight: 600; }
.rv .center { display: flex; flex-direction: column; min-width: 0; background: #151517; }
.rv .viewer-bar { height: 28px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; color: #8e8e93; border-bottom: 1px solid #0c0c0d; }
.rv .viewer { padding: 14px; background: #101012; }
.rv .viewer .compare { border-radius: 2px; }
.rv .transport { display: flex; justify-content: center; gap: 18px; padding: 8px 0 10px; color: #8e8e93; font-size: 13px; background: #101012; }
.rv .timeline { border-top: 1px solid #0c0c0d; background: #1a1a1c; padding: 8px 10px 12px; }
.rv .tc { display: flex; justify-content: space-between; color: #8e8e93; padding: 0 2px 6px 34px; font-variant-numeric: tabular-nums; }
.rv .track { display: grid; grid-template-columns: 28px 1fr; align-items: center; gap: 6px; margin-top: 4px; }
.rv .track .lbl { color: #8e8e93; font-size: 10px; text-align: center; }
.rv .adj {
  height: 26px; border-radius: 4px; display: flex; align-items: center; gap: 8px; padding: 0 10px;
  background: linear-gradient(90deg, #9c240c, #e48424 60%, #e4cc54); color: #1a0a00; font-weight: 600;
}
.rv .adj .fxb { background: rgba(0, 0, 0, 0.25); color: #fff; border-radius: 3px; padding: 1px 5px; font-size: 9px; letter-spacing: .05em; }
.rv .clips { display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px; }
.rv .clip { position: relative; height: 46px; border-radius: 3px; overflow: hidden; background: #2c5d8a; outline: 2px solid transparent; outline-offset: -2px; }
.rv .clip img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.rv .clip span { position: absolute; left: 5px; bottom: 3px; color: #fff; font-size: 9px; text-shadow: 0 1px 2px #000; }
.rv .clip[aria-pressed="true"] { outline-color: #ff3b30; }
.rv .clip[aria-pressed="true"] img { opacity: 1; }
.rv .audio { height: 18px; border-radius: 3px; background: repeating-linear-gradient(90deg, #1f5a3a 0 3px, #2a7a4f 3px 5px); opacity: .7; }
.rv .pages { display: flex; justify-content: center; gap: 26px; padding: 9px 0; background: #232326; border-top: 1px solid #0c0c0d; color: #8e8e93; font-size: 11px; }
.rv .pages .on { color: #fff; }

/* inspector */
.insp .fxhead { display: flex; align-items: center; justify-content: space-between; padding: 8px 6px; border-radius: 6px; background: #2a2a2d; color: #fff; font-weight: 600; margin-bottom: 8px; }
.switch { position: relative; width: 30px; height: 18px; border-radius: 9px; background: #48484a; transition: background .2s; flex: none; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch[aria-checked="true"] { background: var(--orange); }
.switch[aria-checked="true"]::after { transform: translateX(12px); }
.insp .row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; padding: 6px; border-bottom: 1px solid #29292c; }
.insp .row label { color: #c7c7cc; }
.insp select {
  width: 100%; margin: 2px 0 8px; height: 26px; border-radius: 5px; border: 1px solid #3a3a3e; background: #2a2a2d; color: #fff;
  font: 11px var(--text); padding: 0 6px;
}
.insp .grp { padding: 7px 6px 3px; color: #8e8e93; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.insp .slider { display: grid; grid-template-columns: 1fr 70px 32px; align-items: center; gap: 6px; padding: 4px 6px; }
.insp .slider .bar { height: 3px; border-radius: 2px; background: #3a3a3e; position: relative; }
.insp .slider .bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 2px; background: var(--orange); }
.insp .slider b { font-weight: 400; color: #fff; text-align: right; font-variant-numeric: tabular-nums; }
.insp .check { display: flex; align-items: center; gap: 8px; padding: 6px; }
.insp .check input { accent-color: var(--orange); }

/* live preview stage (WebGL) */
.stage { position: relative; aspect-ratio: 2974 / 1115; background: #000; cursor: ew-resize; touch-action: pan-y;
  user-select: none; -webkit-user-select: none; border-radius: 2px; overflow: hidden; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.stage .handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: rgba(255,255,255,.95); box-shadow: 0 0 12px rgba(0,0,0,.35); pointer-events: none; }
.stage .handle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; background: rgba(255,255,255,.92); box-shadow: 0 2px 10px rgba(0,0,0,.3); }
.stage .handle::before { content: "‹ ›"; position: absolute; top: 50%; left: 50%; z-index: 1; transform: translate(-50%, -52%); font: 600 15px/1 var(--text); color: var(--ink); letter-spacing: 2px; white-space: nowrap; }
.stage .cross { position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 2px solid rgba(255,255,255,.9); box-shadow: 0 0 0 1px rgba(0,0,0,.4); cursor: move; }
.stage .cross::before, .stage .cross::after { content: ""; position: absolute; background: #fff; left: 50%; top: 50%; }
.stage .cross::before { width: 12px; height: 2px; margin: -1px 0 0 -6px; }
.stage .cross::after { width: 2px; height: 12px; margin: -6px 0 0 -1px; }
.stage .tag, .compare .tag { position: absolute; top: 12px; z-index: 2; font: 600 11px/1 var(--text); letter-spacing: .06em; text-transform: uppercase; color: #fff; background: rgba(0,0,0,.45); padding: 6px 9px; border-radius: 6px; }
.stage .tag.b { left: 12px; } .stage .tag.a { right: 12px; }
.fx-off .stage .handle, .fx-off .stage .tag.a { display: none; }
.stage:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
#demo .viewer .compare { display: none; }
#demo.nogl .viewer .compare { display: block; }
#demo.nogl .stage { display: none; }
#demo.nogl .rng, #demo.nogl .check, #demo.nogl .selwrap.flare-only { opacity: .4; pointer-events: none; }

/* inspector controls */
.insp .selwrap { padding: 0 6px; }
.insp .rng { display: grid; grid-template-columns: 92px 1fr 34px; align-items: center; gap: 8px; padding: 5px 6px; cursor: pointer; }
.insp .rng span { color: #c7c7cc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.insp .rng output { color: #fff; text-align: right; font-variant-numeric: tabular-nums; }
.insp input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 18px; background: transparent; margin: 0; --v: 50%; }
.insp input[type=range]::-webkit-slider-runnable-track { height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--orange) var(--v), #3a3a3e var(--v)); }
.insp input[type=range]::-moz-range-track { height: 3px; border-radius: 2px; background: #3a3a3e; }
.insp input[type=range]::-moz-range-progress { height: 3px; border-radius: 2px; background: var(--orange); }
.insp input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5.5px; border-radius: 50%; background: #f2f2f7; box-shadow: 0 1px 3px rgba(0,0,0,.5); }
.insp input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: #f2f2f7; }
.insp input[type=range]:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 4px; }
.insp .check { cursor: pointer; color: #c7c7cc; }
.insp .check b { color: #fff; }
.insp .dim { opacity: .4; }
.insp .locked { display: flex; flex-wrap: wrap; gap: 5px; padding: 4px 6px 10px; }
.insp .locked span { font-size: 10px; color: #8e8e93; background: #2a2a2d; border-radius: 5px; padding: 4px 7px 4px 20px; position: relative; }
.insp .locked span::before { content: ""; position: absolute; left: 7px; top: 50%; width: 8px; height: 6px; margin-top: -1px; border-radius: 1px; background: #8e8e93; }
.insp .locked span::after { content: ""; position: absolute; left: 8px; top: 50%; width: 4px; height: 4px; margin-top: -5px; border: 1.5px solid #8e8e93; border-bottom: 0; border-radius: 3px 3px 0 0; }

.rv .clips { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(84px, 1fr); overflow-x: auto; scrollbar-width: thin; }
.rv .clip.ai { background: #5a3214; }
.rv .clip { cursor: pointer; }
.rv .clip:focus-visible { outline-color: var(--orange); }

.showcase-note { margin-top: 22px; display: flex; gap: 10px 26px; justify-content: center; flex-wrap: wrap; color: #a1a1a6; font-size: 14px; }
.showcase-note b { color: #fff; font-weight: 600; }

/* ---------------------------------------------------------------- cards / grids */
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.card { background: var(--white); border-radius: var(--r-card); padding: 34px 32px; overflow: hidden; }
.band .card { background: var(--white); }
.dark .card { background: var(--night-2); }
.card .h3 { margin: 8px 0 12px; }
.card p { color: var(--slate); font-size: 17px; line-height: 1.47; }
.card .eyebrow { font: 600 12px/1.33 var(--text); letter-spacing: .02em; color: var(--ember); text-transform: uppercase; }
.card ul { list-style: none; margin-top: 14px; display: grid; gap: 8px; }
.card li { padding-left: 18px; position: relative; color: var(--ink); font-size: 16px; }
.card li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border-radius: 2px; background: var(--orange); }

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.gallery figure { border-radius: var(--r-card); overflow: hidden; background: #000; }
.gallery figcaption { background: var(--white); padding: 16px 22px 18px; font-size: 14px; color: var(--slate); display: flex; justify-content: space-between; gap: 12px; }
.gallery figcaption b { color: var(--ink); font-weight: 600; }
.gallery .full { grid-column: 1 / -1; }

.looks { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 30px; }
.looks span { padding: 9px 16px; border-radius: 9999px; background: var(--white); box-shadow: inset 0 0 0 1px var(--hair); font-size: 15px; }
.looks span.hl { background: var(--ink); color: #fff; box-shadow: none; }

.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin-top: 44px; }
.steps div { counter-increment: s; border-radius: var(--r-card); background: var(--mist); padding: 30px; }
.steps div::before { content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--sunset); color: #fff; font: 600 17px/1 var(--display); margin-bottom: 16px; }
.steps h4 { font: 600 21px/1.2 var(--display); margin-bottom: 6px; }
.steps p { color: var(--slate); font-size: 16px; }

.specs { display: grid; grid-template-columns: 200px 1fr; border-top: 1px solid var(--hair); }
.specs dt, .specs dd { padding: 20px 0; border-bottom: 1px solid var(--hair); }
.specs dt { font-weight: 600; }
.specs dd { color: var(--slate); }
.specs dd b { color: var(--ink); font-weight: 600; }

.buybox {
  border-radius: 36px; padding: 56px 40px; text-align: center; color: #fff;
  background: radial-gradient(120% 140% at 50% 0%, #2a1206 0%, #000 60%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.buybox img { width: min(420px, 80%); margin: 0 auto 10px; }
.buybox .row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.buybox small { display: block; margin-top: 18px; color: #a1a1a6; font-size: 13px; }

/* ---------------------------------------------------------------- programs index */
.prog-card {
  display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 30px;
  border-radius: 36px; background: #000; color: #fff; padding: 48px; overflow: hidden;
  transition: transform .3s;
}
.prog-card:hover { transform: scale(1.005); }
.prog-card .lead { color: #d2d2d7; font-weight: 400; margin: 14px 0 22px; }
.prog-card .tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.prog-card .tags span { font-size: 12px; padding: 5px 10px; border-radius: 9999px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25); color: #d2d2d7; }
.soon { margin-top: var(--gap); border-radius: 36px; background: var(--mist); padding: 40px 48px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- home */
.home-hero { min-height: calc(100svh - 44px); display: grid; place-items: center; text-align: center; padding: 60px 0; }
.home-hero .wordmark { width: min(880px, 92vw); margin: 0 auto; }
.home-hero .lead { color: #a1a1a6; margin-top: 26px; font-weight: 400; }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); margin-top: 54px; text-align: left; }
.tile { position: relative; border-radius: var(--r-card); overflow: hidden; min-height: 300px; background: var(--night-2); padding: 30px; display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate; }
.tile img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; opacity: .55; transition: opacity .4s, transform .6s; }
.tile:hover img.bg { opacity: .75; transform: scale(1.03); }
.tile img.bg.resolve { object-position: 50% 20%; opacity: .7; }
.tile:hover img.bg.resolve { opacity: .9; }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(0,0,0,.85), rgba(0,0,0,0) 65%); }
.tile .h3 { color: #fff; }
.tile p { color: #c7c7cc; font-size: 15px; margin-top: 6px; }
.tile .soon-tag { position: absolute; top: 20px; left: 22px; font: 600 12px/1 var(--text); color: var(--sun); letter-spacing: .04em; text-transform: uppercase; }

/* ---------------------------------------------------------------- v3: OFX accents, case, inside, motion */
.ofx {
  display: inline-block; font: 600 11px/1 var(--text); letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 7px; border-radius: 6px; color: #1a0a00; background: var(--sunset); vertical-align: middle;
}
.lnav .title .ofx { margin-left: 6px; font-size: 10px; transform: translateY(-2px); }
.insp .fxhead .ofx { font-size: 8px; padding: 2px 4px; margin-left: 4px; }
.badges { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 22px; }
.badges span { font-size: 13px; color: #d2d2d7; padding: 6px 12px; border-radius: 9999px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.badges .ofx.big { font-size: 13px; padding: 7px 14px; border-radius: 9999px; box-shadow: 0 0 30px rgba(228,132,36,.45); color: #1a0a00; }
.eyebrow-l { font: 600 13px/1.2 var(--text); letter-spacing: .08em; text-transform: uppercase; color: var(--orange); margin-bottom: 10px; }

.shimmer { background: linear-gradient(100deg, #9c240c 0%, #e48424 30%, #e4cc54 50%, #e48424 70%, #9c240c 100%);
  background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 7s ease-in-out infinite; }
@keyframes shimmer { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

.hero, .contact-hero { position: relative; overflow: hidden; }
.glow { position: absolute; left: 50%; top: 52%; width: min(1100px, 120vw); height: 620px; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(228,132,36,.32), rgba(156,36,12,.18) 45%, transparent 75%); filter: blur(30px);
  pointer-events: none; animation: breathe 8s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { opacity: .75; transform: translate(-50%, -50%) scale(1); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); } }
.hero .wrap { position: relative; }
.demo-wrap { position: relative; }
.demo-wrap::before { content: ""; position: absolute; inset: -40px -20px; z-index: 0; pointer-events: none;
  background: radial-gradient(65% 55% at 50% 55%, rgba(228,132,36,.18), rgba(228,132,36,.06) 45%, transparent 75%); }
/* own compositing group: on iPhone a blurred glow behind a WebGL canvas flickered through the inspector */
.demo-wrap .mac { position: relative; z-index: 1; isolation: isolate; }
@media (max-width: 820px) { .demo-wrap::before { display: none; } }

/* timeline format picker in the viewer bar */
.viewer-bar .fmt { display: flex; align-items: center; gap: 6px; color: #8e8e93; }
.viewer-bar select { height: 22px; border-radius: 5px; border: 1px solid #3a3a3e; background: #2a2a2d; color: #fff; font: 11px var(--text); padding: 0 4px; }

/* case viewer */
.film-title { width: min(340px, 42vw); height: auto; filter: drop-shadow(0 10px 30px rgba(214,64,64,.25)); }
.case-sec .section-head { align-items: center; }
.case .compare.big { border-radius: var(--r-card); }
.strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 14px; }
.strip button { border-radius: 12px; overflow: hidden; aspect-ratio: 2974/1115; outline: 3px solid transparent; outline-offset: 2px; transition: transform .25s, outline-color .25s, opacity .25s; opacity: .6; }
.strip button img { width: 100%; height: 100%; object-fit: cover; }
.strip button:hover { transform: translateY(-4px); opacity: 1; }
.strip button[aria-pressed="true"] { outline-color: var(--orange); opacity: 1; }

/* inside the OFX */
.inside { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); margin-top: 48px; }
.inside .box { border-radius: var(--r-card); background: var(--mist); padding: 30px; }
.inside .box h3 { font: 600 28px/1.1 var(--display); margin-bottom: 16px; }
.inside .box p { display: flex; flex-wrap: wrap; gap: 8px; }
.inside .box p span { font-size: 15px; padding: 8px 14px; border-radius: 9999px; background: #fff; box-shadow: inset 0 0 0 1px var(--hair); }
.inside .box.accent { background: #000; color: #fff; }
.inside .box.accent h3 { background: var(--sunset); -webkit-background-clip: text; background-clip: text; color: transparent; }
.inside .box.accent p span { background: #1d1d1f; box-shadow: none; color: #f5f5f7; }
.specs.mini { margin-top: 48px; grid-template-columns: 140px 1fr; font-size: 15px; }
.specs.mini dt, .specs.mini dd { padding: 14px 0; }
.buybox { position: relative; overflow: hidden; }
.buybox > * { position: relative; }
.buybox .glow { position: absolute; top: 30%; }

/* hover lift and pointer tilt */
.lift { transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s; will-change: transform; }
@media (hover: hover) and (pointer: fine) {
  .lift:hover { transform: translateY(-8px) scale(1.008); box-shadow: 0 30px 60px -25px rgba(0,0,0,.45); }
}
.tilt { transition: transform .5s cubic-bezier(.2,.7,.2,1); will-change: transform; }

/* staggered reveal: children appear one after another */
.reveal { transition-delay: var(--d, 0ms); }
.reveal.in.lift { transition: opacity .9s cubic-bezier(.2,.7,.2,1) var(--d, 0ms), transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s; }

/* fisheye text: site.js gives every .fisheye its own SVG barrel filter, as if the words sit behind the lens */
.fisheye { will-change: filter; }

/* anamorphic lens that follows the pointer: an oval glass with a blue streak */
.lens-cursor { position: fixed; left: 0; top: 0; z-index: 60; width: 220px; height: 110px; border-radius: 50%;
  pointer-events: none; opacity: 0; transition: opacity .35s, width .35s, height .35s;
  background: radial-gradient(60% 60% at 35% 30%, rgba(255,255,255,.28), rgba(255,255,255,.04) 55%, rgba(108,204,228,.08));
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.55), inset 0 -10px 24px rgba(108,204,228,.25), inset 0 10px 22px rgba(255,255,255,.18), 0 18px 40px rgba(0,0,0,.35);
  -webkit-backdrop-filter: blur(1.5px) saturate(170%) brightness(1.12) contrast(1.05);
  backdrop-filter: url(#glass-warp) blur(1px) saturate(170%) brightness(1.12); }
.lens-cursor.on { opacity: 1; }
.lens-cursor .streak { position: absolute; left: 50%; top: 50%; width: 760px; height: 2px; transform: translate(-50%, -50%);
  background: linear-gradient(90deg, transparent, rgba(80,150,255,.15) 20%, rgba(140,200,255,.95) 50%, rgba(80,150,255,.15) 80%, transparent);
  box-shadow: 0 0 10px 2px rgba(90,160,255,.55), 0 0 30px 6px rgba(60,120,255,.25); border-radius: 2px; }
.lens-cursor .core { position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 16px 6px rgba(160,210,255,.85), 0 0 40px 14px rgba(80,150,255,.4); }

/* a slow anamorphic streak through the product hero */
.hero .streak-sweep { position: absolute; left: -10%; right: -10%; top: 62%; height: 2px; pointer-events: none;
  background: linear-gradient(90deg, rgba(80,150,255,0) 8%, rgba(110,175,255,.18) 28%, rgba(150,205,255,.85) 50%, rgba(110,175,255,.18) 72%, rgba(80,150,255,0) 92%);
  box-shadow: 0 0 14px 3px rgba(90,160,255,.4), 0 0 50px 10px rgba(60,120,255,.16);
  /* the glow fades out too, so both ends melt into the dark */
  -webkit-mask-image: linear-gradient(90deg, transparent 5%, #000 38%, #000 62%, transparent 95%);
  mask-image: linear-gradient(90deg, transparent 5%, #000 38%, #000 62%, transparent 95%);
  animation: sweep 9s ease-in-out infinite; opacity: .0; }
@keyframes sweep { 0% { transform: translateX(-35%) scaleX(.6); opacity: 0; } 25% { opacity: .9; } 50% { transform: translateX(35%) scaleX(1.1); opacity: .6; } 75% { opacity: 0; } 100% { transform: translateX(-35%) scaleX(.6); opacity: 0; } }

/* liquid glass buttons on dark */
.dark .pill.light, .buybox .pill.light {
  background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,.08)); color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35), inset 0 1px 0 rgba(255,255,255,.5), 0 10px 30px rgba(0,0,0,.25);
  -webkit-backdrop-filter: blur(14px) saturate(180%); backdrop-filter: blur(14px) saturate(180%); }
.pill { position: relative; overflow: hidden; }
.pill::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-20deg); transition: left .6s; }
.pill:hover::after { left: 130%; }

/* DaVinci Resolve tile: the name over a perspective grid */
.tile.resolve-tile { background: #07070a; }
.resolve-tile .grid { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.resolve-tile .grid::before { content: ""; position: absolute; left: -50%; right: -50%; top: 42%; bottom: -60%;
  background-image: linear-gradient(rgba(228,132,36,.45) 1px, transparent 1px), linear-gradient(90deg, rgba(228,132,36,.45) 1px, transparent 1px);
  background-size: 46px 46px; transform: perspective(380px) rotateX(62deg); transform-origin: top;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 60%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 60%, transparent); animation: gridmove 6s linear infinite; }
@keyframes gridmove { to { background-position: 0 46px, 0 0; } }
.resolve-tile .grid::after { content: ""; position: absolute; left: 0; right: 0; top: 30%; height: 40%;
  background: radial-gradient(50% 60% at 50% 60%, rgba(228,132,36,.35), transparent 70%); }
.resolve-tile .rname { position: absolute; left: 0; right: 0; top: 12%; text-align: center;
  font: 600 clamp(30px, 4.2vw, 52px)/1 var(--display); letter-spacing: -.02em; color: #fff; text-shadow: 0 0 30px rgba(228,132,36,.5); }
.resolve-tile .rname small { display: block; font: 600 12px/1 var(--text); letter-spacing: .3em; text-transform: uppercase; color: var(--sun); margin-bottom: 12px; }
.resolve-tile .dvr-icon { display: block; width: 64px; height: 64px; margin: 0 auto 14px; filter: drop-shadow(0 6px 24px rgba(228,132,36,.45)); }
.mac .dvr-mini { display: inline-block; width: 16px; height: 16px; vertical-align: -3px; margin-right: 8px; }
.tile.resolve-tile::after { background: linear-gradient(0deg, rgba(0,0,0,.85), rgba(0,0,0,0) 45%); }

/* product page: Download / Buy a little bigger in the bar, and a floating bar at the bottom centre
   (shows once the hero buttons scroll away, hides at the final buy box) */
.lnav .pill { height: 32px; padding: 0 17px; font-size: 14px; font-weight: 500; }
.dock { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 60; display: flex; gap: 8px; align-items: center;
  padding: 7px; border-radius: 999px; background: rgba(18,18,20,.78); border: 1px solid rgba(255,255,255,.12);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 16px 40px rgba(0,0,0,.45);
  transform: translate(-50%, 140%); opacity: 0; pointer-events: none; transition: transform .45s cubic-bezier(.2,.8,.2,1), opacity .3s; }
.dock.on { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.dock .pill { height: 42px; padding: 0 22px; font-size: 16px; font-weight: 500; }
.dock .pill.ghost { color: #f5f5f7; box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); }
@media (max-width: 560px) {
  .lnav .pill { height: 30px; padding: 0 14px; font-size: 13px; }
  .lnav .pill.ghost { display: none; } /* on a phone Download is in the hero and in the bottom bar */
  .dock { gap: 6px; padding: 6px; }
  .dock .pill { height: 42px; padding: 0 16px; font-size: 14.5px; }
  .dock .fb { width: 42px; padding: 0; font-size: 0; } /* "Write to us" becomes an envelope */
  .dock .fb::before { content: "✉"; font-size: 19px; line-height: 1; }
  .dock.on ~ .to-top, body:has(.dock.on) .to-top { bottom: 84px; } }

/* Japanese has no spaces: break lines between phrases, not inside a word */
html:lang(ja) { word-break: auto-phrase; line-break: strict; }

/* TASVIR SOFT tile: Bai's glass letters (one image each, moved by /js/glass.js) over a cool and warm glow */
.tile.soft-tile { background: #050608; min-height: 360px; }
.soft-tile .soft-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
/* slowly drifting light in the colours of the glass: deep blue, sky blue, a violet hint and a warm ember */
.soft-tile .soft-bg::before { content: ""; position: absolute; inset: -30%;
  background: radial-gradient(34% 30% at 30% 30%, rgba(30,110,255,.55), transparent 70%),
              radial-gradient(26% 24% at 52% 42%, rgba(80,200,255,.30), transparent 70%),
              radial-gradient(30% 26% at 70% 34%, rgba(120,70,255,.28), transparent 70%),
              radial-gradient(32% 28% at 66% 66%, rgba(255,110,30,.42), transparent 70%),
              radial-gradient(22% 20% at 34% 70%, rgba(255,170,60,.22), transparent 70%);
  filter: blur(18px); opacity: .85; transition: opacity .6s; animation: softDrift 22s ease-in-out infinite alternate; }
.soft-tile:hover .soft-bg::before { opacity: 1; }
@keyframes softDrift {
  0% { transform: translate(0, 0) rotate(0deg) scale(1); }
  50% { transform: translate(4%, -3%) rotate(8deg) scale(1.06); }
  100% { transform: translate(-4%, 3%) rotate(-6deg) scale(1.02); } }
@media (prefers-reduced-motion: reduce) { .soft-tile .soft-bg::before { animation: none; } }
.tile.soft-tile::after { background: linear-gradient(0deg, rgba(0,0,0,.9), rgba(0,0,0,0) 40%); }
.glass-logo { position: absolute; left: 50%; top: 8%; width: min(62%, 330px); aspect-ratio: 1.7306; transform: translateX(-50%); margin: 0; }
.glass-logo img { position: absolute; height: auto; will-change: transform; pointer-events: none; user-select: none;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,.55)); }
@media (max-width: 760px) { .tile.soft-tile { min-height: 360px; } .glass-logo { width: 72%; top: 7%; } }

/* contact page */
.contact-hero { padding: 90px 0 60px; text-align: center; }
.mailbox { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 30px; }
.mailbox a.mail { font: 600 clamp(22px, 4vw, 40px)/1.1 var(--display); letter-spacing: -.01em; word-break: break-all; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin-top: 60px; text-align: left; }
.contact-grid .box { border-radius: var(--r-card); background: var(--night-2); padding: 28px; }
.contact-grid h3 { font: 600 21px/1.2 var(--display); margin-bottom: 8px; }
.contact-grid p { color: #a1a1a6; font-size: 15px; }
.copied { color: var(--sun); font-size: 14px; min-width: 80px; }

@media (max-width: 820px) {
  .strip { grid-template-columns: repeat(3, 1fr); }
  .inside { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .viewer-bar .fmt { font-size: 0; gap: 0; }
  .viewer-bar .fmt select { font-size: 12px; }
  .specs.mini { grid-template-columns: 1fr; }
}

/* YouTube videos: promo + tutorial (placeholders until data-yt is filled) */
.videos { display: grid; grid-template-columns: 1.6fr 1fr; gap: var(--gap); align-items: start; }
.videos-more { text-align: center; margin-top: 28px; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-card); overflow: hidden; cursor: pointer;
  background: radial-gradient(80% 90% at 30% 20%, #3a1a08, #0d0d10 70%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.video img.thumb, .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.video .vlabel { position: absolute; left: 18px; top: 16px; z-index: 2; font: 600 12px/1 var(--text); letter-spacing: .08em; text-transform: uppercase;
  color: #fff; background: rgba(0,0,0,.45); padding: 7px 10px; border-radius: 8px; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.video .vsoon { position: absolute; left: 0; right: 0; bottom: 18px; z-index: 2; text-align: center; font-size: 14px; color: #c7c7cc; }
.video .vplay { position: absolute; left: 50%; top: 50%; z-index: 2; width: 74px; height: 74px; margin: -37px 0 0 -37px; border-radius: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,.28), rgba(255,255,255,.1)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.4), 0 10px 30px rgba(0,0,0,.4);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: transform .3s; }
.video .vplay::after { content: ""; position: absolute; left: 30px; top: 23px; border-left: 20px solid #fff; border-top: 14px solid transparent; border-bottom: 14px solid transparent; }
.video:hover .vplay { transform: scale(1.08); }
.video.playing .vlabel, .video.playing .vplay, .video.playing .vsoon { display: none; }
.video:not([data-yt=""]) .vsoon { display: none; }
@media (max-width: 820px) { .videos { grid-template-columns: 1fr; } }

/* ?shot=1: only the Resolve mock-up, for making stills of it */
.shotmode body > nav, .shotmode body > footer, .shotmode main > section:not(#resolve),
.shotmode #resolve .center.reveal, .shotmode #resolve .showcase-note { display: none !important; }
.shotmode #resolve { padding: 24px 0 !important; }
.shotmode .reveal { opacity: 1 !important; transform: none !important; }
.shotmode .demo-wrap::before { display: none; }

/* ---------------------------------------------------------------- footer */
.footer { background: var(--mist); color: var(--slate); font-size: 12px; padding: 34px 0 40px; }
.footer .wrap { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer a { color: var(--ink); }
.footer a:hover { text-decoration: underline; }
.dark-footer { background: #000; color: #86868b; border-top: 1px solid #1d1d1f; }
.dark-footer a { color: #d2d2d7; }

/* ---------------------------------------------------------------- reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .rv { grid-template-columns: 1fr 250px; }
  .rv .panel.left { display: none; }
}
@media (max-width: 820px) {
  :root { --section: 76px; }
  .rv { grid-template-columns: 1fr; }
  .rv .pages, .rv .transport { display: none; }
  .rv .panel.right { border-left: 0; border-top: 1px solid #0c0c0d; }
  .rv .viewer { padding: 8px; }
  .insp .rng { grid-template-columns: 110px 1fr 40px; padding: 8px 6px; }
  .insp input[type=range] { height: 28px; }
  .insp input[type=range]::-webkit-slider-thumb { width: 22px; height: 22px; margin-top: -9.5px; }
  .insp input[type=range]::-moz-range-thumb { width: 22px; height: 22px; }
  .insp select { height: 34px; font-size: 14px; }
  .mac { font-size: 12px; border-radius: 12px; }
  .rv .clip { height: 34px; }
  .rv .tc, .rv .clip span { display: none; }
  .gallery figcaption { flex-direction: column; gap: 2px; }
  .showcase-note { font-size: 13px; }
  .grid2, .grid3, .gallery, .steps, .tiles { grid-template-columns: 1fr; }
  .prog-card { grid-template-columns: 1fr; padding: 32px 24px; }
  .specs { grid-template-columns: 1fr; }
  .specs dt { padding-bottom: 4px; border-bottom: 0; }
  .specs dd { padding-top: 0; }
  .lnav a.link { display: none; }
  .gnav .wrap { gap: 18px; }
  .gnav a[href="/"]:not(.brand), .gnav .brand + a { display: none; } /* the brand already leads home; keeps Films in on phones */
  .card { padding: 28px 24px; }
  .buybox { padding: 40px 22px; }
  .mac .wtitle { display: none; }
}

/* ---------------------------------------------------------------- shop: checkout + thank-you (lava.top) */
.shop { min-height: calc(100svh - 44px); display: grid; place-items: center; padding: 56px 0 80px; position: relative; overflow: hidden; }
.shop .wrap { position: relative; max-width: 520px; }
.shop-card { border-radius: var(--r-card); background: var(--night-2); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 40px 80px -30px rgba(0,0,0,.8); padding: 34px 30px 30px; color: #fff; }
.shop-card .lens { width: min(300px, 78%); margin: -6px auto 8px; }
.shop-card h1 { font: 600 clamp(28px, 5vw, 36px)/1.1 var(--display); letter-spacing: -.015em; text-align: center; }
.shop-card .sub { color: #a1a1a6; text-align: center; margin: 8px 0 22px; font-size: 15px; }
.cur { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 4px; border-radius: 14px; background: #0b0b0d; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); margin-bottom: 14px; }
.cur button { height: 54px; border-radius: 11px; color: #a1a1a6; font-weight: 600; font-size: 19px; transition: background .2s, color .2s; }
.cur button small { display: block; font-size: 11px; font-weight: 500; letter-spacing: .04em; opacity: .7; margin-top: -2px; }
.cur button[aria-pressed="true"] { background: var(--sunset); color: #1a0a00; }
.shop-card label { display: block; font-size: 13px; color: #a1a1a6; margin: 6px 2px 6px; }
.shop-card input[type=email], .shop-card #promo { width: 100%; height: 50px; border-radius: 12px; border: 0; padding: 0 16px; font: 17px var(--text); color: #fff;
  background: #0b0b0d; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); outline: none; }
.shop-card input[type=email]:focus, .shop-card #promo:focus { box-shadow: inset 0 0 0 2px var(--orange); }
.shop-card .pay { width: 100%; height: 54px; margin-top: 16px; border-radius: 9999px; background: var(--sunset); color: #1a0a00; font-weight: 600; font-size: 18px; }
.shop-card .pay[disabled] { opacity: .6; cursor: progress; }
.shop-card .msg { min-height: 22px; margin-top: 12px; text-align: center; font-size: 14px; color: #ffb38a; }
.shop-card .fine { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.shop-card .fine span { font-size: 12px; color: #a1a1a6; padding: 4px 9px; border-radius: 9999px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.shop-card .note { color: #86868b; font-size: 13px; text-align: center; margin-top: 14px; }
.keybox { font: 600 15px/1.5 ui-monospace, Consolas, monospace; background: #0b0b0d; border-radius: 14px; padding: 16px; word-break: break-all;
  box-shadow: inset 0 0 0 1px rgba(228,132,36,.5); margin: 6px 0 12px; user-select: all; }
.steps-mini { list-style: none; margin: 22px 0 0; display: grid; gap: 10px; counter-reset: s; }
.steps-mini li { counter-increment: s; display: grid; grid-template-columns: 28px 1fr; gap: 10px; color: #d2d2d7; font-size: 15px; }
.steps-mini li::before { content: counter(s); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 600; color: #1a0a00; background: var(--sunset); }
.spinner { width: 34px; height: 34px; margin: 10px auto 14px; border-radius: 50%; border: 3px solid rgba(255,255,255,.12); border-top-color: var(--orange); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- product: hero note + FAQ */
.hero-note { margin-top: 16px; font-size: 14px; color: #a1a1a6; text-align: center; }
.hero-note a { color: var(--orange); }
.lnav .pill.ghost { color: var(--ink); }
.faq-sec { background: #000; color: #f5f5f7; padding-top: 72px; padding-bottom: 72px; }
.faq { max-width: 980px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; align-items: start; }
.faq details { background: #111113; border-radius: 16px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); transition: background .2s; }
.faq details[open] { background: #17171a; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 16px; font: 600 15px/1.35 var(--display); letter-spacing: -.005em; color: #f5f5f7; }
.faq summary::-webkit-details-marker { display: none; }
/* a chevron that points down when closed and up when open: one clear sign instead of + / x */
.faq summary::after { content: ""; flex: none; width: 9px; height: 9px; margin: 0 6px 4px 0;
  border-right: 2px solid var(--orange); border-bottom: 2px solid var(--orange); transform: rotate(45deg); transition: transform .25s, margin .25s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin: 4px 6px 0 0; }

/* back to top: a round button on the right side once the page is scrolled */
.to-top { position: fixed; right: 18px; bottom: 22px; z-index: 60; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(28,28,30,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.16), 0 6px 22px rgba(0,0,0,.35);
  display: grid; place-items: center; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s, transform .25s; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: rgba(194,65,12,.85); }
.to-top::before { content: ""; width: 11px; height: 11px; margin-top: 5px; border-left: 2px solid #fff; border-top: 2px solid #fff; transform: rotate(45deg); }

/* version roadmap (Bai 2026-11-13): one line in the middle, newest glowing on top, cards left / right;
   earlier versions sit in their own scroll window that fades at its edges and keeps its scroll to itself */
.rm { max-width: 980px; margin: 0 auto; }
.roadmap { list-style: none; margin: 0; padding: 0; position: relative; }
.roadmap::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; border-radius: 2px;
  background: linear-gradient(#e48424, #9c240c 45%, #3a3a3c); }
.rm-now::before { top: 20px; }
.roadmap li { position: relative; width: calc(50% - 30px); margin: 0 0 14px; }
.roadmap li.l { margin-right: auto; } .roadmap li.r { margin-left: auto; }
.roadmap li::before { content: ""; position: absolute; top: 19px; width: 12px; height: 12px; border-radius: 50%;
  background: #000; box-shadow: inset 0 0 0 2px #e48424; }
.roadmap li.l::before { right: -36px; } .roadmap li.r::before { left: -36px; }
.roadmap li::after { content: ""; position: absolute; top: 24px; width: 22px; height: 2px; background: rgba(228,132,36,.35); }
.roadmap li.l::after { right: -24px; } .roadmap li.r::after { left: -24px; }
.rm-now li { width: calc(50% - 30px); }
.rm-now li.now { width: min(620px, 100%); margin: 0 auto 0; }
.rm-now li.now::before, .rm-now li.now::after { display: none; }
.rm-now li.now details { box-shadow: inset 0 0 0 1px rgba(228,132,36,.45), 0 0 60px -12px rgba(228,132,36,.45); }
.rm-label { text-align: center; margin: 26px 0 6px; font: 600 12px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: #6e6e73; }
.rm-label::after { content: ""; display: block; width: 1px; height: 18px; margin: 8px auto 0; background: #9c240c; }
.rm-old { max-height: 430px; overflow-y: auto; overscroll-behavior: contain; padding: 34px 6px; scrollbar-width: thin; scrollbar-color: #3a3a3c transparent;
  -webkit-mask: linear-gradient(transparent, #000 16%, #000 84%, transparent); mask: linear-gradient(transparent, #000 16%, #000 84%, transparent); outline: none; }
.rm-old .roadmap li { opacity: .25; transform: translateX(var(--rx, 0)) scale(.94); transition: opacity .6s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.rm-old .roadmap li.l { --rx: -34px; } .rm-old .roadmap li.r { --rx: 34px; }
.rm-old .roadmap li.in { opacity: 1; transform: none; }
@media (max-width: 760px) {
  .roadmap::before { left: 11px; margin: 0; }
  .roadmap li, .rm-now li, .roadmap li.l, .roadmap li.r { width: auto; margin: 0 0 12px 34px; }
  .roadmap li.l::before, .roadmap li.r::before { left: -29px; right: auto; }
  .roadmap li::after { display: none; }
  .rm-now li.now { margin: 0 0 0 34px; width: auto; }
  .rm-now li.now::before { display: block; left: -29px; }
  .rm-old .roadmap li.l, .rm-old .roadmap li.r { --rx: 24px; }
  .rm-label { text-align: left; padding-left: 34px; } .rm-label::after { display: none; }
}
@media (prefers-reduced-motion: reduce) { .rm-old .roadmap li { opacity: 1; transform: none; transition: none; } }
.roadmap li.now::before { background: #e48424; box-shadow: 0 0 0 5px rgba(228,132,36,.22), 0 0 18px #e48424; }
.rm-old .roadmap li:first-child::before { background: #9c240c; }
.roadmap details { background: #111113; border-radius: 16px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); }
.roadmap details[open] { background: #17171a; }
.roadmap summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: 14px; padding: 14px 16px; color: #f5f5f7; }
.roadmap summary::-webkit-details-marker { display: none; }
.roadmap .ver { font: 700 20px/1 var(--display); color: #e48424; min-width: 3.4em; }
.roadmap .tag { font: 600 15px/1.35 var(--display); flex: 1; }
.roadmap summary::after { content: ""; flex: none; align-self: center; width: 9px; height: 9px; margin: 0 6px 4px 0;
  border-right: 2px solid var(--orange); border-bottom: 2px solid var(--orange); transform: rotate(45deg); transition: transform .25s, margin .25s; }
.roadmap details[open] summary::after { transform: rotate(-135deg); margin: 4px 6px 0 0; }
.roadmap summary:hover .tag { color: #f0c98a; }
.roadmap details p { padding: 0 16px 15px; margin: 0; color: #a1a1a6; font-size: 14.5px; line-height: 1.55; }
.roadmap details p.rm-out { padding-bottom: 10px; }
.rm-out span { display: inline-block; padding: 4px 11px; border-radius: 999px; font: 600 12.5px/1.3 var(--display); color: #f0c98a; background: rgba(228,132,36,.14); box-shadow: inset 0 0 0 1px rgba(228,132,36,.4); }
.roadmap details p b { color: #e5e5ea; font-weight: 600; }
.faq summary:hover { color: #f0c98a; }
.faq details p { padding: 0 16px 15px; margin: 0; color: #a1a1a6; font-size: 14.5px; line-height: 1.5; }
.faq details p a, .faq details p button { color: var(--orange); }
.faq details p b { color: #e5e5ea; font-weight: 600; }
/* the big "Write to us" button: under the FAQ and on the contact page */
.write-big { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: 34px; color: #a1a1a6; font-size: 17px; text-align: center; }
.write-big .pill.big { height: 60px; padding: 0 44px; font-size: 21px; font-weight: 600; }
@media (max-width: 734px) {
  .faq { grid-template-columns: 1fr; }
  .faq-sec { padding-top: 56px; padding-bottom: 56px; }
  .lnav .wrap { gap: 10px; }
  .lnav .title { font-size: 17px; }
  .lnav .pill.ghost { padding: 0 10px; }
}


/* «Account» link added by site.js */
.gnav a.acct{opacity:1;border:1px solid currentColor;border-color:rgba(127,127,127,.45);border-radius:999px;padding:4px 11px;line-height:1}
.gnav a.acct:hover{border-color:currentColor}
.gnav a.acct{display:inline-flex;align-items:center;gap:5px}.gnav a.acct svg{width:13px;height:13px;fill:currentColor}
@media (max-width: 600px){ .gnav a.acct span{display:none} .gnav a.acct{padding:5px} }
@media (max-width: 430px){ .gnav .wrap > a[href$="/contact/"]{display:none} } /* Contact stays in the footer */

/* Contact: «Write to us» + Telegram side by side (site.js) */
.write-row{display:flex;gap:12px;flex-wrap:wrap;justify-content:center}
.write-big .pill.tg{background:#229ED9;color:#fff;display:inline-flex;align-items:center;gap:10px}
.write-big .pill.tg:hover{background:#1c8cc2}.write-big .pill.tg svg{width:22px;height:22px;fill:currentColor}

/* account: a quiet icon after the language button */
.gnav a.acct{padding:0;width:28px;height:28px;justify-content:center;border-color:rgba(127,127,127,.3);opacity:.75}.gnav a.acct:hover{opacity:1}.gnav a.acct svg{width:14px;height:14px}

/* socials on Contact (site.js) */
.soc-row{display:flex;gap:14px;justify-content:center;flex-wrap:wrap;margin-top:38px}
.soc-row .soc{display:inline-flex;align-items:center;gap:11px;height:56px;padding:0 24px 0 18px;border-radius:999px;background:#111113;border:1px solid rgba(255,255,255,.13);color:#f5f5f7;font-size:17px;font-weight:600;text-decoration:none;transition:border-color .2s,transform .2s}
.soc-row .soc:hover{border-color:rgba(255,255,255,.35);transform:translateY(-1px)}.soc-row .soc svg{width:26px;height:26px}
.soc-row .tg svg{fill:#2AABEE}.soc-row .yt svg{fill:#FF0033}.soc-row .ig svg{fill:#E4405F}
.soc-note{max-width:560px;margin:14px auto 0;text-align:center;font-size:12px;line-height:1.45;color:#6e6e73}

/* ---- glass pictures (Bai's stylized PNGs, keyed to WebP): pop in when seen, float slowly, a light sweep every ~2.5 minutes */
.glass-art{position:relative;display:block;pointer-events:none;user-select:none}
.glass-art .gi{position:relative;display:block;animation:gfloat 8s ease-in-out infinite;animation-delay:var(--fd,0s)}
.glass-art img{display:block;width:100%;height:auto;margin:0;filter:drop-shadow(0 22px 34px rgba(20,40,120,.28))}
.glass-art .gi::after{content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(105deg,transparent 38%,rgba(255,255,255,.85) 49%,rgba(255,255,255,.25) 53%,transparent 62%) no-repeat;
  background-size:300% 100%;background-position:120% 0;
  -webkit-mask:var(--src) center/100% 100% no-repeat;mask:var(--src) center/100% 100% no-repeat;
  animation:gshine 150s linear infinite;animation-delay:var(--sd,1.4s)}
@keyframes gshine{0%{background-position:120% 0}1.6%{background-position:-20% 0}100%{background-position:-20% 0}}
@keyframes gfloat{0%,100%{transform:translateY(0) rotate(0)}50%{transform:translateY(-8px) rotate(.6deg)}}
.glass-art.pop{opacity:0;transform:translateY(34px) scale(.86) rotate(-4deg);transition:opacity .8s cubic-bezier(.2,.7,.2,1),transform 1.1s cubic-bezier(.2,1.25,.35,1)}
.glass-art.pop.in{opacity:1;transform:none}
.buybox .glass-art img{width:100%;margin:0}
.buybox .glass-art{position:absolute;width:132px;z-index:0}
.buybox .glass-art.l{left:18px;bottom:30px}.buybox .glass-art.r{right:22px;top:34px;width:120px}
.soon > div{flex:1 1 280px}.soon .glass-art{flex:none;width:126px;margin:-14px 0 -14px 0}
@media (max-width:900px){.buybox .glass-art{display:none}}
@media (max-width:600px){.soon .glass-art{width:96px;margin:0 auto}}
/* Bai 2026-11-13: calmer glass everywhere: half the colour, Screen blend, a little see-through */
.glass-art,img.glass{mix-blend-mode:multiply}.glass-art.on-dark,img.glass.on-dark{mix-blend-mode:screen}
.glass-art img,img.glass{filter:saturate(.5)}
.glass-art{opacity:.9}.glass-art.pop{opacity:0}.glass-art.pop.in{opacity:.9}
img.glass{opacity:.9}
@media (prefers-reduced-motion: reduce){.glass-art .gi,.glass-art .gi::after{animation:none}.glass-art.pop{opacity:1;transform:none;transition:none}}
.glass-art.popnow{animation:gpop .9s cubic-bezier(.2,1.25,.35,1) both}
@keyframes gpop{from{transform:translateY(18px) scale(.7) rotate(-8deg)}to{transform:none}}
.glass-art.win{animation:gwin .8s cubic-bezier(.2,1.4,.4,1)}
.glass-art.win .gi::after{animation:gshine 150s linear infinite;animation-delay:0s}
@keyframes gwin{0%{transform:none}40%{transform:translateY(-8px) scale(1.12) rotate(4deg)}100%{transform:none}}
@media (prefers-reduced-motion: reduce){.glass-art.popnow,.glass-art.win{animation:none}}

/* ---------------------------------------------------------------- laptop screens (Bai 2026-11-14, MacBook Air 13)
   the Resolve mock-up, the before/after frames and the hero fit one screen instead of filling a 27" monitor */
@media (min-width: 901px) {
  .demo-wrap { max-width: min(1040px, calc((100vh - 150px) * 1.64)); margin-left: auto; margin-right: auto; }
  .case-sec .wide, #ai .wide, #watch .wide { width: min(1080px, calc(100% - 32px)); }
  .case .compare.big, .gallery .full .compare { max-height: calc(100vh - 220px); }
  .section-head { margin-bottom: 32px; }
  /* the long inspector scrolls inside: the mock-up is as tall as the viewer and timeline, not as the slider list */
  .demo-wrap .rv .insp, .demo-wrap .rv .panel.left { contain: size; overflow-y: auto; scrollbar-width: thin; }
}
@media (min-width: 901px) and (max-height: 1000px) {
  :root { --section: 88px; }
  .hero { padding-top: 48px; }
  .display { font-size: clamp(44px, 7.2vh, 72px); }
  .h2 { font-size: clamp(32px, 5.4vh, 50px); }
  .hero .lens, .altyn .gold-logo { width: min(560px, 80%); }
  .hero .lead { margin-top: 16px; }
  .hero .ctas { margin-top: 22px; }
}