/* Ә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; }
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: hidden;
}
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; }
.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::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; }

/* ---------------------------------------------------------------- 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; }
  .card { padding: 28px 24px; }
  .buybox { padding: 40px 22px; }
  .mac .wtitle { display: none; }
}
