/* ───────────────────────────────────────────────────────────────
   About page — extends landing-visual.css (tokens, nav, menu, footer,
   .process / .proc-* process-line styles)
   ─────────────────────────────────────────────────────────────── */

/* ─── Hero (dark) ───────────────────────────────────────────── */
.hero-about {
  background: var(--brown);
  color: var(--cream);
  padding: clamp(130px, 19vh, 210px) var(--pad-x) clamp(58px, 8vw, 104px);
}
.hero-about-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.hero-about h1 {
  /* sized to stay at most 3 lines on desktop */
  font-size: clamp(40px, 4.6vw, 92px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin: 0 0 26px;
  color: var(--cream);
  text-wrap: balance;
}
.hero-about-sub {
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.65;
  max-width: 430px;
  color: rgba(239, 232, 228, 0.78);
  margin: 0 0 38px;
}
.btn.cream { background: var(--cream); color: var(--brown); }
.btn.cream:hover { background: var(--pink); color: #fff; transform: translateY(-2px); }

.hero-about-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 50% 50% 12px 12px / 40% 40% 12px 12px;
  background: var(--brown-2);
  max-width: 440px;
  margin-left: auto;
}
.hero-about-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ─── Section heads (shared on this page) ───────────────────── */
.sec-head { padding: 0 var(--pad-x); max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.sec-head h2 {
  margin: 8px 0 0;
  font-size: clamp(38px, 5vw, 78px);
  line-height: 1.04;
  letter-spacing: -0.015em;
}
.sec-head p { margin: 18px 0 0; font-size: clamp(15px, 1.15vw, 18px); line-height: 1.6; color: var(--muted); }

/* ─── Where I've been — scroll-driven timeline ──────────────── */
.htl-sec { position: relative; background: var(--bg); }
.htl-sticky {
  position: sticky; top: 0;
  height: 100vh;
  display: flex; flex-direction: column;
  gap: clamp(14px, 2.4vh, 30px);
  padding: clamp(70px, 11vh, 128px) var(--pad-x) clamp(24px, 4vh, 44px);
}
.htl-intro {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 28px; flex-shrink: 0;
}
.htl-head-text { max-width: 600px; }
.htl-head-text h2 {
  margin: 8px 0 0;
  font-size: clamp(38px, 5vw, 78px);
  line-height: 1.04; letter-spacing: -0.015em;
}
.htl-head-text p { margin: 12px 0 0; font-size: clamp(15px, 1.1vw, 17px); line-height: 1.55; color: var(--muted); }

.cv-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px;
  background: var(--brown); color: var(--cream);
  font-weight: 500; font-size: 14px; white-space: nowrap;
  flex-shrink: 0;
  transition: background .2s ease, transform .2s ease;
}
.cv-btn svg { width: 16px; height: 16px; }
.cv-btn:hover { background: var(--pink); transform: translateY(-2px); }

.htl-viewport { position: relative; flex: 0 0 auto; height: clamp(74px, 12vh, 104px); overflow: hidden; }
/* rail slides so the active stop sits at a left-anchored focus point */
.htl-rail { position: absolute; top: 34px; left: 0; height: 0; will-change: transform; }
.htl-rail-line, .htl-rail-fill {
  position: absolute; top: 0; left: 0; height: 2px;
  transform: translateY(-50%); border-radius: 2px;
}
.htl-rail-line { background: rgba(42, 23, 14, 0.16); }
.htl-rail-fill { background: var(--pink); width: 0; }

.htl-node {
  position: absolute; top: 0; left: 0;
  transform: translate(-50%, -50%);
  cursor: pointer;
}
.htl-node .hn-dot {
  display: block;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--brown);
  transition: transform .35s cubic-bezier(.2,.7,.3,1), opacity .3s ease;
}
/* colour by type: pink = education, brown = experience */
.htl-node.edu .hn-dot { background: var(--pink); }
.htl-node:not(.edu) .hn-dot { background: var(--brown); }
/* upcoming stops sit dimmer; reached + active are full strength */
.htl-node { opacity: 0.4; transition: opacity .3s ease; }
.htl-node.past, .htl-node.active { opacity: 1; }
.htl-node.active .hn-dot { transform: scale(1.7); }
.htl-node .hn-yr {
  position: absolute; left: 50%; top: 20px;
  transform: translateX(-50%);
  font-size: 12px; font-weight: 600; letter-spacing: 0.03em;
  color: var(--muted); white-space: nowrap;
  transition: color .3s ease;
}
.htl-node.active .hn-yr { color: var(--brown); }

