/* ===========================
   ABOUT — Story-Driven, Human Craft
   Expressive modules over perfect grids
   =========================== */

/* ───────────────────────────
   OPENING STATEMENT
   Large, scroll-driven headline
   ─────────────────────────── */
.about-opening {
  max-width: 720px;
  margin-bottom: 36px;
}

.about-opening-headline {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 300;       /* JS scroll drives this up to 700 */
  line-height: 1.12;
  color: var(--text);
  margin-bottom: 1.25rem;
  transform-origin: left center;
  will-change: font-weight, transform;
}

/* Italic accent phrase + wavy teal underline */
.about-opening-headline em {
  font-style: italic;
  font-weight: 700;
  color: var(--accent);
  position: relative;
  display: inline;
}
.about-opening-headline em::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 5px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='6'%3E%3Cpath d='M0 3 Q10 0.5 20 3 Q30 5.5 40 3 Q50 0.5 60 3 Q70 5.5 80 3' stroke='%237C5C45' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 80px 6px;
  pointer-events: none;
}
[data-theme="dark"] .about-opening-headline em::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='6'%3E%3Cpath d='M0 3 Q10 0.5 20 3 Q30 5.5 40 3 Q50 0.5 60 3 Q70 5.5 80 3' stroke='%23C9A07A' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}

.about-opening-sub {
  font-size: 1.08rem;
  color: var(--text-muted);
  line-height: 1.72;
  font-style: italic;
  padding-left: 18px;
  border-left: 2.5px solid var(--accent);
  max-width: 560px;
}

/* ───────────────────────────
   STATS STRIP
   ─────────────────────────── */
.about-stats-strip {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 36px 40px;
  margin-top: 56px;
  margin-bottom: 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 -1px 0 rgba(0, 0, 0, 0.04),
    0 4px 20px rgba(107, 79, 58, 0.09),
    0 0 0 1px rgba(107, 79, 58, 0.05);
}

/* Background image — very subtle wash */
.about-stat-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.055;
  z-index: 0;
  filter: grayscale(30%) saturate(80%);
}
[data-theme="dark"] .about-stat-bg { opacity: 0.035; }

.about-stat {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
}

.about-stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 7px;
}
.about-stat-num em {
  font-style: normal;
  font-size: 0.55em;
  vertical-align: super;
}

.about-stat-label {
  display: block;
  font-size: 0.70rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.about-stat-sep {
  width: 1px;
  height: 44px;
  background: var(--border);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  opacity: 0.7;
}

/* ───────────────────────────
   MAIN GRID
   ─────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 64px;
  align-items: start;
}

.about-left {
  display: flex;
  flex-direction: column;
}

/* ───────────────────────────
   PROFILE PHOTO
   ─────────────────────────── */
.about-photo-wrap {
  position: relative;
  width: 100%;
  max-width: 360px;
  margin-bottom: 3rem;
  /* Slight hand-placed tilt */
  transform: rotate(-1.2deg);
  transition: transform 0.45s var(--spring);
}
.about-photo-wrap:hover {
  transform: rotate(0deg);
}

.about-photo-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 28px 64px rgba(107, 79, 58, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.22) inset;
}

/* Placeholder — swap for <img src="photo.jpg" alt="Irish Kim Babaran"> */
.about-photo-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg,
    rgba(107, 79, 58, 0.15) 0%,
    rgba(42, 157, 143, 0.10) 55%,
    rgba(0, 100, 100, 0.20) 100%);
  border: 2px dashed rgba(107, 79, 58, 0.22);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--accent);
  cursor: default;
}
.aph-icon  { font-size: 2.8rem; opacity: 0.50; }
.aph-label {
  font-size: 0.70rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.50;
}

