/* ==========================================================================
   BRAVELY | Fullscreen One-Page Slide Deck & Pop-up Modal
   Grunge / Brutalist Minimalist Typography (Zero Emojis, Zero //)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Syne:wght@700;800&family=JetBrains+Mono:wght@400;500;700&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  /* DARK MODE DEFAULT */
  --bg: #08080a;
  --bg-surface: #101014;
  --bg-modal: #121216;
  --border: #222228;
  --border-strong: #ffffff;
  
  --text-main: #f5f5f7;
  --text-muted: #8e8e93;
  --text-inverse: #08080a;
  
  --accent: #ffffff;
  --accent-inverse: #08080a;
  --accent-inv: #08080a;
  
  --font-hero: 'Bebas Neue', sans-serif;
  --font-heading: 'Syne', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  --nav-height: 72px;
}

[data-theme="light"] {
  /* LIGHT MODE */
  --bg: #ffffff;
  --bg-surface: #f6f6f8;
  --bg-modal: #ffffff;
  --border: #e0e0e4;
  --border-strong: #08080a;
  
  --text-main: #08080a;
  --text-muted: #6e6e73;
  --text-inverse: #ffffff;
  
  --accent: #08080a;
  --accent-inverse: #ffffff;
  --accent-inv: #ffffff;
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg);
  color: var(--text-main);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s ease, color 0.3s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* Fixed Header */
.top-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  background: linear-gradient(180deg, var(--bg) 60%, transparent);
}

.brand {
  font-family: var(--font-hero);
  font-size: 2rem;
  letter-spacing: 0.08em;
  line-height: 1;
}

