@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,500;9..144,600&family=Manrope:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* ==========================================================================
   Afterplace Brasil: global stylesheet
   1. tokens  2. base  3. header  4. footer  5. primitives  6. sections
   ========================================================================== */

:root {
  --ink: #0a1020;
  --ink-2: #1a2440;
  --mut: #5a6479;
  --line: #dde4f0;
  --bg: #f5f7fb;
  --card: #ffffff;
  --ice: #eaf0ff;
  --ice-2: #dbe6ff;
  --acc: #2457ff;
  --acc-2: #0ea5e9;
  --hot: #ef4a5f;
  --dark: #0b1220;
  --r: 20px;
  --r-sm: 12px;
  --sh: 0 24px 60px -30px rgba(18, 36, 90, 0.35);
  --sh-sm: 0 10px 30px -18px rgba(18, 36, 90, 0.3);
  --f-head: 'Fraunces', Georgia, 'Times New Roman', serif;
  --f-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --hdr: 120px;
}

html { scroll-behavior: smooth; scroll-padding-top: 130px; }
body { font-family: var(--f-body); background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; }
::selection { background: var(--acc); color: #fff; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 6px; }

/* ---------- typography (scoped to main to beat the tailwind preflight) ---------- */
main { display: block; }
main h1, main h2, main h3, main h4 { font-family: var(--f-head); font-weight: 400; letter-spacing: -0.02em; line-height: 1.04; color: inherit; }
main h1 { font-size: clamp(2.5rem, 7.2vw, 5.6rem); font-weight: 300; line-height: 0.98; letter-spacing: -0.035em; }
main h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); font-weight: 300; }
main h3 { font-size: clamp(1.25rem, 2vw, 1.65rem); line-height: 1.15; font-weight: 400; }
main h4 { font-size: 1.05rem; font-family: var(--f-body); font-weight: 700; letter-spacing: 0; line-height: 1.3; }
main h1 em, main h2 em { font-style: italic; color: var(--acc); }
main p { line-height: 1.7; color: var(--mut); }
main .ap-lead { font-size: clamp(1.02rem, 1.4vw, 1.2rem); line-height: 1.65; color: var(--mut); max-width: 62ch; }
main a.ap-link, main p a, main li a.ap-in { color: var(--acc); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
main a.ap-link:hover, main p a:hover { color: var(--ink); }
main ul.ap-list, main ol.ap-list { list-style: none; padding: 0; margin: 0; }
main strong { color: var(--ink); font-weight: 700; }

.ap-wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: clamp(18px, 4vw, 44px); }
.ap-wrap--narrow { max-width: 920px; }
.ap-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ap-hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; height: 0; width: 0; overflow: hidden; }

