@import url("/site-fixes.v11.case.1f225206.css");
/* Preserve the owner-approved desktop design at 1440px and wider. */
@media (max-width: 1439px) {
/* Task A: overrides for the compiled site; keep generated and v10 assets intact. */
.about-section__experience {
  scroll-margin-top: 88px;
}

.about-section__experience-pill {
  white-space: normal;
  text-overflow: clip;
  overflow: visible;
  height: auto;
  max-height: none;
  min-height: var(--control-h);
  padding: 10px 14px;
  text-align: center;
  line-height: 1.2;
}

@media (min-width: 901px) {
  .projects-sticky__pin {
    grid-template-columns: minmax(0, min(42vw, 640px)) minmax(0, 1fr);
  }

  .projects-ui {
    min-width: 0;
    gap: clamp(12px, 2vh, 24px);
    padding: clamp(88px, 10vh, 116px) clamp(24px, 3vw, 56px) clamp(20px, 3vh, 40px);
  }

  .projects-ui .ui-pill {
    min-height: clamp(32px, 4.4vh, 40px);
    height: auto;
    max-height: none;
    padding: 8px clamp(12px, 1.1vw, 20px);
    font-size: clamp(13px, min(1.2vw, 1.9vh), 15px);
    line-height: 1.15;
  }

  .projects-nav {
    width: 100%;
    gap: 8px;
  }

  .projects-nav__button {
    gap: 8px;
  }

  .projects-copy {
    flex: 0 1 auto;
    min-height: 0;
    margin-top: 0;
  }

  .projects-copy__panel {
    position: relative;
    inset: auto;
  }

  .projects-copy__title {
    font-size: clamp(28px, min(3vw, 4.6vh), 44px);
    line-height: 1.08;
    overflow-wrap: break-word;
  }

  .projects-copy__summary {
    font-size: clamp(16px, min(1.45vw, 2.5vh), 20px);
    line-height: 1.4;
  }

  .projects-dock-wrap {
    position: static;
    margin-top: auto;
    width: 100%;
    flex-shrink: 0;
  }

  .projects-copy__actions {
    justify-content: flex-start;
    gap: 8px;
  }

  .projects-progress em {
    line-height: 1.3;
  }
}

@media (min-width: 901px) and (max-height: 800px) {
  .projects-ui {
    gap: clamp(10px, 1.6vh, 14px);
    padding-top: 84px;
    padding-bottom: 20px;
  }

  .projects-copy__panel {
    gap: 6px;
  }

  .projects-dock {
    gap: 6px;
  }
}

/* Tablet/intermediate desktop: give each link column its own real width. */
@media (min-width: 601px) and (max-width: 1440px) {
  #contact.footer-scroll-anchor,
  .site-footer {
    height: auto !important;
    min-height: 0 !important;
  }

  .site-footer__links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    height: auto;
    min-height: 0;
    gap: 24px 16px;
    padding-block: 32px;
  }

  .site-footer__prompt {
    grid-column: 1 / -1;
    order: 0;
    justify-self: start;
    align-items: flex-start;
  }

  .site-footer__question {
    white-space: normal;
    font-size: clamp(28px, 3.4vw, 44px);
  }

  .site-footer__prompt-copy {
    text-align: left;
  }

  .site-footer__about {
    grid-column: 1 / -1;
    order: 1;
  }

  .site-footer__column--nav { grid-column: 1; order: 2; }
  .site-footer__column--work { grid-column: 2; order: 3; display: flex; }
  .site-footer__column--socials { grid-column: 3; order: 4; }

  .site-footer__link-main,
  .site-footer__link-pill {
    max-width: 100%;
  }

  .site-footer__link-pill {
    white-space: normal;
    overflow-wrap: anywhere;
    height: auto;
    max-height: none;
    padding: 10px 14px;
    line-height: 1.25;
  }

  .site-footer__year-row {
    grid-column: 1 / -1;
    order: 5;
    display: flex;
    justify-content: flex-start;
  }

  .site-footer__privacy-year {
    opacity: 1 !important;
    transform: none !important;
  }

  .site-footer__sticker-slot { margin-left: auto; }
  .site-footer__top, .site-footer__bottom { display: none !important; }
}

}

