/* =============================================
   ZAMMAD ISHAQ PORTFOLIO — Design System
   Based on HOMEPAGE_TEMPLATE.md
   ============================================= */

/* 1. DESIGN TOKENS */
:root {
  --ink:              #111111;
  --body-text:        #333333;
  --muted:            #9a9a9a;
  --faint:            #b3b3b3;
  --bg:               #ffffff;
  --panel:            #f0f0f0;
  --hover-wash:       #f2f2f2;
  --border-light:     #f0f0f0;
  --border-medium:    #d8d8d8;
  --panel-dark:       #1c1c1c;
  --panel-dark-hover: #3a3a3a;
  --brand:            #e8632c;
  --brand-tint:       #f3d3c6;
  --brand-dark:       color-mix(in srgb, var(--brand) 72%, #000);
  --liquid-ease:      cubic-bezier(0.22, 1, 0.36, 1);
  --header-h:         68px;
  --anchor-offset:    88px;
}

/* 2. RESET + BASE */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }

/* Anchors for navigation */
#work, #about, #contact { scroll-margin-top: var(--anchor-offset); }

/* 3. PAGE SHELL */
.page-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px 96px 40px;
}

/* 3b. LOADING SCREEN */
.site-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease 0.4s, visibility 0s linear 0.9s;
}
.site-loader.is-done {
  opacity: 0;
  visibility: hidden;
}
.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.loader-brand {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -1.5px;
  color: var(--ink);
  animation: loaderPulse 0.7s ease-out both;
}
.loader-pct {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  width: 3ch;
  text-align: center;
}
.loader-progress-wrap {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--border-light);
}
.loader-progress-bar {
  height: 100%;
  background: var(--brand);
  width: 0%;
  transition: width 0.08s linear;
}
@keyframes loaderPulse {
  from { opacity: 0; transform: scale(0.88); }
  to   { opacity: 1; transform: scale(1); }
}

/* 4. KEYFRAMES */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes arrow-sweep-right {
  0%  { transform: translateX(0); }
  49% { transform: translateX(140%); }
  51% { transform: translateX(-140%); }
  100% { transform: translateX(0); }
}
@keyframes wcard-swing {
  0%   { transform: rotate(-4deg); }
  3%   { transform: rotate(-8.8deg); }
  10%  { transform: rotate(-0.7deg); }
  16.5% { transform: rotate(-6.3deg); }
  23%  { transform: rotate(-2.4deg); }
  29.5% { transform: rotate(-5.1deg); }
  36%  { transform: rotate(-3.25deg); }
  42.5% { transform: rotate(-4.55deg); }
  49%  { transform: rotate(-3.62deg); }
  55.5% { transform: rotate(-4.26deg); }
  62%  { transform: rotate(-3.9deg); }
  68%  { transform: rotate(-4deg); }
  100% { transform: rotate(-4deg); }
}

/* ============================================
   5. HEADER
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  animation: fadeUp 0.6s ease;
}

.header-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 100%;
  height: var(--header-h);
  margin-top: 0;
  padding: 0 40px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 0;
  transition:
    max-width 0.7s var(--liquid-ease),
    height 0.7s var(--liquid-ease),
    margin-top 0.7s var(--liquid-ease),
    padding 0.7s var(--liquid-ease),
    border-radius 0.7s var(--liquid-ease),
    border-color 0.45s ease;
}

/* Glass layers */
.header-bar::before,
.header-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.header-bar::before {
  backdrop-filter: url(#liquid-glass-distortion);
}
.header-bar::after {
  backdrop-filter: blur(14px) saturate(1.5);
  background: linear-gradient(115deg, rgba(255,255,255,0.1), rgba(255,255,255,0.02) 45%, rgba(255,255,255,0.08));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.4),
    inset 0 -1px 0 rgba(255,255,255,0.18);
}

/* Scrolled state */
.site-header.is-scrolled .header-bar::before,
.site-header.is-scrolled .header-bar::after { opacity: 1; }
.site-header.is-scrolled .header-bar { border-bottom-color: rgba(255,255,255,0.6); }

/* Floating state */
.site-header.is-floating .header-bar {
  max-width: 680px;
  height: 54px;
  margin-top: 12px;
  padding: 0 22px;
  border-radius: 999px;
  border-color: rgba(17,17,17,0.1);
}

/* Identity */
.identity {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
  color: var(--ink);
  transition: gap 0.7s var(--liquid-ease);
}
.identity-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: flex; align-items: center; justify-content: center;
  flex: none;
  overflow: hidden;
  transition: width 0.7s var(--liquid-ease), height 0.7s var(--liquid-ease);
}
.identity-avatar-img {
  width: 100%; height: 100%;
  object-fit: cover; border-radius: 50%;
  display: block;
}
.is-floating .identity-avatar { width: 32px; height: 32px; }
.is-floating .identity { gap: 10px; }
.identity-text {
  display: flex; flex-direction: column; gap: 2px;
}
.identity-name {
  font-size: 15px; font-weight: 600; line-height: 1; color: var(--brand);
}
.identity-meta {
  font-size: 13px; color: var(--muted); line-height: 1;
  overflow: hidden; max-height: 14px;
  transition: max-height 0.45s ease, opacity 0.3s ease;
}
.is-floating .identity-meta { max-height: 0; opacity: 0; }

/* Nav tabs */
.header-tabs {
  display: flex;
  gap: 4px;
  flex: none;
  transition: opacity 0.3s ease;
}
.header-tab {
  font-size: 15px; font-weight: 500; color: var(--ink);
  padding: 8px 14px; border-radius: 999px;
  transition: color 0.45s ease, background-color 0.25s ease;
}
.header-tab:hover { background: var(--hover-wash); }

/* Resume pill */
.nav-pill--resume {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 500; color: var(--ink);
  padding: 10px 14px; border-radius: 8px; flex: none;
  transition: background 0.2s ease, opacity 0.3s ease;
}
.nav-pill--resume:hover { background: var(--hover-wash); }
.nav-pill--resume:hover .pill-icon {
  animation: arrow-sweep-right 0.4s ease;
}

