/* ═════════════════════════════════════════
   ABOUT: hero + picha ya miduara mitatu, sehemu nyepesi/giza,
   What I do, Approach, Journey, Tools, Independent projects
   Inategemea base.css + layout.css + home.css + pages.css
   ═════════════════════════════════════════ */

/* ───── sehemu zinazopishana kwa pembe za mviringo ───── */
.light {
  --ink: #0b0b0c;
  --ink-muted: #5e5a54;
  --ink-line: rgba(11, 11, 12, 0.14);
  position: relative;
  z-index: 1;
  margin-top: -32px;
  border-radius: 32px 32px 0 0;
  background: #f2efe9;
  color: var(--ink);
  padding-bottom: calc(clamp(88px, 12vw, 160px) + 32px);
}
.light .eyebrow,
.light .section-lede {
  color: var(--ink-muted);
}

.dark-lift {
  z-index: 1;
  margin-top: -32px;
  border-radius: 32px 32px 0 0;
  padding-bottom: calc(clamp(88px, 12vw, 160px) + 32px);
}

/* ═════════ HERO ═════════ */
.about-hero {
  display: grid;
  align-items: center;
  gap: 56px;
}
@media (min-width: 1000px) {
  .about-hero {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
  }
}
.about-hero__copy {
  min-width: 0;
}
.about-hero .page-hero__title {
  max-width: 12ch;
  font-size: clamp(32px, 5.2vw, 78px);
}
.about-hero__for {
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* picha ya miduara mitatu */
.about-hero__visual {
  display: grid;
  place-items: center;
  min-width: 0;
}
.trio {
  width: min(100%, 540px);
  height: auto;
  overflow: visible;
}

.orb {
  transform-box: fill-box;
  transform-origin: center;
  animation: orb-in 1.4s var(--ease) both;
  animation-delay: calc(0.3s + var(--o, 0) * 0.22s);
}
@keyframes orb-in {
  from {
    opacity: 0;
    transform: scale(0.55);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.orb circle {
  transform-box: fill-box;
  transform-origin: center;
  fill: rgba(242, 239, 233, 0.045);
  stroke: rgba(242, 239, 233, 0.3);
  stroke-width: 1.2;
  animation: orb-float 9s ease-in-out infinite alternate;
  animation-delay: calc(var(--o, 0) * -3s);
}
.orb--b circle {
  stroke: var(--accent);
  fill: color-mix(in srgb, var(--accent) 7%, transparent);
}
@keyframes orb-float {
  from {
    transform: translate(-6px, 4px);
  }
  to {
    transform: translate(6px, -4px);
  }
}

.trio__glow {
  fill: url(#trio-glow);
  animation: fade-in 1.4s var(--ease) 1.6s both;
}
.trio__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  fill: var(--muted);
  animation: fade-in 1s var(--ease) both;
  animation-delay: calc(1.3s + var(--o, 0) * 0.12s);
}
.trio__core {
  font: 600 14px var(--font-display);
  letter-spacing: -0.02em;
  fill: var(--fg);
  text-anchor: middle;
  animation: fade-in 1s var(--ease) 1.9s both;
}
.trio__core tspan {
  fill: var(--accent);
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ═════════ WHAT I DO (light) ═════════ */
.what {
  display: grid;
  border-top: 1px solid var(--ink-line);
}
@media (min-width: 760px) {
  .what {
    grid-template-columns: repeat(2, 1fr);
  }
}

.what__item {
  position: relative;
  padding: clamp(28px, 4vw, 44px) 0;
  border-bottom: 1px solid var(--ink-line);
}
@media (min-width: 760px) {
  .what__item:nth-child(odd) {
    padding-right: clamp(24px, 4vw, 56px);
    border-right: 1px solid var(--ink-line);
  }
  .what__item:nth-child(even) {
    padding-left: clamp(24px, 4vw, 56px);
  }
}
.what__item::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s var(--ease);
}
.what__item:hover::after {
  transform: scaleX(1);
}

.what__num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
}
.what__kind {
  display: block;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.what__item.what__item--supporting h3 {
  font-size: clamp(22px, 2.35vw, 31px);
}
.what__item h3 {
  margin-top: 16px;
  font-size: clamp(24px, 2.6vw, 36px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.what__desc {
  margin-top: 12px;
  max-width: 40ch;
  color: var(--ink-muted);
}
.what__item .tags {
  margin-top: 20px;
}
.section-more {
  margin-top: 48px;
}

/* ═════════ APPROACH (dark): hatua tatu ═════════ */
@media (min-width: 760px) {
  .steps--3 {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 900px) {
  .steps--3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}
.approach__more {
  margin-top: 56px;
}

/* ═════════ JOURNEY (light) ═════════ */
.journey {
  display: grid;
  gap: 48px;
}
@media (min-width: 960px) {
  .journey {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 80px;
    align-items: start;
  }
  .journey .section-head {
    position: sticky;
    top: 120px;
  }
}
.journey .section-head {
  margin-bottom: 0;
}

.tl {
  display: grid;
}
.tl__item {
  position: relative;
  padding: 0 0 clamp(36px, 5vw, 56px) 44px;
}
.tl__item:last-child {
  padding-bottom: 0;
}

/* mstari */
.tl__item::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 24px;
  bottom: -4px;
  width: 1px;
  background: var(--ink);
  transform-origin: top;
  transition: transform 1.2s var(--ease) 0.25s;
}
.tl__item:last-child::before {
  display: none;
}
.js .tl__item::before {
  transform: scaleY(0);
}
.js .tl__item.is-in::before {
  transform: scaleY(1);
}

/* nukta */
.tl__item::after {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  background: var(--ink);
  transition:
    background-color 0.6s var(--ease) 0.2s,
    box-shadow 0.6s var(--ease) 0.2s;
}
.tl__item:last-child::after {
  background: var(--accent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 30%, transparent);
}
.js .tl__item::after {
  background: #f2efe9;
}
.js .tl__item.is-in::after {
  background: var(--ink);
}
.js .tl__item:last-child::after {
  background: #f2efe9;
  box-shadow: none;
}
.js .tl__item:last-child.is-in::after {
  background: var(--accent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 30%, transparent);
}

.tl__step {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.tl__item h3 {
  margin-top: 8px;
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.tl__seen {
  margin-top: 14px;
  font-size: 14px;
  color: var(--ink-muted);
}
.tl__seen a {
  border-bottom: 1px solid currentColor;
  transition: color 0.3s;
}
.tl__seen a:hover {
  color: var(--ink);
}

/* ═════════ TOOLS (dark) ═════════ */
.stack-list {
  border-bottom: 1px solid var(--line);
}
.stack-row {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 28px 0;
}
@media (min-width: 760px) {
  .stack-row {
    grid-template-columns: 240px 1fr;
    gap: 32px;
    align-items: center;
  }
}
.stack-row::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: var(--line);
  transform-origin: left;
  transition: transform 1.4s var(--ease);
}
.js .stack-row::before {
  transform: scaleX(0);
}
.js .stack-row.is-in::before {
  transform: scaleX(1);
}

.stack-row dt {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: 14px;
}

/* ═════════ INDEPENDENT PROJECTS (light) ═════════ */
.indie {
  display: grid;
  gap: 16px;
}
@media (min-width: 760px) {
  .indie {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

.indie__card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--ink-line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.35);
  transition:
    transform 0.5s var(--ease),
    border-color 0.3s,
    background-color 0.3s;
}
.indie__card:hover {
  transform: translateY(-4px);
  border-color: var(--ink);
  background: #fff;
}
.indie__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.indie__title {
  font-family: var(--font-display);
  font-weight: var(--title-weight);
  letter-spacing: var(--title-tracking);
  line-height: 1.1;
  font-size: clamp(24px, 2.4vw, 32px);
}
.indie__desc {
  max-width: 44ch;
  color: var(--ink-muted);
}
.indie__card .link-arrow {
  margin-top: auto;
  align-self: flex-start;
}

/* ═════════ REDUCED MOTION ═════════ */
@media (prefers-reduced-motion: reduce) {
  .orb circle {
    animation: none;
  }
}
