/* ============================================================
   ABOUT PAGE STYLES
   ============================================================ */

.about-main { padding-top: 60px; }

/* ── Page Header ── */
.page-header {
  padding: var(--sp-24) var(--sp-8) var(--sp-16);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -200px; left: -200px;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: var(--burgundy);
  opacity: 0.12;
  filter: blur(100px);
  pointer-events: none;
}

.page-header-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.page-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--sp-4);
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 200;
  line-height: 0.92;
  letter-spacing: -0.04em;
  text-transform: lowercase;
  color: var(--text-primary);
  margin-bottom: var(--sp-4);
}
.page-title em { font-style: normal; font-weight: 200; color: var(--gold-light); }

.page-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 300;
}

/* ── Story ── */
.story {
  padding: var(--sp-24) var(--sp-8);
}
.story-inner {
  max-width: 760px;
  margin: 0 auto;
}

.story-block {
  margin-bottom: var(--sp-16);
  animation: fadeUp 0.7s var(--ease) both;
}

.story-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--burgundy-light);
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid var(--border);
}

.story-text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: var(--sp-4);
}
.story-text:last-child { margin-bottom: 0; }
.story-text em { color: var(--text-primary); font-style: italic; }

.story-text--large {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 300;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.5;
  padding-left: var(--sp-6);
  border-left: 2px solid var(--gold);
}

.story-block--lead {
  padding: var(--sp-8) 0;
  margin-bottom: var(--sp-16);
}

/* ── Timeline ── */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 82px;
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--border-mid) 10%, var(--border-mid) 90%, transparent);
}

.timeline-item {
  display: flex;
  gap: var(--sp-6);
  align-items: flex-start;
  padding: var(--sp-4) 0;
  position: relative;
}

.timeline-item::after {
  content: '';
  position: absolute;
  left: 78px;
  top: 22px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--surface-3);
  border: 1px solid var(--border-mid);
  z-index: 1;
}

.timeline-item--current::after {
  background: var(--burgundy);
  border-color: var(--burgundy-light);
  box-shadow: 0 0 8px var(--burgundy-glow);
}

.timeline-year {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
  width: 72px;
  flex-shrink: 0;
  padding-top: 3px;
  letter-spacing: 0.04em;
}

.timeline-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: var(--sp-6);
}

.timeline-content strong {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
}

.timeline-content span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Stats ── */
.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-top: var(--sp-16);
}

.stat {
  padding: var(--sp-8);
  background: var(--surface-2);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.stat-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 600;
  color: var(--gold-light);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Currently ── */
.currently {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: var(--sp-16) var(--sp-8);
}

.currently-inner {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-12);
}

.currently-title {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--burgundy-light);
  margin-bottom: var(--sp-6);
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid var(--border);
}

.lang-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.lang-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lang-name {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.currently-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.currently-list li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.currently-list li.currently-faded {
  color: var(--text-muted);
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .story { padding: var(--sp-12) var(--sp-4); }
  .about-stats { grid-template-columns: 1fr; }
  .currently-inner { grid-template-columns: 1fr; }
  .timeline::before { left: 70px; }
  .timeline-item::after { left: 66px; }
  .timeline-year { width: 60px; font-size: 0.62rem; }
}

/* ── Story images ── */
figure { margin: 0; }   /* remove browser default 40px side margins */
.story-img {
  margin: var(--sp-8) 0;
  border-radius: var(--r-lg);
  overflow: hidden;
}
.story-img img {
  width: 100%;
  height: auto;
  display: block;
}

/* Full-width image */
.story-img--full img {
  max-height: 420px;
  object-fit: cover;
}

/* Campus image: fixed-height cinematic banner */
.story-img--campus {
  height: 200px;
}
.story-img--campus img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* Portrait: narrower, centred */
.story-img--portrait {
  max-width: 380px;
  aspect-ratio: 896 / 1345;   /* content area: 1372px tall minus 27px white strip at bottom */
}
.story-img--center {
  margin-left: auto;
  margin-right: auto;
}
.story-img--portrait img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;  /* anchor top; white strip at bottom gets clipped */
}

/* Half-width floated */
.story-img--half {
  max-width: 36%;     /* slightly narrower so it pairs with paragraph more neatly */
  margin-top: var(--sp-2);
  margin-bottom: var(--sp-6);
}
.story-img--right {
  float: right;
  margin-left: var(--sp-8);
  clear: right;
}
.story-img--left {
  float: left;
  margin-right: var(--sp-8);
  clear: left;
}
.story-img--half img {
  object-fit: cover;
  max-height: 280px;
}

/* Diagram: constrained and centred, white background matches image */
.story-img--diagram {
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  background: #fff;
  border-radius: var(--r-md);
  padding: var(--sp-3);
  overflow: hidden;
}
.story-img--diagram img {
  width: 100%;
  height: auto;
  display: block;
}

/* Clearfix after floated images */
.story-block::after {
  content: '';
  display: table;
  clear: both;
}

