@media (max-width: 1180px) {
  :root { --container: min(1320px, calc(100% - 56px)); --section-space: 5.5rem; }

  .desktop-nav { display: none; }
  .menu-toggle { display: grid; order: 3; }
  .header-cta { margin-inline-start: auto; }
  .hero-grid { grid-template-columns: minmax(0, .85fr) minmax(470px, 1.15fr); }
  .hero-media { width: 67vw; min-width: 690px; }
  .hero h1 { font-size: clamp(3rem, 5.2vw, 4.5rem); }
  .section-intro { grid-template-columns: minmax(150px, .42fr) minmax(390px, 1.1fr) minmax(240px, .55fr); gap: 2.2rem; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card { min-height: 320px; border-bottom: 1px solid var(--lion-border); }
  .service-card:nth-child(2) { border-inline-end: 1px solid var(--lion-border); }
  .service-card:nth-last-child(-n+2) { border-bottom: 0; }
  .process-list p { padding-inline-end: .7rem; }
  .about-grid { gap: 4rem; }
  .footer-grid { gap: 2.5rem; }
}

@media (max-width: 920px) {
  :root { --container: calc(100% - 56px); --section-space: 5rem; }

  .hero { min-height: 860px; align-items: start; }
  .hero-grid { display: block; min-height: 860px; padding-block: 145px 80px; }
  .hero-copy { position: relative; z-index: 2; max-width: 640px; }
  .hero-media {
    inset: auto 0 0;
    width: 100%;
    min-width: 0;
    height: 62%;
    opacity: .48;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 30%, #000 100%);
    mask-image: linear-gradient(180deg, transparent 0, #000 30%, #000 100%);
  }
  .hero-media img { object-position: left center; }
  .hero-vignette { background: linear-gradient(180deg, #060606 0 35%, rgba(6,6,6,.75) 58%, rgba(6,6,6,.22)); }
  .hero-lead { max-width: 38rem; }
  .scroll-cue { display: none; }
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .benefit-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--white-border); }
  .benefit-grid article:nth-child(3) { border-inline-end: 1px solid var(--white-border); }
  .section-intro { grid-template-columns: 1fr; align-items: start; gap: 1.5rem; }
  .section-intro > div:first-child { display: flex; align-items: center; justify-content: space-between; }
  .section-intro h2 { max-width: 780px; }
  .section-intro > p { max-width: 38rem; }
  .section-intro-split .text-link { justify-self: start; }
  .project-card-wide .project-visual { height: 480px; }
  .project-visual { height: 390px; }
  .process-list { grid-template-columns: repeat(3, 1fr); row-gap: 3rem; }
  .process-list li:nth-child(3) .step-line i { opacity: 0; }
  .about-grid { grid-template-columns: 1fr; }
  .about-copy > p:not(.eyebrow) { max-width: 42rem; }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .article-card:last-child { grid-column: 1 / -1; width: calc(50% - .625rem); }
  .cta-inner { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1.25fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 680px) {

  /* Keep portfolio images fully clipped to their cards on mobile. */
  .project-grid,
  .project-card,
  .project-visual {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .project-visual {
    overflow: hidden;
    contain: paint;
    background: #050505;
  }
  .project-visual > picture,
  .project-visual > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }
  .project-visual > picture {
    display: block;
    max-width: 100%;
    overflow: hidden;
  }
  .project-visual > picture > img,
  .project-visual > img {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 100%;
    object-fit: contain;
    object-position: center top;
    background: #050505;
  }

  :root { --container: calc(100% - 40px); --section-space: 4.25rem; }

  html { scroll-padding-top: 72px; }
  .site-header, .site-header.is-scrolled { height: 70px; }
  .header-inner { gap: .6rem; }
  .brand-avatar { width: 48px; height: 48px; flex-basis: 48px; }
  .brand-name bdi { font-size: 1.45rem; }
  .brand-name small { display: none; }
  .header-cta { min-width: 105px; min-height: 46px; gap: 0; padding-inline: 1.15rem; font-size: .82rem; }
  .menu-toggle { width: 40px; height: 40px; }
  .mobile-menu-inner { width: calc(100% - 40px); }

  .hero { min-height: 820px; }
  .hero-grid { min-height: 820px; padding-block: 112px 50px; }
  .hero h1 { margin-top: 1rem; font-size: clamp(2.45rem, 11.2vw, 3.35rem); line-height: 1.42; }
  .hero-lead { max-width: 33rem; font-size: .93rem; line-height: 1.95; }
  .hero-actions { align-items: stretch; flex-direction: column; max-width: 430px; }
  .hero-actions .button { width: 100%; }
  .hero-proof { max-width: 390px; font-size: .74rem; }
  .hero-media { height: 52%; opacity: .38; }

  .service-grid { grid-template-columns: 1fr; border-bottom: 0; }
  .service-card, .service-card:nth-last-child(-n+2), .service-card:nth-child(2) { min-height: 285px; border-inline: 1px solid var(--lion-border); border-bottom: 1px solid var(--lion-border); }
  .service-card:first-child { border-inline: 1px solid var(--lion-border); }
  .project-grid { grid-template-columns: 1fr; }
  .project-card-wide { grid-column: auto; }
  .project-card-wide .project-visual, .project-visual { height: 460px; }
  .project-visual::after {
    background: linear-gradient(180deg, rgba(4,4,4,.04) 10%, rgba(4,4,4,.22) 55%, rgba(4,4,4,.88) 100%);
  }
  .project-overlay { inset: auto 1rem 1rem; }
  .project-overlay p { margin-bottom: .3rem; font-size: .74rem; }
  .project-overlay h3 { font-size: 1.38rem; line-height: 1.4; }
  .project-overlay span {
    max-width: 100%;
    font-size: .78rem;
    line-height: 1.62;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .process-list { position: relative; grid-template-columns: 1fr; gap: 0; }
  .process-list::before { position: absolute; inset: 12px 16px 12px auto; width: 1px; background: var(--lion-border); content: ""; }
  .process-list li { position: relative; display: grid; grid-template-columns: 34px 1fr; gap: 1rem; padding: 0 0 2.25rem; }
  .process-list li:last-child { padding-bottom: 0; }
  .step-number { position: relative; z-index: 1; display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--lion-gold-dark); border-radius: 50%; background: var(--lion-surface); font-size: .75rem; }
  .step-line { display: none; }
  .process-list li > div:last-child { padding-top: .15rem; }
  .process-list h3 { margin-top: 0; }
  .process-list p { max-width: 25rem; padding: 0; font-size: .86rem; }
  .hero .eyebrow { font-size: .82rem; }
  .benefit-grid h2 { font-size: .9rem; }
  .benefit-grid p { font-size: .82rem; }
  .about-values { grid-template-columns: 1fr; }
  .about-values article, .about-values article:nth-child(odd), .about-values article:nth-child(-n+2) { min-height: 225px; border: 0; border-bottom: 1px solid var(--lion-border); }
  .about-values article:last-child { border-bottom: 0; }
  .article-grid { grid-template-columns: 1fr; gap: 3.2rem; }
  .article-card:last-child { grid-column: auto; width: 100%; }
  .final-cta::after { inset: 10px; }
  .cta-inner { gap: 2.5rem; }
  .cta-inner h2 { font-size: clamp(2.5rem, 11vw, 3.5rem); }
  .cta-inner .button { width: 100%; }
  .cta-mark { right: -120px; left: auto; width: 310px; height: 310px; opacity: .65; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 2.8rem 2rem; padding-block: 4rem 3rem; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-contact { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .brand-avatar { width: 42px; height: 42px; flex-basis: 42px; }
  .brand-name bdi { font-size: 1.1rem; }
}

@media (max-width: 430px) {
  :root { --container: calc(100% - 40px); }

  body { font-size: 15px; }
  .header-cta { min-width: 92px; }
  .hero { min-height: 810px; }
  .hero-grid { min-height: 810px; padding-top: 108px; }
  .hero h1 { font-size: clamp(2.22rem, 10.8vw, 2.85rem); }
  .hero .eyebrow { font-size: .82rem; }
  .hero-proof { gap: .45rem; font-size: .74rem; }
  .benefit-grid article { padding: 1.1rem .85rem; gap: .7rem; }
  .benefit-grid h2 { font-size: .9rem; }
  .benefit-grid p { display: none; }
  .section-intro h2, .about-copy h2 { font-size: clamp(2rem, 9.8vw, 2.7rem); }
  .service-card { padding: 1.5rem; }
  .project-card-wide .project-visual, .project-visual { height: 400px; }
  .project-overlay { inset: auto .9rem .9rem; }
  .project-overlay p { font-size: .7rem; }
  .project-overlay h3 { font-size: 1.24rem; line-height: 1.42; }
  .project-overlay span {
    display: -webkit-box;
    max-width: 100%;
    font-size: .72rem;
    line-height: 1.58;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .article-image { aspect-ratio: 1.35 / 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand, .footer-contact { grid-column: auto; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: .6rem; }
}


@media (max-width: 520px) {
  .project-card-wide .project-visual,
  .project-visual { height: 420px; }
  .concept-label { font-size: .66rem; padding: .42rem .62rem; }
  .project-overlay h3 { font-size: 1.18rem; }
  .project-overlay span { font-size: .69rem; }
}

@media (max-width: 390px) {
  .project-card-wide .project-visual,
  .project-visual { height: 390px; }
  .project-overlay h3 { font-size: 1.1rem; }
  .project-overlay span { display: none; }
}

@media (max-width: 370px) {
  :root { --container: calc(100% - 32px); }
  .brand-name { display: none; }
  .header-cta { margin-inline-start: auto; }
  .hero h1 { font-size: 2.18rem; }
  .hero-lead { font-size: .86rem; }
  .benefit-grid { grid-template-columns: 1fr; }
  .benefit-grid article, .benefit-grid article:nth-child(3) { border-inline: 1px solid var(--white-border); border-bottom: 1px solid var(--white-border); }
  .benefit-grid article:last-child { border-bottom: 0; }
}

@media (hover: none) {
  .service-card:hover, .button:hover { transform: none; }
  .project-visual:hover img, .article-image:hover img { transform: none; }
}

/* Benefit scene: preserve its reading path when the cinematic layout becomes a document. */
@media (max-width: 1023px) {
  .benefit-grid { display: block; }
  .benefit-grid article { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: .8rem; padding-block: 1rem; border-inline: 0; }
  .benefit-grid h3 { font-size: 1rem; }
  .benefit-grid p { display: block; font-size: .82rem; }
}

@media (max-width: 640px) {
  .benefit-strip { padding-block: 5rem; }
  .benefit-intro h2 { font-size: clamp(2.25rem, 12vw, 3.2rem); }
  .benefit-grid article { grid-template-columns: 56px minmax(0, 1fr); gap: .7rem; }
}

/* Dedicated tablet layout: 700–1024px */
@media (min-width: 700px) and (max-width: 1024px) {
  :root { --container: calc(100% - 48px); --section-space: 5rem; }

  .site-header, .site-header.is-scrolled { height: 72px; }
  .header-inner { justify-content: flex-start; gap: .8rem; }
  .brand-avatar { width: 48px; height: 48px; flex-basis: 48px; }
  .brand-name bdi { font-size: 1.45rem; }
  .brand-name small { font-size: .62rem; }
  .header-cta { min-width: 126px; min-height: 46px; margin-inline-start: auto; gap: 0; padding-inline: 1.15rem; font-size: .88rem; }
  .menu-toggle { width: 42px; height: 42px; }

  .hero { min-height: clamp(690px, 92svh, 780px); align-items: stretch; }
  .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .94fr);
    min-height: clamp(690px, 92svh, 780px);
    align-items: center;
    gap: 1.2rem;
    padding-block: 104px 44px;
  }
  .hero-copy { grid-column: 1; width: 100%; max-width: none; }
  .hero-media {
    inset: 0 auto 0 0;
    width: 58%;
    min-width: 0;
    height: 100%;
    opacity: .82;
    -webkit-mask-image: linear-gradient(90deg, #000 0 64%, transparent 100%);
    mask-image: linear-gradient(90deg, #000 0 64%, transparent 100%);
  }
  .hero-media img { object-position: 36% center; }
  .hero-vignette { background: radial-gradient(circle at 78% 44%, rgba(197,163,116,.04), transparent 24%), linear-gradient(90deg, transparent 28%, rgba(6,6,6,.72) 56%, #060606 78%); }
  .hero h1 { margin-block: .9rem 1rem; font-size: clamp(2.08rem, 4.45vw, 2.85rem); line-height: 1.42; }
  .hero-lead { max-width: 25rem; margin-bottom: 1.35rem; font-size: clamp(.78rem, 1.5vw, .93rem); line-height: 1.92; }
  .hero-actions { display: grid; grid-template-columns: 1fr; width: min(100%, 285px); gap: .6rem; }
  .hero-actions .button { width: 100%; min-width: 0; min-height: 48px; padding-block: .58rem; }
  .hero-proof { max-width: 330px; margin-top: 1.25rem; gap: .45rem; font-size: .59rem; }
  .scroll-cue { display: none; }

  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .benefit-grid article { min-height: 92px; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-card { min-height: 300px; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-card-wide { grid-column: 1 / -1; }
  .project-card-wide .project-visual { height: clamp(410px, 52vw, 520px); }
  .project-visual { height: clamp(330px, 44vw, 420px); }
  .process-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem 0; }
  .process-list li { padding-inline-end: 1rem; }
  .process-list li:nth-child(3n) .step-line i { opacity: 0; }
  .process-list p { max-width: 13rem; font-size: .88rem; }
  .section-intro { margin-bottom: 3.5rem; }
  .about-grid { gap: 3rem; }
  .about-values article { min-height: 230px; }
  .footer-grid { gap: 2rem; }
  .inner-page { padding-block: 120px 5rem; }
  .project-header { grid-template-columns: minmax(0,1fr) 230px; gap: 2rem; }
  .project-content-grid { grid-template-columns: minmax(0,1fr) 190px; gap: 2.5rem; }
}

@media (min-width: 700px) and (max-width: 820px) {
  .brand-name small { display: none; }
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
  .hero h1 { font-size: clamp(2.02rem, 4.25vw, 2.25rem); }
  .hero .eyebrow { font-size: .68rem; }
  .hero-proof span:last-child, .hero-proof i:last-of-type { display: none; }
}

@media (max-width: 699px) {
  .hero-lead.has-mobile-copy .desktop-copy { display: none; }
  .hero-lead.has-mobile-copy .mobile-copy { display: inline; }
  .inner-page { padding-block: 105px 4rem; }
  .project-header, .project-content-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .project-content-grid aside { position: static; }
  .project-content-grid aside .button { width: 100%; }
  .project-hero-image { margin-bottom: 3rem; }
}

/* Standalone page layouts */
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .journal-archive-hero,
  .journal-single-hero,
  .studio-page-hero { padding-block: 120px 3.8rem; }
  .journal-archive-surface,
  .journal-reading-surface,
  .studio-page-surface { padding-block: 3.5rem 4.5rem; }
  .journal-reader .entry-hero { margin-top: -1rem; margin-bottom: 2.5rem; border-radius: 12px; }
  .journal-reader .entry-content { font-size: .98rem; line-height: 2; }
  .sl-page-card-grid { flex-direction: column; }
  .contact-cards { grid-template-columns: 1fr; }
  .contact-card { min-height: 155px; }
  .error-actions { flex-direction: column; }
  .error-actions .button { width: 100%; }
}


/* Responsive type scale */
@media (max-width: 699px) {
  .section-intro h2,
  .about-copy h2 { font-size: clamp(1.82rem, 8.7vw, 2.38rem); }
  .journal-archive-hero h1,
  .journal-single-heading h1,
  .studio-page-hero h1,
  .archive-hero h1,
  .prose-page h1,
  .project-header h1 { font-size: clamp(2rem, 9.2vw, 2.75rem); }
  .contact-copy h2 { font-size: clamp(1.7rem, 7.8vw, 2.3rem); }
}

@media (min-width: 700px) and (max-width: 1024px) {
  .journal-archive-hero h1,
  .journal-single-heading h1,
  .studio-page-hero h1,
  .archive-hero h1,
  .prose-page h1,
  .project-header h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
}

/* Preserve 16:9 portfolio thumbnails on landscape layouts. */
@media (min-width: 681px) {
  .project-visual,
  .project-card-wide .project-visual {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .project-visual > picture,
  .project-visual > picture > img {
    width: 100%;
    height: 100%;
  }

  .project-visual > picture > img,
  .project-visual > img {
    object-fit: cover;
    object-position: center center;
  }
}

/* Project archive cards */
@media (max-width: 699px) {
  .projects-archive .project-grid {
    gap: 2rem;
  }

  .projects-archive .project-visual,
  .projects-archive .project-card-wide .project-visual {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .projects-archive .project-summary {
    padding: .9rem 0 1.25rem;
  }

  .projects-archive .project-summary-meta {
    align-items: flex-start;
    margin-bottom: .45rem;
  }

  .projects-archive .project-summary-meta p {
    font-size: .72rem;
  }

  .projects-archive .concept-label {
    padding: .3rem .48rem;
    font-size: .64rem;
  }

  .projects-archive .project-summary h2 {
    font-size: 1.2rem;
  }

  .projects-archive .project-services {
    font-size: .78rem;
    line-height: 1.75;
  }
}


/* 1.4.2 — viewport-anchored mobile chrome */
@media (max-width: 1180px) {
  .site-header {
    position: fixed !important;
    top: var(--sl-admin-offset, 0px) !important;
    right: 0;
    left: 0;
    transform: none !important;
  }
  .mobile-menu {
    top: calc(var(--sl-admin-offset, 0px) + var(--sl-header-height, 74px));
  }
}

@media (max-width: 680px) {
  .header-inner { width: calc(100% - 32px); }
  .mobile-menu-inner {
    width: calc(100% - 40px);
    padding-top: max(1.6rem, env(safe-area-inset-top));
    padding-bottom: max(2rem, env(safe-area-inset-bottom));
  }
  .mobile-menu a {
    min-height: 58px;
    padding-block: .85rem;
    font-size: clamp(1.2rem, 5.4vw, 1.55rem);
  }
  .menu-toggle {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
  }
}

@media (max-width: 370px) {
  .mobile-menu-inner { width: calc(100% - 32px); }
  .mobile-menu a { font-size: 1.17rem; }
}
