/* ==========================================================================
   JEIZI CONTACT — DIGITAL BUSINESS CARD DESIGN SYSTEM
   Visual Identity: Jeizi Productions (Editorial Brutalism / High-Tech Dark)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties / Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Color Palette — True Black, Blood Red, Bone White, Ash Gray */
  --color-ink: #060606;
  --color-coal: #0f0f0f;
  --color-coal-card: #0b0b0b;
  --color-coal-surface: #121212;
  --color-graphite: #181818;
  --color-graphite-light: #242424;

  --color-blood: #ff1f1f;
  --color-blood-hover: #ff3b3b;
  --color-blood-dim: rgba(255, 31, 31, 0.12);
  --color-blood-glow: rgba(255, 31, 31, 0.22);
  --color-blood-border: rgba(255, 31, 31, 0.45);

  --color-bone: #f2f2ec;
  --color-bone-muted: #d8d8d0;
  --color-ash: #9a9a92;
  --color-ash-dim: #60605a;

  --color-border: rgba(242, 242, 236, 0.12);
  --color-border-subtle: rgba(242, 242, 236, 0.06);
  --color-border-hover: rgba(255, 31, 31, 0.7);

  /* Typography Stack */
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Space Grotesk', var(--font-sans);
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Layout & Geometry */
  --max-card-width: 520px;
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   2. Reset & Global Styles
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--color-ink);
  color: var(--color-bone);
  font-family: var(--font-sans);
  min-height: 100vh;
  min-height: 100dvh;
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

::selection {
  background: var(--color-blood);
  color: var(--color-ink);
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-ink);
}
::-webkit-scrollbar-thumb {
  background: var(--color-graphite);
  border-radius: var(--radius-xs);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-blood);
}

/* Accessibility Focus States */
:focus-visible {
  outline: 2px solid var(--color-blood);
  outline-offset: 2px;
}

button, a {
  -webkit-tap-highlight-color: transparent;
}

/* --------------------------------------------------------------------------
   3. Background Atmosphere & Grain Texture
   -------------------------------------------------------------------------- */
.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: 
    linear-gradient(rgba(242, 242, 236, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 242, 236, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center top;
  z-index: 1;
}

.ambient-glow {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(140px);
  transform: translateZ(0);
  will-change: transform, opacity;
  z-index: 1;
}

.ambient-glow-top {
  top: -100px;
  right: -50px;
  width: 450px;
  height: 450px;
  background: rgba(255, 31, 31, 0.15);
  animation: ambient-drift-top 22s ease-in-out infinite alternate;
}

.ambient-glow-bottom {
  bottom: -150px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: rgba(255, 31, 31, 0.08);
  animation: ambient-drift-bottom 28s ease-in-out infinite alternate;
}

@keyframes ambient-drift-top {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.85;
  }
  50% {
    transform: translate3d(-35px, 25px, 0) scale(1.12);
    opacity: 1.15;
  }
  100% {
    transform: translate3d(20px, -15px, 0) scale(0.95);
    opacity: 0.9;
  }
}

@keyframes ambient-drift-bottom {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.75;
  }
  50% {
    transform: translate3d(30px, -20px, 0) scale(1.1);
    opacity: 1.05;
  }
  100% {
    transform: translate3d(-15px, 15px, 0) scale(0.92);
    opacity: 0.8;
  }
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("../assets/images/noise.png");
  background-repeat: repeat;
  background-size: 128px 128px;
  transform: translateZ(0);
}

/* --------------------------------------------------------------------------
   4. Main Card Container
   -------------------------------------------------------------------------- */
.card-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: var(--max-card-width);
  padding: 1.5rem 1rem 3rem;
  margin: 0 auto;
}

.profile-card {
  position: relative;
  background: var(--color-coal-card);
  border: 1px solid var(--color-border);
  box-shadow: 
    0 25px 70px -15px rgba(0, 0, 0, 0.9),
    0 0 45px -10px var(--color-blood-glow);
  overflow: hidden;
  transition: border-color var(--transition-normal);
}

.profile-card:hover {
  border-color: rgba(242, 242, 236, 0.2);
}

/* Corner Technical Crop Marks */
.card-crop-mark {
  position: absolute;
  width: 8px;
  height: 8px;
  border-color: var(--color-blood);
  pointer-events: none;
  z-index: 25;
  opacity: 0.45;
  will-change: opacity, filter;
}

