/* Page-level Apple Editorial & Narrative Layouts + FL0ZE Integration */

/* --- 1. HOME HERO --- */
.hero-apple {
  position: relative;
  min-height: min(calc(100dvh - 64px), 860px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(44px, 6vw, 84px) clamp(40px, 5vw, 68px);
  overflow: hidden;
}

.hero-ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-grid-field {
  position: absolute;
  inset: -40px;
  background-image:
    radial-gradient(circle, var(--hero-grid-dot) 1px, transparent 1px),
    linear-gradient(to right, var(--hero-grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--hero-grid-line) 1px, transparent 1px);
  background-size: 32px 32px, 96px 96px, 96px 96px;
  -webkit-mask-image: radial-gradient(ellipse 76% 72% at 58% 48%, #000000 32%, transparent 82%);
  mask-image: radial-gradient(ellipse 76% 72% at 58% 48%, #000000 32%, transparent 82%);
  transform: translate3d(calc(var(--hero-px, 0) * -8px), calc(var(--hero-py, 0) * -6px), 0);
  will-change: transform;
}

.hero-cursor-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(560px circle at var(--hero-mx, 68%) var(--hero-my, 44%), var(--hero-cursor-glow), transparent 68%);
  opacity: var(--hero-presence, 0);
  transition: opacity 280ms var(--ease-smooth);
}

.hero-ambient-glow-1 {
  position: absolute;
  top: -18%;
  left: -12%;
  width: 62vw;
  height: 62vw;
  max-width: 780px;
  max-height: 780px;
  background: radial-gradient(circle, rgba(138, 130, 181, 0.13) 0%, transparent 68%);
  filter: blur(42px);
}

.hero-ambient-glow-2 {
  position: absolute;
  top: 4%;
  right: -8%;
  width: 58vw;
  height: 58vw;
  max-width: 720px;
  max-height: 720px;
  background: var(--fl0ze-aura);
  filter: blur(28px);
}

.hero-grid-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}

.hero-copy-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}

.hero-brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 15px 6px 11px;
  border-radius: var(--radius-pill);
  background: var(--surface-tint);
  border: 1px solid var(--hairline);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.hero-brand-pill svg {
  width: 20px;
  height: 18px;
  color: var(--ink);
}

.hero-brand-label {
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-secondary);
}

