/* ═══════════════════════════════════════════════════════════════
   ARPAN KHAN — LIGHT LUXURY EDITORIAL (GARIBZZ INSPIRED)
   Warm Gallery Ivory • Deep Ink • Saffron Gold • Clean Architecture
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* Warm gallery linen canvas (Garibzz Luxe Light Palette) */
  --bg-canvas: #f9f9f5;
  --bg-surface: #ffffff;
  --bg-surface-warm: #f4efe4;
  --bg-surface-hover: #faf7f0;

  /* Subtle warm stone borders */
  --border-hairline: #e6e0d2;
  --border-strong: #cdbeaa;

  /* High contrast ink typography */
  --text-ink: #141416;
  --text-body: #4a4a52;
  --text-muted: #6e6e76;
  --text-dim: #94949e;

  /* Garibzz Signature Accents */
  --accent-gold: #c99308;
  --accent-gold-bright: #eab308;
  --accent-gold-soft: #fef8e7;
  --accent-forest: #0f4a28;
  --accent-emerald: #15803d;

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', var(--font-sans);
  --font-mono: 'JetBrains Mono', monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

html {
  font-family: var(--font-sans);
  background-color: var(--bg-canvas);
  color: var(--text-ink);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.6;
  background-color: var(--bg-canvas);
}

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

button {
  font-family: inherit;
  border: none;
  background: transparent;
  cursor: pointer;
  color: inherit;
}

/* ═══ MINIMAL EDITORIAL HEADER ═══ */
.header-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(249, 249, 245, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-hairline);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.header-blobatar-mini {
  width: 22px;
  height: 22px;
  transition: transform 0.3s var(--ease-spring);
}

.brand-group:hover .header-blobatar-mini {
  transform: rotate(15deg) scale(1.18);
}

.brand-title {
  font-weight: 800;
  color: var(--text-ink);
}

.brand-slash {
  color: var(--text-dim);
}

.brand-tag {
  color: var(--accent-forest);
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-item {
  font-size: 13.5px;
  color: var(--text-body);
  font-weight: 500;
  transition: color 0.2s var(--ease-out);
}

.nav-item:hover {
  color: var(--text-ink);
}

.header-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.link-store {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 4px;
  border: 1px solid var(--border-hairline);
  background: var(--bg-surface);
  color: var(--text-ink);
  transition: all 0.2s var(--ease-out);
}

.link-store:hover {
  border-color: var(--accent-forest);
  color: var(--accent-forest);
  background: var(--accent-gold-soft);
}

.arrow-ext {
  font-size: 13px;
  transition: transform 0.2s;
}

.link-store:hover .arrow-ext {
  transform: translate(2px, -2px);
}

.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  border: 1px solid var(--border-hairline);
  background: var(--bg-surface);
  position: relative;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
}

.mobile-menu-btn:hover {
  border-color: var(--text-ink);
  background: var(--bg-surface-warm);
}

.mobile-menu-btn span {
  display: block;
  position: absolute;
  width: 18px;
  height: 2px;
  background: var(--text-ink);
  border-radius: 2px;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), top 0.25s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s;
}

.mobile-menu-btn span:first-child {
  top: 13px;
}

.mobile-menu-btn span:last-child {
  top: 21px;
}

/* Transformed Cross (✕) state when menu is open */
.mobile-menu-btn.open {
  border-color: var(--accent-forest);
  background: var(--bg-surface-warm);
}

.mobile-menu-btn.open span:first-child {
  top: 17px;
  transform: rotate(45deg);
  background: var(--accent-forest);
}

.mobile-menu-btn.open span:last-child {
  top: 17px;
  transform: rotate(-45deg);
  background: var(--accent-forest);
}

/* ═══ EDITORIAL HERO ═══ */
.hero-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 24px 80px;
}

.hero-content {
  max-width: 960px;
}

.editorial-meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}

.status-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  box-shadow: 0 0 8px rgba(21, 128, 61, 0.4);
}

.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(38px, 5.6vw, 68px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--text-ink);
  margin-bottom: 24px;
}

