/* ============================================================
   Edwin Awariyah — About page
   White, editorial, circuit-trace scroll story
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-soft: #fafafa;
  --surface: #f6f6f6;
  --border: #ebebeb;
  --border-strong: #e0e0e0;
  --text: #111111;
  --muted: #555555;
  --faint: #a8a8a8;
  --ink: #111111;

  --font-display: "Poppins", "Inter", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --gutter: clamp(24px, 5vw, 64px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #111;
  color: #fff;
  padding: 12px 18px;
  z-index: 999;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

a {
  color: inherit;
}

/* ---------- shared header (matches site) ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--gutter);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.headerStart {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}
.headerStartLink {
  text-decoration: none;
  color: var(--text);
}
.headerEnd {
  display: flex;
  gap: 28px;
}
.headerEndLinks {
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s ease;
}
.headerEndLinks:hover,
.headerEndLinks--active {
  color: var(--text);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--text);
}
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 70;
}
.overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}
.drawer {
  position: fixed;
  top: 0;
  right: -280px;
  width: 260px;
  height: 100%;
  background: #111;
  color: #fff;
  z-index: 80;
  transition: right 0.3s var(--ease);
  padding: 28px 24px;
}
.drawer.is-open {
  right: 0;
}
.drawer-header p {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #888;
  margin: 0 0 24px;
}
.drawer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.drawer a {
  text-decoration: none;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #555;
}
.drawer a.active .dot {
  background: #fff;
}
.drawer-footer {
  margin-top: 40px;
  font-size: 11px;
  color: #666;
}

@media (max-width: 720px) {
  .headerEnd {
    display: none;
  }
  .hamburger {
    display: flex;
  }
}

/* ---------- the continuous trace line ---------- */
.trace {
  position: absolute;
  top: 0;
  left: 22px;
  width: 4px;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}
#tracePath {
  fill: none;
  stroke: var(--border-strong);
  stroke-width: 2;
}
#tracePath.is-drawn {
  stroke: var(--text);
}

@media (max-width: 720px) {
  .trace {
    left: 14px;
  }
}

/* ---------- scene shell ---------- */
.scene {
  position: relative;
  z-index: 2;
  padding: clamp(90px, 14vh, 160px) var(--gutter);
  max-width: 1180px;
  margin: 0 auto;
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 20px;
}

.scene__head {
  max-width: 720px;
  margin-bottom: 64px;
}
.scene__title {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--text);
}

[data-reveal],
[data-word] {
  opacity: 0;
}

/* ---------- 1. hero ---------- */
.scene--hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding-top: clamp(70px, 12vh, 120px);
}
.scene__inner {
  width: 100%;
}
.hero__name {
  margin: 0 0 32px;
  font-size: clamp(3.2rem, 11vw, 8rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.03em;
}
.hero__line {
  display: block;
  overflow: hidden;
}
.hero__statement {
  max-width: 560px;
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--muted);
  font-weight: 300;
  margin: 0 0 56px;
}
.hero__mark svg {
  width: 200px;
  height: auto;
  max-width: 40vw;
}
.mark__trace {
  fill: none;
  stroke: var(--text);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mark__node {
  fill: var(--bg);
  stroke: var(--text);
  stroke-width: 2;
}

.scroll-cue {
  position: absolute;
  bottom: 40px;
  left: var(--gutter);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}
.scroll-cue__line {
  width: 1px;
  height: 34px;
  background: var(--border-strong);
  position: relative;
  overflow: hidden;
}
.scroll-cue__line::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--text);
  animation: cueDrop 1.8s ease-in-out infinite;
}
@keyframes cueDrop {
  0% {
    top: -100%;
  }
  60% {
    top: 100%;
  }
  100% {
    top: 100%;
  }
}

/* ---------- 2. origin ---------- */
.origin__rail {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 40px;
}
.origin__stop {
  position: relative;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.origin__stop:last-child {
  border-bottom: none;
}
.origin__node {
  position: absolute;
  left: -46px;
  top: 34px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--border-strong);
  transition:
    border-color 0.4s ease,
    background 0.4s ease,
    transform 0.4s var(--ease);
}
.origin__stop.is-lit .origin__node {
  border-color: var(--text);
  background: var(--text);
  transform: scale(1.15);
}
.origin__period {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 8px;
}
.origin__title {
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  font-weight: 700;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.origin__role {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 10px;
  font-weight: 500;
}
.origin__note {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--muted);
  font-weight: 300;
  max-width: 560px;
  margin: 0;
}

@media (max-width: 600px) {
  .origin__rail {
    padding-left: 28px;
  }
  .origin__node {
    left: -34px;
  }
}