.hero-headline {
  font-size: clamp(2.65rem, 5.4vw, 4.75rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.07;
}

.hero-headline-line {
  display: block;
}

.hero-headline-muted {
  display: block;
  background: linear-gradient(120deg, var(--accent) 0%, var(--ink-secondary) 72%, var(--accent-lavender) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  max-width: 580px;
  font-size: clamp(1.06rem, 1.45vw, 1.24rem);
  line-height: 1.65;
  color: var(--ink-secondary);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
}

.spotlight-actions {
  margin-top: 34px;
}

/* Right Stage: Layered Typography Watermark + Orbit + Formal FL0ZE + Interactive Glass Card */
.hero-fl0ze-stage {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: clamp(420px, 56vh, 620px);
}

.hero-watermark {
  position: absolute;
  top: 7%;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transform: translate3d(calc(-50% + var(--hero-px, 0) * -12px), calc(var(--hero-py, 0) * -9px), 0);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.6rem, 7.4vw, 6.2rem);
  letter-spacing: 0.04em;
  line-height: 0.88;
  white-space: nowrap;
  color: var(--hero-watermark-ink);
  -webkit-text-stroke: 1px var(--hero-watermark-stroke);
  pointer-events: none;
  user-select: none;
  z-index: 0;
  will-change: transform;
}

.hero-watermark span:first-child {
  transform: translateX(-14%);
}

.hero-watermark span:last-child {
  transform: translateX(14%);
}

.hero-orbit-ring {
  position: absolute;
  width: min(88%, 468px);
  aspect-ratio: 1;
  top: 50%;
  left: 50%;
  transform: translate3d(calc(-50% + var(--hero-px, 0) * -7px), calc(-52% + var(--hero-py, 0) * -5px), 0);
  border-radius: 50%;
  border: 1px solid var(--hairline);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

.hero-orbit-ring::after {
  content: "";
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  border: 1px dashed var(--hairline-strong);
  opacity: 0.68;
}

.hero-orbit-spinner {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  display: block;
}

.hero-orbit-dot {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-ice);
  box-shadow: 0 0 12px var(--accent-ice);
}

.hero-orbit-dot-1 {
  top: -3.5px;
  left: 50%;
  transform: translateX(-50%);
}

.hero-orbit-dot-2 {
  bottom: 13.5%;
  right: 13.5%;
  width: 5px;
  height: 5px;
  background: var(--accent-lavender);
  box-shadow: 0 0 10px var(--accent-lavender);
  opacity: 0.85;
}

.hero-fl0ze-figure {
  position: relative;
  z-index: 2;
  width: min(100%, 420px);
  transform: translate3d(calc(var(--hero-px, 0) * 10px), calc(var(--hero-scroll, 0) * -22px + var(--hero-py, 0) * 8px), 0);
  will-change: transform;
}

.hero-fl0ze-figure img {
  max-height: 580px;
  width: auto;
  margin-inline: auto;
  -webkit-mask-image: linear-gradient(to bottom, #000000 84%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000000 84%, transparent 100%);
}

.hero-resident-slot {
  position: absolute;
  right: 0;
  bottom: 24px;
  z-index: 3;
  width: min(100%, 316px);
}

.hero-resident-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  text-align: left;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--surface-glass);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--hairline-strong);
  box-shadow: var(--shadow-glass);
  transform: translate3d(calc(var(--hero-px, 0) * 14px), calc(var(--hero-scroll, 0) * 14px + var(--hero-py, 0) * 10px), 0);
  will-change: transform;
  transition:
    border-color var(--dur-fast) var(--ease-smooth),
    box-shadow var(--dur-fast) var(--ease-apple),
    background-color var(--dur-fast) ease;
}

.hero-resident-card:hover {
  border-color: var(--hero-card-hover-border);
  box-shadow: var(--shadow-hover);
}

.hero-resident-card:active {
  transform: translate3d(calc(var(--hero-px, 0) * 14px), calc(var(--hero-scroll, 0) * 14px + var(--hero-py, 0) * 10px + 1px), 0) scale(0.99);
}

.hero-resident-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.hero-resident-name {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
}

.hero-resident-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hero-resident-kana {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: var(--ink-tertiary);
}

.hero-quote-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.hero-quote-dots span {
  width: 5px;
  height: 5px;
  border-radius: var(--radius-pill);
  background: var(--hairline-strong);
  transition: width var(--dur-fast) var(--ease-apple), background-color var(--dur-fast) ease;
}

.hero-quote-dots span.is-active {
  width: 14px;
  background: var(--accent-ice);
}

.hero-resident-quote {
  display: block;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--ink-secondary);
  transition: opacity 140ms var(--ease-smooth), transform 140ms var(--ease-apple);
}

.hero-resident-quote.is-switching {
  opacity: 0;
  transform: translateY(3px);
}

/* --- 2. FEATURED SPOTLIGHT & SAMPLE MOCKUP --- */
.section-header-split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 32px;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.section-header-split h2 {
  font-size: clamp(2rem, 4vw, 3.15rem);
  margin-top: 0;
}

.section-header-desc {
  max-width: 400px;
  font-size: 0.96rem;
  color: var(--ink-secondary);
}

.spotlight-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(28px, 4.5vw, 56px);
  overflow: hidden;
}

.spotlight-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.spotlight-copy h3 {
  font-size: clamp(1.8rem, 3.2vw, 2.55rem);
}

.spotlight-copy p {
  font-size: 1rem;
  color: var(--ink-secondary);
  line-height: 1.72;
}