.heading-accent {
  color: var(--accent-forest);
}

.hero-statement {
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.65;
  color: var(--text-body);
  max-width: 740px;
  margin-bottom: 40px;
}

.hero-statement strong {
  color: var(--text-ink);
  font-weight: 700;
}

.link-gold {
  color: var(--accent-forest);
  font-weight: 600;
  border-bottom: 1.5px solid rgba(15, 74, 40, 0.35);
  transition: all 0.2s;
}

.link-gold:hover {
  border-color: var(--accent-forest);
}

/* Data Ribbon Badges */
.data-ribbon {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.ribbon-card {
  border: 1px solid var(--border-hairline);
  background: var(--bg-surface);
  padding: 18px 20px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  transition: border-color 0.2s;
}

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

.ribbon-val {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 800;
  color: var(--text-ink);
}

.ribbon-lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Action Row */
.hero-action-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-solid {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  background: var(--text-ink);
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  border-radius: 4px;
  transition: all 0.2s var(--ease-out);
}

.btn-solid:hover {
  background: #2a2a2e;
  transform: translateY(-2px);
}

.btn-arr {
  font-size: 15px;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1px solid var(--border-hairline);
  background: var(--bg-surface);
  color: var(--text-ink);
  font-size: 13.5px;
  font-family: var(--font-mono);
  font-weight: 600;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  transition: all 0.2s var(--ease-out);
}

.btn-outline:hover {
  border-color: var(--text-ink);
  background: var(--bg-surface-warm);
}

.btn-badge {
  font-size: 10px;
  padding: 2px 6px;
  background: var(--accent-gold-soft);
  border: 1px solid rgba(201, 147, 8, 0.2);
  border-radius: 3px;
  color: var(--accent-gold);
  font-weight: 700;
}

.link-subtle {
  font-size: 13.5px;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-body);
  transition: color 0.2s;
  padding: 4px 8px;
}

.link-subtle:hover {
  color: var(--text-ink);
}

/* ═══ EDITORIAL SECTION STRUCTURE ═══ */
.editorial-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
  border-top: 1px solid var(--border-hairline);
}

.section-label-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
  font-family: var(--font-mono);
}

.sec-num {
  font-size: 12px;
  font-weight: 800;
  color: var(--accent-gold);
}

.sec-title {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ═══ SECTION 01: ABOUT & PERSPECTIVE ═══ */
.about-editorial-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 60px;
  align-items: start;
}

.portrait-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.portrait-card {
  border: 1px solid var(--border-hairline);
  background: var(--bg-surface);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

/* Portrait Switch Bar */
.portrait-switch-bar {
  display: flex;
  border-bottom: 1px solid var(--border-hairline);
  background: var(--bg-surface-warm);
}

.avatar-tab {
  flex: 1;
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  transition: all 0.2s;
  border-bottom: 2px solid transparent;
}

.avatar-tab.active {
  color: var(--text-ink);
  background: var(--bg-surface);
  border-bottom-color: var(--accent-forest);
}

.portrait-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  background: #fdfcf9;
  overflow: hidden;
}

.author-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
  transition: opacity 0.3s;
}

.author-photo.hidden {
  display: none;
}

.blobatar-view {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(circle at center, #ffffff 0%, var(--bg-surface-warm) 100%);
}

.blobatar-view.hidden {
  display: none;
}

.blobatar-canvas-box {
  width: 180px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.blobatar-bounce-img {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 12px 24px rgba(201, 147, 8, 0.25));
  animation: blobatarFloat 3s infinite ease-in-out;
  transition: transform 0.25s var(--ease-spring);
}

.blobatar-bounce-img:hover {
  transform: scale(1.12) rotate(6deg);
}

@keyframes blobatarFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.02); }
}

.blobatar-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent-forest);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-top: 12px;
}

.portrait-caption {
  padding: 16px;
  border-top: 1px solid var(--border-hairline);
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--bg-surface);
}

.cap-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-ink);
}

.cap-role {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-forest);
}

