/* ═══════════════════════════════════════
   ABOUT.CSS — Out Shine Web Design
   The founder's page of the letter: a polaroid on the ruled sheet,
   the story pinned to a navy board, the working terms as index cards.
═══════════════════════════════════════ */

/* ── ABOUT HERO ── (ruled sheet comes from main.css) */
.about-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  padding: 5rem 5rem 5rem 6rem;
  gap: 4rem;
  overflow: hidden;
}
.about-hero-text { position: relative; z-index: 2; }
.about-hero-text .eyebrow { margin-bottom: 1rem; }
.about-hero-text .hero-title { margin-bottom: 1.75rem; font-size: clamp(2.8rem, 5vw, 4.6rem); line-height: 1.04; }
.about-hero-text .lead {
  max-width: 40ch;
  padding: 1.5rem 1.75rem;
  background: var(--cream);
  border: 1px solid rgba(var(--teal-rgb), .2);
  font-size: 1.1rem;
}

.about-hero-photo {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* The founder photo as a polaroid pinned to the sheet */
.photo-frame {
  position: relative;
  width: 400px;
  padding: 14px 14px 56px;
  background: var(--cream);
  border-radius: 3px;
  transform: rotate(2deg);
  box-shadow: 0 2px 0 rgba(var(--teal-rgb), .08), 0 30px 50px -24px rgba(var(--teal-rgb), .55);
}
.photo-frame picture { display: block; }
.photo-frame picture img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  object-position: 50% 20%;
  display: block;
}
/* Blush tape across the top corner */
.photo-accent {
  position: absolute;
  top: -12px; left: 50%;
  width: 96px; height: 24px;
  margin-left: -48px;
  background: rgba(var(--blush-rgb), .8);
  transform: rotate(-3deg);
}

/* ── MY STORY: notes pinned to a navy board ── */
.background-section { background: var(--teal); color: var(--cream); }
.background-section .eyebrow { color: var(--blush); }
.background-section h2 { color: var(--cream); margin-bottom: 3.5rem; }
.background-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding-top: 0.75rem;
}
.bg-card {
  position: relative;
  background: var(--cream);
  border-radius: 3px;
  padding: 2.4rem 1.85rem 2rem;
  box-shadow: 0 22px 34px -20px rgba(0,0,0,.6);
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1);
}
.bg-card:nth-child(1) { transform: rotate(-1.2deg); }
.bg-card:nth-child(2) { transform: rotate(0.8deg) translateY(.5rem); }
.bg-card:nth-child(3) { transform: rotate(-0.6deg); }
.bg-card:hover { transform: rotate(0) translateY(-4px); }
.bg-card::before {
  content: '';
  position: absolute;
  top: -12px; left: 50%;
  width: 76px; height: 22px;
  margin-left: -38px;
  background: rgba(var(--blush-rgb), .85);
  transform: rotate(-2deg);
}
.bg-card-icon {
  width: 44px; height: 44px;
  background: var(--blush);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.bg-card-icon svg { width: 20px; height: 20px; stroke: var(--teal); fill: none; stroke-width: 1.8; }
.bg-card h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--teal);
  margin-bottom: 0.4rem;
}
.bg-card-sub {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  padding-bottom: 0.85rem;
  margin-bottom: 0.95rem;
  border-bottom: 1px dashed rgba(var(--teal-rgb), .3);
}
.bg-card p {
  font-size: 0.97rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--ink);
}
.bg-card p em {
  font-style: normal;
  font-weight: 600;
  color: var(--teal);
  text-decoration: underline;
  text-decoration-color: var(--blush);
  text-decoration-thickness: 2px;
}

/* ── WORKING WITH ME ── */
.goals-section { background: var(--tint); }
.goals-section > .lead { margin: 0.5rem 0 3rem; max-width: 60ch; }
.goals-inner {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 5rem;
  align-items: start;
}
/* Each term on its own index card */
.goals-text { display: flex; flex-direction: column; gap: 1.25rem; }
.goal-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.75rem 1.75rem 1.75rem 1.5rem;
  background: var(--cream);
  border: 1px solid rgba(var(--teal-rgb), .12);
  border-radius: 3px;
  box-shadow: var(--note-shadow);
}
.goal-num {
  width: 44px; height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--blush);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  line-height: 1;
  color: var(--teal);
}
.goal-body h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--teal);
  margin-bottom: 0.45rem;
}
.goal-body p {
  font-size: 0.98rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--ink);
}