/* Pure CSS/SVG Product Showcase Concept Canvas (Dual Theme Adaptive) */
.showcase-canvas {
  position: relative;
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, var(--bg-elevated) 0%, var(--bg-subtle) 100%);
  border: 1px solid var(--hairline);
  padding: clamp(20px, 3vw, 32px);
  overflow: hidden;
  min-height: 310px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.showcase-canvas::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -25%;
  width: 70%;
  height: 90%;
  background: radial-gradient(circle, var(--accent-glow), transparent 68%);
  pointer-events: none;
}

.canvas-topbar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.canvas-dots {
  display: inline-flex;
  gap: 6px;
}

.canvas-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hairline-strong);
}

.canvas-panel-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.canvas-tile {
  padding: 16px;
  border-radius: var(--radius-sm);
  background: var(--surface-glass-strong);
  border: 1px solid var(--hairline);
}

.canvas-tile strong {
  display: block;
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--ink);
}

.canvas-wide-tile {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.canvas-wide-logo {
  width: 34px;
  height: 30px;
  color: var(--accent);
  flex-shrink: 0;
}

/* --- 3. PROJECTS BENTO GRID --- */
.projects-bento-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 44px 24px;
}

.project-bento-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  min-height: 320px;
}

.project-bento-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.project-bento-title {
  font-size: clamp(1.45rem, 2.3vw, 1.9rem);
  margin-top: 10px;
  margin-bottom: 10px;
}

.project-bento-title a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.project-bento-title a:hover {
  color: var(--accent);
}

.project-bento-desc {
  color: var(--ink-secondary);
  font-size: 0.95rem;
  line-height: 1.68;
}

.project-bento-thumb {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: var(--bg-elevated);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-bento-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-bento-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
}

/* --- 4. ABOUT FLOAT SPACE & PEEKING FL0ZE --- */
.about-page-section {
  padding-bottom: clamp(64px, 8vw, 96px);
}

.about-page-hero {
  padding-bottom: 16px;
}

.about-bento-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.95fr);
  gap: 28px;
  align-items: stretch;
  padding-top: 36px;
}

.about-bento-grid--standalone {
  padding-top: 28px;
}

.about-story-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.about-story-card h2 {
  font-size: clamp(2rem, 3.8vw, 3rem);
  margin-top: 0;
}

.about-lead {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.65;
}

.about-paragraphs p {
  color: var(--ink-secondary);
  margin-top: 12px;
  line-height: 1.75;
}

.about-quote {
  margin: 18px 0 0;
  padding: 18px 22px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border-left: 3px solid var(--accent);
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--ink);
}

.wp-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 8px;
}

/* FL0ZE Card with Physical Card-Edge Peek */
.fl0ze-card-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  margin-top: 90px;
}

.fl0ze-about-mount {
  position: relative;
  z-index: 4;
  width: min(76%, 300px);
  margin: -116px auto -18px;
}

.fl0ze-about-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  transition: transform 240ms var(--ease-apple);
}

.fl0ze-about-trigger:hover {
  transform: translateY(-2px);
}

.fl0ze-peek-mount {
  position: relative;
  width: 100%;
  pointer-events: none;
}

.fl0ze-whisper-bubble--about {
  top: 20px;
  right: auto;
  left: -10px;
  transform: translate(-15%, 6px) scale(0.95);
}

.fl0ze-whisper-bubble--about.is-visible {
  transform: translate(-15%, 0) scale(1);
}

.fl0ze-peek-mount::before {
  inset: 0;
}

.fl0ze-peek-mount img {
  width: 100%;
  height: auto;
}

.fl0ze-profile-card {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  padding-top: 36px;
}

.fl0ze-spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.fl0ze-spec-cell {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--hairline);
}

.fl0ze-spec-cell strong {
  display: block;
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink);
}

/* --- 5. NOTES TEASER --- */
.notes-teaser-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px 40px;
}