/* ---------- 3. craft ---------- */
.craft__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.craft__card {
  background: var(--bg);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.craft__icon {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: var(--text);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.craft__card h3 {
  font-size: 16.5px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.005em;
}
.craft__card p {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--muted);
  font-weight: 300;
  margin: 0;
}

@media (max-width: 900px) {
  .craft__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .craft__grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- 4. impact ---------- */
.impact__list {
  display: flex;
  flex-direction: column;
}
.impact__row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 26px 8px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition:
    background 0.2s ease,
    padding-left 0.25s ease;
}
.impact__row:hover {
  background: var(--surface);
  padding-left: 18px;
}
.impact__row--static {
  cursor: default;
}
.impact__row--static:hover {
  padding-left: 8px;
  background: none;
}
.impact__stat {
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}
.impact__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.impact__title {
  font-size: 15.5px;
  font-weight: 600;
}
.impact__sub {
  font-size: 12.5px;
  color: var(--faint);
}
.impact__arrow {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  opacity: 0.4;
  transition:
    transform 0.25s var(--ease),
    opacity 0.2s ease;
}
.impact__row:hover .impact__arrow {
  opacity: 1;
  transform: translateX(4px);
}

@media (max-width: 640px) {
  .impact__row {
    grid-template-columns: 70px 1fr;
  }
  .impact__arrow {
    display: none;
  }
}

/* ---------- 5. record ---------- */
.record__tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--surface);
  border-radius: 100px;
  margin-bottom: 40px;
}
.record__tab {
  padding: 10px 18px;
  border-radius: 100px;
  border: none;
  background: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
}
.record__tab.is-active {
  background: #111;
  color: #fff;
}

.record__layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: start;
}

.record__list {
  display: flex;
  flex-direction: column;
}
.record__row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 17px 4px;
  cursor: pointer;
  font-family: inherit;
}
.record__row:hover {
  background: var(--surface);
}
.record__row-main {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.record__row-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}
.record__row.is-active .record__row-title {
  color: var(--text);
}
.record__row-period {
  font-size: 11.5px;
  color: var(--faint);
}
.record__row-role {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
  border: 1px solid var(--border);
  padding: 5px 10px;
  border-radius: 100px;
  white-space: nowrap;
}

.record__detail {
  position: sticky;
  top: 110px;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 34px;
  background: var(--bg-soft);
  min-height: 400px;
  transition: opacity 0.2s ease;
}
.record__detail.is-fading {
  opacity: 0;
}
.record__detail-progress {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--faint);
  margin-bottom: 18px;
}
.record__detail-nav {
  display: flex;
  gap: 8px;
}
.record__navbtn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.record__navbtn:disabled {
  opacity: 0.3;
  cursor: default;
}
.record__navbtn svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
}
.record__detail-period {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 10px;
}
.record__detail-type {
  display: inline-flex;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.record__detail-title {
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 6px;
}
.record__detail-sub {
  font-size: 12.5px;
  color: var(--faint);
  margin-bottom: 12px;
}
.record__detail-role {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 18px;
}
.record__detail-photo {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  margin-bottom: 20px;
}
.record__detail-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.record__detail-bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.record__detail-bullets li {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--muted);
  padding-left: 16px;
  position: relative;
}
.record__detail-bullets li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--faint);
}

@media (max-width: 900px) {
  .record__layout {
    grid-template-columns: 1fr;
  }
  .record__detail {
    position: static;
  }
}
@media (max-width: 600px) {
  .record__row-role {
    display: none;
  }
}

/* ---------- 6. closing ---------- */
.scene--close {
  text-align: center;
  padding-bottom: clamp(120px, 16vh, 200px);
}
.close__inner {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.close__ring {
  width: 84px;
  height: 84px;
  margin-bottom: 28px;
}
.close__ringtrack {
  fill: none;
  stroke: var(--border);
  stroke-width: 4;
}
.close__ringfill {
  fill: none;
  stroke: var(--text);
  stroke-width: 4;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: center;
  stroke-dasharray: 327;
  stroke-dashoffset: 327;
}
.close__check {
  fill: none;
  stroke: var(--text);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
}
.close__title {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin: 0 0 40px;
}
.close__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 14px;
  padding: 16px 28px;
  border-radius: 100px;
  text-decoration: none;
  transition:
    transform 0.25s var(--ease),
    opacity 0.2s ease;
  font-family: inherit;
}
.btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
}
.btn:hover {
  transform: translateY(-3px);
}
.btn--solid {
  background: #111;
  color: #fff;
}
.btn--solid:hover {
  opacity: 0.85;
}
.btn--ghost {
  background: transparent;
  color: #111;
  border: 1px solid var(--border-strong);
}
.btn--ghost:hover {
  border-color: #111;
}

.scene--hero .scene__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

/* .hero__media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.14) contrast(1.02);
  display: block;
} */

.hero__img {
    width: 100%;
    display: block;
    border-radius: 4px;
}

@media (max-width: 900px) {
  .scene--hero .scene__inner {
    grid-template-columns: 1fr;
  }
  .hero__media {
    order: -1;
    max-width: 360px;
    margin: 0 auto;
  }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  [data-word] {
    opacity: 1 !important;
    transform: none !important;
  }
  .scroll-cue__line::after {
    animation: none;
  }
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
