/* =====================================================================
   About page (Figma 185:6590). Uses css/project.css for the header, sticky bar,
   scale (1 Figma px = 1p) and scroll-in animation, and css/footer.css for the footer.
   The work strip, testimonials and tools below are copies of the landing page's
   (index.html); if you change their look there, change it here too.
   ===================================================================== */

/* ---------- Intro: text on the left, photo + smiley on the right ---------- */
/* 1006p column centred on the 1440 canvas, 95p under the header */
.about-hero {
  position: relative; width: calc(1006 * var(--p)); height: calc(563 * var(--p));
  margin: calc(95 * var(--p)) auto 0;
}
.about-hero__text { width: calc(602.6 * var(--p)); }
.about-hero__eyebrow {
  font-weight: 700; font-size: calc(16 * var(--p)); line-height: calc(22.895 * var(--p));
  letter-spacing: calc(1.12 * var(--p)); color: #939393; text-transform: uppercase;
}
.about-hero__title {
  position: relative; isolation: isolate; margin-top: calc(2 * var(--p));
  font-weight: 800; font-size: calc(45 * var(--p)); line-height: calc(54 * var(--p));
  letter-spacing: calc(-0.9 * var(--p)); color: #222326;
}
.about-hero__title > span { display: block; }
/* green line under "I'm Cat." (same stroke as the landing page); draws itself in after the title */
.about-hero__title .mark { position: relative; font-style: normal; display: inline-block; }
.about-hero__title .underline {
  position: absolute; z-index: -1; display: block; max-width: none; pointer-events: none;
  left: -6.5%; top: .73em; width: 112%; height: .665em;
  clip-path: inset(0 100% 0 0); transition: clip-path 1.1s cubic-bezier(.65,0,.35,1) .9s;
}
.about-hero__title.is-in .underline, html:not(.js) .about-hero__title .underline { clip-path: inset(0 0 0 0); }

.about-hero__lede {
  width: calc(523.4 * var(--p)); margin-top: calc(20 * var(--p));
  font-size: calc(16 * var(--p)); line-height: calc(26 * var(--p)); color: #3d4047;
}

