/* Mobile-only interface overrides.
   Loaded last, only when viewport width is 760px or less.
   Put INM layout and visual changes here, scoped to the requested page.
   Shared design tokens and content stay in their existing source files.
*/

/* INM: one compact row of navigation options on every public page. */
.hero-shell .topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 10px;
  padding: 12px 0 0;
}
.hero-shell .topbar .brand { width: 120px; }
.hero-shell .topbar .utility-links { width: auto; margin: 0; }
.hero-shell .topbar .utility-links .primary-btn { min-height: 44px; padding: 12px 10px; font-size: .53rem; letter-spacing: .025em; white-space: nowrap; }
.hero-shell .topbar .main-nav {
  position: static;
  left: auto;
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  flex: initial;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 10px;
  margin: 0;
  padding: 0;
  font-size: .6rem;
  letter-spacing: .025em;
}
.hero-shell .topbar .main-nav > a,
.hero-shell .topbar .services-menu summary { display: flex; align-items: center; min-height: 44px; white-space: nowrap; margin: 0; }
.hero-shell .topbar .services-dropdown { left: -70px; width: min(340px, calc(100vw - 56px)); }
@media (max-width: 360px) {
  .hero-shell .topbar .brand { width: 100px; }
  .hero-shell .topbar .utility-links .primary-btn { padding-inline: 8px; font-size: .48rem; }
  .hero-shell .topbar .main-nav { gap: 8px; font-size: .55rem; }
}

/* INM: fit the complete homepage hero into the initial screen. */
.page-shell .home-hero {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  height: 100svh;
  min-height: 0;
}
.home-hero .topbar { grid-row: 1; }
.home-hero .hero { grid-row: 2; grid-template-columns: minmax(0, 1fr); min-height: 0; }
.home-hero .hero-copy { min-width: 0; max-width: none; padding: 14px 0 16px; justify-content: flex-start; }
.home-hero .hero-metadata { gap: .3rem; margin-bottom: .8rem; }
.home-hero .hero-metadata .eyebrow { font-size: .85rem; }
.home-hero .hero-copy h1 { font-size: clamp(2rem, 8vw, 3rem); margin-bottom: .8rem; }
.home-hero .lede { font-size: .82rem; line-height: 1.45; }
.home-hero .cta-row { flex-direction: row; align-items: center; gap: 12px; margin-top: 14px; }
.home-hero .hero-btn { padding: 12px 14px; min-height: 44px; font-size: .57rem; }
.home-hero .hero-link { font-size: .57rem; }
.home-hero .capability-row { margin-top: 12px; font-size: .43rem; line-height: 1.5; letter-spacing: .12em; }
.home-hero .hero-gallery { grid-row: 3; position: relative; inset: auto; height: 100%; min-height: 0; margin-inline: -28px; }
@media (max-height: 650px) {
  .home-hero .hero-copy { padding-top: 8px; padding-bottom: 10px; }
  .home-hero .hero-metadata { gap: .15rem; margin-bottom: .6rem; }
  .home-hero .hero-metadata .eyebrow { font-size: .72rem; }
  .home-hero .lede { font-size: .76rem; line-height: 1.35; }
  .home-hero .cta-row { margin-top: 10px; }
  .home-hero .capability-row { margin-top: 8px; font-size: .4rem; }
}

/* INM: keep the complete Selected Work presentation within one screen. */
.page-shell > main > .selected-work {
  height: 100svh;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 8px;
  padding-block: 20px;
}
.selected-work .section-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; margin: 0; gap: 8px 12px; }
.selected-work .section-heading .eyebrow { grid-column: 1 / -1; margin: 0; }
.selected-work .section-heading h2 { font-size: clamp(1.35rem, 5.5vw, 2rem); line-height: 1.08; }
.selected-work .section-heading .secondary-link { font-size: .6rem; }
.selected-work .project-tabs { min-height: 52px; margin: 0; padding-block: 4px; }
.selected-work .project-tab { padding: 12px; min-height: 44px; font-size: .7rem; }
.selected-work .portfolio-tiles.is-slideshow { height: 100%; min-height: 0; }
.selected-work .is-slideshow .portfolio-card { height: 100%; min-height: 0; grid-template-rows: minmax(0, 1fr) auto auto; }
.selected-work .project-image-set { height: 100%; min-height: 0; grid-template-columns: 2fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); }
.selected-work .project-image-set img { width: 100%; height: 100%; min-height: 0; aspect-ratio: auto; object-fit: contain; }
.selected-work .project-image-set img:first-child { grid-column: 1; grid-row: 1 / -1; }
.selected-work .is-slideshow .card-info { padding: 12px 14px 6px; gap: 4px; }
.selected-work .is-slideshow .card-info strong { font-size: 1.35rem; min-height: 0; line-height: 1.1; }
.selected-work .is-slideshow .card-info span, .selected-work .is-slideshow .card-info em { font-size: .6rem; line-height: 1.4; }
.selected-work .is-slideshow .project-link { padding: 0 14px 12px; font-size: .65rem; }
.selected-work .project-slideshow-controls { margin: 0; gap: 6px; flex-wrap: nowrap; min-height: 44px; }
.selected-work .project-slideshow-controls button { min-height: 44px; padding: 10px 8px; font-size: .6rem; white-space: nowrap; }
.selected-work .project-slide-count { font-size: .6rem; letter-spacing: .05em; white-space: nowrap; }
@media (max-width: 360px) {
  .selected-work .project-slideshow-controls { gap: 4px; }
  .selected-work .project-slideshow-controls button { padding-inline: 5px; font-size: .55rem; }
}
@media (max-height: 650px) {
  .page-shell > main > .selected-work { padding-block: 12px; gap: 6px; }
  .selected-work .section-heading h2 { font-size: 1.25rem; }
}