/* ---------- header ---------- */
.afterplacebr-header { position: sticky; top: 0; z-index: 60; }
.afterplacebr-topbar { background: var(--ink); color: #c9d4ee; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.02em; transition: max-height 0.3s, opacity 0.3s; max-height: 44px; overflow: hidden; }
.afterplacebr-topbar__in { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 10px; }
.afterplacebr-contacts { display: flex; flex-wrap: wrap; gap: 8px 26px; list-style: none; margin: 0; padding: 0; }
.afterplacebr-contacts li { display: flex; align-items: center; gap: 8px; }
.afterplacebr-contacts i { color: #7fa2ff; font-size: 11px; }
.afterplacebr-contacts a { color: inherit; }
.afterplacebr-contacts a:hover { color: #fff; }
.afterplacebr-topbar__tag { color: #7fa2ff; text-transform: uppercase; letter-spacing: 0.14em; font-size: 10.5px; white-space: nowrap; }
.afterplacebr-header.is-scrolled .afterplacebr-topbar { max-height: 0; opacity: 0; }
.afterplacebr-bar { background: rgba(255, 255, 255, 0.86); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); border-bottom: 1px solid var(--line); }
.afterplacebr-bar__in { display: flex; align-items: center; gap: 22px; padding-block: 12px; }
.afterplacebr-logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.afterplacebr-logo__img { width: 100px; height: auto; display: block; }
.afterplacebr-logo__img--footer { width: 120px; }
.afterplacebr-nav { margin-left: auto; display: none; }
.afterplacebr-nav ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.afterplacebr-nav a { display: block; padding: 9px 11px; font-size: 13px; font-weight: 600; color: var(--ink-2); border-radius: 999px; transition: background 0.2s, color 0.2s; white-space: nowrap; }
.afterplacebr-nav a:hover { background: var(--ice); color: var(--acc); }
.afterplacebr-nav a[aria-current='page'] { background: var(--ink); color: #fff; }
.afterplacebr-cta { display: none; }
.afterplacebr-burger { margin-left: auto; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 18px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.2s, color 0.2s; }
.afterplacebr-burger:hover, .afterplacebr-burger[aria-expanded='true'] { background: var(--ink); color: #fff; }
.afterplacebr-mobile-menu { display: none; background: #fff; border-bottom: 1px solid var(--line); max-height: calc(100vh - 80px); overflow-y: auto; padding: 14px clamp(18px, 4vw, 44px) 28px; box-shadow: 0 30px 60px -30px rgba(10, 16, 32, 0.4); }
.afterplacebr-mobile-menu.is-open { display: block; }
.afterplacebr-mobile-nav ul { list-style: none; margin: 0; padding: 0; display: grid; }
.afterplacebr-mobile-nav a { display: flex; justify-content: space-between; align-items: center; padding: 15px 4px; border-bottom: 1px solid var(--line); font-family: var(--f-head); font-size: 1.4rem; font-weight: 300; color: var(--ink); }
.afterplacebr-mobile-nav a::after { content: '\f061'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 12px; color: var(--acc); }
.afterplacebr-mobile-contacts { display: grid; gap: 12px; margin-top: 22px; font-size: 14px; color: var(--mut); }
.afterplacebr-mobile-contacts__row { display: flex; gap: 12px; align-items: flex-start; line-height: 1.5; }
.afterplacebr-mobile-contacts__row i { color: var(--acc); margin-top: 4px; width: 16px; text-align: center; }
.afterplacebr-mobile-contacts a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1099px) { .afterplacebr-topbar { display: none; } }
@media (min-width: 1100px) {
  .afterplacebr-nav { display: block; }
  .afterplacebr-cta { display: inline-flex; }
  .afterplacebr-burger { display: none; }
  .afterplacebr-mobile-menu { display: none !important; }
}
@media (min-width: 1100px) and (max-width: 1320px) { .afterplacebr-nav a { padding: 9px 8px; font-size: 12.5px; } .afterplacebr-cta span { display: none; } }

/* ---------- footer ---------- */
.afterplacebr-footer { background: var(--ink); color: #b8c3de; padding-top: clamp(56px, 8vw, 100px); position: relative; margin-top: 0; }
.afterplacebr-footer a { color: #b8c3de; transition: color 0.2s; }
.afterplacebr-footer a:hover { color: #fff; }
.afterplacebr-footer__top { display: grid; gap: 34px; grid-template-columns: 1fr; padding-bottom: 46px; }
.afterplacebr-footer__brand { max-width: 420px; }
.afterplacebr-footer__about { margin: 18px 0 22px; font-size: 14px; line-height: 1.75; color: #98a5c6; }
.afterplacebr-footer .afterplacebr-logo__img { filter: brightness(0) invert(1); }
.afterplacebr-social { display: flex; gap: 10px; list-style: none; padding: 0; margin: 0; }
.afterplacebr-social a { width: 44px; height: 44px; border: 1px solid #2a3558; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; transition: background 0.25s, border-color 0.25s, transform 0.25s; }
.afterplacebr-social a:hover { background: var(--acc); border-color: var(--acc); transform: translateY(-3px); }
.afterplacebr-fold summary { list-style: none; cursor: pointer; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: #fff; padding: 14px 0; border-bottom: 1px solid #222d4d; display: flex; justify-content: space-between; align-items: center; }
.afterplacebr-fold summary::-webkit-details-marker { display: none; }
.afterplacebr-fold summary::after { content: '\f067'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 10px; color: #7fa2ff; transition: transform 0.25s; }
.afterplacebr-fold[open] summary::after { content: '\f068'; }
.afterplacebr-fold ul { list-style: none; margin: 0; padding: 16px 0 6px; display: grid; gap: 10px; font-size: 14px; }
.afterplacebr-footer__contacts li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.5; }
.afterplacebr-footer__contacts i { color: #7fa2ff; width: 16px; text-align: center; margin-top: 4px; }
.afterplacebr-footer__legal { border-top: 1px solid #222d4d; padding: 26px 0; }
.afterplacebr-footer__legal dl { display: grid; gap: 14px 30px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin: 0; }
.afterplacebr-footer__legal dt { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: #6f7ea6; margin-bottom: 4px; }
.afterplacebr-footer__legal dd { margin: 0; font-size: 13.5px; color: #dfe6f8; }
.afterplacebr-footer__bottom { border-top: 1px solid #222d4d; padding: 24px 0 36px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 30px; font-size: 12.5px; color: #8391b6; }
.afterplacebr-footer__bottom p { color: inherit; margin: 0; line-height: 1.6; max-width: 70ch; }
.afterplacebr-footer__play { display: inline-flex; gap: 8px; align-items: center; color: #fff !important; }
.ap-totop { position: fixed; right: 18px; bottom: 18px; z-index: 55; width: 50px; height: 50px; border-radius: 50%; border: 0; background: var(--acc); color: #fff; font-size: 16px; cursor: pointer; box-shadow: 0 14px 30px -10px rgba(36, 87, 255, 0.7); opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity 0.3s, transform 0.3s; }
.ap-totop.is-show { opacity: 1; transform: none; pointer-events: auto; }
@media (min-width: 768px) {
  .afterplacebr-footer__top { grid-template-columns: 1.4fr 1fr 1.2fr 1fr 1.3fr; gap: 30px; }
  .afterplacebr-footer__brand { grid-column: 1 / -1; max-width: 520px; }
  .afterplacebr-fold summary { cursor: default; pointer-events: none; border-bottom: 0; padding: 0 0 4px; }
  .afterplacebr-fold summary::after { display: none; }
}
@media (min-width: 1100px) { .afterplacebr-footer__brand { grid-column: auto; } }

/* ---------- buttons, chips, badges ---------- */
.ap-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px; border-radius: 999px; font-weight: 700; font-size: 14px; line-height: 1; border: 1px solid transparent; cursor: pointer; transition: transform 0.25s, background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s; text-decoration: none; font-family: var(--f-body); }
.ap-btn:hover { transform: translateY(-2px); }
.ap-btn--dark { background: var(--ink); color: #fff; }
.ap-btn--dark:hover { background: var(--acc); box-shadow: 0 16px 30px -14px rgba(36, 87, 255, 0.8); color: #fff; }
.ap-btn--acc { background: var(--acc); color: #fff; }
.ap-btn--acc:hover { background: var(--ink); color: #fff; }
.ap-btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.ap-btn--ghost:hover { background: var(--ink); color: #fff; }
.ap-btn--light { background: #fff; color: var(--ink); }
.ap-btn--light:hover { background: var(--ice); color: var(--acc); }
.ap-btn--line { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.ap-btn--line:hover { background: #fff; color: var(--ink); }
.ap-btn--block { display: flex; width: 100%; }
.ap-btn--lg { padding: 18px 30px; font-size: 15px; }
.ap-btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }
.ap-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ap-chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s; font-family: var(--f-body); line-height: 1.2; }
.ap-chip:hover { border-color: var(--acc); color: var(--acc); }
.ap-chip.is-on, .ap-chip[aria-pressed='true'], .ap-chip[aria-selected='true'] { background: var(--ink); color: #fff; border-color: var(--ink); }
.ap-chip--static { cursor: default; }
.ap-chip--dark { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.22); color: #fff; }
.ap-chip--dark:hover { border-color: #fff; color: #fff; }
.ap-chip--dark.is-on { background: #fff; color: var(--ink); border-color: #fff; }
.ap-kick { display: inline-flex; align-items: center; gap: 12px; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--acc); }
.ap-kick::before { content: ''; width: 34px; height: 1px; background: currentColor; }
.ap-kick--light { color: #9db6ff; }
.ap-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; background: var(--ice); color: var(--acc); }
.ap-badge--hot { background: #ffe9ec; color: #c8203a; }
.ap-badge--dark { background: var(--ink); color: #fff; }
.ap-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--hot); position: relative; flex-shrink: 0; display: inline-block; }
.ap-dot::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--hot); animation: ap-pulse 1.8s ease-out infinite; }
@keyframes ap-pulse { 0% { transform: scale(0.5); opacity: 0.9; } 100% { transform: scale(1.6); opacity: 0; } }

/* ---------- sections and layout primitives ---------- */
.ap-sec { padding-block: clamp(64px, 9vw, 132px); position: relative; }
.ap-sec--tight { padding-block: clamp(40px, 5vw, 72px); }
.ap-sec--white { background: #fff; }
.ap-sec--ice { background: linear-gradient(180deg, var(--ice) 0%, #f3f6ff 100%); }
.ap-sec--dark { background: var(--ink); color: #fff; }
.ap-sec--dark p { color: #a8b5d6; }
.ap-sec--dark h2, .ap-sec--dark h3, .ap-sec--dark strong { color: #fff; }
.ap-sec--line { border-block: 1px solid var(--line); }
.ap-bg { background-size: cover; background-position: center; background-repeat: no-repeat; color: #fff; position: relative; isolation: isolate; }
.ap-bg p { color: rgba(255, 255, 255, 0.78); }
.ap-bg h1, .ap-bg h2, .ap-bg h3, .ap-bg h4, .ap-bg strong { color: #fff; }
.ap-head { display: grid; gap: 16px; margin-bottom: clamp(32px, 5vw, 64px); }
.ap-head--center { text-align: center; justify-items: center; }
.ap-head--center .ap-lead { margin-inline: auto; }
.ap-head--split { align-items: end; }
@media (min-width: 900px) { .ap-head--split { grid-template-columns: 1.1fr 0.9fr; gap: 56px; } }
.ap-g2, .ap-g3, .ap-g4 { display: grid; gap: clamp(16px, 2vw, 28px); grid-template-columns: 1fr; }
@media (min-width: 640px) { .ap-g2, .ap-g3, .ap-g4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ap-g3 { grid-template-columns: repeat(3, 1fr); } .ap-g4 { grid-template-columns: repeat(4, 1fr); } }
.ap-split { display: grid; gap: clamp(28px, 5vw, 72px); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .ap-split { grid-template-columns: 1fr 1fr; } .ap-split--rev > :first-child { order: 2; } .ap-split--wide-l { grid-template-columns: 1.2fr 0.8fr; } .ap-split--wide-r { grid-template-columns: 0.8fr 1.2fr; } }
.ap-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(20px, 2.4vw, 32px); position: relative; transition: transform 0.35s, box-shadow 0.35s, border-color 0.35s; }
.ap-card--hover:hover { transform: translateY(-6px); box-shadow: var(--sh); border-color: var(--ice-2); }
.ap-card--dark { background: var(--ink-2); border-color: #263256; color: #dfe6f8; }
.ap-card--dark h3, .ap-card--dark h4 { color: #fff; }
.ap-card--dark p { color: #a8b5d6; }
.ap-glass { background: rgba(10, 16, 32, 0.5); border: 1px solid rgba(255, 255, 255, 0.16); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: var(--r); padding: clamp(20px, 2.4vw, 32px); color: #fff; }
.ap-glass--light { background: rgba(255, 255, 255, 0.72); border-color: rgba(255, 255, 255, 0.9); color: var(--ink); }
.ap-ico { width: 52px; height: 52px; border-radius: 16px; background: var(--ice); color: var(--acc); display: inline-flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.ap-ico--dark { background: var(--ink); color: #fff; }
.ap-ico--line { background: transparent; border: 1px solid rgba(255, 255, 255, 0.3); color: #fff; }
.ap-num { font-family: var(--f-head); font-weight: 300; font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1; letter-spacing: -0.04em; color: var(--ink); }
.ap-idx { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.14em; color: var(--acc); }
.ap-media { position: relative; overflow: hidden; border-radius: var(--r); background: linear-gradient(135deg, #dbe6ff 0%, #c7d6f5 55%, #e8eefc 100%); aspect-ratio: 4 / 3; isolation: isolate; }
.ap-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.ap-media:hover img { transform: scale(1.05); }
.ap-media--tall { aspect-ratio: 3 / 4; }
.ap-media--wide { aspect-ratio: 16 / 9; }
.ap-media--sq { aspect-ratio: 1; }
.ap-media--pano { aspect-ratio: 21 / 9; }
.ap-media__tag { position: absolute; left: 14px; bottom: 14px; z-index: 2; background: rgba(10, 16, 32, 0.72); backdrop-filter: blur(8px); color: #fff; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; padding: 7px 12px; border-radius: 999px; }
.ap-list { display: grid; gap: 12px; }
.ap-list li { position: relative; padding-left: 30px; line-height: 1.6; color: var(--mut); font-size: 15px; }
.ap-list li::before { content: '\f058'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; left: 0; top: 1px; color: var(--acc); font-size: 15px; }
.ap-list--dark li { color: #a8b5d6; }
.ap-list--dark li::before { color: #9db6ff; }
.ap-list--x li::before { content: '\f057'; color: var(--hot); }
.ap-line { height: 1px; background: var(--line); border: 0; margin: 0; }
.ap-blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55; pointer-events: none; z-index: -1; }
.ap-blob--a { width: 420px; height: 420px; background: #bcd0ff; top: -120px; right: -120px; }
.ap-blob--b { width: 360px; height: 360px; background: #b6e3fb; bottom: -140px; left: -100px; }
.ap-grid-bg { background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 44px 44px; }
.ap-grid-bg--dark { background-image: linear-gradient(rgba(157, 182, 255, 0.12) 1px, transparent 1px), linear-gradient(90deg, rgba(157, 182, 255, 0.12) 1px, transparent 1px); }

/* ---------- accordion and tabs ---------- */
.ap-acc { display: grid; gap: 12px; }
.ap-acc details { background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; transition: border-color 0.25s, box-shadow 0.25s; }
.ap-acc details[open] { border-color: var(--acc); box-shadow: var(--sh-sm); }
.ap-acc summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 20px 22px; cursor: pointer; font-weight: 700; font-size: 1rem; color: var(--ink); line-height: 1.4; }
.ap-acc summary::-webkit-details-marker { display: none; }
.ap-acc summary::after { content: '\f067'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 12px; width: 32px; height: 32px; border-radius: 50%; background: var(--ice); color: var(--acc); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; transition: transform 0.3s, background 0.3s; }
.ap-acc details[open] summary::after { transform: rotate(45deg); background: var(--acc); color: #fff; }
.ap-acc details > div, .ap-acc details > p { padding: 0 22px 22px; margin: 0; color: var(--mut); line-height: 1.7; font-size: 15px; animation: ap-fade 0.4s ease; }
.ap-acc--dark details { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.14); }
.ap-acc--dark summary { color: #fff; }
.ap-acc--dark summary::after { background: rgba(255, 255, 255, 0.12); color: #fff; }
.ap-acc--dark details > div, .ap-acc--dark details > p { color: #a8b5d6; }
.ap-tabs__list { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
.ap-tabs__list::-webkit-scrollbar { display: none; }
.ap-tabs__panel { display: none; }
.ap-tabs__panel.is-on { display: block; animation: ap-fade 0.45s ease; }
@keyframes ap-fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- marquee ---------- */
.ap-marquee { overflow: hidden; border-block: 1px solid var(--line); background: #fff; }
.ap-marquee__track { display: flex; width: max-content; animation: ap-marq 38s linear infinite; }
.ap-marquee:hover .ap-marquee__track { animation-play-state: paused; }
.ap-marquee__item { display: inline-flex; align-items: center; gap: 14px; padding: 18px 28px; font-family: var(--f-head); font-size: 1.4rem; font-weight: 300; white-space: nowrap; color: var(--ink); }
.ap-marquee__item i { color: var(--acc); font-size: 14px; }
@keyframes ap-marq { to { transform: translateX(-50%); } }
.ap-marquee--dark { background: var(--ink); border-color: #222d4d; }
.ap-marquee--dark .ap-marquee__item { color: #dfe6f8; }
@media (max-width: 767px) { .ap-marquee--swipe { overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; } .ap-marquee--swipe::-webkit-scrollbar { display: none; } .ap-marquee--swipe .ap-marquee__track { animation: none; } .ap-marquee--swipe .ap-marquee__item { scroll-snap-align: start; } .ap-marquee--swipe .ap-marquee__item[aria-hidden='true'] { display: none; } }
@media (prefers-reduced-motion: reduce) { .ap-marquee__track { animation: none; } * { scroll-behavior: auto !important; } }

/* ---------- tables ---------- */
.ap-tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: #fff; -webkit-overflow-scrolling: touch; }
.ap-table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 14.5px; }
.ap-table th, .ap-table td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.ap-table thead th { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mut); background: var(--bg); font-weight: 500; }
.ap-table tbody tr:last-child td, .ap-table tbody tr:last-child th { border-bottom: 0; }
.ap-table tbody th { font-weight: 700; color: var(--ink); }
.ap-table td { color: var(--mut); }
.ap-table tbody tr { transition: background 0.2s; }
.ap-table tbody tr:hover { background: #f8faff; }
.ap-table--sticky th:first-child, .ap-table--sticky td:first-child { position: sticky; left: 0; background: #fff; z-index: 1; box-shadow: 8px 0 12px -10px rgba(10, 16, 32, 0.25); }
.ap-table--sticky thead th:first-child { background: var(--bg); }

/* ---------- forms ---------- */
.ap-field { display: grid; gap: 8px; }
.ap-field label, .ap-label { font-size: 13px; font-weight: 700; color: var(--ink); }
.ap-input, .ap-select, .ap-textarea { width: 100%; padding: 15px 18px; border-radius: var(--r-sm); border: 1px solid var(--line); background: #fff; font-family: var(--f-body); font-size: 15px; color: var(--ink); transition: border-color 0.2s, box-shadow 0.2s; }
.ap-textarea { min-height: 130px; resize: vertical; }
.ap-input:focus, .ap-select:focus, .ap-textarea:focus { outline: 0; border-color: var(--acc); box-shadow: 0 0 0 4px rgba(36, 87, 255, 0.14); }
.ap-field.is-bad .ap-input, .ap-field.is-bad .ap-select, .ap-field.is-bad .ap-textarea { border-color: var(--hot); box-shadow: 0 0 0 4px rgba(239, 74, 95, 0.12); }
.ap-err { display: none; font-size: 12.5px; color: #c8203a; font-weight: 600; }
.ap-field.is-bad .ap-err, .ap-check.is-bad .ap-err { display: block; }
.ap-check { display: grid; gap: 6px; }
.ap-check label { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: var(--mut); line-height: 1.55; cursor: pointer; }
.ap-check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--acc); flex-shrink: 0; }
.ap-check a { color: var(--acc); text-decoration: underline; text-underline-offset: 3px; }
.ap-note { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); z-index: 120; opacity: 0; pointer-events: none; min-width: min(92vw, 360px); max-width: 92vw; padding: 16px 20px; border-radius: 16px; background: var(--ink); color: #fff; font-size: 14px; line-height: 1.5; box-shadow: 0 24px 50px -16px rgba(10, 16, 32, 0.6); display: flex; gap: 12px; align-items: flex-start; transition: opacity 0.35s, transform 0.35s; }
.ap-note.is-show { opacity: 1; transform: translate(-50%, 0); }
.ap-note i { color: #7fa2ff; margin-top: 3px; }
.ap-note--bad i { color: #ff8b9a; }
.ap-spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #fff; animation: ap-rot 0.8s linear infinite; display: none; }
.is-loading .ap-spin { display: inline-block; }
@keyframes ap-rot { to { transform: rotate(360deg); } }

/* ---------- modal and bottom sheet ---------- */
.ap-modal { position: fixed; inset: 0; z-index: 130; display: none; align-items: center; justify-content: center; padding: 18px; background: rgba(10, 16, 32, 0.66); backdrop-filter: blur(6px); }
.ap-modal.is-open { display: flex; animation: ap-fade 0.3s ease; }
.ap-modal__box { background: #fff; border-radius: 24px; width: min(560px, 100%); max-height: 90vh; overflow-y: auto; padding: clamp(22px, 3vw, 38px); position: relative; }
.ap-modal__close { position: absolute; top: 14px; right: 14px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 15px; color: var(--ink); }
.ap-modal__close:hover { background: var(--ink); color: #fff; }
.ap-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 125; background: #fff; border-radius: 26px 26px 0 0; padding: 14px 22px 32px; transform: translateY(105%); transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); box-shadow: 0 -30px 60px -20px rgba(10, 16, 32, 0.4); max-height: 80vh; overflow-y: auto; }
.ap-sheet.is-open { transform: none; }
.ap-sheet__grip { width: 46px; height: 5px; border-radius: 99px; background: var(--line); margin: 0 auto 18px; }
@media (min-width: 900px) { .ap-sheet { position: static; transform: none; box-shadow: none; border-radius: var(--r); border: 1px solid var(--line); max-height: none; } .ap-sheet__grip { display: none; } }

/* ---------- cookie banner (home only) ---------- */
.ap-cookie { position: fixed; left: 18px; bottom: 18px; z-index: 140; width: min(440px, calc(100vw - 36px)); background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid var(--line); border-radius: 22px; padding: 22px; box-shadow: 0 30px 70px -24px rgba(10, 16, 32, 0.45); display: none; gap: 14px; }
.ap-cookie.is-show { display: grid; animation: ap-fade 0.5s ease; }
.ap-cookie__top { display: flex; gap: 14px; align-items: flex-start; }
.ap-cookie__top h2 { font-family: var(--f-head); font-size: 1.35rem; font-weight: 400; line-height: 1.1; color: var(--ink); }
.ap-cookie__text { font-size: 13.5px; line-height: 1.6; color: var(--mut); margin: 0; }
.ap-cookie__row { display: flex; gap: 10px; flex-wrap: wrap; }
.ap-cookie__row .ap-btn { padding: 12px 20px; flex: 1 1 auto; }

/* ---------- AOS safety on small screens ---------- */
@media (max-width: 640px) { [data-aos] { transform: none !important; } }

/* ==========================================================================
   7. section components (generated patch)
   ========================================================================== */

.ap-hero { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.ap-hero .swiper, .ap-hero__swiper { width: 100%; }
.ap-hero .swiper-wrapper { display: flex; }
.ap-hero .swiper-slide { flex: 0 0 100%; min-width: 0; }
.ap-hero .swiper-slide ~ .swiper-slide { display: none; }
.ap-hero__grid { display: grid; gap: clamp(28px, 5vw, 72px); align-items: center; padding-block: clamp(56px, 8vw, 120px); }
@media (min-width: 900px) { .ap-hero__grid { grid-template-columns: 1.05fr 0.95fr; } }
.ap-hero__copy { display: grid; gap: clamp(16px, 2vw, 26px); align-content: start; }
.ap-hero__copy h1, .ap-hero__h { color: #fff; }
.ap-hero__copy .ap-lead, .ap-hero__copy p { color: #a8b5d6; }
.ap-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.ap-hero__tags { padding: 0; margin: 0; }
.ap-hero__visual { border-radius: var(--r); overflow: hidden; min-height: 380px; display: flex; align-items: flex-end; position: relative; }
.ap-hero__frame { position: absolute; inset: 0; }
.ap-hero__frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ap-hero__float { position: relative; z-index: 2; margin: 18px; display: grid; gap: 4px; }
.ap-hero__float--b { margin-left: auto; }
.ap-hero__float strong { color: #fff; }

.ap-dispatch__grid { display: grid; gap: clamp(20px, 3vw, 44px); align-items: center; }
@media (min-width: 900px) { .ap-dispatch__grid { grid-template-columns: auto 1fr auto; } }
.ap-dispatch__status { display: inline-flex; align-items: center; gap: 10px; }
.ap-dispatch__teaser h2, .ap-dispatch__teaser h3 { margin: 0; }
.ap-dispatch__count { font-family: var(--f-mono); font-size: clamp(1.4rem, 3vw, 2.2rem); letter-spacing: 0.06em; color: var(--acc); white-space: nowrap; }
.ap-dispatch__date { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mut); }

.ap-intro__media { position: relative; }
.ap-intro__small { max-width: 320px; margin-top: -60px; position: relative; z-index: 2; }
.ap-touch__grid, .ap-fog__grid, .ap-bestiary__stage, .ap-lore, .ap-vinyl, .ap-mixer, .ap-term, .ap-story, .ap-desk, .ap-vendor__scene, .ap-relic, .ap-stack, .ap-mapwrap, .ap-calc, .ap-quiz { display: grid; gap: clamp(20px, 3vw, 44px); }
@media (min-width: 900px) {
  .ap-touch__grid { grid-template-columns: 0.9fr 1.1fr; align-items: center; }
  .ap-fog__grid { grid-template-columns: 1.3fr 0.7fr; align-items: start; }
  .ap-lore { grid-template-columns: 1.15fr 0.85fr; align-items: start; }
  .ap-vinyl { grid-template-columns: 0.9fr 1.1fr; align-items: center; }
  .ap-mixer { grid-template-columns: 1.1fr 0.9fr; align-items: center; }
  .ap-term { grid-template-columns: 1.15fr 0.85fr; align-items: start; }
  .ap-story { grid-template-columns: 1.2fr 0.8fr; align-items: start; }
  .ap-desk { grid-template-columns: 1.2fr 0.8fr; align-items: start; }
  .ap-relic { grid-template-columns: 0.9fr 1.1fr; align-items: center; }
  .ap-stack { grid-template-columns: 1.1fr 0.9fr; align-items: start; }
  .ap-calc { grid-template-columns: 0.9fr 1.1fr; align-items: start; }
}
.ap-touch__col, .ap-lore__side, .ap-fog__side, .ap-term__side, .ap-story__main, .ap-desk__panel, .ap-stack__body { display: grid; gap: clamp(14px, 2vw, 22px); }

.ap-phone { width: min(300px, 78vw); margin-inline: auto; aspect-ratio: 9 / 18; border-radius: 44px; border: 10px solid var(--ink); background: var(--dark); box-shadow: var(--sh); position: relative; overflow: hidden; }
.ap-phone__screen { position: absolute; inset: 0; background: linear-gradient(160deg, #16234a 0%, #0b1220 70%); }
.ap-phone__hud { position: absolute; top: 14px; font-family: var(--f-mono); font-size: 12px; color: #fff; background: rgba(255,255,255,0.12); padding: 6px 10px; border-radius: 999px; }
.ap-phone__hud--l { left: 14px; }
.ap-phone__hud--r { right: 14px; }
.ap-phone__hero { position: absolute; top: 46%; left: 50%; transform: translate(-50%, -50%); font-size: 34px; color: #9db6ff; }
.ap-phone__trail { position: absolute; top: 58%; left: 30%; width: 40%; height: 3px; border-radius: 99px; background: linear-gradient(90deg, transparent, var(--acc-2)); }
.ap-phone__finger { position: absolute; top: 60%; left: 68%; font-size: 26px; color: #fff; animation: ap-finger 2.4s ease-in-out infinite; }
@keyframes ap-finger { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-38px,-26px); } }
.ap-phone__legend { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; font-size: 11.5px; color: rgba(255,255,255,0.7); padding-inline: 12px; }

.ap-taptest__pad { width: 100%; min-height: 150px; border: 1px dashed rgba(255,255,255,0.35); border-radius: var(--r-sm); background: rgba(255,255,255,0.06); color: #fff; font-size: 14px; cursor: pointer; display: grid; place-items: center; gap: 8px; padding: 18px; position: relative; }
.ap-taptest__ring { position: absolute; inset: 10px; border-radius: 10px; border: 1px solid rgba(157,182,255,0.25); pointer-events: none; }
.ap-taptest__stats { display: flex; gap: 18px; margin-top: 14px; }
.ap-taptest__stats div { display: grid; }
.ap-taptest__stats b { font-family: var(--f-head); font-size: 1.6rem; font-weight: 400; color: #fff; }
.ap-taptest__stats span { font-size: 11.5px; color: rgba(255,255,255,0.6); }
.ap-versus { display: grid; gap: 14px; }
@media (min-width: 640px) { .ap-versus { grid-template-columns: 1fr 1fr; } }
.ap-versus__ico { font-size: 22px; color: #9db6ff; }
.ap-versus__on { border-color: var(--acc); box-shadow: 0 0 0 1px var(--acc) inset; }

.ap-svc { display: grid; gap: clamp(16px, 2vw, 28px); grid-template-columns: 1fr; }
@media (min-width: 640px) { .ap-svc { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ap-svc { grid-template-columns: repeat(3, 1fr); } }
.ap-svc__card { display: grid; gap: 10px; align-content: start; }
.ap-svc__price { font-family: var(--f-head); font-size: 1.5rem; color: var(--acc); }
.ap-pricestack, .ap-pack__price { display: grid; gap: 8px; }
.ap-pack__price { font-family: var(--f-head); font-size: clamp(1.8rem, 3vw, 2.6rem); color: var(--acc); }

.ap-lore__stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.ap-lore__cards { display: grid; gap: 16px; grid-auto-flow: column; grid-auto-columns: min(78vw, 320px); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; scrollbar-width: thin; }
.ap-lore__cards > * { scroll-snap-align: start; }
@media (min-width: 1024px) { .ap-lore__cards { grid-auto-flow: row; grid-auto-columns: unset; grid-template-columns: repeat(3, 1fr); overflow: visible; } }
.ap-snap { scrollbar-width: thin; }

.ap-parry, .ap-taptest { display: grid; gap: 16px; }
.ap-parry__head { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.ap-parry__bar { position: relative; height: 16px; border-radius: 99px; background: rgba(255,255,255,0.12); overflow: hidden; }
.ap-parry__zone { position: absolute; left: 44%; width: 12%; top: 0; bottom: 0; background: rgba(36,87,255,0.45); }
.ap-parry__fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--acc-2); }
.ap-parry__btn { display: inline-flex; align-items: center; gap: 10px; justify-content: center; padding: 16px 26px; border-radius: 999px; border: 0; background: var(--acc); color: #fff; font-family: var(--f-body); font-weight: 700; font-size: 15px; cursor: pointer; }
.ap-parry__out { display: flex; gap: 22px; }
.ap-parry__out div { display: grid; }
.ap-parry__out b { font-family: var(--f-head); font-size: 1.5rem; font-weight: 400; }
.ap-parry__out span { font-size: 11.5px; color: var(--mut); }

.ap-bestiary { display: grid; gap: clamp(20px, 3vw, 40px); }
.ap-bestiary__display { border-radius: var(--r); overflow: hidden; }
.ap-bestiary__text { display: grid; gap: 10px; }
.ap-bestiary__thumbs { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.ap-tabs__panel[hidden] { display: none; }
.ap-tabs__list [role='tab'], .ap-bestiary__thumbs button { border: 1px solid var(--line); background: #fff; border-radius: var(--r-sm); padding: 10px 16px; font-family: var(--f-body); font-weight: 600; font-size: 13.5px; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.ap-tabs__list [aria-selected='true'], .ap-bestiary__thumbs button.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.ap-clamp { position: relative; }
.ap-clamp__btn { margin-top: 8px; border: 0; background: none; color: var(--acc); font-weight: 700; font-size: 13.5px; cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 3px; }

.ap-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: clamp(20px, 3vw, 36px); counter-reset: step; }
@media (min-width: 900px) { .ap-steps { grid-template-columns: repeat(3, 1fr); } }
.ap-steps__item { display: grid; gap: 10px; align-content: start; border-top: 2px solid var(--line); padding-top: 18px; }
.ap-steps__item .ap-num { color: var(--acc); }

.ap-vinyl__disc { width: min(300px, 70vw); aspect-ratio: 1; margin-inline: auto; border-radius: 50%; background: repeating-radial-gradient(circle, #0a1020 0 3px, #141c36 3px 6px); border: 12px solid var(--ink); position: relative; box-shadow: var(--sh); }
.ap-vinyl__disc span { position: absolute; inset: 34%; border-radius: 50%; background: var(--acc); }
.ap-vinyl__eq { display: flex; align-items: flex-end; gap: 4px; height: 44px; justify-content: center; margin-top: 18px; }
.ap-vinyl__eq i { width: 5px; background: var(--acc-2); border-radius: 3px; height: 20%; animation: ap-eq 1.1s ease-in-out infinite; }
.ap-vinyl__eq i:nth-child(2n) { animation-delay: 0.15s; }
.ap-vinyl__eq i:nth-child(3n) { animation-delay: 0.3s; }
.ap-vinyl__eq i:nth-child(4n) { animation-delay: 0.45s; }
@keyframes ap-eq { 0%,100% { height: 18%; } 50% { height: 90%; } }
.ap-player { display: grid; gap: 14px; }
.ap-player__bar { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.ap-player__bar span { display: block; height: 100%; width: 0; background: var(--acc); }
.ap-player__ctl { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ap-player__list { display: grid; gap: 8px; }
.ap-player__list button, .ap-player__now { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; font-size: 14px; color: var(--ink-2); cursor: pointer; text-align: left; }
.ap-player__list button.is-on { border-color: var(--acc); color: var(--acc); }
.ap-quote { border-left: 3px solid var(--acc); padding: 6px 0 6px 22px; margin: 0; }
.ap-quote p { font-family: var(--f-head); font-size: 1.15rem; font-style: italic; color: var(--ink); line-height: 1.55; }
.ap-quote cite { display: block; margin-top: 10px; font-family: var(--f-mono); font-size: 12px; font-style: normal; color: var(--mut); letter-spacing: 0.06em; }

.ap-fog { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; background: linear-gradient(150deg, #16234a, #0b1220); }
.ap-fog__map, .ap-fog__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.ap-fog__poi { position: absolute; width: 40px; height: 40px; border-radius: 50%; border: 2px solid #fff; background: var(--acc); color: #fff; cursor: pointer; display: grid; place-items: center; font-size: 15px; }
.ap-fog__poi--1 { top: 22%; left: 18%; }
.ap-fog__poi--2 { top: 38%; left: 62%; }
.ap-fog__poi--3 { top: 66%; left: 34%; }
.ap-fog__poi--4 { top: 74%; left: 78%; }
.ap-fog__zoom { position: absolute; right: 12px; bottom: 12px; display: grid; gap: 6px; }
.ap-fog__zoom button { width: 38px; height: 38px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.3); background: rgba(10,16,32,0.7); color: #fff; cursor: pointer; }
.ap-fog__legend { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12.5px; color: var(--mut); }

.ap-road { display: grid; gap: clamp(16px, 2vw, 26px); }
@media (min-width: 900px) { .ap-road { grid-template-columns: repeat(4, 1fr); } }
.ap-road__bottom { margin-top: clamp(28px, 4vw, 48px); display: grid; gap: 18px; }
@media (min-width: 900px) { .ap-road__bottom { grid-template-columns: 1fr 1fr; align-items: center; } }
.ap-tl { display: grid; gap: 0; position: relative; padding-left: 26px; }
.ap-tl::before { content: ''; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.ap-tl > * { position: relative; padding-bottom: 22px; }
.ap-tl > *::before { content: ''; position: absolute; left: -26px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--acc); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.ap-progress { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.ap-progress span, .ap-progress i { display: block; height: 100%; background: var(--acc); }

.ap-download__btns { display: flex; flex-wrap: wrap; gap: 14px; }
.ap-store { display: inline-flex; align-items: center; gap: 14px; padding: 14px 24px; border-radius: 16px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 700; font-size: 16px; line-height: 1.25; }
.ap-store i { font-size: 26px; }
.ap-store small { display: block; font-family: var(--f-mono); font-weight: 400; font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.7; }
.ap-store--off { opacity: 0.55; }
.ap-download__qr { display: grid; gap: 10px; justify-items: center; }
.ap-download__qr img { width: 150px; height: 150px; border-radius: var(--r-sm); border: 1px solid var(--line); }

.ap-cta { text-align: center; }
.ap-cta__in { display: grid; gap: 18px; justify-items: center; }
.justify-center { justify-content: center; }

.ap-quiz__steps { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0; }
.ap-quiz__steps li { flex: 1; display: grid; gap: 4px; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mut); border-top: 3px solid var(--line); padding-top: 10px; }
.ap-quiz__steps li.is-on { color: var(--acc); border-color: var(--acc); }
.ap-quiz__step { display: none; border: 0; padding: 0; margin: 0; }
.ap-quiz__step.is-on { display: grid; gap: 18px; }
.ap-quiz__nav { display: flex; gap: 12px; justify-content: space-between; flex-wrap: wrap; }
.ap-field { display: grid; gap: 8px; }
.ap-field label, .ap-label { font-weight: 700; font-size: 14px; color: var(--ink); }
.ap-radios { display: flex; gap: 10px; flex-wrap: wrap; }
.ap-radios label { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-size: 13.5px; font-weight: 600; }
.ap-radios input { accent-color: var(--acc); }
.ap-form { display: grid; gap: 18px; }
.ap-toggle { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.ap-range { width: 100%; accent-color: var(--acc); }

.ap-masonry { columns: 2; column-gap: 16px; }
@media (min-width: 900px) { .ap-masonry { columns: 3; } }
.ap-masonry > * { break-inside: avoid; margin-bottom: 16px; }
.ap-collage { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .ap-collage { grid-template-columns: repeat(4, 1fr); } }
.ap-shots { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .ap-shots { grid-template-columns: repeat(3, 1fr); } }
.ap-shot, .ap-pin, .ap-relic__obj { border-radius: var(--r); overflow: hidden; position: relative; background: linear-gradient(135deg, #dbe6ff, #e8eefc); }
.ap-shot img, .ap-pin img, .ap-relic__obj img, .ap-collage img, .ap-masonry img { width: 100%; height: 100%; object-fit: cover; display: block; }

.ap-ba { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 10; }
.ap-ba__layer { position: absolute; inset: 0; background-size: cover; background-position: center; }
.ap-ba__range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; }
.ap-ba__handle { position: absolute; top: 0; bottom: 0; width: 3px; background: #fff; left: 50%; pointer-events: none; }

.ap-term__log { background: var(--ink); color: #b8e6c8; font-family: var(--f-mono); font-size: 13.5px; line-height: 1.8; border-radius: var(--r); padding: clamp(18px, 2.4vw, 30px); min-height: 200px; }
.ap-journal__track { display: grid; gap: 18px; }
.ap-journal__bar { height: 5px; border-radius: 99px; background: var(--line); overflow: hidden; }
.ap-journal__prog { display: block; height: 100%; width: 0; background: var(--acc); }
.ap-stickers { display: flex; flex-wrap: wrap; gap: 12px; }
.ap-sticker { background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px 18px; box-shadow: var(--sh-sm); max-width: 320px; }
.ap-sticker__b { transform: rotate(1.5deg); }
.ap-sticker__f { transform: rotate(-1.5deg); }

.ap-palette, .ap-roles { display: flex; flex-wrap: wrap; gap: 12px; }
.ap-swatch { display: grid; gap: 6px; }
.ap-swatch__c { width: 72px; height: 72px; border-radius: 16px; border: 1px solid var(--line); }
.ap-rare { display: inline-flex; gap: 4px; color: var(--acc); }
.ap-herb { display: grid; gap: 12px; }

.ap-mixer__chs { display: flex; gap: 18px; align-items: flex-end; }
.ap-mixer__vis { border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 10; }
.ap-mixer__state, .ap-mixer__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.ap-mixer input[type='range'] { writing-mode: vertical-lr; direction: rtl; height: 140px; accent-color: var(--acc); }
@media (max-width: 639px) { .ap-mixer input[type='range'] { writing-mode: horizontal-tb; direction: ltr; height: auto; width: 100%; } .ap-mixer__chs { flex-direction: column; align-items: stretch; } }

.ap-vendor__glow { position: absolute; width: 60%; height: 40%; border-radius: 50%; background: radial-gradient(circle, rgba(255,200,120,0.4), transparent 70%); top: 30%; left: 20%; pointer-events: none; }
.ap-vendor__item { display: grid; gap: 10px; }
.ap-vendor__timer { font-family: var(--f-mono); font-size: 1.3rem; color: var(--hot); }
.ap-vendor__data { display: grid; gap: 8px; }
.ap-pixel__cv { image-rendering: pixelated; }
.ap-desk__photo { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; }
.ap-relic__runes, .ap-relic__out { display: grid; gap: 10px; }
.ap-hot { position: absolute; width: 34px; height: 34px; border-radius: 50%; background: var(--acc); color: #fff; border: 2px solid #fff; cursor: pointer; display: grid; place-items: center; }
.ap-map { border-radius: var(--r); overflow: hidden; }
.ap-map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }
.ap-ch { display: flex; flex-wrap: wrap; gap: 8px; }
.ap-social, .ap-socials, .ap-fan__links, .ap-fan__bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.ap-hours { display: grid; gap: 8px; }
.ap-guar { display: flex; gap: 12px; align-items: flex-start; }
.ap-post { display: grid; gap: 14px; }
.ap-calc__list { display: grid; gap: 10px; }
.ap-conthero__copy { display: grid; gap: 16px; }
.ap-page { display: grid; gap: 20px; }

.ap-clamp.is-clamped p:nth-of-type(n+2) { display: none; }
.ap-clamp.is-clamped .ap-clamp__btn { display: inline-block; }

.swiper:not(.ap-hero__swiper) { overflow: hidden; }
.swiper:not(.ap-hero__swiper) .swiper-wrapper { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.swiper:not(.ap-hero__swiper) .swiper-wrapper::-webkit-scrollbar { display: none; }
.swiper:not(.ap-hero__swiper) .swiper-slide { flex: 0 0 min(84%, 340px); scroll-snap-align: start; }
@media (min-width: 1024px) { .swiper:not(.ap-hero__swiper) .swiper-slide { flex-basis: calc((100% - 36px) / 3); } }
