/* ===== About page =====
 * Builds on css/styles.css tokens (fonts, tones, buttons, crumbs, nav, footer).
 * Sections: hero, manifesto, story, principles, capabilities, trusted-by, closing CTA.
 * Also loaded by Private Label, Solutions and Our Work, which reuse these sections.
 */

/* Reveal for [data-about] pages lives in css/pages.css */

/* Shared headline treatment: display word + toned-back connector */
.ahero__title em,
.story__title em,
.principles__title em,
.roof__title em,
.acta__title em {
  font-family: var(--font-display);
  font-weight: var(--font-display-weight);
  font-size-adjust: var(--font-display-adjust);
  text-transform: uppercase;
  color: var(--accent-ink);
}
.principles .eyebrow i,
.acta .eyebrow i {
  display: block;
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

/* ===== Hero ===== */
.ahero {
  padding: calc(var(--nav-height) + var(--space-2xl)) var(--gutter) var(--space-section);
  background: var(--surface-deep-bg);
  color: var(--color-ink);
  isolation: isolate;
}
.ahero__glow {
  position: absolute;
  z-index: -1;
  top: -25%;
  left: -15%;
  width: 70vw;
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(28, 25, 21, 0.09), transparent);
  pointer-events: none;
}
.ahero__inner {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: var(--space-2xl);
  max-width: 1320px;
  margin: 0 auto;
}
.ahero__title {
  display: grid;
  justify-items: start;
  font-size: var(--fs-display);
  line-height: 0.94;
  letter-spacing: -0.03em;
}
/* Two-column heroes: keep the headline clear of the image column */
@media (min-width: 810px) {
  .ahero__title {
    font-size: min(var(--fs-display), 7.6vw);
  }
  .ahero__title--long {
    font-size: min(var(--fs-display), 5.2vw, 76px);
  }
}
.ahero__title .display {
  font-weight: var(--font-wordmark-weight);
  line-height: inherit;
  letter-spacing: inherit;
}
.ahero__title em {
  white-space: nowrap;
  font-weight: var(--font-wordmark-weight);
  color: var(--accent-ink);
}
.ahero__lede {
  max-width: 540px;
  margin-top: var(--space-sm);
  font-size: var(--fs-lede);
  line-height: 1.65;
  color: rgba(28, 25, 21, 0.82);
}
.ahero__lede em {
  font-weight: 600;
  color: var(--color-ink);
}
.ahero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 32px;
  margin-top: var(--space-md);
}

.ahero__media {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 460px;
  padding-bottom: 48px;
}
.ahero__frame {
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 4px;
}
.ahero__frame img,
.ahero__inset img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ahero__inset {
  position: absolute;
  bottom: 0;
  left: -18%;
  width: 38%;
  aspect-ratio: 3 / 4;
  margin: 0;
  padding: 18px 12px 10px;
  border: 1px solid rgba(28, 25, 21, 0.11);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.62);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 40px 80px -36px rgba(70, 50, 28, 0.4);
}
.ahero__inset img {
  object-fit: contain;
}
.ahero__caption {
  position: absolute;
  top: 20px;
  right: -14px;
  display: flex;
  gap: 10px;
  writing-mode: vertical-rl;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
  color: rgba(28, 25, 21, 0.7);
  translate: 100% 0;
}
.ahero__caption span {
  color: var(--color-ink);
}

/* ===== Manifesto ===== */
.manifesto {
  padding: var(--space-section) var(--gutter);
  background: var(--about-bg);
  color: var(--color-ink);
}
.manifesto__inner {
  max-width: 1120px;
  margin: 0 auto;
}
.manifesto__text {
  margin-top: var(--space-md);
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}
/* Words start faint; js sets --p (0–1) per word as the paragraph scrolls */
.manifesto__text .w {
  color: rgba(17, 17, 17, calc(0.16 + var(--p, 1) * 0.84));
  transition: color 0.2s linear;
}
.manifesto__sign {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: var(--space-md);
  font-size: var(--label-size);
  font-weight: 600;
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
  color: var(--color-ink-soft);
}
.manifesto__sign i {
  width: 40px;
  height: 1px;
  background: currentColor;
}

