/* ================================================
   ORIGIN STORY PAGE
   ================================================ */

.page-origin-story .nav-hamburger--dark span {
  background: var(--black);
}

/* Let clicks pass through the transparent navbar area so sticky tab buttons are clickable */
.page-origin-story .navbar {
  pointer-events: none;
}
.page-origin-story .mark,
.page-origin-story .nav-hamburger {
  pointer-events: all;
}

/* ---- Content wrapper ---- */
.origin-story-content {
  background-color: var(--white);
  color: var(--black);
  position: relative;
  z-index: 10;
  margin-top: 0;
  padding-bottom: 0;
}

/* ---- Closing + footer — white background ---- */
.page-origin-story .about-closing,
.page-origin-story .footer-block-about {
  background-color: var(--white);
}

/* Closing section */
.page-origin-story .about-closing {
  padding-top: 100px;
  padding-bottom: 100px;
  margin-top: 60px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* ---- Intro line — matches .text-block-211 on what-i-do page ---- */
.origin-story-intro {
  font-family: var(--font-main);
  font-size: 50px;
  font-weight: 700;
  color: var(--black);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-left: 130px;
  margin-right: 130px;
  padding-top: 80px;
  padding-bottom: 60px;
  max-width: 800px;
}

/* ---- Sticky nav wrapper — holds both tab rows ---- */
.origin-story-sticky-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  padding-left: 130px;
  padding-right: 130px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

/* ---- Toggle tabs — match homepage nav-pill style ---- */
.origin-story-tabs {
  display: flex;
  gap: 4px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.origin-story-tab {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(30, 30, 30, 0.95);
  color: rgba(255, 255, 255, 0.45);
  border: none;
  outline: none;
  cursor: pointer;
  font-family: var(--font-main);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 13px 20px;
  border-radius: 0;
  transition: color 0.2s ease;
  display: inline-block;
}

.origin-story-tab:hover {
  color: var(--white);
}

.origin-story-tab--active {
  background: rgba(30, 30, 30, 0.95);
  color: var(--white);
}

/* ---- Panels ---- */
.origin-story-panel {
  margin-left: 130px;
  margin-right: 130px;
  padding: 60px 0 0;
}

/* ---- Art grid ---- */
.origin-story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  margin-bottom: 80px;
}

.origin-story-grid-item {
  overflow: hidden;
}

.origin-story-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.origin-story-grid-item img:hover {
  transform: scale(1.02);
}

/* Placeholder shown until images are added */
.origin-story-img-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-color: rgba(0, 0, 0, 0.04);
}

/* ---- Writing sub-tabs ---- */
.origin-story-subtabs {
  display: flex;
  gap: 4px;
  padding-bottom: 16px;
}

.origin-story-subtab {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(30, 30, 30, 0.12);
  color: var(--black);
  border: none;
  outline: none;
  cursor: pointer;
  font-family: var(--font-main);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 10px 18px;
  border-radius: 0;
  transition: background 0.2s ease, color 0.2s ease;
  display: inline-block;
}

.origin-story-subtab:hover {
  background: rgba(30, 30, 30, 0.25);
}

.origin-story-subtab--active {
  background: rgba(30, 30, 30, 0.95);
  color: var(--white);
}

/* ---- Writing section ---- */
.origin-story-writing {
  margin-bottom: 80px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.origin-story-writing-piece {
  max-width: 680px;
}


.origin-story-writing-piece p {
  font-family: var(--font-main);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--black);
}

.origin-story-writing-piece .writing-title {
  font-family: var(--font-main);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.35);
  margin-bottom: 16px;
}

/* ---- Side by side image pair ---- */
.origin-story-img-pair {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 40px 0 40px;
  width: 100%;
  max-width: 100%;
}

.origin-story-img-pair-item {
  min-width: 0;
}

.origin-story-img-pair-item .origin-story-writing-img {
  width: 100%;
  max-width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
  margin: 0;
}

.origin-story-img-pair-item .origin-story-writing-caption {
  margin-top: 8px !important;
  margin-bottom: 0 !important;
}

.origin-story-img-pair--3col {
  grid-template-columns: 1fr 1fr 1fr;
}

@media (max-width: 767px) {
  .origin-story-img-pair,
  .origin-story-img-pair--3col {
    grid-template-columns: 1fr !important;
  }
}

/* Placeholder shown until writing is added */
.origin-story-writing-placeholder {
  width: 100%;
  height: 120px;
  background-color: rgba(0, 0, 0, 0.04);
}

.origin-story-writing-intro {
  font-family: var(--font-main);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.8;
  color: rgba(0, 0, 0, 0.55);
  max-width: 70ch;
  margin-bottom: 60px;
}

.origin-story-writing-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.origin-story-writing-title {
  font-family: var(--font-main);
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--black);
  line-height: 1.1;
  margin-bottom: 8px;
}

.origin-story-writing-date {
  font-family: var(--font-main);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.35);
}

.origin-story-writing-piece p {
  font-family: var(--font-main);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--black);
  max-width: 680px;
  margin-bottom: 2em;
}

.origin-story-writing-img {
  width: 100%;
  max-width: 100%;
  display: block;
  margin: 48px 0 0;
}

.origin-story-writing-caption {
  font-family: var(--font-main);
  font-size: 13px !important;
  font-weight: 400 !important;
  font-style: italic;
  letter-spacing: 0 !important;
  text-transform: none;
  color: rgba(0, 0, 0, 0.4) !important;
  margin-top: 10px !important;
  margin-bottom: 48px !important;
  line-height: 1.5 !important;
}

.origin-story-writing-quote {
  padding: 0 0 0 28px;
  margin: 56px 0;
  max-width: 680px;
  border-left: 3px solid var(--red);
}

.origin-story-writing-quote p,
.origin-story-writing-quote {
  font-family: var(--font-main);
  font-size: 22px;
  font-weight: 400;
  font-style: italic;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.75);
}

.origin-story-writing-quote cite {
  display: block;
  font-style: normal;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(0, 0, 0, 0.4);
  margin-top: 14px;
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 991px) {
  .origin-story-sticky-nav {
    padding-left: 32px;
    padding-right: 32px;
  }

  .origin-story-intro,
  .origin-story-panel {
    margin-left: 32px;
    margin-right: 32px;
  }
}

@media (max-width: 767px) {
  .origin-story-sticky-nav {
    padding-left: 20px;
    padding-right: 20px;
  }

  .origin-story-intro,
  .origin-story-panel {
    margin-left: 20px;
    margin-right: 20px;
  }

  .origin-story-intro {
    font-size: clamp(26px, 6vw, 36px);
    padding-top: 60px;
    padding-bottom: 40px;
  }

  .origin-story-grid {
    grid-template-columns: 1fr;
  }

  .origin-story-writing-piece {
    max-width: 100%;
  }

  .origin-story-writing-piece p {
    font-size: 16px;
  }

  .origin-story-writing-title {
    font-size: clamp(24px, 6vw, 36px);
  }

  .origin-story-writing-quote {
    font-size: 18px;
  }

  .origin-story-writing-quote,
  .origin-story-writing-quote p {
    font-size: 18px;
  }

  .origin-story-img-pair-item .origin-story-writing-img {
    height: 260px;
  }
}

@media (max-width: 479px) {
  .origin-story-intro {
    font-size: clamp(22px, 6vw, 30px);
  }
}