/* Buttons: lime, black, outlined (Figma 185:6988) */
.about-hero__buttons { display: flex; gap: calc(12 * var(--p)); margin-top: calc(33.5 * var(--p)); }
.btn {
  display: inline-flex; align-items: center; border-radius: 999px; white-space: nowrap;
  padding: calc(14 * var(--p) - 1.5px) calc(22 * var(--p) - 1.5px); border: 1.5px solid transparent;
  font-weight: 500; font-size: calc(14 * var(--p)); line-height: calc(17 * var(--p));
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.btn--primary { background: #c9fa75; border-color: #c9fa75; color: #222326; }
.btn--dark    { background: #1f1f1f; border-color: #1f1f1f; color: #fff; }
.btn--outline { border-color: #5b5e66; color: #5b5e66; }
.btn--primary:hover { background: #bbf15c; border-color: #bbf15c; }
.btn--dark:hover    { background: #fff; color: #1f1f1f; }
.btn--outline:hover { background: #222326; border-color: #222326; color: #fff; }
.btn:focus-visible { outline: 2px solid #222326; outline-offset: 3px; }

/* Photo: grey card tilted 2°, black-and-white photo inside */
.about-hero__photo {
  position: absolute; left: calc(633.7 * var(--p)); top: calc(66.3 * var(--p));
  width: calc(315.3 * var(--p)); height: calc(346.5 * var(--p));
  display: grid; place-items: center;
}
.about-hero__card {
  position: relative; overflow: clip; width: calc(303.76 * var(--p)); height: calc(336.08 * var(--p));
  border-radius: calc(18.1 * var(--p)); background: #e3e5ea; rotate: 2deg;
  transition: rotate .6s cubic-bezier(.22,1,.36,1);
}
.about-hero__card img {
  position: absolute; max-width: none; width: 194.42%; height: 149.27%; left: -47.76%; top: -38.85%;
  object-fit: cover; rotate: 1.91deg; filter: grayscale(1);
  transition: filter .6s ease;
}
.about-hero__photo:hover .about-hero__card { rotate: 0deg; }
.about-hero__photo:hover .about-hero__card img { filter: grayscale(0); }   /* colour comes back on hover */

/* Smiley badge on the photo's corner: pops in, then turns a little on hover */
.about-hero__smiley {
  position: absolute; left: calc(890.8 * var(--p)); top: calc(354.8 * var(--p));
  width: calc(78.65 * var(--p)); height: calc(78.65 * var(--p)); border-radius: 50%;
  display: grid; place-items: center; background: #c4ff42; rotate: -15deg;
  transition: rotate .6s cubic-bezier(.22,1,.36,1);
}
.about-hero__smiley img { width: calc(61.96 * var(--p)); height: calc(61.96 * var(--p)); }
.about-hero__photo:hover ~ .about-hero__smiley, .about-hero__smiley:hover { rotate: 10deg; }
.js .about-hero__smiley[data-reveal] { transform: scale(0); transition: transform .7s cubic-bezier(.34,1.56,.64,1), opacity .3s ease; transition-delay: var(--d, 0s); }
.js .about-hero__smiley[data-reveal].is-in { transform: none; }

/* ---------- Selected experience ---------- */
.experience { width: calc(1006 * var(--p)); margin: 0 auto; }
.experience__title {
  font-weight: 500; font-size: calc(24 * var(--p)); line-height: calc(28 * var(--p));
  letter-spacing: calc(-0.48 * var(--p)); color: #222326; margin-bottom: calc(12 * var(--p));
}
.experience__list { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid #d5d8de; }
.job {
  display: flex; gap: calc(24 * var(--p)); padding: calc(26 * var(--p)) 0;
  border-top: 1px solid #d5d8de; color: #5b5e66;
}
.job + .job { margin-top: calc(12 * var(--p)); }
.job__years { flex-shrink: 0; width: calc(200 * var(--p)); font-size: calc(16 * var(--p)); line-height: calc(20 * var(--p)); }
.job__info { flex: 1; display: flex; flex-direction: column; gap: calc(6 * var(--p)); }
.job__head { font-size: calc(18 * var(--p)); line-height: calc(22 * var(--p)); }
.job__company { font-weight: 700; color: #222326; margin-right: calc(10 * var(--p)); }
.job__desc { font-size: calc(16 * var(--p)); line-height: 1.5; }
.experience__more {
  display: block; width: max-content; margin: calc(15.5 * var(--p)) 0 0 auto;
  font-weight: 500; font-size: calc(16 * var(--p)); line-height: 1.5; color: #262626;
  text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1px;
  transition: text-decoration-color .25s ease, color .25s ease;
}
.experience__more:hover { color: #000; text-decoration-color: #c9fa75; text-decoration-thickness: 2px; }

/* =====================================================================
   Copied from the landing page: work strip, testimonials, tools
   ===================================================================== */

/* Self-scrolling rows (strip and tools). JS copies the items once so the loop is seamless;
   the row pauses while hovered. With reduced motion it is a plain sideways-scrolling row. */
.marquee { overflow-x: clip; }
.marquee__track {
  display: flex; width: max-content; gap: var(--gap); padding-right: var(--gap);
  animation: marquee var(--dur, 60s) linear infinite;
}
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; scrollbar-width: none; }
  .marquee__track { animation: none; }
}

/* Work strip: 320×240 tiles, 103px apart in the About design (Figma 185:6832) */
.strip { --gap: calc(103 * var(--p)); margin-top: calc(113 * var(--p)); }
.strip__card {
  position: relative; margin: 0; flex-shrink: 0; overflow: clip;
  width: calc(320 * var(--p)); height: calc(240 * var(--p));
  border-radius: calc(8 * var(--p)); background: #e9e9ee;
}
/* draggable (js/about.js moves it): open hand, closed hand while pulling; vertical swipes still scroll the page */
.strip.is-draggable { cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.strip.is-draggable .marquee__track { animation: none; will-change: transform; }
.strip.is-dragging { cursor: grabbing; }
.strip.is-dragging .strip__card::after, .strip.is-dragging .strip__info { opacity: 0; }   /* no captions while pulling */
.strip__card img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
/* hover (Figma 160:4781): a gradient from clear to 60% black, then client / year and the work in white, bottom left */
.strip__card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 7.2%, rgba(0,0,0,.6) 91%);
  opacity: 0; transition: opacity .45s ease;
}
.strip__info {
  position: absolute; z-index: 1; left: calc(20.69 * var(--p)); bottom: calc(20.57 * var(--p)); color: #fff;
  opacity: 0; transform: translateY(calc(10 * var(--p)));
  transition: opacity .45s ease, transform .6s cubic-bezier(.22,1,.36,1);
}
.strip__meta {
  display: block; font-weight: 500; font-size: calc(14 * var(--p)); line-height: calc(22.895 * var(--p));
  letter-spacing: calc(.98 * var(--p)); text-transform: uppercase;
}
.strip__what {
  display: block; width: calc(258.4 * var(--p)); margin-top: calc(-2.37 * var(--p));
  font-size: calc(16 * var(--p)); line-height: calc(29 * var(--p)); letter-spacing: calc(-.32 * var(--p));
}
.strip__card:hover::after, .strip__card:hover .strip__info { opacity: 1; }
.strip__card:hover .strip__info { transform: none; }
@media (prefers-reduced-motion: reduce) { .strip__info { transform: none; } }

/* Testimonials */
.connections { margin-top: calc(181 * var(--p)); }
.connections__title {
  margin: 0; text-align: center; color: var(--ink);
  font-weight: 800; font-size: calc(50.01 * var(--p)); line-height: calc(54 * var(--p)); letter-spacing: -0.02em;
}
.connections__title span { display: block; }
.connections__title .mark { position: relative; font-style: normal; display: inline-block; isolation: isolate; }
.connections__title .underline {
  position: absolute; z-index: -1; display: block; max-width: none; pointer-events: none;
  left: -0.41%; top: 0.44em; width: 96.59%; height: 0.82em;
  clip-path: inset(0 100% 0 0); transition: clip-path 1.1s cubic-bezier(.65,0,.35,1) .25s;
}
.connections__title.is-in .underline { clip-path: inset(0 0 0 0); }

/* 77px under the title in Figma; 10px of it is padding so the card shadows aren't clipped */
.quotes {
  --gap: calc(38 * var(--p)); margin-top: calc(67 * var(--p)); padding: calc(10 * var(--p)) 0 calc(24 * var(--p));
  position: relative;   /* card positions are measured from the row */
  overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; outline: none;
}
.quotes::-webkit-scrollbar { display: none; }
/* testimonials: open hand to pull the row with the mouse, closed hand while pulling */
@media (hover: hover) and (pointer: fine) {
  .quotes { cursor: grab; }
  .quotes.is-grabbing { cursor: grabbing; user-select: none; -webkit-user-select: none; }
}
.quotes__track {
  display: flex; align-items: flex-start; gap: var(--gap); width: max-content;
  padding-inline: calc(50vw - 372.9 * var(--p) / 2);   /* lets the first and last card sit in the middle */
}
.quote {
  scroll-snap-align: center;
  flex-shrink: 0; width: calc(372.9 * var(--p)); margin: 0;
  display: flex; flex-direction: column; justify-content: center; gap: calc(30 * var(--p));
  padding: calc(37 * var(--p)) calc(18 * var(--p));
  background: #fff; border: 1px solid #eff0f2; border-radius: calc(8 * var(--p));
  box-shadow: 0 6px 10px rgba(0,0,0,.07);
}
.quote blockquote { margin: 0; color: #171717; font-weight: 400; font-size: calc(16 * var(--p)); line-height: calc(29 * var(--p)); }
.quote figcaption { display: flex; flex-direction: column; }
.quote__name { color: #171717; font-weight: 700; font-size: calc(16 * var(--p)); line-height: calc(29 * var(--p)); }
.quote__role { color: #6c6a6a; font-weight: 400; font-size: calc(11 * var(--p)); line-height: calc(12 * var(--p)); }
/* long thin arrows under the row (after studio-novembre.com) */
.quotes-nav { display: flex; justify-content: center; gap: calc(90 * var(--p)); margin-top: calc(36 * var(--p)); }
.quotes-nav__btn {
  padding: calc(10 * var(--p)) 0; border: 0; background: none; color: var(--ink); cursor: pointer;
}
.quotes-nav__btn svg {
  display: block; width: calc(35 * var(--p)); height: calc(12 * var(--p)); overflow: visible;
  fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round;
  transition: translate .4s cubic-bezier(.22,1,.36,1);
}
.quotes-nav__btn--prev svg { rotate: 180deg; }
.quotes-nav__btn:hover svg { translate: 4px 0; }
.quotes-nav__btn--prev:hover svg { translate: -4px 0; }
.quotes-nav__btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

/* Tools */
.tools {
  margin-top: calc(67 * var(--p));
  background: #f3f4f6; padding: calc(32 * var(--p)) 0;
  display: flex; flex-direction: column; gap: calc(26 * var(--p));
}
.tools__title {
  margin: 0; text-align: center; text-transform: uppercase; color: #939393;
  font-weight: 500; font-size: calc(12 * var(--p)); line-height: calc(22.895 * var(--p)); letter-spacing: calc(0.84 * var(--p));
}
.tools__list { --gap: calc(16 * var(--p)); }
.tools__list ul { margin: 0; padding: 0; list-style: none; align-items: center; }
.tool {
  flex-shrink: 0; display: flex; align-items: center; gap: calc(10 * var(--p));
  height: calc(50 * var(--p)); padding: 0 calc(20 * var(--p));
  background: #fdfdfd; border: 1px solid #e6e6e7; border-radius: 100px;
  color: #4d4d4d; font-weight: 500; font-size: calc(17 * var(--p)); line-height: calc(18 * var(--p));
  letter-spacing: -0.02em; white-space: nowrap;
}
.tool img { display: block; width: calc(var(--w, 24) * var(--p)); height: calc(var(--h, 24) * var(--p)); }

/* Footer sits right under the tools band */
.site-footer { margin-top: 0; }

@media (prefers-reduced-motion: reduce) {
  .about-hero__title .underline, .connections__title .underline { clip-path: none; transition: none; }
  .js .about-hero__smiley[data-reveal] { transform: none; }
}

/* =====================================================================
   Phones (≤767px): photo on top, text under it, everything stacked
   ===================================================================== */
@media (max-width: 767px) {
  .about-hero { width: auto; height: auto; margin: 40px 24px 0; display: flex; flex-direction: column; }
  .about-hero__photo { position: relative; order: -1; left: auto; top: auto; width: 240px; height: 264px; margin: 0 auto 40px 8px; }
  .about-hero__card { width: 230px; height: 254px; border-radius: 14px; }
  .about-hero__smiley { left: 210px; top: 220px; width: 64px; height: 64px; }
  .about-hero__smiley img { width: 50px; height: 50px; }
  .about-hero__text { width: auto; }
  .about-hero__title { font-size: 34px; line-height: 40px; letter-spacing: -0.6px; }
  .about-hero__title > span { display: inline; }
  .about-hero__lede { width: auto; font-size: 16px; line-height: 26px; }
  .about-hero__buttons { flex-wrap: wrap; gap: 10px; margin-top: 28px; }
  .btn { font-size: 14px; line-height: 17px; padding: 12.5px 18.5px; }

  .experience { width: auto; margin: 72px 24px 0; }
  .experience__title { font-size: 22px; }
  .job { flex-direction: column; gap: 8px; padding: 20px 0; }
  .job + .job { margin-top: 0; }
  .job__years { width: auto; font-size: 14px; }
  .job__head { font-size: 17px; line-height: 24px; }
  .experience__more { margin: 16px 0 0; font-size: 15px; }

  .strip { --gap: 16px; margin-top: 72px; }
  .strip__card { width: 260px; height: 195px; }
  .connections { margin-top: 88px; }
  .connections__title { font-size: 32px; line-height: 36px; padding: 0 24px; }
  .connections__title span { display: inline; }
  .quotes { --gap: 16px; margin-top: 40px; }
  .quotes__track { padding-inline: calc(50vw - 150px); }
  .quotes-nav { gap: 64px; margin-top: 20px; }
  .quotes-nav__btn svg { width: 28px; height: 10px; }
  .quote { width: 300px; padding: 28px 20px; gap: 24px; }
  .quote blockquote { font-size: 15px; line-height: 25px; }
  .tools { margin-top: 48px; }
  .tool { height: 44px; padding: 0 16px; font-size: 15px; }
}
