/* ==========================================================================
   /about — "The Alchemist"
   The timeline is the centrepiece: a vertical golden thread with glowing
   nodes and alternating entries. Everything else supports it.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.about-hero {
  padding-top: var(--hero-pad-top);
  padding-bottom: clamp(2rem, 4vw, 3.5rem);
}

.about-title {
  font-size: clamp(2.5rem, 6.4vw, 4.6rem);
  max-width: 16ch;
  margin-top: 1.1rem;
}

.about-lede {
  max-width: 62ch;
  margin-top: 1.4rem;
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: var(--star-3);
}

/* --------------------------------------------------------------------------
   The Workshop — full-width framed panel with gentle parallax
   -------------------------------------------------------------------------- */
.about-workshop {
  padding-top: clamp(1rem, 2.5vw, 2rem);
  padding-bottom: clamp(2rem, 4vw, 3.5rem);
}

/* Ornate thin gold double-border frame */
.workshop-frame {
  position: relative;
  margin: 0 0 1.4rem;
  padding: clamp(10px, 1.4vw, 16px);
  border: 1px solid rgba(242, 193, 78, 0.4);
  background: linear-gradient(160deg, rgba(242, 193, 78, 0.05), rgba(255, 255, 255, 0.01));
  box-shadow: var(--shadow-deep);
}
.workshop-frame::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(242, 193, 78, 0.2);
  pointer-events: none;
  z-index: 2;
}

/* Corner ornaments: gold L-brackets with a small radiant diamond */
.wf-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 0 solid rgba(242, 193, 78, 0.75);
  z-index: 3;
  pointer-events: none;
}
.wf-corner::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
  box-shadow: 0 0 12px rgba(242, 193, 78, 0.65);
}
.wf-corner--tl { top: -6px; left: -6px; border-width: 1px 0 0 1px; }
.wf-corner--tl::after { top: -3px; left: -3px; }
.wf-corner--tr { top: -6px; right: -6px; border-width: 1px 1px 0 0; }
.wf-corner--tr::after { top: -3px; right: -3px; }
.wf-corner--bl { bottom: -6px; left: -6px; border-width: 0 0 1px 1px; }
.wf-corner--bl::after { bottom: -3px; left: -3px; }
.wf-corner--br { bottom: -6px; right: -6px; border-width: 0 1px 1px 0; }
.wf-corner--br::after { bottom: -3px; right: -3px; }

/* Viewport clips the oversized image; JS translates it slower than scroll */
.workshop-viewport {
  overflow: hidden;
  aspect-ratio: 3 / 2;
  max-height: 64vh;
  width: 100%;
  background: var(--void-2);
}
.workshop-img {
  width: 100%;
  height: 126%;
  position: relative;
  top: -13%;
  object-fit: cover;
  will-change: transform;
}

/* Caption plate, half-overlapping the bottom of the frame */
.workshop-caption {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 50%);
  z-index: 3;
  background: var(--void-1);
  border: 1px solid rgba(242, 193, 78, 0.45);
  padding: 0.5rem 1.4rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
  box-shadow: 0 6px 24px -8px rgba(0, 0, 0, 0.8);
}

@media (max-width: 480px) {
  .workshop-caption {
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    padding: 0.45rem 0.9rem;
  }
}

/* --------------------------------------------------------------------------
   The timeline — golden thread + nodes + alternating cards
   -------------------------------------------------------------------------- */
.about-timeline { padding-top: clamp(1.5rem, 3vw, 2.5rem); }