/* INM: swipeable main project image with two previews underneath. */
.selected-work .project-image-set {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) minmax(64px, 24%) 22px;
  gap: 6px;
}
.selected-work .mobile-project-images { display: flex; min-width: 0; min-height: 0; overflow: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; }
.selected-work.is-paused .mobile-project-images { overflow-x: auto; overscroll-behavior-x: contain; }
.mobile-project-images::-webkit-scrollbar { display: none; }
.selected-work .mobile-project-images img, .selected-work .mobile-project-images img:first-child { flex: 0 0 100%; width: 100%; height: 100%; object-fit: contain; scroll-snap-align: start; }
.mobile-project-thumbs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: 0; gap: 6px; }
.mobile-project-thumbs button { min-height: 44px; min-width: 0; padding: 0; border: 0; background: var(--surface-dark); overflow: hidden; cursor: pointer; }
.mobile-project-thumbs button:disabled { cursor: default; }
.selected-work .mobile-project-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.mobile-project-hint { text-align: center; align-self: center; font-size: .6rem; color: var(--muted-light); line-height: 1.3; }
.selected-work .project-slideshow-controls .mobile-slideshow-pause { display: grid; place-items: center; width: 44px; height: 44px; padding: 10px; border: 0; background: transparent; }
.mobile-slideshow-pause svg { width: 22px; height: 22px; }

/* INM: yellow project links and a compact plan comparison entry. */
.selected-work .is-slideshow .project-link { color: var(--good-yellow); }
.page-shell > main > .pricing-section { padding-block: 24px; }
.pricing-section > .eyebrow { margin-bottom: 12px; }
.pricing-section > h2 { font-size: clamp(1.5rem, 6vw, 2rem); line-height: 1.1; margin-bottom: 14px; }
.pricing-section > .section-lede { font-size: .78rem; line-height: 1.5; margin-bottom: 16px; }
.pricing-section .pricing-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; margin-top: 12px; align-items: end; }
.pricing-section .pricing-toolbar > .pricing-toggle { display: flex; padding: 2px; }
.pricing-section .pricing-toolbar > .pricing-toggle button { flex: 1; }
.pricing-section .pricing-toggle button, .pricing-section .currency-toggle button { min-height: 44px; padding: 8px; font-size: .65rem; white-space: nowrap; }
.pricing-section .currency-label { flex-direction: column; align-items: flex-start; gap: 3px; font-size: .6rem; }
.pricing-section .currency-toggle { padding: 2px; }
.pricing-section .billing-controls { justify-content: space-between; gap: 8px; margin: 8px 0 12px; font-size: .65rem; }
.pricing-section .billing-controls .pricing-toggle { padding: 2px; }
.pricing-section .billing-saving { margin-left: 4px; font-size: .75em; }
.pricing-section #currency-status { font-size: .65rem; margin: 4px 0; }
.pricing-section .plan-card { padding: 16px; }
.pricing-section .plan-card h3 { font-size: 1.5rem; margin-bottom: 6px; }
.pricing-section .plan-card > p:not(.plan-price) { margin: 0 0 8px; font-size: .76rem; line-height: 1.4; }
.pricing-section .service-picker-label { margin: 6px 0; font-size: .68rem; }
.pricing-section .service-picker summary { min-height: 44px; padding: 12px; font-size: .75rem; }
.pricing-section .plan-card .plan-price { min-height: 0; margin: 12px 0 8px; font-size: 1.8rem; }
.pricing-section .plan-card .price-placeholder { padding-top: 0; max-width: none; font-size: .95rem; line-height: 1.4; }
.pricing-section .plan-card .plan-price span { margin-top: 4px; font-size: .7rem; }
.pricing-section .plan-card .selected-services { margin-bottom: 8px; font-size: .65rem !important; line-height: 1.4; }
.pricing-section .plan-deliverables { padding-block: 8px; margin-block: 6px; }
.pricing-section .plan-deliverables summary { min-height: 32px; display: list-item; align-content: center; font-size: .72rem; }
.pricing-section .plan-card ul { margin: 6px 0 12px; }
.pricing-section .plan-card li { padding: 7px 0; font-size: .72rem; line-height: 1.4; }
.pricing-section .plan-card .primary-btn { min-height: 44px; padding: 12px; font-size: .65rem; }
@media (max-width: 360px) {
  .pricing-section .pricing-toolbar { gap: 6px; }
  .pricing-section .pricing-toggle button, .pricing-section .currency-toggle button { padding-inline: 5px; font-size: .58rem; }
}

