/* ============================== SOBRE MIM ============================== */

/* ============================== HERO ============================== */
.ab-hero {
  padding: clamp(48px, 8vw, 96px) 0 clamp(48px, 6vw, 96px);
  background: var(--paper);
  overflow: hidden;
}
.ab-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(40px, 8vw, 120px);
  align-items: center;
}
.ab-hero__text {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.ab-hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}
.ab-hero__sub {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.55;
  color: var(--ink);
  max-width: 520px;
  margin: 0;
  opacity: 0.8;
}

@media (max-width: 880px) {
  .ab-hero__inner { grid-template-columns: 1fr; gap: 64px; }
}

/* ============================== POLAROID ============================== */
.polaroid {
  position: relative;
  display: block;
  margin: 0 auto;
  padding: 16px 16px 56px;
  width: 100%;
  max-width: 380px;
  background: #fffdf6;
  box-shadow:
    0 1px 0 rgba(0, 0, 0, 0.04),
    0 2px 4px rgba(36, 41, 51, 0.06),
    0 18px 36px -18px rgba(36, 41, 51, 0.25),
    0 40px 80px -40px rgba(36, 41, 51, 0.35);
  transform: rotate(-3deg);
  transition: transform 0.8s cubic-bezier(.2,.7,.2,1), box-shadow 0.6s ease;
  will-change: transform;
}
.polaroid:hover {
  transform: rotate(-1.5deg) translateY(-6px) scale(1.02);
  box-shadow:
    0 1px 0 rgba(0, 0, 0, 0.04),
    0 2px 4px rgba(36, 41, 51, 0.06),
    0 24px 50px -18px rgba(36, 41, 51, 0.3),
    0 60px 100px -40px rgba(36, 41, 51, 0.4);
}

/* Subtle paper grain texture */
.polaroid::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 10%, rgba(0,0,0,0.018) 0, transparent 35%),
    radial-gradient(circle at 80% 75%, rgba(0,0,0,0.022) 0, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.05) 0, transparent 60%);
  mix-blend-mode: multiply;
}

/* Slight yellow paper tint on edges */
.polaroid::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg,
    rgba(220, 200, 160, 0.08) 0%,
    transparent 30%,
    transparent 70%,
    rgba(180, 160, 130, 0.08) 100%);
  mix-blend-mode: multiply;
}

.polaroid__inner {
  position: relative;
  z-index: 1;
}
.polaroid__photo {
  margin: 0;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--paper-alt);
  position: relative;
  /* Inset shadow to make the photo look like it's slotted in */
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.04), inset 0 2px 6px rgba(0,0,0,0.06);
}
.polaroid__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  filter: grayscale(0.15) contrast(0.97) sepia(0.05);
  transition: filter 1s ease, transform 1.4s cubic-bezier(.2,.7,.2,1);
}
.polaroid:hover .polaroid__photo img {
  filter: grayscale(0) contrast(1) sepia(0);
  transform: scale(1.04);
}

.polaroid__caption {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: 'Courier New', 'Courier', monospace;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(36, 41, 51, 0.7);
  transform: rotate(-0.5deg);
}

/* Washi tape */
.polaroid__tape {
  position: absolute;
  width: 110px;
  height: 30px;
  background: rgba(218, 211, 176, 0.75);
  background-image:
    repeating-linear-gradient(45deg,
      rgba(255,255,255,0.15) 0px,
      rgba(255,255,255,0.15) 2px,
      transparent 2px,
      transparent 6px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  z-index: 2;
}
.polaroid__tape::before,
.polaroid__tape::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 6px;
  background-image: radial-gradient(circle at 0 50%, transparent 3px, rgba(218, 211, 176, 0.75) 3px);
  background-size: 6px 8px;
  background-repeat: repeat-y;
}
.polaroid__tape::before { left: -6px; transform: scaleX(-1); }
.polaroid__tape::after { right: -6px; }
.polaroid__tape--tl {
  top: -12px;
  left: -22px;
  transform: rotate(-22deg);
}
.polaroid__tape--br {
  bottom: 28px;
  right: -22px;
  transform: rotate(28deg);
}

/* ============================== STORY ============================== */
.ab-story {
  padding: clamp(48px, 6vw, 96px) 0;
  background: var(--paper);
}
.ab-story__grid {
  display: grid;
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
  max-width: 1080px;
  margin: 0 auto;
}
.ab-story__aside {
  position: sticky;
  top: 100px;
}
.ab-story__body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(16px, 1.15vw, 18px);
  line-height: 1.65;
  color: var(--ink);
  max-width: 680px;
}
.ab-story__lead {
  font-size: clamp(20px, 1.6vw, 24px);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0 0 8px;
}
.ab-story__body p { margin: 0; opacity: 0.88; }
.ab-story__body strong { font-weight: 700; opacity: 1; }