.about-timeline .section-head {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.about-timeline .section-head .eyebrow::after {
  content: '';
  width: 34px; height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.timeline {
  list-style: none;
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem 0 0;
}

/* The golden thread */
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(
    180deg,
    transparent 0%,
    var(--gold) 5%,
    rgba(242, 193, 78, 0.65) 40%,
    rgba(239, 107, 168, 0.55) 70%,
    rgba(139, 92, 246, 0.6) 92%,
    transparent 100%
  );
  box-shadow: 0 0 18px -2px rgba(242, 193, 78, 0.35);
}

.timeline-entry {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: clamp(0.9rem, 2vw, 1.6rem) 0;
}

/* Glowing node on the thread */
.timeline-node {
  position: absolute;
  left: 50%;
  top: clamp(2rem, 3.4vw, 2.8rem);
  width: 13px;
  height: 13px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle at 35% 35%, var(--gold-hot), var(--gold) 60%, #a87c1e);
  box-shadow:
    0 0 0 4px rgba(242, 193, 78, 0.14),
    0 0 0 1px rgba(242, 193, 78, 0.5),
    0 0 22px 2px rgba(242, 193, 78, 0.55);
  z-index: 1;
  animation: node-breathe 4.5s ease-in-out infinite;
}

@keyframes node-breathe {
  0%, 100% { box-shadow: 0 0 0 4px rgba(242,193,78,.14), 0 0 0 1px rgba(242,193,78,.5), 0 0 22px 2px rgba(242,193,78,.55); }
  50%      { box-shadow: 0 0 0 7px rgba(242,193,78,.08), 0 0 0 1px rgba(242,193,78,.65), 0 0 34px 4px rgba(242,193,78,.7); }
}

/* --------------------------------------------------------------------------
   Scroll-drawn thread (progressive enhancement — JS adds .timeline--drawn,
   injects .timeline-thread and flips .is-lit on nodes as it reaches them)
   -------------------------------------------------------------------------- */
.timeline--drawn::before {
  opacity: 0.22;
  box-shadow: none;
}

.timeline-thread {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(50% - 1px);
  width: 2px;
  transform: scaleY(0);
  transform-origin: top center;
  background: linear-gradient(
    180deg,
    var(--gold-hot) 0%,
    var(--gold) 35%,
    rgba(239, 107, 168, 0.9) 70%,
    rgba(139, 92, 246, 0.9) 100%
  );
  box-shadow: 0 0 18px -2px rgba(242, 193, 78, 0.5);
  will-change: transform;
  pointer-events: none;
}

/* Unlit nodes wait, cold and dim */
.timeline--drawn .timeline-node {
  animation: none;
  background: radial-gradient(circle at 35% 35%, #6c5f92, #3d3460 60%, #251e40);
  box-shadow: 0 0 0 1px rgba(143, 135, 179, 0.35);
  transition: background 0.6s;
}

/* Ignition: one bright pulse, then settle into the breathing glow */
.timeline--drawn .timeline-node.is-lit {
  background: radial-gradient(circle at 35% 35%, var(--gold-hot), var(--gold) 60%, #a87c1e);
  animation:
    node-ignite 0.9s var(--ease-spring) 1 both,
    node-breathe 4.5s ease-in-out 0.9s infinite;
}
.timeline--drawn .timeline-entry--today .timeline-node.is-lit {
  background: radial-gradient(circle at 35% 35%, #fff3d6, var(--gold-hot) 55%, var(--gold));
}

@keyframes node-ignite {
  0% {
    box-shadow: 0 0 0 0 rgba(242, 193, 78, 0), 0 0 0 1px rgba(242, 193, 78, 0.3);
  }
  45% {
    box-shadow: 0 0 0 13px rgba(242, 193, 78, 0.22), 0 0 0 1px rgba(242, 193, 78, 0.85), 0 0 48px 10px rgba(242, 193, 78, 0.85);
  }
  100% {
    box-shadow: 0 0 0 4px rgba(242, 193, 78, 0.14), 0 0 0 1px rgba(242, 193, 78, 0.5), 0 0 22px 2px rgba(242, 193, 78, 0.55);
  }
}

/* Alternate sides */
.timeline-entry:nth-child(odd) .timeline-card {
  grid-column: 1;
  margin-right: clamp(2rem, 4.5vw, 3.4rem);
  text-align: right;
}
.timeline-entry:nth-child(even) .timeline-card {
  grid-column: 2;
  margin-left: clamp(2rem, 4.5vw, 3.4rem);
}

.timeline-card {
  /* Glass surface comes from the shared .card component (theme.css) */
  padding: clamp(1.4rem, 2.6vw, 1.9rem) clamp(1.4rem, 2.8vw, 2rem);
}
.timeline-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-bright);
  box-shadow: var(--glow-gold), var(--shadow-deep);
}

.timeline-year {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-hot);
  background: var(--gold-dim);
  border: 1px solid rgba(242, 193, 78, 0.3);
  border-radius: 999px;
  padding: 0.28rem 0.75rem;
  margin-bottom: 0.9rem;
}

.timeline-card h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  margin-bottom: 0.55rem;
}

.timeline-card p {
  color: var(--star-2);
  font-size: 0.98rem;
  line-height: 1.7;
}

/* Final "Today" entry gets a warmer frame */
.timeline-entry--today .timeline-card {
  border-color: rgba(242, 193, 78, 0.35);
  box-shadow: var(--glow-gold);
}
.timeline-entry--today .timeline-node {
  background: radial-gradient(circle at 35% 35%, #fff3d6, var(--gold-hot) 55%, var(--gold));
}
.timeline-entry--today .timeline-card em {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05em;
}

/* --------------------------------------------------------------------------
   Principles
   -------------------------------------------------------------------------- */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 2.5vw, 1.8rem);
}

