/* theme.css - the shared look of every page on autokeyclicker.app. Linked after each page's own
   <style> (tools/site-chrome.js adds the link), so these rules win over the older per-page ones and
   every page shares one palette, type, buttons and cards. Motion lives in js/site-fx.js; the
   classes it adds (akc-reveal, akc-img, the image viewer) are styled at the end of this file.
   Visitors who ask their system for reduced motion get the same look, still. */

:root {
    /* The palette, under the names the pages already use. */
    --bg-color: #0b0c12;
    --surface-color: #151722;
    --accent-color: #00ff88;
    --text-main: #f4f6fb;
    --text-muted: #9aa1b9;
    --border: rgba(255, 255, 255, 0.08);
    --akc-surface-2: #1b1e2c;
    --akc-border-strong: rgba(255, 255, 255, 0.14);
    --akc-accent-2: #00d4ff;
    --akc-accent-soft: rgba(0, 255, 136, 0.12);
    --akc-ease: cubic-bezier(.2, .7, .2, 1);
    --akc-font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
    --akc-font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    color-scheme: dark;
}

html { scroll-padding-top: 84px; background: #0b0c12; }
body {
    /* A soft green glow at the top of every page, the homepage hero's colors. */
    background:
        radial-gradient(1100px 520px at 50% -180px, rgba(0, 255, 136, 0.09), transparent 70%),
        radial-gradient(700px 400px at 100% 0, rgba(0, 212, 255, 0.05), transparent 70%),
        var(--bg-color);
    background-repeat: no-repeat;
    color: var(--text-main);
    font-family: var(--akc-font);
    -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font-family: inherit; }
h1, h2, h3, h4 { font-family: var(--akc-font-display); letter-spacing: -0.02em; }
h1 { font-weight: 750; }
h2 { font-weight: 700; }
::selection { background: rgba(0, 255, 136, 0.28); color: #fff; }

/* Thin, dark scrollbars to match. */
* { scrollbar-width: thin; scrollbar-color: #2b2f42 transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #2b2f42; border-radius: 10px; border: 2px solid var(--bg-color); }
::-webkit-scrollbar-thumb:hover { background: #3a3f57; }
::-webkit-scrollbar-track { background: transparent; }

a { text-underline-offset: 3px; }
.lede, .sub { color: var(--text-muted); }

kbd {
    font-family: Consolas, "SF Mono", Menlo, monospace;
    background: var(--akc-surface-2);
    border: 1px solid var(--akc-border-strong);
    border-bottom-width: 2px;
    border-radius: 6px;
    color: var(--text-main);
}
:not(pre) > code { border-radius: 6px; }

/* === BUTTONS === one shape everywhere, with a light sweep on hover. */
.btn {
    position: relative; overflow: hidden;
    border-radius: 10px;
    font-weight: 700;
    transition: transform .25s var(--akc-ease), box-shadow .25s var(--akc-ease), background-color .25s, border-color .25s, color .25s;
}
.btn::after {
    content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
    transform: skewX(-20deg);
    transition: left .6s var(--akc-ease);
    pointer-events: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -8px rgba(0, 255, 136, .55); }
.btn:hover::after { left: 130%; }
.btn-secondary { background: rgba(255, 255, 255, 0.03); color: var(--text-main); border-color: var(--akc-border-strong); }
.btn-secondary::after { background: linear-gradient(100deg, transparent, rgba(0, 255, 136, .18), transparent); }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.05); border-color: var(--accent-color); color: var(--accent-color); box-shadow: 0 10px 30px -12px rgba(0, 255, 136, .35); }
.btn[aria-disabled="true"], .btn:disabled { transform: none; box-shadow: none; }
.btn[aria-disabled="true"]::after, .btn:disabled::after { display: none; }

/* === CARDS === the panels each page draws (download platforms, changelog releases, notes,
   the sign-in card, ...) get the homepage's card surface. Only colors, corners and shadow change -
   each page keeps its own spacing. */
.platform, .release, .card, .more, .setup-note, .price-box, .download-card, .feature-card, details.faq {
    border-color: var(--border);
    border-radius: 16px;
    background-color: var(--surface-color);
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0));
    box-shadow: 0 20px 50px -30px rgba(0, 0, 0, 0.7);
    transition: border-color .3s, transform .35s var(--akc-ease), box-shadow .35s var(--akc-ease);
}
.platform:hover, .release:hover, .more:hover { border-color: rgba(0, 255, 136, 0.28); box-shadow: 0 26px 60px -30px rgba(0, 0, 0, 0.8), 0 0 40px -24px rgba(0, 255, 136, .35); }
.platform.current { border-color: rgba(0, 255, 136, 0.5); box-shadow: 0 0 60px -24px rgba(0, 255, 136, .4); }
.note { border-radius: 12px; background-color: var(--surface-color); }