/* Mobile menu (hidden on desktop) */
.header-menu { display: none; position: relative; }
.header-menu-btn {
  width: 40px; height: 40px; border: none; background: transparent;
  border-radius: 50%; color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease;
}
.header-menu-btn:hover { background: var(--hover-wash); }
.header-menu-panel {
  position: absolute; top: calc(100% + 10px); right: 0;
  min-width: 180px; padding: 8px; display: flex; flex-direction: column; gap: 2px;
  background: #fff; border: 1px solid var(--border-medium); border-radius: 16px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.25s var(--liquid-ease), visibility 0s linear 0.2s;
}
.header-menu-panel.is-open {
  opacity: 1; visibility: visible; transform: translateY(0);
  transition: opacity 0.2s ease, transform 0.25s var(--liquid-ease), visibility 0s;
}
.menu-link {
  padding: 12px 14px; font-size: 15px; font-weight: 500;
  border-radius: 10px; color: var(--ink);
  transition: background 0.2s ease;
}
.menu-link:hover { background: var(--hover-wash); }

/* (mini-capsule-over-deck removed — nav stays visible at all times) */

/* ============================================
   6. HERO
   ============================================ */
@keyframes char-float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-14px); }
}
@keyframes char-breathe {
  0%, 100% { transform: scaleY(1) scaleX(1); }
  40%       { transform: scaleY(1.012) scaleX(0.994); }
  70%       { transform: scaleY(0.994) scaleX(1.004); }
}
@keyframes char-land {
  0%   { transform: translateY(-80px) scaleY(0.85); opacity: 0; }
  55%  { transform: translateY(12px)  scaleY(1.04); opacity: 1; }
  75%  { transform: translateY(-6px)  scaleY(0.98); }
  90%  { transform: translateY(3px)   scaleY(1.01); }
  100% { transform: translateY(0px)   scaleY(1); }
}

.hero {
  padding: 20px 0 24px;
  min-height: calc(80vh - var(--header-h));
  display: grid;
  grid-template-columns: 1fr 360px;
  align-items: center;
  gap: 40px;
  animation: fadeUp 0.7s ease 0.08s both;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
}

/* ── Benchmark-matching char-area structure ── */
.char-area {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 480px;
  position: relative;
  width: 100%;
  animation: fadeUp 0.8s ease 0.25s both;
}

.char3d-wrap {
  width: 100%;
  height: 100%;
  position: relative;
}

.char-shadow {
  opacity: 0;
  background: radial-gradient(ellipse, rgba(0,0,0,0.28) 0%, transparent 72%);
  width: 220px;
  height: 28px;
  position: absolute;
  bottom: 24px;
  left: 50%;
  margin-left: -110px;
  transform: scale(0.5);
  transition: opacity 0.3s ease-out, transform 0.35s ease-out;
  pointer-events: none;
}

.char3d-wrap.is-landed .char-shadow {
  opacity: 1;
  transform: scale(1);
}

.char3d-canvas {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* Multilingual greeting */
.hero-greeting-block {
  overflow: hidden;
  height: clamp(56px, 8.5vw, 118px);
  margin-bottom: 32px;
  display: flex;
  align-items: flex-end;
}
.hero-greeting-word {
  font-size: clamp(52px, 8vw, 110px);
  font-weight: 700;
  letter-spacing: -3px;
  line-height: 0.92;
  color: var(--ink);
  display: block;
  will-change: transform, opacity;
  transition: color 0.3s ease;
}

.hero-copy { display: flex; flex-direction: column; align-items: flex-start; }
.hero-eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 28px;
}
.hero-title {
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: -0.8px;
  max-width: 640px;
  margin: 0 0 36px;
}
.hero-role-flip {
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  vertical-align: bottom;
}
.hero-role-line {
  display: inline-block;
  will-change: transform, opacity;
}
.hero-title-role { color: var(--brand); font-weight: 600; }
.hero-actions {
  display: flex;
  gap: 16px;
  animation: fadeUp 0.7s ease 0.18s both;
}

/* Buttons */
.btn-primary {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--panel-dark); color: #fff;
  border: 1px solid var(--panel-dark);
  font-size: 15px; font-weight: 400;
  padding: 15px 22px;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.btn-primary:hover { background: var(--brand); border-color: var(--brand); }
.btn-primary:hover .btn-arrow { animation: arrow-sweep-right 0.4s ease; }
.btn-arrow-wrap { display: inline-flex; overflow: hidden; }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 12px;
  background: #fff; color: var(--ink);
  border: 1px solid var(--border-medium);
  font-size: 15px; font-weight: 400;
  padding: 15px 22px;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn-secondary:hover { border-color: var(--brand); color: var(--brand); }

/* ============================================
   7. CREDIBILITY STRIP
   ============================================ */
.cred { margin-top: 24px; padding: 28px 0; }
.cred-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.cred-item {
  position: relative;
  display: flex; flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}
.cred-item + .cred-item {
  border-left: 1px solid var(--border-light);
  padding-left: 28px;
}
.cred-value {
  font-size: 22px; font-weight: 500; line-height: 1.2;
  letter-spacing: -0.3px; color: var(--ink);
}
.cred-plus { color: var(--ink); }
.cred-sub { font-size: 13.5px; font-weight: 400; color: var(--muted); }

/* Strike line */
.cred-strike-wrap { position: relative; display: inline-block; }
.cred-strike {
  position: absolute;
  left: -3px; top: 0;
  width: calc(100% + 6px); height: 100%;
  overflow: visible; pointer-events: none;
}
.cred-strike path {
  fill: none;
  stroke: var(--brand);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 101;
  stroke-dashoffset: 101;
  transition: stroke-dashoffset 0.4s ease;
}

/* Correction label */
.cred-correction {
  position: absolute; left: 2px; top: -27px;
  font-family: 'Caveat', cursive; font-size: 19px;
  color: var(--brand); white-space: nowrap;
  overflow: hidden; width: 0;
  transform: rotate(-2.5deg); pointer-events: none;
  transition: width 0.55s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}
.cred-item + .cred-item .cred-correction { left: 30px; }