/* Selected Work polish — Task H. Proportions and sizing only; remove this section to roll back. */
@media (min-width: 901px) {
  .projects-sticky__pin {
    grid-template-columns: minmax(0, 36%) minmax(0, 64%);
  }

  .projects-ui {
    min-width: 0;
    gap: clamp(12px, 1.6vh, 18px);
    padding: clamp(84px, 10vh, 108px) clamp(24px, 2.5vw, 48px) 24px;
  }

  .projects-ui .ui-pill {
    min-height: 40px;
    height: auto;
    max-height: none;
    padding: 9px 16px;
    font-size: 15px;
    line-height: 1.2;
  }

  .projects-nav { width: 100%; gap: 8px; }
  .projects-nav__button { gap: 8px; }

  .projects-copy {
    flex: 0 0 auto;
    min-height: 0;
    margin-top: 0;
  }

  .projects-copy__panel {
    position: relative;
    inset: auto;
    gap: 8px;
  }

  .projects-copy__title {
    font-size: clamp(28px, 2.8vw, 42px);
    line-height: 1.08;
    margin-top: 0;
    overflow-wrap: anywhere;
  }

  .projects-copy__summary {
    max-width: 50ch;
    font-size: clamp(17px, 1.28vw, 18.5px);
    line-height: 1.4;
    overflow-wrap: anywhere;
  }

  .projects-dock-wrap {
    position: static;
    width: 100%;
    margin-top: auto;
    flex-shrink: 0;
  }

  .projects-dock { gap: 8px; }
  .projects-dock__meta { display: flex; flex-wrap: wrap; gap: 8px; }

  .projects-dock .projects-copy__meta {
    white-space: normal;
    overflow-wrap: anywhere;
    text-overflow: clip;
    overflow: visible;
  }

  .projects-copy__actions { justify-content: flex-start; gap: 8px; }
  .projects-progress { gap: 8px; }
  .projects-progress em { line-height: 1.3; }
}

@media (min-width: 901px) and (max-height: 800px) {
  .projects-ui { gap: 10px; padding-top: 84px; padding-bottom: 20px; }
  .projects-ui .ui-pill { min-height: 36px; padding: 8px 12px; font-size: 14px; }
  .projects-nav__button { gap: 6px; }
  .projects-copy__panel { gap: 6px; }
  .projects-copy__title { font-size: clamp(28px, 2.4vw, 34px); }
  .projects-copy__summary { font-size: 17px; }
  .projects-dock { gap: 6px; }
}

/* Retain compact typography and spacing; preserve full-sized touch targets. */
@media (max-width: 900px) {
  .projects-sticky--compact .projects-copy__link,
  .projects-sticky--compact .projects-nav__button {
    min-height: 44px;
    height: auto;
    max-height: none;
  }
}

/* Grid alignment — Task R. About's original tracks are the shared master. */
:root {
  --homepage-grid-columns: minmax(var(--layout-split-min), var(--layout-split-narrow)) minmax(0, var(--layout-split-wide));
  --homepage-grid-gutter: var(--grid-pad);
  --homepage-grid-line: 1px solid var(--color-border-light);
}

.hero-inner,
.projects-ui,
.about-section__content,
.site-footer.site-footer {
  padding-inline: var(--homepage-grid-gutter);
}

@media (min-width: 901px) {
  .projects-sticky__pin,
  .about-section__pin {
    grid-template-columns: var(--homepage-grid-columns);
  }

  .projects-media-viewport { border-left: var(--homepage-grid-line); }
  .about-section__media {
    border-right: var(--homepage-grid-line);
    border-bottom: 0;
    height: 100vh;
    position: sticky;
    top: 0;
  }
}

.projects-sticky__pin { border-block: var(--homepage-grid-line); }
.about-section__pin { border-bottom: var(--homepage-grid-line); }
.about-section__block { border-top: var(--homepage-grid-line); }

/* Each section junction has one rule, supplied by the preceding section. */
.about-section,
.site-footer.site-footer { border-top: 0; }

/* S6: balance the desktop header on the same outer gutter. */
.header-contact-pill { flex: none; }
@media (max-width: 900px) {
  .header-contact-pill { display: none; }
}

/* S7: equal space above and below the portrait's three stat rows. */
.about-section__stats {
  padding-block: var(--homepage-grid-gutter);
  gap: var(--space-3);
}
.about-section__stats .about-section__stat { padding-top: 0; }

/* S8: give short, narrow desktop panels a single chip row and real scroll room.
   The shared R grid split and gutters remain the same at every breakpoint. */
@media (min-width: 901px) {
  .projects-ui { overflow-y: auto; overflow-x: hidden; }
  .projects-ui > .projects-copy { flex-shrink: 0; }
}
@media (min-width: 901px) and (max-width: 1180px) and (max-height: 700px) {
  .projects-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    flex-shrink: 0;
    padding-bottom: 2px;
  }
  .projects-nav::-webkit-scrollbar { display: none; }
  .projects-nav__button { flex-shrink: 0; }
  .projects-ui { gap: 8px; padding-top: 80px; padding-bottom: 16px; }
  .projects-copy__title { font-size: 28px; }
  .projects-copy__summary { font-size: 16px; line-height: 1.35; }
}
@media (min-width: 901px) and (max-width: 1180px) and (max-height: 500px) {
  .projects-ui { gap: 6px; padding-top: 76px; padding-bottom: 12px; }
  .projects-ui .ui-pill { min-height: 32px; padding: 6px 12px; font-size: 14px; }
  .projects-copy__panel, .projects-dock { gap: 4px; }
  .projects-copy__summary { font-size: 15px; line-height: 1.3; }
  .projects-progress em { font-size: 12px; line-height: 1.3; }
}

/* Keyboard-only indicator: retain the approved pointer presentation. */
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid currentColor !important;
  outline-offset: 4px !important;
}