.spec-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.spec-k {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  font-weight: 600;
}

.spec-v {
  font-size: 13.5px;
  color: var(--text-ink);
  font-weight: 600;
}

.narrative-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.narrative-heading {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-ink);
}

.narrative-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--text-body);
}

.narrative-body strong {
  color: var(--text-ink);
  font-weight: 700;
}

.clean-bullet-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-left: 0;
  margin: 8px 0;
}

.clean-bullet-list li {
  position: relative;
  padding-left: 20px;
  border-left: 2.5px solid var(--accent-gold);
}

.quote-container {
  margin-top: 16px;
  padding: 24px;
  border-left: 3px solid var(--accent-forest);
  background: var(--bg-surface);
  border-radius: 0 6px 6px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.manifesto-quote {
  font-size: 16px;
  font-style: italic;
  line-height: 1.6;
  color: var(--text-ink);
  font-weight: 500;
}

/* ═══ SECTION 02: SELECTED WORK ═══ */
.showcase-card {
  border: 1px solid var(--border-hairline);
  background: var(--bg-surface);
  border-radius: 8px;
  padding: 44px;
  margin-bottom: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: border-color 0.2s;
}

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

.showcase-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 16px;
}

.showcase-category-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-gold);
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-bottom: 6px;
}

.showcase-title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-ink);
}

.btn-store-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--text-ink);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  border-radius: 4px;
  transition: all 0.2s;
}

.btn-store-arrow:hover {
  background: #2a2a2e;
  transform: translateY(-2px);
}

.showcase-desc {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-body);
  max-width: 800px;
  margin-bottom: 36px;
}

.showcase-tri-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border-hairline);
  margin-bottom: 28px;
}

.tri-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tri-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  font-weight: 700;
}

.tri-content {
  font-size: 13.5px;
  color: var(--text-body);
  line-height: 1.6;
}

.showcase-footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  padding: 4px 8px;
  background: var(--bg-surface-warm);
  border: 1px solid var(--border-hairline);
  border-radius: 3px;
  color: var(--text-body);
}

.footer-links {
  display: flex;
  gap: 18px;
  font-size: 13px;
  font-family: var(--font-mono);
  font-weight: 600;
}

/* Secondary Projects */
.projects-dual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.compact-project-card {
  border: 1px solid var(--border-hairline);
  background: var(--bg-surface);
  border-radius: 8px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
  transition: border-color 0.2s;
  min-width: 0;
}

.compact-project-card:hover {
  border-color: var(--border-strong);
}

.cpc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.cpc-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-forest);
  font-weight: 700;
}

.cpc-year {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
}

.cpc-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--text-ink);
  margin-bottom: 10px;
}

.cpc-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-body);
  margin-bottom: 24px;
  flex-grow: 1;
}

/* ═══ INTERACTIVE BLOBATAR PLAYGROUND CARD ═══ */
.blobatar-toy-widget {
  background: var(--bg-surface-warm);
  border: 1px solid var(--border-hairline);
  border-radius: 6px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.toy-control-row {
  display: flex;
  gap: 8px;
}

.toy-input {
  flex-grow: 1;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: 4px;
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-ink);
  outline: none;
  transition: border-color 0.2s;
}

.toy-input:focus {
  border-color: var(--accent-forest);
}

.toy-shuffle-btn {
  padding: 8px 14px;
  background: var(--text-ink);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  border-radius: 4px;
  transition: all 0.2s;
}

.toy-shuffle-btn:hover {
  background: var(--accent-forest);
}

.toy-display-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: 4px;
}

.toy-avatar-box {
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fdfbf7;
  border-radius: 6px;
  border: 1px solid var(--border-hairline);
  overflow: hidden;
}

.toy-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.25s var(--ease-spring);
}

.toy-avatar-img:hover {
  transform: scale(1.15) rotate(8deg);
}

.toy-info-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-grow: 1;
}

.toy-seed-display {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-ink);
}

.toy-action-btn {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-forest);
  border-bottom: 1px solid rgba(15, 74, 40, 0.3);
  transition: all 0.2s;
}