@media (max-width: 760px) {
  .ab-story__grid { grid-template-columns: 1fr; gap: 24px; }
  .ab-story__aside { position: static; }
}

/* ============================== STATS ============================== */
.ab-stats {
  padding: clamp(48px, 6vw, 80px) 0;
  background: var(--paper-alt);
}
.ab-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 3vw, 40px);
}
.ab-stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 0;
  border-top: 2px solid var(--ink);
}
.ab-stat__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(48px, 5.5vw, 80px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.ab-stat__label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
  opacity: 0.75;
  line-height: 1.3;
}

@media (max-width: 760px) {
  .ab-stats__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================== EXPERIENCE ============================== */
.ab-exp {
  padding: clamp(64px, 8vw, 120px) 0;
  background: var(--paper);
}
.ab-exp__head {
  margin-bottom: clamp(48px, 6vw, 80px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 720px;
}
.ab-exp__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}

.ab-exp__list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 1000px;
}
.ab-exp__item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: clamp(24px, 4vw, 64px);
  padding: clamp(32px, 4vw, 48px) 0;
  border-top: 1px solid rgba(36, 41, 51, 0.12);
}
.ab-exp__item:last-child { border-bottom: 1px solid rgba(36, 41, 51, 0.12); }
.ab-exp__year {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 6px;
}
.ab-exp__body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ab-exp__role {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 2.5vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}
.ab-exp__company {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  margin: 0;
  opacity: 0.7;
}
.ab-exp__desc {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  margin: 8px 0 0;
  opacity: 0.85;
  max-width: 620px;
}
.ab-exp__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.ab-exp__chips li {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(36, 41, 51, 0.06);
  color: var(--ink);
  line-height: 1.2;
}

.ab-exp__company-meta-inline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink);
  opacity: 0.6;
  margin: 4px 0 0;
}

/* ----- LinkedIn-style grouped company ----- */
.ab-exp__company-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 4px;
}
.ab-exp__company-logo {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--paper-alt);
  border: 1px solid rgba(36, 41, 51, 0.1);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.04em;
}
.ab-exp__company-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 4px;
}
.ab-exp__company-meta {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink);
  opacity: 0.65;
  margin: 0;
}

/* Nested roles — vertical line connecting dots */
.ab-exp__roles {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  position: relative;
  padding-left: 28px;
}
.ab-exp__roles::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: rgba(36, 41, 51, 0.15);
  border-radius: 2px;
}
.ab-exp__sub {
  position: relative;
  padding: 16px 0 20px;
}
.ab-exp__sub + .ab-exp__sub {
  border-top: 1px dashed rgba(36, 41, 51, 0.12);
}
.ab-exp__sub-dot {
  position: absolute;
  left: -22px;
  top: 24px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--paper);
}
.ab-exp__sub-body { display: flex; flex-direction: column; gap: 4px; }
.ab-exp__sub-role {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(18px, 1.6vw, 20px);
  line-height: 1.25;
  color: var(--ink);
  margin: 0;
}
.ab-exp__sub-type {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  opacity: 0.75;
  margin: 0;
}
.ab-exp__sub-period {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 13px;
  color: var(--ink);
  opacity: 0.6;
  margin: 0 0 6px;
}
.ab-exp__sub-desc {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  margin: 0;
  opacity: 0.85;
  max-width: 620px;
}
.ab-exp__sub-skills {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink);
  opacity: 0.78;
  margin: 12px 0 0;
  max-width: 620px;
}
.ab-exp__sub-skills strong {
  font-weight: 700;
  color: var(--ink);
  opacity: 1;
}

@media (max-width: 700px) {
  .ab-exp__item { grid-template-columns: 1fr; gap: 12px; }
  .ab-exp__company-logo { width: 48px; height: 48px; font-size: 13px; }
}

/* ============================== TOOLBOX ============================== */
.ab-tools {
  padding: clamp(64px, 8vw, 120px) 0;
  background: var(--paper-alt);
}
.ab-tools__head {
  margin-bottom: clamp(48px, 6vw, 80px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 720px;
}
.ab-tools__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}
.ab-tools__groups {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 3vw, 40px);
}
.ab-tools__group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ab-tools__group h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  margin: 0 0 4px;
  color: var(--ink);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink);
}
.ab-tools__group ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ab-tools__group li {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  color: var(--ink);
  opacity: 0.8;
  transition: opacity .25s ease, transform .25s ease, color .25s ease;
  padding-left: 16px;
  position: relative;
}
.ab-tools__group li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
  transform: translateY(-50%) scale(0.6);
  transition: transform .25s ease;
}
.ab-tools__group li:hover {
  opacity: 1;
  color: var(--accent);
  transform: translateX(3px);
}
.ab-tools__group li:hover::before { transform: translateY(-50%) scale(1); }

@media (max-width: 880px) { .ab-tools__groups { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .ab-tools__groups { grid-template-columns: 1fr; } }