.notes-teaser-card h2 {
  font-size: clamp(1.85rem, 3.6vw, 2.85rem);
  margin-top: 0;
}

.notes-teaser-right {
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.notes-teaser-right p {
  color: var(--ink-secondary);
}

/* --- PROJECTS ARCHIVE & DETAIL --- */
.archive-header-split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: center;
  gap: 32px;
  padding-block: clamp(40px, 5vw, 72px) 32px;
}

.archive-header-split h1 {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  margin-block: 0 14px;
}

.archive-lead {
  max-width: 540px;
  font-size: 1.08rem;
  color: var(--ink-secondary);
}

.archive-fl0ze-figure {
  width: min(100%, 280px);
  margin-left: auto;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 48px;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--hairline);
  background: var(--surface);
  color: var(--ink-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--dur-fast) ease;
}

.filter-pill-f {
  width: 0;
  height: 13px;
  opacity: 0;
  margin-right: -6px;
  overflow: hidden;
  flex-shrink: 0;
  transition: width 200ms var(--ease-apple), opacity 180ms ease, margin-right 200ms var(--ease-apple);
}

.filter-pill[aria-pressed="true"] .filter-pill-f {
  width: 14px;
  opacity: 1;
  margin-right: 0;
}

.filter-pill:hover,
.filter-pill[aria-pressed="true"] {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

/* Detail Page & Sample Showcase */
.detail-hero {
  padding-block: clamp(40px, 6vw, 76px) 32px;
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-secondary);
}

.breadcrumb:hover {
  color: var(--accent);
}

.detail-hero h1 {
  font-size: clamp(2.35rem, 4.8vw, 3.9rem);
  margin-block: 0 14px;
}

.detail-tagline {
  max-width: 680px;
  font-size: clamp(1.1rem, 1.6vw, 1.32rem);
  color: var(--ink-secondary);
}

.note-date {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--ink-tertiary);
}

.project-spec-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
  margin-top: 32px;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--hairline);
}

.project-spec-strip dt {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-tertiary);
}

.project-spec-strip dd {
  margin: 6px 0 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--ink);
}

.sample-banner {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  border-left: 3px solid var(--accent);
}

.next-project {
  margin-top: 56px;
  margin-bottom: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.next-project a {
  display: block;
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  font-weight: 700;
}

.next-project a:hover {
  color: var(--accent);
}

.next-number {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--hairline-strong);
}

/* --- NOTES PAGE (EMPTY SLEEPY STAGE & LIST) --- */
.notes-empty-stage {
  margin-block: 36px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  padding-block: clamp(36px, 5vw, 64px);
}

.notes-sleepy-figure {
  width: min(100%, 340px);
}

.notes-empty-stage h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
}

.notes-empty-stage p {
  max-width: 480px;
  color: var(--ink-secondary);
}

/* --- COMMUNITY PAGE --- */
.community-page-section {
  padding-bottom: clamp(64px, 8vw, 96px);
}

.community-page-hero {
  padding-bottom: 16px;
}

.community-bento-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(0, 0.85fr);
  gap: 28px;
  align-items: start;
  padding-top: 28px;
}

.community-bento-grid--multi {
  grid-template-columns: minmax(0, 1fr);
}

.community-groups-column {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.bento-perch-shell--community {
  margin-top: 24px;
}

.community-qq-card {
  position: relative;
}

.community-card-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.community-card-layout.has-qr {
  grid-template-columns: minmax(0, 1fr) 216px;
}

.community-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 16px;
}

.community-status-tag {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
}

.community-card-main h2 {
  font-size: clamp(1.85rem, 3.2vw, 2.55rem);
  margin-top: 0;
}

.community-summary {
  margin-top: 12px;
  max-width: 540px;
  color: var(--ink-secondary);
  line-height: 1.72;
}

.community-id-panel {
  margin-top: 22px;
  padding: 14px 16px 14px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 16px;
}

.community-id-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.community-group-number {
  font-family: var(--font-mono);
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
  user-select: all;
}