.toy-action-btn:hover {
  border-color: var(--accent-forest);
  color: var(--text-ink);
}

/* ═══ SECTION 03: PRINCIPLES ═══ */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.principle-item {
  border: 1px solid var(--border-hairline);
  background: var(--bg-surface);
  border-radius: 6px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  transition: border-color 0.2s;
}

.principle-item:hover {
  border-color: var(--border-strong);
}

.p-index {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  color: var(--accent-gold);
}

.p-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-ink);
}

.p-text {
  font-size: 13.5px;
  color: var(--text-body);
  line-height: 1.6;
}

/* ═══ SECTION 04: WRITINGS TABLE ═══ */
.writings-table {
  border: 1px solid var(--border-hairline);
  border-radius: 6px;
  background: var(--bg-surface);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.writing-row {
  display: flex;
  align-items: center;
  padding: 24px 28px;
  border-bottom: 1px solid var(--border-hairline);
  gap: 24px;
  transition: background 0.2s var(--ease-out);
  cursor: pointer;
}

.writing-row:last-child {
  border-bottom: none;
}

.writing-row:hover {
  background: var(--bg-surface-warm);
}

.w-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  width: 50px;
  flex-shrink: 0;
  font-weight: 600;
}

.w-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.w-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-ink);
  transition: color 0.2s;
}

.writing-row:hover .w-title {
  color: var(--accent-forest);
}

.w-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.w-arr {
  font-size: 16px;
  color: var(--text-dim);
  transition: all 0.2s;
}

.writing-row:hover .w-arr {
  color: var(--accent-forest);
  transform: translateX(4px);
}

/* ═══ SECTION 05: CONTACT & FOOTER ═══ */
.contact-editorial-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.contact-big-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-ink);
  margin-bottom: 16px;
}

.contact-desc {
  font-size: 15.5px;
  color: var(--text-body);
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 520px;
}

.contact-action-box {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.direct-links-column {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 32px;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.dl-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dl-k {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  font-weight: 700;
}

.dl-v {
  font-size: 14px;
  color: var(--text-ink);
  font-weight: 600;
}

.editorial-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border-hairline);
  font-size: 13px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.footer-left-content {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.foot-dot {
  color: var(--text-dim);
}

.foot-link {
  color: var(--text-body);
  transition: color 0.2s;
  font-weight: 600;
}

.foot-link:hover {
  color: var(--text-ink);
}

/* ═══ ARTICLE READING DRAWER / MODAL ═══ */
.reader-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(14, 14, 16, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 1;
  transition: opacity 0.2s var(--ease-out);
}

.reader-overlay.hidden {
  display: none;
}

.reader-dialog {
  width: 100%;
  max-width: 820px;
  max-height: 88vh;
  background: #ffffff;
  border: 1px solid var(--border-hairline);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: readerSlideUp 0.25s var(--ease-spring);
}

@keyframes readerSlideUp {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.reader-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 28px;
  background: var(--bg-surface-warm);
  border-bottom: 1px solid var(--border-hairline);
}

.reader-meta-group {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}

.reader-cat {
  color: var(--accent-forest);
}

.reader-dot {
  color: var(--text-dim);
}

.reader-time {
  color: var(--text-muted);
}

.reader-close-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 4px;
  border: 1px solid var(--border-hairline);
  background: #ffffff;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-ink);
  transition: all 0.2s;
}

.reader-close-btn:hover {
  background: var(--text-ink);
  color: #ffffff;
}

.reader-close-btn kbd {
  font-size: 10px;
  padding: 1px 4px;
  border-radius: 3px;
  background: var(--bg-surface-warm);
  border: 1px solid var(--border-hairline);
}

.reader-scroll-area {
  padding: 40px 48px 60px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.reader-content-body {
  max-width: 680px;
  margin: 0 auto;
}

.reader-article-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: var(--text-ink);
  margin-bottom: 20px;
}

.reader-author-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 24px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border-hairline);
}

.reader-mini-avatar {
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-hairline);
}