.card-crop-top-left {
  top: 6px;
  left: 6px;
  border-top: 1.5px solid var(--color-blood);
  border-left: 1.5px solid var(--color-blood);
  animation: crop-pulse-primary 8.5s ease-in-out infinite;
}

.card-crop-top-right {
  top: 6px;
  right: 6px;
  border-top: 1.5px solid var(--color-blood);
  border-right: 1.5px solid var(--color-blood);
  animation: crop-pulse-secondary 11s ease-in-out infinite;
}

.card-crop-bottom-left {
  bottom: 6px;
  left: 6px;
  border-bottom: 1.5px solid var(--color-blood);
  border-left: 1.5px solid var(--color-blood);
  animation: crop-pulse-secondary 11s ease-in-out infinite;
}

.card-crop-bottom-right {
  bottom: 6px;
  right: 6px;
  border-bottom: 1.5px solid var(--color-blood);
  border-right: 1.5px solid var(--color-blood);
  animation: crop-pulse-primary 8.5s ease-in-out infinite;
}

@keyframes crop-pulse-primary {
  0%, 100% {
    opacity: 0.45;
    filter: drop-shadow(0 0 0 rgba(255, 31, 31, 0));
  }
  50% {
    opacity: 0.95;
    filter: drop-shadow(0 0 3px rgba(255, 31, 31, 0.75));
  }
}

@keyframes crop-pulse-secondary {
  0%, 100% {
    opacity: 0.45;
    filter: drop-shadow(0 0 0 rgba(255, 31, 31, 0));
  }
  50% {
    opacity: 0.85;
    filter: drop-shadow(0 0 2px rgba(255, 31, 31, 0.5));
  }
}

/* --------------------------------------------------------------------------
   5. Brand Cover / Banner
   -------------------------------------------------------------------------- */
.brand-cover {
  position: relative;
  height: 175px;
  background: linear-gradient(135deg, #150505 0%, #080808 60%, #0d0d0d 100%);
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem 1.25rem 0.85rem;
}

/* Geometric banner overlay lines */
.cover-geometry {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: 
    radial-gradient(circle at 80% 20%, rgba(255, 31, 31, 0.22) 0%, transparent 60%),
    linear-gradient(135deg, rgba(255, 31, 31, 0.05) 25%, transparent 25%),
    linear-gradient(225deg, rgba(255, 31, 31, 0.05) 25%, transparent 25%);
  background-size: 100% 100%, 30px 30px, 30px 30px;
  overflow: hidden;
}

.cover-geometry::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 0%,
    transparent 42%,
    rgba(255, 31, 31, 0.08) 48%,
    rgba(242, 242, 236, 0.05) 50%,
    rgba(255, 31, 31, 0.08) 52%,
    transparent 58%,
    transparent 100%
  );
  transform: translate3d(-100%, 0, 0);
  pointer-events: none;
  animation: cover-sweep 17s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  will-change: transform, opacity;
}

@keyframes cover-sweep {
  0%, 12% {
    transform: translate3d(-120%, 0, 0);
    opacity: 0;
  }
  25% {
    opacity: 1;
  }
  45%, 100% {
    transform: translate3d(120%, 0, 0);
    opacity: 0;
  }
}

/* Big faint outline watermark */
.cover-watermark {
  position: absolute;
  right: -10px;
  bottom: -22px;
  font-family: var(--font-display);
  font-size: 6.5rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgba(242, 242, 236, 0.06);
  user-select: none;
  pointer-events: none;
  line-height: 1;
  opacity: 0.55;
  animation: watermark-shimmer 13s ease-in-out infinite alternate;
  will-change: opacity, transform;
}

/* Signature Outlined Brand Typewriter in Cover */
.cover-typewriter {
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  top: 54%;
  transform: translateY(-50%);
  z-index: 2;
  pointer-events: none;
  user-select: none;
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 4.8vw, 1.85rem);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgba(242, 242, 236, 0.12);
  text-shadow: 0 0 16px rgba(255, 31, 31, 0.12);
  opacity: 0.42;
  display: flex;
  align-items: center;
}

.typewriter-text {
  color: transparent;
  -webkit-text-stroke: 1px rgba(242, 242, 236, 0.13);
  letter-spacing: 0.05em;
}

.typewriter-cursor {
  display: inline-block;
  color: var(--color-blood);
  font-family: var(--font-mono);
  font-weight: 300;
  margin-left: 2px;
  animation: cursor-blink 0.8s ease-in-out infinite;
  opacity: 0.7;
}