/* Document pages (Docs, Mac setup, legal pages, changelog): section headings with an accent tick. */
article h2, main > h2, .release h2 { position: relative; }
article > section > h2::before, main > section > h2::before {
    content: ""; display: inline-block; width: 4px; height: 0.9em; margin-right: 12px; vertical-align: -0.08em;
    border-radius: 3px; background: linear-gradient(var(--accent-color), var(--akc-accent-2));
}

/* The Docs / Mac setup sidebar: the section in view is lit (js/site-fx.js marks it). */
/* scoped to the page column (.wrap) so no other aside is touched */
.wrap > aside a { border-left: 2px solid transparent; padding-left: 12px !important; margin-left: -2px; transition: color .2s, border-color .2s; }
.wrap > aside a.akc-current { color: var(--accent-color) !important; border-left-color: var(--accent-color); }
.wrap > aside { border-left: 1px solid var(--border); }

/* Forms (sign-in, upload): one focus ring. */
input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="url"], input[type="number"], select, textarea {
    border-radius: 10px;
    transition: border-color .2s, box-shadow .2s;
}
input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus, input[type="search"]:focus, input[type="url"]:focus, input[type="number"]:focus, select:focus, textarea:focus {
    outline: none; border-color: var(--accent-color); box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.18);
}
:focus-visible { outline: 2px solid var(--accent-color); outline-offset: 2px; }

details > summary { cursor: pointer; transition: color .2s; }
details > summary:hover { color: var(--accent-color); }

/* === APP PAGES === Account, Sign in, Upload, the Themes and Macros galleries, Theme Maker and
   the 404 page - <body class="akc-app">. Everything here sits under that body class or an akc-
   class name, so the homepage and the document pages are untouched. The homepage's pieces, for
   pages that are apps: a hero header with a slow glow, an eyebrow, a big display heading, glass
   cards that glow under the pointer, one input look, badges, messages, empty and loading states.
   Motion (akc-rise, the pointer glow) is driven by js/site-fx.js. */