.reader-author-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-ink);
  display: block;
}

.reader-author-bio {
  font-size: 12px;
  color: var(--text-muted);
  display: block;
}

.btn-copy-article-link {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 6px 12px;
  border-radius: 4px;
  border: 1px solid var(--border-hairline);
  background: var(--bg-surface-warm);
  color: var(--text-ink);
  font-weight: 600;
  transition: all 0.2s;
}

.btn-copy-article-link:hover {
  background: var(--accent-gold-soft);
  border-color: var(--accent-gold);
}

/* Reader Typography & Layout */
.reader-markdown {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-body);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.reader-markdown h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--text-ink);
  margin-top: 24px;
  margin-bottom: 8px;
  letter-spacing: -0.015em;
}

.reader-markdown h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-ink);
  margin-top: 16px;
  margin-bottom: 6px;
}

.reader-markdown p {
  margin: 0;
}

.reader-markdown strong {
  color: var(--text-ink);
  font-weight: 700;
}

.reader-markdown ul,
.reader-markdown ol,
.clean-bullet-list {
  padding-left: 24px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.reader-markdown li {
  line-height: 1.68;
}

.reader-markdown a {
  color: var(--accent-forest);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

.reader-callout {
  padding: 20px 24px;
  border-left: 3px solid var(--accent-forest);
  background: var(--bg-surface-warm);
  border-radius: 0 6px 6px 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-ink);
}

.reader-code {
  background: #141418;
  color: #f4f4f7;
  padding: 20px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.reader-code .code-hl {
  color: #f4c430;
}
.reader-code .code-kw {
  color: #f43f5e;
}
.reader-code .code-fn {
  color: #38bdf8;
}
.reader-code .code-cm {
  color: #71717a;
}

/* ═══ INTERACTIVE GAZE BLOBATAR ═══ */
.gaze-blobatar-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  transition: transform 0.2s var(--ease-spring);
  filter: drop-shadow(0 14px 28px rgba(201, 147, 8, 0.3));
}

.gaze-body {
  transform-origin: 50% 50%;
  transition: transform 0.08s ease-out;
}

.gaze-eyes {
  transform-origin: 50% 50%;
  transition: transform 0.05s ease-out;
}

.blobatar-squish {
  animation: blobSquishJump 0.4s var(--ease-spring);
}

@keyframes blobSquishJump {
  0% { transform: scale(1, 1); }
  25% { transform: scale(1.35, 0.7) translateY(10px); }
  60% { transform: scale(0.85, 1.25) translateY(-14px); }
  100% { transform: scale(1, 1) translateY(0); }
}

/* ═══ TOAST FEEDBACK ═══ */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--text-ink);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s var(--ease-out);
  z-index: 100;
  pointer-events: none;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-gold-bright);
}