@keyframes cursor-blink {
  0%, 100% { opacity: 0; }
  50% { opacity: 0.85; }
}

@keyframes watermark-shimmer {
  0% {
    opacity: 0.45;
    -webkit-text-stroke-color: rgba(242, 242, 236, 0.05);
    transform: translate3d(0, 0, 0);
  }
  50% {
    opacity: 0.8;
    -webkit-text-stroke-color: rgba(255, 31, 31, 0.12);
    transform: translate3d(-4px, 0, 0);
  }
  100% {
    opacity: 0.5;
    -webkit-text-stroke-color: rgba(242, 242, 236, 0.07);
    transform: translate3d(2px, 0, 0);
  }
}

/* Cover top bar */
.cover-top-bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--color-bone);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: rgba(6, 6, 6, 0.65);
  padding: 5px 10px;
  border: 1px solid var(--color-border);
  backdrop-filter: blur(8px);
}

.brand-logo-img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-bone);
  background: rgba(255, 31, 31, 0.09);
  border: 1px solid var(--color-blood-border);
  padding: 4px 8px;
  backdrop-filter: blur(8px);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-blood);
  animation: status-breathe 3.5s ease-in-out infinite;
  will-change: transform, opacity, box-shadow;
}

@keyframes status-breathe {
  0%, 100% {
    opacity: 0.75;
    transform: scale(1);
    box-shadow: 0 0 3px rgba(255, 31, 31, 0.35);
  }
  50% {
    opacity: 1;
    transform: scale(1.18);
    box-shadow: 0 0 8px 1.5px rgba(255, 31, 31, 0.75);
  }
}

.cover-bottom-meta {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-ash);
}

/* --------------------------------------------------------------------------
   6. Identity & Profile Section
   -------------------------------------------------------------------------- */
.identity-section {
  position: relative;
  padding: 0 1.5rem 1.5rem;
}

/* Overlapping Portrait Component */
.portrait-container {
  position: relative;
  margin-top: -55px;
  margin-bottom: 1.25rem;
  display: inline-block;
  z-index: 5;
}

.portrait-frame {
  position: relative;
  width: 104px;
  height: 104px;
  background: var(--color-coal);
  border: 2px solid var(--color-ink);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8), 0 0 0 1px var(--color-border);
  overflow: hidden;
  transition: transform var(--transition-normal), border-color var(--transition-normal);
}

.portrait-frame:hover {
  border-color: var(--color-blood);
}

.portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.portrait-badge {
  position: absolute;
  bottom: 0;
  inset-x: 0;
  background: rgba(6, 6, 6, 0.85);
  backdrop-filter: blur(4px);
  padding: 3px 4px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: center;
  color: var(--color-blood);
  font-weight: 700;
  border-top: 1px solid rgba(255, 31, 31, 0.3);
}

/* Name and Typography */
.identity-text {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.identity-name {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 4.5vw, 1.65rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--color-bone);
}

.identity-handle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-blood);
}

.identity-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-ash);
  margin-top: 0.1rem;
}

/* Editorial Tagline Box & Rotator */
.tagline-box {
  margin-top: 1.1rem;
  padding: 0.9rem 1.1rem 0.65rem;
  background: var(--color-coal-surface);
  border-left: 2px solid var(--color-blood);
  border-top: 1px solid var(--color-border-subtle);
  border-right: 1px solid var(--color-border-subtle);
  border-bottom: 1px solid var(--color-border-subtle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 96px;
  position: relative;
  overflow: hidden;
}

.tagline-content {
  position: relative;
  min-height: 56px;
  display: flex;
  align-items: center;
}

.tagline-quote {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--color-bone-muted);
  font-style: italic;
  margin: 0;
  width: 100%;
  transition: opacity 450ms cubic-bezier(0.22, 1, 0.36, 1), transform 450ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.tagline-quote.is-active {
  opacity: 1;
  transform: translateY(0);
}

.tagline-quote.is-leaving {
  opacity: 0;
  transform: translateY(-8px);
}

.tagline-quote.is-entering {
  opacity: 0;
  transform: translateY(8px);
}

.quote-accent {
  color: var(--color-bone);
  font-style: italic;
  font-weight: 500;
  position: relative;
  box-shadow: inset 0 -2px 0 var(--color-blood);
}

/* Subtle Tagline Footer: Counter & Progress Line */
.tagline-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.45rem;
  padding-top: 0.4rem;
  border-top: 1px solid rgba(242, 242, 236, 0.05);
}

