/* ==========================================================================
/* ==========================================================================
   PLACEKEEP - RESPONSIVE STYLESHEET
   --------------------------------------------------------------------------
   Load this AFTER styles.css.
   Contains responsive overrides and accessibility preferences only.
   Mobile breakpoint: max-width 820px.
   ========================================================================== */

/* ==========================================================================
   ACCESSIBILITY: REDUCED MOTION
   Turn off smooth scrolling and transitions for people who prefer less motion.
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}

/* TABLET: 601px–1024px */
@media (min-width: 601px) and (max-width: 1024px) {
  .hero h1 {
    max-width: 31rem;
    margin-right: 5%;
  }

  .hero p {
    margin-left: 5%;
    max-width: 21rem;
  }
  .gap {
  padding: 3.6rem 2.6rem 3.6rem 2.6rem;
}

.gap .quote {
  width: auto;
  max-width: 100%;
  box-sizing: border-box;
}

.define .wrap {
  max-width: 30rem;
  margin: 0 auto;
}
.define .note {
  left: -6.5rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 13rem);
  justify-content: center;
  gap: 2rem;
  width: min(1100px, 92vw);
  margin: 1.8rem 0 0 50%;
  transform: translateX(-50%);
  box-sizing: border-box;
}

.work .cards {
  margin-top: 3.6rem;
  padding-inline: 2rem; /* Space at the outside edges */
  gap: 1.5rem;           /* Space between the three cards */
  box-sizing: border-box;
}

.tabs {
  width: calc(100% + 19rem);
  margin: 1.3rem 0 0 -9.5rem;
}
.tab-panel {
  padding: 1.2rem 11rem 0 11rem;
}
/* ABOUT PAGE*/
.hero.solo h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  max-width: 30rem;
  margin: 0 6% 0 auto;
}

.quotes {
  width: calc(100% + 20rem);
  margin: 2.6rem 0 0 -10rem;
}

.acc-btn {
  padding: 1.35rem 5rem 1.2rem 2rem;
}
.acc-body {
  background: var(--teal);
  padding: 1.8rem 2rem 3rem;
}
/* CONTACT PAGE */
.connect {
  margin: 0 4rem;
  padding: 4rem 3rem 4rem;
}
.acc {
  margin-bottom: 4rem;
}
.c-wrap {
  padding: 6rem 0rem 7rem;
background: linear-gradient(
  var(--purple) 0 14rem,
  var(--white) 14rem calc(100% - 20rem),
  var(--teal) calc(100% - 22rem) 100%
);
  min-height: calc(100vh - 56px);
}

}
/* ==========================================================================
   MOBILE: ALL PAGES (max-width: 600px)
   Sections are kept in their original order so the cascade is unchanged.
   ========================================================================== */