/* card: left-aligned, in flow between heading and the line */
.htl-card {
  position: relative; flex-shrink: 0;
  width: min(440px, 56%);
  background: #fff; color: var(--brown);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 22px 20px;
  box-shadow: 0 22px 48px rgba(42, 23, 14, 0.14);
  display: flex; flex-direction: column; gap: 5px;
  text-align: left;
  opacity: 1;
}
.htc-kind {
  align-self: flex-start;
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--brown);
  background: var(--bg-soft); border: 1px solid var(--line);
  padding: 4px 11px; border-radius: 999px;
}
.htl-card.is-edu .htc-kind { color: var(--pink); border-color: var(--pink-soft); background: color-mix(in srgb, var(--pink) 8%, #fff); }
.htc-year { font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--pink); margin-top: 4px; }
.htc-company { font-size: clamp(24px, 2.5vw, 32px); line-height: 1.02; letter-spacing: -0.01em; }
.htc-role { font-size: 13.5px; font-weight: 600; color: var(--brown); }
.htc-desc { font-size: 13.5px; line-height: 1.5; color: var(--muted); text-wrap: pretty; margin-top: 2px; }

.htl-count {
  flex-shrink: 0; margin-top: auto;
  display: flex; align-items: baseline; gap: 8px;
  font-family: var(--font-display); color: var(--muted);
}
.htl-count #htlNum { color: var(--brown); font-size: 22px; line-height: 1; }
.htl-count-sep { opacity: 0.5; }
.htl-count #htlTotal { font-size: 15px; }
.htl-count-cue {
  margin-left: 16px; font-family: var(--font-body);
  font-size: 11px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted); opacity: 0.7;
  align-self: center;
}

/* ─── What I value — card grid w/ header as first cell ──────── */
.values { padding: calc(var(--pad-y) * 0.45) var(--pad-x) var(--pad-y); background: var(--bg-soft); }
.val-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.val-head {
  padding: 4px 10px 4px 2px;
  display: flex; flex-direction: column; justify-content: center;
}
.val-head .eyebrow { margin-bottom: 16px; }
.val-head h2 {
  margin: 0;
  font-size: clamp(34px, 3.4vw, 54px);
  line-height: 1.04;
  letter-spacing: -0.015em;
}
.val-head p { margin: 18px 0 0; font-size: 15px; line-height: 1.6; color: var(--muted); max-width: 300px; }

.value {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px 26px 30px;
  display: flex; flex-direction: column;
  min-height: 230px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.value:hover { transform: translateY(-4px); border-color: var(--muted); box-shadow: 0 18px 40px rgba(42, 23, 14, 0.08); }
.val-mark { margin-bottom: auto; }
.val-mark svg { width: 28px; height: 28px; display: block; }
.value h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -0.005em;
  margin: 24px 0 10px;
  color: var(--brown);
}
.value p { font-size: 14px; line-height: 1.58; color: var(--muted); margin: 0; text-wrap: pretty; }
.value p em { font-style: italic; color: var(--brown); }