/* Hover/tap trigger */
.cred-correctable:hover .cred-strike path,
.cred-correctable[data-tapped] .cred-strike path { stroke-dashoffset: 0; }
.cred-correctable:hover .cred-correction,
.cred-correctable[data-tapped] .cred-correction { width: 180px; }

/* ============================================
   8. WORK DECK
   ============================================ */
#work { margin-top: 80px; }
.work-heading {
  display: flex; flex-direction: column;
  align-items: center; gap: 8px;
  padding: 88px 0 40px;
  text-align: center;
}
.work-heading-eyebrow { color: var(--faint); font-size: 19px; }
.work-heading-sub { font-size: 15px; font-weight: 500; color: var(--muted); }

/* Track */
.deck-track {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  --deck-inset: clamp(20px, 3.2vw, 48px);
}
.deck-stage {
  position: relative;
  height: 100vh; height: 100svh;
  overflow: clip;
  background: #333;
}
.cs-slide {
  position: absolute; inset: 0;
  overflow: clip;
}
.deck-content { position: absolute; inset: 0; }

/* Story bars */
.deck-bars {
  position: absolute;
  left: var(--deck-inset); right: var(--deck-inset);
  bottom: 18px;
  display: flex; gap: 9px; z-index: 10;
}
.deck-bar {
  flex: 1; background: none; border: 0;
  padding: 12px 0; margin: 0; cursor: pointer;
}
.deck-bar-line {
  display: block; position: relative;
  height: 4px;
  background: rgba(255,255,255,0.5);
  border-radius: 999px; overflow: hidden;
  transition: background 0.3s ease;
}
.deck-bar-fill {
  position: absolute; inset: 0;
  background: var(--brand);
  transform-origin: left center;
  transform: scaleX(0);
}

/* ============================================
   9. WCARD SLIDE FAMILY
   ============================================ */