/* ── Pull quote ── */
.story-text--pull {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 200;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  border-left: 3px solid var(--burgundy-light);
  padding-left: var(--sp-6);
  margin: var(--sp-10) 0;
}
.story-em {
  font-style: italic;
  color: var(--gold-light, #e0c070) !important;
}

/* ── Ikigai grid ── */
.ikigai-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
  margin: var(--sp-8) 0;
}
.ikigai-item {
  background: #f5f0e8;
  border: 2px solid transparent;
  border-radius: var(--r-md);
  padding: calc(var(--sp-5) + 2px);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  transition: border-color 0.25s ease;
  text-align: center;
}
.ikigai-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.ikigai-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #3a3530;
}

/* Per-card accent colours matching the Ikigai diagram */
.ikigai-item:nth-child(1) .ikigai-label { color: #5a9e6e; }
.ikigai-item:nth-child(1):hover         { border-color: #5a9e6e; border-width: 4px; }

.ikigai-item:nth-child(2) .ikigai-label { color: #b08a2a; }
.ikigai-item:nth-child(2):hover         { border-color: #b08a2a; border-width: 4px; }

.ikigai-item:nth-child(3) .ikigai-label { color: #b85c6a; }
.ikigai-item:nth-child(3):hover         { border-color: #b85c6a; border-width: 4px; }

.ikigai-item:nth-child(4) .ikigai-label { color: #c4773a; }
.ikigai-item:nth-child(4):hover         { border-color: #c4773a; border-width: 4px; }

@media (max-width: 600px) {
  .ikigai-grid { grid-template-columns: 1fr; }
  .story-img--half,
  .story-img--natural,
  .story-img--left {
    float: none;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}

/* ── Natural full image: full proportions, no letterbox ── */
.story-img--natural {
  max-width: 42%;     /* proportional to column, text fills the left */
  float: right;
  margin-left: var(--sp-6);
  margin-bottom: var(--sp-2);
  margin-top: 0;
  aspect-ratio: 1269 / 952;   /* content area: 1288px wide minus 19px white strip on right */
}
.story-img--natural img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: left center; /* anchor left; white strip on right gets clipped */
}

/* ── Language tag tooltip (e.g. DELF B2 pending note) ── */
.lang-tooltip {
  position: relative;
  cursor: default;
}
.lang-tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface-3);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  padding: 3px 8px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.lang-tooltip:hover::after {
  opacity: 1;
}

/* ── Timeline badges ── */
.timeline-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.04em;   /* tighter - matches heading tracking */
  text-transform: uppercase;
  line-height: 1;             /* hugs text height exactly */
  padding: 2px 5px;
  border-radius: 3px;
  vertical-align: middle;
  margin-left: 5px;
  position: relative;
  top: -1px;
}

.timeline-badge--distinction {
  color: var(--gold-light);
  border: 1px solid rgba(201,168,76,0.4);
  background: rgba(201,168,76,0.08);
  box-shadow: 0 0 6px rgba(201,168,76,0.25),
              0 0 12px rgba(201,168,76,0.1);
  animation: badgeGlow 3s ease-in-out infinite;
}

.timeline-badge--now {
  color: #8fcfa0;
  border: 1px solid rgba(143,207,160,0.4);
  background: rgba(143,207,160,0.08);
  box-shadow: 0 0 6px rgba(143,207,160,0.25),
              0 0 12px rgba(143,207,160,0.1);
  animation: badgeGlowGreen 3s ease-in-out infinite;
}

@keyframes badgeGlow {
  0%, 100% { box-shadow: 0 0 6px rgba(201,168,76,0.25), 0 0 12px rgba(201,168,76,0.1); }
  50%       { box-shadow: 0 0 10px rgba(201,168,76,0.5), 0 0 20px rgba(201,168,76,0.2); }
}

@keyframes badgeGlowGreen {
  0%, 100% { box-shadow: 0 0 6px rgba(143,207,160,0.25), 0 0 12px rgba(143,207,160,0.1); }
  50%       { box-shadow: 0 0 10px rgba(143,207,160,0.5), 0 0 20px rgba(143,207,160,0.2); }
}

/* ── Shimmer text animation ── */
.story-em--shimmer {
  background: linear-gradient(
    90deg,
    var(--gold-light) 0%,
    #fff8e0 40%,
    var(--gold-light) 60%,
    #c9a84c 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: textShimmer 4s linear infinite;
}

@keyframes textShimmer {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}

/* ── Letter wave animation ── */
.text-wave {
  display: inline;
}
.text-wave .tw-word {
  display: inline-block;    /* keeps word together as a unit */
  white-space: nowrap;
}
.text-wave span[style] {
  display: inline-block;
  animation: letterWave 3s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.06s);
}
@keyframes letterWave {
  0%, 60%, 100% { transform: translateY(0); }
  30%            { transform: translateY(-2px); }
}
