@media (max-width: 1180px) {
  .desktop-icons {
    right: 10px;
  }

  .app-window {
    min-width: 380px;
  }

  .home-hero {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.75fr);
    gap: 28px;
  }

  .home-copy h1 {
    font-size: clamp(2.7rem, 6vw, 5.7rem);
  }

  .strategy-stack {
    min-height: 370px;
  }

  .catalog-grid,
  .card-grid,
  .article-grid,
  .home-discovery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-step:nth-child(2)::after {
    display: none;
  }

  .launchpad-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (max-width: 900px) {
  :root {
    --dock-safe: 98px;
  }

  .desktop-nav button:nth-child(3) {
    display: none;
  }

  .menu-status {
    display: none;
  }

  .clock-date {
    display: none;
  }

  .app-header {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .app-header__actions {
    padding: 0;
  }

  .home-hero {
    grid-template-columns: 1fr;
    align-content: start;
    padding-top: 44px;
  }

  .home-copy {
    max-width: 720px;
  }

  .home-copy h1 {
    font-size: clamp(3.1rem, 9vw, 6.3rem);
  }

  .home-visual {
    display: none;
  }

  .home-discovery__heading {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .profile-intro,
  .project-detail-hero,
  .contact-layout,
  .meeting-layout,
  .resume-sheet {
    grid-template-columns: 1fr;
  }

  .profile-portrait {
    width: min(390px, 100%);
    aspect-ratio: 1 / 0.82;
  }

  .profile-portrait__image {
    object-position: center 33%;
  }

  .principles-grid,
  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-card.featured {
    grid-column: auto;
    grid-template-columns: 1fr;
    grid-template-rows: 250px 1fr;
  }

  .pricing-grid,
  .product-grid,
  .social-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-dashboard {
    grid-template-columns: 1fr;
  }

  .case-study-card {
    grid-template-columns: 0.55fr 1.45fr;
  }

  .gallery-strip {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .gallery-frame:last-child {
    grid-column: span 2;
  }

  .launchpad-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 720px) {
  :root {
    --menu-height: calc(38px + env(safe-area-inset-top));
    --dock-safe: calc(80px + env(safe-area-inset-bottom));
  }

  body {
    min-height: 100dvh;
  }

  .desktop {
    min-height: 100dvh;
    background-position: 58% center;
  }

  .menu-bar {
    height: var(--menu-height);
    padding-top: env(safe-area-inset-top);
  }

  .menu-bar__left {
    gap: 4px;
  }

  .menu-brand strong {
    font-size: 10px;
  }

  .desktop-nav {
    display: none;
  }

  .live-clock {
    padding-right: 3px;
  }

  .desktop-icons,
  .desktop-hint {
    display: none;
  }

  .desktop-surface {
    inset: var(--menu-height) 0 0;
  }

  .window-layer {
    inset: 0;
  }

  .app-window,
  .app-window.is-maximized {
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: calc(100dvh - var(--menu-height) - var(--dock-safe) + 6px) !important;
    min-width: 0;
    min-height: 0;
    grid-template-rows: 54px minmax(0, 1fr);
    border: 0;
    border-radius: 0;
    background: rgba(11, 12, 18, 0.92);
    box-shadow: none;
    transform-origin: center bottom;
  }

  .app-window:not(.is-focused) {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }

  .window-titlebar {
    height: 54px;
    grid-template-columns: minmax(78px, auto) 1fr minmax(62px, auto);
    gap: 4px;
    padding: 0 8px;
  }

  .window-controls,
  .window-toolbar-button {
    display: none;
  }

  .mobile-window-back,
  .mobile-window-close {
    display: inline-flex;
    min-width: 0;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    color: #fff;
    font-size: 13px;
    font-weight: 650;
    letter-spacing: -0.01em;
    padding: 0 10px;
  }

  .mobile-window-back {
    gap: 4px;
    justify-self: start;
    background: rgba(255, 255, 255, 0.08);
  }

  .mobile-window-back span {
    font-size: 23px;
    font-weight: 400;
    line-height: 1;
  }

  .mobile-window-close {
    justify-self: end;
    background: rgba(255, 95, 87, 0.16);
    color: #ffb3ae;
  }

  .mobile-window-back:active,
  .mobile-window-close:active {
    transform: scale(0.96);
  }

  .window-toolbar {
    justify-content: flex-end;
  }

  .window-resize {
    display: none;
  }

  .window-titlebar[data-drag-handle],
  .app-window.is-focused .window-titlebar[data-drag-handle] {
    cursor: default;
  }

  .window-title {
    gap: 5px;
    font-size: 11px;
  }

  .window-title .mini-app-icon {
    width: 20px;
    height: 20px;
  }

  .window-content {
    padding-bottom: 8px;
  }

  .app-view__inner {
    padding: 24px 18px 40px;
  }

  .app-header {
    margin-bottom: 22px;
  }

  .app-header h1 {
    font-size: clamp(2.2rem, 11vw, 3.5rem);
  }

  .app-header__actions,
  .home-actions {
    width: 100%;
  }

  .app-header__actions .button,
  .home-actions .button {
    flex: 1;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 7px;
  }

  .section-heading p {
    max-width: none;
    text-align: left;
  }

  .home-hero {
    min-height: 100%;
    align-content: center;
    padding: 30px 20px 42px;
  }

  .home-copy h1 {
    font-size: clamp(3rem, 14vw, 5.3rem);
    letter-spacing: -0.07em;
  }

  .home-copy > p {
    font-size: 14px;
  }

  .home-trust {
    gap: 8px 14px;
  }

  .home-discovery {
    width: calc(100% - 36px);
  }

  .home-discovery__grid {
    grid-template-columns: 1fr;
  }

  .home-discovery__card {
    min-height: 0;
  }

  .profile-intro,
  .project-detail-hero {
    gap: 22px;
  }

  .profile-portrait {
    aspect-ratio: 1.1 / 0.8;
  }

  .profile-portrait__image {
    object-position: center 34%;
  }

  .profile-copy > p {
    font-size: 13px;
  }

  .principles-grid,
  .stats-strip,
  .card-grid,
  .card-grid.two,
  .catalog-grid,
  .portfolio-grid,
  .article-grid,
  .pricing-grid,
  .product-grid,
  .social-grid,
  .detail-columns {
    grid-template-columns: 1fr;
  }

  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-card {
    min-height: 245px;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .process-step::after {
    display: none;
  }

  .filter-bar {
    top: -1px;
    flex-wrap: wrap;
  }

  .filter-search {
    min-width: calc(100% - 1px);
  }

  .filter-select {
    flex: 1;
  }

  .catalog-card {
    grid-template-rows: 160px 1fr;
  }

  .project-card,
  .project-card.featured {
    grid-template-rows: 220px 1fr;
  }

  .project-detail-visual {
    min-height: 270px;
  }

  .project-detail-visual .project-browser {
    top: 32px;
    right: -18px;
    bottom: 20px;
    left: 24px;
  }

  .gallery-strip {
    grid-template-columns: 1fr;
  }

  .gallery-frame:last-child {
    grid-column: auto;
  }

  .testimonial-quote {
    padding: 20px;
  }

  .article-reading {
    padding: 28px 18px 44px;
  }

  .article-reading h1 {
    font-size: clamp(2.3rem, 12vw, 3.7rem);
  }

  .pricing-card {
    min-height: 430px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-field.full {
    grid-column: auto;
  }

  .form-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .meeting-layout {
    grid-template-columns: 1fr;
  }

  .calendar-picker,
  .meeting-info,
  .contact-panel,
  .inquiry-form {
    padding: 18px;
  }

  .resume-sheet {
    gap: 20px;
  }

  .resume-role {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .case-study-card {
    grid-template-columns: 1fr;
  }

  .case-study-number {
    min-height: 150px;
  }

  .stat-dashboard {
    grid-template-columns: 1fr;
  }

  .bar-chart {
    height: 170px;
  }

  .dock-wrap {
    right: 0;
    bottom: max(6px, env(safe-area-inset-bottom));
    left: 0;
    width: 100%;
    transform: none;
  }

  .dock {
    width: max-content;
    max-width: calc(100vw - 12px);
    height: 66px;
    gap: 5px;
    overflow-x: auto;
    border-radius: 20px;
    margin: 0 auto;
    padding: 7px 8px;
    scrollbar-width: none;
  }

  .dock::-webkit-scrollbar {
    display: none;
  }

  .dock-apps {
    gap: 5px;
  }

  .dock-launcher {
    width: 49px;
    height: 49px;
    flex-basis: 49px;
  }

  .dock-icon {
    width: 47px;
    height: 47px;
    border-radius: 13px;
  }

  .dock-launcher::before {
    display: none;
  }

  .dock-divider {
    height: 38px;
  }

  .overlay {
    inset: var(--menu-height) 0 0;
  }

  .launchpad-inner {
    width: 100%;
    align-content: start;
    gap: 25px;
    overflow-y: auto;
    padding: 24px 16px 100px;
  }

  .launchpad-toolbar {
    position: sticky;
    z-index: 2;
    top: 0;
    width: 100%;
    gap: 8px;
  }

  .launchpad-toolbar .overlay-search,
  .launchpad-close {
    height: 46px;
  }

  .launchpad-close {
    width: 46px;
    flex-basis: 46px;
    border-radius: 14px;
    background: rgba(25, 26, 36, 0.72);
    font-size: 27px;
  }

  .launchpad-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 22px 10px;
  }

  .launchpad-app .app-icon {
    width: 55px;
    height: 55px;
    border-radius: 15px;
  }

  .launchpad-app > span:last-child {
    max-width: 72px;
    font-size: 9px;
  }

  .launchpad-tip {
    display: none;
  }

  .spotlight {
    align-items: flex-start;
    padding: 12px;
    padding-top: 12px;
  }

  .spotlight-dialog {
    width: 100%;
  }

  .spotlight-input-wrap {
    height: 58px;
  }

  .spotlight-input-wrap input {
    font-size: 17px;
  }

  .notification-center {
    top: calc(var(--menu-height) + 6px);
    right: 6px;
    left: 6px;
    width: auto;
    max-height: calc(100dvh - var(--menu-height) - 12px);
  }

  .context-menu {
    width: min(230px, calc(100vw - 20px));
  }
}

@media (max-width: 420px) {
  .menu-icon-button:first-of-type {
    display: none;
  }

  .launchpad-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .home-actions,
  .app-header__actions {
    flex-direction: column;
  }

  .stats-strip,
  .project-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .project-metric:last-child {
    grid-column: span 2;
  }

  .catalog-card__actions {
    grid-template-columns: 1fr;
  }

  .download-item {
    grid-template-columns: 42px 1fr;
  }

  .download-item .button {
    grid-column: span 2;
  }

  .contact-method {
    grid-template-columns: 34px 1fr;
  }

  .contact-method > span:last-child {
    display: none;
  }
}

@media (hover: none) and (pointer: coarse) {
  .ambient-cursor {
    display: none;
  }

  .surface-card:hover,
  .social-card:hover,
  .launchpad-app:hover,
  .button:hover {
    transform: none;
  }
}

@media print {
  body {
    overflow: visible;
    background: #fff;
    color: #111;
  }

  .menu-bar,
  .dock-wrap,
  .desktop-icons,
  .desktop-hint,
  .overlay,
  .notification-center,
  .ambient-cursor,
  .boot-screen {
    display: none !important;
  }

  .desktop {
    position: static;
    overflow: visible;
    background: #fff;
  }

  .desktop-surface,
  .window-layer {
    position: static;
    overflow: visible;
  }

  .app-window {
    position: static !important;
    display: none;
    width: 100% !important;
    height: auto !important;
    border: 0;
    background: #fff;
    box-shadow: none;
    color: #111;
  }

  .app-window[data-app-id="resume"] {
    display: block;
  }

  .window-titlebar {
    display: none;
  }

  .window-content {
    overflow: visible;
    background: #fff;
  }
}