/* ═══ RESPONSIVE DESIGN & MOBILE OPTIMIZATIONS ═══ */
@media (max-width: 960px) {
  .data-ribbon {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-editorial-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .portrait-column {
    max-width: 320px;
  }
  .showcase-tri-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .projects-dual-grid {
    grid-template-columns: 1fr;
  }
  .principles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-editorial-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  /* Fast tap response & no 300ms tap delay */
  button, a {
    touch-action: manipulation;
  }

  /* Header Bar */
  .header-inner {
    padding: 0 16px;
    height: 60px;
  }
  .brand-slash, .brand-tag {
    display: none; /* Keep "ARPAN KHAN" clean on mobile */
  }
  .link-store {
    padding: 6px 10px;
    font-size: 11.5px;
  }

  .nav-links {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-hairline);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
    gap: 8px;
    z-index: 110;
    animation: mobileNavDown 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .nav-links.open .nav-item {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-ink);
    padding: 10px 4px;
    border-bottom: 1px solid var(--border-hairline);
  }

  .nav-links.open .nav-item:last-child {
    border-bottom: none;
  }

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

  /* Section Spacing */
  .hero-wrap {
    padding: 80px 16px 44px;
  }
  .editorial-section {
    padding: 50px 16px;
  }
  .hero-heading {
    font-size: clamp(32px, 8.5vw, 46px);
    margin-bottom: 18px;
  }
  .hero-statement {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 28px;
  }

  /* 2x2 Compact Metric Grid */
  .data-ribbon {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 28px;
  }
  .ribbon-card {
    padding: 16px 14px;
    border-radius: 6px;
  }
  .ribbon-val {
    font-size: 22px;
  }
  .ribbon-lbl {
    font-size: 10px;
    line-height: 1.3;
  }

  /* Hero Actions Full Touch Width */
  .hero-action-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .btn-solid, .btn-outline {
    justify-content: center;
    width: 100%;
    padding: 14px 18px;
    font-size: 14px;
  }
  .link-subtle {
    text-align: center;
    padding: 8px;
  }

  /* Principles & Cards */
  .principles-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .principle-item {
    padding: 20px 18px;
  }

  .showcase-card {
    padding: 22px 18px;
    min-width: 0;
  }
  .sc-title {
    font-size: 22px;
  }

  .projects-dual-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .compact-project-card {
    padding: 20px 18px;
    min-width: 0;
  }

  /* Prevent iOS Safari Auto-Zoom on Input */
  .toy-input {
    font-size: 16px;
  }

  /* Reader Modal Mobile Bottom Sheet */
  .reader-overlay {
    padding: 0;
    align-items: flex-end; /* Slides up from bottom */
  }

  .reader-dialog {
    max-width: 100%;
    width: 100%;
    max-height: 93vh;
    border-radius: 16px 16px 0 0;
    border-bottom: none;
    border-left: none;
    border-right: none;
  }

  .reader-header-bar {
    padding: 14px 18px;
  }
  .reader-close-btn kbd {
    display: none; /* No physical ESC on mobile */
  }
  .reader-close-btn {
    padding: 6px 10px;
    font-size: 11.5px;
  }
  .reader-meta-group {
    font-size: 10px;
    max-width: calc(100% - 68px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .reader-scroll-area {
    padding: 24px 18px 48px;
    -webkit-overflow-scrolling: touch;
  }
  .reader-article-title {
    font-size: 22px;
    line-height: 1.25;
    margin-bottom: 16px;
  }
  .reader-author-row {
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 16px;
    margin-bottom: 22px;
  }
  .btn-copy-article-link {
    width: 100%;
    text-align: center;
    margin-left: 0;
    padding: 8px;
  }
  .reader-markdown {
    font-size: 15px;
    line-height: 1.7;
    gap: 16px;
  }
  .reader-code {
    padding: 14px;
    font-size: 11.5px;
    border-radius: 6px;
    -webkit-overflow-scrolling: touch;
  }
  .reader-callout {
    padding: 14px 16px;
    font-size: 14px;
  }

  /* Contact & Footer */
  .contact-editorial-layout {
    gap: 32px;
    margin-bottom: 40px;
  }
  .contact-big-title {
    font-size: 28px;
  }
  .contact-desc {
    font-size: 14.5px;
    margin-bottom: 24px;
  }
  .contact-action-box {
    flex-direction: column;
    align-items: stretch;
  }
  .direct-links-column {
    padding: 20px;
  }

  .editorial-footer {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
}

/* Specific optimizations for screens under 640px */
@media (max-width: 640px) {
  /* Writings Table: Full title width with top-right arrow */
  .writing-row {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 16px;
    gap: 6px;
    position: relative;
  }
  .w-date {
    display: inline-block;
    width: auto;
    font-size: 11px;
    color: var(--accent-gold);
    font-weight: 700;
  }
  .w-info {
    width: 100%;
  }
  .w-title {
    font-size: 15px;
    line-height: 1.4;
    padding-right: 28px; /* Leave breathing room for arrow icon */
  }
  .w-tag {
    font-size: 10.5px;
    margin-top: 4px;
    line-height: 1.4;
  }
  .w-arr {
    position: absolute;
    right: 16px;
    top: 18px;
    font-size: 14px;
  }
}