body.akc-app { --akc-danger: #ff6b6b; --akc-caution: #ffcc4d; line-height: 1.6; }
body.akc-app [hidden] { display: none !important; }
.akc-wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* The page header: centered, over two soft glows that drift (transform only) and a faint grid. */
.akc-hero { position: relative; isolation: isolate; overflow: hidden; text-align: center; padding: 76px 24px 44px; }
.akc-hero-bg {
    position: absolute; inset: 0; z-index: -1; pointer-events: none;
    /* fades out before the header's bottom edge, so the glow never ends in a line */
    -webkit-mask-image: linear-gradient(#000 45%, transparent 98%);
            mask-image: linear-gradient(#000 45%, transparent 98%);
}
.akc-hero-bg::before {
    content: ""; position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
    background-size: 56px 56px; background-position: center top;
    -webkit-mask-image: radial-gradient(ellipse 55% 75% at 50% 20%, #000 15%, transparent 70%);
            mask-image: radial-gradient(ellipse 55% 75% at 50% 20%, #000 15%, transparent 70%);
}
.akc-hero-bg i {
    position: absolute; top: -320px; left: calc(50% - 600px); width: 620px; height: 620px; border-radius: 50%;
    background: radial-gradient(closest-side, rgba(0, 255, 136, .17), transparent);
    animation: akc-drift-a 18s ease-in-out infinite alternate;
}
.akc-hero-bg i + i {
    left: auto; right: calc(50% - 600px); top: -260px; width: 560px; height: 560px;
    background: radial-gradient(closest-side, rgba(0, 212, 255, .12), transparent);
    animation-name: akc-drift-b; animation-duration: 23s;
}
@keyframes akc-drift-a { to { transform: translate(110px, 70px) scale(1.12); } }
@keyframes akc-drift-b { to { transform: translate(-90px, 100px) scale(.9); } }

.akc-eyebrow {
    position: relative; display: inline-flex; align-items: center;
    padding: 5px 14px 5px 28px; margin: 0 0 20px;
    border: 1px solid var(--akc-border-strong); border-radius: 999px; background: rgba(255, 255, 255, .03);
    font-size: .74rem; font-weight: 650; letter-spacing: .13em; text-transform: uppercase; line-height: 1.5;
    color: var(--accent-color);
}
.akc-eyebrow::before, .akc-eyebrow::after {
    content: ""; position: absolute; left: 12px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px;
    border-radius: 50%; background: currentColor;
}
.akc-eyebrow::after { animation: akc-ping 2.2s var(--akc-ease) infinite; }
@keyframes akc-ping { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(3.2); opacity: 0; } }
.akc-eyebrow.danger { color: var(--akc-danger); border-color: rgba(255, 107, 107, .3); background: rgba(255, 107, 107, .05); }
.akc-eyebrow.danger::after { animation: none; }
.akc-title { font-size: clamp(2.3rem, 5.2vw, 3.6rem); line-height: 1.08; font-weight: 750; letter-spacing: -0.03em; margin: 0 0 16px; }
.akc-grad { background: linear-gradient(90deg, var(--accent-color), var(--akc-accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.akc-lede { color: var(--text-muted); font-size: 1.1rem; max-width: 640px; margin: 0 auto; }
.akc-lede code, .akc-app :not(pre) > code {
    font-family: Consolas, "SF Mono", Menlo, monospace; font-size: .86em;
    background: var(--akc-surface-2); border: 1px solid var(--border); padding: 1px 7px; color: var(--text-main);
}

/* Glass card. .akc-glow adds the pointer-following glow (js/site-fx.js sets --mx/--my). */
.akc-panel {
    position: relative;
    border: 1px solid var(--border); border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, 0) 55%), var(--surface-color);
    box-shadow: 0 24px 60px -36px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(255, 255, 255, .04);
    transition: border-color .3s, box-shadow .35s var(--akc-ease), transform .35s var(--akc-ease);
}
.akc-glow::before {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    opacity: 0; transition: opacity .35s;
    background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgba(0, 255, 136, .09), transparent 60%);
}
.akc-glow > * { position: relative; }
.akc-glow:hover::before { opacity: 1; }
.akc-glow:hover {
    border-color: rgba(0, 255, 136, .26);
    box-shadow: 0 30px 70px -36px rgba(0, 0, 0, .9), 0 0 46px -26px rgba(0, 255, 136, .42), inset 0 1px 0 rgba(255, 255, 255, .05);
}

.akc-icon {
    flex: none; width: 42px; height: 42px; border-radius: 12px;
    display: grid; place-items: center;
    background: var(--akc-accent-soft); color: var(--accent-color); border: 1px solid rgba(0, 255, 136, .25);
}
.akc-icon svg { width: 20px; height: 20px; }
.akc-icon.danger { background: rgba(255, 107, 107, .1); color: var(--akc-danger); border-color: rgba(255, 107, 107, .3); }
.akc-icon.caution { background: rgba(255, 204, 77, .1); color: var(--akc-caution); border-color: rgba(255, 204, 77, .3); }
.akc-card-head { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; }
.akc-card-head h2 { margin: 0; font-size: 1.15rem; line-height: 1.3; color: var(--text-main); }
.akc-card-head p { margin: 2px 0 0; color: var(--text-muted); font-size: .9rem; line-height: 1.45; }

/* Buttons on app pages: the homepage's (theme.css adds the sweep and lift above). */
body.akc-app .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--accent-color); color: #04130b; border: 1px solid var(--accent-color);
    padding: 12px 22px; font-size: .95rem; font-weight: 700; line-height: 1.25;
    text-decoration: none; cursor: pointer; white-space: nowrap;
}
body.akc-app .btn:hover { background: var(--accent-color); color: #04130b; opacity: 1; }
body.akc-app .btn-secondary, body.akc-app .btn-outline { background: rgba(255, 255, 255, .03); color: var(--text-main); border-color: var(--akc-border-strong); }
body.akc-app .btn-outline::after { background: linear-gradient(100deg, transparent, rgba(0, 255, 136, .18), transparent); }
body.akc-app .btn-secondary:hover, body.akc-app .btn-outline:hover {
    background: rgba(255, 255, 255, .05); border-color: var(--accent-color); color: var(--accent-color);
    box-shadow: 0 10px 30px -12px rgba(0, 255, 136, .35);
}
body.akc-app .btn-danger { background: rgba(255, 107, 107, .1); color: #ff8a8a; border-color: rgba(255, 107, 107, .4); }
body.akc-app .btn-danger::after { background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .25), transparent); }
body.akc-app .btn-danger:hover { background: #e5484d; color: #fff; border-color: #e5484d; box-shadow: 0 10px 30px -10px rgba(255, 80, 80, .6); }
body.akc-app .btn-sm { padding: 8px 14px; font-size: .85rem; border-radius: 9px; }
body.akc-app .btn:disabled, body.akc-app .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.akc-btn-icon { width: 16px; height: 16px; flex: none; }

/* One input look. */
.akc-input {
    width: 100%; margin: 0;
    background-color: rgba(5, 6, 10, .45); color: var(--text-main);
    border: 1px solid var(--akc-border-strong); border-radius: 10px;
    padding: 11px 14px; font-size: .95rem; line-height: 1.4;
    transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.akc-input::placeholder { color: #5f6680; }
.akc-input:hover { border-color: rgba(255, 255, 255, .22); }
.akc-input:focus { outline: none; border-color: var(--accent-color); box-shadow: 0 0 0 3px rgba(0, 255, 136, .18); background-color: rgba(5, 6, 10, .6); }
select.akc-input {
    -webkit-appearance: none; appearance: none; cursor: pointer; padding-right: 38px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa1b9' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
}
select.akc-input option { background: var(--surface-color); color: var(--text-main); }
input[type="search"].akc-input {
    padding-left: 42px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa1b9' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: 14px center; background-size: 17px;
}
.akc-label { display: block; font-size: .85rem; font-weight: 600; color: #c9cede; margin: 0 0 7px; }
body.akc-app input[type="checkbox"], body.akc-app input[type="radio"] { accent-color: var(--accent-color); }

/* The pages' own status line (their scripts set class="msg show info|error"). */
body.akc-app .msg {
    display: none; position: relative;
    margin-top: 14px; padding: 11px 14px 11px 40px; border-radius: 10px; border: 1px solid transparent;
    font-size: .9rem; line-height: 1.5;
}
body.akc-app .msg.show { display: block; animation: akc-pop .35s var(--akc-ease); }
body.akc-app .msg::before {
    content: ""; position: absolute; left: 14px; top: 13px; width: 16px; height: 16px; background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / contain no-repeat;
}
body.akc-app .msg.error::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5v5.5M12 16.5v.5'/%3E%3C/svg%3E");
            mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5v5.5M12 16.5v.5'/%3E%3C/svg%3E");
}
body.akc-app .msg.info { background: rgba(0, 255, 136, .07); border-color: rgba(0, 255, 136, .25); color: #7dffc0; }
body.akc-app .msg.error { background: rgba(255, 107, 107, .08); border-color: rgba(255, 107, 107, .32); color: #ff8f8f; }
@keyframes akc-pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* Badges. */
body.akc-app .badge, .akc-badge {
    display: inline-flex; align-items: center; gap: 5px; margin: 0;
    font-size: .72rem; font-weight: 600; line-height: 1.5; letter-spacing: .01em;
    padding: 2px 9px; border-radius: 999px;
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); color: #b6bccf;
}
body.akc-app .badge-tag { background: rgba(0, 255, 136, .09); border-color: rgba(0, 255, 136, .22); color: var(--accent-color); }
body.akc-app .badge-hidden { background: rgba(255, 107, 107, .1); border-color: rgba(255, 107, 107, .3); color: var(--akc-danger); }

/* Empty and loading states. */
.akc-empty { text-align: center; padding: 40px 20px; color: var(--text-muted); }
.akc-empty .akc-icon { margin: 0 auto 16px; width: 54px; height: 54px; border-radius: 16px; }
.akc-empty .akc-icon svg { width: 24px; height: 24px; }
.akc-empty h3, .akc-empty .akc-empty-title { color: var(--text-main); font-size: 1.1rem; font-weight: 650; margin: 0 0 6px; }
.akc-empty p { margin: 0 auto 18px; max-width: 420px; }
.akc-skel { position: relative; overflow: hidden; display: block; background: rgba(255, 255, 255, .055); border-radius: 8px; }
.akc-skel::after {
    content: ""; position: absolute; inset: 0; transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .07), transparent);
    animation: akc-shimmer 1.4s ease-in-out infinite;
}
@keyframes akc-shimmer { to { transform: translateX(100%); } }

/* Numbered steps (the galleries' "Installing" boxes). */
.akc-steps { list-style: none; counter-reset: akc-step; padding: 0; margin: 0; display: grid; gap: 16px; }
.akc-steps > li { counter-increment: akc-step; position: relative; padding: 4px 0 0 50px; min-height: 36px; color: var(--text-muted); }
.akc-steps > li::before {
    content: counter(akc-step); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 10px;
    display: grid; place-items: center;
    background: var(--akc-accent-soft); color: var(--accent-color); border: 1px solid rgba(0, 255, 136, .3);
    font-weight: 700; font-size: .92rem;
}
.akc-steps strong { color: var(--text-main); }

/* A short note with an icon beside it. */
.akc-callout { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 14px; border: 1px solid rgba(0, 255, 136, .2); background: rgba(0, 255, 136, .04); color: var(--text-muted); font-size: .93rem; }
.akc-callout .akc-icon { width: 34px; height: 34px; border-radius: 10px; }
.akc-callout .akc-icon svg { width: 17px; height: 17px; }
.akc-callout strong { color: var(--text-main); }
.akc-callout.caution { border-color: rgba(255, 204, 77, .25); background: rgba(255, 204, 77, .04); }

/* Fade-ins (js/site-fx.js): marked in the markup, or every row a page's script adds to a list
   marked data-akc-stagger. `translate`, not `transform`, so a card's own hover lift still works. */
.akc-fx .akc-rise {
    opacity: 0; translate: 0 22px;
    transition: opacity .7s var(--akc-ease) var(--akc-d, 0s), translate .7s var(--akc-ease) var(--akc-d, 0s),
                transform .35s var(--akc-ease), border-color .3s, box-shadow .35s var(--akc-ease), background-color .25s, color .25s;
}
.akc-fx .akc-rise.akc-in { opacity: 1; translate: none; }

@media (max-width: 600px) {
    .akc-wrap { padding: 0 16px; }
    .akc-hero { padding: 52px 16px 30px; }
    .akc-lede { font-size: 1.02rem; }
    .akc-hero-bg i { width: 420px; height: 420px; left: -180px; top: -240px; }
    .akc-hero-bg i + i { right: -180px; left: auto; top: -200px; width: 380px; height: 380px; }
}

/* === ONE-STEP PAGE LOAD === the page stays hidden until it is ready - its content in place, the
   images on screen loaded, any data it fetches (Account, the galleries) rendered - then appears
   whole, in one short fade (js/site-fx.js adds akc-ready). If that script never runs, the page
   shows anyway after 2 seconds; without JS at all, at once (a <noscript> rule in the menu block). */
body { opacity: 0; animation: akc-failsafe 0.01s linear 2s forwards; }
@keyframes akc-failsafe { to { opacity: 1; } }
html.akc-ready body { opacity: 1; animation: none; transition: opacity .35s ease; }
/* What is already on screen at that moment is simply there - no second animation after the fade. */
html.akc-instant *, html.akc-instant *::before, html.akc-instant *::after { transition: none !important; }

/* Reading progress, on long pages (js/site-fx.js adds the bar). */
.akc-progress {
    position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 101;
    background: linear-gradient(90deg, var(--accent-color), var(--akc-accent-2));
    transform-origin: 0 50%; transform: scaleX(0);
    pointer-events: none;
}

/* === SCROLL FADE-INS (js/site-fx.js) === */
.akc-js .akc-reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--akc-ease), transform .8s var(--akc-ease); transition-delay: var(--akc-d, 0s); }
.akc-js .akc-reveal.akc-in { opacity: 1; transform: none; }

/* === IMAGES === every content image fades up sharp from a soft blur, tilts toward the pointer on
   hover, and opens in the viewer below when clicked. */
.akc-img { cursor: zoom-in; transition: transform .45s var(--akc-ease), box-shadow .45s var(--akc-ease), filter .9s var(--akc-ease), opacity .9s var(--akc-ease); will-change: transform; }
.akc-js .akc-img.akc-img-wait { opacity: 0; filter: blur(10px); transform: translateY(18px) scale(.97); }
.akc-img:hover { box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .9), 0 0 0 1px rgba(0, 255, 136, .35), 0 0 40px -12px rgba(0, 255, 136, .35); }
.akc-img.akc-lifted { opacity: 0 !important; }
/* While js/site-fx.js eases the tilt every frame, a CSS transition on top of it only adds lag and judder. */
.akc-img.akc-tilting { transition: box-shadow .45s var(--akc-ease), filter .9s var(--akc-ease), opacity .9s var(--akc-ease); }
.akc-img.akc-no-tilt:hover { box-shadow: none; }

/* === THE IMAGE VIEWER === */
.akc-lb { position: fixed; inset: 0; z-index: 1000; }
.akc-lb-backdrop {
    position: absolute; inset: 0;
    background: rgba(5, 6, 10, 0.78);
    -webkit-backdrop-filter: blur(10px) saturate(120%); backdrop-filter: blur(10px) saturate(120%);
    opacity: 0; transition: opacity .45s var(--akc-ease);
}
.akc-lb.akc-open .akc-lb-backdrop { opacity: 1; }
/* Two slow glows behind the picture move against the pointer - the depth half of the parallax. */
.akc-lb-glow { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(90px); opacity: 0; transition: opacity .6s; pointer-events: none; }
.akc-lb-glow.g1 { left: -20vmax; top: -25vmax; background: rgba(0, 255, 136, .16); }
.akc-lb-glow.g2 { right: -22vmax; bottom: -28vmax; background: rgba(0, 212, 255, .12); }
.akc-lb.akc-open .akc-lb-glow { opacity: 1; }
.akc-lb-stage { position: absolute; inset: 0; perspective: 1600px; pointer-events: none; }
.akc-lb-fig {
    position: absolute; margin: 0;
    transform-origin: 0 0;
    transition: transform .55s var(--akc-ease);
    pointer-events: auto; cursor: zoom-out;
}
.akc-lb-tilt {
    position: relative; width: 100%; height: 100%;
    transform-style: preserve-3d;
    border-radius: 14px;
    box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .1), 0 0 80px -20px rgba(0, 255, 136, .35);
    overflow: hidden;
}
.akc-lb-tilt img { display: block; width: 100%; height: 100%; object-fit: contain; background: #0b0c12; }
.akc-lb-glare {
    position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
    background: radial-gradient(600px circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, .14), transparent 45%);
    mix-blend-mode: soft-light;
}
.akc-lb.akc-open .akc-lb-glare { opacity: 1; }
.akc-lb-cap {
    position: absolute; left: 0; right: 0; bottom: 22px; margin: 0 auto; max-width: min(760px, 90vw);
    text-align: center; color: #c9cede; font-size: 0.95rem; line-height: 1.5;
    opacity: 0; transform: translateY(10px); transition: opacity .4s .15s, transform .4s .15s var(--akc-ease);
    pointer-events: none;
}
.akc-lb.akc-open .akc-lb-cap { opacity: 1; transform: none; }
.akc-lb-close {
    position: absolute; top: 18px; right: 18px; width: 44px; height: 44px;
    display: grid; place-items: center;
    border-radius: 50%; border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(21, 23, 34, .7); color: #fff; cursor: pointer;
    opacity: 0; transform: scale(.8); transition: opacity .3s .1s, transform .3s .1s var(--akc-ease), background-color .2s;
}
.akc-lb.akc-open .akc-lb-close { opacity: 1; transform: none; }
.akc-lb-close:hover { background: rgba(0, 255, 136, .18); border-color: rgba(0, 255, 136, .5); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .akc-js .akc-reveal, .akc-js .akc-img.akc-img-wait { opacity: 1; transform: none; filter: none; }
    .akc-fx .akc-rise { opacity: 1; translate: none; }
}