/* ─── Life outside the work — polaroid camera ───────────────── */
.polaroids {
  padding: clamp(56px, 8vw, 104px) 0 calc(clamp(56px, 8vw, 104px) + 14px);
  overflow: hidden;
}
.pol-top {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(30px, 5vw, 80px);
  align-items: center;
  padding: 0 var(--pad-x) clamp(8px, 1.5vw, 20px);
}
.pol-intro .eyebrow { margin-bottom: 18px; }
.pol-intro h2 {
  margin: 0;
  font-size: clamp(38px, 5vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.015em;
}
.pol-intro p { margin: 18px 0 0; font-size: clamp(15px, 1.15vw, 18px); line-height: 1.6; color: var(--muted); max-width: 460px; }

/* camera — hand-drawn illustration, now a static trigger in the grid */
.camera {
  justify-self: center;
  width: clamp(200px, 22vw, 270px);
  display: flex; flex-direction: column; align-items: center;
  transition: transform .12s ease;
}
.camera:hover { transform: translateY(-3px); }
.camera.snap { animation: cam-snap .42s cubic-bezier(.36, .07, .19, .97); }
@keyframes cam-snap {
  0%   { transform: translateY(0); }
  20%  { transform: translateY(2px) rotate(-1.2deg); }
  45%  { transform: translateY(-1px) rotate(1deg); }
  70%  { transform: rotate(-0.5deg); }
  100% { transform: translateY(0); }
}
.cam-svg {
  width: 100%; height: auto; display: block;
  filter: drop-shadow(0 16px 26px rgba(42, 23, 14, 0.20));
  pointer-events: none; user-select: none;
}
.cam-hint {
  margin-bottom: 18px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--brown);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: 9px 16px; border-radius: 999px;
  white-space: nowrap;
  transition: opacity .3s ease;
}

/* pile — explicit-width row centred with margin auto, close under camera */
.pol-stage {
  position: relative;
  min-height: clamp(180px, 22vw, 250px);
  margin-top: clamp(-8px, -0.5vw, 0px);
  padding: 0 var(--pad-x);
}
.pol-pile {
  position: relative;
  margin: 0 auto;
  z-index: 10;
}
.polaroid {
  position: absolute;
  top: 0; left: 0;
  width: clamp(138px, 15.5vw, 178px);
  background: #fff;
  padding: 10px 10px 0;
  border-radius: 3px;
  box-shadow: 0 14px 30px rgba(42, 23, 14, 0.22);
  transform-origin: center center;
  transform: translateY(-360px) rotate(0deg) scale(0.7);
  opacity: 0;
  transition: transform .7s cubic-bezier(.18, .85, .25, 1), opacity .35s ease, box-shadow .25s ease;
}
.polaroid.settled {
  opacity: 1;
  transform: translateY(var(--dy)) rotate(var(--rot)) scale(1);
}
/* once landed, snappy transitions so hover feels instant */
.polaroid.ready {
  transition: transform .18s ease, box-shadow .18s ease;
}
.polaroid.ready:hover {
  transform: translateY(calc(var(--dy) - 16px)) rotate(0deg) scale(1.1);
  box-shadow: 0 24px 48px rgba(42, 23, 14, 0.30);
  cursor: pointer;
  z-index: 200;
}
.pol-photo {
  width: 100%; aspect-ratio: 1 / 1;
  overflow: hidden; background: var(--bg-soft);
}
.pol-photo img { width: 100%; height: 100%; object-fit: cover; }
.polaroid figcaption {
  font-size: 11.5px; font-style: italic; font-weight: 400;
  color: #4a352b; text-align: center;
  padding: 9px 4px 12px; line-height: 1.25;
  text-wrap: balance;
}

/* flash overlay */
.flash {
  position: fixed; inset: 0;
  background: #fff;
  opacity: 0; pointer-events: none;
  z-index: 999;
}
.flash.go { animation: flash .4s ease; }
@keyframes flash {
  0% { opacity: 0; }
  8% { opacity: 0.92; }
  100% { opacity: 0; }
}

/* short viewports — keep the timeline card clear of the heading */
@media (max-height: 780px) {
  .htl-card { padding: 16px 18px 18px; gap: 5px; }
  .htc-company { font-size: clamp(21px, 2.3vw, 26px); }
  .htc-desc { font-size: 12.5px; line-height: 1.45; }
  .htc-kind { font-size: 10px; padding: 3px 9px; }
}

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-about-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-about-photo { max-width: 360px; order: -1; }
  .val-grid { grid-template-columns: 1fr; }
  .val-head { padding-bottom: 8px; }
  .htl-intro { flex-direction: column; align-items: flex-start; gap: 18px; }
  .htl-card { width: min(300px, 80%); }
  .pol-top { grid-template-columns: 1fr; text-align: center; }
  .pol-intro p { margin-left: auto; margin-right: auto; }
  .polaroid { width: clamp(128px, 38vw, 168px); }
}
