/* ==========================================================================
   About page (about.html)
   Loaded after base.css + home.css (reuses chips and the
   "Let's connect" section). Linked from the main menu ("About").
   ========================================================================== */

/* Markers on this page are drawn when they scroll into view (not on load) */
.about-page .marker {
  animation: none;
  background-size: 0% 100%;
  transition: background-size .9s cubic-bezier(.6, .05, .3, 1);
}
.about-page .is-in .marker,
.about-page .marker.is-in { background-size: 100% 100%; }
.about-page .is-in .marker:nth-of-type(2) { transition-delay: .45s; }

/* Generic reveal */
[data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }

.section-head { margin-bottom: clamp(40px, 5vw, 80px); }
.section-head__kicker {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 8px;
  color: var(--c-bordo);
  font-weight: 500; letter-spacing: .08em; text-transform: uppercase; font-size: .8125rem;
}
.section-head__kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.section-head .h2 { max-width: 720px; text-wrap: balance; }

/* ==========================================================================
   1. HERO
   ========================================================================== */
.ah {
  position: relative;
  overflow: hidden;
  min-height: min(calc(100svh - var(--header-h)), 820px);
  display: flex; align-items: center;
  padding-block: clamp(48px, 6vw, 96px);
  background: var(--c-white);
}
.ah__bg { position: absolute; inset: 0; pointer-events: none; }
.ah__blob {
  position: absolute; border-radius: 50%;
  filter: blur(70px); opacity: .55;
  transform: translate3d(var(--px, 0), var(--py, 0), 0);
  transition: transform 1.2s var(--ease);
}
.ah__blob--a { width: 46vw; height: 46vw; right: -8vw; top: -12vw; background: #c4b8f0; animation: blob 18s ease-in-out infinite alternate; }
.ah__blob--b { width: 30vw; height: 30vw; right: 20vw; bottom: -14vw; background: #FECCA6; animation: blob 14s ease-in-out -4s infinite alternate; }
.ah__blob--c { width: 34vw; height: 34vw; left: -12vw; top: 10%; background: #BEDEF4; animation: blob 20s ease-in-out -8s infinite alternate; }
@keyframes blob { to { border-radius: 42% 58% 60% 40% / 50% 40% 60% 50%; scale: 1.15; } }

/* Rotating gradient: the angle = slow automatic wave + mouse angle + scroll.
   about.js sets --ang-mouse, --cx/--cy (desktop) and --ang-scroll / --sy (all devices). */
@property --ang-auto { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@property --ang-mouse { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@property --cx { syntax: '<percentage>'; inherits: false; initial-value: 62%; }
@property --cy { syntax: '<percentage>'; inherits: false; initial-value: 45%; }
.ah__mesh {
  --cx: 62%; --cy: 45%;
  position: absolute; inset: -20%;
  background:
    conic-gradient(from calc(var(--ang-auto) + var(--ang-mouse) + var(--ang-scroll, 0deg)) at var(--cx) var(--cy),
      #EFF8FF, #CACFED, #FFDFE3, #FECCA6, #BEDEF4, #E9EAFF, #EFF8FF);
  filter: blur(70px);
  opacity: .8;
  transform: translate3d(0, var(--sy, 0px), 0) scale(1.05);
  transition: --ang-mouse 1.2s var(--ease), --cx 1.2s var(--ease), --cy 1.2s var(--ease);
  animation: mesh-wave 16s ease-in-out infinite alternate;
}
@keyframes mesh-wave {
  0%   { --ang-auto: -20deg; border-radius: 0; }
  50%  { --ang-auto: 25deg; }
  100% { --ang-auto: 60deg; }
}
.ah__blob { translate: 0 calc(var(--sy, 0px) * var(--depth-y, .5)); }
.ah .grain {
  position: absolute; inset: -80px; opacity: .08; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.ah__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr minmax(300px, 460px);
  align-items: center;
  gap: clamp(40px, 6vw, 110px);
}
.ah__text { padding-left: var(--indent); }
/* Poppins Bold 48 px #121F13 */
.ah__title { font: 700 var(--fs-hero)/var(--lh) var(--font-heading); color: #121F13; }
.ah__line { display: block; overflow: hidden; padding-bottom: .06em; }
.ah__line > span { display: inline-block; animation: line-up .9s var(--ease) both; }
@keyframes line-up { from { transform: translateY(105%); } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

/* lead = .h3 (Poppins Regular 32 px, content.txt) */
.ah__lead {
  margin-top: clamp(16px, 1.6vw, 24px); max-width: 620px;
  animation: rise .8s var(--ease) .4s both;
}

/* visual: photo + badge + passions */
.ah__visual { position: relative; aspect-ratio: 46 / 54; }
.ah__photo {
  position: absolute; inset: 6% 10%;                               /* portrait photo, ~4:5 like the image */
  border-radius: var(--radius-md);             /* 15 px, like the homepage project images */
  overflow: hidden;
  background: linear-gradient(160deg, #FECCA6 0%, #FFDFE3 45%, #CACFED 100%);
  transform: translate3d(var(--px, 0), var(--py, 0), 0);
  transition: transform .9s var(--ease);
  animation: photo-in 1.1s var(--ease) .2s both;
}
@keyframes photo-in { from { clip-path: inset(100% 0 0 0 round 15px); } to { clip-path: inset(0 0 0 0 round 15px); } }
.ah__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 30%; }

.ah__badge {
  position: absolute; z-index: 2; width: 34%; right: -2%; bottom: 4%;
  animation: spin 22s linear infinite, rise .8s var(--ease) 1s both;
}
.ah__badge text { font: 500 13.5px var(--font-ui); letter-spacing: .17em; text-transform: uppercase; fill: var(--c-bordo); }
.ah__badge::before { content: none; }
@keyframes spin { to { rotate: 360deg; } }

.passions { position: absolute; inset: 0; z-index: 3; }
.passion {
  position: absolute; left: var(--x); top: var(--y);
  transform: translate3d(var(--px, 0), var(--py, 0), 0);
  transition: transform 1s var(--ease);
}
.passion__btn {
  --size: clamp(54px, 5vw, 72px);
  display: grid; place-items: center;
  width: var(--size); height: var(--size);
  border-radius: 50%;
  background: var(--c-white);
  border: 1px solid var(--c-text);              /* black outline, bordo icon */
  color: var(--c-bordo);
  cursor: var(--cursor-pointer);
  rotate: var(--r);
  animation:
    pop .7s cubic-bezier(.34, 1.56, .64, 1) calc(.6s + var(--i) * .09s) backwards,
    float calc(5s + var(--i) * .6s) ease-in-out calc(var(--i) * -.7s) infinite;
  transition: background-color .25s var(--ease), color .25s var(--ease), scale .35s cubic-bezier(.34, 1.56, .64, 1);
}
.passion--sm .passion__btn { --size: clamp(42px, 3.8vw, 54px); }
.passion__btn svg { width: 52%; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@keyframes pop { from { scale: 0; opacity: 0; } }
@keyframes float { 50% { translate: 0 -12px; rotate: calc(var(--r) * -1); } }

.passion__label {
  position: absolute; left: 50%; top: calc(100% + 8px);
  padding: 4px 12px; border-radius: var(--radius-pill);
  background: var(--c-bordo); color: var(--c-blue-light);
  font-size: .8125rem; white-space: nowrap;
  opacity: 0; transform: translate(-50%, -6px); pointer-events: none;
  transition: opacity .2s var(--ease), transform .25s var(--ease);
}
@media (hover: hover) {
  .passion:hover .passion__btn { scale: 1.18; background: var(--c-blue-light); }   /* same hover fill as the buttons */
  .passion:hover .passion__label { opacity: 1; transform: translate(-50%, 0); }
}
.passion__btn:focus-visible { outline: 3px solid var(--c-bordo); outline-offset: 4px; }
.passion:focus-within .passion__label { opacity: 1; transform: translate(-50%, 0); }
.passion__btn.is-burst { animation: burst .5s ease-out; }
@keyframes burst { 40% { scale: 1.35; background: var(--c-blue-light); } }


/* ==========================================================================
   2. STORY – metamorphosis
   ========================================================================== */
.story { padding-block: clamp(80px, 9vw, 160px) clamp(64px, 7vw, 120px); }
.story__grid {
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr;
  gap: clamp(40px, 7vw, 120px);
}
.story__stage {
  position: sticky; top: calc(var(--header-h) + 6vh);
  align-self: start;
}
.story__frame {
  position: relative; aspect-ratio: 1;
  border-radius: 50%;
  background: #EFF8FF;
}
.stage-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.stage {
  position: absolute; inset: 10%;
  width: 80%; height: 80%;
  opacity: 0; transform: scale(.7) rotate(-8deg);
  transition: opacity .55s var(--ease), transform .7s cubic-bezier(.34, 1.4, .64, 1);
  overflow: visible;
}
.stage.is-active { opacity: 1; transform: none; }
.stage * { stroke-linecap: round; stroke-linejoin: round; }

/* Same palette as the homepage butterfly: orange → coral → pink gradient,
   soft pink outlines (#f290a0), orange veins (#ee5f2a) and glow. */
.st-leaf { fill: #D4ECCB; stroke: #A8D39C; stroke-width: 2; }  /* pastel green leaf */
.st-vein { fill: none; stroke: #A8D39C; stroke-width: 3; }
.st-branch, .st-thread { fill: none; stroke: #f290a0; stroke-width: 3; stroke-opacity: .8; }
.st-egg { fill: url(#abSoft); stroke: #f290a0; stroke-width: 2.5; transform-origin: 120px 150px; }
.stage.is-active .st-egg { animation: wobble 2.2s ease-in-out infinite; }
@keyframes wobble { 25% { rotate: -6deg; } 75% { rotate: 6deg; } }
.st-shine { fill: #fff; opacity: .7; }
.st-spark { fill: none; stroke: #ff6a2c; stroke-width: 2.5; }
.stage.is-active .st-spark { animation: twinkle 1.8s ease-in-out infinite; }
@keyframes twinkle { 50% { opacity: .2; } }

.st-cater circle { fill: url(#abSoft); stroke: #f290a0; stroke-width: 2.5; }
.st-cater .st-head { fill: #ff6a2c; }
.stage.is-active .st-cater circle { animation: crawl 1.2s ease-in-out infinite; }
.st-cater circle:nth-child(2) { animation-delay: .1s !important; }
.st-cater circle:nth-child(3) { animation-delay: .2s !important; }
.st-cater circle:nth-child(4) { animation-delay: .3s !important; }
.st-cater circle:nth-child(5) { animation-delay: .4s !important; }
@keyframes crawl { 50% { translate: 0 -7px; } }
.st-eye { fill: #fff; }
.st-ant { fill: none; stroke: #ff5a20; stroke-width: 3; }
.st-code text { font: 700 26px var(--font-heading); fill: #f290a0; }
.stage.is-active .st-code text { animation: float-y 3s ease-in-out infinite; }
@keyframes float-y { 50% { translate: 0 -8px; } }

.st-chrysalis { fill: url(#abSoft); stroke: #f290a0; stroke-width: 2.5; }
.st-pod { transform-origin: 120px 40px; }
.stage.is-active .st-pod { animation: sway 3s ease-in-out infinite; }
@keyframes sway { 50% { rotate: 5deg; } }
.st-band { fill: none; stroke: #ee5f2a; stroke-width: 2; opacity: .55; }
.st-heart path { fill: #ff6a2c; }
.stage.is-active .st-heart { animation: beat 1.2s ease-in-out infinite; transform-origin: 184px 160px; }
@keyframes beat { 30% { scale: 1.2; } }

/* butterfly wings fold around the body (local origin 0,0), like on the homepage */
.st-w { transform-origin: 0 0; }
.stage.is-active .st-w { animation: flap 1.6s ease-in-out infinite; }
.stage.is-active .st-w--fast { animation-duration: .9s; }
@keyframes flap { 50% { transform: scaleX(.45); } }

.st-trail { fill: none; stroke: #f290a0; stroke-width: 3; stroke-dasharray: 2 12; }
.stage.is-active .st-trail { animation: dash 1.6s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -28; } }
.stage.is-active .st-fly { animation: fly-off 3.2s ease-in-out infinite; }
@keyframes fly-off { 50% { translate: -8px -12px; } }

.story__dots { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.story__dots span { width: 8px; height: 8px; border-radius: var(--radius-pill); background: var(--c-bordo-muted); opacity: .4; transition: width .4s var(--ease), opacity .4s; }
.story__dots span.is-active { width: 28px; opacity: 1; background: var(--c-bordo); }

/* steps + rail */
.story__steps { position: relative; margin: 0; padding-left: clamp(32px, 4vw, 64px); list-style: none; }
.story__rail { position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px; background: rgba(114, 20, 42, .12); border-radius: 2px; }
.story__rail-fill {
  position: absolute; left: 0; top: 0; width: 100%;
  height: calc(var(--progress, 0) * 100%);
  background: linear-gradient(var(--c-peach), #ff6a2c 60%, var(--c-bordo));
  border-radius: 2px;
}
.story__rail-bfly {
  position: absolute; left: 50%; top: calc(var(--progress, 0) * 100%);
  width: 22px; height: 22px; margin: -11px 0 0 -11px;
  background: radial-gradient(circle, #ff6a2c 0 30%, transparent 32%), radial-gradient(circle, rgba(255, 106, 44, .25) 0 60%, transparent 62%);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(254, 204, 166, .5);
}
.story__step {
  min-height: 62vh;
  display: flex; flex-direction: column; justify-content: center;
  padding-block: 24px;
  opacity: 1;            /* text stays #121F13 – no greyed-out steps */
  transform: translateX(16px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.story__step:first-of-type { min-height: 46vh; justify-content: flex-start; padding-top: 8vh; }
.story__step:last-child { min-height: 56vh; }
.story__step.is-active { opacity: 1; transform: none; }
/* .story__title uses .h3 (Poppins Regular 32) and .story__text .h5 (Inter Light 24) from content.txt */
.story__text { margin-top: 16px; max-width: 640px; }

/* ==========================================================================
   3. TOOLBOX
   ========================================================================== */

/* ---------- Tools: pinned band ----------
   .toolbox is made taller by about.js (row length + one screen).
   .toolbox__pin sticks under the header, so the page "stands still" while the
   row of tools moves in from the right; once the last one is in, the page
   scrolls on. The band copies the homepage skills carousel (light blue,
   Poppins Regular 32 px, muted grey). */
.toolbox { position: relative; }
.toolbox__pin {
  position: sticky; top: var(--header-h);
  height: calc(100svh - var(--header-h));
  display: flex; flex-direction: column; justify-content: center;
  gap: clamp(32px, 4vw, 64px);
  overflow: hidden;
}
.tools-band {
  display: flex; align-items: center;
  min-height: clamp(120px, 9vw, 170px);
  background: var(--c-band);
  overflow: hidden;
}
.tools-band__track {
  display: flex; align-items: center; flex: none;
  width: max-content;
  transform: translate3d(var(--rail-x, 0px), 0, 0);
  will-change: transform;
}
.tool-item {
  display: flex; align-items: center; gap: clamp(14px, 1.2vw, 22px);
  flex: none;
  padding-right: clamp(56px, 7.2vw, 137px);     /* same rhythm as the homepage carousel */
  color: var(--c-text-muted);
  font: 400 var(--fs-carousel)/1.5 var(--font-heading);
  white-space: nowrap;
}
.tool-item__logo { --s: clamp(36px, 2.8vw, 52px); flex: none; display: grid; place-items: center; width: var(--s); height: var(--s); }
.tool-item__logo img { display: block; max-width: none; min-width: 0; min-height: 0; }
.tool-item__logo--app img,
.tool-item__logo--contain img { width: 100%; height: 100%; object-fit: contain; }
/* Canva: the file is a wordmark, so it sits in a small white square (like an app icon) */
.tool-item__logo--wide { background: var(--c-white); border-radius: 18%; }   /* same size and corner radius as the Adobe icons, no shadow */
.tool-item__logo--wide img { width: 92%; height: auto; }
/* files with symbol + wordmark (Claude, Gemini, Jira): show only the symbol */
.tool-item__logo--mark img { height: var(--s); width: auto; aspect-ratio: var(--ar, 1); object-fit: cover; object-position: 0 50%; }

/* ==========================================================================
   4. OFF-SCREEN gallery
   ========================================================================== */
.offscreen { padding-block: clamp(64px, 7vw, 120px) clamp(96px, 9vw, 160px); background: var(--c-white); }
.offscreen__head { display: flex; flex-direction: column; gap: 32px; }
.offscreen__lead { margin-top: 16px; max-width: 760px; }

.polaroids {
  columns: 4 220px;
  column-gap: clamp(20px, 2.4vw, 36px);
}
.polaroid {
  
  break-inside: avoid;
  display: inline-block; width: 100%;
  margin-bottom: clamp(24px, 3vw, 44px);
  padding: 12px 12px 6px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(18, 31, 19, .08);   /* thin edge only – no heavy drop shadow */
  transform: rotate(var(--rot));
  transition: opacity .35s var(--ease), scale .35s var(--ease);   /* filter fade only, no hover motion */
  cursor: default;
  position: relative;
}
.polaroid::before {                         /* washi tape */
  content: ""; position: absolute; top: -10px; left: 50%; width: 72px; height: 22px;
  translate: -50% 0; rotate: calc(var(--rot) * -1.5);
  background: rgba(254, 204, 166, .75);
  -webkit-mask: linear-gradient(90deg, transparent 0 3px, #000 3px calc(100% - 3px), transparent 0);
}
.polaroid:nth-child(3n)::before { background: rgba(190, 222, 244, .8); }
.polaroid:nth-child(3n+1)::before { background: rgba(202, 207, 237, .85); }
.polaroid.is-hidden { opacity: 0; scale: .6; }
.polaroid[hidden] { display: none; }
.polaroid__img { overflow: hidden; background: var(--c-band); pointer-events: none; }
.polaroid__img img { width: 100%; height: auto; }
.polaroid__cap { padding: 10px 4px 6px; text-align: center; font: 300 var(--fs-ui)/var(--lh) var(--font-ui); color: #121F13; pointer-events: none; }

/* reveal of the polaroids: drop onto the table */
.polaroid { opacity: 0; }
.polaroids.is-in .polaroid { animation: drop .7s cubic-bezier(.34, 1.4, .64, 1) calc(var(--n, 0) * .07s) backwards; opacity: 1; }
@keyframes drop { from { opacity: 0; transform: translateY(-40px) rotate(calc(var(--rot) * 3)) scale(1.1); } }
.polaroids.is-in .polaroid.is-hidden { opacity: 0; }


/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .ah { min-height: 0; }
  .ah__inner { grid-template-columns: 1fr; }
  .ah__text { padding-left: 0; }
  .ah__visual { width: min(100%, 380px); margin: 16px auto 40px; }


  .story__grid { grid-template-columns: 1fr; gap: 0; }
  .story__stage {
    top: var(--header-h); z-index: 2;
    display: flex; align-items: center; gap: 16px;
    margin-inline: calc(-1 * var(--gutter)); padding: 12px var(--gutter);
    background: rgba(255, 255, 255, .92);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  }
  .story__frame { width: 120px; flex: none; }
  .story__dots { margin-top: 0; }
  .story__step, .story__step:first-of-type, .story__step:last-child { min-height: 0; padding-block: 48px; padding-top: 48px; }

}
@media (max-width: 560px) {
  .polaroids { columns: 2 140px; }
  .polaroid { padding: 8px 8px 4px; }
  .polaroid__cap { font-size: .875rem; }
  .filters { gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .ah *, .story *, .toolbox *, .offscreen * { animation: none !important; }
  [data-reveal], .polaroid { opacity: 1 !important; transform: none; scale: 1; }
  .toolbox__pin { position: static; height: auto; padding-block: 80px; }
  .tools-band { overflow-x: auto; }
  .tools-band__track { transform: none; padding-inline: var(--gutter); }
  .stage { transition: opacity .01s; }
  .about-page .marker { background-size: 100% 100%; transition: none; }
}