.goals-aside {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: calc(var(--nav-height) + 2rem);
}
/* The quote as a navy card with a painted pinstripe */
.goals-quote {
  background: var(--teal);
  border-radius: 14px;
  box-shadow: var(--pinstripe-panel);
  padding: 2.5rem 2.25rem 2.25rem;
  position: relative;
}
.goals-quote::before {
  content: '\201C';
  position: absolute;
  top: 0.4rem; left: 1.4rem;
  font-family: var(--font-serif);
  font-size: 4rem;
  line-height: 1;
  color: var(--blush);
}
.goals-quote p {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--cream);
  margin-top: 1rem;
}
.goals-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}
.gs-stat {
  background: var(--cream);
  border: 1px solid rgba(var(--teal-rgb), .15);
  border-radius: 3px;
  box-shadow: var(--note-shadow);
  padding: 1.25rem 0.6rem;
  text-align: center;
}
.gs-stat-num {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.gs-stat-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  line-height: 1.35;
}

/* ── ABOUT CTA ── (ruled sheet comes from main.css) */
.about-cta {
  text-align: center;
  padding: 7rem 5rem;
}
.about-cta h2 { font-size: clamp(2.4rem, 4.6vw, 4rem); }
.about-cta .lead { margin: 0 auto 2.5rem; text-align: center; }

/* Entrance: the sheet settles, then the polaroid drops in */
.about-hero-text > * { opacity: 0; animation: fadeUp 0.6s cubic-bezier(.2,.8,.2,1) forwards; }
.about-hero-text .eyebrow { animation-delay: 0.05s; }
.about-hero-text .hero-title { animation-delay: 0.15s; }
.about-hero-text .lead { animation-delay: 0.28s; }
.about-hero-photo { opacity: 0; animation: fadeUp 0.7s cubic-bezier(.2,.8,.2,1) 0.4s forwards; }

/* ══════════════════════ TABLET ══════════════════════ */
@media (max-width: 1100px) {
  .about-hero { padding: 4rem 3rem 4rem 4rem; gap: 3rem; }
  .photo-frame { width: 320px; }
  .photo-frame picture img { height: 380px; }
  .background-grid { grid-template-columns: 1fr 1fr; row-gap: 2.75rem; }
  .goals-inner { grid-template-columns: 1fr 300px; gap: 3rem; }
  .about-cta { padding: 5rem 3rem; }
}

/* ══════════════════════ MOBILE ══════════════════════ */
@media (max-width: 768px) {
  .about-hero {
    grid-template-columns: 1fr;
    padding: 2.5rem 1.25rem 3.5rem 2rem;
    gap: 3rem;
  }
  .about-hero-text .lead { font-size: 1.08rem; padding: 1.15rem 1.25rem; }
  .photo-frame { width: min(100%, 340px); padding: 10px 10px 44px; }
  .photo-frame picture img { height: 360px; }
  .background-grid { grid-template-columns: 1fr; row-gap: 2.5rem; }
  .bg-card:nth-child(n) { transform: rotate(0); }
  .goals-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .goals-aside { position: static; }
  .about-cta { padding: 4.5rem 1.5rem; }

  /* Readability bump */
  .bg-card-sub { font-size: 0.85rem; }
  .bg-card p { font-size: 1.08rem; }
  .goal-body h3 { font-size: 1.3rem; }
  .goal-body p { font-size: 1.08rem; }
  .goals-quote p { font-size: 1.2rem; }
  .gs-stat-label { font-size: 0.78rem; }
}

@media (max-width: 480px) {
  .goals-stats { grid-template-columns: 1fr; }
  .goal-item { flex-direction: column; gap: 0.9rem; }
}
