/* ===== SMART HAVEN base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background: #131a1e;
    color: #f5f0e8;
    line-height: 1.6;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
button { font-family: inherit; border: none; background: none; cursor: pointer; color: inherit; }
img { display: block; max-width: 100%; }
.mono-tag { font-family: 'JetBrains Mono', 'IBM Plex Mono', monospace; }
.mono-hint { font-family: 'JetBrains Mono', 'IBM Plex Mono', monospace; }
.mono-pill {
    display: inline-flex; align-items: center; gap: 5px;
    font-family: 'JetBrains Mono', monospace; font-size: 11px;
    letter-spacing: 0.08em; text-transform: uppercase;
    padding: 4px 12px; border-radius: 999px;
    border: 1px solid rgba(255,179,71,0.55);
    color: #ffc978; background: rgba(255,179,71,0.06);
}
.svg-icon, .masonry-meta svg, .related-heat svg, .article-heat svg { width: 1em; height: 1em; }

.main-content { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
section { margin-bottom: 84px; }

/* ===== Header ===== */
.sh-header {
    position: sticky; top: 0; z-index: 60;
    height: 76px;
    background: rgba(10,15,18,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.header-edge {
    position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, #ffb347, #6ee7b7);
}
.sh-header-inner {
    max-width: 1280px; margin: 0 auto; height: 100%;
    padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.sh-brand { display: flex; align-items: center; gap: 12px; }
.sh-signal-dots { display: flex; align-items: center; gap: 3px; }
.sh-signal-dots i { border-radius: 50%; display: block; }
.sh-signal-dots i:nth-child(1) { width: 4px; height: 4px; background: #ffb347; }
.sh-signal-dots i:nth-child(2) { width: 7px; height: 7px; background: #6ee7b7; animation: sigPulse 2.4s ease-in-out infinite; }
.sh-signal-dots i:nth-child(3) { width: 10px; height: 10px; background: #c4b5fd; animation: sigPulse 2.4s ease-in-out 0.4s infinite; }
@keyframes sigPulse { 0%,100% { opacity: 0.55; transform: scale(0.9); } 50% { opacity: 1; transform: scale(1.08); } }
.sh-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.sh-logo { display: flex; align-items: baseline; gap: 7px; }
.logo-smart { font-family: 'Lora', serif; font-style: italic; font-weight: 600; font-size: 24px; color: #ffb347; }
.logo-haven { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 20px; letter-spacing: 0.22em; color: #6ee7b7; }
.sh-brand-sub { font-size: 10px; letter-spacing: 0.14em; color: #c4b5fd; opacity: 0.8; }
.sh-nav { display: flex; align-items: baseline; gap: 28px; }
.sh-nav a { transition: transform 0.25s ease, filter 0.25s ease; }
.sh-nav a:hover { transform: translateY(-2px); filter: brightness(1.25); }
.nav-rooms { font-family: 'Lora', serif; font-style: italic; font-weight: 600; font-size: 17px; color: #ffb347; }
.nav-devices { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 15px; letter-spacing: 0.14em; color: #6ee7b7; }
.nav-scenes { font-family: 'Lora', serif; font-style: italic; font-weight: 600; font-size: 17px; color: #fb7185; }
.nav-voice { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 15px; letter-spacing: 0.14em; color: #c4b5fd; }
.sh-head-info { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.info-mint { font-size: 10px; letter-spacing: 0.12em; color: #6ee7b7; }
.info-amber { font-size: 10px; letter-spacing: 0.12em; color: #ffb347; }
.sh-sigline {
    position: absolute; top: 50%; width: 90px; height: 8px;
    transform: translateY(-50%); pointer-events: none; opacity: 0.5;
    background-image: repeating-radial-gradient(circle at 4px 4px, rgba(110,231,183,0.35) 0 1px, transparent 1px 4px);
}
.sh-sigline-left { left: -110px; }
.sh-sigline-right { right: -110px; }

/* ===== Section heads ===== */
.section-head { text-align: center; margin-bottom: 34px; }
.section-line {
    display: block; width: 0; height: 2px; margin: 0 auto 16px;
    background: linear-gradient(90deg, #ffb347, #6ee7b7, #c4b5fd);
    border-radius: 2px; transition: width 0.9s ease;
}
.section-line.sweeping { width: 120px; }
.section-title { font-size: 30px; display: block; }
.sh-serif { font-family: 'Lora', serif; font-style: italic; font-weight: 600; color: #ffb347; }
.sh-sans { font-family: 'Outfit', sans-serif; font-weight: 800; letter-spacing: 0.1em; color: #6ee7b7; }
.section-sub { display: block; margin-top: 8px; font-size: 12px; letter-spacing: 0.1em; color: #7a929e; }

.h-reveal { opacity: 0; transform: translateY(26px); }
.h-reveal.revealed { opacity: 1; transform: none; }

/* ===== Hero: Hub & Rooms (desktop) ===== */
.sh-hero { margin-top: 26px; }
.sh-hero-desk { display: block; }
.sh-hub-grid {
    position: relative;
    height: 72vh; min-height: 400px; max-height: 640px;
    background:
        radial-gradient(ellipse at 50% 45%, rgba(255,179,71,0.10) 0%, transparent 55%),
        repeating-linear-gradient(0deg, rgba(196,181,253,0.02) 0 1px, transparent 1px 18px),
        repeating-linear-gradient(90deg, rgba(196,181,253,0.02) 0 1px, transparent 1px 18px);
    border-radius: 26px;
}
.sh-hub {
    position: absolute; top: 50%; left: 50%;
    width: 260px; height: 260px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    display: block;
    transition: transform 0.35s ease, filter 0.35s ease;
}
.sh-hub:hover { transform: translate(-50%, -50%) scale(1.04); filter: drop-shadow(0 0 26px rgba(255,179,71,0.4)); }
.sh-ring {
    position: absolute; border-radius: 50%; pointer-events: none;
    border: 1.5px solid rgba(255,179,71,0.35);
    animation: hubPulse 3.2s ease-out infinite;
}
.sh-ring.r1 { inset: -14px; animation-delay: 0s; }
.sh-ring.r2 { inset: -30px; border-color: rgba(110,231,183,0.3); animation-delay: 1s; }
.sh-ring.r3 { inset: -48px; border-color: rgba(196,181,253,0.25); animation-delay: 2s; }
@keyframes hubPulse {
    0% { opacity: 0.9; transform: scale(0.96); }
    70% { opacity: 0; transform: scale(1.06); }
    100% { opacity: 0; transform: scale(1.06); }
}
.sh-hub-inner {
    position: absolute; inset: 0; border-radius: 50%; overflow: hidden;
    border: 3px solid transparent;
    background:
        radial-gradient(circle at 50% 30%, rgba(19,26,30,0.15), rgba(19,26,30,0.88) 78%),
        linear-gradient(#1c262b, #1c262b) padding-box;
    box-shadow: 0 0 0 3px rgba(255,179,71,0.9), 0 0 0 6px rgba(110,231,183,0.55);
}
.sh-hub-img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.sh-hub-shade {
    position: absolute; inset: 0;
    background: radial-gradient(circle at 50% 40%, rgba(10,15,18,0.1) 0%, rgba(10,15,18,0.82) 85%);
}
.sh-hub-text {
    position: absolute; inset: 0; z-index: 2;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; padding: 26px;
}
.sh-hub-text i {
    font-family: 'Outfit', sans-serif; font-weight: 700; font-style: normal;
    font-size: 20px; color: #f5f0e8; line-height: 1.3;
}
.sh-hub-pill {
    margin-top: 12px; font-size: 10px; letter-spacing: 0.14em;
    padding: 4px 12px; border-radius: 999px;
    background: rgba(255,179,71,0.16); color: #ffc978;
    border: 1px solid rgba(255,179,71,0.5);
}
.sh-room-card {
    position: absolute; width: 28%; height: 35%;
    overflow: hidden; display: block;
    background: #1c262b;
    box-shadow: 0 10px 26px rgba(0,0,0,0.75);
    transition: transform 0.35s ease, filter 0.35s ease;
}
.sh-room-card:hover { transform: scale(1.04); filter: drop-shadow(0 0 20px var(--ac)); }
.sh-room-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sh-room-shade {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(10,15,18,0.15) 0%, rgba(10,15,18,0.85) 100%);
}
.sh-room-meta {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 12px 14px;
    display: flex; flex-direction: column; gap: 3px;
}
.sh-room-pill {
    align-self: flex-start; font-size: 9px; letter-spacing: 0.14em;
    padding: 2px 9px; border-radius: 999px;
    background: var(--ac); color: #131a1e; font-style: normal; font-weight: 600;
}
.sh-room-meta i { font-family: 'Outfit', sans-serif; font-style: normal; font-weight: 700; font-size: 16px; color: #f5f0e8; }
.sh-room-meta b { font-size: 10px; font-weight: 400; color: #7a929e; }
/* distinct cut / bulge corners per room */
.rc-tl { top: 4%; left: 3%; border-radius: 18px 18px 18px 18px; clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%, 0 14%); }
.rc-tr { top: 4%; right: 3%; border-radius: 18px; }
.rc-tr::after {
    content: ""; position: absolute; left: -14px; top: 26%; width: 28px; height: 48%;
    border-radius: 50%; background: inherit;
    box-shadow: inset 12px 0 0 #1c262b;
}
.rc-bl { bottom: 4%; left: 3%; border-radius: 18px 18px 40% 40% / 18px 18px 26% 26%; }
.rc-br { bottom: 4%; right: 3%; border-radius: 18px; clip-path: polygon(0 0, 100% 0, 100% 86%, 86% 100%, 0 100%); }
.sh-conn {
    position: absolute; top: 50%; left: 50%; width: 24%; height: 0;
    border-top: 1.5px dashed rgba(110,231,183,0.4);
    transform-origin: 0 0; pointer-events: none;
}
.c-tl { transform: rotate(205deg); }
.c-tr { transform: rotate(-25deg); }
.c-bl { transform: rotate(155deg); }
.c-br { transform: rotate(25deg); }
.sh-hint { text-align: center; margin-top: 16px; font-size: 11px; letter-spacing: 0.12em; color: #7a929e; }

/* ===== Hero (mobile): 2x2 room tiles + central hub, fixed <=130px ===== */
.sh-hero-mob { display: none; }

/* ===== Room Grid ===== */
.sh-roomgrid-section {
    background-image: radial-gradient(rgba(255,179,71,0.04) 1px, transparent 1px);
    background-size: 12px 10px;
    border-radius: 22px;
    padding: 34px 18px 26px;
}
.sh-roomgrid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
    max-width: 980px; margin: 0 auto;
}
.sh-roomgrid-card {
    position: relative;
    min-height: 120px; margin-top: 22px;
    background: #1c262b;
    border: 1px solid var(--ac);
    border-radius: 16px;
    display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
    padding: 26px 12px 12px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.75);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.sh-roomgrid-card:hover { transform: translateY(-6px); box-shadow: 0 12px 26px rgba(0,0,0,0.75), 0 0 22px var(--ac); }
.rgc-bump {
    position: absolute; top: -22px; left: 50%; transform: translateX(-50%);
    width: 44px; height: 44px; border-radius: 50%; overflow: hidden;
    border: 2px solid var(--ac); background: #0a0f12;
    transition: transform 0.3s ease;
}
.sh-roomgrid-card:hover .rgc-bump { transform: translateX(-50%) scale(1.1); }
.rgc-bump img { width: 100%; height: 100%; object-fit: cover; }
.rgc-dot {
    position: absolute; top: 10px; left: 10px; width: 7px; height: 7px; border-radius: 50%;
    background: var(--ac); box-shadow: 0 0 8px var(--ac);
    animation: sigPulse 2.8s ease-in-out infinite;
}
.rgc-name { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 14px; color: #f5f0e8; }
.rgc-count { font-size: 10px; letter-spacing: 0.1em; color: var(--ac); margin-top: 2px; }
.rgc-bar {
    width: 100%; height: 3px; border-radius: 2px; margin-top: 9px;
    background: rgba(122,146,158,0.25); overflow: hidden;
}
.rgc-bar i { display: block; height: 100%; background: linear-gradient(90deg, #ffb347, #6ee7b7); border-radius: 2px; }

/* ===== Scene Cards (folded) ===== */
.sh-scene-track {
    display: flex; gap: 22px; overflow-x: auto; padding: 26px 18px 30px;
    background: rgba(110,231,183,0.08);
    border: 1.5px dashed rgba(196,181,253,0.4);
    border-radius: 22px;
    scrollbar-width: thin; scrollbar-color: #6ee7b7 transparent;
}
.sh-scene-track::after {
    content: ""; position: absolute;
}
.sh-scene-card {
    position: relative; flex: 0 0 320px; height: 172px;
    background: linear-gradient(120deg, #6ee7b7, #c4b5fd);
    border-radius: 14px;
    display: flex; align-items: center; gap: 0;
    padding: 26px 16px 14px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.75);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    transform-style: preserve-3d;
}
.sh-scene-card:hover { transform: translateY(-6px) rotateY(3deg); box-shadow: 0 14px 30px rgba(0,0,0,0.75), 0 0 24px rgba(110,231,183,0.5); }
.scene-crease {
    position: absolute; top: 6px; bottom: 6px; left: 50%; width: 2px;
    background: linear-gradient(180deg, transparent, rgba(19,26,30,0.4) 18%, rgba(19,26,30,0.4) 82%, transparent);
    box-shadow: 1px 0 0 rgba(255,255,255,0.35);
}
.scene-icon { position: absolute; top: 8px; left: 14px; width: 22px; height: 22px; color: #131a1e; }
.scene-icon svg { width: 100%; height: 100%; }
.scene-left { flex: 0 0 100px; height: 100px; border-radius: 12px; overflow: hidden; border: 2px solid rgba(19,26,30,0.35); }
.scene-left img { width: 100%; height: 100%; object-fit: cover; }
.scene-right { flex: 1; padding-left: 18px; display: flex; flex-direction: column; gap: 5px; }
.scene-name { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 16px; color: #131a1e; }
.scene-trigger { font-size: 10px; letter-spacing: 0.08em; color: rgba(19,26,30,0.75); }
.scene-count { font-size: 10px; color: rgba(19,26,30,0.85); margin-top: auto; }
.scene-active {
    position: absolute; right: 10px; bottom: 8px;
    font-size: 9px; letter-spacing: 0.1em; padding: 2px 8px; border-radius: 999px;
    background: #fb7185; color: #131a1e; font-weight: 600;
}
.sh-scenes-section { position: relative; }
.sh-scenes-section::after {
    content: ""; display: block; height: 26px; margin-top: -12px; border-radius: 12px;
    background-image: repeating-radial-gradient(circle at 50% 50%, rgba(110,231,183,0.10) 0 2px, transparent 2px 10px);
}

/* ===== Voice Arc (speech-bubble cards) ===== */
.sh-voice-row {
    display: flex; justify-content: center; align-items: flex-start;
    gap: 26px; padding: 30px 8px 44px;
}
.sh-voice-card {
    position: relative; flex: 0 0 200px;
    background: linear-gradient(135deg, #fb7185, #ffb347);
    border-radius: 18px 18px 18px 6px;
    padding: 18px 16px 28px;
    display: flex; flex-direction: column; gap: 8px;
    box-shadow: 0 10px 22px rgba(0,0,0,0.75);
    transform: rotate(var(--ang)) translateY(var(--ty));
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.sh-voice-card:hover {
    transform: rotate(0deg) translateY(calc(var(--ty) - 8px));
    box-shadow: 0 16px 30px rgba(0,0,0,0.75), 0 0 24px rgba(251,113,133,0.55);
}
.vc-mic { width: 22px; height: 22px; color: #131a1e; }
.vc-mic svg { width: 100%; height: 100%; }
.vc-text { font-family: 'Lora', serif; font-style: italic; font-weight: 600; font-size: 15px; color: #f5f0e8; line-height: 1.35; }
.vc-result { font-size: 10px; letter-spacing: 0.06em; color: rgba(19,26,30,0.85); }
.vc-wave { position: absolute; left: 14px; bottom: 9px; display: flex; align-items: flex-end; gap: 3px; height: 14px; }
.vc-wave i { width: 3px; border-radius: 2px; background: rgba(19,26,30,0.65); }
.vc-wave i:nth-child(1) { height: 6px; }
.vc-wave i:nth-child(2) { height: 12px; }
.vc-wave i:nth-child(3) { height: 8px; }
.sh-voice-card:hover .vc-wave i { animation: waveBounce 0.7s ease-in-out infinite; }
.sh-voice-card:hover .vc-wave i:nth-child(2) { animation-delay: 0.12s; }
.sh-voice-card:hover .vc-wave i:nth-child(3) { animation-delay: 0.24s; }
.vc-tail {
    position: absolute; right: 16px; bottom: -9px; width: 0; height: 0;
    border-left: 10px solid transparent; border-right: 4px solid transparent;
    border-top: 12px solid #ffb347;
}
@keyframes waveBounce { 0%,100% { transform: scaleY(1); } 50% { transform: scaleY(1.8); } }

/* ===== Device Nodes (hexagon tags) ===== */
.sh-hex-row {
    position: relative; display: flex; justify-content: center; align-items: center;
    gap: 34px; padding: 20px 0 10px;
}
.hex-thread {
    position: absolute; left: 8%; right: 8%; top: 50%; height: 0;
    border-top: 1.5px dashed rgba(196,181,253,0.4); pointer-events: none;
}
.sh-hex {
    position: relative; z-index: 1; width: 90px; height: 90px; flex: 0 0 90px;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    background: linear-gradient(135deg, #c4b5fd, #6ee7b7);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    padding-top: 8px;
    transition: transform 0.35s ease, filter 0.35s ease;
}
.sh-hex:nth-of-type(even) { background: linear-gradient(315deg, #6ee7b7, #c4b5fd); }
.sh-hex:hover { transform: rotate(15deg) scale(1.08); filter: drop-shadow(0 0 16px var(--ac)); }
.hex-dot { width: 6px; height: 6px; border-radius: 50%; background: #131a1e; opacity: 0.8; }
.hex-icon { width: 22px; height: 22px; color: #131a1e; }
.hex-icon svg { width: 100%; height: 100%; }
.hex-name { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 10px; color: #131a1e; text-align: center; line-height: 1.1; }
.hex-online { font-size: 9px; color: rgba(19,26,30,0.7); }
.sh-hot-row { text-align: center; margin-top: 30px; }
.hot-title { display: block; font-size: 11px; letter-spacing: 0.12em; color: #7a929e; margin-bottom: 12px; }
.hot-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.hot-chip {
    font-size: 11px; letter-spacing: 0.06em; padding: 5px 14px; border-radius: 999px;
    border: 1px solid rgba(110,231,183,0.45); color: #9af0d0; background: rgba(110,231,183,0.06);
}

/* ===== Masonry feed + sidebar ===== */
.content-layout { display: grid; grid-template-columns: 1fr 320px; gap: 34px; align-items: start; }
.sidebar { position: sticky; top: 96px; }
.masonry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.sh-masonry-card {
    position: relative; display: block; background: #1c262b;
    border: 1px solid rgba(255,179,71,0.35);
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
    box-shadow: 0 8px 20px rgba(0,0,0,0.75);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.sh-masonry-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 30px rgba(0,0,0,0.75), 0 0 22px rgba(255,179,71,0.35), 0 0 30px rgba(110,231,183,0.25);
}
.masonry-img-wrap { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.masonry-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease; }
.sh-masonry-card:hover .masonry-img { transform: scale(1.06); }
.masonry-badge {
    position: absolute; top: 10px; left: 10px; z-index: 2;
    font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.1em;
    padding: 3px 10px; border-radius: 999px;
    background: #131a1e; color: #ffc978; border: 1px solid rgba(255,179,71,0.6);
}
.masonry-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 7px; }
.masonry-cat { font-size: 11px; letter-spacing: 0.12em; color: #6ee7b7; }
.masonry-title { font-family: 'Inter', sans-serif; font-weight: 600; font-size: 16px; line-height: 1.35; color: #f5f0e8; }
.masonry-meta { display: flex; align-items: center; gap: 6px; font-size: 11px; color: rgba(122,146,158,0.75); }
.masonry-meta svg { color: #fb7185; }
.masonry-read {
    position: absolute; right: 12px; bottom: 12px;
    font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.08em;
    padding: 4px 12px; border-radius: 999px; background: #6ee7b7; color: #131a1e;
    opacity: 0; transform: translateY(6px); transition: opacity 0.3s ease, transform 0.3s ease;
}
.sh-masonry-card:hover .masonry-read { opacity: 1; transform: none; }
.masonry-hidden { display: none; }
.sh-ad-divider { border-top: 1px solid rgba(255,179,71,0.35); margin: 30px 0 6px; }
.load-more-wrap { text-align: center; margin-top: 36px; position: relative; }
.load-more-btn {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 14px; letter-spacing: 0.06em;
    padding: 13px 34px; border-radius: 999px; background: #6ee7b7; color: #131a1e;
    box-shadow: 0 8px 20px rgba(0,0,0,0.6); transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.load-more-btn:hover { transform: translateY(-4px); box-shadow: 0 14px 26px rgba(0,0,0,0.7), 0 0 22px rgba(110,231,183,0.45); }
.load-ring { display: none; width: 14px; height: 14px; border-radius: 50%; border: 2.5px solid rgba(19,26,30,0.3); border-top-color: #ffb347; animation: spinRing 0.8s linear infinite; }
.load-more-btn.loading .load-ring { display: inline-block; }
@keyframes spinRing { to { transform: rotate(360deg); } }
.infinite-ring { display: none; width: 26px; height: 26px; margin: 18px auto 0; border-radius: 50%; border: 3px solid rgba(255,179,71,0.25); border-top-color: #ffb347; }
.infinite-ring.spin { display: block; animation: spinRing 0.9s linear infinite; }
.scroll-sentinel { height: 1px; }

/* ===== Sidebar live widget ===== */
.sh-widget {
    background: #1c262b; border: 1px solid rgba(255,179,71,0.3); border-radius: 16px;
    padding: 18px; box-shadow: 0 8px 20px rgba(0,0,0,0.75);
}
.widget-title {
    display: flex; align-items: center; gap: 8px;
    font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 15px; letter-spacing: 0.06em;
    color: #f5f0e8; margin-bottom: 14px;
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #6ee7b7; box-shadow: 0 0 8px #6ee7b7; animation: liveBreath 2.2s ease-in-out infinite; }
@keyframes liveBreath { 0%,100% { opacity: 0.45; transform: scale(0.85); } 50% { opacity: 1; transform: scale(1.15); } }
.sh-live-list { display: flex; flex-direction: column; gap: 8px; }
.sh-live-row {
    position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px;
    background: #0a0f12; border-radius: 8px; padding: 9px 12px 9px 16px; overflow: hidden;
}
.sh-live-bar { position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--lc); }
.sh-live-name { font-size: 12px; color: #f5f0e8; }
.sh-live-val { font-size: 10px; letter-spacing: 0.08em; color: #ffb347; }

/* ===== Footer ===== */
.sh-footer { position: relative; background: #0a0f12; margin-top: 40px; }
.footer-ripple {
    display: block; height: 22px;
    background-image: repeating-radial-gradient(circle at 50% 100%, rgba(110,231,183,0.12) 0 2px, transparent 2px 12px);
    background-size: 200% 100%;
    animation: rippleScroll 6s linear infinite;
}
@keyframes rippleScroll { from { background-position: 0 0; } to { background-position: 200% 0; } }
.footer-edge { display: block; height: 3px; background: linear-gradient(90deg, rgba(255,179,71,0.85), rgba(110,231,183,0.85)); }
.footer-inner {
    max-width: 1280px; margin: 0 auto; padding: 30px 24px 34px;
    display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px;
}
.footer-brand { display: flex; flex-direction: column; gap: 6px; }
.footer-logo { display: flex; align-items: baseline; gap: 8px; }
.footer-tagline { font-size: 10px; letter-spacing: 0.14em; color: #c4b5fd; opacity: 0.8; }
.footer-nav { display: flex; align-items: baseline; gap: 26px; }
.foot-link { transition: transform 0.25s ease, filter 0.25s ease; }
.foot-link:hover { transform: translateY(-2px); filter: brightness(1.25); }
.foot-contact { font-family: 'Lora', serif; font-style: italic; font-weight: 600; font-size: 16px; color: #ffb347; }
.foot-privacy { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 14px; letter-spacing: 0.14em; color: #6ee7b7; }
.foot-about { font-family: 'Lora', serif; font-style: italic; font-weight: 600; font-size: 16px; color: #fb7185; }
.footer-copy { width: 100%; font-family: 'JetBrains Mono', monospace; font-size: 11px; color: rgba(122,146,158,0.5); letter-spacing: 0.06em; }

/* ===== Detail page: hero ===== */
.article-main { max-width: 900px; margin: 0 auto; padding: 0 24px 60px; }
.article-hero {
    position: relative; height: 56vh; min-height: 320px;
    background: radial-gradient(circle at 50% 30%, rgba(255,179,71,0.25), #131a1e 70%);
    border-radius: 0 0 22px 22px; overflow: hidden; margin-top: 26px;
}
.article-hero-glow {
    position: absolute; right: -60px; bottom: -60px; width: 240px; height: 240px; border-radius: 50%;
    background: radial-gradient(circle, rgba(110,231,183,0.35), transparent 70%); pointer-events: none;
}
.article-signal-edge {
    position: absolute; left: 0; top: 0; bottom: 0; width: 10px; z-index: 3;
    background-image: repeating-radial-gradient(circle at 0% 50%, rgba(255,179,71,0.35) 0 2px, transparent 2px 12px);
    background-size: 100% 200%; animation: rippleScrollY 7s linear infinite;
}
@keyframes rippleScrollY { from { background-position: 0 0; } to { background-position: 0 200%; } }
.article-hero-corner {
    position: absolute; top: 0; right: 0; width: 140px; height: 140px;
    background: radial-gradient(circle at 100% 0%, rgba(196,181,253,0.18), transparent 65%); pointer-events: none;
}
.article-hero-actions { position: absolute; top: 18px; left: 22px; z-index: 4; display: flex; gap: 12px; }
.hero-chip {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(0,0,0,0.45); border: 1.5px solid rgba(255,179,71,0.7);
    color: #f5f0e8; transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.hero-chip svg { width: 18px; height: 18px; }
.hero-chip span { display: none; }
.hero-chip:hover { transform: scale(1.12); box-shadow: 0 0 16px rgba(255,179,71,0.5); }
.article-cover-wrap { position: absolute; inset: 0; }
.article-cover { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.article-cover-fade {
    position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, transparent 60%, rgba(19,26,30,0.92) 100%);
}

/* ===== Detail page: headline / params / device module ===== */
.article-headline { text-align: left; padding: 26px 24px 0; }
.article-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.article-heat { color: #fda4af; border-color: rgba(251,113,133,0.55); background: rgba(251,113,133,0.08); }
.article-heat svg { color: #fb7185; }
.detail-badge {
    display: inline-flex; align-items: center;
    font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.1em; font-weight: 600;
    padding: 4px 12px; border-radius: 999px; background: #ffb347; color: #131a1e;
}
.article-title { font-size: 32px; line-height: 1.25; margin-bottom: 12px; }
.t-smart { font-family: 'Lora', serif; font-style: italic; font-weight: 600; color: #ffb347; margin-right: 10px; }
.t-name { font-family: 'Outfit', sans-serif; font-weight: 800; color: #6ee7b7; }
.article-meta-row { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: rgba(122,146,158,0.8); }
.article-author { color: #c4b5fd; }
.param-section { margin-top: 30px; }
.param-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.param-card {
    position: relative; overflow: hidden; text-align: left; cursor: pointer;
    background: #1c262b; border: 1px solid rgba(255,179,71,0.3);
    border-radius: 14px; padding: 16px 14px 14px;
    display: flex; flex-direction: column; gap: 6px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.param-card::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, #ffb347, #6ee7b7);
}
.param-card:hover { transform: translateY(-6px); box-shadow: 0 12px 24px rgba(0,0,0,0.75), 0 0 18px rgba(255,179,71,0.3); }
.param-label { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.12em; color: rgba(122,146,158,0.55); }
.param-value { font-family: 'JetBrains Mono', monospace; font-size: 24px; font-weight: 600; color: #ffb347; }
.param-hint { display: none; font-size: 11px; line-height: 1.5; color: #7a929e; }
@media (hover: hover) and (min-width: 769px) {
    .param-card:hover .param-hint { display: block; }
}
.device-module {
    margin: 34px 0; padding: 22px 24px 26px;
    background: #1c262b; border: 1.5px solid rgba(255,179,71,0.5);
    border-radius: 14px;
    clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
}
.device-label { display: flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: 0.14em; color: #6ee7b7; margin-bottom: 16px; }
.device-label svg { width: 18px; height: 18px; }
.dd-head { display: flex; align-items: baseline; justify-content: center; gap: 18px; margin-bottom: 10px; }
.dd-name { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 22px; letter-spacing: 0.08em; color: var(--brandc); }
.dd-score { font-family: 'JetBrains Mono', monospace; font-size: 30px; font-weight: 600; color: #fb7185; }
.dd-mini { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; font-size: 10px; letter-spacing: 0.1em; color: #7a929e; margin-bottom: 18px; }
.dd-track, .dd-position { max-width: 460px; margin: 0 auto 12px; }
.dd-track-label, .dd-position-label { display: block; font-size: 10px; letter-spacing: 0.1em; color: rgba(122,146,158,0.7); margin-bottom: 6px; }
.dd-bar { height: 6px; border-radius: 3px; background: rgba(122,146,158,0.25); overflow: hidden; }
.dd-bar-fill { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #ffb347, #6ee7b7); }
.dd-bar-lav .dd-bar-fill { background: linear-gradient(90deg, #c4b5fd, #6ee7b7); }

/* ===== Detail page: body / terms / drawers / gallery ===== */
.article-body { max-width: 680px; margin: 0 auto; padding: 10px 24px 0; font-size: 18px; line-height: 1.8; color: #f5f0e8; }
.article-body p { margin-bottom: 22px; }
.article-body p:first-of-type::first-letter {
    font-family: 'Lora', serif; font-size: 46px; font-weight: 700; color: #ffb347;
    float: left; line-height: 1; padding: 4px 10px 0 0;
}
.article-body p:nth-of-type(odd) { border-left: 3px solid #6ee7b7; padding-left: 18px; }
.article-body h2, .article-body h3 { font-family: 'Outfit', sans-serif; color: #ddd0ff; margin: 28px 0 14px; }
.article-body img {
    width: 100%; margin: 26px 0; cursor: zoom-in; border-radius: 12px;
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
}
.sh-term {
    color: #c4b5fd; cursor: pointer;
    text-decoration: underline dotted rgba(196,181,253,0.6);
    transition: background 0.2s ease, color 0.2s ease;
}
.sh-term:hover { background: rgba(196,181,253,0.18); color: #ddd0ff; border-radius: 3px; }
.term-drawer {
    position: fixed; left: 50%; bottom: 0; z-index: 90; width: min(680px, calc(100% - 32px));
    transform: translate(-50%, 110%);
    background: #1c262b; border-top: 3px solid #ffb347; border-radius: 18px 18px 0 0;
    padding: 22px 24px 26px; box-shadow: 0 -12px 30px rgba(0,0,0,0.8);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.term-drawer.open { transform: translate(-50%, 0); }
.term-drawer-close { position: absolute; top: 8px; right: 14px; font-size: 22px; color: #ffb347; }
.term-drawer-text { font-size: 14px; line-height: 1.7; color: #f5f0e8; }
.cover-gallery {
    position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,0.95);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.cover-gallery.open { opacity: 1; pointer-events: auto; }
.cover-gallery img { max-width: 92vw; max-height: 88vh; object-fit: contain; border-radius: 10px; }
.cover-gallery-close { position: absolute; top: 18px; right: 24px; font-size: 30px; color: #ffb347; }

/* ===== Related cards ===== */
.related-section { margin-top: 56px; }
.related-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.related-card {
    display: block; background: #1c262b; border: 1px solid rgba(255,179,71,0.3);
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
    box-shadow: 0 6px 16px rgba(0,0,0,0.75);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.related-card:hover { transform: translateY(-6px); box-shadow: 0 12px 24px rgba(0,0,0,0.75), 0 0 18px rgba(255,179,71,0.3); }
.related-img-wrap { height: 110px; overflow: hidden; }
.related-img { width: 100%; height: 100%; object-fit: cover; }
.related-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 5px; }
.related-cat { font-size: 10px; letter-spacing: 0.12em; color: #ffb347; }
.related-title { font-family: 'Inter', sans-serif; font-weight: 600; font-size: 14px; line-height: 1.35; color: #f5f0e8; }
.related-heat { display: flex; align-items: center; gap: 5px; font-family: 'JetBrains Mono', monospace; font-size: 10px; color: #fb7185; }

/* ===== Static pages ===== */
.static-main { max-width: 760px; margin: 0 auto; padding: 40px 24px 70px; }
.back-btn {
    display: inline-block; font-family: 'JetBrains Mono', monospace; font-size: 12px;
    letter-spacing: 0.08em; color: #6ee7b7; margin-bottom: 22px; transition: transform 0.25s ease;
}
.back-btn:hover { transform: translateX(-4px); }
.static-article {
    background: #1c262b; border: 1px solid rgba(255,179,71,0.3); border-radius: 18px;
    padding: 30px 30px 36px; box-shadow: 0 10px 26px rgba(0,0,0,0.75);
}
.static-cat { margin-bottom: 12px; }
.static-title { font-family: 'Lora', serif; font-style: italic; font-weight: 600; font-size: 30px; color: #ffb347; margin-bottom: 20px; }
.static-content { font-size: 16px; line-height: 1.8; color: #f5f0e8; }
.static-content h2 { font-family: 'Outfit', sans-serif; color: #ddd0ff; font-size: 20px; margin: 22px 0 10px; }
.static-content strong { color: #ffb347; }

/* ===== Responsive: tablet ===== */
@media (max-width: 980px) {
    .content-layout { grid-template-columns: 1fr; }
    .sidebar { display: none; }
    .masonry-grid { grid-template-columns: repeat(2, 1fr); }
    .sh-nav { display: none; }
    .param-grid { grid-template-columns: repeat(2, 1fr); }
    .related-track { grid-template-columns: repeat(2, 1fr); }
    .sh-roomgrid { grid-template-columns: repeat(2, 1fr); }
    .sh-voice-row { flex-wrap: wrap; }
    .sh-voice-card { flex: 0 0 calc(50% - 16px); }
    .sh-hex-row { flex-wrap: wrap; gap: 22px; }
    .hex-thread { display: none; }
}

/* ===== Responsive: mobile ===== */
@media (max-width: 768px) {
    section { margin-bottom: 56px; }
    .sh-hero { margin-bottom: 36px; }
    .sh-hero-desk { display: none; }
    /* Mobile hero: 2x2 room tiles + central hub, hard-capped at 130px */
    .sh-hero-mob {
        display: grid; position: relative;
        grid-template-columns: repeat(2, 48px); grid-template-rows: repeat(2, 48px);
        gap: 14px; justify-content: center; align-content: center;
        padding: 6px 0; height: 122px; max-height: 130px;
        background: radial-gradient(ellipse at 50% 50%, rgba(255,179,71,0.08), transparent 60%);
        border-radius: 18px;
    }
    .sh-hero-mob .sh-mo {
        position: relative !important; top: auto !important; right: auto !important;
        bottom: auto !important; left: auto !important;
        width: 48px; height: 48px; z-index: 2;
        clip-path: none !important; border-radius: 12px !important;
        border: 2px solid var(--ac); background: #1c262b;
        display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.7);
    }
    .sh-mo-icon { width: 20px; height: 20px; color: var(--ac); }
    .sh-mo-icon svg { width: 100%; height: 100%; }
    .sh-mo-label { font-size: 8px; letter-spacing: 0.08em; color: #7a929e; }
    .sh-mo-hub {
        position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
        width: 28px; height: 28px; border-radius: 50%; z-index: 3;
        display: flex; align-items: center; justify-content: center;
        background: #0a0f12; color: #ffb347;
        box-shadow: 0 0 0 2px rgba(255,179,71,0.9), 0 0 0 4px rgba(110,231,183,0.55);
    }
    .sh-mo-hub svg { width: 16px; height: 16px; }
    .sh-mo-conn { position: absolute; inset: 22px; z-index: 1; pointer-events: none; }
    .sh-mo-conn::before {
        content: ""; position: absolute; left: 50%; top: 0; bottom: 0;
        border-left: 1.5px dashed rgba(110,231,183,0.4);
    }
    .sh-mo-conn::after {
        content: ""; position: absolute; top: 50%; left: 0; right: 0;
        border-top: 1.5px dashed rgba(110,231,183,0.4);
    }
    .sh-roomgrid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .masonry-grid { grid-template-columns: 1fr; }
    .masonry-img-wrap { aspect-ratio: 1; }
    .sh-voice-row { flex-direction: column; align-items: center; gap: 18px; }
    .sh-voice-card { transform: none !important; flex: none; width: 100%; max-width: 420px; }
    .sh-hex-row { flex-wrap: wrap; justify-content: center; gap: 18px; }
    .related-track { grid-template-columns: 1fr; }
    .param-grid { grid-template-columns: repeat(2, 1fr); }
    .article-title { font-size: 25px; }
    .article-hero { height: 42vh; min-height: 260px; }
    .article-body { font-size: 16px; }
    .sh-head-info { display: none; }
    .load-more-btn { display: none; }
    .sh-scene-card { flex: 0 0 280px; }
    .section-title { font-size: 24px; }
    .footer-inner { flex-direction: column; align-items: flex-start; }
}
