/* Mobile refinements for Excelsior */

@media (max-width: 900px) {
  .page-head {
    padding: 128px 0 64px;
  }

  .ph-meta {
    margin-bottom: 24px;
  }

  .ph-title {
    font-size: 64px;
    line-height: 0.96;
    letter-spacing: 0;
    margin-bottom: 24px;
  }

  .ph-blurb {
    max-width: 34rem;
    font-size: 17px;
  }
}

@media (max-width: 720px) {
  :root {
    --gutter: 18px;
  }

  html,
  body {
    font-size: 16px;
  }

  .wrap {
    padding-inline: var(--gutter);
  }

  .display,
  .hero-title,
  .ph-title,
  .section-head .ttl,
  .cta-title,
  .svc-title,
  .tier-name,
  .p-name,
  .ts-title {
    letter-spacing: 0;
  }

  .nav {
    align-items: center;
    gap: 12px;
    padding: 14px var(--gutter);
  }

  .nav .logo {
    flex: 0 0 auto;
    gap: 8px;
    font-size: 17px;
  }

  .nav .logo img {
    width: 30px;
  }

  .nav-links {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: flex-end;
    gap: 14px;
    overflow-x: auto;
    font-size: 11px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a {
    flex: 0 0 auto;
    padding: 8px 0;
    white-space: nowrap;
  }

  .btn {
    min-height: 48px;
    justify-content: center;
    padding: 14px 20px;
  }

  .hero {
    min-height: auto;
    padding: 96px 0 36px;
  }

  .hero-grid {
    gap: 24px;
  }

  .hero-meta {
    display: block;
    padding-bottom: 10px;
  }

  .hero-title {
    margin: 4px 0;
    font-size: 56px;
    line-height: 0.95;
  }

  .hero-foot {
    gap: 22px;
    padding-top: 18px;
  }

  .hero-blurb,
  .intro-body p,
  .text-step p,
  .cta-blurb {
    font-size: 16px;
  }

  .hero-cta {
    width: 100%;
    gap: 14px;
  }

  .hero-cta .btn,
  .cta-block .btn,
  .cf-foot .btn {
    width: 100%;
  }

  .hero-sidemarks {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 6px 10px;
  }

  .hero-flourish {
    display: none;
  }

  .marquee {
    padding: 18px 0;
  }

  .marquee-track {
    gap: 30px;
    font-size: 32px;
  }

  .intro,
  .disciplines,
  .archive,
  .tiers,
  .compare,
  .faq,
  .contact-body {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .principles,
  .addons,
  .scrolly {
    padding: 64px 0;
  }

  .section-head {
    gap: 14px;
    padding-bottom: 28px;
    margin-bottom: 40px;
  }

  .section-head .ttl {
    font-size: 40px;
    line-height: 1.05;
  }

  .intro-body .lede {
    font-size: 30px;
    letter-spacing: 0;
  }

  .page-head {
    padding: 112px 0 56px;
  }

  .ph-title {
    font-size: 56px;
    line-height: 0.98;
  }

  .ph-blurb {
    font-size: 16px;
  }

  .scrolly-stage {
    height: auto;
    margin-top: 0;
  }

  .process-nav-wrap {
    position: static;
    margin-top: -16px;
    margin-bottom: 28px;
  }

  .process-nav {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .process-nav::-webkit-scrollbar {
    display: none;
  }

  .process-tab {
    flex: 0 0 150px;
    min-height: 52px;
  }

  .scene-sticky,
  .scene-hud,
  .scene-caption {
    display: none;
  }

  .scrolly-text {
    display: grid;
    gap: 36px;
    margin-top: 0;
  }

  .text-step {
    display: block;
    height: auto;
    padding: 0;
  }

  .text-inner {
    display: block;
  }

  .step-card,
  .text-step[data-step] .step-card {
    grid-column: auto;
    max-width: none;
    text-align: left;
    justify-self: stretch;
  }

  .step-card {
    padding: 24px;
    background: rgba(245,241,234,0.07);
  }

  .ts-title {
    font-size: 38px;
    line-height: 1.04;
  }

  .disc {
    min-height: auto;
    padding: 32px 24px;
  }

  .disc h3 {
    font-size: 28px;
    letter-spacing: 0;
  }

  .prin-list li {
    padding: 24px 0;
  }

  .prin-list p {
    font-size: 25px;
    letter-spacing: 0;
  }

  .cta-block {
    padding: 72px 0;
  }

  .cta-mark img {
    width: 44px;
  }

  .cta-title {
    margin-bottom: 22px;
    font-size: 56px;
    line-height: 0.98;
  }

  .cta-blurb {
    margin-bottom: 28px;
  }

  .footer {
    margin-top: 64px;
    padding: 64px var(--gutter) 28px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 40px;
  }

  .footer .signature {
    font-size: 30px;
    letter-spacing: 0;
  }

  .footer-meta {
    flex-direction: column;
    gap: 8px;
  }

  .svc-list {
    padding-top: 56px;
    padding-bottom: 64px;
  }

  .svc {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 34px 0;
  }

  .svc-num {
    padding-top: 0;
  }

  .svc-title {
    margin-bottom: 16px;
    font-size: 38px;
    line-height: 1;
  }

  .svc-lede {
    margin-bottom: 20px;
    font-size: 18px;
  }

  .svc-includes li {
    font-size: 14px;
  }

  .proj {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "num year"
      "name name"
      "disc disc"
      "cta cta";
    gap: 8px 16px;
    padding: 24px 0;
  }

  .proj:hover {
    padding-left: 0;
    padding-right: 0;
  }

  .p-name {
    font-size: 30px;
    line-height: 1.05;
  }

  .p-sub {
    display: block;
    margin-top: 6px;
    font-size: 0.58em;
  }

  .p-cta {
    justify-content: flex-start;
    font-size: 12px;
  }

  .tier {
    padding: 32px 24px 26px;
  }

  .tier-flag {
    position: static;
    align-self: flex-start;
    margin-bottom: 16px;
  }

  .tier-name {
    font-size: 40px;
  }

  .tier-sub {
    margin-bottom: 24px;
  }

  .tp-range {
    font-size: 26px;
    line-height: 1.2;
  }

  .ct-head {
    display: none;
  }

  .ct-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 18px 0;
  }

  .ct-row:hover {
    margin: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .ct-row > div:first-child {
    margin-bottom: 2px;
    font-size: 18px;
  }

  .ct-row > div:not(:first-child) {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 10px;
    padding-left: 0;
    font-size: 14px;
    color: var(--stone-2);
  }

  .ct-row > div:nth-child(2)::before,
  .ct-row > div:nth-child(3)::before,
  .ct-row > div:nth-child(4)::before {
    font-family: var(--mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--stone);
  }

  .ct-row > div:nth-child(2)::before {
    content: "Essential";
  }

  .ct-row > div:nth-child(3)::before {
    content: "Signature";
  }

  .ct-row > div:nth-child(4)::before {
    content: "Excelsior";
  }

  .addon {
    min-height: auto;
    padding: 24px;
  }

  .qa summary {
    align-items: flex-start;
    gap: 16px;
    padding: 22px 0;
  }

  .qa:hover summary {
    padding-left: 0;
  }

  .contact-aside {
    position: static;
    top: auto;
    padding-right: 0;
  }

  .cf-group {
    gap: 12px;
    padding-bottom: 28px;
  }

  .cf-label {
    align-items: flex-start;
    gap: 10px;
  }

  .contact-form input[type="text"],
  .contact-form input[type="email"],
  .contact-form textarea,
  .contact-form select {
    font-size: 16px;
  }

  .cf-radios {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .cf-radio span {
    width: 100%;
    padding: 12px 10px;
    text-align: center;
  }

  .bg-canvas *,
  .bg-canvas *::before,
  .bg-canvas *::after {
    animation: none !important;
    transition: none !important;
  }

  .bg-home .starfield,
  .bg-home .breath-line,
  .bg-work .f3,
  .bg-work .f4,
  .bg-pricing .n3 {
    display: none;
  }

  .bg-work .frame {
    opacity: 0.25;
  }
}

@media (max-width: 520px) {
  .nav .wordmark {
    display: none;
  }

  .nav-links {
    gap: 12px;
    font-size: 10.5px;
  }

  .hero-title {
    font-size: 50px;
  }

  .ph-title,
  .cta-title {
    font-size: 52px;
  }

  .section-head .ttl {
    font-size: 36px;
  }

  .footer .signature {
    font-size: 28px;
  }
}

@media (max-width: 420px) {
  :root {
    --gutter: 16px;
  }

  .nav-links {
    gap: 10px;
    font-size: 10px;
  }

  .hero-title {
    font-size: 44px;
  }

  .ph-title,
  .cta-title {
    font-size: 48px;
  }

  .marquee-track {
    gap: 24px;
    font-size: 28px;
  }

  .cf-radios {
    grid-template-columns: 1fr;
  }

  .ct-row > div:not(:first-child) {
    grid-template-columns: 1fr;
  }
}

@media (hover: none) {
  .btn-ink:hover {
    background: var(--ink);
  }

  .btn-ghost:hover {
    background: transparent;
    color: var(--ink);
  }

  .svc:hover {
    background: var(--paper);
  }

  .svc:hover .svc-vis,
  .tier:hover,
  .tier-feature:hover {
    transform: none;
    box-shadow: none;
  }

  .disc:hover {
    color: inherit;
  }

  .disc:hover::before {
    transform: scaleY(0);
  }

  .addon:hover {
    background: var(--paper-2);
    color: inherit;
  }

  .addon:hover .ad-num {
    color: var(--ember);
  }
}