.principle {
  padding: clamp(1.6rem, 3vw, 2.2rem);
  position: relative;
  overflow: hidden;
}
.principle:hover {
  transform: translateY(-4px);
  border-color: var(--line-bright);
  box-shadow: var(--glow-gold);
}

.principle-index {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(242, 193, 78, 0.35);
  background: var(--gold-dim);
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--gold-hot);
  margin-bottom: 1.2rem;
}

.principle h3 {
  font-size: 1.25rem;
  margin-bottom: 0.7rem;
  max-width: 22ch;
}

.principle p {
  color: var(--star-3);
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   Clients strip
   -------------------------------------------------------------------------- */
.about-clients { padding-top: clamp(2rem, 4vw, 3rem); }
.about-clients .section-head { margin-bottom: clamp(1.8rem, 3vw, 2.5rem); }

.clients-strip {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(1.2rem, 3.5vw, 2.8rem);
  padding: clamp(1.4rem, 2.5vw, 2rem) clamp(1.5rem, 3vw, 2.4rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.clients-strip li {
  font-family: var(--font-mono);
  font-size: clamp(0.85rem, 1.4vw, 1rem);
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--star-3);
  transition: color 0.3s, text-shadow 0.3s;
  cursor: default;
}
.clients-strip li:hover {
  color: var(--gold-hot);
  text-shadow: 0 0 24px rgba(242, 193, 78, 0.6);
}

.clients-strip li + li::before {
  content: '\2726'; /* four-pointed star */
  color: var(--star-4);
  font-size: 0.65em;
  margin-right: clamp(1.2rem, 3.5vw, 2.8rem);
  vertical-align: middle;
  letter-spacing: 0;
}

/* --------------------------------------------------------------------------
   CTA
   -------------------------------------------------------------------------- */
.about-cta { padding-bottom: clamp(5rem, 9vw, 8rem); }

.about-cta-panel {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background:
    radial-gradient(120% 140% at 50% 0%, rgba(242, 193, 78, 0.08), transparent 55%),
    linear-gradient(160deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  backdrop-filter: blur(14px);
}

.about-cta-panel h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  max-width: 20ch;
  margin: 0 auto;
}

.about-cta-panel p {
  color: var(--star-3);
  margin: 1rem auto 1.8rem;
  max-width: 46ch;
}

/* --------------------------------------------------------------------------
   Responsive — thread moves to the left edge on small screens
   -------------------------------------------------------------------------- */
@media (max-width: 760px) {
  .timeline::before { left: 10px; transform: none; }
  .timeline-thread { left: 9px; }

  .timeline-entry { grid-template-columns: 1fr; }

  .timeline-node {
    left: 10px;
    top: 1.9rem;
    width: 11px;
    height: 11px;
  }

  .timeline-entry:nth-child(odd) .timeline-card,
  .timeline-entry:nth-child(even) .timeline-card {
    grid-column: 1;
    margin: 0 0 0 2.2rem;
    text-align: left;
  }

  .principles-grid { grid-template-columns: 1fr; }

  .clients-strip {
    justify-content: center;
    text-align: center;
  }
  .clients-strip li + li::before { display: none; }
}

@media (min-width: 761px) and (max-width: 980px) {
  .principles-grid { grid-template-columns: 1fr; }
  .principle h3 { max-width: none; }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .timeline-node { animation: none; }
  .timeline-card:hover, .principle:hover { transform: none; }
  .workshop-img { will-change: auto; transform: none !important; }
  .wf-corner::after { box-shadow: none; }
}

/* --------------------------------------------------------------------------
   The Alchemist portrait — hero two-column with ornate framed portrait
   -------------------------------------------------------------------------- */
.about-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.85fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.portrait-frame {
  position: relative;
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(242, 193, 78, 0.35);
  border-radius: var(--radius-s);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.008));
  max-width: 380px;
  justify-self: end;
}
.portrait-frame::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(242, 193, 78, 0.18);
  border-radius: calc(var(--radius-s) - 3px);
  pointer-events: none;
  z-index: 2;
}

.portrait-viewport {
  overflow: hidden;
  border-radius: calc(var(--radius-s) - 4px);
  position: relative;
}
.portrait-viewport::after {
  /* ambient gold pool at the base, melting the portrait into the void */
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 68%, rgba(6, 4, 15, 0.55));
  pointer-events: none;
}

.portrait-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.portrait-caption {
  margin-top: 0.7rem;
  text-align: center;
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--star-3);
}

.portrait-frame {
  box-shadow: 0 24px 70px -28px rgba(0, 0, 0, 0.8), 0 0 44px -18px rgba(242, 193, 78, 0.35);
}

@media (max-width: 880px) {
  .about-hero-grid { grid-template-columns: 1fr; }
  .portrait-frame { justify-self: center; max-width: 320px; }
}
