/* ===== ABOUT (Variant A) ===== */
.aboutA { padding-top: 0; }

.aboutA-layout {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 40px;
  align-items: start;
}

.aboutA-left {
  position: sticky;
  top: var(--sticky-top);
  align-self: start;
}

.aboutA-photo {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 26px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.aboutA-meta { margin-top: 16px; }

.aboutA-kicker {
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 10px;
}

.aboutA-name {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--text-h);
  letter-spacing: -0.9px;
}

.aboutA-role {
  margin-top: 6px;
  font-weight: 650;
  color: var(--text-h);
  opacity: 0.82;
}

.aboutA-lead {
  margin-top: 10px;
  font-weight: 600;
  opacity: 0.92;
}

.aboutA-contactBtns {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  align-items: center;
}

/* contact icon buttons (NOT header) */
.icon-btn {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: none;
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.18s, box-shadow 0.18s, filter 0.18s;
  text-decoration: none;
  position: relative;
}

.icon-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -18px rgba(0,0,0,0.35);
  filter: brightness(1.02);
}

.icon-btn.mail { color: var(--text-h); }
.icon-btn.google { color: #D85140; }
.icon-btn.djinni { color: #4C58F6; }
.icon-btn.linkedin { color: #0a66c2; }
.icon-btn.telegram { color: #229ed9; }

.icon-btn i { font-size: 18px; color: currentColor; opacity: 0.95; }

.icon-btn:hover::after,
.icon-btn:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, -110%);
}

.icon-btn:hover::before,
.icon-btn:focus-visible::before { opacity: 1; }

.icon-btn:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.45);
  outline-offset: 2px;
}