.tagline-counter {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--color-ash);
  user-select: none;
}

.tagline-progress-track {
  flex: 1;
  max-width: 80px;
  height: 2px;
  background: rgba(242, 242, 236, 0.08);
  overflow: hidden;
}

.tagline-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--color-blood);
  transform-origin: left;
}

/* --------------------------------------------------------------------------
   7. Primary Actions Grid
   -------------------------------------------------------------------------- */
.actions-section {
  padding: 0 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Main Solid CTA Button */
.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  padding: 13px 20px;
  background: var(--color-blood);
  color: var(--color-ink);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--color-blood);
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 18px rgba(255, 31, 31, 0.35);
}

.btn-primary:hover {
  background: var(--color-bone);
  border-color: var(--color-bone);
  color: var(--color-ink);
  box-shadow: 0 6px 22px rgba(242, 242, 236, 0.25);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Quick Actions Subgrid (Email, Share, QR) */
.action-subgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.btn-secondary {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 10px 8px;
  background: var(--color-coal-surface);
  border: 1px solid var(--color-border);
  color: var(--color-bone);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  border-color: var(--color-blood);
  color: var(--color-blood);
  background: var(--color-graphite);
  transform: translateY(-1px);
}

.btn-secondary:active {
  transform: translateY(0);
}

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

/* --------------------------------------------------------------------------
   8. Information Rows (Contact, Social, Showcase)
   -------------------------------------------------------------------------- */
.section-divider {
  padding: 0 1.5rem;
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-ash);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.section-label::before {
  content: "//";
  color: var(--color-blood);
}

.section-line {
  flex: 1;
  height: 1px;
  background: var(--color-border-subtle);
  margin-left: 0.75rem;
}

/* Contact List */
.contact-list {
  padding: 0 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: var(--color-coal-surface);
  border: 1px solid var(--color-border);
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-fast);
}

.contact-row:hover {
  border-color: var(--color-blood-border);
  background: var(--color-graphite);
}

.contact-row-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.contact-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: rgba(6, 6, 6, 0.7);
  border: 1px solid var(--color-border);
  color: var(--color-bone);
  flex-shrink: 0;
}

.contact-icon-box svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
}

.contact-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.contact-meta-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-ash);
}

.contact-val {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--color-bone);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-action-btn {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-ash);
  padding: 5px 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.contact-action-btn:hover {
  border-color: var(--color-blood);
  color: var(--color-blood);
}

.contact-arrow {
  color: var(--color-ash);
  font-family: var(--font-mono);
  font-size: 12px;
  transition: transform var(--transition-fast), color var(--transition-fast);
  flex-shrink: 0;
}

.contact-row:hover .contact-arrow {
  color: var(--color-blood);
  transform: translate(2px, -2px);
}

/* Social Grid (2 Columns) */
.social-grid {
  padding: 0 1.5rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.55rem;
}

.social-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: var(--color-coal-surface);
  border: 1px solid var(--color-border);
  text-decoration: none;
  color: var(--color-bone);
  transition: all var(--transition-fast);
}

.social-card:hover {
  border-color: var(--color-blood);
  background: var(--color-graphite);
  color: var(--color-blood);
  transform: translateY(-1px);
}

.social-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.social-card-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.social-card svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  flex-shrink: 0;
}

.social-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* Portfolio Showcase Cards */
.showcase-grid {
  padding: 0 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.showcase-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: linear-gradient(90deg, var(--color-coal-surface) 0%, rgba(255, 31, 31, 0.04) 100%);
  border: 1px solid var(--color-border);
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-fast);
}

.showcase-card:hover {
  border-color: var(--color-blood);
  background: linear-gradient(90deg, var(--color-graphite) 0%, rgba(255, 31, 31, 0.08) 100%);
  transform: translateX(3px);
}

.showcase-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.showcase-title {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-bone);
}

.showcase-desc {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-ash);
}

.showcase-badge {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-blood);
  background: rgba(255, 31, 31, 0.08);
  border: 1px solid var(--color-blood-border);
  padding: 4px 8px;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   9. Footer
   -------------------------------------------------------------------------- */
.card-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--color-border);
  background: var(--color-ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-ash);
}

.footer-logo {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.footer-sub {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-ash-dim);
}