@media (max-width: 360px) {
  .pricing-section .plan-card { padding: 12px; }
  .pricing-section .plan-card li { padding-block: 5px; }
  .pricing-section .plan-card ul { margin-bottom: 8px; }
  .pricing-section .plan-card .plan-price { margin-top: 8px; }
}

/* INM: full-width pricing mode, then currency and billing side by side. */
.pricing-section .pricing-toolbar { grid-template-columns: minmax(88px, .8fr) minmax(0, 1.4fr); gap: 12px 10px; align-items: start; margin-bottom: 18px; }
.pricing-section .pricing-toolbar > .pricing-toggle { grid-column: 1 / -1; }
.pricing-section .currency-label { grid-column: 1; grid-row: 2; }
.pricing-section .billing-controls { grid-column: 2; grid-row: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; margin: 0; font-size: .6rem; }
.pricing-section .billing-controls .pricing-toggle { display: flex; width: 100%; }
.pricing-section .billing-controls .pricing-toggle button { flex: 1; padding-inline: 6px; font-size: .62rem; }
.pricing-section .currency-toggle { display: flex; width: 100%; }
.pricing-section .currency-toggle button { flex: 1; }
.pricing-section .plan-card { padding: 24px 22px; }
.pricing-section .plan-card h3 { font-size: 1.7rem; margin-bottom: 12px; }
.pricing-section .plan-card > p:not(.plan-price) { margin-bottom: 16px; font-size: .82rem; line-height: 1.6; }
.pricing-section .service-picker-label { margin: 12px 0 10px; font-size: .75rem; }
.pricing-section .service-picker summary { padding: 14px; font-size: .82rem; }
.pricing-section .plan-card .plan-price { margin: 20px 0 14px; font-size: 2rem; }
.pricing-section .plan-card .price-placeholder { font-size: 1.05rem; line-height: 1.5; }
.pricing-section .plan-card .plan-price span { margin-top: 8px; font-size: .75rem; }
.pricing-section .plan-card .selected-services { margin-bottom: 14px; font-size: .72rem !important; line-height: 1.6; }
.pricing-section .plan-deliverables { padding-block: 12px; margin-block: 10px; }
.pricing-section .plan-card ul { margin: 12px 0 22px; }
.pricing-section .plan-card li { padding: 12px 0; font-size: .8rem; line-height: 1.5; }
.pricing-section .plan-card .primary-btn { padding: 16px 12px; font-size: .7rem; }
@media (max-width: 360px) {
  .pricing-section .billing-controls .pricing-toggle button { padding-inline: 4px; font-size: .56rem; }
  .pricing-section .plan-card { padding-inline: 20px; }
}

/* INM: keep Project-Based enquiries within the mobile viewport. */
.pricing-section .project-enquiry { min-width: 0; max-width: 100%; margin-top: 12px; padding: 20px; overflow-wrap: anywhere; }
.pricing-section .project-enquiry > .eyebrow { margin-bottom: 10px; font-size: .6rem; }
.pricing-section .project-enquiry h3 { font-size: 1.5rem; line-height: 1.15; margin-bottom: 12px; }
.pricing-section .project-enquiry > p { font-size: .78rem; line-height: 1.5; margin: 10px 0; }
.pricing-section .project-enquiry > .pricing-note { font-size: .65rem; line-height: 1.4; }
.pricing-section .project-enquiry > p:empty { display: none; }
.mobile-project-service-picker { margin: 14px 0; border: 1px solid var(--border-dark); background: var(--good-black); }
.mobile-project-service-picker > summary { min-height: 44px; padding: 12px; color: var(--good-yellow); font-size: .78rem; cursor: pointer; }
.pricing-section .mobile-project-service-picker #project-services { min-width: 0; max-height: none; overflow: visible; margin: 0; padding: 8px 12px; gap: 0; }
.mobile-project-service-picker #project-services legend { font-size: .7rem; }
.mobile-project-service-picker #project-services .service-choice { min-height: 44px; padding-block: 10px; font-size: .75rem; }
.pricing-section #project-booking { width: 100%; min-height: 44px; padding: 12px; font-size: .65rem; white-space: normal; }
@media (max-height: 650px) {
  .pricing-section .project-enquiry { padding: 16px; }
  .pricing-section .project-enquiry h3 { font-size: 1.3rem; }
  .pricing-section .project-enquiry > p { font-size: .72rem; line-height: 1.4; }
}
