/* Decivo for Juhayna: a management portfolio.
   Look taken from the CONTROWARE software portfolio (localhost:4600, src/site.css + src/calm.css):
   one dark stage, Controware red E11B22 / C00000 / 8A0000, Sora for headings, Inter for text,
   thin lines, soft red light, a label pill above each heading and an italic serif accent phrase. */
@font-face { font-family: Sora; font-weight: 100 800; font-display: swap; src: url(fonts/sora.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 100 900; font-display: swap; src: url(fonts/inter.woff2) format("woff2"); }

:root {
  --bg: #0b0e13; --band: #0d1016; --ink: #fff; --soft: #b7bfcb; --mute: #8d96a5; --line: #20252e;
  --card: #101319; --card2: #0c0f14; --row: #151920; --off: #1f242d;
  --accent: #ff6b6b; --good: #4fd49a; --warn: #ffb26b; --bad: #ff6b6b;
  --red: #e11b22; --red2: #c00000; --deep: #8a0000; --coral: #ff8a80; --orange: #ff9a4d;
  --edge: rgba(255, 107, 107, .5);
  --grad: linear-gradient(135deg, #e11b22 0%, #c00000 52%, #8a0000 100%);
  --display: Sora, "Segoe UI", system-ui, sans-serif; --body: Inter, "Segoe UI", system-ui, sans-serif;
  --gut: clamp(16px, 4.5vw, 72px); --ease: cubic-bezier(.2, .9, .25, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; background: var(--bg); overflow-x: clip; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 17px/1.6 var(--body); color: var(--ink); background: var(--bg); overflow-x: clip; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
img { max-width: 100%; display: block; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

h1, h2 { font: 500 clamp(30px, 3.3vw, 50px)/1.12 var(--display); letter-spacing: -.025em; text-wrap: balance; }
h1 { font-size: clamp(36px, 4.6vw, 68px); line-height: 1.08; }
h3 { font: 500 clamp(19px, 1.5vw, 23px)/1.3 var(--display); letter-spacing: -.015em; text-wrap: balance; }
.ac { font: italic 400 1.06em/1 Georgia, "Times New Roman", serif; letter-spacing: -.01em; color: var(--coral); }
.lede { color: var(--soft); font-size: clamp(16.5px, 1.25vw, 19px); max-width: 680px; }
.wrap { max-width: 1220px; margin: 0 auto; }
section { position: relative; padding: clamp(80px, 9vw, 140px) var(--gut); }
.band { background: var(--band); border-block: 1px solid #171b22; }
.head { max-width: 780px; margin-bottom: clamp(40px, 5vw, 64px); }
.head.mid { margin-inline: auto; text-align: center; } .head.mid .lede { margin-inline: auto; }
.head h2 + .lede { margin-top: 18px; }

/* label pill above a heading */
.eye { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 6px 14px 6px 7px; border-radius: 30px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .04); font: 500 13.5px/1.2 var(--body); color: var(--soft); }
.eye svg { width: 24px; height: 24px; padding: 5px; border-radius: 50%; color: var(--accent); background: rgba(255, 107, 107, .12); border: 1px solid rgba(255, 107, 107, .3); flex: none; }

/* ---------- top bar ---------- */
.bar { position: fixed; inset: 16px 0 auto; z-index: 40; padding: 0 var(--gut); }
.pill { position: relative; max-width: 1240px; margin: 0 auto; display: flex; align-items: center; gap: 20px; height: 64px; padding: 0 10px 0 22px; border-radius: 40px; background: rgba(17, 21, 29, .93); border: 1px solid rgba(255, 255, 255, .12); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 18px 50px -20px #000; backdrop-filter: blur(16px); }
.logo img { height: 30px; width: auto; }
.pill nav { flex: 1; } .pill nav ul { display: flex; justify-content: center; gap: 4px; }
.pill nav a { display: block; white-space: nowrap; padding: 9px 13px; border-radius: 30px; text-decoration: none; font-size: 15px; font-weight: 500; color: #c5ccd8; transition: color .25s, background .25s; }
.pill nav a:hover, .pill nav a.on { color: #fff; background: rgba(255, 255, 255, .1); }
.prog { position: absolute; left: 30px; right: 30px; bottom: -1px; height: 2px; background: linear-gradient(90deg, #e11b22, #ff9a4d); transform: scaleX(var(--p, 0)); transform-origin: left; border-radius: 2px; }
@media (max-width: 1180px) { .pill nav { display: none; } .pill { justify-content: space-between; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 40px; border: 1px solid transparent; font: 500 15.5px/1.1 var(--display); letter-spacing: -.01em; color: #fff; text-decoration: none; cursor: pointer; background: none; transition: box-shadow .35s, border-color .3s, background .3s; }
.btn svg { width: 19px; height: 19px; flex: none; transition: transform .4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn.prime { background: linear-gradient(180deg, #ee2a31, #c00000); border-color: rgba(255, 255, 255, .16); box-shadow: 0 10px 26px -14px rgba(225, 27, 34, .9), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn.prime:hover { box-shadow: 0 14px 34px -14px rgba(225, 27, 34, 1), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn.ghost { border-color: rgba(255, 255, 255, .22); } .btn.ghost:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .4); }
.btn.mini { min-height: 42px; padding: 0 18px; font-size: 14.5px; }
.acts { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- hero ---------- */
.hero { padding: clamp(140px, 19vh, 190px) var(--gut) clamp(70px, 8vw, 120px); text-align: center; isolation: isolate; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 40% 0 0; z-index: -1; pointer-events: none; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 72px 72px; background-position: 50% 100%; mask-image: radial-gradient(60% 85% at 50% 100%, #000, transparent); }
.hero-in { max-width: 980px; margin: 0 auto; }
.hero h1 { margin-bottom: 22px; }
.hero .lede { margin: 0 auto 34px; }
.hero .acts { justify-content: center; }
.client { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin-top: 26px; color: var(--mute); font-size: 14px; }
.client span + span::before { content: ""; display: inline-block; width: 4px; height: 4px; margin: 0 14px 3px 0; border-radius: 50%; background: var(--red); }

/* the screen under a horizon of red light (after the portfolio's .deck::before) */
.deck { position: relative; max-width: 1120px; margin: clamp(56px, 7vw, 90px) auto 0; --R: min(900px, 66vw); }
.deck::before { content: ""; position: absolute; z-index: -1; left: 50%; top: -165px; width: calc(var(--R) * 2 + 280px); height: calc(var(--R) * .8); translate: -50% 0; pointer-events: none;
  background: radial-gradient(ellipse 26% 60px at 50% 130px, rgba(255, 236, 230, .55), transparent),
    radial-gradient(circle var(--R) at 50% calc(var(--R) + 130px), #0b0e13 calc(var(--R) - 70px), rgba(90, 4, 8, .55) calc(var(--R) - 26px), rgba(225, 27, 34, .85) calc(var(--R) - 5px), rgba(255, 176, 160, .95) calc(var(--R) - 1px), rgba(225, 27, 34, .42) calc(var(--R) + 3px), rgba(225, 27, 34, .13) calc(var(--R) + 46px), transparent calc(var(--R) + 130px));
  mask-image: linear-gradient(#000 30%, transparent 92%); animation: horizon 2.2s var(--ease) .2s backwards; }
@keyframes horizon { from { opacity: 0; transform: translateY(70px); } }
.frame { padding: 1.5px; border-radius: 18px; background: linear-gradient(170deg, rgba(255, 150, 138, .95), rgba(192, 0, 0, .55) 22%, #232832 55%); box-shadow: 0 -24px 110px -40px rgba(225, 27, 34, .7), 0 50px 120px -50px rgba(138, 0, 0, .6); }
.frame img { border-radius: 16.5px; width: 100%; height: auto; }
.frame.soft { background: linear-gradient(160deg, rgba(255, 150, 138, .6), #232832 40%); box-shadow: 0 40px 80px -40px #000; }

/* the film */
#film { padding-top: clamp(70px, 8vw, 120px); background: radial-gradient(60% 50% at 50% 55%, rgba(138, 0, 0, .3), transparent 70%), var(--bg); }
.player { max-width: 1120px; margin: 0 auto; }
.player .frame { background: linear-gradient(170deg, rgba(255, 150, 138, .95), rgba(192, 0, 0, .55) 22%, #232832 55%); }
.player video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 16.5px; background: #04070b; }
.player video::cue { font-family: var(--body); font-size: .95em; background: rgba(11, 14, 19, .78); color: #fff; }
.chapters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 1120px; margin: 22px auto 0; }
.chapters button { display: inline-flex; align-items: baseline; gap: 8px; padding: 8px 14px; border-radius: 30px; border: 1px solid var(--line); background: var(--card); color: var(--soft); font-size: 14px; cursor: pointer; transition: border-color .3s, color .3s, background .3s; }
.chapters button b { font: 500 12.5px/1 var(--display); color: var(--coral); }
.chapters button:hover, .chapters button.on { color: #fff; border-color: var(--edge); background: rgba(225, 27, 34, .14); }
.film-note { margin-top: 18px; text-align: center; color: var(--mute); font-size: 13.5px; }
.film-note a { color: var(--soft); text-underline-offset: 4px; margin-left: 6px; }

/* figures under the hero */
.facts { display: grid; grid-template-columns: repeat(5, 1fr); max-width: 1120px; margin: clamp(48px, 6vw, 72px) auto 0; border: 1px solid var(--line); border-radius: 20px; background: var(--card); overflow: hidden; }
.facts div { padding: 24px 18px; text-align: center; } .facts div + div { border-left: 1px solid var(--line); }
.facts b { display: block; font: 600 clamp(28px, 2.6vw, 40px)/1.1 var(--display); letter-spacing: -.03em; }
.facts span { display: block; margin-top: 6px; color: var(--mute); font-size: 14px; line-height: 1.4; }
@media (max-width: 860px) { .facts { grid-template-columns: repeat(2, 1fr); } .facts div + div { border-left: 0; } .facts div { border-top: 1px solid var(--line); } .facts div:first-child { grid-column: 1 / -1; border-top: 0; } .facts div:nth-child(odd):not(:first-child) { border-left: 1px solid var(--line); } }

/* moving strip of words */
.strip { overflow: hidden; border-block: 1px solid #171b22; color: var(--mute); }
.strip > div { display: flex; width: max-content; animation: slide 70s linear infinite; }
.strip ul { display: flex; } .strip li { display: flex; align-items: center; padding: 15px 0; font: 500 15px/1.2 var(--body); white-space: nowrap; }
.strip li::after { content: ""; width: 5px; height: 5px; margin: 0 28px; border-radius: 50%; background: var(--red); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- cards and grids ---------- */
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1020px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.card { position: relative; overflow: hidden; isolation: isolate; padding: clamp(22px, 2.2vw, 30px); border-radius: 20px; border: 1px solid var(--line); background: var(--card); transition: border-color .4s, box-shadow .4s, translate .5s var(--ease); }
.card p { color: var(--soft); font-size: 15.5px; } .card h3 + p { margin-top: 10px; }
/* on hover a soft light comes up from the bottom right corner */
.card::before { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(80% 95% at 100% 100%, rgba(225, 27, 34, .3), transparent 70%); opacity: 0; transition: opacity .5s; }
.card:hover { border-color: var(--edge); box-shadow: 0 24px 50px -34px rgba(225, 27, 34, .8); translate: 0 -4px; }
.card:hover::before { opacity: 1; }
.gn { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 20px; border-radius: 14px; color: var(--accent); background: rgba(255, 107, 107, .1); border: 1px solid rgba(255, 107, 107, .3); }
.gn svg { width: 23px; height: 23px; }
/* four small marks at the corners of a card grid, with a faint line above and below */
.marks { position: relative; }
.marks::after { content: ""; position: absolute; inset: -12px; pointer-events: none; background: radial-gradient(circle, rgba(255, 255, 255, .42) 0 1.6px, transparent 2.2px) 0 0 / 7px 7px no-repeat, radial-gradient(circle, rgba(255, 255, 255, .42) 0 1.6px, transparent 2.2px) 100% 0 / 7px 7px no-repeat, radial-gradient(circle, rgba(255, 255, 255, .42) 0 1.6px, transparent 2.2px) 0 100% / 7px 7px no-repeat, radial-gradient(circle, rgba(255, 255, 255, .42) 0 1.6px, transparent 2.2px) 100% 100% / 7px 7px no-repeat, linear-gradient(rgba(255, 255, 255, .07), rgba(255, 255, 255, .07)) 16px 3px / calc(100% - 32px) 1px no-repeat, linear-gradient(rgba(255, 255, 255, .07), rgba(255, 255, 255, .07)) 16px calc(100% - 3px) / calc(100% - 32px) 1px no-repeat; }

/* ---------- what we found ---------- */
.verdict { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 900px) { .verdict { grid-template-columns: 1fr; } }
.score { display: flex; flex-direction: column; justify-content: space-between; gap: 26px; background: radial-gradient(70% 120% at 0 0, rgba(192, 0, 0, .22), transparent 70%), var(--card); }
.score small { color: var(--coral); font-weight: 500; font-size: 14px; letter-spacing: .02em; }
.score h3 { font-size: clamp(24px, 2.2vw, 32px); margin-top: 6px; }
.split { display: flex; height: 12px; border-radius: 8px; overflow: hidden; gap: 3px; }
.split i { display: block; height: 100%; border-radius: 3px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.legend div { display: flex; align-items: baseline; gap: 10px; }
.legend b { font: 600 34px/1 var(--display); letter-spacing: -.03em; }
.legend span { color: var(--soft); font-size: 14.5px; line-height: 1.35; max-width: 140px; }
.c-good { color: var(--good); } .c-warn { color: var(--warn); } .c-bad { color: var(--bad); }
.bg-good { background: var(--good); } .bg-warn { background: var(--warn); } .bg-bad { background: var(--bad); }
.err { display: grid; gap: 14px; align-content: center; }
.err h3 { font-size: 19px; }
.err ul { display: grid; gap: 12px; margin-top: 4px; }
.err li { display: grid; grid-template-columns: 110px 1fr 54px; align-items: center; gap: 14px; font-size: 14.5px; color: var(--soft); }
.err .tr { height: 8px; border-radius: 5px; background: var(--off); overflow: hidden; }
.err .tr i { display: block; height: 100%; width: calc(var(--v) * 6%); border-radius: 5px; background: linear-gradient(90deg, #c00000, #ff6b6b); transform-origin: left; }
.err li b { font: 600 16px/1 var(--display); color: var(--ink); text-align: right; }
.note { margin-top: 16px; display: flex; gap: 16px; align-items: flex-start; padding: 22px 26px; border-radius: 20px; border: 1px solid rgba(79, 212, 154, .25); background: radial-gradient(60% 140% at 100% 50%, rgba(79, 212, 154, .09), transparent 70%), var(--card); }
.note svg { width: 24px; height: 24px; color: var(--good); flex: none; margin-top: 2px; }
.note p { color: var(--soft); font-size: 15.5px; } .note b { color: var(--ink); font-weight: 500; }

/* ---------- today vs with Decivo ---------- */
.flips { display: grid; gap: 12px; }
.flips li { display: grid; grid-template-columns: 1fr 56px 1fr; align-items: center; gap: 12px; }
.flips li > div { padding: 20px 24px; border-radius: 18px; border: 1px solid var(--line); background: var(--card); }
.flips small { display: block; margin-bottom: 4px; font-size: 12.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.flips .old { color: var(--soft); }
.flips .old p { text-decoration: line-through; text-decoration-color: rgba(255, 107, 107, .5); text-decoration-thickness: 1.5px; }
.flips .new { border-color: var(--edge); background: radial-gradient(90% 140% at 100% 120%, rgba(225, 27, 34, .3), transparent 70%), #15101a; }
.flips .new small { color: var(--coral); } .flips .new p { font-weight: 500; }
.flips .to { display: grid; place-items: center; width: 44px; height: 44px; margin: auto; border-radius: 50%; color: var(--accent); background: rgba(255, 107, 107, .1); border: 1px solid rgba(255, 107, 107, .3); }
.flips .to svg { width: 20px; height: 20px; }
@media (max-width: 680px) { .flips li { grid-template-columns: 1fr; } .flips .to { rotate: 90deg; width: 36px; height: 36px; } }

/* ---------- journey ---------- */
.journey { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; text-align: center; }
.journey::before { content: ""; position: absolute; left: 10%; right: 10%; top: 38px; height: 2px; background: linear-gradient(90deg, rgba(255, 107, 107, .15), rgba(255, 107, 107, .7), rgba(255, 107, 107, .15)); }
.journey li { position: relative; }
.jn { display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 22px; border: 1px solid var(--line); background: var(--card2); color: var(--soft); transition: transform .4s var(--ease), color .3s, border-color .3s, box-shadow .4s; }
.jn svg { width: 28px; height: 28px; }
.journey li:hover .jn { color: var(--accent); border-color: var(--edge); transform: translateY(-5px); box-shadow: 0 20px 40px -24px rgba(225, 27, 34, .8); }
.journey li:last-child .jn { color: #fff; border-color: rgba(255, 255, 255, .2); background: var(--grad); }
.journey b { display: block; font: 500 18px/1.3 var(--display); }
.journey span { display: block; margin-top: 4px; color: var(--mute); font-size: 14.5px; line-height: 1.45; }
@media (max-width: 760px) { .journey { grid-template-columns: 1fr; text-align: left; } .journey::before { left: 37px; right: auto; top: 10px; bottom: 10px; width: 2px; height: auto; } .journey li { display: grid; grid-template-columns: 76px 1fr; gap: 0 18px; align-items: center; } .jn { margin: 0; grid-row: span 2; } }

/* a number kept as its two parts */
.parts { display: grid; grid-template-columns: 1fr 1.25fr; gap: 16px; margin-top: 56px; }
@media (max-width: 900px) { .parts { grid-template-columns: 1fr; } }
.frac { display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap; padding: 34px 20px; }
.frac .f { display: grid; text-align: center; }
.frac .f b { font: 600 clamp(24px, 2.3vw, 32px)/1.2 var(--display); letter-spacing: -.02em; }
.frac .f b:first-child { padding-bottom: 8px; border-bottom: 2px solid var(--coral); }
.frac .f b:last-child { padding-top: 8px; }
.frac .f small, .frac .eq small { color: var(--mute); font-size: 13px; }
.frac .eq { font: 500 30px/1 var(--display); color: var(--mute); }
.frac .res b { font: 600 clamp(30px, 3vw, 42px)/1 var(--display); color: var(--coral); letter-spacing: -.03em; }
.frac .res { display: grid; text-align: center; gap: 6px; }
.three { display: grid; gap: 14px; }
.three li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; }
.three li > span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(255, 107, 107, .1); border: 1px solid rgba(255, 107, 107, .3); color: var(--coral); font: 600 15px/1 var(--display); }
.three b { font-weight: 500; } .three p { color: var(--soft); font-size: 15.5px; }

/* ---------- product ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.bento > .card { grid-column: span 3; display: flex; flex-direction: column; padding: 0; }
.bento > .card.wide { grid-column: span 6; display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; }
.bento > .card.third { grid-column: span 2; }
.bento .txt { padding: clamp(22px, 2.2vw, 30px); }
.bento .q { display: block; margin-bottom: 8px; color: var(--coral); font: italic 400 17px/1.3 Georgia, "Times New Roman", serif; }
.bento .shot { margin-top: auto; padding: 0 clamp(22px, 2.2vw, 30px); }
.bento .shot img { width: 100%; aspect-ratio: 16 / 9.4; object-fit: cover; object-position: top left; border-radius: 12px 12px 0 0; border: 1px solid #2a313d; border-bottom: 0; box-shadow: 0 -20px 60px -30px rgba(225, 27, 34, .55); }
.bento .wide .shot { padding: 30px 0 0 0; align-self: end; }
.bento .wide .shot img { aspect-ratio: auto; border-radius: 12px 0 0 0; border-right: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tags span { padding: 5px 12px; border-radius: 20px; font-size: 13px; color: var(--soft); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
@media (max-width: 900px) { .bento > .card, .bento > .card.third { grid-column: span 6; } .bento > .card.wide { grid-template-columns: 1fr; } .bento .wide .shot { padding: 0 0 0 clamp(22px, 2.2vw, 30px); } }

/* every function, place by place: tabs on the left, the list on the right */
.fx { display: grid; grid-template-columns: 290px 1fr; gap: 16px; align-items: start; }
.fx-tabs { display: grid; gap: 4px; padding: 8px; border-radius: 20px; border: 1px solid var(--line); background: var(--card2); position: sticky; top: 100px; }
.fx-tabs button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 14px; border: 0; border-radius: 14px; background: none; color: var(--soft); font-size: 15px; text-align: left; cursor: pointer; transition: background .3s, color .3s; }
.fx-tabs button svg { width: 18px; height: 18px; flex: none; color: var(--mute); transition: color .3s; }
.fx-tabs button b { margin-left: auto; min-width: 26px; padding: 2px 8px; border-radius: 12px; background: rgba(255, 255, 255, .06); color: var(--mute); font: 500 12px/1.5 var(--display); text-align: center; }
.fx-tabs button:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.fx-tabs button[aria-selected="true"] { color: #fff; background: rgba(225, 27, 34, .16); box-shadow: inset 0 0 0 1px rgba(255, 107, 107, .35); }
.fx-tabs button[aria-selected="true"] svg { color: var(--accent); } .fx-tabs button[aria-selected="true"] b { background: var(--red2); color: #fff; }
.fx-panels { display: grid; }
.fx-p { grid-area: 1 / 1; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; align-content: start; }
.fx-p li { position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: 22px 1fr; gap: 4px 12px; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); transition: border-color .4s; }
.fx-p li::before { content: ""; grid-row: span 2; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: rgba(255, 107, 107, .12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff6b6b' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E") center / 14px no-repeat; border: 1px solid rgba(255, 107, 107, .3); }
.fx-p li:hover { border-color: var(--edge); }
.fx-p b { font: 500 16px/1.35 var(--display); } .fx-p span { color: var(--soft); font-size: 14.5px; line-height: 1.5; }
.js .fx-p { opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .4s var(--ease), transform .5s var(--ease), visibility 0s .5s; }
.js .fx-p.on { opacity: 1; visibility: visible; transform: none; transition: opacity .4s var(--ease), transform .5s var(--ease); }
@media (max-width: 960px) {
  .fx { grid-template-columns: 1fr; }
  .fx-tabs { position: static; display: flex; overflow-x: auto; scrollbar-width: none; padding: 6px; border-radius: 16px; }
  .fx-tabs::-webkit-scrollbar { display: none; }
  .fx-tabs button { width: auto; flex: none; white-space: nowrap; padding: 9px 12px; }
}
@media (max-width: 640px) { .fx-p { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .js .fx-p, .js .fx-p.on { transition: none; transform: none; } }

/* side by side: words and a picture */
.duo { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.duo.flip > :first-child { order: 2; }
@media (max-width: 960px) { .duo { grid-template-columns: 1fr; } .duo.flip > :first-child { order: 0; } }
.ticks { display: grid; gap: 14px; margin-top: 30px; }
.ticks li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; color: var(--soft); font-size: 16px; }
.ticks li svg { width: 22px; height: 22px; margin-top: 2px; color: var(--accent); }
.ticks b { color: var(--ink); font-weight: 500; }


.cap { margin-top: 14px; color: var(--mute); font-size: 14px; text-align: center; }

/* Qarar: the four suites */
.suites .card { padding-top: 26px; }
.sn { display: block; margin-bottom: 6px; font: 600 clamp(38px, 3.4vw, 52px)/1 var(--display); letter-spacing: -.04em; background: linear-gradient(180deg, #fff, #ff9a8f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.suites ul { display: grid; gap: 7px; margin-top: 16px; }
.suites li { display: flex; gap: 10px; align-items: baseline; color: var(--soft); font-size: 14.5px; line-height: 1.4; }
.suites li::before { content: ""; flex: none; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); translate: 0 -2px; }

/* Qarar: plan against the manual way */
.vs { border: 1px solid var(--line); border-radius: 20px; background: var(--card); padding: 22px clamp(20px, 2.4vw, 32px) 24px; }
.vs-key { display: flex; gap: 22px; justify-content: flex-end; color: var(--mute); font-size: 13.5px; margin-bottom: 6px; }
.vs-key span { display: inline-flex; align-items: center; gap: 8px; } .vs-key i { width: 14px; height: 8px; border-radius: 3px; }
.vs i.q { background: linear-gradient(90deg, #c00000, #ff6b6b); } .vs i.m { background: #3a414e; }
.vs-row { display: grid; grid-template-columns: 230px 1fr 120px; gap: 10px 24px; align-items: center; padding: 16px 0; }
.vs-row + .vs-row { border-top: 1px solid #191d25; }
.vs-nm b { display: block; font-weight: 500; } .vs-nm small { color: var(--mute); font-size: 13.5px; }
.vs-bars { display: grid; gap: 6px; }
.vs-bars div { display: flex; align-items: center; gap: 10px; }
.vs-bars i { display: block; height: 12px; width: calc(var(--w) * .82%); min-width: 4px; border-radius: 4px; transform-origin: left; transition: transform 1.1s var(--ease) .2s; }
.vs-bars em { font-style: normal; font-size: 13.5px; color: var(--soft); white-space: nowrap; }
.js .vs:not(.seen) .vs-bars i { transform: scaleX(0); }
.gain { justify-self: end; padding: 5px 12px; border-radius: 20px; font-size: 13.5px; font-weight: 500; color: var(--good); background: rgba(79, 212, 154, .1); border: 1px solid rgba(79, 212, 154, .25); white-space: nowrap; }
.vs-note { grid-column: 2 / -1; color: var(--soft); font-size: 14px; padding: 10px 14px; border-radius: 12px; background: rgba(255, 178, 107, .07); border: 1px solid rgba(255, 178, 107, .2); }
.vs-src { margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--mute); font-size: 13.5px; }
@media (max-width: 760px) { .vs-row { grid-template-columns: 1fr auto; } .vs-bars { grid-column: 1 / -1; grid-row: 2; } .vs-note { grid-column: 1 / -1; } }
.pf { display: inline-block; margin: 6px 4px 0 0; padding: 3px 10px; border-radius: 14px; font-size: 12.5px; font-weight: 500; }
.pf.ok { color: var(--good); background: rgba(79, 212, 154, .1); border: 1px solid rgba(79, 212, 154, .25); }
.pf.wn { color: var(--warn); background: rgba(255, 178, 107, .1); border: 1px solid rgba(255, 178, 107, .25); }

/* the plant floor: loss callout */
.loss { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
.ring { --v: 45; width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--red) calc(var(--v) * 1%), var(--off) 0); -webkit-mask: radial-gradient(farthest-side, transparent 72%, #000 73%); mask: radial-gradient(farthest-side, transparent 72%, #000 73%); }
.ringw { position: relative; width: 150px; height: 150px; }
.ringw b { position: absolute; inset: 0; display: grid; place-items: center; font: 600 34px/1 var(--display); }
@media (max-width: 560px) { .loss { grid-template-columns: 1fr; } }

/* phone */
.phone { max-width: 320px; margin: 0 auto; padding: 10px; border-radius: 44px; background: linear-gradient(160deg, #3a404c, #12151b 40%, #2a2f38); box-shadow: 0 50px 90px -40px #000, 0 -20px 90px -40px rgba(225, 27, 34, .6); }
.phone img { border-radius: 36px; width: 100%; height: auto; }

/* ---------- proof ---------- */
.nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 16px; }
@media (max-width: 900px) { .nums { grid-template-columns: repeat(2, 1fr); } }
.nums .card b { display: block; font: 600 clamp(32px, 3vw, 44px)/1 var(--display); letter-spacing: -.03em; }
.nums .card b small { font-size: .5em; color: var(--mute); font-weight: 500; }
.nums .card span { display: block; margin-top: 12px; color: var(--soft); font-size: 15px; }
.nums .card em { display: block; margin-top: 6px; color: var(--mute); font-size: 13.5px; font-style: normal; }

/* ---------- status ---------- */
.status { border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--card); }
.status li { display: grid; grid-template-columns: 1.1fr 2fr 150px; gap: 20px; align-items: center; padding: 18px 26px; }
.status li + li { border-top: 1px solid var(--line); }
.status li:hover { background: var(--row); }
.status b { font-weight: 500; } .status p { color: var(--soft); font-size: 15px; }
.st { justify-self: end; display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 20px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st.done { color: var(--good); background: rgba(79, 212, 154, .1); border: 1px solid rgba(79, 212, 154, .25); }
.st.part { color: var(--warn); background: rgba(255, 178, 107, .1); border: 1px solid rgba(255, 178, 107, .25); }
.st.plan { color: #a9b4c4; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .14); }
.st.new { color: var(--coral); background: rgba(255, 107, 107, .1); border: 1px solid rgba(255, 107, 107, .3); }
@media (max-width: 760px) { .status li { grid-template-columns: 1fr auto; gap: 6px 14px; padding: 18px 20px; } .status p { grid-column: 1 / -1; grid-row: 2; } .st { grid-row: 1; grid-column: 2; } }
.pace { display: flex; flex-wrap: wrap; gap: 10px 34px; margin-top: 22px; color: var(--mute); font-size: 14.5px; }
.pace b { color: var(--ink); font-weight: 600; font-family: var(--display); }

/* ---------- what we need ---------- */
.need { counter-reset: n; }
.need .card { padding-top: 26px; }
.need .card::after { counter-increment: n; content: "0" counter(n); position: absolute; right: 24px; top: 20px; font: 500 15px/1 var(--display); color: var(--mute); }
.need .who { display: inline-block; margin-top: 14px; font-size: 13px; color: var(--coral); }
.phase2 { margin-top: 16px; display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; padding: 26px 30px; border-radius: 20px; border: 1px solid var(--line); background: radial-gradient(60% 140% at 100% 50%, rgba(225, 27, 34, .26), transparent 70%), var(--card); }
.phase2 p { color: var(--soft); font-size: 15.5px; } .phase2 b { color: var(--ink); font-weight: 500; }
@media (max-width: 680px) { .phase2 { grid-template-columns: 1fr; } }

/* ---------- brochure ---------- */
/* the brochure on its shelf: red light from below, as on the portfolio site */
#brochure { background: radial-gradient(55% 40% at 28% 42%, rgba(138, 0, 0, .42), transparent 70%), var(--bg); overflow: hidden; }
.br-top { grid-template-columns: 1.1fr 1fr; }
/* the book: the cover swings open on hover to show the page inside (the portfolio's .vol) */
.vol-link { display: block; text-decoration: none; perspective: 1600px; padding: 10px 0 0; }
.vol { display: block; position: relative; transform-style: preserve-3d; transform: rotateX(10deg) rotateY(-22deg); transition: transform .8s var(--ease); }
.vol::after { content: ""; position: absolute; z-index: -1; inset: 8% 2% -8%; background: rgba(225, 27, 34, .8); filter: blur(44px); opacity: .45; transition: opacity .5s; }
.vol img { display: block; width: 100%; height: auto; border-radius: 6px; }
.vol .in { border: 1px solid #3a4250; }
.vol .cov { position: absolute; inset: 0; height: 100%; object-fit: cover; border: 1px solid #5a1a1f; transform-origin: 0 50%; backface-visibility: hidden; transition: transform 1s var(--ease); box-shadow: 18px 0 40px -20px rgba(0, 0, 0, .8); }
.vol-link:hover .vol, .vol-link:focus-visible .vol { transform: rotateX(4deg) rotateY(-8deg) translateY(-10px); }
.vol-link:hover .vol::after, .vol-link:focus-visible .vol::after { opacity: 1; }
.vol-link:hover .cov, .vol-link:focus-visible .cov { transform: rotateY(-118deg); }
.vol-hint { display: block; margin-top: 34px; text-align: center; color: var(--mute); font-size: 13.5px; transition: opacity .4s; }
.vol-link:hover .vol-hint { opacity: 0; }
@media (hover: none) { .vol-hint { display: none; } }
.spec { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 0; margin-top: 28px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, .02); overflow: hidden; }
.spec div { padding: 14px 22px; } .spec div + div { border-left: 1px solid var(--line); }
.spec dt { font: 600 22px/1.1 var(--display); letter-spacing: -.02em; } .spec dd { margin: 4px 0 0; color: var(--mute); font-size: 13px; }
.fmt { margin-top: 16px; color: var(--mute); font-size: 13.5px; }
@media (max-width: 960px) { .br-top { grid-template-columns: 1fr; } .vol-link { max-width: 560px; margin: 0 auto; } }
@media (max-width: 480px) { .spec { grid-template-columns: repeat(2, 1fr); } .spec div:nth-child(3) { border-left: 0; } .spec div:nth-child(n+3) { border-top: 1px solid var(--line); } .spec div { padding: 12px 16px; } }

/* the reader: two pages at a time on a dark desk */
.reader { margin-top: clamp(64px, 7vw, 100px); border: 1px solid var(--line); border-radius: 24px; background: radial-gradient(70% 60% at 50% 110%, rgba(225, 27, 34, .22), transparent 70%), var(--card2); padding: clamp(16px, 2vw, 26px); }
.reader-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: clamp(18px, 2.4vw, 28px); }
.chap { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; border-radius: 30px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.chap button { display: inline-flex; align-items: baseline; gap: 8px; padding: 8px 14px; border: 0; border-radius: 24px; background: none; color: var(--soft); font-size: 14px; cursor: pointer; transition: background .3s, color .3s; }
.chap button b { font: 500 12px/1 var(--display); color: var(--mute); }
.chap button:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.chap button[aria-selected="true"] { color: #fff; background: rgba(255, 255, 255, .12); } .chap button[aria-selected="true"] b { color: var(--coral); }
.nav-btns { display: flex; align-items: center; gap: 8px; }
.count { margin-right: 6px; color: var(--mute); font-size: 14px; white-space: nowrap; } .count b { color: var(--ink); font-weight: 500; }
.rb { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .04); color: #fff; cursor: pointer; transition: background .3s, border-color .3s, opacity .3s; }
.rb svg { width: 18px; height: 18px; } .rb.prev svg { rotate: 180deg; }
.rb:hover:not(:disabled) { background: rgba(225, 27, 34, .25); border-color: var(--edge); } .rb:disabled { opacity: .35; cursor: default; }
.desk { position: relative; display: grid; }
.spread { position: relative; grid-area: 1 / 1; display: grid; grid-template-columns: 1fr 1fr; max-width: 1124px; width: 100%; margin: 0 auto; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .55)); }
/* the fold between the two pages */
.spread::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 30px; width: 60px; translate: -50% 0; pointer-events: none; background: linear-gradient(90deg, transparent, rgba(0, 0, 0, .28) 46%, rgba(0, 0, 0, .45) 50%, rgba(255, 255, 255, .06) 51%, transparent); }
.spread a { position: relative; display: block; text-decoration: none; }
.spread img { width: 100%; height: auto; aspect-ratio: 562 / 397; object-fit: cover; }
.spread a:first-child img { border-radius: 8px 0 0 8px; } .spread a:last-child img { border-radius: 0 8px 8px 0; }
.spread a span { display: block; margin-top: 12px; color: var(--soft); font-size: 14px; text-align: center; }
.spread a::before { content: "Open in the PDF"; position: absolute; left: 50%; top: 42%; z-index: 1; translate: -50% 0; padding: 8px 16px; border-radius: 20px; background: rgba(11, 14, 19, .85); border: 1px solid rgba(255, 255, 255, .18); color: #fff; font: 500 13.5px/1.2 var(--body); opacity: 0; transition: opacity .3s; backdrop-filter: blur(6px); }
.spread a:hover::before, .spread a:focus-visible::before { opacity: 1; }
.js .spread { opacity: 0; visibility: hidden; transform: translateX(var(--from, 40px)) scale(.98); transition: opacity .55s var(--ease), transform .7s var(--ease), visibility 0s .7s; }
.js .spread.on { opacity: 1; visibility: visible; transform: none; transition: opacity .55s var(--ease), transform .7s var(--ease); }
.reader-tip { margin-top: 18px; text-align: center; color: var(--mute); font-size: 13px; }
@media (max-width: 700px) { .spread { grid-template-columns: 1fr; gap: 14px; } .spread::after { display: none; } .spread a img { border-radius: 8px !important; } .chap button { padding: 7px 11px; font-size: 13px; } .reader-tip { display: none; } }
@media (prefers-reduced-motion: reduce) { .js .spread, .js .spread.on { transition: none; transform: none; } .vol, .vol .cov { transition: none; } }

/* ---------- who uses it ---------- */
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 960px) { .roles { grid-template-columns: 1fr; } }
.rg { display: grid; gap: 10px; align-content: start; }
.rg h3 { font-size: 15px; font-weight: 500; color: var(--mute); letter-spacing: .04em; text-transform: uppercase; font-family: var(--body); margin: 0 0 4px 4px; }
.role { position: relative; overflow: hidden; isolation: isolate; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); transition: border-color .4s, translate .5s var(--ease); }
.role::before { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(80% 95% at 100% 100%, rgba(225, 27, 34, .28), transparent 70%); opacity: 0; transition: opacity .5s; }
.role:hover { border-color: var(--edge); translate: 0 -3px; } .role:hover::before { opacity: 1; }
.role b { display: block; font: 500 17px/1.3 var(--display); }
.role span { display: block; margin-top: 4px; color: var(--soft); font-size: 14.5px; line-height: 1.45; }
.role.muted { border-style: dashed; background: transparent; } .role.muted b { color: var(--coral); }

.lic { display: grid; grid-template-columns: auto 1fr; gap: 18px 34px; align-items: center; margin-top: 16px; padding: 26px 30px; border-radius: 20px; border: 1px solid var(--edge); background: radial-gradient(70% 160% at 0 50%, rgba(225, 27, 34, .28), transparent 70%), var(--card); }
.lic-head { display: flex; align-items: center; gap: 16px; }
.lic-head b { font: 600 clamp(48px, 5vw, 68px)/1 var(--display); letter-spacing: -.04em; color: #fff; }
.lic-head span { font: 500 17px/1.35 var(--display); } .lic-head small { color: var(--mute); font: 400 13.5px var(--body); }
.lic ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.lic li { padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); }
.lic li b { font: 600 26px/1 var(--display); color: var(--coral); margin-right: 8px; } .lic li span { font-weight: 500; }
.lic li small { display: block; margin-top: 6px; color: var(--mute); font-size: 13px; }
.lic p { grid-column: 1 / -1; color: var(--soft); font-size: 14.5px; }
@media (max-width: 960px) { .lic { grid-template-columns: 1fr; } .lic ul { grid-template-columns: repeat(2, 1fr); } }

.remind { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; margin-top: 16px; }
.remind > div { padding: 26px 28px; border-radius: 20px; border: 1px solid var(--line); background: var(--card); }
@media (max-width: 960px) { .remind { grid-template-columns: 1fr; } }
.sub-h { font-size: 19px; margin-bottom: 16px; }
.groups { width: 100%; border-collapse: collapse; font-size: 15px; }
.groups th, .groups td { text-align: left; vertical-align: top; padding: 12px 0; border-top: 1px solid var(--line); }
.groups thead th { border-top: 0; padding-top: 0; color: var(--mute); font-size: 12.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.groups tbody th { width: 34%; padding-right: 16px; font-weight: 500; white-space: nowrap; }
.groups td { color: var(--soft); }
.esc { display: grid; gap: 0; position: relative; }
.esc li { position: relative; display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding-bottom: 16px; }
.esc li:not(:last-child)::before { content: ""; position: absolute; left: 16px; top: 34px; bottom: 0; width: 2px; background: linear-gradient(rgba(255, 107, 107, .6), rgba(255, 107, 107, .15)); }
.esc li > span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 107, 107, .1); border: 1px solid rgba(255, 107, 107, .35); color: var(--coral); font: 600 14px/1 var(--display); }
.esc li:nth-child(3) > span { background: var(--grad); color: #fff; border-color: rgba(255, 150, 138, .6); }
.esc p { color: var(--soft); font-size: 15px; padding-top: 6px; } .esc b { color: var(--ink); font-weight: 500; }
.esc-note { display: flex; gap: 12px; align-items: flex-start; margin-top: 6px; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); color: var(--soft); font-size: 14.5px; }
.esc-note svg { width: 20px; height: 20px; flex: none; color: var(--accent); margin-top: 2px; }

/* ---------- sample outputs ---------- */
.samp-top { grid-template-columns: 1.2fr 1fr; }
.doc { display: block; justify-self: center; max-width: 380px; perspective: 1400px; }
.doc img { width: 100%; height: auto; border-radius: 8px; transform: rotateY(-16deg) rotateX(6deg) rotateZ(2deg); box-shadow: 30px 40px 70px -28px #000, 0 -10px 80px -30px rgba(225, 27, 34, .55); transition: transform .8s var(--ease); }
.doc:hover img { transform: rotateY(-4deg) rotateX(2deg) translateY(-8px); }
@media (max-width: 960px) { .samp-top { grid-template-columns: 1fr; } .doc { max-width: 300px; } }
.files { display: grid; gap: 12px; margin-top: clamp(48px, 6vw, 72px); }
.files li { display: grid; grid-template-columns: 58px 1fr auto; gap: 18px; align-items: center; padding: 18px 22px; border-radius: 18px; border: 1px solid var(--line); background: var(--card); transition: border-color .4s; }
.files li:hover { border-color: var(--edge); }
.files h3 { font-size: 18px; } .files p { color: var(--mute); font-size: 14px; margin-top: 3px; }
.ft { display: grid; place-items: center; width: 58px; height: 66px; border-radius: 8px 16px 8px 8px; font: 600 12.5px/1 var(--display); letter-spacing: .04em; }
.ft.pdf { color: #ff8a80; background: rgba(225, 27, 34, .12); border: 1px solid rgba(255, 107, 107, .35); }
.ft.xls { color: var(--good); background: rgba(79, 212, 154, .08); border: 1px solid rgba(79, 212, 154, .3); }
.dl { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.dl a { display: inline-flex; align-items: baseline; gap: 8px; padding: 9px 16px; border-radius: 30px; border: 1px solid rgba(255, 255, 255, .2); text-decoration: none; font-weight: 500; font-size: 14.5px; white-space: nowrap; transition: background .3s, border-color .3s; }
.dl a:hover { background: rgba(225, 27, 34, .22); border-color: var(--edge); }
.dl a small { color: var(--mute); font-weight: 400; font-size: 12.5px; }
@media (max-width: 760px) { .files li { grid-template-columns: 46px 1fr; } .ft { width: 46px; height: 54px; } .dl { grid-column: 1 / -1; justify-content: flex-start; } }

/* ---------- end ---------- */
.end { text-align: center; background: radial-gradient(60% 90% at 50% 0, rgba(192, 0, 0, .26), transparent 70%), var(--bg); border-top: 1px solid #171b22; }
.end h2 { font-size: clamp(32px, 3.8vw, 56px); margin-bottom: 18px; }
.end .lede { margin: 0 auto 34px; }
.end .acts { justify-content: center; }
.links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin-top: 26px; color: var(--mute); font-size: 14.5px; }
.links a { color: var(--soft); text-underline-offset: 4px; }
footer { padding: 28px var(--gut); border-top: 1px solid #171b22; color: var(--mute); font-size: 13.5px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; align-items: center; }
footer img { height: 24px; width: auto; }

/* ---------- motion: things rise a little as they arrive ---------- */
.up { transition: opacity .9s var(--ease), translate 1s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js .up { opacity: 0; translate: 0 40px; } .js .up.seen { opacity: 1; translate: none; }
.js .err .tr i { transform: scaleX(0); transition: transform 1.2s var(--ease) .3s; } .js .err.seen .tr i { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .up { opacity: 1; translate: none; transition: none; } .strip > div, .deck::before { animation: none; }
  .js .err .tr i { transform: none; } html { scroll-behavior: auto; }
}

/* ---------- print: keep the dark stage, one section per page where it fits ---------- */
@media print {
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .bar, .strip { display: none; } .js .up { opacity: 1; translate: none; }
  section { break-inside: avoid-page; padding-block: 48px; } .hero { padding-top: 48px; }
}