/* --------------------------------------------------------------------------
   10. Accessible QR Code Modal / Dialog
   -------------------------------------------------------------------------- */
dialog.qr-modal {
  border: none;
  background: transparent;
  padding: 0;
  max-width: 420px;
  width: 90%;
  margin: auto;
}

dialog.qr-modal::backdrop {
  background: rgba(6, 6, 6, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.qr-modal-card {
  background: var(--color-coal-card);
  border: 1px solid var(--color-blood-border);
  box-shadow: 
    0 25px 80px rgba(0, 0, 0, 0.95),
    0 0 50px var(--color-blood-glow);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.qr-modal-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.75rem;
}

.qr-modal-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-bone);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.qr-modal-title::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--color-blood);
}

.btn-close-modal {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-ash);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 14px;
  transition: all var(--transition-fast);
}

.btn-close-modal:hover {
  border-color: var(--color-blood);
  color: var(--color-blood);
}

.qr-canvas-frame {
  background: #f2f2ec;
  padding: 14px;
  border: 1px solid var(--color-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

#qr-canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

.qr-url-box {
  width: 100%;
  background: var(--color-coal-surface);
  border: 1px solid var(--color-border);
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.qr-url-text {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--color-ash);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qr-modal-actions {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

/* --------------------------------------------------------------------------
   11. Toast Notification System
   -------------------------------------------------------------------------- */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-normal);
}

.toast-container.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.toast-pill {
  background: var(--color-coal-surface);
  border: 1px solid var(--color-blood);
  color: var(--color-bone);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 10px 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px var(--color-blood-glow);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  white-space: nowrap;
}

.toast-icon {
  color: var(--color-blood);
  display: inline-flex;
}

/* --------------------------------------------------------------------------
   12. Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 380px) {
  .card-wrapper {
    padding: 0.75rem 0.5rem 2rem;
  }
  .brand-cover {
    height: 155px;
    padding: 1rem 1rem 0.75rem;
  }
  .portrait-wrapper {
    margin-top: -45px;
  }
  .portrait-frame {
    width: 90px;
    height: 90px;
  }
  .identity-section,
  .actions-section,
  .contact-list,
  .social-grid,
  .showcase-grid {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .social-grid {
    grid-template-columns: 1fr;
  }
  .action-subgrid {
    grid-template-columns: 1fr;
  }
  .btn-secondary {
    flex-direction: row;
    gap: 0.6rem;
    padding: 9px 12px;
  }
  .qr-modal-actions {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 640px) {
  .card-wrapper {
    padding: 3rem 1.5rem 5rem;
  }
  .brand-cover {
    height: 190px;
    padding: 1.5rem 1.5rem 1rem;
  }
  .portrait-frame {
    width: 116px;
    height: 116px;
  }
  .portrait-container {
    margin-top: -65px;
  }
  .identity-section,
  .actions-section,
  .contact-list,
  .social-grid,
  .showcase-grid {
    padding-left: 2rem;
    padding-right: 2rem;
  }
  .section-divider {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* --------------------------------------------------------------------------
   13. Reduced Motion & Print
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .ambient-glow-top,
  .ambient-glow-bottom,
  .cover-geometry::after,
  .cover-watermark,
  .status-dot,
  .card-crop-mark {
    animation: none !important;
    transform: none !important;
  }
  .ambient-glow-top,
  .ambient-glow-bottom {
    opacity: 1 !important;
  }
  .cover-geometry::after {
    display: none !important;
  }
  .cover-watermark {
    opacity: 0.65 !important;
    -webkit-text-stroke-color: rgba(242, 242, 236, 0.06) !important;
  }
  .card-crop-mark {
    opacity: 0.7 !important;
    filter: none !important;
  }
  .status-dot {
    opacity: 1 !important;
    box-shadow: 0 0 4px rgba(255, 31, 31, 0.5) !important;
  }
  .typewriter-cursor {
    display: none !important;
  }
  .tagline-quote {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
  .tagline-progress-bar {
    width: 100% !important;
    transition: none !important;
  }
  .toast-container {
    transition: opacity 0.01ms !important;
  }
}

@media print {
  body {
    background: #fff;
    color: #000;
  }
  .bg-grid, .ambient-glow, .grain, .actions-section, .toast-container, dialog.qr-modal {
    display: none !important;
  }
  .profile-card {
    border: 1px solid #ccc;
    box-shadow: none;
    background: #fff;
  }
}
