@media (max-width: 1279px) {
  .hero-body { right: max(var(--hero-m), calc((100% - var(--frame)) / 2)); }
  .hero-caption { bottom: auto; top: calc(var(--nav-h) + var(--hero-m)); }
  .btn { white-space: nowrap; }
  .hero-actions { flex-wrap: wrap; }
  .chip.nav-cta { white-space: nowrap; }
}

@media (max-width: 1023px) {
  .nav { padding: 0 28px; }
  .nav-links { gap: 18px; }
  .nav-sep { display: none; }
  .brand-logo { height: 24px; }
  .hero-role { white-space: normal; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  body[data-fxpath="on"] #process .path-line { display: none; }
  .section { padding: 110px 0; }
  .connect { scroll-margin-top: 0; }
  .tile.is-big .tile-media::after { background: linear-gradient(0deg, rgba(12,12,13,.94) 0%, rgba(12,12,13,.85) 50%, rgba(12,12,13,0) 85%); }
  .bento { grid-template-columns: repeat(2, 1fr); --tile: calc((min(var(--page), 100vw - var(--gutter) * 2) - 18px) / 2); }
  .tile.is-big .tile-title { font-size: 32px; }
}

@media (max-width: 720px) {
  :root { --gutter: 20px; --edge: 20px; --nav-h: 76px; }
  :root:has(body[data-mnav="row"]) { --nav-h: 112px; }

  .nav { padding: 0 var(--edge); }
  .brand { padding: 10px 0; min-width: 0; }
  .brand-logo { width: 206px; max-width: 100%; height: auto; }
  .nav-menu:not([hidden]) {
    display: inline-flex; align-items: center; flex: none; height: 44px; margin-left: 14px; padding: 0 12px;
    border: 1px solid var(--grey); font-size: 14px; font-weight: 600; letter-spacing: .04em; color: var(--white);
  }
  .nav-links { display: none; }
  .nav.is-open .nav-links {
    display: flex; flex-direction: column; align-items: flex-start; gap: 22px;
    position: fixed; left: 0; right: 0; top: var(--nav-h); height: calc(100svh - var(--nav-h));
    padding: 36px var(--edge); background: rgba(18,18,18,.96); backdrop-filter: blur(10px); overflow: auto;
  }
  .nav.is-open .nav-links a:not(.nav-cta) { font-family: var(--display); font-weight: 700; font-size: 28px; letter-spacing: .02em; color: var(--white); padding: 2px 0; }
  .nav.is-open .nav-sep { display: none; }
  .nav.is-open .chip.nav-cta { margin-top: 14px; }
  .chip { font-size: 14px; }
  .chip.nav-cta { min-height: 44px; }
  body[data-mnav="menu"] .nav-ink { display: none !important; }
  html.nav-open { overflow: hidden; }

  body[data-nav="pill"] .nav { display: flex; }
  body[data-nav="pill"] .nav-status { display: none; }
  body[data-nav="pill"] .nav-links { gap: 22px; padding: 0; border: 0; background: none; }
  body[data-nav="pill"] .nav-links a:not(.nav-cta) { padding: 0; font-weight: inherit; }
  body[data-nav="pill"] .nav-links a.is-active { background: none; color: var(--white); }

  body[data-mnav="row"] .nav { height: 112px; flex-wrap: wrap; align-content: center; }
  body[data-mnav="row"] .nav-menu { display: none; }
  body[data-mnav="row"] .nav-links {
    display: flex; flex-basis: calc(100% + var(--edge) * 2); order: 2; margin: 0 calc(var(--edge) * -1); padding: 0 var(--edge);
    gap: 22px; overflow-x: auto; scrollbar-width: none;
  }
  body[data-mnav="row"] .nav-links::-webkit-scrollbar { display: none; }
  body[data-mnav="row"] .nav-links > * { flex: none; }
  body[data-mnav="row"] .nav-links a:not(.nav-cta) { padding: 11px 0; }
  body[data-mnav="row"] .nav-sep { display: none; }
  body[data-mnav="row"] .nav-links { position: relative; }

  .hero { height: 100vh; height: 100svh; min-height: 640px; }
  .hero-body { flex-direction: column; align-items: flex-start; gap: 18px; left: var(--edge); right: var(--edge); bottom: calc(var(--bar-h) + var(--edge) + 64px); }
  .hero-mark { width: min(38vw, 180px); }
  .hero-topo { --mw: min(38vw, 180px); }
  .hero h1 { font-size: 34px; }
  .hero-role { margin-top: 18px; white-space: normal; font-size: 18px; }
  .hero-tag { font-size: 18px; }
  .hero-actions { margin-top: 24px; gap: 10px; flex-wrap: wrap; }
  .btn { height: 48px; padding: 0 20px; font-size: 15px; }
  .hero-caption { top: auto; left: var(--edge); right: var(--edge); bottom: calc(var(--bar-h) + var(--edge)); width: auto; }
  .hero-count { font-size: 14px; }
  .hero::after { background: linear-gradient(0deg, rgba(18,18,18,.94) 0%, rgba(18,18,18,.7) 45%, rgba(18,18,18,.15) 100%), linear-gradient(0deg, rgba(18,18,18,.9) 0%, rgba(18,18,18,0) 45%); }

  .section { padding: 88px 0; }
  .section-head { padding-bottom: 22px; }
  .section-title { font-size: 34px; }
  .mf-list { margin-top: 48px; }
  .mf-item { padding-bottom: 56px; }
  .mf-head { font-size: 26px; }
  .mf-text { font-size: 17px; }
  .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .cell { padding: 28px 22px 32px; }
  .cell h3 { margin-top: 24px; font-size: 22px; }
  .cell p, .step p, .connect-desc { font-size: 17px; }
  .connect-label { font-size: 14px; }
  .connect-handle { font-size: 24px; }
  .step { padding: 26px 22px 32px; }
  .bento { grid-template-columns: 1fr; gap: 14px; margin-top: 28px; --tile: calc((100vw - var(--gutter) * 2) * .78); }
  .tile.is-big { grid-column: span 1; grid-row: span 2; }
  .tile.is-big .tile-media::after { background: linear-gradient(0deg, rgba(12,12,13,.94) 0%, rgba(12,12,13,.9) 45%, rgba(12,12,13,.7) 72%, rgba(12,12,13,.15) 100%); }
  .tile-disc { font-size: 14px; }
  .tile-more { display: inline-flex; align-items: center; min-height: 44px; }
  .tile-link { height: 44px; }
  .tile-info { padding: 18px 18px 16px; }
  .tile.is-big .tile-title { font-size: 28px; }
  .tile.is-big .tile-desc { font-size: 17px; }
  .tile-full { max-width: none; }
  .contact { padding-bottom: 110px; }
  .contact h2 { font-size: 38px; }
  .contact-lead { font-size: 18px; }
  .mailbox { height: 56px; font-size: 16px; margin-top: 32px; }
  .footer .wrap { flex-direction: column; align-items: center; gap: 12px; text-align: center; }
}

@media (max-width: 720px) and (prefers-reduced-motion: reduce) {
  .nav.is-open .nav-links { transition: none; }
}

@media (max-width: 1279px) and (max-height: 600px) {
  .hero { height: auto; min-height: 0; padding: calc(var(--nav-h) + 24px) var(--hero-m) 24px; }
  .hero-body, .hero-caption { position: relative; inset: auto; z-index: 2; }
  .hero-body { flex-direction: row; align-items: flex-end; gap: 24px; }
  .hero-caption { width: auto; margin-top: 24px; }
}