/* ===== Story ===== */
.story {
  padding: 0 var(--gutter) var(--space-section);
  background: var(--color-white);
}
.story.section {
  overflow: clip; /* keep sticky working */
}
.story__inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: var(--space-2xl);
  max-width: 1320px;
  margin: 0 auto;
}
.story__sticky {
  position: sticky;
  top: 0;
  display: grid;
  align-content: center;
  gap: 20px;
  height: 100vh;
  height: 100svh;
  padding: calc(var(--nav-height) + 16px) 0 32px;
}
.story__window {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: calc(100svh - var(--nav-height) - 110px);
  overflow: hidden;
  border-radius: 4px;
  background: var(--tone-50);
}
.story__shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: inset(100% 0 0 0);
  scale: 1.08;
  transition: clip-path 1.1s var(--ease-out), scale 1.6s var(--ease-out);
}
.story__shot.is-active {
  z-index: 1;
  clip-path: inset(0 0 0 0);
  scale: 1;
}
.story__shot.was-active {
  clip-path: inset(0 0 0 0);
}
.story__meter {
  display: flex;
  align-items: center;
  gap: 20px;
}
.story__count {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: 0.08em;
}
.story__roll {
  display: grid;
  height: 20px;
  overflow: hidden;
}
.story__roll span {
  display: block;
  height: 20px;
  translate: 0 calc(var(--step, 0) * -100%);
  transition: translate 0.7s var(--ease-out);
}
.story__count i {
  color: var(--accent-ink);
}
.story__bar {
  flex: 1;
  height: 1px;
  background: rgba(0, 0, 0, 0.12);
}
.story__bar span {
  display: block;
  height: 100%;
  background: var(--color-ink);
  transform-origin: left;
  scale: var(--progress, 0) 1;
}

.story__head {
  padding-top: var(--space-section);
}
.story__head .eyebrow {
  margin-bottom: var(--space-sm);
}
.story__title {
  font-size: var(--fs-h1);
  line-height: 0.98;
  letter-spacing: -0.02em;
}
.story__title .display {
  line-height: inherit;
  letter-spacing: inherit;
}
.chapters {
  margin: var(--space-lg) 0 0;
  padding: 0;
  list-style: none;
}
.chapter {
  display: grid;
  align-content: center;
  gap: 16px;
  min-height: 62svh;
  padding: 48px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  opacity: 0.28;
  transition: opacity 0.6s ease;
}
.chapter.is-current,
.story:not(.is-live) .chapter {
  opacity: 1;
}
.chapter:last-child {
  min-height: 50svh;
}
.chapter__num {
  font-size: var(--label-size);
  font-weight: 600;
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
  color: var(--accent-ink);
}
.chapter__title {
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.chapter__text {
  max-width: 480px;
  font-size: var(--fs-lede);
  line-height: 1.7;
  color: var(--color-ink-soft);
}

/* ===== Principles ===== */
.principles {
  padding: var(--space-section) var(--gutter);
  background: var(--surface-deep-bg);
  color: var(--color-ink);
}
.principles__inner {
  max-width: 1320px;
  margin: 0 auto;
}
.principles__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
  grid-template-areas: 'eyebrow eyebrow' 'title lede';
  align-items: end;
  gap: 24px 48px;
}
.principles__head .eyebrow {
  grid-area: eyebrow;
  margin-bottom: 8px;
}
.principles__title {
  grid-area: title;
  font-size: var(--fs-h1);
  line-height: 0.98;
  letter-spacing: -0.02em;
}
.principles__title .display {
  font-weight: var(--font-wordmark-weight);
  line-height: inherit;
  letter-spacing: inherit;
}
.principles__title em {
  font-weight: var(--font-wordmark-weight);
  color: var(--accent-ink);
}
.principles__lede {
  grid-area: lede;
  font-size: var(--fs-lede);
  line-height: 1.65;
  color: rgba(28, 25, 21, 0.7);
}

.pgrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: var(--space-xl) 0 0;
  padding: 0;
  list-style: none;
}
.pcard {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 14px;
  min-height: 380px;
  padding: var(--space-sm);
  overflow: hidden;
  border: 1px solid rgba(28, 25, 21, 0.1);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.6);
  isolation: isolate;
  transition: border-color 0.5s ease, color 0.5s ease;
}
/* White fill rises from the bottom on hover */
.pcard::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--color-ink);
  clip-path: inset(100% 0 0 0);
  transition: clip-path 0.7s var(--ease-out);
}
.pcard:hover {
  border-color: var(--color-ink);
  color: var(--color-white);
}
.pcard:hover::before {
  clip-path: inset(0 0 0 0);
}
.pcard__num {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  opacity: 0.5;
}
.pcard__icon {
  width: 44px;
  height: 44px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
  stroke-linejoin: round;
  stroke-linecap: round;
  transition: translate 0.7s var(--ease-out);
}
.pcard:hover .pcard__icon {
  translate: 0 -6px;
}
.pcard__title {
  font-family: var(--font-display);
  font-size: var(--fs-h5);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.pcard__text {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(28, 25, 21, 0.7);
  transition: color 0.5s ease;
}
.pcard:hover .pcard__text {
  color: rgba(255, 255, 255, 0.72);
}

/* ===== Capabilities ===== */
.roof {
  padding: var(--space-section) var(--gutter);
  background: var(--surface-soft-bg);
  color: var(--color-ink);
}
.roof__inner {
  max-width: 1320px;
  margin: 0 auto;
}
.roof__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
  align-items: end;
  gap: 32px 48px;
}
.roof__head .eyebrow {
  margin-bottom: var(--space-sm);
}
.roof__title {
  font-size: var(--fs-h1);
  line-height: 0.98;
  letter-spacing: -0.02em;
}
.roof__title .display {
  line-height: inherit;
  letter-spacing: inherit;
}
.roof__lede {
  font-size: var(--fs-lede);
  line-height: 1.65;
  color: var(--color-ink-soft);
}

.crafts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: var(--space-xl) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(0, 0, 0, 0.14);
  border-left: 1px solid rgba(0, 0, 0, 0.14);
}
.craft {
  position: relative;
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 210px;
  padding: var(--space-sm);
  border-right: 1px solid rgba(0, 0, 0, 0.14);
  border-bottom: 1px solid rgba(0, 0, 0, 0.14);
  transition: background-color 0.4s ease;
}
.craft:hover {
  background: var(--color-white);
}
.craft span {
  margin-bottom: auto;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--accent-ink);
}
.craft__icon {
  width: 34px;
  height: 34px;
  margin-top: var(--space-sm);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
  stroke-linejoin: round;
  stroke-linecap: round;
  transition: translate 0.7s var(--ease-out);
}
.craft:hover .craft__icon {
  translate: 0 -4px;
}
.craft h3 {
  margin-top: var(--space-lg);
  font-family: var(--font-display);
  font-size: var(--fs-h5);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.craft__icon + h3 {
  margin-top: 10px;
}
.craft p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--color-ink-soft);
}
.craft::after {
  content: '';
  position: absolute;
  left: -1px;
  right: -1px;
  bottom: -1px;
  height: 2px;
  background: var(--color-ink);
  transform-origin: left;
  scale: 0 1;
  transition: scale 0.6s var(--ease-out);
}
.craft:hover::after {
  scale: 1 1;
}