/* Real photo once added */
.about-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Name badge — bottom of photo, glass */
.about-photo-badge {
  position: absolute;
  bottom: -18px;
  left: 14px;
  right: 42px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 11px 15px;
  box-shadow: var(--glass-shadow);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.about-photo-badge strong {
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.about-photo-badge span {
  font-size: 0.70rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* Floating years stat — top right corner */
.about-photo-stat {
  position: absolute;
  top: 14px;
  right: -18px;
  background: var(--accent);
  border-radius: var(--radius);
  padding: 11px 13px;
  box-shadow: 0 8px 24px rgba(107, 79, 58, 0.32);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  color: #fff;
  min-width: 56px;
  text-align: center;
}
.about-photo-stat strong {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1;
}
.about-photo-stat span {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}

/* ───────────────────────────
   STORY STREAM
   The narrative modules
   ─────────────────────────── */
.story-stream {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ─── Chapter cards ─── */
.story-chapter {
  position: relative;
  padding: 26px 32px 22px 34px;
  background: var(--surface);
  border-radius: 3px 14px 14px 3px;
  border-left: 3px solid var(--accent);
  box-shadow: var(--shadow);
  margin-bottom: 18px;
  /* Imperfect — hand-placed tilt */
  transform: rotate(-0.45deg);
  transform-origin: left top;
  transition:
    transform 0.4s var(--spring),
    box-shadow 0.35s ease,
    border-color 0.25s ease;
  overflow: hidden;
}
.story-chapter:hover {
  transform: rotate(0deg) translateX(6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-2);
}

/* Alternate: tilts the other way, border on right */
.story-chapter--alt {
  transform: rotate(0.5deg);
  transform-origin: right top;
  border-left: none;
  border-right: 3px solid var(--accent-2);
  border-radius: 14px 3px 3px 14px;
  padding: 26px 34px 22px 32px;
}
.story-chapter--alt:hover {
  transform: rotate(0deg) translateX(-6px);
}

/* Oversized decorative chapter number in the background */
.chapter-tag {
  position: absolute;
  top: -10px;
  right: 14px;
  font-family: var(--font-display);
  font-size: 5.5rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.06;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.04em;
}

.chapter-label {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
  opacity: 0.85;
}

.chapter-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.28;
}

.chapter-body {
  font-size: 0.90rem;
  color: var(--text-muted);
  line-height: 1.76;
}

/* Small annotation / aside — like a margin note */
.chapter-annotation {
  margin-top: 12px;
  font-size: 0.73rem;
  font-style: italic;
  color: var(--accent);
  opacity: 0.72;
}

/* ─── Pull quote ─── */
.story-pullquote {
  position: relative;
  margin: 6px 0 18px;
  padding: 22px 26px 18px 30px;
  /* Opposite tilt to adjacent cards */
  transform: rotate(0.65deg);
  transform-origin: center;
  transition: transform 0.4s var(--spring);
}
.story-pullquote:hover {
  transform: rotate(0deg);
}

/* Giant decorative opening quote */
.story-pullquote::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 7rem;
  color: var(--accent);
  opacity: 0.11;
  position: absolute;
  top: -18px;
  left: 8px;
  line-height: 1;
  pointer-events: none;
}

.story-pullquote p {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.18rem);
  font-style: italic;
  color: var(--text);
  line-height: 1.58;
  position: relative;
}

.story-pullquote cite {
  display: block;
  margin-top: 10px;
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* ─── Personal philosophy block ─── */
.about-philosophy {
  position: relative;
  margin: 6px 0 22px;
  padding: 28px 28px 28px 38px;
  background: linear-gradient(135deg,
    rgba(107, 79, 58, 0.06) 0%,
    rgba(42, 157, 143, 0.03) 100%);
  border-radius: var(--radius);
  border: 1px solid rgba(107, 79, 58, 0.12);
  overflow: hidden;
  transition: border-color 0.3s ease;
}
.about-philosophy:hover {
  border-color: rgba(107, 79, 58, 0.22);
}

/* Decorative giant quote mark behind text */
.philosophy-mark {
  position: absolute;
  top: -18px;
  left: 14px;
  font-family: var(--font-display);
  font-size: 9rem;
  color: var(--accent);
  opacity: 0.07;
  line-height: 1;
  pointer-events: none;
  font-style: italic;
}

.about-philosophy p {
  font-family: var(--font-display);
  font-size: 1.04rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.68;
  position: relative;
}

/* ───────────────────────────
   INTERACTIVE DECISION LAYER
   ─────────────────────────── */
.about-decision {
  margin-top: 8px;
  padding: 24px 26px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
}

.about-decision-prompt {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.about-decision-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.25rem;
}

.decision-chip {
  padding: 7px 15px;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.80rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.28s var(--spring);
}
.decision-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px) scale(1.03);
}
.decision-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 6px 18px rgba(107, 79, 58, 0.22);
  transform: translateY(-2px);
}

.decision-response {
  display: none;
  padding: 14px 0 4px;
  font-size: 0.90rem;
  color: var(--text-muted);
  line-height: 1.74;
  border-top: 1px solid var(--border);
  animation: fadeResponse 0.35s ease;
}
.decision-response.visible { display: block; }

@keyframes fadeResponse {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ───────────────────────────
   CREDENTIALS BENTO — right col
   ─────────────────────────── */
.about-credentials {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--glass-shadow);
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  max-height: calc(100vh - var(--nav-h) - 48px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.about-credentials::-webkit-scrollbar { width: 3px; }
.about-credentials::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.creds-heading {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 14px;
}

.creds-bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

/* ── Base tile ── */
.cred-tile {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.60),
    0 2px 6px rgba(107, 79, 58, 0.05);
  transition:
    transform 0.26s var(--spring),
    box-shadow 0.26s ease,
    border-color 0.26s ease;
  min-width: 0;
}
.cred-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(107, 79, 58, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.70),
    0 6px 18px rgba(107, 79, 58, 0.11);
}
[data-theme="dark"] .cred-tile {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 2px 6px rgba(0, 0, 0, 0.20);
}
[data-theme="dark"] .cred-tile:hover {
  border-color: rgba(201, 160, 122, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 6px 18px rgba(0, 0, 0, 0.30);
}

/* ── Variants ── */
.cred-tile--wide { grid-column: 1 / -1; }

.cred-tile--license {
  border-top: 2px solid var(--accent);
  background: linear-gradient(135deg,
    rgba(107, 79, 58, 0.07) 0%,
    var(--surface) 100%);
}

.cred-tile--exp {
  background: var(--surface-alt);
}

/* ── Tile content ── */
.cred-tile-icon {
  font-size: 0.95rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 1px;
}

.cred-tile-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.cred-tile-body strong {
  font-size: 0.77rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}
.cred-tile-body span {
  font-size: 0.66rem;
  color: var(--text-muted);
  line-height: 1.4;
}
