/* ═══════════════════════════════════════════════════════════════
   brasa — about.css
   The path — full-bleed hero, wordmark vertical on the left edge.
   ═══════════════════════════════════════════════════════════════ */

html.about-page body {
  padding-top: 0;
}

/* Header logo slides in as soon as scrolling starts */
.about-page .header .logo {
  opacity: 0;
  visibility: hidden;
  transform: translateX(-12px);
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.45s ease, color 0.4s ease;
}

.about-page .header.header--logo-visible .logo {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
}

.about-page .header.header--menu-open .logo {
  opacity: 0;
  visibility: hidden;
}

/* Edge wordmark slides up and out the moment we scroll */
.about-hero__wordmark {
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
}

.about-hero__wordmark--hidden {
  transform: translateY(-100dvh) rotate(90deg);
  opacity: 0;
  pointer-events: none;
}

.about-hero {
  --hero-control-inset: clamp(32px, 4vh, 48px);

  position: relative;
  width: 100%;
  min-height: 100dvh;
  margin-top: 0;
  overflow: hidden;
  background: #1B1B1B;
}

.about-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.about-hero__media picture,
.about-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 82%;
}

.about-hero__media picture {
  position: absolute;
  inset: 0;
}

/* Scrim — light left edge so the white wordmark reads over the photo */
.about-hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(15, 12, 10, 0.38) 0%,
    rgba(15, 12, 10, 0.12) 14%,
    rgba(15, 12, 10, 0.05) 40%,
    rgba(15, 12, 10, 0.18) 100%
  );
  pointer-events: none;
}

/* Vertical wordmark — top-left corner, flush edge, reading downward */
.about-hero__wordmark {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  margin: 0;
  padding: 0;
  transform: rotate(90deg);
  transform-origin: top left;
  translate: 0.86em 0;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: clamp(92px, 16vw, 320px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: lowercase;
  color: var(--color-white);
  pointer-events: none;
}

.about-hero__cta {
  position: absolute;
  bottom: var(--hero-control-inset);
  right: var(--hero-control-inset);
  left: auto;
  z-index: 10;
}

.about-hero__cta.btn-ink {
  color: #1B1B1B;
  background: var(--color-white);
  border-color: var(--color-white);
  transition: none;
}

.about-hero__cta.btn-ink:focus-visible {
  outline: 2px solid var(--color-white);
  outline-offset: 3px;
}

@media (max-width: 768px) {
  .about-hero {
    min-height: 72dvh;
    height: 72dvh;
  }

  .about-hero__media picture,
  .about-hero__media img {
    object-position: 38% center;
  }

  .about-hero__wordmark {
    font-size: clamp(100px, 32vw, 260px);
  }

  .about-hero__cta {
    display: none;
  }
}

/* ── Lead ── */
.about-page main {
  background: var(--color-white);
}

.about-intro {
  width: 100%;
  margin-inline: auto;
  padding: var(--page-content-pad-top) var(--page-gutter) clamp(48px, 8vh, 88px);
  text-align: center;
}

.about-intro__kicker {
  margin: 0 0 clamp(20px, 3vh, 32px);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6B6B6B;
}

.about-intro__lead,
.about-chapter__lead {
  margin: 0 auto clamp(28px, 4vh, 44px);
  font-family: var(--font-body);
  font-size: clamp(22px, 3.6vw, 44px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #1B1B1B;
  max-width: 22ch;
  text-align: center;
  hyphens: none;
}

.about-prose p.about-chapter__lead {
  font-size: clamp(22px, 3.6vw, 44px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 22ch;
  text-align: center;
  hyphens: none;
}

@media (min-width: 769px) {
  .about-intro__lead {
    max-width: min(820px, 78vw);
  }

  .about-chapter--luxury .about-chapter__lead,
  .about-chapter--luxury .about-prose p.about-chapter__lead {
    max-width: min(100%, 26ch);
  }

  .about-chapter--salt .about-chapter__lead,
  .about-chapter--salt .about-prose p.about-chapter__lead {
    max-width: min(100%, 32ch);
  }

  .about-chapter--terracotta .about-chapter__lead,
  .about-chapter--terracotta .about-prose p.about-chapter__lead {
    max-width: min(100%, 28ch);
  }
}

.about-intro__body {
  margin: 0 auto clamp(40px, 6vh, 64px);
  max-width: 52ch;
  font-family: var(--font-body);
  font-size: clamp(14px, 1.35vw, 16px);
  font-weight: 300;
  line-height: 1.85;
  color: #1B1B1B;
  text-align: center;
}

@media (min-width: 769px) {
  .about-intro__body {
    box-sizing: border-box;
    width: calc(100% + 2 * var(--page-gutter));
    max-width: none;
    margin-inline: calc(-1 * var(--page-gutter));
    margin-bottom: clamp(40px, 6vh, 64px);
    padding-inline: clamp(32px, 5vw, 72px);
  }
}

.about-intro__gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(6px, 0.85vw, 10px);
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(16px, 2.5vw, 24px);
  background: transparent;
}

.about-intro__figure {
  position: relative;
  overflow: hidden;
  margin: 0;
  aspect-ratio: 3 / 4;
  background: #FAF9F6;
}

.about-intro__figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* ── Ninety days ── */
.about-ninety {
  width: 100%;
  text-align: center;
}

.about-ninety__body {
  margin: 0 auto clamp(40px, 6vh, 64px);
  max-width: 52ch;
  font-family: var(--font-body);
  font-size: clamp(14px, 1.35vw, 16px);
  font-weight: 300;
  line-height: 1.85;
  color: #1B1B1B;
  text-align: center;
}

.about-ninety__gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(6px, 0.85vw, 10px);
  width: 100%;
  margin: 0;
  padding: clamp(16px, 2.5vw, 24px);
}

.about-ninety__figure {
  position: relative;
  overflow: hidden;
  margin: 0;
  aspect-ratio: 3 / 4;
  background: #FAF9F6;
}

.about-ninety__figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

@media (min-width: 769px) {
  .about-ninety__body {
    box-sizing: border-box;
    width: calc(100% + 2 * var(--page-gutter));
    max-width: none;
    margin-inline: calc(-1 * var(--page-gutter));
    margin-bottom: clamp(40px, 6vh, 64px);
    padding-inline: clamp(32px, 5vw, 72px);
  }

  .about-ninety .about-chapter__lead {
    max-width: min(820px, 78vw);
  }

  .about-ninety__gallery {
    box-sizing: border-box;
    width: calc(100% + 2 * var(--page-gutter));
    max-width: none;
    margin-inline: calc(-1 * var(--page-gutter));
    padding-inline: clamp(28px, 4vw, 56px);
  }
}

@media (max-width: 768px) {
  .about-ninety .about-chapter__lead {
    max-width: none;
  }

  .about-ninety__gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Story ── */
.about-story {
  --about-section-gap: clamp(72px, 14vh, 168px);
  --about-block-gap: clamp(36px, 5vh, 52px);

  width: 100%;
  margin-inline: auto;
  padding: 0 var(--page-gutter) clamp(48px, 7vh, 80px);
  display: flex;
  flex-direction: column;
  gap: var(--about-section-gap);
}

.about-chapter {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--about-block-gap);
}

.about-chapter__kicker {
  margin: 0 0 clamp(16px, 2.4vh, 22px);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-royal-blue);
}

