/* ============================================================
   home.css — 咔嗒Lab 首页 · 全页统一极光玻璃风
   Hero v16 · 星座连线 + 拼图 + continuous aurora atmosphere
   Scoped to .ah (content) and .ka[data-page="home"] (nav override).
   Other pages are untouched.
   ============================================================ */

/* Unified aurora + glass palette (Hero → footer continuous) */
.ka[data-page="home"] {
  --ah-bg: #f3f7fc;
  --ah-alt: transparent;
  --ah-card: rgba(255,255,255,0.72);
  --ah-card-solid: #ffffff;
  --ah-ink: #1d1d1f;
  --ah-sub: #5c6370;
  --ah-line: rgba(29,29,31,0.10);
  --ah-accent: var(--accent);
  --ah-glow: color-mix(in oklch, var(--accent) 28%, transparent);
  --ah-glow-2: color-mix(in oklch, color-mix(in oklch, var(--accent) 40%, #38bdf8) 20%, transparent);
  --ah-glow-3: color-mix(in oklch, color-mix(in oklch, var(--accent) 30%, #22d3ee) 18%, transparent);
  /* single-layer background: inherit sitewide .ka aurora — no own gradient (prevents seams) */
  background: transparent;
  min-height: 100vh;
  position: relative;
}
:root[data-theme="dark"] .ka[data-page="home"] {
  --ah-bg: #04070e;
  --ah-alt: transparent;
  --ah-card: rgba(14,20,32,0.62);
  --ah-card-solid: #0d1420;
  --ah-ink: #f5f5f7;
  --ah-sub: #a1a1a6;
  --ah-line: rgba(255,255,255,0.12);
  --ah-glow: color-mix(in oklch, var(--accent) 34%, transparent);
  --ah-glow-2: color-mix(in oklch, color-mix(in oklch, var(--accent) 42%, #38bdf8) 26%, transparent);
  --ah-glow-3: color-mix(in oklch, color-mix(in oklch, var(--accent) 35%, #22d3ee) 22%, transparent);
  background: transparent;
}

.ah {
  position: relative;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Noto Sans SC", system-ui, sans-serif;
  color: var(--ah-ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  isolation: isolate;
}
.ah * { box-sizing: border-box; }

/* ════════════════════════════════════════
   CONTINUOUS ATMOSPHERE (page-wide)
   Keeps hero → features → events → CTA on one visual plane
   ════════════════════════════════════════ */
.ah-atmosphere {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.ah-atmosphere .ah-blob {
  position: absolute; border-radius: 50%; filter: blur(72px); opacity: .85;
  will-change: transform;
}
.ah-atmosphere .ah-blob-a {
  width: min(62vw, 720px); height: min(62vw, 720px);
  left: -14vw; top: 18%;
  background: radial-gradient(closest-side, var(--ah-glow), transparent 70%);
  animation: ahBlobA 28s ease-in-out infinite alternate;
}
.ah-atmosphere .ah-blob-b {
  width: min(54vw, 640px); height: min(54vw, 640px);
  right: -12vw; top: 48%;
  background: radial-gradient(closest-side, var(--ah-glow-2), transparent 72%);
  animation: ahBlobB 32s ease-in-out infinite alternate;
}
.ah-atmosphere .ah-blob-c {
  width: min(48vw, 560px); height: min(48vw, 560px);
  left: 28%; bottom: 4%;
  background: radial-gradient(closest-side, var(--ah-glow-3), transparent 74%);
  animation: ahBlobC 24s ease-in-out infinite alternate;
}
.ah-atmosphere .ah-mesh {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 55% 30% at 50% 0%, color-mix(in oklch, var(--ah-accent) 8%, transparent), transparent 70%),
    radial-gradient(ellipse 40% 28% at 80% 60%, color-mix(in oklch, #38bdf8 8%, transparent), transparent 70%),
    radial-gradient(ellipse 42% 26% at 18% 75%, color-mix(in oklch, #22d3ee 6%, transparent), transparent 72%);
  opacity: .9;
}
.ah-atmosphere .ah-grain {
  position: absolute; inset: 0; opacity: .035; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.55'/></svg>");
}
:root[data-theme="dark"] .ah-atmosphere .ah-grain { opacity: .055; mix-blend-mode: overlay; }
@keyframes ahBlobA { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(40px,50px,0) scale(1.08); } }
@keyframes ahBlobB { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(-50px,30px,0) scale(1.1); } }
@keyframes ahBlobC { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(30px,-40px,0) scale(1.06); } }
@media (prefers-reduced-motion: reduce) {
  .ah-atmosphere .ah-blob { animation: none !important; }
}

/* Ensure content sits above atmosphere */
.ah > .ah-hero,
.ah > .ah-feature,
.ah > .ah-events,
.ah > .ah-cta { position: relative; z-index: 1; }

.ah .wrap { max-width: 1024px; margin: 0 auto; padding: 0 24px; }
.ah .link {
  display: inline-flex; align-items: center; gap: 3px;
  color: var(--ah-accent); font-size: 17px; font-weight: 400; cursor: pointer;
  transition: opacity .2s;
}
.ah .link:hover { text-decoration: underline; text-underline-offset: 3px; }
.ah .link .chev { font-size: 1.05em; line-height: 1; transform: translateY(0.5px); }

/* ---- Home nav: fully transparent chrome; no corner bar residue ---- */
.ka[data-page="home"] .ka-navwrap {
  position: sticky; top: 0; z-index: 50;
  padding: 14px 16px 8px;
  background: transparent !important;
  box-shadow: none !important;
}
.ka[data-page="home"] .ka-navwrap::before,
.ka[data-page="home"] .ka-navwrap::after {
  content: none !important; display: none !important;
  background: none !important; opacity: 0 !important;
}
.ka[data-page="home"] .ka-navwrap .kc {
  max-width: none; padding: 0;
  background: transparent !important; box-shadow: none !important;
}
.ka[data-page="home"] .ka-nav {
  max-width: 1120px; margin: 0 auto; height: 54px; padding: 0 12px 0 18px; gap: 14px;
  background: color-mix(in srgb, var(--ah-card) 50%, transparent) !important;
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  border: 1px solid color-mix(in srgb, var(--ah-line) 70%, transparent);
  border-radius: 999px;
  box-shadow:
    0 10px 30px -18px color-mix(in oklch, var(--ah-accent) 22%, transparent),
    inset 0 1px 0 rgba(255,255,255,.42) !important;
}
/* left logo area: pure transparent, no gray block / gradient residue */
.ka[data-page="home"] .ka-nav .ka-brand,
.ka[data-page="home"] .ka-nav > a:first-child {
  display: inline-flex; align-items: center;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 4px 0 0;
}
.ka[data-page="home"] .ka-nav .ka-brand .kata-logo-wrap,
.ka[data-page="home"] .ka-nav .ka-brand .kata-logo {
  background: transparent !important;
  box-shadow: none !important;
}
.ka[data-page="home"] .ka-nav .links { gap: 2px; margin-left: 10px; }
.ka[data-page="home"] .ka-nav .links a {
  color: var(--ah-ink); opacity: .88; font-size: 13.5px; font-weight: 400;
  padding: 8px 13px; border-radius: 999px;
  background: transparent !important; box-shadow: none !important;
}
.ka[data-page="home"] .ka-nav .links a:hover {
  opacity: 1; background: color-mix(in srgb, var(--ah-accent) 10%, transparent) !important;
}
.ka[data-page="home"] .ka-nav .links a.on {
  opacity: 1; background: color-mix(in srgb, var(--ah-accent) 14%, transparent) !important;
}
/* right controls: glass chips, no solid nm-rise patches */
.ka[data-page="home"] .ka-nav .right {
  background: transparent !important; box-shadow: none !important;
}
.ka[data-page="home"] .ka-nav .theme-toggle,
.ka[data-page="home"] .ka-nav .ka-iconbtn,
.ka[data-page="home"] .ka-nav .ka-acct-btn {
  box-shadow: none !important;
  border: 1px solid color-mix(in srgb, var(--ah-line) 75%, transparent) !important;
  color: var(--ah-ink);
  background: color-mix(in srgb, var(--ah-card) 40%, transparent) !important;
  border-radius: 999px;
}
.ka[data-page="home"] .ka-nav .btn-accent {
  background: var(--ah-accent) !important; color: #fff !important;
  padding: 8px 16px !important; font-size: 13px !important; border-radius: 999px;
  border: none !important;
  box-shadow: 0 8px 20px -10px color-mix(in oklch, var(--ah-accent) 55%, transparent) !important;
}
.ka[data-page="home"] .ka-nav .btn-accent:hover { filter: brightness(1.06); transform: none; }
.ka[data-page="home"] .ka-nav.nm-rise,
.ka[data-page="home"] .ka-nav.nm-rise-sm {
  background: color-mix(in srgb, var(--ah-card) 50%, transparent) !important;
  box-shadow:
    0 10px 30px -18px color-mix(in oklch, var(--ah-accent) 22%, transparent),
    inset 0 1px 0 rgba(255,255,255,.42) !important;
}

/* ════════════════════════════════════════
   HERO v16 · 星座连线 + 拼图
   ════════════════════════════════════════ */

/* 背景：极光基底（静态氛围） */
.ah-hero { position: relative; text-align: center; padding: 96px 24px 130px; overflow: hidden;
  background: transparent; }
/* Hero local blobs removed — sitewide .ka-aurora provides one continuous glow,
   so no per-hero radial layer can seam against the page background */
.ah-hero::before, .ah-hero::after, .ah-hero .cyanblob { content: none !important; display: none !important; }
@keyframes kdDrift1 { from{transform:translate(0,0) scale(1)} to{transform:translate(9vw,6vw) scale(1.12)} }
@keyframes kdDrift2 { from{transform:translate(0,0) scale(1.08)} to{transform:translate(-8vw,-4vw) scale(.95)} }
@keyframes kdDrift3 { from{transform:translate(0,0)} to{transform:translate(7vw,-5vw) scale(1.1)} }
/* 星座画布 */
.ah-hero #stars { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.ah-hero .grain { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }
.ah-hero > *:not(#stars):not(.grain):not(.cyanblob) { position: relative; z-index: 1; }

/* 文字区 */
.ah-hero h1 { margin: 0 0 28px; font-size: clamp(44px,7vw,84px); font-weight: 700;
  line-height: 1.1; letter-spacing: -.035em; color: var(--ah-ink); }
.ah-hero h1 em { font-style: normal;
  background: linear-gradient(118deg, var(--ah-accent) 25%,
    color-mix(in oklch, var(--ah-accent) 55%, #38bdf8) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.ah-hero .lead { margin: 0 auto 10px; max-width: 36em;
  font-size: clamp(18px,2.2vw,23px); line-height: 1.55; font-weight: 500;
  color: color-mix(in srgb, var(--ah-ink) 78%, transparent); letter-spacing: -.01em; }
.ah-hero .claim { margin: 0 auto 64px; max-width: 36em;
  font-size: clamp(15px,1.8vw,18px); line-height: 1.65;
  color: var(--ah-sub); letter-spacing: -.005em; }

/* 拼图区 */
.ah-hero .jig { position: relative; max-width: 780px; margin: 0 auto; aspect-ratio: 700/460; }
.ah-hero .pc { position: absolute; width: 54.2857%; height: 56.5217%; display: block;
  text-decoration: none; color: inherit; opacity: 0;
  filter: drop-shadow(0 12px 28px color-mix(in srgb, var(--ah-accent) 7%, rgba(0,0,0,.08)));
  transition: filter .35s; }
.ah-hero .pc svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ah-hero .pc path { fill: color-mix(in srgb, var(--ah-card) 84%, transparent);
  stroke: color-mix(in srgb, var(--ah-accent) 14%, rgba(255,255,255,.6));
  stroke-width: 1.5; transition: stroke .35s, fill .35s; }
.ah-hero .pc1 { left: 0; top: 0;     --fx: -170px; --fy: -135px; --rot: -12deg; --sx: -1; --sy: -1; }
.ah-hero .pc2 { right: 0; top: 0;    --fx:  170px; --fy: -135px; --rot:  12deg; --sx:  1; --sy: -1; }
.ah-hero .pc3 { left: 0; bottom: 0;  --fx: -170px; --fy:  135px; --rot:  10deg; --sx: -1; --sy:  1; }
.ah-hero .pc4 { right: 0; bottom: 0; --fx:  170px; --fy:  135px; --rot: -11deg; --sx:  1; --sy:  1; }
.ah-hero .jig.is-on .pc { opacity: 1; animation: kdSnapin .7s both; }
@keyframes kdSnapin {
  0% { opacity: 0; transform: translate(var(--fx),var(--fy)) rotate(var(--rot)) scale(.85);
       animation-timing-function: cubic-bezier(.16,.8,.3,1); }
  55% { opacity: 1; transform: translate(calc(var(--sx)*14px), calc(var(--sy)*11px));
        animation-timing-function: linear; }
  81% { transform: translate(calc(var(--sx)*9px), calc(var(--sy)*7px));
        animation-timing-function: cubic-bezier(.85,0,1,.9); }
  89% { transform: translate(calc(var(--sx)*-3px), calc(var(--sy)*-2.4px));
        animation-timing-function: cubic-bezier(0,.6,.4,1); }
  100% { transform: none; } }
.ah-hero .jig.is-on .pc:hover { transform: translateY(-4px); z-index: 5;
  filter: drop-shadow(0 18px 34px color-mix(in oklch, var(--ah-accent) 38%, transparent)); }
.ah-hero .jig.is-on .pc:hover path { fill: color-mix(in srgb, var(--ah-card) 94%, transparent);
  stroke: color-mix(in srgb, var(--ah-accent) 50%, transparent); }
.ah-hero .pc .txt { position: absolute; display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center; gap: 2px; padding: 4%; }
.ah-hero .pc1 .txt { inset: 0 7.9% 11.5% 0 } .ah-hero .pc2 .txt { inset: 0 0 11.5% 7.9% }
.ah-hero .pc3 .txt { inset: 11.5% 7.9% 0 0 } .ah-hero .pc4 .txt { inset: 11.5% 0 0 7.9% }
.ah-hero .pc .txt h3 { margin: 10px 0 4px; font-size: clamp(15px,2.6vw,20px); font-weight: 600; color: var(--ah-ink); }
.ah-hero .pc .txt p { margin: 0; font-size: clamp(12px,2vw,15px); color: var(--ah-sub); }
.ah-hero .pc .ic { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center;
  justify-content: center; font-size: 20px;
  background: color-mix(in srgb, var(--ah-accent) 10%, transparent); }
.ah-hero .suck-ring { position: absolute; left: 50%; top: 50%; width: 110px; height: 110px; z-index: 6;
  border-radius: 50%; border: 1.5px solid var(--ah-accent); opacity: 0; pointer-events: none;
  transform: translate(-50%,-50%); }
.ah-hero .jig.is-on .suck-ring.a { animation: kdSuckring .24s .3s ease-in both; }
.ah-hero .jig.is-on .suck-ring.b { animation: kdSuckring .24s .4s ease-in both; }
@keyframes kdSuckring {
  0% { transform: translate(-50%,-50%) scale(2.6); opacity: 0; } 30% { opacity: .5; }
  100% { transform: translate(-50%,-50%) scale(.35); opacity: 0; } }
.ah-hero .suck-dot { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; z-index: 6;
  border-radius: 50%; background: var(--ah-accent); opacity: 0; pointer-events: none; }
.ah-hero .jig.is-on .suck-dot { animation: kdSuck .24s ease-in both; }
.ah-hero .jig.is-on .suck-dot:nth-child(odd) { animation-delay: .3s; }
.ah-hero .jig.is-on .suck-dot:nth-child(even) { animation-delay: .4s; }
@keyframes kdSuck {
  0% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(.4); }
  30% { opacity: .95; }
  100% { opacity: 0; transform: translate(-50%,-50%) scale(1.2); } }
.ah-hero .preglow { position: absolute; left: 50%; top: 50%; width: 130px; height: 130px; z-index: 5;
  transform: translate(-50%,-50%); border-radius: 50%; opacity: 0; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in oklch, var(--ah-accent) 45%, transparent), transparent 70%); }
.ah-hero .jig.is-on .preglow { animation: kdPreglow .28s .3s ease-in both; }
@keyframes kdPreglow { 0%{opacity:0; transform:translate(-50%,-50%) scale(.4)}
  100%{opacity:.6; transform:translate(-50%,-50%) scale(1)} }
.ah-hero .seams { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 6;
  pointer-events: none; overflow: visible; }
.ah-hero .seams path { fill: none; stroke-linecap: round; }
.ah-hero .sflash { stroke-width: 4; opacity: 0;
  filter: drop-shadow(0 0 6px color-mix(in oklch, var(--ah-accent) 80%, transparent)); }
.ah-hero .jig.is-on .sflash { animation: kdFlash2 .6s .6s ease-out both; }
@keyframes kdFlash2 { 0%{opacity:0} 12%{opacity:1} 26%{opacity:.25} 40%{opacity:1} 100%{opacity:0} }
.ah-hero .slive { stroke-width: 1.5; opacity: 0; }
.ah-hero .jig.is-on .slive { animation: kdLivein .8s 1.1s both; }
@keyframes kdLivein { from{opacity:0} to{opacity:.32} }
.ah-hero .sflow { stroke: var(--ah-accent); stroke-width: 2; opacity: 0; stroke-dasharray: 10 90;
  filter: drop-shadow(0 0 2px color-mix(in oklch, var(--ah-accent) 35%, transparent)); }
.ah-hero .jig.is-on .sflow  { animation: kdFlowin .8s 1.1s both, kdFlowa 4s 1.1s linear infinite; }
.ah-hero .jig.is-on .sflowb { animation: kdFlowin .8s 1.1s both, kdFlowb 4s 1.1s linear infinite; }
@keyframes kdFlowin { from{opacity:0} to{opacity:.45} }
@keyframes kdFlowa { from{stroke-dashoffset:0}   to{stroke-dashoffset:-100} }
@keyframes kdFlowb { from{stroke-dashoffset:-50} to{stroke-dashoffset:-150} }
.ah-hero .crack { position: absolute; left: 50%; top: 50%; width: 100px; height: 100px; z-index: 6;
  transform: translate(-50%,-50%); border-radius: 50%; border: 2px solid var(--ah-accent);
  opacity: 0; pointer-events: none; }
.ah-hero .jig.is-on .crack { animation: kdCrack .38s .62s cubic-bezier(.1,.7,.3,1) both; }
@keyframes kdCrack { 0%{transform:translate(-50%,-50%) scale(.3);opacity:.9}
  100%{transform:translate(-50%,-50%) scale(2.6);opacity:0} }
.ah-hero .hub { position: absolute; left: 50%; top: 50%; z-index: 10; cursor: pointer;
  transform: translate(-50%,-50%) scale(0); width: 136px; height: 136px; }
.ah-hero .jig.is-on .hub { animation: kdPop .45s .68s cubic-bezier(.34,1.6,.64,1) both; }
@keyframes kdPop { from{transform:translate(-50%,-50%) scale(0)} to{transform:translate(-50%,-50%) scale(1)} }
.ah-hero .hub-core { position: absolute; inset: 0; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  background: color-mix(in srgb, var(--ah-card) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid color-mix(in srgb, var(--ah-accent) 16%, rgba(255,255,255,.7));
  box-shadow: 0 22px 60px -16px color-mix(in oklch, var(--ah-accent) 55%, transparent); }
.ah-hero .jig.is-on .hub-core { animation: kdBeat 5s 1.3s ease-out infinite; }
@keyframes kdBeat { 0%{transform:scale(1)} 2.5%{transform:scale(1.12)} 5%{transform:scale(.97)}
  7%{transform:scale(1)} 100%{transform:scale(1)} }
.ah-hero .hub b { font-size: 27px; letter-spacing: -.02em; color: var(--ah-accent); }
.ah-hero .hub span { font-size: 10px; letter-spacing: .28em; font-weight: 700; color: var(--ah-ink); }
.ah-hero .hub .glow { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 300%; height: 300%; border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(closest-side, color-mix(in oklch, var(--ah-accent) 30%, transparent), transparent 70%); }
.ah-hero .jig.is-on .hub .glow { animation: kdGlowp 5s 1.3s ease-out infinite; }
@keyframes kdGlowp { 0%{opacity:0; transform:translate(-50%,-50%) scale(.5)} 10%{opacity:.8}
  45%{opacity:0; transform:translate(-50%,-50%) scale(1.3)} 100%{opacity:0; transform:translate(-50%,-50%) scale(1.3)} }
.ah-hero .hub .ring, .ah-hero .hub .ring2 { position: absolute; inset: -1px; border-radius: 50%;
  border: 1.5px solid var(--ah-accent); opacity: 0; pointer-events: none; }
.ah-hero .jig.is-on .hub .ring  { animation: kdRingp 5s 1.3s ease-out infinite; }
.ah-hero .jig.is-on .hub .ring2 { animation: kdRingp 5s 1.6s ease-out infinite; }
@keyframes kdRingp { 0%{transform:scale(1);opacity:.6} 40%{transform:scale(2.6);opacity:0} 100%{transform:scale(2.6);opacity:0} }

@media (prefers-reduced-motion: reduce) {
  .ah-hero::before, .ah-hero::after, .ah-hero .cyanblob { animation: none !important; }
  .ah-hero #stars { display: none !important; }
  .ah-hero .jig.is-on * { animation-duration: .01s !important; animation-delay: 0s !important;
    animation-iteration-count: 1 !important; } }
@media (max-width: 560px) {
  .ah-hero { padding-top: 72px; }
  .ah-hero .lead { font-size: 15.5px; } .ah-hero .claim { font-size: 13.5px; margin-bottom: 48px; }
  .ah-hero .pc .txt h3 { font-size: 14px; } .ah-hero .pc .txt p { font-size: 11px; }
  .ah-hero .pc .ic { width: 28px; height: 28px; font-size: 14px; border-radius: 9px; }
  .ah-hero .hub { width: 96px; height: 96px; } .ah-hero .hub b { font-size: 19px; } .ah-hero .hub span { font-size: 7px; } }

/* ---- FEATURE ROWS ---- */
.ah-feature { padding: 92px 24px; background: transparent; }
.ah-feature.alt { background: transparent; }
.ah-feature + .ah-feature { border-top: 1px solid color-mix(in srgb, var(--ah-line) 55%, transparent); }
.ah-feature .inner {
  padding: 8px 0;
}
.ah-feature .inner { max-width: 1024px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.ah-feature.flip .copy { order: 2; }
.ah-feature .eyebrow2 { font-size: 14px; font-weight: 600; letter-spacing: .02em; color: var(--ah-accent); margin: 0 0 14px; text-transform: none; font-family: inherit; }
.ah-feature h2 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 700; line-height: 1.08; letter-spacing: -.02em; margin: 0 0 18px; color: var(--ah-ink); }
.ah-feature .fsub { font-size: clamp(16px, 1.4vw, 19px); line-height: 1.6; color: var(--ah-sub); margin: 0 0 28px; letter-spacing: -.005em; max-width: 34em; }
.ah-feature .copy .link { margin-top: 2px; }

/* preview panels (lightweight product shots) */
.ahp {
  --glass-blur: 18px;
  background: color-mix(in srgb, var(--ah-card) 92%, transparent);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.45);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.45);
  border: 1px solid color-mix(in srgb, var(--ah-line) 85%, rgba(255,255,255,.35));
  border-radius: 22px; padding: 22px;
  box-shadow:
    0 30px 60px -30px rgba(0,0,0,.18),
    inset 0 1px 0 rgba(255,255,255,.45);
}
:root[data-theme="dark"] .ahp {
  background: color-mix(in srgb, var(--ah-card) 88%, transparent);
  border-color: rgba(255,255,255,.12);
  box-shadow:
    0 30px 60px -28px rgba(0,0,0,.72),
    inset 0 1px 0 rgba(255,255,255,.08);
}
@supports not (backdrop-filter: blur(1px)) {
  .ahp { background: var(--ah-card-solid); }
}
.ahp-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.ahp-h .t { font-size: 13px; font-weight: 600; color: var(--ah-ink); }
.ahp-h .m { font-family: var(--font-mono); font-size: 11px; color: var(--ah-sub); }
.ahp-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--ah-line); }
.ahp-row:first-of-type { border-top: none; }
.ahp-row .d { font-family: var(--font-mono); font-size: 13px; color: var(--ah-accent); white-space: nowrap; }
.ahp-row .x { flex: 1; min-width: 0; }
.ahp-row .x .a { font-size: 13.5px; font-weight: 600; color: var(--ah-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ahp-row .x .b { font-size: 12px; color: var(--ah-sub); margin-top: 2px; }
.ahp-chip { font-size: 11px; font-family: var(--font-mono); color: var(--ah-accent); padding: 4px 9px; border-radius: 999px; background: color-mix(in srgb, var(--ah-accent) 12%, transparent); white-space: nowrap; }
.ahp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ahp-mini {
  border: 1px solid color-mix(in srgb, var(--ah-line) 80%, transparent);
  border-radius: 14px; padding: 14px;
  background: color-mix(in srgb, var(--ah-card-solid) 42%, transparent);
}
.ahp-mini .cat { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 10.5px; color: var(--ah-sub); margin-bottom: 8px; }
.ahp-mini .cat i { width: 16px; height: 16px; border-radius: 5px; display: inline-block; }
.ahp-mini .nm { font-size: 13px; font-weight: 600; color: var(--ah-ink); line-height: 1.3; margin-bottom: 5px; }
.ahp-mini .bl { font-size: 11.5px; line-height: 1.5; color: var(--ah-sub); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ahp-post { display: flex; gap: 11px; padding: 12px 0; border-top: 1px solid var(--ah-line); }
.ahp-post:first-of-type { border-top: none; }
.ahp-post .av { width: 32px; height: 32px; border-radius: 9px; flex: 0 0 auto; }
.ahp-post .nm { font-size: 12.5px; font-weight: 600; color: var(--ah-ink); }
.ahp-post .tt { font-size: 13px; color: var(--ah-sub); margin-top: 3px; line-height: 1.4; }

/* ---- events strip ---- */
.ah-events { padding: 92px 24px; background: transparent; }
.ah-events .head { max-width: 1024px; margin: 0 auto 36px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.ah-events h2 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 700; letter-spacing: -.02em; margin: 0; color: var(--ah-ink); }
.ah-evgrid { max-width: 1024px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ah-ev {
  background: color-mix(in srgb, var(--ah-card) 92%, transparent);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid color-mix(in srgb, var(--ah-line) 85%, rgba(255,255,255,.3));
  border-radius: 20px; padding: 24px; cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  display: flex; flex-direction: column; min-height: 190px;
  box-shadow: 0 18px 42px -28px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.4);
}
.ah-ev:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 56px -26px color-mix(in oklch, var(--ah-accent) 28%, rgba(0,0,0,.28));
  border-color: color-mix(in srgb, var(--ah-accent) 28%, var(--ah-line));
}
:root[data-theme="dark"] .ah-ev {
  background: color-mix(in srgb, var(--ah-card) 90%, transparent);
  border-color: rgba(255,255,255,.12);
  box-shadow: 0 18px 42px -24px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.06);
}
@supports not (backdrop-filter: blur(1px)) {
  .ah-ev { background: var(--ah-card-solid); }
}
.ah-ev .top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.ah-ev .date { font-family: var(--font-mono); font-size: 17px; font-weight: 600; color: var(--ah-ink); letter-spacing: -.01em; }
.ah-ev .date span { font-size: 11px; color: var(--ah-sub); margin-left: 7px; }
.ah-ev h3 { font-size: 18px; font-weight: 600; line-height: 1.4; margin: 0 0 8px; color: var(--ah-ink); }
.ah-ev .org { font-size: 13px; color: var(--ah-sub); margin-top: auto; }

/* ---- closing CTA · open band, blends into aurora (no boxed glass card) ---- */
.ah-cta {
  padding: 88px 24px 128px;
  text-align: center;
  background: transparent;
  position: relative;
}
.ah-cta::before {
  content: '';
  position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  width: min(720px, 88vw); height: 1px;
  background: linear-gradient(90deg,
    transparent,
    color-mix(in srgb, var(--ah-line) 90%, transparent) 20%,
    color-mix(in srgb, var(--ah-accent) 35%, transparent) 50%,
    color-mix(in srgb, var(--ah-line) 90%, transparent) 80%,
    transparent);
  pointer-events: none;
}
.ah-cta-inner {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  padding: 12px 8px 0;
}
.ah-cta-kicker {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ah-accent);
}
.ah-cta h2 {
  font-size: clamp(30px, 4.2vw, 48px);
  font-weight: 700;
  letter-spacing: -.03em;
  margin: 0 0 14px;
  color: var(--ah-ink);
  line-height: 1.12;
}
.ah-cta-inner > p:not(.ah-cta-kicker) {
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--ah-sub);
  margin: 0 auto 28px;
  max-width: 30em;
  line-height: 1.6;
}
.ah-cta .btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.ah-cta-meta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  font-size: 12.5px;
  color: color-mix(in srgb, var(--ah-sub) 92%, transparent);
  letter-spacing: .01em;
}
.ah-cta-meta i {
  width: 3px; height: 3px; border-radius: 50%;
  background: color-mix(in srgb, var(--ah-accent) 55%, var(--ah-line));
  display: inline-block;
}
.ah-btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 980px; padding: 12px 26px;
  font-size: 16px; font-weight: 500; cursor: pointer;
  transition: filter .2s, transform .2s, box-shadow .2s, background .2s, border-color .2s;
  border: none; text-decoration: none;
}
.ah-btn-primary {
  background: linear-gradient(135deg, var(--ah-accent), color-mix(in oklch, var(--ah-accent) 55%, #38bdf8));
  color: #fff;
  box-shadow: 0 12px 28px -14px color-mix(in oklch, var(--ah-accent) 50%, transparent);
}
.ah-btn-primary:hover {
  filter: brightness(1.06);
  box-shadow: 0 14px 32px -12px color-mix(in oklch, var(--ah-accent) 48%, transparent);
}
.ah-btn-ghost {
  background: transparent;
  color: var(--ah-ink);
  border: 1px solid color-mix(in srgb, var(--ah-line) 95%, transparent);
}
.ah-btn-ghost:hover {
  border-color: color-mix(in srgb, var(--ah-accent) 35%, var(--ah-line));
  background: color-mix(in srgb, var(--ah-accent) 7%, transparent);
  color: var(--ah-ink);
}

/* reuse reveal */
.ah .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2,.7,.3,1), transform .8s cubic-bezier(.2,.7,.3,1); }
.ah .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .ah .reveal { opacity: 1; transform: none; transition: none; } }

/* ---- responsive ---- */
@media (max-width: 860px) {
  .ah-feature .inner { grid-template-columns: 1fr; gap: 30px; }
  .ah-feature.flip .copy { order: 0; }
  .ah-evgrid { grid-template-columns: 1fr; }
  .ka[data-page="home"] .ka-nav .links { display: none; }
}
@media (max-width: 620px) {
  .ah-hero { padding: 64px 20px 90px; }
  .ah-feature { padding: 64px 20px; }
  .ah-events, .ah-cta { padding: 64px 20px 96px; }
  .ah-cta-inner { padding-top: 4px; }
  .ah-cta-meta { gap: 8px 12px; font-size: 12px; }
  .ah-atmosphere .ah-blob { filter: blur(56px); opacity: .7; }
}


/* ---- home footer continuity ---- */
.ka[data-page="home"] .ka-foot {
  position: relative; z-index: 1;
  background: color-mix(in srgb, var(--ah-bg) 55%, transparent);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-top: 1px solid color-mix(in srgb, var(--ah-line) 70%, transparent);
  color: var(--ah-sub);
}
.ka[data-page="home"] .ka-foot a { color: var(--ah-sub); }
.ka[data-page="home"] .ka-foot a:hover { color: var(--ah-ink); }

/* soft section separators instead of hard bands */
.ah-events .head h2,
.ah-feature h2 {
  text-shadow: 0 1px 0 color-mix(in srgb, var(--ah-bg) 40%, transparent);
}