.wcard {
  background: #e8f3fb;
}
.wcard::before {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, rgba(17,17,17,.05) 0 1px, transparent 1px 36px),
    repeating-linear-gradient(90deg, rgba(17,17,17,.05) 0 1px, transparent 1px 36px);
  mask-image:
    radial-gradient(46% 52% at 21% 23%, #000 0%, transparent 98%),
    radial-gradient(52% 44% at 79% 31%, #000 0%, transparent 98%),
    radial-gradient(44% 54% at 33% 79%, #000 0%, transparent 98%);
  mask-composite: add;
}

/* Slide-specific paper colors */
.wcard.bnpl       { background: #f0f5e8; }
.wcard.escrow     { background: #e8f5f0; }
.wcard.marketplace{ background: #f5f0e8; }
.wcard.bsecure    { background: #e8eef5; }
.wcard.taptap     { background: #f5e8f0; }

/* Slide-specific accent colors for titles */
.wcard.pfm         .wcard-title-accent { color: #0d9488; }
.wcard.bnpl        .wcard-title-accent { color: #65a30d; }
.wcard.escrow      .wcard-title-accent { color: #0891b2; }
.wcard.marketplace .wcard-title-accent { color: #d97706; }
.wcard.bsecure     .wcard-title-accent { color: #2563eb; }
.wcard.taptap      .wcard-title-accent { color: #9333ea; }

/* Slide-specific CTA colors */
.wcard.pfm         .wcard-cta { background: #0d9488; }
.wcard.bnpl        .wcard-cta { background: #65a30d; }
.wcard.escrow      .wcard-cta { background: #0891b2; }
.wcard.marketplace .wcard-cta { background: #d97706; }
.wcard.bsecure     .wcard-cta { background: #2563eb; }
.wcard.taptap      .wcard-cta { background: #9333ea; }

.wcard-wrap {
  position: relative; z-index: 1;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 44%) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 76px);
  align-items: center;
  padding: 76px clamp(40px, 5.5vw, 84px) 84px;
}

/* Left column */
.wcard-left { display: flex; flex-direction: column; }
.wcard-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted);
  margin: 0 0 24px;
}
.wcard-eyebrow::before {
  content: '';
  display: block;
  width: 26px; height: 1px;
  background: var(--ink);
}
.wcard-title {
  font-size: clamp(28px, 3.45vw, 48px);
  font-weight: 600; line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 550px;
  color: var(--ink);
}
.wcard-sub {
  margin: 18px 0 0;
  font-size: clamp(15px, 1.26vw, 18px);
  line-height: 1.5;
  color: #5e5e5e;
}
.wcard-chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 30px;
}
.wcard-chip {
  font-family: 'Outfit', monospace;
  font-size: 10.5px; letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6.5px 12.5px;
  border: 0.5px solid #333; border-radius: 3px;
  color: var(--ink);
}
.wcard-meta {
  display: flex; gap: 56px; margin: 32px 0;
}
.wcard-meta > div { display: flex; flex-direction: column; }
.wcard-meta-label {
  font-size: 10px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: rgba(17,17,17,0.62);
  margin-bottom: 6px;
}
.wcard-meta-value { font-size: 15px; font-weight: 500; }
.wcard-cta {
  display: inline-flex; align-items: center; gap: 8px;
  height: 48px; padding: 0 23px;
  background: #333; color: #fff;
  border: 1px solid rgba(255,255,255,0.15); border-radius: 2px;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  align-self: flex-start;
  transition: filter 0.22s ease;
}
.wcard-cta:hover { filter: brightness(1.2); }
.wcard-cta:hover .wcard-cta-arrow { animation: arrow-sweep-right 0.4s ease; }
.wcard-cta-arrow-wrap { display: inline-flex; overflow: hidden; }

/* Right column / pinboard */
.wcard-right { display: flex; justify-content: center; align-items: center; }
.wcard-pinboard {
  position: relative;
  width: min(clamp(260px, 27.4vw, 400px), 52svh);
}
.wcard-hang {
  transform-origin: calc(100% - 34px) 26px;
  transform: rotate(-4deg);
  animation: wcard-swing 12s ease-in-out infinite;
  position: relative;
}
.deck-track--asleep .wcard-hang { animation-play-state: paused; }

.wcard-frame {
  aspect-ratio: 414 / 486;
  background: #fff;
  border: 1px solid var(--border-medium);
  border-radius: 4px;
  overflow: clip;
  box-shadow:
    0 1px 1.5px rgba(17,17,17,.06),
    -1px 4px 7px rgba(17,17,17,.07),
    -3px 12px 22px rgba(17,17,17,.09),
    -7px 30px 55px -12px rgba(17,17,17,.16);
  margin: 0;
}
.wcard-chrome {
  height: 30px; background: #f5f6f8;
  border-bottom: 1px solid var(--border-light);
  display: flex; align-items: center; gap: 6px;
  padding: 0 12px;
}
.wcard-dot {
  width: 8px; height: 8px; border-radius: 50%; display: block;
}
.wcard-dot--r { background: #ff4b59; }
.wcard-dot--y { background: #e1e4ea; }
.wcard-dot--g { background: #00ca48; }
.wcard-mat {
  position: absolute;
  left: 7.15%; right: 7.65%; top: calc(11.45% + 30px); bottom: 8%;
  border: 1px solid #f2f2f2; border-radius: 6px;
  overflow: hidden;
}

/* Doodles */
.wcard-doodle {
  position: absolute; z-index: 3;
  font-family: 'Caveat', cursive; font-size: 17px;
  line-height: 1.35; color: #454545; white-space: nowrap;
  pointer-events: none;
}
.wcard-doodle--a { left: -9%; top: 49.5%; transform: rotate(-10.5deg); }
.wcard-doodle--b { left: 87.5%; top: 66.9%; transform: rotate(17.8deg); }

/* Pin */
.wcard-pin {
  position: absolute; top: 4px; right: 20px;
  width: 28px; height: 32px; z-index: 4;
}

/* ============================================
   10. PRODUCT MOCKUPS (CSS-drawn UI)
   ============================================ */
.mockup {
  width: 100%; height: 100%;
  background: #fff;
  font-family: 'Outfit', sans-serif;
  overflow: hidden;
  display: flex; flex-direction: column;
  font-size: 11px;
}
.m-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; background: #f8f9fa;
  border-bottom: 1px solid #f0f0f0; flex: none;
}
.m-logo { font-weight: 700; font-size: 11px; letter-spacing: 0.05em; }
.m-tag {
  font-size: 9px; font-weight: 600; letter-spacing: 0.08em;
  padding: 2px 8px; border-radius: 999px;
  background: var(--panel); color: var(--muted);
}
.m-tag--dark { background: #1c1c1c; color: #fff; }

/* PFM mockup */
.mockup-pfm .m-total {
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 12px;
}
.m-total-label { font-size: 9px; color: var(--muted); }
.m-total-val { font-size: 16px; font-weight: 700; color: #0d9488; }
.m-accts { display: flex; flex-direction: column; gap: 0; }
.m-acct {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-bottom: 1px solid #f5f5f5;
}
.m-acct-bank { font-weight: 600; flex: 1; font-size: 10px; }
.m-acct-num { color: var(--muted); flex: 1; font-size: 9px; }
.m-acct-bal { font-weight: 600; font-size: 10px; }
.m-divider { height: 1px; background: #f0f0f0; margin: 4px 0; }
.m-txlist { display: flex; flex-direction: column; }
.m-tx {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 12px;
}
.m-tx-icon {
  width: 22px; height: 22px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; flex: none;
}
.m-tx-name { flex: 1; font-size: 10px; }
.m-tx-amt { font-size: 10px; font-weight: 600; }
.m-tx-out { color: #dc2626; }
.m-tx-in  { color: #16a34a; }

/* BNPL mockup */
.mockup-bnpl { gap: 6px; padding: 0 0 8px 0; }
.m-qr-wrap {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 8px;
}
.m-qr {
  width: 80px; height: 80px;
  background: #111;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
}
.qr-grid {
  width: 64px; height: 64px;
  background:
    repeating-linear-gradient(0deg, #fff 0 3px, transparent 3px 7px),
    repeating-linear-gradient(90deg, #fff 0 3px, transparent 3px 7px);
  background-size: 7px 7px;
}
.m-qr-info { text-align: center; }
.m-qr-merchant { font-weight: 600; font-size: 10px; display: block; }
.m-qr-amount { font-size: 14px; font-weight: 700; color: #65a30d; }
.m-terms { display: flex; gap: 4px; padding: 0 8px; }
.m-term {
  flex: 1; display: flex; flex-direction: column; gap: 2px; align-items: center;
  padding: 5px; border: 1px solid #e5e7eb; border-radius: 4px; font-size: 9px;
}
.m-term--active { background: #f0fdf4; border-color: #65a30d; font-weight: 600; }
.m-approve-btn {
  margin: 6px 8px 0;
  background: #65a30d; color: #fff;
  text-align: center; padding: 7px; border-radius: 4px;
  font-size: 10px; font-weight: 600;
}

/* Escrow mockup */
.mockup-escrow { gap: 0; }
.escrow-vault {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 10px 8px;
  background: linear-gradient(135deg, #e0f2f1, #b2dfdb);
}
.vault-icon { font-size: 24px; }
.vault-label { font-size: 9px; color: #0891b2; font-weight: 600; }
.vault-amount { font-size: 16px; font-weight: 700; color: #0891b2; }
.escrow-parties {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 6px 12px;
}
.party { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.party-role { font-size: 9px; color: var(--muted); }
.party-status {
  font-size: 9px; font-weight: 600; padding: 2px 6px; border-radius: 3px;
}
.party-status--paid    { background: #dcfce7; color: #16a34a; }
.party-status--pending { background: #fef3c7; color: #d97706; }
.party-arrow { font-size: 14px; color: var(--muted); }
.escrow-steps { display: flex; flex-direction: column; gap: 0; padding: 4px 12px; }
.e-step {
  font-size: 9px; padding: 4px 0;
  border-bottom: 1px solid #f0f0f0; color: var(--muted);
}
.e-step--done   { color: #16a34a; }
.e-step--active { color: #0891b2; font-weight: 600; }

/* Marketplace mockup */
.mockup-marketplace { gap: 0; }
.mkt-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 12px;
}
.mkt-title { font-weight: 600; font-size: 10px; }
.mkt-count { font-size: 9px; color: var(--muted); }
.mkt-offers { display: flex; flex-direction: column; gap: 4px; padding: 0 8px; }
.mkt-offer {
  padding: 7px 10px; border: 1px solid #f0f0f0; border-radius: 6px;
  display: grid; grid-template-columns: 1fr 1fr auto;
  align-items: center; gap: 4px; position: relative;
}
.mkt-offer--top { border-color: #d97706; background: #fffbeb; }
.mkt-offer-bank { font-weight: 700; font-size: 9px; }
.mkt-offer-product { font-size: 9px; color: var(--muted); }
.mkt-offer-rate { font-size: 9px; font-weight: 600; color: #d97706; }
.mkt-offer-badge {
  position: absolute; top: -6px; right: 8px;
  background: #d97706; color: #fff;
  font-size: 7.5px; font-weight: 700; padding: 1px 6px; border-radius: 3px;
}

/* bSecure mockup */
.mockup-bsecure { gap: 0; padding-bottom: 6px; }
.m-logo--bs { color: #2563eb; }
.bs-order {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 6px 12px;
}
.bs-order-label { font-size: 9px; color: var(--muted); }
.bs-order-total { font-size: 14px; font-weight: 700; color: #2563eb; }
.bs-method-label { font-size: 9px; color: var(--muted); padding: 0 12px 3px; }
.bs-methods { display: flex; gap: 4px; padding: 0 12px; }
.bs-method {
  flex: 1; text-align: center; padding: 4px; font-size: 9px;
  border: 1px solid #e5e7eb; border-radius: 4px;
}
.bs-method--active { border-color: #2563eb; background: #eff6ff; font-weight: 600; }
.bs-field { display: flex; flex-direction: column; gap: 1px; padding: 4px 12px 0; }
.bs-field-label { font-size: 8px; color: var(--muted); }
.bs-field-val { font-size: 9px; font-weight: 500; padding: 3px 6px; border: 1px solid #e5e7eb; border-radius: 3px; background: #f9fafb; }
.bs-row { display: flex; }
.bs-pay-btn {
  margin: 6px 12px 0;
  background: #2563eb; color: #fff;
  text-align: center; padding: 7px; border-radius: 4px;
  font-size: 10px; font-weight: 600;
}

/* TapTap mockup */
.mockup-taptap { gap: 0; }
.m-logo--tt { color: #9333ea; }
.tt-search {
  display: flex; align-items: center; justify-content: space-between;
  margin: 6px 8px; padding: 5px 10px;
  background: #f3f4f6; border-radius: 20px;
}
.tt-search-placeholder { font-size: 9px; color: var(--muted); }
.tt-search-icon { font-size: 11px; }
.tt-cats { display: flex; gap: 4px; padding: 0 8px; overflow: hidden; }
.tt-cat {
  font-size: 9px; padding: 3px 8px; border-radius: 999px;
  background: #f3f4f6; white-space: nowrap;
}
.tt-products {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  padding: 6px 8px;
}
.tt-product { display: flex; flex-direction: column; gap: 3px; }
.tt-product-img { height: 44px; border-radius: 4px; }
.tt-product-name { font-size: 9px; font-weight: 500; }
.tt-product-price { font-size: 9px; color: #9333ea; font-weight: 600; }

/* ============================================
   10b. TESTIMONIALS
   ============================================ */
.testimonials {
  background: var(--panel);
  padding: 100px 0 110px;
  margin-top: 80px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
}
.testimonials .page-shell {
  padding-bottom: 0;
}
.testimonials-header {
  margin-bottom: 56px;
}
.testimonials-heading {
  font-size: clamp(32px, 4.6vw, 64px);
  font-weight: 400;
  letter-spacing: -1.5px;
  line-height: 1.05;
  color: var(--ink);
  margin: 16px 0 20px;
  max-width: 600px;
}
.testimonials-count-label {
  font-size: 14px;
  color: var(--muted);
}
.testimonials-count {
  font-size: 28px;
  font-weight: 700;
  color: var(--brand);
  vertical-align: middle;
  margin-right: 4px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 0;
}
.tcard {
  background: var(--bg);
  padding: 32px 28px 28px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border: 1px solid var(--border-light);
}
.tcard-quote-mark {
  flex: none;
  overflow: visible;
}
.tcard-body {
  font-size: 17px;
  line-height: 1.65;
  color: var(--body-text);
  font-style: italic;
  flex: 1;
}
.tcard-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}
.tcard-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.tcard-byline { display: flex; flex-direction: column; gap: 2px; }
.tcard-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.tcard-role { font-size: 12px; color: var(--muted); }

/* ============================================
   11. ABOUT SECTION
   ============================================ */
.about-section {
  padding-top: 150px;
}
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--faint);
  margin: 0 0 40px;
}
.eyebrow-rule {
  display: block; width: 30px; height: 1px; background: var(--brand);
}
.section-eyebrow--light .eyebrow-rule { background: var(--brand); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr minmax(160px, 240px);
  gap: clamp(32px, 6vw, 90px);
  align-items: center;
  margin-bottom: 80px;
}
.about-quote { margin: 0; }
.about-quote-text {
  font-size: clamp(22px, 2.6vw, 38px);
  font-weight: 400; line-height: 1.28;
  letter-spacing: -0.8px;
  text-wrap: pretty;
  color: var(--ink);
}
.about-quote-footer {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--muted);
  margin-top: 24px;
}
.about-quote-footer::before {
  content: '';
  display: block; width: 20px; height: 1px;
  background: var(--border-medium);
}

.about-avatar {
  display: flex; align-items: center; justify-content: center;
}
.about-avatar-circle {
  width: 200px; height: 200px; border-radius: 50%;
  background: var(--brand); color: #fff;
  font-size: 40px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  flex: none;
}
.about-avatar-photo {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  border-radius: 50%;
  display: block;
}

/* Portrait-style photo frame (benchmark style) */
.about-portrait {
  display: flex; align-items: flex-start; justify-content: center;
}
.about-portrait-frame {
  width: 220px;
  aspect-ratio: 3 / 4;
  background: var(--brand);
  overflow: hidden;
  position: relative;
  flex: none;
}
.about-portrait-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: grayscale(1) contrast(1.05);
  mix-blend-mode: multiply;
}

/* ============================================
   12. CAREER TIMELINE
   ============================================ */
.rail-wrap { margin-top: 80px; }
.rail-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px;
  margin-bottom: 40px;
}
.rail-title { font-size: 21px; font-weight: 500; letter-spacing: -0.3px; }
.rail-hint { font-size: 14px; color: var(--muted); }

/* Timeline track */
.rail {
  position: relative;
  padding-left: 32px;
}
.rail::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: var(--border-medium);
}

.rail-stop {
  position: relative;
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  align-items: start; gap: 20px;
  padding: 24px 0 24px;
  cursor: default;
  transition: opacity 0.3s ease;
}
.rail-stop::before {
  content: '';
  position: absolute;
  left: -28px;
  top: 32px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border-medium);
  border: 2px solid var(--bg);
  transition: background 0.3s ease, transform 0.3s var(--liquid-ease);
}
.rail-stop:first-child::before { background: var(--brand); transform: scale(1.2); }
.rail-stop.is-hovered::before { background: var(--brand); transform: scale(1.3); }
.rail-stop + .rail-stop { border-top: 1px solid var(--border-light); }
.rail-stop:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }

.rail-year { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 8px; letter-spacing: 0.02em; }
.rail-company {
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 500; letter-spacing: -0.7px;
  display: inline-block; width: fit-content;
  transform-origin: left center;
  transition: transform 0.45s var(--liquid-ease), color 0.3s ease;
  position: relative;
}
.rail-company--accent { color: var(--brand); }
.rail-note {
  display: block;
  margin-top: 8px;
  font-size: 14px; line-height: 1.6; color: var(--muted);
  font-weight: 400; letter-spacing: 0;
  max-width: 46ch;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s ease 0.06s, transform 0.45s var(--liquid-ease), max-height 0.4s ease;
  transform: translateY(4px);
  white-space: normal;
  position: absolute;
  left: 0; top: calc(100% + 2px);
}
.rail-role { font-size: 13px; color: var(--muted); white-space: nowrap; padding-top: 8px; }

/* Hover states */
.rail-stop.is-hovered .rail-company { transform: translateX(8px); color: var(--ink); }
.rail-stop.is-hovered .rail-note { opacity: 1; transform: translateY(0); pointer-events: auto; }
.rail-stop.is-dim { opacity: 0.3; }

/* ============================================
   13. FIND ME ON
   ============================================ */
.findme { padding-top: 72px; }
.findme-eyebrow { font-size: 17px; color: var(--faint); margin-bottom: 18px; }
.findme-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.social-card {
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  background: var(--panel); color: var(--ink); padding: 30px 32px;
  min-height: 220px;
  transition: background 0.25s ease, color 0.25s ease;
}
.social-card-top { display: flex; flex-direction: column; gap: 20px; }
.social-badge-row { display: flex; align-items: center; gap: 8px; }
.social-badge {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--ink); color: #fff;
  font-size: 9px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.25s ease, color 0.25s ease;
}
.social-platform { font-size: 14px; font-weight: 400; }
.social-headline { font-size: 22px; font-weight: 400; line-height: 1.35; letter-spacing: -0.3px; max-width: 400px; }
.social-cta {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px;
}
.social-cta-arrow-wrap { display: inline-flex; overflow: hidden; }

/* Hover flood */
.social-card--linkedin { --brand-card: #0077b5; }
.social-card--behance  { --brand-card: #0057ff; }
.social-card:hover { background: var(--brand-card); color: #fff; }
.social-card:hover .social-badge { background: #fff; color: var(--brand-card); }
.social-card:hover .social-cta svg path { stroke: #fff; }

/* ============================================
   14. CONTACT
   ============================================ */
.contact {
  margin-top: 130px;
  width: 100vw; margin-left: calc(50% - 50vw);
  background: var(--panel-dark); color: #fff;
  padding: 0;
}
.contact-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 96px 40px 88px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
  gap: clamp(48px, 6vw, 96px);
  align-items: start;
}
.contact-heading {
  font-size: clamp(40px, 5.4vw, 72px);
  font-weight: 500; line-height: 1.02; letter-spacing: -2px;
  margin-bottom: 20px;
}
.accent-dot { color: var(--brand); }
.contact-lede {
  font-size: 18px; line-height: 1.6;
  color: rgba(255,255,255,0.62); max-width: 440px;
  margin-bottom: 48px;
}
.contact-rows { display: flex; flex-direction: column; gap: 2px; max-width: 440px; }
.contact-row {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 0; border-top: 1px solid rgba(255,255,255,0.14);
  color: #fff;
  transition: color 0.3s ease;
}
.contact-row:last-child { border-bottom: 1px solid rgba(255,255,255,0.14); }
.contact-row:hover { color: var(--brand); }
.contact-row:hover .contact-row-arrow { transform: translateX(8px); }
.contact-row-left { display: flex; flex-direction: column; gap: 4px; }
.contact-row-label {
  font-size: 12px; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(255,255,255,0.45);
}
.contact-row-value { font-size: 19px; font-weight: 500; }
.contact-row-arrow { transition: transform 0.35s var(--liquid-ease); }

/* Contact card */
.contact-right {}
.contact-card {
  background: #f7f5f0; color: var(--ink);
  border-radius: 14px 0 18px 18px;
  padding: 30px 24px 34px;
  position: relative;
  box-shadow: 0 30px 70px -30px rgba(0,0,0,0.7);
}
.contact-card::before {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 36px; height: 36px;
  background: linear-gradient(225deg, var(--panel-dark) 0 50%, #e3ded3 50%, #d3cdc0 100%);
  border-radius: 0;
}
.contact-card-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 20px;
}
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.form-field { display: flex; flex-direction: column; gap: 4px; }
.form-label { font-size: 12px; font-weight: 500; color: var(--muted); }
.form-input {
  width: 100%; padding: 12px 14px;
  font-family: 'Outfit', sans-serif; font-size: 15px; color: var(--ink);
  background: #fff; border: 1px solid var(--border-medium); border-radius: 10px;
  outline: none; transition: border-color 0.2s ease;
}
.form-input:focus { border-color: var(--ink); }
.form-textarea { resize: vertical; min-height: 96px; }
.form-submit {
  width: 100%; padding: 14px;
  background: var(--panel-dark); color: #fff;
  border: none; border-radius: 10px;
  font-family: 'Outfit', sans-serif; font-size: 15px; font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
}
.form-submit:hover { background: var(--brand); }
.form-note { font-size: 13px; color: var(--muted); margin-top: 4px; }
.form-note.is-sent { color: #16a34a; }
.form-note.is-error { color: var(--brand); }

/* ============================================
   15. FOOTER (city skyline)
   ============================================ */
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes loc-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.5); }
  50%       { box-shadow: 0 0 0 5px rgba(34,197,94,0); }
}

.site-footer {
  position: relative;
  background: #1a1035;
  color: rgba(255,255,255,0.75);
  overflow: hidden;
  min-height: 480px;
}

/* Inline SVG skyline */
.footer-skyline {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 300px;
  pointer-events: none;
}

/* Billboard */
.footer-billboard {
  position: absolute;
  bottom: 38px; right: 40px;
  z-index: 2;
  width: 224px;
  background: #08061a;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 6px 28px rgba(0,0,0,0.55);
}
.fb-hdr {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 9px; font-weight: 700; letter-spacing: 0.14em;
  color: rgba(255,255,255,0.38);
}
.fb-main { padding: 12px 14px 10px; }
.fb-welcome {
  font-size: 9px; letter-spacing: 0.24em; text-transform: uppercase;
  color: rgba(255,255,255,0.48); margin: 0 0 4px;
}
.fb-city {
  font-size: 30px; font-weight: 800; letter-spacing: -0.5px;
  color: #fff; line-height: 1.05; margin: 0;
}
.fb-city-ar {
  font-size: 16px; color: var(--brand); margin: 4px 0 0; letter-spacing: 0.04em;
}
.fb-marquee {
  background: var(--brand);
  overflow: hidden;
  height: 22px;
  display: flex; align-items: center;
}
.fb-marquee span {
  display: block;
  white-space: nowrap;
  font-size: 8.5px; font-weight: 700; letter-spacing: 0.14em; color: #fff;
  animation: ticker-scroll 20s linear infinite;
  width: max-content;
  padding: 0 16px;
}

/* Navigation */
.footer-nav-wrap {
  position: relative; z-index: 1;
  max-width: 1280px; margin: 0 auto;
  padding: 52px 40px 310px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: start;
}
.footer-id { display: flex; flex-direction: column; gap: 18px; max-width: 320px; }
.footer-id-top { display: flex; align-items: center; gap: 12px; }
.footer-av {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--brand); overflow: hidden; flex-shrink: 0;
}
.footer-av-img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.footer-name { font-size: 15px; font-weight: 600; color: #fff; margin: 0; }
.footer-sub { font-size: 12px; color: rgba(255,255,255,0.5); margin: 2px 0 0; }
.footer-tagline {
  font-size: 15px; line-height: 1.65;
  color: rgba(255,255,255,0.6); margin: 0;
}
.footer-loc {
  display: flex; align-items: center; gap: 9px;
  font-size: 13px; color: rgba(255,255,255,0.5);
}
.footer-loc-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #22c55e; flex-shrink: 0;
  animation: loc-pulse 2.5s ease-in-out infinite;
}
.footer-time { color: rgba(255,255,255,0.72); font-weight: 500; }

.footer-cols { display: grid; grid-template-columns: repeat(3, 130px); gap: 36px; }
.footer-col { display: flex; flex-direction: column; gap: 14px; }
.footer-col-hd {
  font-size: 10px; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: rgba(255,255,255,0.28); margin: 0 0 4px;
}
.footer-col-lnk {
  font-size: 15px; color: rgba(255,255,255,0.65);
  transition: color 0.2s ease;
}
.footer-col-lnk:hover { color: #fff; }

.footer-base {
  position: relative; z-index: 1;
  text-align: center;
  padding: 12px 40px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.2); margin: 0; }

/* ============================================
   16. FLOATING CHAT WIDGET
   ============================================ */
.chat-widget {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

/* FAB button */
.chat-fab {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(17,17,17,0.28);
  transition: background 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}
.chat-fab:hover { background: var(--brand); transform: scale(1.06); }
.chat-fab-icon { pointer-events: none; }
.chat-fab-icon--close { display: none; }
.chat-widget.is-open .chat-fab-icon--open  { display: none; }
.chat-widget.is-open .chat-fab-icon--close { display: block; }
.chat-widget.is-open .chat-fab { background: var(--brand); }

/* Panel */
.chat-panel {
  background: #fff;
  border: 1px solid var(--border-medium);
  border-radius: 16px;
  width: 300px;
  box-shadow: 0 8px 40px -8px rgba(17,17,17,0.24);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.96);
  transform-origin: bottom right;
  transition:
    opacity 0.25s ease,
    transform 0.3s var(--liquid-ease),
    visibility 0s linear 0.25s;
}
.chat-widget.is-open .chat-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  transition:
    opacity 0.25s ease,
    transform 0.3s var(--liquid-ease),
    visibility 0s;
}

.chat-panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 16px 14px;
  border-bottom: 1px solid var(--border-light);
  background: var(--panel);
}
.chat-panel-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--brand);
  overflow: hidden;
  flex-shrink: 0;
}
.chat-panel-avatar-img {
  width: 100%; height: 100%;
  object-fit: cover; border-radius: 50%;
}
.chat-panel-identity { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.chat-panel-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.chat-panel-role { font-size: 11px; color: var(--muted); }
.chat-panel-close {
  width: 28px; height: 28px; border: none; background: transparent;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--muted);
  transition: background 0.2s ease;
}
.chat-panel-close:hover { background: var(--border-light); color: var(--ink); }

.chat-panel-body {
  padding: 16px 16px 12px;
}
.chat-bubble {
  background: var(--panel);
  padding: 12px 14px;
  border-radius: 4px 16px 16px 16px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--body-text);
  margin: 0;
}

.chat-panel-prompts {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0 12px 16px;
}
.chat-prompt {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  padding: 10px 12px;
  border-radius: 8px;
  display: block;
  transition: background 0.15s ease;
}
.chat-prompt:hover { background: var(--hover-wash); }

/* ============================================
   16b. SCROLL REVEALS
   ============================================ */
/* No CSS pre-hiding — fill:backwards handles it */

/* ============================================
   17. DATA REVEAL ANIMATIONS (attached via JS)
   ============================================ */
[data-deck-zoom] {
  will-change: transform;
}

/* ============================================
   18. MOBILE (<= 860px) — MUST BE LAST
   ============================================ */
@media (max-width: 860px) {
  /* Page shell */
  .page-shell { padding: 0 20px 64px 20px; }

  /* Header */
  .site-header.is-floating .header-bar {
    max-width: calc(100% - 24px);
    margin-top: 10px;
    padding: 0 18px;
  }
  .header-tabs { display: none; }
  .header-menu { display: flex; align-items: center; }
  .nav-pill--resume { display: none; }

  /* Hero */
  .hero { padding: 32px 0 48px; min-height: 0; grid-template-columns: 1fr; }
  .char-area { width: 100%; max-width: 280px; height: 300px; margin: 0 auto; order: -1; }
  .hero-greeting-block { height: clamp(40px, 12vw, 72px); margin-bottom: 20px; }
  .hero-greeting-word { font-size: clamp(40px, 11vw, 72px); letter-spacing: -2px; }
  .hero-title { margin-bottom: 28px; }
  .hero-actions { width: 100%; gap: 12px; flex-wrap: wrap; }
  .btn-primary, .btn-secondary { flex: 1 1 160px; justify-content: center; }

  /* Cred */
  .cred { margin-top: 16px; padding: 30px 0 24px;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
  }
  .cred-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 0;
    background: linear-gradient(to right,
      transparent calc(50% - 0.5px),
      var(--border-light) calc(50% - 0.5px),
      var(--border-light) calc(50% + 0.5px),
      transparent calc(50% + 0.5px)
    );
  }
  .cred-item + .cred-item { border-left: 0; padding-left: 0; }
  .cred-item:nth-child(odd)  { padding-right: 18px; }
  .cred-item:nth-child(even) { padding-left: 18px; }
  .cred-item:nth-child(even) .cred-correction { left: 20px; }
  .cred-value { font-size: 19px; }

  /* Deck — stack slides vertically on mobile */
  .deck-stage { height: auto; overflow: visible; }
  .cs-slide {
    position: relative; inset: auto;
    height: auto;
    opacity: 1 !important; visibility: visible !important;
  }
  .cs-slide + .cs-slide { border-top: 1px solid rgba(17,17,17,.08); }
  .deck-content { position: static; }
  .cs-slide [data-deck-zoom] { transform: none !important; clip-path: none !important; will-change: auto; }
  .deck-bars { display: none; }

  /* wcard mobile */
  .wcard-wrap {
    height: auto; padding: 56px 24px 60px;
    grid-template-columns: 1fr;
  }
  .wcard-right { margin-top: 34px; }
  .wcard-pinboard { width: 100%; max-width: 320px; margin: 0 auto; }
  .wcard-hang { transform: none; transform-origin: center; animation: none; }
  .wcard-pin, .wcard-doodle { display: none; }
  .wcard-frame { box-shadow: 0 1px 2px rgba(17,17,17,.05), 0 12px 28px -14px rgba(17,17,17,.22); }

  /* Hero */
  .hero { padding: 40px 0 48px; min-height: 0; grid-template-columns: 1fr; }
  .char-area { width: 300px; height: 360px; }
  .hero-title { letter-spacing: -1px; }

  /* Testimonials */
  .testimonials { padding: 64px 0; margin-top: 40px; }
  .testimonials-grid { grid-template-columns: 1fr; gap: 2px; }
  .testimonials-heading { font-size: clamp(26px, 7vw, 40px); letter-spacing: -0.5px; }
  .tcard-body { font-size: 16px; }

  /* About */
  .about-section { padding-top: 56px; }
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .about-avatar { justify-content: flex-start; }
  .about-avatar-circle { width: 100px; height: 100px; font-size: 26px; }
  .about-portrait { justify-content: flex-start; }
  .about-portrait-frame { width: 160px; }
  .rail-hint { display: none; }
  .rail { padding-left: 28px; }
  .rail-stop { grid-template-columns: 1fr; gap: 2px; padding: 20px 0; }
  .rail-stop::before { left: -24px; top: 28px; width: 8px; height: 8px; }
  .rail-role { display: block; }
  .rail-company { font-size: 20px; transform: none !important; }
  .rail-note { position: static; opacity: 1; transform: none !important; width: auto; max-width: 100%; pointer-events: auto; margin-top: 4px; }
  .rail-stop.is-dim { opacity: 1; }

  /* Find me on */
  .findme-grid { grid-template-columns: 1fr; gap: 16px; }
  .social-card { padding: 26px 24px; min-height: 0; }

  /* Contact */
  .contact-inner {
    grid-template-columns: 1fr;
    padding: 56px 24px 64px;
  }
  .form-input { font-size: 16px; }
  .contact-card { border-radius: 14px; }
  .contact-card::before { display: none; }

  /* Footer */
  .footer-nav-wrap { grid-template-columns: 1fr; padding: 40px 24px 280px; gap: 32px; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .footer-col-lnk { font-size: 14px; }
  .footer-billboard { right: 16px; bottom: 28px; width: 188px; }
  .footer-base { padding: 12px 24px; }

  /* Chat widget */
  .chat-widget { bottom: 20px; right: 16px; }
  .chat-panel { width: calc(100vw - 40px); max-width: 300px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .wcard-hang { animation: none; }
  .hero-role-line { will-change: auto; }
  .btn-primary:hover .btn-arrow,
  .wcard-cta:hover .wcard-cta-arrow,
  .nav-pill--resume:hover .pill-icon { animation: none; }
  .deck-stage { height: auto; overflow: visible; }
  .cs-slide { position: relative; inset: auto; height: 100svh; opacity: 1 !important; visibility: visible !important; }
  .deck-content { position: static; }
  .deck-bars { display: none; }
  [data-deck-zoom] { transform: none !important; }
}