/* ===== Trusted by ===== */
.trusted {
  padding: var(--space-xl) 0;
  background: var(--surface-sand);
  color: var(--color-ink);
  border-bottom: 1px solid var(--color-divider);
}
.trusted__label {
  margin-bottom: var(--space-sm);
  padding: 0 var(--gutter);
  font-size: var(--label-size);
  font-weight: 600;
  letter-spacing: var(--label-tracking);
  text-align: center;
  text-transform: uppercase;
  color: rgba(28, 25, 21, 0.7);
}
.trusted__marquee {
  display: flex;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.trusted__track {
  display: flex;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  animation: trusted-scroll 32s linear infinite;
}
.trusted__marquee:hover .trusted__track {
  animation-play-state: paused;
}
.trusted__track li {
  display: flex;
  align-items: center;
  font-size: var(--fs-h1);
  font-weight: var(--font-wordmark-weight);
  color: rgba(28, 25, 21, 0.9);
}
.trusted__track li::after {
  content: '';
  width: 10px;
  height: 10px;
  margin: 0 var(--space-lg);
  border: 1px solid rgba(28, 25, 21, 0.4);
  rotate: 45deg;
}
@keyframes trusted-scroll {
  to {
    translate: -100% 0;
  }
}

/* ===== Closing CTA ===== */
.acta {
  display: grid;
  place-items: center;
  min-height: clamp(520px, 80vh, 760px);
  padding: var(--space-section) var(--gutter);
  background: var(--surface-sand);
  color: var(--color-ink);
  text-align: center;
  isolation: isolate;
}
.acta__bg {
  position: absolute;
  z-index: -1;
  inset: 0;
  margin: 0;
}
.acta__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(0.9) brightness(1.08);
}
.acta__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  /* Ivory veil keeps the photo as texture behind ink type */
  background: radial-gradient(60% 70% at 50% 50%, rgba(250, 247, 242, 0.82), rgba(242, 236, 227, 0.96));
}
.acta__inner {
  display: grid;
  justify-items: center;
  max-width: 900px;
}
.acta__title {
  margin-top: var(--space-sm);
  font-size: var(--fs-display);
  line-height: 0.96;
  letter-spacing: -0.03em;
}
.acta__title .display {
  font-weight: var(--font-wordmark-weight);
  line-height: inherit;
  letter-spacing: inherit;
}
.acta__title em {
  font-weight: var(--font-wordmark-weight);
  color: var(--accent-ink);
}
.acta__lede {
  max-width: 460px;
  margin-top: 24px;
  font-size: var(--fs-lede);
  line-height: 1.65;
  color: rgba(28, 25, 21, 0.82);
}
.acta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px 32px;
  margin-top: var(--space-md);
}

/* ===== Motion preferences ===== */
@media (prefers-reduced-motion: reduce) {
  .trusted__track {
    animation: none;
  }
  .trusted__marquee {
    flex-wrap: wrap;
    justify-content: center;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .trusted__track[aria-hidden] {
    display: none;
  }
  .trusted__track {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 12px;
  }
  .story__shot,
  .chapter {
    transition: none;
  }
}

/* ===== Tablet ===== */
@media (max-width: 1199px) {
  .pgrid,
  .crafts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pcard {
    min-height: 300px;
  }
  .ahero__caption {
    display: none;
  }
}

/* ===== Mobile ===== */
@media (max-width: 809px) {
  .ahero__title em {
    white-space: normal;
  }
  .ahero__inner,
  .story__inner,
  .principles__head,
  .roof__head {
    grid-template-columns: minmax(0, 1fr);
  }
  .principles__head {
    grid-template-areas: 'eyebrow' 'title' 'lede';
  }
  .ahero__media {
    justify-self: end;
    width: 86%;
    max-width: 380px;
  }
  .ahero__inset {
    left: -14%;
  }

  /* Story: image scrolls inline above the chapters instead of sticking */
  .story__visual {
    display: none;
  }
  .story__head {
    padding-top: clamp(80px, 18vw, 120px);
  }
  .chapter {
    min-height: 0;
    padding: 36px 0;
    opacity: 1;
  }
  .chapter:last-child {
    min-height: 0;
  }

  .pgrid,
  .crafts {
    grid-template-columns: minmax(0, 1fr);
  }
  .pcard {
    min-height: 0;
    grid-template-rows: auto;
  }
  .pcard__icon {
    margin: 8px 0 16px;
  }
  .craft {
    min-height: 0;
    grid-template-columns: 40px minmax(0, 1fr);
    column-gap: 12px;
  }
  .craft span {
    grid-row: span 3;
    margin: 4px 0 0;
  }
  .craft__icon {
    width: 28px;
    height: 28px;
    margin-top: 0;
  }
  .craft h3,
  .craft__icon + h3 {
    margin-top: 0;
  }
}

/* Inset holding a full-bleed photo instead of a cut-out bottle */
.ahero__inset--photo {
  padding: 0;
  overflow: hidden;
}
.ahero__inset--photo img {
  object-fit: cover;
}