@media (max-width: 600px) {
  /* ========================================================================
     1. SHARED + HOME: MOBILE
     Covers the header, hamburger menu, Home page sections, shared panels/cards,
     and the shared closing footer.
     ======================================================================== */

/* replace the existing focus/press block */
.nav a:active,
.nav a:focus-visible,
.nav .sub a:active,
.nav .sub a:focus-visible {
  background: var(--purple);
  color: var(--white);
  text-decoration: none;
}

  /* --- Header & hamburger menu --- */
  .site-header {
    padding: 0.9rem 1.2rem 0;
    .site-header { min-height: 56px; }     /* was height; also in the 600px block */
.closing .in { min-height: 8rem; }     /* was height */
  }
  .logo {
    font-size: 2rem;
  }
  .menu-btn {
    display: block;
    margin-top: -0.3rem;
    padding-right: 0;
  }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    /* padding: 0.5rem 1.2rem 1rem; */
    padding: 0.5rem 0 1rem;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
    z-index: -1;
  }
  /* .open is toggled by script.js when the hamburger is clicked */
  .nav.open {
    display: flex;
  }
  .nav a {
    /* padding: 0.7rem 0;
    font-size: 1rem; */
    padding: 0.7rem 1.2rem; /* was 0.7rem 0 */
    font-size: 1rem;
  }

  /* --- Home: hero --- */
  .hero {
    padding: 1.6rem 1.2rem 2rem;
  }
  .hero h1 {
    font-size: 2.35rem;
    max-width: 21rem;
    margin-bottom: 1.2rem;
    margin-right: 0;
  }
  .hero p {
    margin: 0;
    max-width: 21rem;
    font-size: 0.9rem;
  }

  /* --- Audience split (stacks into one column) --- */
  .split {
    display: block;
    padding: 2rem 1.2rem 4rem;
  }
  .split > div {
    padding: 0 0 2rem;
  }
  .split > div + div {
    border-left: 0;
    padding: 0;
  }
  .split h2 {
    font-size: 1rem;
  }
  .split p {
    font-size: 0.85rem;
    max-width: 20rem;
  }

  /* --- Shared panels & cards --- */
  .panel {
    width: calc(100% - 2.4rem);
    max-width: none;
    border-radius: 0.8rem;
    padding: 2rem 1.2rem;
  }
  .panel h2.lead {
    font-size: 2rem;
    padding-top: 0.4rem;
  }
  .cards {
    display: grid;
    grid-template-columns: 1fr; /* one card per row; overrides the desktop 3 columns */
    justify-items: center;
    grid-auto-rows: 1fr; /* every row matches the tallest card */
    gap: 1.6rem;
    width: calc(100% - 2.8rem);
    margin: 1.4rem auto 0;
    transform: none;
  }
  .card {
    padding: 2rem;
  }
  .stat {
    width: 100%;
    min-height: 0;
  }
  .stat p {
    font-size: 1.1rem;
  }
  .stat .num {
    font-size: 6.2rem;
  }

  .stat small {
    font-size: 0.8rem;
  }

  /* --- Home: gap block, definition, work panel --- */
  .gap {
    padding: 2.2rem 1rem 2.6rem;
  }
  .gap h3 {
    text-align: center;
    font-size: 1.5rem;
  }
  .gap .quote {
    font-size: 1rem;
    width: auto;
  }
  .quote p {
    width: 19rem;
  }
  .gap .quote p {
    width: auto; /* was 17rem; let the text fill the space available */
    max-width: 17rem; /* keep it from getting too wide on bigger phones */
  }
  .define {
    margin-top: -2rem;
    padding: 9.5rem 1.2rem 10.5rem;
  }
  .define .wrap {
    display: flex;
    flex-direction: column;
  }
  .define .ipa {
    text-align: right;
    font-size: 1.9rem;
    margin: 0 1rem 1.6rem 0;
  }
  .define h2 {
    text-align: right;
    font-size: 1.9rem;
    margin: 0 1rem 2.5rem auto;
  }
  .define .note {
    left: 0;
    margin: 1.2rem 0 0;
    max-width: 20rem;
    font-size: 1.5rem;
  }
  .work {
    margin-top: -2.5rem;
  }
  .proj {
    min-height: 0;
    width: 100%;
  }
  .proj h3 {
    font-size: 2.5rem;
  }
  .proj p {
    font-size: 0.9rem;
  }
  .wrapup {
    padding: 2.2rem 1.4rem 2.6rem;
    font-size: 1rem;
  }

  /* --- Closing footer --- */
  .closing {
    padding: 5.5rem 1.2rem 3rem;
    margin-top: -2rem;
  }
  .closing .in {
    height: auto;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }

  .closing p {
    max-width: 20rem;
  }

  /* ========================================================================
     2. SHARED: DROPDOWN NAV ON MOBILE
     ======================================================================== */
  .sub {
    display: block;
    position: static;
    background: none;
    margin: 0 0 0.3rem 0;
  }
  .sub a {
    background: none;
    color: var(--orange);
    padding: 0.4rem 1.2rem 0.4rem 2.2rem; /* extra left padding indents the submenu */
    font-size: 0.95rem;
  }



  /* Mouse hover, only on devices that have a mouse */
  @media (hover: hover) {
    .nav a:hover,
    .nav .sub a:hover {
      background: var(--orange);
      color: var(--white);
      text-decoration: none;
    }
  }

  /* ========================================================================
     3. APPROACH PAGE: MOBILE
     ======================================================================== */

  /* Intro sections */
  .intro {
    padding: 3.2rem 1.2rem 6rem;
  }
  .intro.after-band {
    padding: 8rem 2rem;
  }
  .section-title {
    font-size: 1.7rem;
  }
  .intro-inner p {
    font-size: 1rem;
  }

  /* Band + panel */
  .band {
    background: var(--white);
  }
  .band .panel {
    margin: -3.4rem auto -3rem;
    padding: 1.6rem 0 3.5rem;
  }
  .after-band {
    padding-top: 5rem;
  }

  /* Tabs become a stacked accordion */
  .tabs {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: calc(100% - 2.4rem);
    margin: 1.2rem auto 0;
  }
  .tab {
    --tab-h: 5rem; /* mobile-only height, smaller than desktop */
    min-height: var(--tab-h);
    padding: 1rem; /* or calc(var(--tab-h) / 2) if you want the text at the halfway mark */
    justify-content: center;
  }
  .tab-panel {
    padding: 1rem 0.8rem 0.6rem 0;
  }
  .tab-panel h3 {
    display: none;
  }
  .tab-panel .quote {
    border-left-width: 1.3rem;
    padding-left: 1rem;
    font-size: 0.8rem;
  }
  .across {
    padding: 1.8rem 1rem 0;
  }
  .closing .in.wide {
    flex-direction: column;
  }

  /* ========================================================================
     4. ABOUT PAGE: MOBILE
     ======================================================================== */

  /* Hero */
  /* Hero */
  .hero.solo {
    padding: 1.6rem 1.2rem 2rem;
  }
  .hero.solo h1 {
    text-align: right;
    margin: 0 0 0 auto;
    font-size: 1.9rem;
    max-width: 20rem;
  }
  .keep {
    white-space: normal; /* lets "dignity and belonging." wrap on mobile */
  }

  /* Mission / Vision */
  .split.mv > div {
    padding-bottom: 1.6rem;
  }
  /* Short orange bar between Mission and Vision */
  .split.mv > div + div::before {
    content: "";
    display: block;
    width: 10rem; /* bar length */
    height: 3px; /* bar thickness */
    background: var(--orange);
    margin: 0 auto 1.6rem; /* centered, with space below it */
  }
  .split.mv p {
    max-width: 20rem;
    font-size: 0.85rem;
  }

  /* Cards and testimonials stack into one column */
  .duo,
  .quotes {
    grid-template-columns: 1fr;
    width: calc(100% - 2.8rem);
    margin: 1.2rem auto 0;
  }
  .quotes figure {
    padding: 2rem 1rem 2rem 1rem;
  }
  .panel .sub-lead {
    font-size: 1.4rem;
    margin-top: 1.8rem;
    padding: 0 1rem;
  }
  .panel.round {
    margin-bottom: -3rem;
    padding-bottom: 4.4rem;
  }
  .after-panel {
    padding-top: 5.5rem;
  }

  /* Bio stacks: headline, then portrait, then story */
  .bio {
    padding: 3rem 1.2rem 6rem;
  }
  .bio-grid {
    display: flex; /* was block */
    flex-direction: column;
  }
  .bio h2.headline {
    text-align: center;
    font-size: 1.45rem;
    margin: 3rem auto 3rem;
    width: 80%;
  }
  .portrait {
    display: contents; /* photo, caption and social cards become direct items of .bio-grid */
  }
  .story {
    padding-left: 10%;
  }
  .story h3 {
    font-size: 1.5rem;
  }
  .story p {
    font-size: 0.86rem;
    width: 90%;
  }
  .quotes blockquote {
    font-size: 1.4rem;
  }
  /* Order: headline, photo, caption, story, then social */
  .bio h2.headline {
    order: 1;
  }
  .photo {
    order: 2;
  }
  .caption {
    order: 3;
  }
  .story {
    order: 4;
    margin-bottom: 2rem;
  }
  .portrait h3 {
    order: 5;
  }
  .social {
    order: 6;
  }
     .badge-link {
    order: 7;
    display: block;
    width: 60%;
    max-width: 12rem;
    margin: 1.5rem auto 0;
  }
  

  /* Sizing, since .portrait's own max-width no longer applies */
  .photo,
  .caption,
  .social,
  .portrait h3 {
    width: 100%;
    max-width: 18rem;
    margin-left: auto;
    margin-right: auto;
  }
  .badge {
    width: 100%;
    margin: 0;
  }
  .caption {
    margin-bottom: 2.5rem;
  }

  /* ========================================================================
     5. ABOUT PAGE: FOOTER OVERRIDES
     ======================================================================== */
  .closing.after-panel-footer {
    margin-top: 0;
    padding-top: 5.5rem;
  }

  /* ========================================================================
     6. CONTACT PAGE: MOBILE
     ======================================================================== */
.c-wrap {
  padding: 6rem 0.9rem 7rem;
background: linear-gradient(
  var(--purple) 0 14rem,
  var(--white) 14rem calc(100% - 14rem),
  var(--teal) calc(100% - 15rem) 100%
);
  min-height: calc(100vh - 56px);
}
  .connect {
    padding: 4rem 1.4rem 5rem;
  }
  .connect h1 {
    font-size: 1.7rem;
    margin-bottom: 2.2rem;
  }
  .acc {
    margin-bottom: 3rem;
  }
  .acc-btn {
    padding: 1rem 4.6rem 1rem 1rem;
    min-height: 5.4rem;
  }
  .acc-btn strong {
    font-size: 1.2rem;
  }
  .acc-btn span {
    font-size: 0.85rem;
  }
  .acc-btn::after {
    right: 0.7rem;
    width: 2.3rem;
    height: 2.3rem;
    margin-top: -1.15rem;
  }
  .acc-body {
    padding: 1.4rem 1.4rem 2.2rem;
  }

  .field.short input {
    width: 100%;
  }
  .submit {
    width: 60%;
  }
}