.aboutA-sideNote {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.aboutA-sideNote .k {
  font-weight: 900;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
}

.aboutA-sideNote .v {
  margin-top: 6px;
  font-weight: 600;
  color: var(--text-h);
  opacity: 0.85;
}

.aboutA-right {
  min-width: 0;
  padding-top: var(--sticky-top);
}

.aboutA-flow {
  max-width: 780px;
  padding-top: 6px;
}

.aboutA-p {
  font-size: 1.02rem;
  font-weight: 400;
  opacity: 1;
  color: var(--text-p);
  line-height: 1.75;
  margin: 0 0 16px;
}

.aboutA-quote {
  position: relative;
  padding: 18px;
  border-radius: 22px;
  background: var(--glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  margin: 18px 0 22px;
}

.aboutA-quote .mark {
  position: absolute;
  top: -10px;
  left: 16px;
  font-weight: 900;
  font-size: 3rem;
  color: rgba(37, 99, 235, 0.35);
  line-height: 1;
}

.aboutA-quote .text {
  font-weight: 600;
  color: var(--text-h);
  opacity: 0.9;
  letter-spacing: -0.2px;
  line-height: 1.65;
}

.aboutA-rule {
  height: 1px;
  width: 100%;
  background: linear-gradient(to right, transparent, var(--rule), transparent);
  margin: 18px 0;
}

.aboutA-h2 {
  font-size: 1.06rem;
  font-weight: 900;
  color: var(--text-h);
  letter-spacing: -0.5px;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sec-ico {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--muted-surface);
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: 0.95rem;
  flex: 0 0 auto;
}

.mini-ico {
  width: 22px;
  height: 22px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--muted-surface);
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: 0.85rem;
  flex: 0 0 auto;
}

.aboutA-mini { padding: 10px 0; }

.aboutA-mini .t {
  font-weight: 700;
  color: var(--text-h);
  letter-spacing: -0.2px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.aboutA-mini .d {
  margin-top: 8px;
  font-weight: 500;
  opacity: 1;
  color: var(--text-p);
  line-height: 1.75;
}

/* ===== Paints (lightweight table) ===== */
.paintTable {
  border-radius: 18px;
  overflow: hidden;
  background: var(--glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.paintRow {
  padding: 14px 16px;
}

.paintRow + .paintRow {
  border-top: 1px solid var(--rule);
}

.paintTitle {
  font-weight: 800;
  color: var(--text-h);
  letter-spacing: -0.01em;
  margin: 0 0 4px 0;
}

.paintDesc {
  margin: 0;
  color: var(--text-p);
  opacity: 1;
  line-height: 1.75;
}

.aboutA-def {
  margin-top: 12px;
  padding: 18px;
  border-radius: 22px;
  background: var(--glass);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.aboutA-def .row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--rule);
}
.aboutA-def .row:last-child { border-bottom: none; }

.aboutA-def .k {
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
}

.aboutA-def .v {
  font-weight: 500;
  opacity: 0.9;
  line-height: 1.7;
}

.aboutA-tail {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  font-weight: 700;
}

.aboutA-tail .hint { opacity: 0.65; }
.aboutA-tail a { color: var(--text-h); text-decoration: none; }
.aboutA-tail a:hover { text-decoration: underline; }
.aboutA-tail .sep { opacity: 0.4; }

/* ========== CHROMA TABLE ========== */
.chromaTable {
  max-width: 920px;
  margin: 0 auto;
}

.chromaTable-head { margin-bottom: 14px; }

.chromaTable-title {
  margin: 0 0 6px 0;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.chromaTable-subtitle {
  margin: 0;
  max-width: 72ch;
  font-size: 1.02rem;
  line-height: 1.55;
  opacity: 0.80;
}

.chromaTable-panel {
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.chromaTable-row {
  display: grid;
  grid-template-columns: 76px 1fr;
  align-items: center;
  min-height: 74px;
}

.chromaTable-row + .chromaTable-row {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.chromaTable-letter {
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.02em;
  border-right: 1px solid rgba(0, 0, 0, 0.06);
}

.chromaTable-cell {
  padding: 14px 16px;
  min-width: 0;
}

.chromaTable-name {
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 4px 0;
  font-weight: 800;
}

.chromaTable-desc {
  font-size: 1.02rem;
  line-height: 1.55;
  opacity: 0.82;
  margin: 0;
}

.chromaTable-row.is-c .chromaTable-letter { color: rgba(70, 120, 255, 0.80); background: rgba(70, 120, 255, 0.06); }
.chromaTable-row.is-h .chromaTable-letter { color: rgba(40, 170, 165, 0.80); background: rgba(40, 170, 165, 0.06); }
.chromaTable-row.is-r .chromaTable-letter { color: rgba(210, 90, 130, 0.80); background: rgba(210, 90, 130, 0.06); }
.chromaTable-row.is-o .chromaTable-letter { color: rgba(70, 150, 210, 0.80); background: rgba(70, 150, 210, 0.06); }
.chromaTable-row.is-m .chromaTable-letter { color: rgba(70, 170, 120, 0.80); background: rgba(70, 170, 120, 0.06); }
.chromaTable-row.is-a .chromaTable-letter { color: rgba(150, 95, 215, 0.80); background: rgba(150, 95, 215, 0.06); }

.chromaTable-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

@media (max-width: 375px) {
  .chromaTable { padding: 18px 12px; }
  .chromaTable-row { grid-template-columns: 64px 1fr; min-height: 70px; }
  .chromaTable-letter { font-size: 30px; }
  .chromaTable-cell { padding: 12px 12px; }
  .chromaTable-title { font-size: 20px; }
}

/* ===== About responsive ===== */
@media (max-width: 1024px) {
  .aboutA-layout {
    grid-template-columns: 360px 1fr;
    gap: 28px;
  }
}

@media (max-width: 768px) {
  .aboutA-layout { grid-template-columns: 1fr; row-gap: var(--space-4); gap: 20px; }
  .aboutA-left { position: static; padding-top: var(--sticky-top); }
  .aboutA-right { position: static; padding-top: 0; }
  .aboutA-photo { height: 360px; border-radius: 18px; }
  .aboutA-flow { max-width: 100%; }
  .aboutA-def .row { grid-template-columns: 1fr; gap: 6px; }
}

@media (max-width: 375px) {
  .aboutA-photo { height: 320px; }
  .icon-btn { width: 38px; height: 38px; }
}

/* A) Promote key panels to their own layer (helps Chrome repaint) */
.paintTable,
.chromaTable-panel,
.aboutA-def {
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  contain: paint;
}

/* B) On coarse pointer devices, avoid backdrop-filter (most common trigger) */
@media (hover: none), (pointer: coarse) {
  .paintTable,
  .chromaTable-panel,
  .aboutA-def {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--glass);
    background: color-mix(in srgb, var(--card) 86%, transparent);
  }
}