/* Prose */
.about-prose {
  text-align: justify;
  hyphens: auto;
}

.about-prose p {
  margin: 0 0 1.1em;
  font-family: var(--font-body);
  font-size: clamp(14px, 1.35vw, 16px);
  font-weight: 300;
  line-height: 1.85;
  color: #1B1B1B;
  max-width: 68ch;
  text-align: justify;
}

.about-prose p:last-child {
  margin-bottom: 0;
}

.about-prose .about-chapter__kicker {
  max-width: none;
  text-align: left;
}

/* Attainable luxury + salt & sun — centered copy */
.about-chapter--luxury .about-chapter__text,
.about-chapter--salt .about-chapter__text,
.about-chapter--terracotta .about-chapter__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.about-chapter--luxury .about-prose--centered p:not(.about-chapter__lead),
.about-chapter--salt .about-prose--centered p:not(.about-chapter__lead),
.about-chapter--terracotta .about-prose--centered p:not(.about-chapter__lead) {
  max-width: 52ch;
  margin-inline: auto;
  text-align: center;
  hyphens: none;
}

.about-prose--centered,
.about-prose--centered p {
  text-align: center;
  hyphens: none;
}

.about-prose--centered .about-chapter__kicker {
  text-align: center;
}

.about-chapter--luxury .about-prose--centered .about-chapter__kicker,
.about-chapter--salt .about-prose--centered .about-chapter__kicker,
.about-chapter--terracotta .about-prose--centered .about-chapter__kicker {
  margin: 0 0 clamp(20px, 3vh, 32px);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.16em;
  color: #6B6B6B;
  text-align: center;
}

@media (min-width: 769px) {
  .about-prose--centered p {
    max-width: 42ch;
  }
}

/* Carousel — attainable luxury */
.about-carousel {
  width: 100%;
}

.about-carousel__viewport {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #FAF9F6;
}