.header-center {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.slide-counter {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.header-nav button, .header-nav a {
  background: none;
  border: none;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s ease;
}

.header-nav button.active, .header-nav button:hover {
  color: var(--text-main);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-journal-link {
  background: none;
  border: none;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s ease;
}

.header-journal-link:hover {
  color: var(--text-main);
}

.lang-switcher {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  background: var(--bg);
  height: 38px;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.lang-switcher::-webkit-scrollbar {
  display: none;
}

.lang-opt {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0 0.45rem;
  height: 100%;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.lang-opt:hover {
  color: var(--text-main);
}

.lang-opt.active {
  background: var(--text-main);
  color: var(--bg);
}

.theme-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-main);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.theme-btn:hover {
  border-color: var(--text-main);
}

.theme-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.btn-contact-trigger {
  font-family: var(--font-hero);
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  background: var(--accent);
  color: var(--accent-inverse);
  padding: 0.5rem 1.4rem;
  border: 1px solid var(--accent);
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn-contact-trigger:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* Side Slide Indicator Track */
.slide-track {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.slide-dot {
  width: 24px;
  height: 2px;
  background: var(--border);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
}

.slide-dot.active {
  width: 44px;
  background: var(--text-main);
}

/* Slide Deck Container (Snap Scroll) */
.slides-container {
  width: 100%;
  max-width: 100%;
  height: 100vh;
  overflow-y: scroll;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.slides-container::-webkit-scrollbar {
  display: none;
}

/* Individual Slide */
.slide {
  width: 100%;
  max-width: 100%;
  height: 100vh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-height) + 1rem) 3rem 2rem;
  position: relative;
  overflow: hidden;
}

.slide-content-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Animations for Slide Entries */
.anim-title {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.anim-fade {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.15s, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
}

.anim-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.25s, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.25s;
}

.slide.active .anim-title,
.slide.active .anim-fade {
  opacity: 1;
  transform: translateY(0);
}

.slide.active .anim-scale {
  opacity: 1;
  transform: scale(1);
}

/* ==========================================================================
   SLIDE 1: INTRO / HERO
   ========================================================================== */
.hero-slide-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-tagline {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.hero-giant-title {
  font-family: var(--font-hero);
  font-size: clamp(4.5rem, 9vw, 9.5rem);
  line-height: 0.88;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 500px;
  margin-bottom: 2.5rem;
}

.hero-actions-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.btn-solid {
  font-family: var(--font-hero);
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  background: var(--accent);
  color: var(--accent-inverse);
  padding: 0.75rem 2rem;
  border: 1px solid var(--accent);
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
  display: inline-block;
}

.btn-solid:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.btn-ghost {
  font-family: var(--font-hero);
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  background: transparent;
  color: var(--text-main);
  padding: 0.75rem 2rem;
  border: 1px solid var(--text-main);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-block;
}

.btn-ghost:hover {
  background: var(--accent);
  color: var(--accent-inverse);
  transform: translateY(-2px);
}

.hero-photo-frame {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin-left: auto;
  border: 1px solid var(--border);
  padding: 1rem;
  background: var(--bg-surface);
}

.hero-photo-wrap {
  width: 100%;
  aspect-ratio: 1 / 1.1;
  overflow: hidden;
  background: #000;
}

.hero-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(110%);
  transition: transform 0.4s ease;
}

.hero-photo-frame:hover .hero-photo-wrap img {
  transform: scale(1.03);
}

.hero-photo-caption {
  margin-top: 0.75rem;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

/* Theme-specific logo toggles */
.theme-logo-dark {
  display: block;
}
.theme-logo-light {
  display: none;
}
html[data-theme="light"] .theme-logo-dark {
  display: none !important;
}
html[data-theme="light"] .theme-logo-light {
  display: block !important;
}

/* Minimal Collaboration Indicator */
.hero-collab-simple {
  margin-top: 1.35rem;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  vertical-align: middle;
}

.collab-simple-txt {
  line-height: 1;
}

.collab-simple-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 3px;
  text-decoration: none;
  transition: all 0.2s ease;
}

html[data-theme="light"] .collab-simple-pill {
  background: rgba(0, 0, 0, 0.03);
}

.collab-simple-pill:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

html[data-theme="light"] .collab-simple-pill:hover {
  background: rgba(0, 0, 0, 0.06);
}

.collab-simple-pill img {
  height: 18px;
  width: auto;
  object-fit: contain;
  display: block;
}

.collab-simple-arrow {
  color: var(--text-muted);
  transition: transform 0.2s ease, color 0.2s ease;
}

.collab-simple-pill:hover .collab-simple-arrow {
  color: var(--text-main);
  transform: translate(1px, -1px);
}

/* Portfolio Brand Logos Marquee Slider */
.hero-clients-marquee {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  width: 100%;
}

.marquee-scroller {
  width: 100%;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  padding: 0.25rem 0;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: max-content;
  animation: marqueeSlide 38s linear infinite;
  will-change: transform;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marqueeSlide {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.client-logo-card {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  min-width: 120px;
  padding: 0.5rem 1.25rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  flex-shrink: 0;
}

.client-logo-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.08);
}

/* In DARK MODE:
   Transform every transparent brand logo into a clean, crisp, unified white monochrome silhouette.
   This guarantees 100% visibility for black/dark logos (American Standard, Salonpas, Dunlop, Auto 2000, Danamon)
   and eliminates color clashing completely! */
.client-logo-card img {
  max-height: 26px;
  width: auto;
  max-width: 100px;
  object-fit: contain;
  opacity: 0.8;
  filter: brightness(0) invert(1);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.client-logo-card:hover img {
  opacity: 1;
  transform: scale(1.05);
}

/* In LIGHT MODE:
   Transform every transparent brand logo into a crisp, unified dark charcoal silhouette.
   Guarantees 100% legibility on light background without inverted color artifacts! */
html[data-theme="light"] .client-logo-card {
  background: rgba(0, 0, 0, 0.025);
  border-color: var(--border);
}

html[data-theme="light"] .client-logo-card:hover {
  background: rgba(0, 0, 0, 0.06);
  border-color: var(--border-strong);
}

html[data-theme="light"] .client-logo-card img {
  filter: brightness(0);
  opacity: 0.7;
}

html[data-theme="light"] .client-logo-card:hover img {
  opacity: 1;
  transform: scale(1.05);
}

/* Dignity Project Studio Logo inside Marquee:
   Always preserve Dignity's vibrant turquoise origami colors */
.client-dignity-card img {
  filter: none !important;
  opacity: 0.9 !important;
}

.client-dignity-card:hover img {
  opacity: 1 !important;
  transform: scale(1.06);
}

/* Dignity Esports crest inside Marquee */
.client-esports-card img {
  filter: none !important;
  opacity: 0.85 !important;
}

.client-esports-card:hover img {
  opacity: 1 !important;
  transform: scale(1.06);
}

html[data-theme="light"] .client-esports-card img {
  filter: brightness(0) !important;
  opacity: 0.7 !important;
}

html[data-theme="light"] .client-esports-card:hover img {
  opacity: 1 !important;
}

/* ==========================================================================
   SLIDE 2: THE 1-3 DAYS SPRINT PROCESS
   ========================================================================== */
.section-headline {
  font-family: var(--font-hero);
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 0.92;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}

.process-deck-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.process-deck-card {
  border: 1px solid var(--border);
  background: var(--bg-surface);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 340px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.process-deck-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
}

.deck-number {
  font-family: var(--font-hero);
  font-size: 3.5rem;
  color: var(--text-muted);
  line-height: 1;
}

.deck-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin: 1rem 0 0.5rem;
}

.deck-desc {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.deck-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  color: var(--text-muted);
}

/* ==========================================================================
   SLIDE 3: SELECTED WORKS
   ========================================================================== */
.works-deck-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.work-deck-item {
  border: 1px solid var(--border);
  background: var(--bg-surface);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.work-deck-item:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
}

.work-deck-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #000;
}

.work-deck-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.work-deck-item:hover .work-deck-img img {
  transform: scale(1.05);
}

.work-deck-info {
  padding: 1.5rem;
}

.work-deck-cat {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.work-deck-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  text-transform: uppercase;
  margin: 0.35rem 0 0.5rem;
}

.work-deck-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 0.85rem;
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   SLIDE 4: PRICING & CALL TO ACTION
   ========================================================================== */
.pricing-deck-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.pricing-deck-grid.single-card {
  display: flex;
  justify-content: center;
  align-items: stretch;
  max-width: 640px;
  margin: 0 auto;
  width: 100%;
}

.pricing-deck-grid.single-card .pricing-deck-card {
  width: 100%;
  padding: 3rem 2.5rem;
  min-height: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.pricing-deck-grid.single-card .pricing-deck-price {
  font-size: clamp(2.8rem, 5.5vw, 4.2rem);
}

.pricing-deck-card {
  border: 1px solid var(--border);
  background: var(--bg-surface);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 400px;
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.pricing-deck-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
}

.pricing-deck-card.highlight {
  border-color: var(--border-strong);
}

.pricing-deck-card.highlight::before {
  content: 'POPULAR';
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  background: var(--accent);
  color: var(--accent-inverse);
  padding: 0.2rem 0.6rem;
}

.pricing-deck-tier {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.pricing-deck-price {
  font-family: var(--font-hero);
  font-size: 4.5rem;
  line-height: 1;
  letter-spacing: 0.02em;
  margin: 0.75rem 0;
}

.pricing-deck-time {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.pricing-deck-list {
  list-style: none;
  font-size: 0.875rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}

.pricing-deck-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pricing-deck-list li::before {
  content: '+';
  color: var(--text-main);
  font-weight: 700;
}

/* Bottom Hint */
.slide-bottom-hint {
  position: absolute;
  bottom: 2rem;
  left: 3rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ==========================================================================
   POP-UP MODAL (CONTACT US)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  width: 100%;
  max-width: 640px;
  max-height: 88vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) var(--bg-surface);
  background: var(--bg-modal);
  border: 1px solid var(--border-strong);
  padding: 2.25rem;
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.modal-dialog::-webkit-scrollbar {
  width: 6px;
}

.modal-dialog::-webkit-scrollbar-track {
  background: var(--bg-surface);
}

.modal-dialog::-webkit-scrollbar-thumb {
  background: var(--border-strong);
}

.modal-overlay.open .modal-dialog {
  transform: translateY(0) scale(1);
}

/* Intent Switcher Tabs */
.intent-tabs-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
  padding: 0.25rem;
  background: var(--bg-surface);
}

.intent-tab {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.65rem 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.intent-tab:hover {
  color: var(--text-main);
}

.intent-tab.active {
  background: var(--accent);
  color: var(--accent-inverse);
  font-weight: 700;
}

.intent-tab-badge {
  font-size: 0.65rem;
  padding: 0.1rem 0.35rem;
  border: 1px solid currentColor;
}

.modal-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
  z-index: 2;
}

.modal-close-btn:hover {
  transform: scale(1.15);
}

.modal-close-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.modal-title {
  font-family: var(--font-hero);
  font-size: 2.75rem;
  letter-spacing: 0.04em;
  line-height: 0.95;
  margin-bottom: 0.35rem;
}

.modal-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.field-lang-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  padding: 0.12rem 0.45rem;
  white-space: nowrap;
}

.badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #10b981;
}

.corporate-note-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-left: 2px solid var(--text-main);
  padding: 0.6rem 0.85rem;
  margin-bottom: 0.35rem;
  overflow-wrap: break-word;
  word-break: break-word;
}

html[data-theme="light"] .corporate-note-box {
  background: rgba(0, 0, 0, 0.02);
}

.corporate-note-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.corporate-note-icon {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  flex-shrink: 0;
}

.corporate-note-body {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--text-muted);
  margin: 0;
}

.form-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-input {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 0.85rem 1rem;
  color: var(--text-main);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.form-input:focus {
  border-color: var(--border-strong);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Toggle for Advanced Details */
.more-details-toggle-wrap {
  margin: 0.35rem 0 0.5rem;
}

.btn-toggle-details {
  width: 100%;
  background: var(--bg-surface);
  border: 1px dashed var(--border-strong);
  color: var(--text-main);
  padding: 0.75rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: all 0.2s ease;
}

.btn-toggle-details:hover {
  background: var(--surface-hover);
  border-style: solid;
}

.btn-toggle-details.expanded {
  border-style: solid;
  border-color: var(--border-strong);
  color: var(--text-muted);
}

.toggle-icon {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
}

.advanced-details-box {
  border-left: 2px solid var(--border-strong);
  padding-left: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  margin: 0.25rem 0 0.75rem;
  animation: fadeInDetails 0.25s ease;
}

@keyframes fadeInDetails {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Interactive Chip Options Grid */
.chip-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.chip-item {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 0.65rem 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.chip-item:hover {
  border-color: var(--border-strong);
  color: var(--text-main);
}

.chip-item.active {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}

html[data-theme="light"] .chip-item.active {
  background: rgba(0, 0, 0, 0.06);
}

.chip-dot {
  width: 7px;
  height: 7px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.chip-item.active .chip-dot {
  background: var(--accent);
  border-color: var(--accent);
}

.chip-item small {
  display: block;
  font-size: 0.65rem;
  opacity: 0.7;
  font-family: var(--font-body);
}

/* Checklist Grid */
.checklist-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.check-item {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 0.6rem 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.check-item:hover {
  border-color: var(--border-strong);
  color: var(--text-main);
}

.check-item.active {
  background: var(--accent);
  color: var(--accent-inverse);
  border-color: var(--accent);
  font-weight: 700;
}

.check-symbol {
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1;
  flex-shrink: 0;
}

.check-item.active .check-symbol {
  transform: rotate(45deg);
}

@media (max-width: 600px) {
  .modal-dialog {
    padding: 1.75rem 1.25rem;
  }
  .modal-title {
    font-size: 2.2rem;
  }
  .form-row,
  .chip-options-grid,
  .checklist-grid {
    grid-template-columns: 1fr;
  }
  .intent-tabs-wrapper {
    grid-template-columns: 1fr;
  }
}

/* Toast */
.toast-msg {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--accent);
  color: var(--accent-inverse);
  padding: 0.85rem 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  z-index: 2000;
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.toast-msg.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Preloader Overlay */
.preloader-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background-color: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.65s cubic-bezier(0.85, 0, 0.15, 1), opacity 0.5s ease;
  pointer-events: all;
}

.preloader-overlay.loaded {
  transform: translateY(-100%);
  pointer-events: none;
}

.preloader-brand {
  font-family: var(--font-hero);
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  letter-spacing: 0.1em;
  line-height: 1;
  color: var(--text-main);
  margin-bottom: 1.5rem;
}

.preloader-counter-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  font-family: var(--font-mono);
  font-size: 1.25rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.preloader-bar-wrap {
  width: 220px;
  height: 2px;
  background: var(--border);
  margin-top: 1.25rem;
  position: relative;
  overflow: hidden;
}

.preloader-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--text-main);
  transition: width 0.12s ease-out;
}

/* Responsive Enhancements */
@media (max-width: 1024px) {
  html, body {
    overflow-y: auto;
    overflow-x: hidden;
    height: auto;
  }
  
  .slides-container {
    height: auto;
    overflow-y: visible;
    overflow-x: hidden;
    scroll-snap-type: none;
  }
  
  .slide {
    height: auto;
    min-height: 100vh;
    padding: 100px 1.5rem 60px;
    scroll-snap-align: none;
    overflow: visible;
  }
  
  /* Ensure all content is immediately visible on mobile */
  .anim-title,
  .anim-fade,
  .anim-scale {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  
  .slide-track {
    display: none;
  }
  
  .slide-bottom-hint {
    display: none;
  }
  
  .hero-slide-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: left;
  }
  
  .hero-photo-frame {
    max-width: 320px;
    margin: 1.5rem auto 0;
  }
  
  .process-deck-grid,
  .works-deck-grid,
  .pricing-deck-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .top-header {
    padding: 0 1.5rem;
  }
  
  .header-center {
    display: none;
  }
}

@media (max-width: 1280px) and (min-width: 1025px) {
  .top-header {
    padding: 0 1.5rem;
  }
  .header-center {
    gap: 1.25rem;
  }
  .header-nav {
    gap: 1rem;
  }
  .btn-contact-trigger {
    padding: 0.45rem 1rem;
    font-size: 1rem;
  }
}

@media (max-height: 850px) and (min-width: 1025px) {
  .slide {
    padding-top: calc(var(--nav-height) + 0.5rem);
    padding-bottom: 1.5rem;
  }
  .hero-giant-title {
    font-size: clamp(3.5rem, 7.5vw, 6.5rem);
    margin-bottom: 1rem;
  }
  .hero-sub {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  .section-headline {
    font-size: clamp(2.5rem, 5vw, 4.25rem);
    margin-bottom: 1.5rem;
  }
  .process-deck-card {
    padding: 1.75rem 1.5rem;
    min-height: 290px;
  }
  .pricing-deck-card {
    padding: 1.75rem 1.5rem;
    min-height: 350px;
  }
  .pricing-deck-price {
    font-size: 3.5rem;
    margin: 0.4rem 0;
  }
  .pricing-deck-list {
    margin-bottom: 1.25rem;
    gap: 0.5rem;
  }
  .hero-slide-grid {
    gap: 2rem;
  }
  .hero-collab-simple {
    margin-top: 0.85rem;
  }
  .hero-clients-marquee {
    margin-top: 1rem;
    padding-top: 0.75rem;
  }
  .client-logo-card {
    height: 44px;
    min-width: 95px;
    padding: 0.35rem 1rem;
  }
  .client-logo-card img {
    max-height: 22px;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  .hero-collab-simple {
    margin-top: 1rem;
    flex-wrap: wrap;
  }

  .client-logo-card {
    height: 46px;
    min-width: 95px;
    padding: 0.4rem 0.95rem;
  }

  .client-logo-card img {
    max-height: 22px;
  }

  .top-header {
    height: 64px;
    padding: 0 1.25rem;
  }

  .brand {
    font-size: 1.4rem;
  }

  .theme-btn {
    width: 38px;
    height: 38px;
  }

  .btn-contact-trigger {
    padding: 0.45rem 0.85rem;
    font-size: 0.72rem;
  }

  .slide {
    padding: 85px 1.25rem 50px;
  }

  .section-headline {
    font-size: clamp(2.4rem, 8.5vw, 3.5rem);
    margin-bottom: 1.75rem;
  }

  /* Slide 1 Hero */
  .hero-giant-title {
    font-size: clamp(3rem, 11vw, 4.75rem);
    line-height: 0.94;
    margin-bottom: 1.25rem;
  }

  .hero-tagline {
    font-size: 0.7rem;
    margin-bottom: 0.75rem;
  }

  .hero-sub {
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 1.75rem;
  }

  .hero-actions-row {
    display: flex;
    gap: 0.75rem;
    width: 100%;
  }

  .hero-actions-row .btn-solid,
  .hero-actions-row .btn-ghost {
    flex: 1;
    text-align: center;
    padding: 0.75rem 1rem;
    font-size: 1.15rem;
  }

  .hero-photo-frame {
    max-width: 260px;
    padding: 0.75rem;
  }

  .hero-photo-caption {
    font-size: 0.65rem;
    padding-top: 0.65rem;
  }

  /* Slide 2 Process */
  .process-deck-card {
    padding: 1.75rem 1.35rem;
    min-height: auto;
  }

  .deck-number {
    font-size: 0.75rem;
  }

  .deck-title {
    font-size: 1.45rem;
    margin: 0.35rem 0 0.5rem;
  }

  .deck-desc {
    font-size: 0.88rem;
    line-height: 1.5;
  }

  /* Slide 3 Works */
  .work-deck-img {
    height: 200px;
  }

  .work-deck-info {
    padding: 1.25rem 1.15rem;
  }

  .work-deck-title {
    font-size: 1.65rem;
  }

  /* Slide 4 Pricing */
  .pricing-deck-card {
    padding: 2rem 1.35rem;
    min-height: auto;
  }

  .pricing-deck-price {
    font-size: 3.5rem;
    margin: 0.5rem 0;
  }

  .pricing-deck-list {
    margin-bottom: 1.5rem;
    gap: 0.6rem;
    font-size: 0.85rem;
  }

  /* Modal Form */
  .modal-overlay {
    padding: 0.75rem;
  }

  .modal-dialog {
    padding: 1.75rem 1.15rem;
    max-height: 90vh;
  }

  .modal-title {
    font-size: 2.25rem;
  }

  .modal-subtitle {
    font-size: 0.82rem;
    margin-bottom: 1.15rem;
  }

  .intent-tabs-wrapper {
    grid-template-columns: 1fr 1fr;
    gap: 0.25rem;
    padding: 0.2rem;
    margin-bottom: 1.25rem;
  }

  .intent-tab {
    font-size: 0.65rem;
    padding: 0.55rem 0.35rem;
    letter-spacing: 0.06em;
  }

  .chip-options-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
  }

  .chip-item {
    padding: 0.55rem 0.65rem;
    font-size: 0.72rem;
  }

  .checklist-grid {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .check-item {
    padding: 0.55rem 0.75rem;
    font-size: 0.72rem;
  }
}

@media (max-width: 480px) {
  .top-header {
    height: 60px;
    padding: 0 1rem;
  }

  .brand {
    font-size: 1.3rem;
  }

  .slide {
    padding: 76px 1rem 40px;
  }

  .hero-giant-title {
    font-size: 2.65rem;
  }

  .hero-actions-row {
    flex-direction: column;
  }

  .hero-actions-row .btn-solid,
  .hero-actions-row .btn-ghost {
    width: 100%;
  }

  .hero-photo-frame {
    max-width: 220px;
  }

  .pricing-deck-price {
    font-size: 3rem;
  }

  .intent-tabs-wrapper {
    grid-template-columns: 1fr;
  }

  .chip-options-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   BRAVELY JOURNAL — CLEAN EDITORIAL PUBLICATION STYLES
   Human, Restrained Typography (Zero AI Gimmicks, Zero //, No Overlap)
   ========================================================================== */

/* 1. SCROLL FIX & BASE RESET FOR JOURNAL */
html.page-articles-html,
html.page-articles-html body,
body.page-articles-index,
body.page-article-detail {
  width: 100% !important;
  height: auto !important;
  min-height: 100vh !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  position: static !important;
  scroll-behavior: smooth;
}

/* 2. HEADER BAR (MINIMAL STATIC / STICKY HEADER) */
.static-header {
  position: sticky !important;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: var(--nav-height);
  background: var(--bg) !important;
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  box-sizing: border-box;
}

.static-header .brand {
  font-family: var(--font-hero);
  font-size: 2.1rem;
  letter-spacing: 0.08em;
  color: var(--text-main);
  text-decoration: none;
  line-height: 1;
}

.static-header .header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
}

.header-edition-badge,
.news-top-ticker-bar,
.live-pulse-dot {
  display: none !important;
}

.btn-nav-home,
.btn-nav-back {
  padding: 0.5rem 1.25rem;
  font-size: 0.75rem;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.btn-nav-home .btn-text-short,
.btn-nav-back .btn-text-short {
  display: none;
}

/* 3. MAIN JOURNAL CONTAINER */
.journal-clean-container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 3rem 2rem 6rem;
  box-sizing: border-box;
}

/* 4. MASTHEAD */
.journal-masthead-clean {
  text-align: center;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.75rem;
}

.journal-title-clean {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--text-main);
  margin-bottom: 0.65rem;
  text-transform: uppercase;
}

.journal-sub-clean {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
}

/* 5. CATEGORY FILTER NAVIGATION */
.journal-nav-clean {
  display: flex;
  justify-content: center;
  margin-bottom: 3.25rem;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.journal-nav-clean::-webkit-scrollbar {
  display: none;
}

.journal-cat-list {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
  padding: 0 0.5rem;
  margin: 0;
  min-width: max-content;
}

.journal-cat-link {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.85rem 0.25rem;
  display: inline-block;
  position: relative;
  transition: color 0.2s ease;
}

.journal-cat-link:hover {
  color: var(--text-main);
}

.journal-cat-link.active {
  color: var(--text-main);
}

.journal-cat-link.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--text-main);
}

/* 2.5 EDITORIAL ASSET PRELOADER */
.journal-preloader {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: var(--bg);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s ease;
}

.journal-preloader.preloader-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-content {
  width: 90%;
  max-width: 360px;
  text-align: center;
}

.preloader-brand {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-main);
  margin-bottom: 1.25rem;
}

.preloader-progress-track {
  width: 100%;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0.85rem;
}

.preloader-progress-fill {
  width: 0%;
  height: 100%;
  background: var(--text-main);
  transition: width 0.15s ease-out;
}

.preloader-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* 6. FEATURED LEAD ARTICLE CARD */
.journal-featured-wrap {
  margin-bottom: 3.5rem;
}

.journal-featured-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 2.25rem 2.5rem;
  box-sizing: border-box;
  transition: border-color 0.25s ease;
}

.journal-featured-card:hover {
  border-color: var(--border-strong);
}

.journal-featured-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 860px) {
  .journal-featured-layout {
    grid-template-columns: 1.15fr 1fr;
    gap: 3rem;
  }
}

.journal-featured-media {
  overflow: hidden;
  border-radius: 3px;
  border: 1px solid var(--border);
  background: var(--bg);
  aspect-ratio: 16 / 9;
}

.featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.journal-featured-media:hover .featured-img {
  transform: scale(1.02);
}

.journal-item-meta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.journal-item-cat {
  color: var(--text-main);
  letter-spacing: 0.08em;
}

.meta-sep {
  opacity: 0.4;
}

.journal-featured-title {
  font-family: var(--font-body);
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.015em;
  margin: 0 0 1.25rem;
  word-break: normal;
  overflow-wrap: break-word;
}

.journal-featured-title a {
  color: var(--text-main);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.journal-featured-title a:hover {
  opacity: 0.85;
}

.journal-featured-excerpt {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 1.85rem;
}

.journal-read-link {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: transform 0.2s ease;
}

.journal-read-link:hover {
  transform: translateX(4px);
}

/* 7. JOURNAL GRID SECTION */
.journal-grid-wrap {
  margin-bottom: 4rem;
}

.journal-section-label {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.75rem;
  margin-bottom: 2rem;
}

.journal-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.journal-card-clean {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  transition: border-color 0.25s ease;
}

.journal-card-clean:hover {
  border-color: var(--border-strong);
}

.journal-card-media {
  overflow: hidden;
  border-radius: 3px;
  border: 1px solid var(--border);
  margin-bottom: 1.25rem;
  aspect-ratio: 16 / 9;
  background: var(--bg);
}

.card-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.journal-card-clean:hover .card-thumb-img {
  transform: scale(1.03);
}

.journal-card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.journal-card-title {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.015em;
  margin: 0 0 1rem;
  word-break: normal;
  overflow-wrap: break-word;
}

.journal-card-title a {
  color: var(--text-main);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.journal-card-title a:hover {
  opacity: 0.85;
}

.journal-card-excerpt {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 1.85rem;
  flex-grow: 1;
}

.journal-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.journal-empty-clean {
  text-align: center;
  padding: 4rem 2rem;
  border: 1px dashed var(--border);
  font-family: var(--font-body);
  color: var(--text-muted);
}

/* 8. UNDERSTATED CONTACT CALLOUT */
.journal-contact-box {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 2.75rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  box-sizing: border-box;
}

.contact-box-title {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text-main);
  margin: 0 0 0.5rem;
}

.contact-box-desc {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
  max-width: 580px;
}

/* 9. ARTICLE DETAIL PAGE STYLING */
.journal-detail-clean-wrap {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 3rem 2rem 6rem;
  box-sizing: border-box;
}

.detail-breadcrumb-clean {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.detail-breadcrumb-clean a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.detail-breadcrumb-clean a:hover {
  color: var(--text-main);
}

.crumb-sep {
  opacity: 0.35;
}

.crumb-current {
  color: var(--text-main);
  font-weight: 600;
}

.detail-header-clean {
  border-bottom: 1px solid var(--border);
  padding-bottom: 2.25rem;
  margin-bottom: 2.5rem;
}

.detail-meta-clean {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.detail-cat-badge {
  color: var(--text-main);
  letter-spacing: 0.08em;
}

.detail-title-clean {
  font-family: var(--font-body);
  font-size: clamp(2rem, 4.8vw, 3rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin: 0 0 1.5rem;
  word-break: normal;
  overflow-wrap: break-word;
}

.detail-lead-clean {
  font-family: var(--font-body);
  font-size: 1.18rem;
  line-height: 1.7;
  color: var(--text-main);
  border-left: 2px solid var(--border-strong);
  padding-left: 1.25rem;
  margin: 0 0 2rem;
  font-weight: 500;
}

.detail-author-clean {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.author-avatar-clean {
  width: 36px;
  height: 36px;
  background: var(--text-main);
  color: var(--bg);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

.author-meta-clean {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
}

.author-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Detail Hero Figure */
.detail-figure-clean {
  margin: 0 0 2.75rem;
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
  background: var(--bg-surface);
}

.detail-cover-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.detail-figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  font-style: normal;
  text-align: left;
}

.detail-prose-clean {
  font-family: var(--font-body);
  font-size: 1.08rem;
  line-height: 1.82;
  color: var(--text-main);
  margin-bottom: 3.5rem;
  word-break: normal;
  overflow-wrap: break-word;
}

.detail-prose-clean .art-h2 {
  font-family: var(--font-body);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.35;
  margin: 2.75rem 0 1.15rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.detail-prose-clean .art-h3 {
  font-family: var(--font-body);
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.4;
  margin: 2.25rem 0 0.85rem;
}

.detail-prose-clean .art-p {
  margin-bottom: 1.6rem;
}

.detail-prose-clean .art-list {
  margin: 1.25rem 0 2rem 1.5rem;
}

.detail-prose-clean .art-list li {
  margin-bottom: 0.65rem;
}

.detail-prose-clean .art-num-step {
  margin-bottom: 1.15rem;
  padding-left: 0.5rem;
}

.detail-related-clean {
  margin-bottom: 3.5rem;
  border-top: 1px solid var(--border);
  padding-top: 2.5rem;
}

.related-section-title {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.related-grid-clean {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.5rem;
}

.related-item-clean {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.related-cat-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}

.related-item-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
}

.related-item-title a {
  color: var(--text-main);
  text-decoration: none;
}

.related-item-title a:hover {
  opacity: 0.85;
}

.related-item-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.detail-cta-clean {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

.detail-cta-clean .cta-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 0.5rem;
}

.detail-cta-clean .cta-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 auto 1.5rem;
  max-width: 520px;
}

.detail-bottom-nav {
  margin-top: 1rem;
  margin-bottom: 2rem;
}

/* 10. ARTICLES FOOTER */
.articles-footer {
  border-top: 1px solid var(--border);
  padding: 2.25rem 2.5rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--text-muted);
  background: var(--bg);
  box-sizing: border-box;
}

.articles-footer-content {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.articles-footer-content a {
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.08em;
  transition: color 0.2s ease;
}

.articles-footer-content a:hover {
  color: var(--text-main);
}

/* 11. RESPONSIVE QUERIES */
@media (max-width: 900px) {
  .journal-clean-container,
  .journal-detail-clean-wrap {
    padding: 2rem 1.25rem 4rem;
  }
  .journal-featured-card {
    padding: 2rem 1.5rem;
  }
  .journal-contact-box {
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 600px) {
  .static-header {
    height: 60px;
    padding: 0 1rem;
  }
  .static-header .brand {
    font-size: 1.5rem;
  }
  .journal-articles-grid {
    grid-template-columns: 1fr;
  }
  .journal-cat-list {
    gap: 1.25rem;
  }
  .journal-card-clean {
    padding: 1.5rem 1.25rem;
  }
  .btn-nav-home .btn-text-full,
  .btn-nav-back .btn-text-full {
    display: none;
  }
  .btn-nav-home .btn-text-short,
  .btn-nav-back .btn-text-short {
    display: inline;
  }
}

/* 12. RTL & MULTI-SCRIPT TYPOGRAPHY POLISH */
[dir="rtl"] {
  direction: rtl;
  text-align: right;
}
[dir="rtl"] .top-header {
  flex-direction: row-reverse;
}
[dir="rtl"] .header-actions {
  flex-direction: row-reverse;
}
[dir="rtl"] .journal-featured-layout {
  direction: rtl;
  text-align: right;
}
[dir="rtl"] .journal-featured-action,
[dir="rtl"] .journal-read-link {
  text-align: right;
  justify-content: flex-start;
}
[dir="rtl"] .art-read-more {
  justify-content: flex-start;
}
[dir="rtl"] .detail-byline-clean,
[dir="rtl"] .art-body-clean {
  text-align: right;
}
[dir="rtl"] .detail-cta-box {
  text-align: right;
}
[dir="rtl"] .art-body-clean .art-num-step {
  padding-right: 0.5rem;
  padding-left: 0;
}
[dir="rtl"] .art-body-clean ul.art-list {
  padding-right: 1.5rem;
  padding-left: 0;
}
html[lang="zh-Hant"] {
  font-family: "PingFang TC", "Heiti TC", "Microsoft JhengHei", var(--font-body), sans-serif;
}
html[lang="ar"] {
  font-family: "Segoe UI", "Tahoma", "Arial", var(--font-body), sans-serif;
}