.community-copy-btn {
  min-height: 40px;
  padding: 0 18px;
  font-size: 0.88rem;
}

.community-copy-btn.is-copied {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.community-card-main .tag-pills {
  margin-top: 18px;
}

.community-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.community-btn-qq-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.community-qr-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.community-qr-frame {
  width: 100%;
  max-width: 216px;
  aspect-ratio: 1 / 1;
  padding: 8px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(16, 19, 25, 0.09);
  box-shadow: 0 8px 26px rgba(16, 19, 25, 0.07);
}

html[data-theme="dark"] .community-qr-frame {
  background: #ffffff;
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.42);
}

.community-qr-frame img {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  display: block;
}

.community-qr-caption {
  font-size: 0.82rem;
  color: var(--ink-secondary);
}

.community-guide-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.community-guide-card h2 {
  margin-top: 10px;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.community-steps {
  list-style: none;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.community-steps li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.community-step-index {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--hairline-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent);
}

.community-steps strong {
  display: block;
  font-size: 0.96rem;
  color: var(--ink);
}

.community-steps p {
  margin-top: 4px;
  font-size: 0.88rem;
  color: var(--ink-secondary);
  line-height: 1.6;
}

.community-rules {
  list-style: none;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--ink-secondary);
  line-height: 1.6;
}

.community-rules li {
  position: relative;
  padding-left: 16px;
}

.community-rules li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-ice);
}

.community-guide-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 1080px) {
  .community-bento-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .community-card-layout.has-qr {
    grid-template-columns: 1fr;
  }
  .community-qr-card {
    max-width: 220px;
    margin-inline: auto;
  }
}

.wp-notes-list {
  display: grid;
  gap: 44px;
  margin-top: 44px;
}

.wp-note-card time {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-tertiary);
}

.wp-note-card h2 {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  margin-block: 8px 10px;
}

.wp-note-card h2 a:hover {
  color: var(--accent);
}

.wp-note-card p {
  color: var(--ink-secondary);
  margin-bottom: 14px;
}

/* --- 404 PAGE --- */
.error-404-stage {
  position: relative;
  min-height: calc(100dvh - 260px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: 64px;
  gap: 18px;
}

.error-404-code {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(5rem, 16vw, 10rem);
  line-height: 0.88;
  letter-spacing: -0.05em;
  background: linear-gradient(180deg, var(--ink) 0%, transparent 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.14;
  user-select: none;
  margin-bottom: -48px;
}

.error-404-figure {
  width: min(74vw, 280px);
}

.error-404-stage h1 {
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
}

.error-404-stage p {
  max-width: 480px;
  color: var(--ink-secondary);
}

/* Responsive Breakpoints */
@media (max-width: 960px) {
  .hero-grid-shell,
  .spotlight-card,
  .about-bento-grid,
  .archive-header-split {
    grid-template-columns: 1fr;
  }

  .hero-apple {
    min-height: auto;
  }

  .hero-fl0ze-stage {
    min-height: 360px;
    flex-direction: column;
    align-items: center;
  }

  .hero-fl0ze-figure {
    width: min(86%, 350px);
  }

  .hero-resident-slot {
    position: static;
    width: 100%;
    max-width: 420px;
    margin-inline: auto;
    margin-top: -12px;
  }

  .archive-fl0ze-figure {
    margin-inline: auto;
  }

  .fl0ze-card-wrapper {
    margin-top: 96px;
  }
}

@media (max-width: 720px) {
  .projects-bento-grid {
    grid-template-columns: 1fr;
  }

  .fl0ze-about-mount {
    width: min(80%, 250px);
    margin-top: -98px;
  }

  .fl0ze-whisper-bubble--about {
    left: 50%;
    top: -12px;
    transform: translate(-50%, 6px) scale(0.95);
  }

  .fl0ze-whisper-bubble--about.is-visible {
    transform: translate(-50%, 0) scale(1);
  }
}