.about-carousel__track {
  display: flex;
  height: 100%;
  will-change: transform;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-carousel__slide {
  flex: 0 0 100%;
  height: 100%;
  margin: 0;
}

.about-carousel__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.about-carousel__pagination {
  display: flex;
  gap: clamp(6px, 1vw, 10px);
  width: min(68%, 280px);
  margin: clamp(14px, 2vh, 20px) auto 0;
}

.about-carousel__dot {
  position: relative;
  flex: 1;
  height: 2px;
  padding: 0;
  border: 0;
  background: rgba(27, 27, 27, 0.12);
  cursor: pointer;
  overflow: hidden;
}

.about-carousel__progress {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: #1B1B1B;
  pointer-events: none;
}

.about-carousel__dot.is-complete .about-carousel__progress {
  width: 100%;
}

.about-carousel__dot.is-active .about-carousel__progress {
  animation: about-carousel-progress var(--carousel-interval, 5000ms) linear forwards;
}

@keyframes about-carousel-progress {
  from { width: 0%; }
  to { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .about-carousel__track {
    transition: none;
  }

  .about-carousel__dot.is-active .about-carousel__progress {
    animation: none;
    width: 100%;
  }
}

/* Figures */
.about-figure {
  position: relative;
  overflow: hidden;
  background: #FAF9F6;
  margin: 0;
}

.about-figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.about-figure--pos-lower img {
  object-position: center 70%;
}

.about-figure--portrait { aspect-ratio: 3 / 4; }
.about-figure--landscape { aspect-ratio: 4 / 5; }

/* Galleries — flush, no gaps between adjacent images */
.about-duo,
.about-trio,
.about-quartet,
.about-quad {
  display: grid;
  gap: 0;
}

.about-duo { grid-template-columns: 1fr 1fr; }
.about-trio { grid-template-columns: repeat(3, 1fr); }
.about-quartet { grid-template-columns: repeat(4, 1fr); }
.about-quad { grid-template-columns: 1fr 1fr; gap: clamp(6px, 0.85vw, 10px); }

/* Single image — same width as one cell in a duo */
.about-chapter__media:not(.about-duo):not(.about-trio):not(.about-quartet):not(.about-quad) {
  display: flex;
  justify-content: flex-start;
}

.about-chapter--flip .about-chapter__media:not(.about-duo):not(.about-trio):not(.about-quartet):not(.about-quad) {
  justify-content: flex-end;
}

.about-chapter__media:not(.about-duo):not(.about-trio):not(.about-quartet):not(.about-quad) .about-figure {
  width: 50%;
  flex: 0 0 50%;
}

@media (min-width: 769px) {
  .about-chapter--split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(40px, 5vw, 72px);
  }

  .about-chapter--tight-prose {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  }

  .about-chapter--flip .about-chapter__media {
    order: -1;
  }

  .about-chapter--luxury {
    grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
    gap: clamp(48px, 6vw, 88px);
    padding-inline: 0;
    align-items: center;
  }

  .about-chapter--luxury .about-chapter__media {
    order: -1;
    grid-column: auto;
    grid-row: auto;
    width: 100%;
    max-width: none;
    margin-left: 0;
    display: flex;
    justify-content: flex-end;
    padding-right: clamp(8px, 1.5vw, 20px);
  }

  .about-chapter--luxury .about-carousel {
    width: min(100%, 420px);
  }

  .about-chapter--luxury .about-chapter__text {
    order: 0;
    grid-column: auto;
    grid-row: auto;
    position: static;
    z-index: auto;
    padding-left: clamp(8px, 1.5vw, 24px);
  }

  /* Salt & sun — text left, carousel right (mirror of luxury) */
  .about-chapter--salt {
    grid-template-columns: minmax(0, 0.58fr) minmax(0, 0.42fr);
    gap: clamp(48px, 6vw, 88px);
    padding-inline: 0;
    align-items: center;
  }

  .about-chapter--salt .about-chapter__text {
    order: 0;
    padding-right: clamp(8px, 1.5vw, 24px);
  }

  .about-chapter--salt .about-chapter__media {
    display: flex;
    justify-content: flex-start;
    padding-left: clamp(8px, 1.5vw, 20px);
  }

  .about-chapter--salt .about-carousel {
    width: min(100%, 420px);
  }

  .about-chapter--wide {
    width: 100%;
  }

  .about-chapter--wide .about-prose p {
    max-width: none;
  }
}

@media (max-width: 768px) {
  .about-intro__lead {
    max-width: none;
  }

  .about-intro__gallery {
    grid-template-columns: repeat(2, 1fr);
    padding: clamp(12px, 4vw, 16px);
  }

  .about-trio {
    grid-template-columns: 1fr 1fr;
  }

  .about-trio figure:first-child {
    grid-column: 1 / -1;
  }

  .about-quartet {
    grid-template-columns: 1fr 1fr;
  }
}

/* Outro — founders signature */
.about-outro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(10px, 1.2vh, 14px);
  margin-top: clamp(-36px, -5vh, -64px);
}

/* Signature */
.about-sign {
  width: 100%;
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: clamp(11px, 1vw, 13px);
  font-weight: 300;
  letter-spacing: 0.06em;
  color: #9A9A9A;
  text-align: center;
}

.about-sign__role {
  font-weight: 300;
  color: #B8B8B8;
}
